@kne-components/components-admin 1.0.9 → 1.0.11

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 (57) hide show
  1. package/build/asset-manifest.json +32 -32
  2. package/build/index.html +1 -1
  3. package/build/remoteEntry.js +1 -1
  4. package/build/remoteEntry.js.map +1 -1
  5. package/build/static/css/1156.7cdf0a5e.chunk.css +2 -0
  6. package/build/static/css/{1156.f57a0cff.chunk.css.map → 1156.7cdf0a5e.chunk.css.map} +1 -1
  7. package/build/static/css/1668.82de014e.chunk.css +2 -0
  8. package/build/static/css/{5582.f543b6b2.chunk.css.map → 1668.82de014e.chunk.css.map} +1 -1
  9. package/build/static/css/4283.ba6557aa.chunk.css +2 -0
  10. package/build/static/css/{4283.267159c6.chunk.css.map → 4283.ba6557aa.chunk.css.map} +1 -1
  11. package/build/static/css/5582.82de014e.chunk.css +2 -0
  12. package/build/static/css/{1668.f543b6b2.chunk.css.map → 5582.82de014e.chunk.css.map} +1 -1
  13. package/build/static/css/{7041.a73c664f.chunk.css → 7041.f3092ea7.chunk.css} +2 -2
  14. package/build/static/css/{7041.a73c664f.chunk.css.map → 7041.f3092ea7.chunk.css.map} +1 -1
  15. package/build/static/js/1668.75b1b5d6.chunk.js +3 -0
  16. package/build/static/js/{1668.c48a22cc.chunk.js.map → 1668.75b1b5d6.chunk.js.map} +1 -1
  17. package/build/static/js/192.8e630aca.chunk.js +3 -0
  18. package/build/static/js/192.8e630aca.chunk.js.map +1 -0
  19. package/build/static/js/3263.90da53dd.chunk.js +2 -0
  20. package/build/static/js/3263.90da53dd.chunk.js.map +1 -0
  21. package/build/static/js/4283.df2a5bfe.chunk.js +3 -0
  22. package/build/static/js/4283.df2a5bfe.chunk.js.map +1 -0
  23. package/build/static/js/5582.7f56034e.chunk.js +3 -0
  24. package/build/static/js/5582.7f56034e.chunk.js.map +1 -0
  25. package/build/static/js/7011.b66ed61d.chunk.js +2 -0
  26. package/build/static/js/{7011.da318c28.chunk.js.map → 7011.b66ed61d.chunk.js.map} +1 -1
  27. package/build/static/js/{7041.37497882.chunk.js → 7041.be0752dd.chunk.js} +2 -2
  28. package/build/static/js/{7041.37497882.chunk.js.map → 7041.be0752dd.chunk.js.map} +1 -1
  29. package/build/static/js/7167.a1dc0f98.chunk.js +3 -0
  30. package/build/static/js/7167.a1dc0f98.chunk.js.map +1 -0
  31. package/build/static/js/{8601.1e0ba717.chunk.js → 8601.01f3436b.chunk.js} +2 -2
  32. package/build/static/js/8601.01f3436b.chunk.js.map +1 -0
  33. package/build/static/js/{main.2cc27c9e.js → main.65cafb22.js} +2 -2
  34. package/build/static/js/{main.2cc27c9e.js.map → main.65cafb22.js.map} +1 -1
  35. package/package.json +1 -1
  36. package/build/static/css/1156.f57a0cff.chunk.css +0 -2
  37. package/build/static/css/1668.f543b6b2.chunk.css +0 -2
  38. package/build/static/css/4283.267159c6.chunk.css +0 -2
  39. package/build/static/css/5582.f543b6b2.chunk.css +0 -2
  40. package/build/static/js/1668.c48a22cc.chunk.js +0 -3
  41. package/build/static/js/192.9efaa8d4.chunk.js +0 -3
  42. package/build/static/js/192.9efaa8d4.chunk.js.map +0 -1
  43. package/build/static/js/3263.8bd91682.chunk.js +0 -2
  44. package/build/static/js/3263.8bd91682.chunk.js.map +0 -1
  45. package/build/static/js/4283.98e21806.chunk.js +0 -3
  46. package/build/static/js/4283.98e21806.chunk.js.map +0 -1
  47. package/build/static/js/5582.6adca79b.chunk.js +0 -3
  48. package/build/static/js/5582.6adca79b.chunk.js.map +0 -1
  49. package/build/static/js/7011.da318c28.chunk.js +0 -2
  50. package/build/static/js/7167.034ea8e2.chunk.js +0 -3
  51. package/build/static/js/7167.034ea8e2.chunk.js.map +0 -1
  52. package/build/static/js/8601.1e0ba717.chunk.js.map +0 -1
  53. /package/build/static/js/{1668.c48a22cc.chunk.js.LICENSE.txt → 1668.75b1b5d6.chunk.js.LICENSE.txt} +0 -0
  54. /package/build/static/js/{192.9efaa8d4.chunk.js.LICENSE.txt → 192.8e630aca.chunk.js.LICENSE.txt} +0 -0
  55. /package/build/static/js/{4283.98e21806.chunk.js.LICENSE.txt → 4283.df2a5bfe.chunk.js.LICENSE.txt} +0 -0
  56. /package/build/static/js/{5582.6adca79b.chunk.js.LICENSE.txt → 5582.7f56034e.chunk.js.LICENSE.txt} +0 -0
  57. /package/build/static/js/{7167.034ea8e2.chunk.js.LICENSE.txt → 7167.a1dc0f98.chunk.js.LICENSE.txt} +0 -0
@@ -0,0 +1,3 @@
1
+ /*! For license information please see 7167.a1dc0f98.chunk.js.LICENSE.txt */
2
+ (self.webpackChunk_kne_components_components_admin=self.webpackChunk_kne_components_components_admin||[]).push([[7167],{19223:function(e){e.exports=function(){"use strict";return function(e,t){t.prototype.weekday=function(e){var t=this.$locale().weekStart||0,n=this.$W,o=(n<t?n+7:n)-t;return this.$utils().u(e)?o:this.subtract(o,"day").add(e,"day")}}}()},20199:function(e){e.exports=function(){"use strict";return function(e,t,n){var o=t.prototype,r=function(e){return e&&(e.indexOf?e:e.s)},i=function(e,t,n,o,i){var a=e.name?e:e.$locale(),l=r(a[t]),c=r(a[n]),s=l||c.map(function(e){return e.slice(0,o)});if(!i)return s;var u=a.weekStart;return s.map(function(e,t){return s[(t+(u||0))%7]})},a=function(){return n.Ls[n.locale()]},l=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"):i(e,"months")},monthsShort:function(t){return t?t.format("MMM"):i(e,"monthsShort","months",3)},firstDayOfWeek:function(){return e.$locale().weekStart||0},weekdays:function(t){return t?t.format("dddd"):i(e,"weekdays")},weekdaysMin:function(t){return t?t.format("dd"):i(e,"weekdaysMin","weekdays",2)},weekdaysShort:function(t){return t?t.format("ddd"):i(e,"weekdaysShort","weekdays",3)},longDateFormat:function(t){return l(e.$locale(),t)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};o.localeData=function(){return c.bind(this)()},n.localeData=function(){var e=a();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 l(e,t)},meridiem:e.meridiem,ordinal:e.ordinal}},n.months=function(){return i(a(),"months")},n.monthsShort=function(){return i(a(),"monthsShort","months",3)},n.weekdays=function(e){return i(a(),"weekdays",null,null,e)},n.weekdaysShort=function(e){return i(a(),"weekdaysShort","weekdays",3,e)},n.weekdaysMin=function(e){return i(a(),"weekdaysMin","weekdays",2,e)}}}()},37475:e=>{e.exports=function(e){return e.replace(/[A-Z]/g,function(e){return"-"+e.toLowerCase()}).toLowerCase()}},40139:e=>{e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],o=0;o<e.rangeCount;o++)n.push(e.getRangeAt(o));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach(function(t){e.addRange(t)}),t&&t.focus()}}},41270:(e,t,n)=>{var o=n(37475),r=function(e){var t="",n=Object.keys(e);return n.forEach(function(r,i){var a=e[r];(function(e){return/[height|width]$/.test(e)})(r=o(r))&&"number"===typeof a&&(a+="px"),t+=!0===a?r:!1===a?"not "+r:"("+r+": "+a+")",i<n.length-1&&(t+=" and ")}),t};e.exports=function(e){var t="";return"string"===typeof e?e:e instanceof Array?(e.forEach(function(n,o){t+=r(n),o<e.length-1&&(t+=", ")}),t):r(e)}},66556:function(e){e.exports=function(){"use strict";return function(e,t){t.prototype.weekYear=function(){var e=this.month(),t=this.week(),n=this.year();return 1===t&&11===e?n+1:0===e&&t>=52?n-1:n}}}()},66865:function(e){e.exports=function(){"use strict";var e="week",t="year";return function(n,o,r){var i=o.prototype;i.week=function(n){if(void 0===n&&(n=null),null!==n)return this.add(7*(n-this.week()),"day");var o=this.$locale().yearStart||1;if(11===this.month()&&this.date()>25){var i=r(this).startOf(t).add(1,t).date(o),a=r(this).endOf(e);if(i.isBefore(a))return 1}var l=r(this).startOf(t).date(o).startOf(e).subtract(1,"millisecond"),c=this.diff(l,e,!0);return c<0?r(this).startOf("week").week():Math.ceil(c)},i.weeks=function(e){return void 0===e&&(e=null),this.week(e)}}}()},68988:function(e){e.exports=function(){"use strict";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/,o=/\d\d/,r=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,a={},l=function(e){return(e=+e)+(e>68?1900:2e3)},c=function(e){return function(t){this[e]=+t}},s=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e)}],u=function(e){var t=a[e];return t&&(t.indexOf?t:t.s.concat(t.f))},d=function(e,t){var n,o=a.meridiem;if(o){for(var r=1;r<=24;r+=1)if(e.indexOf(o(r,0,t))>-1){n=r>12;break}}else n=e===(t?"pm":"PM");return n},p={A:[i,function(e){this.afternoon=d(e,!1)}],a:[i,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:[o,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[r,c("seconds")],ss:[r,c("seconds")],m:[r,c("minutes")],mm:[r,c("minutes")],H:[r,c("hours")],h:[r,c("hours")],HH:[r,c("hours")],hh:[r,c("hours")],D:[r,c("day")],DD:[o,c("day")],Do:[i,function(e){var t=a.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var o=1;o<=31;o+=1)t(o).replace(/\[|\]/g,"")===e&&(this.day=o)}],w:[r,c("week")],ww:[o,c("week")],M:[r,c("month")],MM:[o,c("month")],MMM:[i,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 new Error;this.month=n%12||n}],MMMM:[i,function(e){var t=u("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,c("year")],YY:[o,function(e){this.year=l(e)}],YYYY:[/\d{4}/,c("year")],Z:s,ZZ:s};function f(n){var o,r;o=n,r=a&&a.formats;for(var i=(n=o.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(t,n,o){var i=o&&o.toUpperCase();return n||r[o]||e[o]||r[i].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,n){return t||n.slice(1)})})).match(t),l=i.length,c=0;c<l;c+=1){var s=i[c],u=p[s],d=u&&u[0],f=u&&u[1];i[c]=f?{regex:d,parser:f}:s.replace(/^\[|\]$/g,"")}return function(e){for(var t={},n=0,o=0;n<l;n+=1){var r=i[n];if("string"==typeof r)o+=r.length;else{var a=r.regex,c=r.parser,s=e.slice(o),u=a.exec(s)[0];c.call(t,u),e=e.replace(u,"")}}return function(e){var t=e.afternoon;if(void 0!==t){var n=e.hours;t?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(l=e.parseTwoDigitYear);var o=t.prototype,r=o.parse;o.parse=function(e){var t=e.date,o=e.utc,i=e.args;this.$u=o;var l=i[1];if("string"==typeof l){var c=!0===i[2],s=!0===i[3],u=c||s,d=i[2];s&&(d=i[2]),a=this.$locale(),!c&&d&&(a=n.Ls[d]),this.$d=function(e,t,n,o){try{if(["x","X"].indexOf(t)>-1)return new Date(("X"===t?1e3:1)*e);var r=f(t)(e),i=r.year,a=r.month,l=r.day,c=r.hours,s=r.minutes,u=r.seconds,d=r.milliseconds,p=r.zone,m=r.week,g=new Date,v=l||(i||a?1:g.getDate()),h=i||g.getFullYear(),b=0;i&&!a||(b=a>0?a-1:g.getMonth());var y,C=c||0,x=s||0,$=u||0,w=d||0;return p?new Date(Date.UTC(h,b,v,C,x,$,w+60*p.offset*1e3)):n?new Date(Date.UTC(h,b,v,C,x,$,w)):(y=new Date(h,b,v,C,x,$,w),m&&(y=o(y).week(m).toDate()),y)}catch(e){return new Date("")}}(t,l,o,n),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(l)&&(this.$d=new Date("")),a={}}else if(l instanceof Array)for(var p=l.length,m=1;m<=p;m+=1){i[1]=l[m-1];var g=n.apply(this,i);if(g.isValid()){this.$d=g.$d,this.$L=g.$L,this.init();break}m===p&&(this.$d=new Date(""))}else r.call(this,e)}}}()},75270:(e,t,n)=>{"use strict";var o=n(40139),r={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,i,a,l,c,s,u=!1;t||(t={}),n=t.debug||!1;try{if(a=o(),l=document.createRange(),c=document.getSelection(),(s=document.createElement("span")).textContent=e,s.ariaHidden="true",s.style.all="unset",s.style.position="fixed",s.style.top=0,s.style.clip="rect(0, 0, 0, 0)",s.style.whiteSpace="pre",s.style.webkitUserSelect="text",s.style.MozUserSelect="text",s.style.msUserSelect="text",s.style.userSelect="text",s.addEventListener("copy",function(o){if(o.stopPropagation(),t.format)if(o.preventDefault(),"undefined"===typeof o.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var i=r[t.format]||r.default;window.clipboardData.setData(i,e)}else o.clipboardData.clearData(),o.clipboardData.setData(t.format,e);t.onCopy&&(o.preventDefault(),t.onCopy(o.clipboardData))}),document.body.appendChild(s),l.selectNodeContents(s),c.addRange(l),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");u=!0}catch(d){n&&console.error("unable to copy using execCommand: ",d),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),u=!0}catch(d){n&&console.error("unable to copy using clipboardData: ",d),n&&console.error("falling back to prompt"),i=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(i,e)}}finally{c&&("function"==typeof c.removeRange?c.removeRange(l):c.removeAllRanges()),s&&document.body.removeChild(s),a()}return u}},77167:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Affix:()=>nr,Alert:()=>Ci,Anchor:()=>Wi,App:()=>Ym,AutoComplete:()=>Eb,Avatar:()=>jy,BackTop:()=>By,Badge:()=>rC,Breadcrumb:()=>W$,Button:()=>Su,Calendar:()=>Qk,Card:()=>sO,Carousel:()=>uA,Cascader:()=>SI,Checkbox:()=>PI,Col:()=>LI,Collapse:()=>Is,ColorPicker:()=>Qj,ConfigProvider:()=>hl,DatePicker:()=>BP,Descriptions:()=>JP,Divider:()=>VI,Drawer:()=>$R,Dropdown:()=>zR,Empty:()=>hh,Flex:()=>YR,FloatButton:()=>CT,Form:()=>uz,Grid:()=>dz,Image:()=>Jz,Input:()=>zB,InputNumber:()=>NM,Layout:()=>VB,List:()=>VH,Mentions:()=>vD,Menu:()=>x$,Modal:()=>jD,Pagination:()=>yH,Popconfirm:()=>QD,Popover:()=>Ay,Progress:()=>ML,QRCode:()=>iF,Radio:()=>lF,Rate:()=>yF,Result:()=>RF,Row:()=>TF,Segmented:()=>cN,Select:()=>yb,Skeleton:()=>lf,Slider:()=>xj,Space:()=>MR,Spin:()=>PH,Splitter:()=>ZU,Statistic:()=>XF,Steps:()=>bW,Switch:()=>MW,Table:()=>RV,Tabs:()=>qE,Tag:()=>XV,TimePicker:()=>cX,Timeline:()=>bX,Tooltip:()=>hy,Tour:()=>WX,Transfer:()=>pG,Tree:()=>Nq,TreeSelect:()=>FG,Typography:()=>RY,Upload:()=>EU,Watermark:()=>zU,message:()=>OD,notification:()=>_D,theme:()=>tX,unstableSetRender:()=>Wl,version:()=>ho});var o=n(73884),r=n.n(o),i=n(98139),a=n.n(i),l=n(58168),c=n(92711);function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[];return r().Children.forEach(e,function(e){(void 0!==e&&null!==e||t.keepEmpty)&&(Array.isArray(e)?n=n.concat(s(e)):(0,c.A)(e)&&e.props?n=n.concat(s(e.props.children,t)):n.push(e))}),n}var u=n(97907),d=n(89379),p=n(82284),f=n(10486),m=n.n(f);function g(e){return e instanceof HTMLElement||e instanceof SVGElement}function v(e){return e&&"object"===(0,p.A)(e)&&g(e.nativeElement)?e.nativeElement:g(e)?e:null}function h(e){var t,n=v(e);return n||(e instanceof r().Component?null===(t=m().findDOMNode)||void 0===t?void 0:t.call(m(),e):null)}var b=n(13758),y=o.createContext(null);var C=function(){if("undefined"!==typeof Map)return Map;function e(e,t){var n=-1;return e.some(function(e,o){return e[0]===t&&(n=o,!0)}),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),o=this.__entries__[n];return o&&o[1]},t.prototype.set=function(t,n){var o=e(this.__entries__,t);~o?this.__entries__[o][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,o=e(n,t);~o&&n.splice(o,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,o=this.__entries__;n<o.length;n++){var r=o[n];e.call(t,r[1],r[0])}},t}()}(),x="undefined"!==typeof window&&"undefined"!==typeof document&&window.document===document,$="undefined"!==typeof n.g&&n.g.Math===Math?n.g:"undefined"!==typeof self&&self.Math===Math?self:"undefined"!==typeof window&&window.Math===Math?window:Function("return this")(),w="function"===typeof requestAnimationFrame?requestAnimationFrame.bind($):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)};var S=["top","right","bottom","left","width","height","size","weight"],k="undefined"!==typeof MutationObserver,E=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,o=!1,r=0;function i(){n&&(n=!1,e()),o&&l()}function a(){w(i)}function l(){var e=Date.now();if(n){if(e-r<2)return;o=!0}else n=!0,o=!1,setTimeout(a,t);r=e}return l}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter(function(e){return e.gatherActive(),e.hasActive()});return e.forEach(function(e){return e.broadcastActive()}),e.length>0},e.prototype.connect_=function(){x&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),k?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){x&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;S.some(function(e){return!!~n.indexOf(e)})&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),O=function(e,t){for(var n=0,o=Object.keys(t);n<o.length;n++){var r=o[n];Object.defineProperty(e,r,{value:t[r],enumerable:!1,writable:!1,configurable:!0})}return e},A=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||$},I=T(0,0,0,0);function N(e){return parseFloat(e)||0}function M(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(t,n){return t+N(e["border-"+n+"-width"])},0)}function j(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return I;var o=A(e).getComputedStyle(e),r=function(e){for(var t={},n=0,o=["top","right","bottom","left"];n<o.length;n++){var r=o[n],i=e["padding-"+r];t[r]=N(i)}return t}(o),i=r.left+r.right,a=r.top+r.bottom,l=N(o.width),c=N(o.height);if("border-box"===o.boxSizing&&(Math.round(l+i)!==t&&(l-=M(o,"left","right")+i),Math.round(c+a)!==n&&(c-=M(o,"top","bottom")+a)),!function(e){return e===A(e).document.documentElement}(e)){var s=Math.round(l+i)-t,u=Math.round(c+a)-n;1!==Math.abs(s)&&(l-=s),1!==Math.abs(u)&&(c-=u)}return T(r.left,r.top,l,c)}var P="undefined"!==typeof SVGGraphicsElement?function(e){return e instanceof A(e).SVGGraphicsElement}:function(e){return e instanceof A(e).SVGElement&&"function"===typeof e.getBBox};function R(e){return x?P(e)?function(e){var t=e.getBBox();return T(0,0,t.width,t.height)}(e):j(e):I}function T(e,t,n,o){return{x:e,y:t,width:n,height:o}}var z=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=T(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=R(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),B=function(e,t){var n=function(e){var t=e.x,n=e.y,o=e.width,r=e.height,i="undefined"!==typeof DOMRectReadOnly?DOMRectReadOnly:Object,a=Object.create(i.prototype);return O(a,{x:t,y:n,width:o,height:r,top:n,right:t+o,bottom:r+n,left:t}),a}(t);O(this,{target:e,contentRect:n})},H=function(){function e(e,t,n){if(this.activeObservations_=[],this.observations_=new C,"function"!==typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(e instanceof A(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new z(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(e instanceof A(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(t){t.isActive()&&e.activeObservations_.push(t)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map(function(e){return new B(e.target,e.broadcastRect())});this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),D="undefined"!==typeof WeakMap?new WeakMap:new C,L=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=E.getInstance(),o=new H(t,n,this);D.set(this,o)};["observe","unobserve","disconnect"].forEach(function(e){L.prototype[e]=function(){var t;return(t=D.get(this))[e].apply(t,arguments)}});const F="undefined"!==typeof $.ResizeObserver?$.ResizeObserver:L;var W=new Map;var _=new F(function(e){e.forEach(function(e){var t,n=e.target;null===(t=W.get(n))||void 0===t||t.forEach(function(e){return e(n)})})});function K(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var q=n(20816);function V(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(0,q.A)(o.key),o)}}function X(e,t,n){return t&&V(e.prototype,t),n&&V(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function G(e,t){return G=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},G(e,t)}function Y(e,t){if("function"!=typeof t&&null!==t)throw new 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&&G(e,t)}function U(e){return U=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},U(e)}function Q(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Q=function(){return!!e})()}function Z(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function J(e,t){if(t&&("object"==(0,p.A)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Z(e)}function ee(e){var t=Q();return function(){var n,o=U(e);if(t){var r=U(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return J(this,n)}}var te=function(e){Y(n,e);var t=ee(n);function n(){return K(this,n),t.apply(this,arguments)}return X(n,[{key:"render",value:function(){return this.props.children}}]),n}(o.Component);var ne=o.forwardRef(function(e,t){var n=e.children,r=e.disabled,i=o.useRef(null),a=o.useRef(null),l=o.useContext(y),c="function"===typeof n,s=c?n(i):n,u=o.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),f=!c&&o.isValidElement(s)&&(0,b.f3)(s),m=f?(0,b.A9)(s):null,g=(0,b.xK)(m,i),v=function(){var e;return h(i.current)||(i.current&&"object"===(0,p.A)(i.current)?h(null===(e=i.current)||void 0===e?void 0:e.nativeElement):null)||h(a.current)};o.useImperativeHandle(t,function(){return v()});var C=o.useRef(e);C.current=e;var x=o.useCallback(function(e){var t=C.current,n=t.onResize,o=t.data,r=e.getBoundingClientRect(),i=r.width,a=r.height,c=e.offsetWidth,s=e.offsetHeight,p=Math.floor(i),f=Math.floor(a);if(u.current.width!==p||u.current.height!==f||u.current.offsetWidth!==c||u.current.offsetHeight!==s){var m={width:p,height:f,offsetWidth:c,offsetHeight:s};u.current=m;var g=c===Math.round(i)?i:c,v=s===Math.round(a)?a:s,h=(0,d.A)((0,d.A)({},m),{},{offsetWidth:g,offsetHeight:v});null===l||void 0===l||l(h,e,o),n&&Promise.resolve().then(function(){n(h,e)})}},[]);return o.useEffect(function(){var e,t,n=v();return n&&!r&&(e=n,t=x,W.has(e)||(W.set(e,new Set),_.observe(e)),W.get(e).add(t)),function(){return function(e,t){W.has(e)&&(W.get(e).delete(t),W.get(e).size||(_.unobserve(e),W.delete(e)))}(n,x)}},[i.current,r]),o.createElement(te,{ref:a},f?o.cloneElement(s,{ref:g}):s)});const oe=ne;var re=o.forwardRef(function(e,t){var n=e.children;return("function"===typeof n?[n]:s(n)).map(function(n,r){var i=(null===n||void 0===n?void 0:n.key)||"".concat("rc-observer-key","-").concat(r);return o.createElement(oe,(0,l.A)({},e,{key:i,ref:0===r?t:void 0}),n)})});re.Collection=function(e){var t=e.children,n=e.onBatchResize,r=o.useRef(0),i=o.useRef([]),a=o.useContext(y),l=o.useCallback(function(e,t,o){r.current+=1;var l=r.current;i.current.push({size:e,element:t,data:o}),Promise.resolve().then(function(){l===r.current&&(null===n||void 0===n||n(i.current),i.current=[])}),null===a||void 0===a||a(e,t,o)},[n,a]);return o.createElement(y.Provider,{value:l},t)};const ie=re;var ae=n(43145);function le(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}var ce=n(27800);function se(e){return function(e){if(Array.isArray(e))return(0,ae.A)(e)}(e)||le(e)||(0,ce.A)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var ue=function(e){return+setTimeout(e,16)},de=function(e){return clearTimeout(e)};"undefined"!==typeof window&&"requestAnimationFrame"in window&&(ue=function(e){return window.requestAnimationFrame(e)},de=function(e){return window.cancelAnimationFrame(e)});var pe=0,fe=new Map;function me(e){fe.delete(e)}var ge=function(e){var t=pe+=1;return function n(o){if(0===o)me(t),e();else{var r=ue(function(){n(o-1)});fe.set(t,r)}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:1),t};ge.cancel=function(e){var t=fe.get(e);return me(e),de(t)};const ve=ge;const he=function(e){let t;const n=function(){if(null==t){for(var n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];t=ve((n=>()=>{t=null,e.apply(void 0,se(n))})(o))}};return n.cancel=()=>{ve.cancel(t),t=null},n},be="ant",ye="anticon",Ce=["outlined","borderless","filled","underlined"],xe=o.createContext({getPrefixCls:(e,t)=>t||(e?`${be}-${e}`:be),iconPrefixCls:ye}),{Consumer:$e}=xe,we={};function Se(e){const t=o.useContext(xe),{getPrefixCls:n,direction:r,getPopupContainer:i}=t,a=t[e];return Object.assign(Object.assign({classNames:we,styles:we},a),{getPrefixCls:n,direction:r,getPopupContainer:i})}var ke=n(5544),Ee=n(64467);const Oe=function(e){for(var t,n=0,o=0,r=e.length;r>=4;++o,r-=4)t=1540483477*(65535&(t=255&e.charCodeAt(o)|(255&e.charCodeAt(++o))<<8|(255&e.charCodeAt(++o))<<16|(255&e.charCodeAt(++o))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(r){case 3:n^=(255&e.charCodeAt(o+2))<<16;case 2:n^=(255&e.charCodeAt(o+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(o)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)};var Ae=n(80930),Ie=n(13709);const Ne=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=new Set;return function e(t,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,a=o.has(t);if((0,u.Ay)(!a,"Warning: There may be circular references"),a)return!1;if(t===r)return!0;if(n&&i>1)return!1;o.add(t);var l=i+1;if(Array.isArray(t)){if(!Array.isArray(r)||t.length!==r.length)return!1;for(var c=0;c<t.length;c++)if(!e(t[c],r[c],l))return!1;return!0}if(t&&r&&"object"===(0,p.A)(t)&&"object"===(0,p.A)(r)){var s=Object.keys(t);return s.length===Object.keys(r).length&&s.every(function(n){return e(t[n],r[n],l)})}return!1}(e,t)};function Me(e){return e.join("%")}var je=function(){function e(t){K(this,e),(0,Ee.A)(this,"instanceId",void 0),(0,Ee.A)(this,"cache",new Map),(0,Ee.A)(this,"extracted",new Set),this.instanceId=t}return X(e,[{key:"get",value:function(e){return this.opGet(Me(e))}},{key:"opGet",value:function(e){return this.cache.get(e)||null}},{key:"update",value:function(e,t){return this.opUpdate(Me(e),t)}},{key:"opUpdate",value:function(e,t){var n=t(this.cache.get(e));null===n?this.cache.delete(e):this.cache.set(e,n)}}]),e}();const Pe=je;var Re="data-token-hash",Te="data-css-hash",ze="__cssinjs_instance__";function Be(){var e=Math.random().toString(12).slice(2);if("undefined"!==typeof document&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(Te,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(t){t[ze]=t[ze]||e,t[ze]===e&&document.head.insertBefore(t,n)});var o={};Array.from(document.querySelectorAll("style[".concat(Te,"]"))).forEach(function(t){var n,r=t.getAttribute(Te);o[r]?t[ze]===e&&(null===(n=t.parentNode)||void 0===n||n.removeChild(t)):o[r]=!0})}return new Pe(e)}var He=o.createContext({hashPriority:"low",cache:Be(),defaultCache:!0});const De=He;var Le=n(52931);const Fe=X(function e(){K(this,e)});var We="CALC_UNIT",_e=new RegExp(We,"g");function Ke(e){return"number"===typeof e?"".concat(e).concat(We):e}(function(e){Y(n,e);var t=ee(n);function n(e,o){var r;K(this,n),r=t.call(this),(0,Ee.A)(Z(r),"result",""),(0,Ee.A)(Z(r),"unitlessCssVar",void 0),(0,Ee.A)(Z(r),"lowPriority",void 0);var i=(0,p.A)(e);return r.unitlessCssVar=o,e instanceof n?r.result="(".concat(e.result,")"):"number"===i?r.result=Ke(e):"string"===i&&(r.result=e),r}X(n,[{key:"add",value:function(e){return e instanceof n?this.result="".concat(this.result," + ").concat(e.getResult()):"number"!==typeof e&&"string"!==typeof e||(this.result="".concat(this.result," + ").concat(Ke(e))),this.lowPriority=!0,this}},{key:"sub",value:function(e){return e instanceof n?this.result="".concat(this.result," - ").concat(e.getResult()):"number"!==typeof e&&"string"!==typeof e||(this.result="".concat(this.result," - ").concat(Ke(e))),this.lowPriority=!0,this}},{key:"mul",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof n?this.result="".concat(this.result," * ").concat(e.getResult(!0)):"number"!==typeof e&&"string"!==typeof e||(this.result="".concat(this.result," * ").concat(e)),this.lowPriority=!1,this}},{key:"div",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof n?this.result="".concat(this.result," / ").concat(e.getResult(!0)):"number"!==typeof e&&"string"!==typeof e||(this.result="".concat(this.result," / ").concat(e)),this.lowPriority=!1,this}},{key:"getResult",value:function(e){return this.lowPriority||e?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(e){var t=this,n=(e||{}).unit,o=!0;return"boolean"===typeof n?o=n:Array.from(this.unitlessCssVar).some(function(e){return t.result.includes(e)})&&(o=!1),this.result=this.result.replace(_e,o?"px":""),"undefined"!==typeof this.lowPriority?"calc(".concat(this.result,")"):this.result}}])})(Fe),function(e){Y(n,e);var t=ee(n);function n(e){var o;return K(this,n),o=t.call(this),(0,Ee.A)(Z(o),"result",0),e instanceof n?o.result=e.result:"number"===typeof e&&(o.result=e),o}X(n,[{key:"add",value:function(e){return e instanceof n?this.result+=e.result:"number"===typeof e&&(this.result+=e),this}},{key:"sub",value:function(e){return e instanceof n?this.result-=e.result:"number"===typeof e&&(this.result-=e),this}},{key:"mul",value:function(e){return e instanceof n?this.result*=e.result:"number"===typeof e&&(this.result*=e),this}},{key:"div",value:function(e){return e instanceof n?this.result/=e.result:"number"===typeof e&&(this.result/=e),this}},{key:"equal",value:function(){return this.result}}])}(Fe);var qe=function(){function e(){K(this,e),(0,Ee.A)(this,"cache",void 0),(0,Ee.A)(this,"keys",void 0),(0,Ee.A)(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return X(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(e){var t,n,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r={map:this.cache};return e.forEach(function(e){var t;r?r=null===(t=r)||void 0===t||null===(t=t.map)||void 0===t?void 0:t.get(e):r=void 0}),null!==(t=r)&&void 0!==t&&t.value&&o&&(r.value[1]=this.cacheCallTimes++),null===(n=r)||void 0===n?void 0:n.value}},{key:"get",value:function(e){var t;return null===(t=this.internalGet(e,!0))||void 0===t?void 0:t[0]}},{key:"has",value:function(e){return!!this.internalGet(e)}},{key:"set",value:function(t,n){var o=this;if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var r=this.keys.reduce(function(e,t){var n=(0,ke.A)(e,2)[1];return o.internalGet(t)[1]<n?[t,o.internalGet(t)[1]]:e},[this.keys[0],this.cacheCallTimes]),i=(0,ke.A)(r,1)[0];this.delete(i)}this.keys.push(t)}var a=this.cache;t.forEach(function(e,r){if(r===t.length-1)a.set(e,{value:[n,o.cacheCallTimes++]});else{var i=a.get(e);i?i.map||(i.map=new Map):a.set(e,{map:new Map}),a=a.get(e).map}})}},{key:"deleteByPath",value:function(e,t){var n,o=e.get(t[0]);if(1===t.length)return o.map?e.set(t[0],{map:o.map}):e.delete(t[0]),null===(n=o.value)||void 0===n?void 0:n[0];var r=this.deleteByPath(o.map,t.slice(1));return o.map&&0!==o.map.size||o.value||e.delete(t[0]),r}},{key:"delete",value:function(e){if(this.has(e))return this.keys=this.keys.filter(function(t){return!function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,e)}),this.deleteByPath(this.cache,e)}}]),e}();(0,Ee.A)(qe,"MAX_CACHE_SIZE",20),(0,Ee.A)(qe,"MAX_CACHE_OFFSET",5);var Ve=0,Xe=function(){function e(t){K(this,e),(0,Ee.A)(this,"derivatives",void 0),(0,Ee.A)(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=Ve,0===t.length&&(0,u.$e)(t.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),Ve+=1}return X(e,[{key:"getDerivativeToken",value:function(e){return this.derivatives.reduce(function(t,n){return n(e,t)},void 0)}}]),e}(),Ge=new qe;function Ye(e){var t=Array.isArray(e)?e:[e];return Ge.has(t)||Ge.set(t,new Xe(t)),Ge.get(t)}var Ue=new WeakMap,Qe={};var Ze=new WeakMap;function Je(e){var t=Ze.get(e)||"";return t||(Object.keys(e).forEach(function(n){var o=e[n];t+=n,o instanceof Xe?t+=o.id:o&&"object"===(0,p.A)(o)?t+=Je(o):t+=o}),t=Oe(t),Ze.set(e,t)),t}function et(e,t){return Oe("".concat(t,"_").concat(Je(e)))}"random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,"");var tt=(0,Le.A)();function nt(e){return"number"===typeof e?"".concat(e,"px"):e}function ot(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(arguments.length>4&&void 0!==arguments[4]&&arguments[4])return e;var r=(0,d.A)((0,d.A)({},o),{},(0,Ee.A)((0,Ee.A)({},Re,t),Te,n)),i=Object.keys(r).map(function(e){var t=r[e];return t?"".concat(e,'="').concat(t,'"'):null}).filter(function(e){return e}).join(" ");return"<style ".concat(i,">").concat(e,"</style>")}var rt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"--".concat(t?"".concat(t,"-"):"").concat(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},it=function(e,t,n){return Object.keys(e).length?".".concat(t).concat(null!==n&&void 0!==n&&n.scope?".".concat(n.scope):"","{").concat(Object.entries(e).map(function(e){var t=(0,ke.A)(e,2),n=t[0],o=t[1];return"".concat(n,":").concat(o,";")}).join(""),"}"):""},at=function(e,t,n){var o={},r={};return Object.entries(e).forEach(function(e){var t,i,a=(0,ke.A)(e,2),l=a[0],c=a[1];if(null!==n&&void 0!==n&&null!==(t=n.preserve)&&void 0!==t&&t[l])r[l]=c;else if(("string"===typeof c||"number"===typeof c)&&(null===n||void 0===n||null===(i=n.ignore)||void 0===i||!i[l])){var s,u=rt(l,null===n||void 0===n?void 0:n.prefix);o[u]="number"!==typeof c||null!==n&&void 0!==n&&null!==(s=n.unitless)&&void 0!==s&&s[l]?String(c):"".concat(c,"px"),r[l]="var(".concat(u,")")}}),[r,it(o,t,{scope:null===n||void 0===n?void 0:n.scope})]},lt=(0,Le.A)()?o.useLayoutEffect:o.useEffect,ct=function(e,t){var n=o.useRef(!0);lt(function(){return e(n.current)},t),lt(function(){return n.current=!1,function(){n.current=!0}},[])},st=function(e,t){ct(function(t){if(!t)return e()},t)};const ut=ct;var dt=(0,d.A)({},o).useInsertionEffect;const pt=dt?function(e,t,n){return dt(function(){return e(),t()},n)}:function(e,t,n){o.useMemo(e,n),ut(function(){return t(!0)},n)};const ft="undefined"!==typeof(0,d.A)({},o).useInsertionEffect?function(e){var t=[],n=!1;return o.useEffect(function(){return n=!1,function(){n=!0,t.length&&t.forEach(function(e){return e()})}},e),function(e){n||t.push(e)}}:function(){return function(e){e()}};const mt=function(){return!1};function gt(e,t,n,r,i){var a=o.useContext(De).cache,l=Me([e].concat(se(t))),c=ft([l]),s=(mt(),function(e){a.opUpdate(l,function(t){var o=t||[void 0,void 0],r=(0,ke.A)(o,2),i=r[0];var a=[void 0===i?0:i,r[1]||n()];return e?e(a):a})});o.useMemo(function(){s()},[l]);var u=a.opGet(l)[1];return pt(function(){null===i||void 0===i||i(u)},function(e){return s(function(t){var n=(0,ke.A)(t,2),o=n[0],r=n[1];return e&&0===o&&(null===i||void 0===i||i(u)),[o+1,r]}),function(){a.opUpdate(l,function(t){var n=t||[],o=(0,ke.A)(n,2),i=o[0],s=void 0===i?0:i,u=o[1];return 0===s-1?(c(function(){!e&&a.opGet(l)||null===r||void 0===r||r(u,!1)}),null):[s-1,u]})}},[l]),u}var vt={},ht=new Map;function bt(e,t){ht.set(e,(ht.get(e)||0)-1);var n=new Set;ht.forEach(function(e,t){e<=0&&n.add(t)}),ht.size-n.size>0&&n.forEach(function(e){!function(e,t){"undefined"!==typeof document&&document.querySelectorAll("style[".concat(Re,'="').concat(e,'"]')).forEach(function(e){var n;e[ze]===t&&(null===(n=e.parentNode)||void 0===n||n.removeChild(e))})}(e,t),ht.delete(e)})}var yt=function(e,t,n,o){var r=n.getDerivativeToken(e),i=(0,d.A)((0,d.A)({},r),t);return o&&(i=o(i)),i},Ct="token";function xt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=(0,o.useContext)(De),i=r.cache.instanceId,a=r.container,l=n.salt,c=void 0===l?"":l,s=n.override,u=void 0===s?vt:s,p=n.formatToken,f=n.getComputedToken,m=n.cssVar,g=function(e,t){for(var n=Ue,o=0;o<t.length;o+=1){var r=t[o];n.has(r)||n.set(r,new WeakMap),n=n.get(r)}return n.has(Qe)||n.set(Qe,e()),n.get(Qe)}(function(){return Object.assign.apply(Object,[{}].concat(se(t)))},t),v=Je(g),h=Je(u),b=m?Je(m):"",y=gt(Ct,[c,e.id,v,h,b],function(){var t,n=f?f(g,u,e):yt(g,u,e,p),o=(0,d.A)({},n),r="";if(m){var i=at(n,m.key,{prefix:m.prefix,ignore:m.ignore,unitless:m.unitless,preserve:m.preserve}),a=(0,ke.A)(i,2);n=a[0],r=a[1]}var l=et(n,c);n._tokenKey=l,o._tokenKey=et(o,c);var s=null!==(t=null===m||void 0===m?void 0:m.key)&&void 0!==t?t:l;n._themeKey=s,function(e){ht.set(e,(ht.get(e)||0)+1)}(s);var v="".concat("css","-").concat(Oe(l));return n._hashId=v,[n,v,o,r,(null===m||void 0===m?void 0:m.key)||""]},function(e){bt(e[0]._themeKey,i)},function(e){var t=(0,ke.A)(e,4),n=t[0],o=t[3];if(m&&o){var r=(0,Ae.BD)(o,Oe("css-variables-".concat(n._themeKey)),{mark:Te,prepend:"queue",attachTo:a,priority:-999});r[ze]=i,r.setAttribute(Re,n._themeKey)}});return y}const $t={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var wt="comm",St="rule",kt="decl",Et=Math.abs,Ot=String.fromCharCode;Object.assign;function At(e){return e.trim()}function It(e,t,n){return e.replace(t,n)}function Nt(e,t,n){return e.indexOf(t,n)}function Mt(e,t){return 0|e.charCodeAt(t)}function jt(e,t,n){return e.slice(t,n)}function Pt(e){return e.length}function Rt(e,t){return t.push(e),e}function Tt(e,t){for(var n="",o=0;o<e.length;o++)n+=t(e[o],o,e,t)||"";return n}function zt(e,t,n,o){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case"@namespace":case kt:return e.return=e.return||e.value;case wt:return"";case"@keyframes":return e.return=e.value+"{"+Tt(e.children,o)+"}";case St:if(!Pt(e.value=e.props.join(",")))return""}return Pt(n=Tt(e.children,o))?e.return=e.value+"{"+n+"}":""}var Bt=1,Ht=1,Dt=0,Lt=0,Ft=0,Wt="";function _t(e,t,n,o,r,i,a,l){return{value:e,root:t,parent:n,type:o,props:r,children:i,line:Bt,column:Ht,length:a,return:"",siblings:l}}function Kt(){return Ft=Lt>0?Mt(Wt,--Lt):0,Ht--,10===Ft&&(Ht=1,Bt--),Ft}function qt(){return Ft=Lt<Dt?Mt(Wt,Lt++):0,Ht++,10===Ft&&(Ht=1,Bt++),Ft}function Vt(){return Mt(Wt,Lt)}function Xt(){return Lt}function Gt(e,t){return jt(Wt,e,t)}function Yt(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Ut(e){return Bt=Ht=1,Dt=Pt(Wt=e),Lt=0,[]}function Qt(e){return Wt="",e}function Zt(e){return At(Gt(Lt-1,tn(91===e?e+2:40===e?e+1:e)))}function Jt(e){for(;(Ft=Vt())&&Ft<33;)qt();return Yt(e)>2||Yt(Ft)>3?"":" "}function en(e,t){for(;--t&&qt()&&!(Ft<48||Ft>102||Ft>57&&Ft<65||Ft>70&&Ft<97););return Gt(e,Xt()+(t<6&&32==Vt()&&32==qt()))}function tn(e){for(;qt();)switch(Ft){case e:return Lt;case 34:case 39:34!==e&&39!==e&&tn(Ft);break;case 40:41===e&&tn(e);break;case 92:qt()}return Lt}function nn(e,t){for(;qt()&&e+Ft!==57&&(e+Ft!==84||47!==Vt()););return"/*"+Gt(t,Lt-1)+"*"+Ot(47===e?e:qt())}function on(e){for(;!Yt(Vt());)qt();return Gt(e,Lt)}function rn(e){return Qt(an("",null,null,null,[""],e=Ut(e),0,[0],e))}function an(e,t,n,o,r,i,a,l,c){for(var s=0,u=0,d=a,p=0,f=0,m=0,g=1,v=1,h=1,b=0,y="",C=r,x=i,$=o,w=y;v;)switch(m=b,b=qt()){case 40:if(108!=m&&58==Mt(w,d-1)){-1!=Nt(w+=It(Zt(b),"&","&\f"),"&\f",Et(s?l[s-1]:0))&&(h=-1);break}case 34:case 39:case 91:w+=Zt(b);break;case 9:case 10:case 13:case 32:w+=Jt(m);break;case 92:w+=en(Xt()-1,7);continue;case 47:switch(Vt()){case 42:case 47:Rt(cn(nn(qt(),Xt()),t,n,c),c),5!=Yt(m||1)&&5!=Yt(Vt()||1)||!Pt(w)||" "===jt(w,-1,void 0)||(w+=" ");break;default:w+="/"}break;case 123*g:l[s++]=Pt(w)*h;case 125*g:case 59:case 0:switch(b){case 0:case 125:v=0;case 59+u:-1==h&&(w=It(w,/\f/g,"")),f>0&&(Pt(w)-d||0===g&&47===m)&&Rt(f>32?sn(w+";",o,n,d-1,c):sn(It(w," ","")+";",o,n,d-2,c),c);break;case 59:w+=";";default:if(Rt($=ln(w,t,n,s,u,r,l,y,C=[],x=[],d,i),i),123===b)if(0===u)an(w,t,$,$,C,i,d,l,x);else{switch(p){case 99:if(110===Mt(w,3))break;case 108:if(97===Mt(w,2))break;default:u=0;case 100:case 109:case 115:}u?an(e,$,$,o&&Rt(ln(e,$,$,0,0,r,l,y,r,C=[],d,x),x),r,x,d,l,o?C:x):an(w,$,$,$,[""],x,0,l,x)}}s=u=f=0,g=h=1,y=w="",d=a;break;case 58:d=1+Pt(w),f=m;default:if(g<1)if(123==b)--g;else if(125==b&&0==g++&&125==Kt())continue;switch(w+=Ot(b),b*g){case 38:h=u>0?1:(w+="\f",-1);break;case 44:l[s++]=(Pt(w)-1)*h,h=1;break;case 64:45===Vt()&&(w+=Zt(qt())),p=Vt(),u=d=Pt(y=w+=on(Xt())),b++;break;case 45:45===m&&2==Pt(w)&&(g=0)}}return i}function ln(e,t,n,o,r,i,a,l,c,s,u,d){for(var p=r-1,f=0===r?i:[""],m=function(e){return e.length}(f),g=0,v=0,h=0;g<o;++g)for(var b=0,y=jt(e,p+1,p=Et(v=a[g])),C=e;b<m;++b)(C=At(v>0?f[b]+" "+y:It(y,/&\f/g,f[b])))&&(c[h++]=C);return _t(e,t,n,0===r?St:l,c,s,u,d)}function cn(e,t,n,o){return _t(e,t,n,wt,Ot(Ft),jt(e,2,-2),0,o)}function sn(e,t,n,o,r){return _t(e,t,n,kt,jt(e,0,o),jt(e,o+1,-1),o,r)}var un,dn="data-ant-cssinjs-cache-path",pn="_FILE_STYLE__";var fn=!0;function mn(e){return function(){if(!un&&(un={},(0,Le.A)())){var e=document.createElement("div");e.className=dn,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";(t=t.replace(/^"/,"").replace(/"$/,"")).split(";").forEach(function(e){var t=e.split(":"),n=(0,ke.A)(t,2),o=n[0],r=n[1];un[o]=r});var n,o=document.querySelector("style[".concat(dn,"]"));o&&(fn=!1,null===(n=o.parentNode)||void 0===n||n.removeChild(o)),document.body.removeChild(e)}}(),!!un[e]}var gn="_multi_value_";function vn(e){return Tt(rn(e),zt).replace(/\{%%%\:[^;];}/g,";")}function hn(e,t,n){if(!t)return e;var o=".".concat(t),r="low"===n?":where(".concat(o,")"):o;return e.split(",").map(function(e){var t,n=e.trim().split(/\s+/),o=n[0]||"",i=(null===(t=o.match(/^\w+/))||void 0===t?void 0:t[0])||"";return[o="".concat(i).concat(r).concat(o.slice(i.length))].concat(se(n.slice(1))).join(" ")}).join(",")}var bn=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]},r=o.root,i=o.injectHash,a=o.parentSelectors,l=n.hashId,c=n.layer,s=(n.path,n.hashPriority),u=n.transformers,f=void 0===u?[]:u,m=(n.linters,""),g={};function v(t){var o=t.getName(l);if(!g[o]){var r=e(t.style,n,{root:!1,parentSelectors:a}),i=(0,ke.A)(r,1)[0];g[o]="@keyframes ".concat(t.getName(l)).concat(i)}}var h=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.forEach(function(t){Array.isArray(t)?e(t,n):t&&n.push(t)}),n}(Array.isArray(t)?t:[t]);return h.forEach(function(t){var o="string"!==typeof t||r?t:{};if("string"===typeof o)m+="".concat(o,"\n");else if(o._keyframe)v(o);else{var c=f.reduce(function(e,t){var n;return(null===t||void 0===t||null===(n=t.visit)||void 0===n?void 0:n.call(t,e))||e},o);Object.keys(c).forEach(function(t){var o=c[t];if("object"!==(0,p.A)(o)||!o||"animationName"===t&&o._keyframe||function(e){return"object"===(0,p.A)(e)&&e&&("_skip_check_"in e||gn in e)}(o)){var u;function S(e,t){var n=e.replace(/[A-Z]/g,function(e){return"-".concat(e.toLowerCase())}),o=t;$t[e]||"number"!==typeof o||0===o||(o="".concat(o,"px")),"animationName"===e&&null!==t&&void 0!==t&&t._keyframe&&(v(t),o=t.getName(l)),m+="".concat(n,":").concat(o,";")}var f=null!==(u=null===o||void 0===o?void 0:o.value)&&void 0!==u?u:o;"object"===(0,p.A)(o)&&null!==o&&void 0!==o&&o[gn]&&Array.isArray(f)?f.forEach(function(e){S(t,e)}):S(t,f)}else{var h=!1,b=t.trim(),y=!1;(r||i)&&l?b.startsWith("@")?h=!0:b=hn("&"===b?"":t,l,s):!r||l||"&"!==b&&""!==b||(b="",y=!0);var C=e(o,n,{root:y,injectHash:h,parentSelectors:[].concat(se(a),[b])}),x=(0,ke.A)(C,2),$=x[0],w=x[1];g=(0,d.A)((0,d.A)({},g),w),m+="".concat(b).concat($)}})}}),r?c&&(m&&(m="@layer ".concat(c.name," {").concat(m,"}")),c.dependencies&&(g["@layer ".concat(c.name)]=c.dependencies.map(function(e){return"@layer ".concat(e,", ").concat(c.name,";")}).join("\n"))):m="{".concat(m,"}"),[m,g]};function yn(e,t){return Oe("".concat(e.join("%")).concat(t))}function Cn(){return null}var xn="style";function $n(e,t){var n=e.token,r=e.path,i=e.hashId,a=e.layer,c=e.nonce,s=e.clientOnly,u=e.order,p=void 0===u?0:u,f=o.useContext(De),m=f.autoClear,g=(f.mock,f.defaultCache),v=f.hashPriority,h=f.container,b=f.ssrInline,y=f.transformers,C=f.linters,x=f.cache,$=f.layer,w=n._tokenKey,S=[w];$&&S.push("layer"),S.push.apply(S,se(r));var k=tt;var E=gt(xn,S,function(){var e=S.join("|");if(mn(e)){var n=function(e){var t=un[e],n=null;if(t&&(0,Le.A)())if(fn)n=pn;else{var o=document.querySelector("style[".concat(Te,'="').concat(un[e],'"]'));o?n=o.innerHTML:delete un[e]}return[n,t]}(e),o=(0,ke.A)(n,2),l=o[0],c=o[1];if(l)return[l,w,c,{},s,p]}var u=t(),d=bn(u,{hashId:i,hashPriority:v,layer:$?a:void 0,path:r.join("-"),transformers:y,linters:C}),f=(0,ke.A)(d,2),m=f[0],g=f[1],h=vn(m),b=yn(S,h);return[h,w,b,g,s,p]},function(e,t){var n=(0,ke.A)(e,3)[2];(t||m)&&tt&&(0,Ae.m6)(n,{mark:Te,attachTo:h})},function(e){var t=(0,ke.A)(e,4),n=t[0],o=(t[1],t[2]),r=t[3];if(k&&n!==pn){var i={mark:Te,prepend:!$&&"queue",attachTo:h,priority:p},a="function"===typeof c?c():c;a&&(i.csp={nonce:a});var l=[],s=[];Object.keys(r).forEach(function(e){e.startsWith("@layer")?l.push(e):s.push(e)}),l.forEach(function(e){(0,Ae.BD)(vn(r[e]),"_layer-".concat(e),(0,d.A)((0,d.A)({},i),{},{prepend:!0}))});var u=(0,Ae.BD)(n,o,i);u[ze]=x.instanceId,u.setAttribute(Re,w),s.forEach(function(e){(0,Ae.BD)(vn(r[e]),"_effect-".concat(e),i)})}}),O=(0,ke.A)(E,3),A=O[0],I=O[1],N=O[2];return function(e){var t;return t=b&&!k&&g?o.createElement("style",(0,l.A)({},(0,Ee.A)((0,Ee.A)({},Re,I),Te,N),{dangerouslySetInnerHTML:{__html:A}})):o.createElement(Cn,null),o.createElement(o.Fragment,null,t,e)}}var wn="cssVar";const Sn=function(e,t){var n=e.key,r=e.prefix,i=e.unitless,a=e.ignore,l=e.token,c=e.scope,s=void 0===c?"":c,u=(0,o.useContext)(De),d=u.cache.instanceId,p=u.container,f=l._tokenKey,m=[].concat(se(e.path),[n,s,f]),g=gt(wn,m,function(){var e=t(),o=at(e,n,{prefix:r,unitless:i,ignore:a,scope:s}),l=(0,ke.A)(o,2),c=l[0],u=l[1];return[c,u,yn(m,u),n]},function(e){var t=(0,ke.A)(e,3)[2];tt&&(0,Ae.m6)(t,{mark:Te,attachTo:p})},function(e){var t=(0,ke.A)(e,3),o=t[1],r=t[2];if(o){var i=(0,Ae.BD)(o,r,{mark:Te,prepend:"queue",attachTo:p,priority:-999});i[ze]=d,i.setAttribute(Re,n)}});return g};(0,Ee.A)((0,Ee.A)((0,Ee.A)({},xn,function(e,t,n){var o=(0,ke.A)(e,6),r=o[0],i=o[1],a=o[2],l=o[3],c=o[4],s=o[5],u=(n||{}).plain;if(c)return null;var d=r,p={"data-rc-order":"prependQueue","data-rc-priority":"".concat(s)};return d=ot(r,i,a,p,u),l&&Object.keys(l).forEach(function(e){if(!t[e]){t[e]=!0;var n=ot(vn(l[e]),i,"_effect-".concat(e),p,u);e.startsWith("@layer")?d=n+d:d+=n}}),[s,a,d]}),Ct,function(e,t,n){var o=(0,ke.A)(e,5),r=o[2],i=o[3],a=o[4],l=(n||{}).plain;if(!i)return null;var c=r._tokenKey;return[-999,c,ot(i,a,c,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},l)]}),wn,function(e,t,n){var o=(0,ke.A)(e,4),r=o[1],i=o[2],a=o[3],l=(n||{}).plain;if(!r)return null;return[-999,i,ot(r,a,i,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},l)]});var kn=function(){function e(t,n){K(this,e),(0,Ee.A)(this,"name",void 0),(0,Ee.A)(this,"style",void 0),(0,Ee.A)(this,"_keyframe",!0),this.name=t,this.style=n}return X(e,[{key:"getName",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?"".concat(e,"-").concat(this.name):this.name}}]),e}();const En=kn;function On(e){return e.notSplit=!0,e}On(["borderTop","borderBottom"]),On(["borderTop"]),On(["borderBottom"]),On(["borderLeft","borderRight"]),On(["borderLeft"]),On(["borderRight"]);var An=X(function e(){K(this,e)});const In=An;var Nn="CALC_UNIT",Mn=new RegExp(Nn,"g");function jn(e){return"number"===typeof e?"".concat(e).concat(Nn):e}var Pn=function(e){Y(n,e);var t=ee(n);function n(e,o){var r;K(this,n),r=t.call(this),(0,Ee.A)(Z(r),"result",""),(0,Ee.A)(Z(r),"unitlessCssVar",void 0),(0,Ee.A)(Z(r),"lowPriority",void 0);var i=(0,p.A)(e);return r.unitlessCssVar=o,e instanceof n?r.result="(".concat(e.result,")"):"number"===i?r.result=jn(e):"string"===i&&(r.result=e),r}return X(n,[{key:"add",value:function(e){return e instanceof n?this.result="".concat(this.result," + ").concat(e.getResult()):"number"!==typeof e&&"string"!==typeof e||(this.result="".concat(this.result," + ").concat(jn(e))),this.lowPriority=!0,this}},{key:"sub",value:function(e){return e instanceof n?this.result="".concat(this.result," - ").concat(e.getResult()):"number"!==typeof e&&"string"!==typeof e||(this.result="".concat(this.result," - ").concat(jn(e))),this.lowPriority=!0,this}},{key:"mul",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof n?this.result="".concat(this.result," * ").concat(e.getResult(!0)):"number"!==typeof e&&"string"!==typeof e||(this.result="".concat(this.result," * ").concat(e)),this.lowPriority=!1,this}},{key:"div",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof n?this.result="".concat(this.result," / ").concat(e.getResult(!0)):"number"!==typeof e&&"string"!==typeof e||(this.result="".concat(this.result," / ").concat(e)),this.lowPriority=!1,this}},{key:"getResult",value:function(e){return this.lowPriority||e?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(e){var t=this,n=(e||{}).unit,o=!0;return"boolean"===typeof n?o=n:Array.from(this.unitlessCssVar).some(function(e){return t.result.includes(e)})&&(o=!1),this.result=this.result.replace(Mn,o?"px":""),"undefined"!==typeof this.lowPriority?"calc(".concat(this.result,")"):this.result}}]),n}(In);const Rn=function(e){Y(n,e);var t=ee(n);function n(e){var o;return K(this,n),o=t.call(this),(0,Ee.A)(Z(o),"result",0),e instanceof n?o.result=e.result:"number"===typeof e&&(o.result=e),o}return X(n,[{key:"add",value:function(e){return e instanceof n?this.result+=e.result:"number"===typeof e&&(this.result+=e),this}},{key:"sub",value:function(e){return e instanceof n?this.result-=e.result:"number"===typeof e&&(this.result-=e),this}},{key:"mul",value:function(e){return e instanceof n?this.result*=e.result:"number"===typeof e&&(this.result*=e),this}},{key:"div",value:function(e){return e instanceof n?this.result/=e.result:"number"===typeof e&&(this.result/=e),this}},{key:"equal",value:function(){return this.result}}]),n}(In);const Tn=function(e,t){var n="css"===e?Pn:Rn;return function(e){return new n(e,t)}};const zn=function(e,t){return"".concat([t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function Bn(e){var t=o.useRef();t.current=e;var n=o.useCallback(function(){for(var e,n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];return null===(e=t.current)||void 0===e?void 0:e.call.apply(e,[t].concat(o))},[]);return n}function Hn(e){var t=o.useRef(!1),n=o.useState(e),r=(0,ke.A)(n,2),i=r[0],a=r[1];return o.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]),[i,function(e,n){n&&t.current||a(e)}]}function Dn(e){return void 0!==e}function Ln(e,t){var n=t||{},o=n.defaultValue,r=n.value,i=n.onChange,a=n.postState,l=Hn(function(){return Dn(r)?r:Dn(o)?"function"===typeof o?o():o:"function"===typeof e?e():e}),c=(0,ke.A)(l,2),s=c[0],u=c[1],d=void 0!==r?r:s,p=a?a(d):d,f=Bn(i),m=Hn([d]),g=(0,ke.A)(m,2),v=g[0],h=g[1];return st(function(){var e=v[0];s!==e&&f(s,e)},[v]),st(function(){Dn(r)||u(r)},[r]),[p,Bn(function(e,t){u(e,t),h([d],t)})]}function Fn(e,t){for(var n=e,o=0;o<t.length;o+=1){if(null===n||void 0===n)return;n=n[t[o]]}return n}var Wn=n(96369),_n=n(76562);function Kn(e){return(0,Wn.A)(e)||le(e)||(0,ce.A)(e)||(0,_n.A)()}function qn(e,t,n,o){if(!t.length)return n;var r,i=Kn(t),a=i[0],l=i.slice(1);return r=e||"number"!==typeof a?Array.isArray(e)?se(e):(0,d.A)({},e):[],o&&void 0===n&&1===l.length?delete r[a][l[0]]:r[a]=qn(r[a],l,n,o),r}function Vn(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return t.length&&o&&void 0===n&&!Fn(e,t.slice(0,-1))?e:qn(e,t,n,o)}function Xn(e){return Array.isArray(e)?[]:{}}var Gn="undefined"===typeof Reflect?Object.keys:Reflect.ownKeys;function Yn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o=Xn(t[0]);return t.forEach(function(e){!function t(n,r){var i,a=new Set(r),l=Fn(e,n),c=Array.isArray(l);if(c||(i=l,"object"===(0,p.A)(i)&&null!==i&&Object.getPrototypeOf(i)===Object.prototype)){if(!a.has(l)){a.add(l);var s=Fn(o,n);c?o=Vn(o,n,[]):s&&"object"===(0,p.A)(s)||(o=Vn(o,n,Xn(l))),Gn(l).forEach(function(e){t([].concat(se(n),[e]),a)})}}else o=Vn(o,n,l)}([])}),o}const Un=function(e,t,n,o){var r=(0,d.A)({},t[e]);null!==o&&void 0!==o&&o.deprecatedTokens&&o.deprecatedTokens.forEach(function(e){var t,n=(0,ke.A)(e,2),o=n[0],i=n[1];(null!==r&&void 0!==r&&r[o]||null!==r&&void 0!==r&&r[i])&&(null!==(t=r[i])&&void 0!==t||(r[i]=null===r||void 0===r?void 0:r[o]))});var i=(0,d.A)((0,d.A)({},n),r);return Object.keys(i).forEach(function(e){i[e]===t[e]&&delete i[e]}),i};var Qn="undefined"!==typeof CSSINJS_STATISTIC,Zn=!0;function Jn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!Qn)return Object.assign.apply(Object,[{}].concat(t));Zn=!1;var o={};return t.forEach(function(e){"object"===(0,p.A)(e)&&Object.keys(e).forEach(function(t){Object.defineProperty(o,t,{configurable:!0,enumerable:!0,get:function(){return e[t]}})})}),Zn=!0,o}var eo={};function to(){}const no=function(e){var t,n=e,o=to;return Qn&&"undefined"!==typeof Proxy&&(t=new Set,n=new Proxy(e,{get:function(e,n){var o;Zn&&(null===(o=t)||void 0===o||o.add(n));return e[n]}}),o=function(e,n){var o;eo[e]={global:Array.from(t),component:(0,d.A)((0,d.A)({},null===(o=eo[e])||void 0===o?void 0:o.component),n)}}),{token:n,keys:t,flush:o}};const oo=function(e,t,n){var o;return"function"===typeof n?n(Jn(t,null!==(o=t[e])&&void 0!==o?o:{})):null!==n&&void 0!==n?n:{}};const ro=function(e){return"js"===e?{max:Math.max,min:Math.min}:{max:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"max(".concat(t.map(function(e){return nt(e)}).join(","),")")},min:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return"min(".concat(t.map(function(e){return nt(e)}).join(","),")")}}};var io=function(){function e(){K(this,e),(0,Ee.A)(this,"map",new Map),(0,Ee.A)(this,"objectIDMap",new WeakMap),(0,Ee.A)(this,"nextID",0),(0,Ee.A)(this,"lastAccessBeat",new Map),(0,Ee.A)(this,"accessBeat",0)}return X(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&&"object"===(0,p.A)(e)?"obj_".concat(t.getObjectID(e)):"".concat((0,p.A)(e),"_").concat(e)}).join("|")}},{key:"getObjectID",value:function(e){if(this.objectIDMap.has(e))return this.objectIDMap.get(e);var t=this.nextID;return this.objectIDMap.set(e,t),this.nextID+=1,t}},{key:"clear",value:function(){var e=this;if(this.accessBeat>1e4){var t=Date.now();this.lastAccessBeat.forEach(function(n,o){t-n>6e5&&(e.map.delete(o),e.lastAccessBeat.delete(o))}),this.accessBeat=0}}}]),e}(),ao=new io;const lo=function(e,t){return r().useMemo(function(){var n=ao.get(t);if(n)return n;var o=e();return ao.set(t,o),o},t)};const co=function(){return{}};const so=function(e){var t=e.useCSP,n=void 0===t?co:t,o=e.useToken,i=e.usePrefix,a=e.getResetStyles,l=e.getCommonStyle,c=e.getCompUnitless;function s(t,r,c){var s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},u=Array.isArray(t)?t:[t,t],f=(0,ke.A)(u,1)[0],m=u.join("-"),g=e.layer||{name:"antd"};return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,u=o(),v=u.theme,h=u.realToken,b=u.hashId,y=u.token,C=u.cssVar,x=i(),$=x.rootPrefixCls,w=x.iconPrefixCls,S=n(),k=C?"css":"js",E=lo(function(){var e=new Set;return C&&Object.keys(s.unitless||{}).forEach(function(t){e.add(rt(t,C.prefix)),e.add(rt(t,zn(f,C.prefix)))}),Tn(k,e)},[k,f,null===C||void 0===C?void 0:C.prefix]),O=ro(k),A=O.max,I=O.min,N={theme:v,token:y,hashId:b,nonce:function(){return S.nonce},clientOnly:s.clientOnly,layer:g,order:s.order||-999};return"function"===typeof a&&$n((0,d.A)((0,d.A)({},N),{},{clientOnly:!1,path:["Shared",$]}),function(){return a(y,{prefix:{rootPrefixCls:$,iconPrefixCls:w},csp:S})}),[$n((0,d.A)((0,d.A)({},N),{},{path:[m,e,w]}),function(){if(!1===s.injectStyle)return[];var n=no(y),o=n.token,i=n.flush,a=oo(f,h,c),u=".".concat(e),d=Un(f,h,a,{deprecatedTokens:s.deprecatedTokens});C&&a&&"object"===(0,p.A)(a)&&Object.keys(a).forEach(function(e){a[e]="var(".concat(rt(e,zn(f,C.prefix)),")")});var m=Jn(o,{componentCls:u,prefixCls:e,iconCls:".".concat(w),antCls:".".concat($),calc:E,max:A,min:I},C?a:d),g=r(m,{hashId:b,prefixCls:e,rootPrefixCls:$,iconPrefixCls:w});i(f,d);var v="function"===typeof l?l(m,e,t,s.resetFont):null;return[!1===s.resetStyle?null:v,g]}),b]}}return{genStyleHooks:function(e,t,n,i){var a=Array.isArray(e)?e[0]:e;function l(e){return"".concat(String(a)).concat(e.slice(0,1).toUpperCase()).concat(e.slice(1))}var u=(null===i||void 0===i?void 0:i.unitless)||{},p="function"===typeof c?c(e):{},f=(0,d.A)((0,d.A)({},p),{},(0,Ee.A)({},l("zIndexPopup"),!0));Object.keys(u).forEach(function(e){f[l(e)]=u[e]});var m=(0,d.A)((0,d.A)({},i),{},{unitless:f,prefixToken:l}),g=s(e,t,n,m),v=function(e,t,n){var i=n.unitless,a=n.injectStyle,l=void 0===a||a,c=n.prefixToken,s=n.ignore,u=function(r){var a=r.rootCls,l=r.cssVar,u=void 0===l?{}:l,d=o().realToken;return Sn({path:[e],prefix:u.prefix,key:u.key,unitless:i,ignore:s,token:d,scope:a},function(){var o=oo(e,d,t),r=Un(e,d,o,{deprecatedTokens:null===n||void 0===n?void 0:n.deprecatedTokens});return Object.keys(o).forEach(function(e){r[c(e)]=r[e],delete r[e]}),r}),null},d=function(t){var n=o().cssVar;return[function(o){return l&&n?r().createElement(r().Fragment,null,r().createElement(u,{rootCls:t,cssVar:n,component:e}),o):o},null===n||void 0===n?void 0:n.key]};return d}(a,n,m);return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=g(e,t),o=(0,ke.A)(n,2)[1],r=v(t),i=(0,ke.A)(r,2);return[i[0],o,i[1]]}},genSubStyleComponent:function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=s(e,t,n,(0,d.A)({resetStyle:!1,order:-998},o));return function(e){var t=e.prefixCls,n=e.rootCls;return r(t,void 0===n?t:n),null}},genComponentStyleHook:s}},uo={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},po=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}},fo=(e,t)=>({outline:`${nt(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:null!==t&&void 0!==t?t:1,transition:"outline-offset 0s, outline 0s"}),mo=(e,t)=>({"&:focus-visible":Object.assign({},fo(e,t))}),go=e=>({[`.${e}`]:Object.assign(Object.assign({},{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"}}),{[`.${e} .${e}-icon`]:{display:"block"}})}),vo=e=>Object.assign(Object.assign({color:e.colorLink,textDecoration:e.linkDecoration,outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,border:0,padding:0,background:"none",userSelect:"none"},mo(e)),{"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),ho="5.26.7",bo={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"},yo=Object.assign(Object.assign({},bo),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,\n'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',\n'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}),Co={token:yo,override:{override:yo},hashed:!0},xo=r().createContext(Co);var $o=n(89858),wo=n(60618);function So(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:o}=t;const{colorSuccess:r,colorWarning:i,colorError:a,colorInfo:l,colorPrimary:c,colorBgBase:s,colorTextBase:u}=e,d=n(c),p=n(r),f=n(i),m=n(a),g=n(l),v=o(s,u),h=n(e.colorLink||e.colorInfo),b=new wo.Y(m[1]).mix(new wo.Y(m[3]),50).toHexString();return Object.assign(Object.assign({},v),{colorPrimaryBg:d[1],colorPrimaryBgHover:d[2],colorPrimaryBorder:d[3],colorPrimaryBorderHover:d[4],colorPrimaryHover:d[5],colorPrimary:d[6],colorPrimaryActive:d[7],colorPrimaryTextHover:d[8],colorPrimaryText:d[9],colorPrimaryTextActive:d[10],colorSuccessBg:p[1],colorSuccessBgHover:p[2],colorSuccessBorder:p[3],colorSuccessBorderHover:p[4],colorSuccessHover:p[4],colorSuccess:p[6],colorSuccessActive:p[7],colorSuccessTextHover:p[8],colorSuccessText:p[9],colorSuccessTextActive:p[10],colorErrorBg:m[1],colorErrorBgHover:m[2],colorErrorBgFilledHover:b,colorErrorBgActive:m[3],colorErrorBorder:m[3],colorErrorBorderHover:m[4],colorErrorHover:m[5],colorError:m[6],colorErrorActive:m[7],colorErrorTextHover:m[8],colorErrorText:m[9],colorErrorTextActive:m[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:g[1],colorInfoBgHover:g[2],colorInfoBorder:g[3],colorInfoBorderHover:g[4],colorInfoHover:g[4],colorInfo:g[6],colorInfoActive:g[7],colorInfoTextHover:g[8],colorInfoText:g[9],colorInfoTextActive:g[10],colorLinkHover:h[4],colorLink:h[6],colorLinkActive:h[7],colorBgMask:new wo.Y("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}const ko=e=>{let t=e,n=e,o=e,r=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?o=1:e>=6&&(o=2),e>4&&e<8?r=4:e>=8&&(r=6),{borderRadius:e,borderRadiusXS:o,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:r}};const Eo=e=>{const{controlHeight:t}=e;return{controlHeightSM:.75*t,controlHeightXS:.5*t,controlHeightLG:1.25*t}};function Oo(e){return(e+8)/e}const Ao=e=>{const t=function(e){const t=Array.from({length:10}).map((t,n)=>{const o=n-1,r=e*Math.pow(Math.E,o/5),i=n>1?Math.floor(r):Math.ceil(r);return 2*Math.floor(i/2)});return t[1]=e,t.map(e=>({size:e,lineHeight:Oo(e)}))}(e),n=t.map(e=>e.size),o=t.map(e=>e.lineHeight),r=n[1],i=n[0],a=n[2],l=o[1],c=o[0],s=o[2];return{fontSizeSM:i,fontSize:r,fontSizeLG:a,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:l,lineHeightLG:s,lineHeightSM:c,fontHeight:Math.round(l*r),fontHeightLG:Math.round(s*a),fontHeightSM:Math.round(c*i),lineHeightHeading1:o[6],lineHeightHeading2:o[5],lineHeightHeading3:o[4],lineHeightHeading4:o[3],lineHeightHeading5:o[2]}};const Io=(e,t)=>new wo.Y(e).setA(t).toRgbString(),No=(e,t)=>new wo.Y(e).darken(t).toHexString(),Mo=e=>{const t=(0,$o.cM)(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},jo=(e,t)=>{const n=e||"#fff",o=t||"#000";return{colorBgBase:n,colorTextBase:o,colorText:Io(o,.88),colorTextSecondary:Io(o,.65),colorTextTertiary:Io(o,.45),colorTextQuaternary:Io(o,.25),colorFill:Io(o,.15),colorFillSecondary:Io(o,.06),colorFillTertiary:Io(o,.04),colorFillQuaternary:Io(o,.02),colorBgSolid:Io(o,1),colorBgSolidHover:Io(o,.75),colorBgSolidActive:Io(o,.95),colorBgLayout:No(n,4),colorBgContainer:No(n,0),colorBgElevated:No(n,0),colorBgSpotlight:Io(o,.85),colorBgBlur:"transparent",colorBorder:No(n,15),colorBorderSecondary:No(n,6)}};function Po(e){$o.uy.pink=$o.uy.magenta,$o.UA.pink=$o.UA.magenta;const t=Object.keys(bo).map(t=>{const n=e[t]===$o.uy[t]?$o.UA[t]:(0,$o.cM)(e[t]);return Array.from({length:10},()=>1).reduce((e,o,r)=>(e[`${t}-${r+1}`]=n[r],e[`${t}${r+1}`]=n[r],e),{})}).reduce((e,t)=>e=Object.assign(Object.assign({},e),t),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),So(e,{generateColorPalettes:Mo,generateNeutralColorPalettes:jo})),Ao(e.fontSize)),function(e){const{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)}}(e)),Eo(e)),function(e){const{motionUnit:t,motionBase:n,borderRadius:o,lineWidth:r}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+2*t).toFixed(1)}s`,motionDurationSlow:`${(n+3*t).toFixed(1)}s`,lineWidthBold:r+1},ko(o))}(e))}const Ro=Ye(Po);function To(e){return e>=0&&e<=255}const zo=function(e,t){const{r:n,g:o,b:r,a:i}=new wo.Y(e).toRgb();if(i<1)return e;const{r:a,g:l,b:c}=new wo.Y(t).toRgb();for(let s=.01;s<=1;s+=.01){const e=Math.round((n-a*(1-s))/s),t=Math.round((o-l*(1-s))/s),i=Math.round((r-c*(1-s))/s);if(To(e)&&To(t)&&To(i))return new wo.Y({r:e,g:t,b:i,a:Math.round(100*s)/100}).toRgbString()}return new wo.Y({r:n,g:o,b:r,a:1}).toRgbString()};var Bo=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};function Ho(e){const{override:t}=e,n=Bo(e,["override"]),o=Object.assign({},t);Object.keys(yo).forEach(e=>{delete o[e]});const r=Object.assign(Object.assign({},n),o),i=1200,a=1600;if(!1===r.motion){const e="0s";r.motionDurationFast=e,r.motionDurationMid=e,r.motionDurationSlow=e}return Object.assign(Object.assign(Object.assign({},r),{colorFillContent:r.colorFillSecondary,colorFillContentHover:r.colorFill,colorFillAlter:r.colorFillQuaternary,colorBgContainerDisabled:r.colorFillTertiary,colorBorderBg:r.colorBgContainer,colorSplit:zo(r.colorBorderSecondary,r.colorBgContainer),colorTextPlaceholder:r.colorTextQuaternary,colorTextDisabled:r.colorTextQuaternary,colorTextHeading:r.colorText,colorTextLabel:r.colorTextSecondary,colorTextDescription:r.colorTextTertiary,colorTextLightSolid:r.colorWhite,colorHighlight:r.colorError,colorBgTextHover:r.colorFillSecondary,colorBgTextActive:r.colorFill,colorIcon:r.colorTextTertiary,colorIconHover:r.colorText,colorErrorOutline:zo(r.colorErrorBg,r.colorBgContainer),colorWarningOutline:zo(r.colorWarningBg,r.colorBgContainer),fontSizeIcon:r.fontSizeSM,lineWidthFocus:3*r.lineWidth,lineWidth:r.lineWidth,controlOutlineWidth:2*r.lineWidth,controlInteractiveSize:r.controlHeight/2,controlItemBgHover:r.colorFillTertiary,controlItemBgActive:r.colorPrimaryBg,controlItemBgActiveHover:r.colorPrimaryBgHover,controlItemBgActiveDisabled:r.colorFill,controlTmpOutline:r.colorFillQuaternary,controlOutline:zo(r.colorPrimaryBg,r.colorBgContainer),lineType:r.lineType,borderRadius:r.borderRadius,borderRadiusXS:r.borderRadiusXS,borderRadiusSM:r.borderRadiusSM,borderRadiusLG:r.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:r.sizeXXS,paddingXS:r.sizeXS,paddingSM:r.sizeSM,padding:r.size,paddingMD:r.sizeMD,paddingLG:r.sizeLG,paddingXL:r.sizeXL,paddingContentHorizontalLG:r.sizeLG,paddingContentVerticalLG:r.sizeMS,paddingContentHorizontal:r.sizeMS,paddingContentVertical:r.sizeSM,paddingContentHorizontalSM:r.size,paddingContentVerticalSM:r.sizeXS,marginXXS:r.sizeXXS,marginXS:r.sizeXS,marginSM:r.sizeSM,margin:r.size,marginMD:r.sizeMD,marginLG:r.sizeLG,marginXL:r.sizeXL,marginXXL:r.sizeXXL,boxShadow:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowSecondary:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTertiary:"\n 0 1px 2px 0 rgba(0, 0, 0, 0.03),\n 0 1px 6px -1px rgba(0, 0, 0, 0.02),\n 0 2px 4px 0 rgba(0, 0, 0, 0.02)\n ",screenXS:480,screenXSMin:480,screenXSMax:575,screenSM:576,screenSMMin:576,screenSMMax:767,screenMD:768,screenMDMin:768,screenMDMax:991,screenLG:992,screenLGMin:992,screenLGMax:1199,screenXL:i,screenXLMin:i,screenXLMax:1599,screenXXL:a,screenXXLMin:a,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`\n 0 1px 2px -2px ${new wo.Y("rgba(0, 0, 0, 0.16)").toRgbString()},\n 0 3px 6px 0 ${new wo.Y("rgba(0, 0, 0, 0.12)").toRgbString()},\n 0 5px 12px 4px ${new wo.Y("rgba(0, 0, 0, 0.09)").toRgbString()}\n `,boxShadowDrawerRight:"\n -6px 0 16px 0 rgba(0, 0, 0, 0.08),\n -3px 0 6px -4px rgba(0, 0, 0, 0.12),\n -9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerLeft:"\n 6px 0 16px 0 rgba(0, 0, 0, 0.08),\n 3px 0 6px -4px rgba(0, 0, 0, 0.12),\n 9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerUp:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerDown:"\n 0 -6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 -3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 -9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),o)}var Do=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const Lo={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},Fo={size:!0,sizeSM:!0,sizeLG:!0,sizeMD:!0,sizeXS:!0,sizeXXS:!0,sizeMS:!0,sizeXL:!0,sizeXXL:!0,sizeUnit:!0,sizeStep:!0,motionBase:!0,motionUnit:!0},Wo={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},_o=(e,t,n)=>{const o=n.getDerivativeToken(e),{override:r}=t,i=Do(t,["override"]);let a=Object.assign(Object.assign({},o),{override:r});return a=Ho(a),i&&Object.entries(i).forEach(e=>{let[t,n]=e;const{theme:o}=n,r=Do(n,["theme"]);let i=r;o&&(i=_o(Object.assign(Object.assign({},a),r),{override:r},o)),a[t]=i}),a};function Ko(){const{token:e,hashed:t,theme:n,override:o,cssVar:i}=r().useContext(xo),a=`${ho}-${t||""}`,l=n||Ro,[c,s,u]=xt(l,[yo,e],{salt:a,override:o,getComputedToken:_o,formatToken:Ho,cssVar:i&&{prefix:i.prefix,key:i.key,unitless:Lo,ignore:Fo,preserve:Wo}});return[l,u,t?s:"",c,i]}const{genStyleHooks:qo,genComponentStyleHook:Vo,genSubStyleComponent:Xo}=so({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=(0,o.useContext)(xe);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,o,r]=Ko();return{theme:e,realToken:t,hashId:n,token:o,cssVar:r}},useCSP:()=>{const{csp:e}=(0,o.useContext)(xe);return null!==e&&void 0!==e?e:{}},getResetStyles:(e,t)=>{var n;const o=(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},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}))(e);return[o,{"&":o},go(null!==(n=null===t||void 0===t?void 0:t.prefix.iconPrefixCls)&&void 0!==n?n:ye)]},getCommonStyle:(e,t,n,o)=>{const r=`[class^="${t}"], [class*=" ${t}"]`,i=n?`.${n}`:r,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let l={};return!1!==o&&(l={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[i]:Object.assign(Object.assign(Object.assign({},l),a),{[r]:a})}},getCompUnitless:()=>Lo}),Go=qo("Affix",e=>{const{componentCls:t}=e;return{[t]:{position:"fixed",zIndex:e.zIndexPopup}}},e=>({zIndexPopup:e.zIndexBase+10}));function Yo(e){return e!==window?e.getBoundingClientRect():{top:0,bottom:window.innerHeight}}function Uo(e,t,n){if(void 0!==n&&Math.round(t.top)>Math.round(e.top)-n)return n+t.top}function Qo(e,t,n){if(void 0!==n&&Math.round(t.bottom)<Math.round(e.bottom)+n){return n+(window.innerHeight-t.bottom)}}var Zo=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const Jo=["resize","scroll","touchstart","touchmove","touchend","pageshow","load"];function er(){return"undefined"!==typeof window?window:null}const tr=r().forwardRef((e,t)=>{var n;const{style:o,offsetTop:i,offsetBottom:l,prefixCls:c,className:s,rootClassName:u,children:d,target:p,onChange:f,onTestUpdatePosition:m}=e,g=Zo(e,["style","offsetTop","offsetBottom","prefixCls","className","rootClassName","children","target","onChange","onTestUpdatePosition"]),{getPrefixCls:v,getTargetContainer:h}=r().useContext(xe),b=v("affix",c),[y,C]=r().useState(!1),[x,$]=r().useState(),[w,S]=r().useState(),k=r().useRef(0),E=r().useRef(null),O=r().useRef(null),A=r().useRef(null),I=r().useRef(null),N=r().useRef(null),M=null!==(n=null!==p&&void 0!==p?p:h)&&void 0!==n?n:er,j=void 0===l&&void 0===i?0:i,P=()=>{k.current=1,(()=>{if(1!==k.current||!I.current||!A.current||!M)return;const e=M();if(e){const t={status:0},n=Yo(A.current);if(0===n.top&&0===n.left&&0===n.width&&0===n.height)return;const o=Yo(e),r=Uo(n,o,j),i=Qo(n,o,l);void 0!==r?(t.affixStyle={position:"fixed",top:r,width:n.width,height:n.height},t.placeholderStyle={width:n.width,height:n.height}):void 0!==i&&(t.affixStyle={position:"fixed",bottom:i,width:n.width,height:n.height},t.placeholderStyle={width:n.width,height:n.height}),t.lastAffix=!!t.affixStyle,y!==t.lastAffix&&(null===f||void 0===f||f(t.lastAffix)),k.current=t.status,$(t.affixStyle),S(t.placeholderStyle),C(t.lastAffix)}})()},R=he(()=>{P()}),T=he(()=>{if(M&&x){const e=M();if(e&&A.current){const t=Yo(e),n=Yo(A.current),o=Uo(n,t,j),r=Qo(n,t,l);if(void 0!==o&&x.top===o||void 0!==r&&x.bottom===r)return}}P()}),z=()=>{const e=null===M||void 0===M?void 0:M();e&&(Jo.forEach(t=>{var n;O.current&&(null===(n=E.current)||void 0===n||n.removeEventListener(t,O.current)),null===e||void 0===e||e.addEventListener(t,T)}),E.current=e,O.current=T)},B=()=>{N.current&&(clearTimeout(N.current),N.current=null);const e=null===M||void 0===M?void 0:M();Jo.forEach(t=>{var n;null===e||void 0===e||e.removeEventListener(t,T),O.current&&(null===(n=E.current)||void 0===n||n.removeEventListener(t,O.current))}),R.cancel(),T.cancel()};r().useImperativeHandle(t,()=>({updatePosition:R})),r().useEffect(()=>(N.current=setTimeout(z),()=>B()),[]),r().useEffect(()=>(z(),()=>B()),[p,x,y,i,l]),r().useEffect(()=>{R()},[p,i,l]);const[H,D,L]=Go(b),F=a()(u,D,b,L),W=a()({[F]:x});return H(r().createElement(ie,{onResize:R},r().createElement("div",Object.assign({style:o,className:s,ref:A},g),x&&r().createElement("div",{style:w,"aria-hidden":"true"}),r().createElement("div",{className:W,ref:I,style:x},r().createElement(ie,{onResize:R},d)))))});const nr=tr;var or=n(4642),rr=n(60230),ir=n(58176),ar=n(25763),lr=n(52736),cr=n(53986),sr=["children"],ur=o.createContext({});function dr(e){var t=e.children,n=(0,cr.A)(e,sr);return o.createElement(ur.Provider,{value:n},t)}const pr=function(e){Y(n,e);var t=ee(n);function n(){return K(this,n),t.apply(this,arguments)}return X(n,[{key:"render",value:function(){return this.props.children}}]),n}(o.Component);var fr="none",mr="appear",gr="enter",vr="leave",hr="none",br="prepare",yr="start",Cr="active",xr="end",$r="prepared";function wr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}var Sr=function(e,t){var n={animationend:wr("Animation","AnimationEnd"),transitionend:wr("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}((0,Le.A)(),"undefined"!==typeof window?window:{}),kr={};if((0,Le.A)()){var Er=document.createElement("div");kr=Er.style}var Or={};function Ar(e){if(Or[e])return Or[e];var t=Sr[e];if(t)for(var n=Object.keys(t),o=n.length,r=0;r<o;r+=1){var i=n[r];if(Object.prototype.hasOwnProperty.call(t,i)&&i in kr)return Or[e]=t[i],Or[e]}return""}var Ir=Ar("animationend"),Nr=Ar("transitionend"),Mr=!(!Ir||!Nr),jr=Ir||"animationend",Pr=Nr||"transitionend";function Rr(e,t){if(!e)return null;if("object"===(0,p.A)(e)){var n=t.replace(/-\w/g,function(e){return e[1].toUpperCase()});return e[n]}return"".concat(e,"-").concat(t)}const Tr=(0,Le.A)()?o.useLayoutEffect:o.useEffect;var zr=[br,yr,Cr,xr],Br=[br,$r],Hr=!1;function Dr(e){return e===Cr||e===xr}const Lr=function(e,t,n){var r=Hn(hr),i=(0,ke.A)(r,2),a=i[0],l=i[1],c=function(){var e=o.useRef(null);function t(){ve.cancel(e.current)}return o.useEffect(function(){return function(){t()}},[]),[function n(o){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;t();var i=ve(function(){r<=1?o({isCanceled:function(){return i!==e.current}}):n(o,r-1)});e.current=i},t]}(),s=(0,ke.A)(c,2),u=s[0],d=s[1];var p=t?Br:zr;return Tr(function(){if(a!==hr&&a!==xr){var e=p.indexOf(a),t=p[e+1],o=n(a);o===Hr?l(t,!0):t&&u(function(e){function n(){e.isCanceled()||l(t,!0)}!0===o?n():Promise.resolve(o).then(n)})}},[e,a]),o.useEffect(function(){return function(){d()}},[]),[function(){l(br,!0)},a]};function Fr(e,t,n,r){var i=r.motionEnter,a=void 0===i||i,l=r.motionAppear,c=void 0===l||l,s=r.motionLeave,u=void 0===s||s,p=r.motionDeadline,f=r.motionLeaveImmediately,m=r.onAppearPrepare,g=r.onEnterPrepare,v=r.onLeavePrepare,h=r.onAppearStart,b=r.onEnterStart,y=r.onLeaveStart,C=r.onAppearActive,x=r.onEnterActive,$=r.onLeaveActive,w=r.onAppearEnd,S=r.onEnterEnd,k=r.onLeaveEnd,E=r.onVisibleChanged,O=Hn(),A=(0,ke.A)(O,2),I=A[0],N=A[1],M=function(e){var t=o.useReducer(function(e){return e+1},0),n=(0,ke.A)(t,2)[1],r=o.useRef(e);return[Bn(function(){return r.current}),Bn(function(e){r.current="function"===typeof e?e(r.current):e,n()})]}(fr),j=(0,ke.A)(M,2),P=j[0],R=j[1],T=Hn(null),z=(0,ke.A)(T,2),B=z[0],H=z[1],D=P(),L=(0,o.useRef)(!1),F=(0,o.useRef)(null);function W(){return n()}var _=(0,o.useRef)(!1);function K(){R(fr),H(null,!0)}var q=Bn(function(e){var t=P();if(t!==fr){var n=W();if(!e||e.deadline||e.target===n){var o,r=_.current;t===mr&&r?o=null===w||void 0===w?void 0:w(n,e):t===gr&&r?o=null===S||void 0===S?void 0:S(n,e):t===vr&&r&&(o=null===k||void 0===k?void 0:k(n,e)),r&&!1!==o&&K()}}}),V=function(e){var t=(0,o.useRef)();function n(t){t&&(t.removeEventListener(Pr,e),t.removeEventListener(jr,e))}return o.useEffect(function(){return function(){n(t.current)}},[]),[function(o){t.current&&t.current!==o&&n(t.current),o&&o!==t.current&&(o.addEventListener(Pr,e),o.addEventListener(jr,e),t.current=o)},n]}(q),X=(0,ke.A)(V,1)[0],G=function(e){switch(e){case mr:return(0,Ee.A)((0,Ee.A)((0,Ee.A)({},br,m),yr,h),Cr,C);case gr:return(0,Ee.A)((0,Ee.A)((0,Ee.A)({},br,g),yr,b),Cr,x);case vr:return(0,Ee.A)((0,Ee.A)((0,Ee.A)({},br,v),yr,y),Cr,$);default:return{}}},Y=o.useMemo(function(){return G(D)},[D]),U=Lr(D,!e,function(e){if(e===br){var t=Y[br];return t?t(W()):Hr}var n;J in Y&&H((null===(n=Y[J])||void 0===n?void 0:n.call(Y,W(),null))||null);return J===Cr&&D!==fr&&(X(W()),p>0&&(clearTimeout(F.current),F.current=setTimeout(function(){q({deadline:!0})},p))),J===$r&&K(),true}),Q=(0,ke.A)(U,2),Z=Q[0],J=Q[1],ee=Dr(J);_.current=ee;var te=(0,o.useRef)(null);Tr(function(){if(!L.current||te.current!==t){N(t);var n,o=L.current;L.current=!0,!o&&t&&c&&(n=mr),o&&t&&a&&(n=gr),(o&&!t&&u||!o&&f&&!t&&u)&&(n=vr);var r=G(n);n&&(e||r[br])?(R(n),Z()):R(fr),te.current=t}},[t]),(0,o.useEffect)(function(){(D===mr&&!c||D===gr&&!a||D===vr&&!u)&&R(fr)},[c,a,u]),(0,o.useEffect)(function(){return function(){L.current=!1,clearTimeout(F.current)}},[]);var ne=o.useRef(!1);(0,o.useEffect)(function(){I&&(ne.current=!0),void 0!==I&&D===fr&&((ne.current||I)&&(null===E||void 0===E||E(I)),ne.current=!0)},[I,D]);var oe=B;return Y[br]&&J===yr&&(oe=(0,d.A)({transition:"none"},oe)),[D,J,oe,null!==I&&void 0!==I?I:t]}const Wr=function(e){var t=e;"object"===(0,p.A)(e)&&(t=e.transitionSupport);var n=o.forwardRef(function(e,n){var r=e.visible,i=void 0===r||r,l=e.removeOnLeave,c=void 0===l||l,s=e.forceRender,u=e.children,p=e.motionName,f=e.leavedClassName,m=e.eventProps,g=function(e,n){return!(!e.motionName||!t||!1===n)}(e,o.useContext(ur).motion),v=(0,o.useRef)(),y=(0,o.useRef)();var C=Fr(g,i,function(){try{return v.current instanceof HTMLElement?v.current:h(y.current)}catch($i){return null}},e),x=(0,ke.A)(C,4),$=x[0],w=x[1],S=x[2],k=x[3],E=o.useRef(k);k&&(E.current=!0);var O,A=o.useCallback(function(e){v.current=e,(0,b.Xf)(n,e)},[n]),I=(0,d.A)((0,d.A)({},m),{},{visible:i});if(u)if($===fr)O=k?u((0,d.A)({},I),A):!c&&E.current&&f?u((0,d.A)((0,d.A)({},I),{},{className:f}),A):s||!c&&!f?u((0,d.A)((0,d.A)({},I),{},{style:{display:"none"}}),A):null;else{var N;w===br?N="prepare":Dr(w)?N="active":w===yr&&(N="start");var M=Rr(p,"".concat($,"-").concat(N));O=u((0,d.A)((0,d.A)({},I),{},{className:a()(Rr(p,$),(0,Ee.A)((0,Ee.A)({},M,M&&N),p,"string"===typeof p)),style:S}),A)}else O=null;o.isValidElement(O)&&(0,b.f3)(O)&&((0,b.A9)(O)||(O=o.cloneElement(O,{ref:A})));return o.createElement(pr,{ref:y},O)});return n.displayName="CSSMotion",n}(Mr);var _r="add",Kr="keep",qr="remove",Vr="removed";function Xr(e){var t;return t=e&&"object"===(0,p.A)(e)&&"key"in e?e:{key:e},(0,d.A)((0,d.A)({},t),{},{key:String(t.key)})}function Gr(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).map(Xr)}var Yr=["component","children","onVisibleChanged","onAllRemoved"],Ur=["status"],Qr=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];const Zr=function(){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Wr,t=function(t){Y(r,t);var n=ee(r);function r(){var e;K(this,r);for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return e=n.call.apply(n,[this].concat(o)),(0,Ee.A)(Z(e),"state",{keyEntities:[]}),(0,Ee.A)(Z(e),"removeKey",function(t){e.setState(function(e){return{keyEntities:e.keyEntities.map(function(e){return e.key!==t?e:(0,d.A)((0,d.A)({},e),{},{status:Vr})})}},function(){0===e.state.keyEntities.filter(function(e){return e.status!==Vr}).length&&e.props.onAllRemoved&&e.props.onAllRemoved()})}),e}return X(r,[{key:"render",value:function(){var t=this,n=this.state.keyEntities,r=this.props,i=r.component,a=r.children,c=r.onVisibleChanged,s=(r.onAllRemoved,(0,cr.A)(r,Yr)),u=i||o.Fragment,p={};return Qr.forEach(function(e){p[e]=s[e],delete s[e]}),delete s.keys,o.createElement(u,s,n.map(function(n,r){var i=n.status,s=(0,cr.A)(n,Ur),u=i===_r||i===Kr;return o.createElement(e,(0,l.A)({},p,{key:s.key,visible:u,eventProps:s,onVisibleChanged:function(e){null===c||void 0===c||c(e,{key:s.key}),e||t.removeKey(s.key)}}),function(e,t){return a((0,d.A)((0,d.A)({},e),{},{index:r}),t)})}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.keys,o=t.keyEntities,r=Gr(n),i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],o=0,r=t.length,i=Gr(e),a=Gr(t);i.forEach(function(e){for(var t=!1,i=o;i<r;i+=1){var l=a[i];if(l.key===e.key){o<i&&(n=n.concat(a.slice(o,i).map(function(e){return(0,d.A)((0,d.A)({},e),{},{status:_r})})),o=i),n.push((0,d.A)((0,d.A)({},l),{},{status:Kr})),o+=1,t=!0;break}}t||n.push((0,d.A)((0,d.A)({},e),{},{status:qr}))}),o<r&&(n=n.concat(a.slice(o).map(function(e){return(0,d.A)((0,d.A)({},e),{},{status:_r})})));var l={};return n.forEach(function(e){var t=e.key;l[t]=(l[t]||0)+1}),Object.keys(l).filter(function(e){return l[e]>1}).forEach(function(e){(n=n.filter(function(t){var n=t.key,o=t.status;return n!==e||o!==qr})).forEach(function(t){t.key===e&&(t.status=Kr)})}),n}(o,r);return{keyEntities:i.filter(function(e){var t=o.find(function(t){var n=t.key;return e.key===n});return!t||t.status!==Vr||e.status!==qr})}}}]),r}(o.Component);return(0,Ee.A)(t,"defaultProps",{component:"div"}),t}(Mr),Jr=Wr;var ei="".concat("accept acceptCharset accessKey action allowFullScreen allowTransparency\n alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge\n charSet checked classID className colSpan cols content contentEditable contextMenu\n controls coords crossOrigin data dateTime default defer dir disabled download draggable\n encType form formAction formEncType formMethod formNoValidate formTarget frameBorder\n headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity\n is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media\n mediaGroup method min minLength multiple muted name noValidate nonce open\n optimum pattern placeholder poster preload radioGroup readOnly rel required\n reversed role rowSpan rows sandbox scope scoped scrolling seamless selected\n shape size sizes span spellCheck src srcDoc srcLang srcSet start step style\n summary tabIndex target title type useMap value width wmode wrap"," ").concat("onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown\n onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick\n onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown\n onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel\n onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough\n onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata\n onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError").split(/[\s\n]+/);function ti(e,t){return 0===e.indexOf(t)}function ni(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t=!1===n?{aria:!0,data:!0,attr:!0}:!0===n?{aria:!0}:(0,d.A)({},n);var o={};return Object.keys(e).forEach(function(n){(t.aria&&("role"===n||ti(n,"aria-"))||t.data&&ti(n,"data-")||t.attr&&ei.includes(n))&&(o[n]=e[n])}),o}function oi(e){return e&&r().isValidElement(e)&&e.type===r().Fragment}const ri=(e,t,n)=>r().isValidElement(e)?r().cloneElement(e,"function"===typeof n?n(e.props||{}):n):t;function ii(e,t){return ri(e,e,t)}const ai=(e,t,n,o,r)=>({background:e,border:`${nt(o.lineWidth)} ${o.lineType} ${t}`,[`${r}-icon`]:{color:n}}),li=e=>{const{componentCls:t,motionDurationSlow:n,marginXS:o,marginSM:r,fontSize:i,fontSizeLG:a,lineHeight:l,borderRadiusLG:c,motionEaseInOutCirc:s,withDescriptionIconSize:u,colorText:d,colorTextHeading:p,withDescriptionPadding:f,defaultPadding:m}=e;return{[t]:Object.assign(Object.assign({},po(e)),{position:"relative",display:"flex",alignItems:"center",padding:m,wordWrap:"break-word",borderRadius:c,[`&${t}-rtl`]:{direction:"rtl"},[`${t}-content`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:o,lineHeight:0},"&-description":{display:"none",fontSize:i,lineHeight:l},"&-message":{color:p},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${n} ${s}, opacity ${n} ${s},\n padding-top ${n} ${s}, padding-bottom ${n} ${s},\n margin-bottom ${n} ${s}`},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),[`${t}-with-description`]:{alignItems:"flex-start",padding:f,[`${t}-icon`]:{marginInlineEnd:r,fontSize:u,lineHeight:0},[`${t}-message`]:{display:"block",marginBottom:o,color:p,fontSize:a},[`${t}-description`]:{display:"block",color:d}},[`${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},ci=e=>{const{componentCls:t,colorSuccess:n,colorSuccessBorder:o,colorSuccessBg:r,colorWarning:i,colorWarningBorder:a,colorWarningBg:l,colorError:c,colorErrorBorder:s,colorErrorBg:u,colorInfo:d,colorInfoBorder:p,colorInfoBg:f}=e;return{[t]:{"&-success":ai(r,o,n,e,t),"&-info":ai(f,p,d,e,t),"&-warning":ai(l,a,i,e,t),"&-error":Object.assign(Object.assign({},ai(u,s,c,e,t)),{[`${t}-description > pre`]:{margin:0,padding:0}})}}},si=e=>{const{componentCls:t,iconCls:n,motionDurationMid:o,marginXS:r,fontSizeIcon:i,colorIcon:a,colorIconHover:l}=e;return{[t]:{"&-action":{marginInlineStart:r},[`${t}-close-icon`]:{marginInlineStart:r,padding:0,overflow:"hidden",fontSize:i,lineHeight:nt(i),backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${n}-close`]:{color:a,transition:`color ${o}`,"&:hover":{color:l}}},"&-close-text":{color:a,transition:`color ${o}`,"&:hover":{color:l}}}}},ui=qo("Alert",e=>[li(e),ci(e),si(e)],e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`}));var di=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const pi={success:or.A,info:lr.A,error:rr.A,warning:ar.A},fi=e=>{const{icon:t,prefixCls:n,type:r}=e,i=pi[r]||null;return t?ri(t,o.createElement("span",{className:`${n}-icon`},t),()=>({className:a()(`${n}-icon`,t.props.className)})):o.createElement(i,{className:`${n}-icon`})},mi=e=>{const{isClosable:t,prefixCls:n,closeIcon:r,handleClose:i,ariaProps:a}=e,l=!0===r||void 0===r?o.createElement(ir.A,null):r;return t?o.createElement("button",Object.assign({type:"button",onClick:i,className:`${n}-close-icon`,tabIndex:0},a),l):null},gi=o.forwardRef((e,t)=>{const{description:n,prefixCls:r,message:i,banner:l,className:c,rootClassName:s,style:u,onMouseEnter:d,onMouseLeave:p,onClick:f,afterClose:m,showIcon:g,closable:v,closeText:h,closeIcon:y,action:C,id:x}=e,$=di(e,["description","prefixCls","message","banner","className","rootClassName","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action","id"]),[w,S]=o.useState(!1);const k=o.useRef(null);o.useImperativeHandle(t,()=>({nativeElement:k.current}));const{getPrefixCls:E,direction:O,closable:A,closeIcon:I,className:N,style:M}=Se("alert"),j=E("alert",r),[P,R,T]=ui(j),z=t=>{var n;S(!0),null===(n=e.onClose)||void 0===n||n.call(e,t)},B=o.useMemo(()=>void 0!==e.type?e.type:l?"warning":"info",[e.type,l]),H=o.useMemo(()=>!("object"!==typeof v||!v.closeIcon)||(!!h||("boolean"===typeof v?v:!1!==y&&null!==y&&void 0!==y||!!A)),[h,y,v,A]),D=!(!l||void 0!==g)||g,L=a()(j,`${j}-${B}`,{[`${j}-with-description`]:!!n,[`${j}-no-icon`]:!D,[`${j}-banner`]:!!l,[`${j}-rtl`]:"rtl"===O},N,c,s,T,R),F=ni($,{aria:!0,data:!0}),W=o.useMemo(()=>"object"===typeof v&&v.closeIcon?v.closeIcon:h||(void 0!==y?y:"object"===typeof A&&A.closeIcon?A.closeIcon:I),[y,v,h,I]),_=o.useMemo(()=>{const e=null!==v&&void 0!==v?v:A;if("object"===typeof e){const{closeIcon:t}=e;return di(e,["closeIcon"])}return{}},[v,A]);return P(o.createElement(Jr,{visible:!w,motionName:`${j}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:e=>({maxHeight:e.offsetHeight}),onLeaveEnd:m},(t,r)=>{let{className:l,style:c}=t;return o.createElement("div",Object.assign({id:x,ref:(0,b.K4)(k,r),"data-show":!w,className:a()(L,l),style:Object.assign(Object.assign(Object.assign({},M),u),c),onMouseEnter:d,onMouseLeave:p,onClick:f,role:"alert"},F),D?o.createElement(fi,{description:n,icon:e.icon,prefixCls:j,type:B}):null,o.createElement("div",{className:`${j}-content`},i?o.createElement("div",{className:`${j}-message`},i):null,n?o.createElement("div",{className:`${j}-description`},n):null),C?o.createElement("div",{className:`${j}-action`},C):null,o.createElement(mi,{isClosable:H,prefixCls:j,closeIcon:W,handleClose:z,ariaProps:_}))}))});const vi=gi;let hi=function(e){function t(){var e;return K(this,t),e=function(e,t,n){return t=U(t),J(e,Q()?Reflect.construct(t,n||[],U(e).constructor):t.apply(e,n))}(this,t,arguments),e.state={error:void 0,info:{componentStack:""}},e}return Y(t,e),X(t,[{key:"componentDidCatch",value:function(e,t){this.setState({error:e,info:t})}},{key:"render",value:function(){const{message:e,description:t,id:n,children:r}=this.props,{error:i,info:a}=this.state,l=(null===a||void 0===a?void 0:a.componentStack)||null,c="undefined"===typeof e?(i||"").toString():e,s="undefined"===typeof t?l:t;return i?o.createElement(vi,{id:n,type:"error",message:c,description:o.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},s)}):r}}])}(o.Component);const bi=hi,yi=vi;yi.ErrorBoundary=bi;const Ci=yi,xi=e=>"object"==typeof e&&null!=e&&1===e.nodeType,$i=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,wi=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return $i(n.overflowY,t)||$i(n.overflowX,t)||(e=>{const t=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}})(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)})(e)}return!1},Si=(e,t,n,o,r,i,a,l)=>i<e&&a>t||i>e&&a<t?0:i<=e&&l<=n||a>=t&&l>=n?i-e-o:a>t&&l<n||i<e&&l>n?a-t+r:0,ki=e=>{const t=e.parentElement;return null==t?e.getRootNode().host||null:t},Ei=(e,t)=>{var n,o,r,i;if("undefined"==typeof document)return[];const{scrollMode:a,block:l,inline:c,boundary:s,skipOverflowHiddenElements:u}=t,d="function"==typeof s?s:e=>e!==s;if(!xi(e))throw new TypeError("Invalid target");const p=document.scrollingElement||document.documentElement,f=[];let m=e;for(;xi(m)&&d(m);){if(m=ki(m),m===p){f.push(m);break}null!=m&&m===document.body&&wi(m)&&!wi(document.documentElement)||null!=m&&wi(m,u)&&f.push(m)}const g=null!=(o=null==(n=window.visualViewport)?void 0:n.width)?o:innerWidth,v=null!=(i=null==(r=window.visualViewport)?void 0:r.height)?i:innerHeight,{scrollX:h,scrollY:b}=window,{height:y,width:C,top:x,right:$,bottom:w,left:S}=e.getBoundingClientRect(),{top:k,right:E,bottom:O,left:A}=(e=>{const t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);let I="start"===l||"nearest"===l?x-k:"end"===l?w+O:x+y/2-k+O,N="center"===c?S+C/2-A+E:"end"===c?$+E:S-A;const M=[];for(let j=0;j<f.length;j++){const e=f[j],{height:t,width:n,top:o,right:r,bottom:i,left:s}=e.getBoundingClientRect();if("if-needed"===a&&x>=0&&S>=0&&w<=v&&$<=g&&(e===p&&!wi(e)||x>=o&&w<=i&&S>=s&&$<=r))return M;const u=getComputedStyle(e),d=parseInt(u.borderLeftWidth,10),m=parseInt(u.borderTopWidth,10),k=parseInt(u.borderRightWidth,10),E=parseInt(u.borderBottomWidth,10);let O=0,A=0;const P="offsetWidth"in e?e.offsetWidth-e.clientWidth-d-k:0,R="offsetHeight"in e?e.offsetHeight-e.clientHeight-m-E:0,T="offsetWidth"in e?0===e.offsetWidth?0:n/e.offsetWidth:0,z="offsetHeight"in e?0===e.offsetHeight?0:t/e.offsetHeight:0;if(p===e)O="start"===l?I:"end"===l?I-v:"nearest"===l?Si(b,b+v,v,m,E,b+I,b+I+y,y):I-v/2,A="start"===c?N:"center"===c?N-g/2:"end"===c?N-g:Si(h,h+g,g,d,k,h+N,h+N+C,C),O=Math.max(0,O+b),A=Math.max(0,A+h);else{O="start"===l?I-o-m:"end"===l?I-i+E+R:"nearest"===l?Si(o,i,t,m,E+R,I,I+y,y):I-(o+t/2)+R/2,A="start"===c?N-s-d:"center"===c?N-(s+n/2)+P/2:"end"===c?N-r+k+P:Si(s,r,n,d,k+P,N,N+C,C);const{scrollLeft:a,scrollTop:u}=e;O=0===z?0:Math.max(0,Math.min(u+O/z,e.scrollHeight-t/z+R)),A=0===T?0:Math.max(0,Math.min(a+A/T,e.scrollWidth-n/T+P)),I+=u-O,N+=a-A}M.push({el:e,top:O,left:A})}return M};function Oi(e,t){if(!e.isConnected||!(e=>{let t=e;for(;t&&t.parentNode;){if(t.parentNode===document)return!0;t=t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}return!1})(e))return;const n=(e=>{const t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);if((e=>"object"==typeof e&&"function"==typeof e.behavior)(t))return t.behavior(Ei(e,t));const o="boolean"==typeof t||null==t?void 0:t.behavior;for(const{el:r,top:i,left:a}of Ei(e,(e=>!1===e?{block:"end",inline:"nearest"}:(e=>e===Object(e)&&0!==Object.keys(e).length)(e)?e:{block:"start",inline:"nearest"})(t))){const e=i-n.top+n.bottom,t=a-n.left+n.right;r.scroll({top:e,left:t,behavior:o})}}function Ai(e){return null!==e&&void 0!==e&&e===e.window}const Ii=e=>{var t,n;if("undefined"===typeof window)return 0;let o=0;return Ai(e)?o=e.pageYOffset:e instanceof Document?o=e.documentElement.scrollTop:(e instanceof HTMLElement||e)&&(o=e.scrollTop),e&&!Ai(e)&&"number"!==typeof o&&(o=null===(n=(null!==(t=e.ownerDocument)&&void 0!==t?t:e).documentElement)||void 0===n?void 0:n.scrollTop),o};function Ni(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{getContainer:n=()=>window,callback:o,duration:r=450}=t,i=n(),a=Ii(i),l=Date.now(),c=()=>{const t=Date.now()-l,n=function(e,t,n,o){const r=n-t;return(e/=o/2)<1?r/2*e*e*e+t:r/2*((e-=2)*e*e+2)+t}(t>r?r:t,a,e,r);Ai(i)?i.scrollTo(window.pageXOffset,n):i instanceof Document||"HTMLDocument"===i.constructor.name?i.documentElement.scrollTop=n:i.scrollTop=n,t<r?ve(c):"function"===typeof o&&o()};ve(c)}const Mi=e=>{const[,,,,t]=Ko();return t?`${e}-css-var`:""},ji=o.createContext(void 0),Pi=e=>{const{href:t,title:n,prefixCls:r,children:i,className:l,target:c,replace:s}=e,u=o.useContext(ji),{registerLink:d,unregisterLink:p,scrollTo:f,onClick:m,activeLink:g,direction:v}=u||{};o.useEffect(()=>(null===d||void 0===d||d(t),()=>{null===p||void 0===p||p(t)}),[t]);const{getPrefixCls:h}=o.useContext(xe),b=h("anchor",r),y=g===t,C=a()(`${b}-link`,l,{[`${b}-link-active`]:y}),x=a()(`${b}-link-title`,{[`${b}-link-title-active`]:y});return o.createElement("div",{className:C},o.createElement("a",{className:x,href:t,title:"string"===typeof n?n:"",target:c,onClick:e=>{if(null===m||void 0===m||m(e,{title:n,href:t}),null===f||void 0===f||f(t),e.defaultPrevented)return;if(t.startsWith("http://")||t.startsWith("https://"))return void(s&&(e.preventDefault(),window.location.replace(t)));e.preventDefault();const o=s?"replaceState":"pushState";window.history[o](null,"",t)}},n),"horizontal"!==v?i:null)},Ri=e=>{const{componentCls:t,holderOffsetBlock:n,motionDurationSlow:o,lineWidthBold:r,colorPrimary:i,lineType:a,colorSplit:l,calc:c}=e;return{[`${t}-wrapper`]:{marginBlockStart:c(n).mul(-1).equal(),paddingBlockStart:n,[t]:Object.assign(Object.assign({},po(e)),{position:"relative",paddingInlineStart:r,[`${t}-link`]:{paddingBlock:e.linkPaddingBlock,paddingInline:`${nt(e.linkPaddingInlineStart)} 0`,"&-title":Object.assign(Object.assign({},uo),{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:`${nt(r)} ${a} ${l}`,content:'" "'},[`${t}-ink`]:{position:"absolute",insetInlineStart:0,display:"none",transform:"translateY(-50%)",transition:`top ${o} ease-in-out`,width:r,backgroundColor:i,[`&${t}-ink-visible`]:{display:"inline-block"}}}},[`${t}-fixed ${t}-ink ${t}-ink`]:{display:"none"}}}},Ti=e=>{const{componentCls:t,motionDurationSlow:n,lineWidthBold:o,colorPrimary:r}=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:`${nt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,content:'" "'},[t]:{overflowX:"scroll",position:"relative",display:"flex",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"},[`${t}-link:first-of-type`]:{paddingInline:0},[`${t}-ink`]:{position:"absolute",bottom:0,transition:`left ${n} ease-in-out, width ${n} ease-in-out`,height:o,backgroundColor:r}}}}},zi=qo("Anchor",e=>{const{fontSize:t,fontSizeLG:n,paddingXXS:o,calc:r}=e,i=Jn(e,{holderOffsetBlock:o,anchorPaddingBlockSecondary:r(o).div(2).equal(),anchorTitleBlock:r(t).div(14).mul(3).equal(),anchorBallSize:r(n).div(2).equal()});return[Ri(i),Ti(i)]},e=>({linkPaddingBlock:e.paddingXXS,linkPaddingInlineStart:e.padding}));function Bi(){return window}function Hi(e,t){if(!e.getClientRects().length)return 0;const n=e.getBoundingClientRect();return n.width||n.height?t===window?n.top-e.ownerDocument.documentElement.clientTop:n.top-t.getBoundingClientRect().top:n.top}const Di=/#([\S ]+)$/;const Li=e=>{var t;const{rootClassName:n,prefixCls:r,className:i,style:l,offsetTop:c,affix:s=!0,showInkInFixed:u=!1,children:d,items:p,direction:f="vertical",bounds:m,targetOffset:g,onClick:v,onChange:h,getContainer:b,getCurrentAnchor:y,replace:C}=e;const[x,$]=o.useState([]),[w,S]=o.useState(null),k=o.useRef(w),E=o.useRef(null),O=o.useRef(null),A=o.useRef(!1),{direction:I,getPrefixCls:N,className:M,style:j}=Se("anchor"),{getTargetContainer:P}=o.useContext(xe),R=N("anchor",r),T=Mi(R),[z,B,H]=zi(R,T),D=null!==(t=null!==b&&void 0!==b?b:P)&&void 0!==t?t:Bi,L=JSON.stringify(x),F=Bn(e=>{x.includes(e)||$(t=>[].concat(se(t),[e]))}),W=Bn(e=>{x.includes(e)&&$(t=>t.filter(t=>t!==e))}),_=Bn(e=>{if(k.current===e)return;const t="function"===typeof y?y(e):e;S(t),k.current=t,null===h||void 0===h||h(e)}),K=o.useCallback(()=>{if(A.current)return;const e=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5;const o=[],r=D();if(e.forEach(e=>{const i=Di.exec(null===e||void 0===e?void 0:e.toString());if(!i)return;const a=document.getElementById(i[1]);if(a){const i=Hi(a,r);i<=t+n&&o.push({link:e,top:i})}}),o.length){const e=o.reduce((e,t)=>t.top>e.top?t:e);return e.link}return""}(x,void 0!==g?g:c||0,m);_(e)},[L,g,c]),q=o.useCallback(e=>{_(e);const t=Di.exec(e);if(!t)return;const n=document.getElementById(t[1]);if(!n)return;const o=D();let r=Ii(o)+Hi(n,o);r-=void 0!==g?g:c||0,A.current=!0,Ni(r,{getContainer:D,callback(){A.current=!1}})},[g,c]),V=a()(B,H,T,n,`${R}-wrapper`,{[`${R}-wrapper-horizontal`]:"horizontal"===f,[`${R}-rtl`]:"rtl"===I},i,M),X=a()(R,{[`${R}-fixed`]:!s&&!u}),G=a()(`${R}-ink`,{[`${R}-ink-visible`]:w}),Y=Object.assign(Object.assign({maxHeight:c?`calc(100vh - ${c}px)`:"100vh"},j),l),U=e=>Array.isArray(e)?e.map(e=>o.createElement(Pi,Object.assign({replace:C},e,{key:e.key}),"vertical"===f&&U(e.children))):null,Q=o.createElement("div",{ref:E,className:V,style:Y},o.createElement("div",{className:X},o.createElement("span",{className:G,ref:O}),"items"in e?U(p):d));o.useEffect(()=>{const e=D();return K(),null===e||void 0===e||e.addEventListener("scroll",K),()=>{null===e||void 0===e||e.removeEventListener("scroll",K)}},[L]),o.useEffect(()=>{"function"===typeof y&&_(y(k.current||""))},[y]),o.useEffect(()=>{(()=>{var e;const t=null===(e=E.current)||void 0===e?void 0:e.querySelector(`.${R}-link-title-active`);if(t&&O.current){const{style:e}=O.current,n="horizontal"===f;e.top=n?"":`${t.offsetTop+t.clientHeight/2}px`,e.height=n?"":`${t.clientHeight}px`,e.left=n?`${t.offsetLeft}px`:"",e.width=n?`${t.clientWidth}px`:"",n&&Oi(t,{scrollMode:"if-needed",block:"nearest"})}})()},[f,y,L,w]);const Z=o.useMemo(()=>({registerLink:F,unregisterLink:W,scrollTo:q,activeLink:w,onClick:v,direction:f}),[w,v,q,f]),J=s&&"object"===typeof s?s:void 0;return z(o.createElement(ji.Provider,{value:Z},s?o.createElement(nr,Object.assign({offsetTop:c,target:D},J),Q):Q))},Fi=Li;Fi.Link=Pi;const Wi=Fi;function _i(){}const Ki=o.createContext({}),qi=()=>{const e=()=>{};return e.deprecated=_i,e};var Vi={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=Vi.F1&&t<=Vi.F12)return!1;switch(t){case Vi.ALT:case Vi.CAPS_LOCK:case Vi.CONTEXT_MENU:case Vi.CTRL:case Vi.DOWN:case Vi.END:case Vi.ESC:case Vi.HOME:case Vi.INSERT:case Vi.LEFT:case Vi.MAC_FF_META:case Vi.META:case Vi.NUMLOCK:case Vi.NUM_CENTER:case Vi.PAGE_DOWN:case Vi.PAGE_UP:case Vi.PAUSE:case Vi.PRINT_SCREEN:case Vi.RIGHT:case Vi.SHIFT:case Vi.UP:case Vi.WIN_KEY:case Vi.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=Vi.ZERO&&e<=Vi.NINE)return!0;if(e>=Vi.NUM_ZERO&&e<=Vi.NUM_MULTIPLY)return!0;if(e>=Vi.A&&e<=Vi.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case Vi.SPACE:case Vi.QUESTION_MARK:case Vi.NUM_PLUS:case Vi.NUM_MINUS:case Vi.NUM_PERIOD:case Vi.NUM_DIVISION:case Vi.SEMICOLON:case Vi.DASH:case Vi.EQUALS:case Vi.COMMA:case Vi.PERIOD:case Vi.SLASH:case Vi.APOSTROPHE:case Vi.SINGLE_QUOTE:case Vi.OPEN_SQUARE_BRACKET:case Vi.BACKSLASH:case Vi.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};const Xi=Vi;var Gi=o.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,i=e.className,c=e.duration,s=void 0===c?4.5:c,u=e.showProgress,d=e.pauseOnHover,f=void 0===d||d,m=e.eventKey,g=e.content,v=e.closable,h=e.closeIcon,b=void 0===h?"x":h,y=e.props,C=e.onClick,x=e.onNoticeClose,$=e.times,w=e.hovering,S=o.useState(!1),k=(0,ke.A)(S,2),E=k[0],O=k[1],A=o.useState(0),I=(0,ke.A)(A,2),N=I[0],M=I[1],j=o.useState(0),P=(0,ke.A)(j,2),R=P[0],T=P[1],z=w||E,B=s>0&&u,H=function(){x(m)};o.useEffect(function(){if(!z&&s>0){var e=Date.now()-R,t=setTimeout(function(){H()},1e3*s-R);return function(){f&&clearTimeout(t),T(Date.now()-e)}}},[s,z,$]),o.useEffect(function(){if(!z&&B&&(f||0===R)){var e,t=performance.now();return function n(){cancelAnimationFrame(e),e=requestAnimationFrame(function(e){var o=e+R-t,r=Math.min(o/(1e3*s),1);M(100*r),r<1&&n()})}(),function(){f&&cancelAnimationFrame(e)}}},[s,R,z,B,$]);var D=o.useMemo(function(){return"object"===(0,p.A)(v)&&null!==v?v:v?{closeIcon:b}:{}},[v,b]),L=ni(D,!0),F=100-(!N||N<0?0:N>100?100:N),W="".concat(n,"-notice");return o.createElement("div",(0,l.A)({},y,{ref:t,className:a()(W,i,(0,Ee.A)({},"".concat(W,"-closable"),v)),style:r,onMouseEnter:function(e){var t;O(!0),null===y||void 0===y||null===(t=y.onMouseEnter)||void 0===t||t.call(y,e)},onMouseLeave:function(e){var t;O(!1),null===y||void 0===y||null===(t=y.onMouseLeave)||void 0===t||t.call(y,e)},onClick:C}),o.createElement("div",{className:"".concat(W,"-content")},g),v&&o.createElement("a",(0,l.A)({tabIndex:0,className:"".concat(W,"-close"),onKeyDown:function(e){"Enter"!==e.key&&"Enter"!==e.code&&e.keyCode!==Xi.ENTER||H()},"aria-label":"Close"},L,{onClick:function(e){e.preventDefault(),e.stopPropagation(),H()}}),D.closeIcon),B&&o.createElement("progress",{className:"".concat(W,"-progress"),max:"100",value:F},F+"%"))});const Yi=Gi;var Ui=r().createContext({});const Qi=function(e){var t=e.children,n=e.classNames;return r().createElement(Ui.Provider,{value:{classNames:n}},t)};const Zi=function(e){var t,n,o,r={offset:8,threshold:3,gap:16};e&&"object"===(0,p.A)(e)&&(r.offset=null!==(t=e.offset)&&void 0!==t?t:8,r.threshold=null!==(n=e.threshold)&&void 0!==n?n:3,r.gap=null!==(o=e.gap)&&void 0!==o?o:16);return[!!e,r]};var Ji=["className","style","classNames","styles"];const ea=function(e){var t=e.configList,n=e.placement,i=e.prefixCls,c=e.className,s=e.style,u=e.motion,p=e.onAllNoticeRemoved,f=e.onNoticeClose,m=e.stack,g=(0,o.useContext)(Ui).classNames,v=(0,o.useRef)({}),h=(0,o.useState)(null),b=(0,ke.A)(h,2),y=b[0],C=b[1],x=(0,o.useState)([]),$=(0,ke.A)(x,2),w=$[0],S=$[1],k=t.map(function(e){return{config:e,key:String(e.key)}}),E=Zi(m),O=(0,ke.A)(E,2),A=O[0],I=O[1],N=I.offset,M=I.threshold,j=I.gap,P=A&&(w.length>0||k.length<=M),R="function"===typeof u?u(n):u;return(0,o.useEffect)(function(){A&&w.length>1&&S(function(e){return e.filter(function(e){return k.some(function(t){var n=t.key;return e===n})})})},[w,k,A]),(0,o.useEffect)(function(){var e,t;A&&v.current[null===(e=k[k.length-1])||void 0===e?void 0:e.key]&&C(v.current[null===(t=k[k.length-1])||void 0===t?void 0:t.key])},[k,A]),r().createElement(Zr,(0,l.A)({key:n,className:a()(i,"".concat(i,"-").concat(n),null===g||void 0===g?void 0:g.list,c,(0,Ee.A)((0,Ee.A)({},"".concat(i,"-stack"),!!A),"".concat(i,"-stack-expanded"),P)),style:s,keys:k,motionAppear:!0},R,{onAllRemoved:function(){p(n)}}),function(e,t){var o=e.config,c=e.className,s=e.style,u=e.index,p=o,m=p.key,h=p.times,b=String(m),C=o,x=C.className,$=C.style,E=C.classNames,O=C.styles,I=(0,cr.A)(C,Ji),M=k.findIndex(function(e){return e.key===b}),R={};if(A){var T=k.length-1-(M>-1?M:u-1),z="top"===n||"bottom"===n?"-50%":"0";if(T>0){var B,H,D;R.height=P?null===(B=v.current[b])||void 0===B?void 0:B.offsetHeight:null===y||void 0===y?void 0:y.offsetHeight;for(var L=0,F=0;F<T;F++){var W;L+=(null===(W=v.current[k[k.length-1-F].key])||void 0===W?void 0:W.offsetHeight)+j}var _=(P?L:T*N)*(n.startsWith("top")?1:-1),K=!P&&null!==y&&void 0!==y&&y.offsetWidth&&null!==(H=v.current[b])&&void 0!==H&&H.offsetWidth?((null===y||void 0===y?void 0:y.offsetWidth)-2*N*(T<3?T:3))/(null===(D=v.current[b])||void 0===D?void 0:D.offsetWidth):1;R.transform="translate3d(".concat(z,", ").concat(_,"px, 0) scaleX(").concat(K,")")}else R.transform="translate3d(".concat(z,", 0, 0)")}return r().createElement("div",{ref:t,className:a()("".concat(i,"-notice-wrapper"),c,null===E||void 0===E?void 0:E.wrapper),style:(0,d.A)((0,d.A)((0,d.A)({},s),R),null===O||void 0===O?void 0:O.wrapper),onMouseEnter:function(){return S(function(e){return e.includes(b)?e:[].concat(se(e),[b])})},onMouseLeave:function(){return S(function(e){return e.filter(function(e){return e!==b})})}},r().createElement(Yi,(0,l.A)({},I,{ref:function(e){M>-1?v.current[b]=e:delete v.current[b]},prefixCls:i,classNames:E,styles:O,className:a()(x,null===g||void 0===g?void 0:g.notice),style:$,times:h,key:m,eventKey:m,onNoticeClose:f,hovering:A&&w.length>0})))})};var ta=o.forwardRef(function(e,t){var n=e.prefixCls,r=void 0===n?"rc-notification":n,i=e.container,a=e.motion,l=e.maxCount,c=e.className,s=e.style,u=e.onAllRemoved,p=e.stack,m=e.renderNotifications,g=o.useState([]),v=(0,ke.A)(g,2),h=v[0],b=v[1],y=function(e){var t,n=h.find(function(t){return t.key===e});null===n||void 0===n||null===(t=n.onClose)||void 0===t||t.call(n),b(function(t){return t.filter(function(t){return t.key!==e})})};o.useImperativeHandle(t,function(){return{open:function(e){b(function(t){var n,o=se(t),r=o.findIndex(function(t){return t.key===e.key}),i=(0,d.A)({},e);r>=0?(i.times=((null===(n=t[r])||void 0===n?void 0:n.times)||0)+1,o[r]=i):(i.times=0,o.push(i));return l>0&&o.length>l&&(o=o.slice(-l)),o})},close:function(e){y(e)},destroy:function(){b([])}}});var C=o.useState({}),x=(0,ke.A)(C,2),$=x[0],w=x[1];o.useEffect(function(){var e={};h.forEach(function(t){var n=t.placement,o=void 0===n?"topRight":n;o&&(e[o]=e[o]||[],e[o].push(t))}),Object.keys($).forEach(function(t){e[t]=e[t]||[]}),w(e)},[h]);var S=function(e){w(function(t){var n=(0,d.A)({},t);return(n[e]||[]).length||delete n[e],n})},k=o.useRef(!1);if(o.useEffect(function(){Object.keys($).length>0?k.current=!0:k.current&&(null===u||void 0===u||u(),k.current=!1)},[$]),!i)return null;var E=Object.keys($);return(0,f.createPortal)(o.createElement(o.Fragment,null,E.map(function(e){var t=$[e],n=o.createElement(ea,{key:e,configList:t,placement:e,prefixCls:r,className:null===c||void 0===c?void 0:c(e),style:null===s||void 0===s?void 0:s(e),motion:a,onNoticeClose:y,onAllNoticeRemoved:S,stack:p});return m?m(n,{prefixCls:r,key:e}):n})),i)});const na=ta;var oa=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],ra=function(){return document.body},ia=0;function aa(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.getContainer,n=void 0===t?ra:t,r=e.motion,i=e.prefixCls,a=e.maxCount,l=e.className,c=e.style,s=e.onAllRemoved,u=e.stack,d=e.renderNotifications,p=(0,cr.A)(e,oa),f=o.useState(),m=(0,ke.A)(f,2),g=m[0],v=m[1],h=o.useRef(),b=o.createElement(na,{container:g,ref:h,prefixCls:i,motion:r,maxCount:a,className:l,style:c,onAllRemoved:s,stack:u,renderNotifications:d}),y=o.useState([]),C=(0,ke.A)(y,2),x=C[0],$=C[1],w=Bn(function(e){var t=function(){for(var e={},t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return n.forEach(function(t){t&&Object.keys(t).forEach(function(n){var o=t[n];void 0!==o&&(e[n]=o)})}),e}(p,e);null!==t.key&&void 0!==t.key||(t.key="rc-notification-".concat(ia),ia+=1),$(function(e){return[].concat(se(e),[{type:"open",config:t}])})}),S=o.useMemo(function(){return{open:w,close:function(e){$(function(t){return[].concat(se(t),[{type:"close",key:e}])})},destroy:function(){$(function(e){return[].concat(se(e),[{type:"destroy"}])})}}},[]);return o.useEffect(function(){v(n())}),o.useEffect(function(){var e,t;h.current&&x.length&&(x.forEach(function(e){switch(e.type){case"open":h.current.open(e.config);break;case"close":h.current.close(e.key);break;case"destroy":h.current.destroy()}}),$(function(n){return e===n&&t||(e=n,t=n.filter(function(e){return!x.includes(e)})),t}))},[x]),[S,b]}var la=n(8668);const ca=r().createContext(void 0),sa=100,ua=1e3,da={Modal:sa,Drawer:sa,Popover:sa,Popconfirm:sa,Tooltip:sa,Tour:sa,FloatButton:sa},pa={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};const fa=(e,t)=>{const[,n]=Ko(),o=r().useContext(ca),i=function(e){return e in da}(e);let a;if(void 0!==t)a=[t,t];else{let r=null!==o&&void 0!==o?o:0;r+=i?(o?0:n.zIndexPopupBase)+da[e]:pa[e],a=[void 0===o?t:r,r]}return a},ma=e=>{const{componentCls:t,iconCls:n,boxShadow:o,colorText:r,colorSuccess:i,colorError:a,colorWarning:l,colorInfo:c,fontSizeLG:s,motionEaseInOutCirc:u,motionDurationSlow:d,marginXS:p,paddingXS:f,borderRadiusLG:m,zIndexPopup:g,contentPadding:v,contentBg:h}=e,b=`${t}-notice`,y=new En("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:f,transform:"translateY(0)",opacity:1}}),C=new En("MessageMoveOut",{"0%":{maxHeight:e.height,padding:f,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),x={padding:f,textAlign:"center",[`${t}-custom-content`]:{display:"flex",alignItems:"center"},[`${t}-custom-content > ${n}`]:{marginInlineEnd:p,fontSize:s},[`${b}-content`]:{display:"inline-block",padding:v,background:h,borderRadius:m,boxShadow:o,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:i},[`${t}-error > ${n}`]:{color:a},[`${t}-warning > ${n}`]:{color:l},[`${t}-info > ${n},\n ${t}-loading > ${n}`]:{color:c}};return[{[t]:Object.assign(Object.assign({},po(e)),{color:r,position:"fixed",top:p,width:"100%",pointerEvents:"none",zIndex:g,[`${t}-move-up`]:{animationFillMode:"forwards"},[`\n ${t}-move-up-appear,\n ${t}-move-up-enter\n `]:{animationName:y,animationDuration:d,animationPlayState:"paused",animationTimingFunction:u},[`\n ${t}-move-up-appear${t}-move-up-appear-active,\n ${t}-move-up-enter${t}-move-up-enter-active\n `]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:C,animationDuration:d,animationPlayState:"paused",animationTimingFunction:u},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${b}-wrapper`]:Object.assign({},x)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},x),{padding:0,textAlign:"start"})}]},ga=qo("Message",e=>{const t=Jn(e,{height:150});return[ma(t)]},e=>({zIndexPopup:e.zIndexPopupBase+ua+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}));var va=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const ha={info:o.createElement(lr.A,null),success:o.createElement(or.A,null),error:o.createElement(rr.A,null),warning:o.createElement(ar.A,null),loading:o.createElement(la.A,null)},ba=e=>{let{prefixCls:t,type:n,icon:r,children:i}=e;return o.createElement("div",{className:a()(`${t}-custom-content`,`${t}-${n}`)},r||ha[n],o.createElement("span",null,i))},ya=e=>{const{prefixCls:t,className:n,type:r,icon:i,content:l}=e,c=va(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:s}=o.useContext(xe),u=t||s("message"),d=Mi(u),[p,f,m]=ga(u,d);return p(o.createElement(Yi,Object.assign({},c,{prefixCls:u,className:a()(n,f,`${u}-notice-pure-panel`,m,d),eventKey:"pure",duration:null,content:o.createElement(ba,{prefixCls:u,type:r,icon:i},l)})))};function Ca(e){let t;const n=new Promise(n=>{t=e(()=>{n(!0)})}),o=()=>{null===t||void 0===t||t()};return o.then=(e,t)=>n.then(e,t),o.promise=n,o}var xa=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const $a=3,wa=e=>{let{children:t,prefixCls:n}=e;const r=Mi(n),[i,l,c]=ga(n,r);return i(o.createElement(Qi,{classNames:{list:a()(l,c,r)}},t))},Sa=(e,t)=>{let{prefixCls:n,key:r}=t;return o.createElement(wa,{prefixCls:n,key:r},e)},ka=o.forwardRef((e,t)=>{const{top:n,prefixCls:r,getContainer:i,maxCount:l,duration:c=$a,rtl:s,transitionName:u,onAllRemoved:d}=e,{getPrefixCls:p,getPopupContainer:f,message:m,direction:g}=o.useContext(xe),v=r||p("message"),h=o.createElement("span",{className:`${v}-close-x`},o.createElement(ir.A,{className:`${v}-close-icon`})),[b,y]=aa({prefixCls:v,style:()=>({left:"50%",transform:"translateX(-50%)",top:null!==n&&void 0!==n?n:8}),className:()=>a()({[`${v}-rtl`]:null!==s&&void 0!==s?s:"rtl"===g}),motion:()=>function(e,t){return{motionName:null!==t&&void 0!==t?t:`${e}-move-up`}}(v,u),closable:!1,closeIcon:h,duration:c,getContainer:()=>(null===i||void 0===i?void 0:i())||(null===f||void 0===f?void 0:f())||document.body,maxCount:l,onAllRemoved:d,renderNotifications:Sa});return o.useImperativeHandle(t,()=>Object.assign(Object.assign({},b),{prefixCls:v,message:m})),y});let Ea=0;function Oa(e){const t=o.useRef(null),n=(qi("Message"),o.useMemo(()=>{const e=e=>{var n;null===(n=t.current)||void 0===n||n.close(e)},n=n=>{if(!t.current){const e=()=>{};return e.then=()=>{},e}const{open:r,prefixCls:i,message:l}=t.current,c=`${i}-notice`,{content:s,icon:u,type:d,key:p,className:f,style:m,onClose:g}=n,v=xa(n,["content","icon","type","key","className","style","onClose"]);let h=p;return void 0!==h&&null!==h||(Ea+=1,h=`antd-message-${Ea}`),Ca(t=>(r(Object.assign(Object.assign({},v),{key:h,content:o.createElement(ba,{prefixCls:i,type:d,icon:u},s),placement:"top",className:a()(d&&`${c}-${d}`,f,null===l||void 0===l?void 0:l.className),style:Object.assign(Object.assign({},null===l||void 0===l?void 0:l.style),m),onClose:()=>{null===g||void 0===g||g(),t()}})),()=>{e(h)}))},r={open:n,destroy:n=>{var o;void 0!==n?e(n):null===(o=t.current)||void 0===o||o.destroy()}};return["info","success","warning","error","loading"].forEach(e=>{r[e]=(t,o,r)=>{let i,a,l;i=t&&"object"===typeof t&&"content"in t?t:{content:t},"function"===typeof o?l=o:(a=o,l=r);const c=Object.assign(Object.assign({onClose:l,duration:a},i),{type:e});return n(c)}}),r},[]));return[n,o.createElement(ka,Object.assign({key:"message-holder"},e,{ref:t}))]}function Aa(e){return Oa(e)}var Ia=n(71179);const Na=(0,o.createContext)(void 0);const Ma={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"};const ja=(0,d.A)((0,d.A)({},{yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0}),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",week:"Week",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"}),Pa={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Ra={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},ja),timePickerLocale:Object.assign({},Pa)},Ta=Ra,za="${label} is not a valid ${type}",Ba={locale:"en",Pagination:Ma,DatePicker:Ra,TimePicker:Pa,Calendar:Ta,global:{placeholder:"Please select",close:"Close"},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:za,method:za,array:za,object:za,number:za,date:za,boolean:za,integer:za,float:za,regexp:za,email:za,url:za,hex:za},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};let Ha=Object.assign({},Ba.Modal),Da=[];const La=()=>Da.reduce((e,t)=>Object.assign(Object.assign({},e),t),Ba.Modal);function Fa(){return Ha}const Wa=(0,o.createContext)(void 0);const _a=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;o.useEffect(()=>{const e=function(e){if(e){const t=Object.assign({},e);return Da.push(t),Ha=La(),()=>{Da=Da.filter(e=>e!==t),Ha=La()}}Ha=Object.assign({},Ba.Modal)}(null===t||void 0===t?void 0:t.Modal);return e},[t]);const i=o.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return o.createElement(Wa.Provider,{value:i},n)},Ka=`-ant-${Date.now()}-${Math.random()}`;function qa(e,t){const n=function(e,t){const n={},o=(e,t)=>{let n=e.clone();return n=(null===t||void 0===t?void 0:t(n))||n,n.toRgbString()},r=(e,t)=>{const r=new wo.Y(e),i=(0,$o.cM)(r.toRgbString());n[`${t}-color`]=o(r),n[`${t}-color-disabled`]=i[1],n[`${t}-color-hover`]=i[4],n[`${t}-color-active`]=i[6],n[`${t}-color-outline`]=r.clone().setA(.2).toRgbString(),n[`${t}-color-deprecated-bg`]=i[0],n[`${t}-color-deprecated-border`]=i[2]};if(t.primaryColor){r(t.primaryColor,"primary");const e=new wo.Y(t.primaryColor),i=(0,$o.cM)(e.toRgbString());i.forEach((e,t)=>{n[`primary-${t+1}`]=e}),n["primary-color-deprecated-l-35"]=o(e,e=>e.lighten(35)),n["primary-color-deprecated-l-20"]=o(e,e=>e.lighten(20)),n["primary-color-deprecated-t-20"]=o(e,e=>e.tint(20)),n["primary-color-deprecated-t-50"]=o(e,e=>e.tint(50)),n["primary-color-deprecated-f-12"]=o(e,e=>e.setA(.12*e.a));const a=new wo.Y(i[0]);n["primary-color-active-deprecated-f-30"]=o(a,e=>e.setA(.3*e.a)),n["primary-color-active-deprecated-d-02"]=o(a,e=>e.darken(2))}return t.successColor&&r(t.successColor,"success"),t.warningColor&&r(t.warningColor,"warning"),t.errorColor&&r(t.errorColor,"error"),t.infoColor&&r(t.infoColor,"info"),`\n :root {\n ${Object.keys(n).map(t=>`--${e}-${t}: ${n[t]};`).join("\n")}\n }\n `.trim()}(e,t);(0,Le.A)()&&(0,Ae.BD)(n,`${Ka}-dynamic-theme`)}const Va=o.createContext(!1),Xa=e=>{let{children:t,disabled:n}=e;const r=o.useContext(Va);return o.createElement(Va.Provider,{value:null!==n&&void 0!==n?n:r},t)},Ga=Va,Ya=o.createContext(void 0),Ua=e=>{let{children:t,size:n}=e;const r=o.useContext(Ya);return o.createElement(Ya.Provider,{value:n||r},t)},Qa=Ya;const Za=function(){return{componentDisabled:(0,o.useContext)(Ga),componentSize:(0,o.useContext)(Qa)}},Ja=Object.assign({},o),{useId:el}=Ja,tl="undefined"===typeof el?()=>"":el;const nl=o.createContext(!0);function ol(e){const t=o.useContext(nl),{children:n}=e,[,r]=Ko(),{motion:i}=r,a=o.useRef(!1);return a.current||(a.current=t!==i),a.current?o.createElement(nl.Provider,{value:i},o.createElement(dr,{motion:i},n)):n}o.memo(e=>{let{dropdownMatchSelectWidth:t}=e;return qi("ConfigProvider").deprecated(void 0===t,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null});const rl=()=>null,il=(e,t)=>{const[n,o]=Ko();return $n({theme:n,token:o,hashId:"",path:["ant-design-icons",e],nonce:()=>null===t||void 0===t?void 0:t.nonce,layer:{name:"antd"}},()=>[go(e)])};var al=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const ll=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let cl,sl,ul,dl;function pl(){return cl||be}function fl(){return sl||ye}const ml=()=>({getPrefixCls:(e,t)=>t||(e?`${pl()}-${e}`:pl()),getIconPrefixCls:fl,getRootPrefixCls:()=>cl||pl(),getTheme:()=>ul,holderRender:dl}),gl=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:i,anchor:a,form:l,locale:c,componentSize:s,direction:u,space:d,splitter:p,virtual:f,dropdownMatchSelectWidth:m,popupMatchSelectWidth:g,popupOverflow:v,legacyLocale:h,parentContext:b,iconPrefixCls:y,theme:C,componentDisabled:x,segmented:$,statistic:w,spin:S,calendar:k,carousel:E,cascader:O,collapse:A,typography:I,checkbox:N,descriptions:M,divider:j,drawer:P,skeleton:R,steps:T,image:z,layout:B,list:H,mentions:D,modal:L,progress:F,result:W,slider:_,breadcrumb:K,menu:q,pagination:V,input:X,textArea:G,empty:Y,badge:U,radio:Q,rate:Z,switch:J,transfer:ee,avatar:te,message:ne,tag:oe,table:re,card:ie,tabs:ae,timeline:le,timePicker:ce,upload:se,notification:ue,tree:de,colorPicker:pe,datePicker:fe,rangePicker:me,flex:ge,wave:ve,dropdown:he,warning:be,tour:Ce,tooltip:$e,popover:we,popconfirm:Se,floatButtonGroup:ke,variant:Ee,inputNumber:Oe,treeSelect:Ae}=e,Me=o.useCallback((t,n)=>{const{prefixCls:o}=e;if(n)return n;const r=o||b.getPrefixCls("");return t?`${r}-${t}`:r},[b.getPrefixCls,e.prefixCls]),je=y||b.iconPrefixCls||ye,Pe=n||b.csp;il(je,Pe);const Re=function(e,t,n){var o;qi("ConfigProvider");const r=e||{},i=!1!==r.inherit&&t?t:Object.assign(Object.assign({},Co),{hashed:null!==(o=null===t||void 0===t?void 0:t.hashed)&&void 0!==o?o:Co.hashed,cssVar:null===t||void 0===t?void 0:t.cssVar}),a=tl();return(0,Ie.A)(()=>{var o,l;if(!e)return t;const c=Object.assign({},i.components);Object.keys(e.components||{}).forEach(t=>{c[t]=Object.assign(Object.assign({},c[t]),e.components[t])});const s=`css-var-${a.replace(/:/g,"")}`,u=(null!==(o=r.cssVar)&&void 0!==o?o:i.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:null===n||void 0===n?void 0:n.prefixCls},"object"===typeof i.cssVar?i.cssVar:{}),"object"===typeof r.cssVar?r.cssVar:{}),{key:"object"===typeof r.cssVar&&(null===(l=r.cssVar)||void 0===l?void 0:l.key)||s});return Object.assign(Object.assign(Object.assign({},i),r),{token:Object.assign(Object.assign({},i.token),r.token),components:c,cssVar:u})},[r,i],(e,t)=>e.some((e,n)=>{const o=t[n];return!Ne(e,o,!0)}))}(C,b.theme,{prefixCls:Me("")});const Te={csp:Pe,autoInsertSpaceInButton:r,alert:i,anchor:a,locale:c||h,direction:u,space:d,splitter:p,virtual:f,popupMatchSelectWidth:null!==g&&void 0!==g?g:m,popupOverflow:v,getPrefixCls:Me,iconPrefixCls:je,theme:Re,segmented:$,statistic:w,spin:S,calendar:k,carousel:E,cascader:O,collapse:A,typography:I,checkbox:N,descriptions:M,divider:j,drawer:P,skeleton:R,steps:T,image:z,input:X,textArea:G,layout:B,list:H,mentions:D,modal:L,progress:F,result:W,slider:_,breadcrumb:K,menu:q,pagination:V,empty:Y,badge:U,radio:Q,rate:Z,switch:J,transfer:ee,avatar:te,message:ne,tag:oe,table:re,card:ie,tabs:ae,timeline:le,timePicker:ce,upload:se,notification:ue,tree:de,colorPicker:pe,datePicker:fe,rangePicker:me,flex:ge,wave:ve,dropdown:he,warning:be,tour:Ce,tooltip:$e,popover:we,popconfirm:Se,floatButtonGroup:ke,variant:Ee,inputNumber:Oe,treeSelect:Ae};const ze=Object.assign({},b);Object.keys(Te).forEach(e=>{void 0!==Te[e]&&(ze[e]=Te[e])}),ll.forEach(t=>{const n=e[t];n&&(ze[t]=n)}),"undefined"!==typeof r&&(ze.button=Object.assign({autoInsertSpace:r},ze.button));const Be=(0,Ie.A)(()=>ze,ze,(e,t)=>{const n=Object.keys(e),o=Object.keys(t);return n.length!==o.length||n.some(n=>e[n]!==t[n])}),{layer:He}=o.useContext(De),Le=o.useMemo(()=>({prefixCls:je,csp:Pe,layer:He?"antd":void 0}),[je,Pe,He]);let Fe=o.createElement(o.Fragment,null,o.createElement(rl,{dropdownMatchSelectWidth:m}),t);const We=o.useMemo(()=>{var e,t,n,o;return Yn((null===(e=Ba.Form)||void 0===e?void 0:e.defaultValidateMessages)||{},(null===(n=null===(t=Be.locale)||void 0===t?void 0:t.Form)||void 0===n?void 0:n.defaultValidateMessages)||{},(null===(o=Be.form)||void 0===o?void 0:o.validateMessages)||{},(null===l||void 0===l?void 0:l.validateMessages)||{})},[Be,null===l||void 0===l?void 0:l.validateMessages]);Object.keys(We).length>0&&(Fe=o.createElement(Na.Provider,{value:We},Fe)),c&&(Fe=o.createElement(_a,{locale:c,_ANT_MARK__:"internalMark"},Fe)),(je||Pe)&&(Fe=o.createElement(Ia.A.Provider,{value:Le},Fe)),s&&(Fe=o.createElement(Ua,{size:s},Fe)),Fe=o.createElement(ol,null,Fe);const _e=o.useMemo(()=>{const e=Re||{},{algorithm:t,token:n,components:o,cssVar:r}=e,i=al(e,["algorithm","token","components","cssVar"]),a=t&&(!Array.isArray(t)||t.length>0)?Ye(t):Ro,l={};Object.entries(o||{}).forEach(e=>{let[t,n]=e;const o=Object.assign({},n);"algorithm"in o&&(!0===o.algorithm?o.theme=a:(Array.isArray(o.algorithm)||"function"===typeof o.algorithm)&&(o.theme=Ye(o.algorithm)),delete o.algorithm),l[t]=o});const c=Object.assign(Object.assign({},yo),n);return Object.assign(Object.assign({},i),{theme:a,token:c,components:l,override:Object.assign({override:c},l),cssVar:r})},[Re]);return C&&(Fe=o.createElement(xo.Provider,{value:_e},Fe)),Be.warning&&(Fe=o.createElement(Ki.Provider,{value:Be.warning},Fe)),void 0!==x&&(Fe=o.createElement(Xa,{disabled:x},Fe)),o.createElement(xe.Provider,{value:Be},Fe)},vl=e=>{const t=o.useContext(xe),n=o.useContext(Wa);return o.createElement(gl,Object.assign({parentContext:t,legacyLocale:n},e))};vl.ConfigContext=xe,vl.SizeContext=Qa,vl.config=e=>{const{prefixCls:t,iconPrefixCls:n,theme:o,holderRender:r}=e;void 0!==t&&(cl=t),void 0!==n&&(sl=n),"holderRender"in e&&(dl=r),o&&(!function(e){return Object.keys(e).some(e=>e.endsWith("Color"))}(o)?ul=o:qa(pl(),o))},vl.useConfig=Za,Object.defineProperty(vl,"SizeContext",{get:()=>Qa});const hl=vl;function bl(e,t){this.v=e,this.k=t}function yl(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch(e){r=0}yl=function(e,t,n,o){function i(t,n){yl(e,t,function(e){return this._invoke(t,n,e)})}t?r?r(e,t,{value:n,enumerable:!o,configurable:!o,writable:!o}):e[t]=n:(i("next",0),i("throw",1),i("return",2))},yl(e,t,n,o)}function Cl(){var e,t,n="function"==typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function i(n,o,r,i){var c=o&&o.prototype instanceof l?o:l,s=Object.create(c.prototype);return yl(s,"_invoke",function(n,o,r){var i,l,c,s=0,u=r||[],d=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,n){return i=t,l=0,c=e,p.n=n,a}};function f(n,o){for(l=n,c=o,t=0;!d&&s&&!r&&t<u.length;t++){var r,i=u[t],f=p.p,m=i[2];n>3?(r=m===o)&&(c=i[(l=i[4])?5:(l=3,3)],i[4]=i[5]=e):i[0]<=f&&((r=n<2&&f<i[1])?(l=0,p.v=o,p.n=i[1]):f<m&&(r=n<3||i[0]>o||o>m)&&(i[4]=n,i[5]=o,p.n=m,l=0))}if(r||n>1)return a;throw d=!0,o}return function(r,u,m){if(s>1)throw TypeError("Generator is already running");for(d&&1===u&&f(u,m),l=u,c=m;(t=l<2?e:c)||!d;){i||(l?l<3?(l>1&&(p.n=-1),f(l,c)):p.n=c:p.v=c);try{if(s=2,i){if(l||(r="next"),t=i[r]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,l<2&&(l=0)}else 1===l&&(t=i.return)&&t.call(i),l<2&&(c=TypeError("The iterator does not provide a '"+r+"' method"),l=1);i=e}else if((t=(d=p.n<0)?c:n.call(o,p))!==a)break}catch(t){i=e,l=1,c=t}finally{s=1}}return{value:t,done:d}}}(n,r,i),!0),s}var a={};function l(){}function c(){}function s(){}t=Object.getPrototypeOf;var u=[][o]?t(t([][o]())):(yl(t={},o,function(){return this}),t),d=s.prototype=l.prototype=Object.create(u);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,s):(e.__proto__=s,yl(e,r,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=s,yl(d,"constructor",s),yl(s,"constructor",c),c.displayName="GeneratorFunction",yl(s,r,"GeneratorFunction"),yl(d),yl(d,r,"Generator"),yl(d,o,function(){return this}),yl(d,"toString",function(){return"[object Generator]"}),(Cl=function(){return{w:i,m:p}})()}function xl(e,t){function n(o,r,i,a){try{var l=e[o](r),c=l.value;return c instanceof bl?t.resolve(c.v).then(function(e){n("next",e,i,a)},function(e){n("throw",e,i,a)}):t.resolve(c).then(function(e){l.value=e,i(l)},function(e){return n("throw",e,i,a)})}catch(e){a(e)}}var o;this.next||(yl(xl.prototype),yl(xl.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),yl(this,"_invoke",function(e,r,i){function a(){return new t(function(t,o){n(e,i,t,o)})}return o=o?o.then(a,a):a()},!0)}function $l(e,t,n,o,r){return new xl(Cl().w(e,t,n,o),r||Promise)}function wl(e,t,n,o,r){var i=$l(e,t,n,o,r);return i.next().then(function(e){return e.done?e.value:i.next()})}function Sl(e){var t=Object(e),n=[];for(var o in t)n.unshift(o);return function e(){for(;n.length;)if((o=n.pop())in t)return e.value=o,e.done=!1,e;return e.done=!0,e}}function kl(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError((0,p.A)(e)+" is not iterable")}function El(){var e=Cl(),t=e.m(El),n=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function o(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===n||"GeneratorFunction"===(t.displayName||t.name))}var r={throw:1,return:2,break:3,continue:3};function i(e){var t,n;return function(o){t||(t={stop:function(){return n(o.a,2)},catch:function(){return o.v},abrupt:function(e,t){return n(o.a,r[e],t)},delegateYield:function(e,r,i){return t.resultName=r,n(o.d,kl(e),i)},finish:function(e){return n(o.f,e)}},n=function(e,n,r){o.p=t.prev,o.n=t.next;try{return e(n,r)}finally{t.next=o.n}}),t.resultName&&(t[t.resultName]=o.v,t.resultName=void 0),t.sent=o.v,t.next=o.n;try{return e.call(this,t)}finally{o.p=t.prev,o.n=t.next}}}return(El=function(){return{wrap:function(t,n,o,r){return e.w(i(t),n,o,r&&r.reverse())},isGeneratorFunction:o,mark:e.m,awrap:function(e,t){return new bl(e,t)},AsyncIterator:xl,async:function(e,t,n,r,a){return(o(t)?$l:wl)(i(e),t,n,r,a)},keys:Sl,values:kl}})()}function Ol(e,t,n,o,r,i,a){try{var l=e[i](a),c=l.value}catch(e){return void n(e)}l.done?t(c):Promise.resolve(c).then(o,r)}function Al(e){return function(){var t=this,n=arguments;return new Promise(function(o,r){var i=e.apply(t,n);function a(e){Ol(i,o,r,a,l,"next",e)}function l(e){Ol(i,o,r,a,l,"throw",e)}a(void 0)})}}var Il,Nl=(0,d.A)({},f),Ml=Nl.version,jl=Nl.render,Pl=Nl.unmountComponentAtNode;try{Number((Ml||"").split(".")[0])>=18&&(Il=Nl.createRoot)}catch($i){}function Rl(e){var t=Nl.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&"object"===(0,p.A)(t)&&(t.usingClientEntryPoint=e)}var Tl="__rc_react_root__";function zl(e,t){Il?function(e,t){Rl(!0);var n=t[Tl]||Il(t);Rl(!1),n.render(e),t[Tl]=n}(e,t):function(e,t){null===jl||void 0===jl||jl(e,t)}(e,t)}function Bl(e){return Hl.apply(this,arguments)}function Hl(){return(Hl=Al(El().mark(function e(t){return El().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.resolve().then(function(){var e;null===(e=t[Tl])||void 0===e||e.unmount(),delete t[Tl]}));case 1:case"end":return e.stop()}},e)}))).apply(this,arguments)}function Dl(e){Pl(e)}function Ll(){return(Ll=Al(El().mark(function e(t){return El().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===Il){e.next=2;break}return e.abrupt("return",Bl(t));case 2:Dl(t);case 3:case"end":return e.stop()}},e)}))).apply(this,arguments)}let Fl=(e,t)=>(zl(e,t),()=>function(e){return Ll.apply(this,arguments)}(t));function Wl(e){return e&&(Fl=e),Fl}const _l=()=>({height:0,opacity:0}),Kl=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},ql=e=>({height:e?e.offsetHeight:0}),Vl=(e,t)=>!0===(null===t||void 0===t?void 0:t.deadline)||"height"===t.propertyName,Xl=(e,t,n)=>void 0!==n?n:`${e}-${t}`,Gl=function(){return{motionName:`${arguments.length>0&&void 0!==arguments[0]?arguments[0]:be}-motion-collapse`,onAppearStart:_l,onEnterStart:_l,onAppearActive:Kl,onEnterActive:Kl,onLeaveStart:ql,onLeaveActive:_l,onAppearEnd:Vl,onEnterEnd:Vl,onLeaveEnd:Vl,motionDeadline:500}},Yl=(e,t)=>{const n=o.useContext(Wa),r=o.useMemo(()=>{var o;const r=t||Ba[e],i=null!==(o=null===n||void 0===n?void 0:n[e])&&void 0!==o?o:{};return Object.assign(Object.assign({},"function"===typeof r?r():r),i||{})},[e,t,n]);return[r,o.useMemo(()=>{const e=null===n||void 0===n?void 0:n.locale;return(null===n||void 0===n?void 0:n.exist)&&!e?Ba.locale:e},[n])]};function Ul(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(e){delete n[e]}),n}const Ql=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,o=t.height;if(n||o)return!0}if(e.getBoundingClientRect){var r=e.getBoundingClientRect(),i=r.width,a=r.height;if(i||a)return!0}}return!1},Zl=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}},Jl=Vo("Wave",e=>[Zl(e)]),ec=`${be}-wave-target`;function tc(e){return e&&"#fff"!==e&&"#ffffff"!==e&&"rgb(255, 255, 255)"!==e&&"rgba(255, 255, 255, 1)"!==e&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&"transparent"!==e}function nc(e){return Number.isNaN(e)?0:e}const oc=e=>{const{className:t,target:n,component:r,registerUnmount:i}=e,l=o.useRef(null),c=o.useRef(null);o.useEffect(()=>{c.current=i()},[]);const[s,u]=o.useState(null),[d,p]=o.useState([]),[f,m]=o.useState(0),[g,v]=o.useState(0),[h,y]=o.useState(0),[C,x]=o.useState(0),[$,w]=o.useState(!1),S={left:f,top:g,width:h,height:C,borderRadius:d.map(e=>`${e}px`).join(" ")};function k(){const e=getComputedStyle(n);u(function(e){const{borderTopColor:t,borderColor:n,backgroundColor:o}=getComputedStyle(e);return tc(t)?t:tc(n)?n:tc(o)?o:null}(n));const t="static"===e.position,{borderLeftWidth:o,borderTopWidth:r}=e;m(t?n.offsetLeft:nc(-parseFloat(o))),v(t?n.offsetTop:nc(-parseFloat(r))),y(n.offsetWidth),x(n.offsetHeight);const{borderTopLeftRadius:i,borderTopRightRadius:a,borderBottomLeftRadius:l,borderBottomRightRadius:c}=e;p([i,a,c,l].map(e=>nc(parseFloat(e))))}if(s&&(S["--wave-color"]=s),o.useEffect(()=>{if(n){const e=ve(()=>{k(),w(!0)});let t;return"undefined"!==typeof ResizeObserver&&(t=new ResizeObserver(k),t.observe(n)),()=>{ve.cancel(e),null===t||void 0===t||t.disconnect()}}},[]),!$)return null;const E=("Checkbox"===r||"Radio"===r)&&(null===n||void 0===n?void 0:n.classList.contains(ec));return o.createElement(Jr,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(e,t)=>{var n,o;if(t.deadline||"opacity"===t.propertyName){const e=null===(n=l.current)||void 0===n?void 0:n.parentElement;null===(o=c.current)||void 0===o||o.call(c).then(()=>{null===e||void 0===e||e.remove()})}return!1}},(e,n)=>{let{className:r}=e;return o.createElement("div",{ref:(0,b.K4)(l,n),className:a()(t,r,{"wave-quick":E}),style:S})})},rc=(e,t)=>{var n;const{component:r}=t;if("Checkbox"===r&&!(null===(n=e.querySelector("input"))||void 0===n?void 0:n.checked))return;const i=document.createElement("div");i.style.position="absolute",i.style.left="0px",i.style.top="0px",null===e||void 0===e||e.insertBefore(i,null===e||void 0===e?void 0:e.firstChild);const a=Wl();let l=null;l=a(o.createElement(oc,Object.assign({},t,{target:e,registerUnmount:function(){return l}})),i)},ic=(e,t,n)=>{const{wave:r}=o.useContext(xe),[,i,a]=Ko(),l=Bn(o=>{const l=e.current;if((null===r||void 0===r?void 0:r.disabled)||!l)return;const c=l.querySelector(`.${ec}`)||l,{showEffect:s}=r||{};(s||rc)(c,{className:t,token:i,component:n,event:o,hashId:a})}),c=o.useRef(null);return e=>{ve.cancel(c.current),c.current=ve(()=>{l(e)})}};const ac=e=>{const{children:t,disabled:n,component:i}=e,{getPrefixCls:l}=(0,o.useContext)(xe),c=(0,o.useRef)(null),s=l("wave"),[,u]=Jl(s),d=ic(c,a()(s,u),i);if(r().useEffect(()=>{const e=c.current;if(!e||1!==e.nodeType||n)return;const t=t=>{!Ql(t.target)||!e.getAttribute||e.getAttribute("disabled")||e.disabled||e.className.includes("disabled")||e.className.includes("-leave")||d(t)};return e.addEventListener("click",t,!0),()=>{e.removeEventListener("click",t,!0)}},[n]),!r().isValidElement(t))return null!==t&&void 0!==t?t:null;return ii(t,{ref:(0,b.f3)(t)?(0,b.K4)((0,b.A9)(t),c):c})},lc=e=>{const t=r().useContext(Qa);return r().useMemo(()=>e?"string"===typeof e?null!==e&&void 0!==e?e:t:"function"===typeof e?e(t):t:t,[e,t])},cc=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},sc=e=>{const{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"}}}},uc=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}},dc=qo("Space",e=>{const t=Jn(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[sc(t),uc(t),cc(t)]},()=>({}),{resetStyle:!1});var pc=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const fc=o.createContext(null),mc=(e,t)=>{const n=o.useContext(fc),r=o.useMemo(()=>{if(!n)return"";const{compactDirection:o,isFirstItem:r,isLastItem:i}=n,l="vertical"===o?"-vertical-":"-";return a()(`${e}-compact${l}item`,{[`${e}-compact${l}first-item`]:r,[`${e}-compact${l}last-item`]:i,[`${e}-compact${l}item-rtl`]:"rtl"===t})},[e,t,n]);return{compactSize:null===n||void 0===n?void 0:n.compactSize,compactDirection:null===n||void 0===n?void 0:n.compactDirection,compactItemClassnames:r}},gc=e=>{const{children:t}=e;return o.createElement(fc.Provider,{value:null},t)},vc=e=>{const{children:t}=e,n=pc(e,["children"]);return o.createElement(fc.Provider,{value:o.useMemo(()=>n,[n])},t)},hc=e=>{const{getPrefixCls:t,direction:n}=o.useContext(xe),{size:r,direction:i,block:l,prefixCls:c,className:u,rootClassName:d,children:p}=e,f=pc(e,["size","direction","block","prefixCls","className","rootClassName","children"]),m=lc(e=>null!==r&&void 0!==r?r:e),g=t("space-compact",c),[v,h]=dc(g),b=a()(g,h,{[`${g}-rtl`]:"rtl"===n,[`${g}-block`]:l,[`${g}-vertical`]:"vertical"===i},u,d),y=o.useContext(fc),C=s(p),x=o.useMemo(()=>C.map((e,t)=>{const n=(null===e||void 0===e?void 0:e.key)||`${g}-item-${t}`;return o.createElement(vc,{key:n,compactSize:m,compactDirection:i,isFirstItem:0===t&&(!y||(null===y||void 0===y?void 0:y.isFirstItem)),isLastItem:t===C.length-1&&(!y||(null===y||void 0===y?void 0:y.isLastItem))},e)}),[r,C,y]);return 0===C.length?null:v(o.createElement("div",Object.assign({className:b},f),x))};var bc=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const yc=o.createContext(void 0),Cc=e=>{const{getPrefixCls:t,direction:n}=o.useContext(xe),{prefixCls:r,size:i,className:l}=e,c=bc(e,["prefixCls","size","className"]),s=t("btn-group",r),[,,u]=Ko(),d=o.useMemo(()=>{switch(i){case"large":return"lg";case"small":return"sm";default:return""}},[i]);const p=a()(s,{[`${s}-${d}`]:d,[`${s}-rtl`]:"rtl"===n},l,u);return o.createElement(yc.Provider,{value:i},o.createElement("div",Object.assign({},c,{className:p})))},xc=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],$c=/^[\u4E00-\u9FA5]{2}$/,wc=$c.test.bind($c);function Sc(e){return"danger"===e?{danger:!0}:{type:e}}function kc(e){return"string"===typeof e}function Ec(e){return"text"===e||"link"===e}function Oc(e,t){let n=!1;const o=[];return r().Children.forEach(e,e=>{const t=typeof e,r="string"===t||"number"===t;if(n&&r){const t=o.length-1,n=o[t];o[t]=`${n}${e}`}else o.push(e);n=r}),r().Children.map(o,e=>function(e,t){if(null===e||void 0===e)return;const n=t?" ":"";return"string"!==typeof e&&"number"!==typeof e&&kc(e.type)&&wc(e.props.children)?ii(e,{children:e.props.children.split("").join(n)}):kc(e)?wc(e)?r().createElement("span",null,e.split("").join(n)):r().createElement("span",null,e):oi(e)?r().createElement("span",null,e):e}(e,t))}["default","primary","danger"].concat(se(xc));const Ac=(0,o.forwardRef)((e,t)=>{const{className:n,style:o,children:i,prefixCls:l}=e,c=a()(`${l}-icon`,n);return r().createElement("span",{ref:t,className:c,style:o},i)}),Ic=Ac,Nc=(0,o.forwardRef)((e,t)=>{const{prefixCls:n,className:o,style:i,iconClassName:l}=e,c=a()(`${n}-loading-icon`,o);return r().createElement(Ic,{prefixCls:n,className:c,style:i,ref:t},r().createElement(la.A,{className:l}))}),Mc=()=>({width:0,opacity:0,transform:"scale(0)"}),jc=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),Pc=e=>{const{prefixCls:t,loading:n,existIcon:o,className:i,style:l,mount:c}=e,s=!!n;return o?r().createElement(Nc,{prefixCls:t,className:i,style:l}):r().createElement(Jr,{visible:s,motionName:`${t}-loading-icon-motion`,motionAppear:!c,motionEnter:!c,motionLeave:!c,removeOnLeave:!0,onAppearStart:Mc,onAppearActive:jc,onEnterStart:Mc,onEnterActive:jc,onLeaveStart:jc,onLeaveActive:Mc},(e,n)=>{let{className:o,style:c}=e;const s=Object.assign(Object.assign({},l),c);return r().createElement(Nc,{prefixCls:t,className:a()(i,o),style:s,ref:n})})},Rc=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),Tc=e=>{const{componentCls:t,fontSize:n,lineWidth:o,groupBorderColor:r,colorErrorHover:i}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(o).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}},Rc(`${t}-primary`,r),Rc(`${t}-danger`,i)]}},zc=Math.round;function Bc(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],o=n.map(e=>parseFloat(e));for(let r=0;r<3;r+=1)o[r]=t(o[r]||0,n[r]||"",r);return n[3]?o[3]=n[3].includes("%")?o[3]/100:o[3]:o[3]=1,o}const Hc=(e,t,n)=>0===n?e:e/100;function Dc(e,t){const n=t||255;return e>n?n:e<0?0:e}class Lc{constructor(e){function t(t){return t[0]in e&&t[1]in e&&t[2]in e}if((0,Ee.A)(this,"isValid",!0),(0,Ee.A)(this,"r",0),(0,Ee.A)(this,"g",0),(0,Ee.A)(this,"b",0),(0,Ee.A)(this,"a",1),(0,Ee.A)(this,"_h",void 0),(0,Ee.A)(this,"_s",void 0),(0,Ee.A)(this,"_l",void 0),(0,Ee.A)(this,"_v",void 0),(0,Ee.A)(this,"_max",void 0),(0,Ee.A)(this,"_min",void 0),(0,Ee.A)(this,"_brightness",void 0),e)if("string"===typeof e){const n=e.trim();function o(e){return n.startsWith(e)}/^#?[A-F\d]{3,8}$/i.test(n)?this.fromHexString(n):o("rgb")?this.fromRgbString(n):o("hsl")?this.fromHslString(n):(o("hsv")||o("hsb"))&&this.fromHsvString(n)}else if(e instanceof Lc)this.r=e.r,this.g=e.g,this.b=e.b,this.a=e.a,this._h=e._h,this._s=e._s,this._l=e._l,this._v=e._v;else if(t("rgb"))this.r=Dc(e.r),this.g=Dc(e.g),this.b=Dc(e.b),this.a="number"===typeof e.a?Dc(e.a,1):1;else if(t("hsl"))this.fromHsl(e);else{if(!t("hsv"))throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(e));this.fromHsv(e)}else;}setR(e){return this._sc("r",e)}setG(e){return this._sc("g",e)}setB(e){return this._sc("b",e)}setA(e){return this._sc("a",e,1)}setHue(e){const t=this.toHsv();return t.h=e,this._c(t)}getLuminance(){function e(e){const t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}return.2126*e(this.r)+.7152*e(this.g)+.0722*e(this.b)}getHue(){if("undefined"===typeof this._h){const e=this.getMax()-this.getMin();this._h=0===e?0:zc(60*(this.r===this.getMax()?(this.g-this.b)/e+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/e+2:(this.r-this.g)/e+4))}return this._h}getSaturation(){if("undefined"===typeof this._s){const e=this.getMax()-this.getMin();this._s=0===e?0:e/this.getMax()}return this._s}getLightness(){return"undefined"===typeof this._l&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return"undefined"===typeof this._v&&(this._v=this.getMax()/255),this._v}getBrightness(){return"undefined"===typeof this._brightness&&(this._brightness=(299*this.r+587*this.g+114*this.b)/1e3),this._brightness}darken(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10;const t=this.getHue(),n=this.getSaturation();let o=this.getLightness()-e/100;return o<0&&(o=0),this._c({h:t,s:n,l:o,a:this.a})}lighten(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10;const t=this.getHue(),n=this.getSaturation();let o=this.getLightness()+e/100;return o>1&&(o=1),this._c({h:t,s:n,l:o,a:this.a})}mix(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50;const n=this._c(e),o=t/100,r=e=>(n[e]-this[e])*o+this[e],i={r:zc(r("r")),g:zc(r("g")),b:zc(r("b")),a:zc(100*r("a"))/100};return this._c(i)}tint(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10;return this.mix({r:255,g:255,b:255,a:1},e)}shade(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10;return this.mix({r:0,g:0,b:0,a:1},e)}onBackground(e){const t=this._c(e),n=this.a+t.a*(1-this.a),o=e=>zc((this[e]*this.a+t[e]*t.a*(1-this.a))/n);return this._c({r:o("r"),g:o("g"),b:o("b"),a:n})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}clone(){return this._c(this)}toHexString(){let e="#";const t=(this.r||0).toString(16);e+=2===t.length?t:"0"+t;const n=(this.g||0).toString(16);e+=2===n.length?n:"0"+n;const o=(this.b||0).toString(16);if(e+=2===o.length?o:"0"+o,"number"===typeof this.a&&this.a>=0&&this.a<1){const t=zc(255*this.a).toString(16);e+=2===t.length?t:"0"+t}return e}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const e=this.getHue(),t=zc(100*this.getSaturation()),n=zc(100*this.getLightness());return 1!==this.a?`hsla(${e},${t}%,${n}%,${this.a})`:`hsl(${e},${t}%,${n}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return 1!==this.a?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(e,t,n){const o=this.clone();return o[e]=Dc(t,n),o}_c(e){return new this.constructor(e)}getMax(){return"undefined"===typeof this._max&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return"undefined"===typeof this._min&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(e){const t=e.replace("#","");function n(e,n){return parseInt(t[e]+t[n||e],16)}t.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=t[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=t[6]?n(6,7)/255:1)}fromHsl(e){let{h:t,s:n,l:o,a:r}=e;if(this._h=t%360,this._s=n,this._l=o,this.a="number"===typeof r?r:1,n<=0){const e=zc(255*o);this.r=e,this.g=e,this.b=e}let i=0,a=0,l=0;const c=t/60,s=(1-Math.abs(2*o-1))*n,u=s*(1-Math.abs(c%2-1));c>=0&&c<1?(i=s,a=u):c>=1&&c<2?(i=u,a=s):c>=2&&c<3?(a=s,l=u):c>=3&&c<4?(a=u,l=s):c>=4&&c<5?(i=u,l=s):c>=5&&c<6&&(i=s,l=u);const d=o-s/2;this.r=zc(255*(i+d)),this.g=zc(255*(a+d)),this.b=zc(255*(l+d))}fromHsv(e){let{h:t,s:n,v:o,a:r}=e;this._h=t%360,this._s=n,this._v=o,this.a="number"===typeof r?r:1;const i=zc(255*o);if(this.r=i,this.g=i,this.b=i,n<=0)return;const a=t/60,l=Math.floor(a),c=a-l,s=zc(o*(1-n)*255),u=zc(o*(1-n*c)*255),d=zc(o*(1-n*(1-c))*255);switch(l){case 0:this.g=d,this.b=s;break;case 1:this.r=u,this.b=s;break;case 2:this.r=s,this.b=d;break;case 3:this.r=s,this.g=u;break;case 4:this.r=d,this.g=s;break;default:this.g=s,this.b=u}}fromHsvString(e){const t=Bc(e,Hc);this.fromHsv({h:t[0],s:t[1],v:t[2],a:t[3]})}fromHslString(e){const t=Bc(e,Hc);this.fromHsl({h:t[0],s:t[1],l:t[2],a:t[3]})}fromRgbString(e){const t=Bc(e,(e,t)=>t.includes("%")?zc(e/100*255):e);this.r=t[0],this.g=t[1],this.b=t[2],this.a=t[3]}}var Fc=["b"],Wc=["v"],_c=function(e){return Math.round(Number(e||0))},Kc=function(e){Y(n,e);var t=ee(n);function n(e){return K(this,n),t.call(this,function(e){if(e instanceof Lc)return e;if(e&&"object"===(0,p.A)(e)&&"h"in e&&"b"in e){var t=e,n=t.b,o=(0,cr.A)(t,Fc);return(0,d.A)((0,d.A)({},o),{},{v:n})}return"string"===typeof e&&/hsb/.test(e)?e.replace(/hsb/,"hsv"):e}(e))}return X(n,[{key:"toHsbString",value:function(){var e=this.toHsb(),t=_c(100*e.s),n=_c(100*e.b),o=_c(e.h),r=e.a,i="hsb(".concat(o,", ").concat(t,"%, ").concat(n,"%)"),a="hsba(".concat(o,", ").concat(t,"%, ").concat(n,"%, ").concat(r.toFixed(0===r?0:2),")");return 1===r?i:a}},{key:"toHsb",value:function(){var e=this.toHsv(),t=e.v,n=(0,cr.A)(e,Wc);return(0,d.A)((0,d.A)({},n),{},{b:t,a:this.a})}}]),n}(Lc),qc=function(e){return e instanceof Kc?e:new Kc(e)},Vc=qc("#1677ff"),Xc=function(e){var t=e.offset,n=e.targetRef,o=e.containerRef,r=e.color,i=e.type,a=o.current.getBoundingClientRect(),l=a.width,c=a.height,s=n.current.getBoundingClientRect(),u=s.width/2,p=s.height/2,f=(t.x+u)/l,m=1-(t.y+p)/c,g=r.toHsb(),v=f,h=(t.x+u)/l*360;if(i)switch(i){case"hue":return qc((0,d.A)((0,d.A)({},g),{},{h:h<=0?0:h}));case"alpha":return qc((0,d.A)((0,d.A)({},g),{},{a:v<=0?0:v}))}return qc({h:g.h,s:f<=0?0:f,b:m>=1?1:m,a:g.a})},Gc=function(e,t){var n=e.toHsb();switch(t){case"hue":return{x:n.h/360*100,y:50};case"alpha":return{x:100*e.a,y:50};default:return{x:100*n.s,y:100*(1-n.b)}}};const Yc=function(e){var t=e.color,n=e.prefixCls,o=e.className,i=e.style,l=e.onClick,c="".concat(n,"-color-block");return r().createElement("div",{className:a()(c,o),style:i,onClick:l},r().createElement("div",{className:"".concat(c,"-inner"),style:{background:t}}))};const Uc=function(e){var t=e.targetRef,n=e.containerRef,r=e.direction,i=e.onDragChange,a=e.onDragChangeComplete,l=e.calculate,c=e.color,s=e.disabledDrag,u=(0,o.useState)({x:0,y:0}),d=(0,ke.A)(u,2),p=d[0],f=d[1],m=(0,o.useRef)(null),g=(0,o.useRef)(null);(0,o.useEffect)(function(){f(l())},[c]),(0,o.useEffect)(function(){return function(){document.removeEventListener("mousemove",m.current),document.removeEventListener("mouseup",g.current),document.removeEventListener("touchmove",m.current),document.removeEventListener("touchend",g.current),m.current=null,g.current=null}},[]);var v=function(e){var o=function(e){var t="touches"in e?e.touches[0]:e,n=document.documentElement.scrollLeft||document.body.scrollLeft||window.pageXOffset,o=document.documentElement.scrollTop||document.body.scrollTop||window.pageYOffset;return{pageX:t.pageX-n,pageY:t.pageY-o}}(e),a=o.pageX,l=o.pageY,c=n.current.getBoundingClientRect(),s=c.x,u=c.y,d=c.width,f=c.height,m=t.current.getBoundingClientRect(),g=m.width,v=m.height,h=g/2,b=v/2,y=Math.max(0,Math.min(a-s,d))-h,C=Math.max(0,Math.min(l-u,f))-b,x={x:y,y:"x"===r?p.y:C};if(0===g&&0===v||g!==v)return!1;null===i||void 0===i||i(x)},h=function(e){e.preventDefault(),v(e)},b=function(e){e.preventDefault(),document.removeEventListener("mousemove",m.current),document.removeEventListener("mouseup",g.current),document.removeEventListener("touchmove",m.current),document.removeEventListener("touchend",g.current),m.current=null,g.current=null,null===a||void 0===a||a()};return[p,function(e){document.removeEventListener("mousemove",m.current),document.removeEventListener("mouseup",g.current),s||(v(e),document.addEventListener("mousemove",h),document.addEventListener("mouseup",b),document.addEventListener("touchmove",h),document.addEventListener("touchend",b),m.current=h,g.current=b)}]};const Qc=function(e){var t=e.size,n=void 0===t?"default":t,o=e.color,i=e.prefixCls;return r().createElement("div",{className:a()("".concat(i,"-handler"),(0,Ee.A)({},"".concat(i,"-handler-sm"),"small"===n)),style:{backgroundColor:o}})};const Zc=function(e){var t=e.children,n=e.style,o=e.prefixCls;return r().createElement("div",{className:"".concat(o,"-palette"),style:(0,d.A)({position:"relative"},n)},t)};const Jc=(0,o.forwardRef)(function(e,t){var n=e.children,o=e.x,i=e.y;return r().createElement("div",{ref:t,style:{position:"absolute",left:"".concat(o,"%"),top:"".concat(i,"%"),zIndex:1,transform:"translate(-50%, -50%)"}},n)});const es=function(e){var t=e.color,n=e.onChange,i=e.prefixCls,a=e.onChangeComplete,l=e.disabled,c=(0,o.useRef)(),s=(0,o.useRef)(),u=(0,o.useRef)(t),d=Bn(function(e){var o=Xc({offset:e,targetRef:s,containerRef:c,color:t});u.current=o,n(o)}),p=Uc({color:t,containerRef:c,targetRef:s,calculate:function(){return Gc(t)},onDragChange:d,onDragChangeComplete:function(){return null===a||void 0===a?void 0:a(u.current)},disabledDrag:l}),f=(0,ke.A)(p,2),m=f[0],g=f[1];return r().createElement("div",{ref:c,className:"".concat(i,"-select"),onMouseDown:g,onTouchStart:g},r().createElement(Zc,{prefixCls:i},r().createElement(Jc,{x:m.x,y:m.y,ref:s},r().createElement(Qc,{color:t.toRgbString(),prefixCls:i})),r().createElement("div",{className:"".concat(i,"-saturation"),style:{backgroundColor:"hsl(".concat(t.toHsb().h,",100%, 50%)"),backgroundImage:"linear-gradient(0deg, #000, transparent),linear-gradient(90deg, #fff, hsla(0, 0%, 100%, 0))"}})))};const ts=function(e,t){var n=Ln(e,{value:t}),r=(0,ke.A)(n,2),i=r[0],a=r[1];return[(0,o.useMemo)(function(){return qc(i)},[i]),a]};const ns=function(e){var t=e.colors,n=e.children,i=e.direction,a=void 0===i?"to right":i,l=e.type,c=e.prefixCls,s=(0,o.useMemo)(function(){return t.map(function(e,n){var o=qc(e);return"alpha"===l&&n===t.length-1&&(o=new Kc(o.setA(1))),o.toRgbString()}).join(",")},[t,l]);return r().createElement("div",{className:"".concat(c,"-gradient"),style:{position:"absolute",inset:0,background:"linear-gradient(".concat(a,", ").concat(s,")")}},n)};const os=function(e){var t=e.prefixCls,n=e.colors,i=e.disabled,l=e.onChange,c=e.onChangeComplete,s=e.color,u=e.type,d=(0,o.useRef)(),p=(0,o.useRef)(),f=(0,o.useRef)(s),m=function(e){return"hue"===u?e.getHue():100*e.a},g=Bn(function(e){var t=Xc({offset:e,targetRef:p,containerRef:d,color:s,type:u});f.current=t,l(m(t))}),v=Uc({color:s,targetRef:p,containerRef:d,calculate:function(){return Gc(s,u)},onDragChange:g,onDragChangeComplete:function(){c(m(f.current))},direction:"x",disabledDrag:i}),h=(0,ke.A)(v,2),b=h[0],y=h[1],C=r().useMemo(function(){if("hue"===u){var e=s.toHsb();return e.s=1,e.b=1,e.a=1,new Kc(e)}return s},[s,u]),x=r().useMemo(function(){return n.map(function(e){return"".concat(e.color," ").concat(e.percent,"%")})},[n]);return r().createElement("div",{ref:d,className:a()("".concat(t,"-slider"),"".concat(t,"-slider-").concat(u)),onMouseDown:y,onTouchStart:y},r().createElement(Zc,{prefixCls:t},r().createElement(Jc,{x:b.x,y:b.y,ref:p},r().createElement(Qc,{size:"small",color:C.toHexString(),prefixCls:t})),r().createElement(ns,{colors:x,type:u,prefixCls:t})))};var rs=[{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}],is=(0,o.forwardRef)(function(e,t){var n=e.value,i=e.defaultValue,c=e.prefixCls,s=void 0===c?"rc-color-picker":c,u=e.onChange,d=e.onChangeComplete,p=e.className,f=e.style,m=e.panelRender,g=e.disabledAlpha,v=void 0!==g&&g,h=e.disabled,b=void 0!==h&&h,y=function(e){return o.useMemo(function(){return[(e||{}).slider||os]},[e])}(e.components),C=(0,ke.A)(y,1)[0],x=ts(i||Vc,n),$=(0,ke.A)(x,2),w=$[0],S=$[1],k=(0,o.useMemo)(function(){return w.setA(1).toRgbString()},[w]),E=function(e,t){n||S(e),null===u||void 0===u||u(e,t)},O=function(e){return new Kc(w.setHue(e))},A=function(e){return new Kc(w.setA(e/100))},I=a()("".concat(s,"-panel"),p,(0,Ee.A)({},"".concat(s,"-panel-disabled"),b)),N={prefixCls:s,disabled:b,color:w},M=r().createElement(r().Fragment,null,r().createElement(es,(0,l.A)({onChange:E},N,{onChangeComplete:d})),r().createElement("div",{className:"".concat(s,"-slider-container")},r().createElement("div",{className:a()("".concat(s,"-slider-group"),(0,Ee.A)({},"".concat(s,"-slider-group-disabled-alpha"),v))},r().createElement(C,(0,l.A)({},N,{type:"hue",colors:rs,min:0,max:359,value:w.getHue(),onChange:function(e){E(O(e),{type:"hue",value:e})},onChangeComplete:function(e){d&&d(O(e))}})),!v&&r().createElement(C,(0,l.A)({},N,{type:"alpha",colors:[{percent:0,color:"rgba(255, 0, 4, 0)"},{percent:100,color:k}],min:0,max:100,value:100*w.a,onChange:function(e){E(A(e),{type:"alpha",value:e})},onChangeComplete:function(e){d&&d(A(e))}}))),r().createElement(Yc,{color:w.toRgbString(),prefixCls:s})));return r().createElement("div",{className:I,style:f,ref:t},"function"===typeof m?m(M):M)});const as=is,ls=(e,t)=>(null===e||void 0===e?void 0:e.replace(/[^\w/]/g,"").slice(0,t?8:6))||"";let cs=X(function e(t){var n;if(K(this,e),this.cleared=!1,t instanceof e)return this.metaColor=t.metaColor.clone(),this.colors=null===(n=t.colors)||void 0===n?void 0:n.map(t=>({color:new e(t.color),percent:t.percent})),void(this.cleared=t.cleared);const o=Array.isArray(t);o&&t.length?(this.colors=t.map(t=>{let{color:n,percent:o}=t;return{color:new e(n),percent:o}}),this.metaColor=new Kc(this.colors[0].color.metaColor)):this.metaColor=new Kc(o?"":t),(!t||o&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)},[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return e=this.toHexString(),t=this.metaColor.a<1,e?ls(e,t):"";var e,t}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){const{colors:e}=this;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())&&(this.isGradient()?this.colors.length===e.colors.length&&this.colors.every((t,n)=>{const o=e.colors[n];return t.percent===o.percent&&t.color.equals(o.color)}):this.toHexString()===e.toHexString())}}]);var ss=n(34626),us=r().forwardRef(function(e,t){var n=e.prefixCls,o=e.forceRender,i=e.className,l=e.style,c=e.children,s=e.isActive,u=e.role,d=e.classNames,p=e.styles,f=r().useState(s||o),m=(0,ke.A)(f,2),g=m[0],v=m[1];return r().useEffect(function(){(o||s)&&v(!0)},[o,s]),g?r().createElement("div",{ref:t,className:a()("".concat(n,"-content"),(0,Ee.A)((0,Ee.A)({},"".concat(n,"-content-active"),s),"".concat(n,"-content-inactive"),!s),i),style:l,role:u},r().createElement("div",{className:a()("".concat(n,"-content-box"),null===d||void 0===d?void 0:d.body),style:null===p||void 0===p?void 0:p.body},c)):null});us.displayName="PanelContent";const ds=us;var ps=["showArrow","headerClass","isActive","onItemClick","forceRender","className","classNames","styles","prefixCls","collapsible","accordion","panelKey","extra","header","expandIcon","openMotion","destroyInactivePanel","children"],fs=r().forwardRef(function(e,t){var n=e.showArrow,o=void 0===n||n,i=e.headerClass,c=e.isActive,s=e.onItemClick,u=e.forceRender,p=e.className,f=e.classNames,m=void 0===f?{}:f,g=e.styles,v=void 0===g?{}:g,h=e.prefixCls,b=e.collapsible,y=e.accordion,C=e.panelKey,x=e.extra,$=e.header,w=e.expandIcon,S=e.openMotion,k=e.destroyInactivePanel,E=e.children,O=(0,cr.A)(e,ps),A="disabled"===b,I=null!==x&&void 0!==x&&"boolean"!==typeof x,N=(0,Ee.A)((0,Ee.A)((0,Ee.A)({onClick:function(){null===s||void 0===s||s(C)},onKeyDown:function(e){"Enter"!==e.key&&e.keyCode!==Xi.ENTER&&e.which!==Xi.ENTER||null===s||void 0===s||s(C)},role:y?"tab":"button"},"aria-expanded",c),"aria-disabled",A),"tabIndex",A?-1:0),M="function"===typeof w?w(e):r().createElement("i",{className:"arrow"}),j=M&&r().createElement("div",(0,l.A)({className:"".concat(h,"-expand-icon")},["header","icon"].includes(b)?N:{}),M),P=a()("".concat(h,"-item"),(0,Ee.A)((0,Ee.A)({},"".concat(h,"-item-active"),c),"".concat(h,"-item-disabled"),A),p),R=a()(i,"".concat(h,"-header"),(0,Ee.A)({},"".concat(h,"-collapsible-").concat(b),!!b),m.header),T=(0,d.A)({className:R,style:v.header},["header","icon"].includes(b)?{}:N);return r().createElement("div",(0,l.A)({},O,{ref:t,className:P}),r().createElement("div",T,o&&j,r().createElement("span",(0,l.A)({className:"".concat(h,"-header-text")},"header"===b?N:{}),$),I&&r().createElement("div",{className:"".concat(h,"-extra")},x)),r().createElement(Jr,(0,l.A)({visible:c,leavedClassName:"".concat(h,"-content-hidden")},S,{forceRender:u,removeOnLeave:k}),function(e,t){var n=e.className,o=e.style;return r().createElement(ds,{ref:t,prefixCls:h,className:n,classNames:m,style:o,styles:v,isActive:c,forceRender:u,role:y?"tabpanel":void 0},E)}))});const ms=fs;var gs=["children","label","key","collapsible","onItemClick","destroyInactivePanel"];const vs=function(e,t,n){return Array.isArray(e)?function(e,t){var n=t.prefixCls,o=t.accordion,i=t.collapsible,a=t.destroyInactivePanel,c=t.onItemClick,s=t.activeKey,u=t.openMotion,d=t.expandIcon;return e.map(function(e,t){var p=e.children,f=e.label,m=e.key,g=e.collapsible,v=e.onItemClick,h=e.destroyInactivePanel,b=(0,cr.A)(e,gs),y=String(null!==m&&void 0!==m?m:t),C=null!==g&&void 0!==g?g:i,x=null!==h&&void 0!==h?h:a,$=!1;return $=o?s[0]===y:s.indexOf(y)>-1,r().createElement(ms,(0,l.A)({},b,{prefixCls:n,key:y,panelKey:y,isActive:$,accordion:o,openMotion:u,expandIcon:d,header:f,collapsible:C,onItemClick:function(e){"disabled"!==C&&(c(e),null===v||void 0===v||v(e))},destroyInactivePanel:x}),p)})}(e,n):s(t).map(function(e,t){return function(e,t,n){if(!e)return null;var o=n.prefixCls,i=n.accordion,a=n.collapsible,l=n.destroyInactivePanel,c=n.onItemClick,s=n.activeKey,u=n.openMotion,d=n.expandIcon,p=e.key||String(t),f=e.props,m=f.header,g=f.headerClass,v=f.destroyInactivePanel,h=f.collapsible,b=f.onItemClick,y=!1;y=i?s[0]===p:s.indexOf(p)>-1;var C=null!==h&&void 0!==h?h:a,x={key:p,panelKey:p,header:m,headerClass:g,isActive:y,prefixCls:o,destroyInactivePanel:null!==v&&void 0!==v?v:l,openMotion:u,accordion:i,children:e.props.children,onItemClick:function(e){"disabled"!==C&&(c(e),null===b||void 0===b||b(e))},expandIcon:d,collapsible:C};return"string"===typeof e.type?e:(Object.keys(x).forEach(function(e){"undefined"===typeof x[e]&&delete x[e]}),r().cloneElement(e,x))}(e,t,n)})};function hs(e){var t=e;if(!Array.isArray(t)){var n=(0,p.A)(t);t="number"===n||"string"===n?[t]:[]}return t.map(function(e){return String(e)})}var bs=r().forwardRef(function(e,t){var n=e.prefixCls,o=void 0===n?"rc-collapse":n,i=e.destroyInactivePanel,c=void 0!==i&&i,s=e.style,d=e.accordion,p=e.className,f=e.children,m=e.collapsible,g=e.openMotion,v=e.expandIcon,h=e.activeKey,b=e.defaultActiveKey,y=e.onChange,C=e.items,x=a()(o,p),$=Ln([],{value:h,onChange:function(e){return null===y||void 0===y?void 0:y(e)},defaultValue:b,postState:hs}),w=(0,ke.A)($,2),S=w[0],k=w[1];(0,u.Ay)(!f,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");var E=vs(C,f,{prefixCls:o,accordion:d,openMotion:g,expandIcon:v,collapsible:m,destroyInactivePanel:c,onItemClick:function(e){return k(function(){return d?S[0]===e?[]:[e]:S.indexOf(e)>-1?S.filter(function(t){return t!==e}):[].concat(se(S),[e])})},activeKey:S});return r().createElement("div",(0,l.A)({ref:t,className:x,style:s,role:d?"tablist":void 0},ni(e,{aria:!0,data:!0})),E)});const ys=Object.assign(bs,{Panel:ms}),Cs=ys;ys.Panel;const xs=o.forwardRef((e,t)=>{const{getPrefixCls:n}=o.useContext(xe),{prefixCls:r,className:i,showArrow:l=!0}=e,c=n("collapse",r),s=a()({[`${c}-no-arrow`]:!l},i);return o.createElement(Cs.Panel,Object.assign({ref:t},e,{prefixCls:c,className:s}))}),$s=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),ws=e=>{const{componentCls:t,contentBg:n,padding:o,headerBg:r,headerPadding:i,collapseHeaderPaddingSM:a,collapseHeaderPaddingLG:l,collapsePanelBorderRadius:c,lineWidth:s,lineType:u,colorBorder:d,colorText:p,colorTextHeading:f,colorTextDisabled:m,fontSizeLG:g,lineHeight:v,lineHeightLG:h,marginSM:b,paddingSM:y,paddingLG:C,paddingXS:x,motionDurationSlow:$,fontSizeIcon:w,contentPadding:S,fontHeight:k,fontHeightLG:E}=e,O=`${nt(s)} ${u} ${d}`;return{[t]:Object.assign(Object.assign({},po(e)),{backgroundColor:r,border:O,borderRadius:c,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:O,"&:first-child":{[`\n &,\n & > ${t}-header`]:{borderRadius:`${nt(c)} ${nt(c)} 0 0`}},"&:last-child":{[`\n &,\n & > ${t}-header`]:{borderRadius:`0 0 ${nt(c)} ${nt(c)}`}},[`> ${t}-header`]:Object.assign(Object.assign({position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:i,color:f,lineHeight:v,cursor:"pointer",transition:`all ${$}, visibility 0s`},mo(e)),{[`> ${t}-header-text`]:{flex:"auto"},[`${t}-expand-icon`]:{height:k,display:"flex",alignItems:"center",paddingInlineEnd:b},[`${t}-arrow`]:Object.assign(Object.assign({},{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"}}),{fontSize:w,transition:`transform ${$}`,svg:{transition:`transform ${$}`}}),[`${t}-header-text`]:{marginInlineEnd:"auto"}}),[`${t}-collapsible-header`]:{cursor:"default",[`${t}-header-text`]:{flex:"none",cursor:"pointer"}},[`${t}-collapsible-icon`]:{cursor:"unset",[`${t}-expand-icon`]:{cursor:"pointer"}}},[`${t}-content`]:{color:p,backgroundColor:n,borderTop:O,[`& > ${t}-content-box`]:{padding:S},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:a,paddingInlineStart:x,[`> ${t}-expand-icon`]:{marginInlineStart:e.calc(y).sub(x).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:y}}},"&-large":{[`> ${t}-item`]:{fontSize:g,lineHeight:h,[`> ${t}-header`]:{padding:l,paddingInlineStart:o,[`> ${t}-expand-icon`]:{height:E,marginInlineStart:e.calc(C).sub(o).equal()}},[`> ${t}-content > ${t}-content-box`]:{padding:C}}},[`${t}-item:last-child`]:{borderBottom:0,[`> ${t}-content`]:{borderRadius:`0 0 ${nt(c)} ${nt(c)}`}},[`& ${t}-item-disabled > ${t}-header`]:{"\n &,\n & > .arrow\n ":{color:m,cursor:"not-allowed"}},[`&${t}-icon-position-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:b}}}}})}},Ss=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow`;return{[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},ks=e=>{const{componentCls:t,headerBg:n,borderlessContentPadding:o,borderlessContentBg:r,colorBorder:i}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${i}`},[`\n > ${t}-item:last-child,\n > ${t}-item:last-child ${t}-header\n `]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-content`]:{backgroundColor:r,borderTop:0},[`> ${t}-item > ${t}-content > ${t}-content-box`]:{padding:o}}}},Es=e=>{const{componentCls:t,paddingSM:n}=e;return{[`${t}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-content`]:{backgroundColor:"transparent",border:0,[`> ${t}-content-box`]:{paddingBlock:n}}}}}},Os=qo("Collapse",e=>{const t=Jn(e,{collapseHeaderPaddingSM:`${nt(e.paddingXS)} ${nt(e.paddingSM)}`,collapseHeaderPaddingLG:`${nt(e.padding)} ${nt(e.paddingLG)}`,collapsePanelBorderRadius:e.borderRadiusLG});return[ws(t),ks(t),Es(t),Ss(t),$s(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"})),As=o.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r,expandIcon:i,className:l,style:c}=Se("collapse"),{prefixCls:u,className:d,rootClassName:p,style:f,bordered:m=!0,ghost:g,size:v,expandIconPosition:h="start",children:b,destroyInactivePanel:y,destroyOnHidden:C,expandIcon:x}=e,$=lc(e=>{var t;return null!==(t=null!==v&&void 0!==v?v:e)&&void 0!==t?t:"middle"}),w=n("collapse",u),S=n(),[k,E,O]=Os(w);const A=o.useMemo(()=>"left"===h?"start":"right"===h?"end":h,[h]),I=null!==x&&void 0!==x?x:i,N=o.useCallback(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t="function"===typeof I?I(e):o.createElement(ss.A,{rotate:e.isActive?"rtl"===r?-90:90:void 0,"aria-label":e.isActive?"expanded":"collapsed"});return ii(t,()=>{var e;return{className:a()(null===(e=t.props)||void 0===e?void 0:e.className,`${w}-arrow`)}})},[I,w,r]),M=a()(`${w}-icon-position-${A}`,{[`${w}-borderless`]:!m,[`${w}-rtl`]:"rtl"===r,[`${w}-ghost`]:!!g,[`${w}-${$}`]:"middle"!==$},l,d,p,E,O),j=o.useMemo(()=>Object.assign(Object.assign({},Gl(S)),{motionAppear:!1,leavedClassName:`${w}-content-hidden`}),[S,w]),P=o.useMemo(()=>b?s(b).map((e,t)=>{var n,o;const r=e.props;if(null===r||void 0===r?void 0:r.disabled){const i=null!==(n=e.key)&&void 0!==n?n:String(t);return ii(e,Object.assign(Object.assign({},Ul(e.props,["disabled"])),{key:i,collapsible:null!==(o=r.collapsible)&&void 0!==o?o:"disabled"}))}return e}):null,[b]);return k(o.createElement(Cs,Object.assign({ref:t,openMotion:j},Ul(e,["rootClassName"]),{expandIcon:N,prefixCls:w,className:M,style:Object.assign(Object.assign({},c),f),destroyInactivePanel:null!==C&&void 0!==C?C:y}),P))});const Is=Object.assign(As,{Panel:xs}),Ns=e=>e instanceof cs?e:new cs(e),Ms=e=>Math.round(Number(e||0)),js=e=>Ms(100*e.toHsb().a),Ps=(e,t)=>{const n=e.toRgb();if(!n.r&&!n.g&&!n.b){const n=e.toHsb();return n.a=t||1,Ns(n)}return n.a=t||1,Ns(n)},Rs=(e,t)=>{const n=[{percent:0,color:e[0].color}].concat(se(e),[{percent:100,color:e[e.length-1].color}]);for(let o=0;o<n.length-1;o+=1){const e=n[o].percent,r=n[o+1].percent,i=n[o].color,a=n[o+1].color;if(e<=t&&t<=r){const n=r-e;if(0===n)return i;const o=(t-e)/n*100,l=new Kc(i),c=new Kc(a);return l.mix(c,o).toRgbString()}}return""},Ts=e=>e.map(e=>(e.colors=e.colors.map(Ns),e)),zs=(e,t)=>{const{r:n,g:o,b:r,a:i}=e.toRgb(),a=new Kc(e.toRgbString()).onBackground(t).toHsv();return i<=.5?a.v>.5:.299*n+.587*o+.114*r>192},Bs=(e,t)=>{var n;return`panel-${null!==(n=e.key)&&void 0!==n?n:t}`},Hs=e=>{let{prefixCls:t,presets:n,value:i,onChange:l}=e;const[c]=Yl("ColorPicker"),[,s]=Ko(),[u]=Ln(Ts(n),{value:Ts(n),postState:Ts}),d=`${t}-presets`,p=(0,o.useMemo)(()=>u.reduce((e,t,n)=>{const{defaultOpen:o=!0}=t;return o&&e.push(Bs(t,n)),e},[]),[u]),f=u.map((e,n)=>{var o;return{key:Bs(e,n),label:r().createElement("div",{className:`${d}-label`},null===e||void 0===e?void 0:e.label),children:r().createElement("div",{className:`${d}-items`},Array.isArray(null===e||void 0===e?void 0:e.colors)&&(null===(o=e.colors)||void 0===o?void 0:o.length)>0?e.colors.map((e,n)=>r().createElement(Yc,{key:`preset-${n}-${e.toHexString()}`,color:Ns(e).toRgbString(),prefixCls:t,className:a()(`${d}-color`,{[`${d}-color-checked`]:e.toHexString()===(null===i||void 0===i?void 0:i.toHexString()),[`${d}-color-bright`]:zs(e,s.colorBgElevated)}),onClick:()=>{return t=e,void(null===l||void 0===l||l(t));var t}})):r().createElement("span",{className:`${d}-empty`},c.presetEmpty))}});return r().createElement("div",{className:d},r().createElement(Is,{defaultActiveKey:p,ghost:!0,items:f}))},Ds=e=>{const{paddingInline:t,onlyIconSize:n}=e;return Jn(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n})},Ls=e=>{var t,n,o,r,i,a;const l=null!==(t=e.contentFontSize)&&void 0!==t?t:e.fontSize,c=null!==(n=e.contentFontSizeSM)&&void 0!==n?n:e.fontSize,s=null!==(o=e.contentFontSizeLG)&&void 0!==o?o:e.fontSizeLG,u=null!==(r=e.contentLineHeight)&&void 0!==r?r:Oo(l),d=null!==(i=e.contentLineHeightSM)&&void 0!==i?i:Oo(c),p=null!==(a=e.contentLineHeightLG)&&void 0!==a?a:Oo(s),f=zs(new cs(e.colorBgSolid),"#fff")?"#000":"#fff",m=xc.reduce((t,n)=>Object.assign(Object.assign({},t),{[`${n}ShadowColor`]:`0 ${nt(e.controlOutlineWidth)} 0 ${zo(e[`${n}1`],e.colorBgContainer)}`}),{});return Object.assign(Object.assign({},m),{fontWeight:400,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:"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:f,contentFontSize:l,contentFontSizeSM:c,contentFontSizeLG:s,contentLineHeight:u,contentLineHeightSM:d,contentLineHeightLG:p,paddingBlock:Math.max((e.controlHeight-l*u)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-c*d)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-s*p)/2-e.lineWidth,0)})},Fs=e=>{const{componentCls:t,iconCls:n,fontWeight:o,opacityLoading:r,motionDurationSlow:i,motionEaseInOut:a,marginXS:l,calc:c}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:e.marginXS,alignItems:"center",justifyContent:"center",fontWeight:o,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${nt(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},[`${t}-icon > svg`]:{display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}},"> a":{color:"currentColor"},"&:not(:disabled)":mo(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}-round`]:{width:"auto"}},[`&${t}-loading`]:{opacity:r,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map(e=>`${e} ${i} ${a}`).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:c(l).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:c(l).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:c(l).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:c(l).mul(-1).equal()}}}}}},Ws=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),_s=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),Ks=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),qs=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),Vs=(e,t,n,o,r,i,a,l)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:o||void 0,boxShadow:"none"},Ws(e,Object.assign({background:t},a),Object.assign({background:t},l))),{"&:disabled":{cursor:"not-allowed",color:r||void 0,borderColor:i||void 0}})}),Xs=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},qs(e))}),Gs=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),Ys=(e,t,n,o)=>{const r=o&&["link","text"].includes(o)?Gs:Xs;return Object.assign(Object.assign({},r(e)),Ws(e.componentCls,t,n))},Us=(e,t,n,o,r)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:n},Ys(e,o,r))}),Qs=(e,t,n,o,r)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:n},Ys(e,o,r))}),Zs=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),Js=(e,t,n,o)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},Ys(e,n,o))}),eu=(e,t,n,o,r)=>({[`&${e.componentCls}-variant-${n}`]:Object.assign({color:t,boxShadow:"none"},Ys(e,o,r,n))}),tu=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},Us(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive})),Zs(e)),Js(e,e.colorFillTertiary,{background:e.colorFillSecondary},{background:e.colorFill})),Vs(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),eu(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),nu=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},Qs(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),Zs(e)),Js(e,e.colorPrimaryBg,{background:e.colorPrimaryBgHover},{background:e.colorPrimaryBorder})),eu(e,e.colorPrimaryText,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),eu(e,e.colorPrimaryText,"link",{color:e.colorPrimaryTextHover,background:e.linkHoverBg},{color:e.colorPrimaryTextActive})),Vs(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),ou=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},Us(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),Qs(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Zs(e)),Js(e,e.colorErrorBg,{background:e.colorErrorBgFilledHover},{background:e.colorErrorBgActive})),eu(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),eu(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),Vs(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),ru=e=>Object.assign(Object.assign({},eu(e,e.colorLink,"link",{color:e.colorLinkHover},{color:e.colorLinkActive})),Vs(e.componentCls,e.ghostBg,e.colorInfo,e.colorInfo,e.colorTextDisabled,e.colorBorder,{color:e.colorInfoHover,borderColor:e.colorInfoHover},{color:e.colorInfoActive,borderColor:e.colorInfoActive})),iu=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-color-default`]:tu(e),[`${t}-color-primary`]:nu(e),[`${t}-color-dangerous`]:ou(e),[`${t}-color-link`]:ru(e)},(e=>{const{componentCls:t}=e;return xc.reduce((n,o)=>{const r=e[`${o}6`],i=e[`${o}1`],a=e[`${o}5`],l=e[`${o}2`],c=e[`${o}3`],s=e[`${o}7`];return Object.assign(Object.assign({},n),{[`&${t}-color-${o}`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:r,boxShadow:e[`${o}ShadowColor`]},Us(e,e.colorTextLightSolid,r,{background:a},{background:s})),Qs(e,r,e.colorBgContainer,{color:a,borderColor:a,background:e.colorBgContainer},{color:s,borderColor:s,background:e.colorBgContainer})),Zs(e)),Js(e,i,{background:l},{background:c})),eu(e,r,"link",{color:a},{color:s})),eu(e,r,"text",{color:a,background:i},{color:s,background:c}))})},{})})(e))},au=e=>Object.assign(Object.assign(Object.assign(Object.assign({},Qs(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),eu(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),Us(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),eu(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),lu=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const{componentCls:n,controlHeight:o,fontSize:r,borderRadius:i,buttonPaddingHorizontal:a,iconCls:l,buttonPaddingVertical:c,buttonIconOnlyFontSize:s}=e;return[{[t]:{fontSize:r,height:o,padding:`${nt(c)} ${nt(a)}`,borderRadius:i,[`&${n}-icon-only`]:{width:o,[l]:{fontSize:s}}}},{[`${n}${n}-circle${t}`]:_s(e)},{[`${n}${n}-round${t}`]:Ks(e)}]},cu=e=>{const t=Jn(e,{fontSize:e.contentFontSize});return lu(t,e.componentCls)},su=e=>{const t=Jn(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return lu(t,`${e.componentCls}-sm`)},uu=e=>{const t=Jn(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return lu(t,`${e.componentCls}-lg`)},du=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},pu=qo("Button",e=>{const t=Ds(e);return[Fs(t),cu(t),su(t),uu(t),du(t),iu(t),au(t),Tc(t)]},Ls,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function fu(e,t,n){const{focusElCls:o,focus:r,borderElCls:i}=n,a=i?"> *":"",l=["hover",r?"focus":null,"active"].filter(Boolean).map(e=>`&:${e} ${a}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[l]:{zIndex:2}},o?{[`&${o}`]:{zIndex:2}}:{}),{[`&[disabled] ${a}`]:{zIndex:0}})}}function mu(e,t,n){const{borderElCls:o}=n,r=o?`> ${o}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${r}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${r}, &${e}-sm ${r}, &${e}-lg ${r}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${r}, &${e}-sm ${r}, &${e}-lg ${r}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function gu(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{focus:!0};const{componentCls:n}=e,o=`${n}-compact`;return{[o]:Object.assign(Object.assign({},fu(e,o,t)),mu(n,o,t))}}function vu(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function hu(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},vu(e,t)),(n=e.componentCls,o=t,{[`&-item:not(${o}-first-item):not(${o}-last-item)`]:{borderRadius:0},[`&-item${o}-first-item:not(${o}-last-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${o}-last-item:not(${o}-first-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}))};var n,o}const bu=e=>{const{componentCls:t,colorPrimaryHover:n,lineWidth:o,calc:r}=e,i=r(o).mul(-1).equal(),a=e=>{const r=`${t}-compact${e?"-vertical":""}-item${t}-primary:not([disabled])`;return{[`${r} + ${r}::before`]:{position:"absolute",top:e?i:0,insetInlineStart:e?0:i,backgroundColor:n,content:'""',width:e?"100%":o,height:e?o:"100%"}}};return Object.assign(Object.assign({},a()),a(!0))},yu=Xo(["Button","compact"],e=>{const t=Ds(e);return[gu(t),hu(t),bu(t)]},Ls);var Cu=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const xu={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]},$u=r().forwardRef((e,t)=>{var n,i;const{loading:l=!1,prefixCls:c,color:s,variant:u,type:d,danger:p=!1,shape:f="default",size:m,styles:g,disabled:v,className:h,rootClassName:y,children:C,icon:x,iconPosition:$="start",ghost:w=!1,block:S=!1,htmlType:k="button",classNames:E,style:O={},autoInsertSpace:A,autoFocus:I}=e,N=Cu(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace","autoFocus"]),M=d||"default",{button:j}=r().useContext(xe),[P,R]=(0,o.useMemo)(()=>{if(s&&u)return[s,u];if(d||p){const e=xu[M]||[];return p?["danger",e[1]]:e}return(null===j||void 0===j?void 0:j.color)&&(null===j||void 0===j?void 0:j.variant)?[j.color,j.variant]:["default","outlined"]},[d,s,u,p,null===j||void 0===j?void 0:j.variant,null===j||void 0===j?void 0:j.color]),T="danger"===P?"dangerous":P,{getPrefixCls:z,direction:B,autoInsertSpace:H,className:D,style:L,classNames:F,styles:W}=Se("button"),_=null===(n=null!==A&&void 0!==A?A:H)||void 0===n||n,K=z("btn",c),[q,V,X]=pu(K),G=(0,o.useContext)(Ga),Y=null!==v&&void 0!==v?v:G,U=(0,o.useContext)(yc),Q=(0,o.useMemo)(()=>function(e){if("object"===typeof e&&e){let t=null===e||void 0===e?void 0:e.delay;return t=Number.isNaN(t)||"number"!==typeof t?0:t,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}(l),[l]),[Z,J]=(0,o.useState)(Q.loading),[ee,te]=(0,o.useState)(!1),ne=(0,o.useRef)(null),oe=(0,b.xK)(t,ne),re=1===o.Children.count(C)&&!x&&!Ec(R),ie=(0,o.useRef)(!0);r().useEffect(()=>(ie.current=!1,()=>{ie.current=!0}),[]),(0,o.useLayoutEffect)(()=>{let e=null;return Q.delay>0?e=setTimeout(()=>{e=null,J(!0)},Q.delay):J(Q.loading),function(){e&&(clearTimeout(e),e=null)}},[Q.delay,Q.loading]),(0,o.useEffect)(()=>{if(!ne.current||!_)return;const e=ne.current.textContent||"";re&&wc(e)?ee||te(!0):ee&&te(!1)}),(0,o.useEffect)(()=>{I&&ne.current&&ne.current.focus()},[]);const ae=r().useCallback(t=>{var n;Z||Y?t.preventDefault():null===(n=e.onClick)||void 0===n||n.call(e,t)},[e.onClick,Z,Y]);const{compactSize:le,compactItemClassnames:ce}=mc(K,B),se={large:"lg",small:"sm",middle:void 0},ue=lc(e=>{var t,n;return null!==(n=null!==(t=null!==m&&void 0!==m?m:le)&&void 0!==t?t:U)&&void 0!==n?n:e}),de=ue&&null!==(i=se[ue])&&void 0!==i?i:"",pe=Z?"loading":x,fe=Ul(N,["navigate"]),me=a()(K,V,X,{[`${K}-${f}`]:"default"!==f&&f,[`${K}-${M}`]:M,[`${K}-dangerous`]:p,[`${K}-color-${T}`]:T,[`${K}-variant-${R}`]:R,[`${K}-${de}`]:de,[`${K}-icon-only`]:!C&&0!==C&&!!pe,[`${K}-background-ghost`]:w&&!Ec(R),[`${K}-loading`]:Z,[`${K}-two-chinese-chars`]:ee&&_&&!Z,[`${K}-block`]:S,[`${K}-rtl`]:"rtl"===B,[`${K}-icon-end`]:"end"===$},ce,h,y,D),ge=Object.assign(Object.assign({},L),O),ve=a()(null===E||void 0===E?void 0:E.icon,F.icon),he=Object.assign(Object.assign({},(null===g||void 0===g?void 0:g.icon)||{}),W.icon||{}),be=x&&!Z?r().createElement(Ic,{prefixCls:K,className:ve,style:he},x):l&&"object"===typeof l&&l.icon?r().createElement(Ic,{prefixCls:K,className:ve,style:he},l.icon):r().createElement(Pc,{existIcon:!!x,prefixCls:K,loading:Z,mount:ie.current}),ye=C||0===C?Oc(C,re&&_):null;if(void 0!==fe.href)return q(r().createElement("a",Object.assign({},fe,{className:a()(me,{[`${K}-disabled`]:Y}),href:Y?void 0:fe.href,style:ge,onClick:ae,ref:oe,tabIndex:Y?-1:0}),be,ye));let Ce=r().createElement("button",Object.assign({},N,{type:k,className:me,style:ge,onClick:ae,disabled:Y,ref:oe}),be,ye,ce&&r().createElement(yu,{prefixCls:K}));return Ec(R)||(Ce=r().createElement(ac,{component:"Button",disabled:Z},Ce)),q(Ce)}),wu=$u;wu.Group=Cc,wu.__ANT_BUTTON=!0;const Su=wu;function ku(e){return!!(null===e||void 0===e?void 0:e.then)}const Eu=e=>{const{type:t,children:n,prefixCls:r,buttonProps:i,close:a,autoFocus:l,emitEvent:c,isSilent:s,quitOnNullishReturnValue:u,actionFn:d}=e,p=o.useRef(!1),f=o.useRef(null),[m,g]=Hn(!1),v=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];null===a||void 0===a||a.apply(void 0,t)};o.useEffect(()=>{let e=null;return l&&(e=setTimeout(()=>{var e;null===(e=f.current)||void 0===e||e.focus({preventScroll:!0})})),()=>{e&&clearTimeout(e)}},[]);return o.createElement(Su,Object.assign({},Sc(t),{onClick:e=>{if(p.current)return;if(p.current=!0,!d)return void v();let t;if(c){if(t=d(e),u&&!ku(t))return p.current=!1,void v(e)}else if(d.length)t=d(a),p.current=!1;else if(t=d(),!ku(t))return void v();(e=>{ku(e)&&(g(!0),e.then(function(){g(!1,!0);for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];v.apply(void 0,t),p.current=!1},e=>{if(g(!1,!0),p.current=!1,!(null===s||void 0===s?void 0:s()))return Promise.reject(e)}))})(t)},loading:m,prefixCls:r},i,{ref:f}),n)},Ou=r().createContext({}),{Provider:Au}=Ou,Iu=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:i,mergedOkCancel:a,rootPrefixCls:l,close:c,onCancel:s,onConfirm:u}=(0,o.useContext)(Ou);return a?r().createElement(Eu,{isSilent:i,actionFn:s,close:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];null===c||void 0===c||c.apply(void 0,t),null===u||void 0===u||u(!1)},autoFocus:"cancel"===e,buttonProps:t,prefixCls:`${l}-btn`},n):null},Nu=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:i,rootPrefixCls:a,okTextLocale:l,okType:c,onConfirm:s,onOk:u}=(0,o.useContext)(Ou);return r().createElement(Eu,{isSilent:n,type:c||"primary",actionFn:u,close:function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];null===t||void 0===t||t.apply(void 0,n),null===s||void 0===s||s(!0)},autoFocus:"ok"===e,buttonProps:i,prefixCls:`${a}-btn`},l)};const Mu=o.createContext(null);var ju,Pu=[];function Ru(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=t;var o,r,i=n.style;if(i.position="absolute",i.left="0",i.top="0",i.width="100px",i.height="100px",i.overflow="scroll",e){var a=getComputedStyle(e);i.scrollbarColor=a.scrollbarColor,i.scrollbarWidth=a.scrollbarWidth;var l=getComputedStyle(e,"::-webkit-scrollbar"),c=parseInt(l.width,10),s=parseInt(l.height,10);try{var u=c?"width: ".concat(l.width,";"):"",d=s?"height: ".concat(l.height,";"):"";(0,Ae.BD)("\n#".concat(t,"::-webkit-scrollbar {\n").concat(u,"\n").concat(d,"\n}"),t)}catch($i){console.error($i),o=c,r=s}}document.body.appendChild(n);var p=e&&o&&!isNaN(o)?o:n.offsetWidth-n.clientWidth,f=e&&r&&!isNaN(r)?r:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),(0,Ae.m6)(t),{width:p,height:f}}function Tu(e){return"undefined"===typeof document?0:((e||void 0===ju)&&(ju=Ru()),ju.width)}function zu(e){return"undefined"!==typeof document&&e&&e instanceof Element?Ru(e):{width:0,height:0}}var Bu="rc-util-locker-".concat(Date.now()),Hu=0;function Du(e){var t=!!e,n=o.useState(function(){return Hu+=1,"".concat(Bu,"_").concat(Hu)}),r=(0,ke.A)(n,1)[0];ut(function(){if(t){var e=zu(document.body).width,n=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;(0,Ae.BD)("\nhtml body {\n overflow-y: hidden;\n ".concat(n?"width: calc(100% - ".concat(e,"px);"):"","\n}"),r)}else(0,Ae.m6)(r);return function(){(0,Ae.m6)(r)}},[t,r])}var Lu=!1;var Fu=function(e){return!1!==e&&((0,Le.A)()&&e?"string"===typeof e?document.querySelector(e):"function"===typeof e?e():e:null)},Wu=o.forwardRef(function(e,t){var n=e.open,r=e.autoLock,i=e.getContainer,a=(e.debug,e.autoDestroy),l=void 0===a||a,c=e.children,s=o.useState(n),u=(0,ke.A)(s,2),d=u[0],p=u[1],m=d||n;o.useEffect(function(){(l||n)&&p(n)},[n,l]);var g=o.useState(function(){return Fu(i)}),v=(0,ke.A)(g,2),h=v[0],y=v[1];o.useEffect(function(){var e=Fu(i);y(null!==e&&void 0!==e?e:null)});var C=function(e){var t=o.useState(function(){return(0,Le.A)()?document.createElement("div"):null}),n=(0,ke.A)(t,1)[0],r=o.useRef(!1),i=o.useContext(Mu),a=o.useState(Pu),l=(0,ke.A)(a,2),c=l[0],s=l[1],u=i||(r.current?void 0:function(e){s(function(t){return[e].concat(se(t))})});function d(){n.parentElement||document.body.appendChild(n),r.current=!0}function p(){var e;null===(e=n.parentElement)||void 0===e||e.removeChild(n),r.current=!1}return ut(function(){return e?i?i(d):d():p(),p},[e]),ut(function(){c.length&&(c.forEach(function(e){return e()}),s(Pu))},[c]),[n,u]}(m&&!h),x=(0,ke.A)(C,2),$=x[0],w=x[1],S=null!==h&&void 0!==h?h:$;Du(r&&n&&(0,Le.A)()&&(S===$||S===document.body));var k=null;c&&(0,b.f3)(c)&&t&&(k=c.ref);var E=(0,b.xK)(k,t);if(!m||!(0,Le.A)()||void 0===h)return null;var O,A=!1===S||("boolean"===typeof O&&(Lu=O),Lu),I=c;return t&&(I=o.cloneElement(c,{ref:E})),o.createElement(Mu.Provider,{value:w},A?I:(0,f.createPortal)(I,S))});const _u=Wu;var Ku=o.createContext({}),qu=n(23739);var Vu=0;var Xu=(0,d.A)({},o).useId;const Gu=Xu?function(e){var t=Xu();return e||t}:function(e){var t=o.useState("ssr-id"),n=(0,ke.A)(t,2),r=n[0],i=n[1];return o.useEffect(function(){var e=Vu;Vu+=1,i("rc_unique_".concat(e))},[]),e||r};function Yu(e,t,n){var o=t;return!o&&n&&(o="".concat(e,"-").concat(n)),o}function Uu(e,t){var n=e["page".concat(t?"Y":"X","Offset")],o="scroll".concat(t?"Top":"Left");if("number"!==typeof n){var r=e.document;"number"!==typeof(n=r.documentElement[o])&&(n=r.body[o])}return n}const Qu=o.memo(function(e){return e.children},function(e,t){return!t.shouldUpdate});var Zu={width:0,height:0,overflow:"hidden",outline:"none"},Ju={outline:"none"},ed=r().forwardRef(function(e,t){var n=e.prefixCls,i=e.className,c=e.style,s=e.title,u=e.ariaId,f=e.footer,m=e.closable,g=e.closeIcon,v=e.onClose,h=e.children,y=e.bodyStyle,C=e.bodyProps,x=e.modalRender,$=e.onMouseDown,w=e.onMouseUp,S=e.holderRef,k=e.visible,E=e.forceRender,O=e.width,A=e.height,I=e.classNames,N=e.styles,M=r().useContext(Ku).panel,j=(0,b.xK)(S,M),P=(0,o.useRef)(),R=(0,o.useRef)();r().useImperativeHandle(t,function(){return{focus:function(){var e;null===(e=P.current)||void 0===e||e.focus({preventScroll:!0})},changeActive:function(e){var t=document.activeElement;e&&t===R.current?P.current.focus({preventScroll:!0}):e||t!==P.current||R.current.focus({preventScroll:!0})}}});var T={};void 0!==O&&(T.width=O),void 0!==A&&(T.height=A);var z=f?r().createElement("div",{className:a()("".concat(n,"-footer"),null===I||void 0===I?void 0:I.footer),style:(0,d.A)({},null===N||void 0===N?void 0:N.footer)},f):null,B=s?r().createElement("div",{className:a()("".concat(n,"-header"),null===I||void 0===I?void 0:I.header),style:(0,d.A)({},null===N||void 0===N?void 0:N.header)},r().createElement("div",{className:"".concat(n,"-title"),id:u},s)):null,H=(0,o.useMemo)(function(){return"object"===(0,p.A)(m)&&null!==m?m:m?{closeIcon:null!==g&&void 0!==g?g:r().createElement("span",{className:"".concat(n,"-close-x")})}:{}},[m,g,n]),D=ni(H,!0),L="object"===(0,p.A)(m)&&m.disabled,F=m?r().createElement("button",(0,l.A)({type:"button",onClick:v,"aria-label":"Close"},D,{className:"".concat(n,"-close"),disabled:L}),H.closeIcon):null,W=r().createElement("div",{className:a()("".concat(n,"-content"),null===I||void 0===I?void 0:I.content),style:null===N||void 0===N?void 0:N.content},F,B,r().createElement("div",(0,l.A)({className:a()("".concat(n,"-body"),null===I||void 0===I?void 0:I.body),style:(0,d.A)((0,d.A)({},y),null===N||void 0===N?void 0:N.body)},C),h),z);return r().createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":s?u:null,"aria-modal":"true",ref:j,style:(0,d.A)((0,d.A)({},c),T),className:a()(n,i),onMouseDown:$,onMouseUp:w},r().createElement("div",{ref:P,tabIndex:0,style:Ju},r().createElement(Qu,{shouldUpdate:k||E},x?x(W):W)),r().createElement("div",{tabIndex:0,ref:R,style:Zu}))});const td=ed;var nd=o.forwardRef(function(e,t){var n=e.prefixCls,r=e.title,i=e.style,c=e.className,s=e.visible,u=e.forceRender,p=e.destroyOnClose,f=e.motionName,m=e.ariaId,g=e.onVisibleChanged,v=e.mousePosition,h=(0,o.useRef)(),b=o.useState(),y=(0,ke.A)(b,2),C=y[0],x=y[1],$={};function w(){var e=function(e){var t=e.getBoundingClientRect(),n={left:t.left,top:t.top},o=e.ownerDocument,r=o.defaultView||o.parentWindow;return n.left+=Uu(r),n.top+=Uu(r,!0),n}(h.current);x(v&&(v.x||v.y)?"".concat(v.x-e.left,"px ").concat(v.y-e.top,"px"):"")}return C&&($.transformOrigin=C),o.createElement(Jr,{visible:s,onVisibleChanged:g,onAppearPrepare:w,onEnterPrepare:w,forceRender:u,motionName:f,removeOnLeave:p,ref:h},function(s,u){var p=s.className,f=s.style;return o.createElement(td,(0,l.A)({},e,{ref:t,title:r,ariaId:m,prefixCls:n,holderRef:u,style:(0,d.A)((0,d.A)((0,d.A)({},f),i),$),className:a()(c,p)}))})});nd.displayName="Content";const od=nd;const rd=function(e){var t=e.prefixCls,n=e.style,r=e.visible,i=e.maskProps,c=e.motionName,s=e.className;return o.createElement(Jr,{key:"mask",visible:r,motionName:c,leavedClassName:"".concat(t,"-mask-hidden")},function(e,r){var c=e.className,u=e.style;return o.createElement("div",(0,l.A)({ref:r,style:(0,d.A)((0,d.A)({},u),n),className:a()("".concat(t,"-mask"),c,s)},i))})};const id=function(e){var t=e.prefixCls,n=void 0===t?"rc-dialog":t,r=e.zIndex,i=e.visible,c=void 0!==i&&i,s=e.keyboard,u=void 0===s||s,p=e.focusTriggerAfterClose,f=void 0===p||p,m=e.wrapStyle,g=e.wrapClassName,v=e.wrapProps,h=e.onClose,b=e.afterOpenChange,y=e.afterClose,C=e.transitionName,x=e.animation,$=e.closable,w=void 0===$||$,S=e.mask,k=void 0===S||S,E=e.maskTransitionName,O=e.maskAnimation,A=e.maskClosable,I=void 0===A||A,N=e.maskStyle,M=e.maskProps,j=e.rootClassName,P=e.classNames,R=e.styles;var T=(0,o.useRef)(),z=(0,o.useRef)(),B=(0,o.useRef)(),H=o.useState(c),D=(0,ke.A)(H,2),L=D[0],F=D[1],W=Gu();function _(e){null===h||void 0===h||h(e)}var K=(0,o.useRef)(!1),q=(0,o.useRef)(),V=null;I&&(V=function(e){K.current?K.current=!1:z.current===e.target&&_(e)}),(0,o.useEffect)(function(){c&&(F(!0),(0,qu.A)(z.current,document.activeElement)||(T.current=document.activeElement))},[c]),(0,o.useEffect)(function(){return function(){clearTimeout(q.current)}},[]);var X=(0,d.A)((0,d.A)((0,d.A)({zIndex:r},m),null===R||void 0===R?void 0:R.wrapper),{},{display:L?null:"none"});return o.createElement("div",(0,l.A)({className:a()("".concat(n,"-root"),j)},ni(e,{data:!0})),o.createElement(rd,{prefixCls:n,visible:k&&c,motionName:Yu(n,E,O),style:(0,d.A)((0,d.A)({zIndex:r},N),null===R||void 0===R?void 0:R.mask),maskProps:M,className:null===P||void 0===P?void 0:P.mask}),o.createElement("div",(0,l.A)({tabIndex:-1,onKeyDown:function(e){if(u&&e.keyCode===Xi.ESC)return e.stopPropagation(),void _(e);c&&e.keyCode===Xi.TAB&&B.current.changeActive(!e.shiftKey)},className:a()("".concat(n,"-wrap"),g,null===P||void 0===P?void 0:P.wrapper),ref:z,onClick:V,style:X},v),o.createElement(od,(0,l.A)({},e,{onMouseDown:function(){clearTimeout(q.current),K.current=!0},onMouseUp:function(){q.current=setTimeout(function(){K.current=!1})},ref:B,closable:w,ariaId:W,prefixCls:n,visible:c&&L,onClose:_,onVisibleChanged:function(e){if(e)!function(){var e;(0,qu.A)(z.current,document.activeElement)||null===(e=B.current)||void 0===e||e.focus()}();else{if(F(!1),k&&T.current&&f){try{T.current.focus({preventScroll:!0})}catch($i){}T.current=null}L&&(null===y||void 0===y||y())}null===b||void 0===b||b(e)},motionName:Yu(n,C,x)}))))};var ad=function(e){var t=e.visible,n=e.getContainer,r=e.forceRender,i=e.destroyOnClose,a=void 0!==i&&i,c=e.afterClose,s=e.panelRef,u=o.useState(t),d=(0,ke.A)(u,2),p=d[0],f=d[1],m=o.useMemo(function(){return{panel:s}},[s]);return o.useEffect(function(){t&&f(!0)},[t]),r||!a||p?o.createElement(Ku.Provider,{value:m},o.createElement(_u,{open:t||r||p,autoDestroy:!1,getContainer:n,autoLock:t||p},o.createElement(id,(0,l.A)({},e,{destroyOnClose:a,afterClose:function(){null===c||void 0===c||c(),f(!1)}})))):null};ad.displayName="Dialog";const ld=ad;var cd="RC_FORM_INTERNAL_HOOKS",sd=function(){(0,u.Ay)(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")};const ud=o.createContext({getFieldValue:sd,getFieldsValue:sd,getFieldError:sd,getFieldWarning:sd,getFieldsError:sd,isFieldsTouched:sd,isFieldTouched:sd,isFieldValidating:sd,isFieldsValidating:sd,resetFields:sd,setFields:sd,setFieldValue:sd,setFieldsValue:sd,validateFields:sd,submit:sd,getInternalHooks:function(){return sd(),{dispatch:sd,initEntityValue:sd,registerField:sd,useSubscribe:sd,setInitialValues:sd,destroyForm:sd,setCallbacks:sd,registerWatch:sd,getFields:sd,setValidateMessages:sd,setPreserve:sd,getInitialValue:sd}}});const dd=o.createContext(null);function pd(e){return void 0===e||null===e?[]:Array.isArray(e)?e:[e]}function fd(){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",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:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var md=fd();function gd(e){var t="function"==typeof Map?new Map:void 0;return gd=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(wi){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return function(e,t,n){if(Q())return Reflect.construct.apply(null,arguments);var o=[null];o.push.apply(o,t);var r=new(e.bind.apply(e,o));return n&&G(r,n.prototype),r}(e,arguments,U(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),G(n,e)},gd(e)}var vd=/%[sdj%]/g;function hd(e){if(!e||!e.length)return null;var t={};return e.forEach(function(e){var n=e.field;t[n]=t[n]||[],t[n].push(e)}),t}function bd(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];var r=0,i=n.length;return"function"===typeof e?e.apply(null,n):"string"===typeof e?e.replace(vd,function(e){if("%%"===e)return"%";if(r>=i)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(t){return"[Circular]"}default:return e}}):e}function yd(e,t){return void 0===e||null===e||(!("array"!==t||!Array.isArray(e)||e.length)||!(!function(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"date"===e||"pattern"===e}(t)||"string"!==typeof e||e))}function Cd(e,t,n){var o=0,r=e.length;!function i(a){if(a&&a.length)n(a);else{var l=o;o+=1,l<r?t(e[l],i):n([])}}([])}var xd=function(e){Y(n,e);var t=ee(n);function n(e,o){var r;return K(this,n),r=t.call(this,"Async Validation Error"),(0,Ee.A)(Z(r),"errors",void 0),(0,Ee.A)(Z(r),"fields",void 0),r.errors=e,r.fields=o,r}return X(n)}(gd(Error));function $d(e,t,n,o,r){if(t.first){var i=new Promise(function(t,i){var a=function(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,se(e[n]||[]))}),t}(e);Cd(a,n,function(e){return o(e),e.length?i(new xd(e,hd(e))):t(r)})});return i.catch(function(e){return e}),i}var a=!0===t.firstFields?Object.keys(e):t.firstFields||[],l=Object.keys(e),c=l.length,s=0,u=[],d=new Promise(function(t,i){var d=function(e){if(u.push.apply(u,e),++s===c)return o(u),u.length?i(new xd(u,hd(u))):t(r)};l.length||(o(u),t(r)),l.forEach(function(t){var o=e[t];-1!==a.indexOf(t)?Cd(o,n,d):function(e,t,n){var o=[],r=0,i=e.length;function a(e){o.push.apply(o,se(e||[])),++r===i&&n(o)}e.forEach(function(e){t(e,a)})}(o,n,d)})});return d.catch(function(e){return e}),d}function wd(e,t){return function(n){var o,r;return o=e.fullFields?function(e,t){for(var n=e,o=0;o<t.length;o++){if(void 0==n)return n;n=n[t[o]]}return n}(t,e.fullFields):t[n.field||e.fullField],(r=n)&&void 0!==r.message?(n.field=n.field||e.fullField,n.fieldValue=o,n):{message:"function"===typeof n?n():n,fieldValue:o,field:n.field||e.fullField}}}function Sd(e,t){if(t)for(var n in t)if(t.hasOwnProperty(n)){var o=t[n];"object"===(0,p.A)(o)&&"object"===(0,p.A)(e[n])?e[n]=(0,d.A)((0,d.A)({},e[n]),o):e[n]=o}return e}var kd="enum";const Ed=function(e,t,n,o,r,i){!e.required||n.hasOwnProperty(e.field)&&!yd(t,i||e.type)||o.push(bd(r.messages.required,e.fullField))};var Od;var Ad=/^(([^<>()\[\]\\.,;:\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,}))$/,Id=/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i,Nd={integer:function(e){return Nd.number(e)&&parseInt(e,10)===e},float:function(e){return Nd.number(e)&&!Nd.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch($i){return!1}},date:function(e){return"function"===typeof e.getTime&&"function"===typeof e.getMonth&&"function"===typeof e.getYear&&!isNaN(e.getTime())},number:function(e){return!isNaN(e)&&"number"===typeof e},object:function(e){return"object"===(0,p.A)(e)&&!Nd.array(e)},method:function(e){return"function"===typeof e},email:function(e){return"string"===typeof e&&e.length<=320&&!!e.match(Ad)},url:function(e){return"string"===typeof e&&e.length<=2048&&!!e.match(function(){if(Od)return Od;var e="[a-fA-F\\d:]",t=function(t){return t&&t.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(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}",o="[a-fA-F\\d]{1,4}",r=["(?:".concat(o,":){7}(?:").concat(o,"|:)"),"(?:".concat(o,":){6}(?:").concat(n,"|:").concat(o,"|:)"),"(?:".concat(o,":){5}(?::").concat(n,"|(?::").concat(o,"){1,2}|:)"),"(?:".concat(o,":){4}(?:(?::").concat(o,"){0,1}:").concat(n,"|(?::").concat(o,"){1,3}|:)"),"(?:".concat(o,":){3}(?:(?::").concat(o,"){0,2}:").concat(n,"|(?::").concat(o,"){1,4}|:)"),"(?:".concat(o,":){2}(?:(?::").concat(o,"){0,3}:").concat(n,"|(?::").concat(o,"){1,5}|:)"),"(?:".concat(o,":){1}(?:(?::").concat(o,"){0,4}:").concat(n,"|(?::").concat(o,"){1,6}|:)"),"(?::(?:(?::".concat(o,"){0,5}:").concat(n,"|(?::").concat(o,"){1,7}|:))")],i="(?:".concat(r.join("|"),")").concat("(?:%[0-9a-zA-Z]{1,})?"),a=new RegExp("(?:^".concat(n,"$)|(?:^").concat(i,"$)")),l=new RegExp("^".concat(n,"$")),c=new RegExp("^".concat(i,"$")),s=function(e){return e&&e.exact?a:new RegExp("(?:".concat(t(e)).concat(n).concat(t(e),")|(?:").concat(t(e)).concat(i).concat(t(e),")"),"g")};s.v4=function(e){return e&&e.exact?l:new RegExp("".concat(t(e)).concat(n).concat(t(e)),"g")},s.v6=function(e){return e&&e.exact?c:new RegExp("".concat(t(e)).concat(i).concat(t(e)),"g")};var u=s.v4().source,d=s.v6().source,p="(?:".concat("(?:(?:[a-z]+:)?//)","|www\\.)").concat("(?:\\S+(?::\\S*)?@)?","(?:localhost|").concat(u,"|").concat(d,"|").concat("(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)").concat("(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*").concat("(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",")").concat("(?::\\d{2,5})?").concat('(?:[/?#][^\\s"]*)?');return Od=new RegExp("(?:^".concat(p,"$)"),"i")}())},hex:function(e){return"string"===typeof e&&!!e.match(Id)}};const Md=function(e,t,n,o,r){if(e.required&&void 0===t)Ed(e,t,n,o,r);else{var i=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(i)>-1?Nd[i](t)||o.push(bd(r.messages.types[i],e.fullField,e.type)):i&&(0,p.A)(t)!==e.type&&o.push(bd(r.messages.types[i],e.fullField,e.type))}};const jd={required:Ed,whitespace:function(e,t,n,o,r){(/^\s+$/.test(t)||""===t)&&o.push(bd(r.messages.whitespace,e.fullField))},type:Md,range:function(e,t,n,o,r){var i="number"===typeof e.len,a="number"===typeof e.min,l="number"===typeof e.max,c=t,s=null,u="number"===typeof t,d="string"===typeof t,p=Array.isArray(t);if(u?s="number":d?s="string":p&&(s="array"),!s)return!1;p&&(c=t.length),d&&(c=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),i?c!==e.len&&o.push(bd(r.messages[s].len,e.fullField,e.len)):a&&!l&&c<e.min?o.push(bd(r.messages[s].min,e.fullField,e.min)):l&&!a&&c>e.max?o.push(bd(r.messages[s].max,e.fullField,e.max)):a&&l&&(c<e.min||c>e.max)&&o.push(bd(r.messages[s].range,e.fullField,e.min,e.max))},enum:function(e,t,n,o,r){e[kd]=Array.isArray(e[kd])?e[kd]:[],-1===e[kd].indexOf(t)&&o.push(bd(r.messages[kd],e.fullField,e[kd].join(", ")))},pattern:function(e,t,n,o,r){if(e.pattern)if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||o.push(bd(r.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"===typeof e.pattern){new RegExp(e.pattern).test(t)||o.push(bd(r.messages.pattern.mismatch,e.fullField,t,e.pattern))}}};const Pd=function(e,t,n,o,r){var i=[],a=Array.isArray(t)?"array":(0,p.A)(t);jd.required(e,t,o,i,r,a),n(i)};const Rd=function(e,t,n,o,r){var i=e.type,a=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(yd(t,i)&&!e.required)return n();jd.required(e,t,o,a,r,i),yd(t,i)||jd.type(e,t,o,a,r)}n(a)},Td={string:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(yd(t,"string")&&!e.required)return n();jd.required(e,t,o,i,r,"string"),yd(t,"string")||(jd.type(e,t,o,i,r),jd.range(e,t,o,i,r),jd.pattern(e,t,o,i,r),!0===e.whitespace&&jd.whitespace(e,t,o,i,r))}n(i)},method:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(yd(t)&&!e.required)return n();jd.required(e,t,o,i,r),void 0!==t&&jd.type(e,t,o,i,r)}n(i)},number:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(""===t&&(t=void 0),yd(t)&&!e.required)return n();jd.required(e,t,o,i,r),void 0!==t&&(jd.type(e,t,o,i,r),jd.range(e,t,o,i,r))}n(i)},boolean:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(yd(t)&&!e.required)return n();jd.required(e,t,o,i,r),void 0!==t&&jd.type(e,t,o,i,r)}n(i)},regexp:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(yd(t)&&!e.required)return n();jd.required(e,t,o,i,r),yd(t)||jd.type(e,t,o,i,r)}n(i)},integer:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(yd(t)&&!e.required)return n();jd.required(e,t,o,i,r),void 0!==t&&(jd.type(e,t,o,i,r),jd.range(e,t,o,i,r))}n(i)},float:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(yd(t)&&!e.required)return n();jd.required(e,t,o,i,r),void 0!==t&&(jd.type(e,t,o,i,r),jd.range(e,t,o,i,r))}n(i)},array:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if((void 0===t||null===t)&&!e.required)return n();jd.required(e,t,o,i,r,"array"),void 0!==t&&null!==t&&(jd.type(e,t,o,i,r),jd.range(e,t,o,i,r))}n(i)},object:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(yd(t)&&!e.required)return n();jd.required(e,t,o,i,r),void 0!==t&&jd.type(e,t,o,i,r)}n(i)},enum:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(yd(t)&&!e.required)return n();jd.required(e,t,o,i,r),void 0!==t&&jd.enum(e,t,o,i,r)}n(i)},pattern:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(yd(t,"string")&&!e.required)return n();jd.required(e,t,o,i,r),yd(t,"string")||jd.pattern(e,t,o,i,r)}n(i)},date:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(yd(t,"date")&&!e.required)return n();var a;if(jd.required(e,t,o,i,r),!yd(t,"date"))a=t instanceof Date?t:new Date(t),jd.type(e,a,o,i,r),a&&jd.range(e,a.getTime(),o,i,r)}n(i)},url:Rd,hex:Rd,email:Rd,required:Pd,any:function(e,t,n,o,r){var i=[];if(e.required||!e.required&&o.hasOwnProperty(e.field)){if(yd(t)&&!e.required)return n();jd.required(e,t,o,i,r)}n(i)}};var zd=function(){function e(t){K(this,e),(0,Ee.A)(this,"rules",null),(0,Ee.A)(this,"_messages",md),this.define(t)}return X(e,[{key:"define",value:function(e){var t=this;if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!==(0,p.A)(e)||Array.isArray(e))throw new Error("Rules must be an object");this.rules={},Object.keys(e).forEach(function(n){var o=e[n];t.rules[n]=Array.isArray(o)?o:[o]})}},{key:"messages",value:function(e){return e&&(this._messages=Sd(fd(),e)),this._messages}},{key:"validate",value:function(t){var n=this,o=t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};if("function"===typeof r&&(i=r,r={}),!this.rules||0===Object.keys(this.rules).length)return i&&i(null,o),Promise.resolve(o);if(r.messages){var a=this.messages();a===md&&(a=fd()),Sd(a,r.messages),r.messages=a}else r.messages=this.messages();var l={};(r.keys||Object.keys(this.rules)).forEach(function(e){var r=n.rules[e],i=o[e];r.forEach(function(r){var a=r;"function"===typeof a.transform&&(o===t&&(o=(0,d.A)({},o)),void 0!==(i=o[e]=a.transform(i))&&null!==i&&(a.type=a.type||(Array.isArray(i)?"array":(0,p.A)(i)))),(a="function"===typeof a?{validator:a}:(0,d.A)({},a)).validator=n.getValidationMethod(a),a.validator&&(a.field=e,a.fullField=a.fullField||e,a.type=n.getType(a),l[e]=l[e]||[],l[e].push({rule:a,value:i,source:o,field:e}))})});var c={};return $d(l,r,function(t,n){var i,a=t.rule,l=("object"===a.type||"array"===a.type)&&("object"===(0,p.A)(a.fields)||"object"===(0,p.A)(a.defaultField));function s(e,t){return(0,d.A)((0,d.A)({},t),{},{fullField:"".concat(a.fullField,".").concat(e),fullFields:a.fullFields?[].concat(se(a.fullFields),[e]):[e]})}function u(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],u=Array.isArray(i)?i:[i];!r.suppressWarning&&u.length&&e.warning("async-validator:",u),u.length&&void 0!==a.message&&(u=[].concat(a.message));var p=u.map(wd(a,o));if(r.first&&p.length)return c[a.field]=1,n(p);if(l){if(a.required&&!t.value)return void 0!==a.message?p=[].concat(a.message).map(wd(a,o)):r.error&&(p=[r.error(a,bd(r.messages.required,a.field))]),n(p);var f={};a.defaultField&&Object.keys(t.value).map(function(e){f[e]=a.defaultField}),f=(0,d.A)((0,d.A)({},f),t.rule.fields);var m={};Object.keys(f).forEach(function(e){var t=f[e],n=Array.isArray(t)?t:[t];m[e]=n.map(s.bind(null,e))});var g=new e(m);g.messages(r.messages),t.rule.options&&(t.rule.options.messages=r.messages,t.rule.options.error=r.error),g.validate(t.value,t.rule.options||r,function(e){var t=[];p&&p.length&&t.push.apply(t,se(p)),e&&e.length&&t.push.apply(t,se(e)),n(t.length?t:null)})}else n(p)}if(l=l&&(a.required||!a.required&&t.value),a.field=t.field,a.asyncValidator)i=a.asyncValidator(a,t.value,u,t.source,r);else if(a.validator){try{i=a.validator(a,t.value,u,t.source,r)}catch(g){var f,m;null===(f=(m=console).error)||void 0===f||f.call(m,g),r.suppressValidatorError||setTimeout(function(){throw g},0),u(g.message)}!0===i?u():!1===i?u("function"===typeof a.message?a.message(a.fullField||a.field):a.message||"".concat(a.fullField||a.field," fails")):i instanceof Array?u(i):i instanceof Error&&u(i.message)}i&&i.then&&i.then(function(){return u()},function(e){return u(e)})},function(e){!function(e){var t=[],n={};function r(e){var n;Array.isArray(e)?t=(n=t).concat.apply(n,se(e)):t.push(e)}for(var a=0;a<e.length;a++)r(e[a]);t.length?(n=hd(t),i(t,n)):i(null,o)}(e)},o)}},{key:"getType",value:function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!==typeof e.validator&&e.type&&!Td.hasOwnProperty(e.type))throw new Error(bd("Unknown rule type %s",e.type));return e.type||"string"}},{key:"getValidationMethod",value:function(e){if("function"===typeof e.validator)return e.validator;var t=Object.keys(e),n=t.indexOf("message");return-1!==n&&t.splice(n,1),1===t.length&&"required"===t[0]?Td.required:Td[this.getType(e)]||void 0}}]),e}();(0,Ee.A)(zd,"register",function(e,t){if("function"!==typeof t)throw new Error("Cannot register a validator by type, validator is not a function");Td[e]=t}),(0,Ee.A)(zd,"warning",function(){}),(0,Ee.A)(zd,"messages",md),(0,Ee.A)(zd,"validators",Td);var Bd="'${name}' is not a valid ${type}",Hd={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:Bd,method:Bd,array:Bd,object:Bd,number:Bd,date:Bd,boolean:Bd,integer:Bd,float:Bd,regexp:Bd,email:Bd,url:Bd,hex:Bd},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}"}},Dd=zd;function Ld(e,t){return e.replace(/\\?\$\{\w+\}/g,function(e){if(e.startsWith("\\"))return e.slice(1);var n=e.slice(2,-1);return t[n]})}var Fd="CODE_LOGIC_ERROR";function Wd(e,t,n,o,r){return _d.apply(this,arguments)}function _d(){return _d=Al(El().mark(function e(t,n,r,i,a){var l,c,s,u,p,f,m,g,v;return El().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return delete(l=(0,d.A)({},r)).ruleIndex,Dd.warning=function(){},l.validator&&(c=l.validator,l.validator=function(){try{return c.apply(void 0,arguments)}catch(e){return console.error(e),Promise.reject(Fd)}}),s=null,l&&"array"===l.type&&l.defaultField&&(s=l.defaultField,delete l.defaultField),u=new Dd((0,Ee.A)({},t,[l])),p=Yn(Hd,i.validateMessages),u.messages(p),f=[],e.prev=10,e.next=13,Promise.resolve(u.validate((0,Ee.A)({},t,n),(0,d.A)({},i)));case 13:e.next=18;break;case 15:e.prev=15,e.t0=e.catch(10),e.t0.errors&&(f=e.t0.errors.map(function(e,t){var n=e.message,r=n===Fd?p.default:n;return o.isValidElement(r)?o.cloneElement(r,{key:"error_".concat(t)}):r}));case 18:if(f.length||!s){e.next=23;break}return e.next=21,Promise.all(n.map(function(e,n){return Wd("".concat(t,".").concat(n),e,s,i,a)}));case 21:return m=e.sent,e.abrupt("return",m.reduce(function(e,t){return[].concat(se(e),se(t))},[]));case 23:return g=(0,d.A)((0,d.A)({},r),{},{name:t,enum:(r.enum||[]).join(", ")},a),v=f.map(function(e){return"string"===typeof e?Ld(e,g):e}),e.abrupt("return",v);case 26:case"end":return e.stop()}},e,null,[[10,15]])})),_d.apply(this,arguments)}function Kd(e,t,n,o,r,i){var a,l=e.join("."),c=n.map(function(e,t){var n=e.validator,o=(0,d.A)((0,d.A)({},e),{},{ruleIndex:t});return n&&(o.validator=function(e,t,o){var r=!1,i=n(e,t,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];Promise.resolve().then(function(){(0,u.Ay)(!r,"Your validator function has already return a promise. `callback` will be ignored."),r||o.apply(void 0,t)})});r=i&&"function"===typeof i.then&&"function"===typeof i.catch,(0,u.Ay)(r,"`callback` is deprecated. Please return a promise instead."),r&&i.then(function(){o()}).catch(function(e){o(e||" ")})}),o}).sort(function(e,t){var n=e.warningOnly,o=e.ruleIndex,r=t.warningOnly,i=t.ruleIndex;return!!n===!!r?o-i:n?1:-1});if(!0===r)a=new Promise(function(){var e=Al(El().mark(function e(n,r){var a,s,u;return El().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:a=0;case 1:if(!(a<c.length)){e.next=12;break}return s=c[a],e.next=5,Wd(l,t,s,o,i);case 5:if(!(u=e.sent).length){e.next=9;break}return r([{errors:u,rule:s}]),e.abrupt("return");case 9:a+=1,e.next=1;break;case 12:n([]);case 13:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}());else{var s=c.map(function(e){return Wd(l,t,e,o,i).then(function(t){return{errors:t,rule:e}})});a=(r?function(e){return Vd.apply(this,arguments)}(s):function(e){return qd.apply(this,arguments)}(s)).then(function(e){return Promise.reject(e)})}return a.catch(function(e){return e}),a}function qd(){return(qd=Al(El().mark(function e(t){return El().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.all(t).then(function(e){var t;return(t=[]).concat.apply(t,se(e))}));case 1:case"end":return e.stop()}},e)}))).apply(this,arguments)}function Vd(){return(Vd=Al(El().mark(function e(t){var n;return El().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=0,e.abrupt("return",new Promise(function(e){t.forEach(function(o){o.then(function(o){o.errors.length&&e([o]),(n+=1)===t.length&&e([])})})}));case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}function Xd(e){return pd(e)}function Gd(e,t){var n={};return t.forEach(function(t){var o=Fn(e,t);n=Vn(n,t,o)}),n}function Yd(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e&&e.some(function(e){return Ud(t,e,n)})}function Ud(e,t){return!(!e||!t)&&(!(!(arguments.length>2&&void 0!==arguments[2]&&arguments[2])&&e.length!==t.length)&&t.every(function(t,n){return e[n]===t}))}function Qd(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&"object"===(0,p.A)(t.target)&&e in t.target?t.target[e]:t}function Zd(e,t,n){var o=e.length;if(t<0||t>=o||n<0||n>=o)return e;var r=e[t],i=t-n;return i>0?[].concat(se(e.slice(0,n)),[r],se(e.slice(n,t)),se(e.slice(t+1,o))):i<0?[].concat(se(e.slice(0,t)),se(e.slice(t+1,n+1)),[r],se(e.slice(n+1,o))):e}var Jd=["name"],ep=[];function tp(e,t,n,o,r,i){return"function"===typeof e?e(t,n,"source"in i?{source:i.source}:{}):o!==r}var np=function(e){Y(n,e);var t=ee(n);function n(e){var r;(K(this,n),r=t.call(this,e),(0,Ee.A)(Z(r),"state",{resetCount:0}),(0,Ee.A)(Z(r),"cancelRegisterFunc",null),(0,Ee.A)(Z(r),"mounted",!1),(0,Ee.A)(Z(r),"touched",!1),(0,Ee.A)(Z(r),"dirty",!1),(0,Ee.A)(Z(r),"validatePromise",void 0),(0,Ee.A)(Z(r),"prevValidating",void 0),(0,Ee.A)(Z(r),"errors",ep),(0,Ee.A)(Z(r),"warnings",ep),(0,Ee.A)(Z(r),"cancelRegister",function(){var e=r.props,t=e.preserve,n=e.isListField,o=e.name;r.cancelRegisterFunc&&r.cancelRegisterFunc(n,t,Xd(o)),r.cancelRegisterFunc=null}),(0,Ee.A)(Z(r),"getNamePath",function(){var e=r.props,t=e.name,n=e.fieldContext.prefixName;return void 0!==t?[].concat(se(void 0===n?[]:n),se(t)):[]}),(0,Ee.A)(Z(r),"getRules",function(){var e=r.props,t=e.rules,n=void 0===t?[]:t,o=e.fieldContext;return n.map(function(e){return"function"===typeof e?e(o):e})}),(0,Ee.A)(Z(r),"refresh",function(){r.mounted&&r.setState(function(e){return{resetCount:e.resetCount+1}})}),(0,Ee.A)(Z(r),"metaCache",null),(0,Ee.A)(Z(r),"triggerMetaEvent",function(e){var t=r.props.onMetaChange;if(t){var n=(0,d.A)((0,d.A)({},r.getMeta()),{},{destroy:e});Ne(r.metaCache,n)||t(n),r.metaCache=n}else r.metaCache=null}),(0,Ee.A)(Z(r),"onStoreChange",function(e,t,n){var o=r.props,i=o.shouldUpdate,a=o.dependencies,l=void 0===a?[]:a,c=o.onReset,s=n.store,u=r.getNamePath(),d=r.getValue(e),p=r.getValue(s),f=t&&Yd(t,u);switch("valueUpdate"!==n.type||"external"!==n.source||Ne(d,p)||(r.touched=!0,r.dirty=!0,r.validatePromise=null,r.errors=ep,r.warnings=ep,r.triggerMetaEvent()),n.type){case"reset":if(!t||f)return r.touched=!1,r.dirty=!1,r.validatePromise=void 0,r.errors=ep,r.warnings=ep,r.triggerMetaEvent(),null===c||void 0===c||c(),void r.refresh();break;case"remove":if(i&&tp(i,e,s,d,p,n))return void r.reRender();break;case"setField":var m=n.data;if(f)return"touched"in m&&(r.touched=m.touched),"validating"in m&&!("originRCField"in m)&&(r.validatePromise=m.validating?Promise.resolve([]):null),"errors"in m&&(r.errors=m.errors||ep),"warnings"in m&&(r.warnings=m.warnings||ep),r.dirty=!0,r.triggerMetaEvent(),void r.reRender();if("value"in m&&Yd(t,u,!0))return void r.reRender();if(i&&!u.length&&tp(i,e,s,d,p,n))return void r.reRender();break;case"dependenciesUpdate":if(l.map(Xd).some(function(e){return Yd(n.relatedFields,e)}))return void r.reRender();break;default:if(f||(!l.length||u.length||i)&&tp(i,e,s,d,p,n))return void r.reRender()}!0===i&&r.reRender()}),(0,Ee.A)(Z(r),"validateRules",function(e){var t=r.getNamePath(),n=r.getValue(),o=e||{},i=o.triggerName,a=o.validateOnly,l=void 0!==a&&a,c=Promise.resolve().then(Al(El().mark(function o(){var a,l,s,u,d,p,f;return El().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:if(r.mounted){o.next=2;break}return o.abrupt("return",[]);case 2:if(a=r.props,l=a.validateFirst,s=void 0!==l&&l,u=a.messageVariables,d=a.validateDebounce,p=r.getRules(),i&&(p=p.filter(function(e){return e}).filter(function(e){var t=e.validateTrigger;return!t||pd(t).includes(i)})),!d||!i){o.next=10;break}return o.next=8,new Promise(function(e){setTimeout(e,d)});case 8:if(r.validatePromise===c){o.next=10;break}return o.abrupt("return",[]);case 10:return(f=Kd(t,n,p,e,s,u)).catch(function(e){return e}).then(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ep;if(r.validatePromise===c){var t;r.validatePromise=null;var n=[],o=[];null===(t=e.forEach)||void 0===t||t.call(e,function(e){var t=e.rule.warningOnly,r=e.errors,i=void 0===r?ep:r;t?o.push.apply(o,se(i)):n.push.apply(n,se(i))}),r.errors=n,r.warnings=o,r.triggerMetaEvent(),r.reRender()}}),o.abrupt("return",f);case 13:case"end":return o.stop()}},o)})));return l||(r.validatePromise=c,r.dirty=!0,r.errors=ep,r.warnings=ep,r.triggerMetaEvent(),r.reRender()),c}),(0,Ee.A)(Z(r),"isFieldValidating",function(){return!!r.validatePromise}),(0,Ee.A)(Z(r),"isFieldTouched",function(){return r.touched}),(0,Ee.A)(Z(r),"isFieldDirty",function(){return!(!r.dirty&&void 0===r.props.initialValue)||void 0!==(0,r.props.fieldContext.getInternalHooks(cd).getInitialValue)(r.getNamePath())}),(0,Ee.A)(Z(r),"getErrors",function(){return r.errors}),(0,Ee.A)(Z(r),"getWarnings",function(){return r.warnings}),(0,Ee.A)(Z(r),"isListField",function(){return r.props.isListField}),(0,Ee.A)(Z(r),"isList",function(){return r.props.isList}),(0,Ee.A)(Z(r),"isPreserve",function(){return r.props.preserve}),(0,Ee.A)(Z(r),"getMeta",function(){return r.prevValidating=r.isFieldValidating(),{touched:r.isFieldTouched(),validating:r.prevValidating,errors:r.errors,warnings:r.warnings,name:r.getNamePath(),validated:null===r.validatePromise}}),(0,Ee.A)(Z(r),"getOnlyChild",function(e){if("function"===typeof e){var t=r.getMeta();return(0,d.A)((0,d.A)({},r.getOnlyChild(e(r.getControlled(),t,r.props.fieldContext))),{},{isFunction:!0})}var n=s(e);return 1===n.length&&o.isValidElement(n[0])?{child:n[0],isFunction:!1}:{child:n,isFunction:!1}}),(0,Ee.A)(Z(r),"getValue",function(e){var t=r.props.fieldContext.getFieldsValue,n=r.getNamePath();return Fn(e||t(!0),n)}),(0,Ee.A)(Z(r),"getControlled",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=r.props,n=t.name,o=t.trigger,i=t.validateTrigger,a=t.getValueFromEvent,l=t.normalize,c=t.valuePropName,s=t.getValueProps,u=t.fieldContext,p=void 0!==i?i:u.validateTrigger,f=r.getNamePath(),m=u.getInternalHooks,g=u.getFieldsValue,v=m(cd).dispatch,h=r.getValue(),b=s||function(e){return(0,Ee.A)({},c,e)},y=e[o],C=void 0!==n?b(h):{};var x=(0,d.A)((0,d.A)({},e),C);return x[o]=function(){var e;r.touched=!0,r.dirty=!0,r.triggerMetaEvent();for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];e=a?a.apply(void 0,n):Qd.apply(void 0,[c].concat(n)),l&&(e=l(e,h,g(!0))),e!==h&&v({type:"updateValue",namePath:f,value:e}),y&&y.apply(void 0,n)},pd(p||[]).forEach(function(e){var t=x[e];x[e]=function(){t&&t.apply(void 0,arguments);var n=r.props.rules;n&&n.length&&v({type:"validateField",namePath:f,triggerName:e})}}),x}),e.fieldContext)&&(0,(0,e.fieldContext.getInternalHooks)(cd).initEntityValue)(Z(r));return r}return X(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.shouldUpdate,n=e.fieldContext;if(this.mounted=!0,n){var o=(0,n.getInternalHooks)(cd).registerField;this.cancelRegisterFunc=o(this)}!0===t&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var e,t=this.state.resetCount,n=this.props.children,r=this.getOnlyChild(n),i=r.child;return r.isFunction?e=i:o.isValidElement(i)?e=o.cloneElement(i,this.getControlled(i.props)):((0,u.Ay)(!i,"`children` of Field is not validate ReactElement."),e=i),o.createElement(o.Fragment,{key:t},e)}}]),n}(o.Component);(0,Ee.A)(np,"contextType",ud),(0,Ee.A)(np,"defaultProps",{trigger:"onChange",valuePropName:"value"});const op=function(e){var t,n=e.name,r=(0,cr.A)(e,Jd),i=o.useContext(ud),a=o.useContext(dd),c=void 0!==n?Xd(n):void 0,s=null!==(t=r.isListField)&&void 0!==t?t:!!a,u="keep";return s||(u="_".concat((c||[]).join("_"))),o.createElement(np,(0,l.A)({key:u,name:c,isListField:s},r,{fieldContext:i}))};const rp=function(e){var t=e.name,n=e.initialValue,r=e.children,i=e.rules,a=e.validateTrigger,l=e.isListField,c=o.useContext(ud),s=o.useContext(dd),p=o.useRef({keys:[],id:0}).current,f=o.useMemo(function(){var e=Xd(c.prefixName)||[];return[].concat(se(e),se(Xd(t)))},[c.prefixName,t]),m=o.useMemo(function(){return(0,d.A)((0,d.A)({},c),{},{prefixName:f})},[c,f]),g=o.useMemo(function(){return{getKey:function(e){var t=f.length,n=e[t];return[p.keys[n],e.slice(t+1)]}}},[f]);return"function"!==typeof r?((0,u.Ay)(!1,"Form.List only accepts function as children."),null):o.createElement(dd.Provider,{value:g},o.createElement(ud.Provider,{value:m},o.createElement(op,{name:[],shouldUpdate:function(e,t,n){return"internal"!==n.source&&e!==t},rules:i,validateTrigger:a,initialValue:n,isList:!0,isListField:null!==l&&void 0!==l?l:!!s},function(e,t){var n=e.value,o=void 0===n?[]:n,i=e.onChange,a=c.getFieldValue,l=function(){return a(f||[])||[]},s={add:function(e,t){var n=l();t>=0&&t<=n.length?(p.keys=[].concat(se(p.keys.slice(0,t)),[p.id],se(p.keys.slice(t))),i([].concat(se(n.slice(0,t)),[e],se(n.slice(t))))):(p.keys=[].concat(se(p.keys),[p.id]),i([].concat(se(n),[e]))),p.id+=1},remove:function(e){var t=l(),n=new Set(Array.isArray(e)?e:[e]);n.size<=0||(p.keys=p.keys.filter(function(e,t){return!n.has(t)}),i(t.filter(function(e,t){return!n.has(t)})))},move:function(e,t){if(e!==t){var n=l();e<0||e>=n.length||t<0||t>=n.length||(p.keys=Zd(p.keys,e,t),i(Zd(n,e,t)))}}},u=o||[];return Array.isArray(u)||(u=[]),r(u.map(function(e,t){var n=p.keys[t];return void 0===n&&(p.keys[t]=p.id,n=p.keys[t],p.id+=1),{name:t,key:n,isListField:!0}}),s,t)})))};var ip="__@field_split__";function ap(e){return e.map(function(e){return"".concat((0,p.A)(e),":").concat(e)}).join(ip)}var lp=function(){function e(){K(this,e),(0,Ee.A)(this,"kvs",new Map)}return X(e,[{key:"set",value:function(e,t){this.kvs.set(ap(e),t)}},{key:"get",value:function(e){return this.kvs.get(ap(e))}},{key:"update",value:function(e,t){var n=t(this.get(e));n?this.set(e,n):this.delete(e)}},{key:"delete",value:function(e){this.kvs.delete(ap(e))}},{key:"map",value:function(e){return se(this.kvs.entries()).map(function(t){var n=(0,ke.A)(t,2),o=n[0],r=n[1],i=o.split(ip);return e({key:i.map(function(e){var t=e.match(/^([^:]*):(.*)$/),n=(0,ke.A)(t,3),o=n[1],r=n[2];return"number"===o?Number(r):r}),value:r})})}},{key:"toJSON",value:function(){var e={};return this.map(function(t){var n=t.key,o=t.value;return e[n.join(".")]=o,null}),e}}]),e}();const cp=lp;var sp=["name"],up=X(function e(t){var n=this;K(this,e),(0,Ee.A)(this,"formHooked",!1),(0,Ee.A)(this,"forceRootUpdate",void 0),(0,Ee.A)(this,"subscribable",!0),(0,Ee.A)(this,"store",{}),(0,Ee.A)(this,"fieldEntities",[]),(0,Ee.A)(this,"initialValues",{}),(0,Ee.A)(this,"callbacks",{}),(0,Ee.A)(this,"validateMessages",null),(0,Ee.A)(this,"preserve",null),(0,Ee.A)(this,"lastValidatePromise",null),(0,Ee.A)(this,"getForm",function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}}),(0,Ee.A)(this,"getInternalHooks",function(e){return e===cd?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):((0,u.Ay)(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),(0,Ee.A)(this,"useSubscribe",function(e){n.subscribable=e}),(0,Ee.A)(this,"prevWithoutPreserves",null),(0,Ee.A)(this,"setInitialValues",function(e,t){if(n.initialValues=e||{},t){var o,r=Yn(e,n.store);null===(o=n.prevWithoutPreserves)||void 0===o||o.map(function(t){var n=t.key;r=Vn(r,n,Fn(e,n))}),n.prevWithoutPreserves=null,n.updateStore(r)}}),(0,Ee.A)(this,"destroyForm",function(e){if(e)n.updateStore({});else{var t=new cp;n.getFieldEntities(!0).forEach(function(e){n.isMergedPreserve(e.isPreserve())||t.set(e.getNamePath(),!0)}),n.prevWithoutPreserves=t}}),(0,Ee.A)(this,"getInitialValue",function(e){var t=Fn(n.initialValues,e);return e.length?Yn(t):t}),(0,Ee.A)(this,"setCallbacks",function(e){n.callbacks=e}),(0,Ee.A)(this,"setValidateMessages",function(e){n.validateMessages=e}),(0,Ee.A)(this,"setPreserve",function(e){n.preserve=e}),(0,Ee.A)(this,"watchList",[]),(0,Ee.A)(this,"registerWatch",function(e){return n.watchList.push(e),function(){n.watchList=n.watchList.filter(function(t){return t!==e})}}),(0,Ee.A)(this,"notifyWatch",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(n.watchList.length){var t=n.getFieldsValue(),o=n.getFieldsValue(!0);n.watchList.forEach(function(n){n(t,o,e)})}}),(0,Ee.A)(this,"timeoutId",null),(0,Ee.A)(this,"warningUnhooked",function(){0}),(0,Ee.A)(this,"updateStore",function(e){n.store=e}),(0,Ee.A)(this,"getFieldEntities",function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?n.fieldEntities.filter(function(e){return e.getNamePath().length}):n.fieldEntities}),(0,Ee.A)(this,"getFieldsMap",function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=new cp;return n.getFieldEntities(e).forEach(function(e){var n=e.getNamePath();t.set(n,e)}),t}),(0,Ee.A)(this,"getFieldEntitiesForNamePathList",function(e){if(!e)return n.getFieldEntities(!0);var t=n.getFieldsMap(!0);return e.map(function(e){var n=Xd(e);return t.get(n)||{INVALIDATE_NAME_PATH:Xd(e)}})}),(0,Ee.A)(this,"getFieldsValue",function(e,t){var o,r,i;if(n.warningUnhooked(),!0===e||Array.isArray(e)?(o=e,r=t):e&&"object"===(0,p.A)(e)&&(i=e.strict,r=e.filter),!0===o&&!r)return n.store;var a=n.getFieldEntitiesForNamePathList(Array.isArray(o)?o:null),l=[];return a.forEach(function(e){var t,n,a,c,s="INVALIDATE_NAME_PATH"in e?e.INVALIDATE_NAME_PATH:e.getNamePath();if(i){if(null!==(a=(c=e).isList)&&void 0!==a&&a.call(c))return}else if(!o&&null!==(t=(n=e).isListField)&&void 0!==t&&t.call(n))return;if(r){var u="getMeta"in e?e.getMeta():null;r(u)&&l.push(s)}else l.push(s)}),Gd(n.store,l.map(Xd))}),(0,Ee.A)(this,"getFieldValue",function(e){n.warningUnhooked();var t=Xd(e);return Fn(n.store,t)}),(0,Ee.A)(this,"getFieldsError",function(e){return n.warningUnhooked(),n.getFieldEntitiesForNamePathList(e).map(function(t,n){return t&&!("INVALIDATE_NAME_PATH"in t)?{name:t.getNamePath(),errors:t.getErrors(),warnings:t.getWarnings()}:{name:Xd(e[n]),errors:[],warnings:[]}})}),(0,Ee.A)(this,"getFieldError",function(e){n.warningUnhooked();var t=Xd(e);return n.getFieldsError([t])[0].errors}),(0,Ee.A)(this,"getFieldWarning",function(e){n.warningUnhooked();var t=Xd(e);return n.getFieldsError([t])[0].warnings}),(0,Ee.A)(this,"isFieldsTouched",function(){n.warningUnhooked();for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];var r,i=t[0],a=t[1],l=!1;0===t.length?r=null:1===t.length?Array.isArray(i)?(r=i.map(Xd),l=!1):(r=null,l=i):(r=i.map(Xd),l=a);var c=n.getFieldEntities(!0),s=function(e){return e.isFieldTouched()};if(!r)return l?c.every(function(e){return s(e)||e.isList()}):c.some(s);var u=new cp;r.forEach(function(e){u.set(e,[])}),c.forEach(function(e){var t=e.getNamePath();r.forEach(function(n){n.every(function(e,n){return t[n]===e})&&u.update(n,function(t){return[].concat(se(t),[e])})})});var d=function(e){return e.some(s)},p=u.map(function(e){return e.value});return l?p.every(d):p.some(d)}),(0,Ee.A)(this,"isFieldTouched",function(e){return n.warningUnhooked(),n.isFieldsTouched([e])}),(0,Ee.A)(this,"isFieldsValidating",function(e){n.warningUnhooked();var t=n.getFieldEntities();if(!e)return t.some(function(e){return e.isFieldValidating()});var o=e.map(Xd);return t.some(function(e){var t=e.getNamePath();return Yd(o,t)&&e.isFieldValidating()})}),(0,Ee.A)(this,"isFieldValidating",function(e){return n.warningUnhooked(),n.isFieldsValidating([e])}),(0,Ee.A)(this,"resetWithFieldInitialValue",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=new cp,o=n.getFieldEntities(!0);o.forEach(function(e){var n=e.props.initialValue,o=e.getNamePath();if(void 0!==n){var r=t.get(o)||new Set;r.add({entity:e,value:n}),t.set(o,r)}});var r;e.entities?r=e.entities:e.namePathList?(r=[],e.namePathList.forEach(function(e){var n,o=t.get(e);o&&(n=r).push.apply(n,se(se(o).map(function(e){return e.entity})))})):r=o,r.forEach(function(o){if(void 0!==o.props.initialValue){var r=o.getNamePath();if(void 0!==n.getInitialValue(r))(0,u.Ay)(!1,"Form already set 'initialValues' with path '".concat(r.join("."),"'. Field can not overwrite it."));else{var i=t.get(r);if(i&&i.size>1)(0,u.Ay)(!1,"Multiple Field with path '".concat(r.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(i){var a=n.getFieldValue(r);o.isListField()||e.skipExist&&void 0!==a||n.updateStore(Vn(n.store,r,se(i)[0].value))}}}})}),(0,Ee.A)(this,"resetFields",function(e){n.warningUnhooked();var t=n.store;if(!e)return n.updateStore(Yn(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(t,null,{type:"reset"}),void n.notifyWatch();var o=e.map(Xd);o.forEach(function(e){var t=n.getInitialValue(e);n.updateStore(Vn(n.store,e,t))}),n.resetWithFieldInitialValue({namePathList:o}),n.notifyObservers(t,o,{type:"reset"}),n.notifyWatch(o)}),(0,Ee.A)(this,"setFields",function(e){n.warningUnhooked();var t=n.store,o=[];e.forEach(function(e){var r=e.name,i=(0,cr.A)(e,sp),a=Xd(r);o.push(a),"value"in i&&n.updateStore(Vn(n.store,a,i.value)),n.notifyObservers(t,[a],{type:"setField",data:e})}),n.notifyWatch(o)}),(0,Ee.A)(this,"getFields",function(){return n.getFieldEntities(!0).map(function(e){var t=e.getNamePath(),o=e.getMeta(),r=(0,d.A)((0,d.A)({},o),{},{name:t,value:n.getFieldValue(t)});return Object.defineProperty(r,"originRCField",{value:!0}),r})}),(0,Ee.A)(this,"initEntityValue",function(e){var t=e.props.initialValue;if(void 0!==t){var o=e.getNamePath();void 0===Fn(n.store,o)&&n.updateStore(Vn(n.store,o,t))}}),(0,Ee.A)(this,"isMergedPreserve",function(e){var t=void 0!==e?e:n.preserve;return null===t||void 0===t||t}),(0,Ee.A)(this,"registerField",function(e){n.fieldEntities.push(e);var t=e.getNamePath();if(n.notifyWatch([t]),void 0!==e.props.initialValue){var o=n.store;n.resetWithFieldInitialValue({entities:[e],skipExist:!0}),n.notifyObservers(o,[e.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(o,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(t){return t!==e}),!n.isMergedPreserve(r)&&(!o||i.length>1)){var a=o?void 0:n.getInitialValue(t);if(t.length&&n.getFieldValue(t)!==a&&n.fieldEntities.every(function(e){return!Ud(e.getNamePath(),t)})){var l=n.store;n.updateStore(Vn(l,t,a,!0)),n.notifyObservers(l,[t],{type:"remove"}),n.triggerDependenciesUpdate(l,t)}}n.notifyWatch([t])}}),(0,Ee.A)(this,"dispatch",function(e){switch(e.type){case"updateValue":var t=e.namePath,o=e.value;n.updateValue(t,o);break;case"validateField":var r=e.namePath,i=e.triggerName;n.validateFields([r],{triggerName:i})}}),(0,Ee.A)(this,"notifyObservers",function(e,t,o){if(n.subscribable){var r=(0,d.A)((0,d.A)({},o),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(n){(0,n.onStoreChange)(e,t,r)})}else n.forceRootUpdate()}),(0,Ee.A)(this,"triggerDependenciesUpdate",function(e,t){var o=n.getDependencyChildrenFields(t);return o.length&&n.validateFields(o),n.notifyObservers(e,o,{type:"dependenciesUpdate",relatedFields:[t].concat(se(o))}),o}),(0,Ee.A)(this,"updateValue",function(e,t){var o=Xd(e),r=n.store;n.updateStore(Vn(n.store,o,t)),n.notifyObservers(r,[o],{type:"valueUpdate",source:"internal"}),n.notifyWatch([o]);var i=n.triggerDependenciesUpdate(r,o),a=n.callbacks.onValuesChange;a&&a(Gd(n.store,[o]),n.getFieldsValue());n.triggerOnFieldsChange([o].concat(se(i)))}),(0,Ee.A)(this,"setFieldsValue",function(e){n.warningUnhooked();var t=n.store;if(e){var o=Yn(n.store,e);n.updateStore(o)}n.notifyObservers(t,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),(0,Ee.A)(this,"setFieldValue",function(e,t){n.setFields([{name:e,value:t,errors:[],warnings:[]}])}),(0,Ee.A)(this,"getDependencyChildrenFields",function(e){var t=new Set,o=[],r=new cp;n.getFieldEntities().forEach(function(e){(e.props.dependencies||[]).forEach(function(t){var n=Xd(t);r.update(n,function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Set;return t.add(e),t})})});return function e(n){(r.get(n)||new Set).forEach(function(n){if(!t.has(n)){t.add(n);var r=n.getNamePath();n.isFieldDirty()&&r.length&&(o.push(r),e(r))}})}(e),o}),(0,Ee.A)(this,"triggerOnFieldsChange",function(e,t){var o=n.callbacks.onFieldsChange;if(o){var r=n.getFields();if(t){var i=new cp;t.forEach(function(e){var t=e.name,n=e.errors;i.set(t,n)}),r.forEach(function(e){e.errors=i.get(e.name)||e.errors})}var a=r.filter(function(t){var n=t.name;return Yd(e,n)});a.length&&o(a,r)}}),(0,Ee.A)(this,"validateFields",function(e,t){var o,r;n.warningUnhooked(),Array.isArray(e)||"string"===typeof e||"string"===typeof t?(o=e,r=t):r=e;var i=!!o,a=i?o.map(Xd):[],l=[],c=String(Date.now()),s=new Set,u=r||{},p=u.recursive,f=u.dirty;n.getFieldEntities(!0).forEach(function(e){if(i||a.push(e.getNamePath()),e.props.rules&&e.props.rules.length&&(!f||e.isFieldDirty())){var t=e.getNamePath();if(s.add(t.join(c)),!i||Yd(a,t,p)){var o=e.validateRules((0,d.A)({validateMessages:(0,d.A)((0,d.A)({},Hd),n.validateMessages)},r));l.push(o.then(function(){return{name:t,errors:[],warnings:[]}}).catch(function(e){var n,o=[],r=[];return null===(n=e.forEach)||void 0===n||n.call(e,function(e){var t=e.rule.warningOnly,n=e.errors;t?r.push.apply(r,se(n)):o.push.apply(o,se(n))}),o.length?Promise.reject({name:t,errors:o,warnings:r}):{name:t,errors:o,warnings:r}}))}}});var m=function(e){var t=!1,n=e.length,o=[];return e.length?new Promise(function(r,i){e.forEach(function(e,a){e.catch(function(e){return t=!0,e}).then(function(e){n-=1,o[a]=e,n>0||(t&&i(o),r(o))})})}):Promise.resolve([])}(l);n.lastValidatePromise=m,m.catch(function(e){return e}).then(function(e){var t=e.map(function(e){return e.name});n.notifyObservers(n.store,t,{type:"validateFinish"}),n.triggerOnFieldsChange(t,e)});var g=m.then(function(){return n.lastValidatePromise===m?Promise.resolve(n.getFieldsValue(a)):Promise.reject([])}).catch(function(e){var t=e.filter(function(e){return e&&e.errors.length});return Promise.reject({values:n.getFieldsValue(a),errorFields:t,outOfDate:n.lastValidatePromise!==m})});g.catch(function(e){return e});var v=a.filter(function(e){return s.has(e.join(c))});return n.triggerOnFieldsChange(v),g}),(0,Ee.A)(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(e){var t=n.callbacks.onFinish;if(t)try{t(e)}catch(o){console.error(o)}}).catch(function(e){var t=n.callbacks.onFinishFailed;t&&t(e)})}),this.forceRootUpdate=t});const dp=function(e){var t=o.useRef(),n=o.useState({}),r=(0,ke.A)(n,2)[1];if(!t.current)if(e)t.current=e;else{var i=new up(function(){r({})});t.current=i.getForm()}return[t.current]};var pp=o.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),fp=function(e){var t=e.validateMessages,n=e.onFormChange,r=e.onFormFinish,i=e.children,a=o.useContext(pp),l=o.useRef({});return o.createElement(pp.Provider,{value:(0,d.A)((0,d.A)({},a),{},{validateMessages:(0,d.A)((0,d.A)({},a.validateMessages),t),triggerFormChange:function(e,t){n&&n(e,{changedFields:t,forms:l.current}),a.triggerFormChange(e,t)},triggerFormFinish:function(e,t){r&&r(e,{values:t,forms:l.current}),a.triggerFormFinish(e,t)},registerForm:function(e,t){e&&(l.current=(0,d.A)((0,d.A)({},l.current),{},(0,Ee.A)({},e,t))),a.registerForm(e,t)},unregisterForm:function(e){var t=(0,d.A)({},l.current);delete t[e],l.current=t,a.unregisterForm(e)}})},i)};const mp=pp;var gp=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"];const vp=function(e,t){var n=e.name,r=e.initialValues,i=e.fields,a=e.form,c=e.preserve,s=e.children,u=e.component,f=void 0===u?"form":u,m=e.validateMessages,g=e.validateTrigger,v=void 0===g?"onChange":g,h=e.onValuesChange,b=e.onFieldsChange,y=e.onFinish,C=e.onFinishFailed,x=e.clearOnDestroy,$=(0,cr.A)(e,gp),w=o.useRef(null),S=o.useContext(mp),k=dp(a),E=(0,ke.A)(k,1)[0],O=E.getInternalHooks(cd),A=O.useSubscribe,I=O.setInitialValues,N=O.setCallbacks,M=O.setValidateMessages,j=O.setPreserve,P=O.destroyForm;o.useImperativeHandle(t,function(){return(0,d.A)((0,d.A)({},E),{},{nativeElement:w.current})}),o.useEffect(function(){return S.registerForm(n,E),function(){S.unregisterForm(n)}},[S,E,n]),M((0,d.A)((0,d.A)({},S.validateMessages),m)),N({onValuesChange:h,onFieldsChange:function(e){if(S.triggerFormChange(n,e),b){for(var t=arguments.length,o=new Array(t>1?t-1:0),r=1;r<t;r++)o[r-1]=arguments[r];b.apply(void 0,[e].concat(o))}},onFinish:function(e){S.triggerFormFinish(n,e),y&&y(e)},onFinishFailed:C}),j(c);var R,T=o.useRef(null);I(r,!T.current),T.current||(T.current=!0),o.useEffect(function(){return function(){return P(x)}},[]);var z="function"===typeof s;z?R=s(E.getFieldsValue(!0),E):R=s;A(!z);var B=o.useRef();o.useEffect(function(){(function(e,t){if(e===t)return!0;if(!e&&t||e&&!t)return!1;if(!e||!t||"object"!==(0,p.A)(e)||"object"!==(0,p.A)(t))return!1;var n=Object.keys(e),o=Object.keys(t);return se(new Set([].concat(n,o))).every(function(n){var o=e[n],r=t[n];return"function"===typeof o&&"function"===typeof r||o===r})})(B.current||[],i||[])||E.setFields(i||[]),B.current=i},[i,E]);var H=o.useMemo(function(){return(0,d.A)((0,d.A)({},E),{},{validateTrigger:v})},[E,v]),D=o.createElement(dd.Provider,{value:null},o.createElement(ud.Provider,{value:H},R));return!1===f?D:o.createElement(f,(0,l.A)({},$,{ref:w,onSubmit:function(e){e.preventDefault(),e.stopPropagation(),E.submit()},onReset:function(e){var t;e.preventDefault(),E.resetFields(),null===(t=$.onReset)||void 0===t||t.call($,e)}}),D)};function hp(e){try{return JSON.stringify(e)}catch(t){return Math.random()}}var bp=function(){};const yp=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],i=t[1],a=void 0===i?{}:i,l=function(e){return e&&!!e._init}(a)?{form:a}:a,c=l.form,s=(0,o.useState)(),u=(0,ke.A)(s,2),d=u[0],p=u[1],f=(0,o.useMemo)(function(){return hp(d)},[d]),m=(0,o.useRef)(f);m.current=f;var g=(0,o.useContext)(ud),v=c||g,h=v&&v._init,b=Xd(r),y=(0,o.useRef)(b);return y.current=b,bp(b),(0,o.useEffect)(function(){if(h){var e=v.getFieldsValue,t=(0,v.getInternalHooks)(cd).registerWatch,n=function(e,t){var n=l.preserve?t:e;return"function"===typeof r?r(n):Fn(n,y.current)},o=t(function(e,t){var o=n(e,t),r=hp(o);m.current!==r&&(m.current=r,p(o))}),i=n(e(),e(!0));return d!==i&&p(i),o}},[h]),d};var Cp=o.forwardRef(vp);Cp.FormProvider=fp,Cp.Field=op,Cp.List=rp,Cp.useForm=dp,Cp.useWatch=yp;const xp=Cp,$p=o.createContext({labelAlign:"right",vertical:!1,itemRef:()=>{}}),wp=o.createContext(null),Sp=e=>{const t=Ul(e,["prefixCls"]);return o.createElement(fp,Object.assign({},t))},kp=o.createContext({prefixCls:""}),Ep=o.createContext({});const Op=e=>{let{children:t,status:n,override:r}=e;const i=o.useContext(Ep),a=o.useMemo(()=>{const e=Object.assign({},i);return r&&delete e.isFormItemInput,n&&(delete e.status,delete e.hasFeedback,delete e.feedbackIcon),e},[n,r,i]);return o.createElement(Ep.Provider,{value:a},t)},Ap=o.createContext(void 0),Ip=e=>{const{space:t,form:n,children:o}=e;if(void 0===o||null===o)return null;let i=o;return n&&(i=r().createElement(Op,{override:!0,status:!0},i)),t&&(i=r().createElement(gc,null,i)),i};const Np=function(){const e={};for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return n.forEach(t=>{t&&Object.keys(t).forEach(n=>{void 0!==t[n]&&(e[n]=t[n])})}),e};function Mp(e){if(!e)return;const{closable:t,closeIcon:n}=e;return{closable:t,closeIcon:n}}function jp(e){const{closable:t,closeIcon:n}=e||{};return r().useMemo(()=>{if(!t&&(!1===t||!1===n||null===n))return!1;if(void 0===t&&void 0===n)return null;let e={closeIcon:"boolean"!==typeof n&&null!==n?n:void 0};return t&&"object"===typeof t&&(e=Object.assign(Object.assign({},e),t)),e},[t,n])}const Pp={};function Rp(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Pp;const o=jp(e),i=jp(t),[a]=Yl("global",Ba.global),l="boolean"!==typeof o&&!!(null===o||void 0===o?void 0:o.disabled),c=r().useMemo(()=>Object.assign({closeIcon:r().createElement(ir.A,null)},n),[n]),s=r().useMemo(()=>!1!==o&&(o?Np(c,i,o):!1!==i&&(i?Np(c,i):!!c.closable&&c)),[o,i,c]);return r().useMemo(()=>{var e,t;if(!1===s)return[!1,null,l,{}];const{closeIconRender:n}=c,{closeIcon:o}=s;let i=o;const u=ni(s,!0);return null!==i&&void 0!==i&&(n&&(i=n(o)),i=r().isValidElement(i)?r().cloneElement(i,Object.assign(Object.assign(Object.assign({},i.props),{"aria-label":null!==(t=null===(e=i.props)||void 0===e?void 0:e["aria-label"])&&void 0!==t?t:a.close}),u)):r().createElement("span",Object.assign({"aria-label":a.close},u),i)),[!0,i,l,u]},[s,c])}const Tp=e=>{const{prefixCls:t,className:n,style:r,size:i,shape:l}=e,c=a()({[`${t}-lg`]:"large"===i,[`${t}-sm`]:"small"===i}),s=a()({[`${t}-circle`]:"circle"===l,[`${t}-square`]:"square"===l,[`${t}-round`]:"round"===l}),u=o.useMemo(()=>"number"===typeof i?{width:i,height:i,lineHeight:`${i}px`}:{},[i]);return o.createElement("span",{className:a()(t,c,s,n),style:Object.assign(Object.assign({},u),r)})},zp=new En("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Bp=e=>({height:e,lineHeight:nt(e)}),Hp=e=>Object.assign({width:e},Bp(e)),Dp=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:zp,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),Lp=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},Bp(e)),Fp=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:o,controlHeightLG:r,controlHeightSM:i}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},Hp(o)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},Hp(r)),[`${t}${t}-sm`]:Object.assign({},Hp(i))}},Wp=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:o,controlHeightLG:r,controlHeightSM:i,gradientFromColor:a,calc:l}=e;return{[o]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:n},Lp(t,l)),[`${o}-lg`]:Object.assign({},Lp(r,l)),[`${o}-sm`]:Object.assign({},Lp(i,l))}},_p=e=>Object.assign({width:e},Bp(e)),Kp=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:o,borderRadiusSM:r,calc:i}=e;return{[t]:Object.assign(Object.assign({display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:o,borderRadius:r},_p(i(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},_p(n)),{maxWidth:i(n).mul(4).equal(),maxHeight:i(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},qp=(e,t,n)=>{const{skeletonButtonCls:o}=e;return{[`${n}${o}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${o}-round`]:{borderRadius:t}}},Vp=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},Bp(e)),Xp=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:o,controlHeightLG:r,controlHeightSM:i,gradientFromColor:a,calc:l}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:t,width:l(o).mul(2).equal(),minWidth:l(o).mul(2).equal()},Vp(o,l))},qp(e,o,n)),{[`${n}-lg`]:Object.assign({},Vp(r,l))}),qp(e,r,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},Vp(i,l))}),qp(e,i,`${n}-sm`))},Gp=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:o,skeletonParagraphCls:r,skeletonButtonCls:i,skeletonInputCls:a,skeletonImageCls:l,controlHeight:c,controlHeightLG:s,controlHeightSM:u,gradientFromColor:d,padding:p,marginSM:f,borderRadius:m,titleHeight:g,blockRadius:v,paragraphLiHeight:h,controlHeightXS:b,paragraphMarginTop:y}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:p,verticalAlign:"top",[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:d},Hp(c)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},Hp(s)),[`${n}-sm`]:Object.assign({},Hp(u))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[o]:{width:"100%",height:g,background:d,borderRadius:v,[`+ ${r}`]:{marginBlockStart:u}},[r]:{padding:0,"> li":{width:"100%",height:h,listStyle:"none",background:d,borderRadius:v,"+ li":{marginBlockStart:b}}},[`${r}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${o}, ${r} > li`]:{borderRadius:m}}},[`${t}-with-avatar ${t}-content`]:{[o]:{marginBlockStart:f,[`+ ${r}`]:{marginBlockStart:y}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},Xp(e)),Fp(e)),Wp(e)),Kp(e)),[`${t}${t}-block`]:{width:"100%",[i]:{width:"100%"},[a]:{width:"100%"}},[`${t}${t}-active`]:{[`\n ${o},\n ${r} > li,\n ${n},\n ${i},\n ${a},\n ${l}\n `]:Object.assign({},Dp(e))}}},Yp=qo("Skeleton",e=>{const{componentCls:t,calc:n}=e,o=Jn(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,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"});return[Gp(o)]},e=>{const{colorFillContent:t,colorFill:n}=e;return{color:t,colorGradientEnd:n,gradientFromColor:t,gradientToColor:n,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),Up=e=>{const{prefixCls:t,className:n,rootClassName:r,active:i,shape:l="circle",size:c="default"}=e,{getPrefixCls:s}=o.useContext(xe),u=s("skeleton",t),[d,p,f]=Yp(u),m=Ul(e,["prefixCls","className"]),g=a()(u,`${u}-element`,{[`${u}-active`]:i},n,r,p,f);return d(o.createElement("div",{className:g},o.createElement(Tp,Object.assign({prefixCls:`${u}-avatar`,shape:l,size:c},m))))},Qp=e=>{const{prefixCls:t,className:n,rootClassName:r,active:i,block:l=!1,size:c="default"}=e,{getPrefixCls:s}=o.useContext(xe),u=s("skeleton",t),[d,p,f]=Yp(u),m=Ul(e,["prefixCls"]),g=a()(u,`${u}-element`,{[`${u}-active`]:i,[`${u}-block`]:l},n,r,p,f);return d(o.createElement("div",{className:g},o.createElement(Tp,Object.assign({prefixCls:`${u}-button`,size:c},m))))},Zp=e=>{const{prefixCls:t,className:n,rootClassName:r,style:i,active:l}=e,{getPrefixCls:c}=o.useContext(xe),s=c("skeleton",t),[u,d,p]=Yp(s),f=a()(s,`${s}-element`,{[`${s}-active`]:l},n,r,d,p);return u(o.createElement("div",{className:f},o.createElement("div",{className:a()(`${s}-image`,n),style:i},o.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${s}-image-svg`},o.createElement("title",null,"Image placeholder"),o.createElement("path",{d:"M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",className:`${s}-image-path`})))))},Jp=e=>{const{prefixCls:t,className:n,rootClassName:r,active:i,block:l,size:c="default"}=e,{getPrefixCls:s}=o.useContext(xe),u=s("skeleton",t),[d,p,f]=Yp(u),m=Ul(e,["prefixCls"]),g=a()(u,`${u}-element`,{[`${u}-active`]:i,[`${u}-block`]:l},n,r,p,f);return d(o.createElement("div",{className:g},o.createElement(Tp,Object.assign({prefixCls:`${u}-input`,size:c},m))))},ef=e=>{const{prefixCls:t,className:n,rootClassName:r,style:i,active:l,children:c}=e,{getPrefixCls:s}=o.useContext(xe),u=s("skeleton",t),[d,p,f]=Yp(u),m=a()(u,`${u}-element`,{[`${u}-active`]:l},p,n,r,f);return d(o.createElement("div",{className:m},o.createElement("div",{className:a()(`${u}-image`,n),style:i},c)))},tf=(e,t)=>{const{width:n,rows:o=2}=t;return Array.isArray(n)?n[e]:o-1===e?n:void 0},nf=e=>{const{prefixCls:t,className:n,style:r,rows:i=0}=e,l=Array.from({length:i}).map((t,n)=>o.createElement("li",{key:n,style:{width:tf(n,e)}}));return o.createElement("ul",{className:a()(t,n),style:r},l)},of=e=>{let{prefixCls:t,className:n,width:r,style:i}=e;return o.createElement("h3",{className:a()(t,n),style:Object.assign({width:r},i)})};function rf(e){return e&&"object"===typeof e?e:{}}const af=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:i,style:l,children:c,avatar:s=!1,title:u=!0,paragraph:d=!0,active:p,round:f}=e,{getPrefixCls:m,direction:g,className:v,style:h}=Se("skeleton"),b=m("skeleton",t),[y,C,x]=Yp(b);if(n||!("loading"in e)){const e=!!s,t=!!u,n=!!d;let c,m;if(e){const e=Object.assign(Object.assign({prefixCls:`${b}-avatar`},function(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}(t,n)),rf(s));c=o.createElement("div",{className:`${b}-header`},o.createElement(Tp,Object.assign({},e)))}if(t||n){let r,i;if(t){const t=Object.assign(Object.assign({prefixCls:`${b}-title`},function(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}(e,n)),rf(u));r=o.createElement(of,Object.assign({},t))}if(n){const n=Object.assign(Object.assign({prefixCls:`${b}-paragraph`},function(e,t){const n={};return e&&t||(n.width="61%"),n.rows=!e&&t?3:2,n}(e,t)),rf(d));i=o.createElement(nf,Object.assign({},n))}m=o.createElement("div",{className:`${b}-content`},r,i)}const $=a()(b,{[`${b}-with-avatar`]:e,[`${b}-active`]:p,[`${b}-rtl`]:"rtl"===g,[`${b}-round`]:f},v,r,i,C,x);return y(o.createElement("div",{className:$,style:Object.assign(Object.assign({},h),l)},c,m))}return null!==c&&void 0!==c?c:null};af.Button=Qp,af.Avatar=Up,af.Input=Jp,af.Image=Zp,af.Node=ef;const lf=af;function cf(){}const sf=o.createContext({add:cf,remove:cf});function uf(e){const t=o.useContext(sf),n=o.useRef(null);return Bn(o=>{if(o){const r=e?o.querySelector(e):o;t.add(r),n.current=r}else t.remove(n.current)})}const df=sf,pf=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=(0,o.useContext)(Ou);return r().createElement(Su,Object.assign({onClick:n},e),t)},ff=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:i,onOk:a}=(0,o.useContext)(Ou);return r().createElement(Su,Object.assign({},Sc(n),{loading:e,onClick:a},t),i)};function mf(e,t){return r().createElement("span",{className:`${e}-close-x`},t||r().createElement(ir.A,{className:`${e}-close-icon`}))}const gf=e=>{const{okText:t,okType:n="primary",cancelText:o,confirmLoading:i,onOk:a,onCancel:l,okButtonProps:c,cancelButtonProps:s,footer:u}=e,[d]=Yl("Modal",Fa()),p={confirmLoading:i,okButtonProps:c,cancelButtonProps:s,okTextLocale:t||(null===d||void 0===d?void 0:d.okText),cancelTextLocale:o||(null===d||void 0===d?void 0:d.cancelText),okType:n,onOk:a,onCancel:l},f=r().useMemo(()=>p,se(Object.values(p)));let m;return"function"===typeof u||"undefined"===typeof u?(m=r().createElement(r().Fragment,null,r().createElement(pf,null),r().createElement(ff,null)),"function"===typeof u&&(m=u(m,{OkBtn:ff,CancelBtn:pf})),m=r().createElement(Au,{value:f},m)):m=u,r().createElement(Xa,{disabled:!1},m)},vf=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},hf=(e,t)=>((e,t)=>{const{prefixCls:n,componentCls:o,gridColumns:r}=e,i={};for(let a=r;a>=0;a--)0===a?(i[`${o}${t}-${a}`]={display:"none"},i[`${o}-push-${a}`]={insetInlineStart:"auto"},i[`${o}-pull-${a}`]={insetInlineEnd:"auto"},i[`${o}${t}-push-${a}`]={insetInlineStart:"auto"},i[`${o}${t}-pull-${a}`]={insetInlineEnd:"auto"},i[`${o}${t}-offset-${a}`]={marginInlineStart:0},i[`${o}${t}-order-${a}`]={order:0}):(i[`${o}${t}-${a}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${a/r*100}%`,maxWidth:a/r*100+"%"}],i[`${o}${t}-push-${a}`]={insetInlineStart:a/r*100+"%"},i[`${o}${t}-pull-${a}`]={insetInlineEnd:a/r*100+"%"},i[`${o}${t}-offset-${a}`]={marginInlineStart:a/r*100+"%"},i[`${o}${t}-order-${a}`]={order:a});return i[`${o}${t}-flex`]={flex:`var(--${n}${t}-flex)`},i})(e,t),bf=qo("Grid",e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},()=>({})),yf=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin}),Cf=qo("Grid",e=>{const t=Jn(e,{gridColumns:24}),n=yf(t);return delete n.xs,[vf(t),hf(t,""),hf(t,"-xs"),Object.keys(n).map(e=>((e,t,n)=>({[`@media (min-width: ${nt(t)})`]:Object.assign({},hf(e,n))}))(t,n[e],`-${e}`)).reduce((e,t)=>Object.assign(Object.assign({},e),t),{})]},()=>({})),xf=e=>({animationDuration:e,animationFillMode:"both"}),$f=e=>({animationDuration:e,animationFillMode:"both"}),wf=function(e,t,n,o){const r=arguments.length>4&&void 0!==arguments[4]&&arguments[4]?"&":"";return{[`\n ${r}${e}-enter,\n ${r}${e}-appear\n `]:Object.assign(Object.assign({},xf(o)),{animationPlayState:"paused"}),[`${r}${e}-leave`]:Object.assign(Object.assign({},$f(o)),{animationPlayState:"paused"}),[`\n ${r}${e}-enter${e}-enter-active,\n ${r}${e}-appear${e}-appear-active\n `]:{animationName:t,animationPlayState:"running"},[`${r}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},Sf=new En("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),kf=new En("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),Ef=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{antCls:n}=e,o=`${n}-fade`,r=t?"&":"";return[wf(o,Sf,kf,e.motionDurationMid,t),{[`\n ${r}${o}-enter,\n ${r}${o}-appear\n `]:{opacity:0,animationTimingFunction:"linear"},[`${r}${o}-leave`]:{animationTimingFunction:"linear"}}]},Of=new En("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Af=new En("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),If=new En("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Nf=new En("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),Mf=new En("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),jf=new En("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),Pf=new En("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),Rf=new En("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),Tf=new En("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),zf=new En("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),Bf=new En("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),Hf=new En("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),Df={zoom:{inKeyframes:Of,outKeyframes:Af},"zoom-big":{inKeyframes:If,outKeyframes:Nf},"zoom-big-fast":{inKeyframes:If,outKeyframes:Nf},"zoom-left":{inKeyframes:Pf,outKeyframes:Rf},"zoom-right":{inKeyframes:Tf,outKeyframes:zf},"zoom-up":{inKeyframes:Mf,outKeyframes:jf},"zoom-down":{inKeyframes:Bf,outKeyframes:Hf}},Lf=(e,t)=>{const{antCls:n}=e,o=`${n}-${t}`,{inKeyframes:r,outKeyframes:i}=Df[t];return[wf(o,r,i,"zoom-big-fast"===t?e.motionDurationFast:e.motionDurationMid),{[`\n ${o}-enter,\n ${o}-appear\n `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${o}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]};function Ff(e){return{position:e,inset:0}}const Wf=e=>{const{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}-content`]:{pointerEvents:"none"},[`${t}-mask`]:Object.assign(Object.assign({},Ff("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},Ff("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:Ef(e)}]},_f=e=>{const{componentCls:t}=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:`${nt(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},po(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${nt(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${t}-close`]:Object.assign({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 ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:nt(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},mo(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${nt(e.borderRadiusLG)} ${nt(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:`${nt(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}-content,\n ${t}-body,\n ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},Kf=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},qf=e=>{const{componentCls:t}=e,n=yf(e),o=Object.assign({},n);delete o.xs;const r=`--${t.replace(".","")}-`,i=Object.keys(o).map(e=>({[`@media (min-width: ${nt(o[e])})`]:{width:`var(${r}${e}-width)`}}));return{[`${t}-root`]:{[t]:[].concat(se(Object.keys(n).map((e,t)=>{const o=Object.keys(n)[t-1];return o?{[`${r}${e}-width`]:`var(${r}${o}-width)`}:null})),[{width:`var(${r}xs-width)`}],se(i))}}},Vf=e=>{const t=e.padding,n=e.fontSizeHeading5,o=e.lineHeightHeading5;return Jn(e,{modalHeaderHeight:e.calc(e.calc(o).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()})},Xf=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${nt(e.paddingMD)} ${nt(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${nt(e.padding)} ${nt(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${nt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${nt(e.paddingXS)} ${nt(e.padding)}`:0,footerBorderTop:e.wireframe?`${nt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${nt(e.borderRadiusLG)} ${nt(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${nt(2*e.padding)} ${nt(2*e.padding)} ${nt(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM}),Gf=qo("Modal",e=>{const t=Vf(e);return[_f(t),Kf(t),Wf(t),Lf(t,"zoom"),qf(t)]},Xf,{unitless:{titleLineHeight:!0}});var Yf=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};let Uf;const Qf=e=>{Uf={x:e.pageX,y:e.pageY},setTimeout(()=>{Uf=null},100)};(0,Le.A)()&&window.document.documentElement&&document.documentElement.addEventListener("click",Qf,!0);const Zf=e=>{const{prefixCls:t,className:n,rootClassName:r,open:i,wrapClassName:l,centered:c,getContainer:s,focusTriggerAfterClose:u=!0,style:d,visible:p,width:f=520,footer:m,classNames:g,styles:v,children:h,loading:b,confirmLoading:y,zIndex:C,mousePosition:x,onOk:$,onCancel:w,destroyOnHidden:S,destroyOnClose:k}=e,E=Yf(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","focusTriggerAfterClose","style","visible","width","footer","classNames","styles","children","loading","confirmLoading","zIndex","mousePosition","onOk","onCancel","destroyOnHidden","destroyOnClose"]),{getPopupContainer:O,getPrefixCls:A,direction:I,modal:N}=o.useContext(xe),M=e=>{y||null===w||void 0===w||w(e)};const j=A("modal",t),P=A(),R=Mi(j),[T,z,B]=Gf(j,R),H=a()(l,{[`${j}-centered`]:null!==c&&void 0!==c?c:null===N||void 0===N?void 0:N.centered,[`${j}-wrap-rtl`]:"rtl"===I}),D=null===m||b?null:o.createElement(gf,Object.assign({},e,{onOk:e=>{null===$||void 0===$||$(e)},onCancel:M})),[L,F,W,_]=Rp(Mp(e),Mp(N),{closable:!0,closeIcon:o.createElement(ir.A,{className:`${j}-close-icon`}),closeIconRender:e=>mf(j,e)}),K=uf(`.${j}-content`),[q,V]=fa("Modal",C),[X,G]=o.useMemo(()=>f&&"object"===typeof f?[void 0,f]:[f,void 0],[f]),Y=o.useMemo(()=>{const e={};return G&&Object.keys(G).forEach(t=>{const n=G[t];void 0!==n&&(e[`--${j}-${t}-width`]="number"===typeof n?`${n}px`:n)}),e},[G]);return T(o.createElement(Ip,{form:!0,space:!0},o.createElement(ca.Provider,{value:V},o.createElement(ld,Object.assign({width:X},E,{zIndex:q,getContainer:void 0===s?O:s,prefixCls:j,rootClassName:a()(z,r,B,R),footer:D,visible:null!==i&&void 0!==i?i:p,mousePosition:null!==x&&void 0!==x?x:Uf,onClose:M,closable:L?Object.assign({disabled:W,closeIcon:F},_):L,closeIcon:F,focusTriggerAfterClose:u,transitionName:Xl(P,"zoom",e.transitionName),maskTransitionName:Xl(P,"fade",e.maskTransitionName),className:a()(z,n,null===N||void 0===N?void 0:N.className),style:Object.assign(Object.assign(Object.assign({},null===N||void 0===N?void 0:N.style),d),Y),classNames:Object.assign(Object.assign(Object.assign({},null===N||void 0===N?void 0:N.classNames),g),{wrapper:a()(H,null===g||void 0===g?void 0:g.wrapper)}),styles:Object.assign(Object.assign({},null===N||void 0===N?void 0:N.styles),v),panelRef:K,destroyOnClose:null!==S&&void 0!==S?S:k}),b?o.createElement(lf,{active:!0,title:!1,paragraph:{rows:4},className:`${j}-body-skeleton`}):h))))},Jf=e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:o,modalConfirmIconSize:r,fontSize:i,lineHeight:a,modalTitleHeight:l,fontHeight:c,confirmBodyPadding:s}=e,u=`${t}-confirm`;return{[u]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${u}-body-wrapper`]:Object.assign({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),[`&${t} ${t}-body`]:{padding:s},[`${u}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:r,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(c).sub(r).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(l).sub(r).equal()).div(2).equal()}},[`${u}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS,maxWidth:`calc(100% - ${nt(e.marginSM)})`},[`${e.iconCls} + ${u}-paragraph`]:{maxWidth:`calc(100% - ${nt(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${u}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:o},[`${u}-content`]:{color:e.colorText,fontSize:i,lineHeight:a},[`${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},\n ${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}}},em=Xo(["Modal","confirm"],e=>{const t=Vf(e);return[Jf(t)]},Xf,{order:-1e3});var tm=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};function nm(e){const{prefixCls:t,icon:n,okText:r,cancelText:i,confirmPrefixCls:l,type:c,okCancel:s,footer:u,locale:d}=e,p=tm(e,["prefixCls","icon","okText","cancelText","confirmPrefixCls","type","okCancel","footer","locale"]);let f=n;if(!n&&null!==n)switch(c){case"info":f=o.createElement(lr.A,null);break;case"success":f=o.createElement(or.A,null);break;case"error":f=o.createElement(rr.A,null);break;default:f=o.createElement(ar.A,null)}const m=null!==s&&void 0!==s?s:"confirm"===c,g=null!==e.autoFocusButton&&(e.autoFocusButton||"ok"),[v]=Yl("Modal"),h=d||v,b=r||(m?null===h||void 0===h?void 0:h.okText:null===h||void 0===h?void 0:h.justOkText),y=i||(null===h||void 0===h?void 0:h.cancelText),C=Object.assign({autoFocusButton:g,cancelTextLocale:y,okTextLocale:b,mergedOkCancel:m},p),x=o.useMemo(()=>C,se(Object.values(C))),$=o.createElement(o.Fragment,null,o.createElement(Iu,null),o.createElement(Nu,null)),w=void 0!==e.title&&null!==e.title,S=`${l}-body`;return o.createElement("div",{className:`${l}-body-wrapper`},o.createElement("div",{className:a()(S,{[`${S}-has-title`]:w})},f,o.createElement("div",{className:`${l}-paragraph`},w&&o.createElement("span",{className:`${l}-title`},e.title),o.createElement("div",{className:`${l}-content`},e.content))),void 0===u||"function"===typeof u?o.createElement(Au,{value:x},o.createElement("div",{className:`${l}-btns`},"function"===typeof u?u($,{OkBtn:Nu,CancelBtn:Iu}):$)):u,o.createElement(em,{prefixCls:t}))}const om=e=>{const{close:t,zIndex:n,maskStyle:r,direction:i,prefixCls:l,wrapClassName:c,rootPrefixCls:s,bodyStyle:u,closable:d=!1,onConfirm:p,styles:f}=e;const m=`${l}-confirm`,g=e.width||416,v=e.style||{},h=void 0===e.mask||e.mask,b=void 0!==e.maskClosable&&e.maskClosable,y=a()(m,`${m}-${e.type}`,{[`${m}-rtl`]:"rtl"===i},e.className),[,C]=Ko(),x=o.useMemo(()=>void 0!==n?n:C.zIndexPopupBase+ua,[n,C]);return o.createElement(Zf,Object.assign({},e,{className:y,wrapClassName:a()({[`${m}-centered`]:!!e.centered},c),onCancel:()=>{null===t||void 0===t||t({triggerCancel:!0}),null===p||void 0===p||p(!1)},title:"",footer:null,transitionName:Xl(s||"","zoom",e.transitionName),maskTransitionName:Xl(s||"","fade",e.maskTransitionName),mask:h,maskClosable:b,style:v,styles:Object.assign({body:u,mask:r},f),width:g,zIndex:x,closable:d}),o.createElement(nm,Object.assign({},e,{confirmPrefixCls:m})))};const rm=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:i}=e;return o.createElement(hl,{prefixCls:t,iconPrefixCls:n,direction:r,theme:i},o.createElement(om,Object.assign({},e)))},im=[];let am="";function lm(){return am}const cm=e=>{var t,n;const{prefixCls:i,getContainer:a,direction:l}=e,c=Fa(),s=(0,o.useContext)(xe),u=lm()||s.getPrefixCls(),d=i||`${u}-modal`;let p=a;return!1===p&&(p=void 0),r().createElement(rm,Object.assign({},e,{rootPrefixCls:u,prefixCls:d,iconPrefixCls:s.iconPrefixCls,theme:s.theme,direction:null!==l&&void 0!==l?l:s.direction,locale:null!==(n=null===(t=s.locale)||void 0===t?void 0:t.Modal)&&void 0!==n?n:c,getContainer:p}))};function sm(e){const t=ml();const n=document.createDocumentFragment();let o,i,a=Object.assign(Object.assign({},e),{close:s,open:!0});function l(){for(var t,n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];var a;o.some(e=>null===e||void 0===e?void 0:e.triggerCancel)&&(null===(t=e.onCancel)||void 0===t||(a=t).call.apply(a,[e,()=>{}].concat(se(o.slice(1)))));for(let e=0;e<im.length;e++){if(im[e]===s){im.splice(e,1);break}}i()}function c(e){clearTimeout(o),o=setTimeout(()=>{const o=t.getPrefixCls(void 0,lm()),a=t.getIconPrefixCls(),l=t.getTheme(),c=r().createElement(cm,Object.assign({},e)),s=Wl();i=s(r().createElement(hl,{prefixCls:o,iconPrefixCls:a,theme:l},t.holderRender?t.holderRender(c):c),n)})}function s(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];a=Object.assign(Object.assign({},a),{open:!1,afterClose:()=>{"function"===typeof e.afterClose&&e.afterClose(),l.apply(this,n)}}),a.visible&&delete a.visible,c(a)}return c(a),im.push(s),{destroy:s,update:function(e){a="function"===typeof e?e(a):Object.assign(Object.assign({},a),e),c(a)}}}function um(e){return Object.assign(Object.assign({},e),{type:"warning"})}function dm(e){return Object.assign(Object.assign({},e),{type:"info"})}function pm(e){return Object.assign(Object.assign({},e),{type:"success"})}function fm(e){return Object.assign(Object.assign({},e),{type:"error"})}function mm(e){return Object.assign(Object.assign({},e),{type:"confirm"})}var gm=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const vm=o.forwardRef((e,t)=>{var n,{afterClose:r,config:i}=e,a=gm(e,["afterClose","config"]);const[l,c]=o.useState(!0),[s,u]=o.useState(i),{direction:d,getPrefixCls:p}=o.useContext(xe),f=p("modal"),m=p(),g=function(){var e;c(!1);for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];var r;n.some(e=>null===e||void 0===e?void 0:e.triggerCancel)&&(null===(e=s.onCancel)||void 0===e||(r=e).call.apply(r,[s,()=>{}].concat(se(n.slice(1)))))};o.useImperativeHandle(t,()=>({destroy:g,update:e=>{u(t=>{const n="function"===typeof e?e(t):e;return Object.assign(Object.assign({},t),n)})}}));const v=null!==(n=s.okCancel)&&void 0!==n?n:"confirm"===s.type,[h]=Yl("Modal",Ba.Modal);return o.createElement(rm,Object.assign({prefixCls:f,rootPrefixCls:m},s,{close:g,open:l,afterClose:()=>{var e;r(),null===(e=s.afterClose)||void 0===e||e.call(s)},okText:s.okText||(v?null===h||void 0===h?void 0:h.okText:null===h||void 0===h?void 0:h.justOkText),direction:s.direction||d,cancelText:s.cancelText||(null===h||void 0===h?void 0:h.cancelText)},a))});let hm=0;const bm=o.memo(o.forwardRef((e,t)=>{const[n,r]=function(){const[e,t]=o.useState([]);return[e,o.useCallback(e=>(t(t=>[].concat(se(t),[e])),()=>{t(t=>t.filter(t=>t!==e))}),[])]}();return o.useImperativeHandle(t,()=>({patchElement:r}),[]),o.createElement(o.Fragment,null,n)}));const ym=function(){const e=o.useRef(null),[t,n]=o.useState([]);o.useEffect(()=>{if(t.length){se(t).forEach(e=>{e()}),n([])}},[t]);const r=o.useCallback(t=>function(r){var i;hm+=1;const a=o.createRef();let l;const c=new Promise(e=>{l=e});let s,u=!1;const d=o.createElement(vm,{key:`modal-${hm}`,config:t(r),ref:a,afterClose:()=>{null===s||void 0===s||s()},isSilent:()=>u,onConfirm:e=>{l(e)}});s=null===(i=e.current)||void 0===i?void 0:i.patchElement(d),s&&im.push(s);const p={destroy:()=>{function e(){var e;null===(e=a.current)||void 0===e||e.destroy()}a.current?e():n(t=>[].concat(se(t),[e]))},update:e=>{function t(){var t;null===(t=a.current)||void 0===t||t.update(e)}a.current?t():n(e=>[].concat(se(e),[t]))},then:e=>(u=!0,c.then(e))};return p},[]);return[o.useMemo(()=>({info:r(dm),success:r(pm),error:r(fm),warning:r(um),confirm:r(mm)}),[]),o.createElement(bm,{key:"modal-holder",ref:e})]},Cm=e=>{const{componentCls:t,notificationMarginEdge:n,animationMaxHeight:o}=e,r=`${t}-notice`,i=new En("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}}),a=new En("antNotificationTopFadeIn",{"0%":{top:-o,opacity:0},"100%":{top:0,opacity:1}}),l=new En("antNotificationBottomFadeIn",{"0%":{bottom:e.calc(o).mul(-1).equal(),opacity:0},"100%":{bottom:0,opacity:1}}),c=new En("antNotificationLeftFadeIn",{"0%":{transform:"translate3d(-100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}});return{[t]:{[`&${t}-top, &${t}-bottom`]:{marginInline:0,[r]:{marginInline:"auto auto"}},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:a}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:l}},[`&${t}-topRight, &${t}-bottomRight`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:i}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginRight:{value:0,_skip_check_:!0},marginLeft:{value:n,_skip_check_:!0},[r]:{marginInlineEnd:"auto",marginInlineStart:0},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:c}}}}},xm=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],$m={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},wm=e=>{const t={};for(let n=1;n<e.notificationStackLayer;n++)t[`&:nth-last-child(${n+1})`]={overflow:"hidden",[`& > ${e.componentCls}-notice`]:{opacity:0,transition:`opacity ${e.motionDurationMid}`}};return Object.assign({[`&:not(:nth-last-child(-n+${e.notificationStackLayer}))`]:{opacity:0,overflow:"hidden",color:"transparent",pointerEvents:"none"}},t)},Sm=e=>{const t={};for(let n=1;n<e.notificationStackLayer;n++)t[`&:nth-last-child(${n+1})`]={background:e.colorBgBlur,backdropFilter:"blur(10px)","-webkit-backdrop-filter":"blur(10px)"};return Object.assign({},t)},km=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-stack`]:{[`& > ${t}-notice-wrapper`]:Object.assign({transition:`transform ${e.motionDurationSlow}, backdrop-filter 0s`,willChange:"transform, opacity",position:"absolute"},wm(e))},[`${t}-stack:not(${t}-stack-expanded)`]:{[`& > ${t}-notice-wrapper`]:Object.assign({},Sm(e))},[`${t}-stack${t}-stack-expanded`]:{[`& > ${t}-notice-wrapper`]:{"&:not(:nth-last-child(-n + 1))":{opacity:1,overflow:"unset",color:"inherit",pointerEvents:"auto",[`& > ${e.componentCls}-notice`]:{opacity:1}},"&:after":{content:'""',position:"absolute",height:e.margin,width:"100%",insetInline:0,bottom:e.calc(e.margin).mul(-1).equal(),background:"transparent",pointerEvents:"auto"}}}},xm.map(t=>((e,t)=>{const{componentCls:n}=e;return{[`${n}-${t}`]:{[`&${n}-stack > ${n}-notice-wrapper`]:{[t.startsWith("top")?"top":"bottom"]:0,[$m[t]]:{value:0,_skip_check_:!0}}}}})(e,t)).reduce((e,t)=>Object.assign(Object.assign({},e),t),{}))},Em=e=>{const{iconCls:t,componentCls:n,boxShadow:o,fontSizeLG:r,notificationMarginBottom:i,borderRadiusLG:a,colorSuccess:l,colorInfo:c,colorWarning:s,colorError:u,colorTextHeading:d,notificationBg:p,notificationPadding:f,notificationMarginEdge:m,notificationProgressBg:g,notificationProgressHeight:v,fontSize:h,lineHeight:b,width:y,notificationIconSize:C,colorText:x}=e,$=`${n}-notice`;return{position:"relative",marginBottom:i,marginInlineStart:"auto",background:p,borderRadius:a,boxShadow:o,[$]:{padding:f,width:y,maxWidth:`calc(100vw - ${nt(e.calc(m).mul(2).equal())})`,overflow:"hidden",lineHeight:b,wordWrap:"break-word"},[`${$}-message`]:{color:d,fontSize:r,lineHeight:e.lineHeightLG},[`${$}-description`]:{fontSize:h,color:x,marginTop:e.marginXS},[`${$}-closable ${$}-message`]:{paddingInlineEnd:e.paddingLG},[`${$}-with-icon ${$}-message`]:{marginInlineStart:e.calc(e.marginSM).add(C).equal(),fontSize:r},[`${$}-with-icon ${$}-description`]:{marginInlineStart:e.calc(e.marginSM).add(C).equal(),fontSize:h},[`${$}-icon`]:{position:"absolute",fontSize:C,lineHeight:1,[`&-success${t}`]:{color:l},[`&-info${t}`]:{color:c},[`&-warning${t}`]:{color:s},[`&-error${t}`]:{color:u}},[`${$}-close`]:Object.assign({position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center",background:"none",border:"none","&:hover":{color:e.colorIconHover,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},mo(e)),[`${$}-progress`]:{position:"absolute",display:"block",appearance:"none",inlineSize:`calc(100% - ${nt(a)} * 2)`,left:{_skip_check_:!0,value:a},right:{_skip_check_:!0,value:a},bottom:0,blockSize:v,border:0,"&, &::-webkit-progress-bar":{borderRadius:a,backgroundColor:"rgba(0, 0, 0, 0.04)"},"&::-moz-progress-bar":{background:g},"&::-webkit-progress-value":{borderRadius:a,background:g}},[`${$}-actions`]:{float:"right",marginTop:e.marginSM}}},Om=e=>{const{componentCls:t,notificationMarginBottom:n,notificationMarginEdge:o,motionDurationMid:r,motionEaseInOut:i}=e,a=`${t}-notice`,l=new En("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:n},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[t]:Object.assign(Object.assign({},po(e)),{position:"fixed",zIndex:e.zIndexPopup,marginRight:{value:o,_skip_check_:!0},[`${t}-hook-holder`]:{position:"relative"},[`${t}-fade-appear-prepare`]:{opacity:"0 !important"},[`${t}-fade-enter, ${t}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:i,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${t}-fade-leave`]:{animationTimingFunction:i,animationFillMode:"both",animationDuration:r,animationPlayState:"paused"},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationPlayState:"running"},[`${t}-fade-leave${t}-fade-leave-active`]:{animationName:l,animationPlayState:"running"},"&-rtl":{direction:"rtl",[`${a}-actions`]:{float:"left"}}})},{[t]:{[`${a}-wrapper`]:Object.assign({},Em(e))}}]},Am=e=>({zIndexPopup:e.zIndexPopupBase+ua+50,width:384}),Im=e=>{const t=e.paddingMD,n=e.paddingLG;return Jn(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:`${nt(e.paddingMD)} ${nt(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationStackLayer:3,notificationProgressHeight:2,notificationProgressBg:`linear-gradient(90deg, ${e.colorPrimaryBorderHover}, ${e.colorPrimary})`})},Nm=qo("Notification",e=>{const t=Im(e);return[Om(t),Cm(t),km(t)]},Am),Mm=Xo(["Notification","PurePanel"],e=>{const t=`${e.componentCls}-notice`,n=Im(e);return{[`${t}-pure-panel`]:Object.assign(Object.assign({},Em(n)),{width:n.width,maxWidth:`calc(100vw - ${nt(e.calc(n.notificationMarginEdge).mul(2).equal())})`,margin:0})}},Am);var jm=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};o.createElement(lr.A,null),o.createElement(or.A,null),o.createElement(rr.A,null),o.createElement(ar.A,null),o.createElement(la.A,null);function Pm(e,t){return null===t||!1===t?null:t||o.createElement(ir.A,{className:`${e}-close-icon`})}const Rm={success:or.A,info:lr.A,error:rr.A,warning:ar.A},Tm=e=>{const{prefixCls:t,icon:n,type:r,message:i,description:l,actions:c,role:s="alert"}=e;let u=null;return n?u=o.createElement("span",{className:`${t}-icon`},n):r&&(u=o.createElement(Rm[r]||null,{className:a()(`${t}-icon`,`${t}-icon-${r}`)})),o.createElement("div",{className:a()({[`${t}-with-icon`]:u}),role:s},u,o.createElement("div",{className:`${t}-message`},i),l&&o.createElement("div",{className:`${t}-description`},l),c&&o.createElement("div",{className:`${t}-actions`},c))},zm=e=>{const{prefixCls:t,className:n,icon:r,type:i,message:l,description:c,btn:s,actions:u,closable:d=!0,closeIcon:p,className:f}=e,m=jm(e,["prefixCls","className","icon","type","message","description","btn","actions","closable","closeIcon","className"]),{getPrefixCls:g}=o.useContext(xe),v=null!==u&&void 0!==u?u:s;const h=t||g("notification"),b=`${h}-notice`,y=Mi(h),[C,x,$]=Nm(h,y);return C(o.createElement("div",{className:a()(`${b}-pure-panel`,x,n,$,y)},o.createElement(Mm,{prefixCls:h}),o.createElement(Yi,Object.assign({},m,{prefixCls:h,eventKey:"pure",duration:null,closable:d,className:a()({notificationClassName:f}),closeIcon:Pm(h,p),content:o.createElement(Tm,{prefixCls:b,icon:r,type:i,message:l,description:c,actions:v})}))))};var Bm=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const Hm=e=>{let{children:t,prefixCls:n}=e;const o=Mi(n),[i,l,c]=Nm(n,o);return i(r().createElement(Qi,{classNames:{list:a()(l,c,o)}},t))},Dm=(e,t)=>{let{prefixCls:n,key:o}=t;return r().createElement(Hm,{prefixCls:n,key:o},e)},Lm=r().forwardRef((e,t)=>{const{top:n,bottom:i,prefixCls:l,getContainer:c,maxCount:s,rtl:u,onAllRemoved:d,stack:p,duration:f,pauseOnHover:m=!0,showProgress:g}=e,{getPrefixCls:v,getPopupContainer:h,notification:b,direction:y}=(0,o.useContext)(xe),[,C]=Ko(),x=l||v("notification"),[$,w]=aa({prefixCls:x,style:e=>function(e,t,n){let o;switch(e){case"top":o={left:"50%",transform:"translateX(-50%)",right:"auto",top:t,bottom:"auto"};break;case"topLeft":o={left:0,top:t,bottom:"auto"};break;case"topRight":o={right:0,top:t,bottom:"auto"};break;case"bottom":o={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:n};break;case"bottomLeft":o={left:0,top:"auto",bottom:n};break;default:o={right:0,top:"auto",bottom:n}}return o}(e,null!==n&&void 0!==n?n:24,null!==i&&void 0!==i?i:24),className:()=>a()({[`${x}-rtl`]:null!==u&&void 0!==u?u:"rtl"===y}),motion:()=>function(e){return{motionName:`${e}-fade`}}(x),closable:!0,closeIcon:Pm(x),duration:null!==f&&void 0!==f?f:4.5,getContainer:()=>(null===c||void 0===c?void 0:c())||(null===h||void 0===h?void 0:h())||document.body,maxCount:s,pauseOnHover:m,showProgress:g,onAllRemoved:d,renderNotifications:Dm,stack:!1!==p&&{threshold:"object"===typeof p?null===p||void 0===p?void 0:p.threshold:void 0,offset:8,gap:C.margin}});return r().useImperativeHandle(t,()=>Object.assign(Object.assign({},$),{prefixCls:x,notification:b})),w});function Fm(e){const t=r().useRef(null),n=(qi("Notification"),r().useMemo(()=>{const n=n=>{var o;if(!t.current)return;const{open:i,prefixCls:l,notification:c}=t.current,s=`${l}-notice`,{message:u,description:d,icon:p,type:f,btn:m,actions:g,className:v,style:h,role:b="alert",closeIcon:y,closable:C}=n,x=Bm(n,["message","description","icon","type","btn","actions","className","style","role","closeIcon","closable"]);const $=null!==g&&void 0!==g?g:m,w=Pm(s,function(e,t,n){return"undefined"!==typeof e?e:"undefined"!==typeof(null===t||void 0===t?void 0:t.closeIcon)?t.closeIcon:null===n||void 0===n?void 0:n.closeIcon}(y,e,c));return i(Object.assign(Object.assign({placement:null!==(o=null===e||void 0===e?void 0:e.placement)&&void 0!==o?o:"topRight"},x),{content:r().createElement(Tm,{prefixCls:s,icon:p,type:f,message:u,description:d,actions:$,role:b}),className:a()(f&&`${s}-${f}`,v,null===c||void 0===c?void 0:c.className),style:Object.assign(Object.assign({},null===c||void 0===c?void 0:c.style),h),closeIcon:w,closable:null!==C&&void 0!==C?C:!!w}))},o={open:n,destroy:e=>{var n,o;void 0!==e?null===(n=t.current)||void 0===n||n.close(e):null===(o=t.current)||void 0===o||o.destroy()}};return["success","info","warning","error"].forEach(e=>{o[e]=t=>n(Object.assign(Object.assign({},t),{type:e}))}),o},[]));return[n,r().createElement(Lm,Object.assign({key:"notification-holder"},e,{ref:t}))]}function Wm(e){return Fm(e)}const _m=r().createContext({}),Km=r().createContext({message:{},notification:{},modal:{}}),qm=qo("App",e=>{const{componentCls:t,colorText:n,fontSize:o,lineHeight:r,fontFamily:i}=e;return{[t]:{color:n,fontSize:o,lineHeight:r,fontFamily:i,[`&${t}-rtl`]:{direction:"rtl"}}}},()=>({}));const Vm=e=>{const{prefixCls:t,children:n,className:i,rootClassName:l,message:c,notification:s,style:u,component:d="div"}=e,{direction:p,getPrefixCls:f}=(0,o.useContext)(xe),m=f("app",t),[g,v,h]=qm(m),b=a()(v,m,i,l,h,{[`${m}-rtl`]:"rtl"===p}),y=(0,o.useContext)(_m),C=r().useMemo(()=>({message:Object.assign(Object.assign({},y.message),c),notification:Object.assign(Object.assign({},y.notification),s)}),[c,s,y.message,y.notification]),[x,$]=Aa(C.message),[w,S]=Wm(C.notification),[k,E]=ym(),O=r().useMemo(()=>({message:x,notification:w,modal:k}),[x,w,k]);qi("App")(!(h&&!1===d),"usage","When using cssVar, ensure `component` is assigned a valid React component string.");const A=!1===d?r().Fragment:d,I={className:b,style:u};return g(r().createElement(Km.Provider,{value:O},r().createElement(_m.Provider,{value:C},r().createElement(A,Object.assign({},!1===d?void 0:I),E,$,S,n))))},Xm=()=>r().useContext(Km),Gm=Vm;Gm.useApp=Xm;const Ym=Gm;function Um(e){return t=>o.createElement(hl,{theme:{token:{motion:!1,zIndexPopupBase:0}}},o.createElement(e,Object.assign({},t)))}const Qm=(e,t,n,r,i)=>Um(a=>{const{prefixCls:l,style:c}=a,s=o.useRef(null),[u,d]=o.useState(0),[p,f]=o.useState(0),[m,g]=Ln(!1,{value:a.open}),{getPrefixCls:v}=o.useContext(xe),h=v(r||"select",l);o.useEffect(()=>{if(g(!0),"undefined"!==typeof ResizeObserver){const e=new ResizeObserver(e=>{const t=e[0].target;d(t.offsetHeight+8),f(t.offsetWidth)}),t=setInterval(()=>{var n;const o=i?`.${i(h)}`:`.${h}-dropdown`,r=null===(n=s.current)||void 0===n?void 0:n.querySelector(o);r&&(clearInterval(t),e.observe(r))},10);return()=>{clearInterval(t),e.disconnect()}}},[]);let b=Object.assign(Object.assign({},a),{style:Object.assign(Object.assign({},c),{margin:0}),open:m,visible:m,getPopupContainer:()=>s.current});n&&(b=n(b)),t&&Object.assign(b,{[t]:{overflow:{adjustX:!1,adjustY:!1}}});const y={paddingBottom:u,position:"relative",minWidth:p};return o.createElement("div",{ref:s,style:y},o.createElement(e,Object.assign({},b)))}),Zm=function(){if("undefined"===typeof navigator||"undefined"===typeof window)return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null===e||void 0===e?void 0:e.substr(0,4))};const Jm=function(e){var t=e.className,n=e.customizeIcon,r=e.customizeIconProps,i=e.children,l=e.onMouseDown,c=e.onClick,s="function"===typeof n?n(r):n;return o.createElement("span",{className:t,onMouseDown:function(e){e.preventDefault(),null===l||void 0===l||l(e)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:c,"aria-hidden":!0},void 0!==s?s:o.createElement("span",{className:a()(t.split(/\s+/).map(function(e){return"".concat(e,"-icon")}))},i))};var eg=o.createContext(null);function tg(){return o.useContext(eg)}function ng(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,t=o.useRef(null),n=o.useRef(null);return o.useEffect(function(){return function(){window.clearTimeout(n.current)}},[]),[function(){return t.current},function(o){(o||null===t.current)&&(t.current=o),window.clearTimeout(n.current),n.current=window.setTimeout(function(){t.current=null},e)}]}var og=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],rg=void 0;var ig=o.forwardRef(function(e,t){var n=e.prefixCls,r=e.invalidate,i=e.item,c=e.renderItem,s=e.responsive,u=e.responsiveDisabled,p=e.registerSize,f=e.itemKey,m=e.className,g=e.style,v=e.children,h=e.display,b=e.order,y=e.component,C=void 0===y?"div":y,x=(0,cr.A)(e,og),$=s&&!h;function w(e){p(f,e)}o.useEffect(function(){return function(){w(null)}},[]);var S,k=c&&i!==rg?c(i,{index:b}):v;r||(S={opacity:$?0:1,height:$?0:rg,overflowY:$?"hidden":rg,order:s?b:rg,pointerEvents:$?"none":rg,position:$?"absolute":rg});var E={};$&&(E["aria-hidden"]=!0);var O=o.createElement(C,(0,l.A)({className:a()(!r&&n,m),style:(0,d.A)((0,d.A)({},S),g)},E,x,{ref:t}),k);return s&&(O=o.createElement(ie,{onResize:function(e){w(e.offsetWidth)},disabled:u},O)),O});ig.displayName="Item";const ag=ig;function lg(){var e=o.useRef(null);return function(t){e.current||(e.current=[],function(e){if("undefined"===typeof MessageChannel)ve(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}(function(){(0,f.unstable_batchedUpdates)(function(){e.current.forEach(function(e){e()}),e.current=null})})),e.current.push(t)}}function cg(e,t){var n=o.useState(t),r=(0,ke.A)(n,2),i=r[0],a=r[1];return[i,Bn(function(t){e(function(){a(t)})})]}var sg=r().createContext(null),ug=["component"],dg=["className"],pg=["className"],fg=o.forwardRef(function(e,t){var n=o.useContext(sg);if(!n){var r=e.component,i=void 0===r?"div":r,c=(0,cr.A)(e,ug);return o.createElement(i,(0,l.A)({},c,{ref:t}))}var s=n.className,u=(0,cr.A)(n,dg),d=e.className,p=(0,cr.A)(e,pg);return o.createElement(sg.Provider,{value:null},o.createElement(ag,(0,l.A)({ref:t,className:a()(s,d)},u,p)))});fg.displayName="RawItem";const mg=fg;var gg=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],vg="responsive",hg="invalidate";function bg(e){return"+ ".concat(e.length," ...")}var yg=o.forwardRef(function(e,t){var n=e.prefixCls,r=void 0===n?"rc-overflow":n,i=e.data,c=void 0===i?[]:i,s=e.renderItem,u=e.renderRawItem,p=e.itemKey,f=e.itemWidth,m=void 0===f?10:f,g=e.ssr,v=e.style,h=e.className,b=e.maxCount,y=e.renderRest,C=e.renderRawRest,x=e.suffix,$=e.component,w=void 0===$?"div":$,S=e.itemComponent,k=e.onVisibleChange,E=(0,cr.A)(e,gg),O="full"===g,A=lg(),I=cg(A,null),N=(0,ke.A)(I,2),M=N[0],j=N[1],P=M||0,R=cg(A,new Map),T=(0,ke.A)(R,2),z=T[0],B=T[1],H=cg(A,0),D=(0,ke.A)(H,2),L=D[0],F=D[1],W=cg(A,0),_=(0,ke.A)(W,2),K=_[0],q=_[1],V=cg(A,0),X=(0,ke.A)(V,2),G=X[0],Y=X[1],U=(0,o.useState)(null),Q=(0,ke.A)(U,2),Z=Q[0],J=Q[1],ee=(0,o.useState)(null),te=(0,ke.A)(ee,2),ne=te[0],oe=te[1],re=o.useMemo(function(){return null===ne&&O?Number.MAX_SAFE_INTEGER:ne||0},[ne,M]),ae=(0,o.useState)(!1),le=(0,ke.A)(ae,2),ce=le[0],se=le[1],ue="".concat(r,"-item"),de=Math.max(L,K),pe=b===vg,fe=c.length&&pe,me=b===hg,ge=fe||"number"===typeof b&&c.length>b,ve=(0,o.useMemo)(function(){var e=c;return fe?e=null===M&&O?c:c.slice(0,Math.min(c.length,P/m)):"number"===typeof b&&(e=c.slice(0,b)),e},[c,m,M,b,fe]),he=(0,o.useMemo)(function(){return fe?c.slice(re+1):c.slice(ve.length)},[c,ve,fe,re]),be=(0,o.useCallback)(function(e,t){var n;return"function"===typeof p?p(e):null!==(n=p&&(null===e||void 0===e?void 0:e[p]))&&void 0!==n?n:t},[p]),ye=(0,o.useCallback)(s||function(e){return e},[s]);function Ce(e,t,n){(ne!==e||void 0!==t&&t!==Z)&&(oe(e),n||(se(e<c.length-1),null===k||void 0===k||k(e)),void 0!==t&&J(t))}function xe(e,t){B(function(n){var o=new Map(n);return null===t?o.delete(e):o.set(e,t),o})}function $e(e){return z.get(be(ve[e],e))}ut(function(){if(P&&"number"===typeof de&&ve){var e=G,t=ve.length,n=t-1;if(!t)return void Ce(0,null);for(var o=0;o<t;o+=1){var r=$e(o);if(O&&(r=r||0),void 0===r){Ce(o-1,void 0,!0);break}if(e+=r,0===n&&e<=P||o===n-1&&e+$e(n)<=P){Ce(n,null);break}if(e+de>P){Ce(o-1,e-r-G+K);break}}x&&$e(0)+G>P&&J(null)}},[P,z,K,G,be,ve]);var we=ce&&!!he.length,Se={};null!==Z&&fe&&(Se={position:"absolute",left:Z,top:0});var Ee={prefixCls:ue,responsive:fe,component:S,invalidate:me},Oe=u?function(e,t){var n=be(e,t);return o.createElement(sg.Provider,{key:n,value:(0,d.A)((0,d.A)({},Ee),{},{order:t,item:e,itemKey:n,registerSize:xe,display:t<=re})},u(e,t))}:function(e,t){var n=be(e,t);return o.createElement(ag,(0,l.A)({},Ee,{order:t,key:n,item:e,renderItem:ye,itemKey:n,registerSize:xe,display:t<=re}))},Ae={order:we?re:Number.MAX_SAFE_INTEGER,className:"".concat(ue,"-rest"),registerSize:function(e,t){q(t),F(K)},display:we},Ie=y||bg,Ne=C?o.createElement(sg.Provider,{value:(0,d.A)((0,d.A)({},Ee),Ae)},C(he)):o.createElement(ag,(0,l.A)({},Ee,Ae),"function"===typeof Ie?Ie(he):Ie),Me=o.createElement(w,(0,l.A)({className:a()(!me&&r,h),style:v,ref:t},E),ve.map(Oe),ge?Ne:null,x&&o.createElement(ag,(0,l.A)({},Ee,{responsive:pe,responsiveDisabled:!fe,order:re,className:"".concat(ue,"-suffix"),registerSize:function(e,t){Y(t)},display:!0,style:Se}),x));return pe?o.createElement(ie,{onResize:function(e,t){j(t.clientWidth)},disabled:!fe},Me):Me});yg.displayName="Overflow",yg.Item=mg,yg.RESPONSIVE=vg,yg.INVALIDATE=hg;const Cg=yg;const xg=function(e,t,n){var o=(0,d.A)((0,d.A)({},e),n?t:{});return Object.keys(t).forEach(function(n){var r=t[n];"function"===typeof r&&(o[n]=function(){for(var t,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r.apply(void 0,i),null===(t=e[n])||void 0===t?void 0:t.call.apply(t,[e].concat(i))})}),o};var $g=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"];const wg=o.forwardRef(function(e,t){var n=e.prefixCls,r=e.id,i=e.inputElement,l=e.autoFocus,c=e.autoComplete,s=e.editable,p=e.activeDescendantId,f=e.value,m=e.open,g=e.attrs,v=(0,cr.A)(e,$g),h=i||o.createElement("input",null),y=h,C=y.ref,x=y.props;return(0,u.$e)(!("maxLength"in h.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),h=o.cloneElement(h,(0,d.A)((0,d.A)((0,d.A)({type:"search"},xg(v,x,!0)),{},{id:r,ref:(0,b.K4)(t,C),autoComplete:c||"off",autoFocus:l,className:a()("".concat(n,"-selection-search-input"),null===x||void 0===x?void 0:x.className),role:"combobox","aria-expanded":m||!1,"aria-haspopup":"listbox","aria-owns":"".concat(r,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(r,"_list"),"aria-activedescendant":m?p:void 0},g),{},{value:s?f:"",readOnly:!s,unselectable:s?null:"on",style:(0,d.A)((0,d.A)({},x.style),{},{opacity:s?null:0})}))});function Sg(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}var kg="undefined"!==typeof window&&window.document&&window.document.documentElement;function Eg(e){return["string","number"].includes((0,p.A)(e))}function Og(e){var t=void 0;return e&&(Eg(e.title)?t=e.title.toString():Eg(e.label)&&(t=e.label.toString())),t}function Ag(e){var t;return null!==(t=e.key)&&void 0!==t?t:e.value}var Ig=function(e){e.preventDefault(),e.stopPropagation()};const Ng=function(e){var t,n,r=e.id,i=e.prefixCls,l=e.values,c=e.open,s=e.searchValue,u=e.autoClearSearchValue,d=e.inputRef,p=e.placeholder,f=e.disabled,m=e.mode,g=e.showSearch,v=e.autoFocus,h=e.autoComplete,b=e.activeDescendantId,y=e.tabIndex,C=e.removeIcon,x=e.maxTagCount,$=e.maxTagTextLength,w=e.maxTagPlaceholder,S=void 0===w?function(e){return"+ ".concat(e.length," ...")}:w,k=e.tagRender,E=e.onToggleOpen,O=e.onRemove,A=e.onInputChange,I=e.onInputPaste,N=e.onInputKeyDown,M=e.onInputMouseDown,j=e.onInputCompositionStart,P=e.onInputCompositionEnd,R=e.onInputBlur,T=o.useRef(null),z=(0,o.useState)(0),B=(0,ke.A)(z,2),H=B[0],D=B[1],L=(0,o.useState)(!1),F=(0,ke.A)(L,2),W=F[0],_=F[1],K="".concat(i,"-selection"),q=c||"multiple"===m&&!1===u||"tags"===m?s:"",V="tags"===m||"multiple"===m&&!1===u||g&&(c||W);t=function(){D(T.current.scrollWidth)},n=[q],kg?o.useLayoutEffect(t,n):o.useEffect(t,n);var X=function(e,t,n,r,i){return o.createElement("span",{title:Og(e),className:a()("".concat(K,"-item"),(0,Ee.A)({},"".concat(K,"-item-disabled"),n))},o.createElement("span",{className:"".concat(K,"-item-content")},t),r&&o.createElement(Jm,{className:"".concat(K,"-item-remove"),onMouseDown:Ig,onClick:i,customizeIcon:C},"\xd7"))},G=function(e,t,n,r,i,a){return o.createElement("span",{onMouseDown:function(e){Ig(e),E(!c)}},k({label:t,value:e,disabled:n,closable:r,onClose:i,isMaxTag:!!a}))},Y=o.createElement("div",{className:"".concat(K,"-search"),style:{width:H},onFocus:function(){_(!0)},onBlur:function(){_(!1)}},o.createElement(wg,{ref:d,open:c,prefixCls:i,id:r,inputElement:null,disabled:f,autoFocus:v,autoComplete:h,editable:V,activeDescendantId:b,value:q,onKeyDown:N,onMouseDown:M,onChange:A,onPaste:I,onCompositionStart:j,onCompositionEnd:P,onBlur:R,tabIndex:y,attrs:ni(e,!0)}),o.createElement("span",{ref:T,className:"".concat(K,"-search-mirror"),"aria-hidden":!0},q,"\xa0")),U=o.createElement(Cg,{prefixCls:"".concat(K,"-overflow"),data:l,renderItem:function(e){var t=e.disabled,n=e.label,o=e.value,r=!f&&!t,i=n;if("number"===typeof $&&("string"===typeof n||"number"===typeof n)){var a=String(i);a.length>$&&(i="".concat(a.slice(0,$),"..."))}var l=function(t){t&&t.stopPropagation(),O(e)};return"function"===typeof k?G(o,i,t,r,l):X(e,i,t,r,l)},renderRest:function(e){if(!l.length)return null;var t="function"===typeof S?S(e):S;return"function"===typeof k?G(void 0,t,!1,!1,void 0,!0):X({title:t},t,!1)},suffix:Y,itemKey:Ag,maxCount:x});return o.createElement("span",{className:"".concat(K,"-wrap")},U,!l.length&&!q&&o.createElement("span",{className:"".concat(K,"-placeholder")},p))};const Mg=function(e){var t=e.inputElement,n=e.prefixCls,r=e.id,i=e.inputRef,a=e.disabled,l=e.autoFocus,c=e.autoComplete,s=e.activeDescendantId,u=e.mode,d=e.open,p=e.values,f=e.placeholder,m=e.tabIndex,g=e.showSearch,v=e.searchValue,h=e.activeValue,b=e.maxLength,y=e.onInputKeyDown,C=e.onInputMouseDown,x=e.onInputChange,$=e.onInputPaste,w=e.onInputCompositionStart,S=e.onInputCompositionEnd,k=e.onInputBlur,E=e.title,O=o.useState(!1),A=(0,ke.A)(O,2),I=A[0],N=A[1],M="combobox"===u,j=M||g,P=p[0],R=v||"";M&&h&&!I&&(R=h),o.useEffect(function(){M&&N(!1)},[M,h]);var T=!("combobox"!==u&&!d&&!g)&&!!R,z=void 0===E?Og(P):E,B=o.useMemo(function(){return P?null:o.createElement("span",{className:"".concat(n,"-selection-placeholder"),style:T?{visibility:"hidden"}:void 0},f)},[P,T,f,n]);return o.createElement("span",{className:"".concat(n,"-selection-wrap")},o.createElement("span",{className:"".concat(n,"-selection-search")},o.createElement(wg,{ref:i,prefixCls:n,id:r,open:d,inputElement:t,disabled:a,autoFocus:l,autoComplete:c,editable:j,activeDescendantId:s,value:R,onKeyDown:y,onMouseDown:C,onChange:function(e){N(!0),x(e)},onPaste:$,onCompositionStart:w,onCompositionEnd:S,onBlur:k,tabIndex:m,attrs:ni(e,!0),maxLength:M?b:void 0})),!M&&P?o.createElement("span",{className:"".concat(n,"-selection-item"),title:z,style:T?{visibility:"hidden"}:void 0},P.label):null,B)};var jg=o.forwardRef(function(e,t){var n=(0,o.useRef)(null),r=(0,o.useRef)(!1),i=e.prefixCls,a=e.open,c=e.mode,s=e.showSearch,u=e.tokenWithEnter,d=e.disabled,p=e.prefix,f=e.autoClearSearchValue,m=e.onSearch,g=e.onSearchSubmit,v=e.onToggleOpen,h=e.onInputKeyDown,b=e.onInputBlur,y=e.domRef;o.useImperativeHandle(t,function(){return{focus:function(e){n.current.focus(e)},blur:function(){n.current.blur()}}});var C=ng(0),x=(0,ke.A)(C,2),$=x[0],w=x[1],S=(0,o.useRef)(null),k=function(e){!1!==m(e,!0,r.current)&&v(!0)},E={inputRef:n,onInputKeyDown:function(e){var t,o=e.which,i=n.current instanceof HTMLTextAreaElement;(i||!a||o!==Xi.UP&&o!==Xi.DOWN||e.preventDefault(),h&&h(e),o!==Xi.ENTER||"tags"!==c||r.current||a||null===g||void 0===g||g(e.target.value),i&&!a&&~[Xi.UP,Xi.DOWN,Xi.LEFT,Xi.RIGHT].indexOf(o))||(t=o)&&![Xi.ESC,Xi.SHIFT,Xi.BACKSPACE,Xi.TAB,Xi.WIN_KEY,Xi.ALT,Xi.META,Xi.WIN_KEY_RIGHT,Xi.CTRL,Xi.SEMICOLON,Xi.EQUALS,Xi.CAPS_LOCK,Xi.CONTEXT_MENU,Xi.F1,Xi.F2,Xi.F3,Xi.F4,Xi.F5,Xi.F6,Xi.F7,Xi.F8,Xi.F9,Xi.F10,Xi.F11,Xi.F12].includes(t)&&v(!0)},onInputMouseDown:function(){w(!0)},onInputChange:function(e){var t=e.target.value;if(u&&S.current&&/[\r\n]/.test(S.current)){var n=S.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");t=t.replace(n,S.current)}S.current=null,k(t)},onInputPaste:function(e){var t=e.clipboardData,n=null===t||void 0===t?void 0:t.getData("text");S.current=n||""},onInputCompositionStart:function(){r.current=!0},onInputCompositionEnd:function(e){r.current=!1,"combobox"!==c&&k(e.target.value)},onInputBlur:b},O="multiple"===c||"tags"===c?o.createElement(Ng,(0,l.A)({},e,E)):o.createElement(Mg,(0,l.A)({},e,E));return o.createElement("div",{ref:y,className:"".concat(i,"-selector"),onClick:function(e){e.target!==n.current&&(void 0!==document.body.style.msTouchAction?setTimeout(function(){n.current.focus()}):n.current.focus())},onMouseDown:function(e){var t=$();e.target===n.current||t||"combobox"===c&&d||e.preventDefault(),("combobox"===c||s&&t)&&a||(a&&!1!==f&&m("",!0,!1),v())}},p&&o.createElement("div",{className:"".concat(i,"-prefix")},p),O)});const Pg=jg;var Rg=n(49134);function Tg(e){var t=e.prefixCls,n=e.align,r=e.arrow,i=e.arrowPos,l=r||{},c=l.className,s=l.content,u=i.x,d=void 0===u?0:u,p=i.y,f=void 0===p?0:p,m=o.useRef();if(!n||!n.points)return null;var g={position:"absolute"};if(!1!==n.autoArrow){var v=n.points[0],h=n.points[1],b=v[0],y=v[1],C=h[0],x=h[1];b!==C&&["t","b"].includes(b)?"t"===b?g.top=0:g.bottom=0:g.top=f,y!==x&&["l","r"].includes(y)?"l"===y?g.left=0:g.right=0:g.left=d}return o.createElement("div",{ref:m,className:a()("".concat(t,"-arrow"),c),style:g},s)}function zg(e){var t=e.prefixCls,n=e.open,r=e.zIndex,i=e.mask,c=e.motion;return i?o.createElement(Jr,(0,l.A)({},c,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(e){var n=e.className;return o.createElement("div",{style:{zIndex:r},className:a()("".concat(t,"-mask"),n)})}):null}var Bg=o.memo(function(e){return e.children},function(e,t){return t.cache});const Hg=Bg;var Dg=o.forwardRef(function(e,t){var n=e.popup,r=e.className,i=e.prefixCls,c=e.style,s=e.target,u=e.onVisibleChanged,p=e.open,f=e.keepDom,m=e.fresh,g=e.onClick,v=e.mask,h=e.arrow,y=e.arrowPos,C=e.align,x=e.motion,$=e.maskMotion,w=e.forceRender,S=e.getPopupContainer,k=e.autoDestroy,E=e.portal,O=e.zIndex,A=e.onMouseEnter,I=e.onMouseLeave,N=e.onPointerEnter,M=e.onPointerDownCapture,j=e.ready,P=e.offsetX,R=e.offsetY,T=e.offsetR,z=e.offsetB,B=e.onAlign,H=e.onPrepare,D=e.stretch,L=e.targetWidth,F=e.targetHeight,W="function"===typeof n?n():n,_=p||f,K=(null===S||void 0===S?void 0:S.length)>0,q=o.useState(!S||!K),V=(0,ke.A)(q,2),X=V[0],G=V[1];if(ut(function(){!X&&K&&s&&G(!0)},[X,K,s]),!X)return null;var Y="auto",U={left:"-1000vw",top:"-1000vh",right:Y,bottom:Y};if(j||!p){var Q,Z=C.points,J=C.dynamicInset||(null===(Q=C._experimental)||void 0===Q?void 0:Q.dynamicInset),ee=J&&"r"===Z[0][1],te=J&&"b"===Z[0][0];ee?(U.right=T,U.left=Y):(U.left=P,U.right=Y),te?(U.bottom=z,U.top=Y):(U.top=R,U.bottom=Y)}var ne={};return D&&(D.includes("height")&&F?ne.height=F:D.includes("minHeight")&&F&&(ne.minHeight=F),D.includes("width")&&L?ne.width=L:D.includes("minWidth")&&L&&(ne.minWidth=L)),p||(ne.pointerEvents="none"),o.createElement(E,{open:w||_,getContainer:S&&function(){return S(s)},autoDestroy:k},o.createElement(zg,{prefixCls:i,open:p,zIndex:O,mask:v,motion:$}),o.createElement(ie,{onResize:B,disabled:!p},function(e){return o.createElement(Jr,(0,l.A)({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:w,leavedClassName:"".concat(i,"-hidden")},x,{onAppearPrepare:H,onEnterPrepare:H,visible:p,onVisibleChanged:function(e){var t;null===x||void 0===x||null===(t=x.onVisibleChanged)||void 0===t||t.call(x,e),u(e)}}),function(n,l){var s=n.className,u=n.style,f=a()(i,s,r);return o.createElement("div",{ref:(0,b.K4)(e,t,l),className:f,style:(0,d.A)((0,d.A)((0,d.A)((0,d.A)({"--arrow-x":"".concat(y.x||0,"px"),"--arrow-y":"".concat(y.y||0,"px")},U),ne),u),{},{boxSizing:"border-box",zIndex:O},c),onMouseEnter:A,onMouseLeave:I,onPointerEnter:N,onClick:g,onPointerDownCapture:M},h&&o.createElement(Tg,{prefixCls:i,arrow:h,arrowPos:y,align:C}),o.createElement(Hg,{cache:!p&&!m},W))})}))});const Lg=Dg;var Fg=o.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,i=(0,b.f3)(n),a=o.useCallback(function(e){(0,b.Xf)(t,r?r(e):e)},[r]),l=(0,b.xK)(a,(0,b.A9)(n));return i?o.cloneElement(n,{ref:l}):n});const Wg=Fg;const _g=o.createContext(null);function Kg(e){return e?Array.isArray(e)?e:[e]:[]}function qg(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return(arguments.length>2?arguments[2]:void 0)?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function Vg(e,t,n,o){return t||(n?{motionName:"".concat(e,"-").concat(n)}:o?{motionName:o}:null)}function Xg(e){return e.ownerDocument.defaultView}function Gg(e){for(var t=[],n=null===e||void 0===e?void 0:e.parentElement,o=["hidden","scroll","clip","auto"];n;){var r=Xg(n).getComputedStyle(n);[r.overflowX,r.overflowY,r.overflow].some(function(e){return o.includes(e)})&&t.push(n),n=n.parentElement}return t}function Yg(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number.isNaN(e)?t:e}function Ug(e){return Yg(parseFloat(e),0)}function Qg(e,t){var n=(0,d.A)({},e);return(t||[]).forEach(function(e){if(!(e instanceof HTMLBodyElement||e instanceof HTMLHtmlElement)){var t=Xg(e).getComputedStyle(e),o=t.overflow,r=t.overflowClipMargin,i=t.borderTopWidth,a=t.borderBottomWidth,l=t.borderLeftWidth,c=t.borderRightWidth,s=e.getBoundingClientRect(),u=e.offsetHeight,d=e.clientHeight,p=e.offsetWidth,f=e.clientWidth,m=Ug(i),g=Ug(a),v=Ug(l),h=Ug(c),b=Yg(Math.round(s.width/p*1e3)/1e3),y=Yg(Math.round(s.height/u*1e3)/1e3),C=(p-f-v-h)*b,x=(u-d-m-g)*y,$=m*y,w=g*y,S=v*b,k=h*b,E=0,O=0;if("clip"===o){var A=Ug(r);E=A*b,O=A*y}var I=s.x+S-E,N=s.y+$-O,M=I+s.width+2*E-S-k-C,j=N+s.height+2*O-$-w-x;n.left=Math.max(n.left,I),n.top=Math.max(n.top,N),n.right=Math.min(n.right,M),n.bottom=Math.min(n.bottom,j)}}),n}function Zg(e){var t="".concat(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),n=t.match(/^(.*)\%$/);return n?e*(parseFloat(n[1])/100):parseFloat(t)}function Jg(e,t){var n=t||[],o=(0,ke.A)(n,2),r=o[0],i=o[1];return[Zg(e.width,r),Zg(e.height,i)]}function ev(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[e[0],e[1]]}function tv(e,t){var n,o=t[0],r=t[1];return n="t"===o?e.y:"b"===o?e.y+e.height:e.y+e.height/2,{x:"l"===r?e.x:"r"===r?e.x+e.width:e.x+e.width/2,y:n}}function nv(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(e,o){return o===t?n[e]||"c":e}).join("")}var ov=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];const rv=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:_u,t=o.forwardRef(function(t,n){var r=t.prefixCls,i=void 0===r?"rc-trigger-popup":r,l=t.children,c=t.action,s=void 0===c?"hover":c,u=t.showAction,p=t.hideAction,f=t.popupVisible,m=t.defaultPopupVisible,v=t.onPopupVisibleChange,h=t.afterPopupVisibleChange,b=t.mouseEnterDelay,y=t.mouseLeaveDelay,C=void 0===y?.1:y,x=t.focusDelay,$=t.blurDelay,w=t.mask,S=t.maskClosable,k=void 0===S||S,E=t.getPopupContainer,O=t.forceRender,A=t.autoDestroy,I=t.destroyPopupOnHide,N=t.popup,M=t.popupClassName,j=t.popupStyle,P=t.popupPlacement,R=t.builtinPlacements,T=void 0===R?{}:R,z=t.popupAlign,B=t.zIndex,H=t.stretch,D=t.getPopupClassNameFromAlign,L=t.fresh,F=t.alignPoint,W=t.onPopupClick,_=t.onPopupAlign,K=t.arrow,q=t.popupMotion,V=t.maskMotion,X=t.popupTransitionName,G=t.popupAnimation,Y=t.maskTransitionName,U=t.maskAnimation,Q=t.className,Z=t.getTriggerDOMNode,J=(0,cr.A)(t,ov),ee=A||I||!1,te=o.useState(!1),ne=(0,ke.A)(te,2),oe=ne[0],re=ne[1];ut(function(){re(Zm())},[]);var ae=o.useRef({}),le=o.useContext(_g),ce=o.useMemo(function(){return{registerSubPopup:function(e,t){ae.current[e]=t,null===le||void 0===le||le.registerSubPopup(e,t)}}},[le]),ue=Gu(),de=o.useState(null),pe=(0,ke.A)(de,2),fe=pe[0],me=pe[1],ge=o.useRef(null),ve=Bn(function(e){ge.current=e,g(e)&&fe!==e&&me(e),null===le||void 0===le||le.registerSubPopup(ue,e)}),he=o.useState(null),be=(0,ke.A)(he,2),ye=be[0],Ce=be[1],xe=o.useRef(null),$e=Bn(function(e){g(e)&&ye!==e&&(Ce(e),xe.current=e)}),we=o.Children.only(l),Se=(null===we||void 0===we?void 0:we.props)||{},Ee={},Oe=Bn(function(e){var t,n,o=ye;return(null===o||void 0===o?void 0:o.contains(e))||(null===(t=(0,Rg.j)(o))||void 0===t?void 0:t.host)===e||e===o||(null===fe||void 0===fe?void 0:fe.contains(e))||(null===(n=(0,Rg.j)(fe))||void 0===n?void 0:n.host)===e||e===fe||Object.values(ae.current).some(function(t){return(null===t||void 0===t?void 0:t.contains(e))||e===t})}),Ae=Vg(i,q,G,X),Ie=Vg(i,V,U,Y),Ne=o.useState(m||!1),Me=(0,ke.A)(Ne,2),je=Me[0],Pe=Me[1],Re=null!==f&&void 0!==f?f:je,Te=Bn(function(e){void 0===f&&Pe(e)});ut(function(){Pe(f||!1)},[f]);var ze=o.useRef(Re);ze.current=Re;var Be=o.useRef([]);Be.current=[];var He=Bn(function(e){var t;Te(e),(null!==(t=Be.current[Be.current.length-1])&&void 0!==t?t:Re)!==e&&(Be.current.push(e),null===v||void 0===v||v(e))}),De=o.useRef(),Le=function(){clearTimeout(De.current)},Fe=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;Le(),0===t?He(e):De.current=setTimeout(function(){He(e)},1e3*t)};o.useEffect(function(){return Le},[]);var We=o.useState(!1),_e=(0,ke.A)(We,2),Ke=_e[0],qe=_e[1];ut(function(e){e&&!Re||qe(!0)},[Re]);var Ve=o.useState(null),Xe=(0,ke.A)(Ve,2),Ge=Xe[0],Ye=Xe[1],Ue=o.useState(null),Qe=(0,ke.A)(Ue,2),Ze=Qe[0],Je=Qe[1],et=function(e){Je([e.clientX,e.clientY])},tt=function(e,t,n,r,i,a,l){var c=o.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[r]||{}}),s=(0,ke.A)(c,2),u=s[0],p=s[1],f=o.useRef(0),m=o.useMemo(function(){return t?Gg(t):[]},[t]),v=o.useRef({});e||(v.current={});var h=Bn(function(){if(t&&n&&e){var o,c,s,u,f,h=t,b=h.ownerDocument,y=Xg(h),C=y.getComputedStyle(h).position,x=h.style.left,$=h.style.top,w=h.style.right,S=h.style.bottom,k=h.style.overflow,E=(0,d.A)((0,d.A)({},i[r]),a),O=b.createElement("div");if(null===(o=h.parentElement)||void 0===o||o.appendChild(O),O.style.left="".concat(h.offsetLeft,"px"),O.style.top="".concat(h.offsetTop,"px"),O.style.position=C,O.style.height="".concat(h.offsetHeight,"px"),O.style.width="".concat(h.offsetWidth,"px"),h.style.left="0",h.style.top="0",h.style.right="auto",h.style.bottom="auto",h.style.overflow="hidden",Array.isArray(n))f={x:n[0],y:n[1],width:0,height:0};else{var A,I,N=n.getBoundingClientRect();N.x=null!==(A=N.x)&&void 0!==A?A:N.left,N.y=null!==(I=N.y)&&void 0!==I?I:N.top,f={x:N.x,y:N.y,width:N.width,height:N.height}}var M=h.getBoundingClientRect(),j=y.getComputedStyle(h),P=j.height,R=j.width;M.x=null!==(c=M.x)&&void 0!==c?c:M.left,M.y=null!==(s=M.y)&&void 0!==s?s:M.top;var T=b.documentElement,z=T.clientWidth,B=T.clientHeight,H=T.scrollWidth,D=T.scrollHeight,L=T.scrollTop,F=T.scrollLeft,W=M.height,_=M.width,K=f.height,q=f.width,V={left:0,top:0,right:z,bottom:B},X={left:-F,top:-L,right:H-F,bottom:D-L},G=E.htmlRegion,Y="visible",U="visibleFirst";"scroll"!==G&&G!==U&&(G=Y);var Q=G===U,Z=Qg(X,m),J=Qg(V,m),ee=G===Y?J:Z,te=Q?J:ee;h.style.left="auto",h.style.top="auto",h.style.right="0",h.style.bottom="0";var ne=h.getBoundingClientRect();h.style.left=x,h.style.top=$,h.style.right=w,h.style.bottom=S,h.style.overflow=k,null===(u=h.parentElement)||void 0===u||u.removeChild(O);var oe=Yg(Math.round(_/parseFloat(R)*1e3)/1e3),re=Yg(Math.round(W/parseFloat(P)*1e3)/1e3);if(0===oe||0===re||g(n)&&!Ql(n))return;var ie=E.offset,ae=E.targetOffset,le=Jg(M,ie),ce=(0,ke.A)(le,2),se=ce[0],ue=ce[1],de=Jg(f,ae),pe=(0,ke.A)(de,2),fe=pe[0],me=pe[1];f.x-=fe,f.y-=me;var ge=E.points||[],ve=(0,ke.A)(ge,2),he=ve[0],be=ev(ve[1]),ye=ev(he),Ce=tv(f,be),xe=tv(M,ye),$e=(0,d.A)({},E),we=Ce.x-xe.x+se,Se=Ce.y-xe.y+ue;function bt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ee,o=M.x+e,r=M.y+t,i=o+_,a=r+W,l=Math.max(o,n.left),c=Math.max(r,n.top),s=Math.min(i,n.right),u=Math.min(a,n.bottom);return Math.max(0,(s-l)*(u-c))}var Ee,Oe,Ae,Ie,Ne=bt(we,Se),Me=bt(we,Se,J),je=tv(f,["t","l"]),Pe=tv(M,["t","l"]),Re=tv(f,["b","r"]),Te=tv(M,["b","r"]),ze=E.overflow||{},Be=ze.adjustX,He=ze.adjustY,De=ze.shiftX,Le=ze.shiftY,Fe=function(e){return"boolean"===typeof e?e:e>=0};function yt(){Ee=M.y+Se,Oe=Ee+W,Ae=M.x+we,Ie=Ae+_}yt();var We=Fe(He),_e=ye[0]===be[0];if(We&&"t"===ye[0]&&(Oe>te.bottom||v.current.bt)){var Ke=Se;_e?Ke-=W-K:Ke=je.y-Te.y-ue;var qe=bt(we,Ke),Ve=bt(we,Ke,J);qe>Ne||qe===Ne&&(!Q||Ve>=Me)?(v.current.bt=!0,Se=Ke,ue=-ue,$e.points=[nv(ye,0),nv(be,0)]):v.current.bt=!1}if(We&&"b"===ye[0]&&(Ee<te.top||v.current.tb)){var Xe=Se;_e?Xe+=W-K:Xe=Re.y-Pe.y-ue;var Ge=bt(we,Xe),Ye=bt(we,Xe,J);Ge>Ne||Ge===Ne&&(!Q||Ye>=Me)?(v.current.tb=!0,Se=Xe,ue=-ue,$e.points=[nv(ye,0),nv(be,0)]):v.current.tb=!1}var Ue=Fe(Be),Qe=ye[1]===be[1];if(Ue&&"l"===ye[1]&&(Ie>te.right||v.current.rl)){var Ze=we;Qe?Ze-=_-q:Ze=je.x-Te.x-se;var Je=bt(Ze,Se),et=bt(Ze,Se,J);Je>Ne||Je===Ne&&(!Q||et>=Me)?(v.current.rl=!0,we=Ze,se=-se,$e.points=[nv(ye,1),nv(be,1)]):v.current.rl=!1}if(Ue&&"r"===ye[1]&&(Ae<te.left||v.current.lr)){var tt=we;Qe?tt+=_-q:tt=Re.x-Pe.x-se;var nt=bt(tt,Se),ot=bt(tt,Se,J);nt>Ne||nt===Ne&&(!Q||ot>=Me)?(v.current.lr=!0,we=tt,se=-se,$e.points=[nv(ye,1),nv(be,1)]):v.current.lr=!1}yt();var rt=!0===De?0:De;"number"===typeof rt&&(Ae<J.left&&(we-=Ae-J.left-se,f.x+q<J.left+rt&&(we+=f.x-J.left+q-rt)),Ie>J.right&&(we-=Ie-J.right-se,f.x>J.right-rt&&(we+=f.x-J.right+rt)));var it=!0===Le?0:Le;"number"===typeof it&&(Ee<J.top&&(Se-=Ee-J.top-ue,f.y+K<J.top+it&&(Se+=f.y-J.top+K-it)),Oe>J.bottom&&(Se-=Oe-J.bottom-ue,f.y>J.bottom-it&&(Se+=f.y-J.bottom+it)));var at=M.x+we,lt=at+_,ct=M.y+Se,st=ct+W,ut=f.x,dt=ut+q,pt=f.y,ft=pt+K,mt=(Math.max(at,ut)+Math.min(lt,dt))/2-at,gt=(Math.max(ct,pt)+Math.min(st,ft))/2-ct;null===l||void 0===l||l(t,$e);var vt=ne.right-M.x-(we+M.width),ht=ne.bottom-M.y-(Se+M.height);1===oe&&(we=Math.round(we),vt=Math.round(vt)),1===re&&(Se=Math.round(Se),ht=Math.round(ht)),p({ready:!0,offsetX:we/oe,offsetY:Se/re,offsetR:vt/oe,offsetB:ht/re,arrowX:mt/oe,arrowY:gt/re,scaleX:oe,scaleY:re,align:$e})}}),b=function(){p(function(e){return(0,d.A)((0,d.A)({},e),{},{ready:!1})})};return ut(b,[r]),ut(function(){e||b()},[e]),[u.ready,u.offsetX,u.offsetY,u.offsetR,u.offsetB,u.arrowX,u.arrowY,u.scaleX,u.scaleY,u.align,function(){f.current+=1;var e=f.current;Promise.resolve().then(function(){f.current===e&&h()})}]}(Re,fe,F&&null!==Ze?Ze:ye,P,T,z,_),nt=(0,ke.A)(tt,11),ot=nt[0],rt=nt[1],it=nt[2],at=nt[3],lt=nt[4],ct=nt[5],st=nt[6],dt=nt[7],pt=nt[8],ft=nt[9],mt=nt[10],gt=function(e,t,n,r){return o.useMemo(function(){var o=Kg(null!==n&&void 0!==n?n:t),i=Kg(null!==r&&void 0!==r?r:t),a=new Set(o),l=new Set(i);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),l.has("hover")&&(l.delete("hover"),l.add("click"))),[a,l]},[e,t,n,r])}(oe,s,u,p),vt=(0,ke.A)(gt,2),ht=vt[0],bt=vt[1],yt=ht.has("click"),Ct=bt.has("click")||bt.has("contextMenu"),xt=Bn(function(){Ke||mt()});!function(e,t,n,o,r){ut(function(){if(e&&t&&n){var i=n,a=Gg(t),l=Gg(i),c=Xg(i),s=new Set([c].concat(se(a),se(l)));function u(){o(),r()}return s.forEach(function(e){e.addEventListener("scroll",u,{passive:!0})}),c.addEventListener("resize",u,{passive:!0}),o(),function(){s.forEach(function(e){e.removeEventListener("scroll",u),c.removeEventListener("resize",u)})}}},[e,t,n])}(Re,ye,fe,xt,function(){ze.current&&F&&Ct&&Fe(!1)}),ut(function(){xt()},[Ze,P]),ut(function(){!Re||null!==T&&void 0!==T&&T[P]||xt()},[JSON.stringify(z)]);var $t=o.useMemo(function(){var e=function(e,t,n,o){for(var r=n.points,i=Object.keys(e),a=0;a<i.length;a+=1){var l,c=i[a];if(qg(null===(l=e[c])||void 0===l?void 0:l.points,r,o))return"".concat(t,"-placement-").concat(c)}return""}(T,i,ft,F);return a()(e,null===D||void 0===D?void 0:D(ft))},[ft,D,T,i,F]);o.useImperativeHandle(n,function(){return{nativeElement:xe.current,popupElement:ge.current,forceAlign:xt}});var wt=o.useState(0),St=(0,ke.A)(wt,2),kt=St[0],Et=St[1],Ot=o.useState(0),At=(0,ke.A)(Ot,2),It=At[0],Nt=At[1],Mt=function(){if(H&&ye){var e=ye.getBoundingClientRect();Et(e.width),Nt(e.height)}};function jt(e,t,n,o){Ee[e]=function(r){var i;null===o||void 0===o||o(r),Fe(t,n);for(var a=arguments.length,l=new Array(a>1?a-1:0),c=1;c<a;c++)l[c-1]=arguments[c];null===(i=Se[e])||void 0===i||i.call.apply(i,[Se,r].concat(l))}}ut(function(){Ge&&(mt(),Ge(),Ye(null))},[Ge]),(yt||Ct)&&(Ee.onClick=function(e){var t;ze.current&&Ct?Fe(!1):!ze.current&&yt&&(et(e),Fe(!0));for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];null===(t=Se.onClick)||void 0===t||t.call.apply(t,[Se,e].concat(o))});var Pt,Rt,Tt=function(e,t,n,r,i,a,l,c){var s=o.useRef(e);s.current=e;var u=o.useRef(!1);return o.useEffect(function(){if(t&&r&&(!i||a)){var e=function(){u.current=!1},o=function(e){var t;!s.current||l((null===(t=e.composedPath)||void 0===t||null===(t=t.call(e))||void 0===t?void 0:t[0])||e.target)||u.current||c(!1)},d=Xg(r);d.addEventListener("pointerdown",e,!0),d.addEventListener("mousedown",o,!0),d.addEventListener("contextmenu",o,!0);var p=(0,Rg.j)(n);return p&&(p.addEventListener("mousedown",o,!0),p.addEventListener("contextmenu",o,!0)),function(){d.removeEventListener("pointerdown",e,!0),d.removeEventListener("mousedown",o,!0),d.removeEventListener("contextmenu",o,!0),p&&(p.removeEventListener("mousedown",o,!0),p.removeEventListener("contextmenu",o,!0))}}},[t,n,r,i,a]),function(){u.current=!0}}(Re,Ct,ye,fe,w,k,Oe,Fe),zt=ht.has("hover"),Bt=bt.has("hover");zt&&(jt("onMouseEnter",!0,b,function(e){et(e)}),jt("onPointerEnter",!0,b,function(e){et(e)}),Pt=function(e){(Re||Ke)&&null!==fe&&void 0!==fe&&fe.contains(e.target)&&Fe(!0,b)},F&&(Ee.onMouseMove=function(e){var t;null===(t=Se.onMouseMove)||void 0===t||t.call(Se,e)})),Bt&&(jt("onMouseLeave",!1,C),jt("onPointerLeave",!1,C),Rt=function(){Fe(!1,C)}),ht.has("focus")&&jt("onFocus",!0,x),bt.has("focus")&&jt("onBlur",!1,$),ht.has("contextMenu")&&(Ee.onContextMenu=function(e){var t;ze.current&&bt.has("contextMenu")?Fe(!1):(et(e),Fe(!0)),e.preventDefault();for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];null===(t=Se.onContextMenu)||void 0===t||t.call.apply(t,[Se,e].concat(o))}),Q&&(Ee.className=a()(Se.className,Q));var Ht=o.useRef(!1);Ht.current||(Ht.current=O||Re||Ke);var Dt=(0,d.A)((0,d.A)({},Se),Ee),Lt={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach(function(e){J[e]&&(Lt[e]=function(){for(var t,n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];null===(t=Dt[e])||void 0===t||t.call.apply(t,[Dt].concat(o)),J[e].apply(J,o)})});var Ft=o.cloneElement(we,(0,d.A)((0,d.A)({},Dt),Lt)),Wt={x:ct,y:st},_t=K?(0,d.A)({},!0!==K?K:{}):null;return o.createElement(o.Fragment,null,o.createElement(ie,{disabled:!Re,ref:$e,onResize:function(){Mt(),xt()}},o.createElement(Wg,{getTriggerDOMNode:Z},Ft)),Ht.current&&o.createElement(_g.Provider,{value:ce},o.createElement(Lg,{portal:e,ref:ve,prefixCls:i,popup:N,className:a()(M,$t),style:j,target:ye,onMouseEnter:Pt,onMouseLeave:Rt,onPointerEnter:Pt,zIndex:B,open:Re,keepDom:Ke,fresh:L,onClick:W,onPointerDownCapture:Tt,mask:w,motion:Ae,maskMotion:Ie,onVisibleChanged:function(e){qe(!1),mt(),null===h||void 0===h||h(e)},onPrepare:function(){return new Promise(function(e){Mt(),Ye(function(){return e})})},forceRender:O,autoDestroy:ee,getPopupContainer:E,align:ft,arrow:_t,arrowPos:Wt,ready:ot,offsetX:rt,offsetY:it,offsetR:at,offsetB:lt,onAlign:xt,stretch:H,targetWidth:kt/dt,targetHeight:It/pt})))});return t}(_u);var iv=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],av=o.forwardRef(function(e,t){var n=e.prefixCls,r=(e.disabled,e.visible),i=e.children,c=e.popupElement,s=e.animation,u=e.transitionName,p=e.dropdownStyle,f=e.dropdownClassName,m=e.direction,g=void 0===m?"ltr":m,v=e.placement,h=e.builtinPlacements,b=e.dropdownMatchSelectWidth,y=e.dropdownRender,C=e.dropdownAlign,x=e.getPopupContainer,$=e.empty,w=e.getTriggerDOMNode,S=e.onPopupVisibleChange,k=e.onPopupMouseEnter,E=(0,cr.A)(e,iv),O="".concat(n,"-dropdown"),A=c;y&&(A=y(c));var I=o.useMemo(function(){return h||function(e){var t=!0===e?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"}}}(b)},[h,b]),N=s?"".concat(O,"-").concat(s):u,M="number"===typeof b,j=o.useMemo(function(){return M?null:!1===b?"minWidth":"width"},[b,M]),P=p;M&&(P=(0,d.A)((0,d.A)({},P),{},{width:b}));var R=o.useRef(null);return o.useImperativeHandle(t,function(){return{getPopupElement:function(){var e;return null===(e=R.current)||void 0===e?void 0:e.popupElement}}}),o.createElement(rv,(0,l.A)({},E,{showAction:S?["click"]:[],hideAction:S?["click"]:[],popupPlacement:v||("rtl"===g?"bottomRight":"bottomLeft"),builtinPlacements:I,prefixCls:O,popupTransitionName:N,popup:o.createElement("div",{onMouseEnter:k},A),ref:R,stretch:j,popupAlign:C,popupVisible:r,getPopupContainer:x,popupClassName:a()(f,(0,Ee.A)({},"".concat(O,"-empty"),$)),popupStyle:P,getTriggerDOMNode:w,onPopupVisibleChange:S}),i)});const lv=av;function cv(e,t){var n,o=e.key;return"value"in e&&(n=e.value),null!==o&&void 0!==o?o:void 0!==n?n:"rc-index-key-".concat(t)}function sv(e){return"undefined"!==typeof e&&!Number.isNaN(e)}function uv(e,t){var n=e||{},o=n.label||(t?"children":"label");return{label:o,value:n.value||"value",options:n.options||"options",groupLabel:n.groupLabel||o}}function dv(e){var t=(0,d.A)({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return(0,u.Ay)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}const pv=o.createContext(null);function fv(e){var t=e.visible,n=e.values;if(!t)return null;return o.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(n.slice(0,50).map(function(e){var t=e.label,n=e.value;return["number","string"].includes((0,p.A)(t))?t:n}).join(", ")),n.length>50?", ...":null)}var mv=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],gv=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],vv=function(e){return"tags"===e||"multiple"===e},hv=o.forwardRef(function(e,t){var n,i=e.id,c=e.prefixCls,s=e.className,u=e.showSearch,f=e.tagRender,m=e.direction,g=e.omitDomProps,v=e.displayValues,h=e.onDisplayValuesChange,y=e.emptyOptions,C=e.notFoundContent,x=void 0===C?"Not Found":C,$=e.onClear,w=e.mode,S=e.disabled,k=e.loading,E=e.getInputElement,O=e.getRawInputElement,A=e.open,I=e.defaultOpen,N=e.onDropdownVisibleChange,M=e.activeValue,j=e.onActiveValueChange,P=e.activeDescendantId,R=e.searchValue,T=e.autoClearSearchValue,z=e.onSearch,B=e.onSearchSplit,H=e.tokenSeparators,D=e.allowClear,L=e.prefix,F=e.suffixIcon,W=e.clearIcon,_=e.OptionList,K=e.animation,q=e.transitionName,V=e.dropdownStyle,X=e.dropdownClassName,G=e.dropdownMatchSelectWidth,Y=e.dropdownRender,U=e.dropdownAlign,Q=e.placement,Z=e.builtinPlacements,J=e.getPopupContainer,ee=e.showAction,te=void 0===ee?[]:ee,ne=e.onFocus,oe=e.onBlur,re=e.onKeyUp,ie=e.onKeyDown,ae=e.onMouseDown,le=(0,cr.A)(e,mv),ce=vv(w),ue=(void 0!==u?u:ce)||"combobox"===w,de=(0,d.A)({},le);gv.forEach(function(e){delete de[e]}),null===g||void 0===g||g.forEach(function(e){delete de[e]});var pe=o.useState(!1),fe=(0,ke.A)(pe,2),me=fe[0],ge=fe[1];o.useEffect(function(){ge(Zm())},[]);var ve=o.useRef(null),he=o.useRef(null),be=o.useRef(null),ye=o.useRef(null),Ce=o.useRef(null),xe=o.useRef(!1),$e=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,t=o.useState(!1),n=(0,ke.A)(t,2),r=n[0],i=n[1],a=o.useRef(null),l=function(){window.clearTimeout(a.current)};return o.useEffect(function(){return l},[]),[r,function(t,n){l(),a.current=window.setTimeout(function(){i(t),n&&n()},e)},l]}(),we=(0,ke.A)($e,3),Se=we[0],Oe=we[1],Ae=we[2];o.useImperativeHandle(t,function(){var e,t;return{focus:null===(e=ye.current)||void 0===e?void 0:e.focus,blur:null===(t=ye.current)||void 0===t?void 0:t.blur,scrollTo:function(e){var t;return null===(t=Ce.current)||void 0===t?void 0:t.scrollTo(e)},nativeElement:ve.current||he.current}});var Ie=o.useMemo(function(){var e;if("combobox"!==w)return R;var t=null===(e=v[0])||void 0===e?void 0:e.value;return"string"===typeof t||"number"===typeof t?String(t):""},[R,w,v]),Ne="combobox"===w&&"function"===typeof E&&E()||null,Me="function"===typeof O&&O(),je=(0,b.xK)(he,null===Me||void 0===Me||null===(n=Me.props)||void 0===n?void 0:n.ref),Pe=o.useState(!1),Re=(0,ke.A)(Pe,2),Te=Re[0],ze=Re[1];ut(function(){ze(!0)},[]);var Be=Ln(!1,{defaultValue:I,value:A}),He=(0,ke.A)(Be,2),De=He[0],Le=He[1],Fe=!!Te&&De,We=!x&&y;(S||We&&Fe&&"combobox"===w)&&(Fe=!1);var _e=!We&&Fe,Ke=o.useCallback(function(e){var t=void 0!==e?e:!Fe;S||(Le(t),Fe!==t&&(null===N||void 0===N||N(t)))},[S,Fe,Le,N]),qe=o.useMemo(function(){return(H||[]).some(function(e){return["\n","\r\n"].includes(e)})},[H]),Ve=o.useContext(pv)||{},Xe=Ve.maxCount,Ge=Ve.rawValues,Ye=function(e,t,n){if(!(ce&&sv(Xe)&&(null===Ge||void 0===Ge?void 0:Ge.size)>=Xe)){var o=!0,r=e;null===j||void 0===j||j(null);var i=function(e,t,n){if(!t||!t.length)return null;var o=!1,r=function e(t,n){var r=Kn(n),i=r[0],a=r.slice(1);if(!i)return[t];var l=t.split(i);return o=o||l.length>1,l.reduce(function(t,n){return[].concat(se(t),se(e(n,a)))},[]).filter(Boolean)}(e,t);return o?"undefined"!==typeof n?r.slice(0,n):r:null}(e,H,sv(Xe)?Xe-Ge.size:void 0),a=n?null:i;return"combobox"!==w&&a&&(r="",null===B||void 0===B||B(a),Ke(!1),o=!1),z&&Ie!==r&&z(r,{source:t?"typing":"effect"}),o}};o.useEffect(function(){Fe||ce||"combobox"===w||Ye("",!1,!1)},[Fe]),o.useEffect(function(){De&&S&&Le(!1),S&&!xe.current&&Oe(!1)},[S]);var Ue=ng(),Qe=(0,ke.A)(Ue,2),Ze=Qe[0],Je=Qe[1],et=o.useRef(!1),tt=o.useRef(!1),nt=[];o.useEffect(function(){return function(){nt.forEach(function(e){return clearTimeout(e)}),nt.splice(0,nt.length)}},[]);var ot,rt=o.useState({}),it=(0,ke.A)(rt,2)[1];Me&&(ot=function(e){Ke(e)}),function(e,t,n,r){var i=o.useRef(null);i.current={open:t,triggerOpen:n,customizedTrigger:r},o.useEffect(function(){function t(t){var n;if(null===(n=i.current)||void 0===n||!n.customizedTrigger){var o=t.target;o.shadowRoot&&t.composed&&(o=t.composedPath()[0]||o),i.current.open&&e().filter(function(e){return e}).every(function(e){return!e.contains(o)&&e!==o})&&i.current.triggerOpen(!1)}}return window.addEventListener("mousedown",t),function(){return window.removeEventListener("mousedown",t)}},[])}(function(){var e;return[ve.current,null===(e=be.current)||void 0===e?void 0:e.getPopupElement()]},_e,Ke,!!Me);var at,lt=o.useMemo(function(){return(0,d.A)((0,d.A)({},e),{},{notFoundContent:x,open:Fe,triggerOpen:_e,id:i,showSearch:ue,multiple:ce,toggleOpen:Ke})},[e,x,_e,Fe,i,ue,ce,Ke]),ct=!!F||k;ct&&(at=o.createElement(Jm,{className:a()("".concat(c,"-arrow"),(0,Ee.A)({},"".concat(c,"-arrow-loading"),k)),customizeIcon:F,customizeIconProps:{loading:k,searchValue:Ie,open:Fe,focused:Se,showSearch:ue}}));var st,dt=function(e,t,n,o,i){var a=arguments.length>5&&void 0!==arguments[5]&&arguments[5],l=arguments.length>6?arguments[6]:void 0,c=arguments.length>7?arguments[7]:void 0,s=r().useMemo(function(){return"object"===(0,p.A)(o)?o.clearIcon:i||void 0},[o,i]);return{allowClear:r().useMemo(function(){return!(a||!o||!n.length&&!l||"combobox"===c&&""===l)},[o,a,n.length,l,c]),clearIcon:r().createElement(Jm,{className:"".concat(e,"-clear"),onMouseDown:t,customizeIcon:s},"\xd7")}}(c,function(){var e;null===$||void 0===$||$(),null===(e=ye.current)||void 0===e||e.focus(),h([],{type:"clear",values:v}),Ye("",!1,!1)},v,D,W,S,Ie,w),pt=dt.allowClear,ft=dt.clearIcon,mt=o.createElement(_,{ref:Ce}),gt=a()(c,s,(0,Ee.A)((0,Ee.A)((0,Ee.A)((0,Ee.A)((0,Ee.A)((0,Ee.A)((0,Ee.A)((0,Ee.A)((0,Ee.A)((0,Ee.A)({},"".concat(c,"-focused"),Se),"".concat(c,"-multiple"),ce),"".concat(c,"-single"),!ce),"".concat(c,"-allow-clear"),D),"".concat(c,"-show-arrow"),ct),"".concat(c,"-disabled"),S),"".concat(c,"-loading"),k),"".concat(c,"-open"),Fe),"".concat(c,"-customize-input"),Ne),"".concat(c,"-show-search"),ue)),vt=o.createElement(lv,{ref:be,disabled:S,prefixCls:c,visible:_e,popupElement:mt,animation:K,transitionName:q,dropdownStyle:V,dropdownClassName:X,direction:m,dropdownMatchSelectWidth:G,dropdownRender:Y,dropdownAlign:U,placement:Q,builtinPlacements:Z,getPopupContainer:J,empty:y,getTriggerDOMNode:function(e){return he.current||e},onPopupVisibleChange:ot,onPopupMouseEnter:function(){it({})}},Me?o.cloneElement(Me,{ref:je}):o.createElement(Pg,(0,l.A)({},e,{domRef:he,prefixCls:c,inputElement:Ne,ref:ye,id:i,prefix:L,showSearch:ue,autoClearSearchValue:T,mode:w,activeDescendantId:P,tagRender:f,values:v,open:Fe,onToggleOpen:Ke,activeValue:M,searchValue:Ie,onSearch:Ye,onSearchSubmit:function(e){e&&e.trim()&&z(e,{source:"submit"})},onRemove:function(e){var t=v.filter(function(t){return t!==e});h(t,{type:"remove",values:[e]})},tokenWithEnter:qe,onInputBlur:function(){et.current=!1}})));return st=Me?vt:o.createElement("div",(0,l.A)({className:gt},de,{ref:ve,onMouseDown:function(e){var t,n=e.target,o=null===(t=be.current)||void 0===t?void 0:t.getPopupElement();if(o&&o.contains(n)){var r=setTimeout(function(){var e,t=nt.indexOf(r);-1!==t&&nt.splice(t,1),Ae(),me||o.contains(document.activeElement)||null===(e=ye.current)||void 0===e||e.focus()});nt.push(r)}for(var i=arguments.length,a=new Array(i>1?i-1:0),l=1;l<i;l++)a[l-1]=arguments[l];null===ae||void 0===ae||ae.apply(void 0,[e].concat(a))},onKeyDown:function(e){var t,n=Ze(),o=e.key,r="Enter"===o;if(r&&("combobox"!==w&&e.preventDefault(),Fe||Ke(!0)),Je(!!Ie),"Backspace"===o&&!n&&ce&&!Ie&&v.length){for(var i=se(v),a=null,l=i.length-1;l>=0;l-=1){var c=i[l];if(!c.disabled){i.splice(l,1),a=c;break}}a&&h(i,{type:"remove",values:[a]})}for(var s=arguments.length,u=new Array(s>1?s-1:0),d=1;d<s;d++)u[d-1]=arguments[d];!Fe||r&&et.current||(r&&(et.current=!0),null===(t=Ce.current)||void 0===t||t.onKeyDown.apply(t,[e].concat(u))),null===ie||void 0===ie||ie.apply(void 0,[e].concat(u))},onKeyUp:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];var r;Fe&&(null===(r=Ce.current)||void 0===r||r.onKeyUp.apply(r,[e].concat(n))),"Enter"===e.key&&(et.current=!1),null===re||void 0===re||re.apply(void 0,[e].concat(n))},onFocus:function(){Oe(!0),S||(ne&&!tt.current&&ne.apply(void 0,arguments),te.includes("focus")&&Ke(!0)),tt.current=!0},onBlur:function(){xe.current=!0,Oe(!1,function(){tt.current=!1,xe.current=!1,Ke(!1)}),S||(Ie&&("tags"===w?z(Ie,{source:"submit"}):"multiple"===w&&z("",{source:"blur"})),oe&&oe.apply(void 0,arguments))}}),o.createElement(fv,{visible:Se&&!Fe,values:v}),vt,at,pt&&ft),o.createElement(eg.Provider,{value:lt},st)});const bv=hv;var yv=function(){return null};yv.isSelectOptGroup=!0;const Cv=yv;var xv=function(){return null};xv.isSelectOption=!0;const $v=xv;var wv=o.forwardRef(function(e,t){var n=e.height,r=e.offsetY,i=e.offsetX,c=e.children,s=e.prefixCls,u=e.onInnerResize,p=e.innerProps,f=e.rtl,m=e.extra,g={},v={display:"flex",flexDirection:"column"};return void 0!==r&&(g={height:n,position:"relative",overflow:"hidden"},v=(0,d.A)((0,d.A)({},v),{},(0,Ee.A)((0,Ee.A)((0,Ee.A)((0,Ee.A)((0,Ee.A)({transform:"translateY(".concat(r,"px)")},f?"marginRight":"marginLeft",-i),"position","absolute"),"left",0),"right",0),"top",0))),o.createElement("div",{style:g},o.createElement(ie,{onResize:function(e){e.offsetHeight&&u&&u()}},o.createElement("div",(0,l.A)({style:v,className:a()((0,Ee.A)({},"".concat(s,"-holder-inner"),s)),ref:t},p),c,m)))});wv.displayName="Filler";const Sv=wv;function kv(e){var t=e.children,n=e.setRef,r=o.useCallback(function(e){n(e)},[]);return o.cloneElement(t,{ref:r})}function Ev(e,t,n){var r=o.useState(e),i=(0,ke.A)(r,2),a=i[0],l=i[1],c=o.useState(null),s=(0,ke.A)(c,2),u=s[0],d=s[1];return o.useEffect(function(){var o=function(e,t,n){var o,r,i=e.length,a=t.length;if(0===i&&0===a)return null;i<a?(o=e,r=t):(o=t,r=e);var l={__EMPTY_ITEM__:!0};function c(e){return void 0!==e?n(e):l}for(var s=null,u=1!==Math.abs(i-a),d=0;d<r.length;d+=1){var p=c(o[d]);if(p!==c(r[d])){s=d,u=u||p!==c(r[d+1]);break}}return null===s?null:{index:s,multiple:u}}(a||[],e||[],t);void 0!==(null===o||void 0===o?void 0:o.index)&&(null===n||void 0===n||n(o.index),d(e[o.index])),l(e)},[e]),[u]}const Ov="object"===("undefined"===typeof navigator?"undefined":(0,p.A)(navigator))&&/Firefox/i.test(navigator.userAgent),Av=function(e,t,n,r){var i=(0,o.useRef)(!1),a=(0,o.useRef)(null);var l=(0,o.useRef)({top:e,bottom:t,left:n,right:r});return l.current.top=e,l.current.bottom=t,l.current.left=n,l.current.right=r,function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=e?t<0&&l.current.left||t>0&&l.current.right:t<0&&l.current.top||t>0&&l.current.bottom;return n&&o?(clearTimeout(a.current),i.current=!1):o&&!i.current||(clearTimeout(a.current),i.current=!0,a.current=setTimeout(function(){i.current=!1},50)),!i.current&&o}};function Iv(e,t,n,r,i,a,l){var c=(0,o.useRef)(0),s=(0,o.useRef)(null),u=(0,o.useRef)(null),d=(0,o.useRef)(!1),p=Av(t,n,r,i);var f=(0,o.useRef)(null),m=(0,o.useRef)(null);return[function(t){if(e){ve.cancel(m.current),m.current=ve(function(){f.current=null},2);var n=t.deltaX,o=t.deltaY,r=t.shiftKey,i=n,g=o;("sx"===f.current||!f.current&&r&&o&&!n)&&(i=o,g=0,f.current="sx");var v=Math.abs(i),h=Math.abs(g);null===f.current&&(f.current=a&&v>h?"x":"y"),"y"===f.current?function(e,t){if(ve.cancel(s.current),!p(!1,t)){var n=e;n._virtualHandled||(n._virtualHandled=!0,c.current+=t,u.current=t,Ov||n.preventDefault(),s.current=ve(function(){var e=d.current?10:1;l(c.current*e,!1),c.current=0}))}}(t,g):function(e,t){l(t,!0),Ov||e.preventDefault()}(t,i)}},function(t){e&&(d.current=t.detail===u.current)}]}const Nv=function(){function e(){K(this,e),(0,Ee.A)(this,"maps",void 0),(0,Ee.A)(this,"id",0),(0,Ee.A)(this,"diffRecords",new Map),this.maps=Object.create(null)}return X(e,[{key:"set",value:function(e,t){this.diffRecords.set(e,this.maps[e]),this.maps[e]=t,this.id+=1}},{key:"get",value:function(e){return this.maps[e]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),e}();function Mv(e){var t=parseFloat(e);return isNaN(t)?0:t}var jv=14/15;function Pv(e){return Math.floor(Math.pow(e,.5))}function Rv(e,t){return("touches"in e?e.touches[0]:e)[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}var Tv=o.forwardRef(function(e,t){var n=e.prefixCls,r=e.rtl,i=e.scrollOffset,l=e.scrollRange,c=e.onStartMove,s=e.onStopMove,u=e.onScroll,p=e.horizontal,f=e.spinSize,m=e.containerSize,g=e.style,v=e.thumbStyle,h=e.showScrollBar,b=o.useState(!1),y=(0,ke.A)(b,2),C=y[0],x=y[1],$=o.useState(null),w=(0,ke.A)($,2),S=w[0],k=w[1],E=o.useState(null),O=(0,ke.A)(E,2),A=O[0],I=O[1],N=!r,M=o.useRef(),j=o.useRef(),P=o.useState(h),R=(0,ke.A)(P,2),T=R[0],z=R[1],B=o.useRef(),H=function(){!0!==h&&!1!==h&&(clearTimeout(B.current),z(!0),B.current=setTimeout(function(){z(!1)},3e3))},D=l-m||0,L=m-f||0,F=o.useMemo(function(){return 0===i||0===D?0:i/D*L},[i,D,L]),W=o.useRef({top:F,dragging:C,pageY:S,startTop:A});W.current={top:F,dragging:C,pageY:S,startTop:A};var _=function(e){x(!0),k(Rv(e,p)),I(W.current.top),c(),e.stopPropagation(),e.preventDefault()};o.useEffect(function(){var e=function(e){e.preventDefault()},t=M.current,n=j.current;return t.addEventListener("touchstart",e,{passive:!1}),n.addEventListener("touchstart",_,{passive:!1}),function(){t.removeEventListener("touchstart",e),n.removeEventListener("touchstart",_)}},[]);var K=o.useRef();K.current=D;var q=o.useRef();q.current=L,o.useEffect(function(){if(C){var e,t=function(t){var n=W.current,o=n.dragging,r=n.pageY,i=n.startTop;ve.cancel(e);var a=M.current.getBoundingClientRect(),l=m/(p?a.width:a.height);if(o){var c=(Rv(t,p)-r)*l,s=i;!N&&p?s-=c:s+=c;var d=K.current,f=q.current,g=f?s/f:0,v=Math.ceil(g*d);v=Math.max(v,0),v=Math.min(v,d),e=ve(function(){u(v,p)})}},n=function(){x(!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}),function(){window.removeEventListener("mousemove",t),window.removeEventListener("touchmove",t),window.removeEventListener("mouseup",n),window.removeEventListener("touchend",n),ve.cancel(e)}}},[C]),o.useEffect(function(){return H(),function(){clearTimeout(B.current)}},[i]),o.useImperativeHandle(t,function(){return{delayHidden:H}});var V="".concat(n,"-scrollbar"),X={position:"absolute",visibility:T?null:"hidden"},G={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return p?(Object.assign(X,{height:8,left:0,right:0,bottom:0}),Object.assign(G,(0,Ee.A)({height:"100%",width:f},N?"left":"right",F))):(Object.assign(X,(0,Ee.A)({width:8,top:0,bottom:0},N?"right":"left",0)),Object.assign(G,{width:"100%",height:f,top:F})),o.createElement("div",{ref:M,className:a()(V,(0,Ee.A)((0,Ee.A)((0,Ee.A)({},"".concat(V,"-horizontal"),p),"".concat(V,"-vertical"),!p),"".concat(V,"-visible"),T)),style:(0,d.A)((0,d.A)({},X),g),onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},onMouseMove:H},o.createElement("div",{ref:j,className:a()("".concat(V,"-thumb"),(0,Ee.A)({},"".concat(V,"-thumb-moving"),C)),style:(0,d.A)((0,d.A)({},G),v),onMouseDown:_}))});const zv=Tv;function Bv(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=e/(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)*e;return isNaN(t)&&(t=0),t=Math.max(t,20),Math.floor(t)}var Hv=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],Dv=[],Lv={overflowY:"auto",overflowAnchor:"none"};var Fv=o.forwardRef(function(e,t){var n=e.prefixCls,r=void 0===n?"rc-virtual-list":n,i=e.className,c=e.height,s=e.itemHeight,u=e.fullHeight,m=void 0===u||u,g=e.style,v=e.data,h=e.children,b=e.itemKey,y=e.virtual,C=e.direction,x=e.scrollWidth,$=e.component,w=void 0===$?"div":$,S=e.onScroll,k=e.onVirtualScroll,E=e.onVisibleChange,O=e.innerProps,A=e.extraRender,I=e.styles,N=e.showScrollBar,M=void 0===N?"optional":N,j=(0,cr.A)(e,Hv),P=o.useCallback(function(e){return"function"===typeof b?b(e):null===e||void 0===e?void 0:e[b]},[b]),R=function(e,t,n){var r=o.useState(0),i=(0,ke.A)(r,2),a=i[0],l=i[1],c=(0,o.useRef)(new Map),s=(0,o.useRef)(new Nv),u=(0,o.useRef)(0);function d(){u.current+=1}function p(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];d();var t=function(){var e=!1;c.current.forEach(function(t,n){if(t&&t.offsetParent){var o=t.offsetHeight,r=getComputedStyle(t),i=r.marginTop,a=r.marginBottom,l=o+Mv(i)+Mv(a);s.current.get(n)!==l&&(s.current.set(n,l),e=!0)}}),e&&l(function(e){return e+1})};if(e)t();else{u.current+=1;var n=u.current;Promise.resolve().then(function(){n===u.current&&t()})}}return(0,o.useEffect)(function(){return d},[]),[function(o,r){var i=e(o),a=c.current.get(i);r?(c.current.set(i,r),p()):c.current.delete(i),!a!==!r&&(r?null===t||void 0===t||t(o):null===n||void 0===n||n(o))},p,s.current,a]}(P,null,null),T=(0,ke.A)(R,4),z=T[0],B=T[1],H=T[2],D=T[3],L=!(!1===y||!c||!s),F=o.useMemo(function(){return Object.values(H.maps).reduce(function(e,t){return e+t},0)},[H.id,H.maps]),W=L&&v&&(Math.max(s*v.length,F)>c||!!x),_="rtl"===C,K=a()(r,(0,Ee.A)({},"".concat(r,"-rtl"),_),i),q=v||Dv,V=(0,o.useRef)(),X=(0,o.useRef)(),G=(0,o.useRef)(),Y=(0,o.useState)(0),U=(0,ke.A)(Y,2),Q=U[0],Z=U[1],J=(0,o.useState)(0),ee=(0,ke.A)(J,2),te=ee[0],ne=ee[1],oe=(0,o.useState)(!1),re=(0,ke.A)(oe,2),ae=re[0],le=re[1],ce=function(){le(!0)},se=function(){le(!1)},ue={getKey:P};function de(e){Z(function(t){var n=function(e){var t=e;Number.isNaN(Pe.current)||(t=Math.min(t,Pe.current));return t=Math.max(t,0),t}("function"===typeof e?e(t):e);return V.current.scrollTop=n,n})}var pe=(0,o.useRef)({start:0,end:q.length}),fe=(0,o.useRef)(),me=Ev(q,P),ge=(0,ke.A)(me,1)[0];fe.current=ge;var he=o.useMemo(function(){if(!L)return{scrollHeight:void 0,start:0,end:q.length-1,offset:void 0};var e;if(!W)return{scrollHeight:(null===(e=X.current)||void 0===e?void 0:e.offsetHeight)||0,start:0,end:q.length-1,offset:void 0};for(var t,n,o,r=0,i=q.length,a=0;a<i;a+=1){var l=q[a],u=P(l),d=H.get(u),p=r+(void 0===d?s:d);p>=Q&&void 0===t&&(t=a,n=r),p>Q+c&&void 0===o&&(o=a),r=p}return void 0===t&&(t=0,n=0,o=Math.ceil(c/s)),void 0===o&&(o=q.length-1),{scrollHeight:r,start:t,end:o=Math.min(o+1,q.length-1),offset:n}},[W,L,Q,q,D,c]),be=he.scrollHeight,ye=he.start,Ce=he.end,xe=he.offset;pe.current.start=ye,pe.current.end=Ce,o.useLayoutEffect(function(){var e=H.getRecord();if(1===e.size){var t=Array.from(e.keys())[0],n=e.get(t),o=q[ye];if(o&&void 0===n)if(P(o)===t){var r=H.get(t)-s;de(function(e){return e+r})}}H.resetRecord()},[be]);var $e=o.useState({width:0,height:c}),we=(0,ke.A)($e,2),Se=we[0],Oe=we[1],Ae=(0,o.useRef)(),Ie=(0,o.useRef)(),Ne=o.useMemo(function(){return Bv(Se.width,x)},[Se.width,x]),Me=o.useMemo(function(){return Bv(Se.height,be)},[Se.height,be]),je=be-c,Pe=(0,o.useRef)(je);Pe.current=je;var Re=Q<=0,Te=Q>=je,ze=te<=0,Be=te>=x,He=Av(Re,Te,ze,Be),De=function(){return{x:_?-te:te,y:Q}},Le=(0,o.useRef)(De()),Fe=Bn(function(e){if(k){var t=(0,d.A)((0,d.A)({},De()),e);Le.current.x===t.x&&Le.current.y===t.y||(k(t),Le.current=t)}});function We(e,t){var n=e;t?((0,f.flushSync)(function(){ne(n)}),Fe()):de(n)}var _e=function(e){var t=e,n=x?x-Se.width:0;return t=Math.max(t,0),t=Math.min(t,n)},Ke=Bn(function(e,t){t?((0,f.flushSync)(function(){ne(function(t){return _e(t+(_?-e:e))})}),Fe()):de(function(t){return t+e})}),qe=Iv(L,Re,Te,ze,Be,!!x,Ke),Ve=(0,ke.A)(qe,2),Xe=Ve[0],Ge=Ve[1];!function(e,t,n){var r,i=(0,o.useRef)(!1),a=(0,o.useRef)(0),l=(0,o.useRef)(0),c=(0,o.useRef)(null),s=(0,o.useRef)(null),u=function(e){if(i.current){var t=Math.ceil(e.touches[0].pageX),o=Math.ceil(e.touches[0].pageY),r=a.current-t,c=l.current-o,u=Math.abs(r)>Math.abs(c);u?a.current=t:l.current=o;var d=n(u,u?r:c,!1,e);d&&e.preventDefault(),clearInterval(s.current),d&&(s.current=setInterval(function(){u?r*=jv:c*=jv;var e=Math.floor(u?r:c);(!n(u,e,!0)||Math.abs(e)<=.1)&&clearInterval(s.current)},16))}},d=function(){i.current=!1,r()},p=function(e){r(),1!==e.touches.length||i.current||(i.current=!0,a.current=Math.ceil(e.touches[0].pageX),l.current=Math.ceil(e.touches[0].pageY),c.current=e.target,c.current.addEventListener("touchmove",u,{passive:!1}),c.current.addEventListener("touchend",d,{passive:!0}))};r=function(){c.current&&(c.current.removeEventListener("touchmove",u),c.current.removeEventListener("touchend",d))},ut(function(){return e&&t.current.addEventListener("touchstart",p,{passive:!0}),function(){var e;null===(e=t.current)||void 0===e||e.removeEventListener("touchstart",p),r(),clearInterval(s.current)}},[e])}(L,V,function(e,t,n,o){var r=o;return!He(e,t,n)&&((!r||!r._virtualHandled)&&(r&&(r._virtualHandled=!0),Xe({preventDefault:function(){},deltaX:e?t:0,deltaY:e?0:t}),!0))}),function(e,t,n){o.useEffect(function(){var o=t.current;if(e&&o){var r,i,a=!1,l=function(){ve.cancel(r)},c=function e(){l(),r=ve(function(){n(i),e()})},s=function(e){if(!e.target.draggable&&0===e.button){var t=e;t._virtualHandled||(t._virtualHandled=!0,a=!0)}},u=function(){a=!1,l()},d=function(e){if(a){var t=Rv(e,!1),n=o.getBoundingClientRect(),r=n.top,s=n.bottom;t<=r?(i=-Pv(r-t),c()):t>=s?(i=Pv(t-s),c()):l()}};return o.addEventListener("mousedown",s),o.ownerDocument.addEventListener("mouseup",u),o.ownerDocument.addEventListener("mousemove",d),function(){o.removeEventListener("mousedown",s),o.ownerDocument.removeEventListener("mouseup",u),o.ownerDocument.removeEventListener("mousemove",d),l()}}},[e])}(W,V,function(e){de(function(t){return t+e})}),ut(function(){function e(e){var t=Re&&e.detail<0,n=Te&&e.detail>0;!L||t||n||e.preventDefault()}var t=V.current;return t.addEventListener("wheel",Xe,{passive:!1}),t.addEventListener("DOMMouseScroll",Ge,{passive:!0}),t.addEventListener("MozMousePixelScroll",e,{passive:!1}),function(){t.removeEventListener("wheel",Xe),t.removeEventListener("DOMMouseScroll",Ge),t.removeEventListener("MozMousePixelScroll",e)}},[L,Re,Te]),ut(function(){if(x){var e=_e(te);ne(e),Fe({x:e})}},[Se.width,x]);var Ye=function(){var e,t;null===(e=Ae.current)||void 0===e||e.delayHidden(),null===(t=Ie.current)||void 0===t||t.delayHidden()},Ue=function(e,t,n,r,i,a,l,c){var s=o.useRef(),u=o.useState(null),f=(0,ke.A)(u,2),m=f[0],g=f[1];return ut(function(){if(m&&m.times<10){if(!e.current)return void g(function(e){return(0,d.A)({},e)});a();var o=m.targetAlign,c=m.originAlign,s=m.index,u=m.offset,p=e.current.clientHeight,f=!1,v=o,h=null;if(p){for(var b=o||c,y=0,C=0,x=0,$=Math.min(t.length-1,s),w=0;w<=$;w+=1){var S=i(t[w]);C=y;var k=n.get(S);y=x=C+(void 0===k?r:k)}for(var E="top"===b?u:p-u,O=$;O>=0;O-=1){var A=i(t[O]),I=n.get(A);if(void 0===I){f=!0;break}if((E-=I)<=0)break}switch(b){case"top":h=C-u;break;case"bottom":h=x-p+u;break;default:var N=e.current.scrollTop;C<N?v="top":x>N+p&&(v="bottom")}null!==h&&l(h),h!==m.lastTop&&(f=!0)}f&&g((0,d.A)((0,d.A)({},m),{},{times:m.times+1,targetAlign:v,lastTop:h}))}},[m,e.current]),function(e){if(null!==e&&void 0!==e){if(ve.cancel(s.current),"number"===typeof e)l(e);else if(e&&"object"===(0,p.A)(e)){var n,o=e.align;n="index"in e?e.index:t.findIndex(function(t){return i(t)===e.key});var r=e.offset;g({times:0,index:n,offset:void 0===r?0:r,originAlign:o})}}else c()}}(V,q,H,s,P,function(){return B(!0)},de,Ye);o.useImperativeHandle(t,function(){return{nativeElement:G.current,getScrollInfo:De,scrollTo:function(e){var t;(t=e)&&"object"===(0,p.A)(t)&&("left"in t||"top"in t)?(void 0!==e.left&&ne(_e(e.left)),Ue(e.top)):Ue(e)}}}),ut(function(){if(E){var e=q.slice(ye,Ce+1);E(e,q)}},[ye,Ce,q]);var Qe=function(e,t,n,r){var i=o.useMemo(function(){return[new Map,[]]},[e,n.id,r]),a=(0,ke.A)(i,2),l=a[0],c=a[1];return function(o){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o,a=l.get(o),s=l.get(i);if(void 0===a||void 0===s)for(var u=e.length,d=c.length;d<u;d+=1){var p,f=e[d],m=t(f);l.set(m,d);var g=null!==(p=n.get(m))&&void 0!==p?p:r;if(c[d]=(c[d-1]||0)+g,m===o&&(a=d),m===i&&(s=d),void 0!==a&&void 0!==s)break}return{top:c[a-1]||0,bottom:c[s]}}}(q,P,H,s),Ze=null===A||void 0===A?void 0:A({start:ye,end:Ce,virtual:W,offsetX:te,offsetY:xe,rtl:_,getSize:Qe}),Je=function(e,t,n,r,i,a,l,c){var s=c.getKey;return e.slice(t,n+1).map(function(e,n){var c=l(e,t+n,{style:{width:r},offsetX:i}),u=s(e);return o.createElement(kv,{key:u,setRef:function(t){return a(e,t)}},c)})}(q,ye,Ce,x,te,z,h,ue),et=null;c&&(et=(0,d.A)((0,Ee.A)({},m?"height":"maxHeight",c),Lv),L&&(et.overflowY="hidden",x&&(et.overflowX="hidden"),ae&&(et.pointerEvents="none")));var tt={};return _&&(tt.dir="rtl"),o.createElement("div",(0,l.A)({ref:G,style:(0,d.A)((0,d.A)({},g),{},{position:"relative"}),className:K},tt,j),o.createElement(ie,{onResize:function(e){Oe({width:e.offsetWidth,height:e.offsetHeight})}},o.createElement(w,{className:"".concat(r,"-holder"),style:et,ref:V,onScroll:function(e){var t=e.currentTarget.scrollTop;t!==Q&&de(t),null===S||void 0===S||S(e),Fe()},onMouseEnter:Ye},o.createElement(Sv,{prefixCls:r,height:be,offsetX:te,offsetY:xe,scrollWidth:x,onInnerResize:B,ref:X,innerProps:O,rtl:_,extra:Ze},Je))),W&&be>c&&o.createElement(zv,{ref:Ae,prefixCls:r,scrollOffset:Q,scrollRange:be,rtl:_,onScroll:We,onStartMove:ce,onStopMove:se,spinSize:Me,containerSize:Se.height,style:null===I||void 0===I?void 0:I.verticalScrollBar,thumbStyle:null===I||void 0===I?void 0:I.verticalScrollBarThumb,showScrollBar:M}),W&&x>Se.width&&o.createElement(zv,{ref:Ie,prefixCls:r,scrollOffset:te,scrollRange:x,rtl:_,onScroll:We,onStartMove:ce,onStopMove:se,spinSize:Ne,containerSize:Se.width,horizontal:!0,style:null===I||void 0===I?void 0:I.horizontalScrollBar,thumbStyle:null===I||void 0===I?void 0:I.horizontalScrollBarThumb,showScrollBar:M}))});Fv.displayName="List";const Wv=Fv;var _v=["disabled","title","children","style","className"];function Kv(e){return"string"===typeof e||"number"===typeof e}var qv=o.forwardRef(function(e,t){var n=tg(),r=n.prefixCls,i=n.id,c=n.open,s=n.multiple,u=n.mode,d=n.searchValue,p=n.toggleOpen,f=n.notFoundContent,m=n.onPopupScroll,g=o.useContext(pv),v=g.maxCount,h=g.flattenOptions,b=g.onActiveValue,y=g.defaultActiveFirstOption,C=g.onSelect,x=g.menuItemSelectedIcon,$=g.rawValues,w=g.fieldNames,S=g.virtual,k=g.direction,E=g.listHeight,O=g.listItemHeight,A=g.optionRender,I="".concat(r,"-item"),N=(0,Ie.A)(function(){return h},[c,h],function(e,t){return t[0]&&e[1]!==t[1]}),M=o.useRef(null),j=o.useMemo(function(){return s&&sv(v)&&(null===$||void 0===$?void 0:$.size)>=v},[s,v,null===$||void 0===$?void 0:$.size]),P=function(e){e.preventDefault()},R=function(e){var t;null===(t=M.current)||void 0===t||t.scrollTo("number"===typeof e?{index:e}:e)},T=o.useCallback(function(e){return"combobox"!==u&&$.has(e)},[u,se($).toString(),$.size]),z=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=N.length,o=0;o<n;o+=1){var r=(e+o*t+n)%n,i=N[r]||{},a=i.group,l=i.data;if(!a&&(null===l||void 0===l||!l.disabled)&&(T(l.value)||!j))return r}return-1},B=o.useState(function(){return z(0)}),H=(0,ke.A)(B,2),D=H[0],L=H[1],F=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];L(e);var n={source:t?"keyboard":"mouse"},o=N[e];o?b(o.value,e,n):b(null,-1,n)};(0,o.useEffect)(function(){F(!1!==y?z(0):-1)},[N.length,d]);var W=o.useCallback(function(e){return"combobox"===u?String(e).toLowerCase()===d.toLowerCase():$.has(e)},[u,d,se($).toString(),$.size]);(0,o.useEffect)(function(){var e,t=setTimeout(function(){if(!s&&c&&1===$.size){var e=Array.from($)[0],t=N.findIndex(function(t){var n=t.data;return d?String(n.value).startsWith(d):n.value===e});-1!==t&&(F(t),R(t))}});c&&(null===(e=M.current)||void 0===e||e.scrollTo(void 0));return function(){return clearTimeout(t)}},[c,d]);var _=function(e){void 0!==e&&C(e,{selected:!$.has(e)}),s||p(!1)};if(o.useImperativeHandle(t,function(){return{onKeyDown:function(e){var t=e.which,n=e.ctrlKey;switch(t){case Xi.N:case Xi.P:case Xi.UP:case Xi.DOWN:var o=0;if(t===Xi.UP?o=-1:t===Xi.DOWN?o=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&n&&(t===Xi.N?o=1:t===Xi.P&&(o=-1)),0!==o){var r=z(D+o,o);R(r),F(r,!0)}break;case Xi.TAB:case Xi.ENTER:var i,a=N[D];!a||null!==a&&void 0!==a&&null!==(i=a.data)&&void 0!==i&&i.disabled||j?_(void 0):_(a.value),c&&e.preventDefault();break;case Xi.ESC:p(!1),c&&e.stopPropagation()}},onKeyUp:function(){},scrollTo:function(e){R(e)}}}),0===N.length)return o.createElement("div",{role:"listbox",id:"".concat(i,"_list"),className:"".concat(I,"-empty"),onMouseDown:P},f);var K=Object.keys(w).map(function(e){return w[e]}),q=function(e){return e.label};function V(e,t){return{role:e.group?"presentation":"option",id:"".concat(i,"_list_").concat(t)}}var X=function(e){var t=N[e];if(!t)return null;var n=t.data||{},r=n.value,i=t.group,a=ni(n,!0),c=q(t);return t?o.createElement("div",(0,l.A)({"aria-label":"string"!==typeof c||i?null:c},a,{key:e},V(t,e),{"aria-selected":W(r)}),r):null},G={role:"listbox",id:"".concat(i,"_list")};return o.createElement(o.Fragment,null,S&&o.createElement("div",(0,l.A)({},G,{style:{height:0,width:0,overflow:"hidden"}}),X(D-1),X(D),X(D+1)),o.createElement(Wv,{itemKey:"key",ref:M,data:N,height:E,itemHeight:O,fullHeight:!1,onMouseDown:P,onScroll:m,virtual:S,direction:k,innerProps:S?null:G},function(e,t){var n=e.group,r=e.groupOption,i=e.data,c=e.label,s=e.value,u=i.key;if(n){var d,p=null!==(d=i.title)&&void 0!==d?d:Kv(c)?c.toString():void 0;return o.createElement("div",{className:a()(I,"".concat(I,"-group"),i.className),title:p},void 0!==c?c:u)}var f=i.disabled,m=i.title,g=(i.children,i.style),v=i.className,h=Ul((0,cr.A)(i,_v),K),b=T(s),y=f||!b&&j,C="".concat(I,"-option"),$=a()(I,C,v,(0,Ee.A)((0,Ee.A)((0,Ee.A)((0,Ee.A)({},"".concat(C,"-grouped"),r),"".concat(C,"-active"),D===t&&!y),"".concat(C,"-disabled"),y),"".concat(C,"-selected"),b)),w=q(e),k=!x||"function"===typeof x||b,E="number"===typeof w?w:w||s,O=Kv(E)?E.toString():void 0;return void 0!==m&&(O=m),o.createElement("div",(0,l.A)({},ni(h),S?{}:V(e,t),{"aria-selected":W(s),className:$,title:O,onMouseMove:function(){D===t||y||F(t)},onClick:function(){y||_(s)},style:g}),o.createElement("div",{className:"".concat(C,"-content")},"function"===typeof A?A(e,{index:t}):E),o.isValidElement(x)||b,k&&o.createElement(Jm,{className:"".concat(I,"-option-state"),customizeIcon:x,customizeIconProps:{value:s,disabled:y,isSelected:b}},b?"\u2713":null))}))});const Vv=qv;function Xv(e,t){return Sg(e).join("").toUpperCase().includes(t)}var Gv=0,Yv=(0,Le.A)();function Uv(e){var t=o.useState(),n=(0,ke.A)(t,2),r=n[0],i=n[1];return o.useEffect(function(){i("rc_select_".concat(function(){var e;return Yv?(e=Gv,Gv+=1):e="TEST_OR_SSR",e}()))},[]),e||r}var Qv=["children","value"],Zv=["children"];function Jv(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return s(e).map(function(e,n){if(!o.isValidElement(e)||!e.type)return null;var r=e,i=r.type.isSelectOptGroup,a=r.key,l=r.props,c=l.children,s=(0,cr.A)(l,Zv);return t||!i?function(e){var t=e,n=t.key,o=t.props,r=o.children,i=o.value,a=(0,cr.A)(o,Qv);return(0,d.A)({key:n,value:void 0!==i?i:n,children:r},a)}(e):(0,d.A)((0,d.A)({key:"__RC_SELECT_GRP__".concat(null===a?n:a,"__"),label:a},s),{},{options:Jv(c)})}).filter(function(e){return e})}const eh=function(e,t,n,r,i){return o.useMemo(function(){var o=e;!e&&(o=Jv(t));var a=new Map,l=new Map,c=function(e,t,n){n&&"string"===typeof n&&e.set(t[n],t)};return function e(t){for(var o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],s=0;s<t.length;s+=1){var u=t[s];!u[n.options]||o?(a.set(u[n.value],u),c(l,u,n.label),c(l,u,r),c(l,u,i)):e(u[n.options],!0)}}(o),{options:o,valueOptions:a,labelOptions:l}},[e,t,n,r,i])};function th(e){var t=o.useRef();t.current=e;var n=o.useCallback(function(){return t.current.apply(t,arguments)},[]);return n}var nh=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],oh=["inputValue"];var rh=o.forwardRef(function(e,t){var n=e.id,r=e.mode,i=e.prefixCls,a=void 0===i?"rc-select":i,c=e.backfill,s=e.fieldNames,u=e.inputValue,f=e.searchValue,m=e.onSearch,g=e.autoClearSearchValue,v=void 0===g||g,h=e.onSelect,b=e.onDeselect,y=e.dropdownMatchSelectWidth,C=void 0===y||y,x=e.filterOption,$=e.filterSort,w=e.optionFilterProp,S=e.optionLabelProp,k=e.options,E=e.optionRender,O=e.children,A=e.defaultActiveFirstOption,I=e.menuItemSelectedIcon,N=e.virtual,M=e.direction,j=e.listHeight,P=void 0===j?200:j,R=e.listItemHeight,T=void 0===R?20:R,z=e.labelRender,B=e.value,H=e.defaultValue,D=e.labelInValue,L=e.onChange,F=e.maxCount,W=(0,cr.A)(e,nh),_=Uv(n),K=vv(r),q=!(k||!O),V=o.useMemo(function(){return(void 0!==x||"combobox"!==r)&&x},[x,r]),X=o.useMemo(function(){return uv(s,q)},[JSON.stringify(s),q]),G=Ln("",{value:void 0!==f?f:u,postState:function(e){return e||""}}),Y=(0,ke.A)(G,2),U=Y[0],Q=Y[1],Z=eh(k,O,X,w,S),J=Z.valueOptions,ee=Z.labelOptions,te=Z.options,ne=o.useCallback(function(e){return Sg(e).map(function(e){var t,n,o,r,i,a;(function(e){return!e||"object"!==(0,p.A)(e)})(e)?t=e:(o=e.key,n=e.label,t=null!==(a=e.value)&&void 0!==a?a:o);var l,c=J.get(t);c&&(void 0===n&&(n=null===c||void 0===c?void 0:c[S||X.label]),void 0===o&&(o=null!==(l=null===c||void 0===c?void 0:c.key)&&void 0!==l?l:t),r=null===c||void 0===c?void 0:c.disabled,i=null===c||void 0===c?void 0:c.title);return{label:n,value:t,key:o,disabled:r,title:i}})},[X,S,J]),oe=Ln(H,{value:B}),re=(0,ke.A)(oe,2),ie=re[0],ae=re[1],le=o.useMemo(function(){var e,t=ne(K&&null===ie?[]:ie);return"combobox"===r&&function(e){return!e&&0!==e}(null===(e=t[0])||void 0===e?void 0:e.value)?[]:t},[ie,ne,r,K]),ce=function(e,t){var n=o.useRef({values:new Map,options:new Map});return[o.useMemo(function(){var o=n.current,r=o.values,i=o.options,a=e.map(function(e){var t;return void 0===e.label?(0,d.A)((0,d.A)({},e),{},{label:null===(t=r.get(e.value))||void 0===t?void 0:t.label}):e}),l=new Map,c=new Map;return a.forEach(function(e){l.set(e.value,e),c.set(e.value,t.get(e.value)||i.get(e.value))}),n.current.values=l,n.current.options=c,a},[e,t]),o.useCallback(function(e){return t.get(e)||n.current.options.get(e)},[t])]}(le,J),ue=(0,ke.A)(ce,2),de=ue[0],pe=ue[1],fe=o.useMemo(function(){if(!r&&1===de.length){var e=de[0];if(null===e.value&&(null===e.label||void 0===e.label))return[]}return de.map(function(e){var t;return(0,d.A)((0,d.A)({},e),{},{label:null!==(t="function"===typeof z?z(e):e.label)&&void 0!==t?t:e.value})})},[r,de,z]),me=o.useMemo(function(){return new Set(de.map(function(e){return e.value}))},[de]);o.useEffect(function(){if("combobox"===r){var e,t=null===(e=de[0])||void 0===e?void 0:e.value;Q(function(e){return void 0!==e&&null!==e}(t)?String(t):"")}},[de]);var ge=th(function(e,t){var n=null!==t&&void 0!==t?t:e;return(0,Ee.A)((0,Ee.A)({},X.value,e),X.label,n)}),ve=function(e,t,n,r,i){return o.useMemo(function(){if(!n||!1===r)return e;var o=t.options,a=t.label,l=t.value,c=[],s="function"===typeof r,u=n.toUpperCase(),p=s?r:function(e,t){return i?Xv(t[i],u):t[o]?Xv(t["children"!==a?a:"label"],u):Xv(t[l],u)},f=s?function(e){return dv(e)}:function(e){return e};return e.forEach(function(e){if(e[o])if(p(n,f(e)))c.push(e);else{var t=e[o].filter(function(e){return p(n,f(e))});t.length&&c.push((0,d.A)((0,d.A)({},e),{},(0,Ee.A)({},o,t)))}else p(n,f(e))&&c.push(e)}),c},[e,r,i,n,t])}(o.useMemo(function(){if("tags"!==r)return te;var e=se(te);return se(de).sort(function(e,t){return e.value<t.value?-1:1}).forEach(function(t){var n=t.value;(function(e){return J.has(e)})(n)||e.push(ge(n,t.label))}),e},[ge,te,J,de,r]),X,U,V,w),he=o.useMemo(function(){return"tags"!==r||!U||ve.some(function(e){return e[w||"value"]===U})||ve.some(function(e){return e[X.value]===U})?ve:[ge(U)].concat(se(ve))},[ge,w,r,ve,U,X]),be=function e(t){return se(t).sort(function(e,t){return $(e,t,{searchValue:U})}).map(function(t){return Array.isArray(t.options)?(0,d.A)((0,d.A)({},t),{},{options:t.options.length>0?e(t.options):t.options}):t})},ye=o.useMemo(function(){return $?be(he):he},[he,$,U]),Ce=o.useMemo(function(){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.fieldNames,o=t.childrenAsData,r=[],i=uv(n,!1),a=i.label,l=i.value,c=i.options,s=i.groupLabel;return function e(t,n){Array.isArray(t)&&t.forEach(function(t){if(n||!(c in t)){var i=t[l];r.push({key:cv(t,r.length),groupOption:n,data:t,label:t[a],value:i})}else{var u=t[s];void 0===u&&o&&(u=t.label),r.push({key:cv(t,r.length),group:!0,data:t,label:u}),e(t[c],!0)}})}(e,!1),r}(ye,{fieldNames:X,childrenAsData:q})},[ye,X,q]),xe=function(e){var t=ne(e);if(ae(t),L&&(t.length!==de.length||t.some(function(e,t){var n;return(null===(n=de[t])||void 0===n?void 0:n.value)!==(null===e||void 0===e?void 0:e.value)}))){var n=D?t:t.map(function(e){return e.value}),o=t.map(function(e){return dv(pe(e.value))});L(K?n:n[0],K?o:o[0])}},$e=o.useState(null),we=(0,ke.A)($e,2),Se=we[0],Oe=we[1],Ae=o.useState(0),Ie=(0,ke.A)(Ae,2),Ne=Ie[0],Me=Ie[1],je=void 0!==A?A:"combobox"!==r,Pe=o.useCallback(function(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).source,o=void 0===n?"keyboard":n;Me(t),c&&"combobox"===r&&null!==e&&"keyboard"===o&&Oe(String(e))},[c,r]),Re=function(e,t,n){var o=function(){var t,n=pe(e);return[D?{label:null===n||void 0===n?void 0:n[X.label],value:e,key:null!==(t=null===n||void 0===n?void 0:n.key)&&void 0!==t?t:e}:e,dv(n)]};if(t&&h){var r=o(),i=(0,ke.A)(r,2),a=i[0],l=i[1];h(a,l)}else if(!t&&b&&"clear"!==n){var c=o(),s=(0,ke.A)(c,2),u=s[0],d=s[1];b(u,d)}},Te=th(function(e,t){var n,o=!K||t.selected;n=o?K?[].concat(se(de),[e]):[e]:de.filter(function(t){return t.value!==e}),xe(n),Re(e,o),"combobox"===r?Oe(""):vv&&!v||(Q(""),Oe(""))}),ze=o.useMemo(function(){var e=!1!==N&&!1!==C;return(0,d.A)((0,d.A)({},Z),{},{flattenOptions:Ce,onActiveValue:Pe,defaultActiveFirstOption:je,onSelect:Te,menuItemSelectedIcon:I,rawValues:me,fieldNames:X,virtual:e,direction:M,listHeight:P,listItemHeight:T,childrenAsData:q,maxCount:F,optionRender:E})},[F,Z,Ce,Pe,je,Te,I,me,X,N,C,M,P,T,q,E]);return o.createElement(pv.Provider,{value:ze},o.createElement(bv,(0,l.A)({},W,{id:_,prefixCls:a,ref:t,omitDomProps:oh,mode:r,displayValues:fe,onDisplayValuesChange:function(e,t){xe(e);var n=t.type,o=t.values;"remove"!==n&&"clear"!==n||o.forEach(function(e){Re(e.value,!1,n)})},direction:M,searchValue:U,onSearch:function(e,t){if(Q(e),Oe(null),"submit"!==t.source)"blur"!==t.source&&("combobox"===r&&xe(e),null===m||void 0===m||m(e));else{var n=(e||"").trim();if(n){var o=Array.from(new Set([].concat(se(me),[n])));xe(o),Re(n,!0),Q("")}}},autoClearSearchValue:v,onSearchSplit:function(e){var t=e;"tags"!==r&&(t=e.map(function(e){var t=ee.get(e);return null===t||void 0===t?void 0:t.value}).filter(function(e){return void 0!==e}));var n=Array.from(new Set([].concat(se(me),se(t))));xe(n),n.forEach(function(e){Re(e,!0)})},dropdownMatchSelectWidth:C,OptionList:Vv,emptyOptions:!Ce.length,activeValue:Se,activeDescendantId:"".concat(_,"_list_").concat(Ne)})))});var ih=rh;ih.Option=$v,ih.OptGroup=Cv;const ah=ih;function lh(e,t,n){return a()({[`${e}-status-success`]:"success"===t,[`${e}-status-warning`]:"warning"===t,[`${e}-status-error`]:"error"===t,[`${e}-status-validating`]:"validating"===t,[`${e}-has-feedback`]:n})}const ch=(e,t)=>t||e;const sh=()=>{const[,e]=Ko(),[t]=Yl("Empty"),n=new wo.Y(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return o.createElement("svg",{style:n,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},o.createElement("title",null,(null===t||void 0===t?void 0:t.description)||"Empty"),o.createElement("g",{fill:"none",fillRule:"evenodd"},o.createElement("g",{transform:"translate(24 31.67)"},o.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),o.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),o.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),o.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),o.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),o.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),o.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},o.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),o.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))};const uh=()=>{const[,e]=Ko(),[t]=Yl("Empty"),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:i,colorBgContainer:a}=e,{borderColor:l,shadowColor:c,contentColor:s}=(0,o.useMemo)(()=>({borderColor:new wo.Y(n).onBackground(a).toHexString(),shadowColor:new wo.Y(r).onBackground(a).toHexString(),contentColor:new wo.Y(i).onBackground(a).toHexString()}),[n,r,i,a]);return o.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},o.createElement("title",null,(null===t||void 0===t?void 0:t.description)||"Empty"),o.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},o.createElement("ellipse",{fill:c,cx:"32",cy:"33",rx:"32",ry:"7"}),o.createElement("g",{fillRule:"nonzero",stroke:l},o.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),o.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:s}))))},dh=e=>{const{componentCls:t,margin:n,marginXS:o,marginXL:r,fontSize:i,lineHeight:a}=e;return{[t]:{marginInline:o,fontSize:i,lineHeight:a,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:o,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorTextDescription},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:r,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:o,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},ph=qo("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:o}=e,r=Jn(e,{emptyImgCls:`${t}-img`,emptyImgHeight:o(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:o(n).mul(.875).equal()});return[dh(r)]});var fh=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const mh=o.createElement(sh,null),gh=o.createElement(uh,null),vh=e=>{const{className:t,rootClassName:n,prefixCls:r,image:i=mh,description:l,children:c,imageStyle:s,style:u,classNames:d,styles:p}=e,f=fh(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:m,direction:g,className:v,style:h,classNames:b,styles:y}=Se("empty"),C=m("empty",r),[x,$,w]=ph(C),[S]=Yl("Empty"),k="undefined"!==typeof l?l:null===S||void 0===S?void 0:S.description,E="string"===typeof k?k:"empty";let O=null;return O="string"===typeof i?o.createElement("img",{alt:E,src:i}):i,x(o.createElement("div",Object.assign({className:a()($,w,C,v,{[`${C}-normal`]:i===gh,[`${C}-rtl`]:"rtl"===g},t,n,b.root,null===d||void 0===d?void 0:d.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},y.root),h),null===p||void 0===p?void 0:p.root),u)},f),o.createElement("div",{className:a()(`${C}-image`,b.image,null===d||void 0===d?void 0:d.image),style:Object.assign(Object.assign(Object.assign({},s),y.image),null===p||void 0===p?void 0:p.image)},O),k&&o.createElement("div",{className:a()(`${C}-description`,b.description,null===d||void 0===d?void 0:d.description),style:Object.assign(Object.assign({},y.description),null===p||void 0===p?void 0:p.description)},k),c&&o.createElement("div",{className:a()(`${C}-footer`,b.footer,null===d||void 0===d?void 0:d.footer),style:Object.assign(Object.assign({},y.footer),null===p||void 0===p?void 0:p.footer)},c)))};vh.PRESENTED_IMAGE_DEFAULT=mh,vh.PRESENTED_IMAGE_SIMPLE=gh;const hh=vh,bh=e=>{const{componentName:t}=e,{getPrefixCls:n}=(0,o.useContext)(xe),i=n("empty");switch(t){case"Table":case"List":return r().createElement(hh,{image:hh.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return r().createElement(hh,{image:hh.PRESENTED_IMAGE_SIMPLE,className:`${i}-small`});case"Table.filter":return null;default:return r().createElement(hh,null)}},yh=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;var r,i;const{variant:a,[e]:l}=o.useContext(xe),c=o.useContext(Ap),s=null===l||void 0===l?void 0:l.variant;let u;u="undefined"!==typeof t?t:!1===n?"borderless":null!==(i=null!==(r=null!==c&&void 0!==c?c:s)&&void 0!==r?r:a)&&void 0!==i?i:"outlined";return[u,Ce.includes(u)]};const Ch=function(e,t){return e||(e=>{const t={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:"scroll"===e?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},t),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},t),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},t),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},t),{points:["br","tr"],offset:[0,-4]})}})(t)},xh=new En("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),$h=new En("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),wh=new En("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Sh=new En("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),kh=new En("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),Eh=new En("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),Oh=new En("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),Ah=new En("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),Ih={"slide-up":{inKeyframes:xh,outKeyframes:$h},"slide-down":{inKeyframes:wh,outKeyframes:Sh},"slide-left":{inKeyframes:kh,outKeyframes:Eh},"slide-right":{inKeyframes:Oh,outKeyframes:Ah}},Nh=(e,t)=>{const{antCls:n}=e,o=`${n}-${t}`,{inKeyframes:r,outKeyframes:i}=Ih[t];return[wf(o,r,i,e.motionDurationMid),{[`\n ${o}-enter,\n ${o}-appear\n `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${o}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},Mh=new En("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),jh=new En("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),Ph=new En("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Rh=new En("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Th=new En("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),zh=new En("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Bh={"move-up":{inKeyframes:new En("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 En("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:Mh,outKeyframes:jh},"move-left":{inKeyframes:Ph,outKeyframes:Rh},"move-right":{inKeyframes:Th,outKeyframes:zh}},Hh=(e,t)=>{const{antCls:n}=e,o=`${n}-${t}`,{inKeyframes:r,outKeyframes:i}=Bh[t];return[wf(o,r,i,e.motionDurationMid),{[`\n ${o}-enter,\n ${o}-appear\n `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${o}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Dh=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:o,optionPadding:r}=e;return{position:"relative",display:"block",minHeight:t,padding:r,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:o,boxSizing:"border-box"}},Lh=e=>{const{antCls:t,componentCls:n}=e,o=`${n}-item`,r=`&${t}-slide-up-enter${t}-slide-up-enter-active`,i=`&${t}-slide-up-appear${t}-slide-up-appear-active`,a=`&${t}-slide-up-leave${t}-slide-up-leave-active`,l=`${n}-dropdown-placement-`,c=`${o}-option-selected`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},po(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[`\n ${r}${l}bottomLeft,\n ${i}${l}bottomLeft\n `]:{animationName:xh},[`\n ${r}${l}topLeft,\n ${i}${l}topLeft,\n ${r}${l}topRight,\n ${i}${l}topRight\n `]:{animationName:wh},[`${a}${l}bottomLeft`]:{animationName:$h},[`\n ${a}${l}topLeft,\n ${a}${l}topRight\n `]:{animationName:Sh},"&-hidden":{display:"none"},[o]:Object.assign(Object.assign({},Dh(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},uo),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${o}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${o}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${o}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${o}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},Dh(e)),{color:e.colorTextDisabled})}),[`${c}:has(+ ${c})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${c}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},Nh(e,"slide-up"),Nh(e,"slide-down"),Hh(e,"move-up"),Hh(e,"move-down")]},Fh=e=>{const{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:o,INTERNAL_FIXED_ITEM_MARGIN:r}=e,i=e.max(e.calc(n).sub(o).equal(),0);return{basePadding:i,containerPadding:e.max(e.calc(i).sub(r).equal(),0),itemHeight:nt(t),itemLineHeight:nt(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},Wh=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:o,motionDurationSlow:r,paddingXS:i,multipleItemColorDisabled:a,multipleItemBorderColorDisabled:l,colorIcon:c,colorIconHover:s,INTERNAL_FIXED_ITEM_MARGIN:u}=e,d=`${t}-selection-overflow`;return{[d]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"calc(100% - 4px)",display:"inline-flex"},[`${t}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:u,borderRadius:o,cursor:"default",transition:`font-size ${r}, line-height ${r}, height ${r}`,marginInlineEnd:e.calc(u).mul(2).equal(),paddingInlineStart:i,paddingInlineEnd:e.calc(i).div(2).equal(),[`${t}-disabled&`]:{color:a,borderColor:l,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(i).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},{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"}}),{display:"inline-flex",alignItems:"center",color:c,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:s}})}}}},_h=(e,t)=>{const{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:o}=e,r=`${n}-selection-overflow`,i=e.multipleSelectItemHeight,a=(e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:o}=e;return e.calc(n).sub(t).div(2).sub(o).equal()})(e),l=t?`${n}-${t}`:"",c=Fh(e);return{[`${n}-multiple${l}`]:Object.assign(Object.assign({},Wh(e)),{[`${n}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:c.basePadding,paddingBlock:c.containerPadding,borderRadius:e.borderRadius,[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${nt(o)} 0`,lineHeight:nt(i),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:c.itemHeight,lineHeight:nt(c.itemLineHeight)},[`${n}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:nt(i),marginBlock:o}},[`${n}-prefix`]:{marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(c.basePadding).equal()},[`${r}-item + ${r}-item,\n ${n}-prefix + ${n}-selection-wrap\n `]:{[`${n}-selection-search`]:{marginInlineStart:0},[`${n}-selection-placeholder`]:{insetInlineStart:0}},[`${r}-item-suffix`]:{minHeight:c.itemHeight,marginBlock:o},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(a).equal(),"\n &-input,\n &-mirror\n ":{height:i,fontFamily:e.fontFamily,lineHeight:nt(i),transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(c.basePadding).equal(),insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}})}};function Kh(e,t){const{componentCls:n}=e,o=t?`${n}-${t}`:"",r={[`${n}-multiple${o}`]:{fontSize:e.fontSize,[`${n}-selector`]:{[`${n}-show-search&`]:{cursor:"text"}},[`\n &${n}-show-arrow ${n}-selector,\n &${n}-allow-clear ${n}-selector\n `]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[_h(e,t),r]}const qh=e=>{const{componentCls:t}=e,n=Jn(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),o=Jn(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[Kh(e),Kh(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},Kh(o,"lg")]};function Vh(e,t){const{componentCls:n,inputPaddingHorizontalBase:o,borderRadius:r}=e,i=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),a=t?`${n}-${t}`:"";return{[`${n}-single${a}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},po(e,!0)),{display:"flex",borderRadius:r,flex:"1 1 auto",[`${n}-selection-wrap:after`]:{lineHeight:nt(i)},[`${n}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[`\n ${n}-selection-item,\n ${n}-selection-placeholder\n `]:{display:"block",padding:0,lineHeight:nt(i),transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:empty:after`,`${n}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`\n &${n}-show-arrow ${n}-selection-item,\n &${n}-show-arrow ${n}-selection-search,\n &${n}-show-arrow ${n}-selection-placeholder\n `]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${nt(o)}`,[`${n}-selection-search-input`]:{height:i,fontSize:e.fontSize},"&:after":{lineHeight:nt(i)}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${nt(o)}`,"&:after":{display:"none"}}}}}}}function Xh(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[Vh(e),Vh(Jn(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selector`]:{padding:`0 ${nt(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},[`\n &${t}-show-arrow ${t}-selection-item,\n &${t}-show-arrow ${t}-selection-placeholder\n `]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},Vh(Jn(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const Gh=(e,t)=>{const{componentCls:n,antCls:o,controlOutlineWidth:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${nt(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${n}-disabled):not(${n}-customize-input):not(${o}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${nt(r)} ${t.activeOutlineColor}`,outline:0},[`${n}-prefix`]:{color:t.color}}}},Yh=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},Gh(e,t))}),Uh=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},Gh(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),Yh(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),Yh(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${nt(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),Qh=(e,t)=>{const{componentCls:n,antCls:o}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${nt(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${n}-disabled):not(${n}-customize-input):not(${o}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{background:t.hoverBg},[`${n}-focused& ${n}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},Zh=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},Qh(e,t))}),Jh=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},Qh(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),Zh(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),Zh(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.colorBgContainer,border:`${nt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),eb=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",border:`${nt(e.lineWidth)} ${e.lineType} transparent`},[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${nt(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`},[`&${e.componentCls}-status-error`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorError}},[`&${e.componentCls}-status-warning`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorWarning}}}}),tb=(e,t)=>{const{componentCls:n,antCls:o}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{borderWidth:`0 0 ${nt(e.lineWidth)} 0`,borderStyle:`none none ${e.lineType} none`,borderColor:t.borderColor,background:e.selectorBg,borderRadius:0},[`&:not(${n}-disabled):not(${n}-customize-input):not(${o}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,outline:0},[`${n}-prefix`]:{color:t.color}}}},nb=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},tb(e,t))}),ob=e=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},tb(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),nb(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),nb(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${nt(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),rb=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},Uh(e)),Jh(e)),eb(e)),ob(e))}),ib=e=>{const{componentCls:t}=e;return{position:"relative",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},ab=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none",appearance:"none"}}}},lb=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:o,iconCls:r}=e,i={[`${n}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}};return{[n]:Object.assign(Object.assign({},po(e)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},ib(e)),ab(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},uo),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},uo),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},{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"}}),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:o,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${e.motionDurationSlow} ease`,[r]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${n}-suffix)`]:{pointerEvents:"auto"}},[`${n}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${n}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${n}-prefix`]:{flex:"none",marginInlineEnd:e.selectAffixPadding},[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:o,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto",transform:"translateZ(0)","&:before":{display:"block"},"&:hover":{color:e.colorIcon}},"@media(hover:none)":i,"&:hover":i}),[`${n}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(o).add(e.fontSize).add(e.paddingXS).equal()}}}}}},cb=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},lb(e),Xh(e),qh(e),Lh(e),{[`${t}-rtl`]:{direction:"rtl"}},gu(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},sb=qo("Select",(e,t)=>{let{rootPrefixCls:n}=t;const o=Jn(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[cb(o),rb(o)]},e=>{const{fontSize:t,lineHeight:n,lineWidth:o,controlHeight:r,controlHeightSM:i,controlHeightLG:a,paddingXXS:l,controlPaddingHorizontal:c,zIndexPopupBase:s,colorText:u,fontWeightStrong:d,controlItemBgActive:p,controlItemBgHover:f,colorBgContainer:m,colorFillSecondary:g,colorBgContainerDisabled:v,colorTextDisabled:h,colorPrimaryHover:b,colorPrimary:y,controlOutline:C}=e,x=2*l,$=2*o,w=Math.min(r-x,r-$),S=Math.min(i-x,i-$),k=Math.min(a-x,a-$);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(l/2),zIndexPopup:s+50,optionSelectedColor:u,optionSelectedFontWeight:d,optionSelectedBg:p,optionActiveBg:f,optionPadding:`${(r-t*n)/2}px ${c}px`,optionFontSize:t,optionLineHeight:n,optionHeight:r,selectorBg:m,clearBg:m,singleItemHeightLG:a,multipleItemBg:g,multipleItemBorderColor:"transparent",multipleItemHeight:w,multipleItemHeightSM:S,multipleItemHeightLG:k,multipleSelectorBgDisabled:v,multipleItemColorDisabled:h,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(1.25*e.fontSize),hoverBorderColor:b,activeBorderColor:y,activeOutlineColor:C,selectAffixPadding:l}},{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var ub=n(64236),db=n(76922),pb=n(27158);function fb(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:r,removeIcon:i,loading:a,multiple:l,hasFeedback:c,prefixCls:s,showSuffixIcon:u,feedbackIcon:d,showArrow:p,componentName:f}=e;const m=null!==n&&void 0!==n?n:o.createElement(rr.A,null),g=e=>null!==t||c||p?o.createElement(o.Fragment,null,!1!==u&&e,c&&d):null;let v=null;if(void 0!==t)v=g(t);else if(a)v=g(o.createElement(la.A,{spin:!0}));else{const e=`${s}-suffix`;v=t=>{let{open:n,showSearch:r}=t;return g(n&&r?o.createElement(pb.A,{className:e}):o.createElement(db.A,{className:e}))}}let h=null;h=void 0!==r?r:l?o.createElement(ub.A,null):null;let b=null;return b=void 0!==i?i:o.createElement(ir.A,null),{clearIcon:m,suffixIcon:v,itemIcon:h,removeIcon:b}}function mb(e,t){return void 0!==t?t:null!==e}var gb=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const vb="SECRET_COMBOBOX_MODE_DO_NOT_USE";const hb=o.forwardRef((e,t)=>{var n,r,i,l,c;const{prefixCls:s,bordered:u,className:d,rootClassName:p,getPopupContainer:f,popupClassName:m,dropdownClassName:g,listHeight:v=256,placement:h,listItemHeight:b,size:y,disabled:C,notFoundContent:x,status:$,builtinPlacements:w,dropdownMatchSelectWidth:S,popupMatchSelectWidth:k,direction:E,style:O,allowClear:A,variant:I,dropdownStyle:N,transitionName:M,tagRender:j,maxCount:P,prefix:R,dropdownRender:T,popupRender:z,onDropdownVisibleChange:B,onOpenChange:H,styles:D,classNames:L}=e,F=gb(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount","prefix","dropdownRender","popupRender","onDropdownVisibleChange","onOpenChange","styles","classNames"]),{getPopupContainer:W,getPrefixCls:_,renderEmpty:K,direction:q,virtual:V,popupMatchSelectWidth:X,popupOverflow:G}=o.useContext(xe),{showSearch:Y,style:U,styles:Q,className:Z,classNames:J}=Se("select"),[,ee]=Ko(),te=null!==b&&void 0!==b?b:null===ee||void 0===ee?void 0:ee.controlHeight,ne=_("select",s),oe=_(),re=null!==E&&void 0!==E?E:q,{compactSize:ie,compactItemClassnames:ae}=mc(ne,re),[le,ce]=yh("select",I,u),se=Mi(ne),[ue,de,pe]=sb(ne,se),fe=o.useMemo(()=>{const{mode:t}=e;if("combobox"!==t)return t===vb?"combobox":t},[e.mode]),me="multiple"===fe||"tags"===fe,ge=mb(e.suffixIcon,e.showArrow),ve=null!==(n=null!==k&&void 0!==k?k:S)&&void 0!==n?n:X,he=(null===(r=null===D||void 0===D?void 0:D.popup)||void 0===r?void 0:r.root)||(null===(i=Q.popup)||void 0===i?void 0:i.root)||N,be=z||T,ye=H||B,{status:Ce,hasFeedback:$e,isFormItemInput:we,feedbackIcon:ke}=o.useContext(Ep),Ee=ch(Ce,$);let Oe;Oe=void 0!==x?x:"combobox"===fe?null:(null===K||void 0===K?void 0:K("Select"))||o.createElement(bh,{componentName:"Select"});const{suffixIcon:Ae,itemIcon:Ie,removeIcon:Ne,clearIcon:Me}=fb(Object.assign(Object.assign({},F),{multiple:me,hasFeedback:$e,feedbackIcon:ke,showSuffixIcon:ge,prefixCls:ne,componentName:"Select"})),je=!0===A?{clearIcon:Me}:A,Pe=Ul(F,["suffixIcon","itemIcon"]),Re=a()((null===(l=null===L||void 0===L?void 0:L.popup)||void 0===l?void 0:l.root)||(null===(c=null===J||void 0===J?void 0:J.popup)||void 0===c?void 0:c.root)||m||g,{[`${ne}-dropdown-${re}`]:"rtl"===re},p,J.root,null===L||void 0===L?void 0:L.root,pe,se,de),Te=lc(e=>{var t;return null!==(t=null!==y&&void 0!==y?y:ie)&&void 0!==t?t:e}),ze=o.useContext(Ga),Be=null!==C&&void 0!==C?C:ze,He=a()({[`${ne}-lg`]:"large"===Te,[`${ne}-sm`]:"small"===Te,[`${ne}-rtl`]:"rtl"===re,[`${ne}-${le}`]:ce,[`${ne}-in-form-item`]:we},lh(ne,Ee,$e),ae,Z,d,J.root,null===L||void 0===L?void 0:L.root,p,pe,se,de),De=o.useMemo(()=>void 0!==h?h:"rtl"===re?"bottomRight":"bottomLeft",[h,re]);const[Le]=fa("SelectLike",null===he||void 0===he?void 0:he.zIndex);return ue(o.createElement(ah,Object.assign({ref:t,virtual:V,showSearch:Y},Pe,{style:Object.assign(Object.assign(Object.assign(Object.assign({},Q.root),null===D||void 0===D?void 0:D.root),U),O),dropdownMatchSelectWidth:ve,transitionName:Xl(oe,"slide-up",M),builtinPlacements:Ch(w,G),listHeight:v,listItemHeight:te,mode:fe,prefixCls:ne,placement:De,direction:re,prefix:R,suffixIcon:Ae,menuItemSelectedIcon:Ie,removeIcon:Ne,allowClear:je,notFoundContent:Oe,className:He,getPopupContainer:f||W,dropdownClassName:Re,disabled:Be,dropdownStyle:Object.assign(Object.assign({},he),{zIndex:Le}),maxCount:me?P:void 0,tagRender:me?j:void 0,dropdownRender:be,onDropdownVisibleChange:ye})))}),bb=Qm(hb,"dropdownAlign");hb.SECRET_COMBOBOX_MODE_DO_NOT_USE=vb,hb.Option=$v,hb.OptGroup=Cv,hb._InternalPanelDoNotUseOrYouWillBeFired=bb;const yb=hb,{Option:Cb}=yb;function xb(e){return(null===e||void 0===e?void 0:e.type)&&(e.type.isSelectOption||e.type.isSelectOptGroup)}const $b=o.forwardRef((e,t)=>{var n,r;const{prefixCls:i,className:l,popupClassName:c,dropdownClassName:u,children:d,dataSource:p,dropdownStyle:f,dropdownRender:m,popupRender:g,onDropdownVisibleChange:v,onOpenChange:h,styles:b,classNames:y}=e,C=s(d),x=(null===(n=null===b||void 0===b?void 0:b.popup)||void 0===n?void 0:n.root)||f,$=(null===(r=null===y||void 0===y?void 0:y.popup)||void 0===r?void 0:r.root)||c||u,w=g||m,S=h||v;let k;1===C.length&&o.isValidElement(C[0])&&!xb(C[0])&&([k]=C);const E=k?()=>k:void 0;let O;O=C.length&&xb(C[0])?d:p?p.map(e=>{if(o.isValidElement(e))return e;switch(typeof e){case"string":return o.createElement(Cb,{key:e,value:e},e);case"object":{const{value:t}=e;return o.createElement(Cb,{key:t,value:t},e.text)}default:return}}):[];const{getPrefixCls:A}=o.useContext(xe),I=A("select",i),[N]=fa("SelectLike",null===x||void 0===x?void 0:x.zIndex);return o.createElement(yb,Object.assign({ref:t,suffixIcon:null},Ul(e,["dataSource","dropdownClassName","popupClassName"]),{prefixCls:I,classNames:{popup:{root:$},root:null===y||void 0===y?void 0:y.root},styles:{popup:{root:Object.assign(Object.assign({},x),{zIndex:N})},root:null===b||void 0===b?void 0:b.root},className:a()(`${I}-auto-complete`,l),mode:yb.SECRET_COMBOBOX_MODE_DO_NOT_USE,popupRender:w,onOpenChange:S,getInputElement:E}),O)}),{Option:wb}=yb,Sb=Qm($b,"dropdownAlign",e=>Ul(e,["visible"])),kb=$b;kb.Option=wb,kb._InternalPanelDoNotUseOrYouWillBeFired=Sb;const Eb=kb,Ob=(e,t)=>{"undefined"!==typeof(null===e||void 0===e?void 0:e.addEventListener)?e.addEventListener("change",t):"undefined"!==typeof(null===e||void 0===e?void 0:e.addListener)&&e.addListener(t)},Ab=(e,t)=>{"undefined"!==typeof(null===e||void 0===e?void 0:e.removeEventListener)?e.removeEventListener("change",t):"undefined"!==typeof(null===e||void 0===e?void 0:e.removeListener)&&e.removeListener(t)},Ib=["xxl","xl","lg","md","sm","xs"],Nb=(e,t)=>{if(t)for(const n of Ib)if(e[n]&&void 0!==(null===t||void 0===t?void 0:t[n]))return t[n]},Mb=()=>{const[,e]=Ko(),t=(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)`}))((e=>{const t=e,n=[].concat(Ib).reverse();return n.forEach((e,o)=>{const r=e.toUpperCase(),i=`screen${r}Min`,a=`screen${r}`;if(!(t[i]<=t[a]))throw new Error(`${i}<=${a} fails : !(${t[i]}<=${t[a]})`);if(o<n.length-1){const e=`screen${r}Max`;if(!(t[a]<=t[e]))throw new Error(`${a}<=${e} fails : !(${t[a]}<=${t[e]})`);const i=`screen${n[o+1].toUpperCase()}Min`;if(!(t[e]<=t[i]))throw new Error(`${e}<=${i} fails : !(${t[e]}<=${t[i]})`)}}),e})(e));return r().useMemo(()=>{const e=new Map;let n=-1,o={};return{responsiveMap:t,matchHandlers:{},dispatch:t=>(o=t,e.forEach(e=>e(o)),e.size>=1),subscribe(t){return e.size||this.register(),n+=1,e.set(n,t),t(o),n},unsubscribe(t){e.delete(t),e.size||this.unregister()},register(){Object.entries(t).forEach(e=>{let[t,n]=e;const r=e=>{let{matches:n}=e;this.dispatch(Object.assign(Object.assign({},o),{[t]:n}))},i=window.matchMedia(n);Ob(i,r),this.matchHandlers[n]={mql:i,listener:r},r(i)})},unregister(){Object.values(t).forEach(e=>{const t=this.matchHandlers[e];Ab(null===t||void 0===t?void 0:t.mql,null===t||void 0===t?void 0:t.listener)}),e.clear()}}},[e])};function jb(){const[,e]=o.useReducer(e=>e+1,0);return e}const Pb=function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=(0,o.useRef)(t),r=jb(),i=Mb();return ut(()=>{const t=i.subscribe(t=>{n.current=t,e&&r()});return()=>i.unsubscribe(t)},[]),n.current},Rb=o.createContext({}),Tb=e=>{const{antCls:t,componentCls:n,iconCls:o,avatarBg:r,avatarColor:i,containerSize:a,containerSizeLG:l,containerSizeSM:c,textFontSize:s,textFontSizeLG:u,textFontSizeSM:d,borderRadius:p,borderRadiusLG:f,borderRadiusSM:m,lineWidth:g,lineType:v}=e,h=(e,t,r)=>({width:e,height:e,borderRadius:"50%",[`&${n}-square`]:{borderRadius:r},[`&${n}-icon`]:{fontSize:t,[`> ${o}`]:{margin:0}}});return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},po(e)),{position:"relative",display:"inline-flex",justifyContent:"center",alignItems:"center",overflow:"hidden",color:i,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:r,border:`${nt(g)} ${v} transparent`,"&-image":{background:"transparent"},[`${t}-image-img`]:{display:"block"}}),h(a,s,p)),{"&-lg":Object.assign({},h(l,u,f)),"&-sm":Object.assign({},h(c,d,m)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}},zb=e=>{const{componentCls:t,groupBorderColor:n,groupOverlapping:o,groupSpace:r}=e;return{[`${t}-group`]:{display:"inline-flex",[t]:{borderColor:n},"> *:not(:first-child)":{marginInlineStart:o}},[`${t}-group-popover`]:{[`${t} + ${t}`]:{marginInlineStart:r}}}},Bb=qo("Avatar",e=>{const{colorTextLightSolid:t,colorTextPlaceholder:n}=e,o=Jn(e,{avatarBg:n,avatarColor:t});return[Tb(o),zb(o)]},e=>{const{controlHeight:t,controlHeightLG:n,controlHeightSM:o,fontSize:r,fontSizeLG:i,fontSizeXL:a,fontSizeHeading3:l,marginXS:c,marginXXS:s,colorBorderBg:u}=e;return{containerSize:t,containerSizeLG:n,containerSizeSM:o,textFontSize:Math.round((i+a)/2),textFontSizeLG:l,textFontSizeSM:r,groupSpace:s,groupOverlapping:-c,groupBorderColor:u}});var Hb=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const Db=o.forwardRef((e,t)=>{const{prefixCls:n,shape:r,size:i,src:l,srcSet:c,icon:s,className:u,rootClassName:d,style:p,alt:f,draggable:m,children:g,crossOrigin:v,gap:h=4,onError:y}=e,C=Hb(e,["prefixCls","shape","size","src","srcSet","icon","className","rootClassName","style","alt","draggable","children","crossOrigin","gap","onError"]),[x,$]=o.useState(1),[w,S]=o.useState(!1),[k,E]=o.useState(!0),O=o.useRef(null),A=o.useRef(null),I=(0,b.K4)(t,O),{getPrefixCls:N,avatar:M}=o.useContext(xe),j=o.useContext(Rb),P=()=>{if(!A.current||!O.current)return;const e=A.current.offsetWidth,t=O.current.offsetWidth;0!==e&&0!==t&&2*h<t&&$(t-2*h<e?(t-2*h)/e:1)};o.useEffect(()=>{S(!0)},[]),o.useEffect(()=>{E(!0),$(1)},[l]),o.useEffect(P,[h]);const R=()=>{!1!==(null===y||void 0===y?void 0:y())&&E(!1)},T=lc(e=>{var t,n;return null!==(n=null!==(t=null!==i&&void 0!==i?i:null===j||void 0===j?void 0:j.size)&&void 0!==t?t:e)&&void 0!==n?n:"default"}),z=Object.keys("object"===typeof T&&T||{}).some(e=>["xs","sm","md","lg","xl","xxl"].includes(e)),B=Pb(z),H=o.useMemo(()=>{if("object"!==typeof T)return{};const e=Ib.find(e=>B[e]),t=T[e];return t?{width:t,height:t,fontSize:t&&(s||g)?t/2:18}:{}},[B,T]);const D=N("avatar",n),L=Mi(D),[F,W,_]=Bb(D,L),K=a()({[`${D}-lg`]:"large"===T,[`${D}-sm`]:"small"===T}),q=o.isValidElement(l),V=r||(null===j||void 0===j?void 0:j.shape)||"circle",X=a()(D,K,null===M||void 0===M?void 0:M.className,`${D}-${V}`,{[`${D}-image`]:q||l&&k,[`${D}-icon`]:!!s},_,L,u,d,W),G="number"===typeof T?{width:T,height:T,fontSize:s?T/2:18}:{};let Y;if("string"===typeof l&&k)Y=o.createElement("img",{src:l,draggable:m,srcSet:c,onError:R,alt:f,crossOrigin:v});else if(q)Y=l;else if(s)Y=s;else if(w||1!==x){const e=`scale(${x})`,t={msTransform:e,WebkitTransform:e,transform:e};Y=o.createElement(ie,{onResize:P},o.createElement("span",{className:`${D}-string`,ref:A,style:Object.assign({},t)},g))}else Y=o.createElement("span",{className:`${D}-string`,style:{opacity:0},ref:A},g);return F(o.createElement("span",Object.assign({},C,{style:Object.assign(Object.assign(Object.assign(Object.assign({},G),H),null===M||void 0===M?void 0:M.style),p),className:X,ref:I}),Y))});const Lb=Db,Fb=e=>e?"function"===typeof e?e():e:null;function Wb(e){var t=e.children,n=e.prefixCls,r=e.id,i=e.overlayInnerStyle,l=e.bodyClassName,c=e.className,s=e.style;return o.createElement("div",{className:a()("".concat(n,"-content"),c),style:s},o.createElement("div",{className:a()("".concat(n,"-inner"),l),id:r,role:"tooltip",style:i},"function"===typeof t?t():t))}var _b={shiftX:64,adjustY:1},Kb={adjustX:1,shiftY:!0},qb=[0,0],Vb={left:{points:["cr","cl"],overflow:Kb,offset:[-4,0],targetOffset:qb},right:{points:["cl","cr"],overflow:Kb,offset:[4,0],targetOffset:qb},top:{points:["bc","tc"],overflow:_b,offset:[0,-4],targetOffset:qb},bottom:{points:["tc","bc"],overflow:_b,offset:[0,4],targetOffset:qb},topLeft:{points:["bl","tl"],overflow:_b,offset:[0,-4],targetOffset:qb},leftTop:{points:["tr","tl"],overflow:Kb,offset:[-4,0],targetOffset:qb},topRight:{points:["br","tr"],overflow:_b,offset:[0,-4],targetOffset:qb},rightTop:{points:["tl","tr"],overflow:Kb,offset:[4,0],targetOffset:qb},bottomRight:{points:["tr","br"],overflow:_b,offset:[0,4],targetOffset:qb},rightBottom:{points:["bl","br"],overflow:Kb,offset:[4,0],targetOffset:qb},bottomLeft:{points:["tl","bl"],overflow:_b,offset:[0,4],targetOffset:qb},leftBottom:{points:["br","bl"],overflow:Kb,offset:[-4,0],targetOffset:qb}};var Xb=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"];const Gb=(0,o.forwardRef)(function(e,t){var n=e.overlayClassName,r=e.trigger,i=void 0===r?["hover"]:r,c=e.mouseEnterDelay,s=void 0===c?0:c,u=e.mouseLeaveDelay,p=void 0===u?.1:u,f=e.overlayStyle,m=e.prefixCls,g=void 0===m?"rc-tooltip":m,v=e.children,h=e.onVisibleChange,b=e.afterVisibleChange,y=e.transitionName,C=e.animation,x=e.motion,$=e.placement,w=void 0===$?"right":$,S=e.align,k=void 0===S?{}:S,E=e.destroyTooltipOnHide,O=void 0!==E&&E,A=e.defaultVisible,I=e.getTooltipContainer,N=e.overlayInnerStyle,M=(e.arrowContent,e.overlay),j=e.id,P=e.showArrow,R=void 0===P||P,T=e.classNames,z=e.styles,B=(0,cr.A)(e,Xb),H=Gu(j),D=(0,o.useRef)(null);(0,o.useImperativeHandle)(t,function(){return D.current});var L=(0,d.A)({},B);"visible"in e&&(L.popupVisible=e.visible);return o.createElement(rv,(0,l.A)({popupClassName:a()(n,null===T||void 0===T?void 0:T.root),prefixCls:g,popup:function(){return o.createElement(Wb,{key:"content",prefixCls:g,id:H,bodyClassName:null===T||void 0===T?void 0:T.body,overlayInnerStyle:(0,d.A)((0,d.A)({},N),null===z||void 0===z?void 0:z.body)},M)},action:i,builtinPlacements:Vb,popupPlacement:w,ref:D,popupAlign:k,getPopupContainer:I,onPopupVisibleChange:h,afterPopupVisibleChange:b,popupTransitionName:y,popupAnimation:C,popupMotion:x,defaultPopupVisible:A,autoDestroy:O,mouseLeaveDelay:p,popupStyle:(0,d.A)((0,d.A)({},f),null===z||void 0===z?void 0:z.root),mouseEnterDelay:s,arrow:R},L),function(){var e=o.Children.only(v),t=(null===e||void 0===e?void 0:e.props)||{},n=(0,d.A)((0,d.A)({},t),{},{"aria-describedby":M?H:null});return o.cloneElement(v,n)}())}),Yb=Gb;function Ub(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:o}=e,r=t/2,i=r,a=1*o/Math.sqrt(2),l=r-o*(1-1/Math.sqrt(2)),c=r-n*(1/Math.sqrt(2)),s=o*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),u=2*r-c,d=s,p=2*r-a,f=l,m=2*r-0,g=i,v=r*Math.sqrt(2)+o*(Math.sqrt(2)-2),h=o*(Math.sqrt(2)-1);return{arrowShadowWidth:v,arrowPath:`path('M 0 ${i} A ${o} ${o} 0 0 0 ${a} ${l} L ${c} ${s} A ${n} ${n} 0 0 1 ${u} ${d} L ${p} ${f} A ${o} ${o} 0 0 0 ${m} ${g} Z')`,arrowPolygon:`polygon(${h}px 100%, 50% ${h}px, ${2*r-h}px 100%, ${h}px 100%)`}}const Qb=(e,t,n)=>{const{sizePopupArrow:o,arrowPolygon:r,arrowPath:i,arrowShadowWidth:a,borderRadiusXS:l,calc:c}=e;return{pointerEvents:"none",width:o,height:o,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:o,height:c(o).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[r,i]},content:'""'},"&::after":{content:'""',position:"absolute",width:a,height:a,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${nt(l)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}};function Zb(e){const{contentRadius:t,limitVerticalRadius:n}=e,o=t>12?t+2:12;return{arrowOffsetHorizontal:o,arrowOffsetVertical:n?8:o}}function Jb(e,t){return e?t:{}}function ey(e,t,n){const{componentCls:o,boxShadowPopoverArrow:r,arrowOffsetVertical:i,arrowOffsetHorizontal:a}=e,{arrowDistance:l=0,arrowPlacement:c={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[o]:Object.assign(Object.assign(Object.assign(Object.assign({[`${o}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},Qb(e,t,r)),{"&:before":{background:t}})]},Jb(!!c.top,{[[`&-placement-top > ${o}-arrow`,`&-placement-topLeft > ${o}-arrow`,`&-placement-topRight > ${o}-arrow`].join(",")]:{bottom:l,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${o}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":a,[`> ${o}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${nt(a)})`,[`> ${o}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),Jb(!!c.bottom,{[[`&-placement-bottom > ${o}-arrow`,`&-placement-bottomLeft > ${o}-arrow`,`&-placement-bottomRight > ${o}-arrow`].join(",")]:{top:l,transform:"translateY(-100%)"},[`&-placement-bottom > ${o}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":a,[`> ${o}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${nt(a)})`,[`> ${o}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),Jb(!!c.left,{[[`&-placement-left > ${o}-arrow`,`&-placement-leftTop > ${o}-arrow`,`&-placement-leftBottom > ${o}-arrow`].join(",")]:{right:{_skip_check_:!0,value:l},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${o}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${o}-arrow`]:{top:i},[`&-placement-leftBottom > ${o}-arrow`]:{bottom:i}})),Jb(!!c.right,{[[`&-placement-right > ${o}-arrow`,`&-placement-rightTop > ${o}-arrow`,`&-placement-rightBottom > ${o}-arrow`].join(",")]:{left:{_skip_check_:!0,value:l},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${o}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${o}-arrow`]:{top:i},[`&-placement-rightBottom > ${o}-arrow`]:{bottom:i}}))}}const ty={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"]}},ny={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"]}},oy=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function ry(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:o,offset:r,borderRadius:i,visibleFirst:a}=e,l=t/2,c={},s=Zb({contentRadius:i,limitVerticalRadius:!0});return Object.keys(ty).forEach(e=>{const i=o&&ny[e]||ty[e],u=Object.assign(Object.assign({},i),{offset:[0,0],dynamicInset:!0});switch(c[e]=u,oy.has(e)&&(u.autoArrow=!1),e){case"top":case"topLeft":case"topRight":u.offset[1]=-l-r;break;case"bottom":case"bottomLeft":case"bottomRight":u.offset[1]=l+r;break;case"left":case"leftTop":case"leftBottom":u.offset[0]=-l-r;break;case"right":case"rightTop":case"rightBottom":u.offset[0]=l+r}if(o)switch(e){case"topLeft":case"bottomLeft":u.offset[0]=-s.arrowOffsetHorizontal-l;break;case"topRight":case"bottomRight":u.offset[0]=s.arrowOffsetHorizontal+l;break;case"leftTop":case"rightTop":u.offset[1]=2*-s.arrowOffsetHorizontal+l;break;case"leftBottom":case"rightBottom":u.offset[1]=2*s.arrowOffsetHorizontal-l}u.overflow=function(e,t,n,o){if(!1===o)return{adjustX:!1,adjustY:!1};const r=o&&"object"===typeof o?o:{},i={};switch(e){case"top":case"bottom":i.shiftX=2*t.arrowOffsetHorizontal+n,i.shiftY=!0,i.adjustY=!0;break;case"left":case"right":i.shiftY=2*t.arrowOffsetVertical+n,i.shiftX=!0,i.adjustX=!0}const a=Object.assign(Object.assign({},i),r);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}(e,s,t,n),a&&(u.htmlRegion="visibleFirst")}),c}function iy(e,t){return xc.reduce((n,o)=>{const r=e[`${o}1`],i=e[`${o}3`],a=e[`${o}6`],l=e[`${o}7`];return Object.assign(Object.assign({},n),t(o,{lightColor:r,lightBorderColor:i,darkColor:a,textColor:l}))},{})}const ay=e=>{const{calc:t,componentCls:n,tooltipMaxWidth:o,tooltipColor:r,tooltipBg:i,tooltipBorderRadius:a,zIndexPopup:l,controlHeight:c,boxShadowSecondary:s,paddingSM:u,paddingXS:d,arrowOffsetHorizontal:p,sizePopupArrow:f}=e,m=t(a).add(f).add(p).equal(),g=t(a).mul(2).add(f).equal();return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},po(e)),{position:"absolute",zIndex:l,display:"block",width:"max-content",maxWidth:o,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":i,[`${n}-inner`]:{minWidth:g,minHeight:c,padding:`${nt(e.calc(u).div(2).equal())} ${nt(d)}`,color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:i,borderRadius:a,boxShadow:s,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:m},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${n}-inner`]:{borderRadius:e.min(a,8)}},[`${n}-content`]:{position:"relative"}}),iy(e,(e,t)=>{let{darkColor:o}=t;return{[`&${n}-${e}`]:{[`${n}-inner`]:{backgroundColor:o},[`${n}-arrow`]:{"--antd-arrow-background-color":o}}}})),{"&-rtl":{direction:"rtl"}})},ey(e,"var(--antd-arrow-background-color)"),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},ly=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},Zb({contentRadius:e.borderRadius,limitVerticalRadius:!0})),Ub(Jn(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),cy=function(e){const t=qo("Tooltip",e=>{const{borderRadius:t,colorTextLightSolid:n,colorBgSpotlight:o}=e,r=Jn(e,{tooltipMaxWidth:250,tooltipColor:n,tooltipBorderRadius:t,tooltipBg:o});return[ay(r),Lf(e,"zoom-big-fast")]},ly,{resetStyle:!1,injectStyle:!(arguments.length>1&&void 0!==arguments[1])||arguments[1]});return t(e)},sy=xc.map(e=>`${e}-inverse`),uy=["success","processing","error","default","warning"];function dy(e){return!(arguments.length>1&&void 0!==arguments[1])||arguments[1]?[].concat(se(sy),se(xc)).includes(e):xc.includes(e)}function py(e,t){const n=dy(t),o=a()({[`${e}-${t}`]:t&&n}),r={},i={};return t&&!n&&(r.background=t,i["--antd-arrow-background-color"]=t),{className:o,overlayStyle:r,arrowStyle:i}}const fy=e=>{const{prefixCls:t,className:n,placement:r="top",title:i,color:l,overlayInnerStyle:c}=e,{getPrefixCls:s}=o.useContext(xe),u=s("tooltip",t),[d,p,f]=cy(u),m=py(u,l),g=m.arrowStyle,v=Object.assign(Object.assign({},c),m.overlayStyle),h=a()(p,f,u,`${u}-pure`,`${u}-placement-${r}`,n,m.className);return d(o.createElement("div",{className:h,style:g},o.createElement("div",{className:`${u}-arrow`}),o.createElement(Wb,Object.assign({},e,{className:p,prefixCls:u,overlayInnerStyle:v}),i)))};var my=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const gy=o.forwardRef((e,t)=>{var n,r;const{prefixCls:i,openClassName:l,getTooltipContainer:c,color:s,overlayInnerStyle:u,children:d,afterOpenChange:p,afterVisibleChange:f,destroyTooltipOnHide:m,destroyOnHidden:g,arrow:v=!0,title:h,overlay:b,builtinPlacements:y,arrowPointAtCenter:C=!1,autoAdjustOverflow:x=!0,motion:$,getPopupContainer:w,placement:S="top",mouseEnterDelay:k=.1,mouseLeaveDelay:E=.1,overlayStyle:O,rootClassName:A,overlayClassName:I,styles:N,classNames:M}=e,j=my(e,["prefixCls","openClassName","getTooltipContainer","color","overlayInnerStyle","children","afterOpenChange","afterVisibleChange","destroyTooltipOnHide","destroyOnHidden","arrow","title","overlay","builtinPlacements","arrowPointAtCenter","autoAdjustOverflow","motion","getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName","overlayClassName","styles","classNames"]),P=!!v,[,R]=Ko(),{getPopupContainer:T,getPrefixCls:z,direction:B,className:H,style:D,classNames:L,styles:F}=Se("tooltip"),W=qi("Tooltip"),_=o.useRef(null),K=()=>{var e;null===(e=_.current)||void 0===e||e.forceAlign()};o.useImperativeHandle(t,()=>{var e,t;return{forceAlign:K,forcePopupAlign:()=>{W.deprecated(!1,"forcePopupAlign","forceAlign"),K()},nativeElement:null===(e=_.current)||void 0===e?void 0:e.nativeElement,popupElement:null===(t=_.current)||void 0===t?void 0:t.popupElement}});const[q,V]=Ln(!1,{value:null!==(n=e.open)&&void 0!==n?n:e.visible,defaultValue:null!==(r=e.defaultOpen)&&void 0!==r?r:e.defaultVisible}),X=!h&&!b&&0!==h,G=o.useMemo(()=>{var e,t;let n=C;return"object"===typeof v&&(n=null!==(t=null!==(e=v.pointAtCenter)&&void 0!==e?e:v.arrowPointAtCenter)&&void 0!==t?t:C),y||ry({arrowPointAtCenter:n,autoAdjustOverflow:x,arrowWidth:P?R.sizePopupArrow:0,borderRadius:R.borderRadius,offset:R.marginXXS,visibleFirst:!0})},[C,v,y,R]),Y=o.useMemo(()=>0===h?h:b||h||"",[b,h]),U=o.createElement(Ip,{space:!0},"function"===typeof Y?Y():Y),Q=z("tooltip",i),Z=z(),J=e["data-popover-inject"];let ee=q;"open"in e||"visible"in e||!X||(ee=!1);const te=o.isValidElement(d)&&!oi(d)?d:o.createElement("span",null,d),ne=te.props,oe=ne.className&&"string"!==typeof ne.className?ne.className:a()(ne.className,l||`${Q}-open`),[re,ie,ae]=cy(Q,!J),le=py(Q,s),ce=le.arrowStyle,se=a()(I,{[`${Q}-rtl`]:"rtl"===B},le.className,A,ie,ae,H,L.root,null===M||void 0===M?void 0:M.root),ue=a()(L.body,null===M||void 0===M?void 0:M.body),[de,pe]=fa("Tooltip",j.zIndex),fe=o.createElement(Yb,Object.assign({},j,{zIndex:de,showArrow:P,placement:S,mouseEnterDelay:k,mouseLeaveDelay:E,prefixCls:Q,classNames:{root:se,body:ue},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ce),F.root),D),O),null===N||void 0===N?void 0:N.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},F.body),u),null===N||void 0===N?void 0:N.body),le.overlayStyle)},getTooltipContainer:w||c||T,ref:_,builtinPlacements:G,overlay:U,visible:ee,onVisibleChange:t=>{var n,o;V(!X&&t),X||(null===(n=e.onOpenChange)||void 0===n||n.call(e,t),null===(o=e.onVisibleChange)||void 0===o||o.call(e,t))},afterVisibleChange:null!==p&&void 0!==p?p:f,arrowContent:o.createElement("span",{className:`${Q}-arrow-content`}),motion:{motionName:Xl(Z,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:null!==g&&void 0!==g?g:!!m}),ee?ii(te,{className:oe}):te);return re(o.createElement(ca.Provider,{value:pe},fe))}),vy=gy;vy._InternalPanelDoNotUseOrYouWillBeFired=fy;const hy=vy,by=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:o,fontWeightStrong:r,innerPadding:i,boxShadowSecondary:a,colorTextHeading:l,borderRadiusLG:c,zIndexPopup:s,titleMarginBottom:u,colorBgElevated:d,popoverBg:p,titleBorderBottom:f,innerContentPadding:m,titlePadding:g}=e;return[{[t]:Object.assign(Object.assign({},po(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:s,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"--antd-arrow-background-color":d,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:p,backgroundClip:"padding-box",borderRadius:c,boxShadow:a,padding:i},[`${t}-title`]:{minWidth:o,marginBottom:u,color:l,fontWeight:r,borderBottom:f,padding:g},[`${t}-inner-content`]:{color:n,padding:m}})},ey(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},yy=e=>{const{componentCls:t}=e;return{[t]:xc.map(n=>{const o=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":o,[`${t}-inner`]:{backgroundColor:o},[`${t}-arrow`]:{background:"transparent"}}}})}},Cy=qo("Popover",e=>{const{colorBgElevated:t,colorText:n}=e,o=Jn(e,{popoverBg:t,popoverColor:n});return[by(o),yy(o),Lf(o,"zoom-big")]},e=>{const{lineWidth:t,controlHeight:n,fontHeight:o,padding:r,wireframe:i,zIndexPopupBase:a,borderRadiusLG:l,marginXS:c,lineType:s,colorSplit:u,paddingSM:d}=e,p=n-o,f=p/2,m=p/2-t,g=r;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:a+30},Ub(e)),Zb({contentRadius:l,limitVerticalRadius:!0})),{innerPadding:i?0:12,titleMarginBottom:i?0:c,titlePadding:i?`${f}px ${g}px ${m}px`:0,titleBorderBottom:i?`${t}px ${s} ${u}`:"none",innerContentPadding:i?`${d}px ${g}px`:0})},{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var xy=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const $y=e=>{let{title:t,content:n,prefixCls:r}=e;return t||n?o.createElement(o.Fragment,null,t&&o.createElement("div",{className:`${r}-title`},t),n&&o.createElement("div",{className:`${r}-inner-content`},n)):null},wy=e=>{const{hashId:t,prefixCls:n,className:r,style:i,placement:l="top",title:c,content:s,children:u}=e,d=Fb(c),p=Fb(s),f=a()(t,n,`${n}-pure`,`${n}-placement-${l}`,r);return o.createElement("div",{className:f,style:i},o.createElement("div",{className:`${n}-arrow`}),o.createElement(Wb,Object.assign({},e,{className:t,prefixCls:n}),u||o.createElement($y,{prefixCls:n,title:d,content:p})))},Sy=e=>{const{prefixCls:t,className:n}=e,r=xy(e,["prefixCls","className"]),{getPrefixCls:i}=o.useContext(xe),l=i("popover",t),[c,s,u]=Cy(l);return c(o.createElement(wy,Object.assign({},r,{prefixCls:l,hashId:s,className:a()(n,u)})))};var ky=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const Ey=o.forwardRef((e,t)=>{var n,r;const{prefixCls:i,title:l,content:c,overlayClassName:s,placement:u="top",trigger:d="hover",children:p,mouseEnterDelay:f=.1,mouseLeaveDelay:m=.1,onOpenChange:g,overlayStyle:v={},styles:h,classNames:b}=e,y=ky(e,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle","styles","classNames"]),{getPrefixCls:C,className:x,style:$,classNames:w,styles:S}=Se("popover"),k=C("popover",i),[E,O,A]=Cy(k),I=C(),N=a()(s,O,A,x,w.root,null===b||void 0===b?void 0:b.root),M=a()(w.body,null===b||void 0===b?void 0:b.body),[j,P]=Ln(!1,{value:null!==(n=e.open)&&void 0!==n?n:e.visible,defaultValue:null!==(r=e.defaultOpen)&&void 0!==r?r:e.defaultVisible}),R=(e,t)=>{P(e,!0),null===g||void 0===g||g(e,t)},T=Fb(l),z=Fb(c);return E(o.createElement(hy,Object.assign({placement:u,trigger:d,mouseEnterDelay:f,mouseLeaveDelay:m},y,{prefixCls:k,classNames:{root:N,body:M},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},S.root),$),v),null===h||void 0===h?void 0:h.root),body:Object.assign(Object.assign({},S.body),null===h||void 0===h?void 0:h.body)},ref:t,open:j,onOpenChange:e=>{R(e)},overlay:T||z?o.createElement($y,{prefixCls:k,title:T,content:z}):null,transitionName:Xl(I,"zoom-big",y.transitionName),"data-popover-inject":!0}),ii(p,{onKeyDown:e=>{var t,n;(0,o.isValidElement)(p)&&(null===(n=null===p||void 0===p?void 0:(t=p.props).onKeyDown)||void 0===n||n.call(t,e)),(e=>{e.keyCode===Xi.ESC&&R(!1,e)})(e)}})))}),Oy=Ey;Oy._InternalPanelDoNotUseOrYouWillBeFired=Sy;const Ay=Oy,Iy=e=>{const{size:t,shape:n}=o.useContext(Rb),r=o.useMemo(()=>({size:e.size||t,shape:e.shape||n}),[e.size,e.shape,t,n]);return o.createElement(Rb.Provider,{value:r},e.children)},Ny=e=>{var t,n,r,i;const{getPrefixCls:l,direction:c}=o.useContext(xe),{prefixCls:u,className:d,rootClassName:p,style:f,maxCount:m,maxStyle:g,size:v,shape:h,maxPopoverPlacement:b,maxPopoverTrigger:y,children:C,max:x}=e;const $=l("avatar",u),w=`${$}-group`,S=Mi($),[k,E,O]=Bb($,S),A=a()(w,{[`${w}-rtl`]:"rtl"===c},O,S,d,p,E),I=s(C).map((e,t)=>ii(e,{key:`avatar-key-${t}`})),N=(null===x||void 0===x?void 0:x.count)||m,M=I.length;if(N&&N<M){const e=I.slice(0,N),l=I.slice(N,M),c=(null===x||void 0===x?void 0:x.style)||g,s=(null===(t=null===x||void 0===x?void 0:x.popover)||void 0===t?void 0:t.trigger)||y||"hover",u=(null===(n=null===x||void 0===x?void 0:x.popover)||void 0===n?void 0:n.placement)||b||"top",d=Object.assign(Object.assign({content:l},null===x||void 0===x?void 0:x.popover),{classNames:{root:a()(`${w}-popover`,null===(i=null===(r=null===x||void 0===x?void 0:x.popover)||void 0===r?void 0:r.classNames)||void 0===i?void 0:i.root)},placement:u,trigger:s});return e.push(o.createElement(Ay,Object.assign({key:"avatar-popover-key",destroyOnHidden:!0},d),o.createElement(Lb,{style:c},"+"+(M-N)))),k(o.createElement(Iy,{shape:h,size:v},o.createElement("div",{className:A,style:f},e)))}return k(o.createElement(Iy,{shape:h,size:v},o.createElement("div",{className:A,style:f},I)))},My=Lb;My.Group=Ny;const jy=My;var Py=n(400);const Ry=e=>{const{componentCls:t,backTopFontSize:n,backTopSize:o,zIndexPopup:r}=e;return{[t]:Object.assign(Object.assign({},po(e)),{position:"fixed",insetInlineEnd:e.backTopInlineEnd,insetBlockEnd:e.backTopBlockEnd,zIndex:r,width:40,height:40,cursor:"pointer","&:empty":{display:"none"},[`${t}-content`]:{width:o,height:o,overflow:"hidden",color:e.backTopColor,textAlign:"center",backgroundColor:e.backTopBackground,borderRadius:o,transition:`all ${e.motionDurationMid}`,"&:hover":{backgroundColor:e.backTopHoverBackground,transition:`all ${e.motionDurationMid}`}},[`${t}-icon`]:{fontSize:n,lineHeight:nt(o)}})}},Ty=e=>{const{componentCls:t,screenMD:n,screenXS:o,backTopInlineEndMD:r,backTopInlineEndXS:i}=e;return{[`@media (max-width: ${nt(n)})`]:{[t]:{insetInlineEnd:r}},[`@media (max-width: ${nt(o)})`]:{[t]:{insetInlineEnd:i}}}},zy=qo("BackTop",e=>{const{fontSizeHeading3:t,colorTextDescription:n,colorTextLightSolid:o,colorText:r,controlHeightLG:i,calc:a}=e,l=Jn(e,{backTopBackground:n,backTopColor:o,backTopHoverBackground:r,backTopFontSize:t,backTopSize:i,backTopBlockEnd:a(i).mul(1.25).equal(),backTopInlineEnd:a(i).mul(2.5).equal(),backTopInlineEndMD:a(i).mul(1.5).equal(),backTopInlineEndXS:a(i).mul(.5).equal()});return[Ry(l),Ty(l)]},e=>({zIndexPopup:e.zIndexBase+10}));const By=e=>{const{prefixCls:t,className:n,rootClassName:r,visibilityHeight:i=400,target:l,onClick:c,duration:s=450}=e,[u,d]=o.useState(0===i),p=o.useRef(null),f=()=>{var e;return(null===(e=p.current)||void 0===e?void 0:e.ownerDocument)||window},m=he(e=>{const t=Ii(e.target);d(t>=i)});o.useEffect(()=>{const e=(l||f)();return m({target:e}),null===e||void 0===e||e.addEventListener("scroll",m),()=>{m.cancel(),null===e||void 0===e||e.removeEventListener("scroll",m)}},[l]);const{getPrefixCls:g,direction:v}=o.useContext(xe),h=g("back-top",t),b=g(),[y,C,x]=zy(h),$=a()(C,x,h,{[`${h}-rtl`]:"rtl"===v},n,r),w=Ul(e,["prefixCls","className","rootClassName","children","visibilityHeight","target"]),S=o.createElement("div",{className:`${h}-content`},o.createElement("div",{className:`${h}-icon`},o.createElement(Py.A,null)));return y(o.createElement("div",Object.assign({},w,{className:$,onClick:e=>{Ni(0,{getContainer:l||f,duration:s}),null===c||void 0===c||c(e)},ref:p}),o.createElement(Jr,{visible:u,motionName:`${b}-fade`},t=>{let{className:n}=t;return ii(e.children||S,e=>{let{className:t}=e;return{className:a()(n,t)}})})))},Hy=new En("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),Dy=new En("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),Ly=new En("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),Fy=new En("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),Wy=new En("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),_y=new En("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),Ky=e=>{const{fontHeight:t,lineWidth:n,marginXS:o,colorBorderBg:r}=e;return Jn(e,{badgeFontHeight:t,badgeShadowSize:n,badgeTextColor:e.colorTextLightSolid,badgeColor:e.colorError,badgeColorHover:e.colorErrorHover,badgeShadowColor:r,badgeProcessingDuration:"1.2s",badgeRibbonOffset:o,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},qy=e=>{const{fontSize:t,lineHeight:n,fontSizeSM:o,lineWidth:r}=e;return{indicatorZIndex:"auto",indicatorHeight:Math.round(t*n)-2*r,indicatorHeightSM:t,dotSize:o/2,textFontSize:o,textFontSizeSM:o,textFontWeight:"normal",statusSize:o/2}},Vy=qo("Badge",e=>(e=>{const{componentCls:t,iconCls:n,antCls:o,badgeShadowSize:r,textFontSize:i,textFontSizeSM:a,statusSize:l,dotSize:c,textFontWeight:s,indicatorHeight:u,indicatorHeightSM:d,marginXS:p,calc:f}=e,m=`${o}-scroll-number`,g=iy(e,(e,n)=>{let{darkColor:o}=n;return{[`&${t} ${t}-color-${e}`]:{background:o,[`&:not(${t}-count)`]:{color:o},"a:hover &":{background:o}}}});return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},po(e)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${t}-count`]:{display:"inline-flex",justifyContent:"center",zIndex:e.indicatorZIndex,minWidth:u,height:u,color:e.badgeTextColor,fontWeight:s,fontSize:i,lineHeight:nt(u),whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:f(u).div(2).equal(),boxShadow:`0 0 0 ${nt(r)} ${e.badgeShadowColor}`,transition:`background ${e.motionDurationMid}`,a:{color:e.badgeTextColor},"a:hover":{color:e.badgeTextColor},"a:hover &":{background:e.badgeColorHover}},[`${t}-count-sm`]:{minWidth:d,height:d,fontSize:a,lineHeight:nt(d),borderRadius:f(d).div(2).equal()},[`${t}-multiple-words`]:{padding:`0 ${nt(e.paddingXS)}`,bdi:{unicodeBidi:"plaintext"}},[`${t}-dot`]:{zIndex:e.indicatorZIndex,width:c,minWidth:c,height:c,background:e.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${nt(r)} ${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:_y,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${t}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${t}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:l,height:l,verticalAlign:"middle",borderRadius:"50%"},[`${t}-status-success`]:{backgroundColor:e.colorSuccess},[`${t}-status-processing`]:{overflow:"visible",color:e.colorInfo,backgroundColor:e.colorInfo,borderColor:"currentcolor","&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:r,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:Hy,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:p,color:e.colorText,fontSize:e.fontSize}}}),g),{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:Dy,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:Ly,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:Fy,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:Wy,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%)"}}})}})(Ky(e)),qy),Xy=qo(["Badge","Ribbon"],e=>(e=>{const{antCls:t,badgeFontHeight:n,marginXS:o,badgeRibbonOffset:r,calc:i}=e,a=`${t}-ribbon`,l=`${t}-ribbon-wrapper`,c=iy(e,(e,t)=>{let{darkColor:n}=t;return{[`&${a}-color-${e}`]:{background:n,color:n}}});return{[l]:{position:"relative"},[a]:Object.assign(Object.assign(Object.assign(Object.assign({},po(e)),{position:"absolute",top:o,padding:`0 ${nt(e.paddingXS)}`,color:e.colorPrimary,lineHeight:nt(n),whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${a}-text`]:{color:e.badgeTextColor},[`${a}-corner`]:{position:"absolute",top:"100%",width:r,height:r,color:"currentcolor",border:`${nt(i(r).div(2).equal())} solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter}}),c),{[`&${a}-placement-end`]:{insetInlineEnd:i(r).mul(-1).equal(),borderEndEndRadius:0,[`${a}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${a}-placement-start`]:{insetInlineStart:i(r).mul(-1).equal(),borderEndStartRadius:0,[`${a}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}})(Ky(e)),qy);const Gy=e=>{const{className:t,prefixCls:n,style:r,color:i,children:l,text:c,placement:s="end",rootClassName:u}=e,{getPrefixCls:d,direction:p}=o.useContext(xe),f=d("ribbon",n),m=`${f}-wrapper`,[g,v,h]=Xy(f,m),b=dy(i,!1),y=a()(f,`${f}-placement-${s}`,{[`${f}-rtl`]:"rtl"===p,[`${f}-color-${i}`]:b},t),C={},x={};return i&&!b&&(C.background=i,x.color=i),g(o.createElement("div",{className:a()(m,u,v,h)},l,o.createElement("div",{className:a()(y,v),style:Object.assign(Object.assign({},C),r)},o.createElement("span",{className:`${f}-text`},c),o.createElement("div",{className:`${f}-corner`,style:x}))))},Yy=e=>{const{prefixCls:t,value:n,current:r,offset:i=0}=e;let l;return i&&(l={position:"absolute",top:`${i}00%`,left:0}),o.createElement("span",{style:l,className:a()(`${t}-only-unit`,{current:r})},n)};function Uy(e,t,n){let o=e,r=0;for(;(o+10)%10!==t;)o+=n,r+=n;return r}const Qy=e=>{const{prefixCls:t,count:n,value:r}=e,i=Number(r),a=Math.abs(n),[l,c]=o.useState(i),[s,u]=o.useState(a),d=()=>{c(i),u(a)};let p,f;if(o.useEffect(()=>{const e=setTimeout(d,1e3);return()=>clearTimeout(e)},[i]),l===i||Number.isNaN(i)||Number.isNaN(l))p=[o.createElement(Yy,Object.assign({},e,{key:i,current:!0}))],f={transition:"none"};else{p=[];const t=i+10,n=[];for(let e=i;e<=t;e+=1)n.push(e);const r=s<a?1:-1,c=n.findIndex(e=>e%10===l);p=(r<0?n.slice(0,c+1):n.slice(c)).map((t,n)=>{const i=t%10;return o.createElement(Yy,Object.assign({},e,{key:t,value:i,offset:r<0?n-c:n,current:n===c}))}),f={transform:`translateY(${-Uy(l,i,r)}00%)`}}return o.createElement("span",{className:`${t}-only`,style:f,onTransitionEnd:d},p)};var Zy=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const Jy=o.forwardRef((e,t)=>{const{prefixCls:n,count:r,className:i,motionClassName:l,style:c,title:s,show:u,component:d="sup",children:p}=e,f=Zy(e,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),{getPrefixCls:m}=o.useContext(xe),g=m("scroll-number",n),v=Object.assign(Object.assign({},f),{"data-show":u,style:c,className:a()(g,i,l),title:s});let h=r;if(r&&Number(r)%1===0){const e=String(r).split("");h=o.createElement("bdi",null,e.map((t,n)=>o.createElement(Qy,{prefixCls:g,count:Number(r),value:t,key:e.length-n})))}return(null===c||void 0===c?void 0:c.borderColor)&&(v.style=Object.assign(Object.assign({},c),{boxShadow:`0 0 0 1px ${c.borderColor} inset`})),p?ii(p,e=>({className:a()(`${g}-custom-component`,null===e||void 0===e?void 0:e.className,l)})):o.createElement(d,Object.assign({},v,{ref:t}),h)}),eC=Jy;var tC=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const nC=o.forwardRef((e,t)=>{var n,r,i,l,c;const{prefixCls:s,scrollNumberPrefixCls:u,children:d,status:p,text:f,color:m,count:g=null,overflowCount:v=99,dot:h=!1,size:b="default",title:y,offset:C,style:x,className:$,rootClassName:w,classNames:S,styles:k,showZero:E=!1}=e,O=tC(e,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","classNames","styles","showZero"]),{getPrefixCls:A,direction:I,badge:N}=o.useContext(xe),M=A("badge",s),[j,P,R]=Vy(M),T=g>v?`${v}+`:g,z="0"===T||0===T,B=null===g||z&&!E,H=(null!==p&&void 0!==p||null!==m&&void 0!==m)&&B,D=null!==p&&void 0!==p||!z,L=h&&!z,F=L?"":T,W=(0,o.useMemo)(()=>(null===F||void 0===F||""===F||z&&!E)&&!L,[F,z,E,L]),_=(0,o.useRef)(g);W||(_.current=g);const K=_.current,q=(0,o.useRef)(F);W||(q.current=F);const V=q.current,X=(0,o.useRef)(L);W||(X.current=L);const G=(0,o.useMemo)(()=>{if(!C)return Object.assign(Object.assign({},null===N||void 0===N?void 0:N.style),x);const e={marginTop:C[1]};return"rtl"===I?e.left=parseInt(C[0],10):e.right=-parseInt(C[0],10),Object.assign(Object.assign(Object.assign({},e),null===N||void 0===N?void 0:N.style),x)},[I,C,x,null===N||void 0===N?void 0:N.style]),Y=null!==y&&void 0!==y?y:"string"===typeof K||"number"===typeof K?K:void 0,U=W||!f?null:o.createElement("span",{className:`${M}-status-text`},f),Q=K&&"object"===typeof K?ii(K,e=>({style:Object.assign(Object.assign({},G),e.style)})):void 0,Z=dy(m,!1),J=a()(null===S||void 0===S?void 0:S.indicator,null===(n=null===N||void 0===N?void 0:N.classNames)||void 0===n?void 0:n.indicator,{[`${M}-status-dot`]:H,[`${M}-status-${p}`]:!!p,[`${M}-color-${m}`]:Z}),ee={};m&&!Z&&(ee.color=m,ee.background=m);const te=a()(M,{[`${M}-status`]:H,[`${M}-not-a-wrapper`]:!d,[`${M}-rtl`]:"rtl"===I},$,w,null===N||void 0===N?void 0:N.className,null===(r=null===N||void 0===N?void 0:N.classNames)||void 0===r?void 0:r.root,null===S||void 0===S?void 0:S.root,P,R);if(!d&&H&&(f||D||!B)){const e=G.color;return j(o.createElement("span",Object.assign({},O,{className:te,style:Object.assign(Object.assign(Object.assign({},null===k||void 0===k?void 0:k.root),null===(i=null===N||void 0===N?void 0:N.styles)||void 0===i?void 0:i.root),G)}),o.createElement("span",{className:J,style:Object.assign(Object.assign(Object.assign({},null===k||void 0===k?void 0:k.indicator),null===(l=null===N||void 0===N?void 0:N.styles)||void 0===l?void 0:l.indicator),ee)}),f&&o.createElement("span",{style:{color:e},className:`${M}-status-text`},f)))}return j(o.createElement("span",Object.assign({ref:t},O,{className:te,style:Object.assign(Object.assign({},null===(c=null===N||void 0===N?void 0:N.styles)||void 0===c?void 0:c.root),null===k||void 0===k?void 0:k.root)}),d,o.createElement(Jr,{visible:!W,motionName:`${M}-zoom`,motionAppear:!1,motionDeadline:1e3},e=>{let{className:t}=e;var n,r;const i=A("scroll-number",u),l=X.current,c=a()(null===S||void 0===S?void 0:S.indicator,null===(n=null===N||void 0===N?void 0:N.classNames)||void 0===n?void 0:n.indicator,{[`${M}-dot`]:l,[`${M}-count`]:!l,[`${M}-count-sm`]:"small"===b,[`${M}-multiple-words`]:!l&&V&&V.toString().length>1,[`${M}-status-${p}`]:!!p,[`${M}-color-${m}`]:Z});let s=Object.assign(Object.assign(Object.assign({},null===k||void 0===k?void 0:k.indicator),null===(r=null===N||void 0===N?void 0:N.styles)||void 0===r?void 0:r.indicator),G);return m&&!Z&&(s=s||{},s.background=m),o.createElement(eC,{prefixCls:i,show:!W,motionClassName:t,className:c,count:V,title:Y,style:s,key:"scrollNumber"},Q)}),U))}),oC=nC;oC.Ribbon=Gy;const rC=oC;var iC=n(7627),aC=Xi.ESC,lC=Xi.TAB;const cC=(0,o.forwardRef)(function(e,t){var n=e.overlay,i=e.arrow,a=e.prefixCls,l=(0,o.useMemo)(function(){return"function"===typeof n?n():n},[n]),c=(0,b.K4)(t,(0,b.A9)(l));return r().createElement(r().Fragment,null,i&&r().createElement("div",{className:"".concat(a,"-arrow")}),r().cloneElement(l,{ref:(0,b.f3)(l)?c:void 0}))});var sC={adjustX:1,adjustY:1},uC=[0,0];const dC={topLeft:{points:["bl","tl"],overflow:sC,offset:[0,-4],targetOffset:uC},top:{points:["bc","tc"],overflow:sC,offset:[0,-4],targetOffset:uC},topRight:{points:["br","tr"],overflow:sC,offset:[0,-4],targetOffset:uC},bottomLeft:{points:["tl","bl"],overflow:sC,offset:[0,4],targetOffset:uC},bottom:{points:["tc","bc"],overflow:sC,offset:[0,4],targetOffset:uC},bottomRight:{points:["tr","br"],overflow:sC,offset:[0,4],targetOffset:uC}};var pC=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];const fC=r().forwardRef(function(e,t){var n,i=e.arrow,c=void 0!==i&&i,s=e.prefixCls,u=void 0===s?"rc-dropdown":s,d=e.transitionName,p=e.animation,f=e.align,m=e.placement,g=void 0===m?"bottomLeft":m,v=e.placements,h=void 0===v?dC:v,y=e.getPopupContainer,C=e.showAction,x=e.hideAction,$=e.overlayClassName,w=e.overlayStyle,S=e.visible,k=e.trigger,E=void 0===k?["hover"]:k,O=e.autoFocus,A=e.overlay,I=e.children,N=e.onVisibleChange,M=(0,cr.A)(e,pC),j=r().useState(),P=(0,ke.A)(j,2),R=P[0],T=P[1],z="visible"in e?S:R,B=r().useRef(null),H=r().useRef(null),D=r().useRef(null);r().useImperativeHandle(t,function(){return B.current});var L=function(e){T(e),null===N||void 0===N||N(e)};!function(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,i=e.autoFocus,a=e.overlayRef,l=o.useRef(!1),c=function(){var e,o;t&&(null===(e=n.current)||void 0===e||null===(o=e.focus)||void 0===o||o.call(e),null===r||void 0===r||r(!1))},s=function(){var e;return!(null===(e=a.current)||void 0===e||!e.focus)&&(a.current.focus(),l.current=!0,!0)},u=function(e){switch(e.keyCode){case aC:c();break;case lC:var t=!1;l.current||(t=s()),t?e.preventDefault():c()}};o.useEffect(function(){return t?(window.addEventListener("keydown",u),i&&ve(s,3),function(){window.removeEventListener("keydown",u),l.current=!1}):function(){l.current=!1}},[t])}({visible:z,triggerRef:D,onVisibleChange:L,autoFocus:O,overlayRef:H});var F=function(){return r().createElement(cC,{ref:H,overlay:A,prefixCls:u,arrow:c})},W=r().cloneElement(I,{className:a()(null===(n=I.props)||void 0===n?void 0:n.className,z&&function(){var t=e.openClassName;return void 0!==t?t:"".concat(u,"-open")}()),ref:(0,b.f3)(I)?(0,b.K4)(D,(0,b.A9)(I)):void 0}),_=x;return _||-1===E.indexOf("contextMenu")||(_=["click"]),r().createElement(rv,(0,l.A)({builtinPlacements:h},M,{prefixCls:u,ref:B,popupClassName:a()($,(0,Ee.A)({},"".concat(u,"-show-arrow"),c)),popupStyle:w,action:E,showAction:C,hideAction:_,popupPlacement:g,popupAlign:f,popupTransitionName:d,popupAnimation:p,popupVisible:z,stretch:function(){var t=e.minOverlayWidthMatchTrigger,n=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?t:!n}()?"minWidth":"",popup:"function"===typeof A?F:F(),onPopupVisibleChange:L,onPopupClick:function(t){var n=e.onOverlayClick;T(!1),n&&n(t)},getPopupContainer:y}),W)}),mC=fC,gC=e=>"object"!==typeof e&&"function"!==typeof e||null===e;var vC=o.createContext(null);function hC(e,t){return void 0===e?null:"".concat(e,"-").concat(t)}function bC(e){return hC(o.useContext(vC),e)}var yC=["children","locked"],CC=o.createContext(null);function xC(e){var t=e.children,n=e.locked,r=(0,cr.A)(e,yC),i=o.useContext(CC),a=(0,Ie.A)(function(){return function(e,t){var n=(0,d.A)({},e);return Object.keys(t).forEach(function(e){var o=t[e];void 0!==o&&(n[e]=o)}),n}(i,r)},[i,r],function(e,t){return!n&&(e[0]!==t[0]||!Ne(e[1],t[1],!0))});return o.createElement(CC.Provider,{value:a},t)}var $C=o.createContext(null);function wC(){return o.useContext($C)}var SC=o.createContext([]);function kC(e){var t=o.useContext(SC);return o.useMemo(function(){return void 0!==e?[].concat(se(t),[e]):t},[t,e])}var EC=o.createContext(null);const OC=o.createContext({});function AC(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(Ql(e)){var n=e.nodeName.toLowerCase(),o=["input","select","textarea","button"].includes(n)||e.isContentEditable||"a"===n&&!!e.getAttribute("href"),r=e.getAttribute("tabindex"),i=Number(r),a=null;return r&&!Number.isNaN(i)?a=i:o&&null===a&&(a=0),o&&e.disabled&&(a=null),null!==a&&(a>=0||t&&a<0)}return!1}function IC(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=se(e.querySelectorAll("*")).filter(function(e){return AC(e,t)});return AC(e,t)&&n.unshift(e),n}var NC=Xi.LEFT,MC=Xi.RIGHT,jC=Xi.UP,PC=Xi.DOWN,RC=Xi.ENTER,TC=Xi.ESC,zC=Xi.HOME,BC=Xi.END,HC=[jC,PC,NC,MC];function DC(e,t){return IC(e,!0).filter(function(e){return t.has(e)})}function LC(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!e)return null;var r=DC(e,t),i=r.length,a=r.findIndex(function(e){return n===e});return o<0?-1===a?a=i-1:a-=1:o>0&&(a+=1),r[a=(a+i)%i]}var FC=function(e,t){var n=new Set,o=new Map,r=new Map;return e.forEach(function(e){var i=document.querySelector("[data-menu-id='".concat(hC(t,e),"']"));i&&(n.add(i),r.set(i,e),o.set(e,i))}),{elements:n,key2element:o,element2key:r}};function WC(e,t,n,r,i,a,l,c,s,u){var d=o.useRef(),p=o.useRef();p.current=t;var f=function(){ve.cancel(d.current)};return o.useEffect(function(){return function(){f()}},[]),function(o){var m=o.which;if([].concat(HC,[RC,TC,zC,BC]).includes(m)){var g=a(),v=FC(g,r),h=v,b=h.elements,y=h.key2element,C=h.element2key,x=function(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}(y.get(t),b),$=C.get(x),w=function(e,t,n,o){var r,i="prev",a="next",l="children",c="parent";if("inline"===e&&o===RC)return{inlineTrigger:!0};var s=(0,Ee.A)((0,Ee.A)({},jC,i),PC,a),u=(0,Ee.A)((0,Ee.A)((0,Ee.A)((0,Ee.A)({},NC,n?a:i),MC,n?i:a),PC,l),RC,l),d=(0,Ee.A)((0,Ee.A)((0,Ee.A)((0,Ee.A)((0,Ee.A)((0,Ee.A)({},jC,i),PC,a),RC,l),TC,c),NC,n?l:c),MC,n?c:l);switch(null===(r={inline:s,horizontal:u,vertical:d,inlineSub:s,horizontalSub:d,verticalSub:d}["".concat(e).concat(t?"":"Sub")])||void 0===r?void 0:r[o]){case i:return{offset:-1,sibling:!0};case a:return{offset:1,sibling:!0};case c:return{offset:-1,sibling:!1};case l:return{offset:1,sibling:!1};default:return null}}(e,1===l($,!0).length,n,m);if(!w&&m!==zC&&m!==BC)return;(HC.includes(m)||[zC,BC].includes(m))&&o.preventDefault();var S=function(e){if(e){var t=e,n=e.querySelector("a");null!==n&&void 0!==n&&n.getAttribute("href")&&(t=n);var o=C.get(e);c(o),f(),d.current=ve(function(){p.current===o&&t.focus()})}};if([zC,BC].includes(m)||w.sibling||!x){var k,E,O=DC(k=x&&"inline"!==e?function(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}(x):i.current,b);E=m===zC?O[0]:m===BC?O[O.length-1]:LC(k,b,x,w.offset),S(E)}else if(w.inlineTrigger)s($);else if(w.offset>0)s($,!0),f(),d.current=ve(function(){v=FC(g,r);var e=x.getAttribute("aria-controls"),t=LC(document.getElementById(e),v.elements);S(t)},5);else if(w.offset<0){var A=l($,!0),I=A[A.length-2],N=y.get(I);s(I,!1),S(N)}}null===u||void 0===u||u(o)}}var _C="__RC_UTIL_PATH_SPLIT__",KC=function(e){return e.join(_C)},qC="rc-menu-more";function VC(){var e=o.useState({}),t=(0,ke.A)(e,2)[1],n=(0,o.useRef)(new Map),r=(0,o.useRef)(new Map),i=o.useState([]),a=(0,ke.A)(i,2),l=a[0],c=a[1],s=(0,o.useRef)(0),u=(0,o.useRef)(!1),d=(0,o.useCallback)(function(e,o){var i=KC(o);r.current.set(i,e),n.current.set(e,i),s.current+=1;var a,l=s.current;a=function(){l===s.current&&(u.current||t({}))},Promise.resolve().then(a)},[]),p=(0,o.useCallback)(function(e,t){var o=KC(t);r.current.delete(o),n.current.delete(e)},[]),f=(0,o.useCallback)(function(e){c(e)},[]),m=(0,o.useCallback)(function(e,t){var o=n.current.get(e)||"",r=o.split(_C);return t&&l.includes(r[0])&&r.unshift(qC),r},[l]),g=(0,o.useCallback)(function(e,t){return e.filter(function(e){return void 0!==e}).some(function(e){return m(e,!0).includes(t)})},[m]),v=(0,o.useCallback)(function(e){var t="".concat(n.current.get(e)).concat(_C),o=new Set;return se(r.current.keys()).forEach(function(e){e.startsWith(t)&&o.add(r.current.get(e))}),o},[]);return o.useEffect(function(){return function(){u.current=!0}},[]),{registerPath:d,unregisterPath:p,refreshOverflowKeys:f,isSubPathKey:g,getKeyPath:m,getKeys:function(){var e=se(n.current.keys());return l.length&&e.push(qC),e},getSubPathKeys:v}}function XC(e){var t=o.useRef(e);t.current=e;var n=o.useCallback(function(){for(var e,n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];return null===(e=t.current)||void 0===e?void 0:e.call.apply(e,[t].concat(o))},[]);return e?n:void 0}var GC=Math.random().toFixed(5).toString().slice(2),YC=0;function UC(e,t,n,r){var i=o.useContext(CC),a=i.activeKey,l=i.onActive,c=i.onInactive,s={active:a===e};return t||(s.onMouseEnter=function(t){null===n||void 0===n||n({key:e,domEvent:t}),l(e)},s.onMouseLeave=function(t){null===r||void 0===r||r({key:e,domEvent:t}),c(e)}),s}function QC(e){var t=o.useContext(CC),n=t.mode,r=t.rtl,i=t.inlineIndent;if("inline"!==n)return null;return r?{paddingRight:e*i}:{paddingLeft:e*i}}function ZC(e){var t,n=e.icon,r=e.props,i=e.children;return null===n||!1===n?null:("function"===typeof n?t=o.createElement(n,(0,d.A)({},r)):"boolean"!==typeof n&&(t=n),t||i||null)}var JC=["item"];function ex(e){var t=e.item,n=(0,cr.A)(e,JC);return Object.defineProperty(n,"item",{get:function(){return(0,u.Ay)(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var tx=["title","attribute","elementRef"],nx=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],ox=["active"],rx=function(e){Y(n,e);var t=ee(n);function n(){return K(this,n),t.apply(this,arguments)}return X(n,[{key:"render",value:function(){var e=this.props,t=e.title,n=e.attribute,r=e.elementRef,i=Ul((0,cr.A)(e,tx),["eventKey","popupClassName","popupOffset","onTitleClick"]);return(0,u.Ay)(!n,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),o.createElement(Cg.Item,(0,l.A)({},n,{title:"string"===typeof t?t:void 0},i,{ref:r}))}}]),n}(o.Component),ix=o.forwardRef(function(e,t){var n=e.style,r=e.className,i=e.eventKey,c=(e.warnKey,e.disabled),s=e.itemIcon,u=e.children,p=e.role,f=e.onMouseEnter,m=e.onMouseLeave,g=e.onClick,v=e.onKeyDown,h=e.onFocus,y=(0,cr.A)(e,nx),C=bC(i),x=o.useContext(CC),$=x.prefixCls,w=x.onItemClick,S=x.disabled,k=x.overflowDisabled,E=x.itemIcon,O=x.selectedKeys,A=x.onActive,I=o.useContext(OC)._internalRenderMenuItem,N="".concat($,"-item"),M=o.useRef(),j=o.useRef(),P=S||c,R=(0,b.xK)(t,j),T=kC(i);var z=function(e){return{key:i,keyPath:se(T).reverse(),item:M.current,domEvent:e}},B=s||E,H=UC(i,P,f,m),D=H.active,L=(0,cr.A)(H,ox),F=O.includes(i),W=QC(T.length),_={};"option"===e.role&&(_["aria-selected"]=F);var K=o.createElement(rx,(0,l.A)({ref:M,elementRef:R,role:null===p?"none":p||"menuitem",tabIndex:c?null:-1,"data-menu-id":k&&C?null:C},Ul(y,["extra"]),L,_,{component:"li","aria-disabled":c,style:(0,d.A)((0,d.A)({},W),n),className:a()(N,(0,Ee.A)((0,Ee.A)((0,Ee.A)({},"".concat(N,"-active"),D),"".concat(N,"-selected"),F),"".concat(N,"-disabled"),P),r),onClick:function(e){if(!P){var t=z(e);null===g||void 0===g||g(ex(t)),w(t)}},onKeyDown:function(e){if(null===v||void 0===v||v(e),e.which===Xi.ENTER){var t=z(e);null===g||void 0===g||g(ex(t)),w(t)}},onFocus:function(e){A(i),null===h||void 0===h||h(e)}}),u,o.createElement(ZC,{props:(0,d.A)((0,d.A)({},e),{},{isSelected:F}),icon:B}));return I&&(K=I(K,e,{selected:F})),K});const ax=o.forwardRef(function(e,t){var n=e.eventKey,r=wC(),i=kC(n);return o.useEffect(function(){if(r)return r.registerPath(n,i),function(){r.unregisterPath(n,i)}},[i]),r?null:o.createElement(ix,(0,l.A)({},e,{ref:t}))});var lx=["className","children"],cx=o.forwardRef(function(e,t){var n=e.className,r=e.children,i=(0,cr.A)(e,lx),c=o.useContext(CC),s=c.prefixCls,u=c.mode,d=c.rtl;return o.createElement("ul",(0,l.A)({className:a()(s,d&&"".concat(s,"-rtl"),"".concat(s,"-sub"),"".concat(s,"-").concat("inline"===u?"inline":"vertical"),n),role:"menu"},i,{"data-menu-list":!0,ref:t}),r)});cx.displayName="SubMenuList";const sx=cx;function ux(e,t){return s(e).map(function(e,n){if(o.isValidElement(e)){var r,i,a=e.key,l=null!==(r=null===(i=e.props)||void 0===i?void 0:i.eventKey)&&void 0!==r?r:a;(null===l||void 0===l)&&(l="tmp_key-".concat([].concat(se(t),[n]).join("-")));var c={key:l,eventKey:l};return o.cloneElement(e,c)}return e})}var dx={adjustX:1,adjustY:1},px={topLeft:{points:["bl","tl"],overflow:dx},topRight:{points:["br","tr"],overflow:dx},bottomLeft:{points:["tl","bl"],overflow:dx},bottomRight:{points:["tr","br"],overflow:dx},leftTop:{points:["tr","tl"],overflow:dx},leftBottom:{points:["br","bl"],overflow:dx},rightTop:{points:["tl","tr"],overflow:dx},rightBottom:{points:["bl","br"],overflow:dx}},fx={topLeft:{points:["bl","tl"],overflow:dx},topRight:{points:["br","tr"],overflow:dx},bottomLeft:{points:["tl","bl"],overflow:dx},bottomRight:{points:["tr","br"],overflow:dx},rightTop:{points:["tr","tl"],overflow:dx},rightBottom:{points:["br","bl"],overflow:dx},leftTop:{points:["tl","tr"],overflow:dx},leftBottom:{points:["bl","br"],overflow:dx}};function mx(e,t,n){return t||(n?n[e]||n.other:void 0)}var gx={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function vx(e){var t=e.prefixCls,n=e.visible,r=e.children,i=e.popup,l=e.popupStyle,c=e.popupClassName,s=e.popupOffset,u=e.disabled,p=e.mode,f=e.onVisibleChange,m=o.useContext(CC),g=m.getPopupContainer,v=m.rtl,h=m.subMenuOpenDelay,b=m.subMenuCloseDelay,y=m.builtinPlacements,C=m.triggerSubMenuAction,x=m.forceSubMenuRender,$=m.rootClassName,w=m.motion,S=m.defaultMotions,k=o.useState(!1),E=(0,ke.A)(k,2),O=E[0],A=E[1],I=v?(0,d.A)((0,d.A)({},fx),y):(0,d.A)((0,d.A)({},px),y),N=gx[p],M=mx(p,w,S),j=o.useRef(M);"inline"!==p&&(j.current=M);var P=(0,d.A)((0,d.A)({},j.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),R=o.useRef();return o.useEffect(function(){return R.current=ve(function(){A(n)}),function(){ve.cancel(R.current)}},[n]),o.createElement(rv,{prefixCls:t,popupClassName:a()("".concat(t,"-popup"),(0,Ee.A)({},"".concat(t,"-rtl"),v),c,$),stretch:"horizontal"===p?"minWidth":null,getPopupContainer:g,builtinPlacements:I,popupPlacement:N,popupVisible:O,popup:i,popupStyle:l,popupAlign:s&&{offset:s},action:u?[]:[C],mouseEnterDelay:h,mouseLeaveDelay:b,onPopupVisibleChange:f,forceRender:x,popupMotion:P,fresh:!0},r)}function hx(e){var t=e.id,n=e.open,r=e.keyPath,i=e.children,a="inline",c=o.useContext(CC),s=c.prefixCls,u=c.forceSubMenuRender,p=c.motion,f=c.defaultMotions,m=c.mode,g=o.useRef(!1);g.current=m===a;var v=o.useState(!g.current),h=(0,ke.A)(v,2),b=h[0],y=h[1],C=!!g.current&&n;o.useEffect(function(){g.current&&y(!1)},[m]);var x=(0,d.A)({},mx(a,p,f));r.length>1&&(x.motionAppear=!1);var $=x.onVisibleChanged;return x.onVisibleChanged=function(e){return g.current||e||y(!0),null===$||void 0===$?void 0:$(e)},b?null:o.createElement(xC,{mode:a,locked:!g.current},o.createElement(Jr,(0,l.A)({visible:C},x,{forceRender:u,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),function(e){var n=e.className,r=e.style;return o.createElement(sx,{id:t,className:n,style:r},i)}))}var bx=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],yx=["active"],Cx=o.forwardRef(function(e,t){var n=e.style,r=e.className,i=e.title,c=e.eventKey,s=(e.warnKey,e.disabled),u=e.internalPopupClose,p=e.children,f=e.itemIcon,m=e.expandIcon,g=e.popupClassName,v=e.popupOffset,h=e.popupStyle,b=e.onClick,y=e.onMouseEnter,C=e.onMouseLeave,x=e.onTitleClick,$=e.onTitleMouseEnter,w=e.onTitleMouseLeave,S=(0,cr.A)(e,bx),k=bC(c),E=o.useContext(CC),O=E.prefixCls,A=E.mode,I=E.openKeys,N=E.disabled,M=E.overflowDisabled,j=E.activeKey,P=E.selectedKeys,R=E.itemIcon,T=E.expandIcon,z=E.onItemClick,B=E.onOpenChange,H=E.onActive,D=o.useContext(OC)._internalRenderSubMenuItem,L=o.useContext(EC).isSubPathKey,F=kC(),W="".concat(O,"-submenu"),_=N||s,K=o.useRef(),q=o.useRef();var V=null!==f&&void 0!==f?f:R,X=null!==m&&void 0!==m?m:T,G=I.includes(c),Y=!M&&G,U=L(P,c),Q=UC(c,_,$,w),Z=Q.active,J=(0,cr.A)(Q,yx),ee=o.useState(!1),te=(0,ke.A)(ee,2),ne=te[0],oe=te[1],re=function(e){_||oe(e)},ie=o.useMemo(function(){return Z||"inline"!==A&&(ne||L([j],c))},[A,Z,j,ne,c,L]),ae=QC(F.length),le=XC(function(e){null===b||void 0===b||b(ex(e)),z(e)}),ce=k&&"".concat(k,"-popup"),se=o.useMemo(function(){return o.createElement(ZC,{icon:"horizontal"!==A?X:void 0,props:(0,d.A)((0,d.A)({},e),{},{isOpen:Y,isSubMenu:!0})},o.createElement("i",{className:"".concat(W,"-arrow")}))},[A,X,e,Y,W]),ue=o.createElement("div",(0,l.A)({role:"menuitem",style:ae,className:"".concat(W,"-title"),tabIndex:_?null:-1,ref:K,title:"string"===typeof i?i:null,"data-menu-id":M&&k?null:k,"aria-expanded":Y,"aria-haspopup":!0,"aria-controls":ce,"aria-disabled":_,onClick:function(e){_||(null===x||void 0===x||x({key:c,domEvent:e}),"inline"===A&&B(c,!G))},onFocus:function(){H(c)}},J),i,se),de=o.useRef(A);if("inline"!==A&&F.length>1?de.current="vertical":de.current=A,!M){var pe=de.current;ue=o.createElement(vx,{mode:pe,prefixCls:W,visible:!u&&Y&&"inline"!==A,popupClassName:g,popupOffset:v,popupStyle:h,popup:o.createElement(xC,{mode:"horizontal"===pe?"vertical":pe},o.createElement(sx,{id:ce,ref:q},p)),disabled:_,onVisibleChange:function(e){"inline"!==A&&B(c,e)}},ue)}var fe=o.createElement(Cg.Item,(0,l.A)({ref:t,role:"none"},S,{component:"li",style:n,className:a()(W,"".concat(W,"-").concat(A),r,(0,Ee.A)((0,Ee.A)((0,Ee.A)((0,Ee.A)({},"".concat(W,"-open"),Y),"".concat(W,"-active"),ie),"".concat(W,"-selected"),U),"".concat(W,"-disabled"),_)),onMouseEnter:function(e){re(!0),null===y||void 0===y||y({key:c,domEvent:e})},onMouseLeave:function(e){re(!1),null===C||void 0===C||C({key:c,domEvent:e})}}),ue,!M&&o.createElement(hx,{id:ce,open:Y,keyPath:F},p));return D&&(fe=D(fe,e,{selected:U,active:ie,open:Y,disabled:_})),o.createElement(xC,{onItemClick:le,mode:"horizontal"===A?"vertical":A,itemIcon:V,expandIcon:X},fe)});const xx=o.forwardRef(function(e,t){var n,r=e.eventKey,i=e.children,a=kC(r),c=ux(i,a),s=wC();return o.useEffect(function(){if(s)return s.registerPath(r,a),function(){s.unregisterPath(r,a)}},[a]),n=s?c:o.createElement(Cx,(0,l.A)({ref:t},e),c),o.createElement(SC.Provider,{value:a},n)});function $x(e){var t=e.className,n=e.style,r=o.useContext(CC).prefixCls;return wC()?null:o.createElement("li",{role:"separator",className:a()("".concat(r,"-item-divider"),t),style:n})}var wx=["className","title","eventKey","children"],Sx=o.forwardRef(function(e,t){var n=e.className,r=e.title,i=(e.eventKey,e.children),c=(0,cr.A)(e,wx),s=o.useContext(CC).prefixCls,u="".concat(s,"-item-group");return o.createElement("li",(0,l.A)({ref:t,role:"presentation"},c,{onClick:function(e){return e.stopPropagation()},className:a()(u,n)}),o.createElement("div",{role:"presentation",className:"".concat(u,"-title"),title:"string"===typeof r?r:void 0},r),o.createElement("ul",{role:"group",className:"".concat(u,"-list")},i))});const kx=o.forwardRef(function(e,t){var n=e.eventKey,r=ux(e.children,kC(n));return wC()?r:o.createElement(Sx,(0,l.A)({ref:t},Ul(e,["warnKey"])),r)});var Ex=["label","children","key","type","extra"];function Ox(e,t,n){var r=t.item,i=t.group,a=t.submenu,c=t.divider;return(e||[]).map(function(e,s){if(e&&"object"===(0,p.A)(e)){var u=e,d=u.label,f=u.children,m=u.key,g=u.type,v=u.extra,h=(0,cr.A)(u,Ex),b=null!==m&&void 0!==m?m:"tmp-".concat(s);return f||"group"===g?"group"===g?o.createElement(i,(0,l.A)({key:b},h,{title:d}),Ox(f,t,n)):o.createElement(a,(0,l.A)({key:b},h,{title:d}),Ox(f,t,n)):"divider"===g?o.createElement(c,(0,l.A)({key:b},h)):o.createElement(r,(0,l.A)({key:b},h,{extra:v}),d,(!!v||0===v)&&o.createElement("span",{className:"".concat(n,"-item-extra")},v))}return null}).filter(function(e){return e})}function Ax(e,t,n,o,r){var i=e,a=(0,d.A)({divider:$x,item:ax,group:kx,submenu:xx},o);return t&&(i=Ox(t,a,r)),ux(i,n)}var Ix=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem","_internalComponents"],Nx=[],Mx=o.forwardRef(function(e,t){var n,r=e,i=r.prefixCls,c=void 0===i?"rc-menu":i,s=r.rootClassName,u=r.style,p=r.className,m=r.tabIndex,g=void 0===m?0:m,v=r.items,h=r.children,b=r.direction,y=r.id,C=r.mode,x=void 0===C?"vertical":C,$=r.inlineCollapsed,w=r.disabled,S=r.disabledOverflow,k=r.subMenuOpenDelay,E=void 0===k?.1:k,O=r.subMenuCloseDelay,A=void 0===O?.1:O,I=r.forceSubMenuRender,N=r.defaultOpenKeys,M=r.openKeys,j=r.activeKey,P=r.defaultActiveFirst,R=r.selectable,T=void 0===R||R,z=r.multiple,B=void 0!==z&&z,H=r.defaultSelectedKeys,D=r.selectedKeys,L=r.onSelect,F=r.onDeselect,W=r.inlineIndent,_=void 0===W?24:W,K=r.motion,q=r.defaultMotions,V=r.triggerSubMenuAction,X=void 0===V?"hover":V,G=r.builtinPlacements,Y=r.itemIcon,U=r.expandIcon,Q=r.overflowedIndicator,Z=void 0===Q?"...":Q,J=r.overflowedIndicatorPopupClassName,ee=r.getPopupContainer,te=r.onClick,ne=r.onOpenChange,oe=r.onKeyDown,re=(r.openAnimation,r.openTransitionName,r._internalRenderMenuItem),ie=r._internalRenderSubMenuItem,ae=r._internalComponents,le=(0,cr.A)(r,Ix),ce=o.useMemo(function(){return[Ax(h,v,Nx,ae,c),Ax(h,v,Nx,{},c)]},[h,v,ae]),ue=(0,ke.A)(ce,2),de=ue[0],pe=ue[1],fe=o.useState(!1),me=(0,ke.A)(fe,2),ge=me[0],ve=me[1],he=o.useRef(),be=function(e){var t=Ln(e,{value:e}),n=(0,ke.A)(t,2),r=n[0],i=n[1];return o.useEffect(function(){YC+=1;var e="".concat(GC,"-").concat(YC);i("rc-menu-uuid-".concat(e))},[]),r}(y),ye="rtl"===b;var Ce=Ln(N,{value:M,postState:function(e){return e||Nx}}),xe=(0,ke.A)(Ce,2),$e=xe[0],we=xe[1],Se=function(e){function t(){we(e),null===ne||void 0===ne||ne(e)}arguments.length>1&&void 0!==arguments[1]&&arguments[1]?(0,f.flushSync)(t):t()},Oe=o.useState($e),Ae=(0,ke.A)(Oe,2),Ie=Ae[0],Me=Ae[1],je=o.useRef(!1),Pe=o.useMemo(function(){return"inline"!==x&&"vertical"!==x||!$?[x,!1]:["vertical",$]},[x,$]),Re=(0,ke.A)(Pe,2),Te=Re[0],ze=Re[1],Be="inline"===Te,He=o.useState(Te),De=(0,ke.A)(He,2),Le=De[0],Fe=De[1],We=o.useState(ze),_e=(0,ke.A)(We,2),Ke=_e[0],qe=_e[1];o.useEffect(function(){Fe(Te),qe(ze),je.current&&(Be?we(Ie):Se(Nx))},[Te,ze]);var Ve=o.useState(0),Xe=(0,ke.A)(Ve,2),Ge=Xe[0],Ye=Xe[1],Ue=Ge>=de.length-1||"horizontal"!==Le||S;o.useEffect(function(){Be&&Me($e)},[$e]),o.useEffect(function(){return je.current=!0,function(){je.current=!1}},[]);var Qe=VC(),Ze=Qe.registerPath,Je=Qe.unregisterPath,et=Qe.refreshOverflowKeys,tt=Qe.isSubPathKey,nt=Qe.getKeyPath,ot=Qe.getKeys,rt=Qe.getSubPathKeys,it=o.useMemo(function(){return{registerPath:Ze,unregisterPath:Je}},[Ze,Je]),at=o.useMemo(function(){return{isSubPathKey:tt}},[tt]);o.useEffect(function(){et(Ue?Nx:de.slice(Ge+1).map(function(e){return e.key}))},[Ge,Ue]);var lt=Ln(j||P&&(null===(n=de[0])||void 0===n?void 0:n.key),{value:j}),ct=(0,ke.A)(lt,2),st=ct[0],ut=ct[1],dt=XC(function(e){ut(e)}),pt=XC(function(){ut(void 0)});(0,o.useImperativeHandle)(t,function(){return{list:he.current,focus:function(e){var t,n,o=ot(),r=FC(o,be),i=r.elements,a=r.key2element,l=r.element2key,c=DC(he.current,i),s=null!==st&&void 0!==st?st:c[0]?l.get(c[0]):null===(t=de.find(function(e){return!e.props.disabled}))||void 0===t?void 0:t.key,u=a.get(s);s&&u&&(null===u||void 0===u||null===(n=u.focus)||void 0===n||n.call(u,e))}}});var ft=Ln(H||[],{value:D,postState:function(e){return Array.isArray(e)?e:null===e||void 0===e?Nx:[e]}}),mt=(0,ke.A)(ft,2),gt=mt[0],vt=mt[1],ht=XC(function(e){null===te||void 0===te||te(ex(e)),function(e){if(T){var t,n=e.key,o=gt.includes(n);t=B?o?gt.filter(function(e){return e!==n}):[].concat(se(gt),[n]):[n],vt(t);var r=(0,d.A)((0,d.A)({},e),{},{selectedKeys:t});o?null===F||void 0===F||F(r):null===L||void 0===L||L(r)}!B&&$e.length&&"inline"!==Le&&Se(Nx)}(e)}),bt=XC(function(e,t){var n=$e.filter(function(t){return t!==e});if(t)n.push(e);else if("inline"!==Le){var o=rt(e);n=n.filter(function(e){return!o.has(e)})}Ne($e,n,!0)||Se(n,!0)}),yt=WC(Le,st,ye,be,he,ot,nt,ut,function(e,t){var n=null!==t&&void 0!==t?t:!$e.includes(e);bt(e,n)},oe);o.useEffect(function(){ve(!0)},[]);var Ct=o.useMemo(function(){return{_internalRenderMenuItem:re,_internalRenderSubMenuItem:ie}},[re,ie]),xt="horizontal"!==Le||S?de:de.map(function(e,t){return o.createElement(xC,{key:e.key,overflowDisabled:t>Ge},e)}),$t=o.createElement(Cg,(0,l.A)({id:y,ref:he,prefixCls:"".concat(c,"-overflow"),component:"ul",itemComponent:ax,className:a()(c,"".concat(c,"-root"),"".concat(c,"-").concat(Le),p,(0,Ee.A)((0,Ee.A)({},"".concat(c,"-inline-collapsed"),Ke),"".concat(c,"-rtl"),ye),s),dir:b,style:u,role:"menu",tabIndex:g,data:xt,renderRawItem:function(e){return e},renderRawRest:function(e){var t=e.length,n=t?de.slice(-t):null;return o.createElement(xx,{eventKey:qC,title:Z,disabled:Ue,internalPopupClose:0===t,popupClassName:J},n)},maxCount:"horizontal"!==Le||S?Cg.INVALIDATE:Cg.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){Ye(e)},onKeyDown:yt},le));return o.createElement(OC.Provider,{value:Ct},o.createElement(vC.Provider,{value:be},o.createElement(xC,{prefixCls:c,rootClassName:s,mode:Le,openKeys:$e,rtl:ye,disabled:w,motion:ge?K:null,defaultMotions:ge?q:null,activeKey:st,onActive:dt,onInactive:pt,selectedKeys:gt,inlineIndent:_,subMenuOpenDelay:E,subMenuCloseDelay:A,forceSubMenuRender:I,builtinPlacements:G,triggerSubMenuAction:X,getPopupContainer:ee,itemIcon:Y,expandIcon:U,onItemClick:ht,onOpenChange:bt},o.createElement(EC.Provider,{value:at},$t),o.createElement("div",{style:{display:"none"},"aria-hidden":!0},o.createElement($C.Provider,{value:it},pe)))))});var jx=Mx;jx.Item=ax,jx.SubMenu=xx,jx.ItemGroup=kx,jx.Divider=$x;const Px=jx;var Rx=n(24500);const Tx=o.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}}),zx=e=>{const{antCls:t,componentCls:n,colorText:o,footerBg:r,headerHeight:i,headerPadding:a,headerColor:l,footerPadding:c,fontSize:s,bodyBg:u,headerBg:d}=e;return{[n]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:u,"&, *":{boxSizing:"border-box"},[`&${n}-has-sider`]:{flexDirection:"row",[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${n}-header`]:{height:i,padding:a,color:l,lineHeight:nt(i),background:d,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:c,color:o,fontSize:s,background:r},[`${n}-content`]:{flex:"auto",color:o,minHeight:0}}},Bx=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:o,colorText:r,controlHeightSM:i,marginXXS:a,colorTextLightSolid:l,colorBgContainer:c}=e,s=1.25*o;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:2*n,headerPadding:`0 ${s}px`,headerColor:r,footerPadding:`${i}px ${s}px`,footerBg:t,siderBg:"#001529",triggerHeight:o+2*a,triggerBg:"#002140",triggerColor:l,zeroTriggerWidth:o,zeroTriggerHeight:o,lightSiderBg:c,lightTriggerBg:c,lightTriggerColor:r}},Hx=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]],Dx=qo("Layout",e=>[zx(e)],Bx,{deprecatedTokens:Hx}),Lx=e=>{const{componentCls:t,siderBg:n,motionDurationMid:o,motionDurationSlow:r,antCls:i,triggerHeight:a,triggerColor:l,triggerBg:c,headerHeight:s,zeroTriggerWidth:u,zeroTriggerHeight:d,borderRadiusLG:p,lightSiderBg:f,lightTriggerColor:m,lightTriggerBg:g,bodyBg:v}=e;return{[t]:{position:"relative",minWidth:0,background:n,transition:`all ${o}, background 0s`,"&-has-trigger":{paddingBottom:a},"&-right":{order:1},[`${t}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${i}-menu${i}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${t}-children`]:{overflow:"hidden"},[`${t}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:a,color:l,lineHeight:nt(a),textAlign:"center",background:c,cursor:"pointer",transition:`all ${o}`},[`${t}-zero-width-trigger`]:{position:"absolute",top:s,insetInlineEnd:e.calc(u).mul(-1).equal(),zIndex:1,width:u,height:d,color:l,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:n,borderRadius:`0 ${nt(p)} ${nt(p)} 0`,cursor:"pointer",transition:`background ${r} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${r}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(u).mul(-1).equal(),borderRadius:`${nt(p)} 0 0 ${nt(p)}`}},"&-light":{background:f,[`${t}-trigger`]:{color:m,background:g},[`${t}-zero-width-trigger`]:{color:m,background:g,border:`1px solid ${v}`,borderInlineStart:0}}}}},Fx=qo(["Layout","Sider"],e=>[Lx(e)],Bx,{deprecatedTokens:Hx});var Wx=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const _x={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},Kx=o.createContext({}),qx=(()=>{let e=0;return function(){return e+=1,`${arguments.length>0&&void 0!==arguments[0]?arguments[0]:""}${e}`}})(),Vx=o.forwardRef((e,t)=>{const{prefixCls:n,className:r,trigger:i,children:l,defaultCollapsed:c=!1,theme:s="dark",style:u={},collapsible:d=!1,reverseArrow:p=!1,width:f=200,collapsedWidth:m=80,zeroWidthTriggerStyle:g,breakpoint:v,onCollapse:h,onBreakpoint:b}=e,y=Wx(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:C}=(0,o.useContext)(Tx),[x,$]=(0,o.useState)("collapsed"in e?e.collapsed:c),[w,S]=(0,o.useState)(!1);(0,o.useEffect)(()=>{"collapsed"in e&&$(e.collapsed)},[e.collapsed]);const k=(t,n)=>{"collapsed"in e||$(t),null===h||void 0===h||h(t,n)},{getPrefixCls:E,direction:O}=(0,o.useContext)(xe),A=E("layout-sider",n),[I,N,M]=Fx(A),j=(0,o.useRef)(null);j.current=e=>{S(e.matches),null===b||void 0===b||b(e.matches),x!==e.matches&&k(e.matches,"responsive")},(0,o.useEffect)(()=>{function e(e){var t;return null===(t=j.current)||void 0===t?void 0:t.call(j,e)}let t;return"undefined"!==typeof(null===window||void 0===window?void 0:window.matchMedia)&&v&&v in _x&&(t=window.matchMedia(`screen and (max-width: ${_x[v]})`),Ob(t,e),e(t)),()=>{Ab(t,e)}},[v]),(0,o.useEffect)(()=>{const e=qx("ant-sider-");return C.addSider(e),()=>C.removeSider(e)},[]);const P=()=>{k(!x,"clickTrigger")},R=Ul(y,["collapsed"]),T=x?m:f,z=(B=T,!Number.isNaN(Number.parseFloat(B))&&isFinite(B)?`${T}px`:String(T));var B;const H=0===parseFloat(String(m||0))?o.createElement("span",{onClick:P,className:a()(`${A}-zero-width-trigger`,`${A}-zero-width-trigger-${p?"right":"left"}`),style:g},i||o.createElement(Rx.A,null)):null,D="rtl"===O===!p,L={expanded:D?o.createElement(ss.A,null):o.createElement(iC.A,null),collapsed:D?o.createElement(iC.A,null):o.createElement(ss.A,null)}[x?"collapsed":"expanded"],F=null!==i?H||o.createElement("div",{className:`${A}-trigger`,onClick:P,style:{width:z}},i||L):null,W=Object.assign(Object.assign({},u),{flex:`0 0 ${z}`,maxWidth:z,minWidth:z,width:z}),_=a()(A,`${A}-${s}`,{[`${A}-collapsed`]:!!x,[`${A}-has-trigger`]:d&&null!==i&&!H,[`${A}-below`]:!!w,[`${A}-zero-width`]:0===parseFloat(z)},r,N,M),K=o.useMemo(()=>({siderCollapsed:x}),[x]);return I(o.createElement(Kx.Provider,{value:K},o.createElement("aside",Object.assign({className:_},R,{style:W,ref:t}),o.createElement("div",{className:`${A}-children`},l),d||w&&H?F:null)))});const Xx=Vx;var Gx=n(75013);const Yx=(0,o.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var Ux=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const Qx=e=>{const{prefixCls:t,className:n,dashed:r}=e,i=Ux(e,["prefixCls","className","dashed"]),{getPrefixCls:l}=o.useContext(xe),c=l("menu",t),s=a()({[`${c}-item-divider-dashed`]:!!r},n);return o.createElement($x,Object.assign({className:s},i))},Zx=e=>{var t;const{className:n,children:r,icon:i,title:l,danger:c,extra:u}=e,{prefixCls:d,firstLevel:p,direction:f,disableMenuItemTitleTooltip:m,inlineCollapsed:g}=o.useContext(Yx),{siderCollapsed:v}=o.useContext(Kx);let h=l;"undefined"===typeof l?h=p?r:"":!1===l&&(h="");const b={title:h};v||g||(b.title=null,b.open=!1);const y=s(r).length;let C=o.createElement(ax,Object.assign({},Ul(e,["title","icon","danger"]),{className:a()({[`${d}-item-danger`]:c,[`${d}-item-only-child`]:1===(i?y+1:y)},n),title:"string"===typeof l?l:void 0}),ii(i,{className:a()(o.isValidElement(i)?null===(t=i.props)||void 0===t?void 0:t.className:void 0,`${d}-item-icon`)}),(e=>{const t=null===r||void 0===r?void 0:r[0],n=o.createElement("span",{className:a()(`${d}-title-content`,{[`${d}-title-content-with-extra`]:!!u||0===u})},r);return(!i||o.isValidElement(r)&&"span"===r.type)&&r&&e&&p&&"string"===typeof t?o.createElement("div",{className:`${d}-inline-collapsed-noicon`},t.charAt(0)):n})(g));return m||(C=o.createElement(hy,Object.assign({},b,{placement:"rtl"===f?"left":"right",classNames:{root:`${d}-inline-collapsed-tooltip`}}),C)),C};var Jx=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const e$=o.createContext(null),t$=o.forwardRef((e,t)=>{const{children:n}=e,r=Jx(e,["children"]),i=o.useContext(e$),a=o.useMemo(()=>Object.assign(Object.assign({},i),r),[i,r.prefixCls,r.mode,r.selectable,r.rootClassName]),l=(0,b.H3)(n),c=(0,b.xK)(t,l?(0,b.A9)(n):null);return o.createElement(e$.Provider,{value:a},o.createElement(Ip,{space:!0},l?o.cloneElement(n,{ref:c}):n))}),n$=e$,o$=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:o,colorSplit:r,lineWidth:i,lineType:a,itemPaddingInline:l}=e;return{[`${t}-horizontal`]:{lineHeight:o,border:0,borderBottom:`${nt(i)} ${a} ${r}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:l},[`> ${t}-item:hover,\n > ${t}-item-active,\n > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},r$=e=>{let{componentCls:t,menuArrowOffset:n,calc:o}=e;return{[`${t}-rtl`]:{direction:"rtl"},[`${t}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${t}-rtl${t}-vertical,\n ${t}-submenu-rtl ${t}-vertical`]:{[`${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${nt(o(n).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${nt(n)})`}}}}},i$=e=>Object.assign({},fo(e)),a$=(e,t)=>{const{componentCls:n,itemColor:o,itemSelectedColor:r,subMenuItemSelectedColor:i,groupTitleColor:a,itemBg:l,subMenuItemBg:c,itemSelectedBg:s,activeBarHeight:u,activeBarWidth:d,activeBarBorderWidth:p,motionDurationSlow:f,motionEaseInOut:m,motionEaseOut:g,itemPaddingInline:v,motionDurationMid:h,itemHoverColor:b,lineType:y,colorSplit:C,itemDisabledColor:x,dangerItemColor:$,dangerItemHoverColor:w,dangerItemSelectedColor:S,dangerItemActiveBg:k,dangerItemSelectedBg:E,popupBg:O,itemHoverBg:A,itemActiveBg:I,menuSubMenuBg:N,horizontalItemSelectedColor:M,horizontalItemSelectedBg:j,horizontalItemBorderRadius:P,horizontalItemHoverBg:R}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:o,background:l,[`&${n}-root:focus-visible`]:Object.assign({},i$(e)),[`${n}-item`]:{"&-group-title, &-extra":{color:a}},[`${n}-submenu-selected > ${n}-submenu-title`]:{color:i},[`${n}-item, ${n}-submenu-title`]:{color:o,[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},i$(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:b}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:A},"&:active":{backgroundColor:I}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:A},"&:active":{backgroundColor:I}}},[`${n}-item-danger`]:{color:$,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:w}},[`&${n}-item:active`]:{background:k}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:r,[`&${n}-item-danger`]:{color:S},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:s,[`&${n}-item-danger`]:{backgroundColor:E}},[`&${n}-submenu > ${n}`]:{backgroundColor:N},[`&${n}-popup > ${n}`]:{backgroundColor:O},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:O},[`&${n}-horizontal`]:Object.assign(Object.assign({},"dark"===t?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:p,marginTop:e.calc(p).mul(-1).equal(),marginBottom:0,borderRadius:P,"&::after":{position:"absolute",insetInline:v,bottom:0,borderBottom:`${nt(u)} solid transparent`,transition:`border-color ${f} ${m}`,content:'""'},"&:hover, &-active, &-open":{background:R,"&::after":{borderBottomWidth:u,borderBottomColor:M}},"&-selected":{color:M,backgroundColor:j,"&:hover":{backgroundColor:j},"&::after":{borderBottomWidth:u,borderBottomColor:M}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${nt(p)} ${y} ${C}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:c},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${nt(d)} solid ${r}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${h} ${g}`,`opacity ${h} ${g}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:S}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${h} ${m}`,`opacity ${h} ${m}`].join(",")}}}}}},l$=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:o,padding:r,menuArrowSize:i,marginXS:a,itemMarginBlock:l,itemWidth:c,itemPaddingInline:s}=e,u=e.calc(i).add(r).add(a).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:nt(n),paddingInline:s,overflow:"hidden",textOverflow:"ellipsis",marginInline:o,marginBlock:l,width:c},[`> ${t}-item,\n > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:nt(n)},[`${t}-item-group-list ${t}-submenu-title,\n ${t}-submenu-title`]:{paddingInlineEnd:u}}},c$=e=>{const{componentCls:t,iconCls:n,itemHeight:o,colorTextLightSolid:r,dropdownWidth:i,controlHeightLG:a,motionEaseOut:l,paddingXL:c,itemMarginInline:s,fontSizeLG:u,motionDurationFast:d,motionDurationSlow:p,paddingXS:f,boxShadowSecondary:m,collapsedWidth:g,collapsedIconSize:v}=e,h={height:o,lineHeight:nt(o),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},l$(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},l$(e)),{boxShadow:m})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:i,maxHeight:`calc(100vh - ${nt(e.calc(a).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${p}`,`background ${p}`,`padding ${d} ${l}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:h,[`& ${t}-item-group-title`]:{paddingInlineStart:c}},[`${t}-item`]:h}},{[`${t}-inline-collapsed`]:{width:g,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:u,textAlign:"center"}}},[`> ${t}-item,\n > ${t}-item-group > ${t}-item-group-list > ${t}-item,\n > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,\n > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${nt(e.calc(v).div(2).equal())} - ${nt(s)})`,textOverflow:"clip",[`\n ${t}-submenu-arrow,\n ${t}-submenu-expand-icon\n `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:v,lineHeight:nt(o),"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:r}},[`${t}-item-group-title`]:Object.assign(Object.assign({},uo),{paddingInline:f})}}]},s$=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:o,motionEaseInOut:r,motionEaseOut:i,iconCls:a,iconSize:l,iconMarginInlineEnd:c}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${n}`,`background ${n}`,`padding calc(${n} + 0.1s) ${r}`].join(","),[`${t}-item-icon, ${a}`]:{minWidth:l,fontSize:l,transition:[`font-size ${o} ${i}`,`margin ${n} ${r}`,`color ${n}`].join(","),"+ span":{marginInlineStart:c,opacity:1,transition:[`opacity ${n} ${r}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:Object.assign({},{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"}}),[`&${t}-item-only-child`]:{[`> ${a}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important",cursor:"not-allowed",pointerEvents:"none"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},u$=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:o,borderRadius:r,menuArrowSize:i,menuArrowOffset:a}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:i,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${o}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(i).mul(.6).equal(),height:e.calc(i).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:r,transition:[`background ${n} ${o}`,`transform ${n} ${o}`,`top ${n} ${o}`,`color ${n} ${o}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${nt(e.calc(a).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${nt(a)})`}}}}},d$=e=>{const{antCls:t,componentCls:n,fontSize:o,motionDurationSlow:r,motionDurationMid:i,motionEaseInOut:a,paddingXS:l,padding:c,colorSplit:s,lineWidth:u,zIndexPopup:d,borderRadiusLG:p,subMenuItemBorderRadius:f,menuArrowSize:m,menuArrowOffset:g,lineType:v,groupTitleLineHeight:h,groupTitleFontSize:b}=e;return[{"":{[n]:Object.assign(Object.assign({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},po(e)),{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{marginBottom:0,paddingInlineStart:0,fontSize:o,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${r} 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:`${nt(l)} ${nt(c)}`,fontSize:b,lineHeight:h,transition:`all ${r}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${r} ${a}`,`background ${r} ${a}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${r} ${a}`,`background ${r} ${a}`,`padding ${i} ${a}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${r} ${a}`,`padding ${r} ${a}`].join(",")},[`${n}-title-content`]:{transition:`color ${r}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${n}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:e.padding}},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:s,borderStyle:v,borderWidth:0,borderTopWidth:u,marginBlock:u,padding:0,"&-dashed":{borderStyle:"dashed"}}}),s$(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${nt(e.calc(o).mul(2).equal())} ${nt(c)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:d,borderRadius:p,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:p},s$(e)),u$(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:f},[`${n}-submenu-title::after`]:{transition:`transform ${r} ${a}`}})},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS}}}),u$(e)),{[`&-inline-collapsed ${n}-submenu-arrow,\n &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${nt(g)})`},"&::after":{transform:`rotate(45deg) translateX(${nt(e.calc(g).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${nt(e.calc(m).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${nt(e.calc(g).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${nt(g)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},p$=e=>{var t,n,o;const{colorPrimary:r,colorError:i,colorTextDisabled:a,colorErrorBg:l,colorText:c,colorTextDescription:s,colorBgContainer:u,colorFillAlter:d,colorFillContent:p,lineWidth:f,lineWidthBold:m,controlItemBgActive:g,colorBgTextHover:v,controlHeightLG:h,lineHeight:b,colorBgElevated:y,marginXXS:C,padding:x,fontSize:$,controlHeightSM:w,fontSizeLG:S,colorTextLightSolid:k,colorErrorHover:E}=e,O=null!==(t=e.activeBarWidth)&&void 0!==t?t:0,A=null!==(n=e.activeBarBorderWidth)&&void 0!==n?n:f,I=null!==(o=e.itemMarginInline)&&void 0!==o?o:e.marginXXS,N=new wo.Y(k).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:c,itemColor:c,colorItemTextHover:c,itemHoverColor:c,colorItemTextHoverHorizontal:r,horizontalItemHoverColor:r,colorGroupTitle:s,groupTitleColor:s,colorItemTextSelected:r,itemSelectedColor:r,subMenuItemSelectedColor:r,colorItemTextSelectedHorizontal:r,horizontalItemSelectedColor:r,colorItemBg:u,itemBg:u,colorItemBgHover:v,itemHoverBg:v,colorItemBgActive:p,itemActiveBg:g,colorSubItemBg:d,subMenuItemBg:d,colorItemBgSelected:g,itemSelectedBg:g,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:O,colorActiveBarHeight:m,activeBarHeight:m,colorActiveBarBorderSize:f,activeBarBorderWidth:A,colorItemTextDisabled:a,itemDisabledColor:a,colorDangerItemText:i,dangerItemColor:i,colorDangerItemTextHover:i,dangerItemHoverColor:i,colorDangerItemTextSelected:i,dangerItemSelectedColor:i,colorDangerItemBgActive:l,dangerItemActiveBg:l,colorDangerItemBgSelected:l,dangerItemSelectedBg:l,itemMarginInline:I,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:h,groupTitleLineHeight:b,collapsedWidth:2*h,popupBg:y,itemMarginBlock:C,itemPaddingInline:x,horizontalLineHeight:1.15*h+"px",iconSize:$,iconMarginInlineEnd:w-$,collapsedIconSize:S,groupTitleFontSize:$,darkItemDisabledColor:new wo.Y(k).setA(.25).toRgbString(),darkItemColor:N,darkDangerItemColor:i,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:k,darkItemSelectedBg:r,darkDangerItemSelectedBg:i,darkItemHoverBg:"transparent",darkGroupTitleColor:N,darkItemHoverColor:k,darkDangerItemHoverColor:E,darkDangerItemSelectedColor:k,darkDangerItemActiveBg:i,itemWidth:O?`calc(100% + ${A}px)`:`calc(100% - ${2*I}px)`}},f$=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;const n=qo("Menu",e=>{const{colorBgElevated:t,controlHeightLG:n,fontSize:o,darkItemColor:r,darkDangerItemColor:i,darkItemBg:a,darkSubMenuItemBg:l,darkItemSelectedColor:c,darkItemSelectedBg:s,darkDangerItemSelectedBg:u,darkItemHoverBg:d,darkGroupTitleColor:p,darkItemHoverColor:f,darkItemDisabledColor:m,darkDangerItemHoverColor:g,darkDangerItemSelectedColor:v,darkDangerItemActiveBg:h,popupBg:b,darkPopupBg:y}=e,C=e.calc(o).div(7).mul(5).equal(),x=Jn(e,{menuArrowSize:C,menuHorizontalHeight:e.calc(n).mul(1.15).equal(),menuArrowOffset:e.calc(C).mul(.25).equal(),menuSubMenuBg:t,calc:e.calc,popupBg:b}),$=Jn(x,{itemColor:r,itemHoverColor:f,groupTitleColor:p,itemSelectedColor:c,subMenuItemSelectedColor:c,itemBg:a,popupBg:y,subMenuItemBg:l,itemActiveBg:"transparent",itemSelectedBg:s,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:d,itemDisabledColor:m,dangerItemColor:i,dangerItemHoverColor:g,dangerItemSelectedColor:v,dangerItemActiveBg:h,dangerItemSelectedBg:u,menuSubMenuBg:l,horizontalItemSelectedColor:c,horizontalItemSelectedBg:s});return[d$(x),o$(x),c$(x),a$(x,"light"),a$($,"dark"),r$(x),$s(x),Nh(x,"slide-up"),Nh(x,"slide-down"),Lf(x,"zoom-big")]},p$,{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:!(arguments.length>2&&void 0!==arguments[2])||arguments[2],unitless:{groupTitleLineHeight:!0}});return n(e,t)},m$=e=>{var t;const{popupClassName:n,icon:r,title:i,theme:l}=e,c=o.useContext(Yx),{prefixCls:s,inlineCollapsed:u,theme:d}=c,p=kC();let f;if(r){const e=o.isValidElement(i)&&"span"===i.type;f=o.createElement(o.Fragment,null,ii(r,{className:a()(o.isValidElement(r)?null===(t=r.props)||void 0===t?void 0:t.className:void 0,`${s}-item-icon`)}),e?i:o.createElement("span",{className:`${s}-title-content`},i))}else f=u&&!p.length&&i&&"string"===typeof i?o.createElement("div",{className:`${s}-inline-collapsed-noicon`},i.charAt(0)):o.createElement("span",{className:`${s}-title-content`},i);const m=o.useMemo(()=>Object.assign(Object.assign({},c),{firstLevel:!1}),[c]),[g]=fa("Menu");return o.createElement(Yx.Provider,{value:m},o.createElement(xx,Object.assign({},Ul(e,["icon"]),{title:f,popupClassName:a()(s,n,`${s}-${l||d}`),popupStyle:Object.assign({zIndex:g},e.popupStyle)})))};var g$=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};function v$(e){return null===e||!1===e}const h$={item:Zx,submenu:m$,divider:Qx},b$=(0,o.forwardRef)((e,t)=>{var n;const r=o.useContext(n$),i=r||{},{getPrefixCls:l,getPopupContainer:c,direction:s,menu:u}=o.useContext(xe),d=l(),{prefixCls:p,className:f,style:m,theme:g="light",expandIcon:v,_internalDisableMenuItemTitleTooltip:h,inlineCollapsed:b,siderCollapsed:y,rootClassName:C,mode:x,selectable:$,onClick:w,overflowedIndicatorPopupClassName:S}=e,k=Ul(g$(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),["collapsedWidth"]);null===(n=i.validator)||void 0===n||n.call(i,{mode:x});const E=Bn(function(){for(var e,t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];null===w||void 0===w||w.apply(void 0,n),null===(e=i.onClick)||void 0===e||e.call(i)}),O=i.mode||x,A=null!==$&&void 0!==$?$:i.selectable,I=null!==b&&void 0!==b?b:y,N={horizontal:{motionName:`${d}-slide-up`},inline:Gl(d),other:{motionName:`${d}-zoom-big`}},M=l("menu",p||i.prefixCls),j=Mi(M),[P,R,T]=f$(M,j,!r),z=a()(`${M}-${g}`,null===u||void 0===u?void 0:u.className,f),B=o.useMemo(()=>{var e,t;if("function"===typeof v||v$(v))return v||null;if("function"===typeof i.expandIcon||v$(i.expandIcon))return i.expandIcon||null;if("function"===typeof(null===u||void 0===u?void 0:u.expandIcon)||v$(null===u||void 0===u?void 0:u.expandIcon))return(null===u||void 0===u?void 0:u.expandIcon)||null;const n=null!==(e=null!==v&&void 0!==v?v:null===i||void 0===i?void 0:i.expandIcon)&&void 0!==e?e:null===u||void 0===u?void 0:u.expandIcon;return ii(n,{className:a()(`${M}-submenu-expand-icon`,o.isValidElement(n)?null===(t=n.props)||void 0===t?void 0:t.className:void 0)})},[v,null===i||void 0===i?void 0:i.expandIcon,null===u||void 0===u?void 0:u.expandIcon,M]),H=o.useMemo(()=>({prefixCls:M,inlineCollapsed:I||!1,direction:s,firstLevel:!0,theme:g,mode:O,disableMenuItemTitleTooltip:h}),[M,I,s,h,g]);return P(o.createElement(n$.Provider,{value:null},o.createElement(Yx.Provider,{value:H},o.createElement(Px,Object.assign({getPopupContainer:c,overflowedIndicator:o.createElement(Gx.A,null),overflowedIndicatorPopupClassName:a()(M,`${M}-${g}`,S),mode:O,selectable:A,onClick:E},k,{inlineCollapsed:I,style:Object.assign(Object.assign({},null===u||void 0===u?void 0:u.style),m),className:z,prefixCls:M,direction:s,defaultMotions:N,expandIcon:B,ref:t,rootClassName:a()(C,R,i.rootClassName,T,j),_internalComponents:h$})))))}),y$=b$,C$=(0,o.forwardRef)((e,t)=>{const n=(0,o.useRef)(null),r=o.useContext(Kx);return(0,o.useImperativeHandle)(t,()=>({menu:n.current,focus:e=>{var t;null===(t=n.current)||void 0===t||t.focus(e)}})),o.createElement(y$,Object.assign({ref:n},e,r))});C$.Item=Zx,C$.SubMenu=m$,C$.Divider=Qx,C$.ItemGroup=kx;const x$=C$,$$=e=>{const{componentCls:t,menuCls:n,colorError:o,colorTextLightSolid:r}=e,i=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${i}`]:{[`&${i}-danger:not(${i}-disabled)`]:{color:o,"&:hover":{color:r,backgroundColor:o}}}}}},w$=e=>{const{componentCls:t,menuCls:n,zIndexPopup:o,dropdownArrowDistance:r,sizePopupArrow:i,antCls:a,iconCls:l,motionDurationMid:c,paddingBlock:s,fontSize:u,dropdownEdgeChildPadding:d,colorTextDisabled:p,fontSizeIcon:f,controlPaddingHorizontal:m,colorBgElevated:g}=e;return[{[t]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:o,display:"block","&::before":{position:"absolute",insetBlock:e.calc(i).div(2).sub(r).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${a}-btn`]:{[`& > ${l}-down, & > ${a}-btn-icon > ${l}-down`]:{fontSize:f}},[`${t}-wrap`]:{position:"relative",[`${a}-btn > ${l}-down`]:{fontSize:f},[`${l}-down::before`]:{transition:`transform ${c}`}},[`${t}-wrap-open`]:{[`${l}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomLeft,\n &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomLeft,\n &${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottom,\n &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottom,\n &${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomRight,\n &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:xh},[`&${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topLeft,\n &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topLeft,\n &${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-top,\n &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-top,\n &${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topRight,\n &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topRight`]:{animationName:wh},[`&${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomLeft,\n &${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottom,\n &${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:$h},[`&${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topLeft,\n &${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-top,\n &${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topRight`]:{animationName:Sh}}},ey(e,g,{arrowPlacement:{top:!0,bottom:!0}}),{[`${t} ${n}`]:{position:"relative",margin:0},[`${n}-submenu-popup`]:{position:"absolute",zIndex:o,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${t}, ${t}-menu-submenu`]:Object.assign(Object.assign({},po(e)),{[n]:Object.assign(Object.assign({padding:d,listStyleType:"none",backgroundColor:g,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},mo(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${nt(s)} ${nt(m)}`,color:e.colorTextDescription,transition:`all ${c}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:u,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${c}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${n}-item-extra`]:{paddingInlineStart:e.padding,marginInlineStart:"auto",fontSize:e.fontSizeSM,color:e.colorTextDescription}},[`${n}-item, ${n}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${nt(s)} ${nt(m)}`,color:e.colorText,fontWeight:"normal",fontSize:u,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${c}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},mo(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:p,cursor:"not-allowed","&:hover":{color:p,backgroundColor:g,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${nt(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:f,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${nt(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:p,backgroundColor:g,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})})},[Nh(e,"slide-up"),Nh(e,"slide-down"),Hh(e,"move-up"),Hh(e,"move-down"),Lf(e,"zoom-big")]]},S$=qo("Dropdown",e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:o,componentCls:r}=e,i=Jn(e,{menuCls:`${r}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:o});return[w$(i),$$(i)]},e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},Zb({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),Ub(e)),{resetStyle:!1}),k$=e=>{var t;const{menu:n,arrow:r,prefixCls:i,children:l,trigger:c,disabled:s,dropdownRender:u,popupRender:d,getPopupContainer:p,overlayClassName:f,rootClassName:m,overlayStyle:g,open:v,onOpenChange:h,visible:b,onVisibleChange:y,mouseEnterDelay:C=.15,mouseLeaveDelay:x=.1,autoAdjustOverflow:$=!0,placement:w="",overlay:S,transitionName:k,destroyOnHidden:E,destroyPopupOnHide:O}=e,{getPopupContainer:A,getPrefixCls:I,direction:N,dropdown:M}=o.useContext(xe),j=d||u;qi("Dropdown");const P=o.useMemo(()=>{const e=I();return void 0!==k?k:w.includes("top")?`${e}-slide-down`:`${e}-slide-up`},[I,w,k]),R=o.useMemo(()=>w?w.includes("Center")?w.slice(0,w.indexOf("Center")):w:"rtl"===N?"bottomRight":"bottomLeft",[w,N]),T=I("dropdown",i),z=Mi(T),[B,H,D]=S$(T,z),[,L]=Ko(),F=o.Children.only(gC(l)?o.createElement("span",null,l):l),W=ii(F,{className:a()(`${T}-trigger`,{[`${T}-rtl`]:"rtl"===N},F.props.className),disabled:null!==(t=F.props.disabled)&&void 0!==t?t:s}),_=s?[]:c,K=!!(null===_||void 0===_?void 0:_.includes("contextMenu")),[q,V]=Ln(!1,{value:null!==v&&void 0!==v?v:b}),X=Bn(e=>{null===h||void 0===h||h(e,{source:"trigger"}),null===y||void 0===y||y(e),V(e)}),G=a()(f,m,H,D,z,null===M||void 0===M?void 0:M.className,{[`${T}-rtl`]:"rtl"===N}),Y=ry({arrowPointAtCenter:"object"===typeof r&&r.pointAtCenter,autoAdjustOverflow:$,offset:L.marginXXS,arrowWidth:r?L.sizePopupArrow:0,borderRadius:L.borderRadius}),U=o.useCallback(()=>{(null===n||void 0===n?void 0:n.selectable)&&(null===n||void 0===n?void 0:n.multiple)||(null===h||void 0===h||h(!1,{source:"menu"}),V(!1))},[null===n||void 0===n?void 0:n.selectable,null===n||void 0===n?void 0:n.multiple]),[Q,Z]=fa("Dropdown",null===g||void 0===g?void 0:g.zIndex);let J=o.createElement(mC,Object.assign({alignPoint:K},Ul(e,["rootClassName"]),{mouseEnterDelay:C,mouseLeaveDelay:x,visible:q,builtinPlacements:Y,arrow:!!r,overlayClassName:G,prefixCls:T,getPopupContainer:p||A,transitionName:P,trigger:_,overlay:()=>{let e;return e=(null===n||void 0===n?void 0:n.items)?o.createElement(x$,Object.assign({},n)):"function"===typeof S?S():S,j&&(e=j(e)),e=o.Children.only("string"===typeof e?o.createElement("span",null,e):e),o.createElement(t$,{prefixCls:`${T}-menu`,rootClassName:a()(D,z),expandIcon:o.createElement("span",{className:`${T}-menu-submenu-arrow`},"rtl"===N?o.createElement(iC.A,{className:`${T}-menu-submenu-arrow-icon`}):o.createElement(ss.A,{className:`${T}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:U,validator:e=>{let{mode:t}=e}},e)},placement:R,onVisibleChange:X,overlayStyle:Object.assign(Object.assign(Object.assign({},null===M||void 0===M?void 0:M.style),g),{zIndex:Q}),autoDestroy:null!==E&&void 0!==E?E:O}),W);return Q&&(J=o.createElement(ca.Provider,{value:Z},J)),B(J)},E$=Qm(k$,"align",void 0,"dropdown",e=>e);k$._InternalPanelDoNotUseOrYouWillBeFired=e=>o.createElement(E$,Object.assign({},e),o.createElement("span",null));const O$=k$,A$=e=>{let{children:t}=e;const{getPrefixCls:n}=o.useContext(xe),r=n("breadcrumb");return o.createElement("li",{className:`${r}-separator`,"aria-hidden":"true"},""===t?t:t||"/")};A$.__ANT_BREADCRUMB_SEPARATOR=!0;const I$=A$;var N$=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};function M$(e,t,n,r){if(null===n||void 0===n)return null;const{className:i,onClick:l}=t,c=N$(t,["className","onClick"]),s=Object.assign(Object.assign({},ni(c,{data:!0,aria:!0})),{onClick:l});return void 0!==r?o.createElement("a",Object.assign({},s,{className:a()(`${e}-link`,i),href:r}),n):o.createElement("span",Object.assign({},s,{className:a()(`${e}-link`,i)}),n)}function j$(e,t){return(n,o,r,i,a)=>{if(t)return t(n,o,r,i);const l=function(e,t){if(void 0===e.title||null===e.title)return null;const n=Object.keys(t).join("|");return"object"===typeof e.title?e.title:String(e.title).replace(new RegExp(`:(${n})`,"g"),(e,n)=>t[n]||e)}(n,o);return M$(e,n,l,a)}}var P$=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const R$=e=>{const{prefixCls:t,separator:n="/",children:r,menu:i,overlay:a,dropdownProps:l,href:c}=e;const s=(e=>{if(i||a){const n=Object.assign({},l);if(i){const e=i||{},{items:t}=e,r=P$(e,["items"]);n.menu=Object.assign(Object.assign({},r),{items:null===t||void 0===t?void 0:t.map((e,t)=>{var{key:n,title:r,label:i,path:a}=e,l=P$(e,["key","title","label","path"]);let s=null!==i&&void 0!==i?i:r;return a&&(s=o.createElement("a",{href:`${c}${a}`},s)),Object.assign(Object.assign({},l),{key:null!==n&&void 0!==n?n:t,label:s})})})}else a&&(n.overlay=a);return o.createElement(O$,Object.assign({placement:"bottom"},n),o.createElement("span",{className:`${t}-overlay-link`},e,o.createElement(db.A,null)))}return e})(r);return void 0!==s&&null!==s?o.createElement(o.Fragment,null,o.createElement("li",null,s),n&&o.createElement(I$,null,n)):null},T$=e=>{const{prefixCls:t,children:n,href:r}=e,i=P$(e,["prefixCls","children","href"]),{getPrefixCls:a}=o.useContext(xe),l=a("breadcrumb",t);return o.createElement(R$,Object.assign({},i,{prefixCls:l}),M$(l,i,n,r))};T$.__ANT_BREADCRUMB_ITEM=!0;const z$=T$,B$=qo("Breadcrumb",e=>(e=>{const{componentCls:t,iconCls:n,calc:o}=e;return{[t]:Object.assign(Object.assign({},po(e)),{color:e.itemColor,fontSize:e.fontSize,[n]:{fontSize:e.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:e.linkColor,transition:`color ${e.motionDurationMid}`,padding:`0 ${nt(e.paddingXXS)}`,borderRadius:e.borderRadiusSM,height:e.fontHeight,display:"inline-block",marginInline:o(e.marginXXS).mul(-1).equal(),"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover}},mo(e)),"li:last-child":{color:e.lastItemColor},[`${t}-separator`]:{marginInline:e.separatorMargin,color:e.separatorColor},[`${t}-link`]:{[`\n > ${n} + span,\n > ${n} + a\n `]:{marginInlineStart:e.marginXXS}},[`${t}-overlay-link`]:{borderRadius:e.borderRadiusSM,height:e.fontHeight,display:"inline-block",padding:`0 ${nt(e.paddingXXS)}`,marginInline:o(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"}})}})(Jn(e,{})),e=>({itemColor:e.colorTextDescription,lastItemColor:e.colorText,iconFontSize:e.fontSize,linkColor:e.colorTextDescription,linkHoverColor:e.colorText,separatorColor:e.colorTextDescription,separatorMargin:e.marginXS}));var H$=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};function D$(e){const{breadcrumbName:t,children:n}=e,o=H$(e,["breadcrumbName","children"]),r=Object.assign({title:t},o);return n&&(r.menu={items:n.map(e=>{var{breadcrumbName:t}=e,n=H$(e,["breadcrumbName"]);return Object.assign(Object.assign({},n),{title:t})})}),r}var L$=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const F$=e=>{const{prefixCls:t,separator:n="/",style:r,className:i,rootClassName:l,routes:c,items:u,children:d,itemRender:p,params:f={}}=e,m=L$(e,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:g,direction:v,breadcrumb:h}=o.useContext(xe);let b;const y=g("breadcrumb",t),[C,x,$]=B$(y),w=function(e,t){return(0,o.useMemo)(()=>e||(t?t.map(D$):null),[e,t])}(u,c);const S=j$(y,p);if(w&&w.length>0){const e=[],t=u||c;b=w.map((r,i)=>{const{path:a,key:l,type:c,menu:s,overlay:u,onClick:d,className:p,separator:m,dropdownProps:g}=r,v=((e,t)=>{if(void 0===t)return t;let n=(t||"").replace(/^\//,"");return Object.keys(e).forEach(t=>{n=n.replace(`:${t}`,e[t])}),n})(f,a);void 0!==v&&e.push(v);const h=null!==l&&void 0!==l?l:i;if("separator"===c)return o.createElement(I$,{key:h},m);const b={},C=i===w.length-1;s?b.menu=s:u&&(b.overlay=u);let{href:x}=r;return e.length&&void 0!==v&&(x=`#/${e.join("/")}`),o.createElement(R$,Object.assign({key:h},b,ni(r,{data:!0,aria:!0}),{className:p,dropdownProps:g,href:x,separator:C?"":n,onClick:d,prefixCls:y}),S(r,f,t,e,x))})}else if(d){const e=s(d).length;b=s(d).map((t,o)=>{if(!t)return t;return ii(t,{separator:o===e-1?"":n,key:o})})}const k=a()(y,null===h||void 0===h?void 0:h.className,{[`${y}-rtl`]:"rtl"===v},i,l,x,$),E=Object.assign(Object.assign({},null===h||void 0===h?void 0:h.style),r);return C(o.createElement("nav",Object.assign({className:k,style:E},m),o.createElement("ol",null,b)))};F$.Item=z$,F$.Separator=I$;const W$=F$;var _$=n(57469),K$=n.n(_$),q$=n(19223),V$=n.n(q$),X$=n(20199),G$=n.n(X$),Y$=n(66865),U$=n.n(Y$),Q$=n(66556),Z$=n.n(Q$),J$=n(97076),ew=n.n(J$),tw=n(68988),nw=n.n(tw);K$().extend(nw()),K$().extend(ew()),K$().extend(V$()),K$().extend(G$()),K$().extend(U$()),K$().extend(Z$()),K$().extend(function(e,t){var n=t.prototype,o=n.format;n.format=function(e){var t=(e||"").replace("Wo","wo");return o.bind(this)(t)}});var ow={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"},rw=function(e){return ow[e]||e.split("_")[0]},iw=function(){},aw={getNow:function(){var e=K$()();return"function"===typeof e.tz?e.tz():e},getFixedDate:function(e){return K$()(e,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(e){return e.endOf("month")},getWeekDay:function(e){var t=e.locale("en");return t.weekday()+t.localeData().firstDayOfWeek()},getYear:function(e){return e.year()},getMonth:function(e){return e.month()},getDate:function(e){return e.date()},getHour:function(e){return e.hour()},getMinute:function(e){return e.minute()},getSecond:function(e){return e.second()},getMillisecond:function(e){return e.millisecond()},addYear:function(e,t){return e.add(t,"year")},addMonth:function(e,t){return e.add(t,"month")},addDate:function(e,t){return e.add(t,"day")},setYear:function(e,t){return e.year(t)},setMonth:function(e,t){return e.month(t)},setDate:function(e,t){return e.date(t)},setHour:function(e,t){return e.hour(t)},setMinute:function(e,t){return e.minute(t)},setSecond:function(e,t){return e.second(t)},setMillisecond:function(e,t){return e.millisecond(t)},isAfter:function(e,t){return e.isAfter(t)},isValidate:function(e){return e.isValid()},locale:{getWeekFirstDay:function(e){return K$()().locale(rw(e)).localeData().firstDayOfWeek()},getWeekFirstDate:function(e,t){return t.locale(rw(e)).weekday(0)},getWeek:function(e,t){return t.locale(rw(e)).week()},getShortWeekDays:function(e){return K$()().locale(rw(e)).localeData().weekdaysMin()},getShortMonths:function(e){return K$()().locale(rw(e)).localeData().monthsShort()},format:function(e,t,n){return t.locale(rw(e)).format(n)},parse:function(e,t,n){for(var o=rw(e),r=0;r<n.length;r+=1){var i=n[r],a=t;if(i.includes("wo")||i.includes("Wo")){for(var l=a.split("-")[0],c=a.split("-")[1],s=K$()(l,"YYYY").startOf("year").locale(o),u=0;u<=52;u+=1){var d=s.add(u,"week");if(d.format("Wo")===c)return d}return iw(),null}var p=K$()(a,i,!0).locale(o);if(p.isValid())return p}return null}}};const lw=aw;const cw=o.createContext(null);var sw={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}}};const uw=function(e){var t=e.popupElement,n=e.popupStyle,r=e.popupClassName,i=e.popupAlign,l=e.transitionName,c=e.getPopupContainer,s=e.children,u=e.range,d=e.placement,p=e.builtinPlacements,f=void 0===p?sw:p,m=e.direction,g=e.visible,v=e.onClose,h=o.useContext(cw).prefixCls,b="".concat(h,"-dropdown"),y=function(e,t){return void 0!==e?e:t?"bottomRight":"bottomLeft"}(d,"rtl"===m);return o.createElement(rv,{showAction:[],hideAction:["click"],popupPlacement:y,builtinPlacements:f,prefixCls:b,popupTransitionName:l,popup:t,popupAlign:i,popupVisible:g,popupClassName:a()(r,(0,Ee.A)((0,Ee.A)({},"".concat(b,"-range"),u),"".concat(b,"-rtl"),"rtl"===m)),popupStyle:n,stretch:"minWidth",getPopupContainer:c,onPopupVisibleChange:function(e){e||v()}},s)};function dw(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"0",o=String(e);o.length<t;)o="".concat(n).concat(o);return o}function pw(e){return null===e||void 0===e?[]:Array.isArray(e)?e:[e]}function fw(e,t,n){var o=se(e);return o[t]=n,o}function mw(e,t){var n={};return(t||Object.keys(e)).forEach(function(t){void 0!==e[t]&&(n[t]=e[t])}),n}function gw(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 vw(e,t,n){var o=void 0!==n?n:t[t.length-1],r=t.find(function(t){return e[t]});return o!==r?e[r]:void 0}function hw(e){return mw(e,["placement","builtinPlacements","popupAlign","getPopupContainer","transitionName","direction"])}function bw(e,t,n,r){var i=o.useMemo(function(){return e||function(e,o){var r=e;return t&&"date"===o.type?t(r,o.today):n&&"month"===o.type?n(r,o.locale):o.originNode}},[e,n,t]),a=o.useCallback(function(e,t){return i(e,(0,d.A)((0,d.A)({},t),{},{range:r}))},[i,r]);return a}function yw(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=o.useState([!1,!1]),i=(0,ke.A)(r,2),a=i[0],l=i[1],c=o.useMemo(function(){return a.map(function(o,r){if(o)return!0;var i=e[r];return!!i&&(!n[r]&&!i||!(!i||!t(i,{activeIndex:r})))})},[e,a,t,n]);return[c,function(e,t){l(function(n){return fw(n,t,e)})}]}function Cw(e,t,n,o,r){var i="",a=[];return e&&a.push(r?"hh":"HH"),t&&a.push("mm"),n&&a.push("ss"),i=a.join(":"),o&&(i+=".SSS"),r&&(i+=" A"),i}function xw(e,t){var n=t.showHour,o=t.showMinute,i=t.showSecond,a=t.showMillisecond,l=t.use12Hours;return r().useMemo(function(){return function(e,t,n,o,r,i){var a=e.fieldDateTimeFormat,l=e.fieldDateFormat,c=e.fieldTimeFormat,s=e.fieldMonthFormat,u=e.fieldYearFormat,p=e.fieldWeekFormat,f=e.fieldQuarterFormat,m=e.yearFormat,g=e.cellYearFormat,v=e.cellQuarterFormat,h=e.dayFormat,b=e.cellDateFormat,y=Cw(t,n,o,r,i);return(0,d.A)((0,d.A)({},e),{},{fieldDateTimeFormat:a||"YYYY-MM-DD ".concat(y),fieldDateFormat:l||"YYYY-MM-DD",fieldTimeFormat:c||y,fieldMonthFormat:s||"YYYY-MM",fieldYearFormat:u||"YYYY",fieldWeekFormat:p||"gggg-wo",fieldQuarterFormat:f||"YYYY-[Q]Q",yearFormat:m||"YYYY",cellYearFormat:g||"YYYY",cellQuarterFormat:v||"[Q]Q",cellDateFormat:b||h||"D"})}(e,n,o,i,a,l)},[e,n,o,i,a,l])}function $w(e,t,n){return null!==n&&void 0!==n?n:t.some(function(t){return e.includes(t)})}var ww=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function Sw(e){return e&&"string"===typeof e}function kw(e,t,n,o){return[e,t,n,o].some(function(e){return void 0!==e})}function Ew(e,t,n,o,r){var i=t,a=n,l=o;if(e||i||a||l||r){if(e){var c,s,u,d=[i,a,l].some(function(e){return!1===e}),p=[i,a,l].some(function(e){return!0===e}),f=!!d||!p;i=null!==(c=i)&&void 0!==c?c:f,a=null!==(s=a)&&void 0!==s?s:f,l=null!==(u=l)&&void 0!==u?u:f}}else i=!0,a=!0,l=!0;return[i,a,l,r]}function Ow(e){var t=e.showTime,n=function(e){var t=mw(e,ww),n=e.format,o=e.picker,r=null;return n&&(r=n,Array.isArray(r)&&(r=r[0]),r="object"===(0,p.A)(r)?r.format:r),"time"===o&&(t.format=r),[t,r]}(e),o=(0,ke.A)(n,2),r=o[0],i=o[1],a=t&&"object"===(0,p.A)(t)?t:{},l=(0,d.A)((0,d.A)({defaultOpenValue:a.defaultOpenValue||a.defaultValue},r),a),c=l.showMillisecond,s=l.showHour,u=l.showMinute,f=l.showSecond,m=Ew(kw(s,u,f,c),s,u,f,c),g=(0,ke.A)(m,3);return s=g[0],u=g[1],f=g[2],[l,(0,d.A)((0,d.A)({},l),{},{showHour:s,showMinute:u,showSecond:f,showMillisecond:c}),l.format,i]}function Aw(e,t,n,o,r){if("datetime"===e||"time"===e){for(var i=o,a=gw(e,r,null),l=[t,n],c=0;c<l.length;c+=1){var s=pw(l[c])[0];if(Sw(s)){a=s;break}}var u=i.showHour,p=i.showMinute,f=i.showSecond,m=i.showMillisecond,g=$w(a,["a","A","LT","LLL","LTS"],i.use12Hours),v=kw(u,p,f,m);v||(u=$w(a,["H","h","k","LT","LLL"]),p=$w(a,["m","LT","LLL"]),f=$w(a,["s","LTS"]),m=$w(a,["SSS"]));var h=Ew(v,u,p,f,m),b=(0,ke.A)(h,3);u=b[0],p=b[1],f=b[2];var y=t||Cw(u,p,f,m,g);return(0,d.A)((0,d.A)({},i),{},{format:y,showHour:u,showMinute:p,showSecond:f,showMillisecond:m,use12Hours:g})}return null}function Iw(e,t,n){return!1===t?null:(t&&"object"===(0,p.A)(t)?t:{}).clearIcon||n||o.createElement("span",{className:"".concat(e,"-clear-btn")})}function Nw(e,t,n){return!e&&!t||e===t||!(!e||!t)&&n()}function Mw(e,t,n){return Nw(t,n,function(){return Math.floor(e.getYear(t)/10)===Math.floor(e.getYear(n)/10)})}function jw(e,t,n){return Nw(t,n,function(){return e.getYear(t)===e.getYear(n)})}function Pw(e,t){return Math.floor(e.getMonth(t)/3)+1}function Rw(e,t,n){return Nw(t,n,function(){return jw(e,t,n)&&e.getMonth(t)===e.getMonth(n)})}function Tw(e,t,n){return Nw(t,n,function(){return jw(e,t,n)&&Rw(e,t,n)&&e.getDate(t)===e.getDate(n)})}function zw(e,t,n){return Nw(t,n,function(){return e.getHour(t)===e.getHour(n)&&e.getMinute(t)===e.getMinute(n)&&e.getSecond(t)===e.getSecond(n)})}function Bw(e,t,n){return Nw(t,n,function(){return Tw(e,t,n)&&zw(e,t,n)&&e.getMillisecond(t)===e.getMillisecond(n)})}function Hw(e,t,n,o){return Nw(n,o,function(){var r=e.locale.getWeekFirstDate(t,n),i=e.locale.getWeekFirstDate(t,o);return jw(e,r,i)&&e.locale.getWeek(t,n)===e.locale.getWeek(t,o)})}function Dw(e,t,n,o,r){switch(r){case"date":return Tw(e,n,o);case"week":return Hw(e,t.locale,n,o);case"month":return Rw(e,n,o);case"quarter":return function(e,t,n){return Nw(t,n,function(){return jw(e,t,n)&&Pw(e,t)===Pw(e,n)})}(e,n,o);case"year":return jw(e,n,o);case"decade":return Mw(e,n,o);case"time":return zw(e,n,o);default:return Bw(e,n,o)}}function Lw(e,t,n,o){return!!(t&&n&&o)&&(e.isAfter(o,t)&&e.isAfter(n,o))}function Fw(e,t,n,o,r){return!!Dw(e,t,n,o,r)||e.isAfter(n,o)}function Ww(e,t){var n=t.generateConfig,o=t.locale,r=t.format;return e?"function"===typeof r?r(e):n.locale.format(o.locale,e,r):""}function _w(e,t,n){var o=t,r=["getHour","getMinute","getSecond","getMillisecond"];return["setHour","setMinute","setSecond","setMillisecond"].forEach(function(t,i){o=n?e[t](o,e[r[i]](n)):e[t](o,0)}),o}function Kw(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=o.useMemo(function(){var n=e?pw(e):e;return t&&n&&(n[1]=n[1]||n[0]),n},[e,t]);return n}function qw(e,t){var n=e.generateConfig,r=e.locale,i=e.picker,a=void 0===i?"date":i,l=e.prefixCls,c=void 0===l?"rc-picker":l,s=e.styles,u=void 0===s?{}:s,f=e.classNames,m=void 0===f?{}:f,g=e.order,v=void 0===g||g,h=e.components,b=void 0===h?{}:h,y=e.inputRender,C=e.allowClear,x=e.clearIcon,$=e.needConfirm,w=e.multiple,S=e.format,k=e.inputReadOnly,E=e.disabledDate,O=e.minDate,A=e.maxDate,I=e.showTime,N=e.value,M=e.defaultValue,j=e.pickerValue,P=e.defaultPickerValue,R=Kw(N),T=Kw(M),z=Kw(j),B=Kw(P),H="date"===a&&I?"datetime":a,D="time"===H||"datetime"===H,L=D||w,F=null!==$&&void 0!==$?$:D,W=Ow(e),_=(0,ke.A)(W,4),K=_[0],q=_[1],V=_[2],X=_[3],G=xw(r,q),Y=o.useMemo(function(){return Aw(H,V,X,K,G)},[H,V,X,K,G]);var U=o.useMemo(function(){return(0,d.A)((0,d.A)({},e),{},{prefixCls:c,locale:G,picker:a,styles:u,classNames:m,order:v,components:(0,d.A)({input:y},b),clearIcon:Iw(c,C,x),showTime:Y,value:R,defaultValue:T,pickerValue:z,defaultPickerValue:B},null===t||void 0===t?void 0:t())},[e]),Q=function(e,t,n){return o.useMemo(function(){var o=pw(gw(e,t,n)),r=o[0],i="object"===(0,p.A)(r)&&"mask"===r.type?r.format:null;return[o.map(function(e){return"string"===typeof e||"function"===typeof e?e:e.format}),i]},[e,t,n])}(H,G,S),Z=(0,ke.A)(Q,2),J=Z[0],ee=Z[1],te=function(e,t,n){return!("function"!==typeof e[0]&&!n)||t}(J,k,w),ne=function(e,t,n,o,r){var i=Bn(function(i,a){return!(!n||!n(i,a))||!(!o||!e.isAfter(o,i)||Dw(e,t,o,i,a.type))||!(!r||!e.isAfter(i,r)||Dw(e,t,r,i,a.type))});return i}(n,r,E,O,A),oe=function(e,t,n,o){var r=Bn(function(r,i){var a=(0,d.A)({type:t},i);if(delete a.activeIndex,!e.isValidate(r)||n&&n(r,a))return!0;if(("date"===t||"time"===t)&&o){var l,c=i&&1===i.activeIndex?"end":"start",s=(null===(l=o.disabledTime)||void 0===l?void 0:l.call(o,r,c,{from:a.from}))||{},u=s.disabledHours,p=s.disabledMinutes,f=s.disabledSeconds,m=s.disabledMilliseconds,g=o.disabledHours,v=o.disabledMinutes,h=o.disabledSeconds,b=u||g,y=p||v,C=f||h,x=e.getHour(r),$=e.getMinute(r),w=e.getSecond(r),S=e.getMillisecond(r);if(b&&b().includes(x))return!0;if(y&&y(x).includes($))return!0;if(C&&C(x,$).includes(w))return!0;if(m&&m(x,$,w).includes(S))return!0}return!1});return r}(n,a,ne,Y);return[o.useMemo(function(){return(0,d.A)((0,d.A)({},U),{},{needConfirm:F,inputReadOnly:te,disabledDate:ne})},[U,F,te,ne]),H,L,J,ee,oe]}function Vw(e,t){var n=arguments.length>3?arguments[3]:void 0,o=function(e,t,n){var o=Ln(t,{value:e}),i=(0,ke.A)(o,2),a=i[0],l=i[1],c=r().useRef(e),s=r().useRef(),u=function(){ve.cancel(s.current)},d=Bn(function(){l(c.current),n&&a!==c.current&&n(c.current)}),p=Bn(function(e,t){u(),c.current=e,e||t?d():s.current=ve(d)});return r().useEffect(function(){return u},[]),[a,p]}(!(arguments.length>2&&void 0!==arguments[2]?arguments[2]:[]).every(function(e){return e})&&e,t||!1,n),i=(0,ke.A)(o,2),a=i[0],l=i[1];return[a,function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.inherit&&!a||l(e,t.force)}]}function Xw(e){var t=o.useRef();return o.useImperativeHandle(e,function(){var e;return{nativeElement:null===(e=t.current)||void 0===e?void 0:e.nativeElement,focus:function(e){var n;null===(n=t.current)||void 0===n||n.focus(e)},blur:function(){var e;null===(e=t.current)||void 0===e||e.blur()}}}),t}function Gw(e,t){return o.useMemo(function(){return e||(t?((0,u.Ay)(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(t).map(function(e){var t=(0,ke.A)(e,2);return{label:t[0],value:t[1]}})):[])},[e,t])}function Yw(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=o.useRef(t);r.current=t,st(function(){if(!e){var t=ve(function(){r.current(e)},n);return function(){ve.cancel(t)}}r.current(e)},[e])}function Uw(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=o.useState(0),i=(0,ke.A)(r,2),a=i[0],l=i[1],c=o.useState(!1),s=(0,ke.A)(c,2),u=s[0],d=s[1],p=o.useRef([]),f=o.useRef(null),m=o.useRef(null),g=function(e){f.current=e};return Yw(u||n,function(){u||(p.current=[],g(null))}),o.useEffect(function(){u&&p.current.push(a)},[u,a]),[u,function(e){d(e)},function(e){return e&&(m.current=e),m.current},a,l,function(n){var o=p.current,r=new Set(o.filter(function(e){return n[e]||t[e]})),i=0===o[o.length-1]?1:0;return r.size>=2||e[i]?null:i},p.current,g,function(e){return f.current===e}]}function Qw(e,t,n,o){switch(t){case"date":case"week":return e.addMonth(n,o);case"month":case"quarter":return e.addYear(n,o);case"year":return e.addYear(n,10*o);case"decade":return e.addYear(n,100*o);default:return n}}var Zw=[];function Jw(e,t,n,r,i,a,l,c){var s=arguments.length>8&&void 0!==arguments[8]?arguments[8]:Zw,u=arguments.length>9&&void 0!==arguments[9]?arguments[9]:Zw,d=arguments.length>10&&void 0!==arguments[10]?arguments[10]:Zw,p=arguments.length>11?arguments[11]:void 0,f=arguments.length>12?arguments[12]:void 0,m=arguments.length>13?arguments[13]:void 0,g="time"===l,v=a||0,h=function(t){var o=e.getNow();return g&&(o=_w(e,o)),s[t]||n[t]||o},b=(0,ke.A)(u,2),y=b[0],C=b[1],x=Ln(function(){return h(0)},{value:y}),$=(0,ke.A)(x,2),w=$[0],S=$[1],k=Ln(function(){return h(1)},{value:C}),E=(0,ke.A)(k,2),O=E[0],A=E[1],I=o.useMemo(function(){var t=[w,O][v];return g?t:_w(e,t,d[v])},[g,w,O,v,e,d]),N=function(n){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"panel";(0,[S,A][v])(n);var i=[w,O];i[v]=n,!p||Dw(e,t,w,i[0],l)&&Dw(e,t,O,i[1],l)||p(i,{source:o,range:1===v?"end":"start",mode:r})},M=o.useRef(null);return ut(function(){if(i&&!s[v]){var o=g?null:e.getNow();if(null!==M.current&&M.current!==v?o=[w,O][1^v]:n[v]?o=0===v?n[0]:function(n,o){if(c){var r={date:"month",week:"month",month:"year",quarter:"year"}[l];if(r&&!Dw(e,t,n,o,r))return Qw(e,l,o,-1);if("year"===l&&n&&Math.floor(e.getYear(n)/10)!==Math.floor(e.getYear(o)/10))return Qw(e,l,o,-1)}return o}(n[0],n[1]):n[1^v]&&(o=n[1^v]),o){f&&e.isAfter(f,o)&&(o=f);var r=c?Qw(e,l,o,1):o;m&&e.isAfter(r,m)&&(o=c?Qw(e,l,m,-1):m),N(o,"reset")}}},[i,v,n[v]]),o.useEffect(function(){M.current=i?v:null},[i,v]),ut(function(){i&&s&&s[v]&&N(s[v],"reset")},[i,v]),[I,N]}function eS(e,t){var n=o.useRef(e),r=o.useState({}),i=(0,ke.A)(r,2)[1],a=function(e){return e&&void 0!==t?t:n.current};return[a,function(e){n.current=e,i({})},a(!0)]}var tS=[];function nS(e,t,n){return[function(o){return o.map(function(o){return Ww(o,{generateConfig:e,locale:t,format:n[0]})})},function(t,n){for(var o=Math.max(t.length,n.length),r=-1,i=0;i<o;i+=1){var a=t[i]||null,l=n[i]||null;if(a!==l&&!Bw(e,a,l)){r=i;break}}return[r<0,0!==r]}]}function oS(e,t){return se(e).sort(function(e,n){return t.isAfter(e,n)?1:-1})}function rS(e,t,n,r,i,a,l,c,s){var u=Ln(a,{value:l}),d=(0,ke.A)(u,2),p=d[0],f=d[1],m=p||tS,g=function(e){var t=eS(e),n=(0,ke.A)(t,2),r=n[0],i=n[1],a=Bn(function(){i(e)});return o.useEffect(function(){a()},[e]),[r,i]}(m),v=(0,ke.A)(g,2),h=v[0],b=v[1],y=nS(e,t,n),C=(0,ke.A)(y,2),x=C[0],$=C[1],w=Bn(function(t){var n=se(t);if(r)for(var o=0;o<2;o+=1)n[o]=n[o]||null;else i&&(n=oS(n.filter(function(e){return e}),e));var a=$(h(),n),l=(0,ke.A)(a,2),s=l[0],u=l[1];if(!s&&(b(n),c)){var d=x(n);c(n,d,{range:u?"end":"start"})}});return[m,f,h,w,function(){s&&s(h())}]}function iS(e,t,n,r,i,a,l,c,s,u){var d=e.generateConfig,p=e.locale,f=e.picker,m=e.onChange,g=e.allowEmpty,v=e.order,h=!a.some(function(e){return e})&&v,b=nS(d,p,l),y=(0,ke.A)(b,2),C=y[0],x=y[1],$=eS(t),w=(0,ke.A)($,2),S=w[0],k=w[1],E=Bn(function(){k(t)});o.useEffect(function(){E()},[t]);var O=Bn(function(e){var o=null===e,r=se(e||S());if(o)for(var l=Math.max(a.length,r.length),c=0;c<l;c+=1)a[c]||(r[c]=null);h&&r[0]&&r[1]&&(r=oS(r,d)),i(r);var s=r,b=(0,ke.A)(s,2),y=b[0],$=b[1],w=!y,k=!$,E=!g||(!w||g[0])&&(!k||g[1]),O=!v||w||k||Dw(d,p,y,$,f)||d.isAfter($,y),A=(a[0]||!y||!u(y,{activeIndex:0}))&&(a[1]||!$||!u($,{from:y,activeIndex:1})),I=o||E&&O&&A;if(I){n(r);var N=x(r,t),M=(0,ke.A)(N,1)[0];m&&!M&&m(o&&r.every(function(e){return!e})?null:r,C(r))}return I}),A=Bn(function(e,t){var n=fw(S(),e,r()[e]);k(n),t&&O()}),I=!c&&!s;return Yw(!I,function(){I&&(O(),i(t),E())},2),[A,O]}function aS(e,t,n,o,r){return("date"===t||"time"===t)&&(void 0!==n?n:void 0!==o?o:!r&&("date"===e||"time"===e))}function lS(){return[]}function cS(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:2,a=[],l=n>=1?0|n:1,c=e;c<=t;c+=l){var s=r.includes(c);s&&o||a.push({label:dw(c,i),value:c,disabled:s})}return a}function sS(e){var t=arguments.length>2?arguments[2]:void 0,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})||{},r=n.use12Hours,i=n.hourStep,a=void 0===i?1:i,l=n.minuteStep,c=void 0===l?1:l,s=n.secondStep,u=void 0===s?1:s,p=n.millisecondStep,f=void 0===p?100:p,m=n.hideDisabledOptions,g=n.disabledTime,v=n.disabledHours,h=n.disabledMinutes,b=n.disabledSeconds,y=o.useMemo(function(){return t||e.getNow()},[t,e]),C=o.useCallback(function(e){var t=(null===g||void 0===g?void 0:g(e))||{};return[t.disabledHours||v||lS,t.disabledMinutes||h||lS,t.disabledSeconds||b||lS,t.disabledMilliseconds||lS]},[g,v,h,b]),x=o.useMemo(function(){return C(y)},[y,C]),$=(0,ke.A)(x,4),w=$[0],S=$[1],k=$[2],E=$[3],O=o.useCallback(function(e,t,n,o){var i=cS(0,23,a,m,e()),l=r?i.map(function(e){return(0,d.A)((0,d.A)({},e),{},{label:dw(e.value%12||12,2)})}):i;return[l,function(e){return cS(0,59,c,m,t(e))},function(e,t){return cS(0,59,u,m,n(e,t))},function(e,t,n){return cS(0,999,f,m,o(e,t,n),3)}]},[m,a,r,f,c,u]),A=o.useMemo(function(){return O(w,S,k,E)},[O,w,S,k,E]),I=(0,ke.A)(A,4),N=I[0],M=I[1],j=I[2],P=I[3];return[function(t,n){var o=function(){return N},r=M,i=j,a=P;if(n){var l=C(n),c=(0,ke.A)(l,4),s=c[0],u=c[1],d=c[2],p=c[3],f=O(s,u,d,p),m=(0,ke.A)(f,4),g=m[0];o=function(){return g},r=m[1],i=m[2],a=m[3]}var v=function(e,t,n,o,r,i){var a=e;function l(e,t,n){var o=i[e](a),r=n.find(function(e){return e.value===o});if(!r||r.disabled){var l=n.filter(function(e){return!e.disabled}),c=se(l).reverse().find(function(e){return e.value<=o})||l[0];c&&(o=c.value,a=i[t](a,o))}return o}var c=l("getHour","setHour",t()),s=l("getMinute","setMinute",n(c)),u=l("getSecond","setSecond",o(c,s));return l("getMillisecond","setMillisecond",r(c,s,u)),a}(t,o,r,i,a,e);return v},N,M,j,P]}function uS(e){var t=e.mode,n=e.internalMode,r=e.renderExtraFooter,i=e.showNow,l=e.showTime,c=e.onSubmit,s=e.onNow,u=e.invalid,d=e.needConfirm,p=e.generateConfig,f=e.disabledDate,m=o.useContext(cw),g=m.prefixCls,v=m.locale,h=m.button,b=void 0===h?"button":h,y=p.getNow(),C=sS(p,l,y),x=(0,ke.A)(C,1)[0],$=null===r||void 0===r?void 0:r(t),w=f(y,{type:t}),S="".concat(g,"-now"),k="".concat(S,"-btn"),E=i&&o.createElement("li",{className:S},o.createElement("a",{className:a()(k,w&&"".concat(k,"-disabled")),"aria-disabled":w,onClick:function(){if(!w){var e=x(y);s(e)}}},"date"===n?v.today:v.now)),O=d&&o.createElement("li",{className:"".concat(g,"-ok")},o.createElement(b,{disabled:u,onClick:c},v.ok)),A=(E||O)&&o.createElement("ul",{className:"".concat(g,"-ranges")},E,O);return $||A?o.createElement("div",{className:"".concat(g,"-footer")},$&&o.createElement("div",{className:"".concat(g,"-footer-extra")},$),A):null}function dS(e,t,n){return function(o,r){var i=o.findIndex(function(o){return Dw(e,t,o,r,n)});if(-1===i)return[].concat(se(o),[r]);var a=se(o);return a.splice(i,1),a}}var pS=o.createContext(null);function fS(){return o.useContext(pS)}function mS(e,t){var n=e.prefixCls,o=e.generateConfig,r=e.locale,i=e.disabledDate,a=e.minDate,l=e.maxDate,c=e.cellRender,s=e.hoverValue,u=e.hoverRangeValue,d=e.onHover,p=e.values,f=e.pickerValue,m=e.onSelect,g=e.prevIcon,v=e.nextIcon,h=e.superPrevIcon,b=e.superNextIcon,y=o.getNow();return[{now:y,values:p,pickerValue:f,prefixCls:n,disabledDate:i,minDate:a,maxDate:l,cellRender:c,hoverValue:s,hoverRangeValue:u,onHover:d,locale:r,generateConfig:o,onSelect:m,panelType:t,prevIcon:g,nextIcon:v,superPrevIcon:h,superNextIcon:b},y]}var gS=o.createContext({});function vS(e){for(var t=e.rowNum,n=e.colNum,r=e.baseDate,i=e.getCellDate,l=e.prefixColumn,c=e.rowClassName,s=e.titleFormat,u=e.getCellText,p=e.getCellClassName,f=e.headerCells,m=e.cellSelection,g=void 0===m||m,v=e.disabledDate,h=fS(),b=h.prefixCls,y=h.panelType,C=h.now,x=h.disabledDate,$=h.cellRender,w=h.onHover,S=h.hoverValue,k=h.hoverRangeValue,E=h.generateConfig,O=h.values,A=h.locale,I=h.onSelect,N=v||x,M="".concat(b,"-cell"),j=o.useContext(gS).onCellDblClick,P=function(e){return O.some(function(t){return t&&Dw(E,A,e,t,y)})},R=[],T=0;T<t;T+=1){for(var z=[],B=void 0,H=function(){var e=i(r,T*n+D),t=null===N||void 0===N?void 0:N(e,{type:y});0===D&&(B=e,l&&z.push(l(B)));var c=!1,f=!1,m=!1;if(g&&k){var v=(0,ke.A)(k,2),h=v[0],x=v[1];c=Lw(E,h,x,e),f=Dw(E,A,e,h,y),m=Dw(E,A,e,x,y)}var O=s?Ww(e,{locale:A,format:s,generateConfig:E}):void 0,R=o.createElement("div",{className:"".concat(M,"-inner")},u(e));z.push(o.createElement("td",{key:D,title:O,className:a()(M,(0,d.A)((0,Ee.A)((0,Ee.A)((0,Ee.A)((0,Ee.A)((0,Ee.A)((0,Ee.A)({},"".concat(M,"-disabled"),t),"".concat(M,"-hover"),(S||[]).some(function(t){return Dw(E,A,e,t,y)})),"".concat(M,"-in-range"),c&&!f&&!m),"".concat(M,"-range-start"),f),"".concat(M,"-range-end"),m),"".concat(b,"-cell-selected"),!k&&"week"!==y&&P(e)),p(e))),onClick:function(){t||I(e)},onDoubleClick:function(){!t&&j&&j()},onMouseEnter:function(){t||null===w||void 0===w||w(e)},onMouseLeave:function(){t||null===w||void 0===w||w(null)}},$?$(e,{prefixCls:b,originNode:R,today:C,type:y,locale:A}):R))},D=0;D<n;D+=1)H();R.push(o.createElement("tr",{key:T,className:null===c||void 0===c?void 0:c(B)},z))}return o.createElement("div",{className:"".concat(b,"-body")},o.createElement("table",{className:"".concat(b,"-content")},f&&o.createElement("thead",null,o.createElement("tr",null,f)),o.createElement("tbody",null,R)))}var hS={visibility:"hidden"};const bS=function(e){var t=e.offset,n=e.superOffset,r=e.onChange,i=e.getStart,l=e.getEnd,c=e.children,s=fS(),u=s.prefixCls,d=s.prevIcon,p=void 0===d?"\u2039":d,f=s.nextIcon,m=void 0===f?"\u203a":f,g=s.superPrevIcon,v=void 0===g?"\xab":g,h=s.superNextIcon,b=void 0===h?"\xbb":h,y=s.minDate,C=s.maxDate,x=s.generateConfig,$=s.locale,w=s.pickerValue,S=s.panelType,k="".concat(u,"-header"),E=o.useContext(gS),O=E.hidePrev,A=E.hideNext,I=E.hideHeader,N=o.useMemo(function(){if(!y||!t||!l)return!1;var e=l(t(-1,w));return!Fw(x,$,e,y,S)},[y,t,w,l,x,$,S]),M=o.useMemo(function(){if(!y||!n||!l)return!1;var e=l(n(-1,w));return!Fw(x,$,e,y,S)},[y,n,w,l,x,$,S]),j=o.useMemo(function(){if(!C||!t||!i)return!1;var e=i(t(1,w));return!Fw(x,$,C,e,S)},[C,t,w,i,x,$,S]),P=o.useMemo(function(){if(!C||!n||!i)return!1;var e=i(n(1,w));return!Fw(x,$,C,e,S)},[C,n,w,i,x,$,S]),R=function(e){t&&r(t(e,w))},T=function(e){n&&r(n(e,w))};if(I)return null;var z="".concat(k,"-prev-btn"),B="".concat(k,"-next-btn"),H="".concat(k,"-super-prev-btn"),D="".concat(k,"-super-next-btn");return o.createElement("div",{className:k},n&&o.createElement("button",{type:"button","aria-label":$.previousYear,onClick:function(){return T(-1)},tabIndex:-1,className:a()(H,M&&"".concat(H,"-disabled")),disabled:M,style:O?hS:{}},v),t&&o.createElement("button",{type:"button","aria-label":$.previousMonth,onClick:function(){return R(-1)},tabIndex:-1,className:a()(z,N&&"".concat(z,"-disabled")),disabled:N,style:O?hS:{}},p),o.createElement("div",{className:"".concat(k,"-view")},c),t&&o.createElement("button",{type:"button","aria-label":$.nextMonth,onClick:function(){return R(1)},tabIndex:-1,className:a()(B,j&&"".concat(B,"-disabled")),disabled:j,style:A?hS:{}},m),n&&o.createElement("button",{type:"button","aria-label":$.nextYear,onClick:function(){return T(1)},tabIndex:-1,className:a()(D,P&&"".concat(D,"-disabled")),disabled:P,style:A?hS:{}},b))};function yS(e){var t=e.prefixCls,n=e.panelName,r=void 0===n?"date":n,i=e.locale,c=e.generateConfig,s=e.pickerValue,u=e.onPickerValueChange,d=e.onModeChange,p=e.mode,f=void 0===p?"date":p,m=e.disabledDate,g=e.onSelect,v=e.onHover,h=e.showWeek,b="".concat(t,"-").concat(r,"-panel"),y="".concat(t,"-cell"),C="week"===f,x=mS(e,f),$=(0,ke.A)(x,2),w=$[0],S=$[1],k=c.locale.getWeekFirstDay(i.locale),E=c.setDate(s,1),O=function(e,t,n){var o=t.locale.getWeekFirstDay(e),r=t.setDate(n,1),i=t.getWeekDay(r),a=t.addDate(r,o-i);return t.getMonth(a)===t.getMonth(n)&&t.getDate(a)>1&&(a=t.addDate(a,-7)),a}(i.locale,c,E),A=c.getMonth(s),I=(void 0===h?C:h)?function(e){var t=null===m||void 0===m?void 0:m(e,{type:"week"});return o.createElement("td",{key:"week",className:a()(y,"".concat(y,"-week"),(0,Ee.A)({},"".concat(y,"-disabled"),t)),onClick:function(){t||g(e)},onMouseEnter:function(){t||null===v||void 0===v||v(e)},onMouseLeave:function(){t||null===v||void 0===v||v(null)}},o.createElement("div",{className:"".concat(y,"-inner")},c.locale.getWeek(i.locale,e)))}:null,N=[],M=i.shortWeekDays||(c.locale.getShortWeekDays?c.locale.getShortWeekDays(i.locale):[]);I&&N.push(o.createElement("th",{key:"empty"},o.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},i.week)));for(var j=0;j<7;j+=1)N.push(o.createElement("th",{key:j},M[(j+k)%7]));var P=i.shortMonths||(c.locale.getShortMonths?c.locale.getShortMonths(i.locale):[]),R=o.createElement("button",{type:"button","aria-label":i.yearSelect,key:"year",onClick:function(){d("year",s)},tabIndex:-1,className:"".concat(t,"-year-btn")},Ww(s,{locale:i,format:i.yearFormat,generateConfig:c})),T=o.createElement("button",{type:"button","aria-label":i.monthSelect,key:"month",onClick:function(){d("month",s)},tabIndex:-1,className:"".concat(t,"-month-btn")},i.monthFormat?Ww(s,{locale:i,format:i.monthFormat,generateConfig:c}):P[A]),z=i.monthBeforeYear?[T,R]:[R,T];return o.createElement(pS.Provider,{value:w},o.createElement("div",{className:a()(b,h&&"".concat(b,"-show-week"))},o.createElement(bS,{offset:function(e){return c.addMonth(s,e)},superOffset:function(e){return c.addYear(s,e)},onChange:u,getStart:function(e){return c.setDate(e,1)},getEnd:function(e){var t=c.setDate(e,1);return t=c.addMonth(t,1),c.addDate(t,-1)}},z),o.createElement(vS,(0,l.A)({titleFormat:i.fieldDateFormat},e,{colNum:7,rowNum:6,baseDate:O,headerCells:N,getCellDate:function(e,t){return c.addDate(e,t)},getCellText:function(e){return Ww(e,{locale:i,format:i.cellDateFormat,generateConfig:c})},getCellClassName:function(e){return(0,Ee.A)((0,Ee.A)({},"".concat(t,"-cell-in-view"),Rw(c,e,s)),"".concat(t,"-cell-today"),Tw(c,e,S))},prefixColumn:I,cellSelection:!C}))))}var CS=1/3;function xS(e){return e.map(function(e){return[e.value,e.label,e.disabled].join(",")}).join(";")}function $S(e){var t=e.units,n=e.value,r=e.optionalValue,i=e.type,l=e.onChange,c=e.onHover,s=e.onDblClick,u=e.changeOnScroll,d=fS(),p=d.prefixCls,f=d.cellRender,m=d.now,g=d.locale,v="".concat(p,"-time-panel"),h="".concat(p,"-time-panel-cell"),b=o.useRef(null),y=o.useRef(),C=function(){clearTimeout(y.current)},x=function(e,t){var n=o.useRef(!1),r=o.useRef(null),i=o.useRef(null),a=function(){ve.cancel(r.current),n.current=!1},l=o.useRef();return[Bn(function(){var o=e.current;if(i.current=null,l.current=0,o){var c=o.querySelector('[data-value="'.concat(t,'"]')),s=o.querySelector("li");c&&s&&function e(){a(),n.current=!0,l.current+=1;var t=o.scrollTop,u=s.offsetTop,d=c.offsetTop,p=d-u;if(0===d&&c!==s||!Ql(o))l.current<=5&&(r.current=ve(e));else{var f=t+(p-t)*CS,m=Math.abs(p-f);if(null!==i.current&&i.current<m)a();else{if(i.current=m,m<=1)return o.scrollTop=p,void a();o.scrollTop=f,r.current=ve(e)}}}()}}),a,function(){return n.current}]}(b,null!==n&&void 0!==n?n:r),$=(0,ke.A)(x,3),w=$[0],S=$[1],k=$[2];ut(function(){return w(),C(),function(){S(),C()}},[n,r,xS(t)]);var E="".concat(v,"-column");return o.createElement("ul",{className:E,ref:b,"data-type":i,onScroll:function(e){C();var n=e.target;!k()&&u&&(y.current=setTimeout(function(){var e=b.current,o=e.querySelector("li").offsetTop,r=Array.from(e.querySelectorAll("li")).map(function(e){return e.offsetTop-o}).map(function(e,o){return t[o].disabled?Number.MAX_SAFE_INTEGER:Math.abs(e-n.scrollTop)}),i=Math.min.apply(Math,se(r)),a=r.findIndex(function(e){return e===i}),c=t[a];c&&!c.disabled&&l(c.value)},300))}},t.map(function(e){var t=e.label,r=e.value,u=e.disabled,d=o.createElement("div",{className:"".concat(h,"-inner")},t);return o.createElement("li",{key:r,className:a()(h,(0,Ee.A)((0,Ee.A)({},"".concat(h,"-selected"),n===r),"".concat(h,"-disabled"),u)),onClick:function(){u||l(r)},onDoubleClick:function(){!u&&s&&s()},onMouseEnter:function(){c(r)},onMouseLeave:function(){c(null)},"data-value":r},f?f(r,{prefixCls:p,originNode:d,today:m,type:"time",subType:i,locale:g}):d)}))}function wS(e){return e<12}function SS(e){var t=e.showHour,n=e.showMinute,r=e.showSecond,i=e.showMillisecond,a=e.use12Hours,c=e.changeOnScroll,s=fS(),u=s.prefixCls,d=s.values,p=s.generateConfig,f=s.locale,m=s.onSelect,g=s.onHover,v=void 0===g?function(){}:g,h=s.pickerValue,b=(null===d||void 0===d?void 0:d[0])||null,y=o.useContext(gS).onCellDblClick,C=sS(p,e,b),x=(0,ke.A)(C,5),$=x[0],w=x[1],S=x[2],k=x[3],E=x[4],O=function(e){return[b&&p[e](b),h&&p[e](h)]},A=O("getHour"),I=(0,ke.A)(A,2),N=I[0],M=I[1],j=O("getMinute"),P=(0,ke.A)(j,2),R=P[0],T=P[1],z=O("getSecond"),B=(0,ke.A)(z,2),H=B[0],D=B[1],L=O("getMillisecond"),F=(0,ke.A)(L,2),W=F[0],_=F[1],K=null===N?null:wS(N)?"am":"pm",q=o.useMemo(function(){return a?wS(N)?w.filter(function(e){return wS(e.value)}):w.filter(function(e){return!wS(e.value)}):w},[N,w,a]),V=function(e,t){var n,o=e.filter(function(e){return!e.disabled});return null!==t&&void 0!==t?t:null===o||void 0===o||null===(n=o[0])||void 0===n?void 0:n.value},X=V(w,N),G=o.useMemo(function(){return S(X)},[S,X]),Y=V(G,R),U=o.useMemo(function(){return k(X,Y)},[k,X,Y]),Q=V(U,H),Z=o.useMemo(function(){return E(X,Y,Q)},[E,X,Y,Q]),J=V(Z,W),ee=o.useMemo(function(){if(!a)return[];var e=p.getNow(),t=p.setHour(e,6),n=p.setHour(e,18),o=function(e,t){var n=f.cellMeridiemFormat;return n?Ww(e,{generateConfig:p,locale:f,format:n}):t};return[{label:o(t,"AM"),value:"am",disabled:w.every(function(e){return e.disabled||!wS(e.value)})},{label:o(n,"PM"),value:"pm",disabled:w.every(function(e){return e.disabled||wS(e.value)})}]},[w,a,p,f]),te=function(e){var t=$(e);m(t)},ne=o.useMemo(function(){var e=b||h||p.getNow(),t=function(e){return null!==e&&void 0!==e};return t(N)?(e=p.setHour(e,N),e=p.setMinute(e,R),e=p.setSecond(e,H),e=p.setMillisecond(e,W)):t(M)?(e=p.setHour(e,M),e=p.setMinute(e,T),e=p.setSecond(e,D),e=p.setMillisecond(e,_)):t(X)&&(e=p.setHour(e,X),e=p.setMinute(e,Y),e=p.setSecond(e,Q),e=p.setMillisecond(e,J)),e},[b,h,N,R,H,W,X,Y,Q,J,M,T,D,_,p]),oe=function(e,t){return null===e?null:p[t](ne,e)},re=function(e){return oe(e,"setHour")},ie=function(e){return oe(e,"setMinute")},ae=function(e){return oe(e,"setSecond")},le=function(e){return oe(e,"setMillisecond")},ce=function(e){return null===e?null:"am"!==e||wS(N)?"pm"===e&&wS(N)?p.setHour(ne,N+12):ne:p.setHour(ne,N-12)},se={onDblClick:y,changeOnScroll:c};return o.createElement("div",{className:"".concat(u,"-content")},t&&o.createElement($S,(0,l.A)({units:q,value:N,optionalValue:M,type:"hour",onChange:function(e){te(re(e))},onHover:function(e){v(re(e))}},se)),n&&o.createElement($S,(0,l.A)({units:G,value:R,optionalValue:T,type:"minute",onChange:function(e){te(ie(e))},onHover:function(e){v(ie(e))}},se)),r&&o.createElement($S,(0,l.A)({units:U,value:H,optionalValue:D,type:"second",onChange:function(e){te(ae(e))},onHover:function(e){v(ae(e))}},se)),i&&o.createElement($S,(0,l.A)({units:Z,value:W,optionalValue:_,type:"millisecond",onChange:function(e){te(le(e))},onHover:function(e){v(le(e))}},se)),a&&o.createElement($S,(0,l.A)({units:ee,value:K,type:"meridiem",onChange:function(e){te(ce(e))},onHover:function(e){v(ce(e))}},se)))}function kS(e){var t=e.prefixCls,n=e.value,r=e.locale,i=e.generateConfig,l=e.showTime,c=(l||{}).format,s="".concat(t,"-time-panel"),u=mS(e,"time"),d=(0,ke.A)(u,1)[0];return o.createElement(pS.Provider,{value:d},o.createElement("div",{className:a()(s)},o.createElement(bS,null,n?Ww(n,{locale:r,format:c,generateConfig:i}):"\xa0"),o.createElement(SS,l)))}var ES={date:yS,datetime:function(e){var t=e.prefixCls,n=e.generateConfig,r=e.showTime,i=e.onSelect,a=e.value,c=e.pickerValue,s=e.onHover,u="".concat(t,"-datetime-panel"),d=sS(n,r),p=(0,ke.A)(d,1)[0],f=function(e){return _w(n,e,a||c)};return o.createElement("div",{className:u},o.createElement(yS,(0,l.A)({},e,{onSelect:function(e){var t=f(e);i(p(t,t))},onHover:function(e){null===s||void 0===s||s(e?f(e):e)}})),o.createElement(kS,e))},week:function(e){var t=e.prefixCls,n=e.generateConfig,r=e.locale,i=e.value,c=e.hoverValue,s=e.hoverRangeValue,u=r.locale,d="".concat(t,"-week-panel-row");return o.createElement(yS,(0,l.A)({},e,{mode:"week",panelName:"week",rowClassName:function(e){var t={};if(s){var o=(0,ke.A)(s,2),r=o[0],l=o[1],p=Hw(n,u,r,e),f=Hw(n,u,l,e);t["".concat(d,"-range-start")]=p,t["".concat(d,"-range-end")]=f,t["".concat(d,"-range-hover")]=!p&&!f&&Lw(n,r,l,e)}return c&&(t["".concat(d,"-hover")]=c.some(function(t){return Hw(n,u,e,t)})),a()(d,(0,Ee.A)({},"".concat(d,"-selected"),!s&&Hw(n,u,i,e)),t)}}))},month:function(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,i=e.pickerValue,a=e.disabledDate,c=e.onPickerValueChange,s=e.onModeChange,u="".concat(t,"-month-panel"),d=mS(e,"month"),p=(0,ke.A)(d,1)[0],f=r.setMonth(i,0),m=n.shortMonths||(r.locale.getShortMonths?r.locale.getShortMonths(n.locale):[]),g=a?function(e,t){var n=r.setDate(e,1),o=r.setMonth(n,r.getMonth(n)+1),i=r.addDate(o,-1);return a(n,t)&&a(i,t)}:null,v=o.createElement("button",{type:"button",key:"year","aria-label":n.yearSelect,onClick:function(){s("year")},tabIndex:-1,className:"".concat(t,"-year-btn")},Ww(i,{locale:n,format:n.yearFormat,generateConfig:r}));return o.createElement(pS.Provider,{value:p},o.createElement("div",{className:u},o.createElement(bS,{superOffset:function(e){return r.addYear(i,e)},onChange:c,getStart:function(e){return r.setMonth(e,0)},getEnd:function(e){return r.setMonth(e,11)}},v),o.createElement(vS,(0,l.A)({},e,{disabledDate:g,titleFormat:n.fieldMonthFormat,colNum:3,rowNum:4,baseDate:f,getCellDate:function(e,t){return r.addMonth(e,t)},getCellText:function(e){var t=r.getMonth(e);return n.monthFormat?Ww(e,{locale:n,format:n.monthFormat,generateConfig:r}):m[t]},getCellClassName:function(){return(0,Ee.A)({},"".concat(t,"-cell-in-view"),!0)}}))))},quarter:function(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,i=e.pickerValue,a=e.onPickerValueChange,c=e.onModeChange,s="".concat(t,"-quarter-panel"),u=mS(e,"quarter"),d=(0,ke.A)(u,1)[0],p=r.setMonth(i,0),f=o.createElement("button",{type:"button",key:"year","aria-label":n.yearSelect,onClick:function(){c("year")},tabIndex:-1,className:"".concat(t,"-year-btn")},Ww(i,{locale:n,format:n.yearFormat,generateConfig:r}));return o.createElement(pS.Provider,{value:d},o.createElement("div",{className:s},o.createElement(bS,{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)}},f),o.createElement(vS,(0,l.A)({},e,{titleFormat:n.fieldQuarterFormat,colNum:4,rowNum:1,baseDate:p,getCellDate:function(e,t){return r.addMonth(e,3*t)},getCellText:function(e){return Ww(e,{locale:n,format:n.cellQuarterFormat,generateConfig:r})},getCellClassName:function(){return(0,Ee.A)({},"".concat(t,"-cell-in-view"),!0)}}))))},year:function(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,i=e.pickerValue,a=e.disabledDate,c=e.onPickerValueChange,s=e.onModeChange,u="".concat(t,"-year-panel"),d=mS(e,"year"),p=(0,ke.A)(d,1)[0],f=function(e){var t=10*Math.floor(r.getYear(e)/10);return r.setYear(e,t)},m=function(e){var t=f(e);return r.addYear(t,9)},g=f(i),v=m(i),h=r.addYear(g,-1),b=a?function(e,t){var n=r.setMonth(e,0),o=r.setDate(n,1),i=r.addYear(o,1),l=r.addDate(i,-1);return a(o,t)&&a(l,t)}:null,y=o.createElement("button",{type:"button",key:"decade","aria-label":n.decadeSelect,onClick:function(){s("decade")},tabIndex:-1,className:"".concat(t,"-decade-btn")},Ww(g,{locale:n,format:n.yearFormat,generateConfig:r}),"-",Ww(v,{locale:n,format:n.yearFormat,generateConfig:r}));return o.createElement(pS.Provider,{value:p},o.createElement("div",{className:u},o.createElement(bS,{superOffset:function(e){return r.addYear(i,10*e)},onChange:c,getStart:f,getEnd:m},y),o.createElement(vS,(0,l.A)({},e,{disabledDate:b,titleFormat:n.fieldYearFormat,colNum:3,rowNum:4,baseDate:h,getCellDate:function(e,t){return r.addYear(e,t)},getCellText:function(e){return Ww(e,{locale:n,format:n.cellYearFormat,generateConfig:r})},getCellClassName:function(e){return(0,Ee.A)({},"".concat(t,"-cell-in-view"),jw(r,e,g)||jw(r,e,v)||Lw(r,g,v,e))}}))))},decade:function(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,i=e.pickerValue,a=e.disabledDate,c=e.onPickerValueChange,s="".concat(t,"-decade-panel"),u=mS(e,"decade"),d=(0,ke.A)(u,1)[0],p=function(e){var t=100*Math.floor(r.getYear(e)/100);return r.setYear(e,t)},f=function(e){var t=p(e);return r.addYear(t,99)},m=p(i),g=f(i),v=r.addYear(m,-10),h=a?function(e,t){var n=r.setDate(e,1),o=r.setMonth(n,0),i=r.setYear(o,10*Math.floor(r.getYear(o)/10)),l=r.addYear(i,10),c=r.addDate(l,-1);return a(i,t)&&a(c,t)}:null,b="".concat(Ww(m,{locale:n,format:n.yearFormat,generateConfig:r}),"-").concat(Ww(g,{locale:n,format:n.yearFormat,generateConfig:r}));return o.createElement(pS.Provider,{value:d},o.createElement("div",{className:s},o.createElement(bS,{superOffset:function(e){return r.addYear(i,100*e)},onChange:c,getStart:p,getEnd:f},b),o.createElement(vS,(0,l.A)({},e,{disabledDate:h,colNum:3,rowNum:4,baseDate:v,getCellDate:function(e,t){return r.addYear(e,10*t)},getCellText:function(e){var t=n.cellYearFormat,o=Ww(e,{locale:n,format:t,generateConfig:r}),i=Ww(r.addYear(e,9),{locale:n,format:t,generateConfig:r});return"".concat(o,"-").concat(i)},getCellClassName:function(e){return(0,Ee.A)({},"".concat(t,"-cell-in-view"),Mw(r,e,m)||Mw(r,e,g)||Lw(r,m,g,e))}}))))},time:kS};var OS=o.memo(o.forwardRef(function(e,t){var n,r=e.locale,i=e.generateConfig,c=e.direction,s=e.prefixCls,u=e.tabIndex,p=void 0===u?0:u,f=e.multiple,m=e.defaultValue,g=e.value,v=e.onChange,h=e.onSelect,b=e.defaultPickerValue,y=e.pickerValue,C=e.onPickerValueChange,x=e.mode,$=e.onPanelChange,w=e.picker,S=void 0===w?"date":w,k=e.showTime,E=e.hoverValue,O=e.hoverRangeValue,A=e.cellRender,I=e.dateRender,N=e.monthCellRender,M=e.components,j=void 0===M?{}:M,P=e.hideHeader,R=(null===(n=o.useContext(cw))||void 0===n?void 0:n.prefixCls)||s||"rc-picker",T=o.useRef();o.useImperativeHandle(t,function(){return{nativeElement:T.current}});var z=Ow(e),B=(0,ke.A)(z,4),H=B[0],D=B[1],L=B[2],F=B[3],W=xw(r,D),_="date"===S&&k?"datetime":S,K=o.useMemo(function(){return Aw(_,L,F,H,W)},[_,L,F,H,W]),q=i.getNow(),V=Ln(S,{value:x,postState:function(e){return e||"date"}}),X=(0,ke.A)(V,2),G=X[0],Y=X[1],U="date"===G&&K?"datetime":G,Q=dS(i,r,_),Z=Ln(m,{value:g}),J=(0,ke.A)(Z,2),ee=J[0],te=J[1],ne=o.useMemo(function(){var e=pw(ee).filter(function(e){return e});return f?e:e.slice(0,1)},[ee,f]),oe=Bn(function(e){te(e),v&&(null===e||ne.length!==e.length||ne.some(function(t,n){return!Dw(i,r,t,e[n],_)}))&&(null===v||void 0===v||v(f?e:e[0]))}),re=Bn(function(e){if(null===h||void 0===h||h(e),G===S){var t=f?Q(ne,e):[e];oe(t)}}),ie=Ln(b||ne[0]||q,{value:y}),ae=(0,ke.A)(ie,2),le=ae[0],ce=ae[1];o.useEffect(function(){ne[0]&&!y&&ce(ne[0])},[ne[0]]);var ue=function(e,t){null===$||void 0===$||$(e||y,t||G)},de=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];ce(e),null===C||void 0===C||C(e),t&&ue(e)},pe=function(e,t){Y(e),t&&de(t),ue(t,e)},fe=o.useMemo(function(){var e,t;if(Array.isArray(O)){var n=(0,ke.A)(O,2);e=n[0],t=n[1]}else e=O;return e||t?(e=e||t,t=t||e,i.isAfter(e,t)?[t,e]:[e,t]):null},[O,i]),me=bw(A,I,N),ge=j[U]||ES[U]||yS,ve=o.useContext(gS),he=o.useMemo(function(){return(0,d.A)((0,d.A)({},ve),{},{hideHeader:P})},[ve,P]),be="".concat(R,"-panel"),ye=mw(e,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return o.createElement(gS.Provider,{value:he},o.createElement("div",{ref:T,tabIndex:p,className:a()(be,(0,Ee.A)({},"".concat(be,"-rtl"),"rtl"===c))},o.createElement(ge,(0,l.A)({},ye,{showTime:K,prefixCls:R,locale:W,generateConfig:i,onModeChange:pe,pickerValue:le,onPickerValueChange:function(e){de(e,!0)},value:ne[0],onSelect:function(e){if(re(e),de(e),G!==S){var t=["decade","year"],n=[].concat(t,["month"]),o={quarter:[].concat(t,["quarter"]),week:[].concat(se(n),["week"]),date:[].concat(se(n),["date"])}[S]||n,r=o.indexOf(G),i=o[r+1];i&&pe(i,e)}},values:ne,cellRender:me,hoverRangeValue:fe,hoverValue:E}))))}));const AS=OS;function IS(e){var t=e.picker,n=e.multiplePanel,r=e.pickerValue,i=e.onPickerValueChange,a=e.needConfirm,c=e.onSubmit,s=e.range,u=e.hoverValue,p=o.useContext(cw),f=p.prefixCls,m=p.generateConfig,g=o.useCallback(function(e,n){return Qw(m,t,e,n)},[m,t]),v=o.useMemo(function(){return g(r,1)},[r,g]),h={onCellDblClick:function(){a&&c()}},b="time"===t,y=(0,d.A)((0,d.A)({},e),{},{hoverValue:null,hoverRangeValue:null,hideHeader:b});return s?y.hoverRangeValue=u:y.hoverValue=u,n?o.createElement("div",{className:"".concat(f,"-panels")},o.createElement(gS.Provider,{value:(0,d.A)((0,d.A)({},h),{},{hideNext:!0})},o.createElement(AS,y)),o.createElement(gS.Provider,{value:(0,d.A)((0,d.A)({},h),{},{hidePrev:!0})},o.createElement(AS,(0,l.A)({},y,{pickerValue:v,onPickerValueChange:function(e){i(g(e,-1))}})))):o.createElement(gS.Provider,{value:(0,d.A)({},h)},o.createElement(AS,y))}function NS(e){return"function"===typeof e?e():e}function MS(e){var t=e.prefixCls,n=e.presets,r=e.onClick,i=e.onHover;return n.length?o.createElement("div",{className:"".concat(t,"-presets")},o.createElement("ul",null,n.map(function(e,t){var n=e.label,a=e.value;return o.createElement("li",{key:t,onClick:function(){r(NS(a))},onMouseEnter:function(){i(NS(a))},onMouseLeave:function(){i(null)}},n)}))):null}function jS(e){var t=e.panelRender,n=e.internalMode,r=e.picker,i=e.showNow,c=e.range,s=e.multiple,u=e.activeInfo,d=void 0===u?[0,0,0]:u,p=e.presets,f=e.onPresetHover,m=e.onPresetSubmit,g=e.onFocus,v=e.onBlur,h=e.onPanelMouseDown,b=e.direction,y=e.value,C=e.onSelect,x=e.isInvalid,$=e.defaultOpenValue,w=e.onOk,S=e.onSubmit,k=o.useContext(cw).prefixCls,E="".concat(k,"-panel"),O="rtl"===b,A=o.useRef(null),I=o.useRef(null),N=o.useState(0),M=(0,ke.A)(N,2),j=M[0],P=M[1],R=o.useState(0),T=(0,ke.A)(R,2),z=T[0],B=T[1],H=o.useState(0),D=(0,ke.A)(H,2),L=D[0],F=D[1],W=(0,ke.A)(d,3),_=W[0],K=W[1],q=W[2],V=o.useState(0),X=(0,ke.A)(V,2),G=X[0],Y=X[1];function U(e){return e.filter(function(e){return e})}o.useEffect(function(){Y(10)},[_]),o.useEffect(function(){if(c&&I.current){var e,t=(null===(e=A.current)||void 0===e?void 0:e.offsetWidth)||0,n=I.current.getBoundingClientRect();if(!n.height||n.right<0)return void Y(function(e){return Math.max(0,e-1)});var o=(O?K-t:_)-n.left;if(F(o),j&&j<q){var r=O?n.right-(K-t+j):_+t-n.left-j,i=Math.max(0,r);B(i)}else B(0)}},[G,O,j,_,K,q,c]);var Q=o.useMemo(function(){return U(pw(y))},[y]),Z="time"===r&&!Q.length,J=o.useMemo(function(){return Z?U([$]):Q},[Z,Q,$]),ee=Z?$:Q,te=o.useMemo(function(){return!J.length||J.some(function(e){return x(e)})},[J,x]),ne=o.createElement("div",{className:"".concat(k,"-panel-layout")},o.createElement(MS,{prefixCls:k,presets:p,onClick:m,onHover:f}),o.createElement("div",null,o.createElement(IS,(0,l.A)({},e,{value:ee})),o.createElement(uS,(0,l.A)({},e,{showNow:!s&&i,invalid:te,onSubmit:function(){Z&&C($),w(),S()}}))));t&&(ne=t(ne));var oe="".concat(E,"-container"),re="marginLeft",ae="marginRight",le=o.createElement("div",{onMouseDown:h,tabIndex:-1,className:a()(oe,"".concat(k,"-").concat(n,"-panel-container")),style:(0,Ee.A)((0,Ee.A)({},O?ae:re,z),O?re:ae,"auto"),onFocus:g,onBlur:v},ne);return c&&(le=o.createElement("div",{onMouseDown:h,ref:I,className:a()("".concat(k,"-range-wrapper"),"".concat(k,"-").concat(r,"-range-wrapper"))},o.createElement("div",{ref:A,className:"".concat(k,"-range-arrow"),style:{left:L}}),o.createElement(ie,{onResize:function(e){e.width&&P(e.width)}},le))),le}function PS(e,t){var n=e.format,r=e.maskFormat,i=e.generateConfig,a=e.locale,l=e.preserveInvalidOnBlur,c=e.inputReadOnly,s=e.required,u=e["aria-required"],p=e.onSubmit,f=e.onFocus,m=e.onBlur,g=e.onInputChange,v=e.onInvalid,h=e.open,b=e.onOpenChange,y=e.onKeyDown,C=e.onChange,x=e.activeHelp,$=e.name,w=e.autoComplete,S=e.id,k=e.value,E=e.invalid,O=e.placeholder,A=e.disabled,I=e.activeIndex,N=e.allHelp,M=e.picker,j=function(e,t){var n=i.locale.parse(a.locale,e,[t]);return n&&i.isValidate(n)?n:null},P=n[0],R=o.useCallback(function(e){return Ww(e,{locale:a,format:P,generateConfig:i})},[a,i,P]),T=o.useMemo(function(){return k.map(R)},[k,R]),z=o.useMemo(function(){var e="time"===M?8:10,t="function"===typeof P?P(i.getNow()).length:P.length;return Math.max(e,t)+2},[P,M,i]),B=function(e){for(var t=0;t<n.length;t+=1){var o=n[t];if("string"===typeof o){var r=j(e,o);if(r)return r}}return!1};return[function(n){function o(e){return void 0!==n?e[n]:e}var i=ni(e,{aria:!0,data:!0}),a=(0,d.A)((0,d.A)({},i),{},{format:r,validateFormat:function(e){return!!B(e)},preserveInvalidOnBlur:l,readOnly:c,required:s,"aria-required":u,name:$,autoComplete:w,size:z,id:o(S),value:o(T)||"",invalid:o(E),placeholder:o(O),active:I===n,helped:N||x&&I===n,disabled:o(A),onFocus:function(e){f(e,n)},onBlur:function(e){m(e,n)},onSubmit:p,onChange:function(e){g();var t=B(e);if(t)return v(!1,n),void C(t,n);v(!!e,n)},onHelp:function(){b(!0,{index:n})},onKeyDown:function(e){var t=!1;if(null===y||void 0===y||y(e,function(){t=!0}),!e.defaultPrevented&&!t)switch(e.key){case"Escape":b(!1,{index:n});break;case"Enter":h||b(!0)}}},null===t||void 0===t?void 0:t({valueTexts:T}));return Object.keys(a).forEach(function(e){void 0===a[e]&&delete a[e]}),a},R]}var RS=["onMouseEnter","onMouseLeave"];function TS(e){return o.useMemo(function(){return mw(e,RS)},[e])}var zS=["icon","type"],BS=["onClear"];function HS(e){var t=e.icon,n=e.type,r=(0,cr.A)(e,zS),i=o.useContext(cw).prefixCls;return t?o.createElement("span",(0,l.A)({className:"".concat(i,"-").concat(n)},r),t):null}function DS(e){var t=e.onClear,n=(0,cr.A)(e,BS);return o.createElement(HS,(0,l.A)({},n,{type:"clear",role:"button",onMouseDown:function(e){e.preventDefault()},onClick:function(e){e.stopPropagation(),t()}}))}var LS=["YYYY","MM","DD","HH","mm","ss","SSS"],FS=function(){function e(t){K(this,e),(0,Ee.A)(this,"format",void 0),(0,Ee.A)(this,"maskFormat",void 0),(0,Ee.A)(this,"cells",void 0),(0,Ee.A)(this,"maskCells",void 0),this.format=t;var n=LS.map(function(e){return"(".concat(e,")")}).join("|"),o=new RegExp(n,"g");this.maskFormat=t.replace(o,function(e){return"\u9867".repeat(e.length)});var r=new RegExp("(".concat(LS.join("|"),")")),i=(t.split(r)||[]).filter(function(e){return e}),a=0;this.cells=i.map(function(e){var t=LS.includes(e),n=a,o=a+e.length;return a=o,{text:e,mask:t,start:n,end:o}}),this.maskCells=this.cells.filter(function(e){return e.mask})}return X(e,[{key:"getSelection",value:function(e){var t=this.maskCells[e]||{};return[t.start||0,t.end||0]}},{key:"match",value:function(e){for(var t=0;t<this.maskFormat.length;t+=1){var n=this.maskFormat[t],o=e[t];if(!o||"\u9867"!==n&&n!==o)return!1}return!0}},{key:"size",value:function(){return this.maskCells.length}},{key:"getMaskCellIndex",value:function(e){for(var t=Number.MAX_SAFE_INTEGER,n=0,o=0;o<this.maskCells.length;o+=1){var r=this.maskCells[o],i=r.start,a=r.end;if(e>=i&&e<=a)return o;var l=Math.min(Math.abs(e-i),Math.abs(e-a));l<t&&(t=l,n=o)}return n}}]),e}();var WS=["active","showActiveCls","suffixIcon","format","validateFormat","onChange","onInput","helped","onHelp","onSubmit","onKeyDown","preserveInvalidOnBlur","invalid","clearIcon"],_S=o.forwardRef(function(e,t){var n=e.active,r=e.showActiveCls,i=void 0===r||r,c=e.suffixIcon,s=e.format,u=e.validateFormat,d=e.onChange,p=(e.onInput,e.helped),f=e.onHelp,m=e.onSubmit,g=e.onKeyDown,v=e.preserveInvalidOnBlur,h=void 0!==v&&v,b=e.invalid,y=e.clearIcon,C=(0,cr.A)(e,WS),x=e.value,$=e.onFocus,w=e.onBlur,S=e.onMouseUp,k=o.useContext(cw),E=k.prefixCls,O=k.input,A=void 0===O?"input":O,I="".concat(E,"-input"),N=o.useState(!1),M=(0,ke.A)(N,2),j=M[0],P=M[1],R=o.useState(x),T=(0,ke.A)(R,2),z=T[0],B=T[1],H=o.useState(""),D=(0,ke.A)(H,2),L=D[0],F=D[1],W=o.useState(null),_=(0,ke.A)(W,2),K=_[0],q=_[1],V=o.useState(null),X=(0,ke.A)(V,2),G=X[0],Y=X[1],U=z||"";o.useEffect(function(){B(x)},[x]);var Q=o.useRef(),Z=o.useRef();o.useImperativeHandle(t,function(){return{nativeElement:Q.current,inputElement:Z.current,focus:function(e){Z.current.focus(e)},blur:function(){Z.current.blur()}}});var J=o.useMemo(function(){return new FS(s||"")},[s]),ee=o.useMemo(function(){return p?[0,0]:J.getSelection(K)},[J,K,p]),te=(0,ke.A)(ee,2),ne=te[0],oe=te[1],re=function(e){e&&e!==s&&e!==x&&f()},ie=Bn(function(e){u(e)&&d(e),B(e),re(e)}),ae=o.useRef(!1),le=function(e){w(e)};Yw(n,function(){n||h||B(x)});var ce=function(e){"Enter"===e.key&&u(U)&&m(),null===g||void 0===g||g(e)},se=o.useRef();ut(function(){if(j&&s&&!ae.current){if(J.match(U))return Z.current.setSelectionRange(ne,oe),se.current=ve(function(){Z.current.setSelectionRange(ne,oe)}),function(){ve.cancel(se.current)};ie(s)}},[J,s,j,U,K,ne,oe,G,ie]);var ue=s?{onFocus:function(e){P(!0),q(0),F(""),$(e)},onBlur:function(e){P(!1),le(e)},onKeyDown:function(e){ce(e);var t=e.key,n=null,o=null,r=oe-ne,i=s.slice(ne,oe),a=function(e){q(function(t){var n=t+e;return n=Math.max(n,0),n=Math.min(n,J.size()-1)})},l=function(e){var t=function(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]}(i),n=(0,ke.A)(t,3),o=n[0],r=n[1],a=n[2],l=U.slice(ne,oe),c=Number(l);if(isNaN(c))return String(a||(e>0?o:r));var s=r-o+1;return String(o+(s+(c+e)-o)%s)};switch(t){case"Backspace":case"Delete":n="",o=i;break;case"ArrowLeft":n="",a(-1);break;case"ArrowRight":n="",a(1);break;case"ArrowUp":n="",o=l(1);break;case"ArrowDown":n="",o=l(-1);break;default:isNaN(Number(t))||(o=n=L+t)}if(null!==n&&(F(n),n.length>=r&&(a(1),F(""))),null!==o){var c=U.slice(0,ne)+dw(o,r)+U.slice(oe);ie(c.slice(0,s.length))}Y({})},onMouseDown:function(){ae.current=!0},onMouseUp:function(e){var t=e.target.selectionStart,n=J.getMaskCellIndex(t);q(n),Y({}),null===S||void 0===S||S(e),ae.current=!1},onPaste:function(e){var t=e.clipboardData.getData("text");u(t)&&ie(t)}}:{};return o.createElement("div",{ref:Q,className:a()(I,(0,Ee.A)((0,Ee.A)({},"".concat(I,"-active"),n&&i),"".concat(I,"-placeholder"),p))},o.createElement(A,(0,l.A)({ref:Z,"aria-invalid":b,autoComplete:"off"},C,{onKeyDown:ce,onBlur:le},ue,{value:U,onChange:function(e){if(!s){var t=e.target.value;re(t),B(t),d(t)}}})),o.createElement(HS,{type:"suffix",icon:c}),y)});const KS=_S;var qS=["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"],VS=["index"];var XS=o.forwardRef(function(e,t){var n=e.id,r=e.prefix,i=e.clearIcon,c=e.suffixIcon,s=e.separator,u=void 0===s?"~":s,f=e.activeIndex,m=(e.activeHelp,e.allHelp,e.focused),g=(e.onFocus,e.onBlur,e.onKeyDown,e.locale,e.generateConfig,e.placeholder),v=e.className,h=e.style,b=e.onClick,y=e.onClear,C=e.value,x=(e.onChange,e.onSubmit,e.onInputChange,e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid,e.disabled),$=e.invalid,w=(e.inputReadOnly,e.direction),S=(e.onOpenChange,e.onActiveInfo),k=(e.placement,e.onMouseDown),E=(e.required,e["aria-required"],e.autoFocus),O=e.tabIndex,A=(0,cr.A)(e,qS),I="rtl"===w,N=o.useContext(cw).prefixCls,M=o.useMemo(function(){if("string"===typeof n)return[n];var e=n||{};return[e.start,e.end]},[n]),j=o.useRef(),P=o.useRef(),R=o.useRef(),T=function(e){var t;return null===(t=[P,R][e])||void 0===t?void 0:t.current};o.useImperativeHandle(t,function(){return{nativeElement:j.current,focus:function(e){if("object"===(0,p.A)(e)){var t,n=e||{},o=n.index,r=void 0===o?0:o,i=(0,cr.A)(n,VS);null===(t=T(r))||void 0===t||t.focus(i)}else{var a;null===(a=T(null!==e&&void 0!==e?e:0))||void 0===a||a.focus()}},blur:function(){var e,t;null===(e=T(0))||void 0===e||e.blur(),null===(t=T(1))||void 0===t||t.blur()}}});var z=TS(A),B=o.useMemo(function(){return Array.isArray(g)?g:[g,g]},[g]),H=PS((0,d.A)((0,d.A)({},e),{},{id:M,placeholder:B})),D=(0,ke.A)(H,1)[0],L=o.useState({position:"absolute",width:0}),F=(0,ke.A)(L,2),W=F[0],_=F[1],K=Bn(function(){var e=T(f);if(e){var t=e.nativeElement.getBoundingClientRect(),n=j.current.getBoundingClientRect(),o=t.left-n.left;_(function(e){return(0,d.A)((0,d.A)({},e),{},{width:t.width,left:o})}),S([t.left,t.right,n.width])}});o.useEffect(function(){K()},[f]);var q=i&&(C[0]&&!x[0]||C[1]&&!x[1]),V=E&&!x[0],X=E&&!V&&!x[1];return o.createElement(ie,{onResize:K},o.createElement("div",(0,l.A)({},z,{className:a()(N,"".concat(N,"-range"),(0,Ee.A)((0,Ee.A)((0,Ee.A)((0,Ee.A)({},"".concat(N,"-focused"),m),"".concat(N,"-disabled"),x.every(function(e){return e})),"".concat(N,"-invalid"),$.some(function(e){return e})),"".concat(N,"-rtl"),I),v),style:h,ref:j,onClick:b,onMouseDown:function(e){var t=e.target;t!==P.current.inputElement&&t!==R.current.inputElement&&e.preventDefault(),null===k||void 0===k||k(e)}}),r&&o.createElement("div",{className:"".concat(N,"-prefix")},r),o.createElement(KS,(0,l.A)({ref:P},D(0),{autoFocus:V,tabIndex:O,"date-range":"start"})),o.createElement("div",{className:"".concat(N,"-range-separator")},u),o.createElement(KS,(0,l.A)({ref:R},D(1),{autoFocus:X,tabIndex:O,"date-range":"end"})),o.createElement("div",{className:"".concat(N,"-active-bar"),style:W}),o.createElement(HS,{type:"suffix",icon:c}),q&&o.createElement(DS,{icon:i,onClear:y})))});const GS=XS;function YS(e,t){var n=null!==e&&void 0!==e?e:t;return Array.isArray(n)?n:[n,n]}function US(e){return 1===e?"end":"start"}var QS=o.forwardRef(function(e,t){var n=qw(e,function(){var t=e.disabled,n=e.allowEmpty;return{disabled:YS(t,!1),allowEmpty:YS(n,!1)}}),r=(0,ke.A)(n,6),i=r[0],a=r[1],c=r[2],s=r[3],u=r[4],p=r[5],f=i.prefixCls,m=i.styles,g=i.classNames,v=i.defaultValue,h=i.value,b=i.needConfirm,y=i.onKeyDown,C=i.disabled,x=i.allowEmpty,$=i.disabledDate,w=i.minDate,S=i.maxDate,k=i.defaultOpen,E=i.open,O=i.onOpenChange,A=i.locale,I=i.generateConfig,N=i.picker,M=i.showNow,j=i.showToday,P=i.showTime,R=i.mode,T=i.onPanelChange,z=i.onCalendarChange,B=i.onOk,H=i.defaultPickerValue,D=i.pickerValue,L=i.onPickerValueChange,F=i.inputReadOnly,W=i.suffixIcon,_=i.onFocus,K=i.onBlur,q=i.presets,V=i.ranges,X=i.components,G=i.cellRender,Y=i.dateRender,U=i.monthCellRender,Q=i.onClick,Z=Xw(t),J=Vw(E,k,C,O),ee=(0,ke.A)(J,2),te=ee[0],ne=ee[1],oe=function(e,t){!C.some(function(e){return!e})&&e||ne(e,t)},re=rS(I,A,s,!0,!1,v,h,z,B),ie=(0,ke.A)(re,5),ae=ie[0],le=ie[1],ce=ie[2],ue=ie[3],de=ie[4],pe=ce(),fe=Uw(C,x,te),me=(0,ke.A)(fe,9),ge=me[0],ve=me[1],he=me[2],be=me[3],ye=me[4],Ce=me[5],xe=me[6],$e=me[7],we=me[8],Se=function(e,t){ve(!0),null===_||void 0===_||_(e,{range:US(null!==t&&void 0!==t?t:be)})},Ee=function(e,t){ve(!1),null===K||void 0===K||K(e,{range:US(null!==t&&void 0!==t?t:be)})},Oe=o.useMemo(function(){if(!P)return null;var e=P.disabledTime,t=e?function(t){var n=US(be),o=vw(pe,xe,be);return e(t,n,{from:o})}:void 0;return(0,d.A)((0,d.A)({},P),{},{disabledTime:t})},[P,be,pe,xe]),Ae=Ln([N,N],{value:R}),Ie=(0,ke.A)(Ae,2),Ne=Ie[0],Me=Ie[1],je=Ne[be]||N,Pe="date"===je&&Oe?"datetime":je,Re=Pe===N&&"time"!==Pe,Te=aS(N,je,M,j,!0),ze=iS(i,ae,le,ce,ue,C,s,ge,te,p),Be=(0,ke.A)(ze,2),He=Be[0],De=Be[1],Le=function(e,t,n,o,r,i){var a=n[n.length-1];return function(l,c){var s=(0,ke.A)(e,2),u=s[0],p=s[1],f=(0,d.A)((0,d.A)({},c),{},{from:vw(e,n)});return!(1!==a||!t[0]||!u||Dw(o,r,u,l,f.type)||!o.isAfter(u,l))||!(0!==a||!t[1]||!p||Dw(o,r,p,l,f.type)||!o.isAfter(l,p))||(null===i||void 0===i?void 0:i(l,f))}}(pe,C,xe,I,A,$),Fe=yw(pe,p,x),We=(0,ke.A)(Fe,2),_e=We[0],Ke=We[1],qe=Jw(I,A,pe,Ne,te,be,a,Re,H,D,null===Oe||void 0===Oe?void 0:Oe.defaultOpenValue,L,w,S),Ve=(0,ke.A)(qe,2),Xe=Ve[0],Ge=Ve[1],Ye=Bn(function(e,t,n){var o=fw(Ne,be,t);if(o[0]===Ne[0]&&o[1]===Ne[1]||Me(o),T&&!1!==n){var r=se(pe);e&&(r[be]=e),T(r,o)}}),Ue=function(e,t){return fw(pe,t,e)},Qe=function(e,t){var n=pe;e&&(n=Ue(e,be)),$e(be);var o=Ce(n);ue(n),He(be,null===o),null===o?oe(!1,{force:!0}):t||Z.current.focus({index:o})},Ze=o.useState(null),Je=(0,ke.A)(Ze,2),et=Je[0],tt=Je[1],nt=o.useState(null),ot=(0,ke.A)(nt,2),rt=ot[0],it=ot[1],at=o.useMemo(function(){return rt||pe},[pe,rt]);o.useEffect(function(){te||it(null)},[te]);var lt=o.useState([0,0,0]),ct=(0,ke.A)(lt,2),st=ct[0],dt=ct[1],pt=Gw(q,V),ft=bw(G,Y,U,US(be)),mt=pe[be]||null,gt=Bn(function(e){return p(e,{activeIndex:be})}),vt=o.useMemo(function(){var e=ni(i,!1);return Ul(i,[].concat(se(Object.keys(e)),["onChange","onCalendarChange","style","className","onPanelChange","disabledTime"]))},[i]),ht=o.createElement(jS,(0,l.A)({},vt,{showNow:Te,showTime:Oe,range:!0,multiplePanel:Re,activeInfo:st,disabledDate:Le,onFocus:function(e){oe(!0),Se(e)},onBlur:Ee,onPanelMouseDown:function(){he("panel")},picker:N,mode:je,internalMode:Pe,onPanelChange:Ye,format:u,value:mt,isInvalid:gt,onChange:null,onSelect:function(e){var t=fw(pe,be,e);ue(t),b||c||a!==Pe||Qe(e)},pickerValue:Xe,defaultOpenValue:pw(null===P||void 0===P?void 0:P.defaultOpenValue)[be],onPickerValueChange:Ge,hoverValue:at,onHover:function(e){it(e?Ue(e,be):null),tt("cell")},needConfirm:b,onSubmit:Qe,onOk:de,presets:pt,onPresetHover:function(e){it(e),tt("preset")},onPresetSubmit:function(e){De(e)&&oe(!1,{force:!0})},onNow:function(e){Qe(e)},cellRender:ft})),bt=o.useMemo(function(){return{prefixCls:f,locale:A,generateConfig:I,button:X.button,input:X.input}},[f,A,I,X.button,X.input]);return ut(function(){te&&void 0!==be&&Ye(null,N,!1)},[te,be,N]),ut(function(){var e=he();te||"input"!==e||(oe(!1),Qe(null,!0)),te||!c||b||"panel"!==e||(oe(!0),Qe())},[te]),o.createElement(cw.Provider,{value:bt},o.createElement(uw,(0,l.A)({},hw(i),{popupElement:ht,popupStyle:m.popup,popupClassName:g.popup,visible:te,onClose:function(){oe(!1)},range:!0}),o.createElement(GS,(0,l.A)({},i,{ref:Z,suffixIcon:W,activeIndex:ge||te?be:null,activeHelp:!!rt,allHelp:!!rt&&"preset"===et,focused:ge,onFocus:function(e,t){var n=xe.length,o=xe[n-1];n&&o!==t&&b&&!x[o]&&!we(o)&&pe[o]?Z.current.focus({index:o}):(he("input"),oe(!0,{inherit:!0}),be!==t&&te&&!b&&c&&Qe(null,!0),ye(t),Se(e,t))},onBlur:function(e,t){if(oe(!1),!b&&"input"===he()){var n=Ce(pe);He(be,null===n)}Ee(e,t)},onKeyDown:function(e,t){"Tab"===e.key&&Qe(null,!0),null===y||void 0===y||y(e,t)},onSubmit:Qe,value:at,maskFormat:u,onChange:function(e,t){var n=Ue(e,t);ue(n)},onInputChange:function(){he("input")},format:s,inputReadOnly:F,disabled:C,open:te,onOpenChange:oe,onClick:function(e){var t,n=e.target.getRootNode();if(!Z.current.nativeElement.contains(null!==(t=n.activeElement)&&void 0!==t?t:document.activeElement)){var o=C.findIndex(function(e){return!e});o>=0&&Z.current.focus({index:o})}oe(!0),null===Q||void 0===Q||Q(e)},onClear:function(){De(null),oe(!1,{force:!0})},invalid:_e,onInvalid:Ke,onActiveInfo:dt}))))});const ZS=QS;function JS(e){var t=e.prefixCls,n=e.value,r=e.onRemove,i=e.removeIcon,l=void 0===i?"\xd7":i,c=e.formatDate,s=e.disabled,u=e.maxTagCount,d=e.placeholder,p="".concat(t,"-selector"),f="".concat(t,"-selection"),m="".concat(f,"-overflow");function g(e,t){return o.createElement("span",{className:a()("".concat(f,"-item")),title:"string"===typeof e?e:null},o.createElement("span",{className:"".concat(f,"-item-content")},e),!s&&t&&o.createElement("span",{onMouseDown:function(e){e.preventDefault()},onClick:t,className:"".concat(f,"-item-remove")},l))}return o.createElement("div",{className:p},o.createElement(Cg,{prefixCls:m,data:n,renderItem:function(e){return g(c(e),function(t){t&&t.stopPropagation(),r(e)})},renderRest:function(e){return g("+ ".concat(e.length," ..."))},itemKey:function(e){return c(e)},maxCount:u}),!n.length&&o.createElement("span",{className:"".concat(t,"-selection-placeholder")},d))}var ek=["id","open","prefix","clearIcon","suffixIcon","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","internalPicker","value","onChange","onSubmit","onInputChange","multiple","maxTagCount","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onMouseDown","required","aria-required","autoFocus","tabIndex","removeIcon"];var tk=o.forwardRef(function(e,t){e.id;var n=e.open,r=e.prefix,i=e.clearIcon,c=e.suffixIcon,s=(e.activeHelp,e.allHelp,e.focused),u=(e.onFocus,e.onBlur,e.onKeyDown,e.locale),p=e.generateConfig,f=e.placeholder,m=e.className,g=e.style,v=e.onClick,h=e.onClear,b=e.internalPicker,y=e.value,C=e.onChange,x=e.onSubmit,$=(e.onInputChange,e.multiple),w=e.maxTagCount,S=(e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid,e.disabled),k=e.invalid,E=(e.inputReadOnly,e.direction),O=(e.onOpenChange,e.onMouseDown),A=(e.required,e["aria-required"],e.autoFocus),I=e.tabIndex,N=e.removeIcon,M=(0,cr.A)(e,ek),j="rtl"===E,P=o.useContext(cw).prefixCls,R=o.useRef(),T=o.useRef();o.useImperativeHandle(t,function(){return{nativeElement:R.current,focus:function(e){var t;null===(t=T.current)||void 0===t||t.focus(e)},blur:function(){var e;null===(e=T.current)||void 0===e||e.blur()}}});var z=TS(M),B=PS((0,d.A)((0,d.A)({},e),{},{onChange:function(e){C([e])}}),function(e){return{value:e.valueTexts[0]||"",active:s}}),H=(0,ke.A)(B,2),D=H[0],L=H[1],F=!(!i||!y.length||S),W=$?o.createElement(o.Fragment,null,o.createElement(JS,{prefixCls:P,value:y,onRemove:function(e){var t=y.filter(function(t){return t&&!Dw(p,u,t,e,b)});C(t),n||x()},formatDate:L,maxTagCount:w,disabled:S,removeIcon:N,placeholder:f}),o.createElement("input",{className:"".concat(P,"-multiple-input"),value:y.map(L).join(","),ref:T,readOnly:!0,autoFocus:A,tabIndex:I}),o.createElement(HS,{type:"suffix",icon:c}),F&&o.createElement(DS,{icon:i,onClear:h})):o.createElement(KS,(0,l.A)({ref:T},D(),{autoFocus:A,tabIndex:I,suffixIcon:c,clearIcon:F&&o.createElement(DS,{icon:i,onClear:h}),showActiveCls:!1}));return o.createElement("div",(0,l.A)({},z,{className:a()(P,(0,Ee.A)((0,Ee.A)((0,Ee.A)((0,Ee.A)((0,Ee.A)({},"".concat(P,"-multiple"),$),"".concat(P,"-focused"),s),"".concat(P,"-disabled"),S),"".concat(P,"-invalid"),k),"".concat(P,"-rtl"),j),m),style:g,ref:R,onClick:v,onMouseDown:function(e){var t;e.target!==(null===(t=T.current)||void 0===t?void 0:t.inputElement)&&e.preventDefault(),null===O||void 0===O||O(e)}}),r&&o.createElement("div",{className:"".concat(P,"-prefix")},r),W)});const nk=tk;var ok=o.forwardRef(function(e,t){var n=qw(e),r=(0,ke.A)(n,6),i=r[0],a=r[1],c=r[2],s=r[3],u=r[4],p=r[5],f=i,m=f.prefixCls,g=f.styles,v=f.classNames,h=f.order,b=f.defaultValue,y=f.value,C=f.needConfirm,x=f.onChange,$=f.onKeyDown,w=f.disabled,S=f.disabledDate,k=f.minDate,E=f.maxDate,O=f.defaultOpen,A=f.open,I=f.onOpenChange,N=f.locale,M=f.generateConfig,j=f.picker,P=f.showNow,R=f.showToday,T=f.showTime,z=f.mode,B=f.onPanelChange,H=f.onCalendarChange,D=f.onOk,L=f.multiple,F=f.defaultPickerValue,W=f.pickerValue,_=f.onPickerValueChange,K=f.inputReadOnly,q=f.suffixIcon,V=f.removeIcon,X=f.onFocus,G=f.onBlur,Y=f.presets,U=f.components,Q=f.cellRender,Z=f.dateRender,J=f.monthCellRender,ee=f.onClick,te=Xw(t);function ne(e){return null===e?null:L?e:e[0]}var oe=dS(M,N,a),re=Vw(A,O,[w],I),ie=(0,ke.A)(re,2),ae=ie[0],le=ie[1],ce=rS(M,N,s,!1,h,b,y,function(e,t,n){if(H){var o=(0,d.A)({},n);delete o.range,H(ne(e),ne(t),o)}},function(e){null===D||void 0===D||D(ne(e))}),ue=(0,ke.A)(ce,5),de=ue[0],pe=ue[1],fe=ue[2],me=ue[3],ge=ue[4],ve=fe(),he=Uw([w]),be=(0,ke.A)(he,4),ye=be[0],Ce=be[1],xe=be[2],$e=be[3],we=function(e){Ce(!0),null===X||void 0===X||X(e,{})},Se=function(e){Ce(!1),null===G||void 0===G||G(e,{})},Ee=Ln(j,{value:z}),Oe=(0,ke.A)(Ee,2),Ae=Oe[0],Ie=Oe[1],Ne="date"===Ae&&T?"datetime":Ae,Me=aS(j,Ae,P,R),je=x&&function(e,t){x(ne(e),ne(t))},Pe=iS((0,d.A)((0,d.A)({},i),{},{onChange:je}),de,pe,fe,me,[],s,ye,ae,p),Re=(0,ke.A)(Pe,2)[1],Te=yw(ve,p),ze=(0,ke.A)(Te,2),Be=ze[0],He=ze[1],De=o.useMemo(function(){return Be.some(function(e){return e})},[Be]),Le=Jw(M,N,ve,[Ae],ae,$e,a,!1,F,W,pw(null===T||void 0===T?void 0:T.defaultOpenValue),function(e,t){if(_){var n=(0,d.A)((0,d.A)({},t),{},{mode:t.mode[0]});delete n.range,_(e[0],n)}},k,E),Fe=(0,ke.A)(Le,2),We=Fe[0],_e=Fe[1],Ke=Bn(function(e,t,n){if(Ie(t),B&&!1!==n){var o=e||ve[ve.length-1];B(o,t)}}),qe=function(){Re(fe()),le(!1,{force:!0})},Ve=o.useState(null),Xe=(0,ke.A)(Ve,2),Ge=Xe[0],Ye=Xe[1],Ue=o.useState(null),Qe=(0,ke.A)(Ue,2),Ze=Qe[0],Je=Qe[1],et=o.useMemo(function(){var e=[Ze].concat(se(ve)).filter(function(e){return e});return L?e:e.slice(0,1)},[ve,Ze,L]),tt=o.useMemo(function(){return!L&&Ze?[Ze]:ve.filter(function(e){return e})},[ve,Ze,L]);o.useEffect(function(){ae||Je(null)},[ae]);var nt=Gw(Y),ot=function(e){var t=L?oe(fe(),e):[e];Re(t)&&!L&&le(!1,{force:!0})},rt=bw(Q,Z,J),it=o.useMemo(function(){var e=ni(i,!1),t=Ul(i,[].concat(se(Object.keys(e)),["onChange","onCalendarChange","style","className","onPanelChange"]));return(0,d.A)((0,d.A)({},t),{},{multiple:i.multiple})},[i]),at=o.createElement(jS,(0,l.A)({},it,{showNow:Me,showTime:T,disabledDate:S,onFocus:function(e){le(!0),we(e)},onBlur:Se,picker:j,mode:Ae,internalMode:Ne,onPanelChange:Ke,format:u,value:ve,isInvalid:p,onChange:null,onSelect:function(e){if(xe("panel"),!L||Ne===j){var t=L?oe(fe(),e):[e];me(t),C||c||a!==Ne||qe()}},pickerValue:We,defaultOpenValue:null===T||void 0===T?void 0:T.defaultOpenValue,onPickerValueChange:_e,hoverValue:et,onHover:function(e){Je(e),Ye("cell")},needConfirm:C,onSubmit:qe,onOk:ge,presets:nt,onPresetHover:function(e){Je(e),Ye("preset")},onPresetSubmit:ot,onNow:function(e){ot(e)},cellRender:rt})),lt=o.useMemo(function(){return{prefixCls:m,locale:N,generateConfig:M,button:U.button,input:U.input}},[m,N,M,U.button,U.input]);return ut(function(){ae&&void 0!==$e&&Ke(null,j,!1)},[ae,$e,j]),ut(function(){var e=xe();ae||"input"!==e||(le(!1),qe()),ae||!c||C||"panel"!==e||qe()},[ae]),o.createElement(cw.Provider,{value:lt},o.createElement(uw,(0,l.A)({},hw(i),{popupElement:at,popupStyle:g.popup,popupClassName:v.popup,visible:ae,onClose:function(){le(!1)}}),o.createElement(nk,(0,l.A)({},i,{ref:te,suffixIcon:q,removeIcon:V,activeHelp:!!Ze,allHelp:!!Ze&&"preset"===Ge,focused:ye,onFocus:function(e){xe("input"),le(!0,{inherit:!0}),we(e)},onBlur:function(e){le(!1),Se(e)},onKeyDown:function(e,t){"Tab"===e.key&&qe(),null===$||void 0===$||$(e,t)},onSubmit:qe,value:tt,maskFormat:u,onChange:function(e){me(e)},onInputChange:function(){xe("input")},internalPicker:a,format:s,inputReadOnly:K,disabled:w,open:ae,onOpenChange:le,onClick:function(e){w||te.current.nativeElement.contains(document.activeElement)||te.current.focus(),le(!0),null===ee||void 0===ee||ee(e)},onClear:function(){Re(null),le(!1,{force:!0})},invalid:De,onInvalid:function(e){He(e,0)}}))))});const rk=ok,ik=o.createContext(null),ak=ik.Provider,lk=ik,ck=o.createContext(null),sk=ck.Provider;var uk=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],dk=(0,o.forwardRef)(function(e,t){var n=e.prefixCls,r=void 0===n?"rc-checkbox":n,i=e.className,c=e.style,s=e.checked,u=e.disabled,p=e.defaultChecked,f=void 0!==p&&p,m=e.type,g=void 0===m?"checkbox":m,v=e.title,h=e.onChange,b=(0,cr.A)(e,uk),y=(0,o.useRef)(null),C=(0,o.useRef)(null),x=Ln(f,{value:s}),$=(0,ke.A)(x,2),w=$[0],S=$[1];(0,o.useImperativeHandle)(t,function(){return{focus:function(e){var t;null===(t=y.current)||void 0===t||t.focus(e)},blur:function(){var e;null===(e=y.current)||void 0===e||e.blur()},input:y.current,nativeElement:C.current}});var k=a()(r,i,(0,Ee.A)((0,Ee.A)({},"".concat(r,"-checked"),w),"".concat(r,"-disabled"),u));return o.createElement("span",{className:k,title:v,style:c,ref:C},o.createElement("input",(0,l.A)({},b,{className:"".concat(r,"-input"),ref:y,onChange:function(t){u||("checked"in e||S(t.target.checked),null===h||void 0===h||h({target:(0,d.A)((0,d.A)({},e),{},{type:g,checked:t.target.checked}),stopPropagation:function(){t.stopPropagation()},preventDefault:function(){t.preventDefault()},nativeEvent:t.nativeEvent}))},disabled:u,checked:!!w,type:g})),o.createElement("span",{className:"".concat(r,"-inner")}))});const pk=dk;function fk(e){const t=r().useRef(null),n=()=>{ve.cancel(t.current),t.current=null};return[()=>{n(),t.current=ve(()=>{t.current=null})},o=>{t.current&&(o.stopPropagation(),n()),null===e||void 0===e||e(o)}]}const mk=e=>{const{componentCls:t,antCls:n}=e,o=`${t}-group`;return{[o]:Object.assign(Object.assign({},po(e)),{display:"inline-block",fontSize:0,[`&${o}-rtl`]:{direction:"rtl"},[`&${o}-block`]:{display:"flex"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}},gk=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:o,radioSize:r,motionDurationSlow:i,motionDurationMid:a,motionEaseInOutCirc:l,colorBgContainer:c,colorBorder:s,lineWidth:u,colorBgContainerDisabled:d,colorTextDisabled:p,paddingXS:f,dotColorDisabled:m,lineType:g,radioColor:v,radioBgColor:h,calc:b}=e,y=`${t}-inner`,C=b(r).sub(b(4).mul(2)),x=b(1).mul(r).equal({unit:!0});return{[`${t}-wrapper`]:Object.assign(Object.assign({},po(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}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${nt(u)} ${g} ${o}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[t]:Object.assign(Object.assign({},po(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &,\n &:hover ${y}`]:{borderColor:o},[`${t}-input:focus-visible + ${y}`]:Object.assign({},fo(e)),[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:"visible"},[`${t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:x,height:x,marginBlockStart:b(1).mul(r).div(-2).equal({unit:!0}),marginInlineStart:b(1).mul(r).div(-2).equal({unit:!0}),backgroundColor:v,borderBlockStart:0,borderInlineStart:0,borderRadius:x,transform:"scale(0)",opacity:0,transition:`all ${i} ${l}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:x,height:x,backgroundColor:c,borderColor:s,borderStyle:"solid",borderWidth:u,borderRadius:"50%",transition:`all ${a}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[y]:{borderColor:o,backgroundColor:h,"&::after":{transform:`scale(${e.calc(e.dotSize).div(r).equal()})`,opacity:1,transition:`all ${i} ${l}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[y]:{backgroundColor:d,borderColor:s,cursor:"not-allowed","&::after":{backgroundColor:m}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:p,cursor:"not-allowed"},[`&${t}-checked`]:{[y]:{"&::after":{transform:`scale(${b(C).div(r).equal()})`}}}},[`span${t} + *`]:{paddingInlineStart:f,paddingInlineEnd:f}})}},vk=e=>{const{buttonColor:t,controlHeight:n,componentCls:o,lineWidth:r,lineType:i,colorBorder:a,motionDurationSlow:l,motionDurationMid:c,buttonPaddingInline:s,fontSize:u,buttonBg:d,fontSizeLG:p,controlHeightLG:f,controlHeightSM:m,paddingXS:g,borderRadius:v,borderRadiusSM:h,borderRadiusLG:b,buttonCheckedBg:y,buttonSolidCheckedColor:C,colorTextDisabled:x,colorBgContainerDisabled:$,buttonCheckedBgDisabled:w,buttonCheckedColorDisabled:S,colorPrimary:k,colorPrimaryHover:E,colorPrimaryActive:O,buttonSolidCheckedBg:A,buttonSolidCheckedHoverBg:I,buttonSolidCheckedActiveBg:N,calc:M}=e;return{[`${o}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:s,paddingBlock:0,color:t,fontSize:u,lineHeight:nt(M(n).sub(M(r).mul(2)).equal()),background:d,border:`${nt(r)} ${i} ${a}`,borderBlockStartWidth:M(r).add(.02).equal(),borderInlineStartWidth:0,borderInlineEndWidth:r,cursor:"pointer",transition:[`color ${c}`,`background ${c}`,`box-shadow ${c}`].join(","),a:{color:t},[`> ${o}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:M(r).mul(-1).equal(),insetInlineStart:M(r).mul(-1).equal(),display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:r,paddingInline:0,backgroundColor:a,transition:`background-color ${l}`,content:'""'}},"&:first-child":{borderInlineStart:`${nt(r)} ${i} ${a}`,borderStartStartRadius:v,borderEndStartRadius:v},"&:last-child":{borderStartEndRadius:v,borderEndEndRadius:v},"&:first-child:last-child":{borderRadius:v},[`${o}-group-large &`]:{height:f,fontSize:p,lineHeight:nt(M(f).sub(M(r).mul(2)).equal()),"&:first-child":{borderStartStartRadius:b,borderEndStartRadius:b},"&:last-child":{borderStartEndRadius:b,borderEndEndRadius:b}},[`${o}-group-small &`]:{height:m,paddingInline:M(g).sub(r).equal(),paddingBlock:0,lineHeight:nt(M(m).sub(M(r).mul(2)).equal()),"&:first-child":{borderStartStartRadius:h,borderEndStartRadius:h},"&:last-child":{borderStartEndRadius:h,borderEndEndRadius:h}},"&:hover":{position:"relative",color:k},"&:has(:focus-visible)":Object.assign({},fo(e)),[`${o}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${o}-button-wrapper-disabled)`]:{zIndex:1,color:k,background:y,borderColor:k,"&::before":{backgroundColor:k},"&:first-child":{borderColor:k},"&:hover":{color:E,borderColor:E,"&::before":{backgroundColor:E}},"&:active":{color:O,borderColor:O,"&::before":{backgroundColor:O}}},[`${o}-group-solid &-checked:not(${o}-button-wrapper-disabled)`]:{color:C,background:A,borderColor:A,"&:hover":{color:C,background:I,borderColor:I},"&:active":{color:C,background:N,borderColor:N}},"&-disabled":{color:x,backgroundColor:$,borderColor:a,cursor:"not-allowed","&:first-child, &:hover":{color:x,backgroundColor:$,borderColor:a}},[`&-disabled${o}-button-wrapper-checked`]:{color:S,backgroundColor:w,borderColor:a,boxShadow:"none"},"&-block":{flex:1,textAlign:"center"}}}},hk=qo("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n}=e,o=`0 0 0 ${nt(n)} ${t}`,r=Jn(e,{radioFocusShadow:o,radioButtonFocusShadow:o});return[mk(r),gk(r),vk(r)]},e=>{const{wireframe:t,padding:n,marginXS:o,lineWidth:r,fontSizeLG:i,colorText:a,colorBgContainer:l,colorTextDisabled:c,controlItemBgActiveDisabled:s,colorTextLightSolid:u,colorPrimary:d,colorPrimaryHover:p,colorPrimaryActive:f,colorWhite:m}=e;return{radioSize:i,dotSize:t?i-8:i-2*(4+r),dotColorDisabled:c,buttonSolidCheckedColor:u,buttonSolidCheckedBg:d,buttonSolidCheckedHoverBg:p,buttonSolidCheckedActiveBg:f,buttonBg:l,buttonCheckedBg:l,buttonColor:a,buttonCheckedBgDisabled:s,buttonCheckedColorDisabled:c,buttonPaddingInline:n-r,wrapperMarginInlineEnd:o,radioColor:t?d:m,radioBgColor:t?l:d}},{unitless:{radioSize:!0,dotSize:!0}});var bk=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const yk=o.forwardRef((e,t)=>{var n,r;const i=o.useContext(lk),l=o.useContext(ck),{getPrefixCls:c,direction:s,radio:u}=o.useContext(xe),d=o.useRef(null),p=(0,b.K4)(t,d),{isFormItemInput:f}=o.useContext(Ep);const m=t=>{var n,o;null===(n=e.onChange)||void 0===n||n.call(e,t),null===(o=null===i||void 0===i?void 0:i.onChange)||void 0===o||o.call(i,t)},{prefixCls:g,className:v,rootClassName:h,children:y,style:C,title:x}=e,$=bk(e,["prefixCls","className","rootClassName","children","style","title"]),w=c("radio",g),S="button"===((null===i||void 0===i?void 0:i.optionType)||l),k=S?`${w}-button`:w,E=Mi(w),[O,A,I]=hk(w,E),N=Object.assign({},$),M=o.useContext(Ga);i&&(N.name=i.name,N.onChange=m,N.checked=e.value===i.value,N.disabled=null!==(n=N.disabled)&&void 0!==n?n:i.disabled),N.disabled=null!==(r=N.disabled)&&void 0!==r?r:M;const j=a()(`${k}-wrapper`,{[`${k}-wrapper-checked`]:N.checked,[`${k}-wrapper-disabled`]:N.disabled,[`${k}-wrapper-rtl`]:"rtl"===s,[`${k}-wrapper-in-form-item`]:f,[`${k}-wrapper-block`]:!!(null===i||void 0===i?void 0:i.block)},null===u||void 0===u?void 0:u.className,v,h,A,I,E),[P,R]=fk(N.onClick);return O(o.createElement(ac,{component:"Radio",disabled:N.disabled},o.createElement("label",{className:j,style:Object.assign(Object.assign({},null===u||void 0===u?void 0:u.style),C),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:x,onClick:P},o.createElement(pk,Object.assign({},N,{className:a()(N.className,{[ec]:!S}),type:"radio",prefixCls:k,ref:p,onClick:R})),void 0!==y?o.createElement("span",{className:`${k}-label`},y):null)))});const Ck=yk,xk=["parentNode"];function $k(e){return void 0===e||!1===e?[]:Array.isArray(e)?e:[e]}function wk(e,t){if(!e.length)return;const n=e.join("_");if(t)return`${t}_${n}`;return xk.includes(n)?`form_item_${n}`:n}function Sk(e,t,n,o,r,i){let a=o;return void 0!==i?a=i:n.validating?a="validating":e.length?a="error":t.length?a="warning":(n.touched||r&&n.validated)&&(a="success"),a}var kk=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};function Ek(e){return $k(e).join("_")}function Ok(e,t){const n=v(t.getFieldInstance(e));if(n)return n;const o=wk($k(e),t.__INTERNAL__.name);return o?document.getElementById(o):void 0}function Ak(e){const[t]=dp(),n=o.useRef({}),r=o.useMemo(()=>null!==e&&void 0!==e?e:Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:e=>t=>{const o=Ek(e);t?n.current[o]=t:delete n.current[o]}},scrollToField:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{focus:n}=t,o=kk(t,["focus"]),i=Ok(e,r);i&&(Oi(i,Object.assign({scrollMode:"if-needed",block:"nearest"},o)),n&&r.focusField(e))},focusField:e=>{var t,n;const o=r.getFieldInstance(e);"function"===typeof(null===o||void 0===o?void 0:o.focus)?o.focus():null===(n=null===(t=Ok(e,r))||void 0===t?void 0:t.focus)||void 0===n||n.call(t)},getFieldInstance:e=>{const t=Ek(e);return n.current[t]}}),[e,t]);return[r]}const Ik=o.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=o.useContext(xe),{name:i}=o.useContext(Ep),l=Gu(Ek(i)),{prefixCls:c,className:s,rootClassName:u,options:d,buttonStyle:p="outline",disabled:f,children:m,size:g,style:v,id:h,optionType:b,name:y=l,defaultValue:C,value:x,block:$=!1,onChange:w,onMouseEnter:S,onMouseLeave:k,onFocus:E,onBlur:O}=e,[A,I]=Ln(C,{value:x}),N=o.useCallback(t=>{const n=A,o=t.target.value;"value"in e||I(o),o!==n&&(null===w||void 0===w||w(t))},[A,I,w]),M=n("radio",c),j=`${M}-group`,P=Mi(M),[R,T,z]=hk(M,P);let B=m;d&&d.length>0&&(B=d.map(e=>"string"===typeof e||"number"===typeof e?o.createElement(Ck,{key:e.toString(),prefixCls:M,disabled:f,value:e,checked:A===e},e):o.createElement(Ck,{key:`radio-group-value-options-${e.value}`,prefixCls:M,disabled:e.disabled||f,value:e.value,checked:A===e.value,title:e.title,style:e.style,className:e.className,id:e.id,required:e.required},e.label)));const H=lc(g),D=a()(j,`${j}-${p}`,{[`${j}-${H}`]:H,[`${j}-rtl`]:"rtl"===r,[`${j}-block`]:$},s,u,T,z,P),L=o.useMemo(()=>({onChange:N,value:A,disabled:f,name:y,optionType:b,block:$}),[N,A,f,y,b,$]);return R(o.createElement("div",Object.assign({},ni(e,{aria:!0,data:!0}),{className:D,style:v,onMouseEnter:S,onMouseLeave:k,onFocus:E,onBlur:O,id:h,ref:t}),o.createElement(ak,{value:L},B)))}),Nk=o.memo(Ik);var Mk=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const jk=o.forwardRef((e,t)=>{const{getPrefixCls:n}=o.useContext(xe),{prefixCls:r}=e,i=Mk(e,["prefixCls"]),a=n("radio",r);return o.createElement(sk,{value:"button"},o.createElement(Ck,Object.assign({prefixCls:a},i,{type:"radio",ref:t})))});function Pk(e){const{fullscreen:t,validRange:n,generateConfig:r,locale:i,prefixCls:a,value:l,onChange:c,divRef:s}=e,u=r.getYear(l||r.getNow());let d=u-10,p=d+20;n&&(d=r.getYear(n[0]),p=r.getYear(n[1])+1);const f=i&&"\u5e74"===i.year?"\u5e74":"",m=[];for(let o=d;o<p;o++)m.push({label:`${o}${f}`,value:o});return o.createElement(yb,{size:t?void 0:"small",options:m,value:u,className:`${a}-year-select`,onChange:e=>{let t=r.setYear(l,e);if(n){const[e,o]=n,i=r.getYear(t),a=r.getMonth(t);i===r.getYear(o)&&a>r.getMonth(o)&&(t=r.setMonth(t,r.getMonth(o))),i===r.getYear(e)&&a<r.getMonth(e)&&(t=r.setMonth(t,r.getMonth(e)))}c(t)},getPopupContainer:()=>s.current})}function Rk(e){const{prefixCls:t,fullscreen:n,validRange:r,value:i,generateConfig:a,locale:l,onChange:c,divRef:s}=e,u=a.getMonth(i||a.getNow());let d=0,p=11;if(r){const[e,t]=r,n=a.getYear(i);a.getYear(t)===n&&(p=a.getMonth(t)),a.getYear(e)===n&&(d=a.getMonth(e))}const f=l.shortMonths||a.locale.getShortMonths(l.locale),m=[];for(let o=d;o<=p;o+=1)m.push({label:f[o],value:o});return o.createElement(yb,{size:n?void 0:"small",className:`${t}-month-select`,value:u,options:m,onChange:e=>{c(a.setMonth(i,e))},getPopupContainer:()=>s.current})}function Tk(e){const{prefixCls:t,locale:n,mode:r,fullscreen:i,onModeChange:a}=e;return o.createElement(Nk,{onChange:e=>{let{target:{value:t}}=e;a(t)},value:r,size:i?void 0:"small",className:`${t}-mode-switch`},o.createElement(jk,{value:"month"},n.month),o.createElement(jk,{value:"year"},n.year))}const zk=function(e){const{prefixCls:t,fullscreen:n,mode:r,onChange:i,onModeChange:a}=e,l=o.useRef(null),c=(0,o.useContext)(Ep),s=(0,o.useMemo)(()=>Object.assign(Object.assign({},c),{isFormItemInput:!1}),[c]),u=Object.assign(Object.assign({},e),{fullscreen:n,divRef:l});return o.createElement("div",{className:`${t}-header`,ref:l},o.createElement(Ep.Provider,{value:s},o.createElement(Pk,Object.assign({},u,{onChange:e=>{i(e,"year")}})),"month"===r&&o.createElement(Rk,Object.assign({},u,{onChange:e=>{i(e,"month")}}))),o.createElement(Tk,Object.assign({},u,{onModeChange:a})))},Bk=e=>{const{pickerCellCls:t,pickerCellInnerCls:n,cellHeight:o,borderRadiusSM:r,motionDurationMid:i,cellHoverBg:a,lineWidth:l,lineType:c,colorPrimary:s,cellActiveWithRangeBg:u,colorTextLightSolid:d,colorTextDisabled:p,cellBgDisabled:f,colorFillSecondary:m}=e;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:o,transform:"translateY(-50%)",content:'""',pointerEvents:"none"},[n]:{position:"relative",zIndex:2,display:"inline-block",minWidth:o,height:o,lineHeight:nt(o),borderRadius:r,transition:`background ${i}`},[`&:hover:not(${t}-in-view):not(${t}-disabled),\n &:hover:not(${t}-selected):not(${t}-range-start):not(${t}-range-end):not(${t}-disabled)`]:{[n]:{background:a}},[`&-in-view${t}-today ${n}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${nt(l)} ${c} ${s}`,borderRadius:r,content:'""'}},[`&-in-view${t}-in-range,\n &-in-view${t}-range-start,\n &-in-view${t}-range-end`]:{position:"relative",[`&:not(${t}-disabled):before`]:{background:u}},[`&-in-view${t}-selected,\n &-in-view${t}-range-start,\n &-in-view${t}-range-end`]:{[`&:not(${t}-disabled) ${n}`]:{color:d,background:s},[`&${t}-disabled ${n}`]:{background:m}},[`&-in-view${t}-range-start:not(${t}-disabled):before`]:{insetInlineStart:"50%"},[`&-in-view${t}-range-end:not(${t}-disabled):before`]:{insetInlineEnd:"50%"},[`&-in-view${t}-range-start:not(${t}-range-end) ${n}`]:{borderStartStartRadius:r,borderEndStartRadius:r,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${t}-range-end:not(${t}-range-start) ${n}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:r,borderEndEndRadius:r},"&-disabled":{color:p,cursor:"not-allowed",[n]:{background:"transparent"},"&::before":{background:f}},[`&-disabled${t}-today ${n}::before`]:{borderColor:p}}},Hk=e=>{const{componentCls:t,pickerCellCls:n,pickerCellInnerCls:o,pickerYearMonthCellWidth:r,pickerControlIconSize:i,cellWidth:a,paddingSM:l,paddingXS:c,paddingXXS:s,colorBgContainer:u,lineWidth:d,lineType:p,borderRadiusLG:f,colorPrimary:m,colorTextHeading:g,colorSplit:v,pickerControlIconBorderWidth:h,colorIcon:b,textHeight:y,motionDurationMid:C,colorIconHover:x,fontWeightStrong:$,cellHeight:w,pickerCellPaddingVertical:S,colorTextDisabled:k,colorText:E,fontSize:O,motionDurationSlow:A,withoutTimeCellHeight:I,pickerQuarterPanelContentHeight:N,borderRadiusSM:M,colorTextLightSolid:j,cellHoverBg:P,timeColumnHeight:R,timeColumnWidth:T,timeCellHeight:z,controlItemBgActive:B,marginXXS:H,pickerDatePanelPaddingHorizontal:D,pickerControlIconMargin:L}=e,F=e.calc(a).mul(7).add(e.calc(D).mul(2)).equal();return{[t]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:u,borderRadius:f,outline:"none","&-focused":{borderColor:m},"&-rtl":{[`${t}-prev-icon,\n ${t}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${t}-next-icon,\n ${t}-super-next-icon`]:{transform:"rotate(-135deg)"},[`${t}-time-panel`]:{[`${t}-content`]:{direction:"ltr","> *":{direction:"rtl"}}}}},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel,\n &-week-panel,\n &-date-panel,\n &-time-panel":{display:"flex",flexDirection:"column",width:F},"&-header":{display:"flex",padding:`0 ${nt(c)}`,color:g,borderBottom:`${nt(d)} ${p} ${v}`,"> *":{flex:"none"},button:{padding:0,color:b,lineHeight:nt(y),background:"transparent",border:0,cursor:"pointer",transition:`color ${C}`,fontSize:"inherit",display:"inline-flex",alignItems:"center",justifyContent:"center","&:empty":{display:"none"}},"> button":{minWidth:"1.6em",fontSize:O,"&:hover":{color:x},"&:disabled":{opacity:.25,pointerEvents:"none"}},"&-view":{flex:"auto",fontWeight:$,lineHeight:nt(y),"> button":{color:"inherit",fontWeight:"inherit",verticalAlign:"top","&:not(:first-child)":{marginInlineStart:c},"&:hover":{color:m}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:"relative",width:i,height:i,"&::before":{position:"absolute",top:0,insetInlineStart:0,width:i,height:i,border:"0 solid currentcolor",borderBlockStartWidth:h,borderInlineStartWidth:h,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:L,insetInlineStart:L,display:"inline-block",width:i,height:i,border:"0 solid currentcolor",borderBlockStartWidth:h,borderInlineStartWidth:h,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:w,fontWeight:"normal"},th:{height:e.calc(w).add(e.calc(S).mul(2)).equal(),color:E,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${nt(S)} 0`,color:k,cursor:"pointer","&-in-view":{color:E}},Bk(e)),"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-content`]:{height:e.calc(I).mul(4).equal()},[o]:{padding:`0 ${nt(c)}`}},"&-quarter-panel":{[`${t}-content`]:{height:N}},"&-decade-panel":{[o]:{padding:`0 ${nt(e.calc(c).div(2).equal())}`},[`${t}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-body`]:{padding:`0 ${nt(c)}`},[o]:{width:r}},"&-date-panel":{[`${t}-body`]:{padding:`${nt(c)} ${nt(D)}`},[`${t}-content th`]:{boxSizing:"border-box",padding:0}},"&-week-panel":{[`${t}-cell`]:{[`&:hover ${o},\n &-selected ${o},\n ${o}`]:{background:"transparent !important"}},"&-row":{td:{"&:before":{transition:`background ${C}`},"&:first-child:before":{borderStartStartRadius:M,borderEndStartRadius:M},"&:last-child:before":{borderStartEndRadius:M,borderEndEndRadius:M}},"&:hover td:before":{background:P},"&-range-start td, &-range-end td, &-selected td, &-hover td":{[`&${n}`]:{"&:before":{background:m},[`&${t}-cell-week`]:{color:new wo.Y(j).setA(.5).toHexString()},[o]:{color:j}}},"&-range-hover td:before":{background:B}}},"&-week-panel, &-date-panel-show-week":{[`${t}-body`]:{padding:`${nt(c)} ${nt(l)}`},[`${t}-content th`]:{width:"auto"}},"&-datetime-panel":{display:"flex",[`${t}-time-panel`]:{borderInlineStart:`${nt(d)} ${p} ${v}`},[`${t}-date-panel,\n ${t}-time-panel`]:{transition:`opacity ${A}`},"&-active":{[`${t}-date-panel,\n ${t}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",[`${t}-content`]:{display:"flex",flex:"auto",height:R},"&-column":{flex:"1 0 auto",width:T,margin:`${nt(s)} 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${C}`,overflowX:"hidden","&::-webkit-scrollbar":{width:8,backgroundColor:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:e.colorTextTertiary,borderRadius:e.borderRadiusSM},"&":{scrollbarWidth:"thin",scrollbarColor:`${e.colorTextTertiary} transparent`},"&::after":{display:"block",height:`calc(100% - ${nt(z)})`,content:'""'},"&:not(:first-child)":{borderInlineStart:`${nt(d)} ${p} ${v}`},"&-active":{background:new wo.Y(B).setA(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:H,[`${t}-time-panel-cell-inner`]:{display:"block",width:e.calc(T).sub(e.calc(H).mul(2)).equal(),height:z,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:e.calc(T).sub(z).div(2).equal(),color:E,lineHeight:nt(z),borderRadius:M,cursor:"pointer",transition:`background ${C}`,"&:hover":{background:P}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:B}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:k,background:"transparent",cursor:"not-allowed"}}}}}}}}},Dk=e=>{const{componentCls:t,textHeight:n,lineWidth:o,paddingSM:r,antCls:i,colorPrimary:a,cellActiveWithRangeBg:l,colorPrimaryBorder:c,lineType:s,colorSplit:u}=e;return{[`${t}-dropdown`]:{[`${t}-footer`]:{borderTop:`${nt(o)} ${s} ${u}`,"&-extra":{padding:`0 ${nt(r)}`,lineHeight:nt(e.calc(n).sub(e.calc(o).mul(2)).equal()),textAlign:"start","&:not(:last-child)":{borderBottom:`${nt(o)} ${s} ${u}`}}},[`${t}-panels + ${t}-footer ${t}-ranges`]:{justifyContent:"space-between"},[`${t}-ranges`]:{marginBlock:0,paddingInline:nt(r),overflow:"hidden",textAlign:"start",listStyle:"none",display:"flex",justifyContent:"center",alignItems:"center","> li":{lineHeight:nt(e.calc(n).sub(e.calc(o).mul(2)).equal()),display:"inline-block"},[`${t}-now-btn-disabled`]:{pointerEvents:"none",color:e.colorTextDisabled},[`${t}-preset > ${i}-tag-blue`]:{color:a,background:l,borderColor:c,cursor:"pointer"},[`${t}-ok`]:{paddingBlock:e.calc(o).mul(2).equal(),marginInlineStart:"auto"}}}}};function Lk(e){return Jn(e,{inputAffixPadding:e.paddingXXS})}const Fk=e=>{const{controlHeight:t,fontSize:n,lineHeight:o,lineWidth:r,controlHeightSM:i,controlHeightLG:a,fontSizeLG:l,lineHeightLG:c,paddingSM:s,controlPaddingHorizontalSM:u,controlPaddingHorizontal:d,colorFillAlter:p,colorPrimaryHover:f,colorPrimary:m,controlOutlineWidth:g,controlOutline:v,colorErrorOutline:h,colorWarningOutline:b,colorBgContainer:y,inputFontSize:C,inputFontSizeLG:x,inputFontSizeSM:$}=e,w=C||n,S=$||w,k=x||l,E=Math.round((t-w*o)/2*10)/10-r,O=Math.round((i-S*o)/2*10)/10-r,A=Math.ceil((a-k*c)/2*10)/10-r;return{paddingBlock:Math.max(E,0),paddingBlockSM:Math.max(O,0),paddingBlockLG:Math.max(A,0),paddingInline:s-r,paddingInlineSM:u-r,paddingInlineLG:d-r,addonBg:p,activeBorderColor:m,hoverBorderColor:f,activeShadow:`0 0 0 ${g}px ${v}`,errorActiveShadow:`0 0 0 ${g}px ${h}`,warningActiveShadow:`0 0 0 ${g}px ${b}`,hoverBg:y,activeBg:y,inputFontSize:w,inputFontSizeLG:k,inputFontSizeSM:S}},Wk=e=>{const{componentCls:t,controlHeightLG:n,paddingXXS:o,padding:r}=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(o).add(e.calc(o).div(2)).equal(),pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconMargin:4,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:e.calc(r).add(e.calc(o).div(2)).equal()}},_k=e=>{const{colorBgContainerDisabled:t,controlHeight:n,controlHeightSM:o,controlHeightLG:r,paddingXXS:i,lineWidth:a}=e,l=2*i,c=2*a,s=Math.min(n-l,n-c),u=Math.min(o-l,o-c),d=Math.min(r-l,r-c);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(i/2),cellHoverBg:e.controlItemBgHover,cellActiveWithRangeBg:e.controlItemBgActive,cellHoverWithRangeBg:new wo.Y(e.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new wo.Y(e.colorPrimary).lighten(20).toHexString(),cellBgDisabled:t,timeColumnWidth:1.4*r,timeColumnHeight:224,timeCellHeight:28,cellWidth:1.5*o,cellHeight:o,textHeight:r,withoutTimeCellHeight:1.65*r,multipleItemBg:e.colorFillSecondary,multipleItemBorderColor:"transparent",multipleItemHeight:s,multipleItemHeightSM:u,multipleItemHeightLG:d,multipleSelectorBgDisabled:t,multipleItemColorDisabled:e.colorTextDisabled,multipleItemBorderColorDisabled:"transparent"}},Kk=e=>{const{calendarCls:t,componentCls:n,fullBg:o,fullPanelBg:r,itemActiveBg:i}=e;return{[t]:Object.assign(Object.assign(Object.assign({},Hk(e)),po(e)),{background:o,"&-rtl":{direction:"rtl"},[`${t}-header`]:{display:"flex",justifyContent:"flex-end",padding:`${nt(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:r,border:0,borderTop:`${nt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,borderRadius:0,[`${n}-month-panel, ${n}-date-panel`]:{width:"auto"},[`${n}-body`]:{padding:`${nt(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 ${nt(e.borderRadiusLG)} ${nt(e.borderRadiusLG)}`},[`${n}-content`]:{height:e.miniContentHeight,th:{height:"auto",padding:0,lineHeight:nt(e.weekHeight)}},[`${n}-cell::before`]:{pointerEvents:"none"}},[`${t}${t}-full`]:{[`${n}-panel`]:{display:"block",width:"100%",textAlign:"end",background:o,border:0,[`${n}-body`]:{"th, td":{padding:0},th:{height:"auto",paddingInlineEnd:e.paddingSM,paddingBottom:e.paddingXXS,lineHeight:nt(e.weekHeight)}}},[`${n}-cell-week ${n}-cell-inner`]:{display:"block",borderRadius:0,borderTop:`${nt(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:i}},"&-selected, &-selected:hover":{[`${t}-date, ${t}-date-today`]:{[`${t}-date-value`]:{color:e.colorPrimary}}}},[`${t}-date`]:{display:"block",width:"auto",height:"auto",margin:`0 ${nt(e.calc(e.marginXS).div(2).equal())}`,padding:`${nt(e.calc(e.paddingXS).div(2).equal())} ${nt(e.paddingXS)} 0`,border:0,borderTop:`${nt(e.lineWidthBold)} ${e.lineType} ${e.colorSplit}`,borderRadius:0,transition:`background ${e.motionDurationSlow}`,"&-value":{lineHeight:nt(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: ${nt(e.screenXS)}) `]:{[t]:{[`${t}-header`]:{display:"block",[`${t}-year-select`]:{width:"50%"},[`${t}-month-select`]:{width:`calc(50% - ${nt(e.paddingXS)})`},[`${t}-mode-switch`]:{width:"100%",marginTop:e.marginXS,marginInlineStart:0,"> label":{width:"50%",textAlign:"center"}}}}}}},qk=qo("Calendar",e=>{const t=`${e.componentCls}-calendar`,n=Jn(e,Wk(e),{calendarCls:t,pickerCellInnerCls:`${e.componentCls}-cell-inner`,dateValueHeight:e.controlHeightSM,weekHeight:e.calc(e.controlHeightSM).mul(.75).equal(),dateContentHeight:e.calc(e.calc(e.fontHeightSM).add(e.marginXS)).mul(3).add(e.calc(e.lineWidth).mul(2)).equal()});return[Kk(n)]},e=>Object.assign({fullBg:e.colorBgContainer,fullPanelBg:e.colorBgContainer,itemActiveBg:e.controlItemBgActive,yearControlWidth:80,monthControlWidth:70,miniContentHeight:256},_k(e))),Vk=(e,t,n)=>{const{getYear:o}=n;return e&&t&&o(e)===o(t)},Xk=(e,t,n)=>{const{getMonth:o}=n;return Vk(e,t,n)&&o(e)===o(t)},Gk=(e,t,n)=>{const{getDate:o}=n;return Xk(e,t,n)&&o(e)===o(t)},Yk=e=>t=>{const{prefixCls:n,className:r,rootClassName:i,style:l,dateFullCellRender:c,dateCellRender:s,monthFullCellRender:u,monthCellRender:d,cellRender:p,fullCellRender:f,headerRender:m,value:g,defaultValue:v,disabledDate:h,mode:b,validRange:y,fullscreen:C=!0,showWeek:x,onChange:$,onPanelChange:w,onSelect:S}=t,{getPrefixCls:k,direction:E,className:O,style:A}=Se("calendar"),I=k("picker",n),N=`${I}-calendar`,[M,j,P]=qk(I,N),R=e.getNow();const[T,z]=Ln(()=>g||e.getNow(),{defaultValue:v,value:g}),[B,H]=Ln("month",{value:b}),D=o.useMemo(()=>"year"===B?"month":"date",[B]),L=o.useCallback(t=>!!y&&(e.isAfter(y[0],t)||e.isAfter(t,y[1]))||!!(null===h||void 0===h?void 0:h(t)),[h,y]),F=(e,t)=>{null===w||void 0===w||w(e,t)},W=e=>{H(e),F(T,e)},_=(t,n)=>{(t=>{z(t),Gk(t,T,e)||(("date"===D&&!Xk(t,T,e)||"month"===D&&!Vk(t,T,e))&&F(t,B),null===$||void 0===$||$(t))})(t),null===S||void 0===S||S(t,{source:n})},K=o.useCallback((t,n)=>f?f(t,n):c?c(t):o.createElement("div",{className:a()(`${I}-cell-inner`,`${N}-date`,{[`${N}-date-today`]:Gk(R,t,e)})},o.createElement("div",{className:`${N}-date-value`},String(e.getDate(t)).padStart(2,"0")),o.createElement("div",{className:`${N}-date-content`},p?p(t,n):null===s||void 0===s?void 0:s(t))),[c,s,p,f]),q=o.useCallback((t,n)=>{if(f)return f(t,n);if(u)return u(t);const r=n.locale.shortMonths||e.locale.getShortMonths(n.locale.locale);return o.createElement("div",{className:a()(`${I}-cell-inner`,`${N}-date`,{[`${N}-date-today`]:Xk(R,t,e)})},o.createElement("div",{className:`${N}-date-value`},r[e.getMonth(t)]),o.createElement("div",{className:`${N}-date-content`},p?p(t,n):null===d||void 0===d?void 0:d(t)))},[u,d,p,f]),[V]=Yl("Calendar",Ta),X=Object.assign(Object.assign({},V),t.locale);return M(o.createElement("div",{className:a()(N,{[`${N}-full`]:C,[`${N}-mini`]:!C,[`${N}-rtl`]:"rtl"===E},O,r,i,j,P),style:Object.assign(Object.assign({},A),l)},m?m({value:T,type:B,onChange:e=>{_(e,"customize")},onTypeChange:W}):o.createElement(zk,{prefixCls:N,value:T,generateConfig:e,mode:B,fullscreen:C,locale:null===X||void 0===X?void 0:X.lang,validRange:y,onChange:_,onModeChange:W}),o.createElement(AS,{value:T,prefixCls:I,locale:null===X||void 0===X?void 0:X.lang,generateConfig:e,cellRender:(e,t)=>"date"===t.type?K(e,t):"month"===t.type?q(e,Object.assign(Object.assign({},t),{locale:null===X||void 0===X?void 0:X.lang})):void 0,onSelect:e=>{_(e,D)},mode:D,picker:D,disabledDate:L,hideHeader:!0,showWeek:x})))},Uk=Yk(lw);Uk.generateCalendar=Yk;const Qk=Uk;var Zk=n(70930);const Jk=(0,o.createContext)(null);const eE=function(e){var t=e.activeTabOffset,n=e.horizontal,i=e.rtl,a=e.indicator,l=void 0===a?{}:a,c=l.size,s=l.align,u=void 0===s?"center":s,d=(0,o.useState)(),p=(0,ke.A)(d,2),f=p[0],m=p[1],g=(0,o.useRef)(),v=r().useCallback(function(e){return"function"===typeof c?c(e):"number"===typeof c?c:e},[c]);function h(){ve.cancel(g.current)}return(0,o.useEffect)(function(){var e={};if(t)if(n){e.width=v(t.width);var o=i?"right":"left";"start"===u&&(e[o]=t[o]),"center"===u&&(e[o]=t[o]+t.width/2,e.transform=i?"translateX(50%)":"translateX(-50%)"),"end"===u&&(e[o]=t[o]+t.width,e.transform="translateX(-100%)")}else e.height=v(t.height),"start"===u&&(e.top=t.top),"center"===u&&(e.top=t.top+t.height/2,e.transform="translateY(-50%)"),"end"===u&&(e.top=t.top+t.height,e.transform="translateY(-100%)");return h(),g.current=ve(function(){var t=f&&e&&Object.keys(e).every(function(t){var n=e[t],o=f[t];return"number"===typeof n&&"number"===typeof o?Math.round(n)===Math.round(o):n===o});t||m(e)}),h},[JSON.stringify(t),n,i,u,v]),{style:f}};var tE={width:0,height:0,left:0,top:0};function nE(e,t){var n=o.useRef(e),r=o.useState({}),i=(0,ke.A)(r,2)[1];return[n.current,function(e){var o="function"===typeof e?e(n.current):e;o!==n.current&&t(o,n.current),n.current=o,i({})}]}var oE=Math.pow(.995,20);function rE(e){var t=(0,o.useState)(0),n=(0,ke.A)(t,2),r=n[0],i=n[1],a=(0,o.useRef)(0),l=(0,o.useRef)();return l.current=e,st(function(){var e;null===(e=l.current)||void 0===e||e.call(l)},[r]),function(){a.current===r&&(a.current+=1,i(a.current))}}var iE={width:0,height:0,left:0,top:0,right:0};function aE(e){var t;return e instanceof Map?(t={},e.forEach(function(e,n){t[n]=e})):t=e,JSON.stringify(t)}function lE(e){return String(e).replace(/"/g,"TABS_DQ")}function cE(e,t,n,o){return!(!n||o||!1===e||void 0===e&&(!1===t||null===t))}var sE=o.forwardRef(function(e,t){var n=e.prefixCls,r=e.editable,i=e.locale,a=e.style;return r&&!1!==r.showAdd?o.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:a,"aria-label":(null===i||void 0===i?void 0:i.addAriaLabel)||"Add tab",onClick:function(e){r.onEdit("add",{event:e})}},r.addIcon||"+"):null});const uE=sE;var dE=o.forwardRef(function(e,t){var n,r=e.position,i=e.prefixCls,a=e.extra;if(!a)return null;var l={};return"object"!==(0,p.A)(a)||o.isValidElement(a)?l.right=a:l=a,"right"===r&&(n=l.right),"left"===r&&(n=l.left),n?o.createElement("div",{className:"".concat(i,"-extra-content"),ref:t},n):null});const pE=dE;var fE=o.forwardRef(function(e,t){var n=e.prefixCls,r=e.id,i=e.tabs,c=e.locale,s=e.mobile,u=e.more,d=void 0===u?{}:u,p=e.style,f=e.className,m=e.editable,g=e.tabBarGutter,v=e.rtl,h=e.removeAriaLabel,b=e.onTabClick,y=e.getPopupContainer,C=e.popupClassName,x=(0,o.useState)(!1),$=(0,ke.A)(x,2),w=$[0],S=$[1],k=(0,o.useState)(null),E=(0,ke.A)(k,2),O=E[0],A=E[1],I=d.icon,N=void 0===I?"More":I,M="".concat(r,"-more-popup"),j="".concat(n,"-dropdown"),P=null!==O?"".concat(M,"-").concat(O):null,R=null===c||void 0===c?void 0:c.dropdownAriaLabel;var T=o.createElement(Px,{onClick:function(e){var t=e.key,n=e.domEvent;b(t,n),S(!1)},prefixCls:"".concat(j,"-menu"),id:M,tabIndex:-1,role:"listbox","aria-activedescendant":P,selectedKeys:[O],"aria-label":void 0!==R?R:"expanded dropdown"},i.map(function(e){var t=e.closable,n=e.disabled,i=e.closeIcon,a=e.key,l=e.label,c=cE(t,i,m,n);return o.createElement(ax,{key:a,id:"".concat(M,"-").concat(a),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(a),disabled:n},o.createElement("span",null,l),c&&o.createElement("button",{type:"button","aria-label":h||"remove",tabIndex:0,className:"".concat(j,"-menu-item-remove"),onClick:function(e){e.stopPropagation(),function(e,t){e.preventDefault(),e.stopPropagation(),m.onEdit("remove",{key:t,event:e})}(e,a)}},i||m.removeIcon||"\xd7"))}));function z(e){for(var t=i.filter(function(e){return!e.disabled}),n=t.findIndex(function(e){return e.key===O})||0,o=t.length,r=0;r<o;r+=1){var a=t[n=(n+e+o)%o];if(!a.disabled)return void A(a.key)}}(0,o.useEffect)(function(){var e=document.getElementById(P);e&&e.scrollIntoView&&e.scrollIntoView(!1)},[O]),(0,o.useEffect)(function(){w||A(null)},[w]);var B=(0,Ee.A)({},v?"marginRight":"marginLeft",g);i.length||(B.visibility="hidden",B.order=1);var H=a()((0,Ee.A)({},"".concat(j,"-rtl"),v)),D=s?null:o.createElement(mC,(0,l.A)({prefixCls:j,overlay:T,visible:!!i.length&&w,onVisibleChange:S,overlayClassName:a()(H,C),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:y},d),o.createElement("button",{type:"button",className:"".concat(n,"-nav-more"),style:B,"aria-haspopup":"listbox","aria-controls":M,id:"".concat(r,"-more"),"aria-expanded":w,onKeyDown:function(e){var t=e.which;if(w)switch(t){case Xi.UP:z(-1),e.preventDefault();break;case Xi.DOWN:z(1),e.preventDefault();break;case Xi.ESC:S(!1);break;case Xi.SPACE:case Xi.ENTER:null!==O&&b(O,e)}else[Xi.DOWN,Xi.SPACE,Xi.ENTER].includes(t)&&(S(!0),e.preventDefault())}},N));return o.createElement("div",{className:a()("".concat(n,"-nav-operations"),f),style:p,ref:t},D,o.createElement(uE,{prefixCls:n,locale:c,editable:m}))});const mE=o.memo(fE,function(e,t){return t.tabMoving});const gE=function(e){var t=e.prefixCls,n=e.id,r=e.active,i=e.focus,l=e.tab,c=l.key,s=l.label,u=l.disabled,d=l.closeIcon,p=l.icon,f=e.closable,m=e.renderWrapper,g=e.removeAriaLabel,v=e.editable,h=e.onClick,b=e.onFocus,y=e.onBlur,C=e.onKeyDown,x=e.onMouseDown,$=e.onMouseUp,w=e.style,S=e.tabCount,k=e.currentPosition,E="".concat(t,"-tab"),O=cE(f,d,v,u);function A(e){u||h(e)}var I=o.useMemo(function(){return p&&"string"===typeof s?o.createElement("span",null,s):s},[s,p]),N=o.useRef(null);o.useEffect(function(){i&&N.current&&N.current.focus()},[i]);var M=o.createElement("div",{key:c,"data-node-key":lE(c),className:a()(E,(0,Ee.A)((0,Ee.A)((0,Ee.A)((0,Ee.A)({},"".concat(E,"-with-remove"),O),"".concat(E,"-active"),r),"".concat(E,"-disabled"),u),"".concat(E,"-focus"),i)),style:w,onClick:A},o.createElement("div",{ref:N,role:"tab","aria-selected":r,id:n&&"".concat(n,"-tab-").concat(c),className:"".concat(E,"-btn"),"aria-controls":n&&"".concat(n,"-panel-").concat(c),"aria-disabled":u,tabIndex:u?null:r?0:-1,onClick:function(e){e.stopPropagation(),A(e)},onKeyDown:C,onMouseDown:x,onMouseUp:$,onFocus:b,onBlur:y},i&&o.createElement("div",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"Tab ".concat(k," of ").concat(S)),p&&o.createElement("span",{className:"".concat(E,"-icon")},p),s&&I),O&&o.createElement("button",{type:"button",role:"tab","aria-label":g||"remove",tabIndex:r?0:-1,className:"".concat(E,"-remove"),onClick:function(e){var t;e.stopPropagation(),(t=e).preventDefault(),t.stopPropagation(),v.onEdit("remove",{key:c,event:t})}},d||v.removeIcon||"\xd7"));return m?m(M):M};var vE=function(e){var t=e.current||{},n=t.offsetWidth,o=void 0===n?0:n,r=t.offsetHeight,i=void 0===r?0:r;if(e.current){var a=e.current.getBoundingClientRect(),l=a.width,c=a.height;if(Math.abs(l-o)<1)return[l,c]}return[o,i]},hE=function(e,t){return e[t?0:1]},bE=o.forwardRef(function(e,t){var n=e.className,r=e.style,i=e.id,c=e.animated,s=e.activeKey,u=e.rtl,p=e.extra,f=e.editable,m=e.locale,g=e.tabPosition,v=e.tabBarGutter,h=e.children,y=e.onTabClick,C=e.onTabScroll,x=e.indicator,$=o.useContext(Jk),w=$.prefixCls,S=$.tabs,k=(0,o.useRef)(null),E=(0,o.useRef)(null),O=(0,o.useRef)(null),A=(0,o.useRef)(null),I=(0,o.useRef)(null),N=(0,o.useRef)(null),M=(0,o.useRef)(null),j="top"===g||"bottom"===g,P=nE(0,function(e,t){j&&C&&C({direction:e>t?"left":"right"})}),R=(0,ke.A)(P,2),T=R[0],z=R[1],B=nE(0,function(e,t){!j&&C&&C({direction:e>t?"top":"bottom"})}),H=(0,ke.A)(B,2),D=H[0],L=H[1],F=(0,o.useState)([0,0]),W=(0,ke.A)(F,2),_=W[0],K=W[1],q=(0,o.useState)([0,0]),V=(0,ke.A)(q,2),X=V[0],G=V[1],Y=(0,o.useState)([0,0]),U=(0,ke.A)(Y,2),Q=U[0],Z=U[1],J=(0,o.useState)([0,0]),ee=(0,ke.A)(J,2),te=ee[0],ne=ee[1],oe=function(e){var t=(0,o.useRef)([]),n=(0,o.useState)({}),r=(0,ke.A)(n,2)[1],i=(0,o.useRef)("function"===typeof e?e():e),a=rE(function(){var e=i.current;t.current.forEach(function(t){e=t(e)}),t.current=[],i.current=e,r({})});return[i.current,function(e){t.current.push(e),a()}]}(new Map),re=(0,ke.A)(oe,2),ae=re[0],le=re[1],ce=function(e,t,n){return(0,o.useMemo)(function(){for(var n,o=new Map,r=t.get(null===(n=e[0])||void 0===n?void 0:n.key)||tE,i=r.left+r.width,a=0;a<e.length;a+=1){var l,c=e[a].key,s=t.get(c);s||(s=t.get(null===(l=e[a-1])||void 0===l?void 0:l.key)||tE);var u=o.get(c)||(0,d.A)({},s);u.right=i-u.left-u.width,o.set(c,u)}return o},[e.map(function(e){return e.key}).join("_"),t,n])}(S,ae,X[0]),ue=hE(_,j),de=hE(X,j),pe=hE(Q,j),fe=hE(te,j),me=Math.floor(ue)<Math.floor(de+pe),ge=me?ue-fe:ue-pe,ve="".concat(w,"-nav-operations-hidden"),he=0,be=0;function ye(e){return e<he?he:e>be?be:e}j&&u?(he=0,be=Math.max(0,de-ge)):(he=Math.min(0,ge-de),be=0);var Ce=(0,o.useRef)(null),xe=(0,o.useState)(),$e=(0,ke.A)(xe,2),we=$e[0],Se=$e[1];function Oe(){Se(Date.now())}function Ae(){Ce.current&&clearTimeout(Ce.current)}!function(e,t){var n=(0,o.useState)(),r=(0,ke.A)(n,2),i=r[0],a=r[1],l=(0,o.useState)(0),c=(0,ke.A)(l,2),s=c[0],u=c[1],d=(0,o.useState)(0),p=(0,ke.A)(d,2),f=p[0],m=p[1],g=(0,o.useState)(),v=(0,ke.A)(g,2),h=v[0],b=v[1],y=(0,o.useRef)(),C=(0,o.useRef)(),x=(0,o.useRef)(null);x.current={onTouchStart:function(e){var t=e.touches[0],n=t.screenX,o=t.screenY;a({x:n,y:o}),window.clearInterval(y.current)},onTouchMove:function(e){if(i){var n=e.touches[0],o=n.screenX,r=n.screenY;a({x:o,y:r});var l=o-i.x,c=r-i.y;t(l,c);var d=Date.now();u(d),m(d-s),b({x:l,y:c})}},onTouchEnd:function(){if(i&&(a(null),b(null),h)){var e=h.x/f,n=h.y/f,o=Math.abs(e),r=Math.abs(n);if(Math.max(o,r)<.1)return;var l=e,c=n;y.current=window.setInterval(function(){Math.abs(l)<.01&&Math.abs(c)<.01?window.clearInterval(y.current):t(20*(l*=oE),20*(c*=oE))},20)}},onWheel:function(e){var n=e.deltaX,o=e.deltaY,r=0,i=Math.abs(n),a=Math.abs(o);i===a?r="x"===C.current?n:o:i>a?(r=n,C.current="x"):(r=o,C.current="y"),t(-r,-r)&&e.preventDefault()}},o.useEffect(function(){function t(e){x.current.onTouchMove(e)}function n(e){x.current.onTouchEnd(e)}return document.addEventListener("touchmove",t,{passive:!1}),document.addEventListener("touchend",n,{passive:!0}),e.current.addEventListener("touchstart",function(e){x.current.onTouchStart(e)},{passive:!0}),e.current.addEventListener("wheel",function(e){x.current.onWheel(e)},{passive:!1}),function(){document.removeEventListener("touchmove",t),document.removeEventListener("touchend",n)}},[])}(A,function(e,t){function n(e,t){e(function(e){return ye(e+t)})}return!!me&&(j?n(z,e):n(L,t),Ae(),Oe(),!0)}),(0,o.useEffect)(function(){return Ae(),we&&(Ce.current=setTimeout(function(){Se(0)},100)),Ae},[we]);var Ie=function(e,t,n,r,i,a,l){var c,s,u,d=l.tabs,p=l.tabPosition,f=l.rtl;return["top","bottom"].includes(p)?(c="width",s=f?"right":"left",u=Math.abs(n)):(c="height",s="top",u=-n),(0,o.useMemo)(function(){if(!d.length)return[0,0];for(var n=d.length,o=n,r=0;r<n;r+=1){var i=e.get(d[r].key)||iE;if(Math.floor(i[s]+i[c])>Math.floor(u+t)){o=r-1;break}}for(var a=0,l=n-1;l>=0;l-=1)if((e.get(d[l].key)||iE)[s]<u){a=l+1;break}return a>=o?[0,0]:[a,o]},[e,t,r,i,a,u,p,d.map(function(e){return e.key}).join("_"),f])}(ce,ge,j?T:D,de,pe,fe,(0,d.A)((0,d.A)({},e),{},{tabs:S})),Ne=(0,ke.A)(Ie,2),Me=Ne[0],je=Ne[1],Pe=Bn(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s,t=ce.get(e)||{width:0,height:0,left:0,right:0,top:0};if(j){var n=T;u?t.right<T?n=t.right:t.right+t.width>T+ge&&(n=t.right+t.width-ge):t.left<-T?n=-t.left:t.left+t.width>-T+ge&&(n=-(t.left+t.width-ge)),L(0),z(ye(n))}else{var o=D;t.top<-D?o=-t.top:t.top+t.height>-D+ge&&(o=-(t.top+t.height-ge)),z(0),L(ye(o))}}),Re=(0,o.useState)(),Te=(0,ke.A)(Re,2),ze=Te[0],Be=Te[1],He=(0,o.useState)(!1),De=(0,ke.A)(He,2),Le=De[0],Fe=De[1],We=S.filter(function(e){return!e.disabled}).map(function(e){return e.key}),_e=function(e){var t=We.indexOf(ze||s),n=We.length,o=We[(t+e+n)%n];Be(o)},Ke=function(e){var t=e.code,n=u&&j,o=We[0],r=We[We.length-1];switch(t){case"ArrowLeft":j&&_e(n?1:-1);break;case"ArrowRight":j&&_e(n?-1:1);break;case"ArrowUp":e.preventDefault(),j||_e(-1);break;case"ArrowDown":e.preventDefault(),j||_e(1);break;case"Home":e.preventDefault(),Be(o);break;case"End":e.preventDefault(),Be(r);break;case"Enter":case"Space":e.preventDefault(),y(null!==ze&&void 0!==ze?ze:s,e);break;case"Backspace":case"Delete":var i=We.indexOf(ze),a=S.find(function(e){return e.key===ze});cE(null===a||void 0===a?void 0:a.closable,null===a||void 0===a?void 0:a.closeIcon,f,null===a||void 0===a?void 0:a.disabled)&&(e.preventDefault(),e.stopPropagation(),f.onEdit("remove",{key:ze,event:e}),i===We.length-1?_e(-1):_e(1))}},qe={};j?qe[u?"marginRight":"marginLeft"]=v:qe.marginTop=v;var Ve=S.map(function(e,t){var n=e.key;return o.createElement(gE,{id:i,prefixCls:w,key:n,tab:e,style:0===t?void 0:qe,closable:e.closable,editable:f,active:n===s,focus:n===ze,renderWrapper:h,removeAriaLabel:null===m||void 0===m?void 0:m.removeAriaLabel,tabCount:We.length,currentPosition:t+1,onClick:function(e){y(n,e)},onKeyDown:Ke,onFocus:function(){Le||Be(n),Pe(n),Oe(),A.current&&(u||(A.current.scrollLeft=0),A.current.scrollTop=0)},onBlur:function(){Be(void 0)},onMouseDown:function(){Fe(!0)},onMouseUp:function(){Fe(!1)}})}),Xe=function(){return le(function(){var e,t=new Map,n=null===(e=I.current)||void 0===e?void 0:e.getBoundingClientRect();return S.forEach(function(e){var o,r=e.key,i=null===(o=I.current)||void 0===o?void 0:o.querySelector('[data-node-key="'.concat(lE(r),'"]'));if(i){var a=function(e,t){var n=e.offsetWidth,o=e.offsetHeight,r=e.offsetTop,i=e.offsetLeft,a=e.getBoundingClientRect(),l=a.width,c=a.height,s=a.left,u=a.top;return Math.abs(l-n)<1?[l,c,s-t.left,u-t.top]:[n,o,i,r]}(i,n),l=(0,ke.A)(a,4),c=l[0],s=l[1],u=l[2],d=l[3];t.set(r,{width:c,height:s,left:u,top:d})}}),t})};(0,o.useEffect)(function(){Xe()},[S.map(function(e){return e.key}).join("_")]);var Ge=rE(function(){var e=vE(k),t=vE(E),n=vE(O);K([e[0]-t[0]-n[0],e[1]-t[1]-n[1]]);var o=vE(M);Z(o);var r=vE(N);ne(r);var i=vE(I);G([i[0]-o[0],i[1]-o[1]]),Xe()}),Ye=S.slice(0,Me),Ue=S.slice(je+1),Qe=[].concat(se(Ye),se(Ue)),Ze=ce.get(s),Je=eE({activeTabOffset:Ze,horizontal:j,indicator:x,rtl:u}).style;(0,o.useEffect)(function(){Pe()},[s,he,be,aE(Ze),aE(ce),j]),(0,o.useEffect)(function(){Ge()},[u]);var et,tt,nt,ot,rt=!!Qe.length,it="".concat(w,"-nav-wrap");return j?u?(tt=T>0,et=T!==be):(et=T<0,tt=T!==he):(nt=D<0,ot=D!==he),o.createElement(ie,{onResize:Ge},o.createElement("div",{ref:(0,b.xK)(t,k),role:"tablist","aria-orientation":j?"horizontal":"vertical",className:a()("".concat(w,"-nav"),n),style:r,onKeyDown:function(){Oe()}},o.createElement(pE,{ref:E,position:"left",extra:p,prefixCls:w}),o.createElement(ie,{onResize:Ge},o.createElement("div",{className:a()(it,(0,Ee.A)((0,Ee.A)((0,Ee.A)((0,Ee.A)({},"".concat(it,"-ping-left"),et),"".concat(it,"-ping-right"),tt),"".concat(it,"-ping-top"),nt),"".concat(it,"-ping-bottom"),ot)),ref:A},o.createElement(ie,{onResize:Ge},o.createElement("div",{ref:I,className:"".concat(w,"-nav-list"),style:{transform:"translate(".concat(T,"px, ").concat(D,"px)"),transition:we?"none":void 0}},Ve,o.createElement(uE,{ref:M,prefixCls:w,locale:m,editable:f,style:(0,d.A)((0,d.A)({},0===Ve.length?void 0:qe),{},{visibility:rt?"hidden":null})}),o.createElement("div",{className:a()("".concat(w,"-ink-bar"),(0,Ee.A)({},"".concat(w,"-ink-bar-animated"),c.inkBar)),style:Je}))))),o.createElement(mE,(0,l.A)({},e,{removeAriaLabel:null===m||void 0===m?void 0:m.removeAriaLabel,ref:N,prefixCls:w,tabs:Qe,className:!rt&&ve,tabMoving:!!we})),o.createElement(pE,{ref:O,position:"right",extra:p,prefixCls:w})))});const yE=bE;var CE=o.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,i=e.style,l=e.id,c=e.active,s=e.tabKey,u=e.children;return o.createElement("div",{id:l&&"".concat(l,"-panel-").concat(s),role:"tabpanel",tabIndex:c?0:-1,"aria-labelledby":l&&"".concat(l,"-tab-").concat(s),"aria-hidden":!c,style:i,className:a()(n,c&&"".concat(n,"-active"),r),ref:t},u)});const xE=CE;var $E=["renderTabBar"],wE=["label","key"];const SE=function(e){var t=e.renderTabBar,n=(0,cr.A)(e,$E),r=o.useContext(Jk).tabs;return t?t((0,d.A)((0,d.A)({},n),{},{panes:r.map(function(e){var t=e.label,n=e.key,r=(0,cr.A)(e,wE);return o.createElement(xE,(0,l.A)({tab:t,key:n,tabKey:n},r))})}),yE):o.createElement(yE,n)};var kE=["key","forceRender","style","className","destroyInactiveTabPane"];const EE=function(e){var t=e.id,n=e.activeKey,r=e.animated,i=e.tabPosition,c=e.destroyInactiveTabPane,s=o.useContext(Jk),u=s.prefixCls,p=s.tabs,f=r.tabPane,m="".concat(u,"-tabpane");return o.createElement("div",{className:a()("".concat(u,"-content-holder"))},o.createElement("div",{className:a()("".concat(u,"-content"),"".concat(u,"-content-").concat(i),(0,Ee.A)({},"".concat(u,"-content-animated"),f))},p.map(function(e){var i=e.key,s=e.forceRender,u=e.style,p=e.className,g=e.destroyInactiveTabPane,v=(0,cr.A)(e,kE),h=i===n;return o.createElement(Jr,(0,l.A)({key:i,visible:h,forceRender:s,removeOnLeave:!(!c&&!g),leavedClassName:"".concat(m,"-hidden")},r.tabPaneMotion),function(e,n){var r=e.style,c=e.className;return o.createElement(xE,(0,l.A)({},v,{prefixCls:m,id:t,tabKey:i,animated:f,active:h,style:(0,d.A)((0,d.A)({},u),r),className:a()(p,c),ref:n}))})})))};var OE=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],AE=0,IE=o.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,i=void 0===r?"rc-tabs":r,c=e.className,s=e.items,u=e.direction,f=e.activeKey,m=e.defaultActiveKey,g=e.editable,v=e.animated,h=e.tabPosition,b=void 0===h?"top":h,y=e.tabBarGutter,C=e.tabBarStyle,x=e.tabBarExtraContent,$=e.locale,w=e.more,S=e.destroyInactiveTabPane,k=e.renderTabBar,E=e.onChange,O=e.onTabClick,A=e.onTabScroll,I=e.getPopupContainer,N=e.popupClassName,M=e.indicator,j=(0,cr.A)(e,OE),P=o.useMemo(function(){return(s||[]).filter(function(e){return e&&"object"===(0,p.A)(e)&&"key"in e})},[s]),R="rtl"===u,T=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{inkBar:!0,tabPane:!1};return(e=!1===t?{inkBar:!1,tabPane:!1}:!0===t?{inkBar:!0,tabPane:!1}:(0,d.A)({inkBar:!0},"object"===(0,p.A)(t)?t:{})).tabPaneMotion&&void 0===e.tabPane&&(e.tabPane=!0),!e.tabPaneMotion&&e.tabPane&&(e.tabPane=!1),e}(v),z=(0,o.useState)(!1),B=(0,ke.A)(z,2),H=B[0],D=B[1];(0,o.useEffect)(function(){D(Zm())},[]);var L=Ln(function(){var e;return null===(e=P[0])||void 0===e?void 0:e.key},{value:f,defaultValue:m}),F=(0,ke.A)(L,2),W=F[0],_=F[1],K=(0,o.useState)(function(){return P.findIndex(function(e){return e.key===W})}),q=(0,ke.A)(K,2),V=q[0],X=q[1];(0,o.useEffect)(function(){var e,t=P.findIndex(function(e){return e.key===W});-1===t&&(t=Math.max(0,Math.min(V,P.length-1)),_(null===(e=P[t])||void 0===e?void 0:e.key));X(t)},[P.map(function(e){return e.key}).join("_"),W,V]);var G=Ln(null,{value:n}),Y=(0,ke.A)(G,2),U=Y[0],Q=Y[1];(0,o.useEffect)(function(){n||(Q("rc-tabs-".concat(AE)),AE+=1)},[]);var Z={id:U,activeKey:W,animated:T,tabPosition:b,rtl:R,mobile:H},J=(0,d.A)((0,d.A)({},Z),{},{editable:g,locale:$,more:w,tabBarGutter:y,onTabClick:function(e,t){null===O||void 0===O||O(e,t);var n=e!==W;_(e),n&&(null===E||void 0===E||E(e))},onTabScroll:A,extra:x,style:C,panes:null,getPopupContainer:I,popupClassName:N,indicator:M});return o.createElement(Jk.Provider,{value:{tabs:P,prefixCls:i}},o.createElement("div",(0,l.A)({ref:t,id:n,className:a()(i,"".concat(i,"-").concat(b),(0,Ee.A)((0,Ee.A)((0,Ee.A)({},"".concat(i,"-mobile"),H),"".concat(i,"-editable"),g),"".concat(i,"-rtl"),R),c)},j),o.createElement(SE,(0,l.A)({},J,{renderTabBar:k})),o.createElement(EE,(0,l.A)({destroyInactiveTabPane:S},Z,{animated:T}))))});const NE=IE,ME={motionAppear:!1,motionEnter:!0,motionLeave:!0};var jE=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const PE=function(e,t){if(e)return e.map(e=>{var t;const n=null!==(t=e.destroyOnHidden)&&void 0!==t?t:e.destroyInactiveTabPane;return Object.assign(Object.assign({},e),{destroyInactiveTabPane:n})});const n=s(t).map(e=>{if(o.isValidElement(e)){const{key:t,props:n}=e,o=n||{},{tab:r}=o,i=jE(o,["tab"]);return Object.assign(Object.assign({key:String(t)},i),{label:r})}return null});return function(e){return e.filter(e=>e)}(n)},RE=e=>{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[Nh(e,"slide-up"),Nh(e,"slide-down")]]},TE=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:o,cardGutter:r,colorBorderSecondary:i,itemSelectedColor:a}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:o,border:`${nt(e.lineWidth)} ${e.lineType} ${i}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:a,background:e.colorBgContainer},[`${t}-tab-focus:has(${t}-tab-btn:focus-visible)`]:fo(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:nt(r)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${nt(e.borderRadiusLG)} ${nt(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${nt(e.borderRadiusLG)} ${nt(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:nt(r)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${nt(e.borderRadiusLG)} 0 0 ${nt(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 ${nt(e.borderRadiusLG)} ${nt(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},zE=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:o}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},po(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:`${nt(o)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},uo),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${nt(e.paddingXXS)} ${nt(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"}}})}})}},BE=e=>{const{componentCls:t,margin:n,colorBorderSecondary:o,horizontalMargin:r,verticalItemPadding:i,verticalItemMargin:a,calc:l}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:r,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${nt(e.lineWidth)} ${e.lineType} ${o}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},\n right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav,\n > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:l(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:i,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:a},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:nt(l(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${nt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:l(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${nt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},HE=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:o,cardHeightSM:r,cardHeightLG:i,horizontalItemPaddingSM:a,horizontalItemPaddingLG:l}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:a,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:l,fontSize:e.titleFontSizeLG,lineHeight:e.lineHeightLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n},[`${t}-nav-add`]:{minWidth:r,minHeight:r}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${nt(e.borderRadius)} ${nt(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${nt(e.borderRadius)} ${nt(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${nt(e.borderRadius)} ${nt(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${nt(e.borderRadius)} 0 0 ${nt(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o},[`${t}-nav-add`]:{minWidth:i,minHeight:i}}}}}},DE=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:o,iconCls:r,tabsHorizontalItemMargin:i,horizontalItemPadding:a,itemSelectedColor:l,itemColor:c}=e,s=`${t}-tab`;return{[s]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:a,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:c,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:n}},"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${s}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":Object.assign({flex:"none",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}},mo(e)),"&:hover":{color:o},[`&${s}-active ${s}-btn`]:{color:l,textShadow:e.tabsActiveTextShadow},[`&${s}-focus ${s}-btn:focus-visible`]:fo(e),[`&${s}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${s}-disabled ${s}-btn, &${s}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${s}-remove ${r}`]:{margin:0},[`${r}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${s} + ${s}`]:{margin:{_skip_check_:!0,value:i}}}},LE=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:o,cardGutter:r,calc:i}=e,a=`${t}-rtl`;return{[a]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[o]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:nt(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:nt(e.marginXS)},marginLeft:{_skip_check_:!0,value:nt(i(e.marginXXS).mul(-1).equal())},[o]:{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:r},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},FE=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:o,cardGutter:r,itemHoverColor:i,itemActiveColor:a,colorBorderSecondary:l}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},po(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:o,minHeight:o,marginLeft:{_skip_check_:!0,value:r},background:"transparent",border:`${nt(e.lineWidth)} ${e.lineType} ${l}`,borderRadius:`${nt(e.borderRadiusLG)} ${nt(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:i},"&:active, &:focus:not(:focus-visible)":{color:a}},mo(e,-3))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),DE(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:Object.assign(Object.assign({},mo(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"}}}}}},WE=qo("Tabs",e=>{const t=Jn(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${nt(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${nt(e.horizontalItemGutter)}`});return[HE(t),LE(t),BE(t),zE(t),TE(t),FE(t),RE(t)]},e=>{const{cardHeight:t,cardHeightSM:n,cardHeightLG:o,controlHeight:r,controlHeightLG:i}=e,a=t||i,l=n||r,c=o||i+8;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:a,cardHeightSM:l,cardHeightLG:c,cardPadding:`${(a-e.fontHeight)/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${(l-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}});var _E=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const KE=e=>{var t,n,r,i,l,c,s,u,d,p,f;const{type:m,className:g,rootClassName:v,size:h,onEdit:b,hideAdd:y,centered:C,addIcon:x,removeIcon:$,moreIcon:w,more:S,popupClassName:k,children:E,items:O,animated:A,style:I,indicatorSize:N,indicator:M,destroyInactiveTabPane:j,destroyOnHidden:P}=e,R=_E(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator","destroyInactiveTabPane","destroyOnHidden"]),{prefixCls:T}=R,{direction:z,tabs:B,getPrefixCls:H,getPopupContainer:D}=o.useContext(xe),L=H("tabs",T),F=Mi(L),[W,_,K]=WE(L,F);let q;"editable-card"===m&&(q={onEdit:(e,t)=>{let{key:n,event:o}=t;null===b||void 0===b||b("add"===e?o:n,e)},removeIcon:null!==(t=null!==$&&void 0!==$?$:null===B||void 0===B?void 0:B.removeIcon)&&void 0!==t?t:o.createElement(ir.A,null),addIcon:(null!==x&&void 0!==x?x:null===B||void 0===B?void 0:B.addIcon)||o.createElement(Zk.A,null),showAdd:!0!==y});const V=H();const X=lc(h),G=PE(O,E),Y=function(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{inkBar:!0,tabPane:!1};return t=!1===n?{inkBar:!1,tabPane:!1}:!0===n?{inkBar:!0,tabPane:!0}:Object.assign({inkBar:!0},"object"===typeof n?n:{}),t.tabPane&&(t.tabPaneMotion=Object.assign(Object.assign({},ME),{motionName:Xl(e,"switch")})),t}(L,A),U=Object.assign(Object.assign({},null===B||void 0===B?void 0:B.style),I),Q={align:null!==(n=null===M||void 0===M?void 0:M.align)&&void 0!==n?n:null===(r=null===B||void 0===B?void 0:B.indicator)||void 0===r?void 0:r.align,size:null!==(s=null!==(l=null!==(i=null===M||void 0===M?void 0:M.size)&&void 0!==i?i:N)&&void 0!==l?l:null===(c=null===B||void 0===B?void 0:B.indicator)||void 0===c?void 0:c.size)&&void 0!==s?s:null===B||void 0===B?void 0:B.indicatorSize};return W(o.createElement(NE,Object.assign({direction:z,getPopupContainer:D},R,{items:G,className:a()({[`${L}-${X}`]:X,[`${L}-card`]:["card","editable-card"].includes(m),[`${L}-editable-card`]:"editable-card"===m,[`${L}-centered`]:C},null===B||void 0===B?void 0:B.className,g,v,_,K,F),popupClassName:a()(k,_,K,F),style:U,editable:q,more:Object.assign({icon:null!==(f=null!==(p=null!==(d=null===(u=null===B||void 0===B?void 0:B.more)||void 0===u?void 0:u.icon)&&void 0!==d?d:null===B||void 0===B?void 0:B.moreIcon)&&void 0!==p?p:w)&&void 0!==f?f:o.createElement(Gx.A,null),transitionName:`${V}-slide-up`},S),prefixCls:L,animated:Y,indicator:Q,destroyInactiveTabPane:null!==P&&void 0!==P?P:j})))};KE.TabPane=()=>null;const qE=KE;var VE=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const XE=e=>{var{prefixCls:t,className:n,hoverable:r=!0}=e,i=VE(e,["prefixCls","className","hoverable"]);const{getPrefixCls:l}=o.useContext(xe),c=l("card",t),s=a()(`${c}-grid`,n,{[`${c}-grid-hoverable`]:r});return o.createElement("div",Object.assign({},i,{className:s}))},GE=e=>{const{antCls:t,componentCls:n,headerHeight:o,headerPadding:r,tabsMarginBottom:i}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:o,marginBottom:-1,padding:`0 ${nt(r)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${nt(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${nt(e.borderRadiusLG)} ${nt(e.borderRadiusLG)} 0 0`},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},uo),{[`\n > ${n}-typography,\n > ${n}-typography-edit-content\n `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:i,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${nt(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},YE=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:o,lineWidth:r}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:`\n ${nt(r)} 0 0 0 ${n},\n 0 ${nt(r)} 0 0 ${n},\n ${nt(r)} ${nt(r)} 0 0 ${n},\n ${nt(r)} 0 0 0 ${n} inset,\n 0 ${nt(r)} 0 0 ${n} inset;\n `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:o}}},UE=e=>{const{componentCls:t,iconCls:n,actionsLiMargin:o,cardActionsIconSize:r,colorBorderSecondary:i,actionsBg:a}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:a,borderTop:`${nt(e.lineWidth)} ${e.lineType} ${i}`,display:"flex",borderRadius:`0 0 ${nt(e.borderRadiusLG)} ${nt(e.borderRadiusLG)}`},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"& > li":{margin:o,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:nt(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:r,lineHeight:nt(e.calc(r).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${nt(e.lineWidth)} ${e.lineType} ${i}`}}})},QE=e=>Object.assign(Object.assign({margin:`${nt(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":Object.assign({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},uo),"&-description":{color:e.colorTextDescription}}),ZE=e=>{const{componentCls:t,colorFillAlter:n,headerPadding:o,bodyPadding:r}=e;return{[`${t}-head`]:{padding:`0 ${nt(o)}`,background:n,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${nt(e.padding)} ${nt(r)}`}}},JE=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},eO=e=>{const{componentCls:t,cardShadow:n,cardHeadPadding:o,colorBorderSecondary:r,boxShadowTertiary:i,bodyPadding:a,extraColor:l}=e;return{[t]:Object.assign(Object.assign({},po(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:i},[`${t}-head`]:GE(e),[`${t}-extra`]:{marginInlineStart:"auto",color:l,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:Object.assign({padding:a,borderRadius:`0 0 ${nt(e.borderRadiusLG)} ${nt(e.borderRadiusLG)}`},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),[`${t}-grid`]:YE(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${nt(e.borderRadiusLG)} ${nt(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:UE(e),[`${t}-meta`]:QE(e)}),[`${t}-bordered`]:{border:`${nt(e.lineWidth)} ${e.lineType} ${r}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:n}},[`${t}-contain-grid`]:{borderRadius:`${nt(e.borderRadiusLG)} ${nt(e.borderRadiusLG)} 0 0 `,[`${t}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${t}-contain-tabs`]:{[`> div${t}-head`]:{minHeight:0,[`${t}-head-title, ${t}-extra`]:{paddingTop:o}}},[`${t}-type-inner`]:ZE(e),[`${t}-loading`]:JE(e),[`${t}-rtl`]:{direction:"rtl"}}},tO=e=>{const{componentCls:t,bodyPaddingSM:n,headerPaddingSM:o,headerHeightSM:r,headerFontSizeSM:i}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:r,padding:`0 ${nt(o)}`,fontSize:i,[`> ${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"}}}}},nO=qo("Card",e=>{const t=Jn(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize});return[eO(t),tO(t)]},e=>{var t,n;return{headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+2*e.padding,headerHeightSM:e.fontSize*e.lineHeight+2*e.paddingXS,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText,bodyPaddingSM:12,headerPaddingSM:12,bodyPadding:null!==(t=e.bodyPadding)&&void 0!==t?t:e.paddingLG,headerPadding:null!==(n=e.headerPadding)&&void 0!==n?n:e.paddingLG}});var oO=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const rO=e=>{const{actionClasses:t,actions:n=[],actionStyle:r}=e;return o.createElement("ul",{className:t,style:r},n.map((e,t)=>{const r=`action-${t}`;return o.createElement("li",{style:{width:100/n.length+"%"},key:r},o.createElement("span",null,e))}))},iO=o.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:i,style:l,extra:c,headStyle:s={},bodyStyle:u={},title:d,loading:p,bordered:f,variant:m,size:g,type:v,cover:h,actions:b,tabList:y,children:C,activeTabKey:x,defaultActiveTabKey:$,tabBarExtraContent:w,hoverable:S,tabProps:k={},classNames:E,styles:O}=e,A=oO(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","variant","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps","classNames","styles"]),{getPrefixCls:I,direction:N,card:M}=o.useContext(xe),[j]=yh("card",m,f);const P=e=>{var t;return a()(null===(t=null===M||void 0===M?void 0:M.classNames)||void 0===t?void 0:t[e],null===E||void 0===E?void 0:E[e])},R=e=>{var t;return Object.assign(Object.assign({},null===(t=null===M||void 0===M?void 0:M.styles)||void 0===t?void 0:t[e]),null===O||void 0===O?void 0:O[e])},T=o.useMemo(()=>{let e=!1;return o.Children.forEach(C,t=>{(null===t||void 0===t?void 0:t.type)===XE&&(e=!0)}),e},[C]),z=I("card",n),[B,H,D]=nO(z),L=o.createElement(lf,{loading:!0,active:!0,paragraph:{rows:4},title:!1},C),F=void 0!==x,W=Object.assign(Object.assign({},k),{[F?"activeKey":"defaultActiveKey"]:F?x:$,tabBarExtraContent:w});let _;const K=lc(g),q=K&&"default"!==K?K:"large",V=y?o.createElement(qE,Object.assign({size:q},W,{className:`${z}-head-tabs`,onChange:t=>{var n;null===(n=e.onTabChange)||void 0===n||n.call(e,t)},items:y.map(e=>{var{tab:t}=e,n=oO(e,["tab"]);return Object.assign({label:t},n)})})):null;if(d||c||V){const e=a()(`${z}-head`,P("header")),t=a()(`${z}-head-title`,P("title")),n=a()(`${z}-extra`,P("extra")),r=Object.assign(Object.assign({},s),R("header"));_=o.createElement("div",{className:e,style:r},o.createElement("div",{className:`${z}-head-wrapper`},d&&o.createElement("div",{className:t,style:R("title")},d),c&&o.createElement("div",{className:n,style:R("extra")},c)),V)}const X=a()(`${z}-cover`,P("cover")),G=h?o.createElement("div",{className:X,style:R("cover")},h):null,Y=a()(`${z}-body`,P("body")),U=Object.assign(Object.assign({},u),R("body")),Q=o.createElement("div",{className:Y,style:U},p?L:C),Z=a()(`${z}-actions`,P("actions")),J=(null===b||void 0===b?void 0:b.length)?o.createElement(rO,{actionClasses:Z,actionStyle:R("actions"),actions:b}):null,ee=Ul(A,["onTabChange"]),te=a()(z,null===M||void 0===M?void 0:M.className,{[`${z}-loading`]:p,[`${z}-bordered`]:"borderless"!==j,[`${z}-hoverable`]:S,[`${z}-contain-grid`]:T,[`${z}-contain-tabs`]:null===y||void 0===y?void 0:y.length,[`${z}-${K}`]:K,[`${z}-type-${v}`]:!!v,[`${z}-rtl`]:"rtl"===N},r,i,H,D),ne=Object.assign(Object.assign({},null===M||void 0===M?void 0:M.style),l);return B(o.createElement("div",Object.assign({ref:t},ee,{className:te,style:ne}),_,G,Q,J))});var aO=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const lO=e=>{const{prefixCls:t,className:n,avatar:r,title:i,description:l}=e,c=aO(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:s}=o.useContext(xe),u=s("card",t),d=a()(`${u}-meta`,n),p=r?o.createElement("div",{className:`${u}-meta-avatar`},r):null,f=i?o.createElement("div",{className:`${u}-meta-title`},i):null,m=l?o.createElement("div",{className:`${u}-meta-description`},l):null,g=f||m?o.createElement("div",{className:`${u}-meta-detail`},f,m):null;return o.createElement("div",Object.assign({},c,{className:d}),p,g)},cO=iO;cO.Grid=XE,cO.Meta=lO;const sO=cO;const uO={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 dO(e,t,n){var o=(n||{}).atBegin;return function(e,t,n){var o,r=n||{},i=r.noTrailing,a=void 0!==i&&i,l=r.noLeading,c=void 0!==l&&l,s=r.debounceMode,u=void 0===s?void 0:s,d=!1,p=0;function f(){o&&clearTimeout(o)}function m(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];var l=this,s=Date.now()-p;function m(){p=Date.now(),t.apply(l,r)}function g(){o=void 0}d||(c||!u||o||m(),f(),void 0===u&&s>e?c?(p=Date.now(),a||(o=setTimeout(u?g:m,e))):m():!0!==a&&(o=setTimeout(u?g:m,void 0===u?e-s:e)))}return m.cancel=function(e){var t=(e||{}).upcomingOnly,n=void 0!==t&&t;f(),d=!n},m}(e,t,{debounceMode:!1!==(void 0!==o&&o)})}const pO={accessibility:!0,adaptiveHeight:!1,afterChange:null,appendDots:function(e){return r().createElement("ul",{style:{display:"block"}},e)},arrows:!0,autoplay:!1,autoplaySpeed:3e3,beforeChange:null,centerMode:!1,centerPadding:"50px",className:"",cssEase:"ease",customPaging:function(e){return r().createElement("button",null,e+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:null,nextArrow:null,onEdge:null,onInit:null,onLazyLoadError:null,onReInit:null,pauseOnDotsHover:!1,pauseOnFocus:!1,pauseOnHover:!0,prevArrow:null,responsive:null,rows:1,rtl:!1,slide:"div",slidesPerRow:1,slidesToScroll:1,slidesToShow:1,speed:500,swipe:!0,swipeEvent:null,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,waitForAnimate:!0,asNavFor:null};function fO(e,t,n){return Math.max(t,Math.min(e,n))}var mO=function(e){["onTouchStart","onTouchMove","onWheel"].includes(e._reactName)||e.preventDefault()},gO=function(e){for(var t=[],n=vO(e),o=hO(e),r=n;r<o;r++)e.lazyLoadedList.indexOf(r)<0&&t.push(r);return t},vO=function(e){return e.currentSlide-bO(e)},hO=function(e){return e.currentSlide+yO(e)},bO=function(e){return e.centerMode?Math.floor(e.slidesToShow/2)+(parseInt(e.centerPadding)>0?1:0):0},yO=function(e){return e.centerMode?Math.floor((e.slidesToShow-1)/2)+1+(parseInt(e.centerPadding)>0?1:0):e.slidesToShow},CO=function(e){return e&&e.offsetWidth||0},xO=function(e){return e&&e.offsetHeight||0},$O=function(e){var t,n,o,r,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t=e.startX-e.curX,n=e.startY-e.curY,o=Math.atan2(n,t),(r=Math.round(180*o/Math.PI))<0&&(r=360-Math.abs(r)),r<=45&&r>=0||r<=360&&r>=315?"left":r>=135&&r<=225?"right":!0===i?r>=35&&r<=135?"up":"down":"vertical"},wO=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},SO=function(e,t){var n={};return t.forEach(function(t){return n[t]=e[t]}),n},kO=function(e,t){var n=function(e){for(var t=e.infinite?2*e.slideCount:e.slideCount,n=e.infinite?-1*e.slidesToShow:0,o=e.infinite?-1*e.slidesToShow:0,r=[];n<t;)r.push(n),n=o+e.slidesToScroll,o+=Math.min(e.slidesToScroll,e.slidesToShow);return r}(e),o=0;if(t>n[n.length-1])t=n[n.length-1];else for(var r in n){if(t<n[r]){t=o;break}o=n[r]}return t},EO=function(e){var t=e.centerMode?e.slideWidth*Math.floor(e.slidesToShow/2):0;if(e.swipeToSlide){var n,o=e.listRef,r=o.querySelectorAll&&o.querySelectorAll(".slick-slide")||[];if(Array.from(r).every(function(o){if(e.vertical){if(o.offsetTop+xO(o)/2>-1*e.swipeLeft)return n=o,!1}else if(o.offsetLeft-t+CO(o)/2>-1*e.swipeLeft)return n=o,!1;return!0}),!n)return 0;var i=!0===e.rtl?e.slideCount-e.currentSlide:e.currentSlide;return Math.abs(n.dataset.index-i)||1}return e.slidesToScroll},OO=function(e,t){return t.reduce(function(t,n){return t&&e.hasOwnProperty(n)},!0)?null:console.error("Keys Missing:",e)},AO=function(e){var t,n;(OO(e,["left","variableWidth","slideCount","slidesToShow","slideWidth"]),e.vertical)?n=(e.unslick?e.slideCount:e.slideCount+2*e.slidesToShow)*e.slideHeight:t=PO(e)*e.slideWidth;var o={opacity:1,transition:"",WebkitTransition:""};if(e.useTransform){var r=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",i=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",a=e.vertical?"translateY("+e.left+"px)":"translateX("+e.left+"px)";o=(0,d.A)((0,d.A)({},o),{},{WebkitTransform:r,transform:i,msTransform:a})}else e.vertical?o.top=e.left:o.left=e.left;return e.fade&&(o={opacity:1}),t&&(o.width=t),n&&(o.height=n),window&&!window.addEventListener&&window.attachEvent&&(e.vertical?o.marginTop=e.left+"px":o.marginLeft=e.left+"px"),o},IO=function(e){OO(e,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var t=AO(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},NO=function(e){if(e.unslick)return 0;OO(e,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);var t,n,o=e.slideIndex,r=e.trackRef,i=e.infinite,a=e.centerMode,l=e.slideCount,c=e.slidesToShow,s=e.slidesToScroll,u=e.slideWidth,d=e.listWidth,p=e.variableWidth,f=e.slideHeight,m=e.fade,g=e.vertical;if(m||1===e.slideCount)return 0;var v=0;if(i?(v=-MO(e),l%s!==0&&o+s>l&&(v=-(o>l?c-(o-l):l%s)),a&&(v+=parseInt(c/2))):(l%s!==0&&o+s>l&&(v=c-l%s),a&&(v=parseInt(c/2))),t=g?o*f*-1+v*f:o*u*-1+v*u,!0===p){var h,b=r&&r.node;if(h=o+MO(e),t=(n=b&&b.childNodes[h])?-1*n.offsetLeft:0,!0===a){h=i?o+MO(e):o,n=b&&b.children[h],t=0;for(var y=0;y<h;y++)t-=b&&b.children[y]&&b.children[y].offsetWidth;t-=parseInt(e.centerPadding),t+=n&&(d-n.offsetWidth)/2}}return t},MO=function(e){return e.unslick||!e.infinite?0:e.variableWidth?e.slideCount:e.slidesToShow+(e.centerMode?1:0)},jO=function(e){return e.unslick||!e.infinite?0:e.slideCount},PO=function(e){return 1===e.slideCount?1:MO(e)+e.slideCount+jO(e)},RO=function(e){return e.targetSlide>e.currentSlide?e.targetSlide>e.currentSlide+TO(e)?"left":"right":e.targetSlide<e.currentSlide-zO(e)?"right":"left"},TO=function(e){var t=e.slidesToShow,n=e.centerMode,o=e.rtl,r=e.centerPadding;if(n){var i=(t-1)/2+1;return parseInt(r)>0&&(i+=1),o&&t%2===0&&(i+=1),i}return o?0:t-1},zO=function(e){var t=e.slidesToShow,n=e.centerMode,o=e.rtl,r=e.centerPadding;if(n){var i=(t-1)/2+1;return parseInt(r)>0&&(i+=1),o||t%2!==0||(i+=1),i}return o?t-1:0},BO=function(){return!("undefined"===typeof window||!window.document||!window.document.createElement)},HO=Object.keys(pO);var DO=function(e){var t,n,o,r,i;return o=(i=e.rtl?e.slideCount-1-e.index:e.index)<0||i>=e.slideCount,e.centerMode?(r=Math.floor(e.slidesToShow/2),n=(i-e.currentSlide)%e.slideCount===0,i>e.currentSlide-r-1&&i<=e.currentSlide+r&&(t=!0)):t=e.currentSlide<=i&&i<e.currentSlide+e.slidesToShow,{"slick-slide":!0,"slick-active":t,"slick-center":n,"slick-cloned":o,"slick-current":i===(e.targetSlide<0?e.targetSlide+e.slideCount:e.targetSlide>=e.slideCount?e.targetSlide-e.slideCount:e.targetSlide)}},LO=function(e,t){return e.key+"-"+t},FO=function(e){var t,n=[],o=[],i=[],l=r().Children.count(e.children),c=vO(e),s=hO(e);return r().Children.forEach(e.children,function(u,p){var f,m={message:"children",index:p,slidesToScroll:e.slidesToScroll,currentSlide:e.currentSlide};f=!e.lazyLoad||e.lazyLoad&&e.lazyLoadedList.indexOf(p)>=0?u:r().createElement("div",null);var g=function(e){var t={};return void 0!==e.variableWidth&&!1!==e.variableWidth||(t.width=e.slideWidth),e.fade&&(t.position="relative",e.vertical&&e.slideHeight?t.top=-e.index*parseInt(e.slideHeight):t.left=-e.index*parseInt(e.slideWidth),t.opacity=e.currentSlide===e.index?1:0,t.zIndex=e.currentSlide===e.index?999:998,e.useCSS&&(t.transition="opacity "+e.speed+"ms "+e.cssEase+", visibility "+e.speed+"ms "+e.cssEase)),t}((0,d.A)((0,d.A)({},e),{},{index:p})),v=f.props.className||"",h=DO((0,d.A)((0,d.A)({},e),{},{index:p}));if(n.push(r().cloneElement(f,{key:"original"+LO(f,p),"data-index":p,className:a()(h,v),tabIndex:"-1","aria-hidden":!h["slick-active"],style:(0,d.A)((0,d.A)({outline:"none"},f.props.style||{}),g),onClick:function(t){f.props&&f.props.onClick&&f.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(m)}})),e.infinite&&l>1&&!1===e.fade&&!e.unslick){var b=l-p;b<=MO(e)&&((t=-b)>=c&&(f=u),h=DO((0,d.A)((0,d.A)({},e),{},{index:t})),o.push(r().cloneElement(f,{key:"precloned"+LO(f,t),"data-index":t,tabIndex:"-1",className:a()(h,v),"aria-hidden":!h["slick-active"],style:(0,d.A)((0,d.A)({},f.props.style||{}),g),onClick:function(t){f.props&&f.props.onClick&&f.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(m)}}))),(t=l+p)<s&&(f=u),h=DO((0,d.A)((0,d.A)({},e),{},{index:t})),i.push(r().cloneElement(f,{key:"postcloned"+LO(f,t),"data-index":t,tabIndex:"-1",className:a()(h,v),"aria-hidden":!h["slick-active"],style:(0,d.A)((0,d.A)({},f.props.style||{}),g),onClick:function(t){f.props&&f.props.onClick&&f.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(m)}}))}}),e.rtl?o.concat(n,i).reverse():o.concat(n,i)},WO=function(e){function t(){var e;K(this,t);for(var n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];return e=function(e,t,n){return t=U(t),J(e,Q()?Reflect.construct(t,n||[],U(e).constructor):t.apply(e,n))}(this,t,[].concat(o)),(0,Ee.A)(e,"node",null),(0,Ee.A)(e,"handleRef",function(t){e.node=t}),e}return Y(t,e),X(t,[{key:"render",value:function(){var e=FO(this.props),t=this.props,n={onMouseEnter:t.onMouseEnter,onMouseOver:t.onMouseOver,onMouseLeave:t.onMouseLeave};return r().createElement("div",(0,l.A)({ref:this.handleRef,className:"slick-track",style:this.props.trackStyle},n),e)}}])}(r().PureComponent);var _O=function(e){function t(){return K(this,t),function(e,t,n){return t=U(t),J(e,Q()?Reflect.construct(t,n||[],U(e).constructor):t.apply(e,n))}(this,t,arguments)}return Y(t,e),X(t,[{key:"clickHandler",value:function(e,t){t.preventDefault(),this.props.clickHandler(e)}},{key:"render",value:function(){for(var e,t=this.props,n=t.onMouseEnter,o=t.onMouseOver,i=t.onMouseLeave,l=t.infinite,c=t.slidesToScroll,s=t.slidesToShow,u=t.slideCount,p=t.currentSlide,f=(e={slideCount:u,slidesToScroll:c,slidesToShow:s,infinite:l}).infinite?Math.ceil(e.slideCount/e.slidesToScroll):Math.ceil((e.slideCount-e.slidesToShow)/e.slidesToScroll)+1,m={onMouseEnter:n,onMouseOver:o,onMouseLeave:i},g=[],v=0;v<f;v++){var h=(v+1)*c-1,b=l?h:fO(h,0,u-1),y=b-(c-1),C=l?y:fO(y,0,u-1),x=a()({"slick-active":l?p>=C&&p<=b:p===C}),$={message:"dots",index:v,slidesToScroll:c,currentSlide:p},w=this.clickHandler.bind(this,$);g=g.concat(r().createElement("li",{key:v,className:x},r().cloneElement(this.props.customPaging(v),{onClick:w})))}return r().cloneElement(this.props.appendDots(g),(0,d.A)({className:this.props.dotsClass},m))}}])}(r().PureComponent);function KO(e,t,n){return t=U(t),J(e,Q()?Reflect.construct(t,n||[],U(e).constructor):t.apply(e,n))}var qO=function(e){function t(){return K(this,t),KO(this,t,arguments)}return Y(t,e),X(t,[{key:"clickHandler",value:function(e,t){t&&t.preventDefault(),this.props.clickHandler(e,t)}},{key:"render",value:function(){var e={"slick-arrow":!0,"slick-prev":!0},t=this.clickHandler.bind(this,{message:"previous"});!this.props.infinite&&(0===this.props.currentSlide||this.props.slideCount<=this.props.slidesToShow)&&(e["slick-disabled"]=!0,t=null);var n={key:"0","data-role":"none",className:a()(e),style:{display:"block"},onClick:t},o={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount};return this.props.prevArrow?r().cloneElement(this.props.prevArrow,(0,d.A)((0,d.A)({},n),o)):r().createElement("button",(0,l.A)({key:"0",type:"button"},n)," ","Previous")}}])}(r().PureComponent),VO=function(e){function t(){return K(this,t),KO(this,t,arguments)}return Y(t,e),X(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"});wO(this.props)||(e["slick-disabled"]=!0,t=null);var n={key:"1","data-role":"none",className:a()(e),style:{display:"block"},onClick:t},o={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount};return this.props.nextArrow?r().cloneElement(this.props.nextArrow,(0,d.A)((0,d.A)({},n),o)):r().createElement("button",(0,l.A)({key:"1",type:"button"},n)," ","Next")}}])}(r().PureComponent),XO=["animating"];var GO=function(e){function t(e){var n;K(this,t),n=function(e,t,n){return t=U(t),J(e,Q()?Reflect.construct(t,n||[],U(e).constructor):t.apply(e,n))}(this,t,[e]),(0,Ee.A)(n,"listRefHandler",function(e){return n.list=e}),(0,Ee.A)(n,"trackRefHandler",function(e){return n.track=e}),(0,Ee.A)(n,"adaptHeight",function(){if(n.props.adaptiveHeight&&n.list){var e=n.list.querySelector('[data-index="'.concat(n.state.currentSlide,'"]'));n.list.style.height=xO(e)+"px"}}),(0,Ee.A)(n,"componentDidMount",function(){if(n.props.onInit&&n.props.onInit(),n.props.lazyLoad){var e=gO((0,d.A)((0,d.A)({},n.props),n.state));e.length>0&&(n.setState(function(t){return{lazyLoadedList:t.lazyLoadedList.concat(e)}}),n.props.onLazyLoad&&n.props.onLazyLoad(e))}var t=(0,d.A)({listRef:n.list,trackRef:n.track},n.props);n.updateState(t,!0,function(){n.adaptHeight(),n.props.autoplay&&n.autoPlay("playing")}),"progressive"===n.props.lazyLoad&&(n.lazyLoadTimer=setInterval(n.progressiveLazyLoad,1e3)),n.ro=new F(function(){n.state.animating?(n.onWindowResized(!1),n.callbackTimers.push(setTimeout(function(){return n.onWindowResized()},n.props.speed))):n.onWindowResized()}),n.ro.observe(n.list),document.querySelectorAll&&Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"),function(e){e.onfocus=n.props.pauseOnFocus?n.onSlideFocus:null,e.onblur=n.props.pauseOnFocus?n.onSlideBlur:null}),window.addEventListener?window.addEventListener("resize",n.onWindowResized):window.attachEvent("onresize",n.onWindowResized)}),(0,Ee.A)(n,"componentWillUnmount",function(){n.animationEndCallback&&clearTimeout(n.animationEndCallback),n.lazyLoadTimer&&clearInterval(n.lazyLoadTimer),n.callbackTimers.length&&(n.callbackTimers.forEach(function(e){return clearTimeout(e)}),n.callbackTimers=[]),window.addEventListener?window.removeEventListener("resize",n.onWindowResized):window.detachEvent("onresize",n.onWindowResized),n.autoplayTimer&&clearInterval(n.autoplayTimer),n.ro.disconnect()}),(0,Ee.A)(n,"componentDidUpdate",function(e){if(n.checkImagesLoad(),n.props.onReInit&&n.props.onReInit(),n.props.lazyLoad){var t=gO((0,d.A)((0,d.A)({},n.props),n.state));t.length>0&&(n.setState(function(e){return{lazyLoadedList:e.lazyLoadedList.concat(t)}}),n.props.onLazyLoad&&n.props.onLazyLoad(t))}n.adaptHeight();var o=(0,d.A)((0,d.A)({listRef:n.list,trackRef:n.track},n.props),n.state),i=n.didPropsChange(e);i&&n.updateState(o,i,function(){n.state.currentSlide>=r().Children.count(n.props.children)&&n.changeSlide({message:"index",index:r().Children.count(n.props.children)-n.props.slidesToShow,currentSlide:n.state.currentSlide}),e.autoplay===n.props.autoplay&&e.autoplaySpeed===n.props.autoplaySpeed||(!e.autoplay&&n.props.autoplay?n.autoPlay("playing"):n.props.autoplay?n.autoPlay("update"):n.pause("paused"))})}),(0,Ee.A)(n,"onWindowResized",function(e){n.debouncedResize&&n.debouncedResize.cancel(),n.debouncedResize=dO(50,function(){return n.resizeWindow(e)}),n.debouncedResize()}),(0,Ee.A)(n,"resizeWindow",function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(Boolean(n.track&&n.track.node)){var t=(0,d.A)((0,d.A)({listRef:n.list,trackRef:n.track},n.props),n.state);n.updateState(t,e,function(){n.props.autoplay?n.autoPlay("update"):n.pause("paused")}),n.setState({animating:!1}),clearTimeout(n.animationEndCallback),delete n.animationEndCallback}}),(0,Ee.A)(n,"updateState",function(e,t,o){var i=function(e){var t,n=r().Children.count(e.children),o=e.listRef,i=Math.ceil(CO(o)),a=e.trackRef&&e.trackRef.node,l=Math.ceil(CO(a));if(e.vertical)t=i;else{var c=e.centerMode&&2*parseInt(e.centerPadding);"string"===typeof e.centerPadding&&"%"===e.centerPadding.slice(-1)&&(c*=i/100),t=Math.ceil((i-c)/e.slidesToShow)}var s=o&&xO(o.querySelector('[data-index="0"]')),u=s*e.slidesToShow,p=void 0===e.currentSlide?e.initialSlide:e.currentSlide;e.rtl&&void 0===e.currentSlide&&(p=n-1-e.initialSlide);var f=e.lazyLoadedList||[],m=gO((0,d.A)((0,d.A)({},e),{},{currentSlide:p,lazyLoadedList:f})),g={slideCount:n,slideWidth:t,listWidth:i,trackWidth:l,currentSlide:p,slideHeight:s,listHeight:u,lazyLoadedList:f=f.concat(m)};return null===e.autoplaying&&e.autoplay&&(g.autoplaying="playing"),g}(e);e=(0,d.A)((0,d.A)((0,d.A)({},e),i),{},{slideIndex:i.currentSlide});var a=NO(e);e=(0,d.A)((0,d.A)({},e),{},{left:a});var l=AO(e);(t||r().Children.count(n.props.children)!==r().Children.count(e.children))&&(i.trackStyle=l),n.setState(i,o)}),(0,Ee.A)(n,"ssrInit",function(){if(n.props.variableWidth){var e=0,t=0,o=[],i=MO((0,d.A)((0,d.A)((0,d.A)({},n.props),n.state),{},{slideCount:n.props.children.length})),a=jO((0,d.A)((0,d.A)((0,d.A)({},n.props),n.state),{},{slideCount:n.props.children.length}));n.props.children.forEach(function(t){o.push(t.props.style.width),e+=t.props.style.width});for(var l=0;l<i;l++)t+=o[o.length-1-l],e+=o[o.length-1-l];for(var c=0;c<a;c++)e+=o[c];for(var s=0;s<n.state.currentSlide;s++)t+=o[s];var u={width:e+"px",left:-t+"px"};if(n.props.centerMode){var p="".concat(o[n.state.currentSlide],"px");u.left="calc(".concat(u.left," + (100% - ").concat(p,") / 2 ) ")}return{trackStyle:u}}var f=r().Children.count(n.props.children),m=(0,d.A)((0,d.A)((0,d.A)({},n.props),n.state),{},{slideCount:f}),g=MO(m)+jO(m)+f,v=100/n.props.slidesToShow*g,h=100/g,b=-h*(MO(m)+n.state.currentSlide)*v/100;return n.props.centerMode&&(b+=(100-h*v/100)/2),{slideWidth:h+"%",trackStyle:{width:v+"%",left:b+"%"}}}),(0,Ee.A)(n,"checkImagesLoad",function(){var e=n.list&&n.list.querySelectorAll&&n.list.querySelectorAll(".slick-slide img")||[],t=e.length,o=0;Array.prototype.forEach.call(e,function(e){var r=function(){return++o&&o>=t&&n.onWindowResized()};if(e.onclick){var i=e.onclick;e.onclick=function(t){i(t),e.parentNode.focus()}}else e.onclick=function(){return e.parentNode.focus()};e.onload||(n.props.lazyLoad?e.onload=function(){n.adaptHeight(),n.callbackTimers.push(setTimeout(n.onWindowResized,n.props.speed))}:(e.onload=r,e.onerror=function(){r(),n.props.onLazyLoadError&&n.props.onLazyLoadError()}))})}),(0,Ee.A)(n,"progressiveLazyLoad",function(){for(var e=[],t=(0,d.A)((0,d.A)({},n.props),n.state),o=n.state.currentSlide;o<n.state.slideCount+jO(t);o++)if(n.state.lazyLoadedList.indexOf(o)<0){e.push(o);break}for(var r=n.state.currentSlide-1;r>=-MO(t);r--)if(n.state.lazyLoadedList.indexOf(r)<0){e.push(r);break}e.length>0?(n.setState(function(t){return{lazyLoadedList:t.lazyLoadedList.concat(e)}}),n.props.onLazyLoad&&n.props.onLazyLoad(e)):n.lazyLoadTimer&&(clearInterval(n.lazyLoadTimer),delete n.lazyLoadTimer)}),(0,Ee.A)(n,"slideHandler",function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=n.props,r=o.asNavFor,i=o.beforeChange,a=o.onLazyLoad,l=o.speed,c=o.afterChange,s=n.state.currentSlide,u=function(e){var t=e.waitForAnimate,n=e.animating,o=e.fade,r=e.infinite,i=e.index,a=e.slideCount,l=e.lazyLoad,c=e.currentSlide,s=e.centerMode,u=e.slidesToScroll,p=e.slidesToShow,f=e.useCSS,m=e.lazyLoadedList;if(t&&n)return{};var g,v,h,b=i,y={},C={},x=r?i:fO(i,0,a-1);if(o){if(!r&&(i<0||i>=a))return{};i<0?b=i+a:i>=a&&(b=i-a),l&&m.indexOf(b)<0&&(m=m.concat(b)),y={animating:!0,currentSlide:b,lazyLoadedList:m,targetSlide:b},C={animating:!1,targetSlide:b}}else g=b,b<0?(g=b+a,r?a%u!==0&&(g=a-a%u):g=0):!wO(e)&&b>c?b=g=c:s&&b>=a?(b=r?a:a-1,g=r?0:a-1):b>=a&&(g=b-a,r?a%u!==0&&(g=0):g=a-p),!r&&b+p>=a&&(g=a-p),v=NO((0,d.A)((0,d.A)({},e),{},{slideIndex:b})),h=NO((0,d.A)((0,d.A)({},e),{},{slideIndex:g})),r||(v===h&&(b=g),v=h),l&&(m=m.concat(gO((0,d.A)((0,d.A)({},e),{},{currentSlide:b})))),f?(y={animating:!0,currentSlide:g,trackStyle:IO((0,d.A)((0,d.A)({},e),{},{left:v})),lazyLoadedList:m,targetSlide:x},C={animating:!1,currentSlide:g,trackStyle:AO((0,d.A)((0,d.A)({},e),{},{left:h})),swipeLeft:null,targetSlide:x}):y={currentSlide:g,trackStyle:AO((0,d.A)((0,d.A)({},e),{},{left:h})),lazyLoadedList:m,targetSlide:x};return{state:y,nextState:C}}((0,d.A)((0,d.A)((0,d.A)({index:e},n.props),n.state),{},{trackRef:n.track,useCSS:n.props.useCSS&&!t})),p=u.state,f=u.nextState;if(p){i&&i(s,p.currentSlide);var m=p.lazyLoadedList.filter(function(e){return n.state.lazyLoadedList.indexOf(e)<0});a&&m.length>0&&a(m),!n.props.waitForAnimate&&n.animationEndCallback&&(clearTimeout(n.animationEndCallback),c&&c(s),delete n.animationEndCallback),n.setState(p,function(){r&&n.asNavForIndex!==e&&(n.asNavForIndex=e,r.innerSlider.slideHandler(e)),f&&(n.animationEndCallback=setTimeout(function(){var e=f.animating,t=(0,cr.A)(f,XO);n.setState(t,function(){n.callbackTimers.push(setTimeout(function(){return n.setState({animating:e})},10)),c&&c(p.currentSlide),delete n.animationEndCallback})},l))})}}),(0,Ee.A)(n,"changeSlide",function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=function(e,t){var n,o,r,i,a=e.slidesToScroll,l=e.slidesToShow,c=e.slideCount,s=e.currentSlide,u=e.targetSlide,p=e.lazyLoad,f=e.infinite;if(n=c%a!==0?0:(c-s)%a,"previous"===t.message)i=s-(r=0===n?a:l-n),p&&!f&&(i=-1===(o=s-r)?c-1:o),f||(i=u-a);else if("next"===t.message)i=s+(r=0===n?a:n),p&&!f&&(i=(s+a)%c+n),f||(i=u+a);else if("dots"===t.message)i=t.index*t.slidesToScroll;else if("children"===t.message){if(i=t.index,f){var m=RO((0,d.A)((0,d.A)({},e),{},{targetSlide:i}));i>t.currentSlide&&"left"===m?i-=c:i<t.currentSlide&&"right"===m&&(i+=c)}}else"index"===t.message&&(i=Number(t.index));return i}((0,d.A)((0,d.A)({},n.props),n.state),e);if((0===o||o)&&(!0===t?n.slideHandler(o,t):n.slideHandler(o),n.props.autoplay&&n.autoPlay("update"),n.props.focusOnSelect)){var r=n.list.querySelectorAll(".slick-current");r[0]&&r[0].focus()}}),(0,Ee.A)(n,"clickHandler",function(e){!1===n.clickable&&(e.stopPropagation(),e.preventDefault()),n.clickable=!0}),(0,Ee.A)(n,"keyHandler",function(e){var t=function(e,t,n){return e.target.tagName.match("TEXTAREA|INPUT|SELECT")||!t?"":37===e.keyCode?n?"next":"previous":39===e.keyCode?n?"previous":"next":""}(e,n.props.accessibility,n.props.rtl);""!==t&&n.changeSlide({message:t})}),(0,Ee.A)(n,"selectHandler",function(e){n.changeSlide(e)}),(0,Ee.A)(n,"disableBodyScroll",function(){window.ontouchmove=function(e){(e=e||window.event).preventDefault&&e.preventDefault(),e.returnValue=!1}}),(0,Ee.A)(n,"enableBodyScroll",function(){window.ontouchmove=null}),(0,Ee.A)(n,"swipeStart",function(e){n.props.verticalSwiping&&n.disableBodyScroll();var t=function(e,t,n){return"IMG"===e.target.tagName&&mO(e),!t||!n&&-1!==e.type.indexOf("mouse")?"":{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}}}(e,n.props.swipe,n.props.draggable);""!==t&&n.setState(t)}),(0,Ee.A)(n,"swipeMove",function(e){var t=function(e,t){var n=t.scrolling,o=t.animating,r=t.vertical,i=t.swipeToSlide,a=t.verticalSwiping,l=t.rtl,c=t.currentSlide,s=t.edgeFriction,u=t.edgeDragged,p=t.onEdge,f=t.swiped,m=t.swiping,g=t.slideCount,v=t.slidesToScroll,h=t.infinite,b=t.touchObject,y=t.swipeEvent,C=t.listHeight,x=t.listWidth;if(!n){if(o)return mO(e);r&&i&&a&&mO(e);var $,w={},S=NO(t);b.curX=e.touches?e.touches[0].pageX:e.clientX,b.curY=e.touches?e.touches[0].pageY:e.clientY,b.swipeLength=Math.round(Math.sqrt(Math.pow(b.curX-b.startX,2)));var k=Math.round(Math.sqrt(Math.pow(b.curY-b.startY,2)));if(!a&&!m&&k>10)return{scrolling:!0};a&&(b.swipeLength=k);var E=(l?-1:1)*(b.curX>b.startX?1:-1);a&&(E=b.curY>b.startY?1:-1);var O=Math.ceil(g/v),A=$O(t.touchObject,a),I=b.swipeLength;return h||(0===c&&("right"===A||"down"===A)||c+1>=O&&("left"===A||"up"===A)||!wO(t)&&("left"===A||"up"===A))&&(I=b.swipeLength*s,!1===u&&p&&(p(A),w.edgeDragged=!0)),!f&&y&&(y(A),w.swiped=!0),$=r?S+I*(C/x)*E:l?S-I*E:S+I*E,a&&($=S+I*E),w=(0,d.A)((0,d.A)({},w),{},{touchObject:b,swipeLeft:$,trackStyle:AO((0,d.A)((0,d.A)({},t),{},{left:$}))}),Math.abs(b.curX-b.startX)<.8*Math.abs(b.curY-b.startY)||b.swipeLength>10&&(w.swiping=!0,mO(e)),w}}(e,(0,d.A)((0,d.A)((0,d.A)({},n.props),n.state),{},{trackRef:n.track,listRef:n.list,slideIndex:n.state.currentSlide}));t&&(t.swiping&&(n.clickable=!1),n.setState(t))}),(0,Ee.A)(n,"swipeEnd",function(e){var t=function(e,t){var n=t.dragging,o=t.swipe,r=t.touchObject,i=t.listWidth,a=t.touchThreshold,l=t.verticalSwiping,c=t.listHeight,s=t.swipeToSlide,u=t.scrolling,p=t.onSwipe,f=t.targetSlide,m=t.currentSlide,g=t.infinite;if(!n)return o&&mO(e),{};var v=l?c/a:i/a,h=$O(r,l),b={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(u)return b;if(!r.swipeLength)return b;if(r.swipeLength>v){var y,C;mO(e),p&&p(h);var x=g?m:f;switch(h){case"left":case"up":C=x+EO(t),y=s?kO(t,C):C,b.currentDirection=0;break;case"right":case"down":C=x-EO(t),y=s?kO(t,C):C,b.currentDirection=1;break;default:y=x}b.triggerSlideHandler=y}else{var $=NO(t);b.trackStyle=IO((0,d.A)((0,d.A)({},t),{},{left:$}))}return b}(e,(0,d.A)((0,d.A)((0,d.A)({},n.props),n.state),{},{trackRef:n.track,listRef:n.list,slideIndex:n.state.currentSlide}));if(t){var o=t.triggerSlideHandler;delete t.triggerSlideHandler,n.setState(t),void 0!==o&&(n.slideHandler(o),n.props.verticalSwiping&&n.enableBodyScroll())}}),(0,Ee.A)(n,"touchEnd",function(e){n.swipeEnd(e),n.clickable=!0}),(0,Ee.A)(n,"slickPrev",function(){n.callbackTimers.push(setTimeout(function(){return n.changeSlide({message:"previous"})},0))}),(0,Ee.A)(n,"slickNext",function(){n.callbackTimers.push(setTimeout(function(){return n.changeSlide({message:"next"})},0))}),(0,Ee.A)(n,"slickGoTo",function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e=Number(e),isNaN(e))return"";n.callbackTimers.push(setTimeout(function(){return n.changeSlide({message:"index",index:e,currentSlide:n.state.currentSlide},t)},0))}),(0,Ee.A)(n,"play",function(){var e;if(n.props.rtl)e=n.state.currentSlide-n.props.slidesToScroll;else{if(!wO((0,d.A)((0,d.A)({},n.props),n.state)))return!1;e=n.state.currentSlide+n.props.slidesToScroll}n.slideHandler(e)}),(0,Ee.A)(n,"autoPlay",function(e){n.autoplayTimer&&clearInterval(n.autoplayTimer);var t=n.state.autoplaying;if("update"===e){if("hovered"===t||"focused"===t||"paused"===t)return}else if("leave"===e){if("paused"===t||"focused"===t)return}else if("blur"===e&&("paused"===t||"hovered"===t))return;n.autoplayTimer=setInterval(n.play,n.props.autoplaySpeed+50),n.setState({autoplaying:"playing"})}),(0,Ee.A)(n,"pause",function(e){n.autoplayTimer&&(clearInterval(n.autoplayTimer),n.autoplayTimer=null);var t=n.state.autoplaying;"paused"===e?n.setState({autoplaying:"paused"}):"focused"===e?"hovered"!==t&&"playing"!==t||n.setState({autoplaying:"focused"}):"playing"===t&&n.setState({autoplaying:"hovered"})}),(0,Ee.A)(n,"onDotsOver",function(){return n.props.autoplay&&n.pause("hovered")}),(0,Ee.A)(n,"onDotsLeave",function(){return n.props.autoplay&&"hovered"===n.state.autoplaying&&n.autoPlay("leave")}),(0,Ee.A)(n,"onTrackOver",function(){return n.props.autoplay&&n.pause("hovered")}),(0,Ee.A)(n,"onTrackLeave",function(){return n.props.autoplay&&"hovered"===n.state.autoplaying&&n.autoPlay("leave")}),(0,Ee.A)(n,"onSlideFocus",function(){return n.props.autoplay&&n.pause("focused")}),(0,Ee.A)(n,"onSlideBlur",function(){return n.props.autoplay&&"focused"===n.state.autoplaying&&n.autoPlay("blur")}),(0,Ee.A)(n,"render",function(){var e,t,o,i=a()("slick-slider",n.props.className,{"slick-vertical":n.props.vertical,"slick-initialized":!0}),c=(0,d.A)((0,d.A)({},n.props),n.state),s=SO(c,["fade","cssEase","speed","infinite","centerMode","focusOnSelect","currentSlide","lazyLoad","lazyLoadedList","rtl","slideWidth","slideHeight","listHeight","vertical","slidesToShow","slidesToScroll","slideCount","trackStyle","variableWidth","unslick","centerPadding","targetSlide","useCSS"]),u=n.props.pauseOnHover;if(s=(0,d.A)((0,d.A)({},s),{},{onMouseEnter:u?n.onTrackOver:null,onMouseLeave:u?n.onTrackLeave:null,onMouseOver:u?n.onTrackOver:null,focusOnSelect:n.props.focusOnSelect&&n.clickable?n.selectHandler:null}),!0===n.props.dots&&n.state.slideCount>=n.props.slidesToShow){var p=SO(c,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","customPaging","infinite","appendDots"]),f=n.props.pauseOnDotsHover;p=(0,d.A)((0,d.A)({},p),{},{clickHandler:n.changeSlide,onMouseEnter:f?n.onDotsLeave:null,onMouseOver:f?n.onDotsOver:null,onMouseLeave:f?n.onDotsLeave:null}),e=r().createElement(_O,p)}var m=SO(c,["infinite","centerMode","currentSlide","slideCount","slidesToShow","prevArrow","nextArrow"]);m.clickHandler=n.changeSlide,n.props.arrows&&(t=r().createElement(qO,m),o=r().createElement(VO,m));var g=null;n.props.vertical&&(g={height:n.state.listHeight});var v=null;!1===n.props.vertical?!0===n.props.centerMode&&(v={padding:"0px "+n.props.centerPadding}):!0===n.props.centerMode&&(v={padding:n.props.centerPadding+" 0px"});var h=(0,d.A)((0,d.A)({},g),v),b=n.props.touchMove,y={className:"slick-list",style:h,onClick:n.clickHandler,onMouseDown:b?n.swipeStart:null,onMouseMove:n.state.dragging&&b?n.swipeMove:null,onMouseUp:b?n.swipeEnd:null,onMouseLeave:n.state.dragging&&b?n.swipeEnd:null,onTouchStart:b?n.swipeStart:null,onTouchMove:n.state.dragging&&b?n.swipeMove:null,onTouchEnd:b?n.touchEnd:null,onTouchCancel:n.state.dragging&&b?n.swipeEnd:null,onKeyDown:n.props.accessibility?n.keyHandler:null},C={className:i,dir:"ltr",style:n.props.style};return n.props.unslick&&(y={className:"slick-list"},C={className:i,style:n.props.style}),r().createElement("div",C,n.props.unslick?"":t,r().createElement("div",(0,l.A)({ref:n.listRefHandler},y),r().createElement(WO,(0,l.A)({ref:n.trackRefHandler},s),n.props.children)),n.props.unslick?"":o,n.props.unslick?"":e)}),n.list=null,n.track=null,n.state=(0,d.A)((0,d.A)({},uO),{},{currentSlide:n.props.initialSlide,targetSlide:n.props.initialSlide?n.props.initialSlide:0,slideCount:r().Children.count(n.props.children)}),n.callbackTimers=[],n.clickable=!0,n.debouncedResize=null;var o=n.ssrInit();return n.state=(0,d.A)((0,d.A)({},n.state),o),n}return Y(t,e),X(t,[{key:"didPropsChange",value:function(e){for(var t=!1,n=0,o=Object.keys(this.props);n<o.length;n++){var i=o[n];if(!e.hasOwnProperty(i)){t=!0;break}if("object"!==(0,p.A)(e[i])&&"function"!==typeof e[i]&&!isNaN(e[i])&&e[i]!==this.props[i]){t=!0;break}}return t||r().Children.count(this.props.children)!==r().Children.count(e.children)}}])}(r().Component),YO=n(41270),UO=n.n(YO);var QO=function(e){function t(e){var n;return K(this,t),n=function(e,t,n){return t=U(t),J(e,Q()?Reflect.construct(t,n||[],U(e).constructor):t.apply(e,n))}(this,t,[e]),(0,Ee.A)(n,"innerSliderRefHandler",function(e){return n.innerSlider=e}),(0,Ee.A)(n,"slickPrev",function(){return n.innerSlider.slickPrev()}),(0,Ee.A)(n,"slickNext",function(){return n.innerSlider.slickNext()}),(0,Ee.A)(n,"slickGoTo",function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return n.innerSlider.slickGoTo(e,t)}),(0,Ee.A)(n,"slickPause",function(){return n.innerSlider.pause("paused")}),(0,Ee.A)(n,"slickPlay",function(){return n.innerSlider.autoPlay("play")}),n.state={breakpoint:null},n._responsiveMediaHandlers=[],n}return Y(t,e),X(t,[{key:"media",value:function(e,t){var n=window.matchMedia(e),o=function(e){e.matches&&t()};n.addListener(o),o(n),this._responsiveMediaHandlers.push({mql:n,query:e,listener:o})}},{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,o){var r;r=0===o?UO()({minWidth:0,maxWidth:n}):UO()({minWidth:t[o-1]+1,maxWidth:n}),BO()&&e.media(r,function(){e.setState({breakpoint:n})})});var n=UO()({minWidth:t.slice(-1)[0]});BO()&&this.media(n,function(){e.setState({breakpoint:null})})}}},{key:"componentWillUnmount",value:function(){this._responsiveMediaHandlers.forEach(function(e){e.mql.removeListener(e.listener)})}},{key:"render",value:function(){var e,t,n=this;(e=this.state.breakpoint?"unslick"===(t=this.props.responsive.filter(function(e){return e.breakpoint===n.state.breakpoint}))[0].settings?"unslick":(0,d.A)((0,d.A)((0,d.A)({},pO),this.props),t[0].settings):(0,d.A)((0,d.A)({},pO),this.props)).centerMode&&(e.slidesToScroll,e.slidesToScroll=1),e.fade&&(e.slidesToShow,e.slidesToScroll,e.slidesToShow=1,e.slidesToScroll=1);var o=r().Children.toArray(this.props.children);o=o.filter(function(e){return"string"===typeof e?!!e.trim():!!e}),e.variableWidth&&(e.rows>1||e.slidesPerRow>1)&&(console.warn("variableWidth is not supported in case of rows > 1 or slidesPerRow > 1"),e.variableWidth=!1);for(var i=[],a=null,c=0;c<o.length;c+=e.rows*e.slidesPerRow){for(var s=[],u=c;u<c+e.rows*e.slidesPerRow;u+=e.slidesPerRow){for(var p=[],f=u;f<u+e.slidesPerRow&&(e.variableWidth&&o[f].props.style&&(a=o[f].props.style.width),!(f>=o.length));f+=1)p.push(r().cloneElement(o[f],{key:100*c+10*u+f,tabIndex:-1,style:{width:"".concat(100/e.slidesPerRow,"%"),display:"inline-block"}}));s.push(r().createElement("div",{key:10*c+u},p))}e.variableWidth?i.push(r().createElement("div",{key:c,style:{width:a}},s)):i.push(r().createElement("div",{key:c},s))}if("unslick"===e){var m="regular slider "+(this.props.className||"");return r().createElement("div",{className:m},o)}return i.length<=e.slidesToShow&&!e.infinite&&(e.unslick=!0),r().createElement(GO,(0,l.A)({style:this.props.style,ref:this.innerSliderRefHandler},function(e){return HO.reduce(function(t,n){return e.hasOwnProperty(n)&&(t[n]=e[n]),t},{})}(e)),i)}}])}(r().Component);const ZO=QO,JO="--dot-duration",eA=e=>{const{componentCls:t,antCls:n}=e;return{[t]:Object.assign(Object.assign({},po(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"}})}},tA=e=>{const{componentCls:t,motionDurationSlow:n,arrowSize:o,arrowOffset:r}=e,i=e.calc(o).div(Math.SQRT2).equal();return{[t]:{".slick-prev, .slick-next":{position:"absolute",top:"50%",width:o,height:o,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(o).sub(i).div(2).equal(),insetInlineStart:e.calc(o).sub(i).div(2).equal(),display:"inline-block",width:i,height:i,border:"0 solid currentcolor",borderInlineStartWidth:2,borderBlockStartWidth:2,borderRadius:1,content:'""'}},".slick-prev":{insetInlineStart:r,"&::after":{transform:"rotate(-45deg)"}},".slick-next":{insetInlineEnd:r,"&::after":{transform:"rotate(135deg)"}}}}},nA=e=>{const{componentCls:t,dotOffset:n,dotWidth:o,dotHeight:r,dotGap:i,colorBgContainer:a,motionDurationSlow:l}=e;return{[t]:{".slick-dots":{position:"absolute",insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:15,display:"flex !important",justifyContent:"center",paddingInlineStart:0,margin:0,listStyle:"none","&-bottom":{bottom:n},"&-top":{top:n,bottom:"auto"},li:{position:"relative",display:"inline-block",flex:"0 1 auto",boxSizing:"content-box",width:o,height:r,marginInline:i,padding:0,textAlign:"center",textIndent:-999,verticalAlign:"top",transition:`all ${l}`,borderRadius:r,overflow:"hidden","&::after":{display:"block",position:"absolute",top:0,insetInlineStart:0,width:"100%",height:r,content:'""',background:a,borderRadius:r,opacity:1,outline:"none",cursor:"pointer",overflow:"hidden",transform:"translate3d(-100%, 0, 0)"},button:{position:"relative",display:"block",width:"100%",height:r,padding:0,color:"transparent",fontSize:0,background:a,border:0,borderRadius:r,outline:"none",cursor:"pointer",opacity:.2,transition:`all ${l}`,overflow:"hidden","&:hover":{opacity:.75},"&::after":{position:"absolute",inset:e.calc(i).mul(-1).equal(),content:'""'}},"&.slick-active":{width:e.dotActiveWidth,position:"relative","&:hover":{opacity:1},"&::after":{transform:"translate3d(0, 0, 0)",transition:`transform var(${JO}) ease-out`}}}}}}},oA=e=>{const{componentCls:t,dotOffset:n,arrowOffset:o,marginXXS:r}=e,i={width:e.dotHeight,height:e.dotWidth};return{[`${t}-vertical`]:{".slick-prev, .slick-next":{insetInlineStart:"50%",marginBlockStart:"unset",transform:"translateX(-50%)"},".slick-prev":{insetBlockStart:o,insetInlineStart:"50%","&::after":{transform:"rotate(45deg)"}},".slick-next":{insetBlockStart:"auto",insetBlockEnd:o,"&::after":{transform:"rotate(-135deg)"}},".slick-dots":{top:"50%",bottom:"auto",flexDirection:"column",width:e.dotHeight,height:"auto",margin:0,transform:"translateY(-50%)","&-left":{insetInlineEnd:"auto",insetInlineStart:n},"&-right":{insetInlineEnd:n,insetInlineStart:"auto"},li:Object.assign(Object.assign({},i),{margin:`${nt(r)} 0`,verticalAlign:"baseline",button:i,"&::after":Object.assign(Object.assign({},i),{height:0}),"&.slick-active":Object.assign(Object.assign({},i),{button:i,"&::after":Object.assign(Object.assign({},i),{transition:`height var(${JO}) ease-out`})})})}}}},rA=e=>{const{componentCls:t}=e;return[{[`${t}-rtl`]:{direction:"rtl",".slick-dots":{[`${t}-rtl&`]:{flexDirection:"row-reverse"}}}},{[`${t}-vertical`]:{".slick-dots":{[`${t}-rtl&`]:{flexDirection:"column"}}}}]},iA=qo("Carousel",e=>[eA(e),tA(e),nA(e),oA(e),rA(e)],e=>({arrowSize:16,arrowOffset:e.marginXS,dotWidth:16,dotHeight:3,dotGap:e.marginXXS,dotOffset:12,dotWidthActive:24,dotActiveWidth:24}),{deprecatedTokens:[["dotWidthActive","dotActiveWidth"]]});var aA=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const lA="slick-dots",cA=e=>{var{currentSlide:t,slideCount:n}=e,r=aA(e,["currentSlide","slideCount"]);return o.createElement("button",Object.assign({type:"button"},r))},sA=o.forwardRef((e,t)=>{const{dots:n=!0,arrows:r=!1,prevArrow:i=o.createElement(cA,{"aria-label":"prev"}),nextArrow:l=o.createElement(cA,{"aria-label":"next"}),draggable:c=!1,waitForAnimate:s=!1,dotPosition:u="bottom",vertical:d="left"===u||"right"===u,rootClassName:p,className:f,style:m,id:g,autoplay:v=!1,autoplaySpeed:h=3e3}=e,b=aA(e,["dots","arrows","prevArrow","nextArrow","draggable","waitForAnimate","dotPosition","vertical","rootClassName","className","style","id","autoplay","autoplaySpeed"]),{getPrefixCls:y,direction:C,className:x,style:$}=Se("carousel"),w=o.useRef(null),S=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];w.current.slickGoTo(e,t)};o.useImperativeHandle(t,()=>({goTo:S,autoPlay:w.current.innerSlider.autoPlay,innerSlider:w.current.innerSlider,prev:w.current.slickPrev,next:w.current.slickNext}),[w.current]);const k=o.useRef(o.Children.count(e.children));o.useEffect(()=>{k.current!==o.Children.count(e.children)&&(S(e.initialSlide||0,!1),k.current=o.Children.count(e.children))},[e.children]);const E=Object.assign({vertical:d,className:a()(f,x),style:Object.assign(Object.assign({},$),m),autoplay:!!v},b);"fade"===E.effect&&(E.fade=!0);const O=y("carousel",E.prefixCls),A=!!n,I=a()(lA,`${lA}-${u}`,"boolean"!==typeof n&&(null===n||void 0===n?void 0:n.className)),[N,M,j]=iA(O),P=a()(O,{[`${O}-rtl`]:"rtl"===C,[`${O}-vertical`]:E.vertical},M,j,p),R=v&&"object"===typeof v&&v.dotDuration?{[JO]:`${h}ms`}:{};return N(o.createElement("div",{className:P,id:g,style:R},o.createElement(ZO,Object.assign({ref:w},E,{dots:A,dotsClass:I,arrows:r,prevArrow:i,nextArrow:l,draggable:c,verticalSwiping:d,autoplaySpeed:h,waitForAnimate:s}))))});const uA=sA;const dA=o.createContext({});var pA="__rc_cascader_search_mark__",fA=function(e,t,n){var o=n.label,r=void 0===o?"":o;return t.some(function(t){return String(t[r]).toLowerCase().includes(e.toLowerCase())})},mA=function(e,t,n,o){return t.map(function(e){return e[o.label]}).join(" / ")};const gA=function(e,t,n,r,i,a){var l=i.filter,c=void 0===l?fA:l,s=i.render,u=void 0===s?mA:s,p=i.limit,f=void 0===p?50:p,m=i.sort;return o.useMemo(function(){var o=[];if(!e)return[];return function t(i,l){var s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];i.forEach(function(i){if(!(!m&&!1!==f&&f>0&&o.length>=f)){var p,g=[].concat(se(l),[i]),v=i[n.children],h=s||i.disabled;if(!v||0===v.length||a)if(c(e,g,{label:n.label}))o.push((0,d.A)((0,d.A)({},i),{},(p={disabled:h},(0,Ee.A)(p,n.label,u(e,g,r,n)),(0,Ee.A)(p,pA,g),(0,Ee.A)(p,n.children,void 0),p)));v&&t(i[n.children],g,h)}})}(t,[]),m&&o.sort(function(t,o){return m(t[pA],o[pA],e,n)}),!1!==f&&f>0?o.slice(0,f):o},[e,t,n,r,u,a,c,m,f])};var vA="__RC_CASCADER_SPLIT__",hA="SHOW_PARENT",bA="SHOW_CHILD";function yA(e){return e.join(vA)}function CA(e){return e.map(yA)}function xA(e){var t=e||{},n=t.label,o=t.value||"value";return{label:n||"label",value:o,key:o,children:t.children||"children"}}function $A(e,t){var n,o;return null!==(n=e.isLeaf)&&void 0!==n?n:!(null!==(o=e[t.children])&&void 0!==o&&o.length)}function wA(e){var t=e.parentElement;if(t){var n=e.offsetTop-t.offsetTop;n-t.scrollTop<0?t.scrollTo({top:n}):n+e.offsetHeight-t.scrollTop>t.offsetHeight&&t.scrollTo({top:n+e.offsetHeight-t.offsetHeight})}}function SA(e,t){return e.map(function(e){var n;return null===(n=e[pA])||void 0===n?void 0:n.map(function(e){return e[t.value]})})}function kA(e){return e?function(e){return Array.isArray(e)&&Array.isArray(e[0])}(e)?e:(0===e.length?[]:[e]).map(function(e){return Array.isArray(e)?e:[e]}):[]}function EA(e,t,n){var o=new Set(e),r=t();return e.filter(function(e){var t=r[e],i=t?t.parent:null,a=t?t.children:null;return!(!t||!t.node.disabled)||(n===bA?!(a&&a.some(function(e){return e.key&&o.has(e.key)})):!(i&&!i.node.disabled&&o.has(i.key)))})}function OA(e,t,n){for(var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=t,i=[],a=function(){var t,a,c,s=e[l],u=null===(t=r)||void 0===t?void 0:t.findIndex(function(e){var t=e[n.value];return o?String(t)===String(s):t===s}),d=-1!==u?null===(a=r)||void 0===a?void 0:a[u]:null;i.push({value:null!==(c=null===d||void 0===d?void 0:d[n.value])&&void 0!==c?c:s,index:u,option:d}),r=null===d||void 0===d?void 0:d[n.children]},l=0;l<e.length;l+=1)a();return i}function AA(e,t){return o.useCallback(function(n){var o=[],r=[];return n.forEach(function(n){OA(n,e,t).every(function(e){return e.option})?r.push(n):o.push(n)}),[r,o]},[e,t])}function IA(e,t){return e[t]}var NA=["children"];function MA(e,t){return"".concat(e,"-").concat(t)}function jA(e,t){return null!==e&&void 0!==e?e:t}function PA(e){var t=e||{},n=t.title||"title";return{title:n,_title:t._title||[n],key:t.key||"key",children:t.children||"children"}}function RA(e){return function e(t){return s(t).map(function(t){if(!function(e){return e&&e.type&&e.type.isTreeNode}(t))return(0,u.Ay)(!t,"Tree/TreeNode can only accept TreeNode as children."),null;var n=t.key,o=t.props,r=o.children,i=(0,cr.A)(o,NA),a=(0,d.A)({key:n},i),l=e(r);return l.length&&(a.children=l),a}).filter(function(e){return e})}(e)}function TA(e,t,n){var o=PA(n),r=o._title,i=o.key,a=o.children,l=new Set(!0===t?[]:t),c=[];return function e(n){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return n.map(function(s,u){for(var d,p=MA(o?o.pos:"0",u),f=jA(s[i],p),m=0;m<r.length;m+=1){var g=r[m];if(void 0!==s[g]){d=s[g];break}}var v=Object.assign(Ul(s,[].concat(se(r),[i,a])),{title:d,key:f,parent:o,pos:p,children:null,data:s,isStart:[].concat(se(o?o.isStart:[]),[0===u]),isEnd:[].concat(se(o?o.isEnd:[]),[u===n.length-1])});return c.push(v),!0===t||l.has(f)?v.children=e(s[a]||[],v):v.children=[],v})}(e),c}function zA(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.initWrapper,o=t.processEntity,r=t.onProcessFinished,i=t.externalGetKey,a=t.childrenPropName,l=t.fieldNames,c=i||(arguments.length>2?arguments[2]:void 0),s={},u={},d={posEntities:s,keyEntities:u};return n&&(d=n(d)||d),function(e,t,n){var o,r=("object"===(0,p.A)(n)?n:{externalGetKey:n})||{},i=r.childrenPropName,a=r.externalGetKey,l=PA(r.fieldNames),c=l.key,s=l.children,u=i||s;a?"string"===typeof a?o=function(e){return e[a]}:"function"===typeof a&&(o=function(e){return a(e)}):o=function(e,t){return jA(e[c],t)},function n(r,i,a,l){var c=r?r[u]:e,s=r?MA(a.pos,i):"0",d=r?[].concat(se(l),[r]):[];if(r){var p=o(r,s),f={node:r,index:i,pos:s,key:p,parentPos:a.node?a.pos:null,level:a.level+1,nodes:d};t(f)}c&&c.forEach(function(e,t){n(e,t,{node:r,pos:s,level:a?a.level+1:-1},d)})}(null)}(e,function(e){var t=e.node,n=e.index,r=e.pos,i=e.key,a=e.parentPos,l=e.level,c={node:t,nodes:e.nodes,index:n,key:i,pos:r,level:l},p=jA(i,r);s[r]=c,u[p]=c,c.parent=s[a],c.parent&&(c.parent.children=c.parent.children||[],c.parent.children.push(c)),o&&o(c,d)},{externalGetKey:c,childrenPropName:a,fieldNames:l}),r&&r(d),d}function BA(e,t){var n=t.expandedKeys,o=t.selectedKeys,r=t.loadedKeys,i=t.loadingKeys,a=t.checkedKeys,l=t.halfCheckedKeys,c=t.dragOverNodeKey,s=t.dropPosition,u=IA(t.keyEntities,e);return{eventKey:e,expanded:-1!==n.indexOf(e),selected:-1!==o.indexOf(e),loaded:-1!==r.indexOf(e),loading:-1!==i.indexOf(e),checked:-1!==a.indexOf(e),halfChecked:-1!==l.indexOf(e),pos:String(u?u.pos:""),dragOver:c===e&&0===s,dragOverGapTop:c===e&&-1===s,dragOverGapBottom:c===e&&1===s}}function HA(e){var t=e.data,n=e.expanded,o=e.selected,r=e.checked,i=e.loaded,a=e.loading,l=e.halfChecked,c=e.dragOver,s=e.dragOverGapTop,p=e.dragOverGapBottom,f=e.pos,m=e.active,g=e.eventKey,v=(0,d.A)((0,d.A)({},t),{},{expanded:n,selected:o,checked:r,loaded:i,loading:a,halfChecked:l,dragOver:c,dragOverGapTop:s,dragOverGapBottom:p,pos:f,active:m,key:g});return"props"in v||Object.defineProperty(v,"props",{get:function(){return(0,u.Ay)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),v}function DA(e,t){var n=o.useMemo(function(){return t||[]},[t]),r=function(e,t){var n=o.useRef({options:[],info:{keyEntities:{},pathKeyEntities:{}}}),r=o.useCallback(function(){return n.current.options!==e&&(n.current.options=e,n.current.info=zA(e,{fieldNames:t,initWrapper:function(e){return(0,d.A)((0,d.A)({},e),{},{pathKeyEntities:{}})},processEntity:function(e,n){var o=e.nodes.map(function(e){return e[t.value]}).join(vA);n.pathKeyEntities[o]=e,e.key=o}})),n.current.info.pathKeyEntities},[t,e]);return r}(n,e),i=o.useCallback(function(t){var n=r();return t.map(function(t){return n[t].nodes.map(function(t){return t[e.value]})})},[r,e]);return[n,r,i]}function LA(e,t){var n=new Set;return e.forEach(function(e){t.has(e)||n.add(e)}),n}function FA(e){var t=e||{},n=t.disabled,o=t.disableCheckbox,r=t.checkable;return!(!n&&!o)||!1===r}function WA(e,t,n,o){var r,i=[];r=o||FA;var a,l=new Set(e.filter(function(e){var t=!!IA(n,e);return t||i.push(e),t})),c=new Map,s=0;return Object.keys(n).forEach(function(e){var t=n[e],o=t.level,r=c.get(o);r||(r=new Set,c.set(o,r)),r.add(t),s=Math.max(s,o)}),(0,u.Ay)(!i.length,"Tree missing follow keys: ".concat(i.slice(0,100).map(function(e){return"'".concat(e,"'")}).join(", "))),a=!0===t?function(e,t,n,o){for(var r=new Set(e),i=new Set,a=0;a<=n;a+=1)(t.get(a)||new Set).forEach(function(e){var t=e.key,n=e.node,i=e.children,a=void 0===i?[]:i;r.has(t)&&!o(n)&&a.filter(function(e){return!o(e.node)}).forEach(function(e){r.add(e.key)})});for(var l=new Set,c=n;c>=0;c-=1)(t.get(c)||new Set).forEach(function(e){var t=e.parent,n=e.node;if(!o(n)&&e.parent&&!l.has(e.parent.key))if(o(e.parent.node))l.add(t.key);else{var a=!0,c=!1;(t.children||[]).filter(function(e){return!o(e.node)}).forEach(function(e){var t=e.key,n=r.has(t);a&&!n&&(a=!1),c||!n&&!i.has(t)||(c=!0)}),a&&r.add(t.key),c&&i.add(t.key),l.add(t.key)}});return{checkedKeys:Array.from(r),halfCheckedKeys:Array.from(LA(i,r))}}(l,c,s,r):function(e,t,n,o,r){for(var i=new Set(e),a=new Set(t),l=0;l<=o;l+=1)(n.get(l)||new Set).forEach(function(e){var t=e.key,n=e.node,o=e.children,l=void 0===o?[]:o;i.has(t)||a.has(t)||r(n)||l.filter(function(e){return!r(e.node)}).forEach(function(e){i.delete(e.key)})});a=new Set;for(var c=new Set,s=o;s>=0;s-=1)(n.get(s)||new Set).forEach(function(e){var t=e.parent,n=e.node;if(!r(n)&&e.parent&&!c.has(e.parent.key))if(r(e.parent.node))c.add(t.key);else{var o=!0,l=!1;(t.children||[]).filter(function(e){return!r(e.node)}).forEach(function(e){var t=e.key,n=i.has(t);o&&!n&&(o=!1),l||!n&&!a.has(t)||(l=!0)}),o||i.delete(t.key),l&&a.add(t.key),c.add(t.key)}});return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from(LA(a,i))}}(l,t.halfCheckedKeys,c,s,r),a}function _A(e,t,n,o,r,i,a,l){return function(c){if(e){var s=yA(c),u=CA(n),d=CA(o),p=u.includes(s),f=r.some(function(e){return yA(e)===s}),m=n,g=r;if(f&&!p)g=r.filter(function(e){return yA(e)!==s});else{var v,h=p?u.filter(function(e){return e!==s}):[].concat(se(u),[s]),b=i();if(p)v=WA(h,{checked:!1,halfCheckedKeys:d},b).checkedKeys;else v=WA(h,!0,b).checkedKeys;var y=EA(v,i,l);m=a(y)}t([].concat(se(g),se(m)))}else t(c)}}function KA(e,t,n,r,i){return o.useMemo(function(){var o=i(t),a=(0,ke.A)(o,2),l=a[0],c=a[1];if(!e||!t.length)return[l,[],c];var s=WA(CA(l),!0,n()),u=s.checkedKeys,d=s.halfCheckedKeys;return[r(u),r(d),c]},[e,t,n,r,i])}var qA=o.memo(function(e){return e.children},function(e,t){return!t.open});const VA=qA;function XA(e){var t,n=e.prefixCls,r=e.checked,i=e.halfChecked,l=e.disabled,c=e.onClick,s=e.disableCheckbox,u=o.useContext(dA).checkable,d="boolean"!==typeof u?u:null;return o.createElement("span",{className:a()("".concat(n),(t={},(0,Ee.A)(t,"".concat(n,"-checked"),r),(0,Ee.A)(t,"".concat(n,"-indeterminate"),!r&&i),(0,Ee.A)(t,"".concat(n,"-disabled"),l||s),t)),onClick:c},d)}var GA="__cascader_fix_label__";function YA(e){var t=e.prefixCls,n=e.multiple,r=e.options,i=e.activeValue,l=e.prevValuePath,c=e.onToggleOpen,s=e.onSelect,u=e.onActive,d=e.checkedSet,p=e.halfCheckedSet,f=e.loadingKeys,m=e.isSelectable,g=e.disabled,v="".concat(t,"-menu"),h="".concat(t,"-menu-item"),b=o.useContext(dA),y=b.fieldNames,C=b.changeOnSelect,x=b.expandTrigger,$=b.expandIcon,w=b.loadingIcon,S=b.dropdownMenuColumnStyle,k=b.optionRender,E="hover"===x,O=function(e){return g||e},A=o.useMemo(function(){return r.map(function(e){var t,n=e.disabled,o=e.disableCheckbox,r=e[pA],i=null!==(t=e[GA])&&void 0!==t?t:e[y.label],a=e[y.value],c=$A(e,y),s=r?r.map(function(e){return e[y.value]}):[].concat(se(l),[a]),u=yA(s);return{disabled:n,label:i,value:a,isLeaf:c,isLoading:f.includes(u),checked:d.has(u),halfChecked:p.has(u),option:e,disableCheckbox:o,fullPath:s,fullPathKey:u}})},[r,d,y,p,f,l]);return o.createElement("ul",{className:v,role:"menu"},A.map(function(e){var r,l,d=e.disabled,p=e.label,f=e.value,g=e.isLeaf,v=e.isLoading,b=e.checked,y=e.halfChecked,x=e.option,A=e.fullPath,I=e.fullPathKey,N=e.disableCheckbox,M=function(){if(!O(d)){var e=se(A);E&&g&&e.pop(),u(e)}},j=function(){m(x)&&!O(d)&&s(A,g)};return"string"===typeof x.title?l=x.title:"string"===typeof p&&(l=p),o.createElement("li",{key:I,className:a()(h,(r={},(0,Ee.A)(r,"".concat(h,"-expand"),!g),(0,Ee.A)(r,"".concat(h,"-active"),i===f||i===I),(0,Ee.A)(r,"".concat(h,"-disabled"),O(d)),(0,Ee.A)(r,"".concat(h,"-loading"),v),r)),style:S,role:"menuitemcheckbox",title:l,"aria-checked":b,"data-path-key":I,onClick:function(){M(),N||n&&!g||j()},onDoubleClick:function(){C&&c(!1)},onMouseEnter:function(){E&&M()},onMouseDown:function(e){e.preventDefault()}},n&&o.createElement(XA,{prefixCls:"".concat(t,"-checkbox"),checked:b,halfChecked:y,disabled:O(d)||N,disableCheckbox:N,onClick:function(e){N||(e.stopPropagation(),j())}}),o.createElement("div",{className:"".concat(h,"-content")},k?k(x):p),!v&&$&&!g&&o.createElement("div",{className:"".concat(h,"-expand-icon")},$),v&&w&&o.createElement("div",{className:"".concat(h,"-loading-icon")},w))}))}const UA=function(e,t){var n=o.useContext(dA).values[0],r=o.useState([]),i=(0,ke.A)(r,2),a=i[0],l=i[1];return o.useEffect(function(){e||l(n||[])},[t,n]),[a,l]},QA=function(e,t,n,r,i,a,l){var c=l.direction,s=l.searchValue,u=l.toggleOpen,d=l.open,p="rtl"===c,f=o.useMemo(function(){for(var e=-1,o=t,i=[],a=[],l=r.length,c=SA(t,n),s=function(t){var l=o.findIndex(function(e,o){return(c[o]?yA(c[o]):e[n.value])===r[t]});if(-1===l)return 1;e=l,i.push(e),a.push(r[t]),o=o[e][n.children]},u=0;u<l&&o&&!s(u);u+=1);for(var d=t,p=0;p<i.length-1;p+=1)d=d[i[p]][n.children];return[a,e,d,c]},[r,n,t]),m=(0,ke.A)(f,4),g=m[0],v=m[1],h=m[2],b=m[3],y=function(e){i(e)},C=function(){if(g.length>1){var e=g.slice(0,-1);y(e)}else u(!1)},x=function(){var e,t=((null===(e=h[v])||void 0===e?void 0:e[n.children])||[]).find(function(e){return!e.disabled});if(t){var o=[].concat(se(g),[t[n.value]]);y(o)}};o.useImperativeHandle(e,function(){return{onKeyDown:function(e){var t=e.which;switch(t){case Xi.UP:case Xi.DOWN:var o=0;t===Xi.UP?o=-1:t===Xi.DOWN&&(o=1),0!==o&&function(e){var t=h.length,o=v;-1===o&&e<0&&(o=t);for(var r=0;r<t;r+=1){var i=h[o=(o+e+t)%t];if(i&&!i.disabled){var a=g.slice(0,-1).concat(b[o]?yA(b[o]):i[n.value]);return void y(a)}}}(o);break;case Xi.LEFT:if(s)break;p?x():C();break;case Xi.RIGHT:if(s)break;p?C():x();break;case Xi.BACKSPACE:s||C();break;case Xi.ENTER:if(g.length){var r=h[v],i=(null===r||void 0===r?void 0:r[pA])||[];i.length?a(i.map(function(e){return e[n.value]}),i[i.length-1]):a(g,h[v])}break;case Xi.ESC:u(!1),d&&e.stopPropagation()}},onKeyUp:function(){}}})};var ZA=o.forwardRef(function(e,t){var n,r,i,c=e.prefixCls,s=e.multiple,u=e.searchValue,p=e.toggleOpen,f=e.notFoundContent,m=e.direction,g=e.open,v=e.disabled,h=o.useRef(null),b="rtl"===m,y=o.useContext(dA),C=y.options,x=y.values,$=y.halfValues,w=y.fieldNames,S=y.changeOnSelect,k=y.onSelect,E=y.searchOptions,O=y.dropdownPrefixCls,A=y.loadData,I=y.expandTrigger,N=O||c,M=o.useState([]),j=(0,ke.A)(M,2),P=j[0],R=j[1];o.useEffect(function(){P.length&&P.forEach(function(e){var t=function(e){return e.split(vA)}(e),n=OA(t,C,w,!0).map(function(e){return e.option}),o=n[n.length-1];(!o||o[w.children]||$A(o,w))&&R(function(t){return t.filter(function(t){return t!==e})})})},[C,P,w]);var T=o.useMemo(function(){return new Set(CA(x))},[x]),z=o.useMemo(function(){return new Set(CA($))},[$]),B=UA(s,g),H=(0,ke.A)(B,2),D=H[0],L=H[1],F=function(e){L(e),function(e){if(A&&!u){var t=OA(e,C,w).map(function(e){return e.option}),n=t[t.length-1];if(n&&!$A(n,w)){var o=yA(e);R(function(e){return[].concat(se(e),[o])}),A(t)}}}(e)},W=function(e){if(v)return!1;var t=e.disabled,n=$A(e,w);return!t&&(n||S||s)},_=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];k(e),!s&&(t||S&&("hover"===I||n))&&p(!1)},K=o.useMemo(function(){return u?E:C},[u,E,C]),q=o.useMemo(function(){for(var e=[{options:K}],t=K,n=SA(t,w),o=function(){var o=D[r],i=t.find(function(e,t){return(n[t]?yA(n[t]):e[w.value])===o}),a=null===i||void 0===i?void 0:i[w.children];if(null===a||void 0===a||!a.length)return 1;t=a,e.push({options:a})},r=0;r<D.length&&!o();r+=1);return e},[K,D,w]);QA(t,K,w,D,F,function(e,t){W(t)&&_(e,$A(t,w),!0)},{direction:m,searchValue:u,toggleOpen:p,open:g}),o.useEffect(function(){if(!u)for(var e=0;e<D.length;e+=1){var t,n=yA(D.slice(0,e+1)),o=null===(t=h.current)||void 0===t?void 0:t.querySelector('li[data-path-key="'.concat(n.replace(/\\{0,2}"/g,'\\"'),'"]'));o&&wA(o)}},[D,u]);var V=!(null!==(n=q[0])&&void 0!==n&&null!==(n=n.options)&&void 0!==n&&n.length),X=[(r={},(0,Ee.A)(r,w.value,"__EMPTY__"),(0,Ee.A)(r,GA,f),(0,Ee.A)(r,"disabled",!0),r)],G=(0,d.A)((0,d.A)({},e),{},{multiple:!V&&s,onSelect:_,onActive:F,onToggleOpen:p,checkedSet:T,halfCheckedSet:z,loadingKeys:P,isSelectable:W}),Y=(V?[{options:X}]:q).map(function(e,t){var n=D.slice(0,t),r=D[t];return o.createElement(YA,(0,l.A)({key:t},G,{prefixCls:N,options:e.options,prevValuePath:n,activeValue:r}))});return o.createElement(VA,{open:g},o.createElement("div",{className:a()("".concat(N,"-menus"),(i={},(0,Ee.A)(i,"".concat(N,"-menu-empty"),V),(0,Ee.A)(i,"".concat(N,"-rtl"),b),i)),ref:h},Y))});const JA=ZA;const eI=o.forwardRef(function(e,t){var n=tg();return o.createElement(JA,(0,l.A)({},e,n,{ref:t}))});function tI(){}function nI(e){var t,n=e,r=n.prefixCls,i=void 0===r?"rc-cascader":r,l=n.style,c=n.className,s=n.options,u=n.checkable,d=n.defaultValue,p=n.value,f=n.fieldNames,m=n.changeOnSelect,g=n.onChange,v=n.showCheckedStrategy,h=n.loadData,b=n.expandTrigger,y=n.expandIcon,C=void 0===y?">":y,x=n.loadingIcon,$=n.direction,w=n.notFoundContent,S=void 0===w?"Not Found":w,k=n.disabled,E=!!u,O=Ln(d,{value:p,postState:kA}),A=(0,ke.A)(O,2),I=A[0],N=A[1],M=o.useMemo(function(){return xA(f)},[JSON.stringify(f)]),j=DA(M,s),P=(0,ke.A)(j,3),R=P[0],T=P[1],z=P[2],B=AA(R,M),H=KA(E,I,T,z,B),D=(0,ke.A)(H,3),L=D[0],F=D[1],W=D[2],_=Bn(function(e){if(N(e),g){var t=kA(e),n=t.map(function(e){return OA(e,R,M).map(function(e){return e.option})}),o=E?t:t[0],r=E?n:n[0];g(o,r)}}),K=_A(E,_,L,F,W,T,z,v),q=Bn(function(e){K(e)}),V=o.useMemo(function(){return{options:R,fieldNames:M,values:L,halfValues:F,changeOnSelect:m,onSelect:q,checkable:u,searchOptions:[],dropdownPrefixCls:void 0,loadData:h,expandTrigger:b,expandIcon:C,loadingIcon:x,dropdownMenuColumnStyle:void 0}},[R,M,L,F,m,q,u,h,b,C,x]),X="".concat(i,"-panel"),G=!R.length;return o.createElement(dA.Provider,{value:V},o.createElement("div",{className:a()(X,(t={},(0,Ee.A)(t,"".concat(X,"-rtl"),"rtl"===$),(0,Ee.A)(t,"".concat(X,"-empty"),G),t),c),style:l},G?S:o.createElement(JA,{prefixCls:i,searchValue:"",multiple:E,toggleOpen:tI,open:!0,direction:$,disabled:k})))}var oI=["id","prefixCls","fieldNames","defaultValue","value","changeOnSelect","onChange","displayRender","checkable","autoClearSearchValue","searchValue","onSearch","showSearch","expandTrigger","options","dropdownPrefixCls","loadData","popupVisible","open","popupClassName","dropdownClassName","dropdownMenuColumnStyle","dropdownStyle","popupPlacement","placement","onDropdownVisibleChange","onPopupVisibleChange","onOpenChange","expandIcon","loadingIcon","children","dropdownMatchSelectWidth","showCheckedStrategy","optionRender"],rI=o.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,i=void 0===r?"rc-cascader":r,a=e.fieldNames,c=e.defaultValue,s=e.value,u=e.changeOnSelect,f=e.onChange,m=e.displayRender,g=e.checkable,v=e.autoClearSearchValue,h=void 0===v||v,b=e.searchValue,y=e.onSearch,C=e.showSearch,x=e.expandTrigger,$=e.options,w=e.dropdownPrefixCls,S=e.loadData,k=e.popupVisible,E=e.open,O=e.popupClassName,A=e.dropdownClassName,I=e.dropdownMenuColumnStyle,N=e.dropdownStyle,M=e.popupPlacement,j=e.placement,P=e.onDropdownVisibleChange,R=e.onPopupVisibleChange,T=e.onOpenChange,z=e.expandIcon,B=void 0===z?">":z,H=e.loadingIcon,D=e.children,L=e.dropdownMatchSelectWidth,F=void 0!==L&&L,W=e.showCheckedStrategy,_=void 0===W?hA:W,K=e.optionRender,q=(0,cr.A)(e,oI),V=Uv(n),X=!!g,G=Ln(c,{value:s,postState:kA}),Y=(0,ke.A)(G,2),U=Y[0],Q=Y[1],Z=o.useMemo(function(){return xA(a)},[JSON.stringify(a)]),J=DA(Z,$),ee=(0,ke.A)(J,3),te=ee[0],ne=ee[1],oe=ee[2],re=Ln("",{value:b,postState:function(e){return e||""}}),ie=(0,ke.A)(re,2),ae=ie[0],le=ie[1],ce=function(e){return o.useMemo(function(){if(!e)return[!1,{}];var t={matchInputWidth:!0,limit:50};return e&&"object"===(0,p.A)(e)&&(t=(0,d.A)((0,d.A)({},t),e)),t.limit<=0&&(t.limit=!1),[!0,t]},[e])}(C),ue=(0,ke.A)(ce,2),de=ue[0],pe=ue[1],fe=gA(ae,te,Z,w||i,pe,u||X),me=AA(te,Z),ge=KA(X,U,ne,oe,me),ve=(0,ke.A)(ge,3),he=ve[0],be=ve[1],ye=ve[2],Ce=function(e,t,n,r,i){return o.useMemo(function(){var a=i||function(e){var t=r?e.slice(-1):e;return t.every(function(e){return["string","number"].includes((0,p.A)(e))})?t.join(" / "):t.reduce(function(e,t,n){var r=o.isValidElement(t)?o.cloneElement(t,{key:n}):t;return 0===n?[r]:[].concat(se(e),[" / ",r])},[])};return e.map(function(e){var o,r=OA(e,t,n),i=a(r.map(function(e){var t,o=e.option,r=e.value;return null!==(t=null===o||void 0===o?void 0:o[n.label])&&void 0!==t?t:r}),r.map(function(e){return e.option})),l=yA(e);return{label:i,value:l,key:l,valueCells:e,disabled:null===(o=r[r.length-1])||void 0===o||null===(o=o.option)||void 0===o?void 0:o.disabled}})},[e,t,n,i,r])}(o.useMemo(function(){var e=EA(CA(he),ne,_);return[].concat(se(ye),se(oe(e)))},[he,ne,oe,ye,_]),te,Z,X,m),xe=Bn(function(e){if(Q(e),f){var t=kA(e),n=t.map(function(e){return OA(e,te,Z).map(function(e){return e.option})}),o=X?t:t[0],r=X?n:n[0];f(o,r)}}),$e=_A(X,xe,he,be,ye,ne,oe,_),we=Bn(function(e){X&&!h||le(""),$e(e)}),Se=void 0!==E?E:k,Ee=A||O,Oe=j||M;var Ae=o.useMemo(function(){return{options:te,fieldNames:Z,values:he,halfValues:be,changeOnSelect:u,onSelect:we,checkable:g,searchOptions:fe,dropdownPrefixCls:w,loadData:S,expandTrigger:x,expandIcon:B,loadingIcon:H,dropdownMenuColumnStyle:I,optionRender:K}},[te,Z,he,be,u,we,g,fe,w,S,x,B,H,I,K]),Ie=!(ae?fe:te).length,Ne=ae&&pe.matchInputWidth||Ie?{}:{minWidth:"auto"};return o.createElement(dA.Provider,{value:Ae},o.createElement(bv,(0,l.A)({},q,{ref:t,id:V,prefixCls:i,autoClearSearchValue:h,dropdownMatchSelectWidth:F,dropdownStyle:(0,d.A)((0,d.A)({},Ne),N),displayValues:Ce,onDisplayValuesChange:function(e,t){if("clear"!==t.type){var n=t.values[0].valueCells;we(n)}else xe([])},mode:X?"multiple":void 0,searchValue:ae,onSearch:function(e,t){le(e),"blur"!==t.source&&y&&y(e)},showSearch:de,OptionList:eI,emptyOptions:Ie,open:Se,dropdownClassName:Ee,placement:Oe,onDropdownVisibleChange:function(e){null===T||void 0===T||T(e),null===P||void 0===P||P(e),null===R||void 0===R||R(e)},getRawInputElement:function(){return D}})))});rI.SHOW_PARENT=hA,rI.SHOW_CHILD=bA,rI.Panel=nI;const iI=rI;const aI=function(e,t){const{getPrefixCls:n,direction:r,renderEmpty:i}=o.useContext(xe),a=t||r;return[n("select",e),n("cascader",e),a,i]};function lI(e,t){return o.useMemo(()=>!!t&&o.createElement("span",{className:`${e}-checkbox-inner`}),[t])}const cI=(e,t,n)=>{let r=n;n||(r=t?o.createElement(iC.A,null):o.createElement(ss.A,null));const i=o.createElement("span",{className:`${e}-menu-item-loading-icon`},o.createElement(la.A,{spin:!0}));return o.useMemo(()=>[r,i],[r])},sI=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},po(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},po(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${n}`]:{marginInlineStart:0},[`&${n}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},po(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:Object.assign({},fo(e))},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${nt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:e.calc(e.checkboxSize).div(14).mul(5).equal(),height:e.calc(e.checkboxSize).div(14).mul(8).equal(),border:`${nt(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[`\n ${n}:not(${n}-disabled),\n ${t}:not(${t}-disabled)\n `]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${n}:not(${n}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}}},[`\n ${n}-checked:not(${n}-disabled),\n ${t}-checked:not(${t}-disabled)\n `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{"&":{[`${t}-inner`]:{backgroundColor:`${e.colorBgContainer}`,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 ${t}-inner`]:{backgroundColor:`${e.colorBgContainer}`,borderColor:`${e.colorPrimary}`}}}}},{[`${n}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function uI(e,t){const n=Jn(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[sI(n)]}const dI=qo("Checkbox",(e,t)=>{let{prefixCls:n}=t;return[uI(n,e)]}),pI=e=>{const{prefixCls:t,componentCls:n}=e,o=`${n}-menu-item`,r=`\n &${o}-expand ${o}-expand-icon,\n ${o}-loading-icon\n`;return[uI(`${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",[o]:{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:`${nt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&-item":Object.assign(Object.assign({},uo),{display:"flex",flexWrap:"nowrap",alignItems:"center",padding:e.optionPadding,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationMid}`,borderRadius:e.borderRadiusSM,"&:hover":{background:e.controlItemBgHover},"&-disabled":{color:e.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[r]:{color:e.colorTextDisabled}},[`&-active:not(${o}-disabled)`]:{"&, &:hover":{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg}},"&-content":{flex:"auto"},[r]:{marginInlineStart:e.paddingXXS,color:e.colorIcon,fontSize:e.fontSizeIcon},"&-keyword":{color:e.colorHighlight}})}}}]},fI=e=>{const{componentCls:t,antCls:n}=e;return[{[t]:{width:e.controlWidth}},{[`${t}-dropdown`]:[{[`&${n}-select-dropdown`]:{padding:0}},pI(e)]},{[`${t}-dropdown-rtl`]:{direction:"rtl"}},gu(e)]},mI=e=>{const t=Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2);return{controlWidth:184,controlItemWidth:111,dropdownHeight:180,optionSelectedBg:e.controlItemBgActive,optionSelectedFontWeight:e.fontWeightStrong,optionPadding:`${t}px ${e.paddingSM}px`,menuPadding:e.paddingXXS,optionSelectedColor:e.colorText}},gI=qo("Cascader",e=>[fI(e)],mI,{unitless:{optionSelectedFontWeight:!0}}),vI=Vo(["Cascader","Panel"],e=>(e=>{const{componentCls:t}=e;return{[`${t}-panel`]:[pI(e),{display:"inline-flex",border:`${nt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,borderRadius:e.borderRadiusLG,overflowX:"auto",maxWidth:"100%",[`${t}-menus`]:{alignItems:"stretch"},[`${t}-menu`]:{height:"auto"},"&-empty":{padding:e.paddingXXS}}]}})(e),mI);const hI=function(e){const{prefixCls:t,className:n,multiple:r,rootClassName:i,notFoundContent:l,direction:c,expandIcon:s,disabled:u}=e,d=o.useContext(Ga),p=null!==u&&void 0!==u?u:d,[f,m,g,v]=aI(t,c),h=Mi(m),[b,y,C]=gI(m,h);vI(m);const x="rtl"===g,[$,w]=cI(f,x,s),S=l||(null===v||void 0===v?void 0:v("Cascader"))||o.createElement(bh,{componentName:"Cascader"}),k=lI(m,r);return b(o.createElement(nI,Object.assign({},e,{checkable:k,prefixCls:m,className:a()(n,y,i,C,h),notFoundContent:S,direction:g,expandIcon:$,loadingIcon:w,disabled:p})))};var bI=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const{SHOW_CHILD:yI,SHOW_PARENT:CI}=iI;const xI=(e,t,n,r)=>{const i=[],a=e.toLowerCase();return t.forEach((e,t)=>{0!==t&&i.push(" / ");let l=e[r.label];const c=typeof l;"string"!==c&&"number"!==c||(l=function(e,t,n){const r=e.toLowerCase().split(t).reduce((e,n,o)=>0===o?[n]:[].concat(se(e),[t,n]),[]),i=[];let a=0;return r.forEach((t,r)=>{const l=a+t.length;let c=e.slice(a,l);a=l,r%2===1&&(c=o.createElement("span",{className:`${n}-menu-item-keyword`,key:`separator-${r}`},c)),i.push(c)}),i}(String(l),a,n)),i.push(l)}),i},$I=o.forwardRef((e,t)=>{var n,r,i,l;const{prefixCls:c,size:s,disabled:u,className:d,rootClassName:p,multiple:f,bordered:m=!0,transitionName:g,choiceTransitionName:v="",popupClassName:h,dropdownClassName:b,expandIcon:y,placement:C,showSearch:x,allowClear:$=!0,notFoundContent:w,direction:S,getPopupContainer:k,status:E,showArrow:O,builtinPlacements:A,style:I,variant:N,dropdownRender:M,onDropdownVisibleChange:j,dropdownMenuColumnStyle:P,popupRender:R,dropdownStyle:T,popupMenuColumnStyle:z,onOpenChange:B,styles:H,classNames:D}=e,L=Ul(bI(e,["prefixCls","size","disabled","className","rootClassName","multiple","bordered","transitionName","choiceTransitionName","popupClassName","dropdownClassName","expandIcon","placement","showSearch","allowClear","notFoundContent","direction","getPopupContainer","status","showArrow","builtinPlacements","style","variant","dropdownRender","onDropdownVisibleChange","dropdownMenuColumnStyle","popupRender","dropdownStyle","popupMenuColumnStyle","onOpenChange","styles","classNames"]),["suffixIcon"]),{getPrefixCls:F,getPopupContainer:W,className:_,style:K,classNames:q,styles:V}=Se("cascader"),{popupOverflow:X}=o.useContext(xe),{status:G,hasFeedback:Y,isFormItemInput:U,feedbackIcon:Q}=o.useContext(Ep),Z=ch(G,E);const[J,ee,te,ne]=aI(c,S),oe="rtl"===te,re=F(),ie=Mi(J),[ae,le,ce]=sb(J,ie),se=Mi(ee),[ue]=gI(ee,se),{compactSize:de,compactItemClassnames:pe}=mc(J,S),[fe,me]=yh("cascader",N,m),ge=w||(null===ne||void 0===ne?void 0:ne("Cascader"))||o.createElement(bh,{componentName:"Cascader"}),ve=a()((null===(n=null===D||void 0===D?void 0:D.popup)||void 0===n?void 0:n.root)||(null===(r=q.popup)||void 0===r?void 0:r.root)||h||b,`${ee}-dropdown`,{[`${ee}-dropdown-rtl`]:"rtl"===te},p,ie,q.root,null===D||void 0===D?void 0:D.root,se,le,ce),he=R||M,be=z||P,ye=B||j,Ce=(null===(i=null===H||void 0===H?void 0:H.popup)||void 0===i?void 0:i.root)||(null===(l=V.popup)||void 0===l?void 0:l.root)||T,$e=o.useMemo(()=>{if(!x)return x;let e={render:xI};return"object"===typeof x&&(e=Object.assign(Object.assign({},e),x)),e},[x]),we=lc(e=>{var t;return null!==(t=null!==s&&void 0!==s?s:de)&&void 0!==t?t:e}),ke=o.useContext(Ga),Ee=null!==u&&void 0!==u?u:ke,[Oe,Ae]=cI(J,oe,y),Ie=lI(ee,f),Ne=mb(e.suffixIcon,O),{suffixIcon:Me,removeIcon:je,clearIcon:Pe}=fb(Object.assign(Object.assign({},e),{hasFeedback:Y,feedbackIcon:Q,showSuffixIcon:Ne,multiple:f,prefixCls:J,componentName:"Cascader"})),Re=o.useMemo(()=>void 0!==C?C:oe?"bottomRight":"bottomLeft",[C,oe]),Te=!0===$?{clearIcon:Pe}:$,[ze]=fa("SelectLike",null===Ce||void 0===Ce?void 0:Ce.zIndex);return ue(ae(o.createElement(iI,Object.assign({prefixCls:J,className:a()(!c&&ee,{[`${J}-lg`]:"large"===we,[`${J}-sm`]:"small"===we,[`${J}-rtl`]:oe,[`${J}-${fe}`]:me,[`${J}-in-form-item`]:U},lh(J,Z,Y),pe,_,d,p,null===D||void 0===D?void 0:D.root,q.root,ie,se,le,ce),disabled:Ee,style:Object.assign(Object.assign(Object.assign(Object.assign({},V.root),null===H||void 0===H?void 0:H.root),K),I)},L,{builtinPlacements:Ch(A,X),direction:te,placement:Re,notFoundContent:ge,allowClear:Te,showSearch:$e,expandIcon:Oe,suffixIcon:Me,removeIcon:je,loadingIcon:Ae,checkable:Ie,dropdownClassName:ve,dropdownPrefixCls:c||ee,dropdownStyle:Object.assign(Object.assign({},Ce),{zIndex:ze}),dropdownRender:he,dropdownMenuColumnStyle:be,onOpenChange:ye,choiceTransitionName:Xl(re,"",v),transitionName:Xl(re,"slide-up",g),getPopupContainer:k||W,ref:t}))))});const wI=Qm($I,"dropdownAlign",e=>Ul(e,["visible"]));$I.SHOW_PARENT=CI,$I.SHOW_CHILD=yI,$I.Panel=hI,$I._InternalPanelDoNotUseOrYouWillBeFired=wI;const SI=$I,kI=r().createContext(null);var EI=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const OI=o.forwardRef((e,t)=>{var n;const{prefixCls:r,className:i,rootClassName:l,children:c,indeterminate:s=!1,style:u,onMouseEnter:d,onMouseLeave:p,skipGroup:f=!1,disabled:m}=e,g=EI(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:v,direction:h,checkbox:y}=o.useContext(xe),C=o.useContext(kI),{isFormItemInput:x}=o.useContext(Ep),$=o.useContext(Ga),w=null!==(n=(null===C||void 0===C?void 0:C.disabled)||m)&&void 0!==n?n:$,S=o.useRef(g.value),k=o.useRef(null),E=(0,b.K4)(t,k);o.useEffect(()=>{null===C||void 0===C||C.registerValue(g.value)},[]),o.useEffect(()=>{if(!f)return g.value!==S.current&&(null===C||void 0===C||C.cancelValue(S.current),null===C||void 0===C||C.registerValue(g.value),S.current=g.value),()=>null===C||void 0===C?void 0:C.cancelValue(g.value)},[g.value]),o.useEffect(()=>{var e;(null===(e=k.current)||void 0===e?void 0:e.input)&&(k.current.input.indeterminate=s)},[s]);const O=v("checkbox",r),A=Mi(O),[I,N,M]=dI(O,A),j=Object.assign({},g);C&&!f&&(j.onChange=function(){if(g.onChange){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];g.onChange.apply(g,t)}C.toggleOption&&C.toggleOption({label:c,value:g.value})},j.name=C.name,j.checked=C.value.includes(g.value));const P=a()(`${O}-wrapper`,{[`${O}-rtl`]:"rtl"===h,[`${O}-wrapper-checked`]:j.checked,[`${O}-wrapper-disabled`]:w,[`${O}-wrapper-in-form-item`]:x},null===y||void 0===y?void 0:y.className,i,l,M,A,N),R=a()({[`${O}-indeterminate`]:s},ec,N),[T,z]=fk(j.onClick);return I(o.createElement(ac,{component:"Checkbox",disabled:w},o.createElement("label",{className:P,style:Object.assign(Object.assign({},null===y||void 0===y?void 0:y.style),u),onMouseEnter:d,onMouseLeave:p,onClick:T},o.createElement(pk,Object.assign({},j,{onClick:z,prefixCls:O,className:R,disabled:w,ref:E})),void 0!==c&&null!==c&&o.createElement("span",{className:`${O}-label`},c))))});const AI=OI;var II=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const NI=o.forwardRef((e,t)=>{const{defaultValue:n,children:r,options:i=[],prefixCls:l,className:c,rootClassName:s,style:u,onChange:d}=e,p=II(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:f,direction:m}=o.useContext(xe),[g,v]=o.useState(p.value||n||[]),[h,b]=o.useState([]);o.useEffect(()=>{"value"in p&&v(p.value||[])},[p.value]);const y=o.useMemo(()=>i.map(e=>"string"===typeof e||"number"===typeof e?{label:e,value:e}:e),[i]),C=e=>{b(t=>t.filter(t=>t!==e))},x=e=>{b(t=>[].concat(se(t),[e]))},$=e=>{const t=g.indexOf(e.value),n=se(g);-1===t?n.push(e.value):n.splice(t,1),"value"in p||v(n),null===d||void 0===d||d(n.filter(e=>h.includes(e)).sort((e,t)=>y.findIndex(t=>t.value===e)-y.findIndex(e=>e.value===t)))},w=f("checkbox",l),S=`${w}-group`,k=Mi(w),[E,O,A]=dI(w,k),I=Ul(p,["value","disabled"]),N=i.length?y.map(e=>o.createElement(AI,{prefixCls:w,key:e.value.toString(),disabled:"disabled"in e?e.disabled:p.disabled,value:e.value,checked:g.includes(e.value),onChange:e.onChange,className:a()(`${S}-item`,e.className),style:e.style,title:e.title,id:e.id,required:e.required},e.label)):r,M=o.useMemo(()=>({toggleOption:$,value:g,disabled:p.disabled,name:p.name,registerValue:x,cancelValue:C}),[$,g,p.disabled,p.name,x,C]),j=a()(S,{[`${S}-rtl`]:"rtl"===m},c,s,A,k,O);return E(o.createElement("div",Object.assign({className:j,style:u},I,{ref:t}),o.createElement(kI.Provider,{value:M},N)))}),MI=NI,jI=AI;jI.Group=MI,jI.__ANT_CHECKBOX=!0;const PI=jI,RI=(0,o.createContext)({});var TI=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};function zI(e){return"number"===typeof e?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const BI=["xs","sm","md","lg","xl","xxl"],HI=o.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=o.useContext(xe),{gutter:i,wrap:l}=o.useContext(RI),{prefixCls:c,span:s,order:u,offset:d,push:p,pull:f,className:m,children:g,flex:v,style:h}=e,b=TI(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),y=n("col",c),[C,x,$]=Cf(y),w={};let S={};BI.forEach(t=>{let n={};const o=e[t];"number"===typeof o?n.span=o:"object"===typeof o&&(n=o||{}),delete b[t],S=Object.assign(Object.assign({},S),{[`${y}-${t}-${n.span}`]:void 0!==n.span,[`${y}-${t}-order-${n.order}`]:n.order||0===n.order,[`${y}-${t}-offset-${n.offset}`]:n.offset||0===n.offset,[`${y}-${t}-push-${n.push}`]:n.push||0===n.push,[`${y}-${t}-pull-${n.pull}`]:n.pull||0===n.pull,[`${y}-rtl`]:"rtl"===r}),n.flex&&(S[`${y}-${t}-flex`]=!0,w[`--${y}-${t}-flex`]=zI(n.flex))});const k=a()(y,{[`${y}-${s}`]:void 0!==s,[`${y}-order-${u}`]:u,[`${y}-offset-${d}`]:d,[`${y}-push-${p}`]:p,[`${y}-pull-${f}`]:f},m,S,x,$),E={};if(i&&i[0]>0){const e=i[0]/2;E.paddingLeft=e,E.paddingRight=e}return v&&(E.flex=zI(v),!1!==l||E.minWidth||(E.minWidth=0)),C(o.createElement("div",Object.assign({},b,{style:Object.assign(Object.assign(Object.assign({},E),h),w),className:k,ref:t}),g))});const DI=HI,LI=DI,FI=e=>{const{componentCls:t}=e;return{[t]:{"&-horizontal":{[`&${t}`]:{"&-sm":{marginBlock:e.marginXS},"&-md":{marginBlock:e.margin}}}}}},WI=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:o,lineWidth:r,textPaddingInline:i,orientationMargin:a,verticalMarginInline:l}=e;return{[t]:Object.assign(Object.assign({},po(e)),{borderBlockStart:`${nt(r)} solid ${o}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:l,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${nt(r)} solid ${o}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${nt(e.marginLG)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${nt(e.dividerHorizontalWithTextGutterMargin)} 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${o}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${nt(r)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-start`]:{"&::before":{width:`calc(${a} * 100%)`},"&::after":{width:`calc(100% - ${a} * 100%)`}},[`&-horizontal${t}-with-text-end`]:{"&::before":{width:`calc(100% - ${a} * 100%)`},"&::after":{width:`calc(${a} * 100%)`}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:i},"&-dashed":{background:"none",borderColor:o,borderStyle:"dashed",borderWidth:`${nt(r)} 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:r,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:o,borderStyle:"dotted",borderWidth:`${nt(r)} 0 0`},[`&-horizontal${t}-with-text${t}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${t}-dotted`]:{borderInlineStartWidth:r,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`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-end${t}-no-default-orientation-margin-end`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}},_I=qo("Divider",e=>{const t=Jn(e,{dividerHorizontalWithTextGutterMargin:e.margin,sizePaddingEdgeHorizontal:0});return[WI(t),FI(t)]},e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}),{unitless:{orientationMargin:!0}});var KI=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const qI={small:"sm",middle:"md"};const VI=e=>{const{getPrefixCls:t,direction:n,className:r,style:i}=Se("divider"),{prefixCls:l,type:c="horizontal",orientation:s="center",orientationMargin:u,className:d,rootClassName:p,children:f,dashed:m,variant:g="solid",plain:v,style:h,size:b}=e,y=KI(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style","size"]),C=t("divider",l),[x,$,w]=_I(C),S=lc(b),k=qI[S],E=!!f,O=o.useMemo(()=>"left"===s?"rtl"===n?"end":"start":"right"===s?"rtl"===n?"start":"end":s,[n,s]),A="start"===O&&null!=u,I="end"===O&&null!=u,N=a()(C,r,$,w,`${C}-${c}`,{[`${C}-with-text`]:E,[`${C}-with-text-${O}`]:E,[`${C}-dashed`]:!!m,[`${C}-${g}`]:"solid"!==g,[`${C}-plain`]:!!v,[`${C}-rtl`]:"rtl"===n,[`${C}-no-default-orientation-margin-start`]:A,[`${C}-no-default-orientation-margin-end`]:I,[`${C}-${k}`]:!!k},d,p),M=o.useMemo(()=>"number"===typeof u?u:/^\d+$/.test(u)?Number(u):u,[u]),j={marginInlineStart:A?M:void 0,marginInlineEnd:I?M:void 0};return x(o.createElement("div",Object.assign({className:N,style:Object.assign(Object.assign({},i),h)},y,{role:"separator"}),f&&"vertical"!==c&&o.createElement("span",{className:`${C}-inner-text`,style:j},f)))};var XI=function(e,t){if(!e)return null;var n={left:e.offsetLeft,right:e.parentElement.clientWidth-e.clientWidth-e.offsetLeft,width:e.clientWidth,top:e.offsetTop,bottom:e.parentElement.clientHeight-e.clientHeight-e.offsetTop,height:e.clientHeight};return t?{left:0,right:0,width:0,top:n.top,bottom:n.bottom,height:n.height}:{left:n.left,right:n.right,width:n.width,top:0,bottom:0,height:0}},GI=function(e){return void 0!==e?"".concat(e,"px"):void 0};function YI(e){var t=e.prefixCls,n=e.containerRef,r=e.value,i=e.getValueIndex,l=e.motionName,c=e.onMotionStart,s=e.onMotionEnd,u=e.direction,p=e.vertical,f=void 0!==p&&p,m=o.useRef(null),g=o.useState(r),v=(0,ke.A)(g,2),h=v[0],y=v[1],C=function(e){var o,r=i(e),a=null===(o=n.current)||void 0===o?void 0:o.querySelectorAll(".".concat(t,"-item"))[r];return(null===a||void 0===a?void 0:a.offsetParent)&&a},x=o.useState(null),$=(0,ke.A)(x,2),w=$[0],S=$[1],k=o.useState(null),E=(0,ke.A)(k,2),O=E[0],A=E[1];ut(function(){if(h!==r){var e=C(h),t=C(r),n=XI(e,f),o=XI(t,f);y(r),S(n),A(o),e&&t?c():s()}},[r]);var I=o.useMemo(function(){var e;return GI(f?null!==(e=null===w||void 0===w?void 0:w.top)&&void 0!==e?e:0:"rtl"===u?-(null===w||void 0===w?void 0:w.right):null===w||void 0===w?void 0:w.left)},[f,u,w]),N=o.useMemo(function(){var e;return GI(f?null!==(e=null===O||void 0===O?void 0:O.top)&&void 0!==e?e:0:"rtl"===u?-(null===O||void 0===O?void 0:O.right):null===O||void 0===O?void 0:O.left)},[f,u,O]);return w&&O?o.createElement(Jr,{visible:!0,motionName:l,motionAppear:!0,onAppearStart:function(){return f?{transform:"translateY(var(--thumb-start-top))",height:"var(--thumb-start-height)"}:{transform:"translateX(var(--thumb-start-left))",width:"var(--thumb-start-width)"}},onAppearActive:function(){return f?{transform:"translateY(var(--thumb-active-top))",height:"var(--thumb-active-height)"}:{transform:"translateX(var(--thumb-active-left))",width:"var(--thumb-active-width)"}},onVisibleChanged:function(){S(null),A(null),s()}},function(e,n){var r=e.className,i=e.style,l=(0,d.A)((0,d.A)({},i),{},{"--thumb-start-left":I,"--thumb-start-width":GI(null===w||void 0===w?void 0:w.width),"--thumb-active-left":N,"--thumb-active-width":GI(null===O||void 0===O?void 0:O.width),"--thumb-start-top":I,"--thumb-start-height":GI(null===w||void 0===w?void 0:w.height),"--thumb-active-top":N,"--thumb-active-height":GI(null===O||void 0===O?void 0:O.height)}),c={ref:(0,b.K4)(m,n),style:l,className:a()("".concat(t,"-thumb"),r)};return o.createElement("div",c)}):null}var UI=["prefixCls","direction","vertical","options","disabled","defaultValue","value","name","onChange","className","motionName"];function QI(e){return e.map(function(e){if("object"===(0,p.A)(e)&&null!==e){var t=function(e){return"undefined"!==typeof e.title?e.title:"object"!==(0,p.A)(e.label)?null===(t=e.label)||void 0===t?void 0:t.toString():void 0;var t}(e);return(0,d.A)((0,d.A)({},e),{},{title:t})}return{label:null===e||void 0===e?void 0:e.toString(),title:null===e||void 0===e?void 0:e.toString(),value:e}})}var ZI=function(e){var t=e.prefixCls,n=e.className,r=e.disabled,i=e.checked,l=e.label,c=e.title,s=e.value,u=e.name,d=e.onChange,p=e.onFocus,f=e.onBlur,m=e.onKeyDown,g=e.onKeyUp,v=e.onMouseDown;return o.createElement("label",{className:a()(n,(0,Ee.A)({},"".concat(t,"-item-disabled"),r)),onMouseDown:v},o.createElement("input",{name:u,className:"".concat(t,"-item-input"),type:"radio",disabled:r,checked:i,onChange:function(e){r||d(e,s)},onFocus:p,onBlur:f,onKeyDown:m,onKeyUp:g}),o.createElement("div",{className:"".concat(t,"-item-label"),title:c,"aria-selected":i},l))},JI=o.forwardRef(function(e,t){var n,r,i=e.prefixCls,c=void 0===i?"rc-segmented":i,s=e.direction,u=e.vertical,d=e.options,p=void 0===d?[]:d,f=e.disabled,m=e.defaultValue,g=e.value,v=e.name,h=e.onChange,y=e.className,C=void 0===y?"":y,x=e.motionName,$=void 0===x?"thumb-motion":x,w=(0,cr.A)(e,UI),S=o.useRef(null),k=o.useMemo(function(){return(0,b.K4)(S,t)},[S,t]),E=o.useMemo(function(){return QI(p)},[p]),O=Ln(null===(n=E[0])||void 0===n?void 0:n.value,{value:g,defaultValue:m}),A=(0,ke.A)(O,2),I=A[0],N=A[1],M=o.useState(!1),j=(0,ke.A)(M,2),P=j[0],R=j[1],T=function(e,t){N(t),null===h||void 0===h||h(t)},z=Ul(w,["children"]),B=o.useState(!1),H=(0,ke.A)(B,2),D=H[0],L=H[1],F=o.useState(!1),W=(0,ke.A)(F,2),_=W[0],K=W[1],q=function(){K(!0)},V=function(){K(!1)},X=function(){L(!1)},G=function(e){"Tab"===e.key&&L(!0)},Y=function(e){var t=E.findIndex(function(e){return e.value===I}),n=E.length,o=E[(t+e+n)%n];o&&(N(o.value),null===h||void 0===h||h(o.value))},U=function(e){switch(e.key){case"ArrowLeft":case"ArrowUp":Y(-1);break;case"ArrowRight":case"ArrowDown":Y(1)}};return o.createElement("div",(0,l.A)({role:"radiogroup","aria-label":"segmented control",tabIndex:f?void 0:0},z,{className:a()(c,(r={},(0,Ee.A)(r,"".concat(c,"-rtl"),"rtl"===s),(0,Ee.A)(r,"".concat(c,"-disabled"),f),(0,Ee.A)(r,"".concat(c,"-vertical"),u),r),C),ref:k}),o.createElement("div",{className:"".concat(c,"-group")},o.createElement(YI,{vertical:u,prefixCls:c,value:I,containerRef:S,motionName:"".concat(c,"-").concat($),direction:s,getValueIndex:function(e){return E.findIndex(function(t){return t.value===e})},onMotionStart:function(){R(!0)},onMotionEnd:function(){R(!1)}}),E.map(function(e){var t;return o.createElement(ZI,(0,l.A)({},e,{name:v,key:e.value,prefixCls:c,className:a()(e.className,"".concat(c,"-item"),(t={},(0,Ee.A)(t,"".concat(c,"-item-selected"),e.value===I&&!P),(0,Ee.A)(t,"".concat(c,"-item-focused"),_&&D&&e.value===I),t)),checked:e.value===I,onChange:T,onFocus:q,onBlur:V,onKeyDown:U,onKeyUp:G,onMouseDown:X,disabled:!!f||!!e.disabled}))})))});const eN=JI;function tN(e,t){return{[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:"not-allowed"}}}function nN(e){return{backgroundColor:e.itemSelectedBg,boxShadow:e.boxShadowTertiary}}const oN=Object.assign({overflow:"hidden"},uo),rN=e=>{const{componentCls:t}=e,n=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(),r=e.calc(e.controlHeightSM).sub(e.calc(e.trackPadding).mul(2)).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},po(e)),{display:"inline-block",padding:e.trackPadding,color:e.itemColor,background:e.trackBg,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`}),mo(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 ${nt(e.paddingXXS)}`}},[`&${t}-block`]:{display:"flex"},[`&${t}-block ${t}-item`]:{flex:1,minWidth:0},[`${t}-item`]:{position:"relative",textAlign:"center",cursor:"pointer",transition:`color ${e.motionDurationMid} ${e.motionEaseInOut}`,borderRadius:e.borderRadiusSM,transform:"translateZ(0)","&-selected":Object.assign(Object.assign({},nN(e)),{color:e.itemSelectedColor}),"&-focused":Object.assign({},fo(e)),"&::after":{content:'""',position:"absolute",zIndex:-1,width:"100%",height:"100%",top:0,insetInlineStart:0,borderRadius:"inherit",opacity:0,transition:`opacity ${e.motionDurationMid}`,pointerEvents:"none"},[`&:hover:not(${t}-item-selected):not(${t}-item-disabled)`]:{color:e.itemHoverColor,"&::after":{opacity:1,backgroundColor:e.itemHoverBg}},[`&:active:not(${t}-item-selected):not(${t}-item-disabled)`]:{color:e.itemHoverColor,"&::after":{opacity:1,backgroundColor:e.itemActiveBg}},"&-label":Object.assign({minHeight:n,lineHeight:nt(n),padding:`0 ${nt(e.segmentedPaddingHorizontal)}`},oN),"&-icon + *":{marginInlineStart:e.calc(e.marginSM).div(2).equal()},"&-input":{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:0,opacity:0,pointerEvents:"none"}},[`${t}-thumb`]:Object.assign(Object.assign({},nN(e)),{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:"100%",padding:`${nt(e.paddingXXS)} 0`,borderRadius:e.borderRadiusSM,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOut}, height ${e.motionDurationSlow} ${e.motionEaseInOut}`,[`& ~ ${t}-item:not(${t}-item-selected):not(${t}-item-disabled)::after`]:{backgroundColor:"transparent"}}),[`&${t}-lg`]:{borderRadius:e.borderRadiusLG,[`${t}-item-label`]:{minHeight:o,lineHeight:nt(o),padding:`0 ${nt(e.segmentedPaddingHorizontal)}`,fontSize:e.fontSizeLG},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadius}},[`&${t}-sm`]:{borderRadius:e.borderRadiusSM,[`${t}-item-label`]:{minHeight:r,lineHeight:nt(r),padding:`0 ${nt(e.segmentedPaddingHorizontalSM)}`},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadiusXS}}}),tN(`&-disabled ${t}-item`,e)),tN(`${t}-item-disabled`,e)),{[`${t}-thumb-motion-appear-active`]:{transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOut}, width ${e.motionDurationSlow} ${e.motionEaseInOut}`,willChange:"transform, width"},[`&${t}-shape-round`]:{borderRadius:9999,[`${t}-item, ${t}-thumb`]:{borderRadius:9999}}})}},iN=qo("Segmented",e=>{const{lineWidth:t,calc:n}=e,o=Jn(e,{segmentedPaddingHorizontal:n(e.controlPaddingHorizontal).sub(t).equal(),segmentedPaddingHorizontalSM:n(e.controlPaddingHorizontalSM).sub(t).equal()});return[rN(o)]},e=>{const{colorTextLabel:t,colorText:n,colorFillSecondary:o,colorBgElevated:r,colorFill:i,lineWidthBold:a,colorBgLayout:l}=e;return{trackPadding:a,trackBg:l,itemColor:t,itemHoverColor:n,itemHoverBg:o,itemSelectedBg:r,itemActiveBg:i,itemSelectedColor:n}});var aN=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const lN=o.forwardRef((e,t)=>{const n=Gu(),{prefixCls:r,className:i,rootClassName:l,block:c,options:s=[],size:u="middle",style:d,vertical:p,shape:f="default",name:m=n}=e,g=aN(e,["prefixCls","className","rootClassName","block","options","size","style","vertical","shape","name"]),{getPrefixCls:v,direction:h,className:b,style:y}=Se("segmented"),C=v("segmented",r),[x,$,w]=iN(C),S=lc(u),k=o.useMemo(()=>s.map(e=>{if(function(e){return"object"===typeof e&&!!(null===e||void 0===e?void 0:e.icon)}(e)){const{icon:t,label:n}=e,r=aN(e,["icon","label"]);return Object.assign(Object.assign({},r),{label:o.createElement(o.Fragment,null,o.createElement("span",{className:`${C}-item-icon`},t),n&&o.createElement("span",null,n))})}return e}),[s,C]),E=a()(i,l,b,{[`${C}-block`]:c,[`${C}-sm`]:"small"===S,[`${C}-lg`]:"large"===S,[`${C}-vertical`]:p,[`${C}-shape-${f}`]:"round"===f},$,w),O=Object.assign(Object.assign({},y),d);return x(o.createElement(eN,Object.assign({},g,{name:m,className:E,style:O,options:k,ref:t,prefixCls:C,direction:h,vertical:p})))});const cN=lN,sN=r().createContext({}),uN=r().createContext({}),dN=e=>{let{prefixCls:t,value:n,onChange:o}=e;return r().createElement("div",{className:`${t}-clear`,onClick:()=>{if(o&&n&&!n.cleared){const e=n.toHsb();e.a=0;const t=Ns(e);t.cleared=!0,o(t)}}})},pN="hex",fN="rgb",mN="hsb";var gN=n(25975);function vN(){return"function"===typeof BigInt}function hN(e){return!e&&0!==e&&!Number.isNaN(e)||!String(e).trim()}function bN(e){var t=e.trim(),n=t.startsWith("-");n&&(t=t.slice(1)),(t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,"")).startsWith(".")&&(t="0".concat(t));var o=t||"0",r=o.split("."),i=r[0]||"0",a=r[1]||"0";"0"===i&&"0"===a&&(n=!1);var l=n?"-":"";return{negative:n,negativeStr:l,trimStr:o,integerStr:i,decimalStr:a,fullStr:"".concat(l).concat(o)}}function yN(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function CN(e){var t=String(e);if(yN(e)){var n=Number(t.slice(t.indexOf("e-")+2)),o=t.match(/\.(\d+)/);return null!==o&&void 0!==o&&o[1]&&(n+=o[1].length),n}return t.includes(".")&&$N(t)?t.length-t.indexOf(".")-1:0}function xN(e){var t=String(e);if(yN(e)){if(e>Number.MAX_SAFE_INTEGER)return String(vN()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e<Number.MIN_SAFE_INTEGER)return String(vN()?BigInt(e).toString():Number.MIN_SAFE_INTEGER);t=e.toFixed(CN(t))}return bN(t).fullStr}function $N(e){return"number"===typeof e?!Number.isNaN(e):!!e&&(/^\s*-?\d+(\.\d+)?\s*$/.test(e)||/^\s*-?\d+\.\s*$/.test(e)||/^\s*-?\.\d+\s*$/.test(e))}var wN=function(){function e(t){if(K(this,e),(0,Ee.A)(this,"origin",""),(0,Ee.A)(this,"negative",void 0),(0,Ee.A)(this,"integer",void 0),(0,Ee.A)(this,"decimal",void 0),(0,Ee.A)(this,"decimalLen",void 0),(0,Ee.A)(this,"empty",void 0),(0,Ee.A)(this,"nan",void 0),hN(t))this.empty=!0;else if(this.origin=String(t),"-"===t||Number.isNaN(t))this.nan=!0;else{var n=t;if(yN(n)&&(n=Number(n)),$N(n="string"===typeof n?n:xN(n))){var o=bN(n);this.negative=o.negative;var r=o.trimStr.split(".");this.integer=BigInt(r[0]);var i=r[1]||"0";this.decimal=BigInt(i),this.decimalLen=i.length}else this.nan=!0}}return X(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="".concat(this.getMark()).concat(this.getIntegerStr()).concat(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,o){var r=Math.max(this.getDecimalStr().length,t.getDecimalStr().length),i=n(this.alignDecimal(r),t.alignDecimal(r)).toString(),a=o(r),l=bN(i),c=l.negativeStr,s=l.trimStr,u="".concat(c).concat(s.padStart(a+1,"0"));return new e("".concat(u.slice(0,-a),".").concat(u.slice(-a)))}},{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 2*e})}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(e){return this.toString()===(null===e||void 0===e?void 0: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&&void 0!==arguments[0])||arguments[0]?this.isInvalidate()?"":bN("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}(),SN=function(){function e(t){K(this,e),(0,Ee.A)(this,"origin",""),(0,Ee.A)(this,"number",void 0),(0,Ee.A)(this,"empty",void 0),hN(t)?this.empty=!0:(this.origin=String(t),this.number=Number(t))}return X(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 o=this.number+n;if(o>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(o<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var r=Math.max(CN(this.number),CN(n));return new e(o.toFixed(r))}},{key:"multi",value:function(t){var n=Number(t);if(this.isInvalidate()||Number.isNaN(n))return new e(NaN);var o=this.number*n;if(o>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(o<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var r=Math.max(CN(this.number),CN(n));return new e(o.toFixed(r))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return Number.isNaN(this.number)}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(e){return this.toNumber()===(null===e||void 0===e?void 0: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&&void 0!==arguments[0])||arguments[0]?this.isInvalidate()?"":xN(this.number):this.origin}}]),e}();function kN(e){return vN()?new wN(e):new SN(e)}function EN(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(""===e)return"";var r=bN(e),i=r.negativeStr,a=r.integerStr,l=r.decimalStr,c="".concat(t).concat(l),s="".concat(i).concat(a);if(n>=0){var u=Number(l[n]);return u>=5&&!o?EN(kN(e).add("".concat(i,"0.").concat("0".repeat(n)).concat(10-u)).toString(),t,n,o):0===n?s:"".concat(s).concat(t).concat(l.padEnd(n,"0").slice(0,n))}return".0"===c?s:"".concat(s).concat(c)}const ON=kN;function AN(e,t,n){var o=t.cloneNode(!0),r=Object.create(e,{target:{value:o},currentTarget:{value:o}});return o.value=n,"number"===typeof t.selectionStart&&"number"===typeof t.selectionEnd&&(o.selectionStart=t.selectionStart,o.selectionEnd=t.selectionEnd),o.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},r}function IN(e,t,n,o){if(n){var r=t;"click"!==t.type?"file"===e.type||void 0===o?n(r):n(r=AN(t,e,o)):n(r=AN(t,e,""))}}function NN(e,t){if(e){e.focus(t);var n=(t||{}).cursor;if(n){var o=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(o,o);break;default:e.setSelectionRange(0,o)}}}}var MN=r().forwardRef(function(e,t){var n,i,c,s=e.inputElement,u=e.children,f=e.prefixCls,m=e.prefix,g=e.suffix,v=e.addonBefore,h=e.addonAfter,b=e.className,y=e.style,C=e.disabled,x=e.readOnly,$=e.focused,w=e.triggerFocus,S=e.allowClear,k=e.value,E=e.handleReset,O=e.hidden,A=e.classes,I=e.classNames,N=e.dataAttrs,M=e.styles,j=e.components,P=e.onClear,R=null!==u&&void 0!==u?u:s,T=(null===j||void 0===j?void 0:j.affixWrapper)||"span",z=(null===j||void 0===j?void 0:j.groupWrapper)||"span",B=(null===j||void 0===j?void 0:j.wrapper)||"span",H=(null===j||void 0===j?void 0:j.groupAddon)||"span",D=(0,o.useRef)(null),L=function(e){return!!(e.prefix||e.suffix||e.allowClear)}(e),F=(0,o.cloneElement)(R,{value:k,className:a()(null===(n=R.props)||void 0===n?void 0:n.className,!L&&(null===I||void 0===I?void 0:I.variant))||null}),W=(0,o.useRef)(null);if(r().useImperativeHandle(t,function(){return{nativeElement:W.current||D.current}}),L){var _=null;if(S){var K=!C&&!x&&k,q="".concat(f,"-clear-icon"),V="object"===(0,p.A)(S)&&null!==S&&void 0!==S&&S.clearIcon?S.clearIcon:"\u2716";_=r().createElement("button",{type:"button",tabIndex:-1,onClick:function(e){null===E||void 0===E||E(e),null===P||void 0===P||P()},onMouseDown:function(e){return e.preventDefault()},className:a()(q,(0,Ee.A)((0,Ee.A)({},"".concat(q,"-hidden"),!K),"".concat(q,"-has-suffix"),!!g))},V)}var X="".concat(f,"-affix-wrapper"),G=a()(X,(0,Ee.A)((0,Ee.A)((0,Ee.A)((0,Ee.A)((0,Ee.A)({},"".concat(f,"-disabled"),C),"".concat(X,"-disabled"),C),"".concat(X,"-focused"),$),"".concat(X,"-readonly"),x),"".concat(X,"-input-with-clear-btn"),g&&S&&k),null===A||void 0===A?void 0:A.affixWrapper,null===I||void 0===I?void 0:I.affixWrapper,null===I||void 0===I?void 0:I.variant),Y=(g||S)&&r().createElement("span",{className:a()("".concat(f,"-suffix"),null===I||void 0===I?void 0:I.suffix),style:null===M||void 0===M?void 0:M.suffix},_,g);F=r().createElement(T,(0,l.A)({className:G,style:null===M||void 0===M?void 0:M.affixWrapper,onClick:function(e){var t;null!==(t=D.current)&&void 0!==t&&t.contains(e.target)&&(null===w||void 0===w||w())}},null===N||void 0===N?void 0:N.affixWrapper,{ref:D}),m&&r().createElement("span",{className:a()("".concat(f,"-prefix"),null===I||void 0===I?void 0:I.prefix),style:null===M||void 0===M?void 0:M.prefix},m),F,Y)}if(function(e){return!(!e.addonBefore&&!e.addonAfter)}(e)){var U="".concat(f,"-group"),Q="".concat(U,"-addon"),Z="".concat(U,"-wrapper"),J=a()("".concat(f,"-wrapper"),U,null===A||void 0===A?void 0:A.wrapper,null===I||void 0===I?void 0:I.wrapper),ee=a()(Z,(0,Ee.A)({},"".concat(Z,"-disabled"),C),null===A||void 0===A?void 0:A.group,null===I||void 0===I?void 0:I.groupWrapper);F=r().createElement(z,{className:ee,ref:W},r().createElement(B,{className:J},v&&r().createElement(H,{className:Q},v),F,h&&r().createElement(H,{className:Q},h)))}return r().cloneElement(F,{className:a()(null===(i=F.props)||void 0===i?void 0:i.className,b)||null,style:(0,d.A)((0,d.A)({},null===(c=F.props)||void 0===c?void 0:c.style),y),hidden:O})});const jN=MN;var PN=["show"];function RN(e,t){return o.useMemo(function(){var n={};t&&(n.show="object"===(0,p.A)(t)&&t.formatter?t.formatter:!!t);var o=n=(0,d.A)((0,d.A)({},n),e),r=o.show,i=(0,cr.A)(o,PN);return(0,d.A)((0,d.A)({},i),{},{show:!!r,showFormatter:"function"===typeof r?r:void 0,strategy:i.strategy||function(e){return e.length}})},[e,t])}var TN=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],zN=(0,o.forwardRef)(function(e,t){var n=e.autoComplete,i=e.onChange,c=e.onFocus,s=e.onBlur,u=e.onPressEnter,p=e.onKeyDown,f=e.onKeyUp,m=e.prefixCls,g=void 0===m?"rc-input":m,v=e.disabled,h=e.htmlSize,b=e.className,y=e.maxLength,C=e.suffix,x=e.showCount,$=e.count,w=e.type,S=void 0===w?"text":w,k=e.classes,E=e.classNames,O=e.styles,A=e.onCompositionStart,I=e.onCompositionEnd,N=(0,cr.A)(e,TN),M=(0,o.useState)(!1),j=(0,ke.A)(M,2),P=j[0],R=j[1],T=(0,o.useRef)(!1),z=(0,o.useRef)(!1),B=(0,o.useRef)(null),H=(0,o.useRef)(null),D=function(e){B.current&&NN(B.current,e)},L=Ln(e.defaultValue,{value:e.value}),F=(0,ke.A)(L,2),W=F[0],_=F[1],K=void 0===W||null===W?"":String(W),q=(0,o.useState)(null),V=(0,ke.A)(q,2),X=V[0],G=V[1],Y=RN($,x),U=Y.max||y,Q=Y.strategy(K),Z=!!U&&Q>U;(0,o.useImperativeHandle)(t,function(){var e;return{focus:D,blur:function(){var e;null===(e=B.current)||void 0===e||e.blur()},setSelectionRange:function(e,t,n){var o;null===(o=B.current)||void 0===o||o.setSelectionRange(e,t,n)},select:function(){var e;null===(e=B.current)||void 0===e||e.select()},input:B.current,nativeElement:(null===(e=H.current)||void 0===e?void 0:e.nativeElement)||B.current}}),(0,o.useEffect)(function(){z.current&&(z.current=!1),R(function(e){return(!e||!v)&&e})},[v]);var J=function(e,t,n){var o,r,a=t;if(!T.current&&Y.exceedFormatter&&Y.max&&Y.strategy(t)>Y.max)t!==(a=Y.exceedFormatter(t,{max:Y.max}))&&G([(null===(o=B.current)||void 0===o?void 0:o.selectionStart)||0,(null===(r=B.current)||void 0===r?void 0:r.selectionEnd)||0]);else if("compositionEnd"===n.source)return;_(a),B.current&&IN(B.current,e,i,a)};(0,o.useEffect)(function(){var e;X&&(null===(e=B.current)||void 0===e||e.setSelectionRange.apply(e,se(X)))},[X]);var ee=function(e){J(e,e.target.value,{source:"change"})},te=function(e){T.current=!1,J(e,e.currentTarget.value,{source:"compositionEnd"}),null===I||void 0===I||I(e)},ne=function(e){u&&"Enter"===e.key&&!z.current&&(z.current=!0,u(e)),null===p||void 0===p||p(e)},oe=function(e){"Enter"===e.key&&(z.current=!1),null===f||void 0===f||f(e)},re=function(e){R(!0),null===c||void 0===c||c(e)},ie=function(e){z.current&&(z.current=!1),R(!1),null===s||void 0===s||s(e)},ae=Z&&"".concat(g,"-out-of-range");return r().createElement(jN,(0,l.A)({},N,{prefixCls:g,className:a()(b,ae),handleReset:function(e){_(""),D(),B.current&&IN(B.current,e,i)},value:K,focused:P,triggerFocus:D,suffix:function(){var e=Number(U)>0;if(C||Y.show){var t=Y.showFormatter?Y.showFormatter({value:K,count:Q,maxLength:U}):"".concat(Q).concat(e?" / ".concat(U):"");return r().createElement(r().Fragment,null,Y.show&&r().createElement("span",{className:a()("".concat(g,"-show-count-suffix"),(0,Ee.A)({},"".concat(g,"-show-count-has-suffix"),!!C),null===E||void 0===E?void 0:E.count),style:(0,d.A)({},null===O||void 0===O?void 0:O.count)},t),C)}return null}(),disabled:v,classes:k,classNames:E,styles:O,ref:H}),function(){var t=Ul(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return r().createElement("input",(0,l.A)({autoComplete:n},t,{onChange:ee,onFocus:re,onBlur:ie,onKeyDown:ne,onKeyUp:oe,className:a()(g,(0,Ee.A)({},"".concat(g,"-disabled"),v),null===E||void 0===E?void 0:E.input),style:null===O||void 0===O?void 0:O.input,ref:B,size:h,type:S,onCompositionStart:function(e){T.current=!0,null===A||void 0===A||A(e)},onCompositionEnd:te}))}())});const BN=zN;const HN=function(){var e=(0,o.useState)(!1),t=(0,ke.A)(e,2),n=t[0],r=t[1];return ut(function(){r(Zm())},[]),n};function DN(e){var t=e.prefixCls,n=e.upNode,r=e.downNode,i=e.upDisabled,c=e.downDisabled,s=e.onStep,u=o.useRef(),d=o.useRef([]),p=o.useRef();p.current=s;var f=function(){clearTimeout(u.current)},m=function(e,t){e.preventDefault(),f(),p.current(t),u.current=setTimeout(function e(){p.current(t),u.current=setTimeout(e,200)},600)};if(o.useEffect(function(){return function(){f(),d.current.forEach(function(e){return ve.cancel(e)})}},[]),HN())return null;var g="".concat(t,"-handler"),v=a()(g,"".concat(g,"-up"),(0,Ee.A)({},"".concat(g,"-up-disabled"),i)),h=a()(g,"".concat(g,"-down"),(0,Ee.A)({},"".concat(g,"-down-disabled"),c)),b=function(){return d.current.push(ve(f))},y={unselectable:"on",role:"button",onMouseUp:b,onMouseLeave:b};return o.createElement("div",{className:"".concat(g,"-wrap")},o.createElement("span",(0,l.A)({},y,{onMouseDown:function(e){m(e,!0)},"aria-label":"Increase Value","aria-disabled":i,className:v}),n||o.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),o.createElement("span",(0,l.A)({},y,{onMouseDown:function(e){m(e,!1)},"aria-label":"Decrease Value","aria-disabled":c,className:h}),r||o.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function LN(e){var t="number"===typeof e?xN(e):bN(e).fullStr;return t.includes(".")?bN(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}var FN=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","changeOnWheel","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur","domRef"],WN=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],_N=function(e,t){return e||t.isEmpty()?t.toString():t.toNumber()},KN=function(e){var t=ON(e);return t.isInvalidate()?null:t},qN=o.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,i=e.style,c=e.min,s=e.max,d=e.step,f=void 0===d?1:d,m=e.defaultValue,g=e.value,v=e.disabled,h=e.readOnly,y=e.upHandler,C=e.downHandler,x=e.keyboard,$=e.changeOnWheel,w=void 0!==$&&$,S=e.controls,k=void 0===S||S,E=(e.classNames,e.stringMode),O=e.parser,A=e.formatter,I=e.precision,N=e.decimalSeparator,M=e.onChange,j=e.onInput,P=e.onPressEnter,R=e.onStep,T=e.changeOnBlur,z=void 0===T||T,B=e.domRef,H=(0,cr.A)(e,FN),D="".concat(n,"-input"),L=o.useRef(null),F=o.useState(!1),W=(0,ke.A)(F,2),_=W[0],K=W[1],q=o.useRef(!1),V=o.useRef(!1),X=o.useRef(!1),G=o.useState(function(){return ON(null!==g&&void 0!==g?g:m)}),Y=(0,ke.A)(G,2),U=Y[0],Q=Y[1];var Z=o.useCallback(function(e,t){if(!t)return I>=0?I:Math.max(CN(e),CN(f))},[I,f]),J=o.useCallback(function(e){var t=String(e);if(O)return O(t);var n=t;return N&&(n=n.replace(N,".")),n.replace(/[^\w.-]+/g,"")},[O,N]),ee=o.useRef(""),te=o.useCallback(function(e,t){if(A)return A(e,{userTyping:t,input:String(ee.current)});var n="number"===typeof e?xN(e):e;if(!t){var o=Z(n,t);if($N(n)&&(N||o>=0))n=EN(n,N||".",o)}return n},[A,Z,N]),ne=o.useState(function(){var e=null!==m&&void 0!==m?m:g;return U.isInvalidate()&&["string","number"].includes((0,p.A)(e))?Number.isNaN(e)?"":e:te(U.toString(),!1)}),oe=(0,ke.A)(ne,2),re=oe[0],ie=oe[1];function ae(e,t){ie(te(e.isInvalidate()?e.toString(!1):e.toString(!t),t))}ee.current=re;var le=o.useMemo(function(){return KN(s)},[s,I]),ce=o.useMemo(function(){return KN(c)},[c,I]),se=o.useMemo(function(){return!(!le||!U||U.isInvalidate())&&le.lessEquals(U)},[le,U]),ue=o.useMemo(function(){return!(!ce||!U||U.isInvalidate())&&U.lessEquals(ce)},[ce,U]),de=function(e,t){var n=(0,o.useRef)(null);return[function(){try{var t=e.selectionStart,o=e.selectionEnd,r=e.value,i=r.substring(0,t),a=r.substring(o);n.current={start:t,end:o,value:r,beforeTxt:i,afterTxt:a}}catch($i){}},function(){if(e&&n.current&&t)try{var o=e.value,r=n.current,i=r.beforeTxt,a=r.afterTxt,l=r.start,c=o.length;if(o.startsWith(i))c=i.length;else if(o.endsWith(a))c=o.length-n.current.afterTxt.length;else{var s=i[l-1],d=o.indexOf(s,l-1);-1!==d&&(c=d+1)}e.setSelectionRange(c,c)}catch($i){(0,u.Ay)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat($i.message))}}]}(L.current,_),pe=(0,ke.A)(de,2),fe=pe[0],me=pe[1],ge=function(e){return le&&!e.lessEquals(le)?le:ce&&!ce.lessEquals(e)?ce:null},he=function(e){return!ge(e)},be=function(e,t){var n,o=e,r=he(o)||o.isEmpty();if(o.isEmpty()||t||(o=ge(o)||o,r=!0),!h&&!v&&r){var i=o.toString(),a=Z(i,t);return a>=0&&(o=ON(EN(i,".",a)),he(o)||(o=ON(EN(i,".",a,!0)))),o.equals(U)||(n=o,void 0===g&&Q(n),null===M||void 0===M||M(o.isEmpty()?null:_N(E,o)),void 0===g&&ae(o,t)),o}return U},ye=function(){var e=(0,o.useRef)(0),t=function(){ve.cancel(e.current)};return(0,o.useEffect)(function(){return t},[]),function(n){t(),e.current=ve(function(){n()})}}(),Ce=function e(t){if(fe(),ee.current=t,ie(t),!V.current){var n=J(t),o=ON(n);o.isNaN()||be(o,!0)}null===j||void 0===j||j(t),ye(function(){var n=t;O||(n=t.replace(/\u3002/g,".")),n!==t&&e(n)})},xe=function(e){var t;if(!(e&&se||!e&&ue)){q.current=!1;var n=ON(X.current?LN(f):f);e||(n=n.negate());var o=(U||ON(0)).add(n.toString()),r=be(o,!1);null===R||void 0===R||R(_N(E,r),{offset:X.current?LN(f):f,type:e?"up":"down"}),null===(t=L.current)||void 0===t||t.focus()}},$e=function(e){var t,n=ON(J(re));t=n.isNaN()?be(U,e):be(n,e),void 0!==g?ae(U,!1):t.isNaN()||ae(t,!1)};o.useEffect(function(){if(w&&_){var e=function(e){xe(e.deltaY<0),e.preventDefault()},t=L.current;if(t)return t.addEventListener("wheel",e,{passive:!1}),function(){return t.removeEventListener("wheel",e)}}});return st(function(){U.isInvalidate()||ae(U,!1)},[I,A]),st(function(){var e=ON(g);Q(e);var t=ON(J(re));e.equals(t)&&q.current&&!A||ae(e,q.current)},[g]),st(function(){A&&me()},[re]),o.createElement("div",{ref:B,className:a()(n,r,(0,Ee.A)((0,Ee.A)((0,Ee.A)((0,Ee.A)((0,Ee.A)({},"".concat(n,"-focused"),_),"".concat(n,"-disabled"),v),"".concat(n,"-readonly"),h),"".concat(n,"-not-a-number"),U.isNaN()),"".concat(n,"-out-of-range"),!U.isInvalidate()&&!he(U))),style:i,onFocus:function(){K(!0)},onBlur:function(){z&&$e(!1),K(!1),q.current=!1},onKeyDown:function(e){var t=e.key,n=e.shiftKey;q.current=!0,X.current=n,"Enter"===t&&(V.current||(q.current=!1),$e(!1),null===P||void 0===P||P(e)),!1!==x&&!V.current&&["Up","ArrowUp","Down","ArrowDown"].includes(t)&&(xe("Up"===t||"ArrowUp"===t),e.preventDefault())},onKeyUp:function(){q.current=!1,X.current=!1},onCompositionStart:function(){V.current=!0},onCompositionEnd:function(){V.current=!1,Ce(L.current.value)},onBeforeInput:function(){q.current=!0}},k&&o.createElement(DN,{prefixCls:n,upNode:y,downNode:C,upDisabled:se,downDisabled:ue,onStep:xe}),o.createElement("div",{className:"".concat(D,"-wrap")},o.createElement("input",(0,l.A)({autoComplete:"off",role:"spinbutton","aria-valuemin":c,"aria-valuemax":s,"aria-valuenow":U.isInvalidate()?null:U.toString(),step:f},H,{ref:(0,b.K4)(L,t),className:D,value:re,onChange:function(e){Ce(e.target.value)},disabled:v,readOnly:h}))))}),VN=o.forwardRef(function(e,t){var n=e.disabled,r=e.style,i=e.prefixCls,a=void 0===i?"rc-input-number":i,c=e.value,s=e.prefix,u=e.suffix,d=e.addonBefore,p=e.addonAfter,f=e.className,m=e.classNames,g=(0,cr.A)(e,WN),v=o.useRef(null),h=o.useRef(null),b=o.useRef(null),y=function(e){b.current&&NN(b.current,e)};return o.useImperativeHandle(t,function(){return e=b.current,t={focus:y,nativeElement:v.current.nativeElement||h.current},"undefined"!==typeof Proxy&&e?new Proxy(e,{get:function(e,n){if(t[n])return t[n];var o=e[n];return"function"===typeof o?o.bind(e):o}}):e;var e,t}),o.createElement(jN,{className:f,triggerFocus:y,prefixCls:a,value:c,disabled:n,style:r,prefix:s,suffix:u,addonAfter:p,addonBefore:d,classNames:m,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:v},o.createElement(qN,(0,l.A)({prefixCls:a,disabled:n,ref:b,domRef:h,className:null===m||void 0===m?void 0:m.input},g)))});const XN=VN,GN=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),YN=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},GN(Jn(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),UN=(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}}),QN=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},UN(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),ZN=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},UN(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},YN(e))}),QN(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),QN(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),JN=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),eM=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${nt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},JN(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),JN(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},YN(e))}})}),tM=(e,t)=>{const{componentCls:n}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${n}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${n}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},nM=(e,t)=>{var n;return{background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:null!==(n=null===t||void 0===t?void 0:t.inputColor)&&void 0!==n?n:"unset"},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}},oM=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},nM(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),rM=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},nM(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},YN(e))}),oM(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),oM(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),iM=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),aM=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:"static"}}},iM(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),iM(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:`${nt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${nt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${nt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${nt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${nt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${nt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),lM=(e,t)=>({background:e.colorBgContainer,borderWidth:`${nt(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.borderColor} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${t.borderColor} transparent`,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:`transparent transparent ${t.activeBorderColor} transparent`,outline:0,backgroundColor:e.activeBg}}),cM=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},lM(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`}}),sM=(e,t)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},lM(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"}}),cM(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),cM(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),uM=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),dM=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:o,paddingInlineLG:r}=e;return{padding:`${nt(t)} ${nt(r)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:o}},pM=e=>({padding:`${nt(e.paddingBlockSM)} ${nt(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),fM=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${nt(e.paddingBlock)} ${nt(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},uM(e.colorTextPlaceholder)),{"&-lg":Object.assign({},dM(e)),"&-sm":Object.assign({},pM(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),mM=e=>{const{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`]:Object.assign({},dM(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},pM(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{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 ${nt(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${nt(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${nt(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${nt(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${n}-cascader-picker`]:{margin:`-9px ${nt(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}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{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 ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{[`${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},[`\n & > ${t}-affix-wrapper,\n & > ${t}-number-affix-wrapper,\n & > ${n}-picker-range\n `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:"none"},[`& > ${n}-select > ${n}-select-selector,\n & > ${n}-select-auto-complete ${t},\n & > ${n}-cascader-picker ${t},\n & > ${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,\n & > ${n}-select:first-child > ${n}-select-selector,\n & > ${n}-select-auto-complete:first-child ${t},\n & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,\n & > ${n}-select:last-child > ${n}-select-selector,\n & > ${n}-cascader-picker:last-child ${t},\n & > ${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`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},gM=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:o,calc:r}=e,i=r(n).sub(r(o).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},po(e)),fM(e)),ZN(e)),rM(e)),tM(e)),sM(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:i,paddingBottom:i}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:"none"}})}},vM=e=>{const{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},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${nt(e.inputAffixPadding)}`}}}},hM=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:o,motionDurationSlow:r,colorIcon:i,colorIconHover:a,iconCls:l}=e,c=`${t}-affix-wrapper`,s=`${t}-affix-wrapper-disabled`;return{[c]:Object.assign(Object.assign(Object.assign(Object.assign({},fM(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-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:o,direction:"ltr"},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),vM(e)),{[`${l}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${r}`,"&:hover":{color:a}}}),[`${t}-underlined`]:{borderRadius:0},[s]:{[`${l}${t}-password-icon`]:{color:i,cursor:"not-allowed","&:hover":{color:i}}}}},bM=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:o}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},po(e)),mM(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({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:o}}},eM(e)),aM(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}}})})}},yM=e=>{const{componentCls:t,antCls:n}=e,o=`${t}-search`;return{[o]:{[t]:{"&:hover, &:focus":{[`+ ${t}-group-addon ${o}-button:not(${n}-btn-color-primary):not(${n}-btn-variant-text)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{height:e.controlHeight,borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal()},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${o}-button`]:{marginInlineEnd:-1,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${o}-button:not(${n}-btn-color-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{inset:0}}}},[`${o}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},"&-large":{[`${t}-affix-wrapper, ${o}-button`]:{height:e.controlHeightLG}},"&-small":{[`${t}-affix-wrapper, ${o}-button`]:{height:e.controlHeightSM}},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button,\n > ${t},\n ${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},CM=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},xM=qo(["Input","Shared"],e=>{const t=Jn(e,Lk(e));return[gM(t),hM(t)]},Fk,{resetFont:!1}),$M=qo(["Input","Component"],e=>{const t=Jn(e,Lk(e));return[bM(t),yM(t),CM(t),gu(t)]},Fk,{resetFont:!1}),wM=(e,t)=>{let{componentCls:n,borderRadiusSM:o,borderRadiusLG:r}=e;const i="lg"===t?r:o;return{[`&-${t}`]:{[`${n}-handler-wrap`]:{borderStartEndRadius:i,borderEndEndRadius:i},[`${n}-handler-up`]:{borderStartEndRadius:i},[`${n}-handler-down`]:{borderEndEndRadius:i}}}},SM=e=>{const{componentCls:t,lineWidth:n,lineType:o,borderRadius:r,inputFontSizeSM:i,inputFontSizeLG:a,controlHeightLG:l,controlHeightSM:c,colorError:s,paddingInlineSM:u,paddingBlockSM:d,paddingBlockLG:p,paddingInlineLG:f,colorIcon:m,motionDurationMid:g,handleHoverColor:v,handleOpacity:h,paddingInline:b,paddingBlock:y,handleBg:C,handleActiveBg:x,colorTextDisabled:$,borderRadiusSM:w,borderRadiusLG:S,controlWidth:k,handleBorderColor:E,filledHandleBg:O,lineHeightLG:A,calc:I}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},po(e)),fM(e)),{display:"inline-block",width:k,margin:0,padding:0,borderRadius:r}),ZN(e,{[`${t}-handler-wrap`]:{background:C,[`${t}-handler-down`]:{borderBlockStart:`${nt(n)} ${o} ${E}`}}})),rM(e,{[`${t}-handler-wrap`]:{background:O,[`${t}-handler-down`]:{borderBlockStart:`${nt(n)} ${o} ${E}`}},"&:focus-within":{[`${t}-handler-wrap`]:{background:C}}})),sM(e,{[`${t}-handler-wrap`]:{background:C,[`${t}-handler-down`]:{borderBlockStart:`${nt(n)} ${o} ${E}`}}})),tM(e)),{"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:a,lineHeight:A,borderRadius:S,[`input${t}-input`]:{height:I(l).sub(I(n).mul(2)).equal(),padding:`${nt(p)} ${nt(f)}`}},"&-sm":{padding:0,fontSize:i,borderRadius:w,[`input${t}-input`]:{height:I(c).sub(I(n).mul(2)).equal(),padding:`${nt(d)} ${nt(u)}`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:s}}},"&-group":Object.assign(Object.assign(Object.assign({},po(e)),mM(e)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:S,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:w}}},eM(e)),aM(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${t}-input`]:{cursor:"not-allowed"},[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},po(e)),{width:"100%",padding:`${nt(y)} ${nt(b)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:r,outline:0,transition:`all ${g} linear`,appearance:"textfield",fontSize:"inherit"}),uM(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}})},{[t]:Object.assign(Object.assign(Object.assign({[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleVisibleWidth,opacity:h,height:"100%",borderStartStartRadius:0,borderStartEndRadius:r,borderEndEndRadius:r,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${g}`,overflow:"hidden",[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`\n ${t}-handler-up-inner,\n ${t}-handler-down-inner\n `]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:m,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${nt(n)} ${o} ${E}`,transition:`all ${g} linear`,"&:active":{background:x},"&:hover":{height:"60%",[`\n ${t}-handler-up-inner,\n ${t}-handler-down-inner\n `]:{color:v}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},{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"}}),{color:m,transition:`all ${g} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:r},[`${t}-handler-down`]:{borderEndEndRadius:r}},wM(e,"lg")),wM(e,"sm")),{"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"},[`${t}-input`]:{color:"inherit"}},[`\n ${t}-handler-up-disabled,\n ${t}-handler-down-disabled\n `]:{cursor:"not-allowed"},[`\n ${t}-handler-up-disabled:hover &-handler-up-inner,\n ${t}-handler-down-disabled:hover &-handler-down-inner\n `]:{color:$}})}]},kM=e=>{const{componentCls:t,paddingBlock:n,paddingInline:o,inputAffixPadding:r,controlWidth:i,borderRadiusLG:a,borderRadiusSM:l,paddingInlineLG:c,paddingInlineSM:s,paddingBlockLG:u,paddingBlockSM:d,motionDurationMid:p}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign({[`input${t}-input`]:{padding:`${nt(n)} 0`}},fM(e)),{position:"relative",display:"inline-flex",alignItems:"center",width:i,padding:0,paddingInlineStart:o,"&-lg":{borderRadius:a,paddingInlineStart:c,[`input${t}-input`]:{padding:`${nt(u)} 0`}},"&-sm":{borderRadius:l,paddingInlineStart:s,[`input${t}-input`]:{padding:`${nt(d)} 0`}},[`&:not(${t}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${t}-disabled`]:{background:"transparent"},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:r},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:o,marginInlineStart:r,transition:`margin ${p}`}},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1},[`&:not(${t}-affix-wrapper-without-controls):hover ${t}-suffix`]:{marginInlineEnd:e.calc(e.handleWidth).add(o).equal()}}),[`${t}-underlined`]:{borderRadius:0}}},EM=qo("InputNumber",e=>{const t=Jn(e,Lk(e));return[SM(t),kM(t),gu(t)]},e=>{var t;const n=null!==(t=e.handleVisible)&&void 0!==t?t:"auto",o=e.controlHeightSM-2*e.lineWidth;return Object.assign(Object.assign({},Fk(e)),{controlWidth:90,handleWidth:o,handleFontSize:e.fontSize/2,handleVisible:n,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new wo.Y(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:!0===n?1:0,handleVisibleWidth:!0===n?o:0})},{unitless:{handleOpacity:!0},resetFont:!1});var OM=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const AM=o.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=o.useContext(xe),i=o.useRef(null);o.useImperativeHandle(t,()=>i.current);const{className:l,rootClassName:c,size:s,disabled:u,prefixCls:d,addonBefore:p,addonAfter:f,prefix:m,suffix:g,bordered:v,readOnly:h,status:b,controls:y,variant:C}=e,x=OM(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),$=n("input-number",d),w=Mi($),[S,k,E]=EM($,w),{compactSize:O,compactItemClassnames:A}=mc($,r);let I=o.createElement(gN.A,{className:`${$}-handler-up-inner`}),N=o.createElement(db.A,{className:`${$}-handler-down-inner`});const M="boolean"===typeof y?y:void 0;"object"===typeof y&&(I="undefined"===typeof y.upIcon?I:o.createElement("span",{className:`${$}-handler-up-inner`},y.upIcon),N="undefined"===typeof y.downIcon?N:o.createElement("span",{className:`${$}-handler-down-inner`},y.downIcon));const{hasFeedback:j,status:P,isFormItemInput:R,feedbackIcon:T}=o.useContext(Ep),z=ch(P,b),B=lc(e=>{var t;return null!==(t=null!==s&&void 0!==s?s:O)&&void 0!==t?t:e}),H=o.useContext(Ga),D=null!==u&&void 0!==u?u:H,[L,F]=yh("inputNumber",C,v),W=j&&o.createElement(o.Fragment,null,T),_=a()({[`${$}-lg`]:"large"===B,[`${$}-sm`]:"small"===B,[`${$}-rtl`]:"rtl"===r,[`${$}-in-form-item`]:R},k),K=`${$}-group`;return S(o.createElement(XN,Object.assign({ref:i,disabled:D,className:a()(E,w,l,c,A),upHandler:I,downHandler:N,prefixCls:$,readOnly:h,controls:M,prefix:m,suffix:W||g,addonBefore:p&&o.createElement(Ip,{form:!0,space:!0},p),addonAfter:f&&o.createElement(Ip,{form:!0,space:!0},f),classNames:{input:_,variant:a()({[`${$}-${L}`]:F},lh($,z,j)),affixWrapper:a()({[`${$}-affix-wrapper-sm`]:"small"===B,[`${$}-affix-wrapper-lg`]:"large"===B,[`${$}-affix-wrapper-rtl`]:"rtl"===r,[`${$}-affix-wrapper-without-controls`]:!1===y||D},k),wrapper:a()({[`${K}-rtl`]:"rtl"===r},k),groupWrapper:a()({[`${$}-group-wrapper-sm`]:"small"===B,[`${$}-group-wrapper-lg`]:"large"===B,[`${$}-group-wrapper-rtl`]:"rtl"===r,[`${$}-group-wrapper-${L}`]:F},lh(`${$}-group-wrapper`,z,j),k)}},x)))}),IM=AM;IM._InternalPanelDoNotUseOrYouWillBeFired=e=>o.createElement(hl,{theme:{components:{InputNumber:{handleVisible:!0}}}},o.createElement(AM,Object.assign({},e)));const NM=IM,MM=e=>{let{prefixCls:t,min:n=0,max:i=100,value:l,onChange:c,className:s,formatter:u}=e;const d=`${t}-steppers`,[p,f]=(0,o.useState)(0),m=Number.isNaN(l)?p:l;return r().createElement(NM,{className:a()(d,s),min:n,max:i,value:m,formatter:u,size:"small",onChange:e=>{f(e||0),null===c||void 0===c||c(e)}})},jM=e=>{let{prefixCls:t,value:n,onChange:i}=e;const a=`${t}-alpha-input`,[l,c]=(0,o.useState)(()=>Ns(n||"#000")),s=n||l;return r().createElement(MM,{value:js(s),prefixCls:t,formatter:e=>`${e}%`,className:a,onChange:e=>{const t=s.toHsb();t.a=(e||0)/100;const n=Ns(t);c(n),null===i||void 0===i||i(n)}})},PM=e=>{let t;return"object"===typeof e&&(null===e||void 0===e?void 0:e.clearIcon)?t=e:e&&(t={clearIcon:r().createElement(rr.A,null)}),t};function RM(e,t){const n=(0,o.useRef)([]),r=()=>{n.current.push(setTimeout(()=>{var t,n,o,r;(null===(t=e.current)||void 0===t?void 0:t.input)&&"password"===(null===(n=e.current)||void 0===n?void 0:n.input.getAttribute("type"))&&(null===(o=e.current)||void 0===o?void 0:o.input.hasAttribute("value"))&&(null===(r=e.current)||void 0===r||r.input.removeAttribute("value"))}))};return(0,o.useEffect)(()=>(t&&r(),()=>n.current.forEach(e=>{e&&clearTimeout(e)})),[]),r}var TM=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const zM=(0,o.forwardRef)((e,t)=>{const{prefixCls:n,bordered:i=!0,status:l,size:c,disabled:s,onBlur:u,onFocus:d,suffix:p,allowClear:f,addonAfter:m,addonBefore:g,className:v,style:h,styles:y,rootClassName:C,onChange:x,classNames:$,variant:w}=e,S=TM(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]);const{getPrefixCls:k,direction:E,allowClear:O,autoComplete:A,className:I,style:N,classNames:M,styles:j}=Se("input"),P=k("input",n),R=(0,o.useRef)(null),T=Mi(P),[z,B,H]=xM(P,C),[D]=$M(P,T),{compactSize:L,compactItemClassnames:F}=mc(P,E),W=lc(e=>{var t;return null!==(t=null!==c&&void 0!==c?c:L)&&void 0!==t?t:e}),_=r().useContext(Ga),K=null!==s&&void 0!==s?s:_,{status:q,hasFeedback:V,feedbackIcon:X}=(0,o.useContext)(Ep),G=ch(q,l),Y=function(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}(e)||!!V;(0,o.useRef)(Y);const U=RM(R,!0),Q=(V||p)&&r().createElement(r().Fragment,null,p,V&&X),Z=PM(null!==f&&void 0!==f?f:O),[J,ee]=yh("input",w,i);return z(D(r().createElement(BN,Object.assign({ref:(0,b.K4)(t,R),prefixCls:P,autoComplete:A},S,{disabled:K,onBlur:e=>{U(),null===u||void 0===u||u(e)},onFocus:e=>{U(),null===d||void 0===d||d(e)},style:Object.assign(Object.assign({},N),h),styles:Object.assign(Object.assign({},j),y),suffix:Q,allowClear:Z,className:a()(v,C,H,T,F,I),onChange:e=>{U(),null===x||void 0===x||x(e)},addonBefore:g&&r().createElement(Ip,{form:!0,space:!0},g),addonAfter:m&&r().createElement(Ip,{form:!0,space:!0},m),classNames:Object.assign(Object.assign(Object.assign({},$),M),{input:a()({[`${P}-sm`]:"small"===W,[`${P}-lg`]:"large"===W,[`${P}-rtl`]:"rtl"===E},null===$||void 0===$?void 0:$.input,M.input,B),variant:a()({[`${P}-${J}`]:ee},lh(P,G)),affixWrapper:a()({[`${P}-affix-wrapper-sm`]:"small"===W,[`${P}-affix-wrapper-lg`]:"large"===W,[`${P}-affix-wrapper-rtl`]:"rtl"===E},B),wrapper:a()({[`${P}-group-rtl`]:"rtl"===E},B),groupWrapper:a()({[`${P}-group-wrapper-sm`]:"small"===W,[`${P}-group-wrapper-lg`]:"large"===W,[`${P}-group-wrapper-rtl`]:"rtl"===E,[`${P}-group-wrapper-${J}`]:ee},lh(`${P}-group-wrapper`,G,V),B)})}))))});const BM=zM,HM=/(^#[\da-f]{6}$)|(^#[\da-f]{8}$)/i,DM=e=>{let{prefixCls:t,value:n,onChange:i}=e;const a=`${t}-hex-input`,[l,c]=(0,o.useState)(()=>n?ls(n.toHexString()):void 0);(0,o.useEffect)(()=>{n&&c(ls(n.toHexString()))},[n]);return r().createElement(BM,{className:a,value:l,prefix:"#",onChange:e=>{const t=e.target.value;var n;c(ls(t)),n=ls(t,!0),HM.test(`#${n}`)&&(null===i||void 0===i||i(Ns(t)))},size:"small"})},LM=e=>{let{prefixCls:t,value:n,onChange:i}=e;const a=`${t}-hsb-input`,[l,c]=(0,o.useState)(()=>Ns(n||"#000")),s=n||l,u=(e,t)=>{const n=s.toHsb();n[t]="h"===t?e:(e||0)/100;const o=Ns(n);c(o),null===i||void 0===i||i(o)};return r().createElement("div",{className:a},r().createElement(MM,{max:360,min:0,value:Number(s.toHsb().h),prefixCls:t,className:a,formatter:e=>Ms(e||0).toString(),onChange:e=>u(Number(e),"h")}),r().createElement(MM,{max:100,min:0,value:100*Number(s.toHsb().s),prefixCls:t,className:a,formatter:e=>`${Ms(e||0)}%`,onChange:e=>u(Number(e),"s")}),r().createElement(MM,{max:100,min:0,value:100*Number(s.toHsb().b),prefixCls:t,className:a,formatter:e=>`${Ms(e||0)}%`,onChange:e=>u(Number(e),"b")}))},FM=e=>{let{prefixCls:t,value:n,onChange:i}=e;const a=`${t}-rgb-input`,[l,c]=(0,o.useState)(()=>Ns(n||"#000")),s=n||l,u=(e,t)=>{const n=s.toRgb();n[t]=e||0;const o=Ns(n);c(o),null===i||void 0===i||i(o)};return r().createElement("div",{className:a},r().createElement(MM,{max:255,min:0,value:Number(s.toRgb().r),prefixCls:t,className:a,onChange:e=>u(Number(e),"r")}),r().createElement(MM,{max:255,min:0,value:Number(s.toRgb().g),prefixCls:t,className:a,onChange:e=>u(Number(e),"g")}),r().createElement(MM,{max:255,min:0,value:Number(s.toRgb().b),prefixCls:t,className:a,onChange:e=>u(Number(e),"b")}))},WM=[pN,mN,fN].map(e=>({value:e,label:e.toUpperCase()})),_M=e=>{const{prefixCls:t,format:n,value:i,disabledAlpha:a,onFormatChange:l,onChange:c,disabledFormat:s}=e,[u,d]=Ln(pN,{value:n,onChange:l}),p=`${t}-input`,f=(0,o.useMemo)(()=>{const e={value:i,prefixCls:t,onChange:c};switch(u){case mN:return r().createElement(LM,Object.assign({},e));case fN:return r().createElement(FM,Object.assign({},e));default:return r().createElement(DM,Object.assign({},e))}},[u,t,i,c]);return r().createElement("div",{className:`${p}-container`},!s&&r().createElement(yb,{value:u,variant:"borderless",getPopupContainer:e=>e,popupMatchSelectWidth:68,placement:"bottomRight",onChange:e=>{d(e)},className:`${t}-format-select`,size:"small",options:WM}),r().createElement("div",{className:p},f),!a&&r().createElement(jM,{prefixCls:t,value:i,onChange:c}))};function KM(e,t,n){return(e-t)/(n-t)}function qM(e,t,n,o){var r=KM(t,n,o),i={};switch(e){case"rtl":i.right="".concat(100*r,"%"),i.transform="translateX(50%)";break;case"btt":i.bottom="".concat(100*r,"%"),i.transform="translateY(50%)";break;case"ttb":i.top="".concat(100*r,"%"),i.transform="translateY(-50%)";break;default:i.left="".concat(100*r,"%"),i.transform="translateX(-50%)"}return i}function VM(e,t){return Array.isArray(e)?e[t]:e}const XM=o.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0,styles:{},classNames:{}});var GM=o.createContext({}),YM=["prefixCls","value","valueIndex","onStartMove","onDelete","style","render","dragging","draggingDelete","onOffsetChange","onChangeComplete","onFocus","onMouseEnter"],UM=o.forwardRef(function(e,t){var n,r=e.prefixCls,i=e.value,c=e.valueIndex,s=e.onStartMove,u=e.onDelete,p=e.style,f=e.render,m=e.dragging,g=e.draggingDelete,v=e.onOffsetChange,h=e.onChangeComplete,b=e.onFocus,y=e.onMouseEnter,C=(0,cr.A)(e,YM),x=o.useContext(XM),$=x.min,w=x.max,S=x.direction,k=x.disabled,E=x.keyboard,O=x.range,A=x.tabIndex,I=x.ariaLabelForHandle,N=x.ariaLabelledByForHandle,M=x.ariaRequired,j=x.ariaValueTextFormatterForHandle,P=x.styles,R=x.classNames,T="".concat(r,"-handle"),z=function(e){k||s(e,c)},B=qM(S,i,$,w),H={};null!==c&&(H={tabIndex:k?null:VM(A,c),role:"slider","aria-valuemin":$,"aria-valuemax":w,"aria-valuenow":i,"aria-disabled":k,"aria-label":VM(I,c),"aria-labelledby":VM(N,c),"aria-required":VM(M,c),"aria-valuetext":null===(n=VM(j,c))||void 0===n?void 0:n(i),"aria-orientation":"ltr"===S||"rtl"===S?"horizontal":"vertical",onMouseDown:z,onTouchStart:z,onFocus:function(e){null===b||void 0===b||b(e,c)},onMouseEnter:function(e){y(e,c)},onKeyDown:function(e){if(!k&&E){var t=null;switch(e.which||e.keyCode){case Xi.LEFT:t="ltr"===S||"btt"===S?-1:1;break;case Xi.RIGHT:t="ltr"===S||"btt"===S?1:-1;break;case Xi.UP:t="ttb"!==S?1:-1;break;case Xi.DOWN:t="ttb"!==S?-1:1;break;case Xi.HOME:t="min";break;case Xi.END:t="max";break;case Xi.PAGE_UP:t=2;break;case Xi.PAGE_DOWN:t=-2;break;case Xi.BACKSPACE:case Xi.DELETE:u(c)}null!==t&&(e.preventDefault(),v(t,c))}},onKeyUp:function(e){switch(e.which||e.keyCode){case Xi.LEFT:case Xi.RIGHT:case Xi.UP:case Xi.DOWN:case Xi.HOME:case Xi.END:case Xi.PAGE_UP:case Xi.PAGE_DOWN:null===h||void 0===h||h()}}});var D=o.createElement("div",(0,l.A)({ref:t,className:a()(T,(0,Ee.A)((0,Ee.A)((0,Ee.A)({},"".concat(T,"-").concat(c+1),null!==c&&O),"".concat(T,"-dragging"),m),"".concat(T,"-dragging-delete"),g),R.handle),style:(0,d.A)((0,d.A)((0,d.A)({},B),p),P.handle)},H,C));return f&&(D=f(D,{index:c,prefixCls:r,value:i,dragging:m,draggingDelete:g})),D});const QM=UM;var ZM=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","activeHandleRender","draggingIndex","draggingDelete","onFocus"],JM=o.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,i=e.onStartMove,a=e.onOffsetChange,c=e.values,s=e.handleRender,u=e.activeHandleRender,p=e.draggingIndex,m=e.draggingDelete,g=e.onFocus,v=(0,cr.A)(e,ZM),h=o.useRef({}),b=o.useState(!1),y=(0,ke.A)(b,2),C=y[0],x=y[1],$=o.useState(-1),w=(0,ke.A)($,2),S=w[0],k=w[1],E=function(e){k(e),x(!0)};o.useImperativeHandle(t,function(){return{focus:function(e){var t;null===(t=h.current[e])||void 0===t||t.focus()},hideHelp:function(){(0,f.flushSync)(function(){x(!1)})}}});var O=(0,d.A)({prefixCls:n,onStartMove:i,onOffsetChange:a,render:s,onFocus:function(e,t){E(t),null===g||void 0===g||g(e)},onMouseEnter:function(e,t){E(t)}},v);return o.createElement(o.Fragment,null,c.map(function(e,t){var n=p===t;return o.createElement(QM,(0,l.A)({ref:function(e){e?h.current[t]=e:delete h.current[t]},dragging:n,draggingDelete:n&&m,style:VM(r,t),key:t,value:e,valueIndex:t},O))}),u&&C&&o.createElement(QM,(0,l.A)({key:"a11y"},O,{value:c[S],valueIndex:null,dragging:-1!==p,draggingDelete:m,render:u,style:{pointerEvents:"none"},tabIndex:null,"aria-hidden":!0})))});const ej=JM;const tj=function(e){var t=e.prefixCls,n=e.style,r=e.children,i=e.value,l=e.onClick,c=o.useContext(XM),s=c.min,u=c.max,p=c.direction,f=c.includedStart,m=c.includedEnd,g=c.included,v="".concat(t,"-text"),h=qM(p,i,s,u);return o.createElement("span",{className:a()(v,(0,Ee.A)({},"".concat(v,"-active"),g&&f<=i&&i<=m)),style:(0,d.A)((0,d.A)({},h),n),onMouseDown:function(e){e.stopPropagation()},onClick:function(){l(i)}},r)};const nj=function(e){var t=e.prefixCls,n=e.marks,r=e.onClick,i="".concat(t,"-mark");return n.length?o.createElement("div",{className:i},n.map(function(e){var t=e.value,n=e.style,a=e.label;return o.createElement(tj,{key:t,prefixCls:i,style:n,value:t,onClick:r},a)})):null};const oj=function(e){var t=e.prefixCls,n=e.value,r=e.style,i=e.activeStyle,l=o.useContext(XM),c=l.min,s=l.max,u=l.direction,p=l.included,f=l.includedStart,m=l.includedEnd,g="".concat(t,"-dot"),v=p&&f<=n&&n<=m,h=(0,d.A)((0,d.A)({},qM(u,n,c,s)),"function"===typeof r?r(n):r);return v&&(h=(0,d.A)((0,d.A)({},h),"function"===typeof i?i(n):i)),o.createElement("span",{className:a()(g,(0,Ee.A)({},"".concat(g,"-active"),v)),style:h})};const rj=function(e){var t=e.prefixCls,n=e.marks,r=e.dots,i=e.style,a=e.activeStyle,l=o.useContext(XM),c=l.min,s=l.max,u=l.step,d=o.useMemo(function(){var e=new Set;if(n.forEach(function(t){e.add(t.value)}),r&&null!==u)for(var t=c;t<=s;)e.add(t),t+=u;return Array.from(e)},[c,s,u,r,n]);return o.createElement("div",{className:"".concat(t,"-step")},d.map(function(e){return o.createElement(oj,{prefixCls:t,key:e,value:e,style:i,activeStyle:a})}))};const ij=function(e){var t=e.prefixCls,n=e.style,r=e.start,i=e.end,l=e.index,c=e.onStartMove,s=e.replaceCls,u=o.useContext(XM),p=u.direction,f=u.min,m=u.max,g=u.disabled,v=u.range,h=u.classNames,b="".concat(t,"-track"),y=KM(r,f,m),C=KM(i,f,m),x=function(e){!g&&c&&c(e,-1)},$={};switch(p){case"rtl":$.right="".concat(100*y,"%"),$.width="".concat(100*C-100*y,"%");break;case"btt":$.bottom="".concat(100*y,"%"),$.height="".concat(100*C-100*y,"%");break;case"ttb":$.top="".concat(100*y,"%"),$.height="".concat(100*C-100*y,"%");break;default:$.left="".concat(100*y,"%"),$.width="".concat(100*C-100*y,"%")}var w=s||a()(b,(0,Ee.A)((0,Ee.A)({},"".concat(b,"-").concat(l+1),null!==l&&v),"".concat(t,"-track-draggable"),c),h.track);return o.createElement("div",{className:w,style:(0,d.A)((0,d.A)({},$),n),onMouseDown:x,onTouchStart:x})};const aj=function(e){var t=e.prefixCls,n=e.style,r=e.values,i=e.startPoint,l=e.onStartMove,c=o.useContext(XM),s=c.included,u=c.range,p=c.min,f=c.styles,m=c.classNames,g=o.useMemo(function(){if(!u){if(0===r.length)return[];var e=null!==i&&void 0!==i?i:p,t=r[0];return[{start:Math.min(e,t),end:Math.max(e,t)}]}for(var n=[],o=0;o<r.length-1;o+=1)n.push({start:r[o],end:r[o+1]});return n},[r,u,i,p]);if(!s)return null;var v=null!==g&&void 0!==g&&g.length&&(m.tracks||f.tracks)?o.createElement(ij,{index:null,prefixCls:t,start:g[0].start,end:g[g.length-1].end,replaceCls:a()(m.tracks,"".concat(t,"-tracks")),style:f.tracks}):null;return o.createElement(o.Fragment,null,v,g.map(function(e,r){var i=e.start,a=e.end;return o.createElement(ij,{index:r,prefixCls:t,style:(0,d.A)((0,d.A)({},VM(n,r)),f.track),start:i,end:a,key:r,onStartMove:l})}))};function lj(e){var t="targetTouches"in e?e.targetTouches[0]:e;return{pageX:t.pageX,pageY:t.pageY}}const cj=function(e,t,n,r,i,a,l,c,s,u,d){var p=o.useState(null),f=(0,ke.A)(p,2),m=f[0],g=f[1],v=o.useState(-1),h=(0,ke.A)(v,2),b=h[0],y=h[1],C=o.useState(!1),x=(0,ke.A)(C,2),$=x[0],w=x[1],S=o.useState(n),k=(0,ke.A)(S,2),E=k[0],O=k[1],A=o.useState(n),I=(0,ke.A)(A,2),N=I[0],M=I[1],j=o.useRef(null),P=o.useRef(null),R=o.useRef(null),T=o.useContext(GM),z=T.onDragStart,B=T.onDragChange;ut(function(){-1===b&&O(n)},[n,b]),o.useEffect(function(){return function(){document.removeEventListener("mousemove",j.current),document.removeEventListener("mouseup",P.current),R.current&&(R.current.removeEventListener("touchmove",j.current),R.current.removeEventListener("touchend",P.current))}},[]);var H=function(e,t,n){void 0!==t&&g(t),O(e);var o=e;n&&(o=e.filter(function(e,t){return t!==b})),l(o),B&&B({rawValues:e,deleteIndex:n?b:-1,draggingIndex:b,draggingValue:t})},D=Bn(function(e,t,n){if(-1===e){var o=N[0],l=N[N.length-1],c=r-o,u=i-l,d=t*(i-r);d=Math.max(d,c),d=Math.min(d,u);var p=a(o+d);d=p-o;var f=N.map(function(e){return e+d});H(f)}else{var m=(i-r)*t,g=se(E);g[e]=N[e];var v=s(g,m,e,"dist");H(v.values,v.value,n)}}),L=o.useMemo(function(){var e=se(n).sort(function(e,t){return e-t}),t=se(E).sort(function(e,t){return e-t}),o={};t.forEach(function(e){o[e]=(o[e]||0)+1}),e.forEach(function(e){o[e]=(o[e]||0)-1});var r=u?1:0,i=Object.values(o).reduce(function(e,t){return e+Math.abs(t)},0);return i<=r?E:n},[n,E,u]);return[b,m,$,L,function(o,r,i){o.stopPropagation();var a=i||n,l=a[r];y(r),g(l),M(a),O(a),w(!1);var s=lj(o),p=s.pageX,f=s.pageY,m=!1;z&&z({rawValues:a,draggingIndex:r,draggingValue:l});var v=function(n){n.preventDefault();var o,i,a=lj(n),l=a.pageX,c=a.pageY,s=l-p,g=c-f,v=e.current.getBoundingClientRect(),h=v.width,b=v.height;switch(t){case"btt":o=-g/b,i=s;break;case"ttb":o=g/b,i=s;break;case"rtl":o=-s/h,i=g;break;default:o=s/h,i=g}m=!!u&&(Math.abs(i)>130&&d<E.length),w(m),D(r,o,m)},h=function e(t){t.preventDefault(),document.removeEventListener("mouseup",e),document.removeEventListener("mousemove",v),R.current&&(R.current.removeEventListener("touchmove",j.current),R.current.removeEventListener("touchend",P.current)),j.current=null,P.current=null,R.current=null,c(m),y(-1),w(!1)};document.addEventListener("mouseup",h),document.addEventListener("mousemove",v),o.currentTarget.addEventListener("touchend",h),o.currentTarget.addEventListener("touchmove",v),j.current=v,P.current=h,R.current=o.currentTarget}]};var sj=o.forwardRef(function(e,t){var n=e.prefixCls,r=void 0===n?"rc-slider":n,i=e.className,l=e.style,c=e.classNames,s=e.styles,f=e.id,m=e.disabled,g=void 0!==m&&m,v=e.keyboard,h=void 0===v||v,b=e.autoFocus,y=e.onFocus,C=e.onBlur,x=e.min,$=void 0===x?0:x,w=e.max,S=void 0===w?100:w,k=e.step,E=void 0===k?1:k,O=e.value,A=e.defaultValue,I=e.range,N=e.count,M=e.onChange,j=e.onBeforeChange,P=e.onAfterChange,R=e.onChangeComplete,T=e.allowCross,z=void 0===T||T,B=e.pushable,H=void 0!==B&&B,D=e.reverse,L=e.vertical,F=e.included,W=void 0===F||F,_=e.startPoint,K=e.trackStyle,q=e.handleStyle,V=e.railStyle,X=e.dotStyle,G=e.activeDotStyle,Y=e.marks,U=e.dots,Q=e.handleRender,Z=e.activeHandleRender,J=e.track,ee=e.tabIndex,te=void 0===ee?0:ee,ne=e.ariaLabelForHandle,oe=e.ariaLabelledByForHandle,re=e.ariaRequired,ie=e.ariaValueTextFormatterForHandle,ae=o.useRef(null),le=o.useRef(null),ce=o.useMemo(function(){return L?D?"ttb":"btt":D?"rtl":"ltr"},[D,L]),ue=function(e){return(0,o.useMemo)(function(){if(!0===e||!e)return[!!e,!1,!1,0];var t=e.editable,n=e.draggableTrack;return[!0,t,!t&&n,e.minCount||0,e.maxCount]},[e])}(I),de=(0,ke.A)(ue,5),pe=de[0],fe=de[1],me=de[2],ge=de[3],ve=de[4],he=o.useMemo(function(){return isFinite($)?$:0},[$]),be=o.useMemo(function(){return isFinite(S)?S:100},[S]),ye=o.useMemo(function(){return null!==E&&E<=0?1:E},[E]),Ce=o.useMemo(function(){return"boolean"===typeof H?!!H&&ye:H>=0&&H},[H,ye]),xe=o.useMemo(function(){return Object.keys(Y||{}).map(function(e){var t=Y[e],n={value:Number(e)};return t&&"object"===(0,p.A)(t)&&!o.isValidElement(t)&&("label"in t||"style"in t)?(n.style=t.style,n.label=t.label):n.label=t,n}).filter(function(e){var t=e.label;return t||"number"===typeof t}).sort(function(e,t){return e.value-t.value})},[Y]),$e=function(e,t,n,r,i,a){var l=o.useCallback(function(n){return Math.max(e,Math.min(t,n))},[e,t]),c=o.useCallback(function(o){if(null!==n){var r=e+Math.round((l(o)-e)/n)*n,i=function(e){return(String(e).split(".")[1]||"").length},a=Math.max(i(n),i(t),i(e)),c=Number(r.toFixed(a));return e<=c&&c<=t?c:null}return null},[n,e,t,l]),s=o.useCallback(function(o){var i=l(o),a=r.map(function(e){return e.value});null!==n&&a.push(c(o)),a.push(e,t);var s=a[0],u=t-e;return a.forEach(function(e){var t=Math.abs(i-e);t<=u&&(s=e,u=t)}),s},[e,t,r,n,l,c]),u=function o(i,a,l){var s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"unit";if("number"===typeof a){var u,d=i[l],p=d+a,f=[];r.forEach(function(e){f.push(e.value)}),f.push(e,t),f.push(c(d));var m=a>0?1:-1;"unit"===s?f.push(c(d+m*n)):f.push(c(p)),f=f.filter(function(e){return null!==e}).filter(function(e){return a<0?e<=d:e>=d}),"unit"===s&&(f=f.filter(function(e){return e!==d}));var g="unit"===s?d:p;u=f[0];var v=Math.abs(u-g);if(f.forEach(function(e){var t=Math.abs(e-g);t<v&&(u=e,v=t)}),void 0===u)return a<0?e:t;if("dist"===s)return u;if(Math.abs(a)>1){var h=se(i);return h[l]=u,o(h,a-m,l,s)}return u}return"min"===a?e:"max"===a?t:void 0},d=function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"unit",r=e[n],i=u(e,t,n,o);return{value:i,changed:i!==r}},p=function(e){return null===a&&0===e||"number"===typeof a&&e<a};return[s,function(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"unit",r=e.map(s),l=r[n],c=u(r,t,n,o);if(r[n]=c,!1===i){var f=a||0;n>0&&r[n-1]!==l&&(r[n]=Math.max(r[n],r[n-1]+f)),n<r.length-1&&r[n+1]!==l&&(r[n]=Math.min(r[n],r[n+1]-f))}else if("number"===typeof a||null===a){for(var m=n+1;m<r.length;m+=1)for(var g=!0;p(r[m]-r[m-1])&&g;){var v=d(r,1,m);r[m]=v.value,g=v.changed}for(var h=n;h>0;h-=1)for(var b=!0;p(r[h]-r[h-1])&&b;){var y=d(r,-1,h-1);r[h-1]=y.value,b=y.changed}for(var C=r.length-1;C>0;C-=1)for(var x=!0;p(r[C]-r[C-1])&&x;){var $=d(r,-1,C-1);r[C-1]=$.value,x=$.changed}for(var w=0;w<r.length-1;w+=1)for(var S=!0;p(r[w+1]-r[w])&&S;){var k=d(r,1,w+1);r[w+1]=k.value,S=k.changed}}return{value:r[n],values:r}}]}(he,be,ye,xe,z,Ce),we=(0,ke.A)($e,2),Se=we[0],Oe=we[1],Ae=Ln(A,{value:O}),Ie=(0,ke.A)(Ae,2),Me=Ie[0],je=Ie[1],Pe=o.useMemo(function(){var e=null===Me||void 0===Me?[]:Array.isArray(Me)?Me:[Me],t=(0,ke.A)(e,1)[0],n=null===Me?[]:[void 0===t?he:t];if(pe){if(n=se(e),N||void 0===Me){var o=N>=0?N+1:2;for(n=n.slice(0,o);n.length<o;){var r;n.push(null!==(r=n[n.length-1])&&void 0!==r?r:he)}}n.sort(function(e,t){return e-t})}return n.forEach(function(e,t){n[t]=Se(e)}),n},[Me,pe,he,N,Se]),Re=function(e){return pe?e:e[0]},Te=Bn(function(e){var t=se(e).sort(function(e,t){return e-t});M&&!Ne(t,Pe,!0)&&M(Re(t)),je(t)}),ze=Bn(function(e){e&&ae.current.hideHelp();var t=Re(Pe);null===P||void 0===P||P(t),(0,u.Ay)(!P,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),null===R||void 0===R||R(t)}),Be=cj(le,ce,Pe,he,be,Se,Te,ze,Oe,fe,ge),He=(0,ke.A)(Be,5),De=He[0],Le=He[1],Fe=He[2],We=He[3],_e=He[4],Ke=function(e,t){if(!g){var n=se(Pe),o=0,r=0,i=be-he;Pe.forEach(function(t,n){var a=Math.abs(e-t);a<=i&&(i=a,o=n),t<e&&(r=n)});var a=o;fe&&0!==i&&(!ve||Pe.length<ve)?(n.splice(r+1,0,e),a=r+1):n[o]=e,pe&&!Pe.length&&void 0===N&&n.push(e);var l,c,s=Re(n);if(null===j||void 0===j||j(s),Te(n),t)null===(l=document.activeElement)||void 0===l||null===(c=l.blur)||void 0===c||c.call(l),ae.current.focus(a),_e(t,a,n);else null===P||void 0===P||P(s),(0,u.Ay)(!P,"[rc-slider] `onAfterChange` is deprecated. Please use `onChangeComplete` instead."),null===R||void 0===R||R(s)}},qe=o.useState(null),Ve=(0,ke.A)(qe,2),Xe=Ve[0],Ge=Ve[1];o.useEffect(function(){if(null!==Xe){var e=Pe.indexOf(Xe);e>=0&&ae.current.focus(e)}Ge(null)},[Xe]);var Ye=o.useMemo(function(){return(!me||null!==ye)&&me},[me,ye]),Ue=Bn(function(e,t){_e(e,t),null===j||void 0===j||j(Re(Pe))}),Qe=-1!==De;o.useEffect(function(){if(!Qe){var e=Pe.lastIndexOf(Le);ae.current.focus(e)}},[Qe]);var Ze=o.useMemo(function(){return se(We).sort(function(e,t){return e-t})},[We]),Je=o.useMemo(function(){return pe?[Ze[0],Ze[Ze.length-1]]:[he,Ze[0]]},[Ze,pe,he]),et=(0,ke.A)(Je,2),tt=et[0],nt=et[1];o.useImperativeHandle(t,function(){return{focus:function(){ae.current.focus(0)},blur:function(){var e,t=document.activeElement;null!==(e=le.current)&&void 0!==e&&e.contains(t)&&(null===t||void 0===t||t.blur())}}}),o.useEffect(function(){b&&ae.current.focus(0)},[]);var ot=o.useMemo(function(){return{min:he,max:be,direction:ce,disabled:g,keyboard:h,step:ye,included:W,includedStart:tt,includedEnd:nt,range:pe,tabIndex:te,ariaLabelForHandle:ne,ariaLabelledByForHandle:oe,ariaRequired:re,ariaValueTextFormatterForHandle:ie,styles:s||{},classNames:c||{}}},[he,be,ce,g,h,ye,W,tt,nt,pe,te,ne,oe,re,ie,s,c]);return o.createElement(XM.Provider,{value:ot},o.createElement("div",{ref:le,className:a()(r,i,(0,Ee.A)((0,Ee.A)((0,Ee.A)((0,Ee.A)({},"".concat(r,"-disabled"),g),"".concat(r,"-vertical"),L),"".concat(r,"-horizontal"),!L),"".concat(r,"-with-marks"),xe.length)),style:l,onMouseDown:function(e){e.preventDefault();var t,n=le.current.getBoundingClientRect(),o=n.width,r=n.height,i=n.left,a=n.top,l=n.bottom,c=n.right,s=e.clientX,u=e.clientY;switch(ce){case"btt":t=(l-u)/r;break;case"ttb":t=(u-a)/r;break;case"rtl":t=(c-s)/o;break;default:t=(s-i)/o}Ke(Se(he+t*(be-he)),e)},id:f},o.createElement("div",{className:a()("".concat(r,"-rail"),null===c||void 0===c?void 0:c.rail),style:(0,d.A)((0,d.A)({},V),null===s||void 0===s?void 0:s.rail)}),!1!==J&&o.createElement(aj,{prefixCls:r,style:K,values:Pe,startPoint:_,onStartMove:Ye?Ue:void 0}),o.createElement(rj,{prefixCls:r,marks:xe,dots:U,style:X,activeStyle:G}),o.createElement(ej,{ref:ae,prefixCls:r,style:q,values:We,draggingIndex:De,draggingDelete:Fe,onStartMove:Ue,onOffsetChange:function(e,t){if(!g){var n=Oe(Pe,e,t);null===j||void 0===j||j(Re(Pe)),Te(n.values),Ge(n.value)}},onFocus:y,onBlur:C,handleRender:Q,activeHandleRender:Z,onChangeComplete:ze,onDelete:fe?function(e){if(!(g||!fe||Pe.length<=ge)){var t=se(Pe);t.splice(e,1),null===j||void 0===j||j(Re(t)),Te(t);var n=Math.max(0,e-1);ae.current.hideHelp(),ae.current.focus(n)}}:void 0}),o.createElement(nj,{prefixCls:r,marks:xe,onClick:Ke})))});const uj=sj,dj=(0,o.createContext)({});const pj=o.forwardRef((e,t)=>{const{open:n,draggingDelete:r,value:i}=e,a=(0,o.useRef)(null),l=n&&!r,c=(0,o.useRef)(null);function s(){ve.cancel(c.current),c.current=null}return o.useEffect(()=>(l?c.current=ve(()=>{var e;null===(e=a.current)||void 0===e||e.forceAlign(),c.current=null}):s(),s),[l,e.title,i]),o.createElement(hy,Object.assign({ref:(0,b.K4)(a,t)},e,{open:l}))}),fj=e=>{const{componentCls:t,antCls:n,controlSize:o,dotSize:r,marginFull:i,marginPart:a,colorFillContentHover:l,handleColorDisabled:c,calc:s,handleSize:u,handleSizeHover:d,handleActiveColor:p,handleActiveOutlineColor:f,handleLineWidth:m,handleLineWidthHover:g,motionDurationMid:v}=e;return{[t]:Object.assign(Object.assign({},po(e)),{position:"relative",height:o,margin:`${nt(a)} ${nt(i)}`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${nt(i)} ${nt(a)}`},[`${t}-rail`]:{position:"absolute",backgroundColor:e.railBg,borderRadius:e.borderRadiusXS,transition:`background-color ${v}`},[`${t}-track,${t}-tracks`]:{position:"absolute",transition:`background-color ${v}`},[`${t}-track`]:{backgroundColor:e.trackBg,borderRadius:e.borderRadiusXS},[`${t}-track-draggable`]:{boxSizing:"content-box",backgroundClip:"content-box",border:"solid rgba(0,0,0,0)"},"&:hover":{[`${t}-rail`]:{backgroundColor:e.railHoverBg},[`${t}-track`]:{backgroundColor:e.trackHoverBg},[`${t}-dot`]:{borderColor:l},[`${t}-handle::after`]:{boxShadow:`0 0 0 ${nt(m)} ${e.colorPrimaryBorderHover}`},[`${t}-dot-active`]:{borderColor:e.dotActiveBorderColor}},[`${t}-handle`]:{position:"absolute",width:u,height:u,outline:"none",userSelect:"none","&-dragging-delete":{opacity:0},"&::before":{content:'""',position:"absolute",insetInlineStart:s(m).mul(-1).equal(),insetBlockStart:s(m).mul(-1).equal(),width:s(u).add(s(m).mul(2)).equal(),height:s(u).add(s(m).mul(2)).equal(),backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:u,height:u,backgroundColor:e.colorBgElevated,boxShadow:`0 0 0 ${nt(m)} ${e.handleColor}`,outline:"0px solid transparent",borderRadius:"50%",cursor:"pointer",transition:`\n inset-inline-start ${v},\n inset-block-start ${v},\n width ${v},\n height ${v},\n box-shadow ${v},\n outline ${v}\n `},"&:hover, &:active, &:focus":{"&::before":{insetInlineStart:s(d).sub(u).div(2).add(g).mul(-1).equal(),insetBlockStart:s(d).sub(u).div(2).add(g).mul(-1).equal(),width:s(d).add(s(g).mul(2)).equal(),height:s(d).add(s(g).mul(2)).equal()},"&::after":{boxShadow:`0 0 0 ${nt(g)} ${p}`,outline:`6px solid ${f}`,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:r,height:r,backgroundColor:e.colorBgElevated,border:`${nt(m)} solid ${e.dotBorderColor}`,borderRadius:"50%",cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,pointerEvents:"auto","&-active":{borderColor:e.dotActiveBorderColor}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-rail`]:{backgroundColor:`${e.railBg} !important`},[`${t}-track`]:{backgroundColor:`${e.trackBgDisabled} !important`},[`\n ${t}-dot\n `]:{backgroundColor:e.colorBgElevated,borderColor:e.trackBgDisabled,boxShadow:"none",cursor:"not-allowed"},[`${t}-handle::after`]:{backgroundColor:e.colorBgElevated,cursor:"not-allowed",width:u,height:u,boxShadow:`0 0 0 ${nt(m)} ${c}`,insetInlineStart:0,insetBlockStart:0},[`\n ${t}-mark-text,\n ${t}-dot\n `]:{cursor:"not-allowed !important"}},[`&-tooltip ${n}-tooltip-inner`]:{minWidth:"unset"}})}},mj=(e,t)=>{const{componentCls:n,railSize:o,handleSize:r,dotSize:i,marginFull:a,calc:l}=e,c=t?"paddingBlock":"paddingInline",s=t?"width":"height",u=t?"height":"width",d=t?"insetBlockStart":"insetInlineStart",p=t?"top":"insetInlineStart",f=l(o).mul(3).sub(r).div(2).equal(),m=l(r).sub(o).div(2).equal(),g=t?{borderWidth:`${nt(m)} 0`,transform:`translateY(${nt(l(m).mul(-1).equal())})`}:{borderWidth:`0 ${nt(m)}`,transform:`translateX(${nt(e.calc(m).mul(-1).equal())})`};return{[c]:o,[u]:l(o).mul(3).equal(),[`${n}-rail`]:{[s]:"100%",[u]:o},[`${n}-track,${n}-tracks`]:{[u]:o},[`${n}-track-draggable`]:Object.assign({},g),[`${n}-handle`]:{[d]:f},[`${n}-mark`]:{insetInlineStart:0,top:0,[p]:l(o).mul(3).add(t?0:a).equal(),[s]:"100%"},[`${n}-step`]:{insetInlineStart:0,top:0,[p]:o,[s]:"100%",[u]:o},[`${n}-dot`]:{position:"absolute",[d]:l(o).sub(i).div(2).equal()}}},gj=e=>{const{componentCls:t,marginPartWithMark:n}=e;return{[`${t}-horizontal`]:Object.assign(Object.assign({},mj(e,!0)),{[`&${t}-with-marks`]:{marginBottom:n}})}},vj=e=>{const{componentCls:t}=e;return{[`${t}-vertical`]:Object.assign(Object.assign({},mj(e,!1)),{height:"100%"})}},hj=qo("Slider",e=>{const t=Jn(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[fj(t),gj(t),vj(t)]},e=>{const t=e.controlHeightLG/4,n=e.controlHeightSM/2,o=e.lineWidth+1,r=e.lineWidth+1.5,i=e.colorPrimary,a=new wo.Y(i).setA(.2).toRgbString();return{controlSize:t,railSize:4,handleSize:t,handleSizeHover:n,dotSize:8,handleLineWidth:o,handleLineWidthHover:r,railBg:e.colorFillTertiary,railHoverBg:e.colorFillSecondary,trackBg:e.colorPrimaryBorder,trackHoverBg:e.colorPrimaryBorderHover,handleColor:e.colorPrimaryBorder,handleActiveColor:i,handleActiveOutlineColor:a,handleColorDisabled:new wo.Y(e.colorTextDisabled).onBackground(e.colorBgContainer).toHexString(),dotBorderColor:e.colorBorderSecondary,dotActiveBorderColor:e.colorPrimaryBorder,trackBgDisabled:e.colorBgContainerDisabled}});function bj(){const[e,t]=o.useState(!1),n=o.useRef(null),r=()=>{ve.cancel(n.current)};return o.useEffect(()=>r,[]),[e,e=>{r(),e?t(e):n.current=ve(()=>{t(e)})}]}var yj=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const Cj=r().forwardRef((e,t)=>{const{prefixCls:n,range:o,className:i,rootClassName:l,style:c,disabled:s,tooltipPrefixCls:u,tipFormatter:d,tooltipVisible:p,getTooltipPopupContainer:f,tooltipPlacement:m,tooltip:g={},onChangeComplete:v,classNames:h,styles:b}=e,y=yj(e,["prefixCls","range","className","rootClassName","style","disabled","tooltipPrefixCls","tipFormatter","tooltipVisible","getTooltipPopupContainer","tooltipPlacement","tooltip","onChangeComplete","classNames","styles"]),{vertical:C}=e,{getPrefixCls:x,direction:$,className:w,style:S,classNames:k,styles:E,getPopupContainer:O}=Se("slider"),A=r().useContext(Ga),I=null!==s&&void 0!==s?s:A,{handleRender:N,direction:M}=r().useContext(dj),j="rtl"===(M||$),[P,R]=bj(),[T,z]=bj(),B=Object.assign({},g),{open:H,placement:D,getPopupContainer:L,prefixCls:F,formatter:W}=B,_=null!==H&&void 0!==H?H:p,K=(P||T)&&!1!==_,q=function(e,t){return e||null===e?e:t||null===t?t:e=>"number"===typeof e?e.toString():""}(W,d),[V,X]=bj(),G=(e,t)=>e||(t?j?"left":"right":"top"),Y=x("slider",n),[U,Q,Z]=hj(Y),J=a()(i,w,k.root,null===h||void 0===h?void 0:h.root,l,{[`${Y}-rtl`]:j,[`${Y}-lock`]:V},Q,Z);j&&!y.vertical&&(y.reverse=!y.reverse),r().useEffect(()=>{const e=()=>{ve(()=>{z(!1)},1)};return document.addEventListener("mouseup",e),()=>{document.removeEventListener("mouseup",e)}},[]);const ee=o&&!_,te=N||((e,t)=>{const{index:n}=t,o=e.props;function i(e,t,n){var r,i,a,l;n&&(null===(i=(r=y)[e])||void 0===i||i.call(r,t)),null===(l=(a=o)[e])||void 0===l||l.call(a,t)}const a=Object.assign(Object.assign({},o),{onMouseEnter:e=>{R(!0),i("onMouseEnter",e)},onMouseLeave:e=>{R(!1),i("onMouseLeave",e)},onMouseDown:e=>{z(!0),X(!0),i("onMouseDown",e)},onFocus:e=>{var t;z(!0),null===(t=y.onFocus)||void 0===t||t.call(y,e),i("onFocus",e,!0)},onBlur:e=>{var t;z(!1),null===(t=y.onBlur)||void 0===t||t.call(y,e),i("onBlur",e,!0)}}),l=r().cloneElement(e,a),c=(!!_||K)&&null!==q;return ee?l:r().createElement(pj,Object.assign({},B,{prefixCls:x("tooltip",null!==F&&void 0!==F?F:u),title:q?q(t.value):"",value:t.value,open:c,placement:G(null!==D&&void 0!==D?D:m,C),key:n,classNames:{root:`${Y}-tooltip`},getPopupContainer:L||f||O}),l)}),ne=ee?(e,t)=>{const n=r().cloneElement(e,{style:Object.assign(Object.assign({},e.props.style),{visibility:"hidden"})});return r().createElement(pj,Object.assign({},B,{prefixCls:x("tooltip",null!==F&&void 0!==F?F:u),title:q?q(t.value):"",open:null!==q&&K,placement:G(null!==D&&void 0!==D?D:m,C),key:"tooltip",classNames:{root:`${Y}-tooltip`},getPopupContainer:L||f||O,draggingDelete:t.draggingDelete}),n)}:void 0,oe=Object.assign(Object.assign(Object.assign(Object.assign({},E.root),S),null===b||void 0===b?void 0:b.root),c),re=Object.assign(Object.assign({},E.tracks),null===b||void 0===b?void 0:b.tracks),ie=a()(k.tracks,null===h||void 0===h?void 0:h.tracks);return U(r().createElement(uj,Object.assign({},y,{classNames:Object.assign({handle:a()(k.handle,null===h||void 0===h?void 0:h.handle),rail:a()(k.rail,null===h||void 0===h?void 0:h.rail),track:a()(k.track,null===h||void 0===h?void 0:h.track)},ie?{tracks:ie}:{}),styles:Object.assign({handle:Object.assign(Object.assign({},E.handle),null===b||void 0===b?void 0:b.handle),rail:Object.assign(Object.assign({},E.rail),null===b||void 0===b?void 0:b.rail),track:Object.assign(Object.assign({},E.track),null===b||void 0===b?void 0:b.track)},Object.keys(re).length?{tracks:re}:{}),step:y.step,range:o,className:J,style:oe,disabled:I,ref:t,prefixCls:Y,handleRender:te,activeHandleRender:ne,onChangeComplete:e=>{null===v||void 0===v||v(e),X(!1)}})))});const xj=Cj;var $j=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const wj=e=>{const{prefixCls:t,colors:n,type:r,color:i,range:l=!1,className:c,activeIndex:s,onActive:u,onDragStart:d,onDragChange:p,onKeyDelete:f}=e,m=$j(e,["prefixCls","colors","type","color","range","className","activeIndex","onActive","onDragStart","onDragChange","onKeyDelete"]),g=Object.assign(Object.assign({},m),{track:!1}),v=o.useMemo(()=>`linear-gradient(90deg, ${n.map(e=>`${e.color} ${e.percent}%`).join(", ")})`,[n]),h=o.useMemo(()=>i&&r?"alpha"===r?i.toRgbString():`hsl(${i.toHsb().h}, 100%, 50%)`:null,[i,r]),b=Bn(d),y=Bn(p),C=o.useMemo(()=>({onDragStart:b,onDragChange:y}),[]),x=Bn((e,i)=>{const{onFocus:l,style:c,className:d,onKeyDown:p}=e.props,m=Object.assign({},c);return"gradient"===r&&(m.background=Rs(n,i.value)),o.cloneElement(e,{onFocus:e=>{null===u||void 0===u||u(i.index),null===l||void 0===l||l(e)},style:m,className:a()(d,{[`${t}-slider-handle-active`]:s===i.index}),onKeyDown:e=>{"Delete"!==e.key&&"Backspace"!==e.key||!f||f(i.index),null===p||void 0===p||p(e)}})}),$=o.useMemo(()=>({direction:"ltr",handleRender:x}),[]);return o.createElement(dj.Provider,{value:$},o.createElement(GM.Provider,{value:C},o.createElement(xj,Object.assign({},g,{className:a()(c,`${t}-slider`),tooltip:{open:!1},range:{editable:l,minCount:2},styles:{rail:{background:v},handle:h?{background:h}:{}},classNames:{rail:`${t}-slider-rail`,handle:`${t}-slider-handle`}}))))},Sj=e=>{const{value:t,onChange:n,onChangeComplete:r}=e;return o.createElement(wj,Object.assign({},e,{value:[t],onChange:e=>n(e[0]),onChangeComplete:e=>r(e[0])}))};function kj(e){return se(e).sort((e,t)=>e.percent-t.percent)}const Ej=o.memo(e=>{const{prefixCls:t,mode:n,onChange:r,onChangeComplete:i,onActive:a,activeIndex:l,onGradientDragging:c,colors:s}=e,u="gradient"===n,d=o.useMemo(()=>s.map(e=>({percent:e.percent,color:e.color.toRgbString()})),[s]),p=o.useMemo(()=>d.map(e=>e.percent),[d]),f=o.useRef(d);return u?o.createElement(wj,{min:0,max:100,prefixCls:t,className:`${t}-gradient-slider`,colors:d,color:null,value:p,range:!0,onChangeComplete:e=>{i(new cs(d)),l>=e.length&&a(e.length-1),c(!1)},disabled:!1,type:"gradient",activeIndex:l,onActive:a,onDragStart:e=>{let{rawValues:t,draggingIndex:n,draggingValue:o}=e;if(t.length>d.length){const e=Rs(d,o),t=se(d);t.splice(n,0,{percent:o,color:e}),f.current=t}else f.current=d;c(!0),r(new cs(kj(f.current)),!0)},onDragChange:e=>{let{deleteIndex:t,draggingIndex:n,draggingValue:o}=e,i=se(f.current);-1!==t?i.splice(t,1):(i[n]=Object.assign(Object.assign({},i[n]),{percent:o}),i=kj(i)),r(new cs(i),!0)},onKeyDelete:e=>{const t=se(d);t.splice(e,1);const n=new cs(t);r(n),i(n)}}):null});var Oj=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const Aj={slider:Sj},Ij=()=>{const e=(0,o.useContext)(sN),{mode:t,onModeChange:n,modeOptions:i,prefixCls:a,allowClear:l,value:c,disabledAlpha:s,onChange:u,onClear:d,onChangeComplete:p,activeIndex:f,gradientDragging:m}=e,g=Oj(e,["mode","onModeChange","modeOptions","prefixCls","allowClear","value","disabledAlpha","onChange","onClear","onChangeComplete","activeIndex","gradientDragging"]),v=r().useMemo(()=>c.cleared?[{percent:0,color:new cs("")},{percent:100,color:new cs("")}]:c.getColors(),[c]),h=!c.isGradient(),[b,y]=r().useState(c);ut(()=>{var e;h||y(null===(e=v[f])||void 0===e?void 0:e.color)},[m,f]);const C=r().useMemo(()=>{var e;return h?c:m?b:null===(e=v[f])||void 0===e?void 0:e.color},[c,f,h,b,m]),[x,$]=r().useState(C),[w,S]=r().useState(0),k=(null===x||void 0===x?void 0:x.equals(C))?C:x;ut(()=>{$(C)},[w,null===C||void 0===C?void 0:C.toHexString()]);const E=(e,n)=>{let o=Ns(e);if(c.cleared){const e=o.toRgb();if(e.r||e.g||e.b||!n)o=Ps(o);else{const{type:e,value:t=0}=n;o=new cs({h:"hue"===e?t:0,s:1,b:1,a:"alpha"===e?t/100:1})}}if("single"===t)return o;const r=se(v);return r[f]=Object.assign(Object.assign({},r[f]),{color:o}),new cs(r)};let O=null;const A=i.length>1;return(l||A)&&(O=r().createElement("div",{className:`${a}-operation`},A&&r().createElement(cN,{size:"small",options:i,value:t,onChange:n}),r().createElement(dN,Object.assign({prefixCls:a,value:c,onChange:e=>{u(e),null===d||void 0===d||d()}},g)))),r().createElement(r().Fragment,null,O,r().createElement(Ej,Object.assign({},e,{colors:v})),r().createElement(as,{prefixCls:a,value:null===k||void 0===k?void 0:k.toHsb(),disabledAlpha:s,onChange:(e,t)=>{((e,t,n)=>{const o=E(e,n);$(o.isGradient()?o.getColors()[f].color:o),u(o,t)})(e,!0,t)},onChangeComplete:(e,t)=>{((e,t)=>{p(E(e,t)),S(e=>e+1)})(e,t)},components:Aj}),r().createElement(_M,Object.assign({value:C,onChange:e=>{u(E(e))},prefixCls:a,disabledAlpha:s},g)))},Nj=()=>{const{prefixCls:e,value:t,presets:n,onChange:i}=(0,o.useContext)(uN);return Array.isArray(n)?r().createElement(Hs,{value:t,presets:n,prefixCls:e,onChange:i}):null};const Mj=e=>{const{prefixCls:t,presets:n,panelRender:o,value:i,onChange:a,onClear:l,allowClear:c,disabledAlpha:s,mode:u,onModeChange:d,modeOptions:p,onChangeComplete:f,activeIndex:m,onActive:g,format:v,onFormatChange:h,gradientDragging:b,onGradientDragging:y,disabledFormat:C}=e,x=`${t}-inner`,$=r().useMemo(()=>({prefixCls:t,value:i,onChange:a,onClear:l,allowClear:c,disabledAlpha:s,mode:u,onModeChange:d,modeOptions:p,onChangeComplete:f,activeIndex:m,onActive:g,format:v,onFormatChange:h,gradientDragging:b,onGradientDragging:y,disabledFormat:C}),[t,i,a,l,c,s,u,d,p,f,m,g,v,h,b,y,C]),w=r().useMemo(()=>({prefixCls:t,value:i,presets:n,onChange:a}),[t,i,n,a]),S=r().createElement("div",{className:`${x}-content`},r().createElement(Ij,null),Array.isArray(n)&&r().createElement(VI,null),r().createElement(Nj,null));return r().createElement(sN.Provider,{value:$},r().createElement(uN.Provider,{value:w},r().createElement("div",{className:x},"function"===typeof o?o(S,{components:{Picker:Ij,Presets:Nj}}):S)))};var jj=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const Pj=(0,o.forwardRef)((e,t)=>{const{color:n,prefixCls:i,open:l,disabled:c,format:s,className:u,showText:d,activeIndex:p}=e,f=jj(e,["color","prefixCls","open","disabled","format","className","showText","activeIndex"]),m=`${i}-trigger`,g=`${m}-text`,v=`${g}-cell`,[h]=Yl("ColorPicker"),b=r().useMemo(()=>{if(!d)return"";if("function"===typeof d)return d(n);if(n.cleared)return h.transparent;if(n.isGradient())return n.getColors().map((e,t)=>{const n=-1!==p&&p!==t;return r().createElement("span",{key:t,className:a()(v,n&&`${v}-inactive`)},e.color.toRgbString()," ",e.percent,"%")});const e=n.toHexString().toUpperCase(),t=js(n);switch(s){case"rgb":return n.toRgbString();case"hsb":return n.toHsbString();default:return t<100?`${e.slice(0,7)},${t}%`:e}},[n,s,d,p]),y=(0,o.useMemo)(()=>n.cleared?r().createElement(dN,{prefixCls:i}):r().createElement(Yc,{prefixCls:i,color:n.toCssString()}),[n,i]);return r().createElement("div",Object.assign({ref:t,className:a()(m,u,{[`${m}-active`]:l,[`${m}-disabled`]:c})},ni(f)),y,d&&r().createElement("div",{className:g},b))}),Rj=Pj;const Tj=(e,t)=>({backgroundImage:`conic-gradient(${t} 25%, transparent 25% 50%, ${t} 50% 75%, transparent 75% 100%)`,backgroundSize:`${e} ${e}`}),zj=(e,t)=>{const{componentCls:n,borderRadiusSM:o,colorPickerInsetShadow:r,lineWidth:i,colorFillSecondary:a}=e;return{[`${n}-color-block`]:Object.assign(Object.assign({position:"relative",borderRadius:o,width:t,height:t,boxShadow:r,flex:"none"},Tj("50%",e.colorFillSecondary)),{[`${n}-color-block-inner`]:{width:"100%",height:"100%",boxShadow:`inset 0 0 0 ${nt(i)} ${a}`,borderRadius:"inherit"}})}},Bj=e=>{const{componentCls:t,antCls:n,fontSizeSM:o,lineHeightSM:r,colorPickerAlphaInputWidth:i,marginXXS:a,paddingXXS:l,controlHeightSM:c,marginXS:s,fontSizeIcon:u,paddingXS:d,colorTextPlaceholder:p,colorPickerInputNumberHandleWidth:f,lineWidth:m}=e;return{[`${t}-input-container`]:{display:"flex",[`${t}-steppers${n}-input-number`]:{fontSize:o,lineHeight:r,[`${n}-input-number-input`]:{paddingInlineStart:l,paddingInlineEnd:0},[`${n}-input-number-handler-wrap`]:{width:f}},[`${t}-steppers${t}-alpha-input`]:{flex:`0 0 ${nt(i)}`,marginInlineStart:a},[`${t}-format-select${n}-select`]:{marginInlineEnd:s,width:"auto","&-single":{[`${n}-select-selector`]:{padding:0,border:0},[`${n}-select-arrow`]:{insetInlineEnd:0},[`${n}-select-selection-item`]:{paddingInlineEnd:e.calc(u).add(a).equal(),fontSize:o,lineHeight:nt(c)},[`${n}-select-item-option-content`]:{fontSize:o,lineHeight:r},[`${n}-select-dropdown`]:{[`${n}-select-item`]:{minHeight:"auto"}}}},[`${t}-input`]:{gap:a,alignItems:"center",flex:1,width:0,[`${t}-hsb-input,${t}-rgb-input`]:{display:"flex",gap:a,alignItems:"center"},[`${t}-steppers`]:{flex:1},[`${t}-hex-input${n}-input-affix-wrapper`]:{flex:1,padding:`0 ${nt(d)}`,[`${n}-input`]:{fontSize:o,textTransform:"uppercase",lineHeight:nt(e.calc(c).sub(e.calc(m).mul(2)).equal())},[`${n}-input-prefix`]:{color:p}}}}}},Hj=e=>{const{componentCls:t,controlHeightLG:n,borderRadiusSM:o,colorPickerInsetShadow:r,marginSM:i,colorBgElevated:a,colorFillSecondary:l,lineWidthBold:c,colorPickerHandlerSize:s}=e;return{userSelect:"none",[`${t}-select`]:{[`${t}-palette`]:{minHeight:e.calc(n).mul(4).equal(),overflow:"hidden",borderRadius:o},[`${t}-saturation`]:{position:"absolute",borderRadius:"inherit",boxShadow:r,inset:0},marginBottom:i},[`${t}-handler`]:{width:s,height:s,border:`${nt(c)} solid ${a}`,position:"relative",borderRadius:"50%",cursor:"pointer",boxShadow:`${r}, 0 0 0 1px ${l}`}}},Dj=e=>{const{componentCls:t,antCls:n,colorTextQuaternary:o,paddingXXS:r,colorPickerPresetColorSize:i,fontSizeSM:a,colorText:l,lineHeightSM:c,lineWidth:s,borderRadius:u,colorFill:d,colorWhite:p,marginXXS:f,paddingXS:m,fontHeightSM:g}=e;return{[`${t}-presets`]:{[`${n}-collapse-item > ${n}-collapse-header`]:{padding:0,[`${n}-collapse-expand-icon`]:{height:g,color:o,paddingInlineEnd:r}},[`${n}-collapse`]:{display:"flex",flexDirection:"column",gap:f},[`${n}-collapse-item > ${n}-collapse-content > ${n}-collapse-content-box`]:{padding:`${nt(m)} 0`},"&-label":{fontSize:a,color:l,lineHeight:c},"&-items":{display:"flex",flexWrap:"wrap",gap:e.calc(f).mul(1.5).equal(),[`${t}-presets-color`]:{position:"relative",cursor:"pointer",width:i,height:i,"&::before":{content:'""',pointerEvents:"none",width:e.calc(i).add(e.calc(s).mul(4)).equal(),height:e.calc(i).add(e.calc(s).mul(4)).equal(),position:"absolute",top:e.calc(s).mul(-2).equal(),insetInlineStart:e.calc(s).mul(-2).equal(),borderRadius:u,border:`${nt(s)} solid transparent`,transition:`border-color ${e.motionDurationMid} ${e.motionEaseInBack}`},"&:hover::before":{borderColor:d},"&::after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:e.calc(i).div(13).mul(5).equal(),height:e.calc(i).div(13).mul(8).equal(),border:`${nt(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:p,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`transform ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`},[`&${t}-presets-color-bright`]:{"&::after":{borderColor:"rgba(0, 0, 0, 0.45)"}}}}},"&-empty":{fontSize:a,color:o}}}},Lj=e=>{const{componentCls:t,colorPickerInsetShadow:n,colorBgElevated:o,colorFillSecondary:r,lineWidthBold:i,colorPickerHandlerSizeSM:a,colorPickerSliderHeight:l,marginSM:c,marginXS:s}=e,u=e.calc(a).sub(e.calc(i).mul(2).equal()).equal(),d=e.calc(a).add(e.calc(i).mul(2).equal()).equal(),p={"&:after":{transform:"scale(1)",boxShadow:`${n}, 0 0 0 1px ${e.colorPrimaryActive}`}};return{[`${t}-slider`]:[Tj(nt(l),e.colorFillSecondary),{margin:0,padding:0,height:l,borderRadius:e.calc(l).div(2).equal(),"&-rail":{height:l,borderRadius:e.calc(l).div(2).equal(),boxShadow:n},[`& ${t}-slider-handle`]:{width:u,height:u,top:0,borderRadius:"100%","&:before":{display:"block",position:"absolute",background:"transparent",left:{_skip_check_:!0,value:"50%"},top:"50%",transform:"translate(-50%, -50%)",width:d,height:d,borderRadius:"100%"},"&:after":{width:a,height:a,border:`${nt(i)} solid ${o}`,boxShadow:`${n}, 0 0 0 1px ${r}`,outline:"none",insetInlineStart:e.calc(i).mul(-1).equal(),top:e.calc(i).mul(-1).equal(),background:"transparent",transition:"none"},"&:focus":p}}],[`${t}-slider-container`]:{display:"flex",gap:c,marginBottom:c,[`${t}-slider-group`]:{flex:1,flexDirection:"column",justifyContent:"space-between",display:"flex","&-disabled-alpha":{justifyContent:"center"}}},[`${t}-gradient-slider`]:{marginBottom:s,[`& ${t}-slider-handle`]:{"&:after":{transform:"scale(0.8)"},"&-active, &:focus":p}}}},Fj=(e,t,n)=>({borderInlineEndWidth:e.lineWidth,borderColor:t,boxShadow:`0 0 0 ${nt(e.controlOutlineWidth)} ${n}`,outline:0}),Wj=e=>{const{componentCls:t}=e;return{"&-rtl":{[`${t}-presets-color`]:{"&::after":{direction:"ltr"}},[`${t}-clear`]:{"&::after":{direction:"ltr"}}}}},_j=(e,t,n)=>{const{componentCls:o,borderRadiusSM:r,lineWidth:i,colorSplit:a,colorBorder:l,red6:c}=e;return{[`${o}-clear`]:Object.assign(Object.assign({width:t,height:t,borderRadius:r,border:`${nt(i)} solid ${a}`,position:"relative",overflow:"hidden",cursor:"inherit",transition:`all ${e.motionDurationFast}`},n),{"&::after":{content:'""',position:"absolute",insetInlineEnd:e.calc(i).mul(-1).equal(),top:e.calc(i).mul(-1).equal(),display:"block",width:40,height:2,transformOrigin:"calc(100% - 1px) 1px",transform:"rotate(-45deg)",backgroundColor:c},"&:hover":{borderColor:l}})}},Kj=e=>{const{componentCls:t,colorError:n,colorWarning:o,colorErrorHover:r,colorWarningHover:i,colorErrorOutline:a,colorWarningOutline:l}=e;return{[`&${t}-status-error`]:{borderColor:n,"&:hover":{borderColor:r},[`&${t}-trigger-active`]:Object.assign({},Fj(e,n,a))},[`&${t}-status-warning`]:{borderColor:o,"&:hover":{borderColor:i},[`&${t}-trigger-active`]:Object.assign({},Fj(e,o,l))}}},qj=e=>{const{componentCls:t,controlHeightLG:n,controlHeightSM:o,controlHeight:r,controlHeightXS:i,borderRadius:a,borderRadiusSM:l,borderRadiusXS:c,borderRadiusLG:s,fontSizeLG:u}=e;return{[`&${t}-lg`]:{minWidth:n,minHeight:n,borderRadius:s,[`${t}-color-block, ${t}-clear`]:{width:r,height:r,borderRadius:a},[`${t}-trigger-text`]:{fontSize:u}},[`&${t}-sm`]:{minWidth:o,minHeight:o,borderRadius:l,[`${t}-color-block, ${t}-clear`]:{width:i,height:i,borderRadius:c},[`${t}-trigger-text`]:{lineHeight:nt(i)}}}},Vj=e=>{const{antCls:t,componentCls:n,colorPickerWidth:o,colorPrimary:r,motionDurationMid:i,colorBgElevated:a,colorTextDisabled:l,colorText:c,colorBgContainerDisabled:s,borderRadius:u,marginXS:d,marginSM:p,controlHeight:f,controlHeightSM:m,colorBgTextActive:g,colorPickerPresetColorSize:v,colorPickerPreviewSize:h,lineWidth:b,colorBorder:y,paddingXXS:C,fontSize:x,colorPrimaryHover:$,controlOutline:w}=e;return[{[n]:Object.assign({[`${n}-inner`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({"&-content":{display:"flex",flexDirection:"column",width:o,[`& > ${t}-divider`]:{margin:`${nt(p)} 0 ${nt(d)}`}},[`${n}-panel`]:Object.assign({},Hj(e))},Lj(e)),zj(e,h)),Bj(e)),Dj(e)),_j(e,v,{marginInlineStart:"auto"})),{[`${n}-operation`]:{display:"flex",justifyContent:"space-between",marginBottom:d}}),"&-trigger":Object.assign(Object.assign(Object.assign(Object.assign({minWidth:f,minHeight:f,borderRadius:u,border:`${nt(b)} solid ${y}`,cursor:"pointer",display:"inline-flex",alignItems:"flex-start",justifyContent:"center",transition:`all ${i}`,background:a,padding:e.calc(C).sub(b).equal(),[`${n}-trigger-text`]:{marginInlineStart:d,marginInlineEnd:e.calc(d).sub(e.calc(C).sub(b)).equal(),fontSize:x,color:c,alignSelf:"center","&-cell":{"&:not(:last-child):after":{content:'", "'},"&-inactive":{color:l}}},"&:hover":{borderColor:$},[`&${n}-trigger-active`]:Object.assign({},Fj(e,r,w)),"&-disabled":{color:l,background:s,cursor:"not-allowed","&:hover":{borderColor:g},[`${n}-trigger-text`]:{color:l}}},_j(e,m)),zj(e,m)),Kj(e)),qj(e))},Wj(e))},gu(e,{focusElCls:`${n}-trigger-active`})]},Xj=qo("ColorPicker",e=>{const{colorTextQuaternary:t,marginSM:n}=e,o=Jn(e,{colorPickerWidth:234,colorPickerHandlerSize:16,colorPickerHandlerSizeSM:12,colorPickerAlphaInputWidth:44,colorPickerInputNumberHandleWidth:16,colorPickerPresetColorSize:24,colorPickerInsetShadow:`inset 0 0 1px 0 ${t}`,colorPickerSliderHeight:8,colorPickerPreviewSize:e.calc(8).mul(2).add(n).equal()});return[Vj(o)]});var Gj=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const Yj=e=>{const{mode:t,value:n,defaultValue:i,format:l,defaultFormat:c,allowClear:s=!1,presets:u,children:d,trigger:p="click",open:f,disabled:m,placement:g="bottomLeft",arrow:v=!0,panelRender:h,showText:b,style:y,className:C,size:x,rootClassName:$,prefixCls:w,styles:S,disabledAlpha:k=!1,onFormatChange:E,onChange:O,onClear:A,onOpenChange:I,onChangeComplete:N,getPopupContainer:M,autoAdjustOverflow:j=!0,destroyTooltipOnHide:P,destroyOnHidden:R,disabledFormat:T}=e,z=Gj(e,["mode","value","defaultValue","format","defaultFormat","allowClear","presets","children","trigger","open","disabled","placement","arrow","panelRender","showText","style","className","size","rootClassName","prefixCls","styles","disabledAlpha","onFormatChange","onChange","onClear","onOpenChange","onChangeComplete","getPopupContainer","autoAdjustOverflow","destroyTooltipOnHide","destroyOnHidden","disabledFormat"]),{getPrefixCls:B,direction:H,colorPicker:D}=(0,o.useContext)(xe),L=(0,o.useContext)(Ga),F=null!==m&&void 0!==m?m:L,[W,_]=Ln(!1,{value:f,postState:e=>!F&&e,onChange:I}),[K,q]=Ln(l,{value:l,defaultValue:c,onChange:E}),V=B("color-picker",w),[X,G,Y,U,Q]=function(e,t,n){const[r]=Yl("ColorPicker"),[i,a]=Ln(e,{value:t}),[l,c]=o.useState("single"),[s,u]=o.useMemo(()=>{const e=(Array.isArray(n)?n:[n]).filter(e=>e);e.length||e.push("single");const t=new Set(e),o=[],i=(e,n)=>{t.has(e)&&o.push({label:n,value:e})};return i("single",r.singleColor),i("gradient",r.gradientColor),[o,t]},[n]),[d,p]=o.useState(null),f=Bn(e=>{p(e),a(e)}),m=o.useMemo(()=>{const e=Ns(i||"");return e.equals(d)?d:e},[i,d]),g=o.useMemo(()=>{var e;return u.has(l)?l:null===(e=s[0])||void 0===e?void 0:e.value},[u,l,s]);return o.useEffect(()=>{c(m.isGradient()?"gradient":"single")},[m]),[m,f,g,c,s]}(i,n,t),Z=(0,o.useMemo)(()=>js(X)<100,[X]),[J,ee]=r().useState(null),te=e=>{if(N){let t=Ns(e);k&&Z&&(t=Ps(e)),N(t)}},ne=(e,t)=>{let n=Ns(e);k&&Z&&(n=Ps(n)),G(n),ee(null),O&&O(n,n.toCssString()),t||te(n)},[oe,re]=r().useState(0),[ie,ae]=r().useState(!1),{status:le}=r().useContext(Ep),{compactSize:ce,compactItemClassnames:se}=mc(V,H),ue=lc(e=>{var t;return null!==(t=null!==x&&void 0!==x?x:ce)&&void 0!==t?t:e}),de=Mi(V),[pe,fe,me]=Xj(V,de),ge={[`${V}-rtl`]:H},ve=a()($,me,de,ge),he=a()(lh(V,le),{[`${V}-sm`]:"small"===ue,[`${V}-lg`]:"large"===ue},se,null===D||void 0===D?void 0:D.className,ve,C,fe),be=a()(V,ve);const ye={open:W,trigger:p,placement:g,arrow:v,rootClassName:$,getPopupContainer:M,autoAdjustOverflow:j,destroyOnHidden:null!==R&&void 0!==R?R:!!P},Ce=Object.assign(Object.assign({},null===D||void 0===D?void 0:D.style),y);return pe(r().createElement(Ay,Object.assign({style:null===S||void 0===S?void 0:S.popup,styles:{body:null===S||void 0===S?void 0:S.popupOverlayInner},onOpenChange:e=>{e&&F||_(e)},content:r().createElement(Ip,{form:!0},r().createElement(Mj,{mode:Y,onModeChange:e=>{if(U(e),"single"===e&&X.isGradient())re(0),ne(new cs(X.getColors()[0].color)),ee(X);else if("gradient"===e&&!X.isGradient()){const e=Z?Ps(X):X;ne(new cs(J||[{percent:0,color:e},{percent:100,color:e}]))}},modeOptions:Q,prefixCls:V,value:X,allowClear:s,disabled:F,disabledAlpha:k,presets:u,panelRender:h,format:K,onFormatChange:q,onChange:ne,onChangeComplete:te,onClear:A,activeIndex:oe,onActive:re,gradientDragging:ie,onGradientDragging:ae,disabledFormat:T})),classNames:{root:be}},ye),d||r().createElement(Rj,Object.assign({activeIndex:W?oe:-1,open:W,className:he,style:Ce,prefixCls:V,disabled:F,showText:b,format:K},z,{color:X}))))};const Uj=Qm(Yj,void 0,e=>Object.assign(Object.assign({},e),{placement:"bottom",autoAdjustOverflow:!1}),"color-picker",e=>e);Yj._InternalPanelDoNotUseOrYouWillBeFired=Uj;const Qj=Yj;var Zj=n(38824),Jj=n(88298),eP=n(3791);const tP=(e,t)=>{const{componentCls:n,controlHeight:o}=e,r=t?`${n}-${t}`:"",i=Fh(e);return[{[`${n}-multiple${r}`]:{paddingBlock:i.containerPadding,paddingInlineStart:i.basePadding,minHeight:o,[`${n}-selection-item`]:{height:i.itemHeight,lineHeight:nt(i.itemLineHeight)}}}]},nP=e=>{const{componentCls:t,calc:n,lineWidth:o}=e,r=Jn(e,{fontHeight:e.fontSize,selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS,controlHeight:e.controlHeightSM}),i=Jn(e,{fontHeight:n(e.multipleItemHeightLG).sub(n(o).mul(2).equal()).equal(),fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius,controlHeight:e.controlHeightLG});return[tP(r,"small"),tP(e),tP(i,"large"),{[`${t}${t}-multiple`]:Object.assign(Object.assign({width:"100%",cursor:"text",[`${t}-selector`]:{flex:"auto",padding:0,position:"relative","&:after":{margin:0},[`${t}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:0,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}}},Wh(e)),{[`${t}-multiple-input`]:{width:0,height:0,border:0,visibility:"hidden",position:"absolute",zIndex:-1}})}]},oP=e=>{const{componentCls:t}=e;return{[t]:[Object.assign(Object.assign(Object.assign(Object.assign({},ZN(e)),sM(e)),rM(e)),tM(e)),{"&-outlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${nt(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-filled":{[`&${t}-multiple ${t}-selection-item`]:{background:e.colorBgContainer,border:`${nt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}},"&-borderless":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${nt(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-underlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${nt(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}]}},rP=(e,t)=>({padding:`${nt(e)} ${nt(t)}`}),iP=e=>{const{componentCls:t,colorError:n,colorWarning:o}=e;return{[`${t}:not(${t}-disabled):not([disabled])`]:{[`&${t}-status-error`]:{[`${t}-active-bar`]:{background:n}},[`&${t}-status-warning`]:{[`${t}-active-bar`]:{background:o}}}}},aP=e=>{var t;const{componentCls:n,antCls:o,paddingInline:r,lineWidth:i,lineType:a,colorBorder:l,borderRadius:c,motionDurationMid:s,colorTextDisabled:u,colorTextPlaceholder:d,fontSizeLG:p,inputFontSizeLG:f,fontSizeSM:m,inputFontSizeSM:g,controlHeightSM:v,paddingInlineSM:h,paddingXS:b,marginXS:y,colorIcon:C,lineWidthBold:x,colorPrimary:$,motionDurationSlow:w,zIndexPopup:S,paddingXXS:k,sizePopupArrow:E,colorBgElevated:O,borderRadiusLG:A,boxShadowSecondary:I,borderRadiusSM:N,colorSplit:M,cellHoverBg:j,presetsWidth:P,presetsMaxWidth:R,boxShadowPopoverArrow:T,fontHeight:z,lineHeightLG:B}=e;return[{[n]:Object.assign(Object.assign(Object.assign({},po(e)),rP(e.paddingBlock,e.paddingInline)),{position:"relative",display:"inline-flex",alignItems:"center",lineHeight:1,borderRadius:c,transition:`border ${s}, box-shadow ${s}, background ${s}`,[`${n}-prefix`]:{flex:"0 0 auto",marginInlineEnd:e.inputAffixPadding},[`${n}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",color:"inherit",fontSize:null!==(t=e.inputFontSize)&&void 0!==t?t:e.fontSize,lineHeight:e.lineHeight,transition:`all ${s}`},uM(d)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,fontFamily:"inherit","&:focus":{boxShadow:"none",outline:0},"&[disabled]":{background:"transparent",color:u,cursor:"not-allowed"}}),"&-placeholder":{"> input":{color:d}}},"&-large":Object.assign(Object.assign({},rP(e.paddingBlockLG,e.paddingInlineLG)),{[`${n}-input > input`]:{fontSize:null!==f&&void 0!==f?f:p,lineHeight:B}}),"&-small":Object.assign(Object.assign({},rP(e.paddingBlockSM,e.paddingInlineSM)),{[`${n}-input > input`]:{fontSize:null!==g&&void 0!==g?g:m}}),[`${n}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:e.calc(b).div(2).equal(),color:u,lineHeight:1,pointerEvents:"none",transition:`opacity ${s}, color ${s}`,"> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:y}}},[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:u,lineHeight:1,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${s}, color ${s}`,"> *":{verticalAlign:"top"},"&:hover":{color:C}},"&:hover":{[`${n}-clear`]:{opacity:1},[`${n}-suffix:not(:last-child)`]:{opacity:0}},[`${n}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:p,color:u,fontSize:p,verticalAlign:"top",cursor:"default",[`${n}-focused &`]:{color:C},[`${n}-range-separator &`]:{[`${n}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${n}-active-bar`]:{bottom:e.calc(i).mul(-1).equal(),height:x,background:$,opacity:0,transition:`all ${w} ease-out`,pointerEvents:"none"},[`&${n}-focused`]:{[`${n}-active-bar`]:{opacity:1}},[`${n}-range-separator`]:{alignItems:"center",padding:`0 ${nt(b)}`,lineHeight:1}},"&-range, &-multiple":{[`${n}-clear`]:{insetInlineEnd:r},[`&${n}-small`]:{[`${n}-clear`]:{insetInlineEnd:h}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},po(e)),Hk(e)),{pointerEvents:"none",position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:S,[`&${n}-dropdown-hidden`]:{display:"none"},"&-rtl":{direction:"rtl"},[`&${n}-dropdown-placement-bottomLeft,\n &${n}-dropdown-placement-bottomRight`]:{[`${n}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${n}-dropdown-placement-topLeft,\n &${n}-dropdown-placement-topRight`]:{[`${n}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${o}-slide-up-appear, &${o}-slide-up-enter`]:{[`${n}-range-arrow${n}-range-arrow`]:{transition:"none"}},[`&${o}-slide-up-enter${o}-slide-up-enter-active${n}-dropdown-placement-topLeft,\n &${o}-slide-up-enter${o}-slide-up-enter-active${n}-dropdown-placement-topRight,\n &${o}-slide-up-appear${o}-slide-up-appear-active${n}-dropdown-placement-topLeft,\n &${o}-slide-up-appear${o}-slide-up-appear-active${n}-dropdown-placement-topRight`]:{animationName:wh},[`&${o}-slide-up-enter${o}-slide-up-enter-active${n}-dropdown-placement-bottomLeft,\n &${o}-slide-up-enter${o}-slide-up-enter-active${n}-dropdown-placement-bottomRight,\n &${o}-slide-up-appear${o}-slide-up-appear-active${n}-dropdown-placement-bottomLeft,\n &${o}-slide-up-appear${o}-slide-up-appear-active${n}-dropdown-placement-bottomRight`]:{animationName:xh},[`&${o}-slide-up-leave ${n}-panel-container`]:{pointerEvents:"none"},[`&${o}-slide-up-leave${o}-slide-up-leave-active${n}-dropdown-placement-topLeft,\n &${o}-slide-up-leave${o}-slide-up-leave-active${n}-dropdown-placement-topRight`]:{animationName:Sh},[`&${o}-slide-up-leave${o}-slide-up-leave-active${n}-dropdown-placement-bottomLeft,\n &${o}-slide-up-leave${o}-slide-up-leave-active${n}-dropdown-placement-bottomRight`]:{animationName:$h},[`${n}-panel > ${n}-time-panel`]:{paddingTop:k},[`${n}-range-wrapper`]:{display:"flex",position:"relative"},[`${n}-range-arrow`]:Object.assign(Object.assign({position:"absolute",zIndex:1,display:"none",paddingInline:e.calc(r).mul(1.5).equal(),boxSizing:"content-box",transition:`all ${w} ease-out`},Qb(e,O,T)),{"&:before":{insetInlineStart:e.calc(r).mul(1.5).equal()}}),[`${n}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:O,borderRadius:A,boxShadow:I,transition:`margin ${w}`,display:"inline-block",pointerEvents:"auto",[`${n}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${n}-presets`]:{display:"flex",flexDirection:"column",minWidth:P,maxWidth:R,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:b,borderInlineEnd:`${nt(i)} ${a} ${M}`,li:Object.assign(Object.assign({},uo),{borderRadius:N,paddingInline:b,paddingBlock:e.calc(v).sub(z).div(2).equal(),cursor:"pointer",transition:`all ${w}`,"+ li":{marginTop:y},"&:hover":{background:j}})}},[`${n}-panels`]:{display:"inline-flex",flexWrap:"nowrap","&:last-child":{[`${n}-panel`]:{borderWidth:0}}},[`${n}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${n}-content, table`]:{textAlign:"center"},"&-focused":{borderColor:l}}}}),"&-dropdown-range":{padding:`${nt(e.calc(E).mul(2).div(3).equal())} 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${n}-separator`]:{transform:"scale(-1, 1)"},[`${n}-footer`]:{"&-extra":{direction:"rtl"}}}})},Nh(e,"slide-up"),Nh(e,"slide-down"),Hh(e,"move-up"),Hh(e,"move-down")]},lP=qo("DatePicker",e=>{const t=Jn(Lk(e),Wk(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[Dk(t),aP(t),oP(t),iP(t),nP(t),gu(e,{focusElCls:`${e.componentCls}-focused`})]},e=>Object.assign(Object.assign(Object.assign(Object.assign({},Fk(e)),_k(e)),Ub(e)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50}));function cP(e,t,n){return void 0!==n?n:"year"===t&&e.lang.yearPlaceholder?e.lang.yearPlaceholder:"quarter"===t&&e.lang.quarterPlaceholder?e.lang.quarterPlaceholder:"month"===t&&e.lang.monthPlaceholder?e.lang.monthPlaceholder:"week"===t&&e.lang.weekPlaceholder?e.lang.weekPlaceholder:"time"===t&&e.timePickerLocale.placeholder?e.timePickerLocale.placeholder:e.lang.placeholder}function sP(e,t,n){return void 0!==n?n:"year"===t&&e.lang.yearPlaceholder?e.lang.rangeYearPlaceholder:"quarter"===t&&e.lang.quarterPlaceholder?e.lang.rangeQuarterPlaceholder:"month"===t&&e.lang.monthPlaceholder?e.lang.rangeMonthPlaceholder:"week"===t&&e.lang.weekPlaceholder?e.lang.rangeWeekPlaceholder:"time"===t&&e.timePickerLocale.placeholder?e.timePickerLocale.rangePlaceholder:e.lang.rangePlaceholder}function uP(e,t){const{allowClear:n=!0}=e,{clearIcon:r,removeIcon:i}=fb(Object.assign(Object.assign({},e),{prefixCls:t,componentName:"DatePicker"}));return[o.useMemo(()=>{if(!1===n)return!1;const e=!0===n?{}:n;return Object.assign({clearIcon:r},e)},[n,r]),i]}const[dP,pP]=["week","WeekPicker"],[fP,mP]=["month","MonthPicker"],[gP,vP]=["year","YearPicker"],[hP,bP]=["quarter","QuarterPicker"],[yP,CP]=["time","TimePicker"],xP=e=>o.createElement(Su,Object.assign({size:"small",type:"primary"},e));function $P(e){return(0,o.useMemo)(()=>Object.assign({button:xP},e),[e])}function wP(e){const t=e||{};for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return o.reduce((e,n)=>(Object.keys(n||{}).forEach(o=>{const r=t[o],i=n[o];if(r&&"object"===typeof r)if(i&&"object"===typeof i)e[o]=wP(r,e[o],i);else{const{_default:t}=r;e[o]=e[o]||{},e[o][t]=a()(e[o][t],i)}else e[o]=a()(e[o],i)}),e),{})}function SP(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return o.useMemo(()=>wP.apply(void 0,[e].concat(n)),[n])}function kP(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return o.useMemo(()=>t.reduce(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(t).forEach(n=>{e[n]=Object.assign(Object.assign({},e[n]),t[n])}),e},{}),[t])}function EP(e,t){const n=Object.assign({},e);return Object.keys(t).forEach(e=>{if("_default"!==e){const o=t[e],r=n[e]||{};n[e]=o?EP(r,o):r}}),n}function OP(e,t,n){const r=SP.apply(void 0,[n].concat(se(e))),i=kP.apply(void 0,se(t));return o.useMemo(()=>[EP(r,n),EP(i,n)],[r,i])}const AP=(e,t,n,r,i)=>{const{classNames:l,styles:c}=Se(e),[s,u]=OP([l,t],[c,n],{popup:{_default:"root"}});return o.useMemo(()=>{var e,t;return[Object.assign(Object.assign({},s),{popup:Object.assign(Object.assign({},s.popup),{root:a()(null===(e=s.popup)||void 0===e?void 0:e.root,r)})}),Object.assign(Object.assign({},u),{popup:Object.assign(Object.assign({},u.popup),{root:Object.assign(Object.assign({},null===(t=u.popup)||void 0===t?void 0:t.root),i)})})]},[s,u,r,i])};var IP=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const NP=e=>{const t=(0,o.forwardRef)((t,n)=>{var r;const{prefixCls:i,getPopupContainer:l,components:c,className:s,style:u,placement:d,size:p,disabled:f,bordered:m=!0,placeholder:g,popupStyle:v,popupClassName:h,dropdownClassName:b,status:y,rootClassName:C,variant:x,picker:$,styles:w,classNames:S}=t,k=IP(t,["prefixCls","getPopupContainer","components","className","style","placement","size","disabled","bordered","placeholder","popupStyle","popupClassName","dropdownClassName","status","rootClassName","variant","picker","styles","classNames"]),E=$===yP?"timePicker":"datePicker",O=o.useRef(null),{getPrefixCls:A,direction:I,getPopupContainer:N,rangePicker:M}=(0,o.useContext)(xe),j=A("picker",i),{compactSize:P,compactItemClassnames:R}=mc(j,I),T=A(),[z,B]=yh("rangePicker",x,m),H=Mi(j),[D,L,F]=lP(j,H);const[W,_]=AP(E,S,w,h||b,v),[K]=uP(t,j),q=$P(c),V=lc(e=>{var t;return null!==(t=null!==p&&void 0!==p?p:P)&&void 0!==t?t:e}),X=o.useContext(Ga),G=null!==f&&void 0!==f?f:X,Y=(0,o.useContext)(Ep),{hasFeedback:U,status:Q,feedbackIcon:Z}=Y,J=o.createElement(o.Fragment,null,$===yP?o.createElement(Jj.A,null):o.createElement(Zj.A,null),U&&Z);(0,o.useImperativeHandle)(n,()=>O.current);const[ee]=Yl("Calendar",Ra),te=Object.assign(Object.assign({},ee),t.locale),[ne]=fa("DatePicker",null===(r=_.popup.root)||void 0===r?void 0:r.zIndex);return D(o.createElement(Ip,{space:!0},o.createElement(ZS,Object.assign({separator:o.createElement("span",{"aria-label":"to",className:`${j}-separator`},o.createElement(eP.A,null)),disabled:G,ref:O,placement:d,placeholder:sP(te,$,g),suffixIcon:J,prevIcon:o.createElement("span",{className:`${j}-prev-icon`}),nextIcon:o.createElement("span",{className:`${j}-next-icon`}),superPrevIcon:o.createElement("span",{className:`${j}-super-prev-icon`}),superNextIcon:o.createElement("span",{className:`${j}-super-next-icon`}),transitionName:`${T}-slide-up`,picker:$},k,{className:a()({[`${j}-${V}`]:V,[`${j}-${z}`]:B},lh(j,ch(Q,y),U),L,R,s,null===M||void 0===M?void 0:M.className,F,H,C,W.root),style:Object.assign(Object.assign(Object.assign({},null===M||void 0===M?void 0:M.style),u),_.root),locale:te.lang,prefixCls:j,getPopupContainer:l||N,generateConfig:e,components:q,direction:I,classNames:{popup:a()(L,F,H,C,W.popup.root)},styles:{popup:Object.assign(Object.assign({},_.popup.root),{zIndex:ne})},allowClear:K}))))});return t};var MP=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const jP=e=>{const t=(t,n)=>{const r=n===CP?"timePicker":"datePicker",i=(0,o.forwardRef)((n,i)=>{var l;const{prefixCls:c,getPopupContainer:s,components:u,style:d,className:p,rootClassName:f,size:m,bordered:g,placement:v,placeholder:h,popupStyle:b,popupClassName:y,dropdownClassName:C,disabled:x,status:$,variant:w,onCalendarChange:S,styles:k,classNames:E}=n,O=MP(n,["prefixCls","getPopupContainer","components","style","className","rootClassName","size","bordered","placement","placeholder","popupStyle","popupClassName","dropdownClassName","disabled","status","variant","onCalendarChange","styles","classNames"]),{getPrefixCls:A,direction:I,getPopupContainer:N,[r]:M}=(0,o.useContext)(xe),j=A("picker",c),{compactSize:P,compactItemClassnames:R}=mc(j,I),T=o.useRef(null),[z,B]=yh("datePicker",w,g),H=Mi(j),[D,L,F]=lP(j,H);(0,o.useImperativeHandle)(i,()=>T.current);const W=t||n.picker,_=A(),{onSelect:K,multiple:q}=O,V=K&&"time"===t&&!q;const[X,G]=AP(r,E,k,y||C,b),[Y,U]=uP(n,j),Q=$P(u),Z=lc(e=>{var t;return null!==(t=null!==m&&void 0!==m?m:P)&&void 0!==t?t:e}),J=o.useContext(Ga),ee=null!==x&&void 0!==x?x:J,te=(0,o.useContext)(Ep),{hasFeedback:ne,status:oe,feedbackIcon:re}=te,ie=o.createElement(o.Fragment,null,"time"===W?o.createElement(Jj.A,null):o.createElement(Zj.A,null),ne&&re),[ae]=Yl("DatePicker",Ra),le=Object.assign(Object.assign({},ae),n.locale),[ce]=fa("DatePicker",null===(l=G.popup.root)||void 0===l?void 0:l.zIndex);return D(o.createElement(Ip,{space:!0},o.createElement(rk,Object.assign({ref:T,placeholder:cP(le,W,h),suffixIcon:ie,placement:v,prevIcon:o.createElement("span",{className:`${j}-prev-icon`}),nextIcon:o.createElement("span",{className:`${j}-next-icon`}),superPrevIcon:o.createElement("span",{className:`${j}-super-prev-icon`}),superNextIcon:o.createElement("span",{className:`${j}-super-next-icon`}),transitionName:`${_}-slide-up`,picker:t,onCalendarChange:(e,t,n)=>{null===S||void 0===S||S(e,t,n),V&&K(e)}},{showToday:!0},O,{locale:le.lang,className:a()({[`${j}-${Z}`]:Z,[`${j}-${z}`]:B},lh(j,ch(oe,$),ne),L,R,null===M||void 0===M?void 0:M.className,p,F,H,f,X.root),style:Object.assign(Object.assign(Object.assign({},null===M||void 0===M?void 0:M.style),d),G.root),prefixCls:j,getPopupContainer:s||N,generateConfig:e,components:Q,direction:I,disabled:ee,classNames:{popup:a()(L,F,H,f,X.popup.root)},styles:{popup:Object.assign(Object.assign({},G.popup.root),{zIndex:ce})},allowClear:Y,removeIcon:U}))))});return i},n=t(),r=t(dP,pP),i=t(fP,mP),l=t(gP,vP),c=t(hP,bP);return{DatePicker:n,WeekPicker:r,MonthPicker:i,YearPicker:l,TimePicker:t(yP,CP),QuarterPicker:c}},PP=e=>{const{DatePicker:t,WeekPicker:n,MonthPicker:o,YearPicker:r,TimePicker:i,QuarterPicker:a}=jP(e),l=NP(e),c=t;return c.WeekPicker=n,c.MonthPicker=o,c.YearPicker=r,c.RangePicker=l,c.TimePicker=i,c.QuarterPicker=a,c},RP=PP(lw),TP=Qm(RP,"popupAlign",void 0,"picker");RP._InternalPanelDoNotUseOrYouWillBeFired=TP;const zP=Qm(RP.RangePicker,"popupAlign",void 0,"picker");RP._InternalRangePanelDoNotUseOrYouWillBeFired=zP,RP.generatePicker=PP;const BP=RP,HP={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1},DP=r().createContext({});var LP=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};function FP(e,t,n){const r=o.useMemo(()=>t||s(n).map(e=>Object.assign(Object.assign({},null===e||void 0===e?void 0:e.props),{key:e.key})),[t,n]);return o.useMemo(()=>r.map(t=>{var{span:n}=t,o=LP(t,["span"]);return"filled"===n?Object.assign(Object.assign({},o),{filled:!0}):Object.assign(Object.assign({},o),{span:"number"===typeof n?n:Nb(e,n)})}),[r,e])}var WP=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const _P=(e,t)=>{const[n,r]=(0,o.useMemo)(()=>function(e,t){let n=[],o=[],r=!1,i=0;return e.filter(e=>e).forEach(e=>{const{filled:a}=e,l=WP(e,["filled"]);if(a)return o.push(l),n.push(o),o=[],void(i=0);const c=t-i;i+=e.span||1,i>=t?(i>t?(r=!0,o.push(Object.assign(Object.assign({},l),{span:c}))):o.push(l),n.push(o),o=[],i=0):o.push(l)}),o.length>0&&n.push(o),n=n.map(e=>{const n=e.reduce((e,t)=>e+(t.span||1),0);if(n<t){const o=e[e.length-1];return o.span=t-(n-(o.span||1)),e}return e}),[n,r]}(t,e),[t,e]);return n},KP=e=>{let{children:t}=e;return t};function qP(e){return void 0!==e&&null!==e}const VP=e=>{const{itemPrefixCls:t,component:n,span:r,className:i,style:l,labelStyle:c,contentStyle:s,bordered:u,label:d,content:p,colon:f,type:m,styles:g}=e,v=n,h=o.useContext(DP),{classNames:b}=h;return u?o.createElement(v,{className:a()({[`${t}-item-label`]:"label"===m,[`${t}-item-content`]:"content"===m,[`${null===b||void 0===b?void 0:b.label}`]:"label"===m,[`${null===b||void 0===b?void 0:b.content}`]:"content"===m},i),style:l,colSpan:r},qP(d)&&o.createElement("span",{style:Object.assign(Object.assign({},c),null===g||void 0===g?void 0:g.label)},d),qP(p)&&o.createElement("span",{style:Object.assign(Object.assign({},c),null===g||void 0===g?void 0:g.content)},p)):o.createElement(v,{className:a()(`${t}-item`,i),style:l,colSpan:r},o.createElement("div",{className:`${t}-item-container`},(d||0===d)&&o.createElement("span",{className:a()(`${t}-item-label`,null===b||void 0===b?void 0:b.label,{[`${t}-item-no-colon`]:!f}),style:Object.assign(Object.assign({},c),null===g||void 0===g?void 0:g.label)},d),(p||0===p)&&o.createElement("span",{className:a()(`${t}-item-content`,null===b||void 0===b?void 0:b.content),style:Object.assign(Object.assign({},s),null===g||void 0===g?void 0:g.content)},p)))};function XP(e,t,n){let{colon:r,prefixCls:i,bordered:a}=t,{component:l,type:c,showLabel:s,showContent:u,labelStyle:d,contentStyle:p,styles:f}=n;return e.map((e,t)=>{let{label:n,children:m,prefixCls:g=i,className:v,style:h,labelStyle:b,contentStyle:y,span:C=1,key:x,styles:$}=e;return"string"===typeof l?o.createElement(VP,{key:`${c}-${x||t}`,className:v,style:h,styles:{label:Object.assign(Object.assign(Object.assign(Object.assign({},d),null===f||void 0===f?void 0:f.label),b),null===$||void 0===$?void 0:$.label),content:Object.assign(Object.assign(Object.assign(Object.assign({},p),null===f||void 0===f?void 0:f.content),y),null===$||void 0===$?void 0:$.content)},span:C,colon:r,component:l,itemPrefixCls:g,bordered:a,label:s?n:null,content:u?m:null,type:c}):[o.createElement(VP,{key:`label-${x||t}`,className:v,style:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},d),null===f||void 0===f?void 0:f.label),h),b),null===$||void 0===$?void 0:$.label),span:1,colon:r,component:l[0],itemPrefixCls:g,bordered:a,label:n,type:"label"}),o.createElement(VP,{key:`content-${x||t}`,className:v,style:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},p),null===f||void 0===f?void 0:f.content),h),y),null===$||void 0===$?void 0:$.content),span:2*C-1,component:l[1],itemPrefixCls:g,bordered:a,content:m,type:"content"})]})}const GP=e=>{const t=o.useContext(DP),{prefixCls:n,vertical:r,row:i,index:a,bordered:l}=e;return r?o.createElement(o.Fragment,null,o.createElement("tr",{key:`label-${a}`,className:`${n}-row`},XP(i,e,Object.assign({component:"th",type:"label",showLabel:!0},t))),o.createElement("tr",{key:`content-${a}`,className:`${n}-row`},XP(i,e,Object.assign({component:"td",type:"content",showContent:!0},t)))):o.createElement("tr",{key:a,className:`${n}-row`},XP(i,e,Object.assign({component:l?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0},t)))},YP=e=>{const{componentCls:t,labelBg:n}=e;return{[`&${t}-bordered`]:{[`> ${t}-view`]:{border:`${nt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"> table":{tableLayout:"auto"},[`${t}-row`]:{borderBottom:`${nt(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:`${nt(e.padding)} ${nt(e.paddingLG)}`,borderInlineEnd:`${nt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderInlineEnd:"none"}},[`> ${t}-item-label`]:{color:e.colorTextSecondary,backgroundColor:n,"&::after":{display:"none"}}}},[`&${t}-middle`]:{[`${t}-row`]:{[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${nt(e.paddingSM)} ${nt(e.paddingLG)}`}}},[`&${t}-small`]:{[`${t}-row`]:{[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${nt(e.paddingXS)} ${nt(e.padding)}`}}}}}},UP=qo("Descriptions",e=>(e=>{const{componentCls:t,extraColor:n,itemPaddingBottom:o,itemPaddingEnd:r,colonMarginRight:i,colonMarginLeft:a,titleMarginBottom:l}=e;return{[t]:Object.assign(Object.assign(Object.assign({},po(e)),YP(e)),{"&-rtl":{direction:"rtl"},[`${t}-header`]:{display:"flex",alignItems:"center",marginBottom:l},[`${t}-title`]:Object.assign(Object.assign({},uo),{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:o,paddingInlineEnd:r},"> 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:`${nt(a)} ${nt(i)}`},[`&${t}-item-no-colon::after`]:{content:'""'}},[`${t}-item-no-label`]:{"&::after":{margin:0,content:'""'}},[`${t}-item-content`]:{display:"table-cell",flex:1,color:e.contentColor,fontSize:e.fontSize,lineHeight:e.lineHeight,wordBreak:"break-word",overflowWrap:"break-word"},[`${t}-item`]:{paddingBottom:0,verticalAlign:"top","&-container":{display:"flex",[`${t}-item-label`]:{display:"inline-flex",alignItems:"baseline"},[`${t}-item-content`]:{display:"inline-flex",alignItems:"baseline",minWidth:"1em"}}},"&-middle":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingSM}}},"&-small":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingXS}}}})}})(Jn(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}));var QP=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const ZP=e=>{const{prefixCls:t,title:n,extra:r,column:i,colon:l=!0,bordered:c,layout:s,children:u,className:d,rootClassName:p,style:f,size:m,labelStyle:g,contentStyle:v,styles:h,items:b,classNames:y}=e,C=QP(e,["prefixCls","title","extra","column","colon","bordered","layout","children","className","rootClassName","style","size","labelStyle","contentStyle","styles","items","classNames"]),{getPrefixCls:x,direction:$,className:w,style:S,classNames:k,styles:E}=Se("descriptions"),O=x("descriptions",t),A=Pb();const I=o.useMemo(()=>{var e;return"number"===typeof i?i:null!==(e=Nb(A,Object.assign(Object.assign({},HP),i)))&&void 0!==e?e:3},[A,i]),N=FP(A,b,u),M=lc(m),j=_P(I,N),[P,R,T]=UP(O),z=o.useMemo(()=>({labelStyle:g,contentStyle:v,styles:{content:Object.assign(Object.assign({},E.content),null===h||void 0===h?void 0:h.content),label:Object.assign(Object.assign({},E.label),null===h||void 0===h?void 0:h.label)},classNames:{label:a()(k.label,null===y||void 0===y?void 0:y.label),content:a()(k.content,null===y||void 0===y?void 0:y.content)}}),[g,v,h,y,k,E]);return P(o.createElement(DP.Provider,{value:z},o.createElement("div",Object.assign({className:a()(O,w,k.root,null===y||void 0===y?void 0:y.root,{[`${O}-${M}`]:M&&"default"!==M,[`${O}-bordered`]:!!c,[`${O}-rtl`]:"rtl"===$},d,p,R,T),style:Object.assign(Object.assign(Object.assign(Object.assign({},S),E.root),null===h||void 0===h?void 0:h.root),f)},C),(n||r)&&o.createElement("div",{className:a()(`${O}-header`,k.header,null===y||void 0===y?void 0:y.header),style:Object.assign(Object.assign({},E.header),null===h||void 0===h?void 0:h.header)},n&&o.createElement("div",{className:a()(`${O}-title`,k.title,null===y||void 0===y?void 0:y.title),style:Object.assign(Object.assign({},E.title),null===h||void 0===h?void 0:h.title)},n),r&&o.createElement("div",{className:a()(`${O}-extra`,k.extra,null===y||void 0===y?void 0:y.extra),style:Object.assign(Object.assign({},E.extra),null===h||void 0===h?void 0:h.extra)},r)),o.createElement("div",{className:`${O}-view`},o.createElement("table",null,o.createElement("tbody",null,j.map((e,t)=>o.createElement(GP,{key:t,index:t,colon:l,prefixCls:O,vertical:"vertical"===s,bordered:c,row:e}))))))))};ZP.Item=KP;const JP=ZP;var eR=o.createContext(null),tR=o.createContext({});const nR=eR;var oR=["prefixCls","className","containerRef"];const rR=function(e){var t=e.prefixCls,n=e.className,r=e.containerRef,i=(0,cr.A)(e,oR),c=o.useContext(tR).panel,s=(0,b.xK)(c,r);return o.createElement("div",(0,l.A)({className:a()("".concat(t,"-content"),n),role:"dialog",ref:s},ni(e,{aria:!0}),{"aria-modal":"true"},i))};function iR(e){return"string"===typeof e&&String(Number(e))===e?((0,u.Ay)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(e)):e}var aR={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};var lR=o.forwardRef(function(e,t){var n,r,i,c=e.prefixCls,s=e.open,u=e.placement,p=e.inline,f=e.push,m=e.forceRender,g=e.autoFocus,v=e.keyboard,h=e.classNames,b=e.rootClassName,y=e.rootStyle,C=e.zIndex,x=e.className,$=e.id,w=e.style,S=e.motion,k=e.width,E=e.height,O=e.children,A=e.mask,I=e.maskClosable,N=e.maskMotion,M=e.maskClassName,j=e.maskStyle,P=e.afterOpenChange,R=e.onClose,T=e.onMouseEnter,z=e.onMouseOver,B=e.onMouseLeave,H=e.onClick,D=e.onKeyDown,L=e.onKeyUp,F=e.styles,W=e.drawerRender,_=o.useRef(),K=o.useRef(),q=o.useRef();o.useImperativeHandle(t,function(){return _.current}),o.useEffect(function(){var e;s&&g&&(null===(e=_.current)||void 0===e||e.focus({preventScroll:!0}))},[s]);var V=o.useState(!1),X=(0,ke.A)(V,2),G=X[0],Y=X[1],U=o.useContext(nR),Q=null!==(n=null!==(r=null===(i="boolean"===typeof f?f?{}:{distance:0}:f||{})||void 0===i?void 0:i.distance)&&void 0!==r?r:null===U||void 0===U?void 0:U.pushDistance)&&void 0!==n?n:180,Z=o.useMemo(function(){return{pushDistance:Q,push:function(){Y(!0)},pull:function(){Y(!1)}}},[Q]);o.useEffect(function(){var e,t;s?null===U||void 0===U||null===(e=U.push)||void 0===e||e.call(U):null===U||void 0===U||null===(t=U.pull)||void 0===t||t.call(U)},[s]),o.useEffect(function(){return function(){var e;null===U||void 0===U||null===(e=U.pull)||void 0===e||e.call(U)}},[]);var J=o.createElement(Jr,(0,l.A)({key:"mask"},N,{visible:A&&s}),function(e,t){var n=e.className,r=e.style;return o.createElement("div",{className:a()("".concat(c,"-mask"),n,null===h||void 0===h?void 0:h.mask,M),style:(0,d.A)((0,d.A)((0,d.A)({},r),j),null===F||void 0===F?void 0:F.mask),onClick:I&&s?R:void 0,ref:t})}),ee="function"===typeof S?S(u):S,te={};if(G&&Q)switch(u){case"top":te.transform="translateY(".concat(Q,"px)");break;case"bottom":te.transform="translateY(".concat(-Q,"px)");break;case"left":te.transform="translateX(".concat(Q,"px)");break;default:te.transform="translateX(".concat(-Q,"px)")}"left"===u||"right"===u?te.width=iR(k):te.height=iR(E);var ne={onMouseEnter:T,onMouseOver:z,onMouseLeave:B,onClick:H,onKeyDown:D,onKeyUp:L},oe=o.createElement(Jr,(0,l.A)({key:"panel"},ee,{visible:s,forceRender:m,onVisibleChanged:function(e){null===P||void 0===P||P(e)},removeOnLeave:!1,leavedClassName:"".concat(c,"-content-wrapper-hidden")}),function(t,n){var r=t.className,i=t.style,s=o.createElement(rR,(0,l.A)({id:$,containerRef:n,prefixCls:c,className:a()(x,null===h||void 0===h?void 0:h.content),style:(0,d.A)((0,d.A)({},w),null===F||void 0===F?void 0:F.content)},ni(e,{aria:!0}),ne),O);return o.createElement("div",(0,l.A)({className:a()("".concat(c,"-content-wrapper"),null===h||void 0===h?void 0:h.wrapper,r),style:(0,d.A)((0,d.A)((0,d.A)({},te),i),null===F||void 0===F?void 0:F.wrapper)},ni(e,{data:!0})),W?W(s):s)}),re=(0,d.A)({},y);return C&&(re.zIndex=C),o.createElement(nR.Provider,{value:Z},o.createElement("div",{className:a()(c,"".concat(c,"-").concat(u),b,(0,Ee.A)((0,Ee.A)({},"".concat(c,"-open"),s),"".concat(c,"-inline"),p)),style:re,tabIndex:-1,ref:_,onKeyDown:function(e){var t=e.keyCode,n=e.shiftKey;switch(t){case Xi.TAB:var o;if(t===Xi.TAB)if(n||document.activeElement!==q.current){if(n&&document.activeElement===K.current){var r;null===(r=q.current)||void 0===r||r.focus({preventScroll:!0})}}else null===(o=K.current)||void 0===o||o.focus({preventScroll:!0});break;case Xi.ESC:R&&v&&(e.stopPropagation(),R(e))}}},J,o.createElement("div",{tabIndex:0,ref:K,style:aR,"aria-hidden":"true","data-sentinel":"start"}),oe,o.createElement("div",{tabIndex:0,ref:q,style:aR,"aria-hidden":"true","data-sentinel":"end"})))});const cR=lR;const sR=function(e){var t=e.open,n=void 0!==t&&t,r=e.prefixCls,i=void 0===r?"rc-drawer":r,a=e.placement,l=void 0===a?"right":a,c=e.autoFocus,s=void 0===c||c,u=e.keyboard,p=void 0===u||u,f=e.width,m=void 0===f?378:f,g=e.mask,v=void 0===g||g,h=e.maskClosable,b=void 0===h||h,y=e.getContainer,C=e.forceRender,x=e.afterOpenChange,$=e.destroyOnClose,w=e.onMouseEnter,S=e.onMouseOver,k=e.onMouseLeave,E=e.onClick,O=e.onKeyDown,A=e.onKeyUp,I=e.panelRef,N=o.useState(!1),M=(0,ke.A)(N,2),j=M[0],P=M[1];var R=o.useState(!1),T=(0,ke.A)(R,2),z=T[0],B=T[1];ut(function(){B(!0)},[]);var H=!!z&&n,D=o.useRef(),L=o.useRef();ut(function(){H&&(L.current=document.activeElement)},[H]);var F=o.useMemo(function(){return{panel:I}},[I]);if(!C&&!j&&!H&&$)return null;var W={onMouseEnter:w,onMouseOver:S,onMouseLeave:k,onClick:E,onKeyDown:O,onKeyUp:A},_=(0,d.A)((0,d.A)({},e),{},{open:H,prefixCls:i,placement:l,autoFocus:s,keyboard:p,width:m,mask:v,maskClosable:b,inline:!1===y,afterOpenChange:function(e){var t,n;(P(e),null===x||void 0===x||x(e),e||!L.current||null!==(t=D.current)&&void 0!==t&&t.contains(L.current))||(null===(n=L.current)||void 0===n||n.focus({preventScroll:!0}))},ref:D},W);return o.createElement(tR.Provider,{value:F},o.createElement(_u,{open:H||C||j,autoDestroy:!1,getContainer:y,autoLock:v&&(H||j)},o.createElement(cR,_)))},uR=sR,dR=e=>{var t,n;const{prefixCls:r,title:i,footer:l,extra:c,loading:s,onClose:u,headerStyle:d,bodyStyle:p,footerStyle:f,children:m,classNames:g,styles:v}=e,h=Se("drawer"),b=o.useCallback(e=>o.createElement("button",{type:"button",onClick:u,className:`${r}-close`},e),[u]),[y,C]=Rp(Mp(e),Mp(h),{closable:!0,closeIconRender:b}),x=o.useMemo(()=>{var e,t;return i||y?o.createElement("div",{style:Object.assign(Object.assign(Object.assign({},null===(e=h.styles)||void 0===e?void 0:e.header),d),null===v||void 0===v?void 0:v.header),className:a()(`${r}-header`,{[`${r}-header-close-only`]:y&&!i&&!c},null===(t=h.classNames)||void 0===t?void 0:t.header,null===g||void 0===g?void 0:g.header)},o.createElement("div",{className:`${r}-header-title`},C,i&&o.createElement("div",{className:`${r}-title`},i)),c&&o.createElement("div",{className:`${r}-extra`},c)):null},[y,C,c,d,r,i]),$=o.useMemo(()=>{var e,t;if(!l)return null;const n=`${r}-footer`;return o.createElement("div",{className:a()(n,null===(e=h.classNames)||void 0===e?void 0:e.footer,null===g||void 0===g?void 0:g.footer),style:Object.assign(Object.assign(Object.assign({},null===(t=h.styles)||void 0===t?void 0:t.footer),f),null===v||void 0===v?void 0:v.footer)},l)},[l,f,r]);return o.createElement(o.Fragment,null,x,o.createElement("div",{className:a()(`${r}-body`,null===g||void 0===g?void 0:g.body,null===(t=h.classNames)||void 0===t?void 0:t.body),style:Object.assign(Object.assign(Object.assign({},null===(n=h.styles)||void 0===n?void 0:n.body),p),null===v||void 0===v?void 0:v.body)},s?o.createElement(lf,{active:!0,title:!1,paragraph:{rows:5},className:`${r}-body-skeleton`}):m),$)},pR=e=>{const t="100%";return{left:`translateX(-${t})`,right:`translateX(${t})`,top:`translateY(-${t})`,bottom:`translateY(${t})`}[e]},fR=(e,t)=>({"&-enter, &-appear":Object.assign(Object.assign({},e),{"&-active":t}),"&-leave":Object.assign(Object.assign({},t),{"&-active":e})}),mR=(e,t)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${t}`}}},fR({opacity:e},{opacity:1})),gR=(e,t)=>[mR(.7,t),fR({transform:pR(e)},{transform:"none"})],vR=e=>{const{componentCls:t,motionDurationSlow:n}=e;return{[t]:{[`${t}-mask-motion`]:mR(0,n),[`${t}-panel-motion`]:["left","right","top","bottom"].reduce((e,t)=>Object.assign(Object.assign({},e),{[`&-${t}`]:gR(t,n)}),{})}}},hR=e=>{const{borderRadiusSM:t,componentCls:n,zIndexPopup:o,colorBgMask:r,colorBgElevated:i,motionDurationSlow:a,motionDurationMid:l,paddingXS:c,padding:s,paddingLG:u,fontSizeLG:d,lineHeightLG:p,lineWidth:f,lineType:m,colorSplit:g,marginXS:v,colorIcon:h,colorIconHover:b,colorBgTextHover:y,colorBgTextActive:C,colorText:x,fontWeightStrong:$,footerPaddingBlock:w,footerPaddingInline:S,calc:k}=e,E=`${n}-content-wrapper`;return{[n]:{position:"fixed",inset:0,zIndex:o,pointerEvents:"none",color:x,"&-pure":{position:"relative",background:i,display:"flex",flexDirection:"column",[`&${n}-left`]:{boxShadow:e.boxShadowDrawerLeft},[`&${n}-right`]:{boxShadow:e.boxShadowDrawerRight},[`&${n}-top`]:{boxShadow:e.boxShadowDrawerUp},[`&${n}-bottom`]:{boxShadow:e.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${n}-mask`]:{position:"absolute",inset:0,zIndex:o,background:r,pointerEvents:"auto"},[E]:{position:"absolute",zIndex:o,maxWidth:"100vw",transition:`all ${a}`,"&-hidden":{display:"none"}},[`&-left > ${E}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${E}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${E}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${E}`]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},[`${n}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:i,pointerEvents:"auto"},[`${n}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${nt(s)} ${nt(u)}`,fontSize:d,lineHeight:p,borderBottom:`${nt(f)} ${m} ${g}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${n}-extra`]:{flex:"none"},[`${n}-close`]:Object.assign({display:"inline-flex",width:k(d).add(c).equal(),height:k(d).add(c).equal(),borderRadius:t,justifyContent:"center",alignItems:"center",marginInlineEnd:v,color:h,fontWeight:$,fontSize:d,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${l}`,textRendering:"auto","&:hover":{color:b,backgroundColor:y,textDecoration:"none"},"&:active":{backgroundColor:C}},mo(e)),[`${n}-title`]:{flex:1,margin:0,fontWeight:e.fontWeightStrong,fontSize:d,lineHeight:p},[`${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:`${nt(w)} ${nt(S)}`,borderTop:`${nt(f)} ${m} ${g}`},"&-rtl":{direction:"rtl"}}}},bR=qo("Drawer",e=>{const t=Jn(e,{});return[hR(t),vR(t)]},e=>({zIndexPopup:e.zIndexPopupBase,footerPaddingBlock:e.paddingXS,footerPaddingInline:e.padding}));var yR=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const CR={distance:180},xR=e=>{const{rootClassName:t,width:n,height:r,size:i="default",mask:l=!0,push:c=CR,open:s,afterOpenChange:u,onClose:d,prefixCls:p,getContainer:f,style:m,className:g,visible:v,afterVisibleChange:h,maskStyle:b,drawerStyle:y,contentWrapperStyle:C,destroyOnClose:x,destroyOnHidden:$}=e,w=yR(e,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle","destroyOnClose","destroyOnHidden"]),{getPopupContainer:S,getPrefixCls:k,direction:E,className:O,style:A,classNames:I,styles:N}=Se("drawer"),M=k("drawer",p),[j,P,R]=bR(M),T=void 0===f&&S?()=>S(document.body):f,z=a()({"no-mask":!l,[`${M}-rtl`]:"rtl"===E},t,P,R);const B=o.useMemo(()=>null!==n&&void 0!==n?n:"large"===i?736:378,[n,i]),H=o.useMemo(()=>null!==r&&void 0!==r?r:"large"===i?736:378,[r,i]),D={motionName:Xl(M,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},L=uf(),[F,W]=fa("Drawer",w.zIndex),{classNames:_={},styles:K={}}=w;return j(o.createElement(Ip,{form:!0,space:!0},o.createElement(ca.Provider,{value:W},o.createElement(uR,Object.assign({prefixCls:M,onClose:d,maskMotion:D,motion:e=>({motionName:Xl(M,`panel-motion-${e}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500})},w,{classNames:{mask:a()(_.mask,I.mask),content:a()(_.content,I.content),wrapper:a()(_.wrapper,I.wrapper)},styles:{mask:Object.assign(Object.assign(Object.assign({},K.mask),b),N.mask),content:Object.assign(Object.assign(Object.assign({},K.content),y),N.content),wrapper:Object.assign(Object.assign(Object.assign({},K.wrapper),C),N.wrapper)},open:null!==s&&void 0!==s?s:v,mask:l,push:c,width:B,height:H,style:Object.assign(Object.assign({},A),m),className:a()(O,g),rootClassName:z,getContainer:T,afterOpenChange:null!==u&&void 0!==u?u:h,panelRef:L,zIndex:F,destroyOnClose:null!==$&&void 0!==$?$:x}),o.createElement(dR,Object.assign({prefixCls:M},w,{onClose:d}))))))};xR._InternalPanelDoNotUseOrYouWillBeFired=e=>{const{prefixCls:t,style:n,className:r,placement:i="right"}=e,l=yR(e,["prefixCls","style","className","placement"]),{getPrefixCls:c}=o.useContext(xe),s=c("drawer",t),[u,d,p]=bR(s),f=a()(s,`${s}-pure`,`${s}-${i}`,d,p,r);return u(o.createElement("div",{className:f,style:n},o.createElement(dR,Object.assign({prefixCls:s},l))))};const $R=xR;function wR(e){return["small","middle","large"].includes(e)}function SR(e){return!!e&&("number"===typeof e&&!Number.isNaN(e))}const kR=r().createContext({latestIndex:0}),ER=kR.Provider,OR=e=>{let{className:t,index:n,children:r,split:i,style:a}=e;const{latestIndex:l}=o.useContext(kR);return null===r||void 0===r?null:o.createElement(o.Fragment,null,o.createElement("div",{className:t,style:a},r),n<l&&i&&o.createElement("span",{className:`${t}-split`},i))};var AR=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const IR=o.forwardRef((e,t)=>{var n;const{getPrefixCls:r,direction:i,size:l,className:c,style:u,classNames:d,styles:p}=Se("space"),{size:f=(null!==l&&void 0!==l?l:"small"),align:m,className:g,rootClassName:v,children:h,direction:b="horizontal",prefixCls:y,split:C,style:x,wrap:$=!1,classNames:w,styles:S}=e,k=AR(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[E,O]=Array.isArray(f)?f:[f,f],A=wR(O),I=wR(E),N=SR(O),M=SR(E),j=s(h,{keepEmpty:!0}),P=void 0===m&&"horizontal"===b?"center":m,R=r("space",y),[T,z,B]=dc(R),H=a()(R,c,z,`${R}-${b}`,{[`${R}-rtl`]:"rtl"===i,[`${R}-align-${P}`]:P,[`${R}-gap-row-${O}`]:A,[`${R}-gap-col-${E}`]:I},g,v,B),D=a()(`${R}-item`,null!==(n=null===w||void 0===w?void 0:w.item)&&void 0!==n?n:d.item);let L=0;const F=j.map((e,t)=>{var n;null!==e&&void 0!==e&&(L=t);const r=(null===e||void 0===e?void 0:e.key)||`${D}-${t}`;return o.createElement(OR,{className:D,key:r,index:t,split:C,style:null!==(n=null===S||void 0===S?void 0:S.item)&&void 0!==n?n:p.item},e)}),W=o.useMemo(()=>({latestIndex:L}),[L]);if(0===j.length)return null;const _={};return $&&(_.flexWrap="wrap"),!I&&M&&(_.columnGap=E),!A&&N&&(_.rowGap=O),T(o.createElement("div",Object.assign({ref:t,className:H,style:Object.assign(Object.assign(Object.assign({},_),u),x)},k),o.createElement(ER,{value:W},F)))}),NR=IR;NR.Compact=hc;const MR=NR;var jR=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const PR=e=>{const{getPopupContainer:t,getPrefixCls:n,direction:r}=o.useContext(xe),{prefixCls:i,type:l="default",danger:c,disabled:s,loading:u,onClick:d,htmlType:p,children:f,className:m,menu:g,arrow:v,autoFocus:h,overlay:b,trigger:y,align:C,open:x,onOpenChange:$,placement:w,getPopupContainer:S,href:k,icon:E=o.createElement(Gx.A,null),title:O,buttonsRender:A=e=>e,mouseEnterDelay:I,mouseLeaveDelay:N,overlayClassName:M,overlayStyle:j,destroyOnHidden:P,destroyPopupOnHide:R,dropdownRender:T,popupRender:z}=e,B=jR(e,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyOnHidden","destroyPopupOnHide","dropdownRender","popupRender"]),H=n("dropdown",i),D=`${H}-button`,L={menu:g,arrow:v,autoFocus:h,align:C,disabled:s,trigger:s?[]:y,onOpenChange:$,getPopupContainer:S||t,mouseEnterDelay:I,mouseLeaveDelay:N,overlayClassName:M,overlayStyle:j,destroyOnHidden:P,popupRender:z||T},{compactSize:F,compactItemClassnames:W}=mc(H,r),_=a()(D,W,m);"destroyPopupOnHide"in e&&(L.destroyPopupOnHide=R),"overlay"in e&&(L.overlay=b),"open"in e&&(L.open=x),L.placement="placement"in e?w:"rtl"===r?"bottomLeft":"bottomRight";const K=o.createElement(Su,{type:l,danger:c,disabled:s,loading:u,onClick:d,htmlType:p,href:k,title:O},f),q=o.createElement(Su,{type:l,danger:c,icon:E}),[V,X]=A([K,q]);return o.createElement(MR.Compact,Object.assign({className:_,size:F,block:!0},B),V,o.createElement(O$,Object.assign({},L),X))};PR.__ANT_BUTTON=!0;const RR=PR,TR=O$;TR.Button=RR;const zR=TR,BR=["wrap","nowrap","wrap-reverse"],HR=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],DR=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"];const LR=function(e,t){return a()(Object.assign(Object.assign(Object.assign({},((e,t)=>{const n=!0===t.wrap?"wrap":t.wrap;return{[`${e}-wrap-${n}`]:n&&BR.includes(n)}})(e,t)),((e,t)=>{const n={};return DR.forEach(o=>{n[`${e}-align-${o}`]=t.align===o}),n[`${e}-align-stretch`]=!t.align&&!!t.vertical,n})(e,t)),((e,t)=>{const n={};return HR.forEach(o=>{n[`${e}-justify-${o}`]=t.justify===o}),n})(e,t)))},FR=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",margin:0,padding:0,"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},WR=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},_R=e=>{const{componentCls:t}=e,n={};return BR.forEach(e=>{n[`${t}-wrap-${e}`]={flexWrap:e}}),n},KR=e=>{const{componentCls:t}=e,n={};return DR.forEach(e=>{n[`${t}-align-${e}`]={alignItems:e}}),n},qR=e=>{const{componentCls:t}=e,n={};return HR.forEach(e=>{n[`${t}-justify-${e}`]={justifyContent:e}}),n},VR=qo("Flex",e=>{const{paddingXS:t,padding:n,paddingLG:o}=e,r=Jn(e,{flexGapSM:t,flexGap:n,flexGapLG:o});return[FR(r),WR(r),_R(r),KR(r),qR(r)]},()=>({}),{resetStyle:!1});var XR=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const GR=r().forwardRef((e,t)=>{const{prefixCls:n,rootClassName:o,className:i,style:l,flex:c,gap:s,vertical:u=!1,component:d="div"}=e,p=XR(e,["prefixCls","rootClassName","className","style","flex","gap","vertical","component"]),{flex:f,direction:m,getPrefixCls:g}=r().useContext(xe),v=g("flex",n),[h,b,y]=VR(v),C=null!==u&&void 0!==u?u:null===f||void 0===f?void 0:f.vertical,x=a()(i,o,null===f||void 0===f?void 0:f.className,v,b,y,LR(v,e),{[`${v}-rtl`]:"rtl"===m,[`${v}-gap-${s}`]:wR(s),[`${v}-vertical`]:C}),$=Object.assign(Object.assign({},null===f||void 0===f?void 0:f.style),l);return c&&($.flex=c),s&&!wR(s)&&($.gap=s),h(r().createElement(d,Object.assign({ref:t,className:x,style:$},Ul(p,["justify","wrap","align"]))))});const YR=GR,UR=r().createContext(void 0),{Provider:QR}=UR,ZR=UR;const JR=function(e){return void 0===e||null===e?null:"object"!==typeof e||(0,o.isValidElement)(e)?{title:e}:e};var eT=n(82951),tT=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const nT=(0,o.memo)(e=>{const{icon:t,description:n,prefixCls:o,className:i}=e,l=tT(e,["icon","description","prefixCls","className"]),c=r().createElement("div",{className:`${o}-icon`},r().createElement(eT.A,null));return r().createElement("div",Object.assign({},l,{className:a()(i,`${o}-content`)}),t||n?r().createElement(r().Fragment,null,t&&r().createElement("div",{className:`${o}-icon`},t),n&&r().createElement("div",{className:`${o}-description`},n)):c)}),oT=e=>0===e?0:e-Math.sqrt(Math.pow(e,2)/2),rT=e=>{const{componentCls:t,floatButtonSize:n,motionDurationSlow:o,motionEaseInOutCirc:r,calc:i}=e,a=new En("antFloatButtonMoveTopIn",{"0%":{transform:`translate3d(0, ${nt(n)}, 0)`,transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),l=new En("antFloatButtonMoveTopOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:`translate3d(0, ${nt(n)}, 0)`,transformOrigin:"0 0",opacity:0}}),c=new En("antFloatButtonMoveRightIn",{"0%":{transform:`translate3d(${nt(i(n).mul(-1).equal())}, 0, 0)`,transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),s=new En("antFloatButtonMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:`translate3d(${nt(i(n).mul(-1).equal())}, 0, 0)`,transformOrigin:"0 0",opacity:0}}),u=new En("antFloatButtonMoveBottomIn",{"0%":{transform:`translate3d(0, ${nt(i(n).mul(-1).equal())}, 0)`,transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),d=new En("antFloatButtonMoveBottomOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:`translate3d(0, ${nt(i(n).mul(-1).equal())}, 0)`,transformOrigin:"0 0",opacity:0}}),p=new En("antFloatButtonMoveLeftIn",{"0%":{transform:`translate3d(${nt(n)}, 0, 0)`,transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),f=new En("antFloatButtonMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:`translate3d(${nt(n)}, 0, 0)`,transformOrigin:"0 0",opacity:0}}),m=`${t}-group`;return[{[m]:{[`&${m}-top ${m}-wrap`]:wf(`${m}-wrap`,a,l,o,!0),[`&${m}-bottom ${m}-wrap`]:wf(`${m}-wrap`,u,d,o,!0),[`&${m}-left ${m}-wrap`]:wf(`${m}-wrap`,p,f,o,!0),[`&${m}-right ${m}-wrap`]:wf(`${m}-wrap`,c,s,o,!0)}},{[`${m}-wrap`]:{[`&${m}-wrap-enter, &${m}-wrap-appear`]:{opacity:0,animationTimingFunction:r},[`&${m}-wrap-leave`]:{opacity:1,animationTimingFunction:r}}}]},iT=e=>{const{antCls:t,componentCls:n,floatButtonSize:o,margin:r,borderRadiusLG:i,borderRadiusSM:a,badgeOffset:l,floatButtonBodyPadding:c,zIndexPopupBase:s,calc:u}=e,d=`${n}-group`;return{[d]:Object.assign(Object.assign({},po(e)),{zIndex:s,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",border:"none",position:"fixed",height:"auto",boxShadow:"none",minWidth:o,minHeight:o,insetInlineEnd:e.floatButtonInsetInlineEnd,bottom:e.floatButtonInsetBlockEnd,borderRadius:i,[`${d}-wrap`]:{zIndex:-1,display:"flex",justifyContent:"center",alignItems:"center",position:"absolute"},[`&${d}-rtl`]:{direction:"rtl"},[n]:{position:"static"}}),[`${d}-top > ${d}-wrap`]:{flexDirection:"column",top:"auto",bottom:u(o).add(r).equal(),"&::after":{content:'""',position:"absolute",width:"100%",height:r,bottom:u(r).mul(-1).equal()}},[`${d}-bottom > ${d}-wrap`]:{flexDirection:"column",top:u(o).add(r).equal(),bottom:"auto","&::after":{content:'""',position:"absolute",width:"100%",height:r,top:u(r).mul(-1).equal()}},[`${d}-right > ${d}-wrap`]:{flexDirection:"row",left:{_skip_check_:!0,value:u(o).add(r).equal()},right:{_skip_check_:!0,value:"auto"},"&::after":{content:'""',position:"absolute",width:r,height:"100%",left:{_skip_check_:!0,value:u(r).mul(-1).equal()}}},[`${d}-left > ${d}-wrap`]:{flexDirection:"row",left:{_skip_check_:!0,value:"auto"},right:{_skip_check_:!0,value:u(o).add(r).equal()},"&::after":{content:'""',position:"absolute",width:r,height:"100%",right:{_skip_check_:!0,value:u(r).mul(-1).equal()}}},[`${d}-circle`]:{gap:r,[`${d}-wrap`]:{gap:r}},[`${d}-square`]:{[`${n}-square`]:{padding:0,borderRadius:0,[`&${d}-trigger`]:{borderRadius:i},"&:first-child":{borderStartStartRadius:i,borderStartEndRadius:i},"&:last-child":{borderEndStartRadius:i,borderEndEndRadius:i},"&:not(:last-child)":{borderBottom:`${nt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-badge`]:{[`${t}-badge-count`]:{top:u(u(c).add(l)).mul(-1).equal(),insetInlineEnd:u(u(c).add(l)).mul(-1).equal()}}},[`${d}-wrap`]:{borderRadius:i,boxShadow:e.boxShadowSecondary,[`${n}-square`]:{boxShadow:"none",borderRadius:0,padding:c,[`${n}-body`]:{width:e.floatButtonBodySize,height:e.floatButtonBodySize,borderRadius:a}}}},[`${d}-top > ${d}-wrap, ${d}-bottom > ${d}-wrap`]:{[`> ${n}-square`]:{"&:first-child":{borderStartStartRadius:i,borderStartEndRadius:i},"&:last-child":{borderEndStartRadius:i,borderEndEndRadius:i},"&:not(:last-child)":{borderBottom:`${nt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}},[`${d}-left > ${d}-wrap, ${d}-right > ${d}-wrap`]:{[`> ${n}-square`]:{"&:first-child":{borderStartStartRadius:i,borderEndStartRadius:i},"&:last-child":{borderStartEndRadius:i,borderEndEndRadius:i},"&:not(:last-child)":{borderBottom:"none",borderInlineEnd:`${nt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}},[`${d}-circle-shadow`]:{boxShadow:"none"},[`${d}-square-shadow`]:{boxShadow:e.boxShadowSecondary,[`${n}-square`]:{boxShadow:"none",padding:c,[`${n}-body`]:{width:e.floatButtonBodySize,height:e.floatButtonBodySize,borderRadius:a}}}}},aT=e=>{const{antCls:t,componentCls:n,floatButtonBodyPadding:o,floatButtonIconSize:r,floatButtonSize:i,borderRadiusLG:a,badgeOffset:l,dotOffsetInSquare:c,dotOffsetInCircle:s,zIndexPopupBase:u,calc:d}=e;return{[n]:Object.assign(Object.assign({},po(e)),{border:"none",position:"fixed",cursor:"pointer",zIndex:u,display:"block",width:i,height:i,insetInlineEnd:e.floatButtonInsetInlineEnd,bottom:e.floatButtonInsetBlockEnd,boxShadow:e.boxShadowSecondary,"&-pure":{position:"relative",inset:"auto"},"&:empty":{display:"none"},[`${t}-badge`]:{width:"100%",height:"100%",[`${t}-badge-count`]:{transform:"translate(0, 0)",transformOrigin:"center",top:d(l).mul(-1).equal(),insetInlineEnd:d(l).mul(-1).equal()}},[`${n}-body`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",transition:`all ${e.motionDurationMid}`,[`${n}-content`]:{overflow:"hidden",textAlign:"center",minHeight:i,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",padding:`${nt(d(o).div(2).equal())} ${nt(o)}`,[`${n}-icon`]:{textAlign:"center",margin:"auto",width:r,fontSize:r,lineHeight:1}}}}),[`${n}-rtl`]:{direction:"rtl"},[`${n}-circle`]:{height:i,borderRadius:"50%",[`${t}-badge`]:{[`${t}-badge-dot`]:{top:s,insetInlineEnd:s}},[`${n}-body`]:{borderRadius:"50%"}},[`${n}-square`]:{height:"auto",minHeight:i,borderRadius:a,[`${t}-badge`]:{[`${t}-badge-dot`]:{top:c,insetInlineEnd:c}},[`${n}-body`]:{height:"auto",borderRadius:a}},[`${n}-default`]:{backgroundColor:e.floatButtonBackgroundColor,transition:`background-color ${e.motionDurationMid}`,[`${n}-body`]:{backgroundColor:e.floatButtonBackgroundColor,transition:`background-color ${e.motionDurationMid}`,"&:hover":{backgroundColor:e.colorFillContent},[`${n}-content`]:{[`${n}-icon`]:{color:e.colorText},[`${n}-description`]:{display:"flex",alignItems:"center",lineHeight:nt(e.fontSizeLG),color:e.colorText,fontSize:e.fontSizeSM}}}},[`${n}-primary`]:{backgroundColor:e.colorPrimary,[`${n}-body`]:{backgroundColor:e.colorPrimary,transition:`background-color ${e.motionDurationMid}`,"&:hover":{backgroundColor:e.colorPrimaryHover},[`${n}-content`]:{[`${n}-icon`]:{color:e.colorTextLightSolid},[`${n}-description`]:{display:"flex",alignItems:"center",lineHeight:nt(e.fontSizeLG),color:e.colorTextLightSolid,fontSize:e.fontSizeSM}}}}}},lT=qo("FloatButton",e=>{const{colorTextLightSolid:t,colorBgElevated:n,controlHeightLG:o,marginXXL:r,marginLG:i,fontSize:a,fontSizeIcon:l,controlItemBgHover:c,paddingXXS:s,calc:u}=e,d=Jn(e,{floatButtonBackgroundColor:n,floatButtonColor:t,floatButtonHoverBackgroundColor:c,floatButtonFontSize:a,floatButtonIconSize:u(l).mul(1.5).equal(),floatButtonSize:o,floatButtonInsetBlockEnd:r,floatButtonInsetInlineEnd:i,floatButtonBodySize:u(o).sub(u(s).mul(2)).equal(),floatButtonBodyPadding:s,badgeOffset:u(s).mul(1.5).equal()});return[iT(d),aT(d),Ef(e),rT(d)]},e=>({dotOffsetInCircle:oT(e.controlHeightLG/2),dotOffsetInSquare:oT(e.borderRadiusLG)}));var cT=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const sT="float-btn",uT=r().forwardRef((e,t)=>{const{prefixCls:n,className:i,rootClassName:l,style:c,type:s="default",shape:u="circle",icon:d,description:p,tooltip:f,htmlType:m="button",badge:g={}}=e,v=cT(e,["prefixCls","className","rootClassName","style","type","shape","icon","description","tooltip","htmlType","badge"]),{getPrefixCls:h,direction:b}=(0,o.useContext)(xe),y=(0,o.useContext)(ZR),C=h(sT,n),x=Mi(C),[$,w,S]=lT(C,x),k=y||u,E=a()(w,S,x,C,i,l,`${C}-${s}`,`${C}-${k}`,{[`${C}-rtl`]:"rtl"===b}),[O]=fa("FloatButton",null===c||void 0===c?void 0:c.zIndex),A=Object.assign(Object.assign({},c),{zIndex:O}),I=Ul(g,["title","children","status","text"]);let N=r().createElement("div",{className:`${C}-body`},r().createElement(nT,{prefixCls:C,description:p,icon:d}));"badge"in e&&(N=r().createElement(rC,Object.assign({},I),N));const M=JR(f);return M&&(N=r().createElement(hy,Object.assign({},M),N)),$(e.href?r().createElement("a",Object.assign({ref:t},v,{className:E,style:A}),N):r().createElement("button",Object.assign({ref:t},v,{className:E,style:A,type:m}),N))});const dT=uT;var pT=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const fT=r().forwardRef((e,t)=>{const{prefixCls:n,className:i,type:l="default",shape:c="circle",visibilityHeight:s=400,icon:u=r().createElement(Py.A,null),target:d,onClick:p,duration:f=450}=e,m=pT(e,["prefixCls","className","type","shape","visibilityHeight","icon","target","onClick","duration"]),[g,v]=(0,o.useState)(0===s),h=r().useRef(null);r().useImperativeHandle(t,()=>({nativeElement:h.current}));const y=()=>{var e;return(null===(e=h.current)||void 0===e?void 0:e.ownerDocument)||window},C=he(e=>{const t=Ii(e.target);v(t>=s)});(0,o.useEffect)(()=>{const e=(d||y)();return C({target:e}),null===e||void 0===e||e.addEventListener("scroll",C),()=>{C.cancel(),null===e||void 0===e||e.removeEventListener("scroll",C)}},[d]);const x=e=>{Ni(0,{getContainer:d||y,duration:f}),null===p||void 0===p||p(e)},{getPrefixCls:$}=(0,o.useContext)(xe),w=$(sT,n),S=$(),k=(0,o.useContext)(ZR)||c,E=Object.assign({prefixCls:w,icon:u,type:l,shape:k},m);return r().createElement(Jr,{visible:g,motionName:`${S}-fade`},(e,t)=>{let{className:n}=e;return r().createElement(dT,Object.assign({ref:(0,b.K4)(h,t)},E,{onClick:x,className:a()(i,n)}))})});const mT=fT;var gT=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const vT=e=>{var t;const{prefixCls:n,className:o,style:i,shape:l="circle",type:c="default",placement:s="top",icon:u=r().createElement(eT.A,null),closeIcon:d,description:p,trigger:f,children:m,onOpenChange:g,open:v,onClick:h}=e,b=gT(e,["prefixCls","className","style","shape","type","placement","icon","closeIcon","description","trigger","children","onOpenChange","open","onClick"]),{direction:y,getPrefixCls:C,closeIcon:x}=Se("floatButtonGroup"),$=null!==(t=null!==d&&void 0!==d?d:x)&&void 0!==t?t:r().createElement(ir.A,null),w=C(sT,n),S=Mi(w),[k,E,O]=lT(w,S),A=`${w}-group`,I=f&&["click","hover"].includes(f),N=s&&["top","left","right","bottom"].includes(s),M=a()(A,E,O,S,o,{[`${A}-rtl`]:"rtl"===y,[`${A}-${l}`]:l,[`${A}-${l}-shadow`]:!I,[`${A}-${s}`]:I&&N}),[j]=fa("FloatButton",null===i||void 0===i?void 0:i.zIndex),P=Object.assign(Object.assign({},i),{zIndex:j}),R=a()(E,`${A}-wrap`),[T,z]=Ln(!1,{value:v}),B=r().useRef(null),H="hover"===f,D="click"===f,L=Bn(e=>{T!==e&&(z(e),null===g||void 0===g||g(e))});return r().useEffect(()=>{if(D){const e=e=>{var t;(null===(t=B.current)||void 0===t?void 0:t.contains(e.target))||L(!1)};return document.addEventListener("click",e,{capture:!0}),()=>document.removeEventListener("click",e,{capture:!0})}},[D]),k(r().createElement(QR,{value:l},r().createElement("div",{ref:B,className:M,style:P,onMouseEnter:()=>{H&&L(!0)},onMouseLeave:()=>{H&&L(!1)}},I?r().createElement(r().Fragment,null,r().createElement(Jr,{visible:T,motionName:`${A}-wrap`},e=>{let{className:t}=e;return r().createElement("div",{className:a()(t,R)},m)}),r().createElement(dT,Object.assign({type:c,icon:T?$:u,description:p,"aria-label":e["aria-label"],className:`${A}-trigger`,onClick:e=>{D&&L(!T),null===h||void 0===h||h(e)}},b))):m)))};var hT=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const bT=e=>{var{backTop:t}=e,n=hT(e,["backTop"]);return t?o.createElement(mT,Object.assign({},n,{visibilityHeight:0})):o.createElement(dT,Object.assign({},n))},yT=e=>{var{className:t,items:n}=e,r=hT(e,["className","items"]);const{prefixCls:i}=r,{getPrefixCls:l}=o.useContext(xe),c=`${l(sT,i)}-pure`;return n?o.createElement(vT,Object.assign({className:a()(t,c)},r),n.map((e,t)=>o.createElement(bT,Object.assign({key:t},e)))):o.createElement(bT,Object.assign({className:a()(t,c)},r))};dT.BackTop=mT,dT.Group=vT,dT._InternalPanelDoNotUseOrYouWillBeFired=yT;const CT=dT;function xT(e){const[t,n]=o.useState(e);return o.useEffect(()=>{const t=setTimeout(()=>{n(e)},e.length?0:10);return()=>{clearTimeout(t)}},[e]),t}const $T=e=>{const{componentCls:t}=e,n=`${t}-show-help`,o=`${t}-show-help-item`;return{[n]:{transition:`opacity ${e.motionDurationFast} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[o]:{overflow:"hidden",transition:`height ${e.motionDurationFast} ${e.motionEaseInOut},\n opacity ${e.motionDurationFast} ${e.motionEaseInOut},\n transform ${e.motionDurationFast} ${e.motionEaseInOut} !important`,[`&${o}-appear, &${o}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${o}-leave-active`]:{transform:"translateY(-5px)"}}}}},wT=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${nt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${nt(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),ST=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},kT=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},po(e)),wT(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},ST(e,e.controlHeightSM)),"&-large":Object.assign({},ST(e,e.controlHeightLG))})}},ET=e=>{const{formItemCls:t,iconCls:n,rootPrefixCls:o,antCls:r,labelRequiredMarkColor:i,labelColor:a,labelFontSize:l,labelHeight:c,labelColonMarginInlineStart:s,labelColonMarginInlineEnd:u,itemMarginBottom:d}=e;return{[t]:Object.assign(Object.assign({},po(e)),{marginBottom:d,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,\n &-hidden${r}-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:a,fontSize:l,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:e.marginXXS,color:i,fontSize:e.fontSize,fontFamily:"SimSun, 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:s,marginInlineEnd:u},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${o}-col-'"]):not([class*="' ${o}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%",[`&:has(> ${r}-switch:only-child, > ${r}-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:Of,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},OT=(e,t)=>{const{formItemCls:n}=e;return{[`${t}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:"1 1 0",minWidth:0},[`${n}-label[class$='-24'], ${n}-label[class*='-24 ']`]:{[`& + ${n}-control`]:{minWidth:"unset"}}}}},AT=e=>{const{componentCls:t,formItemCls:n,inlineItemMarginBottom:o}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[n]:{flex:"none",marginInlineEnd:e.margin,marginBottom:o,"&-row":{flexWrap:"nowrap"},[`> ${n}-label,\n > ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},IT=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),NT=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:o}=e;return{[`${n} ${n}-label`]:IT(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${o}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},MT=e=>{const{componentCls:t,formItemCls:n,antCls:o}=e;return{[`${t}-vertical`]:{[`${n}:not(${n}-horizontal)`]:{[`${n}-row`]:{flexDirection:"column"},[`${n}-label > label`]:{height:"auto"},[`${n}-control`]:{width:"100%"},[`${n}-label,\n ${o}-col-24${n}-label,\n ${o}-col-xl-24${n}-label`]:IT(e)}},[`@media (max-width: ${nt(e.screenXSMax)})`]:[NT(e),{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${o}-col-xs-24${n}-label`]:IT(e)}}}],[`@media (max-width: ${nt(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${o}-col-sm-24${n}-label`]:IT(e)}}},[`@media (max-width: ${nt(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${o}-col-md-24${n}-label`]:IT(e)}}},[`@media (max-width: ${nt(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${o}-col-lg-24${n}-label`]:IT(e)}}}}},jT=e=>{const{formItemCls:t,antCls:n}=e;return{[`${t}-vertical`]:{[`${t}-row`]:{flexDirection:"column"},[`${t}-label > label`]:{height:"auto"},[`${t}-control`]:{width:"100%"}},[`${t}-vertical ${t}-label,\n ${n}-col-24${t}-label,\n ${n}-col-xl-24${t}-label`]:IT(e),[`@media (max-width: ${nt(e.screenXSMax)})`]:[NT(e),{[t]:{[`${n}-col-xs-24${t}-label`]:IT(e)}}],[`@media (max-width: ${nt(e.screenSMMax)})`]:{[t]:{[`${n}-col-sm-24${t}-label`]:IT(e)}},[`@media (max-width: ${nt(e.screenMDMax)})`]:{[t]:{[`${n}-col-md-24${t}-label`]:IT(e)}},[`@media (max-width: ${nt(e.screenLGMax)})`]:{[t]:{[`${n}-col-lg-24${t}-label`]:IT(e)}}}},PT=(e,t)=>Jn(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),RT=qo("Form",(e,t)=>{let{rootPrefixCls:n}=t;const o=PT(e,n);return[kT(o),ET(o),$T(o),OT(o,o.componentCls),OT(o,o.formItemCls),AT(o),MT(o),jT(o),$s(o),Of]},e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),{order:-1e3}),TT=[];function zT(e,t,n){return{key:"string"===typeof e?e:`${t}-${arguments.length>3&&void 0!==arguments[3]?arguments[3]:0}`,error:e,errorStatus:n}}const BT=e=>{let{help:t,helpStatus:n,errors:r=TT,warnings:i=TT,className:l,fieldId:c,onVisibleChanged:s}=e;const{prefixCls:u}=o.useContext(kp),d=`${u}-item-explain`,p=Mi(u),[f,m,g]=RT(u,p),v=o.useMemo(()=>Gl(u),[u]),h=xT(r),b=xT(i),y=o.useMemo(()=>void 0!==t&&null!==t?[zT(t,"help",n)]:[].concat(se(h.map((e,t)=>zT(e,"error","error",t))),se(b.map((e,t)=>zT(e,"warning","warning",t)))),[t,n,h,b]),C=o.useMemo(()=>{const e={};return y.forEach(t=>{let{key:n}=t;e[n]=(e[n]||0)+1}),y.map((t,n)=>Object.assign(Object.assign({},t),{key:e[t.key]>1?`${t.key}-fallback-${n}`:t.key}))},[y]),x={};return c&&(x.id=`${c}_help`),f(o.createElement(Jr,{motionDeadline:v.motionDeadline,motionName:`${u}-show-help`,visible:!!C.length,onVisibleChanged:s},e=>{const{className:t,style:n}=e;return o.createElement("div",Object.assign({},x,{className:a()(d,t,g,p,l,m),style:n}),o.createElement(Zr,Object.assign({keys:C},Gl(u),{motionName:`${u}-show-help-item`,component:!1}),e=>{const{key:t,error:n,errorStatus:r,className:i,style:l}=e;return o.createElement("div",{key:t,className:a()(i,{[`${d}-${r}`]:r}),style:l},n)}))}))};var HT=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const DT=o.forwardRef((e,t)=>{const n=o.useContext(Ga),{getPrefixCls:r,direction:i,requiredMark:l,colon:c,scrollToFirstError:s,className:u,style:d}=Se("form"),{prefixCls:p,className:f,rootClassName:m,size:g,disabled:v=n,form:h,colon:b,labelAlign:y,labelWrap:C,labelCol:x,wrapperCol:$,hideRequiredMark:w,layout:S="horizontal",scrollToFirstError:k,requiredMark:E,onFinishFailed:O,name:A,style:I,feedbackIcons:N,variant:M}=e,j=HT(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),P=lc(g),R=o.useContext(Na);const T=o.useMemo(()=>void 0!==E?E:!w&&(void 0===l||l),[w,E,l]),z=null!==b&&void 0!==b?b:c,B=r("form",p),H=Mi(B),[D,L,F]=RT(B,H),W=a()(B,`${B}-${S}`,{[`${B}-hide-required-mark`]:!1===T,[`${B}-rtl`]:"rtl"===i,[`${B}-${P}`]:P},F,H,L,u,f,m),[_]=Ak(h),{__INTERNAL__:K}=_;K.name=A;const q=o.useMemo(()=>({name:A,labelAlign:y,labelCol:x,labelWrap:C,wrapperCol:$,vertical:"vertical"===S,colon:z,requiredMark:T,itemRef:K.itemRef,form:_,feedbackIcons:N}),[A,y,x,$,S,z,T,_,N]),V=o.useRef(null);o.useImperativeHandle(t,()=>{var e;return Object.assign(Object.assign({},_),{nativeElement:null===(e=V.current)||void 0===e?void 0:e.nativeElement})});const X=(e,t)=>{if(e){let n={block:"nearest"};"object"===typeof e&&(n=Object.assign(Object.assign({},n),e)),_.scrollToField(t,n)}};return D(o.createElement(Ap.Provider,{value:M},o.createElement(Xa,{disabled:v},o.createElement(Qa.Provider,{value:P},o.createElement(Sp,{validateMessages:R},o.createElement($p.Provider,{value:q},o.createElement(xp,Object.assign({id:A},j,{name:A,onFinishFailed:e=>{if(null===O||void 0===O||O(e),e.errorFields.length){const t=e.errorFields[0].name;if(void 0!==k)return void X(k,t);void 0!==s&&X(s,t)}},form:_,ref:V,style:Object.assign(Object.assign({},d),I),className:W}))))))))});const LT=DT;const FT=()=>{const{status:e,errors:t=[],warnings:n=[]}=o.useContext(Ep);return{status:e,errors:t,warnings:n}};FT.Context=Ep;const WT=FT;var _T=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};function KT(e,t){const[n,r]=o.useState("string"===typeof e?e:"");return o.useEffect(()=>{(()=>{if("string"===typeof e&&r(e),"object"===typeof e)for(let n=0;n<Ib.length;n++){const o=Ib[n];if(!t||!t[o])continue;const i=e[o];if(void 0!==i)return void r(i)}})()},[JSON.stringify(e),t]),n}const qT=o.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:i,className:l,style:c,children:s,gutter:u=0,wrap:d}=e,p=_T(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:f,direction:m}=o.useContext(xe),g=Pb(!0,null),v=KT(i,g),h=KT(r,g),b=f("row",n),[y,C,x]=bf(b),$=function(e,t){const n=[void 0,void 0],o=Array.isArray(e)?e:[e,void 0],r=t||{xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0};return o.forEach((e,t)=>{if("object"===typeof e&&null!==e)for(let o=0;o<Ib.length;o++){const i=Ib[o];if(r[i]&&void 0!==e[i]){n[t]=e[i];break}}else n[t]=e}),n}(u,g),w=a()(b,{[`${b}-no-wrap`]:!1===d,[`${b}-${h}`]:h,[`${b}-${v}`]:v,[`${b}-rtl`]:"rtl"===m},l,C,x),S={},k=null!=$[0]&&$[0]>0?$[0]/-2:void 0;k&&(S.marginLeft=k,S.marginRight=k);const[E,O]=$;S.rowGap=O;const A=o.useMemo(()=>({gutter:[E,O],wrap:d}),[E,O,d]);return y(o.createElement(RI.Provider,{value:A},o.createElement("div",Object.assign({},p,{className:w,style:Object.assign(Object.assign({},S),c),ref:t}),s)))});const VT=qT,XT=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},GT=Xo(["Form","item-item"],(e,t)=>{let{rootPrefixCls:n}=t;const o=PT(e,n);return[XT(o)]});var YT=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const UT=e=>{const{prefixCls:t,status:n,labelCol:r,wrapperCol:i,children:l,errors:c,warnings:s,_internalItemRender:u,extra:d,help:p,fieldId:f,marginBottom:m,onErrorVisibleChanged:g,label:v}=e,h=`${t}-item`,b=o.useContext($p),y=o.useMemo(()=>{let e=Object.assign({},i||b.wrapperCol||{});if(null===v&&!r&&!i&&b.labelCol){[void 0,"xs","sm","md","lg","xl","xxl"].forEach(t=>{const n=t?[t]:[],o=Fn(b.labelCol,n),r="object"===typeof o?o:{},i=Fn(e,n);"span"in r&&!("offset"in("object"===typeof i?i:{}))&&r.span<24&&(e=Vn(e,[].concat(n,["offset"]),r.span))})}return e},[i,b]),C=a()(`${h}-control`,y.className),x=o.useMemo(()=>{const{labelCol:e,wrapperCol:t}=b;return YT(b,["labelCol","wrapperCol"])},[b]),$=o.useRef(null),[w,S]=o.useState(0);ut(()=>{d&&$.current?S($.current.clientHeight):S(0)},[d]);const k=o.createElement("div",{className:`${h}-control-input`},o.createElement("div",{className:`${h}-control-input-content`},l)),E=o.useMemo(()=>({prefixCls:t,status:n}),[t,n]),O=null!==m||c.length||s.length?o.createElement(kp.Provider,{value:E},o.createElement(BT,{fieldId:f,errors:c,warnings:s,help:p,helpStatus:n,className:`${h}-explain-connected`,onVisibleChanged:g})):null,A={};f&&(A.id=`${f}_extra`);const I=d?o.createElement("div",Object.assign({},A,{className:`${h}-extra`,ref:$}),d):null,N=O||I?o.createElement("div",{className:`${h}-additional`,style:m?{minHeight:m+w}:{}},O,I):null,M=u&&"pro_table_render"===u.mark&&u.render?u.render(e,{input:k,errorList:O,extra:I}):o.createElement(o.Fragment,null,k,N);return o.createElement($p.Provider,{value:x},o.createElement(DI,Object.assign({},y,{className:C}),M),o.createElement(GT,{prefixCls:t}))};var QT=n(10970),ZT=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const JT=e=>{let{prefixCls:t,label:n,htmlFor:r,labelCol:i,labelAlign:l,colon:c,required:s,requiredMark:u,tooltip:d,vertical:p}=e;var f;const[m]=Yl("Form"),{labelAlign:g,labelCol:v,labelWrap:h,colon:b}=o.useContext($p);if(!n)return null;const y=i||v||{},C=l||g,x=`${t}-item-label`,$=a()(x,"left"===C&&`${x}-left`,y.className,{[`${x}-wrap`]:!!h});let w=n;const S=!0===c||!1!==b&&!1!==c;S&&!p&&"string"===typeof n&&n.trim()&&(w=n.replace(/[:|\uff1a]\s*$/,""));const k=JR(d);if(k){const{icon:e=o.createElement(QT.A,null)}=k,n=ZT(k,["icon"]),r=o.createElement(hy,Object.assign({},n),o.cloneElement(e,{className:`${t}-item-tooltip`,title:"",onClick:e=>{e.preventDefault()},tabIndex:null}));w=o.createElement(o.Fragment,null,w,r)}const E="optional"===u,O="function"===typeof u,A=!1===u;let I;O?w=u(w,{required:!!s}):E&&!s&&(w=o.createElement(o.Fragment,null,w,o.createElement("span",{className:`${t}-item-optional`,title:""},(null===m||void 0===m?void 0:m.optional)||(null===(f=Ba.Form)||void 0===f?void 0:f.optional)))),A?I="hidden":(E||O)&&(I="optional");const N=a()({[`${t}-item-required`]:s,[`${t}-item-required-mark-${I}`]:I,[`${t}-item-no-colon`]:!S});return o.createElement(DI,Object.assign({},y,{className:$}),o.createElement("label",{htmlFor:r,className:N,title:"string"===typeof n?n:""},w))},ez={success:or.A,warning:ar.A,error:rr.A,validating:la.A};function tz(e){let{children:t,errors:n,warnings:r,hasFeedback:i,validateStatus:l,prefixCls:c,meta:s,noStyle:u,name:d}=e;const p=`${c}-item`,{feedbackIcons:f}=o.useContext($p),m=Sk(n,r,s,null,!!i,l),{isFormItemInput:g,status:v,hasFeedback:h,feedbackIcon:b,name:y}=o.useContext(Ep),C=o.useMemo(()=>{var e;let t;if(i){const l=!0!==i&&i.icons||f,c=m&&(null===(e=null===l||void 0===l?void 0:l({status:m,errors:n,warnings:r}))||void 0===e?void 0:e[m]),s=m&&ez[m];t=!1!==c&&s?o.createElement("span",{className:a()(`${p}-feedback-icon`,`${p}-feedback-icon-${m}`)},c||o.createElement(s,null)):null}const l={status:m||"",errors:n,warnings:r,hasFeedback:!!i,feedbackIcon:t,isFormItemInput:!0,name:d};return u&&(l.status=(null!==m&&void 0!==m?m:v)||"",l.isFormItemInput=g,l.hasFeedback=!!(null!==i&&void 0!==i?i:h),l.feedbackIcon=void 0!==i?l.feedbackIcon:b,l.name=null!==d&&void 0!==d?d:y),l},[m,i,u,g,v]);return o.createElement(Ep.Provider,{value:C},t)}var nz=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};function oz(e){const{prefixCls:t,className:n,rootClassName:r,style:i,help:l,errors:c,warnings:s,validateStatus:u,meta:d,hasFeedback:p,hidden:f,children:m,fieldId:g,required:v,isRequired:h,onSubItemMetaChange:b,layout:y,name:C}=e,x=nz(e,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout","name"]),$=`${t}-item`,{requiredMark:w,vertical:S}=o.useContext($p),k=S||"vertical"===y,E=o.useRef(null),O=xT(c),A=xT(s),I=void 0!==l&&null!==l,N=!!(I||c.length||s.length),M=!!E.current&&Ql(E.current),[j,P]=o.useState(null);ut(()=>{if(N&&E.current){const e=getComputedStyle(E.current);P(parseInt(e.marginBottom,10))}},[N,M]);const R=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return Sk(e?O:d.errors,e?A:d.warnings,d,"",!!p,u)}(),T=a()($,n,r,{[`${$}-with-help`]:I||O.length||A.length,[`${$}-has-feedback`]:R&&p,[`${$}-has-success`]:"success"===R,[`${$}-has-warning`]:"warning"===R,[`${$}-has-error`]:"error"===R,[`${$}-is-validating`]:"validating"===R,[`${$}-hidden`]:f,[`${$}-${y}`]:y});return o.createElement("div",{className:T,style:i,ref:E},o.createElement(VT,Object.assign({className:`${$}-row`},Ul(x,["_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"])),o.createElement(JT,Object.assign({htmlFor:g},e,{requiredMark:w,required:null!==v&&void 0!==v?v:h,prefixCls:t,vertical:k})),o.createElement(UT,Object.assign({},e,d,{errors:O,warnings:A,prefixCls:t,status:R,help:l,marginBottom:j,onErrorVisibleChanged:e=>{e||P(null)}}),o.createElement(wp.Provider,{value:b},o.createElement(tz,{prefixCls:t,meta:d,errors:d.errors,warnings:d.warnings,hasFeedback:p,validateStatus:R,name:C},m)))),!!j&&o.createElement("div",{className:`${$}-margin-offset`,style:{marginBottom:-j}}))}const rz=o.memo(e=>{let{children:t}=e;return t},(e,t)=>function(e,t){const n=Object.keys(e),o=Object.keys(t);return n.length===o.length&&n.every(n=>{const o=e[n],r=t[n];return o===r||"function"===typeof o||"function"===typeof r})}(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((e,n)=>e===t.childProps[n]));const iz=function(e){const{name:t,noStyle:n,className:r,dependencies:i,prefixCls:l,shouldUpdate:c,rules:u,children:d,required:p,label:f,messageVariables:m,trigger:g="onChange",validateTrigger:v,hidden:h,help:y,layout:C}=e,{getPrefixCls:x}=o.useContext(xe),{name:$}=o.useContext($p),w=function(e){if("function"===typeof e)return e;const t=s(e);return t.length<=1?t[0]:t}(d),S="function"===typeof w,k=o.useContext(wp),{validateTrigger:E}=o.useContext(ud),O=void 0!==v?v:E,A=!(void 0===t||null===t),I=x("form",l),N=Mi(I),[M,j,P]=RT(I,N);qi("Form.Item");const R=o.useContext(dd),T=o.useRef(null),[z,B]=function(e){const[t,n]=o.useState(e),r=o.useRef(null),i=o.useRef([]),a=o.useRef(!1);return o.useEffect(()=>(a.current=!1,()=>{a.current=!0,ve.cancel(r.current),r.current=null}),[]),[t,function(e){a.current||(null===r.current&&(i.current=[],r.current=ve(()=>{r.current=null,n(e=>{let t=e;return i.current.forEach(e=>{t=e(t)}),t})})),i.current.push(e))}]}({}),[H,D]=Hn(()=>({errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1})),L=(e,t)=>{B(n=>{const o=Object.assign({},n),r=[].concat(se(e.name.slice(0,-1)),se(t)).join("__SPLIT__");return e.destroy?delete o[r]:o[r]=e,o})},[F,W]=o.useMemo(()=>{const e=se(H.errors),t=se(H.warnings);return Object.values(z).forEach(n=>{e.push.apply(e,se(n.errors||[])),t.push.apply(t,se(n.warnings||[]))}),[e,t]},[z,H.errors,H.warnings]),_=function(){const{itemRef:e}=o.useContext($p),t=o.useRef({});return function(n,o){const r=o&&"object"===typeof o&&(0,b.A9)(o),i=n.join("_");return t.current.name===i&&t.current.originRef===r||(t.current.name=i,t.current.originRef=r,t.current.ref=(0,b.K4)(e(n),r)),t.current.ref}}();function K(i,l,c){return n&&!h?o.createElement(tz,{prefixCls:I,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:H,errors:F,warnings:W,noStyle:!0,name:t},i):o.createElement(oz,Object.assign({key:"row"},e,{className:a()(r,P,N,j),prefixCls:I,fieldId:l,isRequired:c,errors:F,warnings:W,meta:H,onSubItemMetaChange:L,layout:C,name:t}),i)}if(!A&&!S&&!i)return M(K(w));let q={};return"string"===typeof f?q.label=f:t&&(q.label=String(t)),m&&(q=Object.assign(Object.assign({},q),m)),M(o.createElement(op,Object.assign({},e,{messageVariables:q,trigger:g,validateTrigger:O,onMetaChange:e=>{const t=null===R||void 0===R?void 0:R.getKey(e.name);if(D(e.destroy?{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}:e,!0),n&&!1!==y&&k){let n=e.name;if(e.destroy)n=T.current||n;else if(void 0!==t){const[e,o]=t;n=[e].concat(se(o)),T.current=n}k(e,n)}}}),(n,r,a)=>{const l=$k(t).length&&r?r.name:[],s=wk(l,$),d=void 0!==p?p:!!(null===u||void 0===u?void 0:u.some(e=>{if(e&&"object"===typeof e&&e.required&&!e.warningOnly)return!0;if("function"===typeof e){const t=e(a);return(null===t||void 0===t?void 0:t.required)&&!(null===t||void 0===t?void 0:t.warningOnly)}return!1})),f=Object.assign({},n);let m=null;if(Array.isArray(w)&&A)m=w;else if(S&&(!c&&!i||A));else if(!i||S||A)if(o.isValidElement(w)){const t=Object.assign(Object.assign({},w.props),f);if(t.id||(t.id=s),y||F.length>0||W.length>0||e.extra){const n=[];(y||F.length>0)&&n.push(`${s}_help`),e.extra&&n.push(`${s}_extra`),t["aria-describedby"]=n.join(" ")}F.length>0&&(t["aria-invalid"]="true"),d&&(t["aria-required"]="true"),(0,b.f3)(w)&&(t.ref=_(l,w));new Set([].concat(se($k(g)),se($k(O)))).forEach(e=>{t[e]=function(){for(var t,n,o,r,i,a=arguments.length,l=new Array(a),c=0;c<a;c++)l[c]=arguments[c];null===(o=f[e])||void 0===o||(t=o).call.apply(t,[f].concat(l)),null===(i=(r=w.props)[e])||void 0===i||(n=i).call.apply(n,[r].concat(l))}});const n=[t["aria-required"],t["aria-invalid"],t["aria-describedby"]];m=o.createElement(rz,{control:f,update:w,childProps:n},ii(w,t))}else m=S&&(c||i)&&!A?w(a):w;else;return K(m,s,d)}))};iz.useStatus=WT;const az=iz;var lz=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const cz=e=>{var{prefixCls:t,children:n}=e,r=lz(e,["prefixCls","children"]);const{getPrefixCls:i}=o.useContext(xe),a=i("form",t),l=o.useMemo(()=>({prefixCls:a,status:"error"}),[a]);return o.createElement(rp,Object.assign({},r),(e,t,r)=>o.createElement(kp.Provider,{value:l},n(e.map(e=>Object.assign(Object.assign({},e),{fieldKey:e.key})),t,{errors:r.errors,warnings:r.warnings})))};const sz=LT;sz.Item=az,sz.List=cz,sz.ErrorList=BT,sz.useForm=Ak,sz.useFormInstance=function(){const{form:e}=o.useContext($p);return e},sz.useWatch=yp,sz.Provider=Sp,sz.create=()=>{};const uz=sz;const dz={useBreakpoint:function(){return Pb()}};var pz=n(29817);function fz(){return{width:document.documentElement.clientWidth,height:window.innerHeight||document.documentElement.clientHeight}}function mz(e,t,n,o){var r=m().unstable_batchedUpdates?function(e){m().unstable_batchedUpdates(n,e)}:n;return null!==e&&void 0!==e&&e.addEventListener&&e.addEventListener(t,r,o),{remove:function(){null!==e&&void 0!==e&&e.removeEventListener&&e.removeEventListener(t,r,o)}}}var gz=o.createContext(null);const vz=function(e){var t=e.visible,n=e.maskTransitionName,r=e.getContainer,i=e.prefixCls,l=e.rootClassName,c=e.icons,s=e.countRender,u=e.showSwitch,p=e.showProgress,f=e.current,m=e.transform,g=e.count,v=e.scale,h=e.minScale,b=e.maxScale,y=e.closeIcon,C=e.onActive,x=e.onClose,$=e.onZoomIn,w=e.onZoomOut,S=e.onRotateRight,k=e.onRotateLeft,E=e.onFlipX,O=e.onFlipY,A=e.onReset,I=e.toolbarRender,N=e.zIndex,M=e.image,j=(0,o.useContext)(gz),P=c.rotateLeft,R=c.rotateRight,T=c.zoomIn,z=c.zoomOut,B=c.close,H=c.left,D=c.right,L=c.flipX,F=c.flipY,W="".concat(i,"-operations-operation");o.useEffect(function(){var e=function(e){e.keyCode===Xi.ESC&&x()};return t&&window.addEventListener("keydown",e),function(){window.removeEventListener("keydown",e)}},[t]);var _=function(e,t){e.preventDefault(),e.stopPropagation(),C(t)},K=o.useCallback(function(e){var t=e.type,n=e.disabled,r=e.onClick,l=e.icon;return o.createElement("div",{key:t,className:a()(W,"".concat(i,"-operations-operation-").concat(t),(0,Ee.A)({},"".concat(i,"-operations-operation-disabled"),!!n)),onClick:r},l)},[W,i]),q=u?K({icon:H,onClick:function(e){return _(e,-1)},type:"prev",disabled:0===f}):void 0,V=u?K({icon:D,onClick:function(e){return _(e,1)},type:"next",disabled:f===g-1}):void 0,X=K({icon:F,onClick:O,type:"flipY"}),G=K({icon:L,onClick:E,type:"flipX"}),Y=K({icon:P,onClick:k,type:"rotateLeft"}),U=K({icon:R,onClick:S,type:"rotateRight"}),Q=K({icon:z,onClick:w,type:"zoomOut",disabled:v<=h}),Z=K({icon:T,onClick:$,type:"zoomIn",disabled:v===b}),J=o.createElement("div",{className:"".concat(i,"-operations")},X,G,Y,U,Q,Z);return o.createElement(Jr,{visible:t,motionName:n},function(e){var t=e.className,n=e.style;return o.createElement(_u,{open:!0,getContainer:null!==r&&void 0!==r?r:document.body},o.createElement("div",{className:a()("".concat(i,"-operations-wrapper"),t,l),style:(0,d.A)((0,d.A)({},n),{},{zIndex:N})},null===y?null:o.createElement("button",{className:"".concat(i,"-close"),onClick:x},y||B),u&&o.createElement(o.Fragment,null,o.createElement("div",{className:a()("".concat(i,"-switch-left"),(0,Ee.A)({},"".concat(i,"-switch-left-disabled"),0===f)),onClick:function(e){return _(e,-1)}},H),o.createElement("div",{className:a()("".concat(i,"-switch-right"),(0,Ee.A)({},"".concat(i,"-switch-right-disabled"),f===g-1)),onClick:function(e){return _(e,1)}},D)),o.createElement("div",{className:"".concat(i,"-footer")},p&&o.createElement("div",{className:"".concat(i,"-progress")},s?s(f+1,g):o.createElement("bdi",null,"".concat(f+1," / ").concat(g))),I?I(J,(0,d.A)((0,d.A)({icons:{prevIcon:q,nextIcon:V,flipYIcon:X,flipXIcon:G,rotateLeftIcon:Y,rotateRightIcon:U,zoomOutIcon:Q,zoomInIcon:Z},actions:{onActive:C,onFlipY:O,onFlipX:E,onRotateLeft:k,onRotateRight:S,onZoomOut:w,onZoomIn:$,onReset:A,onClose:x},transform:m},j?{current:f,total:g}:{}),{},{image:M})):J)))})};var hz={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function bz(e,t,n,o){var r=t+n,i=(n-o)/2;if(n>o){if(t>0)return(0,Ee.A)({},e,i);if(t<0&&r<o)return(0,Ee.A)({},e,-i)}else if(t<0||r>o)return(0,Ee.A)({},e,t<0?i:-i);return{}}function yz(e,t,n,o){var r=fz(),i=r.width,a=r.height,l=null;return e<=i&&t<=a?l={x:0,y:0}:(e>i||t>a)&&(l=(0,d.A)((0,d.A)({},bz("x",n,e,i)),bz("y",o,t,a))),l}function Cz(e){var t=e.src,n=e.isCustomPlaceholder,r=e.fallback,i=(0,o.useState)(n?"loading":"normal"),a=(0,ke.A)(i,2),l=a[0],c=a[1],s=(0,o.useRef)(!1),u="error"===l;(0,o.useEffect)(function(){var e=!0;return function(e){return new Promise(function(t){if(e){var n=document.createElement("img");n.onerror=function(){return t(!1)},n.onload=function(){return t(!0)},n.src=e}else t(!1)})}(t).then(function(t){!t&&e&&c("error")}),function(){e=!1}},[t]),(0,o.useEffect)(function(){n&&!s.current?c("loading"):u&&c("normal")},[t]);var d=function(){c("normal")};return[function(e){s.current=!1,"loading"===l&&null!==e&&void 0!==e&&e.complete&&(e.naturalWidth||e.naturalHeight)&&(s.current=!0,d())},u&&r?{src:r}:{onLoad:d,src:t},l]}function xz(e,t){var n=e.x-t.x,o=e.y-t.y;return Math.hypot(n,o)}function $z(e,t,n,r,i,a,l){var c=i.rotate,s=i.scale,u=i.x,p=i.y,f=(0,o.useState)(!1),m=(0,ke.A)(f,2),g=m[0],v=m[1],h=(0,o.useRef)({point1:{x:0,y:0},point2:{x:0,y:0},eventType:"none"}),b=function(e){h.current=(0,d.A)((0,d.A)({},h.current),e)};return(0,o.useEffect)(function(){var e;return n&&t&&(e=mz(window,"touchmove",function(e){return e.preventDefault()},{passive:!1})),function(){var t;null===(t=e)||void 0===t||t.remove()}},[n,t]),{isTouching:g,onTouchStart:function(e){if(t){e.stopPropagation(),v(!0);var n=e.touches,o=void 0===n?[]:n;o.length>1?b({point1:{x:o[0].clientX,y:o[0].clientY},point2:{x:o[1].clientX,y:o[1].clientY},eventType:"touchZoom"}):b({point1:{x:o[0].clientX-u,y:o[0].clientY-p},eventType:"move"})}},onTouchMove:function(e){var t=e.touches,n=void 0===t?[]:t,o=h.current,r=o.point1,i=o.point2,c=o.eventType;if(n.length>1&&"touchZoom"===c){var s={x:n[0].clientX,y:n[0].clientY},u={x:n[1].clientX,y:n[1].clientY},d=function(e,t,n,o){var r=xz(e,n),i=xz(t,o);if(0===r&&0===i)return[e.x,e.y];var a=r/(r+i);return[e.x+a*(t.x-e.x),e.y+a*(t.y-e.y)]}(r,i,s,u),p=(0,ke.A)(d,2),f=p[0],m=p[1],g=xz(s,u)/xz(r,i);l(g,"touchZoom",f,m,!0),b({point1:s,point2:u,eventType:"touchZoom"})}else"move"===c&&(a({x:n[0].clientX-r.x,y:n[0].clientY-r.y},"move"),b({eventType:"move"}))},onTouchEnd:function(){if(n){if(g&&v(!1),b({eventType:"none"}),r>s)return a({x:0,y:0,scale:r},"touchZoom");var t=e.current.offsetWidth*s,o=e.current.offsetHeight*s,i=e.current.getBoundingClientRect(),l=i.left,u=i.top,p=c%180!==0,f=yz(p?o:t,p?t:o,l,u);f&&a((0,d.A)({},f),"dragRebound")}}}}var wz=["fallback","src","imgRef"],Sz=["prefixCls","src","alt","imageInfo","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],kz=function(e){var t=e.fallback,n=e.src,o=e.imgRef,i=(0,cr.A)(e,wz),a=Cz({src:n,fallback:t}),c=(0,ke.A)(a,2),s=c[0],u=c[1];return r().createElement("img",(0,l.A)({ref:function(e){o.current=e,s(e)}},i,u))};const Ez=function(e){var t=e.prefixCls,n=e.src,i=e.alt,c=e.imageInfo,s=e.fallback,p=e.movable,f=void 0===p||p,m=e.onClose,g=e.visible,v=e.icons,h=void 0===v?{}:v,b=e.rootClassName,y=e.closeIcon,C=e.getContainer,x=e.current,$=void 0===x?0:x,w=e.count,S=void 0===w?1:w,k=e.countRender,E=e.scaleStep,O=void 0===E?.5:E,A=e.minScale,I=void 0===A?1:A,N=e.maxScale,M=void 0===N?50:N,j=e.transitionName,P=void 0===j?"zoom":j,R=e.maskTransitionName,T=void 0===R?"fade":R,z=e.imageRender,B=e.imgCommonProps,H=e.toolbarRender,D=e.onTransform,L=e.onChange,F=(0,cr.A)(e,Sz),W=(0,o.useRef)(),_=(0,o.useContext)(gz),K=_&&S>1,q=_&&S>=1,V=(0,o.useState)(!0),X=(0,ke.A)(V,2),G=X[0],Y=X[1],U=function(e,t,n,r){var i=(0,o.useRef)(null),a=(0,o.useRef)([]),l=(0,o.useState)(hz),c=(0,ke.A)(l,2),s=c[0],u=c[1],p=function(e,t){null===i.current&&(a.current=[],i.current=ve(function(){u(function(e){var n=e;return a.current.forEach(function(e){n=(0,d.A)((0,d.A)({},n),e)}),i.current=null,null===r||void 0===r||r({transform:n,action:t}),n})})),a.current.push((0,d.A)((0,d.A)({},s),e))};return{transform:s,resetTransform:function(e){u(hz),Ne(hz,s)||null===r||void 0===r||r({transform:hz,action:e})},updateTransform:p,dispatchZoomChange:function(o,r,i,a,l){var c=e.current,u=c.width,d=c.height,f=c.offsetWidth,m=c.offsetHeight,g=c.offsetLeft,v=c.offsetTop,h=o,b=s.scale*o;b>n?(b=n,h=n/s.scale):b<t&&(h=(b=l?b:t)/s.scale);var y=null!==i&&void 0!==i?i:innerWidth/2,C=null!==a&&void 0!==a?a:innerHeight/2,x=h-1,$=x*u*.5,w=x*d*.5,S=x*(y-s.x-g),k=x*(C-s.y-v),E=s.x-(S-$),O=s.y-(k-w);if(o<1&&1===b){var A=f*b,I=m*b,N=fz(),M=N.width,j=N.height;A<=M&&I<=j&&(E=0,O=0)}p({x:E,y:O,scale:b},r)}}}(W,I,M,D),Q=U.transform,Z=U.resetTransform,J=U.updateTransform,ee=U.dispatchZoomChange,te=function(e,t,n,r,i,a,l){var c=i.rotate,s=i.scale,p=i.x,f=i.y,m=(0,o.useState)(!1),g=(0,ke.A)(m,2),v=g[0],h=g[1],b=(0,o.useRef)({diffX:0,diffY:0,transformX:0,transformY:0}),y=function(e){n&&v&&a({x:e.pageX-b.current.diffX,y:e.pageY-b.current.diffY},"move")},C=function(){if(n&&v){h(!1);var t=b.current,o=t.transformX,r=t.transformY;if(p===o||f===r)return;var i=e.current.offsetWidth*s,l=e.current.offsetHeight*s,u=e.current.getBoundingClientRect(),m=u.left,g=u.top,y=c%180!==0,C=yz(y?l:i,y?i:l,m,g);C&&a((0,d.A)({},C),"dragRebound")}};return(0,o.useEffect)(function(){var e,n,o,r;if(t){o=mz(window,"mouseup",C,!1),r=mz(window,"mousemove",y,!1);try{window.top!==window.self&&(e=mz(window.top,"mouseup",C,!1),n=mz(window.top,"mousemove",y,!1))}catch(i){(0,u.$e)(!1,"[rc-image] ".concat(i))}}return function(){var t,i,a,l;null===(t=o)||void 0===t||t.remove(),null===(i=r)||void 0===i||i.remove(),null===(a=e)||void 0===a||a.remove(),null===(l=n)||void 0===l||l.remove()}},[n,v,p,f,c,t]),{isMoving:v,onMouseDown:function(e){t&&0===e.button&&(e.preventDefault(),e.stopPropagation(),b.current={diffX:e.pageX-p,diffY:e.pageY-f,transformX:p,transformY:f},h(!0))},onMouseMove:y,onMouseUp:C,onWheel:function(e){if(n&&0!=e.deltaY){var t=Math.abs(e.deltaY/100),o=1+Math.min(t,1)*r;e.deltaY>0&&(o=1/o),l(o,"wheel",e.clientX,e.clientY)}}}}(W,f,g,O,Q,J,ee),ne=te.isMoving,oe=te.onMouseDown,re=te.onWheel,ie=$z(W,f,g,I,Q,J,ee),ae=ie.isTouching,le=ie.onTouchStart,ce=ie.onTouchMove,se=ie.onTouchEnd,ue=Q.rotate,de=Q.scale,pe=a()((0,Ee.A)({},"".concat(t,"-moving"),ne));(0,o.useEffect)(function(){G||Y(!0)},[G]);var fe=function(e){var t=$+e;!Number.isInteger(t)||t<0||t>S-1||(Y(!1),Z(e<0?"prev":"next"),null===L||void 0===L||L(t,$))},me=function(e){g&&K&&(e.keyCode===Xi.LEFT?fe(-1):e.keyCode===Xi.RIGHT&&fe(1))};(0,o.useEffect)(function(){var e=mz(window,"keydown",me,!1);return function(){e.remove()}},[g,K,$]);var ge=r().createElement(kz,(0,l.A)({},B,{width:e.width,height:e.height,imgRef:W,className:"".concat(t,"-img"),alt:i,style:{transform:"translate3d(".concat(Q.x,"px, ").concat(Q.y,"px, 0) scale3d(").concat(Q.flipX?"-":"").concat(de,", ").concat(Q.flipY?"-":"").concat(de,", 1) rotate(").concat(ue,"deg)"),transitionDuration:(!G||ae)&&"0s"},fallback:s,src:n,onWheel:re,onMouseDown:oe,onDoubleClick:function(e){g&&(1!==de?J({x:0,y:0,scale:1},"doubleClick"):ee(1+O,"doubleClick",e.clientX,e.clientY))},onTouchStart:le,onTouchMove:ce,onTouchEnd:se,onTouchCancel:se})),he=(0,d.A)({url:n,alt:i},c);return r().createElement(r().Fragment,null,r().createElement(ld,(0,l.A)({transitionName:P,maskTransitionName:T,closable:!1,keyboard:!0,prefixCls:t,onClose:m,visible:g,classNames:{wrapper:pe},rootClassName:b,getContainer:C},F,{afterClose:function(){Z("close")}}),r().createElement("div",{className:"".concat(t,"-img-wrapper")},z?z(ge,(0,d.A)({transform:Q,image:he},_?{current:$}:{})):ge)),r().createElement(vz,{visible:g,transform:Q,maskTransitionName:T,closeIcon:y,getContainer:C,prefixCls:t,rootClassName:b,icons:h,countRender:k,showSwitch:K,showProgress:q,current:$,count:S,scale:de,minScale:I,maxScale:M,toolbarRender:H,onActive:fe,onZoomIn:function(){ee(1+O,"zoomIn")},onZoomOut:function(){ee(1/(1+O),"zoomOut")},onRotateRight:function(){J({rotate:ue+90},"rotateRight")},onRotateLeft:function(){J({rotate:ue-90},"rotateLeft")},onFlipX:function(){J({flipX:!Q.flipX},"flipX")},onFlipY:function(){J({flipY:!Q.flipY},"flipY")},onClose:m,onReset:function(){Z("reset")},zIndex:void 0!==F.zIndex?F.zIndex+1:void 0,image:he}))};var Oz=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"];var Az=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],Iz=["src"];const Nz=function(e){var t,n=e.previewPrefixCls,r=void 0===n?"rc-image-preview":n,i=e.children,a=e.icons,c=void 0===a?{}:a,s=e.items,u=e.preview,f=e.fallback,m="object"===(0,p.A)(u)?u:{},g=m.visible,v=m.onVisibleChange,h=m.getContainer,b=m.current,y=m.movable,C=m.minScale,x=m.maxScale,$=m.countRender,w=m.closeIcon,S=m.onChange,k=m.onTransform,E=m.toolbarRender,O=m.imageRender,A=(0,cr.A)(m,Az),I=function(e){var t=o.useState({}),n=(0,ke.A)(t,2),r=n[0],i=n[1],a=o.useCallback(function(e,t){return i(function(n){return(0,d.A)((0,d.A)({},n),{},(0,Ee.A)({},e,t))}),function(){i(function(t){var n=(0,d.A)({},t);return delete n[e],n})}},[]);return[o.useMemo(function(){return e?e.map(function(e){if("string"===typeof e)return{data:{src:e}};var t={};return Object.keys(e).forEach(function(n){["src"].concat(se(Oz)).includes(n)&&(t[n]=e[n])}),{data:t}}):Object.keys(r).reduce(function(e,t){var n=r[t],o=n.canPreview,i=n.data;return o&&e.push({data:i,id:t}),e},[])},[e,r]),a,!!e]}(s),N=(0,ke.A)(I,3),M=N[0],j=N[1],P=N[2],R=Ln(0,{value:b}),T=(0,ke.A)(R,2),z=T[0],B=T[1],H=(0,o.useState)(!1),D=(0,ke.A)(H,2),L=D[0],F=D[1],W=(null===(t=M[z])||void 0===t?void 0:t.data)||{},_=W.src,K=(0,cr.A)(W,Iz),q=Ln(!!g,{value:g,onChange:function(e,t){null===v||void 0===v||v(e,t,z)}}),V=(0,ke.A)(q,2),X=V[0],G=V[1],Y=(0,o.useState)(null),U=(0,ke.A)(Y,2),Q=U[0],Z=U[1],J=o.useCallback(function(e,t,n,o){var r=P?M.findIndex(function(e){return e.data.src===t}):M.findIndex(function(t){return t.id===e});B(r<0?0:r),G(!0),Z({x:n,y:o}),F(!0)},[M,P]);o.useEffect(function(){X?L||B(0):F(!1)},[X]);var ee=o.useMemo(function(){return{register:j,onPreview:J}},[j,J]);return o.createElement(gz.Provider,{value:ee},i,o.createElement(Ez,(0,l.A)({"aria-hidden":!X,movable:y,visible:X,prefixCls:r,closeIcon:w,onClose:function(){G(!1),Z(null)},mousePosition:Q,imgCommonProps:K,src:_,fallback:f,icons:c,minScale:C,maxScale:x,getContainer:h,current:z,count:M.length,countRender:$,onTransform:k,toolbarRender:E,imageRender:O,onChange:function(e,t){B(e),null===S||void 0===S||S(e,t)}},A)))};var Mz=0;var jz=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],Pz=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],Rz=function(e){var t=e.src,n=e.alt,r=e.onPreviewClose,i=e.prefixCls,c=void 0===i?"rc-image":i,s=e.previewPrefixCls,u=void 0===s?"".concat(c,"-preview"):s,f=e.placeholder,m=e.fallback,g=e.width,v=e.height,h=e.style,b=e.preview,y=void 0===b||b,C=e.className,x=e.onClick,$=e.onError,w=e.wrapperClassName,S=e.wrapperStyle,k=e.rootClassName,E=(0,cr.A)(e,jz),O=f&&!0!==f,A="object"===(0,p.A)(y)?y:{},I=A.src,N=A.visible,M=void 0===N?void 0:N,j=A.onVisibleChange,P=void 0===j?r:j,R=A.getContainer,T=void 0===R?void 0:R,z=A.mask,B=A.maskClassName,H=A.movable,D=A.icons,L=A.scaleStep,F=A.minScale,W=A.maxScale,_=A.imageRender,K=A.toolbarRender,q=(0,cr.A)(A,Pz),V=null!==I&&void 0!==I?I:t,X=Ln(!!M,{value:M,onChange:P}),G=(0,ke.A)(X,2),Y=G[0],U=G[1],Q=Cz({src:t,isCustomPlaceholder:O,fallback:m}),Z=(0,ke.A)(Q,3),J=Z[0],ee=Z[1],te=Z[2],ne=(0,o.useState)(null),oe=(0,ke.A)(ne,2),re=oe[0],ie=oe[1],ae=(0,o.useContext)(gz),le=!!y,ce=a()(c,w,k,(0,Ee.A)({},"".concat(c,"-error"),"error"===te)),se=(0,o.useMemo)(function(){var t={};return Oz.forEach(function(n){void 0!==e[n]&&(t[n]=e[n])}),t},Oz.map(function(t){return e[t]})),ue=function(e,t){var n=o.useState(function(){return String(Mz+=1)}),r=(0,ke.A)(n,1)[0],i=o.useContext(gz),a={data:t,canPreview:e};return o.useEffect(function(){if(i)return i.register(r,a)},[]),o.useEffect(function(){i&&i.register(r,a)},[e,t]),r}(le,(0,o.useMemo)(function(){return(0,d.A)((0,d.A)({},se),{},{src:V})},[V,se]));return o.createElement(o.Fragment,null,o.createElement("div",(0,l.A)({},E,{className:ce,onClick:le?function(e){var t=function(e){var t=e.getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}(e.target),n=t.left,o=t.top;ae?ae.onPreview(ue,V,n,o):(ie({x:n,y:o}),U(!0)),null===x||void 0===x||x(e)}:x,style:(0,d.A)({width:g,height:v},S)}),o.createElement("img",(0,l.A)({},se,{className:a()("".concat(c,"-img"),(0,Ee.A)({},"".concat(c,"-img-placeholder"),!0===f),C),style:(0,d.A)({height:v},h),ref:J},ee,{width:g,height:v,onError:$})),"loading"===te&&o.createElement("div",{"aria-hidden":"true",className:"".concat(c,"-placeholder")},f),z&&le&&o.createElement("div",{className:a()("".concat(c,"-mask"),B),style:{display:"none"===(null===h||void 0===h?void 0:h.display)?"none":void 0}},z)),!ae&&le&&o.createElement(Ez,(0,l.A)({"aria-hidden":!Y,visible:Y,prefixCls:u,onClose:function(){U(!1),ie(null)},mousePosition:re,src:V,alt:n,imageInfo:{width:g,height:v},fallback:m,getContainer:T,icons:D,movable:H,scaleStep:L,minScale:F,maxScale:W,rootClassName:k,imageRender:_,imgCommonProps:se,toolbarRender:K},q)))};Rz.PreviewGroup=Nz;const Tz=Rz;var zz=n(1976),Bz=n(36963),Hz=n(39025),Dz=n(3774),Lz=n(67853);const Fz=e=>({position:e||"absolute",inset:0}),Wz=e=>{const{iconCls:t,motionDurationSlow:n,paddingXXS:o,marginXXS:r,prefixCls:i,colorTextLightSolid:a}=e;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:a,background:new wo.Y("#000").setA(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${n}`,[`.${i}-mask-info`]:Object.assign(Object.assign({},uo),{padding:`0 ${nt(o)}`,[t]:{marginInlineEnd:r,svg:{verticalAlign:"baseline"}}})}},_z=e=>{const{previewCls:t,modalMaskBg:n,paddingSM:o,marginXL:r,margin:i,paddingLG:a,previewOperationColorDisabled:l,previewOperationHoverColor:c,motionDurationSlow:s,iconCls:u,colorTextLightSolid:d}=e,p=new wo.Y(n).setA(.1),f=p.clone().setA(.2);return{[`${t}-footer`]:{position:"fixed",bottom:r,left:{_skip_check_:!0,value:"50%"},display:"flex",flexDirection:"column",alignItems:"center",color:e.previewOperationColor,transform:"translateX(-50%)"},[`${t}-progress`]:{marginBottom:i},[`${t}-close`]:{position:"fixed",top:r,right:{_skip_check_:!0,value:r},display:"flex",color:d,backgroundColor:p.toRgbString(),borderRadius:"50%",padding:o,outline:0,border:0,cursor:"pointer",transition:`all ${s}`,"&:hover":{backgroundColor:f.toRgbString()},[`& > ${u}`]:{fontSize:e.previewOperationSize}},[`${t}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${nt(a)}`,backgroundColor:p.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:o,padding:o,cursor:"pointer",transition:`all ${s}`,userSelect:"none",[`&:not(${t}-operations-operation-disabled):hover > ${u}`]:{color:c},"&-disabled":{color:l,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${u}`]:{fontSize:e.previewOperationSize}}}}},Kz=e=>{const{modalMaskBg:t,iconCls:n,previewOperationColorDisabled:o,previewCls:r,zIndexPopup:i,motionDurationSlow:a}=e,l=new wo.Y(t).setA(.1),c=l.clone().setA(.2);return{[`${r}-switch-left, ${r}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:e.calc(i).add(1).equal(),display:"flex",alignItems:"center",justifyContent:"center",width:e.imagePreviewSwitchSize,height:e.imagePreviewSwitchSize,marginTop:e.calc(e.imagePreviewSwitchSize).mul(-1).div(2).equal(),color:e.previewOperationColor,background:l.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${a}`,userSelect:"none","&:hover":{background:c.toRgbString()},"&-disabled":{"&, &:hover":{color:o,background:"transparent",cursor:"not-allowed",[`> ${n}`]:{cursor:"not-allowed"}}},[`> ${n}`]:{fontSize:e.previewOperationSize}},[`${r}-switch-left`]:{insetInlineStart:e.marginSM},[`${r}-switch-right`]:{insetInlineEnd:e.marginSM}}},qz=e=>{const{motionEaseOut:t,previewCls:n,motionDurationSlow:o,componentCls:r}=e;return[{[`${r}-preview-root`]:{[n]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${n}-body`]:Object.assign(Object.assign({},Fz()),{overflow:"hidden"}),[`${n}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${o} ${t} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},Fz()),{transition:`transform ${o} ${t} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${n}-moving`]:{[`${n}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${r}-preview-root`]:{[`${n}-wrap`]:{zIndex:e.zIndexPopup}}},{[`${r}-preview-operations-wrapper`]:{position:"fixed",zIndex:e.calc(e.zIndexPopup).add(1).equal()},"&":[_z(e),Kz(e)]}]},Vz=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",display:"inline-block",[`${t}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${t}-img-placeholder`]:{backgroundColor:e.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${t}-mask`]:Object.assign({},Wz(e)),[`${t}-mask:hover`]:{opacity:1},[`${t}-placeholder`]:Object.assign({},Fz())}}},Xz=e=>{const{previewCls:t}=e;return{[`${t}-root`]:Lf(e,"zoom"),"&":Ef(e,!0)}},Gz=qo("Image",e=>{const t=`${e.componentCls}-preview`,n=Jn(e,{previewCls:t,modalMaskBg:new wo.Y("#000").setA(.45).toRgbString(),imagePreviewSwitchSize:e.controlHeightLG});return[Vz(n),qz(n),Wf(Jn(n,{componentCls:t})),Xz(n)]},e=>({zIndexPopup:e.zIndexPopupBase+80,previewOperationColor:new wo.Y(e.colorTextLightSolid).setA(.65).toRgbString(),previewOperationHoverColor:new wo.Y(e.colorTextLightSolid).setA(.85).toRgbString(),previewOperationColorDisabled:new wo.Y(e.colorTextLightSolid).setA(.25).toRgbString(),previewOperationSize:1.5*e.fontSizeIcon}));var Yz=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const Uz={rotateLeft:o.createElement(zz.A,null),rotateRight:o.createElement(Bz.A,null),zoomIn:o.createElement(Dz.A,null),zoomOut:o.createElement(Lz.A,null),close:o.createElement(ir.A,null),left:o.createElement(iC.A,null),right:o.createElement(ss.A,null),flipX:o.createElement(Hz.A,null),flipY:o.createElement(Hz.A,{rotate:90})};var Qz=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const Zz=e=>{const{prefixCls:t,preview:n,className:r,rootClassName:i,style:l}=e,c=Qz(e,["prefixCls","preview","className","rootClassName","style"]);const{getPrefixCls:s,getPopupContainer:u,className:d,style:p,preview:f}=Se("image"),[m]=Yl("Image"),g=s("image",t),v=s(),h=Mi(g),[b,y,C]=Gz(g,h),x=a()(i,y,C,h),$=a()(r,y,d),[w]=fa("ImagePreview","object"===typeof n?n.zIndex:void 0),S=o.useMemo(()=>{if(!1===n)return n;const e="object"===typeof n?n:{},{getContainer:t,closeIcon:r,rootClassName:i,destroyOnClose:l,destroyOnHidden:c}=e,s=Qz(e,["getContainer","closeIcon","rootClassName","destroyOnClose","destroyOnHidden"]);return Object.assign(Object.assign({mask:o.createElement("div",{className:`${g}-mask-info`},o.createElement(pz.A,null),null===m||void 0===m?void 0:m.preview),icons:Uz},s),{destroyOnClose:null!==c&&void 0!==c?c:l,rootClassName:a()(x,i),getContainer:null!==t&&void 0!==t?t:u,transitionName:Xl(v,"zoom",e.transitionName),maskTransitionName:Xl(v,"fade",e.maskTransitionName),zIndex:w,closeIcon:null!==r&&void 0!==r?r:null===f||void 0===f?void 0:f.closeIcon})},[n,m,null===f||void 0===f?void 0:f.closeIcon]),k=Object.assign(Object.assign({},p),l);return b(o.createElement(Tz,Object.assign({prefixCls:g,preview:S,rootClassName:x,className:$,style:k},c)))};Zz.PreviewGroup=e=>{var{previewPrefixCls:t,preview:n}=e,r=Yz(e,["previewPrefixCls","preview"]);const{getPrefixCls:i,direction:l}=o.useContext(xe),c=i("image",t),s=`${c}-preview`,u=i(),d=Mi(c),[p,f,m]=Gz(c,d),[g]=fa("ImagePreview","object"===typeof n?n.zIndex:void 0),v=o.useMemo(()=>Object.assign(Object.assign({},Uz),{left:"rtl"===l?o.createElement(ss.A,null):o.createElement(iC.A,null),right:"rtl"===l?o.createElement(iC.A,null):o.createElement(ss.A,null)}),[l]),h=o.useMemo(()=>{var e;if(!1===n)return n;const t="object"===typeof n?n:{},o=a()(f,m,d,null!==(e=t.rootClassName)&&void 0!==e?e:"");return Object.assign(Object.assign({},t),{transitionName:Xl(u,"zoom",t.transitionName),maskTransitionName:Xl(u,"fade",t.maskTransitionName),rootClassName:o,zIndex:g})},[n]);return p(o.createElement(Tz.PreviewGroup,Object.assign({preview:h,previewPrefixCls:s,icons:v},r)))};const Jz=Zz,eB=e=>{const{getPrefixCls:t,direction:n}=(0,o.useContext)(xe),{prefixCls:r,className:i}=e,l=t("input-group",r),c=t("input"),[s,u,d]=$M(c),p=a()(l,d,{[`${l}-lg`]:"large"===e.size,[`${l}-sm`]:"small"===e.size,[`${l}-compact`]:e.compact,[`${l}-rtl`]:"rtl"===n},u,i),f=(0,o.useContext)(Ep),m=(0,o.useMemo)(()=>Object.assign(Object.assign({},f),{isFormItemInput:!1}),[f]);return s(o.createElement("span",{className:p,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},o.createElement(Ep.Provider,{value:m},e.children)))},tB=e=>{const{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:"var(--ant-color-text)"},[`${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}}}},nB=qo(["Input","OTP"],e=>{const t=Jn(e,Lk(e));return[tB(t)]},Fk);var oB=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const rB=o.forwardRef((e,t)=>{const{className:n,value:r,onChange:i,onActiveChange:l,index:c,mask:s}=e,u=oB(e,["className","value","onChange","onActiveChange","index","mask"]),{getPrefixCls:d}=o.useContext(xe),p=d("otp"),f="string"===typeof s?s:r,m=o.useRef(null);o.useImperativeHandle(t,()=>m.current);const g=()=>{ve(()=>{var e;const t=null===(e=m.current)||void 0===e?void 0:e.input;document.activeElement===t&&t&&t.select()})};return o.createElement("span",{className:`${p}-input-wrapper`,role:"presentation"},s&&""!==r&&void 0!==r&&o.createElement("span",{className:`${p}-mask-icon`,"aria-hidden":"true"},f),o.createElement(BM,Object.assign({"aria-label":`OTP Input ${c+1}`,type:!0===s?"password":"text"},u,{ref:m,value:r,onInput:e=>{i(c,e.target.value)},onFocus:g,onKeyDown:e=>{const{key:t,ctrlKey:n,metaKey:o}=e;"ArrowLeft"===t?l(c-1):"ArrowRight"===t?l(c+1):"z"===t&&(n||o)&&e.preventDefault(),g()},onKeyUp:e=>{"Backspace"!==e.key||r||l(c-1),g()},onMouseDown:g,onMouseUp:g,className:a()(n,{[`${p}-mask-input`]:s})})))}),iB=rB;var aB=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};function lB(e){return(e||"").split("")}const cB=e=>{const{index:t,prefixCls:n,separator:r}=e,i="function"===typeof r?r(t):r;return i?o.createElement("span",{className:`${n}-separator`},i):null},sB=o.forwardRef((e,t)=>{const{prefixCls:n,length:r=6,size:i,defaultValue:l,value:c,onChange:s,formatter:u,separator:d,variant:p,disabled:f,status:m,autoFocus:g,mask:v,type:h,onInput:b,inputMode:y}=e,C=aB(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]);const{getPrefixCls:x,direction:$}=o.useContext(xe),w=x("otp",n),S=ni(C,{aria:!0,data:!0,attr:!0}),[k,E,O]=nB(w),A=lc(e=>null!==i&&void 0!==i?i:e),I=o.useContext(Ep),N=ch(I.status,m),M=o.useMemo(()=>Object.assign(Object.assign({},I),{status:N,hasFeedback:!1,feedbackIcon:null}),[I,N]),j=o.useRef(null),P=o.useRef({});o.useImperativeHandle(t,()=>({focus:()=>{var e;null===(e=P.current[0])||void 0===e||e.focus()},blur:()=>{var e;for(let t=0;t<r;t+=1)null===(e=P.current[t])||void 0===e||e.blur()},nativeElement:j.current}));const R=e=>u?u(e):e,[T,z]=o.useState(()=>lB(R(l||"")));o.useEffect(()=>{void 0!==c&&z(lB(c))},[c]);const B=Bn(e=>{z(e),b&&b(e),s&&e.length===r&&e.every(e=>e)&&e.some((e,t)=>T[t]!==e)&&s(e.join(""))}),H=Bn((e,t)=>{let n=se(T);for(let r=0;r<e;r+=1)n[r]||(n[r]="");t.length<=1?n[e]=t:n=n.slice(0,e).concat(lB(t)),n=n.slice(0,r);for(let r=n.length-1;r>=0&&!n[r];r-=1)n.pop();const o=R(n.map(e=>e||" ").join(""));return n=lB(o).map((e,t)=>" "!==e||n[t]?e:n[t]),n}),D=(e,t)=>{var n;const o=H(e,t),i=Math.min(e+t.length,r-1);i!==e&&void 0!==o[e]&&(null===(n=P.current[i])||void 0===n||n.focus()),B(o)},L=e=>{var t;null===(t=P.current[e])||void 0===t||t.focus()},F={variant:p,disabled:f,status:N,mask:v,type:h,inputMode:y};return k(o.createElement("div",Object.assign({},S,{ref:j,className:a()(w,{[`${w}-sm`]:"small"===A,[`${w}-lg`]:"large"===A,[`${w}-rtl`]:"rtl"===$},O,E),role:"group"}),o.createElement(Ep.Provider,{value:M},Array.from({length:r}).map((e,t)=>{const n=`otp-${t}`,i=T[t]||"";return o.createElement(o.Fragment,{key:n},o.createElement(iB,Object.assign({ref:e=>{P.current[t]=e},index:t,size:A,htmlSize:1,className:`${w}-input`,onChange:D,value:i,onActiveChange:L,autoFocus:0===t&&g},F)),t<r-1&&o.createElement(cB,{separator:d,index:t,prefixCls:w}))}))))}),uB=sB;var dB=n(63282),pB=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const fB=e=>e?o.createElement(pz.A,null):o.createElement(dB.A,null),mB={click:"onClick",hover:"onMouseOver"},gB=o.forwardRef((e,t)=>{const{disabled:n,action:r="click",visibilityToggle:i=!0,iconRender:l=fB}=e,c=o.useContext(Ga),s=null!==n&&void 0!==n?n:c,u="object"===typeof i&&void 0!==i.visible,[d,p]=(0,o.useState)(()=>!!u&&i.visible),f=(0,o.useRef)(null);o.useEffect(()=>{u&&p(i.visible)},[u,i]);const m=RM(f),g=()=>{var e;if(s)return;d&&m();const t=!d;p(t),"object"===typeof i&&(null===(e=i.onVisibleChange)||void 0===e||e.call(i,t))},{className:v,prefixCls:h,inputPrefixCls:y,size:C}=e,x=pB(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:$}=o.useContext(xe),w=$("input",y),S=$("input-password",h),k=i&&(e=>{const t=mB[r]||"",n=l(d),i={[t]:g,className:`${e}-icon`,key:"passwordIcon",onMouseDown:e=>{e.preventDefault()},onMouseUp:e=>{e.preventDefault()}};return o.cloneElement(o.isValidElement(n)?n:o.createElement("span",null,n),i)})(S),E=a()(S,v,{[`${S}-${C}`]:!!C}),O=Object.assign(Object.assign({},Ul(x,["suffix","iconRender","visibilityToggle"])),{type:d?"text":"password",className:E,prefixCls:w,suffix:k});return C&&(O.size=C),o.createElement(BM,Object.assign({ref:(0,b.K4)(t,f)},O))});const vB=gB;var hB=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const bB=o.forwardRef((e,t)=>{const{prefixCls:n,inputPrefixCls:r,className:i,size:l,suffix:c,enterButton:s=!1,addonAfter:u,loading:d,disabled:p,onSearch:f,onChange:m,onCompositionStart:g,onCompositionEnd:v,variant:h,onPressEnter:y}=e,C=hB(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd","variant","onPressEnter"]),{getPrefixCls:x,direction:$}=o.useContext(xe),w=o.useRef(!1),S=x("input-search",n),k=x("input",r),{compactSize:E}=mc(S,$),O=lc(e=>{var t;return null!==(t=null!==l&&void 0!==l?l:E)&&void 0!==t?t:e}),A=o.useRef(null),I=e=>{var t;document.activeElement===(null===(t=A.current)||void 0===t?void 0:t.input)&&e.preventDefault()},N=e=>{var t,n;f&&f(null===(n=null===(t=A.current)||void 0===t?void 0:t.input)||void 0===n?void 0:n.value,e,{source:"input"})},M="boolean"===typeof s?o.createElement(pb.A,null):null,j=`${S}-button`;let P;const R=s||{},T=R.type&&!0===R.type.__ANT_BUTTON;P=T||"button"===R.type?ii(R,Object.assign({onMouseDown:I,onClick:e=>{var t,n;null===(n=null===(t=null===R||void 0===R?void 0:R.props)||void 0===t?void 0:t.onClick)||void 0===n||n.call(t,e),N(e)},key:"enterButton"},T?{className:j,size:O}:{})):o.createElement(Su,{className:j,color:s?"primary":"default",size:O,disabled:p,key:"enterButton",onMouseDown:I,onClick:N,loading:d,icon:M,variant:"borderless"===h||"filled"===h||"underlined"===h?"text":s?"solid":void 0},s),u&&(P=[P,ii(u,{key:"addonAfter"})]);const z=a()(S,{[`${S}-rtl`]:"rtl"===$,[`${S}-${O}`]:!!O,[`${S}-with-button`]:!!s},i),B=Object.assign(Object.assign({},C),{className:z,prefixCls:k,type:"search",size:O,variant:h,onPressEnter:e=>{w.current||d||(null===y||void 0===y||y(e),N(e))},onCompositionStart:e=>{w.current=!0,null===g||void 0===g||g(e)},onCompositionEnd:e=>{w.current=!1,null===v||void 0===v||v(e)},addonAfter:P,suffix:c,onChange:e=>{(null===e||void 0===e?void 0:e.target)&&"click"===e.type&&f&&f(e.target.value,e,{source:"clear"}),null===m||void 0===m||m(e)},disabled:p});return o.createElement(BM,Object.assign({ref:(0,b.K4)(A,t)},B))});const yB=bB;var CB,xB=["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"],$B={};function wB(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;CB||((CB=document.createElement("textarea")).setAttribute("tab-index","-1"),CB.setAttribute("aria-hidden","true"),CB.setAttribute("name","hiddenTextarea"),document.body.appendChild(CB)),e.getAttribute("wrap")?CB.setAttribute("wrap",e.getAttribute("wrap")):CB.removeAttribute("wrap");var r=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&$B[n])return $B[n];var o=window.getComputedStyle(e),r=o.getPropertyValue("box-sizing")||o.getPropertyValue("-moz-box-sizing")||o.getPropertyValue("-webkit-box-sizing"),i=parseFloat(o.getPropertyValue("padding-bottom"))+parseFloat(o.getPropertyValue("padding-top")),a=parseFloat(o.getPropertyValue("border-bottom-width"))+parseFloat(o.getPropertyValue("border-top-width")),l={sizingStyle:xB.map(function(e){return"".concat(e,":").concat(o.getPropertyValue(e))}).join(";"),paddingSize:i,borderSize:a,boxSizing:r};return t&&n&&($B[n]=l),l}(e,t),i=r.paddingSize,a=r.borderSize,l=r.boxSizing,c=r.sizingStyle;CB.setAttribute("style","".concat(c,";").concat("\n min-height:0 !important;\n max-height:none !important;\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important;\n pointer-events: none !important;\n")),CB.value=e.value||e.placeholder||"";var s,u=void 0,d=void 0,p=CB.scrollHeight;if("border-box"===l?p+=a:"content-box"===l&&(p-=i),null!==n||null!==o){CB.value=" ";var f=CB.scrollHeight-i;null!==n&&(u=f*n,"border-box"===l&&(u=u+i+a),p=Math.max(u,p)),null!==o&&(d=f*o,"border-box"===l&&(d=d+i+a),s=p>d?"":"hidden",p=Math.min(d,p))}var m={height:p,overflowY:s,resize:"none"};return u&&(m.minHeight=u),d&&(m.maxHeight=d),m}var SB=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],kB=o.forwardRef(function(e,t){var n=e,r=n.prefixCls,i=n.defaultValue,c=n.value,s=n.autoSize,u=n.onResize,f=n.className,m=n.style,g=n.disabled,v=n.onChange,h=(n.onInternalAutoSize,(0,cr.A)(n,SB)),b=Ln(i,{value:c,postState:function(e){return null!==e&&void 0!==e?e:""}}),y=(0,ke.A)(b,2),C=y[0],x=y[1],$=o.useRef();o.useImperativeHandle(t,function(){return{textArea:$.current}});var w=o.useMemo(function(){return s&&"object"===(0,p.A)(s)?[s.minRows,s.maxRows]:[]},[s]),S=(0,ke.A)(w,2),k=S[0],E=S[1],O=!!s,A=o.useState(2),I=(0,ke.A)(A,2),N=I[0],M=I[1],j=o.useState(),P=(0,ke.A)(j,2),R=P[0],T=P[1],z=function(){M(0)};ut(function(){O&&z()},[c,k,E,O]),ut(function(){if(0===N)M(1);else if(1===N){var e=wB($.current,!1,k,E);M(2),T(e)}},[N]);var B=o.useRef(),H=function(){ve.cancel(B.current)};o.useEffect(function(){return H},[]);var D=O?R:null,L=(0,d.A)((0,d.A)({},m),D);return 0!==N&&1!==N||(L.overflowY="hidden",L.overflowX="hidden"),o.createElement(ie,{onResize:function(e){2===N&&(null===u||void 0===u||u(e),s&&(H(),B.current=ve(function(){z()})))},disabled:!(s||u)},o.createElement("textarea",(0,l.A)({},h,{ref:$,style:L,className:a()(r,f,(0,Ee.A)({},"".concat(r,"-disabled"),g)),disabled:g,value:C,onChange:function(e){x(e.target.value),null===v||void 0===v||v(e)}})))});const EB=kB;var OB=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],AB=r().forwardRef(function(e,t){var n,i=e.defaultValue,c=e.value,s=e.onFocus,u=e.onBlur,p=e.onChange,f=e.allowClear,m=e.maxLength,g=e.onCompositionStart,v=e.onCompositionEnd,h=e.suffix,b=e.prefixCls,y=void 0===b?"rc-textarea":b,C=e.showCount,x=e.count,$=e.className,w=e.style,S=e.disabled,k=e.hidden,E=e.classNames,O=e.styles,A=e.onResize,I=e.onClear,N=e.onPressEnter,M=e.readOnly,j=e.autoSize,P=e.onKeyDown,R=(0,cr.A)(e,OB),T=Ln(i,{value:c,defaultValue:i}),z=(0,ke.A)(T,2),B=z[0],H=z[1],D=void 0===B||null===B?"":String(B),L=r().useState(!1),F=(0,ke.A)(L,2),W=F[0],_=F[1],K=r().useRef(!1),q=r().useState(null),V=(0,ke.A)(q,2),X=V[0],G=V[1],Y=(0,o.useRef)(null),U=(0,o.useRef)(null),Q=function(){var e;return null===(e=U.current)||void 0===e?void 0:e.textArea},Z=function(){Q().focus()};(0,o.useImperativeHandle)(t,function(){var e;return{resizableTextArea:U.current,focus:Z,blur:function(){Q().blur()},nativeElement:(null===(e=Y.current)||void 0===e?void 0:e.nativeElement)||Q()}}),(0,o.useEffect)(function(){_(function(e){return!S&&e})},[S]);var J=r().useState(null),ee=(0,ke.A)(J,2),te=ee[0],ne=ee[1];r().useEffect(function(){var e;te&&(e=Q()).setSelectionRange.apply(e,se(te))},[te]);var oe,re=RN(x,C),ie=null!==(n=re.max)&&void 0!==n?n:m,ae=Number(ie)>0,le=re.strategy(D),ce=!!ie&&le>ie,ue=function(e,t){var n=t;!K.current&&re.exceedFormatter&&re.max&&re.strategy(t)>re.max&&t!==(n=re.exceedFormatter(t,{max:re.max}))&&ne([Q().selectionStart||0,Q().selectionEnd||0]),H(n),IN(e.currentTarget,e,p,n)},de=h;re.show&&(oe=re.showFormatter?re.showFormatter({value:D,count:le,maxLength:ie}):"".concat(le).concat(ae?" / ".concat(ie):""),de=r().createElement(r().Fragment,null,de,r().createElement("span",{className:a()("".concat(y,"-data-count"),null===E||void 0===E?void 0:E.count),style:null===O||void 0===O?void 0:O.count},oe)));var pe=!j&&!C&&!f;return r().createElement(jN,{ref:Y,value:D,allowClear:f,handleReset:function(e){H(""),Z(),IN(Q(),e,p)},suffix:de,prefixCls:y,classNames:(0,d.A)((0,d.A)({},E),{},{affixWrapper:a()(null===E||void 0===E?void 0:E.affixWrapper,(0,Ee.A)((0,Ee.A)({},"".concat(y,"-show-count"),C),"".concat(y,"-textarea-allow-clear"),f))}),disabled:S,focused:W,className:a()($,ce&&"".concat(y,"-out-of-range")),style:(0,d.A)((0,d.A)({},w),X&&!pe?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":"string"===typeof oe?oe:void 0}},hidden:k,readOnly:M,onClear:I},r().createElement(EB,(0,l.A)({},R,{autoSize:j,maxLength:m,onKeyDown:function(e){"Enter"===e.key&&N&&N(e),null===P||void 0===P||P(e)},onChange:function(e){ue(e,e.target.value)},onFocus:function(e){_(!0),null===s||void 0===s||s(e)},onBlur:function(e){_(!1),null===u||void 0===u||u(e)},onCompositionStart:function(e){K.current=!0,null===g||void 0===g||g(e)},onCompositionEnd:function(e){K.current=!1,ue(e,e.currentTarget.value),null===v||void 0===v||v(e)},className:a()(null===E||void 0===E?void 0:E.textarea),style:(0,d.A)((0,d.A)({},null===O||void 0===O?void 0:O.textarea),{},{resize:null===w||void 0===w?void 0:w.resize}),disabled:S,prefixCls:y,onResize:function(e){var t;null===A||void 0===A||A(e),null!==(t=Q())&&void 0!==t&&t.style.height&&G(!0)},ref:U,readOnly:M})))});const IB=AB,NB=e=>{const{componentCls:t,paddingLG:n}=e,o=`${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"},[o]:{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"}},[`\n &-allow-clear > ${t},\n &-affix-wrapper${o}-has-feedback ${t}\n `]:{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},[`${o}-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}}}}}},MB=qo(["Input","TextArea"],e=>{const t=Jn(e,Lk(e));return[NB(t)]},Fk,{resetFont:!1});var jB=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const PB=(0,o.forwardRef)((e,t)=>{var n;const{prefixCls:r,bordered:i=!0,size:l,disabled:c,status:s,allowClear:u,classNames:d,rootClassName:p,className:f,style:m,styles:g,variant:v,showCount:h,onMouseDown:b,onResize:y}=e,C=jB(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]);const{getPrefixCls:x,direction:$,allowClear:w,autoComplete:S,className:k,style:E,classNames:O,styles:A}=Se("textArea"),I=o.useContext(Ga),N=null!==c&&void 0!==c?c:I,{status:M,hasFeedback:j,feedbackIcon:P}=o.useContext(Ep),R=ch(M,s),T=o.useRef(null);o.useImperativeHandle(t,()=>{var e;return{resizableTextArea:null===(e=T.current)||void 0===e?void 0:e.resizableTextArea,focus:e=>{var t,n;NN(null===(n=null===(t=T.current)||void 0===t?void 0:t.resizableTextArea)||void 0===n?void 0:n.textArea,e)},blur:()=>{var e;return null===(e=T.current)||void 0===e?void 0:e.blur()}}});const z=x("input",r),B=Mi(z),[H,D,L]=xM(z,p),[F]=MB(z,B),{compactSize:W,compactItemClassnames:_}=mc(z,$),K=lc(e=>{var t;return null!==(t=null!==l&&void 0!==l?l:W)&&void 0!==t?t:e}),[q,V]=yh("textArea",v,i),X=PM(null!==u&&void 0!==u?u:w),[G,Y]=o.useState(!1),[U,Q]=o.useState(!1);return H(F(o.createElement(IB,Object.assign({autoComplete:S},C,{style:Object.assign(Object.assign({},E),m),styles:Object.assign(Object.assign({},A),g),disabled:N,allowClear:X,className:a()(L,B,f,p,_,k,U&&`${z}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},d),O),{textarea:a()({[`${z}-sm`]:"small"===K,[`${z}-lg`]:"large"===K},D,null===d||void 0===d?void 0:d.textarea,O.textarea,G&&`${z}-mouse-active`),variant:a()({[`${z}-${q}`]:V},lh(z,R)),affixWrapper:a()(`${z}-textarea-affix-wrapper`,{[`${z}-affix-wrapper-rtl`]:"rtl"===$,[`${z}-affix-wrapper-sm`]:"small"===K,[`${z}-affix-wrapper-lg`]:"large"===K,[`${z}-textarea-show-count`]:h||(null===(n=e.count)||void 0===n?void 0:n.show)},D)}),prefixCls:z,suffix:j&&o.createElement("span",{className:`${z}-textarea-suffix`},P),showCount:h,ref:T,onResize:e=>{var t,n;if(null===y||void 0===y||y(e),G&&"function"===typeof getComputedStyle){const e=null===(n=null===(t=T.current)||void 0===t?void 0:t.nativeElement)||void 0===n?void 0:n.querySelector("textarea");e&&"both"===getComputedStyle(e).resize&&Q(!0)}},onMouseDown:e=>{Y(!0),null===b||void 0===b||b(e);const t=()=>{Y(!1),document.removeEventListener("mouseup",t)};document.addEventListener("mouseup",t)}}))))}),RB=PB,TB=BM;TB.Group=eB,TB.Search=yB,TB.TextArea=RB,TB.Password=vB,TB.OTP=uB;const zB=TB;var BB=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};function HB(e){let{suffixCls:t,tagName:n,displayName:r}=e;return e=>o.forwardRef((r,i)=>o.createElement(e,Object.assign({ref:i,suffixCls:t,tagName:n},r)))}const DB=o.forwardRef((e,t)=>{const{prefixCls:n,suffixCls:r,className:i,tagName:l}=e,c=BB(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:s}=o.useContext(xe),u=s("layout",n),[d,p,f]=Dx(u),m=r?`${u}-${r}`:u;return d(o.createElement(l,Object.assign({className:a()(n||m,i,p,f),ref:t},c)))}),LB=o.forwardRef((e,t)=>{const{direction:n}=o.useContext(xe),[r,i]=o.useState([]),{prefixCls:l,className:c,rootClassName:u,children:d,hasSider:p,tagName:f,style:m}=e,g=Ul(BB(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),["suffixCls"]),{getPrefixCls:v,className:h,style:b}=Se("layout"),y=v("layout",l),C=function(e,t,n){return"boolean"===typeof n?n:!!e.length||s(t).some(e=>e.type===Xx)}(r,d,p),[x,$,w]=Dx(y),S=a()(y,{[`${y}-has-sider`]:C,[`${y}-rtl`]:"rtl"===n},h,c,u,$,w),k=o.useMemo(()=>({siderHook:{addSider:e=>{i(t=>[].concat(se(t),[e]))},removeSider:e=>{i(t=>t.filter(t=>t!==e))}}}),[]);return x(o.createElement(Tx.Provider,{value:k},o.createElement(f,Object.assign({ref:t,className:S,style:Object.assign(Object.assign({},b),m)},g),d)))}),FB=HB({tagName:"div",displayName:"Layout"})(LB),WB=HB({suffixCls:"header",tagName:"header",displayName:"Header"})(DB),_B=HB({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(DB),KB=HB({suffixCls:"content",tagName:"main",displayName:"Content"})(DB),qB=FB;qB.Header=WB,qB.Footer=_B,qB.Content=KB,qB.Sider=Xx,qB._InternalSiderContext=Kx;const VB=qB;var XB=n(90230),GB=n(81953);const YB={items_per_page:"\u6761/\u9875",jump_to:"\u8df3\u81f3",jump_to_confirm:"\u786e\u5b9a",page:"\u9875",prev_page:"\u4e0a\u4e00\u9875",next_page:"\u4e0b\u4e00\u9875",prev_5:"\u5411\u524d 5 \u9875",next_5:"\u5411\u540e 5 \u9875",prev_3:"\u5411\u524d 3 \u9875",next_3:"\u5411\u540e 3 \u9875",page_size:"\u9875\u7801"};var UB=[10,20,50,100];const QB=function(e){var t=e.pageSizeOptions,n=void 0===t?UB:t,o=e.locale,i=e.changeSize,a=e.pageSize,l=e.goButton,c=e.quickGo,s=e.rootPrefixCls,u=e.disabled,d=e.buildOptionText,p=e.showSizeChanger,f=e.sizeChangerRender,m=r().useState(""),g=(0,ke.A)(m,2),v=g[0],h=g[1],b=function(){return!v||Number.isNaN(v)?void 0:Number(v)},y="function"===typeof d?d:function(e){return"".concat(e," ").concat(o.items_per_page)},C=function(e){""!==v&&(e.keyCode!==Xi.ENTER&&"click"!==e.type||(h(""),null===c||void 0===c||c(b())))},x="".concat(s,"-options");if(!p&&!c)return null;var $=null,w=null,S=null;return p&&f&&($=f({disabled:u,size:a,onSizeChange:function(e){null===i||void 0===i||i(Number(e))},"aria-label":o.page_size,className:"".concat(x,"-size-changer"),options:(n.some(function(e){return e.toString()===a.toString()})?n:n.concat([a]).sort(function(e,t){return(Number.isNaN(Number(e))?0:Number(e))-(Number.isNaN(Number(t))?0:Number(t))})).map(function(e){return{label:y(e),value:e}})})),c&&(l&&(S="boolean"===typeof l?r().createElement("button",{type:"button",onClick:C,onKeyUp:C,disabled:u,className:"".concat(x,"-quick-jumper-button")},o.jump_to_confirm):r().createElement("span",{onClick:C,onKeyUp:C},l)),w=r().createElement("div",{className:"".concat(x,"-quick-jumper")},o.jump_to,r().createElement("input",{disabled:u,type:"text",value:v,onChange:function(e){h(e.target.value)},onKeyUp:C,onBlur:function(e){l||""===v||(h(""),e.relatedTarget&&(e.relatedTarget.className.indexOf("".concat(s,"-item-link"))>=0||e.relatedTarget.className.indexOf("".concat(s,"-item"))>=0)||null===c||void 0===c||c(b()))},"aria-label":o.page}),o.page,S)),r().createElement("li",{className:x},$,w)};const ZB=function(e){var t=e.rootPrefixCls,n=e.page,o=e.active,i=e.className,l=e.showTitle,c=e.onClick,s=e.onKeyPress,u=e.itemRender,d="".concat(t,"-item"),p=a()(d,"".concat(d,"-").concat(n),(0,Ee.A)((0,Ee.A)({},"".concat(d,"-active"),o),"".concat(d,"-disabled"),!n),i),f=u(n,"page",r().createElement("a",{rel:"nofollow"},n));return f?r().createElement("li",{title:l?String(n):null,className:p,onClick:function(){c(n)},onKeyDown:function(e){s(e,c,n)},tabIndex:0},f):null};var JB=function(e,t,n){return n};function eH(){}function tH(e){var t=Number(e);return"number"===typeof t&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function nH(e,t,n){var o="undefined"===typeof e?t:e;return Math.floor((n-1)/o)+1}const oH=function(e){var t=e.prefixCls,n=void 0===t?"rc-pagination":t,i=e.selectPrefixCls,c=void 0===i?"rc-select":i,s=e.className,u=e.current,f=e.defaultCurrent,m=void 0===f?1:f,g=e.total,v=void 0===g?0:g,h=e.pageSize,b=e.defaultPageSize,y=void 0===b?10:b,C=e.onChange,x=void 0===C?eH:C,$=e.hideOnSinglePage,w=e.align,S=e.showPrevNextJumpers,k=void 0===S||S,E=e.showQuickJumper,O=e.showLessItems,A=e.showTitle,I=void 0===A||A,N=e.onShowSizeChange,M=void 0===N?eH:N,j=e.locale,P=void 0===j?YB:j,R=e.style,T=e.totalBoundaryShowSizeChanger,z=void 0===T?50:T,B=e.disabled,H=e.simple,D=e.showTotal,L=e.showSizeChanger,F=void 0===L?v>z:L,W=e.sizeChangerRender,_=e.pageSizeOptions,K=e.itemRender,q=void 0===K?JB:K,V=e.jumpPrevIcon,X=e.jumpNextIcon,G=e.prevIcon,Y=e.nextIcon,U=r().useRef(null),Q=Ln(10,{value:h,defaultValue:y}),Z=(0,ke.A)(Q,2),J=Z[0],ee=Z[1],te=Ln(1,{value:u,defaultValue:m,postState:function(e){return Math.max(1,Math.min(e,nH(void 0,J,v)))}}),ne=(0,ke.A)(te,2),oe=ne[0],re=ne[1],ie=r().useState(oe),ae=(0,ke.A)(ie,2),le=ae[0],ce=ae[1];(0,o.useEffect)(function(){ce(oe)},[oe]);var se=Math.max(1,oe-(O?3:5)),ue=Math.min(nH(void 0,J,v),oe+(O?3:5));function de(t,o){var i=t||r().createElement("button",{type:"button","aria-label":o,className:"".concat(n,"-item-link")});return"function"===typeof t&&(i=r().createElement(t,(0,d.A)({},e))),i}function pe(e){var t=e.target.value,n=nH(void 0,J,v);return""===t?t:Number.isNaN(Number(t))?le:t>=n?n:Number(t)}var fe=v>J&&E;function me(e){var t=pe(e);switch(t!==le&&ce(t),e.keyCode){case Xi.ENTER:ge(t);break;case Xi.UP:ge(t-1);break;case Xi.DOWN:ge(t+1)}}function ge(e){if(function(e){return tH(e)&&e!==oe&&tH(v)&&v>0}(e)&&!B){var t=nH(void 0,J,v),n=e;return e>t?n=t:e<1&&(n=1),n!==le&&ce(n),re(n),null===x||void 0===x||x(n,J),n}return oe}var ve=oe>1,he=oe<nH(void 0,J,v);function be(){ve&&ge(oe-1)}function ye(){he&&ge(oe+1)}function Ce(){ge(se)}function xe(){ge(ue)}function $e(e,t){if("Enter"===e.key||e.charCode===Xi.ENTER||e.keyCode===Xi.ENTER){for(var n=arguments.length,o=new Array(n>2?n-2:0),r=2;r<n;r++)o[r-2]=arguments[r];t.apply(void 0,o)}}function we(e){"click"!==e.type&&e.keyCode!==Xi.ENTER||ge(le)}var Se=null,Oe=ni(e,{aria:!0,data:!0}),Ae=D&&r().createElement("li",{className:"".concat(n,"-total-text")},D(v,[0===v?0:(oe-1)*J+1,oe*J>v?v:oe*J])),Ie=null,Ne=nH(void 0,J,v);if($&&v<=J)return null;var Me=[],je={rootPrefixCls:n,onClick:ge,onKeyPress:$e,showTitle:I,itemRender:q,page:-1},Pe=oe-1>0?oe-1:0,Re=oe+1<Ne?oe+1:Ne,Te=E&&E.goButton,ze="object"===(0,p.A)(H)?H.readOnly:!H,Be=Te,He=null;H&&(Te&&(Be="boolean"===typeof Te?r().createElement("button",{type:"button",onClick:we,onKeyUp:we},P.jump_to_confirm):r().createElement("span",{onClick:we,onKeyUp:we},Te),Be=r().createElement("li",{title:I?"".concat(P.jump_to).concat(oe,"/").concat(Ne):null,className:"".concat(n,"-simple-pager")},Be)),He=r().createElement("li",{title:I?"".concat(oe,"/").concat(Ne):null,className:"".concat(n,"-simple-pager")},ze?le:r().createElement("input",{type:"text","aria-label":P.jump_to,value:le,disabled:B,onKeyDown:function(e){e.keyCode!==Xi.UP&&e.keyCode!==Xi.DOWN||e.preventDefault()},onKeyUp:me,onChange:me,onBlur:function(e){ge(pe(e))},size:3}),r().createElement("span",{className:"".concat(n,"-slash")},"/"),Ne));var De=O?1:2;if(Ne<=3+2*De){Ne||Me.push(r().createElement(ZB,(0,l.A)({},je,{key:"noPager",page:1,className:"".concat(n,"-item-disabled")})));for(var Le=1;Le<=Ne;Le+=1)Me.push(r().createElement(ZB,(0,l.A)({},je,{key:Le,page:Le,active:oe===Le})))}else{var Fe=O?P.prev_3:P.prev_5,We=O?P.next_3:P.next_5,_e=q(se,"jump-prev",de(V,"prev page")),Ke=q(ue,"jump-next",de(X,"next page"));k&&(Se=_e?r().createElement("li",{title:I?Fe:null,key:"prev",onClick:Ce,tabIndex:0,onKeyDown:function(e){$e(e,Ce)},className:a()("".concat(n,"-jump-prev"),(0,Ee.A)({},"".concat(n,"-jump-prev-custom-icon"),!!V))},_e):null,Ie=Ke?r().createElement("li",{title:I?We:null,key:"next",onClick:xe,tabIndex:0,onKeyDown:function(e){$e(e,xe)},className:a()("".concat(n,"-jump-next"),(0,Ee.A)({},"".concat(n,"-jump-next-custom-icon"),!!X))},Ke):null);var qe=Math.max(1,oe-De),Ve=Math.min(oe+De,Ne);oe-1<=De&&(Ve=1+2*De),Ne-oe<=De&&(qe=Ne-2*De);for(var Xe=qe;Xe<=Ve;Xe+=1)Me.push(r().createElement(ZB,(0,l.A)({},je,{key:Xe,page:Xe,active:oe===Xe})));if(oe-1>=2*De&&3!==oe&&(Me[0]=r().cloneElement(Me[0],{className:a()("".concat(n,"-item-after-jump-prev"),Me[0].props.className)}),Me.unshift(Se)),Ne-oe>=2*De&&oe!==Ne-2){var Ge=Me[Me.length-1];Me[Me.length-1]=r().cloneElement(Ge,{className:a()("".concat(n,"-item-before-jump-next"),Ge.props.className)}),Me.push(Ie)}1!==qe&&Me.unshift(r().createElement(ZB,(0,l.A)({},je,{key:1,page:1}))),Ve!==Ne&&Me.push(r().createElement(ZB,(0,l.A)({},je,{key:Ne,page:Ne})))}var Ye=function(e){var t=q(e,"prev",de(G,"prev page"));return r().isValidElement(t)?r().cloneElement(t,{disabled:!ve}):t}(Pe);if(Ye){var Ue=!ve||!Ne;Ye=r().createElement("li",{title:I?P.prev_page:null,onClick:be,tabIndex:Ue?null:0,onKeyDown:function(e){$e(e,be)},className:a()("".concat(n,"-prev"),(0,Ee.A)({},"".concat(n,"-disabled"),Ue)),"aria-disabled":Ue},Ye)}var Qe,Ze,Je=function(e){var t=q(e,"next",de(Y,"next page"));return r().isValidElement(t)?r().cloneElement(t,{disabled:!he}):t}(Re);Je&&(H?(Qe=!he,Ze=ve?0:null):Ze=(Qe=!he||!Ne)?null:0,Je=r().createElement("li",{title:I?P.next_page:null,onClick:ye,tabIndex:Ze,onKeyDown:function(e){$e(e,ye)},className:a()("".concat(n,"-next"),(0,Ee.A)({},"".concat(n,"-disabled"),Qe)),"aria-disabled":Qe},Je));var et=a()(n,s,(0,Ee.A)((0,Ee.A)((0,Ee.A)((0,Ee.A)((0,Ee.A)({},"".concat(n,"-start"),"start"===w),"".concat(n,"-center"),"center"===w),"".concat(n,"-end"),"end"===w),"".concat(n,"-simple"),H),"".concat(n,"-disabled"),B));return r().createElement("ul",(0,l.A)({className:et,style:R,ref:U},Oe),Ae,Ye,H?He:Me,Je,r().createElement(QB,{locale:P,rootPrefixCls:n,disabled:B,selectPrefixCls:c,changeSize:function(e){var t=nH(e,J,v),n=oe>t&&0!==t?t:oe;ee(e),ce(n),null===M||void 0===M||M(oe,e),re(n),null===x||void 0===x||x(n,e)},pageSize:J,pageSizeOptions:_,quickGo:fe?ge:null,goButton:Be,showSizeChanger:F,sizeChangerRender:W}))},rH=e=>{const{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}}},[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{[`&${t}-disabled ${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},iH=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:nt(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:nt(e.calc(e.itemSizeSM).sub(2).equal())},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:nt(e.itemSizeSM)},[`&${t}-mini:not(${t}-disabled)`]:{[`${t}-prev, ${t}-next`]:{[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}}},[`\n &${t}-mini ${t}-prev ${t}-item-link,\n &${t}-mini ${t}-next ${t}-item-link\n `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:nt(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:nt(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:nt(e.itemSizeSM),input:Object.assign(Object.assign({},pM(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},aH=e=>{const{componentCls:t}=e;return{[`\n &${t}-simple ${t}-prev,\n &${t}-simple ${t}-next\n `]:{height:e.itemSizeSM,lineHeight:nt(e.itemSizeSM),verticalAlign:"top",[`${t}-item-link`]:{height:e.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.itemSizeSM,lineHeight:nt(e.itemSizeSM)}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.itemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",padding:`0 ${nt(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${nt(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:`${nt(e.inputOutlineOffset)} 0 ${nt(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},lH=e=>{const{componentCls:t}=e;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}}},[`\n ${t}-prev,\n ${t}-jump-prev,\n ${t}-jump-next\n `]:{marginInlineEnd:e.marginXS},[`\n ${t}-prev,\n ${t}-next,\n ${t}-jump-prev,\n ${t}-jump-next\n `]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:nt(e.itemSize),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:`${nt(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":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:nt(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},fM(e)),UN(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":Object.assign({},YN(e)),width:e.calc(e.controlHeightLG).mul(1.25).equal(),height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},cH=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:nt(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:e.itemBg,border:`${nt(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${nt(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.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}}}},sH=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},po(e)),{display:"flex","&-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:e.itemSize,marginInlineEnd:e.marginXS,lineHeight:nt(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),cH(e)),lH(e)),aH(e)),iH(e)),rH(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"}}},uH=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},mo(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},fo(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Object.assign({},fo(e))}}}},dH=e=>Object.assign({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0},Fk(e)),pH=e=>Jn(e,{inputOutlineOffset:0,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"},Lk(e)),fH=qo("Pagination",e=>{const t=pH(e);return[sH(t),uH(t)]},dH),mH=e=>{const{componentCls:t}=e;return{[`${t}${t}-bordered${t}-disabled:not(${t}-mini)`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}${t}-bordered:not(${t}-mini)`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${nt(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}}}}},gH=Xo(["Pagination","bordered"],e=>{const t=pH(e);return[mH(t)]},dH);function vH(e){return(0,o.useMemo)(()=>"boolean"===typeof e?[e,{}]:e&&"object"===typeof e?[!0,e]:[void 0,void 0],[e])}var hH=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const bH=e=>{const{align:t,prefixCls:n,selectPrefixCls:r,className:i,rootClassName:l,style:c,size:s,locale:u,responsive:d,showSizeChanger:p,selectComponentClass:f,pageSizeOptions:m}=e,g=hH(e,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","responsive","showSizeChanger","selectComponentClass","pageSizeOptions"]),{xs:v}=Pb(d),[,h]=Ko(),{getPrefixCls:b,direction:y,showSizeChanger:C,className:x,style:$}=Se("pagination"),w=b("pagination",n),[S,k,E]=fH(w),O=lc(s),A="small"===O||!(!v||O||!d),[I]=Yl("Pagination",Ma),N=Object.assign(Object.assign({},I),u),[M,j]=vH(p),[P,R]=vH(C),T=null!==M&&void 0!==M?M:P,z=null!==j&&void 0!==j?j:R,B=f||yb,H=o.useMemo(()=>m?m.map(e=>Number(e)):void 0,[m]);const D=o.useMemo(()=>{const e=o.createElement("span",{className:`${w}-item-ellipsis`},"\u2022\u2022\u2022");return{prevIcon:o.createElement("button",{className:`${w}-item-link`,type:"button",tabIndex:-1},"rtl"===y?o.createElement(ss.A,null):o.createElement(iC.A,null)),nextIcon:o.createElement("button",{className:`${w}-item-link`,type:"button",tabIndex:-1},"rtl"===y?o.createElement(iC.A,null):o.createElement(ss.A,null)),jumpPrevIcon:o.createElement("a",{className:`${w}-item-link`},o.createElement("div",{className:`${w}-item-container`},"rtl"===y?o.createElement(GB.A,{className:`${w}-item-link-icon`}):o.createElement(XB.A,{className:`${w}-item-link-icon`}),e)),jumpNextIcon:o.createElement("a",{className:`${w}-item-link`},o.createElement("div",{className:`${w}-item-container`},"rtl"===y?o.createElement(XB.A,{className:`${w}-item-link-icon`}):o.createElement(GB.A,{className:`${w}-item-link-icon`}),e))}},[y,w]),L=b("select",r),F=a()({[`${w}-${t}`]:!!t,[`${w}-mini`]:A,[`${w}-rtl`]:"rtl"===y,[`${w}-bordered`]:h.wireframe},x,i,l,k,E),W=Object.assign(Object.assign({},$),c);return S(o.createElement(o.Fragment,null,h.wireframe&&o.createElement(gH,{prefixCls:w}),o.createElement(oH,Object.assign({},D,g,{style:W,prefixCls:w,selectPrefixCls:L,className:F,locale:N,pageSizeOptions:H,showSizeChanger:T,sizeChangerRender:e=>{var t;const{disabled:n,size:r,onSizeChange:i,"aria-label":l,className:c,options:s}=e,{className:u,onChange:d}=z||{},p=null===(t=s.find(e=>String(e.value)===String(r)))||void 0===t?void 0:t.value;return o.createElement(B,Object.assign({disabled:n,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:e=>e.parentNode,"aria-label":l,options:s},z,{value:p,onChange:(e,t)=>{null===i||void 0===i||i(e),null===d||void 0===d||d(e,t)},size:A?"small":"middle",className:a()(c,u)}))}}))))},yH=bH,CH=80*Math.PI,xH=e=>{const{dotClassName:t,style:n,hasCircleCls:r}=e;return o.createElement("circle",{className:a()(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:40,cx:50,cy:50,strokeWidth:20,style:n})},$H=e=>{let{percent:t,prefixCls:n}=e;const r=`${n}-dot`,i=`${r}-holder`,l=`${i}-hidden`,[c,s]=o.useState(!1);ut(()=>{0!==t&&s(!0)},[0!==t]);const u=Math.max(Math.min(t,100),0);if(!c)return null;const d={strokeDashoffset:""+CH/4,strokeDasharray:`${CH*u/100} ${CH*(100-u)/100}`};return o.createElement("span",{className:a()(i,`${r}-progress`,u<=0&&l)},o.createElement("svg",{viewBox:"0 0 100 100",role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":u},o.createElement(xH,{dotClassName:r,hasCircleCls:!0}),o.createElement(xH,{dotClassName:r,style:d})))};function wH(e){const{prefixCls:t,percent:n=0}=e,r=`${t}-dot`,i=`${r}-holder`,l=`${i}-hidden`;return o.createElement(o.Fragment,null,o.createElement("span",{className:a()(i,n>0&&l)},o.createElement("span",{className:a()(r,`${t}-dot-spin`)},[1,2,3,4].map(e=>o.createElement("i",{className:`${t}-dot-item`,key:e})))),o.createElement($H,{prefixCls:t,percent:n}))}function SH(e){var t;const{prefixCls:n,indicator:r,percent:i}=e,l=`${n}-dot`;return r&&o.isValidElement(r)?ii(r,{className:a()(null===(t=r.props)||void 0===t?void 0:t.className,l),percent:i}):o.createElement(wH,{prefixCls:n,percent:i})}const kH=new En("antSpinMove",{to:{opacity:1}}),EH=new En("antRotate",{to:{transform:"rotate(405deg)"}}),OH=e=>{const{componentCls:t,calc:n}=e;return{[t]:Object.assign(Object.assign({},po(e)),{position:"absolute",display:"none",color:e.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"relative",display:"inline-block",opacity:1},[`${t}-text`]:{fontSize:e.fontSize,paddingTop:n(n(e.dotSize).sub(e.fontSize)).div(2).add(2).equal()},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",opacity:0,visibility:"hidden",transition:`all ${e.motionDurationMid}`,"&-show":{opacity:1,visibility:"visible"},[t]:{[`${t}-dot-holder`]:{color:e.colorWhite},[`${t}-text`]:{color:e.colorTextLightSolid}}},"&-nested-loading":{position:"relative",[`> div > ${t}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${t}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:n(e.dotSize).mul(-1).div(2).equal()},[`${t}-text`]:{position:"absolute",top:"50%",width:"100%",textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{[`${t}-dot`]:{margin:n(e.dotSizeSM).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeSM).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{[`${t}-dot`]:{margin:n(e.dotSizeLG).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeLG).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},[`${t}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${t}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${t}-dot-holder`]:{width:"1em",height:"1em",fontSize:e.dotSize,display:"inline-block",transition:`transform ${e.motionDurationSlow} ease, opacity ${e.motionDurationSlow} ease`,transformOrigin:"50% 50%",lineHeight:1,color:e.colorPrimary,"&-hidden":{transform:"scale(0.3)",opacity:0}},[`${t}-dot-progress`]:{position:"absolute",inset:0},[`${t}-dot`]:{position:"relative",display:"inline-block",fontSize:e.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),height:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),background:"currentColor",borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:kH,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:"0s"},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:EH,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"},"&-circle":{strokeLinecap:"round",transition:["stroke-dashoffset","stroke-dasharray","stroke","stroke-width","opacity"].map(t=>`${t} ${e.motionDurationSlow} ease`).join(","),fillOpacity:0,stroke:"currentcolor"},"&-circle-bg":{stroke:e.colorFillSecondary}},[`&-sm ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeSM}},[`&-sm ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal(),height:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal()}},[`&-lg ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeLG}},[`&-lg ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal(),height:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal()}},[`&${t}-show-text ${t}-text`]:{display:"block"}})}},AH=qo("Spin",e=>{const t=Jn(e,{spinDotDefault:e.colorTextDescription});return[OH(t)]},e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:.35*t,dotSizeLG:n}}),IH=[[30,.05],[70,.03],[96,.01]];var NH=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};let MH;const jH=e=>{var t;const{prefixCls:n,spinning:r=!0,delay:i=0,className:l,rootClassName:c,size:s="default",tip:u,wrapperClassName:d,style:p,children:f,fullscreen:m=!1,indicator:g,percent:v}=e,h=NH(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen","indicator","percent"]),{getPrefixCls:b,direction:y,className:C,style:x,indicator:$}=Se("spin"),w=b("spin",n),[S,k,E]=AH(w),[O,A]=o.useState(()=>r&&!function(e,t){return!!e&&!!t&&!Number.isNaN(Number(t))}(r,i)),I=function(e,t){const[n,r]=o.useState(0),i=o.useRef(null),a="auto"===t;return o.useEffect(()=>(a&&e&&(r(0),i.current=setInterval(()=>{r(e=>{const t=100-e;for(let n=0;n<IH.length;n+=1){const[o,r]=IH[n];if(e<=o)return e+t*r}return e})},200)),()=>{clearInterval(i.current)}),[a,e]),a?n:t}(O,v);o.useEffect(()=>{if(r){const e=dO(i,()=>{A(!0)});return e(),()=>{var t;null===(t=null===e||void 0===e?void 0:e.cancel)||void 0===t||t.call(e)}}A(!1)},[i,r]);const N=o.useMemo(()=>"undefined"!==typeof f&&!m,[f,m]);const M=a()(w,C,{[`${w}-sm`]:"small"===s,[`${w}-lg`]:"large"===s,[`${w}-spinning`]:O,[`${w}-show-text`]:!!u,[`${w}-rtl`]:"rtl"===y},l,!m&&c,k,E),j=a()(`${w}-container`,{[`${w}-blur`]:O}),P=null!==(t=null!==g&&void 0!==g?g:$)&&void 0!==t?t:MH,R=Object.assign(Object.assign({},x),p),T=o.createElement("div",Object.assign({},h,{style:R,className:M,"aria-live":"polite","aria-busy":O}),o.createElement(SH,{prefixCls:w,indicator:P,percent:I}),u&&(N||m)?o.createElement("div",{className:`${w}-text`},u):null);return S(N?o.createElement("div",Object.assign({},h,{className:a()(`${w}-nested-loading`,d,k,E)}),O&&o.createElement("div",{key:"loading"},T),o.createElement("div",{className:j,key:"container"},f)):m?o.createElement("div",{className:a()(`${w}-fullscreen`,{[`${w}-fullscreen-show`]:O},c,k,E)},T):T)};jH.setDefaultIndicator=e=>{MH=e};const PH=jH,RH=r().createContext({});RH.Consumer;var TH=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const zH=r().forwardRef((e,t)=>{const{prefixCls:n,children:i,actions:l,extra:c,styles:s,className:u,classNames:d,colStyle:p}=e,f=TH(e,["prefixCls","children","actions","extra","styles","className","classNames","colStyle"]),{grid:m,itemLayout:g}=(0,o.useContext)(RH),{getPrefixCls:v,list:h}=(0,o.useContext)(xe),b=e=>{var t,n;return a()(null===(n=null===(t=null===h||void 0===h?void 0:h.item)||void 0===t?void 0:t.classNames)||void 0===n?void 0:n[e],null===d||void 0===d?void 0:d[e])},y=e=>{var t,n;return Object.assign(Object.assign({},null===(n=null===(t=null===h||void 0===h?void 0:h.item)||void 0===t?void 0:t.styles)||void 0===n?void 0:n[e]),null===s||void 0===s?void 0:s[e])},C=v("list",n),x=l&&l.length>0&&r().createElement("ul",{className:a()(`${C}-item-action`,b("actions")),key:"actions",style:y("actions")},l.map((e,t)=>r().createElement("li",{key:`${C}-item-action-${t}`},e,t!==l.length-1&&r().createElement("em",{className:`${C}-item-action-split`})))),$=m?"div":"li",w=r().createElement($,Object.assign({},f,m?{}:{ref:t},{className:a()(`${C}-item`,{[`${C}-item-no-flex`]:!("vertical"===g?c:!(()=>{let e=!1;return o.Children.forEach(i,t=>{"string"===typeof t&&(e=!0)}),e&&o.Children.count(i)>1})())},u)}),"vertical"===g&&c?[r().createElement("div",{className:`${C}-item-main`,key:"content"},i,x),r().createElement("div",{className:a()(`${C}-item-extra`,b("extra")),key:"extra",style:y("extra")},c)]:[i,x,ii(c,{key:"extra"})]);return m?r().createElement(DI,{ref:t,flex:1,style:p},w):w}),BH=zH;BH.Meta=e=>{var{prefixCls:t,className:n,avatar:i,title:l,description:c}=e,s=TH(e,["prefixCls","className","avatar","title","description"]);const{getPrefixCls:u}=(0,o.useContext)(xe),d=u("list",t),p=a()(`${d}-item-meta`,n),f=r().createElement("div",{className:`${d}-item-meta-content`},l&&r().createElement("h4",{className:`${d}-item-meta-title`},l),c&&r().createElement("div",{className:`${d}-item-meta-description`},c));return r().createElement("div",Object.assign({},s,{className:p}),i&&r().createElement("div",{className:`${d}-item-meta-avatar`},i),(l||c)&&f)};const HH=BH,DH=e=>{const{listBorderedCls:t,componentCls:n,paddingLG:o,margin:r,itemPaddingSM:i,itemPaddingLG:a,marginLG:l,borderRadiusLG:c}=e;return{[t]:{border:`${nt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:c,[`${n}-header,${n}-footer,${n}-item`]:{paddingInline:o},[`${n}-pagination`]:{margin:`${nt(r)} ${nt(l)}`}},[`${t}${n}-sm`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:i}},[`${t}${n}-lg`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:a}}}},LH=e=>{const{componentCls:t,screenSM:n,screenMD:o,marginLG:r,marginSM:i,margin:a}=e;return{[`@media screen and (max-width:${o}px)`]:{[t]:{[`${t}-item`]:{[`${t}-item-action`]:{marginInlineStart:r}}},[`${t}-vertical`]:{[`${t}-item`]:{[`${t}-item-extra`]:{marginInlineStart:r}}}},[`@media screen and (max-width: ${n}px)`]:{[t]:{[`${t}-item`]:{flexWrap:"wrap",[`${t}-action`]:{marginInlineStart:i}}},[`${t}-vertical`]:{[`${t}-item`]:{flexWrap:"wrap-reverse",[`${t}-item-main`]:{minWidth:e.contentWidth},[`${t}-item-extra`]:{margin:`auto auto ${nt(a)}`}}}}}},FH=e=>{const{componentCls:t,antCls:n,controlHeight:o,minHeight:r,paddingSM:i,marginLG:a,padding:l,itemPadding:c,colorPrimary:s,itemPaddingSM:u,itemPaddingLG:d,paddingXS:p,margin:f,colorText:m,colorTextDescription:g,motionDurationSlow:v,lineWidth:h,headerBg:b,footerBg:y,emptyTextPadding:C,metaMarginBottom:x,avatarMarginRight:$,titleMarginBottom:w,descriptionFontSize:S}=e;return{[t]:Object.assign(Object.assign({},po(e)),{position:"relative","--rc-virtual-list-scrollbar-bg":e.colorSplit,"*":{outline:"none"},[`${t}-header`]:{background:b},[`${t}-footer`]:{background:y},[`${t}-header, ${t}-footer`]:{paddingBlock:i},[`${t}-pagination`]:{marginBlockStart:a,[`${n}-pagination-options`]:{textAlign:"start"}},[`${t}-spin`]:{minHeight:r,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:$},[`${t}-item-meta-content`]:{flex:"1 0",width:0,color:m},[`${t}-item-meta-title`]:{margin:`0 0 ${nt(e.marginXXS)} 0`,color:m,fontSize:e.fontSize,lineHeight:e.lineHeight,"> a":{color:m,transition:`all ${v}`,"&:hover":{color:s}}},[`${t}-item-meta-description`]:{color:g,fontSize:S,lineHeight:e.lineHeight}},[`${t}-item-action`]:{flex:"0 0 auto",marginInlineStart:e.marginXXL,padding:0,fontSize:0,listStyle:"none","& > li":{position:"relative",display:"inline-block",padding:`0 ${nt(p)}`,color:g,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"center","&:first-child":{paddingInlineStart:0}},[`${t}-item-action-split`]:{position:"absolute",insetBlockStart:"50%",insetInlineEnd:0,width:h,height:e.calc(e.fontHeight).sub(e.calc(e.marginXXS).mul(2)).equal(),transform:"translateY(-50%)",backgroundColor:e.colorSplit}}},[`${t}-empty`]:{padding:`${nt(l)} 0`,color:g,fontSize:e.fontSizeSM,textAlign:"center"},[`${t}-empty-text`]:{padding:C,color:e.colorTextDisabled,fontSize:e.fontSize,textAlign:"center"},[`${t}-item-no-flex`]:{display:"block"}}),[`${t}-grid ${n}-col > ${t}-item`]:{display:"block",maxWidth:"100%",marginBlockEnd:f,paddingBlock:0,borderBlockEnd:"none"},[`${t}-vertical ${t}-item`]:{alignItems:"initial",[`${t}-item-main`]:{display:"block",flex:1},[`${t}-item-extra`]:{marginInlineStart:a},[`${t}-item-meta`]:{marginBlockEnd:x,[`${t}-item-meta-title`]:{marginBlockStart:0,marginBlockEnd:w,color:m,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}},[`${t}-item-action`]:{marginBlockStart:l,marginInlineStart:"auto","> li":{padding:`0 ${nt(l)}`,"&:first-child":{paddingInlineStart:0}}}},[`${t}-split ${t}-item`]:{borderBlockEnd:`${nt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBlockEnd:"none"}},[`${t}-split ${t}-header`]:{borderBlockEnd:`${nt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-split${t}-empty ${t}-footer`]:{borderTop:`${nt(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-loading ${t}-spin-nested-loading`]:{minHeight:o},[`${t}-split${t}-something-after-last-item ${n}-spin-container > ${t}-items > ${t}-item:last-child`]:{borderBlockEnd:`${nt(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"}}}}},WH=qo("List",e=>{const t=Jn(e,{listBorderedCls:`${e.componentCls}-bordered`,minHeight:e.controlHeightLG});return[FH(t),DH(t),LH(t)]},e=>({contentWidth:220,itemPadding:`${nt(e.paddingContentVertical)} 0`,itemPaddingSM:`${nt(e.paddingContentVerticalSM)} ${nt(e.paddingContentHorizontal)}`,itemPaddingLG:`${nt(e.paddingContentVerticalLG)} ${nt(e.paddingContentHorizontalLG)}`,headerBg:"transparent",footerBg:"transparent",emptyTextPadding:e.padding,metaMarginBottom:e.padding,avatarMarginRight:e.padding,titleMarginBottom:e.paddingSM,descriptionFontSize:e.fontSize}));var _H=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const KH=o.forwardRef(function(e,t){const{pagination:n=!1,prefixCls:r,bordered:i=!1,split:l=!0,className:c,rootClassName:s,style:u,children:d,itemLayout:p,loadMore:f,grid:m,dataSource:g=[],size:v,header:h,footer:b,loading:y=!1,rowKey:C,renderItem:x,locale:$}=e,w=_H(e,["pagination","prefixCls","bordered","split","className","rootClassName","style","children","itemLayout","loadMore","grid","dataSource","size","header","footer","loading","rowKey","renderItem","locale"]),S=n&&"object"===typeof n?n:{},[k,E]=o.useState(S.defaultCurrent||1),[O,A]=o.useState(S.defaultPageSize||10),{getPrefixCls:I,direction:N,className:M,style:j}=Se("list"),{renderEmpty:P}=o.useContext(xe),R=e=>(t,o)=>{var r;E(t),A(o),n&&(null===(r=null===n||void 0===n?void 0:n[e])||void 0===r||r.call(n,t,o))},T=R("onChange"),z=R("onShowSizeChange"),B=(e,t)=>{if(!x)return null;let n;return n="function"===typeof C?C(e):C?e[C]:e.key,n||(n=`list-item-${t}`),o.createElement(o.Fragment,{key:n},x(e,t))},H=!!(f||n||b),D=I("list",r),[L,F,W]=WH(D);let _=y;"boolean"===typeof _&&(_={spinning:_});const K=!!(null===_||void 0===_?void 0:_.spinning);let q="";switch(lc(v)){case"large":q="lg";break;case"small":q="sm"}const V=a()(D,{[`${D}-vertical`]:"vertical"===p,[`${D}-${q}`]:q,[`${D}-split`]:l,[`${D}-bordered`]:i,[`${D}-loading`]:K,[`${D}-grid`]:!!m,[`${D}-something-after-last-item`]:H,[`${D}-rtl`]:"rtl"===N},M,c,s,F,W),X=Np({current:1,total:0,position:"bottom"},{total:g.length,current:k,pageSize:O},n||{}),G=Math.ceil(X.total/X.pageSize);X.current=Math.min(X.current,G);const Y=n&&o.createElement("div",{className:a()(`${D}-pagination`)},o.createElement(yH,Object.assign({align:"end"},X,{onChange:T,onShowSizeChange:z})));let U=se(g);n&&g.length>(X.current-1)*X.pageSize&&(U=se(g).splice((X.current-1)*X.pageSize,X.pageSize));const Q=Object.keys(m||{}).some(e=>["xs","sm","md","lg","xl","xxl"].includes(e)),Z=Pb(Q),J=o.useMemo(()=>{for(let e=0;e<Ib.length;e+=1){const t=Ib[e];if(Z[t])return t}},[Z]),ee=o.useMemo(()=>{if(!m)return;const e=J&&m[J]?m[J]:m.column;return e?{width:100/e+"%",maxWidth:100/e+"%"}:void 0},[JSON.stringify(m),J]);let te=K&&o.createElement("div",{style:{minHeight:53}});if(U.length>0){const e=U.map(B);te=m?o.createElement(VT,{gutter:m.gutter},o.Children.map(e,e=>o.createElement("div",{key:null===e||void 0===e?void 0:e.key,style:ee},e))):o.createElement("ul",{className:`${D}-items`},e)}else d||K||(te=o.createElement("div",{className:`${D}-empty-text`},(null===$||void 0===$?void 0:$.emptyText)||(null===P||void 0===P?void 0:P("List"))||o.createElement(bh,{componentName:"List"})));const ne=X.position,oe=o.useMemo(()=>({grid:m,itemLayout:p}),[JSON.stringify(m),p]);return L(o.createElement(RH.Provider,{value:oe},o.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},j),u),className:V},w),("top"===ne||"both"===ne)&&Y,h&&o.createElement("div",{className:`${D}-header`},h),o.createElement(PH,Object.assign({},_),te,d),b&&o.createElement("div",{className:`${D}-footer`},b),f||("bottom"===ne||"both"===ne)&&Y)))});const qH=KH;qH.Item=HH;const VH=qH;const XH=o.createContext(null);const GH=function(e){var t=o.useContext(XH),n=t.notFoundContent,r=t.activeIndex,i=t.setActiveIndex,a=t.selectOption,l=t.onFocus,c=t.onBlur,s=t.onScroll,u=e.prefixCls,d=e.options,p=d[r]||{};return o.createElement(Px,{prefixCls:"".concat(u,"-menu"),activeKey:p.key,onSelect:function(e){var t=e.key,n=d.find(function(e){return e.key===t});a(n)},onFocus:l,onBlur:c,onScroll:s},d.map(function(e,t){var n=e.key,r=e.disabled,a=e.className,l=e.style,c=e.label;return o.createElement(ax,{key:n,disabled:r,className:a,style:l,onMouseEnter:function(){i(t)}},c)}),!d.length&&o.createElement(ax,{disabled:!0},n))};var YH={bottomRight:{points:["tl","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomLeft:{points:["tr","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topRight:{points:["bl","tr"],offset:[0,-4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["br","tl"],offset:[0,-4],overflow:{adjustX:1,adjustY:1}}};const UH=function(e){var t=e.prefixCls,n=e.options,r=e.children,i=e.visible,a=e.transitionName,l=e.getPopupContainer,c=e.dropdownClassName,s=e.direction,u=e.placement,d="".concat(t,"-dropdown"),p=o.createElement(GH,{prefixCls:d,options:n}),f=(0,o.useMemo)(function(){return"rtl"===s?"top"===u?"topLeft":"bottomLeft":"top"===u?"topRight":"bottomRight"},[s,u]);return o.createElement(rv,{prefixCls:d,popupVisible:i,popup:p,popupPlacement:f,popupTransitionName:a,builtinPlacements:YH,getPopupContainer:l,popupClassName:c},r)};const QH=function(){return null};function ZH(e){return(e||"").toLowerCase()}function JH(e,t){var n=t.measureLocation,o=t.prefix,r=t.targetText,i=t.selectionStart,a=t.split,l=e.slice(0,n);l[l.length-a.length]===a&&(l=l.slice(0,l.length-a.length)),l&&(l="".concat(l).concat(a));var c=function(e,t,n){var o=e[0];if(!o||o===n)return e;for(var r=e,i=t.length,a=0;a<i;a+=1){if(ZH(r[a])!==ZH(t[a])){r=r.slice(a);break}a===i-1&&(r=r.slice(i))}return r}(e.slice(i),r.slice(i-n-o.length),a);c.slice(0,a.length)===a&&(c=c.slice(a.length));var s="".concat(l).concat(o).concat(r).concat(a);return{text:"".concat(s).concat(c),selectionLocation:s.length}}function eD(e,t){return!t||-1===e.indexOf(t)}function tD(e,t){var n=t.value,o=void 0===n?"":n,r=e.toLowerCase();return-1!==o.toLowerCase().indexOf(r)}var nD=["prefixCls","className","style","prefix","split","notFoundContent","value","defaultValue","children","options","open","allowClear","silent","validateSearch","filterOption","onChange","onKeyDown","onKeyUp","onPressEnter","onSearch","onSelect","onFocus","onBlur","transitionName","placement","direction","getPopupContainer","dropdownClassName","rows","visible","onPopupScroll"],oD=["suffix","prefixCls","defaultValue","value","allowClear","onChange","classNames","className","disabled","onClear"],rD=(0,o.forwardRef)(function(e,t){var n=e.prefixCls,i=e.className,c=e.style,u=e.prefix,p=void 0===u?"@":u,f=e.split,m=void 0===f?" ":f,g=e.notFoundContent,v=void 0===g?"Not Found":g,h=e.value,b=e.defaultValue,y=e.children,C=e.options,x=e.open,$=(e.allowClear,e.silent),w=e.validateSearch,S=void 0===w?eD:w,k=e.filterOption,E=void 0===k?tD:k,O=e.onChange,A=e.onKeyDown,I=e.onKeyUp,N=e.onPressEnter,M=e.onSearch,j=e.onSelect,P=e.onFocus,R=e.onBlur,T=e.transitionName,z=e.placement,B=e.direction,H=e.getPopupContainer,D=e.dropdownClassName,L=e.rows,F=void 0===L?1:L,W=(e.visible,e.onPopupScroll),_=(0,cr.A)(e,nD),K=(0,o.useMemo)(function(){return Array.isArray(p)?p:[p]},[p]),q=(0,o.useRef)(null),V=(0,o.useRef)(null),X=(0,o.useRef)(null),G=function(){var e;return null===(e=V.current)||void 0===e||null===(e=e.resizableTextArea)||void 0===e?void 0:e.textArea};r().useImperativeHandle(t,function(){var e;return{focus:function(){var e;return null===(e=V.current)||void 0===e?void 0:e.focus()},blur:function(){var e;return null===(e=V.current)||void 0===e?void 0:e.blur()},textarea:null===(e=V.current)||void 0===e||null===(e=e.resizableTextArea)||void 0===e?void 0:e.textArea,nativeElement:q.current}});var Y=(0,o.useState)(!1),U=(0,ke.A)(Y,2),Q=U[0],Z=U[1],J=(0,o.useState)(""),ee=(0,ke.A)(J,2),te=ee[0],ne=ee[1],oe=(0,o.useState)(""),re=(0,ke.A)(oe,2),ie=re[0],ae=re[1],le=(0,o.useState)(0),ce=(0,ke.A)(le,2),se=ce[0],ue=ce[1],de=(0,o.useState)(0),pe=(0,ke.A)(de,2),fe=pe[0],me=pe[1],ge=(0,o.useState)(!1),ve=(0,ke.A)(ge,2),he=ve[0],be=ve[1],ye=Ln("",{defaultValue:b,value:h}),Ce=(0,ke.A)(ye,2),xe=Ce[0],$e=Ce[1];(0,o.useEffect)(function(){Q&&X.current&&(X.current.scrollTop=G().scrollTop)},[Q]);var we=r().useMemo(function(){if(x){0;for(var e=0;e<K.length;e+=1){var t=K[e],n=xe.lastIndexOf(t);if(n>=0)return[!0,"",t,n]}}return[Q,te,ie,se]},[x,Q,K,xe,te,ie,se]),Se=(0,ke.A)(we,4),Ee=Se[0],Oe=Se[1],Ae=Se[2],Ie=Se[3],Ne=r().useCallback(function(e){return(C&&C.length>0?C.map(function(e){var t;return(0,d.A)((0,d.A)({},e),{},{key:null!==(t=null===e||void 0===e?void 0:e.key)&&void 0!==t?t:e.value})}):s(y).map(function(e){var t=e.props,n=e.key;return(0,d.A)((0,d.A)({},t),{},{label:t.children,key:n||t.value})})).filter(function(t){return!1===E||E(e,t)})},[y,C,E]),Me=r().useMemo(function(){return Ne(Oe)},[Ne,Oe]),je=function(){var e=(0,o.useState)({id:0,callback:null}),t=(0,ke.A)(e,2),n=t[0],r=t[1],i=(0,o.useCallback)(function(e){r(function(t){return{id:t.id+1,callback:e}})},[]);return(0,o.useEffect)(function(){var e;null===(e=n.callback)||void 0===e||e.call(n)},[n]),i}(),Pe=function(e){Z(!1),ue(0),ne(""),je(e)},Re=function(e){$e(e),null===O||void 0===O||O(e)},Te=function(e){var t,n=e.value,o=JH(xe,{measureLocation:Ie,targetText:void 0===n?"":n,prefix:Ae,selectionStart:null===(t=G())||void 0===t?void 0:t.selectionStart,split:m}),r=o.text,i=o.selectionLocation;Re(r),Pe(function(){!function(e,t){e.setSelectionRange(t,t),e.blur(),e.focus()}(G(),i)}),null===j||void 0===j||j(e,Ae)},ze=(0,o.useRef)(),Be=function(e){window.clearTimeout(ze.current),!he&&e&&P&&P(e),be(!0)},He=function(e){ze.current=window.setTimeout(function(){be(!1),Pe(),null===R||void 0===R||R(e)},0)};return r().createElement("div",{className:a()(n,i),style:c,ref:q},r().createElement(IB,(0,l.A)({ref:V,value:xe},_,{rows:F,onChange:function(e){var t=e.target.value;Re(t)},onKeyDown:function(e){var t=e.which;if(null===A||void 0===A||A(e),Ee)if(t===Xi.UP||t===Xi.DOWN){var n=Me.length,o=t===Xi.UP?-1:1;me((fe+o+n)%n),e.preventDefault()}else if(t===Xi.ESC)Pe();else if(t===Xi.ENTER){if(e.preventDefault(),$)return;if(!Me.length)return void Pe();var r=Me[fe];Te(r)}},onKeyUp:function(e){var t=e.key,n=e.which,o=function(e){var t=e.selectionStart;return e.value.slice(0,t)}(e.target),r=function(e,t){return t.reduce(function(t,n){var o=e.lastIndexOf(n);return o>t.location?{location:o,prefix:n}:t},{location:-1,prefix:""})}(o,K),i=r.location,a=r.prefix;if(null===I||void 0===I||I(e),-1===[Xi.ESC,Xi.UP,Xi.DOWN,Xi.ENTER].indexOf(n))if(-1!==i){var l=o.slice(i+a.length),c=S(l,m),s=!!Ne(l).length;c?(t===a||"Shift"===t||n===Xi.ALT||"AltGraph"===t||Ee||l!==Oe&&s)&&function(e,t,n){Z(!0),ne(e),ae(t),ue(n),me(0)}(l,a,i):Ee&&Pe(),M&&c&&M(l,a)}else Ee&&Pe()},onPressEnter:function(e){!Ee&&N&&N(e)},onFocus:Be,onBlur:He})),Ee&&r().createElement("div",{ref:X,className:"".concat(n,"-measure")},xe.slice(0,Ie),r().createElement(XH.Provider,{value:{notFoundContent:v,activeIndex:fe,setActiveIndex:me,selectOption:Te,onFocus:function(){Be()},onBlur:function(){He()},onScroll:function(e){null===W||void 0===W||W(e)}}},r().createElement(UH,{prefixCls:n,transitionName:T,placement:z,direction:B,options:Me,visible:!0,getPopupContainer:H,dropdownClassName:D},r().createElement("span",null,Ae))),xe.slice(Ie+Ae.length)))}),iD=(0,o.forwardRef)(function(e,t){var n=e.suffix,i=e.prefixCls,a=void 0===i?"rc-mentions":i,c=e.defaultValue,s=e.value,u=e.allowClear,p=e.onChange,f=e.classNames,m=e.className,g=e.disabled,v=e.onClear,h=(0,cr.A)(e,oD),b=(0,o.useRef)(null),y=(0,o.useRef)(null);(0,o.useImperativeHandle)(t,function(){var e,t;return(0,d.A)((0,d.A)({},y.current),{},{nativeElement:(null===(e=b.current)||void 0===e?void 0:e.nativeElement)||(null===(t=y.current)||void 0===t?void 0:t.nativeElement)})});var C=Ln("",{defaultValue:c,value:s}),x=(0,ke.A)(C,2),$=x[0],w=x[1],S=function(e){w(e),null===p||void 0===p||p(e)};return r().createElement(jN,{suffix:n,prefixCls:a,value:$,allowClear:u,handleReset:function(){S("")},className:m,classNames:f,disabled:g,ref:b,onClear:v},r().createElement(rD,(0,l.A)({className:null===f||void 0===f?void 0:f.mentions,prefixCls:a,ref:y,onChange:S,disabled:g},h)))});iD.Option=QH;const aD=iD,lD=function(e){return!(arguments.length>1&&void 0!==arguments[1]&&arguments[1])||void 0!==e&&null!==e?Array.isArray(e)?e:[e]:[]},cD=e=>{const{componentCls:t,antCls:n,colorTextDisabled:o,controlItemBgHover:r,controlPaddingHorizontal:i,colorText:a,motionDurationSlow:l,lineHeight:c,controlHeight:s,paddingInline:u,paddingBlock:d,fontSize:p,fontSizeIcon:f,colorIcon:m,colorTextQuaternary:g,colorBgElevated:v,paddingXXS:h,borderRadius:b,borderRadiusLG:y,boxShadowSecondary:C,itemPaddingVertical:x,calc:$}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},po(e)),fM(e)),{position:"relative",display:"inline-block",height:"auto",padding:`0 ${nt(e.paddingInline)}`,overflow:"hidden",lineHeight:c,whiteSpace:"pre-wrap",verticalAlign:"bottom"}),ZN(e)),rM(e)),tM(e)),{"&-affix-wrapper":Object.assign(Object.assign({},fM(e)),{display:"inline-flex",paddingBlock:0,paddingInlineStart:0,paddingInlineEnd:e.paddingInline,"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-suffix`]:{display:"inline-flex",alignItems:"center",[`&:has(${n}-form-item-feedback-icon) ${t}-clear-icon`]:{marginInlineEnd:e.marginXS},[`${n}-form-item-feedback-icon`]:{display:"inline-flex",alignItems:"center",justifyContent:"center"}},[`${t}-clear-icon`]:{insetInlineEnd:0,insetBlockStart:$(p).mul(c).mul(.5).add(d).equal(),padding:0,lineHeight:0,color:g,fontSize:f,verticalAlign:-1,cursor:"pointer",transition:`color ${l}`,border:"none",outline:"none",backgroundColor:"transparent","&:hover":{color:m},"&:active":{color:a},"&-hidden":{visibility:"hidden"}}})}),sM(e)),{"&-disabled":{"> textarea":Object.assign({},YN(e))},[`&, &-affix-wrapper > ${t}`]:{[`> textarea, ${t}-measure`]:{color:a,boxSizing:"border-box",minHeight:e.calc(s).sub(2).equal(),margin:0,padding:`${nt(d)} ${nt(u)}`,overflow:"inherit",overflowX:"hidden",overflowY:"auto",fontWeight:"inherit",fontSize:"inherit",fontFamily:"inherit",fontStyle:"inherit",fontVariant:"inherit",fontSizeAdjust:"inherit",fontStretch:"inherit",lineHeight:"inherit",direction:"inherit",letterSpacing:"inherit",whiteSpace:"inherit",textAlign:"inherit",verticalAlign:"top",wordWrap:"break-word",wordBreak:"inherit",tabSize:"inherit"},"> textarea":Object.assign(Object.assign({width:"100%",border:"none",outline:"none",resize:"none",backgroundColor:"transparent"},uM(e.colorTextPlaceholder)),{padding:`${nt(e.paddingBlock)} 0`}),[`${t}-measure`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:-1,color:"transparent",pointerEvents:"none","> span":{display:"inline-block",minHeight:"1em"}}},"&-dropdown":Object.assign(Object.assign({},po(e)),{position:"absolute",top:-9999,insetInlineStart:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",fontSize:p,fontVariant:"initial",padding:h,backgroundColor:v,borderRadius:y,outline:"none",boxShadow:C,"&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.dropdownHeight,margin:0,paddingInlineStart:0,overflow:"auto",listStyle:"none",outline:"none","&-item":Object.assign(Object.assign({},uo),{position:"relative",display:"block",minWidth:e.controlItemWidth,padding:`${nt(x)} ${nt(i)}`,color:a,borderRadius:b,fontWeight:"normal",lineHeight:c,cursor:"pointer",transition:`background ${l} ease`,"&:hover":{backgroundColor:r},"&-disabled":{color:o,cursor:"not-allowed","&:hover":{color:o,backgroundColor:r,cursor:"not-allowed"}},"&-selected":{color:a,fontWeight:e.fontWeightStrong,backgroundColor:r},"&-active":{backgroundColor:r}})}})})}},sD=qo("Mentions",e=>{const t=Jn(e,Lk(e));return[cD(t)]},e=>Object.assign(Object.assign({},Fk(e)),{dropdownHeight:250,controlItemWidth:100,zIndexPopup:e.zIndexPopupBase+50,itemPaddingVertical:(e.controlHeight-e.fontHeight)/2}));var uD=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const{Option:dD}=aD;function pD(){return!0}const fD=o.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:i,disabled:l,loading:c,filterOption:s,children:u,notFoundContent:d,options:p,status:f,allowClear:m=!1,popupClassName:g,style:v,variant:h}=e,y=uD(e,["prefixCls","className","rootClassName","disabled","loading","filterOption","children","notFoundContent","options","status","allowClear","popupClassName","style","variant"]),[C,x]=o.useState(!1),$=o.useRef(null),w=(0,b.K4)(t,$);const{getPrefixCls:S,renderEmpty:k,direction:E,mentions:O}=o.useContext(xe),{status:A,hasFeedback:I,feedbackIcon:N}=o.useContext(Ep),M=ch(A,f),j=o.useMemo(()=>void 0!==d?d:(null===k||void 0===k?void 0:k("Select"))||o.createElement(bh,{componentName:"Select"}),[d,k]),P=o.useMemo(()=>c?o.createElement(dD,{value:"ANTD_SEARCHING",disabled:!0},o.createElement(PH,{size:"small"})):u,[c,u]),R=c?[{value:"ANTD_SEARCHING",disabled:!0,label:o.createElement(PH,{size:"small"})}]:p,T=c?pD:s,z=S("mentions",n),B=PM(m),H=Mi(z),[D,L,F]=sD(z,H),[W,_]=yh("mentions",h),K=I&&o.createElement(o.Fragment,null,N),q=a()(null===O||void 0===O?void 0:O.className,r,i,F,H);return D(o.createElement(aD,Object.assign({silent:c,prefixCls:z,notFoundContent:j,className:q,disabled:l,allowClear:B,direction:E,style:Object.assign(Object.assign({},null===O||void 0===O?void 0:O.style),v)},y,{filterOption:T,onFocus:function(){if(y.onFocus){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];y.onFocus.apply(y,t)}x(!0)},onBlur:function(){if(y.onBlur){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];y.onBlur.apply(y,t)}x(!1)},dropdownClassName:a()(g,i,L,F,H),ref:w,options:R,suffix:K,classNames:{mentions:a()({[`${z}-disabled`]:l,[`${z}-focused`]:C,[`${z}-rtl`]:"rtl"===E},L),variant:a()({[`${z}-${W}`]:_},lh(z,M)),affixWrapper:L}}),P))}),mD=fD;mD.Option=dD;const gD=Qm(mD,void 0,void 0,"mentions");mD._InternalPanelDoNotUseOrYouWillBeFired=gD,mD.getMentions=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{prefix:n="@",split:o=" "}=t,r=lD(n);return e.split(o).map(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=null;return r.some(n=>e.slice(0,n.length)===n&&(t=n,!0)),null!==t?{prefix:t,value:e.slice(t.length)}:null}).filter(e=>!!e&&!!e.value)};const vD=mD;let hD=null,bD=e=>e(),yD=[],CD={};function xD(){const{getContainer:e,duration:t,rtl:n,maxCount:o,top:r}=CD,i=(null===e||void 0===e?void 0:e())||document.body;return{getContainer:()=>i,duration:t,rtl:n,maxCount:o,top:r}}const $D=r().forwardRef((e,t)=>{const{messageConfig:n,sync:i}=e,{getPrefixCls:a}=(0,o.useContext)(xe),l=CD.prefixCls||a("message"),c=(0,o.useContext)(_m),[s,u]=Oa(Object.assign(Object.assign(Object.assign({},n),{prefixCls:l}),c.message));return r().useImperativeHandle(t,()=>{const e=Object.assign({},s);return Object.keys(e).forEach(t=>{e[t]=function(){i();for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return s[t].apply(s,n)}}),{instance:e,sync:i}}),u}),wD=r().forwardRef((e,t)=>{const[n,o]=r().useState(xD),i=()=>{o(xD)};r().useEffect(i,[]);const a=ml(),l=a.getRootPrefixCls(),c=a.getIconPrefixCls(),s=a.getTheme(),u=r().createElement($D,{ref:t,sync:i,messageConfig:n});return r().createElement(hl,{prefixCls:l,iconPrefixCls:c,theme:s},a.holderRender?a.holderRender(u):u)});function SD(){if(!hD){const e=document.createDocumentFragment(),t={fragment:e};return hD=t,void bD(()=>{Wl()(r().createElement(wD,{ref:e=>{const{instance:n,sync:o}=e||{};Promise.resolve().then(()=>{!t.instance&&n&&(t.instance=n,t.sync=o,SD())})}}),e)})}hD.instance&&(yD.forEach(e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":bD(()=>{const t=hD.instance.open(Object.assign(Object.assign({},CD),e.config));null===t||void 0===t||t.then(e.resolve),e.setCloseFn(t)});break;case"destroy":bD(()=>{null===hD||void 0===hD||hD.instance.destroy(e.key)});break;default:bD(()=>{var n;const o=(n=hD.instance)[t].apply(n,se(e.args));null===o||void 0===o||o.then(e.resolve),e.setCloseFn(o)})}}),yD=[])}const kD={open:function(e){const t=Ca(t=>{let n;const o={type:"open",config:e,resolve:t,setCloseFn:e=>{n=e}};return yD.push(o),()=>{n?bD(()=>{n()}):o.skipped=!0}});return SD(),t},destroy:e=>{yD.push({type:"destroy",key:e}),SD()},config:function(e){CD=Object.assign(Object.assign({},CD),e),bD(()=>{var e;null===(e=null===hD||void 0===hD?void 0:hD.sync)||void 0===e||e.call(hD)})},useMessage:Aa,_InternalPanelDoNotUseOrYouWillBeFired:ya},ED=kD;["success","info","warning","error","loading"].forEach(e=>{ED[e]=function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return function(e,t){ml();const n=Ca(n=>{let o;const r={type:e,args:t,resolve:n,setCloseFn:e=>{o=e}};return yD.push(r),()=>{o?bD(()=>{o()}):r.skipped=!0}});return SD(),n}(e,n)}});const OD=ED;var AD=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const ID=Um(e=>{const{prefixCls:t,className:n,closeIcon:r,closable:i,type:l,title:c,children:s,footer:u}=e,d=AD(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:p}=o.useContext(xe),f=p(),m=t||p("modal"),g=Mi(f),[v,h,b]=Gf(m,g),y=`${m}-confirm`;let C={};return C=l?{closable:null!==i&&void 0!==i&&i,title:"",footer:"",children:o.createElement(nm,Object.assign({},e,{prefixCls:m,confirmPrefixCls:y,rootPrefixCls:f,content:s}))}:{closable:null===i||void 0===i||i,title:c,footer:null!==u&&o.createElement(gf,Object.assign({},e)),children:s},v(o.createElement(td,Object.assign({prefixCls:m,className:a()(h,`${m}-pure-panel`,l&&y,l&&`${y}-${l}`,n,b,g)},d,{closeIcon:mf(m,r),closable:i},C)))});function ND(e){return sm(um(e))}const MD=Zf;MD.useModal=ym,MD.info=function(e){return sm(dm(e))},MD.success=function(e){return sm(pm(e))},MD.error=function(e){return sm(fm(e))},MD.warning=ND,MD.warn=ND,MD.confirm=function(e){return sm(mm(e))},MD.destroyAll=function(){for(;im.length;){const e=im.pop();e&&e()}},MD.config=function(e){let{rootPrefixCls:t}=e;am=t},MD._InternalPanelDoNotUseOrYouWillBeFired=ID;const jD=MD;let PD=null,RD=e=>e(),TD=[],zD={};function BD(){const{getContainer:e,rtl:t,maxCount:n,top:o,bottom:r,showProgress:i,pauseOnHover:a}=zD,l=(null===e||void 0===e?void 0:e())||document.body;return{getContainer:()=>l,rtl:t,maxCount:n,top:o,bottom:r,showProgress:i,pauseOnHover:a}}const HD=r().forwardRef((e,t)=>{const{notificationConfig:n,sync:i}=e,{getPrefixCls:a}=(0,o.useContext)(xe),l=zD.prefixCls||a("notification"),c=(0,o.useContext)(_m),[s,u]=Fm(Object.assign(Object.assign(Object.assign({},n),{prefixCls:l}),c.notification));return r().useEffect(i,[]),r().useImperativeHandle(t,()=>{const e=Object.assign({},s);return Object.keys(e).forEach(t=>{e[t]=function(){i();for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return s[t].apply(s,n)}}),{instance:e,sync:i}}),u}),DD=r().forwardRef((e,t)=>{const[n,o]=r().useState(BD),i=()=>{o(BD)};r().useEffect(i,[]);const a=ml(),l=a.getRootPrefixCls(),c=a.getIconPrefixCls(),s=a.getTheme(),u=r().createElement(HD,{ref:t,sync:i,notificationConfig:n});return r().createElement(hl,{prefixCls:l,iconPrefixCls:c,theme:s},a.holderRender?a.holderRender(u):u)});function LD(){if(!PD){const e=document.createDocumentFragment(),t={fragment:e};return PD=t,void RD(()=>{Wl()(r().createElement(DD,{ref:e=>{const{instance:n,sync:o}=e||{};Promise.resolve().then(()=>{!t.instance&&n&&(t.instance=n,t.sync=o,LD())})}}),e)})}PD.instance&&(TD.forEach(e=>{switch(e.type){case"open":RD(()=>{PD.instance.open(Object.assign(Object.assign({},zD),e.config))});break;case"destroy":RD(()=>{null===PD||void 0===PD||PD.instance.destroy(e.key)})}}),TD=[])}function FD(e){ml();TD.push({type:"open",config:e}),LD()}const WD={open:FD,destroy:e=>{TD.push({type:"destroy",key:e}),LD()},config:function(e){zD=Object.assign(Object.assign({},zD),e),RD(()=>{var e;null===(e=null===PD||void 0===PD?void 0:PD.sync)||void 0===e||e.call(PD)})},useNotification:Wm,_InternalPanelDoNotUseOrYouWillBeFired:zm};["success","info","warning","error"].forEach(e=>{WD[e]=t=>FD(Object.assign(Object.assign({},t),{type:e}))});const _D=WD,KD=qo("Popconfirm",e=>(e=>{const{componentCls:t,iconCls:n,antCls:o,zIndexPopup:r,colorText:i,colorWarning:a,marginXXS:l,marginXS:c,fontSize:s,fontWeightStrong:u,colorTextHeading:d}=e;return{[t]:{zIndex:r,[`&${o}-popover`]:{fontSize:s},[`${t}-message`]:{marginBottom:c,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${t}-message-icon ${n}`]:{color:a,fontSize:s,lineHeight:1,marginInlineEnd:c},[`${t}-title`]:{fontWeight:u,color:d,"&:only-child":{fontWeight:"normal"}},[`${t}-description`]:{marginTop:l,color:i}},[`${t}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:c}}}}})(e),e=>{const{zIndexPopupBase:t}=e;return{zIndexPopup:t+60}},{resetStyle:!1});var qD=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const VD=e=>{const{prefixCls:t,okButtonProps:n,cancelButtonProps:r,title:i,description:a,cancelText:l,okText:c,okType:s="primary",icon:u=o.createElement(ar.A,null),showCancel:d=!0,close:p,onConfirm:f,onCancel:m,onPopupClick:g}=e,{getPrefixCls:v}=o.useContext(xe),[h]=Yl("Popconfirm",Ba.Popconfirm),b=Fb(i),y=Fb(a);return o.createElement("div",{className:`${t}-inner-content`,onClick:g},o.createElement("div",{className:`${t}-message`},u&&o.createElement("span",{className:`${t}-message-icon`},u),o.createElement("div",{className:`${t}-message-text`},b&&o.createElement("div",{className:`${t}-title`},b),y&&o.createElement("div",{className:`${t}-description`},y))),o.createElement("div",{className:`${t}-buttons`},d&&o.createElement(Su,Object.assign({onClick:m,size:"small"},r),l||(null===h||void 0===h?void 0:h.cancelText)),o.createElement(Eu,{buttonProps:Object.assign(Object.assign({size:"small"},Sc(s)),n),actionFn:f,close:p,prefixCls:v("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},c||(null===h||void 0===h?void 0:h.okText))))},XD=e=>{const{prefixCls:t,placement:n,className:r,style:i}=e,l=qD(e,["prefixCls","placement","className","style"]),{getPrefixCls:c}=o.useContext(xe),s=c("popconfirm",t),[u]=KD(s);return u(o.createElement(Sy,{placement:n,className:a()(s,r),style:i,content:o.createElement(VD,Object.assign({prefixCls:s},l))}))};var GD=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const YD=o.forwardRef((e,t)=>{var n,r;const{prefixCls:i,placement:l="top",trigger:c="click",okType:s="primary",icon:u=o.createElement(ar.A,null),children:d,overlayClassName:p,onOpenChange:f,onVisibleChange:m,overlayStyle:g,styles:v,classNames:h}=e,b=GD(e,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange","overlayStyle","styles","classNames"]),{getPrefixCls:y,className:C,style:x,classNames:$,styles:w}=Se("popconfirm"),[S,k]=Ln(!1,{value:null!==(n=e.open)&&void 0!==n?n:e.visible,defaultValue:null!==(r=e.defaultOpen)&&void 0!==r?r:e.defaultVisible}),E=(e,t)=>{k(e,!0),null===m||void 0===m||m(e),null===f||void 0===f||f(e,t)},O=y("popconfirm",i),A=a()(O,C,p,$.root,null===h||void 0===h?void 0:h.root),I=a()($.body,null===h||void 0===h?void 0:h.body),[N]=KD(O);return N(o.createElement(Ay,Object.assign({},Ul(b,["title"]),{trigger:c,placement:l,onOpenChange:(t,n)=>{const{disabled:o=!1}=e;o||E(t,n)},open:S,ref:t,classNames:{root:A,body:I},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},w.root),x),g),null===v||void 0===v?void 0:v.root),body:Object.assign(Object.assign({},w.body),null===v||void 0===v?void 0:v.body)},content:o.createElement(VD,Object.assign({okType:s,icon:u},e,{prefixCls:O,close:e=>{E(!1,e)},onConfirm:t=>{var n;return null===(n=e.onConfirm)||void 0===n?void 0:n.call(void 0,t)},onCancel:t=>{var n;E(!1,t),null===(n=e.onCancel)||void 0===n||n.call(void 0,t)}})),"data-popover-inject":!0}),d))}),UD=YD;UD._InternalPanelDoNotUseOrYouWillBeFired=XD;const QD=UD;var ZD={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},JD=function(){var e=(0,o.useRef)([]),t=(0,o.useRef)(null);return(0,o.useEffect)(function(){var n=Date.now(),o=!1;e.current.forEach(function(e){if(e){o=!0;var r=e.style;r.transitionDuration=".3s, .3s, .3s, .06s",t.current&&n-t.current<100&&(r.transitionDuration="0s, 0s")}}),o&&(t.current=Date.now())}),e.current};var eL=0,tL=(0,Le.A)();const nL=function(e){var t=o.useState(),n=(0,ke.A)(t,2),r=n[0],i=n[1];return o.useEffect(function(){i("rc_progress_".concat(function(){var e;return tL?(e=eL,eL+=1):e="TEST_OR_SSR",e}()))},[]),e||r};var oL=function(e){var t=e.bg,n=e.children;return o.createElement("div",{style:{width:"100%",height:"100%",background:t}},n)};function rL(e,t){return Object.keys(e).map(function(n){var o=parseFloat(n),r="".concat(Math.floor(o*t),"%");return"".concat(e[n]," ").concat(r)})}var iL=o.forwardRef(function(e,t){var n=e.prefixCls,r=e.color,i=e.gradientId,a=e.radius,l=e.style,c=e.ptg,s=e.strokeLinecap,u=e.strokeWidth,d=e.size,f=e.gapDegree,m=r&&"object"===(0,p.A)(r),g=m?"#FFF":void 0,v=d/2,h=o.createElement("circle",{className:"".concat(n,"-circle-path"),r:a,cx:v,cy:v,stroke:g,strokeLinecap:s,strokeWidth:u,opacity:0===c?0:1,style:l,ref:t});if(!m)return h;var b="".concat(i,"-conic"),y=f?"".concat(180+f/2,"deg"):"0deg",C=rL(r,(360-f)/360),x=rL(r,1),$="conic-gradient(from ".concat(y,", ").concat(C.join(", "),")"),w="linear-gradient(to ".concat(f?"bottom":"top",", ").concat(x.join(", "),")");return o.createElement(o.Fragment,null,o.createElement("mask",{id:b},h),o.createElement("foreignObject",{x:0,y:0,width:d,height:d,mask:"url(#".concat(b,")")},o.createElement(oL,{bg:w},o.createElement(oL,{bg:$}))))});const aL=iL;var lL=100,cL=function(e,t,n,o,r,i,a,l,c,s){var u=arguments.length>10&&void 0!==arguments[10]?arguments[10]:0,d=n/100*360*((360-i)/360),p=0===i?0:{bottom:0,top:180,left:90,right:-90}[a],f=(100-o)/100*t;"round"===c&&100!==o&&(f+=s/2)>=t&&(f=t-.01);return{stroke:"string"===typeof l?l:void 0,strokeDasharray:"".concat(t,"px ").concat(e),strokeDashoffset:f+u,transform:"rotate(".concat(r+d+p,"deg)"),transformOrigin:"".concat(50,"px ").concat(50,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},sL=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function uL(e){var t=null!==e&&void 0!==e?e:[];return Array.isArray(t)?t:[t]}const dL=function(e){var t=(0,d.A)((0,d.A)({},ZD),e),n=t.id,r=t.prefixCls,i=t.steps,c=t.strokeWidth,s=t.trailWidth,u=t.gapDegree,f=void 0===u?0:u,m=t.gapPosition,g=t.trailColor,v=t.strokeLinecap,h=t.style,b=t.className,y=t.strokeColor,C=t.percent,x=(0,cr.A)(t,sL),$=nL(n),w="".concat($,"-gradient"),S=50-c/2,k=2*Math.PI*S,E=f>0?90+f/2:-90,O=k*((360-f)/360),A="object"===(0,p.A)(i)?i:{count:i,gap:2},I=A.count,N=A.gap,M=uL(C),j=uL(y),P=j.find(function(e){return e&&"object"===(0,p.A)(e)}),R=P&&"object"===(0,p.A)(P)?"butt":v,T=cL(k,O,0,100,E,f,m,g,R,c),z=JD();return o.createElement("svg",(0,l.A)({className:a()("".concat(r,"-circle"),b),viewBox:"0 0 ".concat(lL," ").concat(lL),style:h,id:n,role:"presentation"},x),!I&&o.createElement("circle",{className:"".concat(r,"-circle-trail"),r:S,cx:50,cy:50,stroke:g,strokeLinecap:R,strokeWidth:s||c,style:T}),I?function(){var e=Math.round(I*(M[0]/100)),t=100/I,n=0;return new Array(I).fill(null).map(function(i,a){var l=a<=e-1?j[0]:g,s=l&&"object"===(0,p.A)(l)?"url(#".concat(w,")"):void 0,u=cL(k,O,n,t,E,f,m,l,"butt",c,N);return n+=100*(O-u.strokeDashoffset+N)/O,o.createElement("circle",{key:a,className:"".concat(r,"-circle-path"),r:S,cx:50,cy:50,stroke:s,strokeWidth:c,opacity:1,style:u,ref:function(e){z[a]=e}})})}():function(){var e=0;return M.map(function(t,n){var i=j[n]||j[j.length-1],a=cL(k,O,e,t,E,f,m,i,R,c);return e+=t,o.createElement(aL,{key:n,color:i,ptg:t,radius:S,prefixCls:r,gradientId:w,style:a,strokeLinecap:R,strokeWidth:c,gapDegree:f,ref:function(e){z[n]=e},size:lL})}).reverse()}())};function pL(e){return!e||e<0?0:e>100?100:e}function fL(e){let{success:t,successPercent:n}=e,o=n;return t&&"progress"in t&&(o=t.progress),t&&"percent"in t&&(o=t.percent),o}const mL=(e,t,n)=>{var o,r,i,a;let l=-1,c=-1;if("step"===t){const t=n.steps,o=n.strokeWidth;"string"===typeof e||"undefined"===typeof e?(l="small"===e?2:14,c=null!==o&&void 0!==o?o:8):"number"===typeof e?[l,c]=[e,e]:[l=14,c=8]=Array.isArray(e)?e:[e.width,e.height],l*=t}else if("line"===t){const t=null===n||void 0===n?void 0:n.strokeWidth;"string"===typeof e||"undefined"===typeof e?c=t||("small"===e?6:8):"number"===typeof e?[l,c]=[e,e]:[l=-1,c=8]=Array.isArray(e)?e:[e.width,e.height]}else"circle"!==t&&"dashboard"!==t||("string"===typeof e||"undefined"===typeof e?[l,c]="small"===e?[60,60]:[120,120]:"number"===typeof e?[l,c]=[e,e]:Array.isArray(e)&&(l=null!==(r=null!==(o=e[0])&&void 0!==o?o:e[1])&&void 0!==r?r:120,c=null!==(a=null!==(i=e[0])&&void 0!==i?i:e[1])&&void 0!==a?a:120));return[l,c]},gL=e=>{const{prefixCls:t,trailColor:n=null,strokeLinecap:r="round",gapPosition:i,gapDegree:l,width:c=120,type:s,children:u,success:d,size:p=c,steps:f}=e,[m,g]=mL(p,"circle");let{strokeWidth:v}=e;void 0===v&&(v=Math.max((e=>3/e*100)(m),6));const h={width:m,height:g,fontSize:.15*m+6},b=o.useMemo(()=>l||0===l?l:"dashboard"===s?75:void 0,[l,s]),y=(e=>{let{percent:t,success:n,successPercent:o}=e;const r=pL(fL({success:n,successPercent:o}));return[r,pL(pL(t)-r)]})(e),C=i||"dashboard"===s&&"bottom"||void 0,x="[object Object]"===Object.prototype.toString.call(e.strokeColor),$=(e=>{let{success:t={},strokeColor:n}=e;const{strokeColor:o}=t;return[o||$o.uy.green,n||null]})({success:d,strokeColor:e.strokeColor}),w=a()(`${t}-inner`,{[`${t}-circle-gradient`]:x}),S=o.createElement(dL,{steps:f,percent:f?y[1]:y,strokeWidth:v,trailWidth:v,strokeColor:f?$[1]:$,strokeLinecap:r,trailColor:n,prefixCls:t,gapDegree:b,gapPosition:C}),k=m<=20,E=o.createElement("div",{className:w,style:h},S,!k&&u);return k?o.createElement(hy,{title:u},E):E},vL="--progress-line-stroke-color",hL="--progress-percent",bL=e=>{const t=e?"100%":"-100%";return new En(`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}})},yL=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:Object.assign(Object.assign({},po(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize},[`${t}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${t}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:e.remainingColor,borderRadius:e.lineBorderRadius},[`${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.defaultColor}},[`${t}-success-bg, ${t}-bg`]:{position:"relative",background:e.defaultColor,borderRadius:e.lineBorderRadius,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`},[`${t}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${t}-text`]:{width:"max-content",marginInlineStart:0,marginTop:e.marginXXS}},[`${t}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${vL})`]},height:"100%",width:`calc(1 / var(${hL}) * 100%)`,display:"block"},[`&${t}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${t}-text-inner`]:{color:e.colorWhite,[`&${t}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${t}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${t}-text`]:{display:"inline-block",marginInlineStart:e.marginXS,color:e.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[n]:{fontSize:e.fontSize},[`&${t}-text-outer`]:{width:"max-content"},[`&${t}-text-outer${t}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:e.marginXS}},[`${t}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${nt(e.paddingXXS)}`,[`&${t}-text-start`]:{justifyContent:"start"},[`&${t}-text-end`]:{justifyContent:"end"}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.lineBorderRadius,opacity:0,animationName:bL(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:bL(!0)}},[`&${t}-status-exception`]:{[`${t}-bg`]:{backgroundColor:e.colorError},[`${t}-text`]:{color:e.colorError}},[`&${t}-status-exception ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}},[`&${t}-status-success`]:{[`${t}-bg`]:{backgroundColor:e.colorSuccess},[`${t}-text`]:{color:e.colorSuccess}},[`&${t}-status-success ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}})}},CL=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-circle-trail`]:{stroke:e.remainingColor},[`&${t}-circle ${t}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${t}-circle ${t}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.circleTextColor,fontSize:e.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[n]:{fontSize:e.circleIconFontSize}},[`${t}-circle&-status-exception`]:{[`${t}-text`]:{color:e.colorError}},[`${t}-circle&-status-success`]:{[`${t}-text`]:{color:e.colorSuccess}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},xL=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,marginInlineEnd:e.progressStepMarginInlineEnd,backgroundColor:e.remainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.defaultColor}}}}}},$L=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${n}`]:{fontSize:e.fontSizeSM}}}},wL=qo("Progress",e=>{const t=e.calc(e.marginXXS).div(2).equal(),n=Jn(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[yL(n),CL(n),xL(n),$L(n)]},e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:e.fontSize/e.fontSizeSM+"em"}));var SL=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const kL=(e,t)=>{const{from:n=$o.uy.blue,to:o=$o.uy.blue,direction:r=("rtl"===t?"to left":"to right")}=e,i=SL(e,["from","to","direction"]);if(0!==Object.keys(i).length){const e=`linear-gradient(${r}, ${(e=>{let t=[];return Object.keys(e).forEach(n=>{const o=parseFloat(n.replace(/%/g,""));Number.isNaN(o)||t.push({key:o,value:e[n]})}),t=t.sort((e,t)=>e.key-t.key),t.map(e=>{let{key:t,value:n}=e;return`${n} ${t}%`}).join(", ")})(i)})`;return{background:e,[vL]:e}}const a=`linear-gradient(${r}, ${n}, ${o})`;return{background:a,[vL]:a}},EL=e=>{const{prefixCls:t,direction:n,percent:r,size:i,strokeWidth:l,strokeColor:c,strokeLinecap:s="round",children:u,trailColor:d=null,percentPosition:p,success:f}=e,{align:m,type:g}=p,v=c&&"string"!==typeof c?kL(c,n):{[vL]:c,background:c},h="square"===s||"butt"===s?0:void 0,b=null!==i&&void 0!==i?i:[-1,l||("small"===i?6:8)],[y,C]=mL(b,"line",{strokeWidth:l});const x={backgroundColor:d||void 0,borderRadius:h},$=Object.assign(Object.assign({width:`${pL(r)}%`,height:C,borderRadius:h},v),{[hL]:pL(r)/100}),w=fL(e),S={width:`${pL(w)}%`,height:C,borderRadius:h,backgroundColor:null===f||void 0===f?void 0:f.strokeColor},k={width:y<0?"100%":y},E=o.createElement("div",{className:`${t}-inner`,style:x},o.createElement("div",{className:a()(`${t}-bg`,`${t}-bg-${g}`),style:$},"inner"===g&&u),void 0!==w&&o.createElement("div",{className:`${t}-success-bg`,style:S})),O="outer"===g&&"start"===m,A="outer"===g&&"end"===m;return"outer"===g&&"center"===m?o.createElement("div",{className:`${t}-layout-bottom`},E,u):o.createElement("div",{className:`${t}-outer`,style:k},O&&u,E,A&&u)},OL=e=>{const{size:t,steps:n,rounding:r=Math.round,percent:i=0,strokeWidth:l=8,strokeColor:c,trailColor:s=null,prefixCls:u,children:d}=e,p=r(n*(i/100)),f=null!==t&&void 0!==t?t:["small"===t?2:14,l],[m,g]=mL(f,"step",{steps:n,strokeWidth:l}),v=m/n,h=Array.from({length:n});for(let b=0;b<n;b++){const e=Array.isArray(c)?c[b]:c;h[b]=o.createElement("div",{key:b,className:a()(`${u}-steps-item`,{[`${u}-steps-item-active`]:b<=p-1}),style:{backgroundColor:b<=p-1?e:s,width:v,height:g}})}return o.createElement("div",{className:`${u}-steps-outer`},h,d)};var AL=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const IL=["normal","exception","active","success"],NL=o.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:i,steps:l,strokeColor:c,percent:s=0,size:u="default",showInfo:d=!0,type:p="line",status:f,format:m,style:g,percentPosition:v={}}=e,h=AL(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:b="end",type:y="outer"}=v,C=Array.isArray(c)?c[0]:c,x="string"===typeof c||Array.isArray(c)?c:void 0,$=o.useMemo(()=>{if(C){const e="string"===typeof C?C:Object.values(C)[0];return new wo.Y(e).isLight()}return!1},[c]),w=o.useMemo(()=>{var t,n;const o=fL(e);return parseInt(void 0!==o?null===(t=null!==o&&void 0!==o?o:0)||void 0===t?void 0:t.toString():null===(n=null!==s&&void 0!==s?s:0)||void 0===n?void 0:n.toString(),10)},[s,e.success,e.successPercent]),S=o.useMemo(()=>!IL.includes(f)&&w>=100?"success":f||"normal",[f,w]),{getPrefixCls:k,direction:E,progress:O}=o.useContext(xe),A=k("progress",n),[I,N,M]=wL(A),j="line"===p,P=j&&!l,R=o.useMemo(()=>{if(!d)return null;const t=fL(e);let n;const r=m||(e=>`${e}%`),i=j&&$&&"inner"===y;return"inner"===y||m||"exception"!==S&&"success"!==S?n=r(pL(s),pL(t)):"exception"===S?n=j?o.createElement(rr.A,null):o.createElement(ir.A,null):"success"===S&&(n=j?o.createElement(or.A,null):o.createElement(ub.A,null)),o.createElement("span",{className:a()(`${A}-text`,{[`${A}-text-bright`]:i,[`${A}-text-${b}`]:P,[`${A}-text-${y}`]:P}),title:"string"===typeof n?n:void 0},n)},[d,s,w,S,p,A,m]);let T;"line"===p?T=l?o.createElement(OL,Object.assign({},e,{strokeColor:x,prefixCls:A,steps:"object"===typeof l?l.count:l}),R):o.createElement(EL,Object.assign({},e,{strokeColor:C,prefixCls:A,direction:E,percentPosition:{align:b,type:y}}),R):"circle"!==p&&"dashboard"!==p||(T=o.createElement(gL,Object.assign({},e,{strokeColor:C,prefixCls:A,progressStatus:S}),R));const z=a()(A,`${A}-status-${S}`,{[`${A}-${"dashboard"===p?"circle":p}`]:"line"!==p,[`${A}-inline-circle`]:"circle"===p&&mL(u,"circle")[0]<=20,[`${A}-line`]:P,[`${A}-line-align-${b}`]:P,[`${A}-line-position-${y}`]:P,[`${A}-steps`]:l,[`${A}-show-info`]:d,[`${A}-${u}`]:"string"===typeof u,[`${A}-rtl`]:"rtl"===E},null===O||void 0===O?void 0:O.className,r,i,N,M);return I(o.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},null===O||void 0===O?void 0:O.style),g),className:z,role:"progressbar","aria-valuenow":w,"aria-valuemin":0,"aria-valuemax":100},Ul(h,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),T))});const ML=NL;function jL(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=(0,ce.A)(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw i}}}}var PL,RL;function TL(e,t,n){if(t<0||t>31||e>>>t!=0)throw new RangeError("Value out of range");for(var o=t-1;o>=0;o--)n.push(e>>>o&1)}function zL(e,t){return 0!=(e>>>t&1)}function BL(e){if(!e)throw new Error("Assertion error")}var HL=function(){function e(t,n){K(this,e),(0,Ee.A)(this,"modeBits",void 0),(0,Ee.A)(this,"numBitsCharCount",void 0),this.modeBits=t,this.numBitsCharCount=n}return X(e,[{key:"numCharCountBits",value:function(e){return this.numBitsCharCount[Math.floor((e+7)/17)]}}]),e}();PL=HL,(0,Ee.A)(HL,"NUMERIC",new PL(1,[10,12,14])),(0,Ee.A)(HL,"ALPHANUMERIC",new PL(2,[9,11,13])),(0,Ee.A)(HL,"BYTE",new PL(4,[8,16,16])),(0,Ee.A)(HL,"KANJI",new PL(8,[8,10,12])),(0,Ee.A)(HL,"ECI",new PL(7,[0,0,0]));var DL=X(function e(t,n){K(this,e),(0,Ee.A)(this,"ordinal",void 0),(0,Ee.A)(this,"formatBits",void 0),this.ordinal=t,this.formatBits=n});RL=DL,(0,Ee.A)(DL,"LOW",new RL(0,1)),(0,Ee.A)(DL,"MEDIUM",new RL(1,0)),(0,Ee.A)(DL,"QUARTILE",new RL(2,3)),(0,Ee.A)(DL,"HIGH",new RL(3,2));var LL=function(){function e(t,n,o){if(K(this,e),(0,Ee.A)(this,"mode",void 0),(0,Ee.A)(this,"numChars",void 0),(0,Ee.A)(this,"bitData",void 0),this.mode=t,this.numChars=n,this.bitData=o,n<0)throw new RangeError("Invalid argument");this.bitData=o.slice()}return X(e,[{key:"getData",value:function(){return this.bitData.slice()}}],[{key:"makeBytes",value:function(t){var n,o=[],r=jL(t);try{for(r.s();!(n=r.n()).done;){TL(n.value,8,o)}}catch(i){r.e(i)}finally{r.f()}return new e(HL.BYTE,t.length,o)}},{key:"makeNumeric",value:function(t){if(!e.isNumeric(t))throw new RangeError("String contains non-numeric characters");for(var n=[],o=0;o<t.length;){var r=Math.min(t.length-o,3);TL(parseInt(t.substring(o,o+r),10),3*r+1,n),o+=r}return new e(HL.NUMERIC,t.length,n)}},{key:"makeAlphanumeric",value:function(t){if(!e.isAlphanumeric(t))throw new RangeError("String contains unencodable characters in alphanumeric mode");var n,o=[];for(n=0;n+2<=t.length;n+=2){var r=45*e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(n));TL(r+=e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(n+1)),11,o)}return n<t.length&&TL(e.ALPHANUMERIC_CHARSET.indexOf(t.charAt(n)),6,o),new e(HL.ALPHANUMERIC,t.length,o)}},{key:"makeSegments",value:function(t){return""==t?[]:e.isNumeric(t)?[e.makeNumeric(t)]:e.isAlphanumeric(t)?[e.makeAlphanumeric(t)]:[e.makeBytes(e.toUtf8ByteArray(t))]}},{key:"makeEci",value:function(t){var n=[];if(t<0)throw new RangeError("ECI assignment value out of range");if(t<128)TL(t,8,n);else if(t<16384)TL(2,2,n),TL(t,14,n);else{if(!(t<1e6))throw new RangeError("ECI assignment value out of range");TL(6,3,n),TL(t,21,n)}return new e(HL.ECI,0,n)}},{key:"isNumeric",value:function(t){return e.NUMERIC_REGEX.test(t)}},{key:"isAlphanumeric",value:function(t){return e.ALPHANUMERIC_REGEX.test(t)}},{key:"getTotalBits",value:function(e,t){var n,o=0,r=jL(e);try{for(r.s();!(n=r.n()).done;){var i=n.value,a=i.mode.numCharCountBits(t);if(i.numChars>=1<<a)return 1/0;o+=4+a+i.bitData.length}}catch(l){r.e(l)}finally{r.f()}return o}},{key:"toUtf8ByteArray",value:function(e){for(var t=encodeURI(e),n=[],o=0;o<t.length;o++)"%"!=t.charAt(o)?n.push(t.charCodeAt(o)):(n.push(parseInt(t.substring(o+1,o+3),16)),o+=2);return n}}]),e}();(0,Ee.A)(LL,"NUMERIC_REGEX",/^[0-9]*$/),(0,Ee.A)(LL,"ALPHANUMERIC_REGEX",/^[A-Z0-9 $%*+.\/:-]*$/),(0,Ee.A)(LL,"ALPHANUMERIC_CHARSET","0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:");var FL=function(){function e(t,n,o,r){K(this,e),(0,Ee.A)(this,"size",void 0),(0,Ee.A)(this,"mask",void 0),(0,Ee.A)(this,"modules",[]),(0,Ee.A)(this,"isFunction",[]),(0,Ee.A)(this,"version",void 0),(0,Ee.A)(this,"errorCorrectionLevel",void 0);var i=r;if(this.version=t,this.errorCorrectionLevel=n,t<e.MIN_VERSION||t>e.MAX_VERSION)throw new RangeError("Version value out of range");if(i<-1||i>7)throw new RangeError("Mask value out of range");this.size=4*t+17;for(var a=[],l=0;l<this.size;l++)a.push(!1);for(var c=0;c<this.size;c++)this.modules.push(a.slice()),this.isFunction.push(a.slice());this.drawFunctionPatterns();var s=this.addEccAndInterleave(o);if(this.drawCodewords(s),-1==i)for(var u=1e9,d=0;d<8;d++){this.applyMask(d),this.drawFormatBits(d);var p=this.getPenaltyScore();p<u&&(i=d,u=p),this.applyMask(d)}BL(0<=i&&i<=7),this.mask=i,this.applyMask(i),this.drawFormatBits(i),this.isFunction=[]}return X(e,[{key:"getModule",value:function(e,t){return 0<=e&&e<this.size&&0<=t&&t<this.size&&this.modules[t][e]}},{key:"getModules",value:function(){return this.modules}},{key:"drawFunctionPatterns",value:function(){for(var 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);for(var t=this.getAlignmentPatternPositions(),n=t.length,o=0;o<n;o++)for(var r=0;r<n;r++)0==o&&0==r||0==o&&r==n-1||o==n-1&&0==r||this.drawAlignmentPattern(t[o],t[r]);this.drawFormatBits(0),this.drawVersion()}},{key:"drawFormatBits",value:function(e){for(var t=this.errorCorrectionLevel.formatBits<<3|e,n=t,o=0;o<10;o++)n=n<<1^1335*(n>>>9);var r=21522^(t<<10|n);BL(r>>>15==0);for(var i=0;i<=5;i++)this.setFunctionModule(8,i,zL(r,i));this.setFunctionModule(8,7,zL(r,6)),this.setFunctionModule(8,8,zL(r,7)),this.setFunctionModule(7,8,zL(r,8));for(var a=9;a<15;a++)this.setFunctionModule(14-a,8,zL(r,a));for(var l=0;l<8;l++)this.setFunctionModule(this.size-1-l,8,zL(r,l));for(var c=8;c<15;c++)this.setFunctionModule(8,this.size-15+c,zL(r,c));this.setFunctionModule(8,this.size-8,!0)}},{key:"drawVersion",value:function(){if(!(this.version<7)){for(var e=this.version,t=0;t<12;t++)e=e<<1^7973*(e>>>11);var n=this.version<<12|e;BL(n>>>18==0);for(var o=0;o<18;o++){var r=zL(n,o),i=this.size-11+o%3,a=Math.floor(o/3);this.setFunctionModule(i,a,r),this.setFunctionModule(a,i,r)}}}},{key:"drawFinderPattern",value:function(e,t){for(var n=-4;n<=4;n++)for(var o=-4;o<=4;o++){var r=Math.max(Math.abs(o),Math.abs(n)),i=e+o,a=t+n;0<=i&&i<this.size&&0<=a&&a<this.size&&this.setFunctionModule(i,a,2!=r&&4!=r)}}},{key:"drawAlignmentPattern",value:function(e,t){for(var n=-2;n<=2;n++)for(var o=-2;o<=2;o++)this.setFunctionModule(e+o,t+n,1!=Math.max(Math.abs(o),Math.abs(n)))}},{key:"setFunctionModule",value:function(e,t,n){this.modules[t][e]=n,this.isFunction[t][e]=!0}},{key:"addEccAndInterleave",value:function(t){var n=this.version,o=this.errorCorrectionLevel;if(t.length!=e.getNumDataCodewords(n,o))throw new RangeError("Invalid argument");for(var r=e.NUM_ERROR_CORRECTION_BLOCKS[o.ordinal][n],i=e.ECC_CODEWORDS_PER_BLOCK[o.ordinal][n],a=Math.floor(e.getNumRawDataModules(n)/8),l=r-a%r,c=Math.floor(a/r),s=[],u=e.reedSolomonComputeDivisor(i),d=0,p=0;d<r;d++){var f=t.slice(p,p+c-i+(d<l?0:1));p+=f.length;var m=e.reedSolomonComputeRemainder(f,u);d<l&&f.push(0),s.push(f.concat(m))}for(var g=[],v=function(e){s.forEach(function(t,n){(e!=c-i||n>=l)&&g.push(t[e])})},h=0;h<s[0].length;h++)v(h);return BL(g.length==a),g}},{key:"drawCodewords",value:function(t){if(t.length!=Math.floor(e.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");for(var n=0,o=this.size-1;o>=1;o-=2){6==o&&(o=5);for(var r=0;r<this.size;r++)for(var i=0;i<2;i++){var a=o-i,l=0==(o+1&2)?this.size-1-r:r;!this.isFunction[l][a]&&n<8*t.length&&(this.modules[l][a]=zL(t[n>>>3],7-(7&n)),n++)}}BL(n==8*t.length)}},{key:"applyMask",value:function(e){if(e<0||e>7)throw new RangeError("Mask value out of range");for(var t=0;t<this.size;t++)for(var n=0;n<this.size;n++){var o=void 0;switch(e){case 0:o=(n+t)%2==0;break;case 1:o=t%2==0;break;case 2:o=n%3==0;break;case 3:o=(n+t)%3==0;break;case 4:o=(Math.floor(n/3)+Math.floor(t/2))%2==0;break;case 5:o=n*t%2+n*t%3==0;break;case 6:o=(n*t%2+n*t%3)%2==0;break;case 7:o=((n+t)%2+n*t%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[t][n]&&o&&(this.modules[t][n]=!this.modules[t][n])}}},{key:"getPenaltyScore",value:function(){for(var t=0,n=0;n<this.size;n++){for(var o=!1,r=0,i=[0,0,0,0,0,0,0],a=0;a<this.size;a++)this.modules[n][a]==o?5==++r?t+=e.PENALTY_N1:r>5&&t++:(this.finderPenaltyAddHistory(r,i),o||(t+=this.finderPenaltyCountPatterns(i)*e.PENALTY_N3),o=this.modules[n][a],r=1);t+=this.finderPenaltyTerminateAndCount(o,r,i)*e.PENALTY_N3}for(var l=0;l<this.size;l++){for(var c=!1,s=0,u=[0,0,0,0,0,0,0],d=0;d<this.size;d++)this.modules[d][l]==c?5==++s?t+=e.PENALTY_N1:s>5&&t++:(this.finderPenaltyAddHistory(s,u),c||(t+=this.finderPenaltyCountPatterns(u)*e.PENALTY_N3),c=this.modules[d][l],s=1);t+=this.finderPenaltyTerminateAndCount(c,s,u)*e.PENALTY_N3}for(var p=0;p<this.size-1;p++)for(var f=0;f<this.size-1;f++){var m=this.modules[p][f];m==this.modules[p][f+1]&&m==this.modules[p+1][f]&&m==this.modules[p+1][f+1]&&(t+=e.PENALTY_N2)}var g,v=0,h=jL(this.modules);try{for(h.s();!(g=h.n()).done;){v=g.value.reduce(function(e,t){return e+(t?1:0)},v)}}catch(C){h.e(C)}finally{h.f()}var b=this.size*this.size,y=Math.ceil(Math.abs(20*v-10*b)/b)-1;return BL(0<=y&&y<=9),BL(0<=(t+=y*e.PENALTY_N4)&&t<=2568888),t}},{key:"getAlignmentPatternPositions",value:function(){if(1==this.version)return[];for(var e=Math.floor(this.version/7)+2,t=32==this.version?26:2*Math.ceil((4*this.version+4)/(2*e-2)),n=[6],o=this.size-7;n.length<e;o-=t)n.splice(1,0,o);return n}},{key:"finderPenaltyCountPatterns",value:function(e){var t=e[1];BL(t<=3*this.size);var n=t>0&&e[2]==t&&e[3]==3*t&&e[4]==t&&e[5]==t;return(n&&e[0]>=4*t&&e[6]>=t?1:0)+(n&&e[6]>=4*t&&e[0]>=t?1:0)}},{key:"finderPenaltyTerminateAndCount",value:function(e,t,n){var o=t;return e&&(this.finderPenaltyAddHistory(o,n),o=0),o+=this.size,this.finderPenaltyAddHistory(o,n),this.finderPenaltyCountPatterns(n)}},{key:"finderPenaltyAddHistory",value:function(e,t){var n=e;0==t[0]&&(n+=this.size),t.pop(),t.unshift(n)}}],[{key:"encodeText",value:function(t,n){var o=LL.makeSegments(t);return e.encodeSegments(o,n)}},{key:"encodeBinary",value:function(t,n){var o=LL.makeBytes(t);return e.encodeSegments([o],n)}},{key:"encodeSegments",value:function(t,n){var o,r,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:40,l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1,c=!(arguments.length>5&&void 0!==arguments[5])||arguments[5];if(!(e.MIN_VERSION<=i&&i<=a&&a<=e.MAX_VERSION)||l<-1||l>7)throw new RangeError("Invalid value");for(o=i;;o++){var s=8*e.getNumDataCodewords(o,n),u=LL.getTotalBits(t,o);if(u<=s){r=u;break}if(o>=a)throw new RangeError("Data too long")}for(var d=n,p=0,f=[DL.MEDIUM,DL.QUARTILE,DL.HIGH];p<f.length;p++){var m=f[p];c&&r<=8*e.getNumDataCodewords(o,m)&&(d=m)}var g,v=[],h=jL(t);try{for(h.s();!(g=h.n()).done;){var b=g.value;TL(b.mode.modeBits,4,v),TL(b.numChars,b.mode.numCharCountBits(o),v);var y,C=jL(b.getData());try{for(C.s();!(y=C.n()).done;){var x=y.value;v.push(x)}}catch(k){C.e(k)}finally{C.f()}}}catch(k){h.e(k)}finally{h.f()}BL(v.length==r);var $=8*e.getNumDataCodewords(o,d);BL(v.length<=$),TL(0,Math.min(4,$-v.length),v),TL(0,(8-v.length%8)%8,v),BL(v.length%8==0);for(var w=236;v.length<$;w^=253)TL(w,8,v);for(var S=[];8*S.length<v.length;)S.push(0);return v.forEach(function(e,t){return S[t>>>3]|=e<<7-(7&t)}),new e(o,d,S,l)}},{key:"getNumRawDataModules",value:function(t){if(t<e.MIN_VERSION||t>e.MAX_VERSION)throw new RangeError("Version number out of range");var n=(16*t+128)*t+64;if(t>=2){var o=Math.floor(t/7)+2;n-=(25*o-10)*o-55,t>=7&&(n-=36)}return BL(208<=n&&n<=29648),n}},{key:"getNumDataCodewords",value:function(t,n){return Math.floor(e.getNumRawDataModules(t)/8)-e.ECC_CODEWORDS_PER_BLOCK[n.ordinal][t]*e.NUM_ERROR_CORRECTION_BLOCKS[n.ordinal][t]}},{key:"reedSolomonComputeDivisor",value:function(t){if(t<1||t>255)throw new RangeError("Degree out of range");for(var n=[],o=0;o<t-1;o++)n.push(0);n.push(1);for(var r=1,i=0;i<t;i++){for(var a=0;a<n.length;a++)n[a]=e.reedSolomonMultiply(n[a],r),a+1<n.length&&(n[a]^=n[a+1]);r=e.reedSolomonMultiply(r,2)}return n}},{key:"reedSolomonComputeRemainder",value:function(t,n){var o,r=n.map(function(){return 0}),i=jL(t);try{var a=function(){var t=o.value^r.shift();r.push(0),n.forEach(function(n,o){return r[o]^=e.reedSolomonMultiply(n,t)})};for(i.s();!(o=i.n()).done;)a()}catch(l){i.e(l)}finally{i.f()}return r}},{key:"reedSolomonMultiply",value:function(e,t){if(e>>>8!=0||t>>>8!=0)throw new RangeError("Byte out of range");for(var n=0,o=7;o>=0;o--)n=n<<1^285*(n>>>7),n^=(t>>>o&1)*e;return BL(n>>>8==0),n}}]),e}();(0,Ee.A)(FL,"MIN_VERSION",1),(0,Ee.A)(FL,"MAX_VERSION",40),(0,Ee.A)(FL,"PENALTY_N1",3),(0,Ee.A)(FL,"PENALTY_N2",3),(0,Ee.A)(FL,"PENALTY_N3",40),(0,Ee.A)(FL,"PENALTY_N4",10),(0,Ee.A)(FL,"ECC_CODEWORDS_PER_BLOCK",[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]]),(0,Ee.A)(FL,"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 WL={L:DL.LOW,M:DL.MEDIUM,Q:DL.QUARTILE,H:DL.HIGH},_L="#FFFFFF",KL="#000000",qL=!1;function VL(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[];return e.forEach(function(e,o){var r=null;e.forEach(function(i,a){if(!i&&null!==r)return n.push("M".concat(r+t," ").concat(o+t,"h").concat(a-r,"v1H").concat(r+t,"z")),void(r=null);if(a!==e.length-1)i&&null===r&&(r=a);else{if(!i)return;null===r?n.push("M".concat(a+t,",").concat(o+t," h1v1H").concat(a+t,"z")):n.push("M".concat(r+t,",").concat(o+t," h").concat(a+1-r,"v1H").concat(r+t,"z"))}})}),n.join("")}function XL(e,t){return e.slice().map(function(e,n){return n<t.y||n>=t.y+t.h?e:e.map(function(e,n){return(n<t.x||n>=t.x+t.w)&&e})})}var GL=function(){try{(new Path2D).addPath(new Path2D)}catch($i){return!1}return!0}();function YL(e){var t=e.value,n=e.level,r=e.minVersion,i=e.includeMargin,a=e.marginSize,l=e.imageSettings,c=e.size,s=(0,o.useMemo)(function(){var e=LL.makeSegments(t);return FL.encodeSegments(e,WL[n],r)},[t,n,r]),u=(0,o.useMemo)(function(){var e=s.getModules(),t=function(e,t){return null!=t?Math.floor(t):e?4:0}(i,a),n=e.length+2*t,o=function(e,t,n,o){if(null==o)return null;var r=e.length+2*n,i=Math.floor(.1*t),a=r/t,l=(o.width||i)*a,c=(o.height||i)*a,s=null==o.x?e.length/2-l/2:o.x*a,u=null==o.y?e.length/2-c/2:o.y*a,d=null==o.opacity?1:o.opacity,p=null;if(o.excavate){var f=Math.floor(s),m=Math.floor(u);p={x:f,y:m,w:Math.ceil(l+s-f),h:Math.ceil(c+u-m)}}return{x:s,y:u,h:c,w:l,excavation:p,opacity:d,crossOrigin:o.crossOrigin}}(e,c,t,l);return{cells:e,margin:t,numCells:n,calculatedImageSettings:o}},[s,c,l,i,a]),d=u.cells,p=u.margin,f=u.numCells,m=u.calculatedImageSettings;return{qrcode:s,margin:p,cells:d,numCells:f,calculatedImageSettings:m}}var UL=["value","size","level","bgColor","fgColor","includeMargin","minVersion","marginSize","style","imageSettings"],QL=r().forwardRef(function(e,t){var n=e.value,i=e.size,a=void 0===i?128:i,c=e.level,s=void 0===c?"L":c,u=e.bgColor,p=void 0===u?_L:u,f=e.fgColor,m=void 0===f?KL:f,g=e.includeMargin,v=void 0===g?qL:g,h=e.minVersion,b=void 0===h?1:h,y=e.marginSize,C=e.style,x=e.imageSettings,$=(0,cr.A)(e,UL),w=null===x||void 0===x?void 0:x.src,S=(0,o.useRef)(null),k=(0,o.useRef)(null),E=(0,o.useCallback)(function(e){S.current=e,"function"===typeof t?t(e):t&&(t.current=e)},[t]),O=(0,o.useState)(!1),A=(0,ke.A)(O,2)[1],I=YL({value:n,level:s,minVersion:b,includeMargin:v,marginSize:y,imageSettings:x,size:a}),N=I.margin,M=I.cells,j=I.numCells,P=I.calculatedImageSettings;(0,o.useEffect)(function(){if(null!=S.current){var e=S.current,t=e.getContext("2d");if(!t)return;var n=M,o=k.current,r=null!=P&&null!==o&&o.complete&&0!==o.naturalHeight&&0!==o.naturalWidth;r&&null!=P.excavation&&(n=XL(M,P.excavation));var i=window.devicePixelRatio||1;e.height=e.width=a*i;var l=a/j*i;t.scale(l,l),t.fillStyle=p,t.fillRect(0,0,j,j),t.fillStyle=m,GL?t.fill(new Path2D(VL(n,N))):M.forEach(function(e,n){e.forEach(function(e,o){e&&t.fillRect(o+N,n+N,1,1)})}),P&&(t.globalAlpha=P.opacity),r&&t.drawImage(o,P.x+N,P.y+N,P.w,P.h)}}),(0,o.useEffect)(function(){A(!1)},[w]);var R=(0,d.A)({height:a,width:a},C),T=null;return null!=w&&(T=r().createElement("img",{src:w,key:w,style:{display:"none"},onLoad:function(){A(!0)},ref:k,crossOrigin:null===P||void 0===P?void 0:P.crossOrigin})),r().createElement(r().Fragment,null,r().createElement("canvas",(0,l.A)({style:R,height:a,width:a,ref:E,role:"img"},$)),T)});QL.displayName="QRCodeCanvas";var ZL=["value","size","level","bgColor","fgColor","includeMargin","minVersion","title","marginSize","imageSettings"],JL=r().forwardRef(function(e,t){var n=e.value,o=e.size,i=void 0===o?128:o,a=e.level,c=void 0===a?"L":a,s=e.bgColor,u=void 0===s?_L:s,d=e.fgColor,p=void 0===d?KL:d,f=e.includeMargin,m=void 0===f?qL:f,g=e.minVersion,v=void 0===g?1:g,h=e.title,b=e.marginSize,y=e.imageSettings,C=(0,cr.A)(e,ZL),x=YL({value:n,level:c,minVersion:v,includeMargin:m,marginSize:b,imageSettings:y,size:i}),$=x.margin,w=x.cells,S=x.numCells,k=x.calculatedImageSettings,E=w,O=null;null!=y&&null!=k&&(null!=k.excavation&&(E=XL(w,k.excavation)),O=r().createElement("image",{href:y.src,height:k.h,width:k.w,x:k.x+$,y:k.y+$,preserveAspectRatio:"none",opacity:k.opacity,crossOrigin:k.crossOrigin}));var A=VL(E,$);return r().createElement("svg",(0,l.A)({height:i,width:i,viewBox:"0 0 ".concat(S," ").concat(S),ref:t,role:"img"},C),!!h&&r().createElement("title",null,h),r().createElement("path",{fill:u,d:"M0,0 h".concat(S,"v").concat(S,"H0z"),shapeRendering:"crispEdges"}),r().createElement("path",{fill:p,d:A,shapeRendering:"crispEdges"}),O)});JL.displayName="QRCodeSVG";var eF=n(39971);const tF=r().createElement(PH,null);function nF(e){let{prefixCls:t,locale:n,onRefresh:o,statusRender:i,status:a}=e;const l=r().createElement(r().Fragment,null,r().createElement("p",{className:`${t}-expired`},null===n||void 0===n?void 0:n.expired),o&&r().createElement(Su,{type:"link",icon:r().createElement(eF.ReloadOutlined,null),onClick:o},null===n||void 0===n?void 0:n.refresh)),c=r().createElement("p",{className:`${t}-scanned`},null===n||void 0===n?void 0:n.scanned),s={expired:l,loading:tF,scanned:c};return(null!==i&&void 0!==i?i:e=>s[e.status])({status:a,locale:n,onRefresh:o})}const oF=qo("QRCode",e=>(e=>{const{componentCls:t,lineWidth:n,lineType:o,colorSplit:r}=e;return{[t]:Object.assign(Object.assign({},po(e)),{display:"flex",justifyContent:"center",alignItems:"center",padding:e.paddingSM,backgroundColor:e.colorWhite,borderRadius:e.borderRadiusLG,border:`${nt(n)} ${o} ${r}`,position:"relative",overflow:"hidden",[`& > ${t}-mask`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:10,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",color:e.colorText,lineHeight:e.lineHeight,background:e.QRCodeMaskBackgroundColor,textAlign:"center",[`& > ${t}-expired, & > ${t}-scanned`]:{color:e.QRCodeTextColor}},"> canvas":{alignSelf:"stretch",flex:"auto",minWidth:0},"&-icon":{marginBlockEnd:e.marginXS,fontSize:e.controlHeight}}),[`${t}-borderless`]:{borderColor:"transparent",padding:0,borderRadius:0}}})(Jn(e,{QRCodeTextColor:e.colorText})),e=>({QRCodeMaskBackgroundColor:new wo.Y(e.colorBgContainer).setA(.96).toRgbString()}));var rF=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const iF=e=>{var t,n,i,l;const[,c]=Ko(),{value:s,type:u="canvas",icon:d="",size:p=160,iconSize:f,color:m=c.colorText,errorLevel:g="M",status:v="active",bordered:h=!0,onRefresh:b,style:y,className:C,rootClassName:x,prefixCls:$,bgColor:w="transparent",statusRender:S}=e,k=rF(e,["value","type","icon","size","iconSize","color","errorLevel","status","bordered","onRefresh","style","className","rootClassName","prefixCls","bgColor","statusRender"]),{getPrefixCls:E}=(0,o.useContext)(xe),O=E("qrcode",$),[A,I,N]=oF(O),M={src:d,x:void 0,y:void 0,height:"number"===typeof f?f:null!==(t=null===f||void 0===f?void 0:f.height)&&void 0!==t?t:40,width:"number"===typeof f?f:null!==(n=null===f||void 0===f?void 0:f.width)&&void 0!==n?n:40,excavate:!0,crossOrigin:"anonymous"},j=ni(k,!0),P=Ul(k,Object.keys(j)),R=Object.assign({value:s,size:p,level:g,bgColor:w,fgColor:m,style:{width:null===y||void 0===y?void 0:y.width,height:null===y||void 0===y?void 0:y.height},imageSettings:d?M:void 0},j),[T]=Yl("QRCode");if(!s)return null;const z=a()(O,C,x,I,N,{[`${O}-borderless`]:!h}),B=Object.assign(Object.assign({backgroundColor:w},y),{width:null!==(i=null===y||void 0===y?void 0:y.width)&&void 0!==i?i:p,height:null!==(l=null===y||void 0===y?void 0:y.height)&&void 0!==l?l:p});return A(r().createElement("div",Object.assign({},P,{className:z,style:B}),"active"!==v&&r().createElement("div",{className:`${O}-mask`},r().createElement(nF,{prefixCls:O,locale:T,status:v,onRefresh:b,statusRender:S})),"canvas"===u?r().createElement(QL,Object.assign({},R)):r().createElement(JL,Object.assign({},R))))},aF=Ck;aF.Button=jk,aF.Group=Nk,aF.__ANT_RADIO=!0;const lF=aF;var cF=n(70880);const sF=r().forwardRef(function(e,t){var n=e.disabled,o=e.prefixCls,i=e.character,l=e.characterRender,c=e.index,s=e.count,u=e.value,d=e.allowHalf,p=e.focused,f=e.onHover,m=e.onClick,g=c+1,v=new Set([o]);0===u&&0===c&&p?v.add("".concat(o,"-focused")):d&&u+.5>=g&&u<g?(v.add("".concat(o,"-half")),v.add("".concat(o,"-active")),p&&v.add("".concat(o,"-focused"))):(g<=u?v.add("".concat(o,"-full")):v.add("".concat(o,"-zero")),g===u&&p&&v.add("".concat(o,"-focused")));var h="function"===typeof i?i(e):i,b=r().createElement("li",{className:a()(Array.from(v)),ref:t},r().createElement("div",{onClick:n?null:function(e){m(e,c)},onKeyDown:n?null:function(e){e.keyCode===Xi.ENTER&&m(e,c)},onMouseMove:n?null:function(e){f(e,c)},role:"radio","aria-checked":u>c?"true":"false","aria-posinset":c+1,"aria-setsize":s,tabIndex:n?-1:0},r().createElement("div",{className:"".concat(o,"-first")},h),r().createElement("div",{className:"".concat(o,"-second")},h)));return l&&(b=l(b,e)),b});var uF=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","keyboard","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];const dF=r().forwardRef(function(e,t){var n=e.prefixCls,i=void 0===n?"rc-rate":n,c=e.className,s=e.defaultValue,u=e.value,d=e.count,p=void 0===d?5:d,f=e.allowHalf,m=void 0!==f&&f,g=e.allowClear,v=void 0===g||g,h=e.keyboard,b=void 0===h||h,y=e.character,C=void 0===y?"\u2605":y,x=e.characterRender,$=e.disabled,w=e.direction,S=void 0===w?"ltr":w,k=e.tabIndex,E=void 0===k?0:k,O=e.autoFocus,A=e.onHoverChange,I=e.onChange,N=e.onFocus,M=e.onBlur,j=e.onKeyDown,P=e.onMouseLeave,R=(0,cr.A)(e,uF),T=function(){var e=o.useRef({});return[function(t){return e.current[t]},function(t){return function(n){e.current[t]=n}}]}(),z=(0,ke.A)(T,2),B=z[0],H=z[1],D=r().useRef(null),L=function(){var e;$||(null===(e=D.current)||void 0===e||e.focus())};r().useImperativeHandle(t,function(){return{focus:L,blur:function(){var e;$||(null===(e=D.current)||void 0===e||e.blur())}}});var F=Ln(s||0,{value:u}),W=(0,ke.A)(F,2),_=W[0],K=W[1],q=Ln(null),V=(0,ke.A)(q,2),X=V[0],G=V[1],Y=function(e,t){var n="rtl"===S,o=e+1;if(m){var r=B(e),i=function(e){var t=function(e){var t,n,o=e.ownerDocument,r=o.body,i=o&&o.documentElement,a=e.getBoundingClientRect();return t=a.left,n=a.top,{left:t-=i.clientLeft||r.clientLeft||0,top:n-=i.clientTop||r.clientTop||0}}(e),n=e.ownerDocument,o=n.defaultView||n.parentWindow;return t.left+=function(e){var t=e.pageXOffset,n="scrollLeft";if("number"!==typeof t){var o=e.document;"number"!==typeof(t=o.documentElement[n])&&(t=o.body[n])}return t}(o),t.left}(r),a=r.clientWidth;(n&&t-i>a/2||!n&&t-i<a/2)&&(o-=.5)}return o},U=function(e){K(e),null===I||void 0===I||I(e)},Q=r().useState(!1),Z=(0,ke.A)(Q,2),J=Z[0],ee=Z[1],te=r().useState(null),ne=(0,ke.A)(te,2),oe=ne[0],re=ne[1],ie=function(e,t){var n=Y(t,e.pageX);n!==X&&(re(n),G(null)),null===A||void 0===A||A(n)},ae=function(e){$||(re(null),G(null),null===A||void 0===A||A(void 0)),e&&(null===P||void 0===P||P(e))},le=function(e,t){var n=Y(t,e.pageX),o=!1;v&&(o=n===_),ae(),U(o?0:n),G(o?n:null)};r().useEffect(function(){O&&!$&&L()},[]);var ce=new Array(p).fill(0).map(function(e,t){return r().createElement(sF,{ref:H(t),index:t,count:p,disabled:$,prefixCls:"".concat(i,"-star"),allowHalf:m,value:null===oe?_:oe,onClick:le,onHover:ie,key:e||t,character:C,characterRender:x,focused:J})}),se=a()(i,c,(0,Ee.A)((0,Ee.A)({},"".concat(i,"-disabled"),$),"".concat(i,"-rtl"),"rtl"===S));return r().createElement("ul",(0,l.A)({className:se,onMouseLeave:ae,tabIndex:$?-1:E,onFocus:$?null:function(){ee(!0),null===N||void 0===N||N()},onBlur:$?null:function(){ee(!1),null===M||void 0===M||M()},onKeyDown:$?null:function(e){var t=e.keyCode,n="rtl"===S,o=m?.5:1;b&&(t===Xi.RIGHT&&_<p&&!n?(U(_+o),e.preventDefault()):t===Xi.LEFT&&_>0&&!n||t===Xi.RIGHT&&_>0&&n?(U(_-o),e.preventDefault()):t===Xi.LEFT&&_<p&&n&&(U(_+o),e.preventDefault())),null===j||void 0===j||j(e)},ref:D},ni(R,{aria:!0,data:!0,attr:!0})),ce)}),pF=dF,fF=e=>{const{componentCls:t}=e;return{[`${t}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:e.marginXS},"> div":{transition:`all ${e.motionDurationMid}, outline 0s`,"&:hover":{transform:e.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${nt(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"}}}},mF=e=>({[`&-rtl${e.componentCls}`]:{direction:"rtl"}}),gF=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},po(e)),{display:"inline-block",margin:0,padding:0,color:e.starColor,fontSize:e.starSize,lineHeight:1,listStyle:"none",outline:"none",[`&-disabled${t} ${t}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),fF(e)),mF(e))}},vF=qo("Rate",e=>{const t=Jn(e,{});return[gF(t)]},e=>({starColor:e.yellow6,starSize:.5*e.controlHeightLG,starHoverScale:"scale(1.1)",starBg:e.colorFillContent}));var hF=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const bF=o.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:i,style:l,tooltips:c,character:s=o.createElement(cF.A,null),disabled:u}=e,d=hF(e,["prefixCls","className","rootClassName","style","tooltips","character","disabled"]),{getPrefixCls:p,direction:f,rate:m}=o.useContext(xe),g=p("rate",n),[v,h,b]=vF(g),y=Object.assign(Object.assign({},null===m||void 0===m?void 0:m.style),l),C=o.useContext(Ga),x=null!==u&&void 0!==u?u:C;return v(o.createElement(pF,Object.assign({ref:t,character:s,characterRender:(e,t)=>{let{index:n}=t;return c?o.createElement(hy,{title:c[n]},e):e},disabled:x},d,{className:a()(r,i,h,b,null===m||void 0===m?void 0:m.className),style:y,prefixCls:g,direction:f})))});const yF=bF;var CF=n(34686);const xF=()=>o.createElement("svg",{width:"252",height:"294"},o.createElement("title",null,"No Found"),o.createElement("g",{fill:"none",fillRule:"evenodd"},o.createElement("circle",{cx:"126.75",cy:"128.1",r:"126",fill:"#E4EBF7"}),o.createElement("circle",{cx:"31.55",cy:"130.8",r:"8.3",fill:"#FFF"}),o.createElement("path",{stroke:"#FFF",d:"m37 134.3 10.5 6m.9 6.2-12.7 10.8",strokeWidth:"2"}),o.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"}),o.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"}),o.createElement("path",{stroke:"#FFF",d:"m179.3 141.8 12.6 7.1m1.1 7.6-15.2 13",strokeWidth:"2"}),o.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"}),o.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"}),o.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"}),o.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"}),o.createElement("circle",{cx:"204.3",cy:"30",r:"29.5",fill:"#1677ff"}),o.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"}),o.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"}),o.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"}),o.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"}),o.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"}),o.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"}),o.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"}),o.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"}),o.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"}),o.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"}),o.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"}),o.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"}),o.createElement("path",{stroke:"#648BD8",d:"M107.3 222.1s2.7-1.1 6-3.9",strokeLinecap:"round",strokeLinejoin:"round"}),o.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"}),o.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"}),o.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"}),o.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"}),o.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"}),o.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"}),o.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"}),o.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"}),o.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"}),o.createElement("path",{stroke:"#DB836E",d:"m110.1 74.8-.9 1.7-.3 4.3h-2.2",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),o.createElement("path",{stroke:"#5C2552",d:"M110.8 74.5s1.8-.7 2.6.5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),o.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"}),o.createElement("path",{stroke:"#5C2552",d:"M103.3 73s1.8 1 4.1.9",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),o.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"}),o.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"}),o.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"}),o.createElement("path",{fill:"#F4D19D",d:"M150.3 151.2h-19.9v-33.7h20.8v32.8a1 1 0 0 1-1 1"}),o.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"}),o.createElement("path",{fill:"#CC9B6E",d:"M123.7 128.4H99.2v-.5h24.2l7.2-10.2.4.3z"}),o.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"}),o.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"}),o.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"}),o.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"}),o.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"}),o.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"}),o.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"}),o.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"}),o.createElement("path",{stroke:"#E4EBF7",d:"M89 89.5s7.8 5.4 16.6 2.8",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}))),$F=()=>o.createElement("svg",{width:"254",height:"294"},o.createElement("title",null,"Server Error"),o.createElement("g",{fill:"none",fillRule:"evenodd"},o.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"}),o.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"}),o.createElement("path",{stroke:"#FFF",d:"m37.2 135.6 10.5 6m1 6.3-12.8 10.8",strokeWidth:"2"}),o.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"}),o.createElement("circle",{cx:"201.35",cy:"30.2",r:"29.7",fill:"#FF603B"}),o.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"}),o.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"}),o.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"}),o.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"}),o.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"}),o.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"}),o.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"}),o.createElement("path",{stroke:"#DB836E",d:"m99.2 73.6-.9 1.7-.3 4.3h-2.2",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),o.createElement("path",{stroke:"#5C2552",d:"M100 73.3s1.7-.7 2.4.5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),o.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"}),o.createElement("path",{stroke:"#5C2552",d:"M92.3 71.7s1.9 1.1 4.2 1",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),o.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"}),o.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"}),o.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"}),o.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"}),o.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"}),o.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"}),o.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"}),o.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"}),o.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"}),o.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"}),o.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"}),o.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"}),o.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"}),o.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"}),o.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"}),o.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"}),o.createElement("path",{stroke:"#648BD8",d:"M97 219.4s2.9-1.2 6.3-4",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1"}),o.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"}),o.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"}),o.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"}),o.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"}),o.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"}),o.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"}),o.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"}),o.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"}),o.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"}),o.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"}),o.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"}),o.createElement("path",{stroke:"#E4EBF7",d:"M109.3 112.5s3.4-3.6 7.6-4.6",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),o.createElement("path",{stroke:"#E59788",d:"M107.4 123s9.7-2.7 11.4-.9",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".8"}),o.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"}),o.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"}),o.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"}),o.createElement("path",{fill:"#A3B4C6",d:"M154.1 190.1h70.5v-84.6h-70.5z"}),o.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"}),o.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"}),o.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"}),o.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"}),o.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"}),o.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"}),o.createElement("path",{stroke:"#A3B4C6",d:"M177.3 207.2v11.5m23.8-11.5v11.5",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),o.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"}),o.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"}),o.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"}))),wF=e=>{const{componentCls:t,lineHeightHeading3:n,iconCls:o,padding:r,paddingXL:i,paddingXS:a,paddingLG:l,marginXS:c,lineHeight:s}=e;return{[t]:{padding:`${nt(e.calc(l).mul(2).equal())} ${nt(i)}`,"&-rtl":{direction:"rtl"}},[`${t} ${t}-image`]:{width:e.imageWidth,height:e.imageHeight,margin:"auto"},[`${t} ${t}-icon`]:{marginBottom:l,textAlign:"center",[`& > ${o}`]:{fontSize:e.iconFontSize}},[`${t} ${t}-title`]:{color:e.colorTextHeading,fontSize:e.titleFontSize,lineHeight:n,marginBlock:c,textAlign:"center"},[`${t} ${t}-subtitle`]:{color:e.colorTextDescription,fontSize:e.subtitleFontSize,lineHeight:s,textAlign:"center"},[`${t} ${t}-content`]:{marginTop:l,padding:`${nt(l)} ${nt(e.calc(r).mul(2.5).equal())}`,backgroundColor:e.colorFillAlter},[`${t} ${t}-extra`]:{margin:e.extraMargin,textAlign:"center","& > *":{marginInlineEnd:a,"&:last-child":{marginInlineEnd:0}}}}},SF=e=>{const{componentCls:t,iconCls:n}=e;return{[`${t}-success ${t}-icon > ${n}`]:{color:e.resultSuccessIconColor},[`${t}-error ${t}-icon > ${n}`]:{color:e.resultErrorIconColor},[`${t}-info ${t}-icon > ${n}`]:{color:e.resultInfoIconColor},[`${t}-warning ${t}-icon > ${n}`]:{color:e.resultWarningIconColor}}},kF=e=>(e=>[wF(e),SF(e)])(e),EF=qo("Result",e=>{const t=Jn(e,{resultInfoIconColor:e.colorInfo,resultErrorIconColor:e.colorError,resultSuccessIconColor:e.colorSuccess,resultWarningIconColor:e.colorWarning,imageWidth:250,imageHeight:295});return[kF(t)]},e=>({titleFontSize:e.fontSizeHeading3,subtitleFontSize:e.fontSize,iconFontSize:3*e.fontSizeHeading3,extraMargin:`${e.paddingLG}px 0 0 0`})),OF=()=>o.createElement("svg",{width:"251",height:"294"},o.createElement("title",null,"Unauthorized"),o.createElement("g",{fill:"none",fillRule:"evenodd"},o.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"}),o.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"}),o.createElement("path",{stroke:"#FFF",d:"m38.7 136.4 10.4 5.9m.9 6.2-12.6 10.7",strokeWidth:"2"}),o.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"}),o.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"}),o.createElement("path",{stroke:"#FFF",d:"m180.2 143.8 12.5 7.1m1.1 7.5-15.1 13",strokeWidth:"2"}),o.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"}),o.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"}),o.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"}),o.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"}),o.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"}),o.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"}),o.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"}),o.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"}),o.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"}),o.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"}),o.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"}),o.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"}),o.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"}),o.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"}),o.createElement("path",{stroke:"#E4EBF7",d:"M78.2 94.7s.9 7.4-5 13",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),o.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"}),o.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"}),o.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"}),o.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"}),o.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"}),o.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"}),o.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"}),o.createElement("path",{stroke:"#DB836E",d:"M91.1 86.8s5.3 5 12.7 2.3",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),o.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"}),o.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"}),o.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"}),o.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"}),o.createElement("path",{stroke:"#DB836E",d:"M64 84.8s-6 10-13.5 10",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".8"}),o.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"}),o.createElement("path",{stroke:"#DB836E",d:"M130.5 85.5s4.6 5.7 11.7 6.2",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:".8"}),o.createElement("path",{stroke:"#E4EBF7",d:"M121.7 105.7s-.4 8.6-1.3 13.6",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),o.createElement("path",{stroke:"#648BD8",d:"M115.8 161.5s-3.6-1.5-2.7-7.1",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.1"}),o.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"}),o.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"}),o.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"}),o.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"}),o.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"}),o.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"}),o.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"}),o.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"}),o.createElement("path",{stroke:"#648BD8",d:"M108.5 221s2.7-1.2 6-4",strokeLinecap:"round",strokeLinejoin:"round"}),o.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"}),o.createElement("path",{fill:"#192064",d:"M117.4 147.4s-17-3-35.7.2v4.2s14.6-2.9 35.5-.4l.2-4"}),o.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"}),o.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"}),o.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"}))),AF={success:or.A,error:rr.A,info:ar.A,warning:CF.A},IF={404:xF,500:$F,403:OF},NF=Object.keys(IF),MF=e=>{let{prefixCls:t,icon:n,status:r}=e;const i=a()(`${t}-icon`);if(NF.includes(`${r}`)){const e=IF[r];return o.createElement("div",{className:`${i} ${t}-image`},o.createElement(e,null))}const l=o.createElement(AF[r]);return null===n||!1===n?null:o.createElement("div",{className:i},n||l)},jF=e=>{let{prefixCls:t,extra:n}=e;return n?o.createElement("div",{className:`${t}-extra`},n):null},PF=e=>{let{prefixCls:t,className:n,rootClassName:r,subTitle:i,title:l,style:c,children:s,status:u="info",icon:d,extra:p}=e;const{getPrefixCls:f,direction:m,result:g}=o.useContext(xe),v=f("result",t),[h,b,y]=EF(v),C=a()(v,`${v}-${u}`,n,null===g||void 0===g?void 0:g.className,r,{[`${v}-rtl`]:"rtl"===m},b,y),x=Object.assign(Object.assign({},null===g||void 0===g?void 0:g.style),c);return h(o.createElement("div",{className:C,style:x},o.createElement(MF,{prefixCls:v,status:u,icon:d}),o.createElement("div",{className:`${v}-title`},l),i&&o.createElement("div",{className:`${v}-subtitle`},i),o.createElement(jF,{prefixCls:v,extra:p}),s&&o.createElement("div",{className:`${v}-content`},s)))};PF.PRESENTED_IMAGE_403=IF[403],PF.PRESENTED_IMAGE_404=IF[404],PF.PRESENTED_IMAGE_500=IF[500];const RF=PF,TF=VT,zF=e=>{const{value:t,formatter:n,precision:r,decimalSeparator:i,groupSeparator:a="",prefixCls:l}=e;let c;if("function"===typeof n)c=n(t);else{const e=String(t),n=e.match(/^(-?)(\d*)(\.(\d+))?$/);if(n&&"-"!==e){const e=n[1];let t=n[2]||"0",s=n[4]||"";t=t.replace(/\B(?=(\d{3})+(?!\d))/g,a),"number"===typeof r&&(s=s.padEnd(r,"0").slice(0,r>0?r:0)),s&&(s=`${i}${s}`),c=[o.createElement("span",{key:"int",className:`${l}-content-value-int`},e,t),s&&o.createElement("span",{key:"decimal",className:`${l}-content-value-decimal`},s)]}else c=e}return o.createElement("span",{className:`${l}-content-value`},c)},BF=e=>{const{componentCls:t,marginXXS:n,padding:o,colorTextDescription:r,titleFontSize:i,colorTextHeading:a,contentFontSize:l,fontFamily:c}=e;return{[t]:Object.assign(Object.assign({},po(e)),{[`${t}-title`]:{marginBottom:n,color:r,fontSize:i},[`${t}-skeleton`]:{paddingTop:o},[`${t}-content`]:{color:a,fontSize:l,fontFamily:c,[`${t}-content-value`]:{display:"inline-block",direction:"ltr"},[`${t}-content-prefix, ${t}-content-suffix`]:{display:"inline-block"},[`${t}-content-prefix`]:{marginInlineEnd:n},[`${t}-content-suffix`]:{marginInlineStart:n}}})}},HF=qo("Statistic",e=>{const t=Jn(e,{});return[BF(t)]},e=>{const{fontSizeHeading3:t,fontSize:n}=e;return{titleFontSize:n,contentFontSize:t}});var DF=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const LF=o.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:i,style:l,valueStyle:c,value:s=0,title:u,valueRender:d,prefix:p,suffix:f,loading:m=!1,formatter:g,precision:v,decimalSeparator:h=".",groupSeparator:b=",",onMouseEnter:y,onMouseLeave:C}=e,x=DF(e,["prefixCls","className","rootClassName","style","valueStyle","value","title","valueRender","prefix","suffix","loading","formatter","precision","decimalSeparator","groupSeparator","onMouseEnter","onMouseLeave"]),{getPrefixCls:$,direction:w,className:S,style:k}=Se("statistic"),E=$("statistic",n),[O,A,I]=HF(E),N=o.createElement(zF,{decimalSeparator:h,groupSeparator:b,prefixCls:E,formatter:g,precision:v,value:s}),M=a()(E,{[`${E}-rtl`]:"rtl"===w},S,r,i,A,I),j=o.useRef(null);o.useImperativeHandle(t,()=>({nativeElement:j.current}));const P=ni(x,{aria:!0,data:!0});return O(o.createElement("div",Object.assign({},P,{ref:j,className:M,style:Object.assign(Object.assign({},k),l),onMouseEnter:y,onMouseLeave:C}),u&&o.createElement("div",{className:`${E}-title`},u),o.createElement(lf,{paragraph:!1,loading:m,className:`${E}-skeleton`},o.createElement("div",{style:c,className:`${E}-content`},p&&o.createElement("span",{className:`${E}-content-prefix`},p),d?d(N):N,f&&o.createElement("span",{className:`${E}-content-suffix`},f)))))});const FF=LF,WF=[["Y",31536e6],["M",2592e6],["D",864e5],["H",36e5],["m",6e4],["s",1e3],["S",1]];function _F(e,t,n){const{format:o=""}=t,r=new Date(e).getTime(),i=Date.now();return function(e,t){let n=e;const o=/\[[^\]]*]/g,r=(t.match(o)||[]).map(e=>e.slice(1,-1)),i=t.replace(o,"[]"),a=WF.reduce((e,t)=>{let[o,r]=t;if(e.includes(o)){const t=Math.floor(n/r);return n-=t*r,e.replace(new RegExp(`${o}+`,"g"),e=>{const n=e.length;return t.toString().padStart(n,"0")})}return e},i);let l=0;return a.replace(o,()=>{const e=r[l];return l+=1,e})}(n?Math.max(r-i,0):Math.max(i-r,0),o)}var KF=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const qF=e=>{const{value:t,format:n="HH:mm:ss",onChange:r,onFinish:i,type:a}=e,l=KF(e,["value","format","onChange","onFinish","type"]),c="countdown"===a,[s,u]=o.useState(null),d=Bn(()=>{const e=Date.now(),n=function(e){return new Date(e).getTime()}(t);u({});return null===r||void 0===r||r(c?n-e:e-n),!(c&&n<e)||(null===i||void 0===i||i(),!1)});o.useEffect(()=>{let e;const t=()=>{e=ve(()=>{d()&&t()})};return t(),()=>ve.cancel(e)},[t,c]),o.useEffect(()=>{u({})},[]);return o.createElement(FF,Object.assign({},l,{value:t,valueRender:e=>ii(e,{title:void 0}),formatter:(e,t)=>s?_F(e,Object.assign(Object.assign({},t),{format:n}),c):"-"}))},VF=o.memo(e=>o.createElement(qF,Object.assign({},e,{type:"countdown"})));FF.Timer=qF,FF.Countdown=VF;const XF=FF;var GF=["className","prefixCls","style","active","status","iconPrefix","icon","wrapperStyle","stepNumber","disabled","description","title","subTitle","progressDot","stepIcon","tailContent","icons","stepIndex","onStepClick","onClick","render"];function YF(e){return"string"===typeof e}const UF=function(e){var t,n=e.className,r=e.prefixCls,i=e.style,c=e.active,s=e.status,u=e.iconPrefix,p=e.icon,f=(e.wrapperStyle,e.stepNumber),m=e.disabled,g=e.description,v=e.title,h=e.subTitle,b=e.progressDot,y=e.stepIcon,C=e.tailContent,x=e.icons,$=e.stepIndex,w=e.onStepClick,S=e.onClick,k=e.render,E=(0,cr.A)(e,GF),O={};!!w&&!m&&(O.role="button",O.tabIndex=0,O.onClick=function(e){null===S||void 0===S||S(e),w($)},O.onKeyDown=function(e){var t=e.which;t!==Xi.ENTER&&t!==Xi.SPACE||w($)});var A=s||"wait",I=a()("".concat(r,"-item"),"".concat(r,"-item-").concat(A),n,(t={},(0,Ee.A)(t,"".concat(r,"-item-custom"),p),(0,Ee.A)(t,"".concat(r,"-item-active"),c),(0,Ee.A)(t,"".concat(r,"-item-disabled"),!0===m),t)),N=(0,d.A)({},i),M=o.createElement("div",(0,l.A)({},E,{className:I,style:N}),o.createElement("div",(0,l.A)({onClick:S},O,{className:"".concat(r,"-item-container")}),o.createElement("div",{className:"".concat(r,"-item-tail")},C),o.createElement("div",{className:"".concat(r,"-item-icon")},function(){var e,t,n=a()("".concat(r,"-icon"),"".concat(u,"icon"),(e={},(0,Ee.A)(e,"".concat(u,"icon-").concat(p),p&&YF(p)),(0,Ee.A)(e,"".concat(u,"icon-check"),!p&&"finish"===s&&(x&&!x.finish||!x)),(0,Ee.A)(e,"".concat(u,"icon-cross"),!p&&"error"===s&&(x&&!x.error||!x)),e)),i=o.createElement("span",{className:"".concat(r,"-icon-dot")});return t=b?"function"===typeof b?o.createElement("span",{className:"".concat(r,"-icon")},b(i,{index:f-1,status:s,title:v,description:g})):o.createElement("span",{className:"".concat(r,"-icon")},i):p&&!YF(p)?o.createElement("span",{className:"".concat(r,"-icon")},p):x&&x.finish&&"finish"===s?o.createElement("span",{className:"".concat(r,"-icon")},x.finish):x&&x.error&&"error"===s?o.createElement("span",{className:"".concat(r,"-icon")},x.error):p||"finish"===s||"error"===s?o.createElement("span",{className:n}):o.createElement("span",{className:"".concat(r,"-icon")},f),y&&(t=y({index:f-1,status:s,title:v,description:g,node:t})),t}()),o.createElement("div",{className:"".concat(r,"-item-content")},o.createElement("div",{className:"".concat(r,"-item-title")},v,h&&o.createElement("div",{title:"string"===typeof h?h:void 0,className:"".concat(r,"-item-subtitle")},h)),g&&o.createElement("div",{className:"".concat(r,"-item-description")},g))));return k&&(M=k(M)||null),M};var QF=["prefixCls","style","className","children","direction","type","labelPlacement","iconPrefix","status","size","current","progressDot","stepIcon","initial","icons","onChange","itemRender","items"];function ZF(e){var t,n=e.prefixCls,o=void 0===n?"rc-steps":n,i=e.style,c=void 0===i?{}:i,s=e.className,u=(e.children,e.direction),p=void 0===u?"horizontal":u,f=e.type,m=void 0===f?"default":f,g=e.labelPlacement,v=void 0===g?"horizontal":g,h=e.iconPrefix,b=void 0===h?"rc":h,y=e.status,C=void 0===y?"process":y,x=e.size,$=e.current,w=void 0===$?0:$,S=e.progressDot,k=void 0!==S&&S,E=e.stepIcon,O=e.initial,A=void 0===O?0:O,I=e.icons,N=e.onChange,M=e.itemRender,j=e.items,P=void 0===j?[]:j,R=(0,cr.A)(e,QF),T="navigation"===m,z="inline"===m,B=z||k,H=z?"horizontal":p,D=z?void 0:x,L=B?"vertical":v,F=a()(o,"".concat(o,"-").concat(H),s,(t={},(0,Ee.A)(t,"".concat(o,"-").concat(D),D),(0,Ee.A)(t,"".concat(o,"-label-").concat(L),"horizontal"===H),(0,Ee.A)(t,"".concat(o,"-dot"),!!B),(0,Ee.A)(t,"".concat(o,"-navigation"),T),(0,Ee.A)(t,"".concat(o,"-inline"),z),t)),W=function(e){N&&w!==e&&N(e)};return r().createElement("div",(0,l.A)({className:F,style:c},R),P.filter(function(e){return e}).map(function(e,t){var n=(0,d.A)({},e),i=A+t;return"error"===C&&t===w-1&&(n.className="".concat(o,"-next-error")),n.status||(n.status=i===w?C:i<w?"finish":"wait"),z&&(n.icon=void 0,n.subTitle=void 0),!n.render&&M&&(n.render=function(e){return M(n,e)}),r().createElement(UF,(0,l.A)({},n,{active:i===w,stepNumber:i+1,stepIndex:i,key:i,prefixCls:o,iconPrefix:b,wrapperStyle:c,progressDot:B,stepIcon:E,icons:I,onStepClick:N&&W}))}))}ZF.Step=UF;const JF=ZF,eW=e=>{const{componentCls:t,customIconTop:n,customIconSize:o,customIconFontSize:r}=e;return{[`${t}-item-custom`]:{[`> ${t}-item-container > ${t}-item-icon`]:{height:"auto",background:"none",border:0,[`> ${t}-icon`]:{top:n,width:o,height:o,fontSize:r,lineHeight:nt(o)}}},[`&:not(${t}-vertical)`]:{[`${t}-item-custom`]:{[`${t}-item-icon`]:{width:"auto",background:"none"}}}}},tW=e=>{const{componentCls:t}=e,n=`${t}-item`;return{[`${t}-horizontal`]:{[`${n}-tail`]:{transform:"translateY(-50%)"}}}},nW=e=>{const{componentCls:t,inlineDotSize:n,inlineTitleColor:o,inlineTailColor:r}=e,i=e.calc(e.paddingXS).add(e.lineWidth).equal(),a={[`${t}-item-container ${t}-item-content ${t}-item-title`]:{color:o}};return{[`&${t}-inline`]:{width:"auto",display:"inline-flex",[`${t}-item`]:{flex:"none","&-container":{padding:`${nt(i)} ${nt(e.paddingXXS)} 0`,margin:`0 ${nt(e.calc(e.marginXXS).div(2).equal())}`,borderRadius:e.borderRadiusSM,cursor:"pointer",transition:`background-color ${e.motionDurationMid}`,"&:hover":{background:e.controlItemBgHover},"&[role='button']:hover":{opacity:1}},"&-icon":{width:n,height:n,marginInlineStart:`calc(50% - ${nt(e.calc(n).div(2).equal())})`,[`> ${t}-icon`]:{top:0},[`${t}-icon-dot`]:{borderRadius:e.calc(e.fontSizeSM).div(4).equal(),"&::after":{display:"none"}}},"&-content":{width:"auto",marginTop:e.calc(e.marginXS).sub(e.lineWidth).equal()},"&-title":{color:o,fontSize:e.fontSizeSM,lineHeight:e.lineHeightSM,fontWeight:"normal",marginBottom:e.calc(e.marginXXS).div(2).equal()},"&-description":{display:"none"},"&-tail":{marginInlineStart:0,top:e.calc(n).div(2).add(i).equal(),transform:"translateY(-50%)","&:after":{width:"100%",height:e.lineWidth,borderRadius:0,marginInlineStart:0,background:r}},[`&:first-child ${t}-item-tail`]:{width:"50%",marginInlineStart:"50%"},[`&:last-child ${t}-item-tail`]:{display:"block",width:"50%"},"&-wait":Object.assign({[`${t}-item-icon ${t}-icon ${t}-icon-dot`]:{backgroundColor:e.colorBorderBg,border:`${nt(e.lineWidth)} ${e.lineType} ${r}`}},a),"&-finish":Object.assign({[`${t}-item-tail::after`]:{backgroundColor:r},[`${t}-item-icon ${t}-icon ${t}-icon-dot`]:{backgroundColor:r,border:`${nt(e.lineWidth)} ${e.lineType} ${r}`}},a),"&-error":a,"&-active, &-process":Object.assign({[`${t}-item-icon`]:{width:n,height:n,marginInlineStart:`calc(50% - ${nt(e.calc(n).div(2).equal())})`,top:0}},a),[`&:not(${t}-item-active) > ${t}-item-container[role='button']:hover`]:{[`${t}-item-title`]:{color:o}}}}}},oW=e=>{const{componentCls:t,iconSize:n,lineHeight:o,iconSizeSM:r}=e;return{[`&${t}-label-vertical`]:{[`${t}-item`]:{overflow:"visible","&-tail":{marginInlineStart:e.calc(n).div(2).add(e.controlHeightLG).equal(),padding:`0 ${nt(e.paddingLG)}`},"&-content":{display:"block",width:e.calc(n).div(2).add(e.controlHeightLG).mul(2).equal(),marginTop:e.marginSM,textAlign:"center"},"&-icon":{display:"inline-block",marginInlineStart:e.controlHeightLG},"&-title":{paddingInlineEnd:0,paddingInlineStart:0,"&::after":{display:"none"}},"&-subtitle":{display:"block",marginBottom:e.marginXXS,marginInlineStart:0,lineHeight:o}},[`&${t}-small:not(${t}-dot)`]:{[`${t}-item`]:{"&-icon":{marginInlineStart:e.calc(n).sub(r).div(2).add(e.controlHeightLG).equal()}}}}}},rW=e=>{const{componentCls:t,navContentMaxWidth:n,navArrowColor:o,stepsNavActiveColor:r,motionDurationSlow:i}=e;return{[`&${t}-navigation`]:{paddingTop:e.paddingSM,[`&${t}-small`]:{[`${t}-item`]:{"&-container":{marginInlineStart:e.calc(e.marginSM).mul(-1).equal()}}},[`${t}-item`]:{overflow:"visible",textAlign:"center","&-container":{display:"inline-block",height:"100%",marginInlineStart:e.calc(e.margin).mul(-1).equal(),paddingBottom:e.paddingSM,textAlign:"start",transition:`opacity ${i}`,[`${t}-item-content`]:{maxWidth:n},[`${t}-item-title`]:Object.assign(Object.assign({maxWidth:"100%",paddingInlineEnd:0},uo),{"&::after":{display:"none"}})},[`&:not(${t}-item-active)`]:{[`${t}-item-container[role='button']`]:{cursor:"pointer","&:hover":{opacity:.85}}},"&:last-child":{flex:1,"&::after":{display:"none"}},"&::after":{position:"absolute",top:`calc(50% - ${nt(e.calc(e.paddingSM).div(2).equal())})`,insetInlineStart:"100%",display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,borderTop:`${nt(e.lineWidth)} ${e.lineType} ${o}`,borderBottom:"none",borderInlineStart:"none",borderInlineEnd:`${nt(e.lineWidth)} ${e.lineType} ${o}`,transform:"translateY(-50%) translateX(-50%) rotate(45deg)",content:'""'},"&::before":{position:"absolute",bottom:0,insetInlineStart:"50%",display:"inline-block",width:0,height:e.lineWidthBold,backgroundColor:r,transition:`width ${i}, inset-inline-start ${i}`,transitionTimingFunction:"ease-out",content:'""'}},[`${t}-item${t}-item-active::before`]:{insetInlineStart:0,width:"100%"}},[`&${t}-navigation${t}-vertical`]:{[`> ${t}-item`]:{marginInlineEnd:0,"&::before":{display:"none"},[`&${t}-item-active::before`]:{top:0,insetInlineEnd:0,insetInlineStart:"unset",display:"block",width:e.calc(e.lineWidth).mul(3).equal(),height:`calc(100% - ${nt(e.marginLG)})`},"&::after":{position:"relative",insetInlineStart:"50%",display:"block",width:e.calc(e.controlHeight).mul(.25).equal(),height:e.calc(e.controlHeight).mul(.25).equal(),marginBottom:e.marginXS,textAlign:"center",transform:"translateY(-50%) translateX(-50%) rotate(135deg)"},"&:last-child":{"&::after":{display:"none"}},[`> ${t}-item-container > ${t}-item-tail`]:{visibility:"hidden"}}},[`&${t}-navigation${t}-horizontal`]:{[`> ${t}-item > ${t}-item-container > ${t}-item-tail`]:{visibility:"hidden"}}}},iW=e=>{const{antCls:t,componentCls:n,iconSize:o,iconSizeSM:r,processIconColor:i,marginXXS:a,lineWidthBold:l,lineWidth:c,paddingXXS:s}=e,u=e.calc(o).add(e.calc(l).mul(4).equal()).equal(),d=e.calc(r).add(e.calc(e.lineWidth).mul(4).equal()).equal();return{[`&${n}-with-progress`]:{[`${n}-item`]:{paddingTop:s,[`&-process ${n}-item-container ${n}-item-icon ${n}-icon`]:{color:i}},[`&${n}-vertical > ${n}-item `]:{paddingInlineStart:s,[`> ${n}-item-container > ${n}-item-tail`]:{top:a,insetInlineStart:e.calc(o).div(2).sub(c).add(s).equal()}},[`&, &${n}-small`]:{[`&${n}-horizontal ${n}-item:first-child`]:{paddingBottom:s,paddingInlineStart:s}},[`&${n}-small${n}-vertical > ${n}-item > ${n}-item-container > ${n}-item-tail`]:{insetInlineStart:e.calc(r).div(2).sub(c).add(s).equal()},[`&${n}-label-vertical ${n}-item ${n}-item-tail`]:{top:e.calc(o).div(2).add(s).equal()},[`${n}-item-icon`]:{position:"relative",[`${t}-progress`]:{position:"absolute",insetInlineStart:"50%",top:"50%",transform:"translate(-50%, -50%)","&-inner":{width:`${nt(u)} !important`,height:`${nt(u)} !important`}}},[`&${n}-small`]:{[`&${n}-label-vertical ${n}-item ${n}-item-tail`]:{top:e.calc(r).div(2).add(s).equal()},[`${n}-item-icon ${t}-progress-inner`]:{width:`${nt(d)} !important`,height:`${nt(d)} !important`}}}}},aW=e=>{const{componentCls:t,descriptionMaxWidth:n,lineHeight:o,dotCurrentSize:r,dotSize:i,motionDurationSlow:a}=e;return{[`&${t}-dot, &${t}-dot${t}-small`]:{[`${t}-item`]:{"&-title":{lineHeight:o},"&-tail":{top:e.calc(e.dotSize).sub(e.calc(e.lineWidth).mul(3).equal()).div(2).equal(),width:"100%",marginTop:0,marginBottom:0,marginInline:`${nt(e.calc(n).div(2).equal())} 0`,padding:0,"&::after":{width:`calc(100% - ${nt(e.calc(e.marginSM).mul(2).equal())})`,height:e.calc(e.lineWidth).mul(3).equal(),marginInlineStart:e.marginSM}},"&-icon":{width:i,height:i,marginInlineStart:e.calc(e.descriptionMaxWidth).sub(i).div(2).equal(),paddingInlineEnd:0,lineHeight:nt(i),background:"transparent",border:0,[`${t}-icon-dot`]:{position:"relative",float:"left",width:"100%",height:"100%",borderRadius:100,transition:`all ${a}`,"&::after":{position:"absolute",top:e.calc(e.marginSM).mul(-1).equal(),insetInlineStart:e.calc(i).sub(e.calc(e.controlHeightLG).mul(1.5).equal()).div(2).equal(),width:e.calc(e.controlHeightLG).mul(1.5).equal(),height:e.controlHeight,background:"transparent",content:'""'}}},"&-content":{width:n},[`&-process ${t}-item-icon`]:{position:"relative",top:e.calc(i).sub(r).div(2).equal(),width:r,height:r,lineHeight:nt(r),background:"none",marginInlineStart:e.calc(e.descriptionMaxWidth).sub(r).div(2).equal()},[`&-process ${t}-icon`]:{[`&:first-child ${t}-icon-dot`]:{insetInlineStart:0}}}},[`&${t}-vertical${t}-dot`]:{[`${t}-item-icon`]:{marginTop:e.calc(e.controlHeight).sub(i).div(2).equal(),marginInlineStart:0,background:"none"},[`${t}-item-process ${t}-item-icon`]:{marginTop:e.calc(e.controlHeight).sub(r).div(2).equal(),top:0,insetInlineStart:e.calc(i).sub(r).div(2).equal(),marginInlineStart:0},[`${t}-item > ${t}-item-container > ${t}-item-tail`]:{top:e.calc(e.controlHeight).sub(i).div(2).equal(),insetInlineStart:0,margin:0,padding:`${nt(e.calc(i).add(e.paddingXS).equal())} 0 ${nt(e.paddingXS)}`,"&::after":{marginInlineStart:e.calc(i).sub(e.lineWidth).div(2).equal()}},[`&${t}-small`]:{[`${t}-item-icon`]:{marginTop:e.calc(e.controlHeightSM).sub(i).div(2).equal()},[`${t}-item-process ${t}-item-icon`]:{marginTop:e.calc(e.controlHeightSM).sub(r).div(2).equal()},[`${t}-item > ${t}-item-container > ${t}-item-tail`]:{top:e.calc(e.controlHeightSM).sub(i).div(2).equal()}},[`${t}-item:first-child ${t}-icon-dot`]:{insetInlineStart:0},[`${t}-item-content`]:{width:"inherit"}}}},lW=e=>{const{componentCls:t}=e;return{[`&${t}-rtl`]:{direction:"rtl",[`${t}-item`]:{"&-subtitle":{float:"left"}},[`&${t}-navigation`]:{[`${t}-item::after`]:{transform:"rotate(-45deg)"}},[`&${t}-vertical`]:{[`> ${t}-item`]:{"&::after":{transform:"rotate(225deg)"},[`${t}-item-icon`]:{float:"right"}}},[`&${t}-dot`]:{[`${t}-item-icon ${t}-icon-dot, &${t}-small ${t}-item-icon ${t}-icon-dot`]:{float:"right"}}}}},cW=e=>{const{componentCls:t,iconSizeSM:n,fontSizeSM:o,fontSize:r,colorTextDescription:i}=e;return{[`&${t}-small`]:{[`&${t}-horizontal:not(${t}-label-vertical) ${t}-item`]:{paddingInlineStart:e.paddingSM,"&:first-child":{paddingInlineStart:0}},[`${t}-item-icon`]:{width:n,height:n,marginTop:0,marginBottom:0,marginInline:`0 ${nt(e.marginXS)}`,fontSize:o,lineHeight:nt(n),textAlign:"center",borderRadius:n},[`${t}-item-title`]:{paddingInlineEnd:e.paddingSM,fontSize:r,lineHeight:nt(n),"&::after":{top:e.calc(n).div(2).equal()}},[`${t}-item-description`]:{color:i,fontSize:r},[`${t}-item-tail`]:{top:e.calc(n).div(2).sub(e.paddingXXS).equal()},[`${t}-item-custom ${t}-item-icon`]:{width:"inherit",height:"inherit",lineHeight:"inherit",background:"none",border:0,borderRadius:0,[`> ${t}-icon`]:{fontSize:n,lineHeight:nt(n),transform:"none"}}}}},sW=e=>{const{componentCls:t,iconSizeSM:n,iconSize:o}=e;return{[`&${t}-vertical`]:{display:"flex",flexDirection:"column",[`> ${t}-item`]:{display:"block",flex:"1 0 auto",paddingInlineStart:0,overflow:"visible",[`${t}-item-icon`]:{float:"left",marginInlineEnd:e.margin},[`${t}-item-content`]:{display:"block",minHeight:e.calc(e.controlHeight).mul(1.5).equal(),overflow:"hidden"},[`${t}-item-title`]:{lineHeight:nt(o)},[`${t}-item-description`]:{paddingBottom:e.paddingSM}},[`> ${t}-item > ${t}-item-container > ${t}-item-tail`]:{position:"absolute",top:0,insetInlineStart:e.calc(o).div(2).sub(e.lineWidth).equal(),width:e.lineWidth,height:"100%",padding:`${nt(e.calc(e.marginXXS).mul(1.5).add(o).equal())} 0 ${nt(e.calc(e.marginXXS).mul(1.5).equal())}`,"&::after":{width:e.lineWidth,height:"100%"}},[`> ${t}-item:not(:last-child) > ${t}-item-container > ${t}-item-tail`]:{display:"block"},[` > ${t}-item > ${t}-item-container > ${t}-item-content > ${t}-item-title`]:{"&::after":{display:"none"}},[`&${t}-small ${t}-item-container`]:{[`${t}-item-tail`]:{position:"absolute",top:0,insetInlineStart:e.calc(n).div(2).sub(e.lineWidth).equal(),padding:`${nt(e.calc(e.marginXXS).mul(1.5).add(n).equal())} 0 ${nt(e.calc(e.marginXXS).mul(1.5).equal())}`},[`${t}-item-title`]:{lineHeight:nt(n)}}}}},uW=(e,t)=>{const n=`${t.componentCls}-item`,o=`${e}IconColor`,r=`${e}TitleColor`,i=`${e}DescriptionColor`,a=`${e}TailColor`,l=`${e}IconBgColor`,c=`${e}IconBorderColor`,s=`${e}DotColor`;return{[`${n}-${e} ${n}-icon`]:{backgroundColor:t[l],borderColor:t[c],[`> ${t.componentCls}-icon`]:{color:t[o],[`${t.componentCls}-icon-dot`]:{background:t[s]}}},[`${n}-${e}${n}-custom ${n}-icon`]:{[`> ${t.componentCls}-icon`]:{color:t[s]}},[`${n}-${e} > ${n}-container > ${n}-content > ${n}-title`]:{color:t[r],"&::after":{backgroundColor:t[a]}},[`${n}-${e} > ${n}-container > ${n}-content > ${n}-description`]:{color:t[i]},[`${n}-${e} > ${n}-container > ${n}-tail::after`]:{backgroundColor:t[a]}}},dW=e=>{const{componentCls:t,motionDurationSlow:n}=e,o=`${t}-item`,r=`${o}-icon`;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[o]:{position:"relative",display:"inline-block",flex:1,overflow:"hidden",verticalAlign:"top","&:last-child":{flex:"none",[`> ${o}-container > ${o}-tail, > ${o}-container > ${o}-content > ${o}-title::after`]:{display:"none"}}},[`${o}-container`]:{outline:"none","&:focus-visible":{[r]:Object.assign({},fo(e))}},[`${r}, ${o}-content`]:{display:"inline-block",verticalAlign:"top"},[r]:{width:e.iconSize,height:e.iconSize,marginTop:0,marginBottom:0,marginInlineStart:0,marginInlineEnd:e.marginXS,fontSize:e.iconFontSize,fontFamily:e.fontFamily,lineHeight:nt(e.iconSize),textAlign:"center",borderRadius:e.iconSize,border:`${nt(e.lineWidth)} ${e.lineType} transparent`,transition:`background-color ${n}, border-color ${n}`,[`${t}-icon`]:{position:"relative",top:e.iconTop,color:e.colorPrimary,lineHeight:1}},[`${o}-tail`]:{position:"absolute",top:e.calc(e.iconSize).div(2).equal(),insetInlineStart:0,width:"100%","&::after":{display:"inline-block",width:"100%",height:e.lineWidth,background:e.colorSplit,borderRadius:e.lineWidth,transition:`background ${n}`,content:'""'}},[`${o}-title`]:{position:"relative",display:"inline-block",paddingInlineEnd:e.padding,color:e.colorText,fontSize:e.fontSizeLG,lineHeight:nt(e.titleLineHeight),"&::after":{position:"absolute",top:e.calc(e.titleLineHeight).div(2).equal(),insetInlineStart:"100%",display:"block",width:9999,height:e.lineWidth,background:e.processTailColor,content:'""'}},[`${o}-subtitle`]:{display:"inline",marginInlineStart:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize},[`${o}-description`]:{color:e.colorTextDescription,fontSize:e.fontSize}},uW("wait",e)),uW("process",e)),{[`${o}-process > ${o}-container > ${o}-title`]:{fontWeight:e.fontWeightStrong}}),uW("finish",e)),uW("error",e)),{[`${o}${t}-next-error > ${t}-item-title::after`]:{background:e.colorError},[`${o}-disabled`]:{cursor:"not-allowed"}})},pW=e=>{const{componentCls:t,motionDurationSlow:n}=e;return{[`& ${t}-item`]:{[`&:not(${t}-item-active)`]:{[`& > ${t}-item-container[role='button']`]:{cursor:"pointer",[`${t}-item`]:{[`&-title, &-subtitle, &-description, &-icon ${t}-icon`]:{transition:`color ${n}`}},"&:hover":{[`${t}-item`]:{"&-title, &-subtitle, &-description":{color:e.colorPrimary}}}},[`&:not(${t}-item-process)`]:{[`& > ${t}-item-container[role='button']:hover`]:{[`${t}-item`]:{"&-icon":{borderColor:e.colorPrimary,[`${t}-icon`]:{color:e.colorPrimary}}}}}}},[`&${t}-horizontal:not(${t}-label-vertical)`]:{[`${t}-item`]:{paddingInlineStart:e.padding,whiteSpace:"nowrap","&:first-child":{paddingInlineStart:0},[`&:last-child ${t}-item-title`]:{paddingInlineEnd:0},"&-tail":{display:"none"},"&-description":{maxWidth:e.descriptionMaxWidth,whiteSpace:"normal"}}}}},fW=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},po(e)),{display:"flex",width:"100%",fontSize:0,textAlign:"initial"}),dW(e)),pW(e)),eW(e)),cW(e)),sW(e)),tW(e)),oW(e)),aW(e)),rW(e)),lW(e)),iW(e)),nW(e))}},mW=qo("Steps",e=>{const{colorTextDisabled:t,controlHeightLG:n,colorTextLightSolid:o,colorText:r,colorPrimary:i,colorTextDescription:a,colorTextQuaternary:l,colorError:c,colorBorderSecondary:s,colorSplit:u}=e,d=Jn(e,{processIconColor:o,processTitleColor:r,processDescriptionColor:r,processIconBgColor:i,processIconBorderColor:i,processDotColor:i,processTailColor:u,waitTitleColor:a,waitDescriptionColor:a,waitTailColor:u,waitDotColor:t,finishIconColor:i,finishTitleColor:r,finishDescriptionColor:a,finishTailColor:i,finishDotColor:i,errorIconColor:o,errorTitleColor:c,errorDescriptionColor:c,errorTailColor:u,errorIconBgColor:c,errorIconBorderColor:c,errorDotColor:c,stepsNavActiveColor:i,stepsProgressSize:n,inlineDotSize:6,inlineTitleColor:l,inlineTailColor:s});return[fW(d)]},e=>({titleLineHeight:e.controlHeight,customIconSize:e.controlHeight,customIconTop:0,customIconFontSize:e.controlHeightSM,iconSize:e.controlHeight,iconTop:-.5,iconFontSize:e.fontSize,iconSizeSM:e.fontSizeHeading3,dotSize:e.controlHeight/4,dotCurrentSize:e.controlHeightLG/4,navArrowColor:e.colorTextDisabled,navContentMaxWidth:"unset",descriptionMaxWidth:140,waitIconColor:e.wireframe?e.colorTextDisabled:e.colorTextLabel,waitIconBgColor:e.wireframe?e.colorBgContainer:e.colorFillContent,waitIconBorderColor:e.wireframe?e.colorTextDisabled:"transparent",finishIconBgColor:e.wireframe?e.colorBgContainer:e.controlItemBgActive,finishIconBorderColor:e.wireframe?e.colorPrimary:e.controlItemBgActive}));const gW=function(e,t){if(e)return e;const n=s(t).map(e=>{if(o.isValidElement(e)){const{props:t}=e;return Object.assign({},t)}return null});return function(e){return e.filter(e=>e)}(n)};var vW=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const hW=e=>{const{percent:t,size:n,className:r,rootClassName:i,direction:l,items:c,responsive:s=!0,current:u=0,children:d,style:p}=e,f=vW(e,["percent","size","className","rootClassName","direction","items","responsive","current","children","style"]),{xs:m}=Pb(s),{getPrefixCls:g,direction:v,className:h,style:b}=Se("steps"),y=o.useMemo(()=>s&&m?"vertical":l,[m,l]),C=lc(n),x=g("steps",e.prefixCls),[$,w,S]=mW(x),k="inline"===e.type,E=g("",e.iconPrefix),O=gW(c,d),A=k?void 0:t,I=Object.assign(Object.assign({},b),p),N=a()(h,{[`${x}-rtl`]:"rtl"===v,[`${x}-with-progress`]:void 0!==A},r,i,w,S),M={finish:o.createElement(ub.A,{className:`${x}-finish-icon`}),error:o.createElement(ir.A,{className:`${x}-error-icon`})};return $(o.createElement(JF,Object.assign({icons:M},f,{style:I,current:u,size:C,items:O,itemRender:k?(e,t)=>e.description?o.createElement(hy,{title:e.description},t):t:void 0,stepIcon:e=>{let{node:t,status:n}=e;if("process"===n&&void 0!==A){const e="small"===C?32:40;return o.createElement("div",{className:`${x}-progress-icon`},o.createElement(ML,{type:"circle",percent:A,size:e,strokeWidth:4,format:()=>null}),t)}return t},direction:y,prefixCls:x,iconPrefix:E,className:N})))};hW.Step=JF.Step;const bW=hW;var yW=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],CW=o.forwardRef(function(e,t){var n,r=e.prefixCls,i=void 0===r?"rc-switch":r,c=e.className,s=e.checked,u=e.defaultChecked,d=e.disabled,p=e.loadingIcon,f=e.checkedChildren,m=e.unCheckedChildren,g=e.onClick,v=e.onChange,h=e.onKeyDown,b=(0,cr.A)(e,yW),y=Ln(!1,{value:s,defaultValue:u}),C=(0,ke.A)(y,2),x=C[0],$=C[1];function w(e,t){var n=x;return d||($(n=e),null===v||void 0===v||v(n,t)),n}var S=a()(i,c,(n={},(0,Ee.A)(n,"".concat(i,"-checked"),x),(0,Ee.A)(n,"".concat(i,"-disabled"),d),n));return o.createElement("button",(0,l.A)({},b,{type:"button",role:"switch","aria-checked":x,disabled:d,className:S,ref:t,onKeyDown:function(e){e.which===Xi.LEFT?w(!1,e):e.which===Xi.RIGHT&&w(!0,e),null===h||void 0===h||h(e)},onClick:function(e){var t=w(!x,e);null===g||void 0===g||g(t,e)}}),p,o.createElement("span",{className:"".concat(i,"-inner")},o.createElement("span",{className:"".concat(i,"-inner-checked")},f),o.createElement("span",{className:"".concat(i,"-inner-unchecked")},m)))});CW.displayName="Switch";const xW=CW,$W=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:o,trackMinWidthSM:r,innerMinMarginSM:i,innerMaxMarginSM:a,handleSizeSM:l,calc:c}=e,s=`${t}-inner`,u=nt(c(l).add(c(o).mul(2)).equal()),d=nt(c(a).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:r,height:n,lineHeight:nt(n),[`${t}-inner`]:{paddingInlineStart:a,paddingInlineEnd:i,[`${s}-checked, ${s}-unchecked`]:{minHeight:n},[`${s}-checked`]:{marginInlineStart:`calc(-100% + ${u} - ${d})`,marginInlineEnd:`calc(100% - ${u} + ${d})`},[`${s}-unchecked`]:{marginTop:c(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:l,height:l},[`${t}-loading-icon`]:{top:c(c(l).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:i,paddingInlineEnd:a,[`${s}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${s}-unchecked`]:{marginInlineStart:`calc(100% - ${u} + ${d})`,marginInlineEnd:`calc(-100% + ${u} - ${d})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${nt(c(l).add(o).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${s}`]:{[`${s}-unchecked`]:{marginInlineStart:c(e.marginXXS).div(2).equal(),marginInlineEnd:c(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${s}`]:{[`${s}-checked`]:{marginInlineStart:c(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:c(e.marginXXS).div(2).equal()}}}}}}},wW=e=>{const{componentCls:t,handleSize:n,calc:o}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:o(o(n).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},SW=e=>{const{componentCls:t,trackPadding:n,handleBg:o,handleShadow:r,handleSize:i,calc:a}=e,l=`${t}-handle`;return{[t]:{[l]:{position:"absolute",top:n,insetInlineStart:n,width:i,height:i,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:o,borderRadius:a(i).div(2).equal(),boxShadow:r,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${l}`]:{insetInlineStart:`calc(100% - ${nt(a(i).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${l}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${l}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},kW=e=>{const{componentCls:t,trackHeight:n,trackPadding:o,innerMinMargin:r,innerMaxMargin:i,handleSize:a,calc:l}=e,c=`${t}-inner`,s=nt(l(a).add(l(o).mul(2)).equal()),u=nt(l(i).mul(2).equal());return{[t]:{[c]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:i,paddingInlineEnd:r,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${c}-checked, ${c}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:n},[`${c}-checked`]:{marginInlineStart:`calc(-100% + ${s} - ${u})`,marginInlineEnd:`calc(100% - ${s} + ${u})`},[`${c}-unchecked`]:{marginTop:l(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${c}`]:{paddingInlineStart:r,paddingInlineEnd:i,[`${c}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${c}-unchecked`]:{marginInlineStart:`calc(100% - ${s} + ${u})`,marginInlineEnd:`calc(-100% + ${s} - ${u})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${c}`]:{[`${c}-unchecked`]:{marginInlineStart:l(o).mul(2).equal(),marginInlineEnd:l(o).mul(-1).mul(2).equal()}},[`&${t}-checked ${c}`]:{[`${c}-checked`]:{marginInlineStart:l(o).mul(-1).mul(2).equal(),marginInlineEnd:l(o).mul(2).equal()}}}}}},EW=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:o}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},po(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:o,height:n,lineHeight:nt(n),verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),mo(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"}})}},OW=qo("Switch",e=>{const t=Jn(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[EW(t),kW(t),SW(t),wW(t),$W(t)]},e=>{const{fontSize:t,lineHeight:n,controlHeight:o,colorWhite:r}=e,i=t*n,a=o/2,l=i-4,c=a-4;return{trackHeight:i,trackHeightSM:a,trackMinWidth:2*l+8,trackMinWidthSM:2*c+4,trackPadding:2,handleBg:r,handleSize:l,handleSizeSM:c,handleShadow:`0 2px 4px 0 ${new wo.Y("#00230b").setA(.2).toRgbString()}`,innerMinMargin:l/2,innerMaxMargin:l+2+4,innerMinMarginSM:c/2,innerMaxMarginSM:c+2+4}});var AW=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const IW=o.forwardRef((e,t)=>{const{prefixCls:n,size:r,disabled:i,loading:l,className:c,rootClassName:s,style:u,checked:d,value:p,defaultChecked:f,defaultValue:m,onChange:g}=e,v=AW(e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[h,b]=Ln(!1,{value:null!==d&&void 0!==d?d:p,defaultValue:null!==f&&void 0!==f?f:m}),{getPrefixCls:y,direction:C,switch:x}=o.useContext(xe),$=o.useContext(Ga),w=(null!==i&&void 0!==i?i:$)||l,S=y("switch",n),k=o.createElement("div",{className:`${S}-handle`},l&&o.createElement(la.A,{className:`${S}-loading-icon`})),[E,O,A]=OW(S),I=lc(r),N=a()(null===x||void 0===x?void 0:x.className,{[`${S}-small`]:"small"===I,[`${S}-loading`]:l,[`${S}-rtl`]:"rtl"===C},c,s,O,A),M=Object.assign(Object.assign({},null===x||void 0===x?void 0:x.style),u);return E(o.createElement(ac,{component:"Switch"},o.createElement(xW,Object.assign({},v,{checked:h,onChange:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];b(t[0]),null===g||void 0===g||g.apply(void 0,t)},prefixCls:S,className:N,style:M,disabled:w,ref:t,loadingIcon:k}))))}),NW=IW;NW.__ANT_SWITCH=!0;const MW=NW;var jW={},PW="rc-table-internal-hook";function RW(e){var t=o.createContext(void 0);return{Context:t,Provider:function(e){var n=e.value,r=e.children,i=o.useRef(n);i.current=n;var a=o.useState(function(){return{getValue:function(){return i.current},listeners:new Set}}),l=(0,ke.A)(a,1)[0];return ut(function(){(0,f.unstable_batchedUpdates)(function(){l.listeners.forEach(function(e){e(n)})})},[n]),o.createElement(t.Provider,{value:l},r)},defaultValue:e}}function TW(e,t){var n=Bn("function"===typeof t?t:function(e){if(void 0===t)return e;if(!Array.isArray(t))return e[t];var n={};return t.forEach(function(t){n[t]=e[t]}),n}),r=o.useContext(null===e||void 0===e?void 0:e.Context),i=r||{},a=i.listeners,l=i.getValue,c=o.useRef();c.current=n(r?l():null===e||void 0===e?void 0:e.defaultValue);var s=o.useState({}),u=(0,ke.A)(s,2)[1];return ut(function(){if(r)return a.add(e),function(){a.delete(e)};function e(e){var t=n(e);Ne(c.current,t,!0)||u({})}},[r]),c.current}function zW(){var e=o.createContext(null);function t(){return o.useContext(e)}return{makeImmutable:function(n,r){var i=(0,b.f3)(n),a=function(a,c){var s=i?{ref:c}:{},u=o.useRef(0),d=o.useRef(a);return null!==t()?o.createElement(n,(0,l.A)({},a,s)):(r&&!r(d.current,a)||(u.current+=1),d.current=a,o.createElement(e.Provider,{value:u.current},o.createElement(n,(0,l.A)({},a,s))))};return i?o.forwardRef(a):a},responseImmutable:function(e,n){var r=(0,b.f3)(e),i=function(n,i){var a=r?{ref:i}:{};return t(),o.createElement(e,(0,l.A)({},n,a))};return r?o.memo(o.forwardRef(i),n):o.memo(i,n)},useImmutableMark:t}}var BW=zW(),HW=(BW.makeImmutable,BW.responseImmutable,BW.useImmutableMark,zW()),DW=HW.makeImmutable,LW=HW.responseImmutable,FW=HW.useImmutableMark;const WW=RW();o.memo(function(){var e=function(e,t){var n=o.useRef(0);n.current+=1;var r=o.useRef(e),i=[];Object.keys(e||{}).map(function(t){var n;(null===e||void 0===e?void 0:e[t])!==(null===(n=r.current)||void 0===n?void 0:n[t])&&i.push(t)}),r.current=e;var a=o.useRef([]);return i.length&&(a.current=i),o.useDebugValue(n.current),o.useDebugValue(a.current.join(", ")),t&&console.log("".concat(t,":"),n.current,a.current),n.current}();return o.createElement("h1",null,"Render Times: ",e)});const _W=o.createContext({renderWithProps:!1});function KW(e){var t=[],n={};return e.forEach(function(e){for(var o,r=e||{},i=r.key,a=r.dataIndex,l=i||(o=a,void 0===o||null===o?[]:Array.isArray(o)?o:[o]).join("-")||"RC_TABLE_KEY";n[l];)l="".concat(l,"_next");n[l]=!0,t.push(l)}),t}function qW(e){return null!==e&&void 0!==e}function VW(e,t,n,r,i,a){var l=o.useContext(_W),c=FW(),s=(0,Ie.A)(function(){if(qW(r))return[r];var a,c=null===t||void 0===t||""===t?[]:Array.isArray(t)?t:[t],s=Fn(e,c),u=s,d=void 0;if(i){var f=i(s,e,n);!(a=f)||"object"!==(0,p.A)(a)||Array.isArray(a)||o.isValidElement(a)?u=f:(u=f.children,d=f.props,l.renderWithProps=!0)}return[u,d]},[c,e,r,t,i,n],function(e,t){if(a){var n=(0,ke.A)(e,2)[1],o=(0,ke.A)(t,2)[1];return a(o,n)}return!!l.renderWithProps||!Ne(e,t,!0)});return s}const XW=o.memo(function(e){var t,n,r,i,c,s,u,f,m=e.component,g=e.children,v=e.ellipsis,h=e.scope,b=e.prefixCls,y=e.className,C=e.align,x=e.record,$=e.render,w=e.dataIndex,S=e.renderIndex,k=e.shouldCellUpdate,E=e.index,O=e.rowType,A=e.colSpan,I=e.rowSpan,N=e.fixLeft,M=e.fixRight,j=e.firstFixLeft,P=e.lastFixLeft,R=e.firstFixRight,T=e.lastFixRight,z=e.appendNode,B=e.additionalProps,H=void 0===B?{}:B,D=e.isSticky,L="".concat(b,"-cell"),F=TW(WW,["supportSticky","allColumnsFixedLeft","rowHoverable"]),W=F.supportSticky,_=F.allColumnsFixedLeft,K=F.rowHoverable,q=VW(x,w,S,g,$,k),V=(0,ke.A)(q,2),X=V[0],G=V[1],Y={},U="number"===typeof N&&W,Q="number"===typeof M&&W;U&&(Y.position="sticky",Y.left=N),Q&&(Y.position="sticky",Y.right=M);var Z=null!==(t=null!==(n=null!==(r=null===G||void 0===G?void 0:G.colSpan)&&void 0!==r?r:H.colSpan)&&void 0!==n?n:A)&&void 0!==t?t:1,J=null!==(i=null!==(c=null!==(s=null===G||void 0===G?void 0:G.rowSpan)&&void 0!==s?s:H.rowSpan)&&void 0!==c?c:I)&&void 0!==i?i:1,ee=function(e,t){return TW(WW,function(n){var o,r,i,a;return[(o=e,r=t||1,i=n.hoverStartRow,a=n.hoverEndRow,o<=a&&o+r-1>=i),n.onHover]})}(E,J),te=(0,ke.A)(ee,2),ne=te[0],oe=te[1],re=Bn(function(e){var t;x&&oe(E,E+J-1),null===H||void 0===H||null===(t=H.onMouseEnter)||void 0===t||t.call(H,e)}),ie=Bn(function(e){var t;x&&oe(-1,-1),null===H||void 0===H||null===(t=H.onMouseLeave)||void 0===t||t.call(H,e)});if(0===Z||0===J)return null;var ae=null!==(u=H.title)&&void 0!==u?u:function(e){var t,n=e.ellipsis,r=e.rowType,i=e.children,a=!0===n?{showTitle:!0}:n;return a&&(a.showTitle||"header"===r)&&("string"===typeof i||"number"===typeof i?t=i.toString():o.isValidElement(i)&&"string"===typeof i.props.children&&(t=i.props.children)),t}({rowType:O,ellipsis:v,children:X}),le=a()(L,y,(f={},(0,Ee.A)((0,Ee.A)((0,Ee.A)((0,Ee.A)((0,Ee.A)((0,Ee.A)((0,Ee.A)((0,Ee.A)((0,Ee.A)((0,Ee.A)(f,"".concat(L,"-fix-left"),U&&W),"".concat(L,"-fix-left-first"),j&&W),"".concat(L,"-fix-left-last"),P&&W),"".concat(L,"-fix-left-all"),P&&_&&W),"".concat(L,"-fix-right"),Q&&W),"".concat(L,"-fix-right-first"),R&&W),"".concat(L,"-fix-right-last"),T&&W),"".concat(L,"-ellipsis"),v),"".concat(L,"-with-append"),z),"".concat(L,"-fix-sticky"),(U||Q)&&D&&W),(0,Ee.A)(f,"".concat(L,"-row-hover"),!G&&ne)),H.className,null===G||void 0===G?void 0:G.className),ce={};C&&(ce.textAlign=C);var se=(0,d.A)((0,d.A)((0,d.A)((0,d.A)({},null===G||void 0===G?void 0:G.style),Y),ce),H.style),ue=X;return"object"!==(0,p.A)(ue)||Array.isArray(ue)||o.isValidElement(ue)||(ue=null),v&&(P||R)&&(ue=o.createElement("span",{className:"".concat(L,"-content")},ue)),o.createElement(m,(0,l.A)({},G,H,{className:le,style:se,title:ae,scope:h,onMouseEnter:K?re:void 0,onMouseLeave:K?ie:void 0,colSpan:1!==Z?Z:null,rowSpan:1!==J?J:null}),z,ue)});function GW(e,t,n,o,r){var i,a,l=n[e]||{},c=n[t]||{};"left"===l.fixed?i=o.left["rtl"===r?t:e]:"right"===c.fixed&&(a=o.right["rtl"===r?e:t]);var s=!1,u=!1,d=!1,p=!1,f=n[t+1],m=n[e-1],g=f&&!f.fixed||m&&!m.fixed||n.every(function(e){return"left"===e.fixed});if("rtl"===r){if(void 0!==i)p=!(m&&"left"===m.fixed)&&g;else if(void 0!==a){d=!(f&&"right"===f.fixed)&&g}}else if(void 0!==i){s=!(f&&"left"===f.fixed)&&g}else if(void 0!==a){u=!(m&&"right"===m.fixed)&&g}return{fixLeft:i,fixRight:a,lastFixLeft:s,firstFixRight:u,lastFixRight:d,firstFixLeft:p,isSticky:o.isSticky}}const YW=o.createContext({});var UW=["children"];function QW(e){return e.children}QW.Row=function(e){var t=e.children,n=(0,cr.A)(e,UW);return o.createElement("tr",n,t)},QW.Cell=function(e){var t=e.className,n=e.index,r=e.children,i=e.colSpan,a=void 0===i?1:i,c=e.rowSpan,s=e.align,u=TW(WW,["prefixCls","direction"]),d=u.prefixCls,p=u.direction,f=o.useContext(YW),m=f.scrollColumnIndex,g=f.stickyOffsets,v=n+a-1+1===m?a+1:a,h=GW(n,n+v-1,f.flattenColumns,g,p);return o.createElement(XW,(0,l.A)({className:t,index:n,component:"td",prefixCls:d,record:null,dataIndex:null,align:s,colSpan:v,rowSpan:c,render:function(){return r}},h))};const ZW=QW;const JW=LW(function(e){var t=e.children,n=e.stickyOffsets,r=e.flattenColumns,i=TW(WW,"prefixCls"),a=r.length-1,l=r[a],c=o.useMemo(function(){return{stickyOffsets:n,flattenColumns:r,scrollColumnIndex:null!==l&&void 0!==l&&l.scrollbar?a:null}},[l,r,a,n]);return o.createElement(YW.Provider,{value:c},o.createElement("tfoot",{className:"".concat(i,"-summary")},t))});var e_=ZW,t_=function(e){if((0,Le.A)()&&window.document.documentElement){var t=Array.isArray(e)?e:[e],n=window.document.documentElement;return t.some(function(e){return e in n.style})}return!1};function n_(e,t){return Array.isArray(e)||void 0===t?t_(e):function(e,t){if(!t_(e))return!1;var n=document.createElement("div"),o=n.style[e];return n.style[e]=t,n.style[e]!==o}(e,t)}function o_(e,t,n,o,r,i,a){var l=i(t,a);e.push({record:t,indent:n,index:a,rowKey:l});var c=null===r||void 0===r?void 0:r.has(l);if(t&&Array.isArray(t[o])&&c)for(var s=0;s<t[o].length;s+=1)o_(e,t[o][s],n+1,o,r,i,s)}function r_(e,t,n,r){var i=o.useMemo(function(){if(null!==n&&void 0!==n&&n.size){for(var o=[],i=0;i<(null===e||void 0===e?void 0:e.length);i+=1){o_(o,e[i],0,t,n,r,i)}return o}return null===e||void 0===e?void 0:e.map(function(e,t){return{record:e,indent:0,index:t,rowKey:r(e,t)}})},[e,t,n,r]);return i}function i_(e,t,n,o){var r,i=TW(WW,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),l=i.flattenColumns,c=i.expandableType,s=i.expandedKeys,u=i.childrenColumnName,p=i.onTriggerExpand,f=i.rowExpandable,m=i.onRow,g=i.expandRowByClick,v=i.rowClassName,h="nest"===c,b="row"===c&&(!f||f(e)),y=b||h,C=s&&s.has(t),x=u&&e&&e[u],$=Bn(p),w=null===m||void 0===m?void 0:m(e,n),S=null===w||void 0===w?void 0:w.onClick;"string"===typeof v?r=v:"function"===typeof v&&(r=v(e,n,o));var k=KW(l);return(0,d.A)((0,d.A)({},i),{},{columnsKey:k,nestExpandable:h,expanded:C,hasNestChildren:x,record:e,onTriggerExpand:$,rowSupportExpand:b,expandable:y,rowProps:(0,d.A)((0,d.A)({},w),{},{className:a()(r,null===w||void 0===w?void 0:w.className),onClick:function(t){g&&y&&p(e,t);for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];null===S||void 0===S||S.apply(void 0,[t].concat(o))}})})}const a_=function(e){var t=e.prefixCls,n=e.children,r=e.component,i=e.cellComponent,a=e.className,l=e.expanded,c=e.colSpan,s=e.isEmpty,u=e.stickyOffset,d=void 0===u?0:u,p=TW(WW,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),f=p.scrollbarSize,m=p.fixHeader,g=p.fixColumn,v=p.componentWidth,h=p.horizonScroll,b=n;return(s?h&&v:g)&&(b=o.createElement("div",{style:{width:v-d-(m&&!s?f:0),position:"sticky",left:d,overflow:"hidden"},className:"".concat(t,"-expanded-row-fixed")},b)),o.createElement(r,{className:a,style:{display:l?null:"none"}},o.createElement(XW,{component:i,prefixCls:t,colSpan:c},b))};function l_(e){var t=e.prefixCls,n=e.record,r=e.onExpand,i=e.expanded,l=e.expandable,c="".concat(t,"-row-expand-icon");if(!l)return o.createElement("span",{className:a()(c,"".concat(t,"-row-spaced"))});return o.createElement("span",{className:a()(c,(0,Ee.A)((0,Ee.A)({},"".concat(t,"-row-expanded"),i),"".concat(t,"-row-collapsed"),!i)),onClick:function(e){r(n,e),e.stopPropagation()}})}function c_(e,t,n,o){return"string"===typeof e?e:"function"===typeof e?e(t,n,o):""}function s_(e,t,n,r,i){var a,l,c=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:0,u=e.record,d=e.prefixCls,p=e.columnsKey,f=e.fixedInfoList,m=e.expandIconColumnIndex,g=e.nestExpandable,v=e.indentSize,h=e.expandIcon,b=e.expanded,y=e.hasNestChildren,C=e.onTriggerExpand,x=e.expandable,$=e.expandedKeys,w=p[n],S=f[n];n===(m||0)&&g&&(l=o.createElement(o.Fragment,null,o.createElement("span",{style:{paddingLeft:"".concat(v*r,"px")},className:"".concat(d,"-row-indent indent-level-").concat(r)}),h({prefixCls:d,expanded:b,expandable:y,record:u,onExpand:C})));var k=(null===(a=t.onCell)||void 0===a?void 0:a.call(t,u,i))||{};if(s){var E=k.rowSpan,O=void 0===E?1:E;if(x&&O&&n<s){for(var A=O,I=i;I<i+O;I+=1){var N=c[I];$.has(N)&&(A+=1)}k.rowSpan=A}}return{key:w,fixedInfo:S,appendCellNode:l,additionalCellProps:k}}const u_=LW(function(e){var t=e.className,n=e.style,r=e.record,i=e.index,c=e.renderIndex,s=e.rowKey,u=e.rowKeys,p=e.indent,f=void 0===p?0:p,m=e.rowComponent,g=e.cellComponent,v=e.scopeCellComponent,h=e.expandedRowInfo,b=i_(r,s,i,f),y=b.prefixCls,C=b.flattenColumns,x=b.expandedRowClassName,$=b.expandedRowRender,w=b.rowProps,S=b.expanded,k=b.rowSupportExpand,E=o.useRef(!1);E.current||(E.current=S);var O,A=c_(x,r,i,f),I=o.createElement(m,(0,l.A)({},w,{"data-row-key":s,className:a()(t,"".concat(y,"-row"),"".concat(y,"-row-level-").concat(f),null===w||void 0===w?void 0:w.className,(0,Ee.A)({},A,f>=1)),style:(0,d.A)((0,d.A)({},n),null===w||void 0===w?void 0:w.style)}),C.map(function(e,t){var n=e.render,a=e.dataIndex,s=e.className,d=s_(b,e,t,f,i,u,null===h||void 0===h?void 0:h.offset),p=d.key,m=d.fixedInfo,C=d.appendCellNode,x=d.additionalCellProps;return o.createElement(XW,(0,l.A)({className:s,ellipsis:e.ellipsis,align:e.align,scope:e.rowScope,component:e.rowScope?v:g,prefixCls:y,key:p,record:r,index:i,renderIndex:c,dataIndex:a,render:n,shouldCellUpdate:e.shouldCellUpdate},m,{appendNode:C,additionalProps:x}))}));if(k&&(E.current||S)){var N=$(r,i,f+1,S);O=o.createElement(a_,{expanded:S,className:a()("".concat(y,"-expanded-row"),"".concat(y,"-expanded-row-level-").concat(f+1),A),prefixCls:y,component:m,cellComponent:g,colSpan:h?h.colSpan:C.length,stickyOffset:null===h||void 0===h?void 0:h.sticky,isEmpty:!1},N)}return o.createElement(o.Fragment,null,I,O)});function d_(e){var t=e.columnKey,n=e.onColumnResize,r=o.useRef();return ut(function(){r.current&&n(t,r.current.offsetWidth)},[]),o.createElement(ie,{data:t},o.createElement("td",{ref:r,style:{padding:0,border:0,height:0}},o.createElement("div",{style:{height:0,overflow:"hidden"}},"\xa0")))}function p_(e){var t=e.prefixCls,n=e.columnsKey,r=e.onColumnResize,i=o.useRef(null);return o.createElement("tr",{"aria-hidden":"true",className:"".concat(t,"-measure-row"),style:{height:0,fontSize:0},ref:i},o.createElement(ie.Collection,{onBatchResize:function(e){Ql(i.current)&&e.forEach(function(e){var t=e.data,n=e.size;r(t,n.offsetWidth)})}},n.map(function(e){return o.createElement(d_,{key:e,columnKey:e,onColumnResize:r})})))}const f_=LW(function(e){var t,n=e.data,r=e.measureColumnWidth,i=TW(WW,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode","expandedRowOffset","fixedInfoList","colWidths"]),a=i.prefixCls,l=i.getComponent,c=i.onColumnResize,s=i.flattenColumns,u=i.getRowKey,d=i.expandedKeys,p=i.childrenColumnName,f=i.emptyNode,m=i.expandedRowOffset,g=void 0===m?0:m,v=i.colWidths,h=r_(n,p,d,u),b=o.useMemo(function(){return h.map(function(e){return e.rowKey})},[h]),y=o.useRef({renderWithProps:!1}),C=o.useMemo(function(){for(var e=s.length-g,t=0,n=0;n<g;n+=1)t+=v[n]||0;return{offset:g,colSpan:e,sticky:t}},[s.length,g,v]),x=l(["body","wrapper"],"tbody"),$=l(["body","row"],"tr"),w=l(["body","cell"],"td"),S=l(["body","cell"],"th");t=n.length?h.map(function(e,t){var n=e.record,r=e.indent,i=e.index,a=e.rowKey;return o.createElement(u_,{key:a,rowKey:a,rowKeys:b,record:n,index:t,renderIndex:i,rowComponent:$,cellComponent:w,scopeCellComponent:S,indent:r,expandedRowInfo:C})}):o.createElement(a_,{expanded:!0,className:"".concat(a,"-placeholder"),prefixCls:a,component:$,cellComponent:w,colSpan:s.length,isEmpty:!0},f);var k=KW(s);return o.createElement(_W.Provider,{value:y.current},o.createElement(x,{className:"".concat(a,"-tbody")},r&&o.createElement(p_,{prefixCls:a,columnsKey:k,onColumnResize:c}),t))});var m_=["expandable"],g_="RC_TABLE_INTERNAL_COL_DEFINE";var v_=["columnType"];const h_=function(e){for(var t=e.colWidths,n=e.columns,r=e.columCount,i=TW(WW,["tableLayout"]).tableLayout,a=[],c=!1,s=(r||n.length)-1;s>=0;s-=1){var u=t[s],d=n&&n[s],p=void 0,f=void 0;if(d&&(p=d[g_],"auto"===i&&(f=d.minWidth)),u||f||p||c){var m=p||{},g=(m.columnType,(0,cr.A)(m,v_));a.unshift(o.createElement("col",(0,l.A)({key:s,style:{width:u,minWidth:f}},g))),c=!0}}return o.createElement("colgroup",null,a)};var b_=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];var y_=o.forwardRef(function(e,t){var n=e.className,r=e.noData,i=e.columns,l=e.flattenColumns,c=e.colWidths,s=e.columCount,u=e.stickyOffsets,p=e.direction,f=e.fixHeader,m=e.stickyTopOffset,g=e.stickyBottomOffset,v=e.stickyClassName,h=e.onScroll,y=e.maxContentScroll,C=e.children,x=(0,cr.A)(e,b_),$=TW(WW,["prefixCls","scrollbarSize","isSticky","getComponent"]),w=$.prefixCls,S=$.scrollbarSize,k=$.isSticky,E=(0,$.getComponent)(["header","table"],"table"),O=k&&!f?0:S,A=o.useRef(null),I=o.useCallback(function(e){(0,b.Xf)(t,e),(0,b.Xf)(A,e)},[]);o.useEffect(function(){function e(e){var t=e,n=t.currentTarget,o=t.deltaX;o&&(h({currentTarget:n,scrollLeft:n.scrollLeft+o}),e.preventDefault())}var t=A.current;return null===t||void 0===t||t.addEventListener("wheel",e,{passive:!1}),function(){null===t||void 0===t||t.removeEventListener("wheel",e)}},[]);var N=o.useMemo(function(){return l.every(function(e){return e.width})},[l]),M=l[l.length-1],j={fixed:M?M.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(w,"-cell-scrollbar")}}},P=(0,o.useMemo)(function(){return O?[].concat(se(i),[j]):i},[O,i]),R=(0,o.useMemo)(function(){return O?[].concat(se(l),[j]):l},[O,l]),T=(0,o.useMemo)(function(){var e=u.right,t=u.left;return(0,d.A)((0,d.A)({},u),{},{left:"rtl"===p?[].concat(se(t.map(function(e){return e+O})),[0]):t,right:"rtl"===p?e:[].concat(se(e.map(function(e){return e+O})),[0]),isSticky:k})},[O,u,k]),z=function(e,t){return(0,o.useMemo)(function(){for(var n=[],o=0;o<t;o+=1){var r=e[o];if(void 0===r)return null;n[o]=r}return n},[e.join("_"),t])}(c,s);return o.createElement("div",{style:(0,d.A)({overflow:"hidden"},k?{top:m,bottom:g}:{}),ref:I,className:a()(n,(0,Ee.A)({},v,!!v))},o.createElement(E,{style:{tableLayout:"fixed",visibility:r||z?null:"hidden"}},(!r||!y||N)&&o.createElement(h_,{colWidths:z?[].concat(se(z),[O]):[],columCount:s+1,columns:R}),C((0,d.A)((0,d.A)({},x),{},{stickyOffsets:T,columns:P,flattenColumns:R}))))});const C_=o.memo(y_);const x_=function(e){var t,n=e.cells,r=e.stickyOffsets,i=e.flattenColumns,a=e.rowComponent,c=e.cellComponent,s=e.onHeaderRow,u=e.index,d=TW(WW,["prefixCls","direction"]),p=d.prefixCls,f=d.direction;s&&(t=s(n.map(function(e){return e.column}),u));var m=KW(n.map(function(e){return e.column}));return o.createElement(a,t,n.map(function(e,t){var n,a=e.column,s=GW(e.colStart,e.colEnd,i,r,f);return a&&a.onHeaderCell&&(n=e.column.onHeaderCell(a)),o.createElement(XW,(0,l.A)({},e,{scope:a.title?e.colSpan>1?"colgroup":"col":null,ellipsis:a.ellipsis,align:a.align,component:c,prefixCls:p,key:m[t]},s,{additionalProps:n,rowType:"header"}))}))};const $_=LW(function(e){var t=e.stickyOffsets,n=e.columns,r=e.flattenColumns,i=e.onHeaderRow,a=TW(WW,["prefixCls","getComponent"]),l=a.prefixCls,c=a.getComponent,s=o.useMemo(function(){return function(e){var t=[];!function e(n,o){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;t[r]=t[r]||[];var i=o,a=n.filter(Boolean).map(function(n){var o={key:n.key,className:n.className||"",children:n.title,column:n,colStart:i},a=1,l=n.children;return l&&l.length>0&&(a=e(l,i,r+1).reduce(function(e,t){return e+t},0),o.hasSubColumns=!0),"colSpan"in n&&(a=n.colSpan),"rowSpan"in n&&(o.rowSpan=n.rowSpan),o.colSpan=a,o.colEnd=o.colStart+a-1,t[r].push(o),i+=a,a});return a}(e,0);for(var n=t.length,o=function(e){t[e].forEach(function(t){"rowSpan"in t||t.hasSubColumns||(t.rowSpan=n-e)})},r=0;r<n;r+=1)o(r);return t}(n)},[n]),u=c(["header","wrapper"],"thead"),d=c(["header","row"],"tr"),p=c(["header","cell"],"th");return o.createElement(u,{className:"".concat(l,"-thead")},s.map(function(e,n){return o.createElement(x_,{key:n,flattenColumns:r,cells:e,stickyOffsets:t,rowComponent:d,cellComponent:p,onHeaderRow:i,index:n})}))});function w_(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"number"===typeof t?t:t.endsWith("%")?e*parseFloat(t)/100:null}var S_=["children"],k_=["fixed"];function E_(e){return s(e).filter(function(e){return o.isValidElement(e)}).map(function(e){var t=e.key,n=e.props,o=n.children,r=(0,cr.A)(n,S_),i=(0,d.A)({key:t},r);return o&&(i.children=E_(o)),i})}function O_(e){return e.filter(function(e){return e&&"object"===(0,p.A)(e)&&!e.hidden}).map(function(e){var t=e.children;return t&&t.length>0?(0,d.A)((0,d.A)({},e),{},{children:O_(t)}):e})}function A_(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"key";return e.filter(function(e){return e&&"object"===(0,p.A)(e)}).reduce(function(e,n,o){var r=n.fixed,i=!0===r?"left":r,a="".concat(t,"-").concat(o),l=n.children;return l&&l.length>0?[].concat(se(e),se(A_(l,a).map(function(e){return(0,d.A)({fixed:i},e)}))):[].concat(se(e),[(0,d.A)((0,d.A)({key:a},n),{},{fixed:i})])},[])}const I_=function(e,t){var n=e.prefixCls,r=e.columns,i=e.children,a=e.expandable,l=e.expandedKeys,c=e.columnTitle,s=e.getRowKey,u=e.onTriggerExpand,p=e.expandIcon,f=e.rowExpandable,m=e.expandIconColumnIndex,g=e.expandedRowOffset,v=void 0===g?0:g,h=e.direction,b=e.expandRowByClick,y=e.columnWidth,C=e.fixed,x=e.scrollWidth,$=e.clientWidth,w=o.useMemo(function(){return O_((r||E_(i)||[]).slice())},[r,i]),S=o.useMemo(function(){if(a){var e=w.slice();if(!e.includes(jW)){var t=m||0;t>=0&&(t||"left"===C||!C)&&e.splice(t,0,jW),"right"===C&&e.splice(w.length,0,jW)}0;var r=e.indexOf(jW);e=e.filter(function(e,t){return e!==jW||t===r});var i,g=w[r];i=C||(g?g.fixed:null);var h=(0,Ee.A)((0,Ee.A)((0,Ee.A)((0,Ee.A)((0,Ee.A)((0,Ee.A)({},g_,{className:"".concat(n,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",c),"fixed",i),"className","".concat(n,"-row-expand-icon-cell")),"width",y),"render",function(e,t,r){var i=s(t,r),a=l.has(i),c=!f||f(t),d=p({prefixCls:n,expanded:a,expandable:c,record:t,onExpand:u});return b?o.createElement("span",{onClick:function(e){return e.stopPropagation()}},d):d});return e.map(function(e,t){var n=e===jW?h:e;return t<v?(0,d.A)((0,d.A)({},n),{},{fixed:n.fixed||"left"}):n})}return w.filter(function(e){return e!==jW})},[a,w,s,l,p,h,v]),k=o.useMemo(function(){var e=S;return t&&(e=t(e)),e.length||(e=[{render:function(){return null}}]),e},[t,S,h]),E=o.useMemo(function(){return"rtl"===h?function(e){return e.map(function(e){var t=e.fixed,n=(0,cr.A)(e,k_),o=t;return"left"===t?o="right":"right"===t&&(o="left"),(0,d.A)({fixed:o},n)})}(A_(k)):A_(k)},[k,h,x]),O=o.useMemo(function(){for(var e=-1,t=E.length-1;t>=0;t-=1){var n=E[t].fixed;if("left"===n||!0===n){e=t;break}}if(e>=0)for(var o=0;o<=e;o+=1){var r=E[o].fixed;if("left"!==r&&!0!==r)return!0}var i=E.findIndex(function(e){return"right"===e.fixed});if(i>=0)for(var a=i;a<E.length;a+=1){if("right"!==E[a].fixed)return!0}return!1},[E]),A=function(e,t,n){return o.useMemo(function(){if(t&&t>0){var o=0,r=0;e.forEach(function(e){var n=w_(t,e.width);n?o+=n:r+=1});var i=Math.max(t,n),a=Math.max(i-o,r),l=r,c=a/r,s=0,u=e.map(function(e){var n=(0,d.A)({},e),o=w_(t,n.width);if(o)n.width=o;else{var r=Math.floor(c);n.width=1===l?a:r,a-=r,l-=1}return s+=n.width,n});if(s<i){var p=i/s;a=i,u.forEach(function(e,t){var n=Math.floor(e.width*p);e.width=t===u.length-1?a:n,a-=n})}return[u,Math.max(s,i)]}return[e,t]},[e,t,n])}(E,x,$),I=(0,ke.A)(A,2),N=I[0],M=I[1];return[k,N,M,O]};function N_(e,t,n){var r=function(e){var t,n=e.expandable,o=(0,cr.A)(e,m_);return!1===(t="expandable"in e?(0,d.A)((0,d.A)({},o),n):o).showExpandColumn&&(t.expandIconColumnIndex=-1),t}(e),i=r.expandIcon,a=r.expandedRowKeys,l=r.defaultExpandedRowKeys,c=r.defaultExpandAllRows,s=r.expandedRowRender,u=r.onExpand,f=r.onExpandedRowsChange,m=i||l_,g=r.childrenColumnName||"children",v=o.useMemo(function(){return s?"row":!!(e.expandable&&e.internalHooks===PW&&e.expandable.__PARENT_RENDER_ICON__||t.some(function(e){return e&&"object"===(0,p.A)(e)&&e[g]}))&&"nest"},[!!s,t]),h=o.useState(function(){return l||(c?function(e,t,n){var o=[];return function e(r){(r||[]).forEach(function(r,i){o.push(t(r,i)),e(r[n])})}(e),o}(t,n,g):[])}),b=(0,ke.A)(h,2),y=b[0],C=b[1],x=o.useMemo(function(){return new Set(a||y||[])},[a,y]),$=o.useCallback(function(e){var o,r=n(e,t.indexOf(e)),i=x.has(r);i?(x.delete(r),o=se(x)):o=[].concat(se(x),[r]),C(o),u&&u(!i,e),f&&f(o)},[n,x,t,u,f]);return[r,v,x,m,g,$]}var M_=(0,Le.A)()?window:null;const j_=function(e,t,n){var r=(0,o.useMemo)(function(){var o=t.length,r=function(n,o,r){for(var i=[],a=0,l=n;l!==o;l+=r)i.push(a),t[l].fixed&&(a+=e[l]||0);return i},i=r(0,o,1),a=r(o-1,-1,-1).reverse();return"rtl"===n?{left:a,right:i}:{left:i,right:a}},[e,t,n]);return r};const P_=function(e){var t=e.className,n=e.children;return o.createElement("div",{className:t},n)};function R_(e){var t=v(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)}}const T_=o.forwardRef(function(e,t){var n,r,i=e.scrollBodyRef,l=e.onScroll,c=e.offsetScroll,s=e.container,u=e.direction,p=TW(WW,"prefixCls"),f=(null===(n=i.current)||void 0===n?void 0:n.scrollWidth)||0,m=(null===(r=i.current)||void 0===r?void 0:r.clientWidth)||0,g=f&&m*(m/f),h=o.useRef(),b=function(e){var t=(0,o.useRef)(e),n=(0,o.useState)({}),r=(0,ke.A)(n,2)[1],i=(0,o.useRef)(null),a=(0,o.useRef)([]);return(0,o.useEffect)(function(){return function(){i.current=null}},[]),[t.current,function(e){a.current.push(e);var n=Promise.resolve();i.current=n,n.then(function(){if(i.current===n){var e=a.current,o=t.current;a.current=[],e.forEach(function(e){t.current=e(t.current)}),i.current=null,o!==t.current&&r({})}})}]}({scrollLeft:0,isHiddenScrollBar:!0}),y=(0,ke.A)(b,2),C=y[0],x=y[1],$=o.useRef({delta:0,x:0}),w=o.useState(!1),S=(0,ke.A)(w,2),k=S[0],E=S[1],O=o.useRef(null);o.useEffect(function(){return function(){ve.cancel(O.current)}},[]);var A=function(){E(!1)},I=function(e){var t,n=(e||(null===(t=window)||void 0===t?void 0:t.event)).buttons;if(k&&0!==n){var o=$.current.x+e.pageX-$.current.x-$.current.delta,r="rtl"===u;o=Math.max(r?g-m:0,Math.min(r?0:m-g,o)),(!r||Math.abs(o)+Math.abs(g)<m)&&(l({scrollLeft:o/m*(f+2)}),$.current.x=e.pageX)}else k&&E(!1)},N=function(){ve.cancel(O.current),O.current=ve(function(){if(i.current){var e=R_(i.current).top,t=e+i.current.offsetHeight,n=s===window?document.documentElement.scrollTop+window.innerHeight:R_(s).top+s.clientHeight;t-Tu()<=n||e>=n-c?x(function(e){return(0,d.A)((0,d.A)({},e),{},{isHiddenScrollBar:!0})}):x(function(e){return(0,d.A)((0,d.A)({},e),{},{isHiddenScrollBar:!1})})}})},M=function(e){x(function(t){return(0,d.A)((0,d.A)({},t),{},{scrollLeft:e/f*m||0})})};return o.useImperativeHandle(t,function(){return{setScrollLeft:M,checkScrollBarVisible:N}}),o.useEffect(function(){var e=mz(document.body,"mouseup",A,!1),t=mz(document.body,"mousemove",I,!1);return N(),function(){e.remove(),t.remove()}},[g,k]),o.useEffect(function(){if(i.current){for(var e=[],t=v(i.current);t;)e.push(t),t=t.parentElement;return e.forEach(function(e){return e.addEventListener("scroll",N,!1)}),window.addEventListener("resize",N,!1),window.addEventListener("scroll",N,!1),s.addEventListener("scroll",N,!1),function(){e.forEach(function(e){return e.removeEventListener("scroll",N)}),window.removeEventListener("resize",N),window.removeEventListener("scroll",N),s.removeEventListener("scroll",N)}}},[s]),o.useEffect(function(){C.isHiddenScrollBar||x(function(e){var t=i.current;return t?(0,d.A)((0,d.A)({},e),{},{scrollLeft:t.scrollLeft/t.scrollWidth*t.clientWidth}):e})},[C.isHiddenScrollBar]),f<=m||!g||C.isHiddenScrollBar?null:o.createElement("div",{style:{height:Tu(),width:m,bottom:c},className:"".concat(p,"-sticky-scroll")},o.createElement("div",{onMouseDown:function(e){e.persist(),$.current.delta=e.pageX-C.scrollLeft,$.current.x=0,E(!0),e.preventDefault()},ref:h,className:a()("".concat(p,"-sticky-scroll-bar"),(0,Ee.A)({},"".concat(p,"-sticky-scroll-bar-active"),k)),style:{width:"".concat(g,"px"),transform:"translate3d(".concat(C.scrollLeft,"px, 0, 0)")}}))});const z_=function(e){return null};const B_=function(e){return null};var H_="rc-table",D_=[],L_={};function F_(){return"No Data"}var W_=o.forwardRef(function(e,t){var n=(0,d.A)({rowKey:"key",prefixCls:H_,emptyText:F_},e),r=n.prefixCls,i=n.className,c=n.rowClassName,s=n.style,u=n.data,f=n.rowKey,m=n.scroll,g=n.tableLayout,h=n.direction,b=n.title,y=n.footer,C=n.summary,x=n.caption,$=n.id,w=n.showHeader,S=n.components,k=n.emptyText,E=n.onRow,O=n.onHeaderRow,A=n.onScroll,I=n.internalHooks,N=n.transformColumns,M=n.internalRefs,j=n.tailor,P=n.getContainerWidth,R=n.sticky,T=n.rowHoverable,z=void 0===T||T,B=u||D_,H=!!B.length,D=I===PW,L=o.useCallback(function(e,t){return Fn(S,e)||t},[S]),F=o.useMemo(function(){return"function"===typeof f?f:function(e){return e&&e[f]}},[f]),W=L(["body"]),_=function(){var e=o.useState(-1),t=(0,ke.A)(e,2),n=t[0],r=t[1],i=o.useState(-1),a=(0,ke.A)(i,2),l=a[0],c=a[1];return[n,l,o.useCallback(function(e,t){r(e),c(t)},[])]}(),K=(0,ke.A)(_,3),q=K[0],V=K[1],X=K[2],G=N_(n,B,F),Y=(0,ke.A)(G,6),U=Y[0],Q=Y[1],Z=Y[2],J=Y[3],ee=Y[4],te=Y[5],ne=null===m||void 0===m?void 0:m.x,oe=o.useState(0),re=(0,ke.A)(oe,2),ae=re[0],le=re[1],ce=I_((0,d.A)((0,d.A)((0,d.A)({},n),U),{},{expandable:!!U.expandedRowRender,columnTitle:U.columnTitle,expandedKeys:Z,getRowKey:F,onTriggerExpand:te,expandIcon:J,expandIconColumnIndex:U.expandIconColumnIndex,direction:h,scrollWidth:D&&j&&"number"===typeof ne?ne:null,clientWidth:ae}),D?N:null),se=(0,ke.A)(ce,4),ue=se[0],de=se[1],pe=se[2],fe=se[3],me=null!==pe&&void 0!==pe?pe:ne,ge=o.useMemo(function(){return{columns:ue,flattenColumns:de}},[ue,de]),ve=o.useRef(),he=o.useRef(),be=o.useRef(),ye=o.useRef();o.useImperativeHandle(t,function(){return{nativeElement:ve.current,scrollTo:function(e){var t,n;if(be.current instanceof HTMLElement){var o=e.index,r=e.top,i=e.key;if("number"!==typeof(n=r)||Number.isNaN(n)){var a,l=null!==i&&void 0!==i?i:F(B[o]);null===(a=be.current.querySelector('[data-row-key="'.concat(l,'"]')))||void 0===a||a.scrollIntoView()}else{var c;null===(c=be.current)||void 0===c||c.scrollTo({top:r})}}else null!==(t=be.current)&&void 0!==t&&t.scrollTo&&be.current.scrollTo(e)}}});var Ce,xe,$e,we=o.useRef(),Se=o.useState(!1),Oe=(0,ke.A)(Se,2),Ae=Oe[0],Me=Oe[1],je=o.useState(!1),Pe=(0,ke.A)(je,2),Re=Pe[0],Te=Pe[1],ze=o.useState(new Map),Be=(0,ke.A)(ze,2),He=Be[0],De=Be[1],Le=KW(de).map(function(e){return He.get(e)}),Fe=o.useMemo(function(){return Le},[Le.join("_")]),We=j_(Fe,de,h),_e=m&&qW(m.y),Ke=m&&qW(me)||Boolean(U.fixed),qe=Ke&&de.some(function(e){return e.fixed}),Ve=o.useRef(),Xe=function(e,t){var n="object"===(0,p.A)(e)?e:{},r=n.offsetHeader,i=void 0===r?0:r,a=n.offsetSummary,l=void 0===a?0:a,c=n.offsetScroll,s=void 0===c?0:c,u=n.getContainer,d=(void 0===u?function(){return M_}:u)()||M_,f=!!e;return o.useMemo(function(){return{isSticky:f,stickyClassName:f?"".concat(t,"-sticky-holder"):"",offsetHeader:i,offsetSummary:l,offsetScroll:s,container:d}},[f,s,i,l,t,d])}(R,r),Ge=Xe.isSticky,Ye=Xe.offsetHeader,Ue=Xe.offsetSummary,Qe=Xe.offsetScroll,Ze=Xe.stickyClassName,Je=Xe.container,et=o.useMemo(function(){return null===C||void 0===C?void 0:C(B)},[C,B]),tt=(_e||Ge)&&o.isValidElement(et)&&et.type===ZW&&et.props.fixed;_e&&(xe={overflowY:H?"scroll":"auto",maxHeight:m.y}),Ke&&(Ce={overflowX:"auto"},_e||(xe={overflowY:"hidden"}),$e={width:!0===me?"auto":me,minWidth:"100%"});var nt=o.useCallback(function(e,t){De(function(n){if(n.get(e)!==t){var o=new Map(n);return o.set(e,t),o}return n})},[]),ot=function(e){var t=(0,o.useRef)(e||null),n=(0,o.useRef)();function r(){window.clearTimeout(n.current)}return(0,o.useEffect)(function(){return r},[]),[function(e){t.current=e,r(),n.current=window.setTimeout(function(){t.current=null,n.current=void 0},100)},function(){return t.current}]}(null),rt=(0,ke.A)(ot,2),it=rt[0],at=rt[1];function lt(e,t){t&&("function"===typeof t?t(e):t.scrollLeft!==e&&(t.scrollLeft=e,t.scrollLeft!==e&&setTimeout(function(){t.scrollLeft=e},0)))}var ct=Bn(function(e){var t,n=e.currentTarget,o=e.scrollLeft,r="rtl"===h,i="number"===typeof o?o:n.scrollLeft,a=n||L_;at()&&at()!==a||(it(a),lt(i,he.current),lt(i,be.current),lt(i,we.current),lt(i,null===(t=Ve.current)||void 0===t?void 0:t.setScrollLeft));var l=n||he.current;if(l){var c=D&&j&&"number"===typeof me?me:l.scrollWidth,s=l.clientWidth;if(c===s)return Me(!1),void Te(!1);r?(Me(-i<c-s),Te(-i>0)):(Me(i>0),Te(i<c-s))}}),st=Bn(function(e){ct(e),null===A||void 0===A||A(e)}),dt=function(){var e;Ke&&be.current?ct({currentTarget:v(be.current),scrollLeft:null===(e=be.current)||void 0===e?void 0:e.scrollLeft}):(Me(!1),Te(!1))},pt=o.useRef(!1);o.useEffect(function(){pt.current&&dt()},[Ke,u,ue.length]),o.useEffect(function(){pt.current=!0},[]);var ft=o.useState(0),mt=(0,ke.A)(ft,2),gt=mt[0],vt=mt[1],ht=o.useState(!0),bt=(0,ke.A)(ht,2),yt=bt[0],Ct=bt[1];ut(function(){j&&D||(be.current instanceof Element?vt(zu(be.current).width):vt(zu(ye.current).width)),Ct(n_("position","sticky"))},[]),o.useEffect(function(){D&&M&&(M.body.current=be.current)});var xt,$t=o.useCallback(function(e){return o.createElement(o.Fragment,null,o.createElement($_,e),"top"===tt&&o.createElement(JW,e,et))},[tt,et]),wt=o.useCallback(function(e){return o.createElement(JW,e,et)},[et]),St=L(["table"],"table"),kt=o.useMemo(function(){return g||(qe?"max-content"===me?"auto":"fixed":_e||Ge||de.some(function(e){return e.ellipsis})?"fixed":"auto")},[_e,qe,de,g,Ge]),Et={colWidths:Fe,columCount:de.length,stickyOffsets:We,onHeaderRow:O,fixHeader:_e,scroll:m},Ot=o.useMemo(function(){return H?null:"function"===typeof k?k():k},[H,k]),At=o.createElement(f_,{data:B,measureColumnWidth:_e||Ke||Ge}),It=o.createElement(h_,{colWidths:de.map(function(e){return e.width}),columns:de}),Nt=null!==x&&void 0!==x?o.createElement("caption",{className:"".concat(r,"-caption")},x):void 0,Mt=ni(n,{data:!0}),jt=ni(n,{aria:!0});if(_e||Ge){var Pt;"function"===typeof W?(Pt=W(B,{scrollbarSize:gt,ref:be,onScroll:ct}),Et.colWidths=de.map(function(e,t){var n=e.width,o=t===de.length-1?n-gt:n;return"number"!==typeof o||Number.isNaN(o)?0:o})):Pt=o.createElement("div",{style:(0,d.A)((0,d.A)({},Ce),xe),onScroll:st,ref:be,className:a()("".concat(r,"-body"))},o.createElement(St,(0,l.A)({style:(0,d.A)((0,d.A)({},$e),{},{tableLayout:kt})},jt),Nt,It,At,!tt&&et&&o.createElement(JW,{stickyOffsets:We,flattenColumns:de},et)));var Rt=(0,d.A)((0,d.A)((0,d.A)({noData:!B.length,maxContentScroll:Ke&&"max-content"===me},Et),ge),{},{direction:h,stickyClassName:Ze,onScroll:ct});xt=o.createElement(o.Fragment,null,!1!==w&&o.createElement(C_,(0,l.A)({},Rt,{stickyTopOffset:Ye,className:"".concat(r,"-header"),ref:he}),$t),Pt,tt&&"top"!==tt&&o.createElement(C_,(0,l.A)({},Rt,{stickyBottomOffset:Ue,className:"".concat(r,"-summary"),ref:we}),wt),Ge&&be.current&&be.current instanceof Element&&o.createElement(T_,{ref:Ve,offsetScroll:Qe,scrollBodyRef:be,onScroll:ct,container:Je,direction:h}))}else xt=o.createElement("div",{style:(0,d.A)((0,d.A)({},Ce),xe),className:a()("".concat(r,"-content")),onScroll:ct,ref:be},o.createElement(St,(0,l.A)({style:(0,d.A)((0,d.A)({},$e),{},{tableLayout:kt})},jt),Nt,It,!1!==w&&o.createElement($_,(0,l.A)({},Et,ge)),At,et&&o.createElement(JW,{stickyOffsets:We,flattenColumns:de},et)));var Tt=o.createElement("div",(0,l.A)({className:a()(r,i,(0,Ee.A)((0,Ee.A)((0,Ee.A)((0,Ee.A)((0,Ee.A)((0,Ee.A)((0,Ee.A)((0,Ee.A)((0,Ee.A)((0,Ee.A)({},"".concat(r,"-rtl"),"rtl"===h),"".concat(r,"-ping-left"),Ae),"".concat(r,"-ping-right"),Re),"".concat(r,"-layout-fixed"),"fixed"===g),"".concat(r,"-fixed-header"),_e),"".concat(r,"-fixed-column"),qe),"".concat(r,"-fixed-column-gapped"),qe&&fe),"".concat(r,"-scroll-horizontal"),Ke),"".concat(r,"-has-fix-left"),de[0]&&de[0].fixed),"".concat(r,"-has-fix-right"),de[de.length-1]&&"right"===de[de.length-1].fixed)),style:s,id:$,ref:ve},Mt),b&&o.createElement(P_,{className:"".concat(r,"-title")},b(B)),o.createElement("div",{ref:ye,className:"".concat(r,"-container")},xt),y&&o.createElement(P_,{className:"".concat(r,"-footer")},y(B)));Ke&&(Tt=o.createElement(ie,{onResize:function(e){var t,n=e.width;null===(t=Ve.current)||void 0===t||t.checkScrollBarVisible();var o=ve.current?ve.current.offsetWidth:n;D&&P&&ve.current&&(o=P(ve.current,o)||o),o!==ae&&(dt(),le(o))}},Tt));var zt=function(e,t,n){var o=e.map(function(o,r){return GW(r,r,e,t,n)});return(0,Ie.A)(function(){return o},[o],function(e,t){return!Ne(e,t)})}(de,We,h),Bt=o.useMemo(function(){return{scrollX:me,prefixCls:r,getComponent:L,scrollbarSize:gt,direction:h,fixedInfoList:zt,isSticky:Ge,supportSticky:yt,componentWidth:ae,fixHeader:_e,fixColumn:qe,horizonScroll:Ke,tableLayout:kt,rowClassName:c,expandedRowClassName:U.expandedRowClassName,expandIcon:J,expandableType:Q,expandRowByClick:U.expandRowByClick,expandedRowRender:U.expandedRowRender,expandedRowOffset:U.expandedRowOffset,onTriggerExpand:te,expandIconColumnIndex:U.expandIconColumnIndex,indentSize:U.indentSize,allColumnsFixedLeft:de.every(function(e){return"left"===e.fixed}),emptyNode:Ot,columns:ue,flattenColumns:de,onColumnResize:nt,colWidths:Fe,hoverStartRow:q,hoverEndRow:V,onHover:X,rowExpandable:U.rowExpandable,onRow:E,getRowKey:F,expandedKeys:Z,childrenColumnName:ee,rowHoverable:z}},[me,r,L,gt,h,zt,Ge,yt,ae,_e,qe,Ke,kt,c,U.expandedRowClassName,J,Q,U.expandRowByClick,U.expandedRowRender,U.expandedRowOffset,te,U.expandIconColumnIndex,U.indentSize,Ot,ue,de,nt,Fe,q,V,X,U.rowExpandable,E,F,Z,ee,z]);return o.createElement(WW.Provider,{value:Bt},Tt)});function __(e){return DW(W_,e)}var K_=__();K_.EXPAND_COLUMN=jW,K_.INTERNAL_HOOKS=PW,K_.Column=z_,K_.ColumnGroup=B_,K_.Summary=e_;const q_=K_;var V_=RW(null),X_=RW(null);const G_=function(e){var t=e.rowInfo,n=e.column,r=e.colIndex,i=e.indent,c=e.index,s=e.component,u=e.renderIndex,p=e.record,f=e.style,m=e.className,g=e.inverse,v=e.getHeight,h=n.render,b=n.dataIndex,y=n.className,C=n.width,x=TW(X_,["columnsOffset"]).columnsOffset,$=s_(t,n,r,i,c),w=$.key,S=$.fixedInfo,k=$.appendCellNode,E=$.additionalCellProps,O=E.style,A=E.colSpan,I=void 0===A?1:A,N=E.rowSpan,M=void 0===N?1:N,j=function(e,t,n){return n[e+(t||1)]-(n[e]||0)}(r-1,I,x),P=I>1?C-j:0,R=(0,d.A)((0,d.A)((0,d.A)({},O),f),{},{flex:"0 0 ".concat(j,"px"),width:"".concat(j,"px"),marginRight:P,pointerEvents:"auto"}),T=o.useMemo(function(){return g?M<=1:0===I||0===M||M>1},[M,I,g]);T?R.visibility="hidden":g&&(R.height=null===v||void 0===v?void 0:v(M));var z=T?function(){return null}:h,B={};return 0!==M&&0!==I||(B.rowSpan=1,B.colSpan=1),o.createElement(XW,(0,l.A)({className:a()(y,m),ellipsis:n.ellipsis,align:n.align,scope:n.rowScope,component:s,prefixCls:t.prefixCls,key:w,record:p,index:c,renderIndex:u,dataIndex:b,render:z,shouldCellUpdate:n.shouldCellUpdate},S,{appendNode:k,additionalProps:(0,d.A)((0,d.A)({},E),{},{style:R},B)}))};var Y_=["data","index","className","rowKey","style","extra","getHeight"],U_=o.forwardRef(function(e,t){var n,r=e.data,i=e.index,c=e.className,s=e.rowKey,u=e.style,p=e.extra,f=e.getHeight,m=(0,cr.A)(e,Y_),g=r.record,v=r.indent,h=r.index,b=TW(WW,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),y=b.scrollX,C=b.flattenColumns,x=b.prefixCls,$=b.fixColumn,w=b.componentWidth,S=TW(V_,["getComponent"]).getComponent,k=i_(g,s,i,v),E=S(["body","row"],"div"),O=S(["body","cell"],"div"),A=k.rowSupportExpand,I=k.expanded,N=k.rowProps,M=k.expandedRowRender,j=k.expandedRowClassName;if(A&&I){var P=M(g,i,v+1,I),R=c_(j,g,i,v),T={};$&&(T={style:(0,Ee.A)({},"--virtual-width","".concat(w,"px"))});var z="".concat(x,"-expanded-row-cell");n=o.createElement(E,{className:a()("".concat(x,"-expanded-row"),"".concat(x,"-expanded-row-level-").concat(v+1),R)},o.createElement(XW,{component:O,prefixCls:x,className:a()(z,(0,Ee.A)({},"".concat(z,"-fixed"),$)),additionalProps:T},P))}var B=(0,d.A)((0,d.A)({},u),{},{width:y});p&&(B.position="absolute",B.pointerEvents="none");var H=o.createElement(E,(0,l.A)({},N,m,{"data-row-key":s,ref:A?null:t,className:a()(c,"".concat(x,"-row"),null===N||void 0===N?void 0:N.className,(0,Ee.A)({},"".concat(x,"-row-extra"),p)),style:(0,d.A)((0,d.A)({},B),null===N||void 0===N?void 0:N.style)}),C.map(function(e,t){return o.createElement(G_,{key:t,component:O,rowInfo:k,column:e,colIndex:t,indent:v,index:i,renderIndex:h,record:g,inverse:p,getHeight:f})}));return A?o.createElement("div",{ref:t},H,n):H});const Q_=LW(U_);var Z_=o.forwardRef(function(e,t){var n=e.data,r=e.onScroll,i=TW(WW,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),a=i.flattenColumns,l=i.onColumnResize,c=i.getRowKey,s=i.expandedKeys,u=i.prefixCls,d=i.childrenColumnName,f=i.scrollX,m=i.direction,g=TW(V_),v=g.sticky,h=g.scrollY,b=g.listItemHeight,y=g.getComponent,C=g.onScroll,x=o.useRef(),$=r_(n,d,s,c),w=o.useMemo(function(){var e=0;return a.map(function(t){var n=t.width;return[t.key,n,e+=n]})},[a]),S=o.useMemo(function(){return w.map(function(e){return e[2]})},[w]);o.useEffect(function(){w.forEach(function(e){var t=(0,ke.A)(e,2),n=t[0],o=t[1];l(n,o)})},[w]),o.useImperativeHandle(t,function(){var e,t={scrollTo:function(e){var t;null===(t=x.current)||void 0===t||t.scrollTo(e)},nativeElement:null===(e=x.current)||void 0===e?void 0:e.nativeElement};return Object.defineProperty(t,"scrollLeft",{get:function(){var e;return(null===(e=x.current)||void 0===e?void 0:e.getScrollInfo().x)||0},set:function(e){var t;null===(t=x.current)||void 0===t||t.scrollTo({left:e})}}),t});var k=function(e,t){var n,o=null===(n=$[t])||void 0===n?void 0:n.record,r=e.onCell;if(r){var i,a=r(o,t);return null!==(i=null===a||void 0===a?void 0:a.rowSpan)&&void 0!==i?i:1}return 1},E=o.useMemo(function(){return{columnsOffset:S}},[S]),O="".concat(u,"-tbody"),A=y(["body","wrapper"]),I={};return v&&(I.position="sticky",I.bottom=0,"object"===(0,p.A)(v)&&v.offsetScroll&&(I.bottom=v.offsetScroll)),o.createElement(X_.Provider,{value:E},o.createElement(Wv,{fullHeight:!1,ref:x,prefixCls:"".concat(O,"-virtual"),styles:{horizontalScrollBar:I},className:O,height:h,itemHeight:b||24,data:$,itemKey:function(e){return c(e.record)},component:A,scrollWidth:f,direction:m,onVirtualScroll:function(e){var t,n=e.x;r({currentTarget:null===(t=x.current)||void 0===t?void 0:t.nativeElement,scrollLeft:n})},onScroll:C,extraRender:function(e){var t=e.start,n=e.end,r=e.getSize,i=e.offsetY;if(n<0)return null;for(var l=a.filter(function(e){return 0===k(e,t)}),s=t,u=function(e){if(l=l.filter(function(t){return 0===k(t,e)}),!l.length)return s=e,1},d=t;d>=0&&!u(d);d-=1);for(var p=a.filter(function(e){return 1!==k(e,n)}),f=n,m=function(e){if(p=p.filter(function(t){return 1!==k(t,e)}),!p.length)return f=Math.max(e-1,n),1},g=n;g<$.length&&!m(g);g+=1);for(var v=[],h=function(e){if(!$[e])return 1;a.some(function(t){return k(t,e)>1})&&v.push(e)},b=s;b<=f;b+=1)h(b);var y=v.map(function(e){var t=$[e],n=c(t.record,e),a=r(n);return o.createElement(Q_,{key:e,data:t,rowKey:n,index:e,style:{top:-i+a.top},extra:!0,getHeight:function(t){var o=e+t-1,i=c($[o].record,o),a=r(n,i);return a.bottom-a.top}})});return y}},function(e,t,n){var r=c(e.record,t);return o.createElement(Q_,{data:e,rowKey:r,index:t,style:n.style})}))});const J_=LW(Z_);var eK=function(e,t){var n=t.ref,r=t.onScroll;return o.createElement(J_,{ref:n,data:e,onScroll:r})};var tK=o.forwardRef(function(e,t){var n=e.data,r=e.columns,i=e.scroll,c=e.sticky,s=e.prefixCls,u=void 0===s?H_:s,p=e.className,f=e.listItemHeight,m=e.components,g=e.onScroll,v=i||{},h=v.x,b=v.y;"number"!==typeof h&&(h=1),"number"!==typeof b&&(b=500);var y=Bn(function(e,t){return Fn(m,e)||t}),C=Bn(g),x=o.useMemo(function(){return{sticky:c,scrollY:b,listItemHeight:f,getComponent:y,onScroll:C}},[c,b,f,y,C]);return o.createElement(V_.Provider,{value:x},o.createElement(q_,(0,l.A)({},e,{className:a()(p,"".concat(u,"-virtual")),scroll:(0,d.A)((0,d.A)({},i),{},{x:h}),components:(0,d.A)((0,d.A)({},m),{},{body:null!==n&&void 0!==n&&n.length?eK:void 0}),columns:r,internalHooks:PW,tailor:!0,ref:t})))});function nK(e){return DW(tK,e)}nK();const oK=e=>null,rK=e=>null;var iK=o.createContext(null),aK=o.createContext({});const lK=o.memo(function(e){for(var t=e.prefixCls,n=e.level,r=e.isStart,i=e.isEnd,l="".concat(t,"-indent-unit"),c=[],s=0;s<n;s+=1)c.push(o.createElement("span",{key:s,className:a()(l,(0,Ee.A)((0,Ee.A)({},"".concat(l,"-start"),r[s]),"".concat(l,"-end"),i[s]))}));return o.createElement("span",{"aria-hidden":"true",className:"".concat(t,"-indent")},c)});var cK=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],sK="open",uK="close",dK=function(e){var t,n,o,i=e.eventKey,c=e.className,s=e.style,u=e.dragOver,p=e.dragOverGapTop,f=e.dragOverGapBottom,m=e.isLeaf,g=e.isStart,v=e.isEnd,h=e.expanded,b=e.selected,y=e.checked,C=e.halfChecked,x=e.loading,$=e.domRef,w=e.active,S=e.data,k=e.onMouseMove,E=e.selectable,O=(0,cr.A)(e,cK),A=r().useContext(iK),I=r().useContext(aK),N=r().useRef(null),M=r().useState(!1),j=(0,ke.A)(M,2),P=j[0],R=j[1],T=!!(A.disabled||e.disabled||null!==(t=I.nodeDisabled)&&void 0!==t&&t.call(I,S)),z=r().useMemo(function(){return!(!A.checkable||!1===e.checkable)&&A.checkable},[A.checkable,e.checkable]),B=function(t){T||z&&!e.disableCheckbox&&A.onNodeCheck(t,HA(e),!y)},H=r().useMemo(function(){return"boolean"===typeof E?E:A.selectable},[E,A.selectable]),D=function(t){A.onNodeClick(t,HA(e)),H?function(t){T||A.onNodeSelect(t,HA(e))}(t):B(t)},L=function(t){A.onNodeDoubleClick(t,HA(e))},F=function(t){A.onNodeMouseEnter(t,HA(e))},W=function(t){A.onNodeMouseLeave(t,HA(e))},_=function(t){A.onNodeContextMenu(t,HA(e))},K=r().useMemo(function(){return!(!A.draggable||A.draggable.nodeDraggable&&!A.draggable.nodeDraggable(S))},[A.draggable,S]),q=function(t){x||A.onNodeExpand(t,HA(e))},V=r().useMemo(function(){var e=(IA(A.keyEntities,i)||{}).children;return Boolean((e||[]).length)},[A.keyEntities,i]),X=r().useMemo(function(){return!1!==m&&(m||!A.loadData&&!V||A.loadData&&e.loaded&&!V)},[m,A.loadData,V,e.loaded]);r().useEffect(function(){x||"function"!==typeof A.loadData||!h||X||e.loaded||A.onNodeLoad(HA(e))},[x,A.loadData,A.onNodeLoad,h,X,e]);var G=r().useMemo(function(){var e;return null!==(e=A.draggable)&&void 0!==e&&e.icon?r().createElement("span",{className:"".concat(A.prefixCls,"-draggable-icon")},A.draggable.icon):null},[A.draggable]),Y=function(t){var n=e.switcherIcon||A.switcherIcon;return"function"===typeof n?n((0,d.A)((0,d.A)({},e),{},{isLeaf:t})):n},U=r().useMemo(function(){if(!z)return null;var t="boolean"!==typeof z?z:null;return r().createElement("span",{className:a()("".concat(A.prefixCls,"-checkbox"),(0,Ee.A)((0,Ee.A)((0,Ee.A)({},"".concat(A.prefixCls,"-checkbox-checked"),y),"".concat(A.prefixCls,"-checkbox-indeterminate"),!y&&C),"".concat(A.prefixCls,"-checkbox-disabled"),T||e.disableCheckbox)),onClick:B,role:"checkbox","aria-checked":C?"mixed":y,"aria-disabled":T||e.disableCheckbox,"aria-label":"Select ".concat("string"===typeof e.title?e.title:"tree node")},t)},[z,y,C,T,e.disableCheckbox,e.title]),Q=r().useMemo(function(){return X?null:h?sK:uK},[X,h]),Z=r().useMemo(function(){return r().createElement("span",{className:a()("".concat(A.prefixCls,"-iconEle"),"".concat(A.prefixCls,"-icon__").concat(Q||"docu"),(0,Ee.A)({},"".concat(A.prefixCls,"-icon_loading"),x))})},[A.prefixCls,Q,x]),J=r().useMemo(function(){var t=Boolean(A.draggable);return!e.disabled&&t&&A.dragOverNodeKey===i?A.dropIndicatorRender({dropPosition:A.dropPosition,dropLevelOffset:A.dropLevelOffset,indent:A.indent,prefixCls:A.prefixCls,direction:A.direction}):null},[A.dropPosition,A.dropLevelOffset,A.indent,A.prefixCls,A.direction,A.draggable,A.dragOverNodeKey,A.dropIndicatorRender]),ee=r().useMemo(function(){var t,n,o=e.title,i=void 0===o?"---":o,l="".concat(A.prefixCls,"-node-content-wrapper");if(A.showIcon){var c=e.icon||A.icon;t=c?r().createElement("span",{className:a()("".concat(A.prefixCls,"-iconEle"),"".concat(A.prefixCls,"-icon__customize"))},"function"===typeof c?c(e):c):Z}else A.loadData&&x&&(t=Z);return n="function"===typeof i?i(S):A.titleRender?A.titleRender(S):i,r().createElement("span",{ref:N,title:"string"===typeof i?i:"",className:a()(l,"".concat(l,"-").concat(Q||"normal"),(0,Ee.A)({},"".concat(A.prefixCls,"-node-selected"),!T&&(b||P))),onMouseEnter:F,onMouseLeave:W,onContextMenu:_,onClick:D,onDoubleClick:L},t,r().createElement("span",{className:"".concat(A.prefixCls,"-title")},n),J)},[A.prefixCls,A.showIcon,e,A.icon,Z,A.titleRender,S,Q,F,W,_,D,L]),te=ni(O,{aria:!0,data:!0}),ne=(IA(A.keyEntities,i)||{}).level,oe=v[v.length-1],re=!T&&K,ie=A.draggingNodeKey===i,ae=void 0!==E?{"aria-selected":!!E}:void 0;return r().createElement("div",(0,l.A)({ref:$,role:"treeitem","aria-expanded":m?void 0:h,className:a()(c,"".concat(A.prefixCls,"-treenode"),(o={},(0,Ee.A)((0,Ee.A)((0,Ee.A)((0,Ee.A)((0,Ee.A)((0,Ee.A)((0,Ee.A)((0,Ee.A)((0,Ee.A)((0,Ee.A)(o,"".concat(A.prefixCls,"-treenode-disabled"),T),"".concat(A.prefixCls,"-treenode-switcher-").concat(h?"open":"close"),!m),"".concat(A.prefixCls,"-treenode-checkbox-checked"),y),"".concat(A.prefixCls,"-treenode-checkbox-indeterminate"),C),"".concat(A.prefixCls,"-treenode-selected"),b),"".concat(A.prefixCls,"-treenode-loading"),x),"".concat(A.prefixCls,"-treenode-active"),w),"".concat(A.prefixCls,"-treenode-leaf-last"),oe),"".concat(A.prefixCls,"-treenode-draggable"),K),"dragging",ie),(0,Ee.A)((0,Ee.A)((0,Ee.A)((0,Ee.A)((0,Ee.A)((0,Ee.A)((0,Ee.A)(o,"drop-target",A.dropTargetKey===i),"drop-container",A.dropContainerKey===i),"drag-over",!T&&u),"drag-over-gap-top",!T&&p),"drag-over-gap-bottom",!T&&f),"filter-node",null===(n=A.filterTreeNode)||void 0===n?void 0:n.call(A,HA(e))),"".concat(A.prefixCls,"-treenode-leaf"),X))),style:s,draggable:re,onDragStart:re?function(t){t.stopPropagation(),R(!0),A.onNodeDragStart(t,e);try{t.dataTransfer.setData("text/plain","")}catch(n){}}:void 0,onDragEnter:K?function(t){t.preventDefault(),t.stopPropagation(),A.onNodeDragEnter(t,e)}:void 0,onDragOver:K?function(t){t.preventDefault(),t.stopPropagation(),A.onNodeDragOver(t,e)}:void 0,onDragLeave:K?function(t){t.stopPropagation(),A.onNodeDragLeave(t,e)}:void 0,onDrop:K?function(t){t.preventDefault(),t.stopPropagation(),R(!1),A.onNodeDrop(t,e)}:void 0,onDragEnd:K?function(t){t.stopPropagation(),R(!1),A.onNodeDragEnd(t,e)}:void 0,onMouseMove:k},ae,te),r().createElement(lK,{prefixCls:A.prefixCls,level:ne,isStart:g,isEnd:v}),G,function(){if(X){var e=Y(!0);return!1!==e?r().createElement("span",{className:a()("".concat(A.prefixCls,"-switcher"),"".concat(A.prefixCls,"-switcher-noop"))},e):null}var t=Y(!1);return!1!==t?r().createElement("span",{onClick:q,className:a()("".concat(A.prefixCls,"-switcher"),"".concat(A.prefixCls,"-switcher_").concat(h?sK:uK))},t):null}(),U,ee)};dK.isTreeNode=1;const pK=dK;function fK(e,t){if(!e)return[];var n=e.slice(),o=n.indexOf(t);return o>=0&&n.splice(o,1),n}function mK(e,t){var n=(e||[]).slice();return-1===n.indexOf(t)&&n.push(t),n}function gK(e){return e.split("-")}function vK(e,t){var n=[];return function e(){(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach(function(t){var o=t.key,r=t.children;n.push(o),e(r)})}(IA(t,e).children),n}function hK(e){if(e.parent){var t=gK(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function bK(e,t,n,o,r,i,a,l,c,s){var u,d=e.clientX,p=e.clientY,f=e.target.getBoundingClientRect(),m=f.top,g=f.height,v=(("rtl"===s?-1:1)*(((null===r||void 0===r?void 0:r.x)||0)-d)-12)/o,h=c.filter(function(e){var t;return null===(t=l[e])||void 0===t||null===(t=t.children)||void 0===t?void 0:t.length}),b=IA(l,n.eventKey);if(p<m+g/2){var y=a.findIndex(function(e){return e.key===b.key}),C=a[y<=0?0:y-1].key;b=IA(l,C)}var x=b.key,$=b,w=b.key,S=0,k=0;if(!h.includes(x))for(var E=0;E<v&&hK(b);E+=1)b=b.parent,k+=1;var O=t.data,A=b.node,I=!0;return function(e){var t=gK(e.pos);return 0===Number(t[t.length-1])}(b)&&0===b.level&&p<m+g/2&&i({dragNode:O,dropNode:A,dropPosition:-1})&&b.key===n.eventKey?S=-1:($.children||[]).length&&h.includes(w)?i({dragNode:O,dropNode:A,dropPosition:0})?S=0:I=!1:0===k?v>-1.5?i({dragNode:O,dropNode:A,dropPosition:1})?S=1:I=!1:i({dragNode:O,dropNode:A,dropPosition:0})?S=0:i({dragNode:O,dropNode:A,dropPosition:1})?S=1:I=!1:i({dragNode:O,dropNode:A,dropPosition:1})?S=1:I=!1,{dropPosition:S,dropLevelOffset:k,dropTargetKey:b.key,dropTargetPos:b.pos,dragOverNodeKey:w,dropContainerKey:0===S?null:(null===(u=b.parent)||void 0===u?void 0:u.key)||null,dropAllowed:I}}function yK(e,t){if(e)return t.multiple?e.slice():e.length?[e[0]]:e}function CK(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else{if("object"!==(0,p.A)(e))return(0,u.Ay)(!1,"`checkedKeys` is not an array or an object"),null;t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0}}return t}function xK(e,t){var n=new Set;function o(e){if(!n.has(e)){var r=IA(t,e);if(r){n.add(e);var i=r.parent;r.node.disabled||i&&o(i.key)}}}return(e||[]).forEach(function(e){o(e)}),se(n)}function $K(e){const[t,n]=(0,o.useState)(null);return[(0,o.useCallback)((o,r,i)=>{const a=null!==t&&void 0!==t?t:o,l=Math.min(a||0,o),c=Math.max(a||0,o),s=r.slice(l,c+1).map(t=>e(t)),u=s.some(e=>!i.has(e)),d=[];return s.forEach(e=>{u?(i.has(e)||d.push(e),i.add(e)):(i.delete(e),d.push(e))}),n(u?c:null),d},[t]),e=>{n(e)}]}const wK={},SK="SELECT_ALL",kK="SELECT_INVERT",EK="SELECT_NONE",OK=[],AK=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return(t||[]).forEach(t=>{n.push(t),t&&"object"===typeof t&&e in t&&AK(e,t[e],n)}),n},IK=(e,t)=>{const{preserveSelectedRowKeys:n,selectedRowKeys:r,defaultSelectedRowKeys:i,getCheckboxProps:l,onChange:c,onSelect:s,onSelectAll:u,onSelectInvert:d,onSelectNone:p,onSelectMultiple:f,columnWidth:m,type:g,selections:v,fixed:h,renderCell:b,hideSelectAll:y,checkStrictly:C=!0}=t||{},{prefixCls:x,data:$,pageData:w,getRecordByKey:S,getRowKey:k,expandType:E,childrenColumnName:O,locale:A,getPopupContainer:I}=e,N=qi("Table"),[M,j]=$K(e=>e),[P,R]=Ln(r||i||OK,{value:r}),T=o.useRef(new Map),z=(0,o.useCallback)(e=>{if(n){const t=new Map;e.forEach(e=>{let n=S(e);!n&&T.current.has(e)&&(n=T.current.get(e)),t.set(e,n)}),T.current=t}},[S,n]);o.useEffect(()=>{z(P)},[P]);const B=(0,o.useMemo)(()=>AK(O,w),[O,w]),{keyEntities:H}=(0,o.useMemo)(()=>{if(C)return{keyEntities:null};let e=$;if(n){const t=new Set(B.map((e,t)=>k(e,t))),n=Array.from(T.current).reduce((e,n)=>{let[o,r]=n;return t.has(o)?e:e.concat(r)},[]);e=[].concat(se(e),se(n))}return zA(e,{externalGetKey:k,childrenPropName:O})},[$,k,C,O,n,B]),D=(0,o.useMemo)(()=>{const e=new Map;return B.forEach((t,n)=>{const o=k(t,n),r=(l?l(t):null)||{};e.set(o,r)}),e},[B,k,l]),L=(0,o.useCallback)(e=>{const t=k(e);let n;return n=D.has(t)?D.get(k(e)):l?l(e):void 0,!!(null===n||void 0===n?void 0:n.disabled)},[D,k]),[F,W]=(0,o.useMemo)(()=>{if(C)return[P||[],[]];const{checkedKeys:e,halfCheckedKeys:t}=WA(P,!0,H,L);return[e||[],t]},[P,C,H,L]),_=(0,o.useMemo)(()=>{const e="radio"===g?F.slice(0,1):F;return new Set(e)},[F,g]),K=(0,o.useMemo)(()=>"radio"===g?new Set:new Set(W),[W,g]);o.useEffect(()=>{t||R(OK)},[!!t]);const q=(0,o.useCallback)((e,t)=>{let o,r;z(e),n?(o=e,r=e.map(e=>T.current.get(e))):(o=[],r=[],e.forEach(e=>{const t=S(e);void 0!==t&&(o.push(e),r.push(t))})),R(o),null===c||void 0===c||c(o,r,{type:t})},[R,S,c,n]),V=(0,o.useCallback)((e,t,n,o)=>{if(s){const r=n.map(e=>S(e));s(S(e),t,r,o)}q(n,"single")},[s,S,q]),X=(0,o.useMemo)(()=>{if(!v||y)return null;return(!0===v?[SK,kK,EK]:v).map(e=>e===SK?{key:"all",text:A.selectionAll,onSelect(){q($.map((e,t)=>k(e,t)).filter(e=>{const t=D.get(e);return!(null===t||void 0===t?void 0:t.disabled)||_.has(e)}),"all")}}:e===kK?{key:"invert",text:A.selectInvert,onSelect(){const e=new Set(_);w.forEach((t,n)=>{const o=k(t,n),r=D.get(o);(null===r||void 0===r?void 0:r.disabled)||(e.has(o)?e.delete(o):e.add(o))});const t=Array.from(e);d&&(N.deprecated(!1,"onSelectInvert","onChange"),d(t)),q(t,"invert")}}:e===EK?{key:"none",text:A.selectNone,onSelect(){null===p||void 0===p||p(),q(Array.from(_).filter(e=>{const t=D.get(e);return null===t||void 0===t?void 0:t.disabled}),"none")}}:e).map(e=>Object.assign(Object.assign({},e),{onSelect:function(){for(var t,n,o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];null===(n=e.onSelect)||void 0===n||(t=n).call.apply(t,[e].concat(r)),j(null)}}))},[v,_,w,k,d,q]),G=(0,o.useCallback)(e=>{var n;if(!t)return e.filter(e=>e!==wK);let r=se(e);const i=new Set(_),l=B.map(k).filter(e=>!D.get(e).disabled),c=l.every(e=>i.has(e)),s=l.some(e=>i.has(e)),d=()=>{const e=[];c?l.forEach(t=>{i.delete(t),e.push(t)}):l.forEach(t=>{i.has(t)||(i.add(t),e.push(t))});const t=Array.from(i);null===u||void 0===u||u(!c,t.map(e=>S(e)),e.map(e=>S(e))),q(t,"all"),j(null)};let p,$,w;if("radio"!==g){let e;if(X){const t={getPopupContainer:I,items:X.map((e,t)=>{const{key:n,text:o,onSelect:r}=e;return{key:null!==n&&void 0!==n?n:t,onClick:()=>{null===r||void 0===r||r(l)},label:o}})};e=o.createElement("div",{className:`${x}-selection-extra`},o.createElement(zR,{menu:t,getPopupContainer:I},o.createElement("span",null,o.createElement(db.A,null))))}const t=B.map((e,t)=>{const n=k(e,t),o=D.get(n)||{};return Object.assign({checked:i.has(n)},o)}).filter(e=>{let{disabled:t}=e;return t}),n=!!t.length&&t.length===B.length,r=n&&t.every(e=>{let{checked:t}=e;return t}),a=n&&t.some(e=>{let{checked:t}=e;return t});$=o.createElement(PI,{checked:n?r:!!B.length&&c,indeterminate:n?!r&&a:!c&&s,onChange:d,disabled:0===B.length||n,"aria-label":e?"Custom selection":"Select all",skipGroup:!0}),p=!y&&o.createElement("div",{className:`${x}-selection`},$,e)}w="radio"===g?(e,t,n)=>{const r=k(t,n),a=i.has(r),l=D.get(r);return{node:o.createElement(lF,Object.assign({},l,{checked:a,onClick:e=>{var t;e.stopPropagation(),null===(t=null===l||void 0===l?void 0:l.onClick)||void 0===t||t.call(l,e)},onChange:e=>{var t;i.has(r)||V(r,!0,[r],e.nativeEvent),null===(t=null===l||void 0===l?void 0:l.onChange)||void 0===t||t.call(l,e)}})),checked:a}}:(e,t,n)=>{var r;const a=k(t,n),c=i.has(a),s=K.has(a),u=D.get(a);let d;return d="nest"===E?s:null!==(r=null===u||void 0===u?void 0:u.indeterminate)&&void 0!==r?r:s,{node:o.createElement(PI,Object.assign({},u,{indeterminate:d,checked:c,skipGroup:!0,onClick:e=>{var t;e.stopPropagation(),null===(t=null===u||void 0===u?void 0:u.onClick)||void 0===t||t.call(u,e)},onChange:e=>{var t;const{nativeEvent:n}=e,{shiftKey:o}=n,r=l.findIndex(e=>e===a),s=F.some(e=>l.includes(e));if(o&&C&&s){const e=M(r,l,i),t=Array.from(i);null===f||void 0===f||f(!c,t.map(e=>S(e)),e.map(e=>S(e))),q(t,"multiple")}else{const e=F;if(C){const t=c?fK(e,a):mK(e,a);V(a,!c,t,n)}else{const t=WA([].concat(se(e),[a]),!0,H,L),{checkedKeys:o,halfCheckedKeys:r}=t;let i=o;if(c){const e=new Set(o);e.delete(a),i=WA(Array.from(e),{checked:!1,halfCheckedKeys:r},H,L).checkedKeys}V(a,!c,i,n)}}j(c?null:r),null===(t=null===u||void 0===u?void 0:u.onChange)||void 0===t||t.call(u,e)}})),checked:c}};if(!r.includes(wK))if(0===r.findIndex(e=>{var t;return"EXPAND_COLUMN"===(null===(t=e[g_])||void 0===t?void 0:t.columnType)})){const[e,...t]=r;r=[e,wK].concat(se(t))}else r=[wK].concat(se(r));const O=r.indexOf(wK);r=r.filter((e,t)=>e!==wK||t===O);const A=r[O-1],N=r[O+1];let P=h;void 0===P&&(void 0!==(null===N||void 0===N?void 0:N.fixed)?P=N.fixed:void 0!==(null===A||void 0===A?void 0:A.fixed)&&(P=A.fixed)),P&&A&&"EXPAND_COLUMN"===(null===(n=A[g_])||void 0===n?void 0:n.columnType)&&void 0===A.fixed&&(A.fixed=P);const R=a()(`${x}-selection-col`,{[`${x}-selection-col-with-dropdown`]:v&&"checkbox"===g}),T={fixed:P,width:m,className:`${x}-selection-column`,title:(null===t||void 0===t?void 0:t.columnTitle)?"function"===typeof t.columnTitle?t.columnTitle($):t.columnTitle:p,render:(e,t,n)=>{const{node:o,checked:r}=w(e,t,n);return b?b(r,t,n,o):o},onCell:t.onCell,align:t.align,[g_]:{className:R}};return r.map(e=>e===wK?T:e)},[k,B,t,F,_,K,m,X,E,D,f,V,L]);return[G,_]};function NK(e,t){return(0,o.useImperativeHandle)(e,()=>{const e=t(),{nativeElement:n}=e;return"undefined"!==typeof Proxy?new Proxy(n,{get:(t,n)=>e[n]?e[n]:Reflect.get(t,n)}):(r=e,(o=n)._antProxy=o._antProxy||{},Object.keys(r).forEach(e=>{if(!(e in o._antProxy)){const t=o[e];o._antProxy[e]=t,o[e]=r[e]}}),o);var o,r})}const MK=function(e){return t=>{const{prefixCls:n,onExpand:r,record:i,expanded:l,expandable:c}=t,s=`${n}-row-expand-icon`;return o.createElement("button",{type:"button",onClick:e=>{r(i,e),e.stopPropagation()},className:a()(s,{[`${s}-spaced`]:!c,[`${s}-expanded`]:c&&l,[`${s}-collapsed`]:c&&!l}),"aria-label":l?e.collapse:e.expand,"aria-expanded":l})}};const jK=(e,t)=>"key"in e&&void 0!==e.key&&null!==e.key?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex:t;function PK(e,t){return t?`${t}-${e}`:`${e}`}const RK=(e,t)=>"function"===typeof e?e(t):e;var TK=n(58294);const zK=function(e){var t=e.dropPosition,n=e.dropLevelOffset,o=e.indent,i={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(t){case-1:i.top=0,i.left=-n*o;break;case 1:i.bottom=0,i.left=-n*o;break;case 0:i.bottom=0,i.left=o}return r().createElement("div",{style:i})};function BK(e){if(null==e)throw new TypeError("Cannot destructure "+e)}const HK=function(e,t){var n=o.useState(!1),r=(0,ke.A)(n,2),i=r[0],a=r[1];ut(function(){if(i)return e(),function(){t()}},[i]),ut(function(){return a(!0),function(){a(!1)}},[])};var DK=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],LK=o.forwardRef(function(e,t){var n=e.className,r=e.style,i=e.motion,c=e.motionNodes,s=e.motionType,u=e.onMotionStart,d=e.onMotionEnd,p=e.active,f=e.treeNodeRequiredProps,m=(0,cr.A)(e,DK),g=o.useState(!0),v=(0,ke.A)(g,2),h=v[0],b=v[1],y=o.useContext(iK).prefixCls,C=c&&"hide"!==s;ut(function(){c&&C!==h&&b(C)},[c]);var x=o.useRef(!1),$=function(){c&&!x.current&&(x.current=!0,d())};HK(function(){c&&u()},$);return c?o.createElement(Jr,(0,l.A)({ref:t,visible:h},i,{motionAppear:"show"===s,onVisibleChanged:function(e){C===e&&$()}}),function(e,t){var n=e.className,r=e.style;return o.createElement("div",{ref:t,className:a()("".concat(y,"-treenode-motion"),n),style:r},c.map(function(e){var t=Object.assign({},(BK(e.data),e.data)),n=e.title,r=e.key,i=e.isStart,a=e.isEnd;delete t.children;var c=BA(r,f);return o.createElement(pK,(0,l.A)({},t,c,{title:n,active:p,data:e.data,key:r,isStart:i,isEnd:a}))}))}):o.createElement(pK,(0,l.A)({domRef:t,className:n,style:r},m,{active:p}))});const FK=LK;function WK(e,t,n){var o=e.findIndex(function(e){return e.key===n}),r=e[o+1],i=t.findIndex(function(e){return e.key===n});if(r){var a=t.findIndex(function(e){return e.key===r.key});return t.slice(i+1,a)}return t.slice(i+1)}var _K=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","scrollWidth","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],KK={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},qK=function(){},VK="RC_TREE_MOTION_".concat(Math.random()),XK={key:VK},GK={key:VK,level:0,index:0,pos:"0",node:XK,nodes:[XK]},YK={parent:null,children:[],pos:GK.pos,data:XK,title:null,key:VK,isStart:[],isEnd:[]};function UK(e,t,n,o){return!1!==t&&n?e.slice(0,Math.ceil(n/o)+1):e}function QK(e){return jA(e.key,e.pos)}var ZK=o.forwardRef(function(e,t){var n=e.prefixCls,r=e.data,i=(e.selectable,e.checkable,e.expandedKeys),a=e.selectedKeys,c=e.checkedKeys,s=e.loadedKeys,u=e.loadingKeys,d=e.halfCheckedKeys,p=e.keyEntities,f=e.disabled,m=e.dragging,g=e.dragOverNodeKey,v=e.dropPosition,h=e.motion,b=e.height,y=e.itemHeight,C=e.virtual,x=e.scrollWidth,$=e.focusable,w=e.activeItem,S=e.focused,k=e.tabIndex,E=e.onKeyDown,O=e.onFocus,A=e.onBlur,I=e.onActiveChange,N=e.onListChangeStart,M=e.onListChangeEnd,j=(0,cr.A)(e,_K),P=o.useRef(null),R=o.useRef(null);o.useImperativeHandle(t,function(){return{scrollTo:function(e){P.current.scrollTo(e)},getIndentWidth:function(){return R.current.offsetWidth}}});var T=o.useState(i),z=(0,ke.A)(T,2),B=z[0],H=z[1],D=o.useState(r),L=(0,ke.A)(D,2),F=L[0],W=L[1],_=o.useState(r),K=(0,ke.A)(_,2),q=K[0],V=K[1],X=o.useState([]),G=(0,ke.A)(X,2),Y=G[0],U=G[1],Q=o.useState(null),Z=(0,ke.A)(Q,2),J=Z[0],ee=Z[1],te=o.useRef(r);function ne(){var e=te.current;W(e),V(e),U([]),ee(null),M()}te.current=r,ut(function(){H(i);var e=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=e.length,o=t.length;if(1!==Math.abs(n-o))return{add:!1,key:null};function r(e,t){var n=new Map;e.forEach(function(e){n.set(e,!0)});var o=t.filter(function(e){return!n.has(e)});return 1===o.length?o[0]:null}return n<o?{add:!0,key:r(e,t)}:{add:!1,key:r(t,e)}}(B,i);if(null!==e.key)if(e.add){var t=F.findIndex(function(t){return t.key===e.key}),n=UK(WK(F,r,e.key),C,b,y),o=F.slice();o.splice(t+1,0,YK),V(o),U(n),ee("show")}else{var a=r.findIndex(function(t){return t.key===e.key}),l=UK(WK(r,F,e.key),C,b,y),c=r.slice();c.splice(a+1,0,YK),V(c),U(l),ee("hide")}else F!==r&&(W(r),V(r))},[i,r]),o.useEffect(function(){m||ne()},[m]);var oe=h?q:r,re={expandedKeys:i,selectedKeys:a,loadedKeys:s,loadingKeys:u,checkedKeys:c,halfCheckedKeys:d,dragOverNodeKey:g,dropPosition:v,keyEntities:p};return o.createElement(o.Fragment,null,S&&w&&o.createElement("span",{style:KK,"aria-live":"assertive"},function(e){for(var t=String(e.data.key),n=e;n.parent;)n=n.parent,t="".concat(n.data.key," > ").concat(t);return t}(w)),o.createElement("div",null,o.createElement("input",{style:KK,disabled:!1===$||f,tabIndex:!1!==$?k:null,onKeyDown:E,onFocus:O,onBlur:A,value:"",onChange:qK,"aria-label":"for screen reader"})),o.createElement("div",{className:"".concat(n,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},o.createElement("div",{className:"".concat(n,"-indent")},o.createElement("div",{ref:R,className:"".concat(n,"-indent-unit")}))),o.createElement(Wv,(0,l.A)({},j,{data:oe,itemKey:QK,height:b,fullHeight:!1,virtual:C,itemHeight:y,scrollWidth:x,prefixCls:"".concat(n,"-list"),ref:P,role:"tree",onVisibleChange:function(e){e.every(function(e){return QK(e)!==VK})&&ne()}}),function(e){var t=e.pos,n=Object.assign({},(BK(e.data),e.data)),r=e.title,i=e.key,a=e.isStart,c=e.isEnd,s=jA(i,t);delete n.key,delete n.children;var u=BA(s,re);return o.createElement(FK,(0,l.A)({},n,u,{title:r,active:!!w&&i===w.key,pos:t,data:e.data,isStart:a,isEnd:c,motion:h,motionNodes:i===VK?Y:null,motionType:J,onMotionStart:N,onMotionEnd:ne,treeNodeRequiredProps:re,onMouseMove:function(){I(null)}}))}))});const JK=ZK;var eq=function(e){Y(n,e);var t=ee(n);function n(){var e;K(this,n);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return e=t.call.apply(t,[this].concat(i)),(0,Ee.A)(Z(e),"destroyed",!1),(0,Ee.A)(Z(e),"delayedDragEnterLogic",void 0),(0,Ee.A)(Z(e),"loadingRetryTimes",{}),(0,Ee.A)(Z(e),"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:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:PA()}),(0,Ee.A)(Z(e),"dragStartMousePosition",null),(0,Ee.A)(Z(e),"dragNodeProps",null),(0,Ee.A)(Z(e),"currentMouseOverDroppableNodeKey",null),(0,Ee.A)(Z(e),"listRef",o.createRef()),(0,Ee.A)(Z(e),"onNodeDragStart",function(t,n){var o=e.state,r=o.expandedKeys,i=o.keyEntities,a=e.props.onDragStart,l=n.eventKey;e.dragNodeProps=n,e.dragStartMousePosition={x:t.clientX,y:t.clientY};var c=fK(r,l);e.setState({draggingNodeKey:l,dragChildrenKeys:vK(l,i),indent:e.listRef.current.getIndentWidth()}),e.setExpandedKeys(c),window.addEventListener("dragend",e.onWindowDragEnd),null===a||void 0===a||a({event:t,node:HA(n)})}),(0,Ee.A)(Z(e),"onNodeDragEnter",function(t,n){var o=e.state,r=o.expandedKeys,i=o.keyEntities,a=o.dragChildrenKeys,l=o.flattenNodes,c=o.indent,s=e.props,u=s.onDragEnter,d=s.onExpand,p=s.allowDrop,f=s.direction,m=n.pos,g=n.eventKey;if(e.currentMouseOverDroppableNodeKey!==g&&(e.currentMouseOverDroppableNodeKey=g),e.dragNodeProps){var v=bK(t,e.dragNodeProps,n,c,e.dragStartMousePosition,p,l,i,r,f),h=v.dropPosition,b=v.dropLevelOffset,y=v.dropTargetKey,C=v.dropContainerKey,x=v.dropTargetPos,$=v.dropAllowed,w=v.dragOverNodeKey;!a.includes(y)&&$?(e.delayedDragEnterLogic||(e.delayedDragEnterLogic={}),Object.keys(e.delayedDragEnterLogic).forEach(function(t){clearTimeout(e.delayedDragEnterLogic[t])}),e.dragNodeProps.eventKey!==n.eventKey&&(t.persist(),e.delayedDragEnterLogic[m]=window.setTimeout(function(){if(null!==e.state.draggingNodeKey){var o=se(r),a=IA(i,n.eventKey);a&&(a.children||[]).length&&(o=mK(r,n.eventKey)),e.props.hasOwnProperty("expandedKeys")||e.setExpandedKeys(o),null===d||void 0===d||d(o,{node:HA(n),expanded:!0,nativeEvent:t.nativeEvent})}},800)),e.dragNodeProps.eventKey!==y||0!==b?(e.setState({dragOverNodeKey:w,dropPosition:h,dropLevelOffset:b,dropTargetKey:y,dropContainerKey:C,dropTargetPos:x,dropAllowed:$}),null===u||void 0===u||u({event:t,node:HA(n),expandedKeys:r})):e.resetDragState()):e.resetDragState()}else e.resetDragState()}),(0,Ee.A)(Z(e),"onNodeDragOver",function(t,n){var o=e.state,r=o.dragChildrenKeys,i=o.flattenNodes,a=o.keyEntities,l=o.expandedKeys,c=o.indent,s=e.props,u=s.onDragOver,d=s.allowDrop,p=s.direction;if(e.dragNodeProps){var f=bK(t,e.dragNodeProps,n,c,e.dragStartMousePosition,d,i,a,l,p),m=f.dropPosition,g=f.dropLevelOffset,v=f.dropTargetKey,h=f.dropContainerKey,b=f.dropTargetPos,y=f.dropAllowed,C=f.dragOverNodeKey;!r.includes(v)&&y&&(e.dragNodeProps.eventKey===v&&0===g?null===e.state.dropPosition&&null===e.state.dropLevelOffset&&null===e.state.dropTargetKey&&null===e.state.dropContainerKey&&null===e.state.dropTargetPos&&!1===e.state.dropAllowed&&null===e.state.dragOverNodeKey||e.resetDragState():m===e.state.dropPosition&&g===e.state.dropLevelOffset&&v===e.state.dropTargetKey&&h===e.state.dropContainerKey&&b===e.state.dropTargetPos&&y===e.state.dropAllowed&&C===e.state.dragOverNodeKey||e.setState({dropPosition:m,dropLevelOffset:g,dropTargetKey:v,dropContainerKey:h,dropTargetPos:b,dropAllowed:y,dragOverNodeKey:C}),null===u||void 0===u||u({event:t,node:HA(n)}))}}),(0,Ee.A)(Z(e),"onNodeDragLeave",function(t,n){e.currentMouseOverDroppableNodeKey!==n.eventKey||t.currentTarget.contains(t.relatedTarget)||(e.resetDragState(),e.currentMouseOverDroppableNodeKey=null);var o=e.props.onDragLeave;null===o||void 0===o||o({event:t,node:HA(n)})}),(0,Ee.A)(Z(e),"onWindowDragEnd",function(t){e.onNodeDragEnd(t,null,!0),window.removeEventListener("dragend",e.onWindowDragEnd)}),(0,Ee.A)(Z(e),"onNodeDragEnd",function(t,n){var o=e.props.onDragEnd;e.setState({dragOverNodeKey:null}),e.cleanDragState(),null===o||void 0===o||o({event:t,node:HA(n)}),e.dragNodeProps=null,window.removeEventListener("dragend",e.onWindowDragEnd)}),(0,Ee.A)(Z(e),"onNodeDrop",function(t,n){var o,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=e.state,a=i.dragChildrenKeys,l=i.dropPosition,c=i.dropTargetKey,s=i.dropTargetPos;if(i.dropAllowed){var p=e.props.onDrop;if(e.setState({dragOverNodeKey:null}),e.cleanDragState(),null!==c){var f=(0,d.A)((0,d.A)({},BA(c,e.getTreeNodeRequiredProps())),{},{active:(null===(o=e.getActiveItem())||void 0===o?void 0:o.key)===c,data:IA(e.state.keyEntities,c).node}),m=a.includes(c);(0,u.Ay)(!m,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var g=gK(s),v={event:t,node:HA(f),dragNode:e.dragNodeProps?HA(e.dragNodeProps):null,dragNodesKeys:[e.dragNodeProps.eventKey].concat(a),dropToGap:0!==l,dropPosition:l+Number(g[g.length-1])};r||null===p||void 0===p||p(v),e.dragNodeProps=null}}}),(0,Ee.A)(Z(e),"cleanDragState",function(){null!==e.state.draggingNodeKey&&e.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),e.dragStartMousePosition=null,e.currentMouseOverDroppableNodeKey=null}),(0,Ee.A)(Z(e),"triggerExpandActionExpand",function(t,n){var o=e.state,r=o.expandedKeys,i=o.flattenNodes,a=n.expanded,l=n.key;if(!(n.isLeaf||t.shiftKey||t.metaKey||t.ctrlKey)){var c=i.filter(function(e){return e.key===l})[0],s=HA((0,d.A)((0,d.A)({},BA(l,e.getTreeNodeRequiredProps())),{},{data:c.data}));e.setExpandedKeys(a?fK(r,l):mK(r,l)),e.onNodeExpand(t,s)}}),(0,Ee.A)(Z(e),"onNodeClick",function(t,n){var o=e.props,r=o.onClick;"click"===o.expandAction&&e.triggerExpandActionExpand(t,n),null===r||void 0===r||r(t,n)}),(0,Ee.A)(Z(e),"onNodeDoubleClick",function(t,n){var o=e.props,r=o.onDoubleClick;"doubleClick"===o.expandAction&&e.triggerExpandActionExpand(t,n),null===r||void 0===r||r(t,n)}),(0,Ee.A)(Z(e),"onNodeSelect",function(t,n){var o=e.state.selectedKeys,r=e.state,i=r.keyEntities,a=r.fieldNames,l=e.props,c=l.onSelect,s=l.multiple,u=n.selected,d=n[a.key],p=!u,f=(o=p?s?mK(o,d):[d]:fK(o,d)).map(function(e){var t=IA(i,e);return t?t.node:null}).filter(Boolean);e.setUncontrolledState({selectedKeys:o}),null===c||void 0===c||c(o,{event:"select",selected:p,node:n,selectedNodes:f,nativeEvent:t.nativeEvent})}),(0,Ee.A)(Z(e),"onNodeCheck",function(t,n,o){var r,i=e.state,a=i.keyEntities,l=i.checkedKeys,c=i.halfCheckedKeys,s=e.props,u=s.checkStrictly,d=s.onCheck,p=n.key,f={event:"check",node:n,checked:o,nativeEvent:t.nativeEvent};if(u){var m=o?mK(l,p):fK(l,p);r={checked:m,halfChecked:fK(c,p)},f.checkedNodes=m.map(function(e){return IA(a,e)}).filter(Boolean).map(function(e){return e.node}),e.setUncontrolledState({checkedKeys:m})}else{var g=WA([].concat(se(l),[p]),!0,a),v=g.checkedKeys,h=g.halfCheckedKeys;if(!o){var b=new Set(v);b.delete(p);var y=WA(Array.from(b),{checked:!1,halfCheckedKeys:h},a);v=y.checkedKeys,h=y.halfCheckedKeys}r=v,f.checkedNodes=[],f.checkedNodesPositions=[],f.halfCheckedKeys=h,v.forEach(function(e){var t=IA(a,e);if(t){var n=t.node,o=t.pos;f.checkedNodes.push(n),f.checkedNodesPositions.push({node:n,pos:o})}}),e.setUncontrolledState({checkedKeys:v},!1,{halfCheckedKeys:h})}null===d||void 0===d||d(r,f)}),(0,Ee.A)(Z(e),"onNodeLoad",function(t){var n,o=t.key,r=IA(e.state.keyEntities,o);if(null===r||void 0===r||null===(n=r.children)||void 0===n||!n.length){var i=new Promise(function(n,r){e.setState(function(i){var a=i.loadedKeys,l=void 0===a?[]:a,c=i.loadingKeys,s=void 0===c?[]:c,d=e.props,p=d.loadData,f=d.onLoad;return!p||l.includes(o)||s.includes(o)?null:(p(t).then(function(){var r=mK(e.state.loadedKeys,o);null===f||void 0===f||f(r,{event:"load",node:t}),e.setUncontrolledState({loadedKeys:r}),e.setState(function(e){return{loadingKeys:fK(e.loadingKeys,o)}}),n()}).catch(function(t){if(e.setState(function(e){return{loadingKeys:fK(e.loadingKeys,o)}}),e.loadingRetryTimes[o]=(e.loadingRetryTimes[o]||0)+1,e.loadingRetryTimes[o]>=10){var i=e.state.loadedKeys;(0,u.Ay)(!1,"Retry for `loadData` many times but still failed. No more retry."),e.setUncontrolledState({loadedKeys:mK(i,o)}),n()}r(t)}),{loadingKeys:mK(s,o)})})});return i.catch(function(){}),i}}),(0,Ee.A)(Z(e),"onNodeMouseEnter",function(t,n){var o=e.props.onMouseEnter;null===o||void 0===o||o({event:t,node:n})}),(0,Ee.A)(Z(e),"onNodeMouseLeave",function(t,n){var o=e.props.onMouseLeave;null===o||void 0===o||o({event:t,node:n})}),(0,Ee.A)(Z(e),"onNodeContextMenu",function(t,n){var o=e.props.onRightClick;o&&(t.preventDefault(),o({event:t,node:n}))}),(0,Ee.A)(Z(e),"onFocus",function(){var t=e.props.onFocus;e.setState({focused:!0});for(var n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];null===t||void 0===t||t.apply(void 0,o)}),(0,Ee.A)(Z(e),"onBlur",function(){var t=e.props.onBlur;e.setState({focused:!1}),e.onActiveChange(null);for(var n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];null===t||void 0===t||t.apply(void 0,o)}),(0,Ee.A)(Z(e),"getTreeNodeRequiredProps",function(){var t=e.state;return{expandedKeys:t.expandedKeys||[],selectedKeys:t.selectedKeys||[],loadedKeys:t.loadedKeys||[],loadingKeys:t.loadingKeys||[],checkedKeys:t.checkedKeys||[],halfCheckedKeys:t.halfCheckedKeys||[],dragOverNodeKey:t.dragOverNodeKey,dropPosition:t.dropPosition,keyEntities:t.keyEntities}}),(0,Ee.A)(Z(e),"setExpandedKeys",function(t){var n=e.state,o=TA(n.treeData,t,n.fieldNames);e.setUncontrolledState({expandedKeys:t,flattenNodes:o},!0)}),(0,Ee.A)(Z(e),"onNodeExpand",function(t,n){var o=e.state.expandedKeys,r=e.state,i=r.listChanging,a=r.fieldNames,l=e.props,c=l.onExpand,s=l.loadData,d=n.expanded,p=n[a.key];if(!i){var f=o.includes(p),m=!d;if((0,u.Ay)(d&&f||!d&&!f,"Expand state not sync with index check"),o=m?mK(o,p):fK(o,p),e.setExpandedKeys(o),null===c||void 0===c||c(o,{node:n,expanded:m,nativeEvent:t.nativeEvent}),m&&s){var g=e.onNodeLoad(n);g&&g.then(function(){var t=TA(e.state.treeData,o,a);e.setUncontrolledState({flattenNodes:t})}).catch(function(){var t=fK(e.state.expandedKeys,p);e.setExpandedKeys(t)})}}}),(0,Ee.A)(Z(e),"onListChangeStart",function(){e.setUncontrolledState({listChanging:!0})}),(0,Ee.A)(Z(e),"onListChangeEnd",function(){setTimeout(function(){e.setUncontrolledState({listChanging:!1})})}),(0,Ee.A)(Z(e),"onActiveChange",function(t){var n=e.state.activeKey,o=e.props,r=o.onActiveChange,i=o.itemScrollOffset,a=void 0===i?0:i;n!==t&&(e.setState({activeKey:t}),null!==t&&e.scrollTo({key:t,offset:a}),null===r||void 0===r||r(t))}),(0,Ee.A)(Z(e),"getActiveItem",function(){var t=e.state,n=t.activeKey,o=t.flattenNodes;return null===n?null:o.find(function(e){return e.key===n})||null}),(0,Ee.A)(Z(e),"offsetActiveKey",function(t){var n=e.state,o=n.flattenNodes,r=n.activeKey,i=o.findIndex(function(e){return e.key===r});-1===i&&t<0&&(i=o.length);var a=o[i=(i+t+o.length)%o.length];if(a){var l=a.key;e.onActiveChange(l)}else e.onActiveChange(null)}),(0,Ee.A)(Z(e),"onKeyDown",function(t){var n=e.state,o=n.activeKey,r=n.expandedKeys,i=n.checkedKeys,a=n.fieldNames,l=e.props,c=l.onKeyDown,s=l.checkable,u=l.selectable;switch(t.which){case Xi.UP:e.offsetActiveKey(-1),t.preventDefault();break;case Xi.DOWN:e.offsetActiveKey(1),t.preventDefault()}var p=e.getActiveItem();if(p&&p.data){var f=e.getTreeNodeRequiredProps(),m=!1===p.data.isLeaf||!!(p.data[a.children]||[]).length,g=HA((0,d.A)((0,d.A)({},BA(o,f)),{},{data:p.data,active:!0}));switch(t.which){case Xi.LEFT:m&&r.includes(o)?e.onNodeExpand({},g):p.parent&&e.onActiveChange(p.parent.key),t.preventDefault();break;case Xi.RIGHT:m&&!r.includes(o)?e.onNodeExpand({},g):p.children&&p.children.length&&e.onActiveChange(p.children[0].key),t.preventDefault();break;case Xi.ENTER:case Xi.SPACE:!s||g.disabled||!1===g.checkable||g.disableCheckbox?s||!u||g.disabled||!1===g.selectable||e.onNodeSelect({},g):e.onNodeCheck({},g,!i.includes(o))}}null===c||void 0===c||c(t)}),(0,Ee.A)(Z(e),"setUncontrolledState",function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!e.destroyed){var r=!1,i=!0,a={};Object.keys(t).forEach(function(n){e.props.hasOwnProperty(n)?i=!1:(r=!0,a[n]=t[n])}),!r||n&&!i||e.setState((0,d.A)((0,d.A)({},a),o))}}),(0,Ee.A)(Z(e),"scrollTo",function(t){e.listRef.current.scrollTo(t)}),e}return X(n,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var e=this.props,t=e.activeKey,n=e.itemScrollOffset,o=void 0===n?0:n;void 0!==t&&t!==this.state.activeKey&&(this.setState({activeKey:t}),null!==t&&this.scrollTo({key:t,offset:o}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var e,t=this.state,n=t.focused,r=t.flattenNodes,i=t.keyEntities,c=t.draggingNodeKey,s=t.activeKey,u=t.dropLevelOffset,d=t.dropContainerKey,f=t.dropTargetKey,m=t.dropPosition,g=t.dragOverNodeKey,v=t.indent,h=this.props,b=h.prefixCls,y=h.className,C=h.style,x=h.showLine,$=h.focusable,w=h.tabIndex,S=void 0===w?0:w,k=h.selectable,E=h.showIcon,O=h.icon,A=h.switcherIcon,I=h.draggable,N=h.checkable,M=h.checkStrictly,j=h.disabled,P=h.motion,R=h.loadData,T=h.filterTreeNode,z=h.height,B=h.itemHeight,H=h.scrollWidth,D=h.virtual,L=h.titleRender,F=h.dropIndicatorRender,W=h.onContextMenu,_=h.onScroll,K=h.direction,q=h.rootClassName,V=h.rootStyle,X=ni(this.props,{aria:!0,data:!0});I&&(e="object"===(0,p.A)(I)?I:"function"===typeof I?{nodeDraggable:I}:{});var G={prefixCls:b,selectable:k,showIcon:E,icon:O,switcherIcon:A,draggable:e,draggingNodeKey:c,checkable:N,checkStrictly:M,disabled:j,keyEntities:i,dropLevelOffset:u,dropContainerKey:d,dropTargetKey:f,dropPosition:m,dragOverNodeKey:g,indent:v,direction:K,dropIndicatorRender:F,loadData:R,filterTreeNode:T,titleRender:L,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop};return o.createElement(iK.Provider,{value:G},o.createElement("div",{className:a()(b,y,q,(0,Ee.A)((0,Ee.A)((0,Ee.A)({},"".concat(b,"-show-line"),x),"".concat(b,"-focused"),n),"".concat(b,"-active-focused"),null!==s)),style:V},o.createElement(JK,(0,l.A)({ref:this.listRef,prefixCls:b,style:C,data:r,disabled:j,selectable:k,checkable:!!N,motion:P,dragging:null!==c,height:z,itemHeight:B,virtual:D,focusable:$,focused:n,tabIndex:S,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:W,onScroll:_,scrollWidth:H},this.getTreeNodeRequiredProps(),X))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n,o=t.prevProps,r={prevProps:e};function i(t){return!o&&e.hasOwnProperty(t)||o&&o[t]!==e[t]}var a=t.fieldNames;if(i("fieldNames")&&(a=PA(e.fieldNames),r.fieldNames=a),i("treeData")?n=e.treeData:i("children")&&((0,u.Ay)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),n=RA(e.children)),n){r.treeData=n;var l=zA(n,{fieldNames:a});r.keyEntities=(0,d.A)((0,Ee.A)({},VK,GK),l.keyEntities)}var c,s=r.keyEntities||t.keyEntities;if(i("expandedKeys")||o&&i("autoExpandParent"))r.expandedKeys=e.autoExpandParent||!o&&e.defaultExpandParent?xK(e.expandedKeys,s):e.expandedKeys;else if(!o&&e.defaultExpandAll){var p=(0,d.A)({},s);delete p[VK];var f=[];Object.keys(p).forEach(function(e){var t=p[e];t.children&&t.children.length&&f.push(t.key)}),r.expandedKeys=f}else!o&&e.defaultExpandedKeys&&(r.expandedKeys=e.autoExpandParent||e.defaultExpandParent?xK(e.defaultExpandedKeys,s):e.defaultExpandedKeys);if(r.expandedKeys||delete r.expandedKeys,n||r.expandedKeys){var m=TA(n||t.treeData,r.expandedKeys||t.expandedKeys,a);r.flattenNodes=m}if((e.selectable&&(i("selectedKeys")?r.selectedKeys=yK(e.selectedKeys,e):!o&&e.defaultSelectedKeys&&(r.selectedKeys=yK(e.defaultSelectedKeys,e))),e.checkable)&&(i("checkedKeys")?c=CK(e.checkedKeys)||{}:!o&&e.defaultCheckedKeys?c=CK(e.defaultCheckedKeys)||{}:n&&(c=CK(e.checkedKeys)||{checkedKeys:t.checkedKeys,halfCheckedKeys:t.halfCheckedKeys}),c)){var g=c,v=g.checkedKeys,h=void 0===v?[]:v,b=g.halfCheckedKeys,y=void 0===b?[]:b;if(!e.checkStrictly){var C=WA(h,!0,s);h=C.checkedKeys,y=C.halfCheckedKeys}r.checkedKeys=h,r.halfCheckedKeys=y}return i("loadedKeys")&&(r.loadedKeys=e.loadedKeys),r}}]),n}(o.Component);(0,Ee.A)(eq,"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:zK,allowDrop:function(){return!0},expandAction:!1}),(0,Ee.A)(eq,"TreeNode",pK);const tq=eq;var nq=n(29540),oq=n(40390),rq=n(18722),iq=n(94540);const aq=e=>{let{treeCls:t,treeNodeCls:n,directoryNodeSelectedBg:o,directoryNodeSelectedColor:r,motionDurationMid:i,borderRadius:a,controlItemBgHover:l}=e;return{[`${t}${t}-directory ${n}`]:{[`${t}-node-content-wrapper`]:{position:"static",[`&:has(${t}-drop-indicator)`]:{position:"relative"},[`> *:not(${t}-drop-indicator)`]:{position:"relative"},"&:hover":{background:"transparent"},"&:before":{position:"absolute",inset:0,transition:`background-color ${i}`,content:'""',borderRadius:a},"&:hover:before":{background:l}},[`${t}-switcher, ${t}-checkbox, ${t}-draggable-icon`]:{zIndex:1},"&-selected":{background:o,borderRadius:a,[`${t}-switcher, ${t}-draggable-icon`]:{color:r},[`${t}-node-content-wrapper`]:{color:r,background:"transparent","&:before, &:hover:before":{background:o}}}}}},lq=new En("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),cq=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),sq=(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:`${nt(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),uq=(e,t)=>{const{treeCls:n,treeNodeCls:o,treeNodePadding:r,titleHeight:i,indentSize:a,nodeSelectedBg:l,nodeHoverBg:c,colorTextQuaternary:s,controlItemBgActiveDisabled:u}=t;return{[n]:Object.assign(Object.assign({},po(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)"},[`&-focused:not(:hover):not(${n}-active-focused)`]:Object.assign({},fo(t)),[`${n}-list-holder-inner`]:{alignItems:"flex-start"},[`&${n}-block-node`]:{[`${n}-list-holder-inner`]:{alignItems:"stretch",[`${n}-node-content-wrapper`]:{flex:"auto"},[`${o}.dragging:after`]:{position:"absolute",inset:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:lq,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:t.borderRadius}}},[o]:{display:"flex",alignItems:"flex-start",marginBottom:r,lineHeight:nt(i),position:"relative","&:before":{content:'""',position:"absolute",zIndex:1,insetInlineStart:0,width:"100%",top:"100%",height:r},[`&-disabled ${n}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}},[`${n}-checkbox-disabled + ${n}-node-selected,&${o}-disabled${o}-selected ${n}-node-content-wrapper`]:{backgroundColor:u},[`${n}-checkbox-disabled`]:{pointerEvents:"unset"},[`&:not(${o}-disabled)`]:{[`${n}-node-content-wrapper`]:{"&:hover":{color:t.nodeHoverColor}}},[`&-active ${n}-node-content-wrapper`]:{background:t.controlItemBgHover},[`&:not(${o}-disabled).filter-node ${n}-title`]:{color:t.colorPrimary,fontWeight:t.fontWeightStrong},"&-draggable":{cursor:"grab",[`${n}-draggable-icon`]:{flexShrink:0,width:i,textAlign:"center",visibility:"visible",color:s},[`&${o}-disabled ${n}-draggable-icon`]:{visibility:"hidden"}}},[`${n}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:a}},[`${n}-draggable-icon`]:{visibility:"hidden"},[`${n}-switcher, ${n}-checkbox`]:{marginInlineEnd:t.calc(t.calc(i).sub(t.controlInteractiveSize)).div(2).equal()},[`${n}-switcher`]:Object.assign(Object.assign({},cq(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:i,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${t.motionDurationSlow}`,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:i,height:i,position:"absolute",left:{_skip_check_:!0,value:0},top:0,borderRadius:t.borderRadius,transition:`all ${t.motionDurationSlow}`},[`&:not(${n}-switcher-noop):hover:before`]:{backgroundColor:t.colorBgTextHover},[`&_close ${n}-switcher-icon svg`]:{transform:"rotate(-90deg)"},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(i).div(2).equal(),bottom:t.calc(r).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:t.calc(t.calc(i).div(2).equal()).mul(.8).equal(),height:t.calc(i).div(2).equal(),borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${n}-node-content-wrapper`]:Object.assign(Object.assign({position:"relative",minHeight:i,paddingBlock:0,paddingInline:t.paddingXS,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`},sq(e,t)),{"&:hover":{backgroundColor:c},[`&${n}-node-selected`]:{color:t.nodeSelectedColor,backgroundColor:l},[`${n}-iconEle`]:{display:"inline-block",width:i,height:i,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}}),[`${n}-unselectable ${n}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${o}.drop-container > [draggable]`]:{boxShadow:`0 0 0 2px ${t.colorPrimary}`},"&-show-line":{[`${n}-indent-unit`]:{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(i).div(2).equal(),bottom:t.calc(r).mul(-1).equal(),borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&-end:before":{display:"none"}},[`${n}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${o}-leaf-last ${n}-switcher-leaf-line:before`]:{top:"auto !important",bottom:"auto !important",height:`${nt(t.calc(i).div(2).equal())} !important`}})}},dq=function(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const o=`.${e}`,r=`${o}-treenode`,i=t.calc(t.paddingXS).div(2).equal(),a=Jn(t,{treeCls:o,treeNodeCls:r,treeNodePadding:i});return[uq(e,a),n&&aq(a)].filter(Boolean)},pq=e=>{const{controlHeightSM:t,controlItemBgHover:n,controlItemBgActive:o}=e;return{titleHeight:t,indentSize:t,nodeHoverBg:n,nodeHoverColor:e.colorText,nodeSelectedBg:o,nodeSelectedColor:e.colorText}},fq=qo("Tree",(e,t)=>{let{prefixCls:n}=t;return[{[e.componentCls]:uI(`${n}-checkbox`,e)},dq(n,e),$s(e)]},e=>{const{colorTextLightSolid:t,colorPrimary:n}=e;return Object.assign(Object.assign({},pq(e)),{directoryNodeSelectedColor:t,directoryNodeSelectedBg:n})});const mq=function(e){const{dropPosition:t,dropLevelOffset:n,prefixCls:o,indent:i,direction:a="ltr"}=e,l="ltr"===a?"left":"right",c="ltr"===a?"right":"left",s={[l]:-n*i+4,[c]:0};switch(t){case-1:s.top=-3;break;case 1:s.bottom=-3;break;default:s.bottom=-3,s[l]=i+4}return r().createElement("div",{style:s,className:`${o}-drop-indicator`})};var gq=n(5837),vq=n(21355),hq=n(94877);const bq=e=>{var t,n;const{prefixCls:r,switcherIcon:i,treeNodeProps:l,showLine:c,switcherLoadingIcon:s}=e,{isLeaf:u,expanded:d,loading:p}=l;if(p)return o.isValidElement(s)?s:o.createElement(la.A,{className:`${r}-switcher-loading-icon`});let f;if(c&&"object"===typeof c&&(f=c.showLeafIcon),u){if(!c)return null;if("boolean"!==typeof f&&f){const e="function"===typeof f?f(l):f,n=`${r}-switcher-line-custom-icon`;return o.isValidElement(e)?ii(e,{className:a()(null===(t=e.props)||void 0===t?void 0:t.className,n)}):e}return f?o.createElement(nq.A,{className:`${r}-switcher-line-icon`}):o.createElement("span",{className:`${r}-switcher-leaf-line`})}const m=`${r}-switcher-icon`,g="function"===typeof i?i(l):i;return o.isValidElement(g)?ii(g,{className:a()(null===(n=g.props)||void 0===n?void 0:n.className,m)}):void 0!==g?g:c?d?o.createElement(vq.A,{className:`${r}-switcher-line-icon`}):o.createElement(hq.A,{className:`${r}-switcher-line-icon`}):o.createElement(gq.A,{className:m})},yq=r().forwardRef((e,t)=>{var n;const{getPrefixCls:o,direction:i,virtual:l,tree:c}=r().useContext(xe),{prefixCls:s,className:u,showIcon:d=!1,showLine:p,switcherIcon:f,switcherLoadingIcon:m,blockNode:g=!1,children:v,checkable:h=!1,selectable:b=!0,draggable:y,motion:C,style:x}=e,$=o("tree",s),w=o(),S=null!==C&&void 0!==C?C:Object.assign(Object.assign({},Gl(w)),{motionAppear:!1}),k=Object.assign(Object.assign({},e),{checkable:h,selectable:b,showIcon:d,motion:S,blockNode:g,showLine:Boolean(p),dropIndicatorRender:mq}),[E,O,A]=fq($),[,I]=Ko(),N=I.paddingXS/2+((null===(n=I.Tree)||void 0===n?void 0:n.titleHeight)||I.controlHeightSM),M=r().useMemo(()=>{if(!y)return!1;let e={};switch(typeof y){case"function":e.nodeDraggable=y;break;case"object":e=Object.assign({},y)}return!1!==e.icon&&(e.icon=e.icon||r().createElement(iq.A,null)),e},[y]);return E(r().createElement(tq,Object.assign({itemHeight:N,ref:t,virtual:l},k,{style:Object.assign(Object.assign({},null===c||void 0===c?void 0:c.style),x),prefixCls:$,className:a()({[`${$}-icon-hide`]:!d,[`${$}-block-node`]:g,[`${$}-unselectable`]:!b,[`${$}-rtl`]:"rtl"===i},null===c||void 0===c?void 0:c.className,u,O,A),direction:i,checkable:h?r().createElement("span",{className:`${$}-checkbox-inner`}):h,selectable:b,switcherIcon:e=>r().createElement(bq,{prefixCls:$,switcherIcon:f,switcherLoadingIcon:m,treeNodeProps:e,showLine:p}),draggable:M}),v))});const Cq=yq;function xq(e,t,n){const{key:o,children:r}=n;e.forEach(function(e){const i=e[o],a=e[r];!1!==t(i,e)&&xq(a||[],t,n)})}function $q(e){let{treeData:t,expandedKeys:n,startKey:o,endKey:r,fieldNames:i}=e;const a=[];let l=0;if(o&&o===r)return[o];if(!o||!r)return[];return xq(t,e=>{if(2===l)return!1;if(function(e){return e===o||e===r}(e)){if(a.push(e),0===l)l=1;else if(1===l)return l=2,!1}else 1===l&&a.push(e);return n.includes(e)},PA(i)),a}function wq(e,t,n){const o=se(t),r=[];return xq(e,(e,t)=>{const n=o.indexOf(e);return-1!==n&&(r.push(t),o.splice(n,1)),!!o.length},PA(n)),r}var Sq=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};function kq(e){const{isLeaf:t,expanded:n}=e;return t?o.createElement(nq.A,null):n?o.createElement(oq.A,null):o.createElement(rq.A,null)}function Eq(e){let{treeData:t,children:n}=e;return t||RA(n)}const Oq=o.forwardRef((e,t)=>{var{defaultExpandAll:n,defaultExpandParent:r,defaultExpandedKeys:i}=e,l=Sq(e,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const c=o.useRef(null),s=o.useRef(null),[u,d]=o.useState(l.selectedKeys||l.defaultSelectedKeys||[]),[p,f]=o.useState(()=>(()=>{const{keyEntities:e}=zA(Eq(l));let t;return t=n?Object.keys(e):r?xK(l.expandedKeys||i||[],e):l.expandedKeys||i||[],t})());o.useEffect(()=>{"selectedKeys"in l&&d(l.selectedKeys)},[l.selectedKeys]),o.useEffect(()=>{"expandedKeys"in l&&f(l.expandedKeys)},[l.expandedKeys]);const{getPrefixCls:m,direction:g}=o.useContext(xe),{prefixCls:v,className:h,showIcon:b=!0,expandAction:y="click"}=l,C=Sq(l,["prefixCls","className","showIcon","expandAction"]),x=m("tree",v),$=a()(`${x}-directory`,{[`${x}-directory-rtl`]:"rtl"===g},h);return o.createElement(Cq,Object.assign({icon:kq,ref:t,blockNode:!0},C,{showIcon:b,expandAction:y,prefixCls:x,className:$,expandedKeys:p,selectedKeys:u,onSelect:(e,t)=>{var n;const{multiple:o,fieldNames:r}=l,{node:i,nativeEvent:a}=t,{key:u=""}=i,f=Eq(l),m=Object.assign(Object.assign({},t),{selected:!0}),g=(null===a||void 0===a?void 0:a.ctrlKey)||(null===a||void 0===a?void 0:a.metaKey),v=null===a||void 0===a?void 0:a.shiftKey;let h;o&&g?(h=e,c.current=u,s.current=h,m.selectedNodes=wq(f,h,r)):o&&v?(h=Array.from(new Set([].concat(se(s.current||[]),se($q({treeData:f,expandedKeys:p,startKey:u,endKey:c.current,fieldNames:r}))))),m.selectedNodes=wq(f,h,r)):(h=[u],c.current=u,s.current=h,m.selectedNodes=wq(f,h,r)),null===(n=l.onSelect)||void 0===n||n.call(l,h,m),"selectedKeys"in l||d(h)},onExpand:(e,t)=>{var n;return"expandedKeys"in l||f(e),null===(n=l.onExpand)||void 0===n?void 0:n.call(l,e,t)}}))});const Aq=Oq,Iq=Cq;Iq.DirectoryTree=Aq,Iq.TreeNode=pK;const Nq=Iq,Mq=e=>{const{value:t,filterSearch:n,tablePrefixCls:r,locale:i,onChange:a}=e;return n?o.createElement("div",{className:`${r}-filter-dropdown-search`},o.createElement(BM,{prefix:o.createElement(pb.A,null),placeholder:i.filterSearchPlaceholder,onChange:a,value:t,htmlSize:1,className:`${r}-filter-dropdown-search-input`})):null},jq=e=>{const{keyCode:t}=e;t===Xi.ENTER&&e.stopPropagation()},Pq=o.forwardRef((e,t)=>o.createElement("div",{className:e.className,onClick:e=>e.stopPropagation(),onKeyDown:jq,ref:t},e.children));const Rq=Pq;function Tq(e){let t=[];return(e||[]).forEach(e=>{let{value:n,children:o}=e;t.push(n),o&&(t=[].concat(se(t),se(Tq(o))))}),t}function zq(e,t){return("string"===typeof t||"number"===typeof t)&&(null===t||void 0===t?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()))}function Bq(e){let{filters:t,prefixCls:n,filteredKeys:r,filterMultiple:i,searchValue:a,filterSearch:l}=e;return t.map((e,t)=>{const c=String(e.value);if(e.children)return{key:c||t,label:e.text,popupClassName:`${n}-dropdown-submenu`,children:Bq({filters:e.children,prefixCls:n,filteredKeys:r,filterMultiple:i,searchValue:a,filterSearch:l})};const s=i?PI:lF,u={key:void 0!==e.value?c:t,label:o.createElement(o.Fragment,null,o.createElement(s,{checked:r.includes(c)}),o.createElement("span",null,e.text))};return a.trim()?"function"===typeof l?l(a,e)?u:null:zq(a,e.text)?u:null:u})}function Hq(e){return e||[]}const Dq=e=>{var t,n,r,i;const{tablePrefixCls:l,prefixCls:c,column:s,dropdownPrefixCls:u,columnKey:d,filterOnClose:p,filterMultiple:f,filterMode:m="menu",filterSearch:g=!1,filterState:v,triggerFilter:h,locale:b,children:y,getPopupContainer:C,rootClassName:x}=e,{filterResetToDefaultFilteredValue:$,defaultFilteredValue:w,filterDropdownProps:S={},filterDropdownOpen:k,filterDropdownVisible:E,onFilterDropdownVisibleChange:O,onFilterDropdownOpenChange:A}=s,[I,N]=o.useState(!1),M=!(!v||!(null===(t=v.filteredKeys)||void 0===t?void 0:t.length)&&!v.forceFiltered),j=e=>{var t;N(e),null===(t=S.onOpenChange)||void 0===t||t.call(S,e),null===A||void 0===A||A(e),null===O||void 0===O||O(e)};const P=null!==(i=null!==(r=null!==(n=S.open)&&void 0!==n?n:k)&&void 0!==r?r:E)&&void 0!==i?i:I,R=null===v||void 0===v?void 0:v.filteredKeys,[T,z]=function(e){const t=o.useRef(e),n=jb();return[()=>t.current,e=>{t.current=e,n()}]}(Hq(R)),B=e=>{let{selectedKeys:t}=e;z(t)},H=(e,t)=>{let{node:n,checked:o}=t;B(f?{selectedKeys:e}:{selectedKeys:o&&n.key?[n.key]:[]})};o.useEffect(()=>{I&&B({selectedKeys:Hq(R)})},[R]);const[D,L]=o.useState([]),F=e=>{L(e)},[W,_]=o.useState(""),K=e=>{const{value:t}=e.target;_(t)};o.useEffect(()=>{I||_("")},[I]);const q=e=>{const t=(null===e||void 0===e?void 0:e.length)?e:null;return null!==t||v&&v.filteredKeys?Ne(t,null===v||void 0===v?void 0:v.filteredKeys,!0)?null:void h({column:s,key:d,filteredKeys:t}):null},V=()=>{j(!1),q(T())},X=function(){let{confirm:e,closeDropdown:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{confirm:!1,closeDropdown:!1};e&&q([]),t&&j(!1),_(""),z($?(w||[]).map(e=>String(e)):[])},G=function(){let{closeDropdown:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{closeDropdown:!0};e&&j(!1),q(T())},Y=a()({[`${u}-menu-without-submenu`]:(U=s.filters||[],!U.some(e=>{let{children:t}=e;return t}))});var U;const Q=e=>{if(e.target.checked){const e=Tq(null===s||void 0===s?void 0:s.filters).map(e=>String(e));z(e)}else z([])},Z=e=>{let{filters:t}=e;return(t||[]).map((e,t)=>{const n=String(e.value),o={title:e.text,key:void 0!==e.value?n:String(t)};return e.children&&(o.children=Z({filters:e.children})),o})},J=e=>{var t;return Object.assign(Object.assign({},e),{text:e.title,value:e.key,children:(null===(t=e.children)||void 0===t?void 0:t.map(e=>J(e)))||[]})};let ee;const{direction:te,renderEmpty:ne}=o.useContext(xe);if("function"===typeof s.filterDropdown)ee=s.filterDropdown({prefixCls:`${u}-custom`,setSelectedKeys:e=>B({selectedKeys:e}),selectedKeys:T(),confirm:G,clearFilters:X,filters:s.filters,visible:P,close:()=>{j(!1)}});else if(s.filterDropdown)ee=s.filterDropdown;else{const e=T()||[],t=()=>{var t,n;const r=null!==(t=null===ne||void 0===ne?void 0:ne("Table.filter"))&&void 0!==t?t:o.createElement(hh,{image:hh.PRESENTED_IMAGE_SIMPLE,description:b.filterEmptyText,styles:{image:{height:24}},style:{margin:0,padding:"16px 0"}});if(0===(s.filters||[]).length)return r;if("tree"===m)return o.createElement(o.Fragment,null,o.createElement(Mq,{filterSearch:g,value:W,onChange:K,tablePrefixCls:l,locale:b}),o.createElement("div",{className:`${l}-filter-dropdown-tree`},f?o.createElement(PI,{checked:e.length===Tq(s.filters).length,indeterminate:e.length>0&&e.length<Tq(s.filters).length,className:`${l}-filter-dropdown-checkall`,onChange:Q},null!==(n=null===b||void 0===b?void 0:b.filterCheckall)&&void 0!==n?n:null===b||void 0===b?void 0:b.filterCheckAll):null,o.createElement(Nq,{checkable:!0,selectable:!1,blockNode:!0,multiple:f,checkStrictly:!f,className:`${u}-menu`,onCheck:H,checkedKeys:e,selectedKeys:e,showIcon:!1,treeData:Z({filters:s.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:W.trim()?e=>"function"===typeof g?g(W,J(e)):zq(W,e.title):void 0})));const i=Bq({filters:s.filters||[],filterSearch:g,prefixCls:c,filteredKeys:T(),filterMultiple:f,searchValue:W}),a=i.every(e=>null===e);return o.createElement(o.Fragment,null,o.createElement(Mq,{filterSearch:g,value:W,onChange:K,tablePrefixCls:l,locale:b}),a?r:o.createElement(x$,{selectable:!0,multiple:f,prefixCls:`${u}-menu`,className:Y,onSelect:B,onDeselect:B,selectedKeys:e,getPopupContainer:C,openKeys:D,onOpenChange:F,items:i}))},n=()=>$?Ne((w||[]).map(e=>String(e)),e,!0):0===e.length;ee=o.createElement(o.Fragment,null,t(),o.createElement("div",{className:`${c}-dropdown-btns`},o.createElement(Su,{type:"link",size:"small",disabled:n(),onClick:()=>X()},b.filterReset),o.createElement(Su,{type:"primary",size:"small",onClick:V},b.filterConfirm)))}s.filterDropdown&&(ee=o.createElement(t$,{selectable:void 0},ee)),ee=o.createElement(Rq,{className:`${c}-dropdown`},ee);const oe=Np({trigger:["click"],placement:"rtl"===te?"bottomLeft":"bottomRight",children:(()=>{let e;return e="function"===typeof s.filterIcon?s.filterIcon(M):s.filterIcon?s.filterIcon:o.createElement(TK.A,null),o.createElement("span",{role:"button",tabIndex:-1,className:a()(`${c}-trigger`,{active:M}),onClick:e=>{e.stopPropagation()}},e)})(),getPopupContainer:C},Object.assign(Object.assign({},S),{rootClassName:a()(x,S.rootClassName),open:P,onOpenChange:(e,t)=>{"trigger"===t.source&&(e&&void 0!==R&&z(Hq(R)),j(e),e||s.filterDropdown||!p||V())},popupRender:()=>"function"===typeof(null===S||void 0===S?void 0:S.dropdownRender)?S.dropdownRender(ee):ee}));return o.createElement("div",{className:`${c}-column`},o.createElement("span",{className:`${l}-column-title`},y),o.createElement(zR,Object.assign({},oe)))},Lq=(e,t,n)=>{let o=[];return(e||[]).forEach((e,r)=>{var i;const a=PK(r,n),l=void 0!==e.filterDropdown;if(e.filters||l||"onFilter"in e)if("filteredValue"in e){let t=e.filteredValue;l||(t=null!==(i=null===t||void 0===t?void 0:t.map(String))&&void 0!==i?i:t),o.push({column:e,key:jK(e,a),filteredKeys:t,forceFiltered:e.filtered})}else o.push({column:e,key:jK(e,a),filteredKeys:t&&e.defaultFilteredValue?e.defaultFilteredValue:void 0,forceFiltered:e.filtered});"children"in e&&(o=[].concat(se(o),se(Lq(e.children,t,a))))}),o};function Fq(e,t,n,r,i,a,l,c,s){return n.map((n,u)=>{const d=PK(u,c),{filterOnClose:p=!0,filterMultiple:f=!0,filterMode:m,filterSearch:g}=n;let v=n;if(v.filters||v.filterDropdown){const c=jK(v,d),u=r.find(e=>{let{key:t}=e;return c===t});v=Object.assign(Object.assign({},v),{title:r=>o.createElement(Dq,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:v,columnKey:c,filterState:u,filterOnClose:p,filterMultiple:f,filterMode:m,filterSearch:g,triggerFilter:a,locale:i,getPopupContainer:l,rootClassName:s},RK(n.title,r))})}return"children"in v&&(v=Object.assign(Object.assign({},v),{children:Fq(e,t,v.children,r,i,a,l,d,s)})),v})}const Wq=e=>{const t={};return e.forEach(e=>{let{key:n,filteredKeys:o,column:r}=e;const i=n,{filters:a,filterDropdown:l}=r;if(l)t[i]=o||null;else if(Array.isArray(o)){const e=Tq(a);t[i]=e.filter(e=>o.includes(String(e)))}else t[i]=null}),t},_q=(e,t,n)=>{const o=t.reduce((e,o)=>{const{column:{onFilter:r,filters:i},filteredKeys:a}=o;return r&&a&&a.length?e.map(e=>Object.assign({},e)).filter(e=>a.some(o=>{const a=Tq(i),l=a.findIndex(e=>String(e)===String(o)),c=-1!==l?a[l]:o;return e[n]&&(e[n]=_q(e[n],t,n)),r(c,e)})):e},e);return o},Kq=e=>e.flatMap(e=>"children"in e?[e].concat(se(Kq(e.children||[]))):[e]),qq=e=>{const{prefixCls:t,dropdownPrefixCls:n,mergedColumns:r,onFilterChange:i,getPopupContainer:a,locale:l,rootClassName:c}=e,s=(qi("Table"),o.useMemo(()=>Kq(r||[]),[r])),[u,d]=o.useState(()=>Lq(s,!0)),p=o.useMemo(()=>{const e=Lq(s,!1);if(0===e.length)return e;let t=!0,n=!0;if(e.forEach(e=>{let{filteredKeys:o}=e;void 0!==o?t=!1:n=!1}),t){const e=(s||[]).map((e,t)=>jK(e,PK(t)));return u.filter(t=>{let{key:n}=t;return e.includes(n)}).map(t=>{const n=s[e.findIndex(e=>e===t.key)];return Object.assign(Object.assign({},t),{column:Object.assign(Object.assign({},t.column),n),forceFiltered:n.filtered})})}return e},[s,u]),f=o.useMemo(()=>Wq(p),[p]),m=e=>{const t=p.filter(t=>{let{key:n}=t;return n!==e.key});t.push(e),d(t),i(Wq(t),t)};return[e=>Fq(t,n,e,p,l,m,a,void 0,c),p,f]},Vq=(e,t,n)=>{const r=o.useRef({});return[function(o){var i;if(!r.current||r.current.data!==e||r.current.childrenColumnName!==t||r.current.getRowKey!==n){const a=new Map;function l(e){e.forEach((e,o)=>{const r=n(e,o);a.set(r,e),e&&"object"===typeof e&&t in e&&l(e[t]||[])})}l(e),r.current={data:e,childrenColumnName:t,kvMap:a,getRowKey:n}}return null===(i=r.current.kvMap)||void 0===i?void 0:i.get(o)}]};var Xq=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const Gq=10;const Yq=function(e,t,n){const r=n&&"object"===typeof n?n:{},{total:i=0}=r,a=Xq(r,["total"]),[l,c]=(0,o.useState)(()=>({current:"defaultCurrent"in a?a.defaultCurrent:1,pageSize:"defaultPageSize"in a?a.defaultPageSize:Gq})),s=Np(l,a,{total:i>0?i:e}),u=Math.ceil((i||e)/s.pageSize);s.current>u&&(s.current=u||1);const d=(e,t)=>{c({current:null!==e&&void 0!==e?e:1,pageSize:t||s.pageSize})};return!1===n?[{},()=>{}]:[Object.assign(Object.assign({},s),{onChange:(e,o)=>{var r;n&&(null===(r=n.onChange)||void 0===r||r.call(n,e,o)),d(e,o),t(e,o||(null===s||void 0===s?void 0:s.pageSize))}}),d]};var Uq=n(92075),Qq=n(72122);const Zq="ascend",Jq="descend",eV=e=>"object"===typeof e.sorter&&"number"===typeof e.sorter.multiple&&e.sorter.multiple,tV=e=>"function"===typeof e?e:!(!e||"object"!==typeof e||!e.compare)&&e.compare,nV=(e,t,n)=>{let o=[];const r=(e,t)=>{o.push({column:e,key:jK(e,t),multiplePriority:eV(e),sortOrder:e.sortOrder})};return(e||[]).forEach((e,i)=>{const a=PK(i,n);e.children?("sortOrder"in e&&r(e,a),o=[].concat(se(o),se(nV(e.children,t,a)))):e.sorter&&("sortOrder"in e?r(e,a):t&&e.defaultSortOrder&&o.push({column:e,key:jK(e,a),multiplePriority:eV(e),sortOrder:e.defaultSortOrder}))}),o},oV=(e,t,n,r,i,l,c,s)=>{const u=(t||[]).map((t,u)=>{const d=PK(u,s);let p=t;if(p.sorter){const s=p.sortDirections||i,u=void 0===p.showSorterTooltip?c:p.showSorterTooltip,f=jK(p,d),m=n.find(e=>{let{key:t}=e;return t===f}),g=m?m.sortOrder:null,v=((e,t)=>t?e[e.indexOf(t)+1]:e[0])(s,g);let h;if(t.sortIcon)h=t.sortIcon({sortOrder:g});else{const t=s.includes(Zq)&&o.createElement(Qq.A,{className:a()(`${e}-column-sorter-up`,{active:g===Zq})}),n=s.includes(Jq)&&o.createElement(Uq.A,{className:a()(`${e}-column-sorter-down`,{active:g===Jq})});h=o.createElement("span",{className:a()(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!(!t||!n)})},o.createElement("span",{className:`${e}-column-sorter-inner`,"aria-hidden":"true"},t,n))}const{cancelSort:b,triggerAsc:y,triggerDesc:C}=l||{};let x=b;v===Jq?x=C:v===Zq&&(x=y);const $="object"===typeof u?Object.assign({title:x},u):{title:x};p=Object.assign(Object.assign({},p),{className:a()(p.className,{[`${e}-column-sort`]:g}),title:n=>{const r=`${e}-column-sorters`,i=o.createElement("span",{className:`${e}-column-title`},RK(t.title,n)),a=o.createElement("div",{className:r},i,h);return u?"boolean"!==typeof u&&"sorter-icon"===(null===u||void 0===u?void 0:u.target)?o.createElement("div",{className:`${r} ${e}-column-sorters-tooltip-target-sorter`},i,o.createElement(hy,Object.assign({},$),h)):o.createElement(hy,Object.assign({},$),a):a},onHeaderCell:n=>{var o;const i=(null===(o=t.onHeaderCell)||void 0===o?void 0:o.call(t,n))||{},l=i.onClick,c=i.onKeyDown;i.onClick=e=>{r({column:t,key:f,sortOrder:v,multiplePriority:eV(t)}),null===l||void 0===l||l(e)},i.onKeyDown=e=>{e.keyCode===Xi.ENTER&&(r({column:t,key:f,sortOrder:v,multiplePriority:eV(t)}),null===c||void 0===c||c(e))};const s=((e,t)=>{const n=RK(e,t);return"[object Object]"===Object.prototype.toString.call(n)?"":n})(t.title,{}),u=null===s||void 0===s?void 0:s.toString();return g&&(i["aria-sort"]="ascend"===g?"ascending":"descending"),i["aria-label"]=u||"",i.className=a()(i.className,`${e}-column-has-sorters`),i.tabIndex=0,t.ellipsis&&(i.title=(null!==s&&void 0!==s?s:"").toString()),i}})}return"children"in p&&(p=Object.assign(Object.assign({},p),{children:oV(e,p.children,n,r,i,l,c,d)})),p});return u},rV=e=>{const{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}},iV=e=>{const t=e.filter(e=>{let{sortOrder:t}=e;return t}).map(rV);if(0===t.length&&e.length){const t=e.length-1;return Object.assign(Object.assign({},rV(e[t])),{column:void 0,order:void 0,field:void 0,columnKey:void 0})}return t.length<=1?t[0]||{}:t},aV=(e,t,n)=>{const o=t.slice().sort((e,t)=>t.multiplePriority-e.multiplePriority),r=e.slice(),i=o.filter(e=>{let{column:{sorter:t},sortOrder:n}=e;return tV(t)&&n});return i.length?r.sort((e,t)=>{for(let n=0;n<i.length;n+=1){const o=i[n],{column:{sorter:r},sortOrder:a}=o,l=tV(r);if(l&&a){const n=l(e,t,a);if(0!==n)return a===Zq?n:-n}}return 0}).map(e=>{const o=e[n];return o?Object.assign(Object.assign({},e),{[n]:aV(o,t,n)}):e}):r},lV=e=>{const{prefixCls:t,mergedColumns:n,sortDirections:r,tableLocale:i,showSorterTooltip:a,onSorterChange:l}=e,[c,s]=o.useState(()=>nV(n,!0)),u=(e,t)=>{const n=[];return e.forEach((e,o)=>{const r=PK(o,t);if(n.push(jK(e,r)),Array.isArray(e.children)){const t=u(e.children,r);n.push.apply(n,se(t))}}),n},d=o.useMemo(()=>{let e=!0;const t=nV(n,!1);if(!t.length){const e=u(n);return c.filter(t=>{let{key:n}=t;return e.includes(n)})}const o=[];function r(t){e?o.push(t):o.push(Object.assign(Object.assign({},t),{sortOrder:null}))}let i=null;return t.forEach(t=>{null===i?(r(t),t.sortOrder&&(!1===t.multiplePriority?e=!1:i=!0)):(i&&!1!==t.multiplePriority||(e=!1),r(t))}),o},[n,c]),p=o.useMemo(()=>{var e,t;const n=d.map(e=>{let{column:t,sortOrder:n}=e;return{column:t,order:n}});return{sortColumns:n,sortColumn:null===(e=n[0])||void 0===e?void 0:e.column,sortOrder:null===(t=n[0])||void 0===t?void 0:t.order}},[d]),f=e=>{let t;t=!1!==e.multiplePriority&&d.length&&!1!==d[0].multiplePriority?[].concat(se(d.filter(t=>{let{key:n}=t;return n!==e.key})),[e]):[e],s(t),l(iV(t),t)};return[e=>oV(t,e,d,f,r,i,a),d,p,()=>iV(d)]},cV=(e,t)=>{const n=e.map(e=>{const n=Object.assign({},e);return n.title=RK(e.title,t),"children"in n&&(n.children=cV(n.children,t)),n});return n},sV=e=>{const t=o.useCallback(t=>cV(t,e),[e]);return[t]},uV=__((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:o}=t;return n!==o}),dV=uV,pV=nK((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:o}=t;return n!==o}),fV=pV,mV=e=>{const{componentCls:t,lineWidth:n,lineType:o,tableBorderColor:r,tableHeaderBg:i,tablePaddingVertical:a,tablePaddingHorizontal:l,calc:c}=e,s=`${nt(n)} ${o} ${r}`,u=(e,o,r)=>({[`&${t}-${e}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${nt(c(o).mul(-1).equal())}\n ${nt(c(c(r).add(n)).mul(-1).equal())}`}}}}}});return{[`${t}-wrapper`]:{[`${t}${t}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${t}-title`]:{border:s,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:s,borderTop:s,[`\n > ${t}-content,\n > ${t}-header,\n > ${t}-body,\n > ${t}-summary\n `]:{"> table":{"\n > thead > tr > th,\n > thead > tr > td,\n > tbody > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ":{borderInlineEnd:s},"> thead":{"> tr:not(:last-child) > th":{borderBottom:s},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${t}-cell-fix-right-first::after`]:{borderInlineEnd:s}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${nt(c(a).mul(-1).equal())} ${nt(c(c(l).add(n)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:n,bottom:0,borderInlineEnd:s,content:'""'}}}}}},[`&${t}-scroll-horizontal`]:{[`> ${t}-container > ${t}-body`]:{"> table > tbody":{[`\n > tr${t}-expanded-row,\n > tr${t}-placeholder\n `]:{"> th, > td":{borderInlineEnd:0}}}}}},u("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle)),u("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall)),{[`> ${t}-footer`]:{border:s,borderTop:0}}),[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${nt(n)} 0 ${nt(n)} ${i}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:s}}}},gV=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:Object.assign(Object.assign({},uo),{wordBreak:"keep-all",[`\n &${t}-cell-fix-left-last,\n &${t}-cell-fix-right-first\n `]:{overflow:"visible",[`${t}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${t}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},vV=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:"center",color:e.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:e.colorBgContainer}}}}},hV=e=>{const{componentCls:t,antCls:n,motionDurationSlow:o,lineWidth:r,paddingXS:i,lineType:a,tableBorderColor:l,tableExpandIconBg:c,tableExpandColumnWidth:s,borderRadius:u,tablePaddingVertical:d,tablePaddingHorizontal:p,tableExpandedRowBg:f,paddingXXS:m,expandIconMarginTop:g,expandIconSize:v,expandIconHalfInner:h,expandIconScale:b,calc:y}=e,C=`${nt(r)} ${a} ${l}`,x=y(m).sub(r).equal();return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:s},[`${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`]:Object.assign(Object.assign({},vo(e)),{position:"relative",float:"left",width:v,height:v,color:"inherit",lineHeight:nt(v),background:c,border:C,borderRadius:u,transform:`scale(${b})`,"&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${o} ease-out`,content:'""'},"&::before":{top:h,insetInlineEnd:x,insetInlineStart:x,height:r},"&::after":{top:x,bottom:x,insetInlineStart:h,width:r,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:g,marginInlineEnd:i},[`tr${t}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:f}},[`${n}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"100%"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`${nt(y(d).mul(-1).equal())} ${nt(y(p).mul(-1).equal())}`,padding:`${nt(d)} ${nt(p)}`}}}},bV=e=>{const{componentCls:t,antCls:n,iconCls:o,tableFilterDropdownWidth:r,tableFilterDropdownSearchWidth:i,paddingXXS:a,paddingXS:l,colorText:c,lineWidth:s,lineType:u,tableBorderColor:d,headerIconColor:p,fontSizeSM:f,tablePaddingHorizontal:m,borderRadius:g,motionDurationSlow:v,colorIcon:h,colorPrimary:b,tableHeaderFilterActiveBg:y,colorTextDisabled:C,tableFilterDropdownBg:x,tableFilterDropdownHeight:$,controlItemBgHover:w,controlItemBgActive:S,boxShadowSecondary:k,filterDropdownMenuBg:E,calc:O}=e,A=`${n}-dropdown`,I=`${t}-filter-dropdown`,N=`${n}-tree`,M=`${nt(s)} ${u} ${d}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:O(a).mul(-1).equal(),marginInline:`${nt(a)} ${nt(O(m).div(2).mul(-1).equal())}`,padding:`0 ${nt(a)}`,color:p,fontSize:f,borderRadius:g,cursor:"pointer",transition:`all ${v}`,"&:hover":{color:h,background:y},"&.active":{color:b}}}},{[`${n}-dropdown`]:{[I]:Object.assign(Object.assign({},po(e)),{minWidth:r,backgroundColor:x,borderRadius:g,boxShadow:k,overflow:"hidden",[`${A}-menu`]:{maxHeight:$,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:E,"&:empty::after":{display:"block",padding:`${nt(l)} 0`,color:C,fontSize:f,textAlign:"center",content:'"Not Found"'}},[`${I}-tree`]:{paddingBlock:`${nt(l)} 0`,paddingInline:l,[N]:{padding:0},[`${N}-treenode ${N}-node-content-wrapper:hover`]:{backgroundColor:w},[`${N}-treenode-checkbox-checked ${N}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:S}}},[`${I}-search`]:{padding:l,borderBottom:M,"&-input":{input:{minWidth:i},[o]:{color:C}}},[`${I}-checkall`]:{width:"100%",marginBottom:a,marginInlineStart:a},[`${I}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${nt(O(l).sub(s).equal())} ${nt(l)}`,overflow:"hidden",borderTop:M}})}},{[`${n}-dropdown ${I}, ${I}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:l,color:c},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},yV=e=>{const{componentCls:t,lineWidth:n,colorSplit:o,motionDurationSlow:r,zIndexTableFixed:i,tableBg:a,zIndexTableSticky:l,calc:c}=e,s=o;return{[`${t}-wrapper`]:{[`\n ${t}-cell-fix-left,\n ${t}-cell-fix-right\n `]:{position:"sticky !important",zIndex:i,background:a},[`\n ${t}-cell-fix-left-first::after,\n ${t}-cell-fix-left-last::after\n `]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:c(n).mul(-1).equal(),width:30,transform:"translateX(100%)",transition:`box-shadow ${r}`,content:'""',pointerEvents:"none"},[`${t}-cell-fix-left-all::after`]:{display:"none"},[`\n ${t}-cell-fix-right-first::after,\n ${t}-cell-fix-right-last::after\n `]:{position:"absolute",top:0,bottom:c(n).mul(-1).equal(),left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${r}`,content:'""',pointerEvents:"none"},[`${t}-container`]:{position:"relative","&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:c(l).add(1).equal({unit:!1}),width:30,transition:`box-shadow ${r}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${t}-ping-left`]:{[`&:not(${t}-has-fix-left) ${t}-container::before`]:{boxShadow:`inset 10px 0 8px -8px ${s}`},[`\n ${t}-cell-fix-left-first::after,\n ${t}-cell-fix-left-last::after\n `]:{boxShadow:`inset 10px 0 8px -8px ${s}`},[`${t}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${t}-ping-right`]:{[`&:not(${t}-has-fix-right) ${t}-container::after`]:{boxShadow:`inset -10px 0 8px -8px ${s}`},[`\n ${t}-cell-fix-right-first::after,\n ${t}-cell-fix-right-last::after\n `]:{boxShadow:`inset -10px 0 8px -8px ${s}`}},[`${t}-fixed-column-gapped`]:{[`\n ${t}-cell-fix-left-first::after,\n ${t}-cell-fix-left-last::after,\n ${t}-cell-fix-right-first::after,\n ${t}-cell-fix-right-last::after\n `]:{boxShadow:"none"}}}}},CV=e=>{const{componentCls:t,antCls:n,margin:o}=e;return{[`${t}-wrapper`]:{[`${t}-pagination${n}-pagination`]:{margin:`${nt(o)} 0`},[`${t}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},xV=e=>{const{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${nt(n)} ${nt(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,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:n},"> *:last-child":{borderStartEndRadius:n}}},"&-footer":{borderRadius:`0 0 ${nt(n)} ${nt(n)}`}}}}},$V=e=>{const{componentCls:t}=e;return{[`${t}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${t}-pagination-left`]:{justifyContent:"flex-end"},[`${t}-pagination-right`]:{justifyContent:"flex-start"},[`${t}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${t}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${t}-row-indent`]:{float:"right"}}}}},wV=e=>{const{componentCls:t,antCls:n,iconCls:o,fontSizeIcon:r,padding:i,paddingXS:a,headerIconColor:l,headerIconHoverColor:c,tableSelectionColumnWidth:s,tableSelectedRowBg:u,tableSelectedRowHoverBg:d,tableRowHoverBg:p,tablePaddingHorizontal:f,calc:m}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:s,[`&${t}-selection-col-with-dropdown`]:{width:m(s).add(r).add(m(i).div(4)).equal()}},[`${t}-bordered ${t}-selection-col`]:{width:m(s).add(m(a).mul(2)).equal(),[`&${t}-selection-col-with-dropdown`]:{width:m(s).add(r).add(m(i).div(4)).add(m(a).mul(2)).equal()}},[`\n table tr th${t}-selection-column,\n table tr td${t}-selection-column,\n ${t}-selection-column\n `]:{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:nt(m(f).div(4).equal()),[o]:{color:l,fontSize:r,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:p}}}}}},SV=e=>{const{componentCls:t,tableExpandColumnWidth:n,calc:o}=e,r=(e,r,i,a)=>({[`${t}${t}-${e}`]:{fontSize:a,[`\n ${t}-title,\n ${t}-footer,\n ${t}-cell,\n ${t}-thead > tr > th,\n ${t}-tbody > tr > th,\n ${t}-tbody > tr > td,\n tfoot > tr > th,\n tfoot > tr > td\n `]:{padding:`${nt(r)} ${nt(i)}`},[`${t}-filter-trigger`]:{marginInlineEnd:nt(o(i).div(2).mul(-1).equal())},[`${t}-expanded-row-fixed`]:{margin:`${nt(o(r).mul(-1).equal())} ${nt(o(i).mul(-1).equal())}`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:nt(o(r).mul(-1).equal()),marginInline:`${nt(o(n).sub(i).equal())} ${nt(o(i).mul(-1).equal())}`}},[`${t}-selection-extra`]:{paddingInlineStart:nt(o(i).div(4).equal())}}});return{[`${t}-wrapper`]:Object.assign(Object.assign({},r("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle)),r("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall))}},kV=e=>{const{componentCls:t,marginXXS:n,fontSizeIcon:o,headerIconColor:r,headerIconHoverColor:i}=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},[`\n &${t}-cell-fix-left:hover,\n &${t}-cell-fix-right:hover\n `]:{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:r,fontSize:0,transition:`color ${e.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:o,"&.active":{color:e.colorPrimary}},[`${t}-column-sorter-up + ${t}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${t}-column-sorters:hover ${t}-column-sorter`]:{color:i}}}},EV=e=>{const{componentCls:t,opacityLoading:n,tableScrollThumbBg:o,tableScrollThumbBgHover:r,tableScrollThumbSize:i,tableScrollBg:a,zIndexTableSticky:l,stickyScrollBarBorderRadius:c,lineWidth:s,lineType:u,tableBorderColor:d}=e,p=`${nt(s)} ${u} ${d}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:l,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${nt(i)} !important`,zIndex:l,display:"flex",alignItems:"center",background:a,borderTop:p,opacity:n,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:i,backgroundColor:o,borderRadius:c,transition:`all ${e.motionDurationSlow}, transform 0s`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:r}}}}}}},OV=e=>{const{componentCls:t,lineWidth:n,tableBorderColor:o,calc:r}=e,i=`${nt(n)} ${e.lineType} ${o}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:i}}},[`div${t}-summary`]:{boxShadow:`0 ${nt(r(n).mul(-1).equal())} 0 ${o}`}}}},AV=e=>{const{componentCls:t,motionDurationMid:n,lineWidth:o,lineType:r,tableBorderColor:i,calc:a}=e,l=`${nt(o)} ${r} ${i}`,c=`${t}-expanded-row-cell`;return{[`${t}-wrapper`]:{[`${t}-tbody-virtual`]:{[`${t}-tbody-virtual-holder-inner`]:{[`\n & > ${t}-row, \n & > div:not(${t}-row) > ${t}-row\n `]:{display:"flex",boxSizing:"border-box",width:"100%"}},[`${t}-cell`]:{borderBottom:l,transition:`background ${n}`},[`${t}-expanded-row`]:{[`${c}${c}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${nt(o)})`,borderInlineEnd:"none"}}},[`${t}-bordered`]:{[`${t}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:l,position:"absolute"},[`${t}-cell`]:{borderInlineEnd:l,[`&${t}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:a(o).mul(-1).equal(),borderInlineStart:l}}},[`&${t}-virtual`]:{[`${t}-placeholder ${t}-cell`]:{borderInlineEnd:l,borderBottom:l}}}}}},IV=e=>{const{componentCls:t,fontWeightStrong:n,tablePaddingVertical:o,tablePaddingHorizontal:r,tableExpandColumnWidth:i,lineWidth:a,lineType:l,tableBorderColor:c,tableFontSize:s,tableBg:u,tableRadius:d,tableHeaderTextColor:p,motionDurationMid:f,tableHeaderBg:m,tableHeaderCellSplitColor:g,tableFooterTextColor:v,tableFooterBg:h,calc:b}=e,y=`${nt(a)} ${l} ${c}`;return{[`${t}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%","--rc-virtual-list-scrollbar-bg":e.tableScrollBg},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{[t]:Object.assign(Object.assign({},po(e)),{fontSize:s,background:u,borderRadius:`${nt(d)} ${nt(d)} 0 0`,scrollbarColor:`${e.tableScrollThumbBg} ${e.tableScrollBg}`}),table:{width:"100%",textAlign:"start",borderRadius:`${nt(d)} ${nt(d)} 0 0`,borderCollapse:"separate",borderSpacing:0},[`\n ${t}-cell,\n ${t}-thead > tr > th,\n ${t}-tbody > tr > th,\n ${t}-tbody > tr > td,\n tfoot > tr > th,\n tfoot > tr > td\n `]:{position:"relative",padding:`${nt(o)} ${nt(r)}`,overflowWrap:"break-word"},[`${t}-title`]:{padding:`${nt(o)} ${nt(r)}`},[`${t}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:p,fontWeight:n,textAlign:"start",background:m,borderBottom:y,transition:`background ${f} 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:g,transform:"translateY(-50%)",transition:`background-color ${f}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${t}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${f}, border-color ${f}`,borderBottom:y,[`\n > ${t}-wrapper:only-child,\n > ${t}-expanded-row-fixed > ${t}-wrapper:only-child\n `]:{[t]:{marginBlock:nt(b(o).mul(-1).equal()),marginInline:`${nt(b(i).sub(r).equal())}\n ${nt(b(r).mul(-1).equal())}`,[`${t}-tbody > tr:last-child > td`]:{borderBottomWidth:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:p,fontWeight:n,textAlign:"start",background:m,borderBottom:y,transition:`background ${f} ease`}}},[`${t}-footer`]:{padding:`${nt(o)} ${nt(r)}`,color:v,background:h}})}},NV=qo("Table",e=>{const{colorTextHeading:t,colorSplit:n,colorBgContainer:o,controlInteractiveSize:r,headerBg:i,headerColor:a,headerSortActiveBg:l,headerSortHoverBg:c,bodySortBg:s,rowHoverBg:u,rowSelectedBg:d,rowSelectedHoverBg:p,rowExpandedBg:f,cellPaddingBlock:m,cellPaddingInline:g,cellPaddingBlockMD:v,cellPaddingInlineMD:h,cellPaddingBlockSM:b,cellPaddingInlineSM:y,borderColor:C,footerBg:x,footerColor:$,headerBorderRadius:w,cellFontSize:S,cellFontSizeMD:k,cellFontSizeSM:E,headerSplitColor:O,fixedHeaderSortActiveBg:A,headerFilterHoverBg:I,filterDropdownBg:N,expandIconBg:M,selectionColumnWidth:j,stickyScrollBarBg:P,calc:R}=e,T=Jn(e,{tableFontSize:S,tableBg:o,tableRadius:w,tablePaddingVertical:m,tablePaddingHorizontal:g,tablePaddingVerticalMiddle:v,tablePaddingHorizontalMiddle:h,tablePaddingVerticalSmall:b,tablePaddingHorizontalSmall:y,tableBorderColor:C,tableHeaderTextColor:a,tableHeaderBg:i,tableFooterTextColor:$,tableFooterBg:x,tableHeaderCellSplitColor:O,tableHeaderSortBg:l,tableHeaderSortHoverBg:c,tableBodySortBg:s,tableFixedHeaderSortActiveBg:A,tableHeaderFilterActiveBg:I,tableFilterDropdownBg:N,tableRowHoverBg:u,tableSelectedRowBg:d,tableSelectedRowHoverBg:p,zIndexTableFixed:2,zIndexTableSticky:R(2).add(1).equal({unit:!1}),tableFontSizeMiddle:k,tableFontSizeSmall:E,tableSelectionColumnWidth:j,tableExpandIconBg:M,tableExpandColumnWidth:R(r).add(R(e.padding).mul(2)).equal(),tableExpandedRowBg:f,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:P,tableScrollThumbBgHover:t,tableScrollBg:n});return[IV(T),CV(T),OV(T),kV(T),bV(T),mV(T),xV(T),hV(T),OV(T),vV(T),wV(T),yV(T),EV(T),gV(T),SV(T),$V(T),AV(T)]},e=>{const{colorFillAlter:t,colorBgContainer:n,colorTextHeading:o,colorFillSecondary:r,colorFillContent:i,controlItemBgActive:a,controlItemBgActiveHover:l,padding:c,paddingSM:s,paddingXS:u,colorBorderSecondary:d,borderRadiusLG:p,controlHeight:f,colorTextPlaceholder:m,fontSize:g,fontSizeSM:v,lineHeight:h,lineWidth:b,colorIcon:y,colorIconHover:C,opacityLoading:x,controlInteractiveSize:$}=e,w=new wo.Y(r).onBackground(n).toHexString(),S=new wo.Y(i).onBackground(n).toHexString(),k=new wo.Y(t).onBackground(n).toHexString(),E=new wo.Y(y),O=new wo.Y(C),A=$/2-b,I=2*A+3*b;return{headerBg:k,headerColor:o,headerSortActiveBg:w,headerSortHoverBg:S,bodySortBg:k,rowHoverBg:k,rowSelectedBg:a,rowSelectedHoverBg:l,rowExpandedBg:t,cellPaddingBlock:c,cellPaddingInline:c,cellPaddingBlockMD:s,cellPaddingInlineMD:u,cellPaddingBlockSM:u,cellPaddingInlineSM:u,borderColor:d,headerBorderRadius:p,footerBg:k,footerColor:o,cellFontSize:g,cellFontSizeMD:g,cellFontSizeSM:g,headerSplitColor:d,fixedHeaderSortActiveBg:w,headerFilterHoverBg:i,filterDropdownMenuBg:n,filterDropdownBg:n,expandIconBg:n,selectionColumnWidth:f,stickyScrollBarBg:m,stickyScrollBarBorderRadius:100,expandIconMarginTop:(g*h-3*b)/2-Math.ceil((1.4*v-3*b)/2),headerIconColor:E.clone().setA(E.a*x).toRgbString(),headerIconHoverColor:O.clone().setA(O.a*x).toRgbString(),expandIconHalfInner:A,expandIconSize:I,expandIconScale:$/I}},{unitless:{expandIconScale:!0}}),MV=[],jV=o.forwardRef((e,t)=>{var n,r;const{prefixCls:i,className:l,rootClassName:c,style:s,size:u,bordered:d,dropdownPrefixCls:p,dataSource:f,pagination:m,rowSelection:g,rowKey:v="key",rowClassName:h,columns:b,children:y,childrenColumnName:C,onChange:x,getPopupContainer:$,loading:w,expandIcon:S,expandable:k,expandedRowRender:E,expandIconColumnIndex:O,indentSize:A,scroll:I,sortDirections:N,locale:M,showSorterTooltip:j={target:"full-header"},virtual:P}=e;qi("Table");const R=o.useMemo(()=>b||E_(y),[b,y]),T=o.useMemo(()=>R.some(e=>e.responsive),[R]),z=Pb(T),B=o.useMemo(()=>{const e=new Set(Object.keys(z).filter(e=>z[e]));return R.filter(t=>!t.responsive||t.responsive.some(t=>e.has(t)))},[R,z]),H=Ul(e,["className","style","columns"]),{locale:D=Ba,direction:L,table:F,renderEmpty:W,getPrefixCls:_,getPopupContainer:K}=o.useContext(xe),q=lc(u),V=Object.assign(Object.assign({},D.Table),M),X=f||MV,G=_("table",i),Y=_("dropdown",p),[,U]=Ko(),Q=Mi(G),[Z,J,ee]=NV(G,Q),te=Object.assign(Object.assign({childrenColumnName:C,expandIconColumnIndex:O},k),{expandIcon:null!==(n=null===k||void 0===k?void 0:k.expandIcon)&&void 0!==n?n:null===(r=null===F||void 0===F?void 0:F.expandable)||void 0===r?void 0:r.expandIcon}),{childrenColumnName:ne="children"}=te,oe=o.useMemo(()=>X.some(e=>null===e||void 0===e?void 0:e[ne])?"nest":E||(null===k||void 0===k?void 0:k.expandedRowRender)?"row":null,[X]),re={body:o.useRef(null)},ie=function(e){return(t,n)=>{const o=t.querySelector(`.${e}-container`);let r=n;if(o){const e=getComputedStyle(o);r=n-parseInt(e.borderLeftWidth,10)-parseInt(e.borderRightWidth,10)}return r}}(G),ae=o.useRef(null),le=o.useRef(null);NK(t,()=>Object.assign(Object.assign({},le.current),{nativeElement:ae.current}));const ce=o.useMemo(()=>"function"===typeof v?v:e=>null===e||void 0===e?void 0:e[v],[v]),[se]=Vq(X,ne,ce),ue={},de=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];var o,r,i,a;const l=Object.assign(Object.assign({},ue),e);n&&(null===(o=ue.resetPagination)||void 0===o||o.call(ue),(null===(r=l.pagination)||void 0===r?void 0:r.current)&&(l.pagination.current=1),m&&(null===(i=m.onChange)||void 0===i||i.call(m,1,null===(a=l.pagination)||void 0===a?void 0:a.pageSize))),I&&!1!==I.scrollToFirstRowOnChange&&re.body.current&&Ni(0,{getContainer:()=>re.body.current}),null===x||void 0===x||x(l.pagination,l.filters,l.sorter,{currentDataSource:_q(aV(X,l.sorterStates,ne),l.filterStates,ne),action:t})},[pe,fe,me,ge]=lV({prefixCls:G,mergedColumns:B,onSorterChange:(e,t)=>{de({sorter:e,sorterStates:t},"sort",!1)},sortDirections:N||["ascend","descend"],tableLocale:V,showSorterTooltip:j}),ve=o.useMemo(()=>aV(X,fe,ne),[X,fe]);ue.sorter=ge(),ue.sorterStates=fe;const[he,be,ye]=qq({prefixCls:G,locale:V,dropdownPrefixCls:Y,mergedColumns:B,onFilterChange:(e,t)=>{de({filters:e,filterStates:t},"filter",!0)},getPopupContainer:$||K,rootClassName:a()(c,Q)}),Ce=_q(ve,be,ne);ue.filters=ye,ue.filterStates=be;const $e=o.useMemo(()=>{const e={};return Object.keys(ye).forEach(t=>{null!==ye[t]&&(e[t]=ye[t])}),Object.assign(Object.assign({},me),{filters:e})},[me,ye]),[we]=sV($e),[Se,ke]=Yq(Ce.length,(e,t)=>{de({pagination:Object.assign(Object.assign({},ue.pagination),{current:e,pageSize:t})},"paginate")},m);ue.pagination=!1===m?{}:function(e,t){const n={current:e.current,pageSize:e.pageSize},o=t&&"object"===typeof t?t:{};return Object.keys(o).forEach(t=>{const o=e[t];"function"!==typeof o&&(n[t]=o)}),n}(Se,m),ue.resetPagination=ke;const Ee=o.useMemo(()=>{if(!1===m||!Se.pageSize)return Ce;const{current:e=1,total:t,pageSize:n=Gq}=Se;return Ce.length<t?Ce.length>n?Ce.slice((e-1)*n,e*n):Ce:Ce.slice((e-1)*n,e*n)},[!!m,Ce,null===Se||void 0===Se?void 0:Se.current,null===Se||void 0===Se?void 0:Se.pageSize,null===Se||void 0===Se?void 0:Se.total]),[Oe,Ae]=IK({prefixCls:G,data:Ce,pageData:Ee,getRowKey:ce,getRecordByKey:se,expandType:oe,childrenColumnName:ne,locale:V,getPopupContainer:$||K},g);te.__PARENT_RENDER_ICON__=te.expandIcon,te.expandIcon=te.expandIcon||S||MK(V),"nest"===oe&&void 0===te.expandIconColumnIndex?te.expandIconColumnIndex=g?1:0:te.expandIconColumnIndex>0&&g&&(te.expandIconColumnIndex-=1),"number"!==typeof te.indentSize&&(te.indentSize="number"===typeof A?A:15);const Ie=o.useCallback(e=>we(Oe(he(pe(e)))),[pe,he,Oe]);let Ne,Me,je;if(!1!==m&&(null===Se||void 0===Se?void 0:Se.total)){let e;e=Se.size?Se.size:"small"===q||"middle"===q?"small":void 0;const t=t=>o.createElement(yH,Object.assign({},Se,{className:a()(`${G}-pagination ${G}-pagination-${t}`,Se.className),size:e})),n="rtl"===L?"left":"right",{position:r}=Se;if(null!==r&&Array.isArray(r)){const e=r.find(e=>e.includes("top")),o=r.find(e=>e.includes("bottom")),i=r.every(e=>"none"===`${e}`);e||o||i||(Me=t(n)),e&&(Ne=t(e.toLowerCase().replace("top",""))),o&&(Me=t(o.toLowerCase().replace("bottom","")))}else Me=t(n)}"boolean"===typeof w?je={spinning:w}:"object"===typeof w&&(je=Object.assign({spinning:!0},w));const Pe=a()(ee,Q,`${G}-wrapper`,null===F||void 0===F?void 0:F.className,{[`${G}-wrapper-rtl`]:"rtl"===L},l,c,J),Re=Object.assign(Object.assign({},null===F||void 0===F?void 0:F.style),s),Te="undefined"!==typeof(null===M||void 0===M?void 0:M.emptyText)?M.emptyText:(null===W||void 0===W?void 0:W("Table"))||o.createElement(bh,{componentName:"Table"}),ze=P?fV:dV,Be={},He=o.useMemo(()=>{const{fontSize:e,lineHeight:t,lineWidth:n,padding:o,paddingXS:r,paddingSM:i}=U,a=Math.floor(e*t);switch(q){case"middle":return 2*i+a+n;case"small":return 2*r+a+n;default:return 2*o+a+n}},[U,q]);return P&&(Be.listItemHeight=He),Z(o.createElement("div",{ref:ae,className:Pe,style:Re},o.createElement(PH,Object.assign({spinning:!1},je),Ne,o.createElement(ze,Object.assign({},Be,H,{ref:le,columns:B,direction:L,expandable:te,prefixCls:G,className:a()({[`${G}-middle`]:"middle"===q,[`${G}-small`]:"small"===q,[`${G}-bordered`]:d,[`${G}-empty`]:0===X.length},ee,Q,J),data:Ee,rowKey:ce,rowClassName:(e,t,n)=>{let o;return o="function"===typeof h?a()(h(e,t,n)):a()(h),a()({[`${G}-row-selected`]:Ae.has(ce(e,t))},o)},emptyText:Te,internalHooks:PW,internalRefs:re,transformColumns:Ie,getContainerWidth:ie})),Me)))}),PV=o.forwardRef((e,t)=>{const n=o.useRef(0);return n.current+=1,o.createElement(jV,Object.assign({},e,{ref:t,_renderTimes:n.current}))});PV.SELECTION_COLUMN=wK,PV.EXPAND_COLUMN=jW,PV.SELECTION_ALL=SK,PV.SELECTION_INVERT=kK,PV.SELECTION_NONE=EK,PV.Column=oK,PV.ColumnGroup=rK,PV.Summary=e_;const RV=PV,TV=e=>{const{lineWidth:t,fontSizeIcon:n,calc:o}=e,r=e.fontSizeSM;return Jn(e,{tagFontSize:r,tagLineHeight:nt(o(e.lineHeightSM).mul(r).equal()),tagIconSize:o(n).sub(o(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},zV=e=>({defaultBg:new wo.Y(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),BV=qo("Tag",e=>(e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:o,componentCls:r,calc:i}=e,a=i(o).sub(n).equal(),l=i(t).sub(n).equal();return{[r]:Object.assign(Object.assign({},po(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:a,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${nt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${r}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${r}-close-icon`]:{marginInlineStart:l,fontSize:e.tagIconSize,color:e.colorIcon,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${r}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${r}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:a}}),[`${r}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}})(TV(e)),zV);var HV=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const DV=o.forwardRef((e,t)=>{const{prefixCls:n,style:r,className:i,checked:l,onChange:c,onClick:s}=e,u=HV(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:d,tag:p}=o.useContext(xe),f=d("tag",n),[m,g,v]=BV(f),h=a()(f,`${f}-checkable`,{[`${f}-checkable-checked`]:l},null===p||void 0===p?void 0:p.className,i,g,v);return m(o.createElement("span",Object.assign({},u,{ref:t,style:Object.assign(Object.assign({},r),null===p||void 0===p?void 0:p.style),className:h,onClick:e=>{null===c||void 0===c||c(!l),null===s||void 0===s||s(e)}})))}),LV=DV,FV=Xo(["Tag","preset"],e=>(e=>iy(e,(t,n)=>{let{textColor:o,lightBorderColor:r,lightColor:i,darkColor:a}=n;return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:o,background:i,borderColor:r,"&-inverse":{color:e.colorTextLightSolid,background:a,borderColor:a},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}}))(TV(e)),zV);const WV=(e,t,n)=>{const o="string"!==typeof(r=n)?r:r.charAt(0).toUpperCase()+r.slice(1);var r;return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${o}Bg`],borderColor:e[`color${o}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}},_V=Xo(["Tag","status"],e=>{const t=TV(e);return[WV(t,"success","Success"),WV(t,"processing","Info"),WV(t,"error","Error"),WV(t,"warning","Warning")]},zV);var KV=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const qV=o.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:i,style:l,children:c,icon:s,color:u,onClose:d,bordered:p=!0,visible:f}=e,m=KV(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:g,direction:v,tag:h}=o.useContext(xe),[b,y]=o.useState(!0),C=Ul(m,["closeIcon","closable"]);o.useEffect(()=>{void 0!==f&&y(f)},[f]);const x=dy(u),$=function(e){return uy.includes(e)}(u),w=x||$,S=Object.assign(Object.assign({backgroundColor:u&&!w?u:void 0},null===h||void 0===h?void 0:h.style),l),k=g("tag",n),[E,O,A]=BV(k),I=a()(k,null===h||void 0===h?void 0:h.className,{[`${k}-${u}`]:w,[`${k}-has-color`]:u&&!w,[`${k}-hidden`]:!b,[`${k}-rtl`]:"rtl"===v,[`${k}-borderless`]:!p},r,i,O,A),N=e=>{e.stopPropagation(),null===d||void 0===d||d(e),e.defaultPrevented||y(!1)},[,M]=Rp(Mp(e),Mp(h),{closable:!1,closeIconRender:e=>{const t=o.createElement("span",{className:`${k}-close-icon`,onClick:N},e);return ri(e,t,e=>({onClick:t=>{var n;null===(n=null===e||void 0===e?void 0:e.onClick)||void 0===n||n.call(e,t),N(t)},className:a()(null===e||void 0===e?void 0:e.className,`${k}-close-icon`)}))}}),j="function"===typeof m.onClick||c&&"a"===c.type,P=s||null,R=P?o.createElement(o.Fragment,null,P,c&&o.createElement("span",null,c)):c,T=o.createElement("span",Object.assign({},C,{ref:t,className:I,style:S}),R,M,x&&o.createElement(FV,{key:"preset",prefixCls:k}),$&&o.createElement(_V,{key:"status",prefixCls:k}));return E(j?o.createElement(ac,{component:"Tag"},T):T)}),VV=qV;VV.CheckableTag=LV;const XV=VV,GV=e=>{const t=(null===e||void 0===e?void 0:e.algorithm)?Ye(e.algorithm):Ro,n=Object.assign(Object.assign({},yo),null===e||void 0===e?void 0:e.token);return yt(n,{override:null===e||void 0===e?void 0:e.token},t,Ho)};const YV=(e,t)=>{const n=null!==t&&void 0!==t?t:Po(e),o=n.fontSizeSM,r=n.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n),function(e){const{sizeUnit:t,sizeStep:n}=e,o=n-2;return{sizeXXL:t*(o+10),sizeXL:t*(o+6),sizeLG:t*(o+2),sizeMD:t*(o+2),sizeMS:t*(o+1),size:t*o,sizeSM:t*o,sizeXS:t*(o-1),sizeXXS:t*(o-1)}}(null!==t&&void 0!==t?t:e)),Ao(o)),{controlHeight:r}),Eo(Object.assign(Object.assign({},n),{controlHeight:r})))},UV=(e,t)=>new wo.Y(e).setA(t).toRgbString(),QV=(e,t)=>new wo.Y(e).lighten(t).toHexString(),ZV=e=>{const t=(0,$o.cM)(e,{theme:"dark"});return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[6],6:t[5],7:t[4],8:t[6],9:t[5],10:t[4]}},JV=(e,t)=>{const n=e||"#000",o=t||"#fff";return{colorBgBase:n,colorTextBase:o,colorText:UV(o,.85),colorTextSecondary:UV(o,.65),colorTextTertiary:UV(o,.45),colorTextQuaternary:UV(o,.25),colorFill:UV(o,.18),colorFillSecondary:UV(o,.12),colorFillTertiary:UV(o,.08),colorFillQuaternary:UV(o,.04),colorBgSolid:UV(o,.95),colorBgSolidHover:UV(o,1),colorBgSolidActive:UV(o,.9),colorBgElevated:QV(n,12),colorBgContainer:QV(n,8),colorBgLayout:QV(n,0),colorBgSpotlight:QV(n,26),colorBgBlur:UV(o,.04),colorBorder:QV(n,26),colorBorderSecondary:QV(n,19)}},eX=(e,t)=>{const n=Object.keys(bo).map(t=>{const n=(0,$o.cM)(e[t],{theme:"dark"});return Array.from({length:10},()=>1).reduce((e,o,r)=>(e[`${t}-${r+1}`]=n[r],e[`${t}${r+1}`]=n[r],e),{})}).reduce((e,t)=>e=Object.assign(Object.assign({},e),t),{}),o=null!==t&&void 0!==t?t:Po(e),r=So(e,{generateColorPalettes:ZV,generateNeutralColorPalettes:JV});return Object.assign(Object.assign(Object.assign(Object.assign({},o),n),r),{colorPrimaryBg:r.colorPrimaryBorder,colorPrimaryBgHover:r.colorPrimaryBorderHover})};const tX={defaultSeed:Co.token,useToken:function(){const[e,t,n]=Ko();return{theme:e,token:t,hashId:n}},defaultAlgorithm:Po,darkAlgorithm:eX,compactAlgorithm:YV,getDesignToken:GV,defaultConfig:Co,_internalContext:xo};var nX=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const{TimePicker:oX,RangePicker:rX}=BP,iX=o.forwardRef((e,t)=>o.createElement(rX,Object.assign({},e,{picker:"time",mode:void 0,ref:t}))),aX=o.forwardRef((e,t)=>{var{addon:n,renderExtraFooter:r,variant:i,bordered:a}=e,l=nX(e,["addon","renderExtraFooter","variant","bordered"]);const[c]=yh("timePicker",i,a),s=o.useMemo(()=>r||(n||void 0),[n,r]);return o.createElement(oX,Object.assign({},l,{mode:void 0,ref:t,renderExtraFooter:s,variant:c}))});const lX=Qm(aX,"popupAlign",void 0,"picker");aX._InternalPanelDoNotUseOrYouWillBeFired=lX,aX.RangePicker=iX,aX._InternalPanelDoNotUseOrYouWillBeFired=lX;const cX=aX,sX=e=>{const{componentCls:t,calc:n}=e;return{[t]:Object.assign(Object.assign({},po(e)),{margin:0,padding:0,listStyle:"none",[`${t}-item`]:{position:"relative",margin:0,paddingBottom:e.itemPaddingBottom,fontSize:e.fontSize,listStyle:"none","&-tail":{position:"absolute",insetBlockStart:e.itemHeadSize,insetInlineStart:n(n(e.itemHeadSize).sub(e.tailWidth)).div(2).equal(),height:`calc(100% - ${nt(e.itemHeadSize)})`,borderInlineStart:`${nt(e.tailWidth)} ${e.lineType} ${e.tailColor}`},"&-pending":{[`${t}-item-head`]:{fontSize:e.fontSizeSM,backgroundColor:"transparent"},[`${t}-item-tail`]:{display:"none"}},"&-head":{position:"absolute",width:e.itemHeadSize,height:e.itemHeadSize,backgroundColor:e.dotBg,border:`${nt(e.dotBorderWidth)} ${e.lineType} transparent`,borderRadius:"50%","&-blue":{color:e.colorPrimary,borderColor:e.colorPrimary},"&-red":{color:e.colorError,borderColor:e.colorError},"&-green":{color:e.colorSuccess,borderColor:e.colorSuccess},"&-gray":{color:e.colorTextDisabled,borderColor:e.colorTextDisabled}},"&-head-custom":{position:"absolute",insetBlockStart:n(e.itemHeadSize).div(2).equal(),insetInlineStart:n(e.itemHeadSize).div(2).equal(),width:"auto",height:"auto",marginBlockStart:0,paddingBlock:e.customHeadPaddingVertical,lineHeight:1,textAlign:"center",border:0,borderRadius:0,transform:"translate(-50%, -50%)"},"&-content":{position:"relative",insetBlockStart:n(n(e.fontSize).mul(e.lineHeight).sub(e.fontSize)).mul(-1).add(e.lineWidth).equal(),marginInlineStart:n(e.margin).add(e.itemHeadSize).equal(),marginInlineEnd:0,marginBlockStart:0,marginBlockEnd:0,wordBreak:"break-word"},"&-last":{[`> ${t}-item-tail`]:{display:"none"},[`> ${t}-item-content`]:{minHeight:n(e.controlHeightLG).mul(1.2).equal()}}},[`&${t}-alternate,\n &${t}-right,\n &${t}-label`]:{[`${t}-item`]:{"&-tail, &-head, &-head-custom":{insetInlineStart:"50%"},"&-head":{marginInlineStart:n(e.marginXXS).mul(-1).equal(),"&-custom":{marginInlineStart:n(e.tailWidth).div(2).equal()}},"&-left":{[`${t}-item-content`]:{insetInlineStart:`calc(50% - ${nt(e.marginXXS)})`,width:`calc(50% - ${nt(e.marginSM)})`,textAlign:"start"}},"&-right":{[`${t}-item-content`]:{width:`calc(50% - ${nt(e.marginSM)})`,margin:0,textAlign:"end"}}}},[`&${t}-right`]:{[`${t}-item-right`]:{[`${t}-item-tail,\n ${t}-item-head,\n ${t}-item-head-custom`]:{insetInlineStart:`calc(100% - ${nt(n(n(e.itemHeadSize).add(e.tailWidth)).div(2).equal())})`},[`${t}-item-content`]:{width:`calc(100% - ${nt(n(e.itemHeadSize).add(e.marginXS).equal())})`}}},[`&${t}-pending\n ${t}-item-last\n ${t}-item-tail`]:{display:"block",height:`calc(100% - ${nt(e.margin)})`,borderInlineStart:`${nt(e.tailWidth)} dotted ${e.tailColor}`},[`&${t}-reverse\n ${t}-item-last\n ${t}-item-tail`]:{display:"none"},[`&${t}-reverse ${t}-item-pending`]:{[`${t}-item-tail`]:{insetBlockStart:e.margin,display:"block",height:`calc(100% - ${nt(e.margin)})`,borderInlineStart:`${nt(e.tailWidth)} dotted ${e.tailColor}`},[`${t}-item-content`]:{minHeight:n(e.controlHeightLG).mul(1.2).equal()}},[`&${t}-label`]:{[`${t}-item-label`]:{position:"absolute",insetBlockStart:n(n(e.fontSize).mul(e.lineHeight).sub(e.fontSize)).mul(-1).add(e.tailWidth).equal(),width:`calc(50% - ${nt(e.marginSM)})`,textAlign:"end"},[`${t}-item-right`]:{[`${t}-item-label`]:{insetInlineStart:`calc(50% + ${nt(e.marginSM)})`,width:`calc(50% - ${nt(e.marginSM)})`,textAlign:"start"}}},"&-rtl":{direction:"rtl",[`${t}-item-head-custom`]:{transform:"translate(50%, -50%)"}}})}},uX=qo("Timeline",e=>{const t=Jn(e,{itemHeadSize:10,customHeadPaddingVertical:e.paddingXXS,paddingInlineEnd:2});return[sX(t)]},e=>({tailColor:e.colorSplit,tailWidth:e.lineWidthBold,dotBorderWidth:e.wireframe?e.lineWidthBold:3*e.lineWidth,dotBg:e.colorBgContainer,itemPaddingBottom:1.25*e.padding}));var dX=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const pX=e=>{var{prefixCls:t,className:n,color:r="blue",dot:i,pending:l=!1,position:c,label:s,children:u}=e,d=dX(e,["prefixCls","className","color","dot","pending","position","label","children"]);const{getPrefixCls:p}=o.useContext(xe),f=p("timeline",t),m=a()(`${f}-item`,{[`${f}-item-pending`]:l},n),g=/blue|red|green|gray/.test(r||"")?void 0:r,v=a()(`${f}-item-head`,{[`${f}-item-head-custom`]:!!i,[`${f}-item-head-${r}`]:!g});return o.createElement("li",Object.assign({},d,{className:m}),s&&o.createElement("div",{className:`${f}-item-label`},s),o.createElement("div",{className:`${f}-item-tail`}),o.createElement("div",{className:v,style:{borderColor:g,color:g}},i),o.createElement("div",{className:`${f}-item-content`},u))};var fX=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const mX=e=>{var{prefixCls:t,className:n,pending:r=!1,children:i,items:l,rootClassName:c,reverse:s=!1,direction:u,hashId:d,pendingDot:p,mode:f=""}=e,m=fX(e,["prefixCls","className","pending","children","items","rootClassName","reverse","direction","hashId","pendingDot","mode"]);const g=(e,n)=>"alternate"===f?"right"===e?`${t}-item-right`:"left"===e||n%2===0?`${t}-item-left`:`${t}-item-right`:"left"===f?`${t}-item-left`:"right"===f||"right"===e?`${t}-item-right`:"",v=se(l||[]),h="boolean"===typeof r?null:r;r&&v.push({pending:!!r,dot:p||o.createElement(la.A,null),children:h}),s&&v.reverse();const b=v.length,y=`${t}-item-last`,C=v.filter(e=>!!e).map((e,t)=>{var n;const i=t===b-2?y:"",l=t===b-1?y:"",{className:c}=e,u=fX(e,["className"]);return o.createElement(pX,Object.assign({},u,{className:a()([c,!s&&r?i:l,g(null!==(n=null===e||void 0===e?void 0:e.position)&&void 0!==n?n:"",t)]),key:(null===e||void 0===e?void 0:e.key)||t}))}),x=v.some(e=>!!(null===e||void 0===e?void 0:e.label)),$=a()(t,{[`${t}-pending`]:!!r,[`${t}-reverse`]:!!s,[`${t}-${f}`]:!!f&&!x,[`${t}-label`]:x,[`${t}-rtl`]:"rtl"===u},n,c,d);return o.createElement("ol",Object.assign({},m,{className:$}),C)};const gX=function(e,t){return e&&Array.isArray(e)?e:s(t).map(e=>{var t,n;return Object.assign({children:null!==(n=null===(t=null===e||void 0===e?void 0:e.props)||void 0===t?void 0:t.children)&&void 0!==n?n:""},e.props)})};var vX=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const hX=e=>{const{getPrefixCls:t,direction:n,timeline:r}=o.useContext(xe),{prefixCls:i,children:l,items:c,className:s,style:u}=e,d=vX(e,["prefixCls","children","items","className","style"]),p=t("timeline",i);const f=Mi(p),[m,g,v]=uX(p,f),h=gX(c,l);return m(o.createElement(mX,Object.assign({},d,{className:a()(null===r||void 0===r?void 0:r.className,s,v,f),style:Object.assign(Object.assign({},null===r||void 0===r?void 0:r.style),u),prefixCls:p,direction:n,items:h,hashId:g})))};hX.Item=pX;const bX=hX;function yX(e){return null!==e&&"object"===(0,p.A)(e)}function CX(e,t,n){if(!1===e||!1===t&&(!yX(e)||!e.closeIcon))return null;var o,r="boolean"!==typeof t?t:void 0;return yX(e)?(0,d.A)((0,d.A)({},e),{},{closeIcon:null!==(o=e.closeIcon)&&void 0!==o?o:r}):n||e||t?{closeIcon:r}:"empty"}function xX(e,t,n,r){var i=(0,o.useState)(void 0),a=(0,ke.A)(i,2),l=a[0],c=a[1];ut(function(){var t="function"===typeof e?e():e;c(t||null)});var s=(0,o.useState)(null),u=(0,ke.A)(s,2),d=u[0],p=u[1],f=Bn(function(){if(l){!function(e){var t=window.innerWidth||document.documentElement.clientWidth,n=window.innerHeight||document.documentElement.clientHeight,o=e.getBoundingClientRect(),r=o.top,i=o.right,a=o.bottom,l=o.left;return r>=0&&l>=0&&i<=t&&a<=n}(l)&&t&&l.scrollIntoView(r);var e=l.getBoundingClientRect(),n={left:e.left,top:e.top,width:e.width,height:e.height,radius:0};p(function(e){return JSON.stringify(e)!==JSON.stringify(n)?n:e})}else p(null)}),m=function(e){var t;return null!==(t=Array.isArray(null===n||void 0===n?void 0:n.offset)?null===n||void 0===n?void 0:n.offset[e]:null===n||void 0===n?void 0:n.offset)&&void 0!==t?t:6};return ut(function(){return f(),window.addEventListener("resize",f),function(){window.removeEventListener("resize",f)}},[l,t,f]),[(0,o.useMemo)(function(){if(!d)return d;var e,t=m(0),o=m(1),r="number"!==typeof(e=null===n||void 0===n?void 0:n.radius)||Number.isNaN(e)?2:null===n||void 0===n?void 0:n.radius;return{left:d.left-t,top:d.top-o,width:d.width+2*t,height:d.height+2*o,radius:r}},[d,n]),l]}var $X={fill:"transparent",pointerEvents:"auto"};const wX=function(e){var t=e.prefixCls,n=e.rootClassName,o=e.pos,i=e.showMask,c=e.style,s=void 0===c?{}:c,u=e.fill,f=void 0===u?"rgba(0,0,0,0.5)":u,m=e.open,g=e.animated,v=e.zIndex,h=e.disabledInteraction,b=Gu(),y="".concat(t,"-mask-").concat(b),C="object"===(0,p.A)(g)?null===g||void 0===g?void 0:g.placeholder:g,x="undefined"!==typeof navigator&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent)?{width:"100%",height:"100%"}:{width:"100vw",height:"100vh"};return r().createElement(_u,{open:m,autoLock:!0},r().createElement("div",{className:a()("".concat(t,"-mask"),n),style:(0,d.A)({position:"fixed",left:0,right:0,top:0,bottom:0,zIndex:v,pointerEvents:o&&!h?"none":"auto"},s)},i?r().createElement("svg",{style:{width:"100%",height:"100%"}},r().createElement("defs",null,r().createElement("mask",{id:y},r().createElement("rect",(0,l.A)({x:"0",y:"0"},x,{fill:"white"})),o&&r().createElement("rect",{x:o.left,y:o.top,rx:o.radius,width:o.width,height:o.height,fill:"black",className:C?"".concat(t,"-placeholder-animated"):""}))),r().createElement("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:f,mask:"url(#".concat(y,")")}),o&&r().createElement(r().Fragment,null,r().createElement("rect",(0,l.A)({},$X,{x:"0",y:"0",width:"100%",height:o.top})),r().createElement("rect",(0,l.A)({},$X,{x:"0",y:"0",width:o.left,height:"100%"})),r().createElement("rect",(0,l.A)({},$X,{x:"0",y:o.top+o.height,width:"100%",height:"calc(100vh - ".concat(o.top+o.height,"px)")})),r().createElement("rect",(0,l.A)({},$X,{x:o.left+o.width,y:"0",width:"calc(100vw - ".concat(o.left+o.width,"px)"),height:"100%"})))):null))};var SX=[0,0],kX={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 EX(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t={};return Object.keys(kX).forEach(function(n){t[n]=(0,d.A)((0,d.A)({},kX[n]),{},{autoArrow:e,targetOffset:SX})}),t}EX();function OX(e){var t,n=e.prefixCls,r=e.current,i=e.total,c=e.title,s=e.description,u=e.onClose,d=e.onPrev,p=e.onNext,f=e.onFinish,m=e.className,g=e.closable,v=ni(g||{},!0),h=null!==(t=null===g||void 0===g?void 0:g.closeIcon)&&void 0!==t?t:o.createElement("span",{className:"".concat(n,"-close-x")},"\xd7"),b=!!g;return o.createElement("div",{className:a()("".concat(n,"-content"),m)},o.createElement("div",{className:"".concat(n,"-inner")},b&&o.createElement("button",(0,l.A)({type:"button",onClick:u,"aria-label":"Close"},v,{className:"".concat(n,"-close")}),h),o.createElement("div",{className:"".concat(n,"-header")},o.createElement("div",{className:"".concat(n,"-title")},c)),o.createElement("div",{className:"".concat(n,"-description")},s),o.createElement("div",{className:"".concat(n,"-footer")},o.createElement("div",{className:"".concat(n,"-sliders")},i>1?se(Array.from({length:i}).keys()).map(function(e,t){return o.createElement("span",{key:e,className:t===r?"active":""})}):null),o.createElement("div",{className:"".concat(n,"-buttons")},0!==r?o.createElement("button",{className:"".concat(n,"-prev-btn"),onClick:d},"Prev"):null,r===i-1?o.createElement("button",{className:"".concat(n,"-finish-btn"),onClick:f},"Finish"):o.createElement("button",{className:"".concat(n,"-next-btn"),onClick:p},"Next")))))}const AX=function(e){var t=e.current,n=e.renderPanel;return o.createElement(o.Fragment,null,"function"===typeof n?n(e,t):o.createElement(OX,e))};var IX=["prefixCls","steps","defaultCurrent","current","onChange","onClose","onFinish","open","mask","arrow","rootClassName","placement","renderPanel","gap","animated","scrollIntoViewOptions","zIndex","closeIcon","closable","builtinPlacements","disabledInteraction"],NX={left:"50%",top:"50%",width:1,height:1},MX={block:"center",inline:"center"};const jX=function(e){var t=e.prefixCls,n=void 0===t?"rc-tour":t,r=e.steps,i=void 0===r?[]:r,c=e.defaultCurrent,s=e.current,u=e.onChange,f=e.onClose,m=e.onFinish,g=e.open,v=e.mask,h=void 0===v||v,b=e.arrow,y=void 0===b||b,C=e.rootClassName,x=e.placement,$=e.renderPanel,w=e.gap,S=e.animated,k=e.scrollIntoViewOptions,E=void 0===k?MX:k,O=e.zIndex,A=void 0===O?1001:O,I=e.closeIcon,N=e.closable,M=e.builtinPlacements,j=e.disabledInteraction,P=(0,cr.A)(e,IX),R=o.useRef(),T=Ln(0,{value:s,defaultValue:c}),z=(0,ke.A)(T,2),B=z[0],H=z[1],D=Ln(void 0,{value:g,postState:function(e){return!(B<0||B>=i.length)&&(null===e||void 0===e||e)}}),L=(0,ke.A)(D,2),F=L[0],W=L[1],_=o.useState(F),K=(0,ke.A)(_,2),q=K[0],V=K[1],X=o.useRef(F);ut(function(){F&&(X.current||H(0),V(!0)),X.current=F},[F]);var G=i[B]||{},Y=G.target,U=G.placement,Q=G.style,Z=G.arrow,J=G.className,ee=G.mask,te=G.scrollIntoViewOptions,ne=void 0===te?MX:te,oe=G.closeIcon,re=function(e,t,n,r){return o.useMemo(function(){var o=CX(e,t,!1),i=CX(n,r,!0);return"empty"!==o?o:i},[n,r,e,t])}(G.closable,oe,N,I),ie=F&&(null!==ee&&void 0!==ee?ee:h),ae=xX(Y,g,w,null!==ne&&void 0!==ne?ne:E),le=(0,ke.A)(ae,2),ce=le[0],se=le[1],ue=function(e,t,n){var o;return null!==(o=null!==n&&void 0!==n?n:t)&&void 0!==o?o:null===e?"center":"bottom"}(se,x,U),de=!!se&&("undefined"===typeof Z?y:Z),pe="object"===(0,p.A)(de)&&de.pointAtCenter;ut(function(){var e;null===(e=R.current)||void 0===e||e.forceAlign()},[pe,B]);var fe=function(e){H(e),null===u||void 0===u||u(e)},me=(0,o.useMemo)(function(){return M?"function"===typeof M?M({arrowPointAtCenter:pe}):M:EX(pe)},[M,pe]);if(void 0===se||!q)return null;var ge=function(){W(!1),null===f||void 0===f||f(B)},ve="boolean"===typeof ie?ie:!!ie,he="boolean"===typeof ie?void 0:ie;return o.createElement(o.Fragment,null,o.createElement(wX,{zIndex:A,prefixCls:n,pos:ce,showMask:ve,style:null===he||void 0===he?void 0:he.style,fill:null===he||void 0===he?void 0:he.color,open:F,animated:S,rootClassName:C,disabledInteraction:j}),o.createElement(rv,(0,l.A)({},P,{builtinPlacements:me,ref:R,popupStyle:Q,popupPlacement:ue,popupVisible:F,popupClassName:a()(C,J),prefixCls:n,popup:function(){return o.createElement(AX,(0,l.A)({arrow:de,key:"content",prefixCls:n,total:i.length,renderPanel:$,onPrev:function(){fe(B-1)},onNext:function(){fe(B+1)},onClose:ge,current:B,onFinish:function(){ge(),null===m||void 0===m||m()}},i[B],{closable:re}))},forceRender:!1,destroyPopupOnHide:!0,zIndex:A,getTriggerDOMNode:function(e){return e||se||document.body},arrow:!!de}),o.createElement(_u,{open:F,autoLock:!0},o.createElement("div",{className:a()(C,"".concat(n,"-target-placeholder")),style:(0,d.A)((0,d.A)({},ce||NX),{},{position:"fixed",pointerEvents:"none"})}))))},PX=jX;function RX(e){return void 0!==e&&null!==e}const TX=e=>{var t,n;const{stepProps:o,current:i,type:l,indicatorsRender:c,actionsRender:s}=e,{prefixCls:u,total:d=1,title:p,onClose:f,onPrev:m,onNext:g,onFinish:v,cover:h,description:b,nextButtonProps:y,prevButtonProps:C,type:x,closable:$}=o,w=null!==x&&void 0!==x?x:l,S=ni(null!==$&&void 0!==$?$:{},!0),[k]=Yl("global",Ba.global),[E]=Yl("Tour",Ba.Tour),O=r().createElement("button",Object.assign({type:"button",onClick:f,className:`${u}-close`,"aria-label":null===k||void 0===k?void 0:k.close},S),(null===$||void 0===$?void 0:$.closeIcon)||r().createElement(ir.A,{className:`${u}-close-icon`})),A=i===d-1,I=RX(p)?r().createElement("div",{className:`${u}-header`},r().createElement("div",{className:`${u}-title`},p)):null,N=RX(b)?r().createElement("div",{className:`${u}-description`},b):null,M=RX(h)?r().createElement("div",{className:`${u}-cover`},h):null;let j;j=c?c(i,d):se(Array.from({length:d}).keys()).map((e,t)=>r().createElement("span",{key:e,className:a()(t===i&&`${u}-indicator-active`,`${u}-indicator`)}));const P="primary"===w?"default":"primary",R={type:"default",ghost:"primary"===w},T=r().createElement(r().Fragment,null,0!==i?r().createElement(Su,Object.assign({size:"small"},R,C,{onClick:()=>{var e;null===m||void 0===m||m(),null===(e=null===C||void 0===C?void 0:C.onClick)||void 0===e||e.call(C)},className:a()(`${u}-prev-btn`,null===C||void 0===C?void 0:C.className)}),null!==(t=null===C||void 0===C?void 0:C.children)&&void 0!==t?t:null===E||void 0===E?void 0:E.Previous):null,r().createElement(Su,Object.assign({size:"small",type:P},y,{onClick:()=>{var e;A?null===v||void 0===v||v():null===g||void 0===g||g(),null===(e=null===y||void 0===y?void 0:y.onClick)||void 0===e||e.call(y)},className:a()(`${u}-next-btn`,null===y||void 0===y?void 0:y.className)}),null!==(n=null===y||void 0===y?void 0:y.children)&&void 0!==n?n:A?null===E||void 0===E?void 0:E.Finish:null===E||void 0===E?void 0:E.Next));return r().createElement("div",{className:`${u}-content`},r().createElement("div",{className:`${u}-inner`},$&&O,M,I,N,r().createElement("div",{className:`${u}-footer`},d>1&&r().createElement("div",{className:`${u}-indicators`},j),r().createElement("div",{className:`${u}-buttons`},s?s(T,{current:i,total:d}):T))))},zX=e=>{const{componentCls:t,padding:n,paddingXS:o,borderRadius:r,borderRadiusXS:i,colorPrimary:a,colorFill:l,indicatorHeight:c,indicatorWidth:s,boxShadowTertiary:u,zIndexPopup:d,colorBgElevated:p,fontWeightStrong:f,marginXS:m,colorTextLightSolid:g,tourBorderRadius:v,colorWhite:h,primaryNextBtnHoverBg:b,closeBtnSize:y,motionDurationSlow:C,antCls:x,primaryPrevBtnBg:$}=e;return[{[t]:Object.assign(Object.assign({},po(e)),{position:"absolute",zIndex:d,maxWidth:"fit-content",visibility:"visible",width:520,"--antd-arrow-background-color":p,"&-pure":{maxWidth:"100%",position:"relative"},[`&${t}-hidden`]:{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{textAlign:"start",textDecoration:"none",borderRadius:v,boxShadow:u,position:"relative",backgroundColor:p,border:"none",backgroundClip:"padding-box",[`${t}-close`]:Object.assign({position:"absolute",top:n,insetInlineEnd:n,color:e.colorIcon,background:"none",border:"none",width:y,height:y,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer","&:hover":{color:e.colorIconHover,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},mo(e)),[`${t}-cover`]:{textAlign:"center",padding:`${nt(e.calc(n).add(y).add(o).equal())} ${nt(n)} 0`,img:{width:"100%"}},[`${t}-header`]:{padding:`${nt(n)} ${nt(n)} ${nt(o)}`,width:`calc(100% - ${nt(y)})`,wordBreak:"break-word",[`${t}-title`]:{fontWeight:f}},[`${t}-description`]:{padding:`0 ${nt(n)}`,wordWrap:"break-word"},[`${t}-footer`]:{padding:`${nt(o)} ${nt(n)} ${nt(n)}`,textAlign:"end",borderRadius:`0 0 ${nt(i)} ${nt(i)}`,display:"flex",[`${t}-indicators`]:{display:"inline-block",[`${t}-indicator`]:{width:s,height:c,display:"inline-block",borderRadius:"50%",background:l,"&:not(:last-child)":{marginInlineEnd:c},"&-active":{background:a}}},[`${t}-buttons`]:{marginInlineStart:"auto",[`${x}-btn`]:{marginInlineStart:m}}}},[`${t}-primary, &${t}-primary`]:{"--antd-arrow-background-color":a,[`${t}-inner`]:{color:g,textAlign:"start",textDecoration:"none",backgroundColor:a,borderRadius:r,boxShadow:u,[`${t}-close`]:{color:g},[`${t}-indicators`]:{[`${t}-indicator`]:{background:$,"&-active":{background:g}}},[`${t}-prev-btn`]:{color:g,borderColor:$,backgroundColor:a,"&:hover":{backgroundColor:$,borderColor:"transparent"}},[`${t}-next-btn`]:{color:a,borderColor:"transparent",background:h,"&:hover":{background:b}}}}}),[`${t}-mask`]:{[`${t}-placeholder-animated`]:{transition:`all ${C}`}},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${t}-inner`]:{borderRadius:e.min(v,8)}}},ey(e,"var(--antd-arrow-background-color)")]},BX=qo("Tour",e=>{const{borderRadiusLG:t}=e,n=Jn(e,{indicatorWidth:6,indicatorHeight:6,tourBorderRadius:t});return[zX(n)]},e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70,closeBtnSize:e.fontSize*e.lineHeight,primaryPrevBtnBg:new wo.Y(e.colorTextLightSolid).setA(.15).toRgbString(),primaryNextBtnHoverBg:new wo.Y(e.colorBgTextHover).onBackground(e.colorWhite).toRgbString()},Zb({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),Ub(e)));var HX=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const DX=Um(e=>{const{prefixCls:t,current:n=0,total:r=6,className:i,style:l,type:c,closable:s,closeIcon:u}=e,d=HX(e,["prefixCls","current","total","className","style","type","closable","closeIcon"]),{getPrefixCls:p}=o.useContext(xe),f=p("tour",t),[m,g,v]=BX(f),[h,b]=Rp({closable:s,closeIcon:u},null,{closable:!0,closeIconRender:e=>{var t;return o.isValidElement(e)?ii(e,{className:a()(null===(t=e.props)||void 0===t?void 0:t.className,`${f}-close-icon`)}):e}});return m(o.createElement(wy,{prefixCls:f,hashId:g,className:a()(i,`${f}-pure`,c&&`${f}-${c}`,v),style:l},o.createElement(TX,{stepProps:Object.assign(Object.assign({},d),{prefixCls:f,total:r,closable:h?{closeIcon:b}:void 0}),current:n,type:c})))});var LX=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const FX=e=>{const{prefixCls:t,type:n,rootClassName:i,indicatorsRender:l,actionsRender:c,steps:s,closeIcon:u}=e,d=LX(e,["prefixCls","type","rootClassName","indicatorsRender","actionsRender","steps","closeIcon"]),{getPrefixCls:p,direction:f,tour:m}=(0,o.useContext)(xe),g=p("tour",t),[v,h,b]=BX(g),[,y]=Ko(),C=r().useMemo(()=>null===s||void 0===s?void 0:s.map(e=>{var t;return Object.assign(Object.assign({},e),{className:a()(e.className,{[`${g}-primary`]:"primary"===(null!==(t=e.type)&&void 0!==t?t:n)})})}),[s,n]),x=a()({[`${g}-rtl`]:"rtl"===f},h,b,i),[$,w]=fa("Tour",d.zIndex);return v(r().createElement(ca.Provider,{value:w},r().createElement(PX,Object.assign({},d,{closeIcon:null!==u&&void 0!==u?u:null===m||void 0===m?void 0:m.closeIcon,zIndex:$,rootClassName:x,prefixCls:g,animated:!0,renderPanel:(e,t)=>r().createElement(TX,{type:n,stepProps:e,current:t,indicatorsRender:l,actionsRender:c}),builtinPlacements:e=>{var t;return ry({arrowPointAtCenter:null===(t=null===e||void 0===e?void 0:e.arrowPointAtCenter)||void 0===t||t,autoAdjustOverflow:!0,offset:y.marginXXS,arrowWidth:y.sizePopupArrow,borderRadius:y.borderRadius})},steps:C}))))};FX._InternalPanelDoNotUseOrYouWillBeFired=DX;const WX=FX,_X=e=>{const t=new Map;return e.forEach((e,n)=>{t.set(e,n)}),t},KX=(e,t,n)=>{const r=o.useMemo(()=>(e||[]).map(e=>t?Object.assign(Object.assign({},e),{key:t(e)}):e),[e,t]),[i,a]=o.useMemo(()=>{var e;const t=[],o=Array.from({length:null!==(e=null===n||void 0===n?void 0:n.length)&&void 0!==e?e:0}),i=_X(n||[]);return r.forEach(e=>{if(i.has(e.key)){const t=i.get(e.key);o[t]=e}else t.push(e)}),[t,o]},[r,n]);return[r,i.filter(Boolean),a.filter(Boolean)]},qX=[];function VX(e,t){const n=e.filter(e=>t.has(e));return e.length===n.length?e:n}function XX(e){return Array.from(e).join(";")}const GX=function(e,t,n){const[r,i]=o.useMemo(()=>[new Set(e.map(e=>null===e||void 0===e?void 0:e.key)),new Set(t.map(e=>null===e||void 0===e?void 0:e.key))],[e,t]),[a,l]=Ln(qX,{value:n}),c=o.useMemo(()=>VX(a,r),[a,r]),s=o.useMemo(()=>VX(a,i),[a,i]);o.useEffect(()=>{l([].concat(se(VX(a,r)),se(VX(a,i))))},[XX(r),XX(i)]);const u=Bn(e=>{l([].concat(se(e),se(s)))}),d=Bn(e=>{l([].concat(se(c),se(e)))});return[c,s,u,d]};var YX=n(28221);const UX=o.memo(e=>{const{renderedText:t,renderedEl:n,item:r,checked:i,disabled:l,prefixCls:c,onClick:s,onRemove:u,showRemove:d}=e,p=a()(`${c}-content-item`,{[`${c}-content-item-disabled`]:l||r.disabled,[`${c}-content-item-checked`]:i&&!r.disabled});let f;"string"!==typeof t&&"number"!==typeof t||(f=String(t));const[m]=Yl("Transfer",Ba.Transfer),g={className:p,title:f},v=o.createElement("span",{className:`${c}-content-item-text`},n);return d?o.createElement("li",Object.assign({},g),v,o.createElement("button",{type:"button",disabled:l||r.disabled,className:`${c}-content-item-remove`,"aria-label":null===m||void 0===m?void 0:m.remove,onClick:()=>null===u||void 0===u?void 0:u(r)},o.createElement(YX.A,null))):(g.onClick=l||r.disabled?void 0:e=>s(r,e),o.createElement("li",Object.assign({},g),o.createElement(PI,{className:`${c}-checkbox`,checked:i,disabled:l||r.disabled}),v))}),QX=["handleFilter","handleClear","checkedKeys"];const ZX=o.forwardRef((e,t)=>{const{prefixCls:n,filteredRenderItems:r,selectedKeys:i,disabled:l,showRemove:c,pagination:s,onScroll:u,onItemSelect:d,onItemRemove:p}=e,[f,m]=o.useState(1),g=o.useMemo(()=>{if(!s)return null;return(e=>Object.assign(Object.assign({},{simple:!0,showSizeChanger:!1,showLessItems:!1}),e))("object"===typeof s?s:{})},[s]),[v,h]=Ln(10,{value:null===g||void 0===g?void 0:g.pageSize});o.useEffect(()=>{if(g){const e=Math.ceil(r.length/v);m(Math.min(f,e))}},[r,g,v]);const b=(e,t)=>{d(e.key,!i.includes(e.key),t)},y=e=>{null===p||void 0===p||p([e.key])},C=o.useMemo(()=>g?r.slice((f-1)*v,f*v):r,[f,r,g,v]);o.useImperativeHandle(t,()=>({items:C}));const x=g?o.createElement(yH,{size:"small",disabled:l,simple:g.simple,pageSize:v,showLessItems:g.showLessItems,showSizeChanger:g.showSizeChanger,className:`${n}-pagination`,total:r.length,current:f,onChange:e=>{m(e)},onShowSizeChange:(e,t)=>{m(e),h(t)}}):null,$=a()(`${n}-content`,{[`${n}-content-show-remove`]:c});return o.createElement(o.Fragment,null,o.createElement("ul",{className:$,onScroll:u},(C||[]).map(e=>{let{renderedEl:t,renderedText:r,item:a}=e;return o.createElement(UX,{key:a.key,item:a,renderedText:r,renderedEl:t,prefixCls:n,showRemove:c,onClick:b,onRemove:y,checked:i.includes(a.key),disabled:l||a.disabled})})),x)});const JX=e=>{const{placeholder:t="",value:n,prefixCls:r,disabled:i,onChange:a,handleClear:l}=e,c=o.useCallback(e=>{null===a||void 0===a||a(e),""===e.target.value&&(null===l||void 0===l||l())},[a]);return o.createElement(BM,{placeholder:t,className:r,value:n,onChange:c,disabled:i,allowClear:!0,prefix:o.createElement(pb.A,null)})},eG=()=>null;function tG(e){return e.filter(e=>!e.disabled).map(e=>e.key)}const nG=e=>{const{prefixCls:t,dataSource:n=[],titleText:i="",checkedKeys:l,disabled:c,showSearch:s=!1,style:u,searchPlaceholder:d,notFoundContent:p,selectAll:f,deselectAll:m,selectCurrent:g,selectInvert:v,removeAll:h,removeCurrent:b,showSelectAll:y=!0,showRemove:C,pagination:x,direction:$,itemsUnit:w,itemUnit:S,selectAllLabel:k,selectionsIcon:E,footer:O,renderList:A,onItemSelectAll:I,onItemRemove:N,handleFilter:M,handleClear:j,filterOption:P,render:R=eG}=e,T=(e=>e&&"object"===typeof e?Object.assign(Object.assign({},e),{defaultValue:e.defaultValue||""}):{defaultValue:"",placeholder:""})(s),[z,B]=(0,o.useState)(T.defaultValue),H=(0,o.useRef)({}),D=e=>{B(e.target.value),M(e)},L=()=>{B(""),j()},F=e=>{const t=R(e),n=function(e){return!(!e||r().isValidElement(e)||"[object Object]"!==Object.prototype.toString.call(e))}(t);return{item:e,renderedEl:n?t.label:t,renderedText:n?t.value:t}},W=(0,o.useMemo)(()=>Array.isArray(p)?p["left"===$?0:1]:p,[p,$]),[_,K]=(0,o.useMemo)(()=>{const e=[],t=[];return n.forEach(n=>{const o=F(n);z&&!((e,t)=>P?P(z,t,$):e.includes(z))(o.renderedText,n)||(e.push(n),t.push(o))}),[e,t]},[n,z]),q=(0,o.useMemo)(()=>_.filter(e=>l.includes(e.key)&&!e.disabled),[l,_]),V=(0,o.useMemo)(()=>{if(0===q.length)return"none";const e=_X(l);return _.every(t=>e.has(t.key)||!!t.disabled)?"all":"part"},[l,q]),X=(0,o.useMemo)(()=>{const n=s?r().createElement("div",{className:`${t}-body-search-wrapper`},r().createElement(JX,{prefixCls:`${t}-search`,onChange:D,handleClear:L,placeholder:T.placeholder||d,value:z,disabled:c})):null,{customize:o,bodyContent:i}=(e=>{let t=A?A(Object.assign(Object.assign({},e),{onItemSelect:(t,n)=>e.onItemSelect(t,n)})):null;const n=!!t;return n||(t=r().createElement(ZX,Object.assign({ref:H},e))),{customize:n,bodyContent:t}})(Object.assign(Object.assign({},Ul(e,QX)),{filteredItems:_,filteredRenderItems:K,selectedKeys:l}));let u;return u=o?r().createElement("div",{className:`${t}-body-customize-wrapper`},i):_.length?i:r().createElement("div",{className:`${t}-body-not-found`},W),r().createElement("div",{className:a()(`${t}-body`,{[`${t}-body-with-search`]:s})},n,u)},[s,t,d,z,c,l,_,K,W]),G=r().createElement(PI,{disabled:0===n.filter(e=>!e.disabled).length||c,checked:"all"===V,indeterminate:"part"===V,className:`${t}-checkbox`,onChange:()=>{null===I||void 0===I||I(_.filter(e=>!e.disabled).map(e=>{let{key:t}=e;return t}),"all"!==V)}}),Y=O&&(O.length<2?O(e):O(e,{direction:$})),U=a()(t,{[`${t}-with-pagination`]:!!x,[`${t}-with-footer`]:!!Y}),Q=Y?r().createElement("div",{className:`${t}-footer`},Y):null,Z=!C&&!x&&G;let J;J=C?[x?{key:"removeCurrent",label:b,onClick(){var e;const t=tG(((null===(e=H.current)||void 0===e?void 0:e.items)||[]).map(e=>e.item));null===N||void 0===N||N(t)}}:null,{key:"removeAll",label:h,onClick(){null===N||void 0===N||N(tG(_))}}].filter(Boolean):[{key:"selectAll",label:"all"===V?m:f,onClick(){const e=tG(_);null===I||void 0===I||I(e,e.length!==l.length)}},x?{key:"selectCurrent",label:g,onClick(){var e;const t=(null===(e=H.current)||void 0===e?void 0:e.items)||[];null===I||void 0===I||I(tG(t.map(e=>e.item)),!0)}}:null,{key:"selectInvert",label:v,onClick(){var e;const t=tG(((null===(e=H.current)||void 0===e?void 0:e.items)||[]).map(e=>e.item)),n=new Set(l),o=new Set(n);t.forEach(e=>{n.has(e)?o.delete(e):o.add(e)}),null===I||void 0===I||I(Array.from(o),"replace")}}];const ee=r().createElement(zR,{className:`${t}-header-dropdown`,menu:{items:J},disabled:c},void 0!==E?E:r().createElement(db.A,null));return r().createElement("div",{className:U,style:u},r().createElement("div",{className:`${t}-header`},y?r().createElement(r().Fragment,null,Z,ee):null,r().createElement("span",{className:`${t}-header-selected`},((e,t)=>{if(k)return"function"===typeof k?k({selectedCount:e,totalCount:t}):k;const n=t>1?w:S;return r().createElement(r().Fragment,null,(e>0?`${e}/`:"")+t," ",n)})(q.length,_.length)),r().createElement("span",{className:`${t}-header-title`},i)),X,Q)};const oG=e=>{const{disabled:t,moveToLeft:n,moveToRight:r,leftArrowText:i="",rightArrowText:a="",leftActive:l,rightActive:c,className:s,style:u,direction:d,oneWay:p}=e;return o.createElement("div",{className:s,style:u},o.createElement(Su,{type:"primary",size:"small",disabled:t||!c,onClick:r,icon:"rtl"!==d?o.createElement(ss.A,null):o.createElement(iC.A,null)},a),!p&&o.createElement(Su,{type:"primary",size:"small",disabled:t||!l,onClick:n,icon:"rtl"!==d?o.createElement(iC.A,null):o.createElement(ss.A,null)},i))},rG=e=>{const{antCls:t,componentCls:n,listHeight:o,controlHeightLG:r}=e,i=`${t}-table`,a=`${t}-input`;return{[`${n}-customize-list`]:{[`${n}-list`]:{flex:"1 1 50%",width:"auto",height:"auto",minHeight:o,minWidth:0},[`${i}-wrapper`]:{[`${i}-small`]:{border:0,borderRadius:0,[`${i}-selection-column`]:{width:r,minWidth:r}},[`${i}-pagination${i}-pagination`]:{margin:0,padding:e.paddingXS}},[`${a}[disabled]`]:{backgroundColor:"transparent"}}}},iG=(e,t)=>{const{componentCls:n,colorBorder:o}=e;return{[`${n}-list`]:{borderColor:t,"&-search:not([disabled])":{borderColor:o}}}},aG=e=>{const{componentCls:t}=e;return{[`${t}-status-error`]:Object.assign({},iG(e,e.colorError)),[`${t}-status-warning`]:Object.assign({},iG(e,e.colorWarning))}},lG=e=>{const{componentCls:t,colorBorder:n,colorSplit:o,lineWidth:r,itemHeight:i,headerHeight:a,transferHeaderVerticalPadding:l,itemPaddingBlock:c,controlItemBgActive:s,colorTextDisabled:u,colorTextSecondary:d,listHeight:p,listWidth:f,listWidthLG:m,fontSizeIcon:g,marginXS:v,paddingSM:h,lineType:b,antCls:y,iconCls:C,motionDurationSlow:x,controlItemBgHover:$,borderRadiusLG:w,colorBgContainer:S,colorText:k,controlItemBgActiveHover:E}=e,O=nt(e.calc(w).sub(r).equal());return{display:"flex",flexDirection:"column",width:f,height:p,border:`${nt(r)} ${b} ${n}`,borderRadius:e.borderRadiusLG,"&-with-pagination":{width:m,height:"auto"},"&-search":{[`${C}-search`]:{color:u}},"&-header":{display:"flex",flex:"none",alignItems:"center",height:a,padding:`${nt(e.calc(l).sub(r).equal())} ${nt(h)} ${nt(l)}`,color:k,background:S,borderBottom:`${nt(r)} ${b} ${o}`,borderRadius:`${nt(w)} ${nt(w)} 0 0`,"> *:not(:last-child)":{marginInlineEnd:4},"> *":{flex:"none"},"&-title":Object.assign(Object.assign({},uo),{flex:"auto",textAlign:"end"}),"&-dropdown":Object.assign(Object.assign({},{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"}}),{fontSize:g,transform:"translateY(10%)",cursor:"pointer","&[disabled]":{cursor:"not-allowed"}})},"&-body":{display:"flex",flex:"auto",flexDirection:"column",fontSize:e.fontSize,minHeight:0,"&-search-wrapper":{position:"relative",flex:"none",padding:h}},"&-content":{flex:"auto",margin:0,padding:0,overflow:"auto",listStyle:"none",borderRadius:`0 0 ${O} ${O}`,"&-item":{display:"flex",alignItems:"center",minHeight:i,padding:`${nt(c)} ${nt(h)}`,transition:`all ${x}`,"> *:not(:last-child)":{marginInlineEnd:v},"> *":{flex:"none"},"&-text":Object.assign(Object.assign({},uo),{flex:"auto"}),"&-remove":Object.assign(Object.assign({},vo(e)),{color:n,"&:hover, &:focus":{color:d}}),[`&:not(${t}-list-content-item-disabled)`]:{"&:hover":{backgroundColor:$,cursor:"pointer"},[`&${t}-list-content-item-checked:hover`]:{backgroundColor:E}},"&-checked":{backgroundColor:s},"&-disabled":{color:u,cursor:"not-allowed"}},[`&-show-remove ${t}-list-content-item:not(${t}-list-content-item-disabled):hover`]:{background:"transparent",cursor:"default"}},"&-pagination":{padding:e.paddingXS,textAlign:"end",borderTop:`${nt(r)} ${b} ${o}`,[`${y}-pagination-options`]:{paddingInlineEnd:e.paddingXS}},"&-body-not-found":{flex:"none",width:"100%",margin:"auto 0",color:u,textAlign:"center"},"&-footer":{borderTop:`${nt(r)} ${b} ${o}`},"&-checkbox":{lineHeight:1}}},cG=e=>{const{antCls:t,iconCls:n,componentCls:o,marginXS:r,marginXXS:i,fontSizeIcon:a,colorBgContainerDisabled:l}=e;return{[o]:Object.assign(Object.assign({},po(e)),{position:"relative",display:"flex",alignItems:"stretch",[`${o}-disabled`]:{[`${o}-list`]:{background:l}},[`${o}-list`]:lG(e),[`${o}-operation`]:{display:"flex",flex:"none",flexDirection:"column",alignSelf:"center",margin:`0 ${nt(r)}`,verticalAlign:"middle",gap:i,[`${t}-btn ${n}`]:{fontSize:a}}})}},sG=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},uG=qo("Transfer",e=>{const t=Jn(e);return[cG(t),rG(t),aG(t),sG(t)]},e=>{const{fontSize:t,lineHeight:n,controlHeight:o,controlHeightLG:r,lineWidth:i}=e,a=Math.round(t*n);return{listWidth:180,listHeight:200,listWidthLG:250,headerHeight:r,itemHeight:o,itemPaddingBlock:(o-a)/2,transferHeaderVerticalPadding:Math.ceil((r-i-a)/2)}}),dG=e=>{const{dataSource:t,targetKeys:n=[],selectedKeys:i,selectAllLabels:l=[],operations:c=[],style:s={},listStyle:u={},locale:d={},titles:p,disabled:f,showSearch:m=!1,operationStyle:g,showSelectAll:v,oneWay:h,pagination:b,status:y,prefixCls:C,className:x,rootClassName:$,selectionsIcon:w,filterOption:S,render:k,footer:E,children:O,rowKey:A,onScroll:I,onChange:N,onSearch:M,onSelectChange:j}=e,{getPrefixCls:P,renderEmpty:R,direction:T,transfer:z}=(0,o.useContext)(xe),B=P("transfer",C),[H,D,L]=uG(B),[F,W,_]=KX(t,A,n),[K,q,V,X]=GX(W,_,i),[G,Y]=$K(e=>e.key),[U,Q]=$K(e=>e.key);const Z=(0,o.useCallback)((e,t)=>{if("left"===e){const e="function"===typeof t?t(K||[]):t;V(e)}else{const e="function"===typeof t?t(q||[]):t;X(e)}},[K,q]),J=(e,t)=>{("left"===e?Y:Q)(t)},ee=(0,o.useCallback)((e,t)=>{"left"===e?null===j||void 0===j||j(t,q):null===j||void 0===j||j(K,t)},[K,q]),te=e=>{const t="right"===e?K:q,o=(e=>{const t=new Map;return e.forEach((e,n)=>{let{disabled:o,key:r}=e;o&&t.set(r,n)}),t})(F),r=t.filter(e=>!o.has(e)),i=_X(r),a="right"===e?r.concat(n):n.filter(e=>!i.has(e)),l="right"===e?"left":"right";Z(l,[]),ee(l,[]),null===N||void 0===N||N(a,e,r)},ne=(e,t,n)=>{Z(e,o=>{let r=[];if("replace"===n)r=t;else if(n)r=Array.from(new Set([].concat(se(o),se(t))));else{const e=_X(t);r=o.filter(t=>!e.has(t))}return ee(e,r),r}),J(e,null)},oe=(t,n,o,r)=>{const i="left"===t,a=se(i?K:q),l=new Set(a),c=se(i?W:_).filter(e=>!(null===e||void 0===e?void 0:e.disabled)),s=c.findIndex(e=>e.key===n);r&&a.length>0?((e,t,n,o)=>{("left"===e?G:U)(o,t,n)})(t,c,l,s):((e,t,n,o,r)=>{t.has(n)&&(t.delete(n),J(e,null)),o&&(t.add(n),J(e,r))})(t,l,n,o,s);const u=Array.from(l);ee(t,u),e.selectedKeys||Z(t,u)},re=e=>"function"===typeof u?u({direction:e}):u||{},ie=(0,o.useContext)(Ep),{hasFeedback:ae,status:le}=ie,ce=ch(le,y),ue=!O&&b,de=_.filter(e=>q.includes(e.key)&&!e.disabled).length>0,pe=W.filter(e=>K.includes(e.key)&&!e.disabled).length>0,fe=a()(B,{[`${B}-disabled`]:f,[`${B}-customize-list`]:!!O,[`${B}-rtl`]:"rtl"===T},lh(B,ce,ae),null===z||void 0===z?void 0:z.className,x,$,D,L),[me]=Yl("Transfer",Ba.Transfer),ge=(ve=me,Object.assign(Object.assign(Object.assign({},ve),{notFoundContent:(null===R||void 0===R?void 0:R("Transfer"))||r().createElement(bh,{componentName:"Transfer"})}),d));var ve;const[he,be]=(e=>{var t;return null!==(t=null!==p&&void 0!==p?p:e.titles)&&void 0!==t?t:[]})(ge),ye=null!==w&&void 0!==w?w:null===z||void 0===z?void 0:z.selectionsIcon;return H(r().createElement("div",{className:fe,style:Object.assign(Object.assign({},null===z||void 0===z?void 0:z.style),s)},r().createElement(nG,Object.assign({prefixCls:`${B}-list`,titleText:he,dataSource:W,filterOption:S,style:re("left"),checkedKeys:K,handleFilter:e=>null===M||void 0===M?void 0:M("left",e.target.value),handleClear:()=>null===M||void 0===M?void 0:M("left",""),onItemSelect:(e,t,n)=>{oe("left",e,t,null===n||void 0===n?void 0:n.shiftKey)},onItemSelectAll:(e,t)=>{ne("left",e,t)},render:k,showSearch:m,renderList:O,footer:E,onScroll:e=>{null===I||void 0===I||I("left",e)},disabled:f,direction:"rtl"===T?"right":"left",showSelectAll:v,selectAllLabel:l[0],pagination:ue,selectionsIcon:ye},ge)),r().createElement(oG,{className:`${B}-operation`,rightActive:pe,rightArrowText:c[0],moveToRight:()=>{te("right"),J("right",null)},leftActive:de,leftArrowText:c[1],moveToLeft:()=>{te("left"),J("left",null)},style:g,disabled:f,direction:T,oneWay:h}),r().createElement(nG,Object.assign({prefixCls:`${B}-list`,titleText:be,dataSource:_,filterOption:S,style:re("right"),checkedKeys:q,handleFilter:e=>null===M||void 0===M?void 0:M("right",e.target.value),handleClear:()=>null===M||void 0===M?void 0:M("right",""),onItemSelect:(e,t,n)=>{oe("right",e,t,null===n||void 0===n?void 0:n.shiftKey)},onItemSelectAll:(e,t)=>{ne("right",e,t)},onItemRemove:e=>{Z("right",[]),null===N||void 0===N||N(n.filter(t=>!e.includes(t)),"left",se(e))},render:k,showSearch:m,renderList:O,footer:E,onScroll:e=>{null===I||void 0===I||I("right",e)},disabled:f,direction:"rtl"===T?"left":"right",showSelectAll:v,selectAllLabel:l[1],showRemove:h,pagination:ue,selectionsIcon:ye},ge))))};dG.List=nG,dG.Search=JX,dG.Operation=oG;const pG=dG;const fG=function(e,t,n,r){return o.useMemo(function(){var o=function(e){return e.map(function(e){return e.value})},i=o(e),a=o(t),l=i.filter(function(e){return!r[e]}),c=i,s=a;if(n){var u=WA(i,!0,r);c=u.checkedKeys,s=u.halfCheckedKeys}return[Array.from(new Set([].concat(se(l),se(c)))),s]},[e,t,n,r])};const mG=function(){return null};var gG=["children","value"];function vG(e){return s(e).map(function(e){if(!o.isValidElement(e)||!e.type)return null;var t=e,n=t.key,r=t.props,i=r.children,a=r.value,l=(0,cr.A)(r,gG),c=(0,d.A)({key:n,value:a},l),s=vG(i);return s.length&&(c.children=s),c}).filter(function(e){return e})}function hG(e){if(!e)return e;var t=(0,d.A)({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return(0,u.Ay)(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),t}}),t}const bG=function(e,t,n){var r=n.fieldNames,i=n.treeNodeFilterProp,a=n.filterTreeNode,l=r.children;return o.useMemo(function(){if(!t||!1===a)return e;var n="function"===typeof a?a:function(e,n){return String(n[i]).toUpperCase().includes(t.toUpperCase())};return function e(o){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return o.reduce(function(o,i){var a=i[l],c=r||n(t,hG(i)),s=e(a||[],c);return(c||s.length)&&o.push((0,d.A)((0,d.A)({},i),{},(0,Ee.A)({isLeaf:void 0},l,s))),o},[])}(e)},[e,t,l,i,a])};function yG(e){var t=o.useRef();t.current=e;var n=o.useCallback(function(){return t.current.apply(t,arguments)},[]);return n}function CG(e,t,n){return o.useMemo(function(){if(e){if(n){var o=(0,d.A)({id:"id",pId:"pId",rootPId:null},"object"===(0,p.A)(n)?n:{});return function(e,t){var n=t.id,o=t.pId,r=t.rootPId,i=new Map,a=[];return e.forEach(function(e){var t=e[n],o=(0,d.A)((0,d.A)({},e),{},{key:e.key||t});i.set(t,o)}),i.forEach(function(e){var t=e[o],n=i.get(t);n?(n.children=n.children||[],n.children.push(e)):t!==r&&null!==r||a.push(e)}),a}(e,o)}return e}return vG(t)},[t,n,e])}const xG=o.createContext(null);const $G=o.createContext(null);var wG=function(e){return!e||e.disabled||e.disableCheckbox||!1===e.checkable},SG=function(e){return null===e||void 0===e},kG={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},EG=o.forwardRef(function(e,t){var n=tg(),r=n.prefixCls,i=n.multiple,a=n.searchValue,c=n.toggleOpen,s=n.open,u=n.notFoundContent,d=o.useContext($G),p=d.virtual,f=d.listHeight,m=d.listItemHeight,g=d.listItemScrollOffset,v=d.treeData,h=d.fieldNames,b=d.onSelect,y=d.dropdownMatchSelectWidth,C=d.treeExpandAction,x=d.treeTitleRender,$=d.onPopupScroll,w=d.leftMaxCount,S=d.leafCountOnly,k=d.valueEntities,E=o.useContext(xG),O=E.checkable,A=E.checkedKeys,I=E.halfCheckedKeys,N=E.treeExpandedKeys,M=E.treeDefaultExpandAll,j=E.treeDefaultExpandedKeys,P=E.onTreeExpand,R=E.treeIcon,T=E.showTreeIcon,z=E.switcherIcon,B=E.treeLine,H=E.treeNodeFilterProp,D=E.loadData,L=E.treeLoadedKeys,F=E.treeMotion,W=E.onTreeLoad,_=E.keyEntities,K=o.useRef(),q=(0,Ie.A)(function(){return v},[s,v],function(e,t){return t[0]&&e[1]!==t[1]}),V=o.useMemo(function(){return O?{checked:A,halfChecked:I}:null},[O,A,I]);o.useEffect(function(){var e;s&&!i&&A.length&&(null===(e=K.current)||void 0===e||e.scrollTo({key:A[0]}))},[s]);var X=function(e){e.preventDefault()},G=function(e,t){var n=t.node;O&&wG(n)||(b(n.key,{selected:!A.includes(n.key)}),i||c(!1))},Y=o.useState(j),U=(0,ke.A)(Y,2),Q=U[0],Z=U[1],J=o.useState(null),ee=(0,ke.A)(J,2),te=ee[0],ne=ee[1],oe=o.useMemo(function(){return N?se(N):a?te:Q},[Q,te,N,a]),re=String(a).toLowerCase(),ie=function(e){return!!re&&String(e[H]).toLowerCase().includes(re)};o.useEffect(function(){a&&ne(function(e,t){var n=[];return function e(o){o.forEach(function(o){var r=o[t.children];r&&(n.push(o[t.value]),e(r))})}(e),n}(v,h))},[a]);var ae=o.useState(function(){return new Map}),le=(0,ke.A)(ae,2),ce=le[0],ue=le[1];o.useEffect(function(){w&&ue(new Map)},[w]);var de=Bn(function(e){var t=e[h.value];return!A.includes(t)&&(null!==w&&(w<=0||!(!S||!w)&&function(e){var t=e[h.value];if(!ce.has(t)){var n=k.get(t);if(0===(n.children||[]).length)ce.set(t,!1);else{var o=n.children.filter(function(e){return!e.node.disabled&&!e.node.disableCheckbox&&!A.includes(e.node[h.value])}).length;ce.set(t,o>w)}}return ce.get(t)}(e)))}),pe=function e(t){var n,o=jL(t);try{for(o.s();!(n=o.n()).done;){var r=n.value;if(!r.disabled&&!1!==r.selectable){if(!a)return r;if(ie(r))return r;if(r[h.children]){var i=e(r[h.children]);if(i)return i}}}}catch(l){o.e(l)}finally{o.f()}return null},fe=o.useState(null),me=(0,ke.A)(fe,2),ge=me[0],ve=me[1],he=_[ge];o.useEffect(function(){if(s){var e=null;e=i||!A.length||a?function(){var e=pe(q);return e?e[h.value]:null}():A[0],ve(e)}},[s,a]),o.useImperativeHandle(t,function(){var e;return{scrollTo:null===(e=K.current)||void 0===e?void 0:e.scrollTo,onKeyDown:function(e){var t;switch(e.which){case Xi.UP:case Xi.DOWN:case Xi.LEFT:case Xi.RIGHT:null===(t=K.current)||void 0===t||t.onKeyDown(e);break;case Xi.ENTER:if(he){var n=de(he.node),o=(null===he||void 0===he?void 0:he.node)||{},r=o.selectable,i=o.value,a=o.disabled;!1===r||a||n||G(0,{node:{key:ge},selected:!A.includes(i)})}break;case Xi.ESC:c(!1)}},onKeyUp:function(){}}});var be=(0,Ie.A)(function(){return!a},[a,N||Q],function(e,t){var n=(0,ke.A)(e,1)[0],o=(0,ke.A)(t,2),r=o[0],i=o[1];return n!==r&&!(!r&&!i)})?D:null;if(0===q.length)return o.createElement("div",{role:"listbox",className:"".concat(r,"-empty"),onMouseDown:X},u);var ye={fieldNames:h};return L&&(ye.loadedKeys=L),oe&&(ye.expandedKeys=oe),o.createElement("div",{onMouseDown:X},he&&s&&o.createElement("span",{style:kG,"aria-live":"assertive"},he.node.value),o.createElement(aK.Provider,{value:{nodeDisabled:de}},o.createElement(tq,(0,l.A)({ref:K,focusable:!1,prefixCls:"".concat(r,"-tree"),treeData:q,height:f,itemHeight:m,itemScrollOffset:g,virtual:!1!==p&&!1!==y,multiple:i,icon:R,showIcon:T,switcherIcon:z,showLine:B,loadData:be,motion:F,activeKey:ge,checkable:O,checkStrictly:!0,checkedKeys:V,selectedKeys:O?[]:A,defaultExpandAll:M,titleRender:x},ye,{onActiveChange:ve,onSelect:G,onCheck:G,onExpand:function(e){Z(e),ne(e),P&&P(e)},onLoad:W,filterTreeNode:ie,expandAction:C,onScroll:$}))))});const OG=EG;var AG="SHOW_ALL",IG="SHOW_PARENT",NG="SHOW_CHILD";function MG(e,t,n,o){var r=new Set(e);return t===NG?e.filter(function(e){var t=n[e];return!t||!t.children||!t.children.some(function(e){var t=e.node;return r.has(t[o.value])})||!t.children.every(function(e){var t=e.node;return wG(t)||r.has(t[o.value])})}):t===IG?e.filter(function(e){var t=n[e],o=t?t.parent:null;return!o||wG(o.node)||!r.has(o.key)}):e}var jG=["id","prefixCls","value","defaultValue","onChange","onSelect","onDeselect","searchValue","inputValue","onSearch","autoClearSearchValue","filterTreeNode","treeNodeFilterProp","showCheckedStrategy","treeNodeLabelProp","multiple","treeCheckable","treeCheckStrictly","labelInValue","maxCount","fieldNames","treeDataSimpleMode","treeData","children","loadData","treeLoadedKeys","onTreeLoad","treeDefaultExpandAll","treeExpandedKeys","treeDefaultExpandedKeys","onTreeExpand","treeExpandAction","virtual","listHeight","listItemHeight","listItemScrollOffset","onDropdownVisibleChange","dropdownMatchSelectWidth","treeLine","treeIcon","showTreeIcon","switcherIcon","treeMotion","treeTitleRender","onPopupScroll"];var PG=o.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,i=void 0===r?"rc-tree-select":r,a=e.value,c=e.defaultValue,s=e.onChange,f=e.onSelect,m=e.onDeselect,g=e.searchValue,v=e.inputValue,h=e.onSearch,b=e.autoClearSearchValue,y=void 0===b||b,C=e.filterTreeNode,x=e.treeNodeFilterProp,$=void 0===x?"value":x,w=e.showCheckedStrategy,S=e.treeNodeLabelProp,k=e.multiple,E=e.treeCheckable,O=e.treeCheckStrictly,A=e.labelInValue,I=e.maxCount,N=e.fieldNames,M=e.treeDataSimpleMode,j=e.treeData,P=e.children,R=e.loadData,T=e.treeLoadedKeys,z=e.onTreeLoad,B=e.treeDefaultExpandAll,H=e.treeExpandedKeys,D=e.treeDefaultExpandedKeys,L=e.onTreeExpand,F=e.treeExpandAction,W=e.virtual,_=e.listHeight,K=void 0===_?200:_,q=e.listItemHeight,V=void 0===q?20:q,X=e.listItemScrollOffset,G=void 0===X?0:X,Y=e.onDropdownVisibleChange,U=e.dropdownMatchSelectWidth,Q=void 0===U||U,Z=e.treeLine,J=e.treeIcon,ee=e.showTreeIcon,te=e.switcherIcon,ne=e.treeMotion,oe=e.treeTitleRender,re=e.onPopupScroll,ie=(0,cr.A)(e,jG),ae=Uv(n),le=E&&!O,ce=E||O,ue=O||A,de=ce||k,pe=Ln(c,{value:a}),fe=(0,ke.A)(pe,2),me=fe[0],ge=fe[1],ve=o.useMemo(function(){return E?w||NG:AG},[w,E]);var he=o.useMemo(function(){return function(e){var t=e||{},n=t.label,o=t.value;return{_title:n?[n]:["title","label"],value:o||"value",key:o||"value",children:t.children||"children"}}(N)},[JSON.stringify(N)]),be=Ln("",{value:void 0!==g?g:v,postState:function(e){return e||""}}),ye=(0,ke.A)(be,2),Ce=ye[0],xe=ye[1],$e=CG(j,P,M),we=function(e,t){return o.useMemo(function(){var n=zA(e,{fieldNames:t,initWrapper:function(e){return(0,d.A)((0,d.A)({},e),{},{valueEntities:new Map})},processEntity:function(e,n){var o=e.node[t.value];n.valueEntities.set(o,e)}});return n},[e,t])}($e,he),Se=we.keyEntities,Ee=we.valueEntities,Oe=o.useCallback(function(e){var t=[],n=[];return e.forEach(function(e){Ee.has(e)?n.push(e):t.push(e)}),{missingRawValues:t,existRawValues:n}},[Ee]),Ae=bG($e,Ce,{fieldNames:he,treeNodeFilterProp:$,filterTreeNode:C}),Ie=o.useCallback(function(e){if(e){if(S)return e[S];for(var t=he._title,n=0;n<t.length;n+=1){var o=e[t[n]];if(void 0!==o)return o}}},[he,S]),Ne=o.useCallback(function(e){var t=function(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}(e);return t.map(function(e){return function(e){return!e||"object"!==(0,p.A)(e)}(e)?{value:e}:e})},[]),Me=o.useCallback(function(e){return Ne(e).map(function(e){var t,n,o=e.label,r=e.value,i=e.halfChecked,a=Ee.get(r);if(a)o=oe?oe(a.node):null!==(n=o)&&void 0!==n?n:Ie(a.node),t=a.node.disabled;else if(void 0===o){o=Ne(me).find(function(e){return e.value===r}).label}return{label:o,value:r,halfChecked:i,disabled:t}})},[Ee,Ie,Ne,me]),je=o.useMemo(function(){return Ne(null===me?[]:me)},[Ne,me]),Pe=o.useMemo(function(){var e=[],t=[];return je.forEach(function(n){n.halfChecked?t.push(n):e.push(n)}),[e,t]},[je]),Re=(0,ke.A)(Pe,2),Te=Re[0],ze=Re[1],Be=o.useMemo(function(){return Te.map(function(e){return e.value})},[Te]),He=fG(Te,ze,le,Se),De=(0,ke.A)(He,2),Le=De[0],Fe=De[1],We=function(e){var t=o.useRef({valueLabels:new Map});return o.useMemo(function(){var n=t.current.valueLabels,o=new Map,r=e.map(function(e){var t=e.value,r=e.label,i=null!==r&&void 0!==r?r:n.get(t);return o.set(t,i),(0,d.A)((0,d.A)({},e),{},{label:i})});return t.current.valueLabels=o,[r]},[e])}(o.useMemo(function(){var e=MG(Le,ve,Se,he).map(function(e){var t,n;return null!==(t=null===(n=Se[e])||void 0===n||null===(n=n.node)||void 0===n?void 0:n[he.value])&&void 0!==t?t:e}).map(function(e){var t=Te.find(function(t){return t.value===e}),n=A?null===t||void 0===t?void 0:t.label:null===oe||void 0===oe?void 0:oe(t);return{value:e,label:n}}),t=Me(e),n=t[0];return!de&&n&&SG(n.value)&&SG(n.label)?[]:t.map(function(e){var t;return(0,d.A)((0,d.A)({},e),{},{label:null!==(t=e.label)&&void 0!==t?t:e.value})})},[he,de,Le,Te,Me,ve,Se])),_e=(0,ke.A)(We,1)[0],Ke=o.useMemo(function(){return!de||"SHOW_CHILD"!==ve&&!O&&E?null:I},[I,de,O,ve,E]),qe=yG(function(e,t,n){var r=MG(e,ve,Se,he);if(!(Ke&&r.length>Ke)){var i=Me(e);if(ge(i),y&&xe(""),s){var a=e;le&&(a=r.map(function(e){var t=Ee.get(e);return t?t.node[he.value]:e}));var l=t||{triggerValue:void 0,selected:void 0},c=l.triggerValue,d=l.selected,p=a;if(O){var f=ze.filter(function(e){return!a.includes(e.value)});p=[].concat(se(p),se(f))}var m=Me(p),g={preValue:Te,triggerValue:c},v=!0;(O||"selection"===n&&!d)&&(v=!1),function(e,t,n,r,i,a){var l=null,c=null;function s(){c||(c=[],function e(r){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"0",s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return r.map(function(r,u){var d="".concat(i,"-").concat(u),p=r[a.value],f=n.includes(p),m=e(r[a.children]||[],d,f),g=o.createElement(mG,r,m.map(function(e){return e.node}));if(t===p&&(l=g),f){var v={pos:d,node:g,children:m};return s||c.push(v),v}return null}).filter(function(e){return e})}(r),c.sort(function(e,t){var o=e.node.props.value,r=t.node.props.value;return n.indexOf(o)-n.indexOf(r)}))}Object.defineProperty(e,"triggerNode",{get:function(){return(0,u.Ay)(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),s(),l}}),Object.defineProperty(e,"allCheckedNodes",{get:function(){return(0,u.Ay)(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),s(),i?c:c.map(function(e){return e.node})}})}(g,c,e,$e,v,he),ce?g.checked=d:g.selected=d;var h=ue?m:m.map(function(e){return e.value});s(de?h:h[0],ue?null:m.map(function(e){return e.label}),g)}}}),Ve=o.useCallback(function(e,t){var n,o=t.selected,r=t.source,i=Se[e],a=null===i||void 0===i?void 0:i.node,l=null!==(n=null===a||void 0===a?void 0:a[he.value])&&void 0!==n?n:e;if(de){var c=o?[].concat(se(Be),[l]):Le.filter(function(e){return e!==l});if(le){var s,u=Oe(c),d=u.missingRawValues,p=u.existRawValues.map(function(e){return Ee.get(e).key});if(o)s=WA(p,!0,Se).checkedKeys;else s=WA(p,{checked:!1,halfCheckedKeys:Fe},Se).checkedKeys;c=[].concat(se(d),se(s.map(function(e){return Se[e].node[he.value]})))}qe(c,{selected:o,triggerValue:l},r||"option")}else qe([l],{selected:!0,triggerValue:l},"option");o||!de?null===f||void 0===f||f(l,hG(a)):null===m||void 0===m||m(l,hG(a))},[Oe,Ee,Se,he,de,Be,qe,le,f,m,Le,Fe,I]),Xe=o.useCallback(function(e){if(Y){var t={};Object.defineProperty(t,"documentClickClose",{get:function(){return(0,u.Ay)(!1,"Second param of `onDropdownVisibleChange` has been removed."),!1}}),Y(e,t)}},[Y]),Ge=yG(function(e,t){var n=e.map(function(e){return e.value});"clear"!==t.type?t.values.length&&Ve(t.values[0].value,{selected:!1,source:"selection"}):qe(n,{},"selection")}),Ye=o.useMemo(function(){return{virtual:W,dropdownMatchSelectWidth:Q,listHeight:K,listItemHeight:V,listItemScrollOffset:G,treeData:Ae,fieldNames:he,onSelect:Ve,treeExpandAction:F,treeTitleRender:oe,onPopupScroll:re,leftMaxCount:void 0===I?null:I-_e.length,leafCountOnly:"SHOW_CHILD"===ve&&!O&&!!E,valueEntities:Ee}},[W,Q,K,V,G,Ae,he,Ve,F,oe,re,I,_e.length,ve,O,E,Ee]),Ue=o.useMemo(function(){return{checkable:ce,loadData:R,treeLoadedKeys:T,onTreeLoad:z,checkedKeys:Le,halfCheckedKeys:Fe,treeDefaultExpandAll:B,treeExpandedKeys:H,treeDefaultExpandedKeys:D,onTreeExpand:L,treeIcon:J,treeMotion:ne,showTreeIcon:ee,switcherIcon:te,treeLine:Z,treeNodeFilterProp:$,keyEntities:Se}},[ce,R,T,z,Le,Fe,B,H,D,L,J,ne,ee,te,Z,$,Se]);return o.createElement($G.Provider,{value:Ye},o.createElement(xG.Provider,{value:Ue},o.createElement(bv,(0,l.A)({ref:t},ie,{id:ae,prefixCls:i,mode:de?"multiple":void 0,displayValues:_e,onDisplayValuesChange:Ge,searchValue:Ce,onSearch:function(e){xe(e),null===h||void 0===h||h(e)},OptionList:OG,emptyOptions:!$e.length,onDropdownVisibleChange:Xe,dropdownMatchSelectWidth:Q}))))});var RG=PG;RG.TreeNode=mG,RG.SHOW_ALL=AG,RG.SHOW_PARENT=IG,RG.SHOW_CHILD=NG;const TG=RG,zG=e=>{const{componentCls:t,treePrefixCls:n,colorBgElevated:o}=e,r=`.${n}`;return[{[`${t}-dropdown`]:[{padding:`${nt(e.paddingXS)} ${nt(e.calc(e.paddingXS).div(2).equal())}`},dq(n,Jn(e,{colorBgContainer:o}),!1),{[r]:{borderRadius:0,[`${r}-list-holder-inner`]:{alignItems:"stretch",[`${r}-treenode`]:{[`${r}-node-content-wrapper`]:{flex:"auto"}}}}},uI(`${n}-checkbox`,e),{"&-rtl":{direction:"rtl",[`${r}-switcher${r}-switcher_close`]:{[`${r}-switcher-icon svg`]:{transform:"rotate(90deg)"}}}}]}]};var BG=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const HG=o.forwardRef((e,t)=>{var n,r,i,l,c;const{prefixCls:s,size:u,disabled:d,bordered:p=!0,style:f,className:m,rootClassName:g,treeCheckable:v,multiple:h,listHeight:b=256,listItemHeight:y,placement:C,notFoundContent:x,switcherIcon:$,treeLine:w,getPopupContainer:S,popupClassName:k,dropdownClassName:E,treeIcon:O=!1,transitionName:A,choiceTransitionName:I="",status:N,treeExpandAction:M,builtinPlacements:j,dropdownMatchSelectWidth:P,popupMatchSelectWidth:R,allowClear:T,variant:z,dropdownStyle:B,dropdownRender:H,popupRender:D,onDropdownVisibleChange:L,onOpenChange:F,tagRender:W,maxCount:_,showCheckedStrategy:K,treeCheckStrictly:q,styles:V,classNames:X}=e,G=BG(e,["prefixCls","size","disabled","bordered","style","className","rootClassName","treeCheckable","multiple","listHeight","listItemHeight","placement","notFoundContent","switcherIcon","treeLine","getPopupContainer","popupClassName","dropdownClassName","treeIcon","transitionName","choiceTransitionName","status","treeExpandAction","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","allowClear","variant","dropdownStyle","dropdownRender","popupRender","onDropdownVisibleChange","onOpenChange","tagRender","maxCount","showCheckedStrategy","treeCheckStrictly","styles","classNames"]),{getPopupContainer:Y,getPrefixCls:U,renderEmpty:Q,direction:Z,virtual:J,popupMatchSelectWidth:ee,popupOverflow:te}=o.useContext(xe),{styles:ne,classNames:oe}=Se("treeSelect"),[,re]=Ko(),ie=null!==y&&void 0!==y?y:(null===re||void 0===re?void 0:re.controlHeightSM)+(null===re||void 0===re?void 0:re.paddingXXS);const ae=U(),le=U("select",s),ce=U("select-tree",s),se=U("tree-select",s),{compactSize:ue,compactItemClassnames:de}=mc(le,Z),pe=Mi(le),fe=Mi(se),[me,ge,ve]=sb(le,pe),[he]=function(e,t,n){return qo("TreeSelect",e=>{const n=Jn(e,{treePrefixCls:t});return[zG(n)]},pq)(e,n)}(se,ce,fe),[be,ye]=yh("treeSelect",z,p),Ce=a()((null===(n=null===X||void 0===X?void 0:X.popup)||void 0===n?void 0:n.root)||(null===(r=null===oe||void 0===oe?void 0:oe.popup)||void 0===r?void 0:r.root)||k||E,`${se}-dropdown`,{[`${se}-dropdown-rtl`]:"rtl"===Z},g,oe.root,null===X||void 0===X?void 0:X.root,ve,pe,fe,ge),$e=(null===(i=null===V||void 0===V?void 0:V.popup)||void 0===i?void 0:i.root)||(null===(l=null===ne||void 0===ne?void 0:ne.popup)||void 0===l?void 0:l.root)||B,we=D||H,ke=F||L,Ee=!(!v&&!h),Oe=o.useMemo(()=>{if(!_||("SHOW_ALL"!==K||q)&&"SHOW_PARENT"!==K)return _},[_,K,q]),Ae=mb(e.suffixIcon,e.showArrow),Ie=null!==(c=null!==R&&void 0!==R?R:P)&&void 0!==c?c:ee,{status:Ne,hasFeedback:Me,isFormItemInput:je,feedbackIcon:Pe}=o.useContext(Ep),Re=ch(Ne,N),{suffixIcon:Te,removeIcon:ze,clearIcon:Be}=fb(Object.assign(Object.assign({},G),{multiple:Ee,showSuffixIcon:Ae,hasFeedback:Me,feedbackIcon:Pe,prefixCls:le,componentName:"TreeSelect"})),He=!0===T?{clearIcon:Be}:T;let De;De=void 0!==x?x:(null===Q||void 0===Q?void 0:Q("Select"))||o.createElement(bh,{componentName:"Select"});const Le=Ul(G,["suffixIcon","removeIcon","clearIcon","itemIcon","switcherIcon","style"]),Fe=o.useMemo(()=>void 0!==C?C:"rtl"===Z?"bottomRight":"bottomLeft",[C,Z]),We=lc(e=>{var t;return null!==(t=null!==u&&void 0!==u?u:ue)&&void 0!==t?t:e}),_e=o.useContext(Ga),Ke=null!==d&&void 0!==d?d:_e,qe=a()(!s&&se,{[`${le}-lg`]:"large"===We,[`${le}-sm`]:"small"===We,[`${le}-rtl`]:"rtl"===Z,[`${le}-${be}`]:ye,[`${le}-in-form-item`]:je},lh(le,Re,Me),de,m,g,oe.root,null===X||void 0===X?void 0:X.root,ve,pe,fe,ge),[Ve]=fa("SelectLike",null===$e||void 0===$e?void 0:$e.zIndex);return me(he(o.createElement(TG,Object.assign({virtual:J,disabled:Ke},Le,{dropdownMatchSelectWidth:Ie,builtinPlacements:Ch(j,te),ref:t,prefixCls:le,className:qe,style:Object.assign(Object.assign({},null===V||void 0===V?void 0:V.root),f),listHeight:b,listItemHeight:ie,treeCheckable:v?o.createElement("span",{className:`${le}-tree-checkbox-inner`}):v,treeLine:!!w,suffixIcon:Te,multiple:Ee,placement:Fe,removeIcon:ze,allowClear:He,switcherIcon:e=>o.createElement(bq,{prefixCls:ce,switcherIcon:$,treeNodeProps:e,showLine:w}),showTreeIcon:O,notFoundContent:De,getPopupContainer:S||Y,treeMotion:null,dropdownClassName:Ce,dropdownStyle:Object.assign(Object.assign({},$e),{zIndex:Ve}),dropdownRender:we,onDropdownVisibleChange:ke,choiceTransitionName:Xl(ae,"",I),transitionName:Xl(ae,"slide-up",A),treeExpandAction:M,tagRender:Ee?W:void 0,maxCount:Oe,showCheckedStrategy:K,treeCheckStrictly:q}))))}),DG=HG,LG=Qm(DG,"dropdownAlign",e=>Ul(e,["visible"]));DG.TreeNode=mG,DG.SHOW_ALL=AG,DG.SHOW_PARENT=IG,DG.SHOW_CHILD=NG,DG._InternalPanelDoNotUseOrYouWillBeFired=LG;const FG=DG;var WG=n(77402),_G=n(96306);const KG=e=>{const t={};return[1,2,3,4,5].forEach(n=>{t[`\n h${n}&,\n div&-h${n},\n div&-h${n} > textarea,\n h${n}\n `]=((e,t,n,o)=>{const{titleMarginBottom:r,fontWeightStrong:i}=o;return{marginBottom:r,color:n,fontWeight:i,fontSize:e,lineHeight:t}})(e[`fontSizeHeading${n}`],e[`lineHeightHeading${n}`],e.colorTextHeading,e)}),t},qG=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},vo(e)),{userSelect:"text",[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},VG=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:$o.bK[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}}),XG=e=>{const{componentCls:t,paddingSM:n}=e,o=n;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),marginTop:e.calc(o).mul(-1).equal(),marginBottom:`calc(1em - ${nt(o)})`},[`${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"}}}},GG=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),YG=e=>{const{componentCls:t,titleMarginTop:n}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success`]:{color:e.colorSuccessText},[`&${t}-warning`]:{color:e.colorWarningText},[`&${t}-danger`]:{color:e.colorErrorText,"a&:active, a&:focus":{color:e.colorErrorTextActive},"a&:hover":{color:e.colorErrorTextHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n div&,\n p\n ":{marginBottom:"1em"}},KG(e)),{[`\n & + h1${t},\n & + h2${t},\n & + h3${t},\n & + h4${t},\n & + h5${t}\n `]:{marginTop:n},"\n div,\n ul,\n li,\n p,\n h1,\n h2,\n h3,\n h4,\n h5":{"\n + h1,\n + h2,\n + h3,\n + h4,\n + h5\n ":{marginTop:n}}}),VG(e)),qG(e)),{[`\n ${t}-expand,\n ${t}-collapse,\n ${t}-edit,\n ${t}-copy\n `]:Object.assign(Object.assign({},vo(e)),{marginInlineStart:e.marginXXS})}),XG(e)),GG(e)),{"\n a&-ellipsis,\n span&-ellipsis\n ":{display:"inline-block",maxWidth:"100%"},"&-ellipsis-single-line":{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"},"> code":{paddingBlock:0,maxWidth:"calc(100% - 1.2em)",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"bottom",boxSizing:"content-box"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),{"&-rtl":{direction:"rtl"}})}},UG=qo("Typography",e=>[YG(e)],()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"})),QG=e=>{const{prefixCls:t,"aria-label":n,className:r,style:i,direction:l,maxLength:c,autoSize:s=!0,value:u,onSave:d,onCancel:p,onEnd:f,component:m,enterIcon:g=o.createElement(_G.A,null)}=e,v=o.useRef(null),h=o.useRef(!1),b=o.useRef(null),[y,C]=o.useState(u);o.useEffect(()=>{C(u)},[u]),o.useEffect(()=>{var e;if(null===(e=v.current)||void 0===e?void 0:e.resizableTextArea){const{textArea:e}=v.current.resizableTextArea;e.focus();const{length:t}=e.value;e.setSelectionRange(t,t)}},[]);const x=()=>{d(y.trim())},[$,w,S]=UG(t),k=a()(t,`${t}-edit-content`,{[`${t}-rtl`]:"rtl"===l,[`${t}-${m}`]:!!m},r,w,S);return $(o.createElement("div",{className:k,style:i},o.createElement(RB,{ref:v,maxLength:c,value:y,onChange:e=>{let{target:t}=e;C(t.value.replace(/[\n\r]/g,""))},onKeyDown:e=>{let{keyCode:t}=e;h.current||(b.current=t)},onKeyUp:e=>{let{keyCode:t,ctrlKey:n,altKey:o,metaKey:r,shiftKey:i}=e;b.current!==t||h.current||n||o||r||i||(t===Xi.ENTER?(x(),null===f||void 0===f||f()):t===Xi.ESC&&p())},onCompositionStart:()=>{h.current=!0},onCompositionEnd:()=>{h.current=!1},onBlur:()=>{x()},"aria-label":n,rows:1,autoSize:s}),null!==g?ii(g,{className:`${t}-edit-content-confirm`}):null))};var ZG=n(75270),JG=n.n(ZG),eY=function(e,t,n,o){return new(n||(n=Promise))(function(r,i){function a(e){try{c(o.next(e))}catch($i){i($i)}}function l(e){try{c(o.throw(e))}catch($i){i($i)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,l)}c((o=o.apply(e,t||[])).next())})};const tY=e=>{let{copyConfig:t,children:n}=e;const[r,i]=o.useState(!1),[a,l]=o.useState(!1),c=o.useRef(null),s=()=>{c.current&&clearTimeout(c.current)},u={};t.format&&(u.format=t.format),o.useEffect(()=>s,[]);const d=Bn(e=>eY(void 0,void 0,void 0,function*(){var o;null===e||void 0===e||e.preventDefault(),null===e||void 0===e||e.stopPropagation(),l(!0);try{const r="function"===typeof t.text?yield t.text():t.text;JG()(r||lD(n,!0).join("")||"",u),l(!1),i(!0),s(),c.current=setTimeout(()=>{i(!1)},3e3),null===(o=t.onCopy)||void 0===o||o.call(t,e)}catch(r){throw l(!1),r}}));return{copied:r,copyLoading:a,onClick:d}};function nY(e,t){return o.useMemo(()=>{const n=!!e;return[n,Object.assign(Object.assign({},t),n&&"object"===typeof e?e:null)]},[e])}const oY=e=>{const t=(0,o.useRef)(void 0);return(0,o.useEffect)(()=>{t.current=e}),t.current},rY=(e,t,n)=>(0,o.useMemo)(()=>!0===e?{title:null!==t&&void 0!==t?t:n}:(0,o.isValidElement)(e)?{title:e}:"object"===typeof e?Object.assign({title:null!==t&&void 0!==t?t:n},e):{title:e},[e,t,n]);var iY=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const aY=o.forwardRef((e,t)=>{const{prefixCls:n,component:r="article",className:i,rootClassName:l,setContentRef:c,children:s,direction:u,style:d}=e,p=iY(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:f,direction:m,className:g,style:v}=Se("typography"),h=null!==u&&void 0!==u?u:m,y=c?(0,b.K4)(t,c):t,C=f("typography",n);const[x,$,w]=UG(C),S=a()(C,g,{[`${C}-rtl`]:"rtl"===h},i,l,$,w),k=Object.assign(Object.assign({},v),d);return x(o.createElement(r,Object.assign({className:S,style:k,ref:y},p),s))});const lY=aY;var cY=n(44283);function sY(e){return!1===e?[!1,!1]:Array.isArray(e)?e:[e]}function uY(e,t,n){return!0===e||void 0===e?t:e||n&&t}const dY=e=>["string","number"].includes(typeof e),pY=e=>{let{prefixCls:t,copied:n,locale:r,iconOnly:i,tooltips:l,icon:c,tabIndex:s,onCopy:u,loading:d}=e;const p=sY(l),f=sY(c),{copied:m,copy:g}=null!==r&&void 0!==r?r:{},v=n?m:g,h=uY(p[n?1:0],v),b="string"===typeof h?h:v;return o.createElement(hy,{title:h},o.createElement("button",{type:"button",className:a()(`${t}-copy`,{[`${t}-copy-success`]:n,[`${t}-copy-icon-only`]:i}),onClick:u,"aria-label":b,tabIndex:s},n?uY(f[1],o.createElement(ub.A,null),!0):uY(f[0],d?o.createElement(la.A,null):o.createElement(cY.A,null),!0)))},fY=o.forwardRef((e,t)=>{let{style:n,children:r}=e;const i=o.useRef(null);return o.useImperativeHandle(t,()=>({isExceed:()=>{const e=i.current;return e.scrollHeight>e.clientHeight},getHeight:()=>i.current.clientHeight})),o.createElement("span",{"aria-hidden":!0,ref:i,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},n)},r)});function mY(e,t){let n=0;const o=[];for(let r=0;r<e.length;r+=1){if(n===t)return o;const i=e[r],a=n+(dY(i)?String(i).length:1);if(a>t){const e=t-n;return o.push(String(i).slice(0,e)),o}o.push(i),n=a}return e}const gY=0,vY=4,hY={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function bY(e){const{enableMeasure:t,width:n,text:r,children:i,rows:a,expanded:l,miscDeps:c,onEllipsis:u}=e,d=o.useMemo(()=>s(r),[r]),p=o.useMemo(()=>(e=>e.reduce((e,t)=>e+(dY(t)?String(t).length:1),0))(d),[r]),f=o.useMemo(()=>i(d,!1),[r]),[m,g]=o.useState(null),v=o.useRef(null),h=o.useRef(null),b=o.useRef(null),y=o.useRef(null),C=o.useRef(null),[x,$]=o.useState(!1),[w,S]=o.useState(gY),[k,E]=o.useState(0),[O,A]=o.useState(null);ut(()=>{S(t&&n&&p?1:gY)},[n,r,a,t,d]),ut(()=>{var e,t,n,o;if(1===w){S(2);const e=h.current&&getComputedStyle(h.current).whiteSpace;A(e)}else if(2===w){const r=!!(null===(e=b.current)||void 0===e?void 0:e.isExceed());S(r?3:vY),g(r?[0,p]:null),$(r);const i=(null===(t=b.current)||void 0===t?void 0:t.getHeight())||0,l=1===a?0:(null===(n=y.current)||void 0===n?void 0:n.getHeight())||0,c=(null===(o=C.current)||void 0===o?void 0:o.getHeight())||0,s=Math.max(i,l+c);E(s+1),u(r)}},[w]);const I=m?Math.ceil((m[0]+m[1])/2):0;ut(()=>{var e;const[t,n]=m||[0,0];if(t!==n){const o=((null===(e=v.current)||void 0===e?void 0:e.getHeight())||0)>k;let r=I;n-t===1&&(r=o?t:n),g(o?[t,r]:[r,n])}},[m,I]);const N=o.useMemo(()=>{if(!t)return i(d,!1);if(3!==w||!m||m[0]!==m[1]){const e=i(d,!1);return[vY,gY].includes(w)?e:o.createElement("span",{style:Object.assign(Object.assign({},hY),{WebkitLineClamp:a})},e)}return i(l?d:mY(d,m[0]),x)},[l,w,m,d].concat(se(c))),M={width:n,margin:0,padding:0,whiteSpace:"nowrap"===O?"normal":"inherit"};return o.createElement(o.Fragment,null,N,2===w&&o.createElement(o.Fragment,null,o.createElement(fY,{style:Object.assign(Object.assign(Object.assign({},M),hY),{WebkitLineClamp:a}),ref:b},f),o.createElement(fY,{style:Object.assign(Object.assign(Object.assign({},M),hY),{WebkitLineClamp:a-1}),ref:y},f),o.createElement(fY,{style:Object.assign(Object.assign(Object.assign({},M),hY),{WebkitLineClamp:1}),ref:C},i([],!0))),3===w&&m&&m[0]!==m[1]&&o.createElement(fY,{style:Object.assign(Object.assign({},M),{top:400}),ref:v},i(mY(d,I),!0)),1===w&&o.createElement("span",{style:{whiteSpace:"inherit"},ref:h}))}const yY=e=>{let{enableEllipsis:t,isEllipsis:n,children:r,tooltipProps:i}=e;return(null===i||void 0===i?void 0:i.title)&&t?o.createElement(hy,Object.assign({open:!!n&&void 0},i),r):r};var CY=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const xY=["delete","mark","code","underline","strong","keyboard","italic"],$Y=o.forwardRef((e,t)=>{var n;const{prefixCls:r,className:i,style:l,type:c,disabled:u,children:d,ellipsis:p,editable:f,copyable:m,component:g,title:v}=e,h=CY(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:y,direction:C}=o.useContext(xe),[x]=Yl("Text"),$=o.useRef(null),w=o.useRef(null),S=y("typography",r),k=Ul(h,xY),[E,O]=nY(f),[A,I]=Ln(!1,{value:O.editing}),{triggerType:N=["icon"]}=O,M=e=>{var t;e&&(null===(t=O.onStart)||void 0===t||t.call(O)),I(e)},j=oY(A);ut(()=>{var e;!A&&j&&(null===(e=w.current)||void 0===e||e.focus())},[A]);const P=e=>{null===e||void 0===e||e.preventDefault(),M(!0)},R=e=>{var t;null===(t=O.onChange)||void 0===t||t.call(O,e),M(!1)},T=()=>{var e;null===(e=O.onCancel)||void 0===e||e.call(O),M(!1)},[z,B]=nY(m),{copied:H,copyLoading:D,onClick:L}=tY({copyConfig:B,children:d}),[F,W]=o.useState(!1),[_,K]=o.useState(!1),[q,V]=o.useState(!1),[X,G]=o.useState(!1),[Y,U]=o.useState(!0),[Q,Z]=nY(p,{expandable:!1,symbol:e=>e?null===x||void 0===x?void 0:x.collapse:null===x||void 0===x?void 0:x.expand}),[J,ee]=Ln(Z.defaultExpanded||!1,{value:Z.expanded}),te=Q&&(!J||"collapsible"===Z.expandable),{rows:ne=1}=Z,oe=o.useMemo(()=>te&&(void 0!==Z.suffix||Z.onEllipsis||Z.expandable||E||z),[te,Z,E,z]);ut(()=>{Q&&!oe&&(W(n_("webkitLineClamp")),K(n_("textOverflow")))},[oe,Q]);const[re,ae]=o.useState(te),le=o.useMemo(()=>!oe&&(1===ne?_:F),[oe,_,F]);ut(()=>{ae(le&&te)},[le,te]);const ce=te&&(re?X:q),ue=te&&1===ne&&re,de=te&&ne>1&&re,[pe,fe]=o.useState(0),me=e=>{var t;V(e),q!==e&&(null===(t=Z.onEllipsis)||void 0===t||t.call(Z,e))};o.useEffect(()=>{const e=$.current;if(Q&&re&&e){const t=function(e){const t=document.createElement("em");e.appendChild(t);const n=e.getBoundingClientRect(),o=t.getBoundingClientRect();return e.removeChild(t),n.left>o.left||o.right>n.right||n.top>o.top||o.bottom>n.bottom}(e);X!==t&&G(t)}},[Q,re,d,de,Y,pe]),o.useEffect(()=>{const e=$.current;if("undefined"===typeof IntersectionObserver||!e||!re||!te)return;const t=new IntersectionObserver(()=>{U(!!e.offsetParent)});return t.observe(e),()=>{t.disconnect()}},[re,te]);const ge=rY(Z.tooltip,O.text,d),ve=o.useMemo(()=>{if(Q&&!re)return[O.text,d,v,ge.title].find(dY)},[Q,re,v,ge.title,ce]);if(A)return o.createElement(QG,{value:null!==(n=O.text)&&void 0!==n?n:"string"===typeof d?d:"",onSave:R,onCancel:T,onEnd:O.onEnd,prefixCls:S,className:i,style:l,direction:C,component:g,maxLength:O.maxLength,autoSize:O.autoSize,enterIcon:O.enterIcon});const he=()=>{const{expandable:e,symbol:t}=Z;return e?o.createElement("button",{type:"button",key:"expand",className:`${S}-${J?"collapse":"expand"}`,onClick:e=>((e,t)=>{var n;ee(t.expanded),null===(n=Z.onExpand)||void 0===n||n.call(Z,e,t)})(e,{expanded:!J}),"aria-label":J?x.collapse:null===x||void 0===x?void 0:x.expand},"function"===typeof t?t(J):t):null},be=()=>{if(!E)return;const{icon:e,tooltip:t,tabIndex:n}=O,r=s(t)[0]||(null===x||void 0===x?void 0:x.edit),i="string"===typeof r?r:"";return N.includes("icon")?o.createElement(hy,{key:"edit",title:!1===t?"":r},o.createElement("button",{type:"button",ref:w,className:`${S}-edit`,onClick:P,"aria-label":i,tabIndex:n},e||o.createElement(WG.A,{role:"button"}))):null},ye=e=>[e&&he(),be(),z?o.createElement(pY,Object.assign({key:"copy"},B,{prefixCls:S,copied:H,locale:x,onCopy:L,loading:D,iconOnly:null===d||void 0===d})):null];return o.createElement(ie,{onResize:e=>{let{offsetWidth:t}=e;fe(t)},disabled:!te},n=>o.createElement(yY,{tooltipProps:ge,enableEllipsis:te,isEllipsis:ce},o.createElement(lY,Object.assign({className:a()({[`${S}-${c}`]:c,[`${S}-disabled`]:u,[`${S}-ellipsis`]:Q,[`${S}-ellipsis-single-line`]:ue,[`${S}-ellipsis-multiple-line`]:de},i),prefixCls:r,style:Object.assign(Object.assign({},l),{WebkitLineClamp:de?ne:void 0}),component:g,ref:(0,b.K4)(n,$,t),direction:C,onClick:N.includes("text")?P:void 0,"aria-label":null===ve||void 0===ve?void 0:ve.toString(),title:v},k),o.createElement(bY,{enableMeasure:te&&!re,text:d,rows:ne,width:pe,onEllipsis:me,expanded:J,miscDeps:[H,J,D,E,z,x].concat(se(xY.map(t=>e[t])))},(t,n)=>function(e,t){let{mark:n,code:r,underline:i,delete:a,strong:l,keyboard:c,italic:s}=e,u=t;function d(e,t){t&&(u=o.createElement(e,{},u))}return d("strong",l),d("u",i),d("del",a),d("code",r),d("mark",n),d("kbd",c),d("i",s),u}(e,o.createElement(o.Fragment,null,t.length>0&&n&&!J&&ve?o.createElement("span",{key:"show-content","aria-hidden":!0},t):t,(e=>[e&&!J&&o.createElement("span",{"aria-hidden":!0,key:"ellipsis"},"..."),Z.suffix,ye(e)])(n)))))))}),wY=$Y;var SY=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const kY=o.forwardRef((e,t)=>{var{ellipsis:n,rel:r}=e,i=SY(e,["ellipsis","rel"]);const a=Object.assign(Object.assign({},i),{rel:void 0===r&&"_blank"===i.target?"noopener noreferrer":r});return delete a.navigate,o.createElement(wY,Object.assign({},a,{ref:t,ellipsis:!!n,component:"a"}))}),EY=kY,OY=o.forwardRef((e,t)=>o.createElement(wY,Object.assign({ref:t},e,{component:"div"})));var AY=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const IY=o.forwardRef((e,t)=>{var{ellipsis:n}=e,r=AY(e,["ellipsis"]);const i=o.useMemo(()=>n&&"object"===typeof n?Ul(n,["expandable","rows"]):n,[n]);return o.createElement(wY,Object.assign({ref:t},r,{ellipsis:i,component:"span"}))});var NY=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const MY=[1,2,3,4,5],jY=o.forwardRef((e,t)=>{const{level:n=1}=e,r=NY(e,["level"]);const i=MY.includes(n)?`h${n}`:"h1";return o.createElement(wY,Object.assign({ref:t},r,{component:i}))}),PY=lY;PY.Text=IY,PY.Link=EY,PY.Title=jY,PY.Paragraph=OY;const RY=PY,TY=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),o=e.name||"",r=e.type||"",i=r.replace(/\/.*$/,"");return n.some(function(e){var t=e.trim();if(/^\*(\/\*)?$/.test(e))return!0;if("."===t.charAt(0)){var n=o.toLowerCase(),a=t.toLowerCase(),l=[a];return".jpg"!==a&&".jpeg"!==a||(l=[".jpg",".jpeg"]),l.some(function(e){return n.endsWith(e)})}return/\/\*$/.test(t)?i===t.replace(/\/.*$/,""):r===t||!!/^\w+$/.test(t)&&((0,u.Ay)(!1,"Upload takes an invalidate 'accept' type '".concat(t,"'.Skip for check.")),!0)})}return!0};function zY(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch($i){return t}}function BY(e){var t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(t){t.total>0&&(t.percent=t.loaded/t.total*100),e.onProgress(t)});var n=new FormData;e.data&&Object.keys(e.data).forEach(function(t){var o=e.data[t];Array.isArray(o)?o.forEach(function(e){n.append("".concat(t,"[]"),e)}):n.append(t,o)}),e.file instanceof Blob?n.append(e.filename,e.file,e.file.name):n.append(e.filename,e.file),t.onerror=function(t){e.onError(t)},t.onload=function(){return t.status<200||t.status>=300?e.onError(function(e,t){var n="cannot ".concat(e.method," ").concat(e.action," ").concat(t.status,"'"),o=new Error(n);return o.status=t.status,o.method=e.method,o.url=e.action,o}(e,t),zY(t)):e.onSuccess(zY(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var o=e.headers||{};return null!==o["X-Requested-With"]&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(o).forEach(function(e){null!==o[e]&&t.setRequestHeader(e,o[e])}),t.send(n),{abort:function(){t.abort()}}}var HY=function(){var e=Al(El().mark(function e(t,n){var o,r,i,a,l,c,s,u;return El().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:c=function(){return(c=Al(El().mark(function e(t){return El().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(e){t.file(function(o){n(o)?(t.fullPath&&!o.webkitRelativePath&&(Object.defineProperties(o,{webkitRelativePath:{writable:!0}}),o.webkitRelativePath=t.fullPath.replace(/^\//,""),Object.defineProperties(o,{webkitRelativePath:{writable:!1}})),e(o)):e(null)})}));case 1:case"end":return e.stop()}},e)}))).apply(this,arguments)},l=function(e){return c.apply(this,arguments)},a=function(){return a=Al(El().mark(function e(t){var n,o,r,i,a;return El().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:n=t.createReader(),o=[];case 2:return e.next=5,new Promise(function(e){n.readEntries(e,function(){return e([])})});case 5:if(r=e.sent,i=r.length){e.next=9;break}return e.abrupt("break",12);case 9:for(a=0;a<i;a++)o.push(r[a]);e.next=2;break;case 12:return e.abrupt("return",o);case 13:case"end":return e.stop()}},e)})),a.apply(this,arguments)},i=function(e){return a.apply(this,arguments)},o=[],r=[],t.forEach(function(e){return r.push(e.webkitGetAsEntry())}),s=function(){var e=Al(El().mark(function e(t,n){var a,c;return El().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return");case 2:if(t.path=n||"",!t.isFile){e.next=10;break}return e.next=6,l(t);case 6:(a=e.sent)&&o.push(a),e.next=15;break;case 10:if(!t.isDirectory){e.next=15;break}return e.next=13,i(t);case 13:c=e.sent,r.push.apply(r,se(c));case 15:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}(),u=0;case 9:if(!(u<r.length)){e.next=15;break}return e.next=12,s(r[u]);case 12:u++,e.next=9;break;case 15:return e.abrupt("return",o);case 16:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}();const DY=HY;var LY=+new Date,FY=0;function WY(){return"rc-upload-".concat(LY,"-").concat(++FY)}var _Y=["component","prefixCls","className","classNames","disabled","id","name","style","styles","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],KY=function(e){Y(n,e);var t=ee(n);function n(){var e;K(this,n);for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];return e=t.call.apply(t,[this].concat(r)),(0,Ee.A)(Z(e),"state",{uid:WY()}),(0,Ee.A)(Z(e),"reqs",{}),(0,Ee.A)(Z(e),"fileInput",void 0),(0,Ee.A)(Z(e),"_isMounted",void 0),(0,Ee.A)(Z(e),"onChange",function(t){var n=e.props,o=n.accept,r=n.directory,i=se(t.target.files).filter(function(e){return!r||TY(e,o)});e.uploadFiles(i),e.reset()}),(0,Ee.A)(Z(e),"onClick",function(t){var n=e.fileInput;if(n){var o=t.target,r=e.props.onClick;if(o&&"BUTTON"===o.tagName)n.parentNode.focus(),o.blur();n.click(),r&&r(t)}}),(0,Ee.A)(Z(e),"onKeyDown",function(t){"Enter"===t.key&&e.onClick(t)}),(0,Ee.A)(Z(e),"onDataTransferFiles",function(){var t=Al(El().mark(function t(n,o){var r,i,a,l,c,s,u;return El().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e.props,i=r.multiple,a=r.accept,l=r.directory,c=se(n.items||[]),((s=se(n.files||[])).length>0||c.some(function(e){return"file"===e.kind}))&&(null===o||void 0===o||o()),!l){t.next=11;break}return t.next=7,DY(Array.prototype.slice.call(c),function(t){return TY(t,e.props.accept)});case 7:s=t.sent,e.uploadFiles(s),t.next=14;break;case 11:u=se(s).filter(function(e){return TY(e,a)}),!1===i&&(u=s.slice(0,1)),e.uploadFiles(u);case 14:case"end":return t.stop()}},t)}));return function(e,n){return t.apply(this,arguments)}}()),(0,Ee.A)(Z(e),"onFilePaste",function(){var t=Al(El().mark(function t(n){var o;return El().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(e.props.pastable){t.next=3;break}return t.abrupt("return");case 3:if("paste"!==n.type){t.next=6;break}return o=n.clipboardData,t.abrupt("return",e.onDataTransferFiles(o,function(){n.preventDefault()}));case 6:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}()),(0,Ee.A)(Z(e),"onFileDragOver",function(e){e.preventDefault()}),(0,Ee.A)(Z(e),"onFileDrop",function(){var t=Al(El().mark(function t(n){var o;return El().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(n.preventDefault(),"drop"!==n.type){t.next=4;break}return o=n.dataTransfer,t.abrupt("return",e.onDataTransferFiles(o));case 4:case"end":return t.stop()}},t)}));return function(e){return t.apply(this,arguments)}}()),(0,Ee.A)(Z(e),"uploadFiles",function(t){var n=se(t),o=n.map(function(t){return t.uid=WY(),e.processFile(t,n)});Promise.all(o).then(function(t){var n=e.props.onBatchStart;null===n||void 0===n||n(t.map(function(e){return{file:e.origin,parsedFile:e.parsedFile}})),t.filter(function(e){return null!==e.parsedFile}).forEach(function(t){e.post(t)})})}),(0,Ee.A)(Z(e),"processFile",function(){var t=Al(El().mark(function t(n,o){var r,i,a,l,c,s,u,d,f;return El().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(r=e.props.beforeUpload,i=n,!r){t.next=14;break}return t.prev=3,t.next=6,r(n,o);case 6:i=t.sent,t.next=12;break;case 9:t.prev=9,t.t0=t.catch(3),i=!1;case 12:if(!1!==i){t.next=14;break}return t.abrupt("return",{origin:n,parsedFile:null,action:null,data:null});case 14:if("function"!==typeof(a=e.props.action)){t.next=21;break}return t.next=18,a(n);case 18:l=t.sent,t.next=22;break;case 21:l=a;case 22:if("function"!==typeof(c=e.props.data)){t.next=29;break}return t.next=26,c(n);case 26:s=t.sent,t.next=30;break;case 29:s=c;case 30:return u="object"!==(0,p.A)(i)&&"string"!==typeof i||!i?n:i,d=u instanceof File?u:new File([u],n.name,{type:n.type}),(f=d).uid=n.uid,t.abrupt("return",{origin:n,data:s,parsedFile:f,action:l});case 35:case"end":return t.stop()}},t,null,[[3,9]])}));return function(e,n){return t.apply(this,arguments)}}()),(0,Ee.A)(Z(e),"saveFileInput",function(t){e.fileInput=t}),e}return X(n,[{key:"componentDidMount",value:function(){this._isMounted=!0,this.props.pastable&&document.addEventListener("paste",this.onFilePaste)}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort(),document.removeEventListener("paste",this.onFilePaste)}},{key:"componentDidUpdate",value:function(e){var t=this.props.pastable;t&&!e.pastable?document.addEventListener("paste",this.onFilePaste):!t&&e.pastable&&document.removeEventListener("paste",this.onFilePaste)}},{key:"post",value:function(e){var t=this,n=e.data,o=e.origin,r=e.action,i=e.parsedFile;if(this._isMounted){var a=this.props,l=a.onStart,c=a.customRequest,s=a.name,u=a.headers,d=a.withCredentials,p=a.method,f=o.uid,m=c||BY,g={action:r,filename:s,data:n,file:i,headers:u,withCredentials:d,method:p||"post",onProgress:function(e){var n=t.props.onProgress;null===n||void 0===n||n(e,i)},onSuccess:function(e,n){var o=t.props.onSuccess;null===o||void 0===o||o(e,i,n),delete t.reqs[f]},onError:function(e,n){var o=t.props.onError;null===o||void 0===o||o(e,n,i),delete t.reqs[f]}};l(o),this.reqs[f]=m(g)}}},{key:"reset",value:function(){this.setState({uid:WY()})}},{key:"abort",value:function(e){var t=this.reqs;if(e){var n=e.uid?e.uid:e;t[n]&&t[n].abort&&t[n].abort(),delete t[n]}else Object.keys(t).forEach(function(e){t[e]&&t[e].abort&&t[e].abort(),delete t[e]})}},{key:"render",value:function(){var e=this.props,t=e.component,n=e.prefixCls,o=e.className,i=e.classNames,c=void 0===i?{}:i,s=e.disabled,u=e.id,p=e.name,f=e.style,m=e.styles,g=void 0===m?{}:m,v=e.multiple,h=e.accept,b=e.capture,y=e.children,C=e.directory,x=e.openFileDialogOnClick,$=e.onMouseEnter,w=e.onMouseLeave,S=e.hasControlInside,k=(0,cr.A)(e,_Y),E=a()((0,Ee.A)((0,Ee.A)((0,Ee.A)({},n,!0),"".concat(n,"-disabled"),s),o,o)),O=C?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},A=s?{}:{onClick:x?this.onClick:function(){},onKeyDown:x?this.onKeyDown:function(){},onMouseEnter:$,onMouseLeave:w,onDrop:this.onFileDrop,onDragOver:this.onFileDragOver,tabIndex:S?void 0:"0"};return r().createElement(t,(0,l.A)({},A,{className:E,role:S?void 0:"button",style:f}),r().createElement("input",(0,l.A)({},ni(k,{aria:!0,data:!0}),{id:u,name:p,disabled:s,type:"file",ref:this.saveFileInput,onClick:function(e){return e.stopPropagation()},key:this.state.uid,style:(0,d.A)({display:"none"},g.input),className:c.input,accept:h},O,{multiple:v,onChange:this.onChange},null!=b?{capture:b}:{})),y)}}]),n}(o.Component);const qY=KY;function VY(){}var XY=function(e){Y(n,e);var t=ee(n);function n(){var e;K(this,n);for(var o=arguments.length,r=new Array(o),i=0;i<o;i++)r[i]=arguments[i];return e=t.call.apply(t,[this].concat(r)),(0,Ee.A)(Z(e),"uploader",void 0),(0,Ee.A)(Z(e),"saveUploader",function(t){e.uploader=t}),e}return X(n,[{key:"abort",value:function(e){this.uploader.abort(e)}},{key:"render",value:function(){return r().createElement(qY,(0,l.A)({},this.props,{ref:this.saveUploader}))}}]),n}(o.Component);(0,Ee.A)(XY,"defaultProps",{component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:VY,onError:VY,onSuccess:VY,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0,hasControlInside:!1});const GY=XY,YY=e=>{const{componentCls:t,iconCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${nt(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:`${nt(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`}},[`${t}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`\n &:not(${t}-disabled):hover,\n &-hover:not(${t}-disabled)\n `]:{borderColor:e.colorPrimaryHover},[`p${t}-drag-icon`]:{marginBottom:e.margin,[n]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},[`p${t}-text`]:{margin:`0 0 ${nt(e.marginXXS)}`,color:e.colorTextHeading,fontSize:e.fontSizeLG},[`p${t}-hint`]:{color:e.colorTextDescription,fontSize:e.fontSize},[`&${t}-disabled`]:{[`p${t}-drag-icon ${n},\n p${t}-text,\n p${t}-hint\n `]:{color:e.colorTextDisabled}}}}}},UY=e=>{const{componentCls:t,iconCls:n,fontSize:o,lineHeight:r,calc:i}=e,a=`${t}-list-item`,l=`${a}-actions`,c=`${a}-action`;return{[`${t}-wrapper`]:{[`${t}-list`]:Object.assign(Object.assign({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{lineHeight:e.lineHeight,[a]:{position:"relative",height:i(e.lineHeight).mul(o).equal(),marginTop:e.marginXS,fontSize:o,display:"flex",alignItems:"center",transition:`background-color ${e.motionDurationSlow}`,borderRadius:e.borderRadiusSM,"&:hover":{backgroundColor:e.controlItemBgHover},[`${a}-name`]:Object.assign(Object.assign({},uo),{padding:`0 ${nt(e.paddingXS)}`,lineHeight:r,flex:"auto",transition:`all ${e.motionDurationSlow}`}),[l]:{whiteSpace:"nowrap",[c]:{opacity:0},[n]:{color:e.actionsColor,transition:`all ${e.motionDurationSlow}`},[`\n ${c}:focus-visible,\n &.picture ${c}\n `]:{opacity:1}},[`${t}-icon ${n}`]:{color:e.colorIcon,fontSize:o},[`${a}-progress`]:{position:"absolute",bottom:e.calc(e.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:i(o).add(e.paddingXS).equal(),fontSize:o,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${a}:hover ${c}`]:{opacity:1},[`${a}-error`]:{color:e.colorError,[`${a}-name, ${t}-icon ${n}`]:{color:e.colorError},[l]:{[`${n}, ${n}:hover`]:{color:e.colorError},[c]:{opacity:1}}},[`${t}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},QY=e=>{const{componentCls:t}=e,n=new En("uploadAnimateInlineIn",{from:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),o=new En("uploadAnimateInlineOut",{to:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),r=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${r}-appear, ${r}-enter, ${r}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${r}-appear, ${r}-enter`]:{animationName:n},[`${r}-leave`]:{animationName:o}}},{[`${t}-wrapper`]:Ef(e)},n,o]},ZY=e=>{const{componentCls:t,iconCls:n,uploadThumbnailSize:o,uploadProgressOffset:r,calc:i}=e,a=`${t}-list`,l=`${a}-item`;return{[`${t}-wrapper`]:{[`\n ${a}${a}-picture,\n ${a}${a}-picture-card,\n ${a}${a}-picture-circle\n `]:{[l]:{position:"relative",height:i(o).add(i(e.lineWidth).mul(2)).add(i(e.paddingXS).mul(2)).equal(),padding:e.paddingXS,border:`${nt(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${l}-thumbnail`]:Object.assign(Object.assign({},uo),{width:o,height:o,lineHeight:nt(i(o).add(e.paddingSM).equal()),textAlign:"center",flex:"none",[n]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${l}-progress`]:{bottom:r,width:`calc(100% - ${nt(i(e.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:i(o).add(e.paddingXS).equal()}},[`${l}-error`]:{borderColor:e.colorError,[`${l}-thumbnail ${n}`]:{[`svg path[fill='${$o.z1[0]}']`]:{fill:e.colorErrorBg},[`svg path[fill='${$o.z1.primary}']`]:{fill:e.colorError}}},[`${l}-uploading`]:{borderStyle:"dashed",[`${l}-name`]:{marginBottom:r}}},[`${a}${a}-picture-circle ${l}`]:{[`&, &::before, ${l}-thumbnail`]:{borderRadius:"50%"}}}}},JY=e=>{const{componentCls:t,iconCls:n,fontSizeLG:o,colorTextLightSolid:r,calc:i}=e,a=`${t}-list`,l=`${a}-item`,c=e.uploadPicCardSize;return{[`\n ${t}-wrapper${t}-picture-card-wrapper,\n ${t}-wrapper${t}-picture-circle-wrapper\n `]:Object.assign(Object.assign({},{"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),{display:"block",[`${t}${t}-select`]:{width:c,height:c,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${nt(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[`> ${t}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimary}},[`${a}${a}-picture-card, ${a}${a}-picture-circle`]:{display:"flex",flexWrap:"wrap","@supports not (gap: 1px)":{"& > *":{marginBlockEnd:e.marginXS,marginInlineEnd:e.marginXS}},"@supports (gap: 1px)":{gap:e.marginXS},[`${a}-item-container`]:{display:"inline-block",width:c,height:c,verticalAlign:"top"},"&::after":{display:"none"},"&::before":{display:"none"},[l]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${nt(i(e.paddingXS).mul(2).equal())})`,height:`calc(100% - ${nt(i(e.paddingXS).mul(2).equal())})`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'" "'}},[`${l}:hover`]:{[`&::before, ${l}-actions`]:{opacity:1}},[`${l}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${e.motionDurationSlow}`,[`\n ${n}-eye,\n ${n}-download,\n ${n}-delete\n `]:{zIndex:10,width:o,margin:`0 ${nt(e.marginXXS)}`,fontSize:o,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,color:r,"&:hover":{color:r},svg:{verticalAlign:"baseline"}}},[`${l}-thumbnail, ${l}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${l}-name`]:{display:"none",textAlign:"center"},[`${l}-file + ${l}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${nt(i(e.paddingXS).mul(2).equal())})`},[`${l}-uploading`]:{[`&${l}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${n}-eye, ${n}-download, ${n}-delete`]:{display:"none"}},[`${l}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${nt(i(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}},eU=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},tU=e=>{const{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:Object.assign(Object.assign({},po(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"}})}},nU=qo("Upload",e=>{const{fontSizeHeading3:t,fontHeight:n,lineWidth:o,controlHeightLG:r,calc:i}=e,a=Jn(e,{uploadThumbnailSize:i(t).mul(2).equal(),uploadProgressOffset:i(i(n).div(2)).add(o).equal(),uploadPicCardSize:i(r).mul(2.55).equal()});return[tU(a),YY(a),ZY(a),JY(a),UY(a),QY(a),eU(a),$s(a)]},e=>({actionsColor:e.colorIcon}));var oU=n(24538),rU=n(60688),iU=n(28792);function aU(e){return Object.assign(Object.assign({},e),{lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e})}function lU(e,t){const n=se(t),o=n.findIndex(t=>{let{uid:n}=t;return n===e.uid});return-1===o?n.push(e):n[o]=e,n}function cU(e,t){const n=void 0!==e.uid?"uid":"name";return t.filter(t=>t[n]===e[n])[0]}const sU=e=>0===e.indexOf("image/"),uU=e=>{if(e.type&&!e.thumbUrl)return sU(e.type);const t=e.thumbUrl||e.url||"",n=function(){const e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").split("/"),t=e[e.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(t)||[""])[0]}(t);return!(!/^data:image\//.test(t)&&!/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(n))||!/^data:/.test(t)&&!n},dU=200;function pU(e){return new Promise(t=>{if(!e.type||!sU(e.type))return void t("");const n=document.createElement("canvas");n.width=dU,n.height=dU,n.style.cssText="position: fixed; left: 0; top: 0; width: 200px; height: 200px; z-index: 9999; display: none;",document.body.appendChild(n);const o=n.getContext("2d"),r=new Image;if(r.onload=()=>{const{width:e,height:i}=r;let a=dU,l=dU,c=0,s=0;e>i?(l=i*(dU/e),s=-(l-a)/2):(a=e*(dU/i),c=-(a-l)/2),o.drawImage(r,c,s,a,l);const u=n.toDataURL();document.body.removeChild(n),window.URL.revokeObjectURL(r.src),t(u)},r.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const t=new FileReader;t.onload=()=>{t.result&&"string"===typeof t.result&&(r.src=t.result)},t.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){const n=new FileReader;n.onload=()=>{n.result&&t(n.result)},n.readAsDataURL(e)}else r.src=window.URL.createObjectURL(e)})}var fU=n(65778);const mU=o.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:i,locale:l,listType:c,file:s,items:u,progress:d,iconRender:p,actionIconRender:f,itemRender:m,isImgUrl:g,showPreviewIcon:v,showRemoveIcon:h,showDownloadIcon:b,previewIcon:y,removeIcon:C,downloadIcon:x,extra:$,onPreview:w,onDownload:S,onClose:k}=e;var E,O;const{status:A}=s,[I,N]=o.useState(A);o.useEffect(()=>{"removed"!==A&&N(A)},[A]);const[M,j]=o.useState(!1);o.useEffect(()=>{const e=setTimeout(()=>{j(!0)},300);return()=>{clearTimeout(e)}},[]);const P=p(s);let R=o.createElement("div",{className:`${n}-icon`},P);if("picture"===c||"picture-card"===c||"picture-circle"===c)if("uploading"===I||!s.thumbUrl&&!s.url){const e=a()(`${n}-list-item-thumbnail`,{[`${n}-list-item-file`]:"uploading"!==I});R=o.createElement("div",{className:e},P)}else{const e=(null===g||void 0===g?void 0:g(s))?o.createElement("img",{src:s.thumbUrl||s.url,alt:s.name,className:`${n}-list-item-image`,crossOrigin:s.crossOrigin}):P,t=a()(`${n}-list-item-thumbnail`,{[`${n}-list-item-file`]:g&&!g(s)});R=o.createElement("a",{className:t,onClick:e=>w(s,e),href:s.url||s.thumbUrl,target:"_blank",rel:"noopener noreferrer"},e)}const T=a()(`${n}-list-item`,`${n}-list-item-${I}`),z="string"===typeof s.linkProps?JSON.parse(s.linkProps):s.linkProps,B=("function"===typeof h?h(s):h)?f(("function"===typeof C?C(s):C)||o.createElement(YX.A,null),()=>k(s),n,l.removeFile,!0):null,H=("function"===typeof b?b(s):b)&&"done"===I?f(("function"===typeof x?x(s):x)||o.createElement(fU.A,null),()=>S(s),n,l.downloadFile):null,D="picture-card"!==c&&"picture-circle"!==c&&o.createElement("span",{key:"download-delete",className:a()(`${n}-list-item-actions`,{picture:"picture"===c})},H,B),L="function"===typeof $?$(s):$,F=L&&o.createElement("span",{className:`${n}-list-item-extra`},L),W=a()(`${n}-list-item-name`),_=s.url?o.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:W,title:s.name},z,{href:s.url,onClick:e=>w(s,e)}),s.name,F):o.createElement("span",{key:"view",className:W,onClick:e=>w(s,e),title:s.name},s.name,F),K=("function"===typeof v?v(s):v)&&(s.url||s.thumbUrl)?o.createElement("a",{href:s.url||s.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:e=>w(s,e),title:l.previewFile},"function"===typeof y?y(s):y||o.createElement(pz.A,null)):null,q=("picture-card"===c||"picture-circle"===c)&&"uploading"!==I&&o.createElement("span",{className:`${n}-list-item-actions`},K,"done"===I&&H,B),{getPrefixCls:V}=o.useContext(xe),X=V(),G=o.createElement("div",{className:T},R,_,D,q,M&&o.createElement(Jr,{motionName:`${X}-fade`,visible:"uploading"===I,motionDeadline:2e3},e=>{let{className:t}=e;const r="percent"in s?o.createElement(ML,Object.assign({type:"line",percent:s.percent,"aria-label":s["aria-label"],"aria-labelledby":s["aria-labelledby"]},d)):null;return o.createElement("div",{className:a()(`${n}-list-item-progress`,t)},r)})),Y=s.response&&"string"===typeof s.response?s.response:(null===(E=s.error)||void 0===E?void 0:E.statusText)||(null===(O=s.error)||void 0===O?void 0:O.message)||l.uploadError,U="error"===I?o.createElement(hy,{title:Y,getPopupContainer:e=>e.parentNode},G):G;return o.createElement("div",{className:a()(`${n}-list-item-container`,r),style:i,ref:t},m?m(U,s,u,{download:S.bind(null,s),preview:w.bind(null,s),remove:k.bind(null,s)}):U)}),gU=mU,vU=o.forwardRef((e,t)=>{const{listType:n="text",previewFile:r=pU,onPreview:i,onDownload:l,onRemove:c,locale:s,iconRender:u,isImageUrl:d=uU,prefixCls:p,items:f=[],showPreviewIcon:m=!0,showRemoveIcon:g=!0,showDownloadIcon:v=!1,removeIcon:h,previewIcon:b,downloadIcon:y,extra:C,progress:x={size:[-1,2],showInfo:!1},appendAction:$,appendActionVisible:w=!0,itemRender:S,disabled:k}=e,E=jb(),[O,A]=o.useState(!1),I=["picture-card","picture-circle"].includes(n);o.useEffect(()=>{n.startsWith("picture")&&(f||[]).forEach(e=>{(e.originFileObj instanceof File||e.originFileObj instanceof Blob)&&void 0===e.thumbUrl&&(e.thumbUrl="",null===r||void 0===r||r(e.originFileObj).then(t=>{e.thumbUrl=t||"",E()}))})},[n,f,r]),o.useEffect(()=>{A(!0)},[]);const N=(e,t)=>{if(i)return null===t||void 0===t||t.preventDefault(),i(e)},M=e=>{"function"===typeof l?l(e):e.url&&window.open(e.url)},j=e=>{null===c||void 0===c||c(e)},P=e=>{if(u)return u(e,n);const t="uploading"===e.status;if(n.startsWith("picture")){const r="picture"===n?o.createElement(la.A,null):s.uploading,i=(null===d||void 0===d?void 0:d(e))?o.createElement(iU.A,null):o.createElement(oU.A,null);return t?r:i}return t?o.createElement(la.A,null):o.createElement(rU.A,null)},R=(e,t,n,r,i)=>{const a={type:"text",size:"small",title:r,onClick:n=>{var r,i;t(),o.isValidElement(e)&&(null===(i=(r=e.props).onClick)||void 0===i||i.call(r,n))},className:`${n}-list-item-action`,disabled:!!i&&k};return o.isValidElement(e)?o.createElement(Su,Object.assign({},a,{icon:ii(e,Object.assign(Object.assign({},e.props),{onClick:()=>{}}))})):o.createElement(Su,Object.assign({},a),o.createElement("span",null,e))};o.useImperativeHandle(t,()=>({handlePreview:N,handleDownload:M}));const{getPrefixCls:T}=o.useContext(xe),z=T("upload",p),B=T(),H=a()(`${z}-list`,`${z}-list-${n}`),D=o.useMemo(()=>Ul(Gl(B),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[B]),L=Object.assign(Object.assign({},I?{}:D),{motionDeadline:2e3,motionName:`${z}-${I?"animate-inline":"animate"}`,keys:se(f.map(e=>({key:e.uid,file:e}))),motionAppear:O});return o.createElement("div",{className:H},o.createElement(Zr,Object.assign({},L,{component:!1}),e=>{let{key:t,file:r,className:i,style:a}=e;return o.createElement(gU,{key:t,locale:s,prefixCls:z,className:i,style:a,file:r,items:f,progress:x,listType:n,isImgUrl:d,showPreviewIcon:m,showRemoveIcon:g,showDownloadIcon:v,removeIcon:h,previewIcon:b,downloadIcon:y,extra:C,iconRender:P,actionIconRender:R,itemRender:S,onPreview:N,onDownload:M,onClose:j})}),$&&o.createElement(Jr,Object.assign({},L,{visible:w,forceRender:!0}),e=>{let{className:t,style:n}=e;return ii($,e=>({className:a()(e.className,t),style:Object.assign(Object.assign(Object.assign({},n),{pointerEvents:t?"none":void 0}),e.style)}))}))});const hU=vU;var bU=function(e,t,n,o){return new(n||(n=Promise))(function(r,i){function a(e){try{c(o.next(e))}catch($i){i($i)}}function l(e){try{c(o.throw(e))}catch($i){i($i)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,l)}c((o=o.apply(e,t||[])).next())})};const yU=`__LIST_IGNORE_${Date.now()}__`,CU=o.forwardRef((e,t)=>{const{fileList:n,defaultFileList:r,onRemove:i,showUploadList:l=!0,listType:c="text",onPreview:s,onDownload:u,onChange:d,onDrop:p,previewFile:m,disabled:g,locale:v,iconRender:h,isImageUrl:b,progress:y,prefixCls:C,className:x,type:$="select",children:w,style:S,itemRender:k,maxCount:E,data:O={},multiple:A=!1,hasControlInside:I=!0,action:N="",accept:M="",supportServerRender:j=!0,rootClassName:P}=e,R=o.useContext(Ga),T=null!==g&&void 0!==g?g:R,[z,B]=Ln(r||[],{value:n,postState:e=>null!==e&&void 0!==e?e:[]}),[H,D]=o.useState("drop"),L=o.useRef(null),F=o.useRef(null);o.useMemo(()=>{const e=Date.now();(n||[]).forEach((t,n)=>{t.uid||Object.isFrozen(t)||(t.uid=`__AUTO__${e}_${n}__`)})},[n]);const W=(e,t,n)=>{let o=se(t),r=!1;1===E?o=o.slice(-1):E&&(r=o.length>E,o=o.slice(0,E)),(0,f.flushSync)(()=>{B(o)});const i={file:e,fileList:o};n&&(i.event=n),r&&"removed"!==e.status&&!o.some(t=>t.uid===e.uid)||(0,f.flushSync)(()=>{null===d||void 0===d||d(i)})},_=e=>{const t=e.filter(e=>!e.file[yU]);if(!t.length)return;const n=t.map(e=>aU(e.file));let o=se(z);n.forEach(e=>{o=lU(e,o)}),n.forEach((e,n)=>{let r=e;if(t[n].parsedFile)e.status="uploading";else{const{originFileObj:t}=e;let n;try{n=new File([t],t.name,{type:t.type})}catch(i){n=new Blob([t],{type:t.type}),n.name=t.name,n.lastModifiedDate=new Date,n.lastModified=(new Date).getTime()}n.uid=e.uid,r=n}W(r,o)})},K=(e,t,n)=>{try{"string"===typeof e&&(e=JSON.parse(e))}catch(i){}if(!cU(t,z))return;const o=aU(t);o.status="done",o.percent=100,o.response=e,o.xhr=n;const r=lU(o,z);W(o,r)},q=(e,t)=>{if(!cU(t,z))return;const n=aU(t);n.status="uploading",n.percent=e.percent;const o=lU(n,z);W(n,o,e)},V=(e,t,n)=>{if(!cU(n,z))return;const o=aU(n);o.error=e,o.response=t,o.status="error";const r=lU(o,z);W(o,r)},X=e=>{let t;Promise.resolve("function"===typeof i?i(e):i).then(n=>{var o;if(!1===n)return;const r=function(e,t){const n=void 0!==e.uid?"uid":"name",o=t.filter(t=>t[n]!==e[n]);return o.length===t.length?null:o}(e,z);r&&(t=Object.assign(Object.assign({},e),{status:"removed"}),null===z||void 0===z||z.forEach(e=>{const n=void 0!==t.uid?"uid":"name";e[n]!==t[n]||Object.isFrozen(e)||(e.status="removed")}),null===(o=L.current)||void 0===o||o.abort(t),W(t,r))})},G=e=>{D(e.type),"drop"===e.type&&(null===p||void 0===p||p(e))};o.useImperativeHandle(t,()=>({onBatchStart:_,onSuccess:K,onProgress:q,onError:V,fileList:z,upload:L.current,nativeElement:F.current}));const{getPrefixCls:Y,direction:U,upload:Q}=o.useContext(xe),Z=Y("upload",C),J=Object.assign(Object.assign({onBatchStart:_,onError:V,onProgress:q,onSuccess:K},e),{data:O,multiple:A,action:N,accept:M,supportServerRender:j,prefixCls:Z,disabled:T,beforeUpload:(t,n)=>bU(void 0,void 0,void 0,function*(){const{beforeUpload:o,transformFile:r}=e;let i=t;if(o){const e=yield o(t,n);if(!1===e)return!1;if(delete t[yU],e===yU)return Object.defineProperty(t,yU,{value:!0,configurable:!0}),!1;"object"===typeof e&&e&&(i=e)}return r&&(i=yield r(i)),i}),onChange:void 0,hasControlInside:I});delete J.className,delete J.style,w&&!T||delete J.id;const ee=`${Z}-wrapper`,[te,ne,oe]=nU(Z,ee),[re]=Yl("Upload",Ba.Upload),{showRemoveIcon:ie,showPreviewIcon:ae,showDownloadIcon:le,removeIcon:ce,previewIcon:ue,downloadIcon:de,extra:pe}="boolean"===typeof l?{}:l,fe="undefined"===typeof ie?!T:ie,me=(e,t)=>l?o.createElement(hU,{prefixCls:Z,listType:c,items:z,previewFile:m,onPreview:s,onDownload:u,onRemove:X,showRemoveIcon:fe,showPreviewIcon:ae,showDownloadIcon:le,removeIcon:ce,previewIcon:ue,downloadIcon:de,iconRender:h,extra:pe,locale:Object.assign(Object.assign({},re),v),isImageUrl:b,progress:y,appendAction:e,appendActionVisible:t,itemRender:k,disabled:T}):e,ge=a()(ee,x,P,ne,oe,null===Q||void 0===Q?void 0:Q.className,{[`${Z}-rtl`]:"rtl"===U,[`${Z}-picture-card-wrapper`]:"picture-card"===c,[`${Z}-picture-circle-wrapper`]:"picture-circle"===c}),ve=Object.assign(Object.assign({},null===Q||void 0===Q?void 0:Q.style),S);if("drag"===$){const e=a()(ne,Z,`${Z}-drag`,{[`${Z}-drag-uploading`]:z.some(e=>"uploading"===e.status),[`${Z}-drag-hover`]:"dragover"===H,[`${Z}-disabled`]:T,[`${Z}-rtl`]:"rtl"===U});return te(o.createElement("span",{className:ge,ref:F},o.createElement("div",{className:e,style:ve,onDrop:G,onDragOver:G,onDragLeave:G},o.createElement(GY,Object.assign({},J,{ref:L,className:`${Z}-btn`}),o.createElement("div",{className:`${Z}-drag-container`},w))),me()))}const he=a()(Z,`${Z}-select`,{[`${Z}-disabled`]:T,[`${Z}-hidden`]:!w}),be=o.createElement("div",{className:he,style:ve},o.createElement(GY,Object.assign({},J,{ref:L})));return te("picture-card"===c||"picture-circle"===c?o.createElement("span",{className:ge,ref:F},me(be,!!w)):o.createElement("span",{className:ge,ref:F},be,me()))});const xU=CU;var $U=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};const wU=o.forwardRef((e,t)=>{var{style:n,height:r,hasControlInside:i=!1}=e,a=$U(e,["style","height","hasControlInside"]);return o.createElement(xU,Object.assign({ref:t,hasControlInside:i},a,{type:"drag",style:Object.assign(Object.assign({},n),{height:r})}))});const SU=wU,kU=xU;kU.Dragger=SU,kU.LIST_IGNORE=yU;const EU=kU;!function(e){Y(n,e);var t=ee(n);function n(){return K(this,n),t.apply(this,arguments)}X(n,[{key:"render",value:function(){return this.props.children}}])}(r().Component);var OU={subtree:!0,childList:!0,attributeFilter:["style","class"]};const AU=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;const o=document.createElement("canvas"),r=o.getContext("2d"),i=e*n,a=t*n;return o.setAttribute("width",`${i}px`),o.setAttribute("height",`${a}px`),r.save(),[r,o,i,a]},IU=()=>r().useCallback((e,t,n,o,r,i,a,l)=>{const[c,s,u,d]=AU(o,r,n);if(e instanceof HTMLImageElement)c.drawImage(e,0,0,u,d);else{const{color:t,fontSize:o,fontStyle:a,fontWeight:l,fontFamily:s,textAlign:d}=i,p=Number(o)*n;c.font=`${a} normal ${l} ${p}px/${r}px ${s}`,c.fillStyle=t,c.textAlign=d,c.textBaseline="top";const f=lD(e);null===f||void 0===f||f.forEach((e,t)=>{c.fillText(null!==e&&void 0!==e?e:"",u/2,t*(p+3*n))})}const p=Math.PI/180*Number(t),f=Math.max(o,r),[m,g,v]=AU(f,f,n);m.translate(v/2,v/2),m.rotate(p),u>0&&d>0&&m.drawImage(s,-u/2,-d/2);let h=0,b=0,y=0,C=0;const x=u/2,$=d/2;[[0-x,0-$],[0+x,0-$],[0+x,0+$],[0-x,0+$]].forEach(e=>{let[t,n]=e;const[o,r]=((e,t,n)=>[e*Math.cos(n)-t*Math.sin(n),e*Math.sin(n)+t*Math.cos(n)])(t,n,p);h=Math.min(h,o),b=Math.max(b,o),y=Math.min(y,r),C=Math.max(C,r)});const w=h+v/2,S=y+v/2,k=b-h,E=C-y,O=a*n,A=l*n,I=2*(k+O),N=E+A,[M,j]=AU(I,N),P=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;M.drawImage(g,w,S,k,E,e,t,k,E)};return P(),P(k+O,-E/2-A/2),P(k+O,+E/2+A/2),[j.toDataURL(),I/n,N/n]},[]);const NU={visibility:"visible !important"};function MU(e){const t=o.useRef(new Map);return[(n,o,r)=>{if(r){if(!t.current.get(r)){const e=document.createElement("div");t.current.set(r,e)}const i=t.current.get(r);i.setAttribute("style",function(e){return Object.keys(e).map(t=>`${function(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}(t)}: ${e[t]};`).join(" ")}(Object.assign(Object.assign(Object.assign({},e),{backgroundImage:`url('${n}')`,backgroundSize:`${Math.floor(o)}px`}),NU))),i.removeAttribute("class"),i.removeAttribute("hidden"),i.parentElement!==r&&r.append(i)}return t.current.get(r)},e=>{const n=t.current.get(e);n&&e&&e.removeChild(n),t.current.delete(e)},e=>Array.from(t.current.values()).includes(e)]}function jU(e,t){return e.size===t.size?e:t}const PU=100,RU=100,TU={position:"relative",overflow:"hidden"};const zU=e=>{var t,n;const{zIndex:i=9,rotate:l=-22,width:c,height:s,image:u,content:d,font:p={},style:f,className:m,rootClassName:g,gap:v=[PU,RU],offset:h,children:b,inherit:y=!0}=e,C=Object.assign(Object.assign({},TU),f),[,x]=Ko(),{color:$=x.colorFill,fontSize:w=x.fontSizeLG,fontWeight:S="normal",fontStyle:k="normal",fontFamily:E="sans-serif",textAlign:O="center"}=p,[A=PU,I=RU]=v,N=A/2,M=I/2,j=null!==(t=null===h||void 0===h?void 0:h[0])&&void 0!==t?t:N,P=null!==(n=null===h||void 0===h?void 0:h[1])&&void 0!==n?n:M,R=r().useMemo(()=>{const e={zIndex:i,position:"absolute",left:0,top:0,width:"100%",height:"100%",pointerEvents:"none",backgroundRepeat:"repeat"};let t=j-N,n=P-M;return t>0&&(e.left=`${t}px`,e.width=`calc(100% - ${t}px)`,t=0),n>0&&(e.top=`${n}px`,e.height=`calc(100% - ${n}px)`,n=0),e.backgroundPosition=`${t}px ${n}px`,e},[i,j,N,P,M]),[T,z]=r().useState(),[B,H]=r().useState(()=>new Set),D=r().useMemo(()=>[].concat(T?[T]:[],se(Array.from(B))),[T,B]),L=IU(),F=function(){const e=o.useRef([null,null]);return(t,n)=>{const o=t.map(e=>e instanceof HTMLElement||Number.isNaN(e)?"":e);return Ne(e.current[0],o)||(e.current=[o,n()]),e.current[1]}}(),[W,_]=r().useState(null),K=function(e){const t=r().useRef(!1),n=r().useRef(null),o=Bn(e);return()=>{t.current||(t.current=!0,o(),n.current=ve(()=>{t.current=!1}))}}(()=>{const e=document.createElement("canvas").getContext("2d");if(e){const t=window.devicePixelRatio||1,[n,o]=(e=>{let t=120,n=64;if(!u&&e.measureText){e.font=`${Number(w)}px ${E}`;const o=lD(d),r=o.map(t=>{const n=e.measureText(t);return[n.width,n.fontBoundingBoxAscent+n.fontBoundingBoxDescent]});t=Math.ceil(Math.max.apply(Math,se(r.map(e=>e[0])))),n=Math.ceil(Math.max.apply(Math,se(r.map(e=>e[1]))))*o.length+3*(o.length-1)}return[null!==c&&void 0!==c?c:t,null!==s&&void 0!==s?s:n]})(e),r=e=>{const r=[e||"",l,t,n,o,{color:$,fontSize:w,fontStyle:k,fontWeight:S,fontFamily:E,textAlign:O},A,I],[i,a]=F(r,()=>L.apply(void 0,r));_([i,a])};if(u){const e=new Image;e.onload=()=>{r(e)},e.onerror=()=>{r(d)},e.crossOrigin="anonymous",e.referrerPolicy="no-referrer",e.src=u}else r(d)}}),[q,V,X]=MU(R);(0,o.useEffect)(()=>{W&&D.forEach(e=>{q(W[0],W[1],e)})},[W,D]);const G=Bn(e=>{e.forEach(e=>{if(((e,t)=>{let n=!1;return e.removedNodes.length&&(n=Array.from(e.removedNodes).some(e=>t(e))),"attributes"===e.type&&t(e.target)&&(n=!0),n})(e,X))K();else if(e.target===T&&"style"===e.attributeName){const e=Object.keys(TU);for(let t=0;t<e.length;t+=1){const n=e[t],o=C[n],r=T.style[n];o&&o!==r&&(T.style[n]=o)}}})});!function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:OU;o.useEffect(function(){if((0,Le.A)()&&e){var o,r=Array.isArray(e)?e:[e];return"MutationObserver"in window&&(o=new MutationObserver(t),r.forEach(function(e){o.observe(e,n)})),function(){var e,t;null===(e=o)||void 0===e||e.takeRecords(),null===(t=o)||void 0===t||t.disconnect()}}},[n,e])}(D,G),(0,o.useEffect)(K,[l,i,c,s,u,d,$,w,S,k,E,O,A,I,j,P]);const Y=r().useMemo(()=>({add:e=>{H(t=>{const n=new Set(t);return n.add(e),jU(t,n)})},remove:e=>{V(e),H(t=>{const n=new Set(t);return n.delete(e),jU(t,n)})}}),[]),U=y?r().createElement(df.Provider,{value:Y},b):b;return r().createElement("div",{ref:z,className:a()(m,g),style:C},U)},BU=(0,o.forwardRef)((e,t)=>{const{prefixCls:n,className:o,children:i,size:l,style:c={}}=e,s=a()(`${n}-panel`,{[`${n}-panel-hidden`]:0===l},o),u=void 0!==l;return r().createElement("div",{ref:t,className:s,style:Object.assign(Object.assign({},c),{flexBasis:u?l:"auto",flexGrow:u?0:1})},i)});const HU=()=>null;var DU=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n};function LU(e){if(e&&"object"===typeof e)return e;const t=!!e;return{start:t,end:t}}const FU=function(e){const t=o.useMemo(()=>s(e).filter(e=>o.isValidElement(e)).map(e=>{const{props:t}=e,{collapsible:n}=t,o=DU(t,["collapsible"]);return Object.assign(Object.assign({},o),{collapsible:LU(n)})}),[e]);return t};function WU(e){return Number(e.slice(0,-1))/100}function _U(e){return"string"===typeof e&&e.endsWith("%")}function KU(e){return"number"!==typeof e||Number.isNaN(e)?0:Math.round(e)}const qU=e=>{const{prefixCls:t,vertical:n,index:i,active:l,ariaNow:c,ariaMin:s,ariaMax:u,resizable:d,startCollapsible:p,endCollapsible:f,onOffsetStart:m,onOffsetUpdate:g,onOffsetEnd:v,onCollapse:h,lazy:b,containerSize:y}=e,C=`${t}-bar`,[x,$]=(0,o.useState)(null),[w,S]=(0,o.useState)(0),k=n?0:w,E=n?w:0,O=Bn((e,t)=>{const o=(e=>{const t=y*c/100,n=t+e,o=Math.max(0,y*s/100),r=Math.min(y,y*u/100);return Math.max(o,Math.min(r,n))-t})(n?t:e);S(o)}),A=Bn(()=>{g(i,k,E,!0),S(0),v(!0)});r().useLayoutEffect(()=>{if(x){const e=e=>{const{pageX:t,pageY:n}=e,o=t-x[0],r=n-x[1];b?O(o,r):g(i,o,r)},t=e=>{if(1===e.touches.length){const t=e.touches[0],n=t.pageX-x[0],o=t.pageY-x[1];b?O(n,o):g(i,n,o)}},n={mousemove:e,mouseup:()=>{b?A():v(),$(null)},touchmove:t,touchend:()=>{b?A():v(),$(null)}};for(const[o,r]of Object.entries(n))window.addEventListener(o,r);return()=>{for(const[e,t]of Object.entries(n))window.removeEventListener(e,t)}}},[x]);const I={[`--${C}-preview-offset`]:`${w}px`},N=n?gN.A:iC.A,M=n?db.A:ss.A;return r().createElement("div",{className:C,role:"separator","aria-valuenow":KU(c),"aria-valuemin":KU(s),"aria-valuemax":KU(u)},b&&r().createElement("div",{className:a()(`${C}-preview`,{[`${C}-preview-active`]:!!w}),style:I}),r().createElement("div",{className:a()(`${C}-dragger`,{[`${C}-dragger-disabled`]:!d,[`${C}-dragger-active`]:l}),onMouseDown:e=>{d&&e.currentTarget&&($([e.pageX,e.pageY]),m(i))},onTouchStart:e=>{if(d&&1===e.touches.length){const t=e.touches[0];$([t.pageX,t.pageY]),m(i)}}}),p&&r().createElement("div",{className:a()(`${C}-collapse-bar`,`${C}-collapse-bar-start`),onClick:()=>h(i,"start")},r().createElement(N,{className:a()(`${C}-collapse-icon`,`${C}-collapse-start`)})),f&&r().createElement("div",{className:a()(`${C}-collapse-bar`,`${C}-collapse-bar-end`),onClick:()=>h(i,"end")},r().createElement(M,{className:a()(`${C}-collapse-icon`,`${C}-collapse-end`)})))},VU=e=>{const{componentCls:t}=e;return{[`&-rtl${t}-horizontal`]:{[`> ${t}-bar`]:{[`${t}-bar-collapse-previous`]:{insetInlineEnd:0,insetInlineStart:"unset"},[`${t}-bar-collapse-next`]:{insetInlineEnd:"unset",insetInlineStart:0}}},[`&-rtl${t}-vertical`]:{[`> ${t}-bar`]:{[`${t}-bar-collapse-previous`]:{insetInlineEnd:"50%",insetInlineStart:"unset"},[`${t}-bar-collapse-next`]:{insetInlineEnd:"50%",insetInlineStart:"unset"}}}}},XU={position:"absolute",top:"50%",left:{_skip_check_:!0,value:"50%"},transform:"translate(-50%, -50%)"},GU=e=>{const{componentCls:t,colorFill:n,splitBarDraggableSize:o,splitBarSize:r,splitTriggerSize:i,controlItemBgHover:a,controlItemBgActive:l,controlItemBgActiveHover:c,prefixCls:s}=e,u=`${t}-bar`,d=`${t}-mask`,p=`${t}-panel`,f=e.calc(i).div(2).equal(),m=`${s}-bar-preview-offset`,g={position:"absolute",background:e.colorPrimary,opacity:.2,pointerEvents:"none",transition:"none",zIndex:1,display:"none"};return{[t]:Object.assign(Object.assign(Object.assign({},po(e)),{display:"flex",width:"100%",height:"100%",alignItems:"stretch",[`> ${u}`]:{flex:"none",position:"relative",userSelect:"none",[`${u}-dragger`]:Object.assign(Object.assign({},XU),{zIndex:1,"&::before":Object.assign({content:'""',background:a},XU),"&::after":Object.assign({content:'""',background:n},XU),[`&:hover:not(${u}-dragger-active)`]:{"&::before":{background:l}},"&-active":{zIndex:2,"&::before":{background:c}},[`&-disabled${u}-dragger`]:{zIndex:0,"&, &:hover, &-active":{cursor:"default","&::before":{background:a}},"&::after":{display:"none"}}}),[`${u}-collapse-bar`]:Object.assign(Object.assign({},XU),{zIndex:e.zIndexPopupBase,background:a,fontSize:e.fontSizeSM,borderRadius:e.borderRadiusXS,color:e.colorText,cursor:"pointer",opacity:0,display:"flex",alignItems:"center",justifyContent:"center","@media(hover:none)":{opacity:1},"&:hover":{background:l},"&:active":{background:c}}),"&:hover, &:active":{[`${u}-collapse-bar`]:{opacity:1}}},[d]:{position:"fixed",zIndex:e.zIndexPopupBase,inset:0,"&-horizontal":{cursor:"col-resize"},"&-vertical":{cursor:"row-resize"}},"&-horizontal":{flexDirection:"row",[`> ${u}`]:{width:0,[`${u}-preview`]:Object.assign(Object.assign({height:"100%",width:r},g),{[`&${u}-preview-active`]:{display:"block",transform:`translateX(var(--${m}))`}}),[`${u}-dragger`]:{cursor:"col-resize",height:"100%",width:i,"&::before":{height:"100%",width:r},"&::after":{height:o,width:r}},[`${u}-collapse-bar`]:{width:e.fontSizeSM,height:e.controlHeightSM,"&-start":{left:{_skip_check_:!0,value:"auto"},right:{_skip_check_:!0,value:f},transform:"translateY(-50%)"},"&-end":{left:{_skip_check_:!0,value:f},right:{_skip_check_:!0,value:"auto"},transform:"translateY(-50%)"}}}},"&-vertical":{flexDirection:"column",[`> ${u}`]:{height:0,[`${u}-preview`]:Object.assign(Object.assign({height:r,width:"100%"},g),{[`&${u}-preview-active`]:{display:"block",transform:`translateY(var(--${m}))`}}),[`${u}-dragger`]:{cursor:"row-resize",width:"100%",height:i,"&::before":{width:"100%",height:r},"&::after":{width:o,height:r}},[`${u}-collapse-bar`]:{height:e.fontSizeSM,width:e.controlHeightSM,"&-start":{top:"auto",bottom:f,transform:"translateX(-50%)"},"&-end":{top:f,bottom:"auto",transform:"translateX(-50%)"}}}},[p]:{overflow:"auto",padding:"0 1px",scrollbarWidth:"thin",boxSizing:"border-box","&-hidden":{padding:0,overflow:"hidden"},[`&:has(${t}:only-child)`]:{overflow:"hidden"}}}),VU(e))}},YU=qo("Splitter",e=>[GU(e)],e=>{var t;const n=e.splitBarSize||2,o=e.splitTriggerSize||6,r=e.resizeSpinnerSize||20;return{splitBarSize:n,splitTriggerSize:o,splitBarDraggableSize:null!==(t=e.splitBarDraggableSize)&&void 0!==t?t:r,resizeSpinnerSize:r}});const UU=e=>{const{prefixCls:t,className:n,style:i,layout:l="horizontal",children:c,rootClassName:s,onResizeStart:u,onResize:d,onResizeEnd:p,lazy:f}=e,{getPrefixCls:m,direction:g,className:v,style:h}=Se("splitter"),b=m("splitter",t),y=Mi(b),[C,x,$]=YU(b,y),w="vertical"===l,S="rtl"===g,k=!w&&S,E=FU(c);const[O,A]=(0,o.useState)(),[I,N,M,j,P,R]=function(e,t){const n=e.map(e=>e.size),o=e.length,i=t||0,a=e=>e*i,[l,c]=r().useState(()=>e.map(e=>e.defaultSize)),s=r().useMemo(()=>{var e;const t=[];for(let r=0;r<o;r+=1)t[r]=null!==(e=n[r])&&void 0!==e?e:l[r];return t},[o,l,n]),u=r().useMemo(()=>{let e=[],t=0;for(let r=0;r<o;r+=1){const n=s[r];if(_U(n))e[r]=WU(n);else if(n||0===n){const t=Number(n);Number.isNaN(t)||(e[r]=t/i)}else t+=1,e[r]=void 0}const n=e.reduce((e,t)=>e+(t||0),0);if(n>1||!t){const t=1/n;e=e.map(e=>void 0===e?0:e*t)}else{const o=(1-n)/t;e=e.map(e=>void 0===e?o:e)}return e},[s,i]),d=r().useMemo(()=>u.map(a),[u,i]),p=r().useMemo(()=>e.map(e=>_U(e.min)?WU(e.min):(e.min||0)/i),[e,i]),f=r().useMemo(()=>e.map(e=>_U(e.max)?WU(e.max):(e.max||i)/i),[e,i]);return[r().useMemo(()=>t?d:s,[d,t]),d,u,p,f,c]}(E,O),T=function(e,t,n){return o.useMemo(()=>{const o=[];for(let r=0;r<e.length-1;r+=1){const i=e[r],a=e[r+1],l=t[r],c=t[r+1],{resizable:s=!0,min:u,collapsible:d}=i,{resizable:p=!0,min:f,collapsible:m}=a,g=s&&p&&(0!==l||!u)&&(0!==c||!f),v=d.end&&l>0||m.start&&0===c&&l>0,h=m.start&&c>0||d.end&&0===l&&c>0;o[r]={resizable:g,startCollapsible:!!(n?h:v),endCollapsible:!!(n?v:h)}}return o},[t,e])}(E,N,S),[z,B,H,D,L]=function(e,t,n,r,i,a){const l=e.map(e=>[e.min,e.max]),c=r||0,s=e=>e*c;function u(e,t){return"string"===typeof e?s(WU(e)):null!==e&&void 0!==e?e:t}const[d,p]=o.useState([]),f=o.useRef([]),[m,g]=o.useState(null),v=()=>n.map(s);return[e=>{p(v()),g({index:e,confirmed:!1})},(e,n)=>{var o;let r=null;if((!m||!m.confirmed)&&0!==n)if(n>0)r=e,g({index:e,confirmed:!0});else for(let i=e;i>=0;i-=1)if(d[i]>0&&t[i].resizable){r=i,g({index:i,confirmed:!0});break}const a=null!==(o=null!==r&&void 0!==r?r:null===m||void 0===m?void 0:m.index)&&void 0!==o?o:e,s=se(d),p=a+1,f=u(l[a][0],0),v=u(l[p][0],0),h=u(l[a][1],c),b=u(l[p][1],c);let y=n;return s[a]+y<f&&(y=f-s[a]),s[p]-y<v&&(y=s[p]-v),s[a]+y>h&&(y=h-s[a]),s[p]-y>b&&(y=s[p]-b),s[a]+=y,s[p]-=y,i(s),s},()=>{g(null)},(e,t)=>{const n=v(),o=a?"start"===t?"end":"start":t,r="start"===o?e:e+1,s="start"===o?e+1:e,d=n[r],p=n[s];if(0!==d&&0!==p)n[r]=0,n[s]+=d,f.current[e]=d;else{const t=d+p,o=u(l[r][0],0),i=u(l[r][1],c),a=u(l[s][0],0),m=u(l[s][1],c),g=Math.max(o,t-m),v=Math.min(i,t-a),h=a||(v-g)/2,b=f.current[e],y=t-b;b&&b<=m&&b>=a&&y<=i&&y>=o?(n[s]=b,n[r]=y):(n[r]-=h,n[s]+=h)}return i(n),n},null===m||void 0===m?void 0:m.index]}(E,T,M,O,R,S),F=Bn(e=>{z(e),null===u||void 0===u||u(N)}),W=Bn((e,t,n)=>{const o=B(e,t);n?null===p||void 0===p||p(o):null===d||void 0===d||d(o)}),_=Bn(e=>{H(),e||null===p||void 0===p||p(N)}),K=Bn((e,t)=>{const n=D(e,t);null===d||void 0===d||d(n),null===p||void 0===p||p(n)}),q=a()(b,n,`${b}-${l}`,{[`${b}-rtl`]:S},s,v,$,y,x),V=`${b}-mask`,X=r().useMemo(()=>{const e=[];let t=0;for(let n=0;n<E.length;n+=1)t+=M[n],e.push(t);return e},[M]),G=Object.assign(Object.assign({},h),i);return C(r().createElement(ie,{onResize:e=>{const{offsetWidth:t,offsetHeight:n}=e,o=w?n:t;0!==o&&A(o)}},r().createElement("div",{style:G,className:q},E.map((e,t)=>{const n=r().createElement(BU,Object.assign({},e,{prefixCls:b,size:I[t]}));let o=null;const i=T[t];if(i){const e=(X[t-1]||0)+j[t],n=(X[t+1]||100)-P[t+1],a=(X[t-1]||0)+P[t],l=(X[t+1]||100)-j[t+1];o=r().createElement(qU,{lazy:f,index:t,active:L===t,prefixCls:b,vertical:w,resizable:i.resizable,ariaNow:100*X[t],ariaMin:100*Math.max(e,n),ariaMax:100*Math.min(a,l),startCollapsible:i.startCollapsible,endCollapsible:i.endCollapsible,onOffsetStart:F,onOffsetUpdate:(e,t,n,o)=>{let r=w?n:t;k&&(r=-r),W(e,r,o)},onOffsetEnd:_,onCollapse:K,containerSize:O||0})}return r().createElement(r().Fragment,{key:`split-panel-${t}`},n,o)}),"number"===typeof L&&r().createElement("div",{"aria-hidden":!0,className:a()(V,`${V}-${l}`)}))))},QU=UU;QU.Panel=HU;const ZU=QU},97076:function(e){e.exports=function(){"use strict";return function(e,t){var n=t.prototype,o=n.format;n.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return o.bind(this)(e);var r=this.$utils(),i=(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 r.s(t.week(),"w"===e?1:2,"0");case"W":case"WW":return r.s(t.isoWeek(),"W"===e?1:2,"0");case"k":case"kk":return r.s(String(0===t.$H?24:t.$H),"k"===e?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 o.bind(this)(i)}}}()}}]);
3
+ //# sourceMappingURL=7167.a1dc0f98.chunk.js.map