mdjournal 1.0.16 → 1.1.0

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 (203) hide show
  1. package/LICENSE +26 -0
  2. package/README.md +20 -17
  3. package/dist/README.md +335 -0
  4. package/dist/client/assets/index-CWshDATd.js +402 -0
  5. package/dist/client/dist/assets/index-CWshDATd.js +402 -0
  6. package/dist/client/dist/index.html +1 -1
  7. package/dist/client/index.html +1 -1
  8. package/dist/packages/contract/mdjournal/domains/CalendarApi.d.ts +19 -0
  9. package/dist/packages/contract/mdjournal/domains/CalendarApi.d.ts.map +1 -0
  10. package/dist/packages/contract/mdjournal/domains/CalendarApi.js +7 -0
  11. package/dist/packages/contract/mdjournal/domains/CalendarApi.js.map +1 -0
  12. package/dist/packages/contract/mdjournal/domains/ConfigApi.d.ts +29 -0
  13. package/dist/packages/contract/mdjournal/domains/ConfigApi.d.ts.map +1 -0
  14. package/dist/packages/contract/mdjournal/domains/ConfigApi.js +7 -0
  15. package/dist/packages/contract/mdjournal/domains/ConfigApi.js.map +1 -0
  16. package/dist/packages/contract/mdjournal/domains/GitApi.d.ts +14 -0
  17. package/dist/packages/contract/mdjournal/domains/GitApi.d.ts.map +1 -0
  18. package/dist/packages/contract/mdjournal/domains/GitApi.js +7 -0
  19. package/dist/packages/contract/mdjournal/domains/GitApi.js.map +1 -0
  20. package/dist/packages/contract/mdjournal/domains/ReportApi.d.ts +24 -0
  21. package/dist/packages/contract/mdjournal/domains/ReportApi.d.ts.map +1 -0
  22. package/dist/packages/contract/mdjournal/domains/ReportApi.js +7 -0
  23. package/dist/packages/contract/mdjournal/domains/ReportApi.js.map +1 -0
  24. package/dist/packages/contract/mdjournal/domains/index.d.ts +24 -0
  25. package/dist/packages/contract/mdjournal/domains/index.d.ts.map +1 -0
  26. package/dist/packages/contract/mdjournal/domains/index.js +7 -0
  27. package/dist/packages/contract/mdjournal/domains/index.js.map +1 -0
  28. package/dist/packages/contract/mdjournal/errors/index.d.ts +19 -0
  29. package/dist/packages/contract/mdjournal/errors/index.d.ts.map +1 -0
  30. package/dist/packages/contract/mdjournal/errors/index.js +29 -0
  31. package/dist/packages/contract/mdjournal/errors/index.js.map +1 -0
  32. package/dist/packages/contract/mdjournal/index.d.ts +8 -0
  33. package/dist/packages/contract/mdjournal/index.d.ts.map +1 -0
  34. package/dist/packages/contract/mdjournal/index.js +8 -0
  35. package/dist/packages/contract/mdjournal/index.js.map +1 -0
  36. package/dist/packages/contract/mdjournal/schemas/index.d.ts +7 -0
  37. package/dist/packages/contract/mdjournal/schemas/index.d.ts.map +1 -0
  38. package/dist/packages/contract/mdjournal/schemas/index.js +7 -0
  39. package/dist/packages/contract/mdjournal/schemas/index.js.map +1 -0
  40. package/dist/packages/contract/mdjournal/schemas/types.d.ts +357 -0
  41. package/dist/packages/contract/mdjournal/schemas/types.d.ts.map +1 -0
  42. package/dist/packages/contract/mdjournal/schemas/types.js +7 -0
  43. package/dist/packages/contract/mdjournal/schemas/types.js.map +1 -0
  44. package/dist/packages/contract/mdjournal/schemas/validators.d.ts +1576 -0
  45. package/dist/packages/contract/mdjournal/schemas/validators.d.ts.map +1 -0
  46. package/dist/packages/contract/mdjournal/schemas/validators.js +952 -0
  47. package/dist/packages/contract/mdjournal/schemas/validators.js.map +1 -0
  48. package/dist/server/src/cli.d.ts.map +1 -0
  49. package/dist/server/src/cli.js.map +1 -0
  50. package/dist/server/src/index.d.ts.map +1 -0
  51. package/dist/{index.js → server/src/index.js} +21 -11
  52. package/dist/server/src/index.js.map +1 -0
  53. package/dist/server/src/mdjournal/domains/CalendarDomain.d.ts +19 -0
  54. package/dist/server/src/mdjournal/domains/CalendarDomain.d.ts.map +1 -0
  55. package/dist/server/src/mdjournal/domains/CalendarDomain.js +88 -0
  56. package/dist/server/src/mdjournal/domains/CalendarDomain.js.map +1 -0
  57. package/dist/server/src/mdjournal/domains/CalendarDomain.test.d.ts +2 -0
  58. package/dist/server/src/mdjournal/domains/CalendarDomain.test.d.ts.map +1 -0
  59. package/dist/server/src/mdjournal/domains/CalendarDomain.test.js +111 -0
  60. package/dist/server/src/mdjournal/domains/CalendarDomain.test.js.map +1 -0
  61. package/dist/server/src/mdjournal/domains/ConfigDomain.d.ts +27 -0
  62. package/dist/server/src/mdjournal/domains/ConfigDomain.d.ts.map +1 -0
  63. package/dist/server/src/mdjournal/domains/ConfigDomain.js +59 -0
  64. package/dist/server/src/mdjournal/domains/ConfigDomain.js.map +1 -0
  65. package/dist/server/src/mdjournal/domains/ConfigDomain.test.d.ts +2 -0
  66. package/dist/server/src/mdjournal/domains/ConfigDomain.test.d.ts.map +1 -0
  67. package/dist/server/src/mdjournal/domains/ConfigDomain.test.js +177 -0
  68. package/dist/server/src/mdjournal/domains/ConfigDomain.test.js.map +1 -0
  69. package/dist/server/src/mdjournal/domains/GitDomain.d.ts +15 -0
  70. package/dist/server/src/mdjournal/domains/GitDomain.d.ts.map +1 -0
  71. package/dist/server/src/mdjournal/domains/GitDomain.js +16 -0
  72. package/dist/server/src/mdjournal/domains/GitDomain.js.map +1 -0
  73. package/dist/server/src/mdjournal/domains/GitDomain.test.d.ts +2 -0
  74. package/dist/server/src/mdjournal/domains/GitDomain.test.d.ts.map +1 -0
  75. package/dist/server/src/mdjournal/domains/GitDomain.test.js +112 -0
  76. package/dist/server/src/mdjournal/domains/GitDomain.test.js.map +1 -0
  77. package/dist/server/src/mdjournal/domains/ReportDomain.d.ts +23 -0
  78. package/dist/server/src/mdjournal/domains/ReportDomain.d.ts.map +1 -0
  79. package/dist/server/src/mdjournal/domains/ReportDomain.js +117 -0
  80. package/dist/server/src/mdjournal/domains/ReportDomain.js.map +1 -0
  81. package/dist/server/src/mdjournal/domains/ReportDomain.test.d.ts +2 -0
  82. package/dist/server/src/mdjournal/domains/ReportDomain.test.d.ts.map +1 -0
  83. package/dist/server/src/mdjournal/domains/ReportDomain.test.js +207 -0
  84. package/dist/server/src/mdjournal/domains/ReportDomain.test.js.map +1 -0
  85. package/dist/server/src/mdjournal/domains/errors.d.ts +17 -0
  86. package/dist/server/src/mdjournal/domains/errors.d.ts.map +1 -0
  87. package/dist/server/src/mdjournal/domains/errors.js +27 -0
  88. package/dist/server/src/mdjournal/domains/errors.js.map +1 -0
  89. package/dist/server/src/mdjournal/domains/index.d.ts +15 -0
  90. package/dist/server/src/mdjournal/domains/index.d.ts.map +1 -0
  91. package/dist/server/src/mdjournal/domains/index.js +11 -0
  92. package/dist/server/src/mdjournal/domains/index.js.map +1 -0
  93. package/dist/server/src/mdjournal/index.d.ts +17 -0
  94. package/dist/server/src/mdjournal/index.d.ts.map +1 -0
  95. package/dist/server/src/mdjournal/index.js +34 -0
  96. package/dist/server/src/mdjournal/index.js.map +1 -0
  97. package/dist/server/src/mdjournal/routes.generated.d.ts +28 -0
  98. package/dist/server/src/mdjournal/routes.generated.d.ts.map +1 -0
  99. package/dist/server/src/mdjournal/routes.generated.js +403 -0
  100. package/dist/server/src/mdjournal/routes.generated.js.map +1 -0
  101. package/dist/server/src/types/index.d.ts.map +1 -0
  102. package/dist/server/src/types/index.js.map +1 -0
  103. package/dist/server/src/utils/configValidator.d.ts.map +1 -0
  104. package/dist/server/src/utils/configValidator.js.map +1 -0
  105. package/dist/server/src/utils/configValidator.test.d.ts +2 -0
  106. package/dist/server/src/utils/configValidator.test.d.ts.map +1 -0
  107. package/dist/server/src/utils/configValidator.test.js +359 -0
  108. package/dist/server/src/utils/configValidator.test.js.map +1 -0
  109. package/dist/server/src/utils/fileManager.d.ts.map +1 -0
  110. package/dist/server/src/utils/fileManager.js.map +1 -0
  111. package/dist/server/src/utils/git.d.ts.map +1 -0
  112. package/dist/server/src/utils/git.js.map +1 -0
  113. package/dist/server/src/utils/index.d.ts.map +1 -0
  114. package/dist/server/src/utils/index.js.map +1 -0
  115. package/dist/server/src/utils/markdown.d.ts.map +1 -0
  116. package/dist/server/src/utils/markdown.js.map +1 -0
  117. package/dist/server/src/utils/markdown.test.d.ts +2 -0
  118. package/dist/server/src/utils/markdown.test.d.ts.map +1 -0
  119. package/dist/server/src/utils/markdown.test.js +291 -0
  120. package/dist/server/src/utils/markdown.test.js.map +1 -0
  121. package/dist/server/src/utils/slack.d.ts.map +1 -0
  122. package/dist/server/src/utils/slack.js.map +1 -0
  123. package/dist/server/src/utils/validator.d.ts.map +1 -0
  124. package/dist/server/src/utils/validator.js.map +1 -0
  125. package/dist/server/src/utils/validator.test.d.ts +2 -0
  126. package/dist/server/src/utils/validator.test.d.ts.map +1 -0
  127. package/dist/server/src/utils/validator.test.js +307 -0
  128. package/dist/server/src/utils/validator.test.js.map +1 -0
  129. package/package.json +37 -17
  130. package/dist/cli.d.ts.map +0 -1
  131. package/dist/cli.js.map +0 -1
  132. package/dist/client/assets/index-DlkkIyB6.js +0 -402
  133. package/dist/client/dist/assets/index-DlkkIyB6.js +0 -402
  134. package/dist/index.d.ts.map +0 -1
  135. package/dist/index.js.map +0 -1
  136. package/dist/routes/calendar.d.ts +0 -8
  137. package/dist/routes/calendar.d.ts.map +0 -1
  138. package/dist/routes/calendar.js +0 -115
  139. package/dist/routes/calendar.js.map +0 -1
  140. package/dist/routes/config.d.ts +0 -11
  141. package/dist/routes/config.d.ts.map +0 -1
  142. package/dist/routes/config.js +0 -120
  143. package/dist/routes/config.js.map +0 -1
  144. package/dist/routes/gcal.d.ts +0 -10
  145. package/dist/routes/gcal.d.ts.map +0 -1
  146. package/dist/routes/gcal.js +0 -100
  147. package/dist/routes/gcal.js.map +0 -1
  148. package/dist/routes/git.d.ts +0 -8
  149. package/dist/routes/git.d.ts.map +0 -1
  150. package/dist/routes/git.js +0 -28
  151. package/dist/routes/git.js.map +0 -1
  152. package/dist/routes/index.d.ts +0 -9
  153. package/dist/routes/index.d.ts.map +0 -1
  154. package/dist/routes/index.js +0 -9
  155. package/dist/routes/index.js.map +0 -1
  156. package/dist/routes/reports.d.ts +0 -10
  157. package/dist/routes/reports.d.ts.map +0 -1
  158. package/dist/routes/reports.js +0 -175
  159. package/dist/routes/reports.js.map +0 -1
  160. package/dist/types/index.d.ts.map +0 -1
  161. package/dist/types/index.js.map +0 -1
  162. package/dist/utils/configValidator.d.ts.map +0 -1
  163. package/dist/utils/configValidator.js.map +0 -1
  164. package/dist/utils/fileManager.d.ts.map +0 -1
  165. package/dist/utils/fileManager.js.map +0 -1
  166. package/dist/utils/git.d.ts.map +0 -1
  167. package/dist/utils/git.js.map +0 -1
  168. package/dist/utils/index.d.ts.map +0 -1
  169. package/dist/utils/index.js.map +0 -1
  170. package/dist/utils/markdown.d.ts.map +0 -1
  171. package/dist/utils/markdown.js.map +0 -1
  172. package/dist/utils/slack.d.ts.map +0 -1
  173. package/dist/utils/slack.js.map +0 -1
  174. package/dist/utils/validator.d.ts.map +0 -1
  175. package/dist/utils/validator.js.map +0 -1
  176. /package/{docs → dist/docs}/api-reference.html +0 -0
  177. /package/{docs → dist/docs}/config-spec.md +0 -0
  178. /package/{docs → dist/docs}/extension-spec.md +0 -0
  179. /package/{docs → dist/docs}/index.md +0 -0
  180. /package/{docs → dist/docs}/integration-spec.md +0 -0
  181. /package/{docs → dist/docs}/markdown-format-spec.md +0 -0
  182. /package/{docs → dist/docs}/openapi.yaml +0 -0
  183. /package/{docs → dist/docs}/requirements.md +0 -0
  184. /package/{docs → dist/docs}/screenshot.png +0 -0
  185. /package/dist/{cli.d.ts → server/src/cli.d.ts} +0 -0
  186. /package/dist/{cli.js → server/src/cli.js} +0 -0
  187. /package/dist/{index.d.ts → server/src/index.d.ts} +0 -0
  188. /package/dist/{types → server/src/types}/index.d.ts +0 -0
  189. /package/dist/{types → server/src/types}/index.js +0 -0
  190. /package/dist/{utils → server/src/utils}/configValidator.d.ts +0 -0
  191. /package/dist/{utils → server/src/utils}/configValidator.js +0 -0
  192. /package/dist/{utils → server/src/utils}/fileManager.d.ts +0 -0
  193. /package/dist/{utils → server/src/utils}/fileManager.js +0 -0
  194. /package/dist/{utils → server/src/utils}/git.d.ts +0 -0
  195. /package/dist/{utils → server/src/utils}/git.js +0 -0
  196. /package/dist/{utils → server/src/utils}/index.d.ts +0 -0
  197. /package/dist/{utils → server/src/utils}/index.js +0 -0
  198. /package/dist/{utils → server/src/utils}/markdown.d.ts +0 -0
  199. /package/dist/{utils → server/src/utils}/markdown.js +0 -0
  200. /package/dist/{utils → server/src/utils}/slack.d.ts +0 -0
  201. /package/dist/{utils → server/src/utils}/slack.js +0 -0
  202. /package/dist/{utils → server/src/utils}/validator.d.ts +0 -0
  203. /package/dist/{utils → server/src/utils}/validator.js +0 -0
@@ -0,0 +1,402 @@
1
+ function OP(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const s=Object.getOwnPropertyDescriptor(r,i);s&&Object.defineProperty(e,i,s.get?s:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const c of s.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&r(c)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();function Ma(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ny={exports:{}},Ic={};var lw;function NP(){if(lw)return Ic;lw=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,i,s){var c=null;if(s!==void 0&&(c=""+s),i.key!==void 0&&(c=""+i.key),"key"in i){s={};for(var d in i)d!=="key"&&(s[d]=i[d])}else s=i;return i=s.ref,{$$typeof:e,type:r,key:c,ref:i!==void 0?i:null,props:s}}return Ic.Fragment=t,Ic.jsx=n,Ic.jsxs=n,Ic}var sw;function IP(){return sw||(sw=1,ny.exports=NP()),ny.exports}var U=IP(),ry={exports:{}},Ot={};var cw;function PP(){if(cw)return Ot;cw=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),c=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),h=Symbol.for("react.activity"),y=Symbol.iterator;function C(A){return A===null||typeof A!="object"?null:(A=y&&A[y]||A["@@iterator"],typeof A=="function"?A:null)}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x=Object.assign,S={};function $(A,j,q){this.props=A,this.context=j,this.refs=S,this.updater=q||b}$.prototype.isReactComponent={},$.prototype.setState=function(A,j){if(typeof A!="object"&&typeof A!="function"&&A!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,A,j,"setState")},$.prototype.forceUpdate=function(A){this.updater.enqueueForceUpdate(this,A,"forceUpdate")};function M(){}M.prototype=$.prototype;function w(A,j,q){this.props=A,this.context=j,this.refs=S,this.updater=q||b}var R=w.prototype=new M;R.constructor=w,x(R,$.prototype),R.isPureReactComponent=!0;var T=Array.isArray;function N(){}var O={H:null,A:null,T:null,S:null},P=Object.prototype.hasOwnProperty;function D(A,j,q){var X=q.ref;return{$$typeof:e,type:A,key:j,ref:X!==void 0?X:null,props:q}}function k(A,j){return D(A.type,j,A.props)}function F(A){return typeof A=="object"&&A!==null&&A.$$typeof===e}function Y(A){var j={"=":"=0",":":"=2"};return"$"+A.replace(/[=:]/g,function(q){return j[q]})}var G=/\/+/g;function V(A,j){return typeof A=="object"&&A!==null&&A.key!=null?Y(""+A.key):j.toString(36)}function B(A){switch(A.status){case"fulfilled":return A.value;case"rejected":throw A.reason;default:switch(typeof A.status=="string"?A.then(N,N):(A.status="pending",A.then(function(j){A.status==="pending"&&(A.status="fulfilled",A.value=j)},function(j){A.status==="pending"&&(A.status="rejected",A.reason=j)})),A.status){case"fulfilled":return A.value;case"rejected":throw A.reason}}throw A}function _(A,j,q,X,K){var J=typeof A;(J==="undefined"||J==="boolean")&&(A=null);var Z=!1;if(A===null)Z=!0;else switch(J){case"bigint":case"string":case"number":Z=!0;break;case"object":switch(A.$$typeof){case e:case t:Z=!0;break;case g:return Z=A._init,_(Z(A._payload),j,q,X,K)}}if(Z)return K=K(A),Z=X===""?"."+V(A,0):X,T(K)?(q="",Z!=null&&(q=Z.replace(G,"$&/")+"/"),_(K,j,q,"",function(ie){return ie})):K!=null&&(F(K)&&(K=k(K,q+(K.key==null||A&&A.key===K.key?"":(""+K.key).replace(G,"$&/")+"/")+Z)),j.push(K)),1;Z=0;var re=X===""?".":X+":";if(T(A))for(var ne=0;ne<A.length;ne++)X=A[ne],J=re+V(X,ne),Z+=_(X,j,q,J,K);else if(ne=C(A),typeof ne=="function")for(A=ne.call(A),ne=0;!(X=A.next()).done;)X=X.value,J=re+V(X,ne++),Z+=_(X,j,q,J,K);else if(J==="object"){if(typeof A.then=="function")return _(B(A),j,q,X,K);throw j=String(A),Error("Objects are not valid as a React child (found: "+(j==="[object Object]"?"object with keys {"+Object.keys(A).join(", ")+"}":j)+"). If you meant to render a collection of children, use an array instead.")}return Z}function H(A,j,q){if(A==null)return A;var X=[],K=0;return _(A,X,"","",function(J){return j.call(q,J,K++)}),X}function I(A){if(A._status===-1){var j=A._result;j=j(),j.then(function(q){(A._status===0||A._status===-1)&&(A._status=1,A._result=q)},function(q){(A._status===0||A._status===-1)&&(A._status=2,A._result=q)}),A._status===-1&&(A._status=0,A._result=j)}if(A._status===1)return A._result.default;throw A._result}var z=typeof reportError=="function"?reportError:function(A){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var j=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof A=="object"&&A!==null&&typeof A.message=="string"?String(A.message):String(A),error:A});if(!window.dispatchEvent(j))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",A);return}console.error(A)},L={map:H,forEach:function(A,j,q){H(A,function(){j.apply(this,arguments)},q)},count:function(A){var j=0;return H(A,function(){j++}),j},toArray:function(A){return H(A,function(j){return j})||[]},only:function(A){if(!F(A))throw Error("React.Children.only expected to receive a single React element child.");return A}};return Ot.Activity=h,Ot.Children=L,Ot.Component=$,Ot.Fragment=n,Ot.Profiler=i,Ot.PureComponent=w,Ot.StrictMode=r,Ot.Suspense=f,Ot.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=O,Ot.__COMPILER_RUNTIME={__proto__:null,c:function(A){return O.H.useMemoCache(A)}},Ot.cache=function(A){return function(){return A.apply(null,arguments)}},Ot.cacheSignal=function(){return null},Ot.cloneElement=function(A,j,q){if(A==null)throw Error("The argument must be a React element, but you passed "+A+".");var X=x({},A.props),K=A.key;if(j!=null)for(J in j.key!==void 0&&(K=""+j.key),j)!P.call(j,J)||J==="key"||J==="__self"||J==="__source"||J==="ref"&&j.ref===void 0||(X[J]=j[J]);var J=arguments.length-2;if(J===1)X.children=q;else if(1<J){for(var Z=Array(J),re=0;re<J;re++)Z[re]=arguments[re+2];X.children=Z}return D(A.type,K,X)},Ot.createContext=function(A){return A={$$typeof:c,_currentValue:A,_currentValue2:A,_threadCount:0,Provider:null,Consumer:null},A.Provider=A,A.Consumer={$$typeof:s,_context:A},A},Ot.createElement=function(A,j,q){var X,K={},J=null;if(j!=null)for(X in j.key!==void 0&&(J=""+j.key),j)P.call(j,X)&&X!=="key"&&X!=="__self"&&X!=="__source"&&(K[X]=j[X]);var Z=arguments.length-2;if(Z===1)K.children=q;else if(1<Z){for(var re=Array(Z),ne=0;ne<Z;ne++)re[ne]=arguments[ne+2];K.children=re}if(A&&A.defaultProps)for(X in Z=A.defaultProps,Z)K[X]===void 0&&(K[X]=Z[X]);return D(A,J,K)},Ot.createRef=function(){return{current:null}},Ot.forwardRef=function(A){return{$$typeof:d,render:A}},Ot.isValidElement=F,Ot.lazy=function(A){return{$$typeof:g,_payload:{_status:-1,_result:A},_init:I}},Ot.memo=function(A,j){return{$$typeof:p,type:A,compare:j===void 0?null:j}},Ot.startTransition=function(A){var j=O.T,q={};O.T=q;try{var X=A(),K=O.S;K!==null&&K(q,X),typeof X=="object"&&X!==null&&typeof X.then=="function"&&X.then(N,z)}catch(J){z(J)}finally{j!==null&&q.types!==null&&(j.types=q.types),O.T=j}},Ot.unstable_useCacheRefresh=function(){return O.H.useCacheRefresh()},Ot.use=function(A){return O.H.use(A)},Ot.useActionState=function(A,j,q){return O.H.useActionState(A,j,q)},Ot.useCallback=function(A,j){return O.H.useCallback(A,j)},Ot.useContext=function(A){return O.H.useContext(A)},Ot.useDebugValue=function(){},Ot.useDeferredValue=function(A,j){return O.H.useDeferredValue(A,j)},Ot.useEffect=function(A,j){return O.H.useEffect(A,j)},Ot.useEffectEvent=function(A){return O.H.useEffectEvent(A)},Ot.useId=function(){return O.H.useId()},Ot.useImperativeHandle=function(A,j,q){return O.H.useImperativeHandle(A,j,q)},Ot.useInsertionEffect=function(A,j){return O.H.useInsertionEffect(A,j)},Ot.useLayoutEffect=function(A,j){return O.H.useLayoutEffect(A,j)},Ot.useMemo=function(A,j){return O.H.useMemo(A,j)},Ot.useOptimistic=function(A,j){return O.H.useOptimistic(A,j)},Ot.useReducer=function(A,j,q){return O.H.useReducer(A,j,q)},Ot.useRef=function(A){return O.H.useRef(A)},Ot.useState=function(A){return O.H.useState(A)},Ot.useSyncExternalStore=function(A,j,q){return O.H.useSyncExternalStore(A,j,q)},Ot.useTransition=function(){return O.H.useTransition()},Ot.version="19.2.3",Ot}var uw;function bS(){return uw||(uw=1,ry.exports=PP()),ry.exports}var l=bS();const ae=Ma(l),zP=OP({__proto__:null,default:ae},[l]);var oy={exports:{}},Pc={},ay={exports:{}},iy={};var dw;function AP(){return dw||(dw=1,(function(e){function t(_,H){var I=_.length;_.push(H);e:for(;0<I;){var z=I-1>>>1,L=_[z];if(0<i(L,H))_[z]=H,_[I]=L,I=z;else break e}}function n(_){return _.length===0?null:_[0]}function r(_){if(_.length===0)return null;var H=_[0],I=_.pop();if(I!==H){_[0]=I;e:for(var z=0,L=_.length,A=L>>>1;z<A;){var j=2*(z+1)-1,q=_[j],X=j+1,K=_[X];if(0>i(q,I))X<L&&0>i(K,q)?(_[z]=K,_[X]=I,z=X):(_[z]=q,_[j]=I,z=j);else if(X<L&&0>i(K,I))_[z]=K,_[X]=I,z=X;else break e}}return H}function i(_,H){var I=_.sortIndex-H.sortIndex;return I!==0?I:_.id-H.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var c=Date,d=c.now();e.unstable_now=function(){return c.now()-d}}var f=[],p=[],g=1,h=null,y=3,C=!1,b=!1,x=!1,S=!1,$=typeof setTimeout=="function"?setTimeout:null,M=typeof clearTimeout=="function"?clearTimeout:null,w=typeof setImmediate<"u"?setImmediate:null;function R(_){for(var H=n(p);H!==null;){if(H.callback===null)r(p);else if(H.startTime<=_)r(p),H.sortIndex=H.expirationTime,t(f,H);else break;H=n(p)}}function T(_){if(x=!1,R(_),!b)if(n(f)!==null)b=!0,N||(N=!0,Y());else{var H=n(p);H!==null&&B(T,H.startTime-_)}}var N=!1,O=-1,P=5,D=-1;function k(){return S?!0:!(e.unstable_now()-D<P)}function F(){if(S=!1,N){var _=e.unstable_now();D=_;var H=!0;try{e:{b=!1,x&&(x=!1,M(O),O=-1),C=!0;var I=y;try{t:{for(R(_),h=n(f);h!==null&&!(h.expirationTime>_&&k());){var z=h.callback;if(typeof z=="function"){h.callback=null,y=h.priorityLevel;var L=z(h.expirationTime<=_);if(_=e.unstable_now(),typeof L=="function"){h.callback=L,R(_),H=!0;break t}h===n(f)&&r(f),R(_)}else r(f);h=n(f)}if(h!==null)H=!0;else{var A=n(p);A!==null&&B(T,A.startTime-_),H=!1}}break e}finally{h=null,y=I,C=!1}H=void 0}}finally{H?Y():N=!1}}}var Y;if(typeof w=="function")Y=function(){w(F)};else if(typeof MessageChannel<"u"){var G=new MessageChannel,V=G.port2;G.port1.onmessage=F,Y=function(){V.postMessage(null)}}else Y=function(){$(F,0)};function B(_,H){O=$(function(){_(e.unstable_now())},H)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(_){_.callback=null},e.unstable_forceFrameRate=function(_){0>_||125<_?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<_?Math.floor(1e3/_):5},e.unstable_getCurrentPriorityLevel=function(){return y},e.unstable_next=function(_){switch(y){case 1:case 2:case 3:var H=3;break;default:H=y}var I=y;y=H;try{return _()}finally{y=I}},e.unstable_requestPaint=function(){S=!0},e.unstable_runWithPriority=function(_,H){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var I=y;y=_;try{return H()}finally{y=I}},e.unstable_scheduleCallback=function(_,H,I){var z=e.unstable_now();switch(typeof I=="object"&&I!==null?(I=I.delay,I=typeof I=="number"&&0<I?z+I:z):I=z,_){case 1:var L=-1;break;case 2:L=250;break;case 5:L=1073741823;break;case 4:L=1e4;break;default:L=5e3}return L=I+L,_={id:g++,callback:H,priorityLevel:_,startTime:I,expirationTime:L,sortIndex:-1},I>z?(_.sortIndex=I,t(p,_),n(f)===null&&_===n(p)&&(x?(M(O),O=-1):x=!0,B(T,I-z))):(_.sortIndex=L,t(f,_),b||C||(b=!0,N||(N=!0,Y()))),_},e.unstable_shouldYield=k,e.unstable_wrapCallback=function(_){var H=y;return function(){var I=y;y=H;try{return _.apply(this,arguments)}finally{y=I}}}})(iy)),iy}var fw;function DP(){return fw||(fw=1,ay.exports=AP()),ay.exports}var ly={exports:{}},wr={};var mw;function jP(){if(mw)return wr;mw=1;var e=bS();function t(f){var p="https://react.dev/errors/"+f;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var g=2;g<arguments.length;g++)p+="&args[]="+encodeURIComponent(arguments[g])}return"Minified React error #"+f+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},i=Symbol.for("react.portal");function s(f,p,g){var h=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:i,key:h==null?null:""+h,children:f,containerInfo:p,implementation:g}}var c=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(f,p){if(f==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return wr.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,wr.createPortal=function(f,p){var g=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(t(299));return s(f,p,null,g)},wr.flushSync=function(f){var p=c.T,g=r.p;try{if(c.T=null,r.p=2,f)return f()}finally{c.T=p,r.p=g,r.d.f()}},wr.preconnect=function(f,p){typeof f=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,r.d.C(f,p))},wr.prefetchDNS=function(f){typeof f=="string"&&r.d.D(f)},wr.preinit=function(f,p){if(typeof f=="string"&&p&&typeof p.as=="string"){var g=p.as,h=d(g,p.crossOrigin),y=typeof p.integrity=="string"?p.integrity:void 0,C=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;g==="style"?r.d.S(f,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:h,integrity:y,fetchPriority:C}):g==="script"&&r.d.X(f,{crossOrigin:h,integrity:y,fetchPriority:C,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},wr.preinitModule=function(f,p){if(typeof f=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var g=d(p.as,p.crossOrigin);r.d.M(f,{crossOrigin:g,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&r.d.M(f)},wr.preload=function(f,p){if(typeof f=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var g=p.as,h=d(g,p.crossOrigin);r.d.L(f,g,{crossOrigin:h,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},wr.preloadModule=function(f,p){if(typeof f=="string")if(p){var g=d(p.as,p.crossOrigin);r.d.m(f,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:g,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else r.d.m(f)},wr.requestFormReset=function(f){r.d.r(f)},wr.unstable_batchedUpdates=function(f,p){return f(p)},wr.useFormState=function(f,p,g){return c.H.useFormState(f,p,g)},wr.useFormStatus=function(){return c.H.useHostTransitionStatus()},wr.version="19.2.3",wr}var pw;function J4(){if(pw)return ly.exports;pw=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),ly.exports=jP(),ly.exports}var gw;function _P(){if(gw)return Pc;gw=1;var e=DP(),t=bS(),n=J4();function r(o){var a="https://react.dev/errors/"+o;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var u=2;u<arguments.length;u++)a+="&args[]="+encodeURIComponent(arguments[u])}return"Minified React error #"+o+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(o){return!(!o||o.nodeType!==1&&o.nodeType!==9&&o.nodeType!==11)}function s(o){var a=o,u=o;if(o.alternate)for(;a.return;)a=a.return;else{o=a;do a=o,(a.flags&4098)!==0&&(u=a.return),o=a.return;while(o)}return a.tag===3?u:null}function c(o){if(o.tag===13){var a=o.memoizedState;if(a===null&&(o=o.alternate,o!==null&&(a=o.memoizedState)),a!==null)return a.dehydrated}return null}function d(o){if(o.tag===31){var a=o.memoizedState;if(a===null&&(o=o.alternate,o!==null&&(a=o.memoizedState)),a!==null)return a.dehydrated}return null}function f(o){if(s(o)!==o)throw Error(r(188))}function p(o){var a=o.alternate;if(!a){if(a=s(o),a===null)throw Error(r(188));return a!==o?null:o}for(var u=o,m=a;;){var v=u.return;if(v===null)break;var E=v.alternate;if(E===null){if(m=v.return,m!==null){u=m;continue}break}if(v.child===E.child){for(E=v.child;E;){if(E===u)return f(v),o;if(E===m)return f(v),a;E=E.sibling}throw Error(r(188))}if(u.return!==m.return)u=v,m=E;else{for(var W=!1,ee=v.child;ee;){if(ee===u){W=!0,u=v,m=E;break}if(ee===m){W=!0,m=v,u=E;break}ee=ee.sibling}if(!W){for(ee=E.child;ee;){if(ee===u){W=!0,u=E,m=v;break}if(ee===m){W=!0,m=E,u=v;break}ee=ee.sibling}if(!W)throw Error(r(189))}}if(u.alternate!==m)throw Error(r(190))}if(u.tag!==3)throw Error(r(188));return u.stateNode.current===u?o:a}function g(o){var a=o.tag;if(a===5||a===26||a===27||a===6)return o;for(o=o.child;o!==null;){if(a=g(o),a!==null)return a;o=o.sibling}return null}var h=Object.assign,y=Symbol.for("react.element"),C=Symbol.for("react.transitional.element"),b=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),$=Symbol.for("react.profiler"),M=Symbol.for("react.consumer"),w=Symbol.for("react.context"),R=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),O=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),D=Symbol.for("react.activity"),k=Symbol.for("react.memo_cache_sentinel"),F=Symbol.iterator;function Y(o){return o===null||typeof o!="object"?null:(o=F&&o[F]||o["@@iterator"],typeof o=="function"?o:null)}var G=Symbol.for("react.client.reference");function V(o){if(o==null)return null;if(typeof o=="function")return o.$$typeof===G?null:o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case x:return"Fragment";case $:return"Profiler";case S:return"StrictMode";case T:return"Suspense";case N:return"SuspenseList";case D:return"Activity"}if(typeof o=="object")switch(o.$$typeof){case b:return"Portal";case w:return o.displayName||"Context";case M:return(o._context.displayName||"Context")+".Consumer";case R:var a=o.render;return o=o.displayName,o||(o=a.displayName||a.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case O:return a=o.displayName||null,a!==null?a:V(o.type)||"Memo";case P:a=o._payload,o=o._init;try{return V(o(a))}catch{}}return null}var B=Array.isArray,_=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,H=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,I={pending:!1,data:null,method:null,action:null},z=[],L=-1;function A(o){return{current:o}}function j(o){0>L||(o.current=z[L],z[L]=null,L--)}function q(o,a){L++,z[L]=o.current,o.current=a}var X=A(null),K=A(null),J=A(null),Z=A(null);function re(o,a){switch(q(J,a),q(K,o),q(X,null),a.nodeType){case 9:case 11:o=(o=a.documentElement)&&(o=o.namespaceURI)?Nx(o):0;break;default:if(o=a.tagName,a=a.namespaceURI)a=Nx(a),o=Ix(a,o);else switch(o){case"svg":o=1;break;case"math":o=2;break;default:o=0}}j(X),q(X,o)}function ne(){j(X),j(K),j(J)}function ie(o){o.memoizedState!==null&&q(Z,o);var a=X.current,u=Ix(a,o.type);a!==u&&(q(K,o),q(X,u))}function fe(o){K.current===o&&(j(X),j(K)),Z.current===o&&(j(Z),Rc._currentValue=I)}var le,ue;function ge(o){if(le===void 0)try{throw Error()}catch(u){var a=u.stack.trim().match(/\n( *(at )?)/);le=a&&a[1]||"",ue=-1<u.stack.indexOf(`
2
+ at`)?" (<anonymous>)":-1<u.stack.indexOf("@")?"@unknown:0:0":""}return`
3
+ `+le+o+ue}var oe=!1;function se(o,a){if(!o||oe)return"";oe=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var m={DetermineComponentFrameRoot:function(){try{if(a){var Fe=function(){throw Error()};if(Object.defineProperty(Fe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Fe,[])}catch(Te){var Ee=Te}Reflect.construct(o,[],Fe)}else{try{Fe.call()}catch(Te){Ee=Te}o.call(Fe.prototype)}}else{try{throw Error()}catch(Te){Ee=Te}(Fe=o())&&typeof Fe.catch=="function"&&Fe.catch(function(){})}}catch(Te){if(Te&&Ee&&typeof Te.stack=="string")return[Te.stack,Ee.stack]}return[null,null]}};m.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var v=Object.getOwnPropertyDescriptor(m.DetermineComponentFrameRoot,"name");v&&v.configurable&&Object.defineProperty(m.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var E=m.DetermineComponentFrameRoot(),W=E[0],ee=E[1];if(W&&ee){var ce=W.split(`
4
+ `),Ce=ee.split(`
5
+ `);for(v=m=0;m<ce.length&&!ce[m].includes("DetermineComponentFrameRoot");)m++;for(;v<Ce.length&&!Ce[v].includes("DetermineComponentFrameRoot");)v++;if(m===ce.length||v===Ce.length)for(m=ce.length-1,v=Ce.length-1;1<=m&&0<=v&&ce[m]!==Ce[v];)v--;for(;1<=m&&0<=v;m--,v--)if(ce[m]!==Ce[v]){if(m!==1||v!==1)do if(m--,v--,0>v||ce[m]!==Ce[v]){var He=`
6
+ `+ce[m].replace(" at new "," at ");return o.displayName&&He.includes("<anonymous>")&&(He=He.replace("<anonymous>",o.displayName)),He}while(1<=m&&0<=v);break}}}finally{oe=!1,Error.prepareStackTrace=u}return(u=o?o.displayName||o.name:"")?ge(u):""}function he(o,a){switch(o.tag){case 26:case 27:case 5:return ge(o.type);case 16:return ge("Lazy");case 13:return o.child!==a&&a!==null?ge("Suspense Fallback"):ge("Suspense");case 19:return ge("SuspenseList");case 0:case 15:return se(o.type,!1);case 11:return se(o.type.render,!1);case 1:return se(o.type,!0);case 31:return ge("Activity");default:return""}}function me(o){try{var a="",u=null;do a+=he(o,u),u=o,o=o.return;while(o);return a}catch(m){return`
7
+ Error generating stack: `+m.message+`
8
+ `+m.stack}}var xe=Object.prototype.hasOwnProperty,Ae=e.unstable_scheduleCallback,we=e.unstable_cancelCallback,$e=e.unstable_shouldYield,de=e.unstable_requestPaint,be=e.unstable_now,Me=e.unstable_getCurrentPriorityLevel,Oe=e.unstable_ImmediatePriority,Le=e.unstable_UserBlockingPriority,Ge=e.unstable_NormalPriority,et=e.unstable_LowPriority,ze=e.unstable_IdlePriority,_e=e.log,De=e.unstable_setDisableYieldValue,Ue=null,Ne=null;function Se(o){if(typeof _e=="function"&&De(o),Ne&&typeof Ne.setStrictMode=="function")try{Ne.setStrictMode(Ue,o)}catch{}}var Be=Math.clz32?Math.clz32:Xe,Je=Math.log,We=Math.LN2;function Xe(o){return o>>>=0,o===0?32:31-(Je(o)/We|0)|0}var Ie=256,Ke=262144,ot=4194304;function at(o){var a=o&42;if(a!==0)return a;switch(o&-o){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return o&261888;case 262144:case 524288:case 1048576:case 2097152:return o&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return o&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return o}}function lt(o,a,u){var m=o.pendingLanes;if(m===0)return 0;var v=0,E=o.suspendedLanes,W=o.pingedLanes;o=o.warmLanes;var ee=m&134217727;return ee!==0?(m=ee&~E,m!==0?v=at(m):(W&=ee,W!==0?v=at(W):u||(u=ee&~o,u!==0&&(v=at(u))))):(ee=m&~E,ee!==0?v=at(ee):W!==0?v=at(W):u||(u=m&~o,u!==0&&(v=at(u)))),v===0?0:a!==0&&a!==v&&(a&E)===0&&(E=v&-v,u=a&-a,E>=u||E===32&&(u&4194048)!==0)?a:v}function St(o,a){return(o.pendingLanes&~(o.suspendedLanes&~o.pingedLanes)&a)===0}function Ct(o,a){switch(o){case 1:case 2:case 4:case 8:case 64:return a+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return a+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function qe(){var o=ot;return ot<<=1,(ot&62914560)===0&&(ot=4194304),o}function rt(o){for(var a=[],u=0;31>u;u++)a.push(o);return a}function je(o,a){o.pendingLanes|=a,a!==268435456&&(o.suspendedLanes=0,o.pingedLanes=0,o.warmLanes=0)}function Pe(o,a,u,m,v,E){var W=o.pendingLanes;o.pendingLanes=u,o.suspendedLanes=0,o.pingedLanes=0,o.warmLanes=0,o.expiredLanes&=u,o.entangledLanes&=u,o.errorRecoveryDisabledLanes&=u,o.shellSuspendCounter=0;var ee=o.entanglements,ce=o.expirationTimes,Ce=o.hiddenUpdates;for(u=W&~u;0<u;){var He=31-Be(u),Fe=1<<He;ee[He]=0,ce[He]=-1;var Ee=Ce[He];if(Ee!==null)for(Ce[He]=null,He=0;He<Ee.length;He++){var Te=Ee[He];Te!==null&&(Te.lane&=-536870913)}u&=~Fe}m!==0&&ke(o,m,0),E!==0&&v===0&&o.tag!==0&&(o.suspendedLanes|=E&~(W&~a))}function ke(o,a,u){o.pendingLanes|=a,o.suspendedLanes&=~a;var m=31-Be(a);o.entangledLanes|=a,o.entanglements[m]=o.entanglements[m]|1073741824|u&261930}function Re(o,a){var u=o.entangledLanes|=a;for(o=o.entanglements;u;){var m=31-Be(u),v=1<<m;v&a|o[m]&a&&(o[m]|=a),u&=~v}}function Ye(o,a){var u=a&-a;return u=(u&42)!==0?1:Ze(u),(u&(o.suspendedLanes|a))!==0?0:u}function Ze(o){switch(o){case 2:o=1;break;case 8:o=4;break;case 32:o=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:o=128;break;case 268435456:o=134217728;break;default:o=0}return o}function it(o){return o&=-o,2<o?8<o?(o&134217727)!==0?32:268435456:8:2}function ft(){var o=H.p;return o!==0?o:(o=window.event,o===void 0?32:ew(o.type))}function jt(o,a){var u=H.p;try{return H.p=o,a()}finally{H.p=u}}var Rt=Math.random().toString(36).slice(2),wt="__reactFiber$"+Rt,dn="__reactProps$"+Rt,xt="__reactContainer$"+Rt,Qe="__reactEvents$"+Rt,Et="__reactListeners$"+Rt,mt="__reactHandles$"+Rt,Tt="__reactResources$"+Rt,Ut="__reactMarker$"+Rt;function ln(o){delete o[wt],delete o[dn],delete o[Qe],delete o[Et],delete o[mt]}function kt(o){var a=o[wt];if(a)return a;for(var u=o.parentNode;u;){if(a=u[xt]||u[wt]){if(u=a.alternate,a.child!==null||u!==null&&u.child!==null)for(o=Hx(o);o!==null;){if(u=o[wt])return u;o=Hx(o)}return a}o=u,u=o.parentNode}return null}function wn(o){if(o=o[wt]||o[xt]){var a=o.tag;if(a===5||a===6||a===13||a===31||a===26||a===27||a===3)return o}return null}function xn(o){var a=o.tag;if(a===5||a===26||a===27||a===6)return o.stateNode;throw Error(r(33))}function gr(o){var a=o[Tt];return a||(a=o[Tt]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function fn(o){o[Ut]=!0}var Cr=new Set,Pn={};function Kn(o,a){Qn(o,a),Qn(o+"Capture",a)}function Qn(o,a){for(Pn[o]=a,o=0;o<a.length;o++)Cr.add(a[o])}var Nr=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),yt={},En={};function Nn(o){return xe.call(En,o)?!0:xe.call(yt,o)?!1:Nr.test(o)?En[o]=!0:(yt[o]=!0,!1)}function $r(o,a,u){if(Nn(a))if(u===null)o.removeAttribute(a);else{switch(typeof u){case"undefined":case"function":case"symbol":o.removeAttribute(a);return;case"boolean":var m=a.toLowerCase().slice(0,5);if(m!=="data-"&&m!=="aria-"){o.removeAttribute(a);return}}o.setAttribute(a,""+u)}}function xr(o,a,u){if(u===null)o.removeAttribute(a);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":o.removeAttribute(a);return}o.setAttribute(a,""+u)}}function Zn(o,a,u,m){if(m===null)o.removeAttribute(u);else{switch(typeof m){case"undefined":case"function":case"symbol":case"boolean":o.removeAttribute(u);return}o.setAttributeNS(a,u,""+m)}}function zn(o){switch(typeof o){case"bigint":case"boolean":case"number":case"string":case"undefined":return o;case"object":return o;default:return""}}function wo(o){var a=o.type;return(o=o.nodeName)&&o.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function Jo(o,a,u){var m=Object.getOwnPropertyDescriptor(o.constructor.prototype,a);if(!o.hasOwnProperty(a)&&typeof m<"u"&&typeof m.get=="function"&&typeof m.set=="function"){var v=m.get,E=m.set;return Object.defineProperty(o,a,{configurable:!0,get:function(){return v.call(this)},set:function(W){u=""+W,E.call(this,W)}}),Object.defineProperty(o,a,{enumerable:m.enumerable}),{getValue:function(){return u},setValue:function(W){u=""+W},stopTracking:function(){o._valueTracker=null,delete o[a]}}}}function Eo(o){if(!o._valueTracker){var a=wo(o)?"checked":"value";o._valueTracker=Jo(o,a,""+o[a])}}function _o(o){if(!o)return!1;var a=o._valueTracker;if(!a)return!0;var u=a.getValue(),m="";return o&&(m=wo(o)?o.checked?"true":"false":o.value),o=m,o!==u?(a.setValue(o),!0):!1}function tt(o){if(o=o||(typeof document<"u"?document:void 0),typeof o>"u")return null;try{return o.activeElement||o.body}catch{return o.body}}var tn=/[\n"\\]/g;function Hn(o){return o.replace(tn,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function ea(o,a,u,m,v,E,W,ee){o.name="",W!=null&&typeof W!="function"&&typeof W!="symbol"&&typeof W!="boolean"?o.type=W:o.removeAttribute("type"),a!=null?W==="number"?(a===0&&o.value===""||o.value!=a)&&(o.value=""+zn(a)):o.value!==""+zn(a)&&(o.value=""+zn(a)):W!=="submit"&&W!=="reset"||o.removeAttribute("value"),a!=null?Ho(o,W,zn(a)):u!=null?Ho(o,W,zn(u)):m!=null&&o.removeAttribute("value"),v==null&&E!=null&&(o.defaultChecked=!!E),v!=null&&(o.checked=v&&typeof v!="function"&&typeof v!="symbol"),ee!=null&&typeof ee!="function"&&typeof ee!="symbol"&&typeof ee!="boolean"?o.name=""+zn(ee):o.removeAttribute("name")}function ta(o,a,u,m,v,E,W,ee){if(E!=null&&typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"&&(o.type=E),a!=null||u!=null){if(!(E!=="submit"&&E!=="reset"||a!=null)){Eo(o);return}u=u!=null?""+zn(u):"",a=a!=null?""+zn(a):u,ee||a===o.value||(o.value=a),o.defaultValue=a}m=m??v,m=typeof m!="function"&&typeof m!="symbol"&&!!m,o.checked=ee?o.checked:!!m,o.defaultChecked=!!m,W!=null&&typeof W!="function"&&typeof W!="symbol"&&typeof W!="boolean"&&(o.name=W),Eo(o)}function Ho(o,a,u){a==="number"&&tt(o.ownerDocument)===o||o.defaultValue===""+u||(o.defaultValue=""+u)}function io(o,a,u,m){if(o=o.options,a){a={};for(var v=0;v<u.length;v++)a["$"+u[v]]=!0;for(u=0;u<o.length;u++)v=a.hasOwnProperty("$"+o[u].value),o[u].selected!==v&&(o[u].selected=v),v&&m&&(o[u].defaultSelected=!0)}else{for(u=""+zn(u),a=null,v=0;v<o.length;v++){if(o[v].value===u){o[v].selected=!0,m&&(o[v].defaultSelected=!0);return}a!==null||o[v].disabled||(a=o[v])}a!==null&&(a.selected=!0)}}function gl(o,a,u){if(a!=null&&(a=""+zn(a),a!==o.value&&(o.value=a),u==null)){o.defaultValue!==a&&(o.defaultValue=a);return}o.defaultValue=u!=null?""+zn(u):""}function hl(o,a,u,m){if(a==null){if(m!=null){if(u!=null)throw Error(r(92));if(B(m)){if(1<m.length)throw Error(r(93));m=m[0]}u=m}u==null&&(u=""),a=u}u=zn(a),o.defaultValue=u,m=o.textContent,m===u&&m!==""&&m!==null&&(o.value=m),Eo(o)}function Bo(o,a){if(a){var u=o.firstChild;if(u&&u===o.lastChild&&u.nodeType===3){u.nodeValue=a;return}}o.textContent=a}var Mt=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function ht(o,a,u){var m=a.indexOf("--")===0;u==null||typeof u=="boolean"||u===""?m?o.setProperty(a,""):a==="float"?o.cssFloat="":o[a]="":m?o.setProperty(a,u):typeof u!="number"||u===0||Mt.has(a)?a==="float"?o.cssFloat=u:o[a]=(""+u).trim():o[a]=u+"px"}function Jn(o,a,u){if(a!=null&&typeof a!="object")throw Error(r(62));if(o=o.style,u!=null){for(var m in u)!u.hasOwnProperty(m)||a!=null&&a.hasOwnProperty(m)||(m.indexOf("--")===0?o.setProperty(m,""):m==="float"?o.cssFloat="":o[m]="");for(var v in a)m=a[v],a.hasOwnProperty(v)&&u[v]!==m&&ht(o,v,m)}else for(var E in a)a.hasOwnProperty(E)&&ht(o,E,a[E])}function Ar(o){if(o.indexOf("-")===-1)return!1;switch(o){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var yl=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),tg=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function bl(o){return tg.test(""+o)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":o}function Mo(){}var Ft=null;function bt(o){return o=o.target||o.srcElement||window,o.correspondingUseElement&&(o=o.correspondingUseElement),o.nodeType===3?o.parentNode:o}var $t=null,sn=null;function Fn(o){var a=wn(o);if(a&&(o=a.stateNode)){var u=o[dn]||null;e:switch(o=a.stateNode,a.type){case"input":if(ea(o,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name),a=u.name,u.type==="radio"&&a!=null){for(u=o;u.parentNode;)u=u.parentNode;for(u=u.querySelectorAll('input[name="'+Hn(""+a)+'"][type="radio"]'),a=0;a<u.length;a++){var m=u[a];if(m!==o&&m.form===o.form){var v=m[dn]||null;if(!v)throw Error(r(90));ea(m,v.value,v.defaultValue,v.defaultValue,v.checked,v.defaultChecked,v.type,v.name)}}for(a=0;a<u.length;a++)m=u[a],m.form===o.form&&_o(m)}break e;case"textarea":gl(o,u.value,u.defaultValue);break e;case"select":a=u.value,a!=null&&io(o,!!u.multiple,a,!1)}}}var ks=!1;function N1(o,a,u){if(ks)return o(a,u);ks=!0;try{var m=o(a);return m}finally{if(ks=!1,($t!==null||sn!==null)&&(mf(),$t&&(a=$t,o=sn,sn=$t=null,Fn(a),o)))for(a=0;a<o.length;a++)Fn(o[a])}}function Ws(o,a){var u=o.stateNode;if(u===null)return null;var m=u[dn]||null;if(m===null)return null;u=m[a];e:switch(a){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(m=!m.disabled)||(o=o.type,m=!(o==="button"||o==="input"||o==="select"||o==="textarea")),o=!m;break e;default:o=!1}if(o)return null;if(u&&typeof u!="function")throw Error(r(231,a,typeof u));return u}var na=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ng=!1;if(na)try{var qs={};Object.defineProperty(qs,"passive",{get:function(){ng=!0}}),window.addEventListener("test",qs,qs),window.removeEventListener("test",qs,qs)}catch{ng=!1}var Oa=null,rg=null,Md=null;function I1(){if(Md)return Md;var o,a=rg,u=a.length,m,v="value"in Oa?Oa.value:Oa.textContent,E=v.length;for(o=0;o<u&&a[o]===v[o];o++);var W=u-o;for(m=1;m<=W&&a[u-m]===v[E-m];m++);return Md=v.slice(o,1<m?1-m:void 0)}function Rd(o){var a=o.keyCode;return"charCode"in o?(o=o.charCode,o===0&&a===13&&(o=13)):o=a,o===10&&(o=13),32<=o||o===13?o:0}function Td(){return!0}function P1(){return!1}function Dr(o){function a(u,m,v,E,W){this._reactName=u,this._targetInst=v,this.type=m,this.nativeEvent=E,this.target=W,this.currentTarget=null;for(var ee in o)o.hasOwnProperty(ee)&&(u=o[ee],this[ee]=u?u(E):E[ee]);return this.isDefaultPrevented=(E.defaultPrevented!=null?E.defaultPrevented:E.returnValue===!1)?Td:P1,this.isPropagationStopped=P1,this}return h(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var u=this.nativeEvent;u&&(u.preventDefault?u.preventDefault():typeof u.returnValue!="unknown"&&(u.returnValue=!1),this.isDefaultPrevented=Td)},stopPropagation:function(){var u=this.nativeEvent;u&&(u.stopPropagation?u.stopPropagation():typeof u.cancelBubble!="unknown"&&(u.cancelBubble=!0),this.isPropagationStopped=Td)},persist:function(){},isPersistent:Td}),a}var hi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(o){return o.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Od=Dr(hi),Ys=h({},hi,{view:0,detail:0}),RN=Dr(Ys),og,ag,Us,Nd=h({},Ys,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:lg,button:0,buttons:0,relatedTarget:function(o){return o.relatedTarget===void 0?o.fromElement===o.srcElement?o.toElement:o.fromElement:o.relatedTarget},movementX:function(o){return"movementX"in o?o.movementX:(o!==Us&&(Us&&o.type==="mousemove"?(og=o.screenX-Us.screenX,ag=o.screenY-Us.screenY):ag=og=0,Us=o),og)},movementY:function(o){return"movementY"in o?o.movementY:ag}}),z1=Dr(Nd),TN=h({},Nd,{dataTransfer:0}),ON=Dr(TN),NN=h({},Ys,{relatedTarget:0}),ig=Dr(NN),IN=h({},hi,{animationName:0,elapsedTime:0,pseudoElement:0}),PN=Dr(IN),zN=h({},hi,{clipboardData:function(o){return"clipboardData"in o?o.clipboardData:window.clipboardData}}),AN=Dr(zN),DN=h({},hi,{data:0}),A1=Dr(DN),jN={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},_N={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},HN={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function BN(o){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(o):(o=HN[o])?!!a[o]:!1}function lg(){return BN}var LN=h({},Ys,{key:function(o){if(o.key){var a=jN[o.key]||o.key;if(a!=="Unidentified")return a}return o.type==="keypress"?(o=Rd(o),o===13?"Enter":String.fromCharCode(o)):o.type==="keydown"||o.type==="keyup"?_N[o.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:lg,charCode:function(o){return o.type==="keypress"?Rd(o):0},keyCode:function(o){return o.type==="keydown"||o.type==="keyup"?o.keyCode:0},which:function(o){return o.type==="keypress"?Rd(o):o.type==="keydown"||o.type==="keyup"?o.keyCode:0}}),VN=Dr(LN),FN=h({},Nd,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),D1=Dr(FN),kN=h({},Ys,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:lg}),WN=Dr(kN),qN=h({},hi,{propertyName:0,elapsedTime:0,pseudoElement:0}),YN=Dr(qN),UN=h({},Nd,{deltaX:function(o){return"deltaX"in o?o.deltaX:"wheelDeltaX"in o?-o.wheelDeltaX:0},deltaY:function(o){return"deltaY"in o?o.deltaY:"wheelDeltaY"in o?-o.wheelDeltaY:"wheelDelta"in o?-o.wheelDelta:0},deltaZ:0,deltaMode:0}),GN=Dr(UN),XN=h({},hi,{newState:0,oldState:0}),KN=Dr(XN),QN=[9,13,27,32],sg=na&&"CompositionEvent"in window,Gs=null;na&&"documentMode"in document&&(Gs=document.documentMode);var ZN=na&&"TextEvent"in window&&!Gs,j1=na&&(!sg||Gs&&8<Gs&&11>=Gs),_1=" ",H1=!1;function B1(o,a){switch(o){case"keyup":return QN.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function L1(o){return o=o.detail,typeof o=="object"&&"data"in o?o.data:null}var vl=!1;function JN(o,a){switch(o){case"compositionend":return L1(a);case"keypress":return a.which!==32?null:(H1=!0,_1);case"textInput":return o=a.data,o===_1&&H1?null:o;default:return null}}function eI(o,a){if(vl)return o==="compositionend"||!sg&&B1(o,a)?(o=I1(),Md=rg=Oa=null,vl=!1,o):null;switch(o){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return j1&&a.locale!=="ko"?null:a.data;default:return null}}var tI={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function V1(o){var a=o&&o.nodeName&&o.nodeName.toLowerCase();return a==="input"?!!tI[o.type]:a==="textarea"}function F1(o,a,u,m){$t?sn?sn.push(m):sn=[m]:$t=m,a=Sf(a,"onChange"),0<a.length&&(u=new Od("onChange","change",null,u,m),o.push({event:u,listeners:a}))}var Xs=null,Ks=null;function nI(o){wx(o,0)}function Id(o){var a=xn(o);if(_o(a))return o}function k1(o,a){if(o==="change")return a}var W1=!1;if(na){var cg;if(na){var ug="oninput"in document;if(!ug){var q1=document.createElement("div");q1.setAttribute("oninput","return;"),ug=typeof q1.oninput=="function"}cg=ug}else cg=!1;W1=cg&&(!document.documentMode||9<document.documentMode)}function Y1(){Xs&&(Xs.detachEvent("onpropertychange",U1),Ks=Xs=null)}function U1(o){if(o.propertyName==="value"&&Id(Ks)){var a=[];F1(a,Ks,o,bt(o)),N1(nI,a)}}function rI(o,a,u){o==="focusin"?(Y1(),Xs=a,Ks=u,Xs.attachEvent("onpropertychange",U1)):o==="focusout"&&Y1()}function oI(o){if(o==="selectionchange"||o==="keyup"||o==="keydown")return Id(Ks)}function aI(o,a){if(o==="click")return Id(a)}function iI(o,a){if(o==="input"||o==="change")return Id(a)}function lI(o,a){return o===a&&(o!==0||1/o===1/a)||o!==o&&a!==a}var Ur=typeof Object.is=="function"?Object.is:lI;function Qs(o,a){if(Ur(o,a))return!0;if(typeof o!="object"||o===null||typeof a!="object"||a===null)return!1;var u=Object.keys(o),m=Object.keys(a);if(u.length!==m.length)return!1;for(m=0;m<u.length;m++){var v=u[m];if(!xe.call(a,v)||!Ur(o[v],a[v]))return!1}return!0}function G1(o){for(;o&&o.firstChild;)o=o.firstChild;return o}function X1(o,a){var u=G1(o);o=0;for(var m;u;){if(u.nodeType===3){if(m=o+u.textContent.length,o<=a&&m>=a)return{node:u,offset:a-o};o=m}e:{for(;u;){if(u.nextSibling){u=u.nextSibling;break e}u=u.parentNode}u=void 0}u=G1(u)}}function K1(o,a){return o&&a?o===a?!0:o&&o.nodeType===3?!1:a&&a.nodeType===3?K1(o,a.parentNode):"contains"in o?o.contains(a):o.compareDocumentPosition?!!(o.compareDocumentPosition(a)&16):!1:!1}function Q1(o){o=o!=null&&o.ownerDocument!=null&&o.ownerDocument.defaultView!=null?o.ownerDocument.defaultView:window;for(var a=tt(o.document);a instanceof o.HTMLIFrameElement;){try{var u=typeof a.contentWindow.location.href=="string"}catch{u=!1}if(u)o=a.contentWindow;else break;a=tt(o.document)}return a}function dg(o){var a=o&&o.nodeName&&o.nodeName.toLowerCase();return a&&(a==="input"&&(o.type==="text"||o.type==="search"||o.type==="tel"||o.type==="url"||o.type==="password")||a==="textarea"||o.contentEditable==="true")}var sI=na&&"documentMode"in document&&11>=document.documentMode,Sl=null,fg=null,Zs=null,mg=!1;function Z1(o,a,u){var m=u.window===u?u.document:u.nodeType===9?u:u.ownerDocument;mg||Sl==null||Sl!==tt(m)||(m=Sl,"selectionStart"in m&&dg(m)?m={start:m.selectionStart,end:m.selectionEnd}:(m=(m.ownerDocument&&m.ownerDocument.defaultView||window).getSelection(),m={anchorNode:m.anchorNode,anchorOffset:m.anchorOffset,focusNode:m.focusNode,focusOffset:m.focusOffset}),Zs&&Qs(Zs,m)||(Zs=m,m=Sf(fg,"onSelect"),0<m.length&&(a=new Od("onSelect","select",null,a,u),o.push({event:a,listeners:m}),a.target=Sl)))}function yi(o,a){var u={};return u[o.toLowerCase()]=a.toLowerCase(),u["Webkit"+o]="webkit"+a,u["Moz"+o]="moz"+a,u}var Cl={animationend:yi("Animation","AnimationEnd"),animationiteration:yi("Animation","AnimationIteration"),animationstart:yi("Animation","AnimationStart"),transitionrun:yi("Transition","TransitionRun"),transitionstart:yi("Transition","TransitionStart"),transitioncancel:yi("Transition","TransitionCancel"),transitionend:yi("Transition","TransitionEnd")},pg={},J1={};na&&(J1=document.createElement("div").style,"AnimationEvent"in window||(delete Cl.animationend.animation,delete Cl.animationiteration.animation,delete Cl.animationstart.animation),"TransitionEvent"in window||delete Cl.transitionend.transition);function bi(o){if(pg[o])return pg[o];if(!Cl[o])return o;var a=Cl[o],u;for(u in a)if(a.hasOwnProperty(u)&&u in J1)return pg[o]=a[u];return o}var eC=bi("animationend"),tC=bi("animationiteration"),nC=bi("animationstart"),cI=bi("transitionrun"),uI=bi("transitionstart"),dI=bi("transitioncancel"),rC=bi("transitionend"),oC=new Map,gg="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");gg.push("scrollEnd");function Ro(o,a){oC.set(o,a),Kn(a,[o])}var Pd=typeof reportError=="function"?reportError:function(o){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof o=="object"&&o!==null&&typeof o.message=="string"?String(o.message):String(o),error:o});if(!window.dispatchEvent(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",o);return}console.error(o)},lo=[],$l=0,hg=0;function zd(){for(var o=$l,a=hg=$l=0;a<o;){var u=lo[a];lo[a++]=null;var m=lo[a];lo[a++]=null;var v=lo[a];lo[a++]=null;var E=lo[a];if(lo[a++]=null,m!==null&&v!==null){var W=m.pending;W===null?v.next=v:(v.next=W.next,W.next=v),m.pending=v}E!==0&&aC(u,v,E)}}function Ad(o,a,u,m){lo[$l++]=o,lo[$l++]=a,lo[$l++]=u,lo[$l++]=m,hg|=m,o.lanes|=m,o=o.alternate,o!==null&&(o.lanes|=m)}function yg(o,a,u,m){return Ad(o,a,u,m),Dd(o)}function vi(o,a){return Ad(o,null,null,a),Dd(o)}function aC(o,a,u){o.lanes|=u;var m=o.alternate;m!==null&&(m.lanes|=u);for(var v=!1,E=o.return;E!==null;)E.childLanes|=u,m=E.alternate,m!==null&&(m.childLanes|=u),E.tag===22&&(o=E.stateNode,o===null||o._visibility&1||(v=!0)),o=E,E=E.return;return o.tag===3?(E=o.stateNode,v&&a!==null&&(v=31-Be(u),o=E.hiddenUpdates,m=o[v],m===null?o[v]=[a]:m.push(a),a.lane=u|536870912),E):null}function Dd(o){if(50<Sc)throw Sc=0,Mh=null,Error(r(185));for(var a=o.return;a!==null;)o=a,a=o.return;return o.tag===3?o.stateNode:null}var xl={};function fI(o,a,u,m){this.tag=o,this.key=u,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=m,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Gr(o,a,u,m){return new fI(o,a,u,m)}function bg(o){return o=o.prototype,!(!o||!o.isReactComponent)}function ra(o,a){var u=o.alternate;return u===null?(u=Gr(o.tag,a,o.key,o.mode),u.elementType=o.elementType,u.type=o.type,u.stateNode=o.stateNode,u.alternate=o,o.alternate=u):(u.pendingProps=a,u.type=o.type,u.flags=0,u.subtreeFlags=0,u.deletions=null),u.flags=o.flags&65011712,u.childLanes=o.childLanes,u.lanes=o.lanes,u.child=o.child,u.memoizedProps=o.memoizedProps,u.memoizedState=o.memoizedState,u.updateQueue=o.updateQueue,a=o.dependencies,u.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},u.sibling=o.sibling,u.index=o.index,u.ref=o.ref,u.refCleanup=o.refCleanup,u}function iC(o,a){o.flags&=65011714;var u=o.alternate;return u===null?(o.childLanes=0,o.lanes=a,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=u.childLanes,o.lanes=u.lanes,o.child=u.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=u.memoizedProps,o.memoizedState=u.memoizedState,o.updateQueue=u.updateQueue,o.type=u.type,a=u.dependencies,o.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),o}function jd(o,a,u,m,v,E){var W=0;if(m=o,typeof o=="function")bg(o)&&(W=1);else if(typeof o=="string")W=yP(o,u,X.current)?26:o==="html"||o==="head"||o==="body"?27:5;else e:switch(o){case D:return o=Gr(31,u,a,v),o.elementType=D,o.lanes=E,o;case x:return Si(u.children,v,E,a);case S:W=8,v|=24;break;case $:return o=Gr(12,u,a,v|2),o.elementType=$,o.lanes=E,o;case T:return o=Gr(13,u,a,v),o.elementType=T,o.lanes=E,o;case N:return o=Gr(19,u,a,v),o.elementType=N,o.lanes=E,o;default:if(typeof o=="object"&&o!==null)switch(o.$$typeof){case w:W=10;break e;case M:W=9;break e;case R:W=11;break e;case O:W=14;break e;case P:W=16,m=null;break e}W=29,u=Error(r(130,o===null?"null":typeof o,"")),m=null}return a=Gr(W,u,a,v),a.elementType=o,a.type=m,a.lanes=E,a}function Si(o,a,u,m){return o=Gr(7,o,m,a),o.lanes=u,o}function vg(o,a,u){return o=Gr(6,o,null,a),o.lanes=u,o}function lC(o){var a=Gr(18,null,null,0);return a.stateNode=o,a}function Sg(o,a,u){return a=Gr(4,o.children!==null?o.children:[],o.key,a),a.lanes=u,a.stateNode={containerInfo:o.containerInfo,pendingChildren:null,implementation:o.implementation},a}var sC=new WeakMap;function so(o,a){if(typeof o=="object"&&o!==null){var u=sC.get(o);return u!==void 0?u:(a={value:o,source:a,stack:me(a)},sC.set(o,a),a)}return{value:o,source:a,stack:me(a)}}var wl=[],El=0,_d=null,Js=0,co=[],uo=0,Na=null,Lo=1,Vo="";function oa(o,a){wl[El++]=Js,wl[El++]=_d,_d=o,Js=a}function cC(o,a,u){co[uo++]=Lo,co[uo++]=Vo,co[uo++]=Na,Na=o;var m=Lo;o=Vo;var v=32-Be(m)-1;m&=~(1<<v),u+=1;var E=32-Be(a)+v;if(30<E){var W=v-v%5;E=(m&(1<<W)-1).toString(32),m>>=W,v-=W,Lo=1<<32-Be(a)+v|u<<v|m,Vo=E+o}else Lo=1<<E|u<<v|m,Vo=o}function Cg(o){o.return!==null&&(oa(o,1),cC(o,1,0))}function $g(o){for(;o===_d;)_d=wl[--El],wl[El]=null,Js=wl[--El],wl[El]=null;for(;o===Na;)Na=co[--uo],co[uo]=null,Vo=co[--uo],co[uo]=null,Lo=co[--uo],co[uo]=null}function uC(o,a){co[uo++]=Lo,co[uo++]=Vo,co[uo++]=Na,Lo=a.id,Vo=a.overflow,Na=o}var hr=null,Mn=null,Qt=!1,Ia=null,fo=!1,xg=Error(r(519));function Pa(o){var a=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw ec(so(a,o)),xg}function dC(o){var a=o.stateNode,u=o.type,m=o.memoizedProps;switch(a[wt]=o,a[dn]=m,u){case"dialog":qt("cancel",a),qt("close",a);break;case"iframe":case"object":case"embed":qt("load",a);break;case"video":case"audio":for(u=0;u<$c.length;u++)qt($c[u],a);break;case"source":qt("error",a);break;case"img":case"image":case"link":qt("error",a),qt("load",a);break;case"details":qt("toggle",a);break;case"input":qt("invalid",a),ta(a,m.value,m.defaultValue,m.checked,m.defaultChecked,m.type,m.name,!0);break;case"select":qt("invalid",a);break;case"textarea":qt("invalid",a),hl(a,m.value,m.defaultValue,m.children)}u=m.children,typeof u!="string"&&typeof u!="number"&&typeof u!="bigint"||a.textContent===""+u||m.suppressHydrationWarning===!0||Tx(a.textContent,u)?(m.popover!=null&&(qt("beforetoggle",a),qt("toggle",a)),m.onScroll!=null&&qt("scroll",a),m.onScrollEnd!=null&&qt("scrollend",a),m.onClick!=null&&(a.onclick=Mo),a=!0):a=!1,a||Pa(o,!0)}function fC(o){for(hr=o.return;hr;)switch(hr.tag){case 5:case 31:case 13:fo=!1;return;case 27:case 3:fo=!0;return;default:hr=hr.return}}function Ml(o){if(o!==hr)return!1;if(!Qt)return fC(o),Qt=!0,!1;var a=o.tag,u;if((u=a!==3&&a!==27)&&((u=a===5)&&(u=o.type,u=!(u!=="form"&&u!=="button")||Vh(o.type,o.memoizedProps)),u=!u),u&&Mn&&Pa(o),fC(o),a===13){if(o=o.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(317));Mn=_x(o)}else if(a===31){if(o=o.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(317));Mn=_x(o)}else a===27?(a=Mn,Ya(o.type)?(o=Yh,Yh=null,Mn=o):Mn=a):Mn=hr?po(o.stateNode.nextSibling):null;return!0}function Ci(){Mn=hr=null,Qt=!1}function wg(){var o=Ia;return o!==null&&(Br===null?Br=o:Br.push.apply(Br,o),Ia=null),o}function ec(o){Ia===null?Ia=[o]:Ia.push(o)}var Eg=A(null),$i=null,aa=null;function za(o,a,u){q(Eg,a._currentValue),a._currentValue=u}function ia(o){o._currentValue=Eg.current,j(Eg)}function Mg(o,a,u){for(;o!==null;){var m=o.alternate;if((o.childLanes&a)!==a?(o.childLanes|=a,m!==null&&(m.childLanes|=a)):m!==null&&(m.childLanes&a)!==a&&(m.childLanes|=a),o===u)break;o=o.return}}function Rg(o,a,u,m){var v=o.child;for(v!==null&&(v.return=o);v!==null;){var E=v.dependencies;if(E!==null){var W=v.child;E=E.firstContext;e:for(;E!==null;){var ee=E;E=v;for(var ce=0;ce<a.length;ce++)if(ee.context===a[ce]){E.lanes|=u,ee=E.alternate,ee!==null&&(ee.lanes|=u),Mg(E.return,u,o),m||(W=null);break e}E=ee.next}}else if(v.tag===18){if(W=v.return,W===null)throw Error(r(341));W.lanes|=u,E=W.alternate,E!==null&&(E.lanes|=u),Mg(W,u,o),W=null}else W=v.child;if(W!==null)W.return=v;else for(W=v;W!==null;){if(W===o){W=null;break}if(v=W.sibling,v!==null){v.return=W.return,W=v;break}W=W.return}v=W}}function Rl(o,a,u,m){o=null;for(var v=a,E=!1;v!==null;){if(!E){if((v.flags&524288)!==0)E=!0;else if((v.flags&262144)!==0)break}if(v.tag===10){var W=v.alternate;if(W===null)throw Error(r(387));if(W=W.memoizedProps,W!==null){var ee=v.type;Ur(v.pendingProps.value,W.value)||(o!==null?o.push(ee):o=[ee])}}else if(v===Z.current){if(W=v.alternate,W===null)throw Error(r(387));W.memoizedState.memoizedState!==v.memoizedState.memoizedState&&(o!==null?o.push(Rc):o=[Rc])}v=v.return}o!==null&&Rg(a,o,u,m),a.flags|=262144}function Hd(o){for(o=o.firstContext;o!==null;){if(!Ur(o.context._currentValue,o.memoizedValue))return!0;o=o.next}return!1}function xi(o){$i=o,aa=null,o=o.dependencies,o!==null&&(o.firstContext=null)}function yr(o){return mC($i,o)}function Bd(o,a){return $i===null&&xi(o),mC(o,a)}function mC(o,a){var u=a._currentValue;if(a={context:a,memoizedValue:u,next:null},aa===null){if(o===null)throw Error(r(308));aa=a,o.dependencies={lanes:0,firstContext:a},o.flags|=524288}else aa=aa.next=a;return u}var mI=typeof AbortController<"u"?AbortController:function(){var o=[],a=this.signal={aborted:!1,addEventListener:function(u,m){o.push(m)}};this.abort=function(){a.aborted=!0,o.forEach(function(u){return u()})}},pI=e.unstable_scheduleCallback,gI=e.unstable_NormalPriority,kn={$$typeof:w,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Tg(){return{controller:new mI,data:new Map,refCount:0}}function tc(o){o.refCount--,o.refCount===0&&pI(gI,function(){o.controller.abort()})}var nc=null,Og=0,Tl=0,Ol=null;function hI(o,a){if(nc===null){var u=nc=[];Og=0,Tl=Ph(),Ol={status:"pending",value:void 0,then:function(m){u.push(m)}}}return Og++,a.then(pC,pC),a}function pC(){if(--Og===0&&nc!==null){Ol!==null&&(Ol.status="fulfilled");var o=nc;nc=null,Tl=0,Ol=null;for(var a=0;a<o.length;a++)(0,o[a])()}}function yI(o,a){var u=[],m={status:"pending",value:null,reason:null,then:function(v){u.push(v)}};return o.then(function(){m.status="fulfilled",m.value=a;for(var v=0;v<u.length;v++)(0,u[v])(a)},function(v){for(m.status="rejected",m.reason=v,v=0;v<u.length;v++)(0,u[v])(void 0)}),m}var gC=_.S;_.S=function(o,a){Z$=be(),typeof a=="object"&&a!==null&&typeof a.then=="function"&&hI(o,a),gC!==null&&gC(o,a)};var wi=A(null);function Ng(){var o=wi.current;return o!==null?o:Sn.pooledCache}function Ld(o,a){a===null?q(wi,wi.current):q(wi,a.pool)}function hC(){var o=Ng();return o===null?null:{parent:kn._currentValue,pool:o}}var Nl=Error(r(460)),Ig=Error(r(474)),Vd=Error(r(542)),Fd={then:function(){}};function yC(o){return o=o.status,o==="fulfilled"||o==="rejected"}function bC(o,a,u){switch(u=o[u],u===void 0?o.push(a):u!==a&&(a.then(Mo,Mo),a=u),a.status){case"fulfilled":return a.value;case"rejected":throw o=a.reason,SC(o),o;default:if(typeof a.status=="string")a.then(Mo,Mo);else{if(o=Sn,o!==null&&100<o.shellSuspendCounter)throw Error(r(482));o=a,o.status="pending",o.then(function(m){if(a.status==="pending"){var v=a;v.status="fulfilled",v.value=m}},function(m){if(a.status==="pending"){var v=a;v.status="rejected",v.reason=m}})}switch(a.status){case"fulfilled":return a.value;case"rejected":throw o=a.reason,SC(o),o}throw Mi=a,Nl}}function Ei(o){try{var a=o._init;return a(o._payload)}catch(u){throw u!==null&&typeof u=="object"&&typeof u.then=="function"?(Mi=u,Nl):u}}var Mi=null;function vC(){if(Mi===null)throw Error(r(459));var o=Mi;return Mi=null,o}function SC(o){if(o===Nl||o===Vd)throw Error(r(483))}var Il=null,rc=0;function kd(o){var a=rc;return rc+=1,Il===null&&(Il=[]),bC(Il,o,a)}function oc(o,a){a=a.props.ref,o.ref=a!==void 0?a:null}function Wd(o,a){throw a.$$typeof===y?Error(r(525)):(o=Object.prototype.toString.call(a),Error(r(31,o==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":o)))}function CC(o){function a(ye,pe){if(o){var ve=ye.deletions;ve===null?(ye.deletions=[pe],ye.flags|=16):ve.push(pe)}}function u(ye,pe){if(!o)return null;for(;pe!==null;)a(ye,pe),pe=pe.sibling;return null}function m(ye){for(var pe=new Map;ye!==null;)ye.key!==null?pe.set(ye.key,ye):pe.set(ye.index,ye),ye=ye.sibling;return pe}function v(ye,pe){return ye=ra(ye,pe),ye.index=0,ye.sibling=null,ye}function E(ye,pe,ve){return ye.index=ve,o?(ve=ye.alternate,ve!==null?(ve=ve.index,ve<pe?(ye.flags|=67108866,pe):ve):(ye.flags|=67108866,pe)):(ye.flags|=1048576,pe)}function W(ye){return o&&ye.alternate===null&&(ye.flags|=67108866),ye}function ee(ye,pe,ve,Ve){return pe===null||pe.tag!==6?(pe=vg(ve,ye.mode,Ve),pe.return=ye,pe):(pe=v(pe,ve),pe.return=ye,pe)}function ce(ye,pe,ve,Ve){var pt=ve.type;return pt===x?He(ye,pe,ve.props.children,Ve,ve.key):pe!==null&&(pe.elementType===pt||typeof pt=="object"&&pt!==null&&pt.$$typeof===P&&Ei(pt)===pe.type)?(pe=v(pe,ve.props),oc(pe,ve),pe.return=ye,pe):(pe=jd(ve.type,ve.key,ve.props,null,ye.mode,Ve),oc(pe,ve),pe.return=ye,pe)}function Ce(ye,pe,ve,Ve){return pe===null||pe.tag!==4||pe.stateNode.containerInfo!==ve.containerInfo||pe.stateNode.implementation!==ve.implementation?(pe=Sg(ve,ye.mode,Ve),pe.return=ye,pe):(pe=v(pe,ve.children||[]),pe.return=ye,pe)}function He(ye,pe,ve,Ve,pt){return pe===null||pe.tag!==7?(pe=Si(ve,ye.mode,Ve,pt),pe.return=ye,pe):(pe=v(pe,ve),pe.return=ye,pe)}function Fe(ye,pe,ve){if(typeof pe=="string"&&pe!==""||typeof pe=="number"||typeof pe=="bigint")return pe=vg(""+pe,ye.mode,ve),pe.return=ye,pe;if(typeof pe=="object"&&pe!==null){switch(pe.$$typeof){case C:return ve=jd(pe.type,pe.key,pe.props,null,ye.mode,ve),oc(ve,pe),ve.return=ye,ve;case b:return pe=Sg(pe,ye.mode,ve),pe.return=ye,pe;case P:return pe=Ei(pe),Fe(ye,pe,ve)}if(B(pe)||Y(pe))return pe=Si(pe,ye.mode,ve,null),pe.return=ye,pe;if(typeof pe.then=="function")return Fe(ye,kd(pe),ve);if(pe.$$typeof===w)return Fe(ye,Bd(ye,pe),ve);Wd(ye,pe)}return null}function Ee(ye,pe,ve,Ve){var pt=pe!==null?pe.key:null;if(typeof ve=="string"&&ve!==""||typeof ve=="number"||typeof ve=="bigint")return pt!==null?null:ee(ye,pe,""+ve,Ve);if(typeof ve=="object"&&ve!==null){switch(ve.$$typeof){case C:return ve.key===pt?ce(ye,pe,ve,Ve):null;case b:return ve.key===pt?Ce(ye,pe,ve,Ve):null;case P:return ve=Ei(ve),Ee(ye,pe,ve,Ve)}if(B(ve)||Y(ve))return pt!==null?null:He(ye,pe,ve,Ve,null);if(typeof ve.then=="function")return Ee(ye,pe,kd(ve),Ve);if(ve.$$typeof===w)return Ee(ye,pe,Bd(ye,ve),Ve);Wd(ye,ve)}return null}function Te(ye,pe,ve,Ve,pt){if(typeof Ve=="string"&&Ve!==""||typeof Ve=="number"||typeof Ve=="bigint")return ye=ye.get(ve)||null,ee(pe,ye,""+Ve,pt);if(typeof Ve=="object"&&Ve!==null){switch(Ve.$$typeof){case C:return ye=ye.get(Ve.key===null?ve:Ve.key)||null,ce(pe,ye,Ve,pt);case b:return ye=ye.get(Ve.key===null?ve:Ve.key)||null,Ce(pe,ye,Ve,pt);case P:return Ve=Ei(Ve),Te(ye,pe,ve,Ve,pt)}if(B(Ve)||Y(Ve))return ye=ye.get(ve)||null,He(pe,ye,Ve,pt,null);if(typeof Ve.then=="function")return Te(ye,pe,ve,kd(Ve),pt);if(Ve.$$typeof===w)return Te(ye,pe,ve,Bd(pe,Ve),pt);Wd(pe,Ve)}return null}function st(ye,pe,ve,Ve){for(var pt=null,nn=null,ct=pe,_t=pe=0,Xt=null;ct!==null&&_t<ve.length;_t++){ct.index>_t?(Xt=ct,ct=null):Xt=ct.sibling;var rn=Ee(ye,ct,ve[_t],Ve);if(rn===null){ct===null&&(ct=Xt);break}o&&ct&&rn.alternate===null&&a(ye,ct),pe=E(rn,pe,_t),nn===null?pt=rn:nn.sibling=rn,nn=rn,ct=Xt}if(_t===ve.length)return u(ye,ct),Qt&&oa(ye,_t),pt;if(ct===null){for(;_t<ve.length;_t++)ct=Fe(ye,ve[_t],Ve),ct!==null&&(pe=E(ct,pe,_t),nn===null?pt=ct:nn.sibling=ct,nn=ct);return Qt&&oa(ye,_t),pt}for(ct=m(ct);_t<ve.length;_t++)Xt=Te(ct,ye,_t,ve[_t],Ve),Xt!==null&&(o&&Xt.alternate!==null&&ct.delete(Xt.key===null?_t:Xt.key),pe=E(Xt,pe,_t),nn===null?pt=Xt:nn.sibling=Xt,nn=Xt);return o&&ct.forEach(function(Qa){return a(ye,Qa)}),Qt&&oa(ye,_t),pt}function vt(ye,pe,ve,Ve){if(ve==null)throw Error(r(151));for(var pt=null,nn=null,ct=pe,_t=pe=0,Xt=null,rn=ve.next();ct!==null&&!rn.done;_t++,rn=ve.next()){ct.index>_t?(Xt=ct,ct=null):Xt=ct.sibling;var Qa=Ee(ye,ct,rn.value,Ve);if(Qa===null){ct===null&&(ct=Xt);break}o&&ct&&Qa.alternate===null&&a(ye,ct),pe=E(Qa,pe,_t),nn===null?pt=Qa:nn.sibling=Qa,nn=Qa,ct=Xt}if(rn.done)return u(ye,ct),Qt&&oa(ye,_t),pt;if(ct===null){for(;!rn.done;_t++,rn=ve.next())rn=Fe(ye,rn.value,Ve),rn!==null&&(pe=E(rn,pe,_t),nn===null?pt=rn:nn.sibling=rn,nn=rn);return Qt&&oa(ye,_t),pt}for(ct=m(ct);!rn.done;_t++,rn=ve.next())rn=Te(ct,ye,_t,rn.value,Ve),rn!==null&&(o&&rn.alternate!==null&&ct.delete(rn.key===null?_t:rn.key),pe=E(rn,pe,_t),nn===null?pt=rn:nn.sibling=rn,nn=rn);return o&&ct.forEach(function(TP){return a(ye,TP)}),Qt&&oa(ye,_t),pt}function bn(ye,pe,ve,Ve){if(typeof ve=="object"&&ve!==null&&ve.type===x&&ve.key===null&&(ve=ve.props.children),typeof ve=="object"&&ve!==null){switch(ve.$$typeof){case C:e:{for(var pt=ve.key;pe!==null;){if(pe.key===pt){if(pt=ve.type,pt===x){if(pe.tag===7){u(ye,pe.sibling),Ve=v(pe,ve.props.children),Ve.return=ye,ye=Ve;break e}}else if(pe.elementType===pt||typeof pt=="object"&&pt!==null&&pt.$$typeof===P&&Ei(pt)===pe.type){u(ye,pe.sibling),Ve=v(pe,ve.props),oc(Ve,ve),Ve.return=ye,ye=Ve;break e}u(ye,pe);break}else a(ye,pe);pe=pe.sibling}ve.type===x?(Ve=Si(ve.props.children,ye.mode,Ve,ve.key),Ve.return=ye,ye=Ve):(Ve=jd(ve.type,ve.key,ve.props,null,ye.mode,Ve),oc(Ve,ve),Ve.return=ye,ye=Ve)}return W(ye);case b:e:{for(pt=ve.key;pe!==null;){if(pe.key===pt)if(pe.tag===4&&pe.stateNode.containerInfo===ve.containerInfo&&pe.stateNode.implementation===ve.implementation){u(ye,pe.sibling),Ve=v(pe,ve.children||[]),Ve.return=ye,ye=Ve;break e}else{u(ye,pe);break}else a(ye,pe);pe=pe.sibling}Ve=Sg(ve,ye.mode,Ve),Ve.return=ye,ye=Ve}return W(ye);case P:return ve=Ei(ve),bn(ye,pe,ve,Ve)}if(B(ve))return st(ye,pe,ve,Ve);if(Y(ve)){if(pt=Y(ve),typeof pt!="function")throw Error(r(150));return ve=pt.call(ve),vt(ye,pe,ve,Ve)}if(typeof ve.then=="function")return bn(ye,pe,kd(ve),Ve);if(ve.$$typeof===w)return bn(ye,pe,Bd(ye,ve),Ve);Wd(ye,ve)}return typeof ve=="string"&&ve!==""||typeof ve=="number"||typeof ve=="bigint"?(ve=""+ve,pe!==null&&pe.tag===6?(u(ye,pe.sibling),Ve=v(pe,ve),Ve.return=ye,ye=Ve):(u(ye,pe),Ve=vg(ve,ye.mode,Ve),Ve.return=ye,ye=Ve),W(ye)):u(ye,pe)}return function(ye,pe,ve,Ve){try{rc=0;var pt=bn(ye,pe,ve,Ve);return Il=null,pt}catch(ct){if(ct===Nl||ct===Vd)throw ct;var nn=Gr(29,ct,null,ye.mode);return nn.lanes=Ve,nn.return=ye,nn}}}var Ri=CC(!0),$C=CC(!1),Aa=!1;function Pg(o){o.updateQueue={baseState:o.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function zg(o,a){o=o.updateQueue,a.updateQueue===o&&(a.updateQueue={baseState:o.baseState,firstBaseUpdate:o.firstBaseUpdate,lastBaseUpdate:o.lastBaseUpdate,shared:o.shared,callbacks:null})}function Da(o){return{lane:o,tag:0,payload:null,callback:null,next:null}}function ja(o,a,u){var m=o.updateQueue;if(m===null)return null;if(m=m.shared,(on&2)!==0){var v=m.pending;return v===null?a.next=a:(a.next=v.next,v.next=a),m.pending=a,a=Dd(o),aC(o,null,u),a}return Ad(o,m,a,u),Dd(o)}function ac(o,a,u){if(a=a.updateQueue,a!==null&&(a=a.shared,(u&4194048)!==0)){var m=a.lanes;m&=o.pendingLanes,u|=m,a.lanes=u,Re(o,u)}}function Ag(o,a){var u=o.updateQueue,m=o.alternate;if(m!==null&&(m=m.updateQueue,u===m)){var v=null,E=null;if(u=u.firstBaseUpdate,u!==null){do{var W={lane:u.lane,tag:u.tag,payload:u.payload,callback:null,next:null};E===null?v=E=W:E=E.next=W,u=u.next}while(u!==null);E===null?v=E=a:E=E.next=a}else v=E=a;u={baseState:m.baseState,firstBaseUpdate:v,lastBaseUpdate:E,shared:m.shared,callbacks:m.callbacks},o.updateQueue=u;return}o=u.lastBaseUpdate,o===null?u.firstBaseUpdate=a:o.next=a,u.lastBaseUpdate=a}var Dg=!1;function ic(){if(Dg){var o=Ol;if(o!==null)throw o}}function lc(o,a,u,m){Dg=!1;var v=o.updateQueue;Aa=!1;var E=v.firstBaseUpdate,W=v.lastBaseUpdate,ee=v.shared.pending;if(ee!==null){v.shared.pending=null;var ce=ee,Ce=ce.next;ce.next=null,W===null?E=Ce:W.next=Ce,W=ce;var He=o.alternate;He!==null&&(He=He.updateQueue,ee=He.lastBaseUpdate,ee!==W&&(ee===null?He.firstBaseUpdate=Ce:ee.next=Ce,He.lastBaseUpdate=ce))}if(E!==null){var Fe=v.baseState;W=0,He=Ce=ce=null,ee=E;do{var Ee=ee.lane&-536870913,Te=Ee!==ee.lane;if(Te?(Gt&Ee)===Ee:(m&Ee)===Ee){Ee!==0&&Ee===Tl&&(Dg=!0),He!==null&&(He=He.next={lane:0,tag:ee.tag,payload:ee.payload,callback:null,next:null});e:{var st=o,vt=ee;Ee=a;var bn=u;switch(vt.tag){case 1:if(st=vt.payload,typeof st=="function"){Fe=st.call(bn,Fe,Ee);break e}Fe=st;break e;case 3:st.flags=st.flags&-65537|128;case 0:if(st=vt.payload,Ee=typeof st=="function"?st.call(bn,Fe,Ee):st,Ee==null)break e;Fe=h({},Fe,Ee);break e;case 2:Aa=!0}}Ee=ee.callback,Ee!==null&&(o.flags|=64,Te&&(o.flags|=8192),Te=v.callbacks,Te===null?v.callbacks=[Ee]:Te.push(Ee))}else Te={lane:Ee,tag:ee.tag,payload:ee.payload,callback:ee.callback,next:null},He===null?(Ce=He=Te,ce=Fe):He=He.next=Te,W|=Ee;if(ee=ee.next,ee===null){if(ee=v.shared.pending,ee===null)break;Te=ee,ee=Te.next,Te.next=null,v.lastBaseUpdate=Te,v.shared.pending=null}}while(!0);He===null&&(ce=Fe),v.baseState=ce,v.firstBaseUpdate=Ce,v.lastBaseUpdate=He,E===null&&(v.shared.lanes=0),Va|=W,o.lanes=W,o.memoizedState=Fe}}function xC(o,a){if(typeof o!="function")throw Error(r(191,o));o.call(a)}function wC(o,a){var u=o.callbacks;if(u!==null)for(o.callbacks=null,o=0;o<u.length;o++)xC(u[o],a)}var Pl=A(null),qd=A(0);function EC(o,a){o=ga,q(qd,o),q(Pl,a),ga=o|a.baseLanes}function jg(){q(qd,ga),q(Pl,Pl.current)}function _g(){ga=qd.current,j(Pl),j(qd)}var Xr=A(null),mo=null;function _a(o){var a=o.alternate;q(Bn,Bn.current&1),q(Xr,o),mo===null&&(a===null||Pl.current!==null||a.memoizedState!==null)&&(mo=o)}function Hg(o){q(Bn,Bn.current),q(Xr,o),mo===null&&(mo=o)}function MC(o){o.tag===22?(q(Bn,Bn.current),q(Xr,o),mo===null&&(mo=o)):Ha()}function Ha(){q(Bn,Bn.current),q(Xr,Xr.current)}function Kr(o){j(Xr),mo===o&&(mo=null),j(Bn)}var Bn=A(0);function Yd(o){for(var a=o;a!==null;){if(a.tag===13){var u=a.memoizedState;if(u!==null&&(u=u.dehydrated,u===null||Wh(u)||qh(u)))return a}else if(a.tag===19&&(a.memoizedProps.revealOrder==="forwards"||a.memoizedProps.revealOrder==="backwards"||a.memoizedProps.revealOrder==="unstable_legacy-backwards"||a.memoizedProps.revealOrder==="together")){if((a.flags&128)!==0)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===o)break;for(;a.sibling===null;){if(a.return===null||a.return===o)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}var la=0,At=null,hn=null,Wn=null,Ud=!1,zl=!1,Ti=!1,Gd=0,sc=0,Al=null,bI=0;function An(){throw Error(r(321))}function Bg(o,a){if(a===null)return!1;for(var u=0;u<a.length&&u<o.length;u++)if(!Ur(o[u],a[u]))return!1;return!0}function Lg(o,a,u,m,v,E){return la=E,At=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,_.H=o===null||o.memoizedState===null?c$:th,Ti=!1,E=u(m,v),Ti=!1,zl&&(E=TC(a,u,m,v)),RC(o),E}function RC(o){_.H=dc;var a=hn!==null&&hn.next!==null;if(la=0,Wn=hn=At=null,Ud=!1,sc=0,Al=null,a)throw Error(r(300));o===null||qn||(o=o.dependencies,o!==null&&Hd(o)&&(qn=!0))}function TC(o,a,u,m){At=o;var v=0;do{if(zl&&(Al=null),sc=0,zl=!1,25<=v)throw Error(r(301));if(v+=1,Wn=hn=null,o.updateQueue!=null){var E=o.updateQueue;E.lastEffect=null,E.events=null,E.stores=null,E.memoCache!=null&&(E.memoCache.index=0)}_.H=u$,E=a(u,m)}while(zl);return E}function vI(){var o=_.H,a=o.useState()[0];return a=typeof a.then=="function"?cc(a):a,o=o.useState()[0],(hn!==null?hn.memoizedState:null)!==o&&(At.flags|=1024),a}function Vg(){var o=Gd!==0;return Gd=0,o}function Fg(o,a,u){a.updateQueue=o.updateQueue,a.flags&=-2053,o.lanes&=~u}function kg(o){if(Ud){for(o=o.memoizedState;o!==null;){var a=o.queue;a!==null&&(a.pending=null),o=o.next}Ud=!1}la=0,Wn=hn=At=null,zl=!1,sc=Gd=0,Al=null}function Ir(){var o={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Wn===null?At.memoizedState=Wn=o:Wn=Wn.next=o,Wn}function Ln(){if(hn===null){var o=At.alternate;o=o!==null?o.memoizedState:null}else o=hn.next;var a=Wn===null?At.memoizedState:Wn.next;if(a!==null)Wn=a,hn=o;else{if(o===null)throw At.alternate===null?Error(r(467)):Error(r(310));hn=o,o={memoizedState:hn.memoizedState,baseState:hn.baseState,baseQueue:hn.baseQueue,queue:hn.queue,next:null},Wn===null?At.memoizedState=Wn=o:Wn=Wn.next=o}return Wn}function Xd(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function cc(o){var a=sc;return sc+=1,Al===null&&(Al=[]),o=bC(Al,o,a),a=At,(Wn===null?a.memoizedState:Wn.next)===null&&(a=a.alternate,_.H=a===null||a.memoizedState===null?c$:th),o}function Kd(o){if(o!==null&&typeof o=="object"){if(typeof o.then=="function")return cc(o);if(o.$$typeof===w)return yr(o)}throw Error(r(438,String(o)))}function Wg(o){var a=null,u=At.updateQueue;if(u!==null&&(a=u.memoCache),a==null){var m=At.alternate;m!==null&&(m=m.updateQueue,m!==null&&(m=m.memoCache,m!=null&&(a={data:m.data.map(function(v){return v.slice()}),index:0})))}if(a==null&&(a={data:[],index:0}),u===null&&(u=Xd(),At.updateQueue=u),u.memoCache=a,u=a.data[a.index],u===void 0)for(u=a.data[a.index]=Array(o),m=0;m<o;m++)u[m]=k;return a.index++,u}function sa(o,a){return typeof a=="function"?a(o):a}function Qd(o){var a=Ln();return qg(a,hn,o)}function qg(o,a,u){var m=o.queue;if(m===null)throw Error(r(311));m.lastRenderedReducer=u;var v=o.baseQueue,E=m.pending;if(E!==null){if(v!==null){var W=v.next;v.next=E.next,E.next=W}a.baseQueue=v=E,m.pending=null}if(E=o.baseState,v===null)o.memoizedState=E;else{a=v.next;var ee=W=null,ce=null,Ce=a,He=!1;do{var Fe=Ce.lane&-536870913;if(Fe!==Ce.lane?(Gt&Fe)===Fe:(la&Fe)===Fe){var Ee=Ce.revertLane;if(Ee===0)ce!==null&&(ce=ce.next={lane:0,revertLane:0,gesture:null,action:Ce.action,hasEagerState:Ce.hasEagerState,eagerState:Ce.eagerState,next:null}),Fe===Tl&&(He=!0);else if((la&Ee)===Ee){Ce=Ce.next,Ee===Tl&&(He=!0);continue}else Fe={lane:0,revertLane:Ce.revertLane,gesture:null,action:Ce.action,hasEagerState:Ce.hasEagerState,eagerState:Ce.eagerState,next:null},ce===null?(ee=ce=Fe,W=E):ce=ce.next=Fe,At.lanes|=Ee,Va|=Ee;Fe=Ce.action,Ti&&u(E,Fe),E=Ce.hasEagerState?Ce.eagerState:u(E,Fe)}else Ee={lane:Fe,revertLane:Ce.revertLane,gesture:Ce.gesture,action:Ce.action,hasEagerState:Ce.hasEagerState,eagerState:Ce.eagerState,next:null},ce===null?(ee=ce=Ee,W=E):ce=ce.next=Ee,At.lanes|=Fe,Va|=Fe;Ce=Ce.next}while(Ce!==null&&Ce!==a);if(ce===null?W=E:ce.next=ee,!Ur(E,o.memoizedState)&&(qn=!0,He&&(u=Ol,u!==null)))throw u;o.memoizedState=E,o.baseState=W,o.baseQueue=ce,m.lastRenderedState=E}return v===null&&(m.lanes=0),[o.memoizedState,m.dispatch]}function Yg(o){var a=Ln(),u=a.queue;if(u===null)throw Error(r(311));u.lastRenderedReducer=o;var m=u.dispatch,v=u.pending,E=a.memoizedState;if(v!==null){u.pending=null;var W=v=v.next;do E=o(E,W.action),W=W.next;while(W!==v);Ur(E,a.memoizedState)||(qn=!0),a.memoizedState=E,a.baseQueue===null&&(a.baseState=E),u.lastRenderedState=E}return[E,m]}function OC(o,a,u){var m=At,v=Ln(),E=Qt;if(E){if(u===void 0)throw Error(r(407));u=u()}else u=a();var W=!Ur((hn||v).memoizedState,u);if(W&&(v.memoizedState=u,qn=!0),v=v.queue,Xg(PC.bind(null,m,v,o),[o]),v.getSnapshot!==a||W||Wn!==null&&Wn.memoizedState.tag&1){if(m.flags|=2048,Dl(9,{destroy:void 0},IC.bind(null,m,v,u,a),null),Sn===null)throw Error(r(349));E||(la&127)!==0||NC(m,a,u)}return u}function NC(o,a,u){o.flags|=16384,o={getSnapshot:a,value:u},a=At.updateQueue,a===null?(a=Xd(),At.updateQueue=a,a.stores=[o]):(u=a.stores,u===null?a.stores=[o]:u.push(o))}function IC(o,a,u,m){a.value=u,a.getSnapshot=m,zC(a)&&AC(o)}function PC(o,a,u){return u(function(){zC(a)&&AC(o)})}function zC(o){var a=o.getSnapshot;o=o.value;try{var u=a();return!Ur(o,u)}catch{return!0}}function AC(o){var a=vi(o,2);a!==null&&Lr(a,o,2)}function Ug(o){var a=Ir();if(typeof o=="function"){var u=o;if(o=u(),Ti){Se(!0);try{u()}finally{Se(!1)}}}return a.memoizedState=a.baseState=o,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:sa,lastRenderedState:o},a}function DC(o,a,u,m){return o.baseState=u,qg(o,hn,typeof m=="function"?m:sa)}function SI(o,a,u,m,v){if(ef(o))throw Error(r(485));if(o=a.action,o!==null){var E={payload:v,action:o,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(W){E.listeners.push(W)}};_.T!==null?u(!0):E.isTransition=!1,m(E),u=a.pending,u===null?(E.next=a.pending=E,jC(a,E)):(E.next=u.next,a.pending=u.next=E)}}function jC(o,a){var u=a.action,m=a.payload,v=o.state;if(a.isTransition){var E=_.T,W={};_.T=W;try{var ee=u(v,m),ce=_.S;ce!==null&&ce(W,ee),_C(o,a,ee)}catch(Ce){Gg(o,a,Ce)}finally{E!==null&&W.types!==null&&(E.types=W.types),_.T=E}}else try{E=u(v,m),_C(o,a,E)}catch(Ce){Gg(o,a,Ce)}}function _C(o,a,u){u!==null&&typeof u=="object"&&typeof u.then=="function"?u.then(function(m){HC(o,a,m)},function(m){return Gg(o,a,m)}):HC(o,a,u)}function HC(o,a,u){a.status="fulfilled",a.value=u,BC(a),o.state=u,a=o.pending,a!==null&&(u=a.next,u===a?o.pending=null:(u=u.next,a.next=u,jC(o,u)))}function Gg(o,a,u){var m=o.pending;if(o.pending=null,m!==null){m=m.next;do a.status="rejected",a.reason=u,BC(a),a=a.next;while(a!==m)}o.action=null}function BC(o){o=o.listeners;for(var a=0;a<o.length;a++)(0,o[a])()}function LC(o,a){return a}function VC(o,a){if(Qt){var u=Sn.formState;if(u!==null){e:{var m=At;if(Qt){if(Mn){t:{for(var v=Mn,E=fo;v.nodeType!==8;){if(!E){v=null;break t}if(v=po(v.nextSibling),v===null){v=null;break t}}E=v.data,v=E==="F!"||E==="F"?v:null}if(v){Mn=po(v.nextSibling),m=v.data==="F!";break e}}Pa(m)}m=!1}m&&(a=u[0])}}return u=Ir(),u.memoizedState=u.baseState=a,m={pending:null,lanes:0,dispatch:null,lastRenderedReducer:LC,lastRenderedState:a},u.queue=m,u=i$.bind(null,At,m),m.dispatch=u,m=Ug(!1),E=eh.bind(null,At,!1,m.queue),m=Ir(),v={state:a,dispatch:null,action:o,pending:null},m.queue=v,u=SI.bind(null,At,v,E,u),v.dispatch=u,m.memoizedState=o,[a,u,!1]}function FC(o){var a=Ln();return kC(a,hn,o)}function kC(o,a,u){if(a=qg(o,a,LC)[0],o=Qd(sa)[0],typeof a=="object"&&a!==null&&typeof a.then=="function")try{var m=cc(a)}catch(W){throw W===Nl?Vd:W}else m=a;a=Ln();var v=a.queue,E=v.dispatch;return u!==a.memoizedState&&(At.flags|=2048,Dl(9,{destroy:void 0},CI.bind(null,v,u),null)),[m,E,o]}function CI(o,a){o.action=a}function WC(o){var a=Ln(),u=hn;if(u!==null)return kC(a,u,o);Ln(),a=a.memoizedState,u=Ln();var m=u.queue.dispatch;return u.memoizedState=o,[a,m,!1]}function Dl(o,a,u,m){return o={tag:o,create:u,deps:m,inst:a,next:null},a=At.updateQueue,a===null&&(a=Xd(),At.updateQueue=a),u=a.lastEffect,u===null?a.lastEffect=o.next=o:(m=u.next,u.next=o,o.next=m,a.lastEffect=o),o}function qC(){return Ln().memoizedState}function Zd(o,a,u,m){var v=Ir();At.flags|=o,v.memoizedState=Dl(1|a,{destroy:void 0},u,m===void 0?null:m)}function Jd(o,a,u,m){var v=Ln();m=m===void 0?null:m;var E=v.memoizedState.inst;hn!==null&&m!==null&&Bg(m,hn.memoizedState.deps)?v.memoizedState=Dl(a,E,u,m):(At.flags|=o,v.memoizedState=Dl(1|a,E,u,m))}function YC(o,a){Zd(8390656,8,o,a)}function Xg(o,a){Jd(2048,8,o,a)}function $I(o){At.flags|=4;var a=At.updateQueue;if(a===null)a=Xd(),At.updateQueue=a,a.events=[o];else{var u=a.events;u===null?a.events=[o]:u.push(o)}}function UC(o){var a=Ln().memoizedState;return $I({ref:a,nextImpl:o}),function(){if((on&2)!==0)throw Error(r(440));return a.impl.apply(void 0,arguments)}}function GC(o,a){return Jd(4,2,o,a)}function XC(o,a){return Jd(4,4,o,a)}function KC(o,a){if(typeof a=="function"){o=o();var u=a(o);return function(){typeof u=="function"?u():a(null)}}if(a!=null)return o=o(),a.current=o,function(){a.current=null}}function QC(o,a,u){u=u!=null?u.concat([o]):null,Jd(4,4,KC.bind(null,a,o),u)}function Kg(){}function ZC(o,a){var u=Ln();a=a===void 0?null:a;var m=u.memoizedState;return a!==null&&Bg(a,m[1])?m[0]:(u.memoizedState=[o,a],o)}function JC(o,a){var u=Ln();a=a===void 0?null:a;var m=u.memoizedState;if(a!==null&&Bg(a,m[1]))return m[0];if(m=o(),Ti){Se(!0);try{o()}finally{Se(!1)}}return u.memoizedState=[m,a],m}function Qg(o,a,u){return u===void 0||(la&1073741824)!==0&&(Gt&261930)===0?o.memoizedState=a:(o.memoizedState=u,o=ex(),At.lanes|=o,Va|=o,u)}function e$(o,a,u,m){return Ur(u,a)?u:Pl.current!==null?(o=Qg(o,u,m),Ur(o,a)||(qn=!0),o):(la&42)===0||(la&1073741824)!==0&&(Gt&261930)===0?(qn=!0,o.memoizedState=u):(o=ex(),At.lanes|=o,Va|=o,a)}function t$(o,a,u,m,v){var E=H.p;H.p=E!==0&&8>E?E:8;var W=_.T,ee={};_.T=ee,eh(o,!1,a,u);try{var ce=v(),Ce=_.S;if(Ce!==null&&Ce(ee,ce),ce!==null&&typeof ce=="object"&&typeof ce.then=="function"){var He=yI(ce,m);uc(o,a,He,Jr(o))}else uc(o,a,m,Jr(o))}catch(Fe){uc(o,a,{then:function(){},status:"rejected",reason:Fe},Jr())}finally{H.p=E,W!==null&&ee.types!==null&&(W.types=ee.types),_.T=W}}function xI(){}function Zg(o,a,u,m){if(o.tag!==5)throw Error(r(476));var v=n$(o).queue;t$(o,v,a,I,u===null?xI:function(){return r$(o),u(m)})}function n$(o){var a=o.memoizedState;if(a!==null)return a;a={memoizedState:I,baseState:I,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:sa,lastRenderedState:I},next:null};var u={};return a.next={memoizedState:u,baseState:u,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:sa,lastRenderedState:u},next:null},o.memoizedState=a,o=o.alternate,o!==null&&(o.memoizedState=a),a}function r$(o){var a=n$(o);a.next===null&&(a=o.alternate.memoizedState),uc(o,a.next.queue,{},Jr())}function Jg(){return yr(Rc)}function o$(){return Ln().memoizedState}function a$(){return Ln().memoizedState}function wI(o){for(var a=o.return;a!==null;){switch(a.tag){case 24:case 3:var u=Jr();o=Da(u);var m=ja(a,o,u);m!==null&&(Lr(m,a,u),ac(m,a,u)),a={cache:Tg()},o.payload=a;return}a=a.return}}function EI(o,a,u){var m=Jr();u={lane:m,revertLane:0,gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},ef(o)?l$(a,u):(u=yg(o,a,u,m),u!==null&&(Lr(u,o,m),s$(u,a,m)))}function i$(o,a,u){var m=Jr();uc(o,a,u,m)}function uc(o,a,u,m){var v={lane:m,revertLane:0,gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null};if(ef(o))l$(a,v);else{var E=o.alternate;if(o.lanes===0&&(E===null||E.lanes===0)&&(E=a.lastRenderedReducer,E!==null))try{var W=a.lastRenderedState,ee=E(W,u);if(v.hasEagerState=!0,v.eagerState=ee,Ur(ee,W))return Ad(o,a,v,0),Sn===null&&zd(),!1}catch{}if(u=yg(o,a,v,m),u!==null)return Lr(u,o,m),s$(u,a,m),!0}return!1}function eh(o,a,u,m){if(m={lane:2,revertLane:Ph(),gesture:null,action:m,hasEagerState:!1,eagerState:null,next:null},ef(o)){if(a)throw Error(r(479))}else a=yg(o,u,m,2),a!==null&&Lr(a,o,2)}function ef(o){var a=o.alternate;return o===At||a!==null&&a===At}function l$(o,a){zl=Ud=!0;var u=o.pending;u===null?a.next=a:(a.next=u.next,u.next=a),o.pending=a}function s$(o,a,u){if((u&4194048)!==0){var m=a.lanes;m&=o.pendingLanes,u|=m,a.lanes=u,Re(o,u)}}var dc={readContext:yr,use:Kd,useCallback:An,useContext:An,useEffect:An,useImperativeHandle:An,useLayoutEffect:An,useInsertionEffect:An,useMemo:An,useReducer:An,useRef:An,useState:An,useDebugValue:An,useDeferredValue:An,useTransition:An,useSyncExternalStore:An,useId:An,useHostTransitionStatus:An,useFormState:An,useActionState:An,useOptimistic:An,useMemoCache:An,useCacheRefresh:An};dc.useEffectEvent=An;var c$={readContext:yr,use:Kd,useCallback:function(o,a){return Ir().memoizedState=[o,a===void 0?null:a],o},useContext:yr,useEffect:YC,useImperativeHandle:function(o,a,u){u=u!=null?u.concat([o]):null,Zd(4194308,4,KC.bind(null,a,o),u)},useLayoutEffect:function(o,a){return Zd(4194308,4,o,a)},useInsertionEffect:function(o,a){Zd(4,2,o,a)},useMemo:function(o,a){var u=Ir();a=a===void 0?null:a;var m=o();if(Ti){Se(!0);try{o()}finally{Se(!1)}}return u.memoizedState=[m,a],m},useReducer:function(o,a,u){var m=Ir();if(u!==void 0){var v=u(a);if(Ti){Se(!0);try{u(a)}finally{Se(!1)}}}else v=a;return m.memoizedState=m.baseState=v,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:o,lastRenderedState:v},m.queue=o,o=o.dispatch=EI.bind(null,At,o),[m.memoizedState,o]},useRef:function(o){var a=Ir();return o={current:o},a.memoizedState=o},useState:function(o){o=Ug(o);var a=o.queue,u=i$.bind(null,At,a);return a.dispatch=u,[o.memoizedState,u]},useDebugValue:Kg,useDeferredValue:function(o,a){var u=Ir();return Qg(u,o,a)},useTransition:function(){var o=Ug(!1);return o=t$.bind(null,At,o.queue,!0,!1),Ir().memoizedState=o,[!1,o]},useSyncExternalStore:function(o,a,u){var m=At,v=Ir();if(Qt){if(u===void 0)throw Error(r(407));u=u()}else{if(u=a(),Sn===null)throw Error(r(349));(Gt&127)!==0||NC(m,a,u)}v.memoizedState=u;var E={value:u,getSnapshot:a};return v.queue=E,YC(PC.bind(null,m,E,o),[o]),m.flags|=2048,Dl(9,{destroy:void 0},IC.bind(null,m,E,u,a),null),u},useId:function(){var o=Ir(),a=Sn.identifierPrefix;if(Qt){var u=Vo,m=Lo;u=(m&~(1<<32-Be(m)-1)).toString(32)+u,a="_"+a+"R_"+u,u=Gd++,0<u&&(a+="H"+u.toString(32)),a+="_"}else u=bI++,a="_"+a+"r_"+u.toString(32)+"_";return o.memoizedState=a},useHostTransitionStatus:Jg,useFormState:VC,useActionState:VC,useOptimistic:function(o){var a=Ir();a.memoizedState=a.baseState=o;var u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=u,a=eh.bind(null,At,!0,u),u.dispatch=a,[o,a]},useMemoCache:Wg,useCacheRefresh:function(){return Ir().memoizedState=wI.bind(null,At)},useEffectEvent:function(o){var a=Ir(),u={impl:o};return a.memoizedState=u,function(){if((on&2)!==0)throw Error(r(440));return u.impl.apply(void 0,arguments)}}},th={readContext:yr,use:Kd,useCallback:ZC,useContext:yr,useEffect:Xg,useImperativeHandle:QC,useInsertionEffect:GC,useLayoutEffect:XC,useMemo:JC,useReducer:Qd,useRef:qC,useState:function(){return Qd(sa)},useDebugValue:Kg,useDeferredValue:function(o,a){var u=Ln();return e$(u,hn.memoizedState,o,a)},useTransition:function(){var o=Qd(sa)[0],a=Ln().memoizedState;return[typeof o=="boolean"?o:cc(o),a]},useSyncExternalStore:OC,useId:o$,useHostTransitionStatus:Jg,useFormState:FC,useActionState:FC,useOptimistic:function(o,a){var u=Ln();return DC(u,hn,o,a)},useMemoCache:Wg,useCacheRefresh:a$};th.useEffectEvent=UC;var u$={readContext:yr,use:Kd,useCallback:ZC,useContext:yr,useEffect:Xg,useImperativeHandle:QC,useInsertionEffect:GC,useLayoutEffect:XC,useMemo:JC,useReducer:Yg,useRef:qC,useState:function(){return Yg(sa)},useDebugValue:Kg,useDeferredValue:function(o,a){var u=Ln();return hn===null?Qg(u,o,a):e$(u,hn.memoizedState,o,a)},useTransition:function(){var o=Yg(sa)[0],a=Ln().memoizedState;return[typeof o=="boolean"?o:cc(o),a]},useSyncExternalStore:OC,useId:o$,useHostTransitionStatus:Jg,useFormState:WC,useActionState:WC,useOptimistic:function(o,a){var u=Ln();return hn!==null?DC(u,hn,o,a):(u.baseState=o,[o,u.queue.dispatch])},useMemoCache:Wg,useCacheRefresh:a$};u$.useEffectEvent=UC;function nh(o,a,u,m){a=o.memoizedState,u=u(m,a),u=u==null?a:h({},a,u),o.memoizedState=u,o.lanes===0&&(o.updateQueue.baseState=u)}var rh={enqueueSetState:function(o,a,u){o=o._reactInternals;var m=Jr(),v=Da(m);v.payload=a,u!=null&&(v.callback=u),a=ja(o,v,m),a!==null&&(Lr(a,o,m),ac(a,o,m))},enqueueReplaceState:function(o,a,u){o=o._reactInternals;var m=Jr(),v=Da(m);v.tag=1,v.payload=a,u!=null&&(v.callback=u),a=ja(o,v,m),a!==null&&(Lr(a,o,m),ac(a,o,m))},enqueueForceUpdate:function(o,a){o=o._reactInternals;var u=Jr(),m=Da(u);m.tag=2,a!=null&&(m.callback=a),a=ja(o,m,u),a!==null&&(Lr(a,o,u),ac(a,o,u))}};function d$(o,a,u,m,v,E,W){return o=o.stateNode,typeof o.shouldComponentUpdate=="function"?o.shouldComponentUpdate(m,E,W):a.prototype&&a.prototype.isPureReactComponent?!Qs(u,m)||!Qs(v,E):!0}function f$(o,a,u,m){o=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(u,m),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(u,m),a.state!==o&&rh.enqueueReplaceState(a,a.state,null)}function Oi(o,a){var u=a;if("ref"in a){u={};for(var m in a)m!=="ref"&&(u[m]=a[m])}if(o=o.defaultProps){u===a&&(u=h({},u));for(var v in o)u[v]===void 0&&(u[v]=o[v])}return u}function m$(o){Pd(o)}function p$(o){console.error(o)}function g$(o){Pd(o)}function tf(o,a){try{var u=o.onUncaughtError;u(a.value,{componentStack:a.stack})}catch(m){setTimeout(function(){throw m})}}function h$(o,a,u){try{var m=o.onCaughtError;m(u.value,{componentStack:u.stack,errorBoundary:a.tag===1?a.stateNode:null})}catch(v){setTimeout(function(){throw v})}}function oh(o,a,u){return u=Da(u),u.tag=3,u.payload={element:null},u.callback=function(){tf(o,a)},u}function y$(o){return o=Da(o),o.tag=3,o}function b$(o,a,u,m){var v=u.type.getDerivedStateFromError;if(typeof v=="function"){var E=m.value;o.payload=function(){return v(E)},o.callback=function(){h$(a,u,m)}}var W=u.stateNode;W!==null&&typeof W.componentDidCatch=="function"&&(o.callback=function(){h$(a,u,m),typeof v!="function"&&(Fa===null?Fa=new Set([this]):Fa.add(this));var ee=m.stack;this.componentDidCatch(m.value,{componentStack:ee!==null?ee:""})})}function MI(o,a,u,m,v){if(u.flags|=32768,m!==null&&typeof m=="object"&&typeof m.then=="function"){if(a=u.alternate,a!==null&&Rl(a,u,v,!0),u=Xr.current,u!==null){switch(u.tag){case 31:case 13:return mo===null?pf():u.alternate===null&&Dn===0&&(Dn=3),u.flags&=-257,u.flags|=65536,u.lanes=v,m===Fd?u.flags|=16384:(a=u.updateQueue,a===null?u.updateQueue=new Set([m]):a.add(m),Oh(o,m,v)),!1;case 22:return u.flags|=65536,m===Fd?u.flags|=16384:(a=u.updateQueue,a===null?(a={transitions:null,markerInstances:null,retryQueue:new Set([m])},u.updateQueue=a):(u=a.retryQueue,u===null?a.retryQueue=new Set([m]):u.add(m)),Oh(o,m,v)),!1}throw Error(r(435,u.tag))}return Oh(o,m,v),pf(),!1}if(Qt)return a=Xr.current,a!==null?((a.flags&65536)===0&&(a.flags|=256),a.flags|=65536,a.lanes=v,m!==xg&&(o=Error(r(422),{cause:m}),ec(so(o,u)))):(m!==xg&&(a=Error(r(423),{cause:m}),ec(so(a,u))),o=o.current.alternate,o.flags|=65536,v&=-v,o.lanes|=v,m=so(m,u),v=oh(o.stateNode,m,v),Ag(o,v),Dn!==4&&(Dn=2)),!1;var E=Error(r(520),{cause:m});if(E=so(E,u),vc===null?vc=[E]:vc.push(E),Dn!==4&&(Dn=2),a===null)return!0;m=so(m,u),u=a;do{switch(u.tag){case 3:return u.flags|=65536,o=v&-v,u.lanes|=o,o=oh(u.stateNode,m,o),Ag(u,o),!1;case 1:if(a=u.type,E=u.stateNode,(u.flags&128)===0&&(typeof a.getDerivedStateFromError=="function"||E!==null&&typeof E.componentDidCatch=="function"&&(Fa===null||!Fa.has(E))))return u.flags|=65536,v&=-v,u.lanes|=v,v=y$(v),b$(v,o,u,m),Ag(u,v),!1}u=u.return}while(u!==null);return!1}var ah=Error(r(461)),qn=!1;function br(o,a,u,m){a.child=o===null?$C(a,null,u,m):Ri(a,o.child,u,m)}function v$(o,a,u,m,v){u=u.render;var E=a.ref;if("ref"in m){var W={};for(var ee in m)ee!=="ref"&&(W[ee]=m[ee])}else W=m;return xi(a),m=Lg(o,a,u,W,E,v),ee=Vg(),o!==null&&!qn?(Fg(o,a,v),ca(o,a,v)):(Qt&&ee&&Cg(a),a.flags|=1,br(o,a,m,v),a.child)}function S$(o,a,u,m,v){if(o===null){var E=u.type;return typeof E=="function"&&!bg(E)&&E.defaultProps===void 0&&u.compare===null?(a.tag=15,a.type=E,C$(o,a,E,m,v)):(o=jd(u.type,null,m,a,a.mode,v),o.ref=a.ref,o.return=a,a.child=o)}if(E=o.child,!mh(o,v)){var W=E.memoizedProps;if(u=u.compare,u=u!==null?u:Qs,u(W,m)&&o.ref===a.ref)return ca(o,a,v)}return a.flags|=1,o=ra(E,m),o.ref=a.ref,o.return=a,a.child=o}function C$(o,a,u,m,v){if(o!==null){var E=o.memoizedProps;if(Qs(E,m)&&o.ref===a.ref)if(qn=!1,a.pendingProps=m=E,mh(o,v))(o.flags&131072)!==0&&(qn=!0);else return a.lanes=o.lanes,ca(o,a,v)}return ih(o,a,u,m,v)}function $$(o,a,u,m){var v=m.children,E=o!==null?o.memoizedState:null;if(o===null&&a.stateNode===null&&(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),m.mode==="hidden"){if((a.flags&128)!==0){if(E=E!==null?E.baseLanes|u:u,o!==null){for(m=a.child=o.child,v=0;m!==null;)v=v|m.lanes|m.childLanes,m=m.sibling;m=v&~E}else m=0,a.child=null;return x$(o,a,E,u,m)}if((u&536870912)!==0)a.memoizedState={baseLanes:0,cachePool:null},o!==null&&Ld(a,E!==null?E.cachePool:null),E!==null?EC(a,E):jg(),MC(a);else return m=a.lanes=536870912,x$(o,a,E!==null?E.baseLanes|u:u,u,m)}else E!==null?(Ld(a,E.cachePool),EC(a,E),Ha(),a.memoizedState=null):(o!==null&&Ld(a,null),jg(),Ha());return br(o,a,v,u),a.child}function fc(o,a){return o!==null&&o.tag===22||a.stateNode!==null||(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.sibling}function x$(o,a,u,m,v){var E=Ng();return E=E===null?null:{parent:kn._currentValue,pool:E},a.memoizedState={baseLanes:u,cachePool:E},o!==null&&Ld(a,null),jg(),MC(a),o!==null&&Rl(o,a,m,!0),a.childLanes=v,null}function nf(o,a){return a=of({mode:a.mode,children:a.children},o.mode),a.ref=o.ref,o.child=a,a.return=o,a}function w$(o,a,u){return Ri(a,o.child,null,u),o=nf(a,a.pendingProps),o.flags|=2,Kr(a),a.memoizedState=null,o}function RI(o,a,u){var m=a.pendingProps,v=(a.flags&128)!==0;if(a.flags&=-129,o===null){if(Qt){if(m.mode==="hidden")return o=nf(a,m),a.lanes=536870912,fc(null,o);if(Hg(a),(o=Mn)?(o=jx(o,fo),o=o!==null&&o.data==="&"?o:null,o!==null&&(a.memoizedState={dehydrated:o,treeContext:Na!==null?{id:Lo,overflow:Vo}:null,retryLane:536870912,hydrationErrors:null},u=lC(o),u.return=a,a.child=u,hr=a,Mn=null)):o=null,o===null)throw Pa(a);return a.lanes=536870912,null}return nf(a,m)}var E=o.memoizedState;if(E!==null){var W=E.dehydrated;if(Hg(a),v)if(a.flags&256)a.flags&=-257,a=w$(o,a,u);else if(a.memoizedState!==null)a.child=o.child,a.flags|=128,a=null;else throw Error(r(558));else if(qn||Rl(o,a,u,!1),v=(u&o.childLanes)!==0,qn||v){if(m=Sn,m!==null&&(W=Ye(m,u),W!==0&&W!==E.retryLane))throw E.retryLane=W,vi(o,W),Lr(m,o,W),ah;pf(),a=w$(o,a,u)}else o=E.treeContext,Mn=po(W.nextSibling),hr=a,Qt=!0,Ia=null,fo=!1,o!==null&&uC(a,o),a=nf(a,m),a.flags|=4096;return a}return o=ra(o.child,{mode:m.mode,children:m.children}),o.ref=a.ref,a.child=o,o.return=a,o}function rf(o,a){var u=a.ref;if(u===null)o!==null&&o.ref!==null&&(a.flags|=4194816);else{if(typeof u!="function"&&typeof u!="object")throw Error(r(284));(o===null||o.ref!==u)&&(a.flags|=4194816)}}function ih(o,a,u,m,v){return xi(a),u=Lg(o,a,u,m,void 0,v),m=Vg(),o!==null&&!qn?(Fg(o,a,v),ca(o,a,v)):(Qt&&m&&Cg(a),a.flags|=1,br(o,a,u,v),a.child)}function E$(o,a,u,m,v,E){return xi(a),a.updateQueue=null,u=TC(a,m,u,v),RC(o),m=Vg(),o!==null&&!qn?(Fg(o,a,E),ca(o,a,E)):(Qt&&m&&Cg(a),a.flags|=1,br(o,a,u,E),a.child)}function M$(o,a,u,m,v){if(xi(a),a.stateNode===null){var E=xl,W=u.contextType;typeof W=="object"&&W!==null&&(E=yr(W)),E=new u(m,E),a.memoizedState=E.state!==null&&E.state!==void 0?E.state:null,E.updater=rh,a.stateNode=E,E._reactInternals=a,E=a.stateNode,E.props=m,E.state=a.memoizedState,E.refs={},Pg(a),W=u.contextType,E.context=typeof W=="object"&&W!==null?yr(W):xl,E.state=a.memoizedState,W=u.getDerivedStateFromProps,typeof W=="function"&&(nh(a,u,W,m),E.state=a.memoizedState),typeof u.getDerivedStateFromProps=="function"||typeof E.getSnapshotBeforeUpdate=="function"||typeof E.UNSAFE_componentWillMount!="function"&&typeof E.componentWillMount!="function"||(W=E.state,typeof E.componentWillMount=="function"&&E.componentWillMount(),typeof E.UNSAFE_componentWillMount=="function"&&E.UNSAFE_componentWillMount(),W!==E.state&&rh.enqueueReplaceState(E,E.state,null),lc(a,m,E,v),ic(),E.state=a.memoizedState),typeof E.componentDidMount=="function"&&(a.flags|=4194308),m=!0}else if(o===null){E=a.stateNode;var ee=a.memoizedProps,ce=Oi(u,ee);E.props=ce;var Ce=E.context,He=u.contextType;W=xl,typeof He=="object"&&He!==null&&(W=yr(He));var Fe=u.getDerivedStateFromProps;He=typeof Fe=="function"||typeof E.getSnapshotBeforeUpdate=="function",ee=a.pendingProps!==ee,He||typeof E.UNSAFE_componentWillReceiveProps!="function"&&typeof E.componentWillReceiveProps!="function"||(ee||Ce!==W)&&f$(a,E,m,W),Aa=!1;var Ee=a.memoizedState;E.state=Ee,lc(a,m,E,v),ic(),Ce=a.memoizedState,ee||Ee!==Ce||Aa?(typeof Fe=="function"&&(nh(a,u,Fe,m),Ce=a.memoizedState),(ce=Aa||d$(a,u,ce,m,Ee,Ce,W))?(He||typeof E.UNSAFE_componentWillMount!="function"&&typeof E.componentWillMount!="function"||(typeof E.componentWillMount=="function"&&E.componentWillMount(),typeof E.UNSAFE_componentWillMount=="function"&&E.UNSAFE_componentWillMount()),typeof E.componentDidMount=="function"&&(a.flags|=4194308)):(typeof E.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=m,a.memoizedState=Ce),E.props=m,E.state=Ce,E.context=W,m=ce):(typeof E.componentDidMount=="function"&&(a.flags|=4194308),m=!1)}else{E=a.stateNode,zg(o,a),W=a.memoizedProps,He=Oi(u,W),E.props=He,Fe=a.pendingProps,Ee=E.context,Ce=u.contextType,ce=xl,typeof Ce=="object"&&Ce!==null&&(ce=yr(Ce)),ee=u.getDerivedStateFromProps,(Ce=typeof ee=="function"||typeof E.getSnapshotBeforeUpdate=="function")||typeof E.UNSAFE_componentWillReceiveProps!="function"&&typeof E.componentWillReceiveProps!="function"||(W!==Fe||Ee!==ce)&&f$(a,E,m,ce),Aa=!1,Ee=a.memoizedState,E.state=Ee,lc(a,m,E,v),ic();var Te=a.memoizedState;W!==Fe||Ee!==Te||Aa||o!==null&&o.dependencies!==null&&Hd(o.dependencies)?(typeof ee=="function"&&(nh(a,u,ee,m),Te=a.memoizedState),(He=Aa||d$(a,u,He,m,Ee,Te,ce)||o!==null&&o.dependencies!==null&&Hd(o.dependencies))?(Ce||typeof E.UNSAFE_componentWillUpdate!="function"&&typeof E.componentWillUpdate!="function"||(typeof E.componentWillUpdate=="function"&&E.componentWillUpdate(m,Te,ce),typeof E.UNSAFE_componentWillUpdate=="function"&&E.UNSAFE_componentWillUpdate(m,Te,ce)),typeof E.componentDidUpdate=="function"&&(a.flags|=4),typeof E.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof E.componentDidUpdate!="function"||W===o.memoizedProps&&Ee===o.memoizedState||(a.flags|=4),typeof E.getSnapshotBeforeUpdate!="function"||W===o.memoizedProps&&Ee===o.memoizedState||(a.flags|=1024),a.memoizedProps=m,a.memoizedState=Te),E.props=m,E.state=Te,E.context=ce,m=He):(typeof E.componentDidUpdate!="function"||W===o.memoizedProps&&Ee===o.memoizedState||(a.flags|=4),typeof E.getSnapshotBeforeUpdate!="function"||W===o.memoizedProps&&Ee===o.memoizedState||(a.flags|=1024),m=!1)}return E=m,rf(o,a),m=(a.flags&128)!==0,E||m?(E=a.stateNode,u=m&&typeof u.getDerivedStateFromError!="function"?null:E.render(),a.flags|=1,o!==null&&m?(a.child=Ri(a,o.child,null,v),a.child=Ri(a,null,u,v)):br(o,a,u,v),a.memoizedState=E.state,o=a.child):o=ca(o,a,v),o}function R$(o,a,u,m){return Ci(),a.flags|=256,br(o,a,u,m),a.child}var lh={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function sh(o){return{baseLanes:o,cachePool:hC()}}function ch(o,a,u){return o=o!==null?o.childLanes&~u:0,a&&(o|=Zr),o}function T$(o,a,u){var m=a.pendingProps,v=!1,E=(a.flags&128)!==0,W;if((W=E)||(W=o!==null&&o.memoizedState===null?!1:(Bn.current&2)!==0),W&&(v=!0,a.flags&=-129),W=(a.flags&32)!==0,a.flags&=-33,o===null){if(Qt){if(v?_a(a):Ha(),(o=Mn)?(o=jx(o,fo),o=o!==null&&o.data!=="&"?o:null,o!==null&&(a.memoizedState={dehydrated:o,treeContext:Na!==null?{id:Lo,overflow:Vo}:null,retryLane:536870912,hydrationErrors:null},u=lC(o),u.return=a,a.child=u,hr=a,Mn=null)):o=null,o===null)throw Pa(a);return qh(o)?a.lanes=32:a.lanes=536870912,null}var ee=m.children;return m=m.fallback,v?(Ha(),v=a.mode,ee=of({mode:"hidden",children:ee},v),m=Si(m,v,u,null),ee.return=a,m.return=a,ee.sibling=m,a.child=ee,m=a.child,m.memoizedState=sh(u),m.childLanes=ch(o,W,u),a.memoizedState=lh,fc(null,m)):(_a(a),uh(a,ee))}var ce=o.memoizedState;if(ce!==null&&(ee=ce.dehydrated,ee!==null)){if(E)a.flags&256?(_a(a),a.flags&=-257,a=dh(o,a,u)):a.memoizedState!==null?(Ha(),a.child=o.child,a.flags|=128,a=null):(Ha(),ee=m.fallback,v=a.mode,m=of({mode:"visible",children:m.children},v),ee=Si(ee,v,u,null),ee.flags|=2,m.return=a,ee.return=a,m.sibling=ee,a.child=m,Ri(a,o.child,null,u),m=a.child,m.memoizedState=sh(u),m.childLanes=ch(o,W,u),a.memoizedState=lh,a=fc(null,m));else if(_a(a),qh(ee)){if(W=ee.nextSibling&&ee.nextSibling.dataset,W)var Ce=W.dgst;W=Ce,m=Error(r(419)),m.stack="",m.digest=W,ec({value:m,source:null,stack:null}),a=dh(o,a,u)}else if(qn||Rl(o,a,u,!1),W=(u&o.childLanes)!==0,qn||W){if(W=Sn,W!==null&&(m=Ye(W,u),m!==0&&m!==ce.retryLane))throw ce.retryLane=m,vi(o,m),Lr(W,o,m),ah;Wh(ee)||pf(),a=dh(o,a,u)}else Wh(ee)?(a.flags|=192,a.child=o.child,a=null):(o=ce.treeContext,Mn=po(ee.nextSibling),hr=a,Qt=!0,Ia=null,fo=!1,o!==null&&uC(a,o),a=uh(a,m.children),a.flags|=4096);return a}return v?(Ha(),ee=m.fallback,v=a.mode,ce=o.child,Ce=ce.sibling,m=ra(ce,{mode:"hidden",children:m.children}),m.subtreeFlags=ce.subtreeFlags&65011712,Ce!==null?ee=ra(Ce,ee):(ee=Si(ee,v,u,null),ee.flags|=2),ee.return=a,m.return=a,m.sibling=ee,a.child=m,fc(null,m),m=a.child,ee=o.child.memoizedState,ee===null?ee=sh(u):(v=ee.cachePool,v!==null?(ce=kn._currentValue,v=v.parent!==ce?{parent:ce,pool:ce}:v):v=hC(),ee={baseLanes:ee.baseLanes|u,cachePool:v}),m.memoizedState=ee,m.childLanes=ch(o,W,u),a.memoizedState=lh,fc(o.child,m)):(_a(a),u=o.child,o=u.sibling,u=ra(u,{mode:"visible",children:m.children}),u.return=a,u.sibling=null,o!==null&&(W=a.deletions,W===null?(a.deletions=[o],a.flags|=16):W.push(o)),a.child=u,a.memoizedState=null,u)}function uh(o,a){return a=of({mode:"visible",children:a},o.mode),a.return=o,o.child=a}function of(o,a){return o=Gr(22,o,null,a),o.lanes=0,o}function dh(o,a,u){return Ri(a,o.child,null,u),o=uh(a,a.pendingProps.children),o.flags|=2,a.memoizedState=null,o}function O$(o,a,u){o.lanes|=a;var m=o.alternate;m!==null&&(m.lanes|=a),Mg(o.return,a,u)}function fh(o,a,u,m,v,E){var W=o.memoizedState;W===null?o.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:m,tail:u,tailMode:v,treeForkCount:E}:(W.isBackwards=a,W.rendering=null,W.renderingStartTime=0,W.last=m,W.tail=u,W.tailMode=v,W.treeForkCount=E)}function N$(o,a,u){var m=a.pendingProps,v=m.revealOrder,E=m.tail;m=m.children;var W=Bn.current,ee=(W&2)!==0;if(ee?(W=W&1|2,a.flags|=128):W&=1,q(Bn,W),br(o,a,m,u),m=Qt?Js:0,!ee&&o!==null&&(o.flags&128)!==0)e:for(o=a.child;o!==null;){if(o.tag===13)o.memoizedState!==null&&O$(o,u,a);else if(o.tag===19)O$(o,u,a);else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===a)break e;for(;o.sibling===null;){if(o.return===null||o.return===a)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}switch(v){case"forwards":for(u=a.child,v=null;u!==null;)o=u.alternate,o!==null&&Yd(o)===null&&(v=u),u=u.sibling;u=v,u===null?(v=a.child,a.child=null):(v=u.sibling,u.sibling=null),fh(a,!1,v,u,E,m);break;case"backwards":case"unstable_legacy-backwards":for(u=null,v=a.child,a.child=null;v!==null;){if(o=v.alternate,o!==null&&Yd(o)===null){a.child=v;break}o=v.sibling,v.sibling=u,u=v,v=o}fh(a,!0,u,null,E,m);break;case"together":fh(a,!1,null,null,void 0,m);break;default:a.memoizedState=null}return a.child}function ca(o,a,u){if(o!==null&&(a.dependencies=o.dependencies),Va|=a.lanes,(u&a.childLanes)===0)if(o!==null){if(Rl(o,a,u,!1),(u&a.childLanes)===0)return null}else return null;if(o!==null&&a.child!==o.child)throw Error(r(153));if(a.child!==null){for(o=a.child,u=ra(o,o.pendingProps),a.child=u,u.return=a;o.sibling!==null;)o=o.sibling,u=u.sibling=ra(o,o.pendingProps),u.return=a;u.sibling=null}return a.child}function mh(o,a){return(o.lanes&a)!==0?!0:(o=o.dependencies,!!(o!==null&&Hd(o)))}function TI(o,a,u){switch(a.tag){case 3:re(a,a.stateNode.containerInfo),za(a,kn,o.memoizedState.cache),Ci();break;case 27:case 5:ie(a);break;case 4:re(a,a.stateNode.containerInfo);break;case 10:za(a,a.type,a.memoizedProps.value);break;case 31:if(a.memoizedState!==null)return a.flags|=128,Hg(a),null;break;case 13:var m=a.memoizedState;if(m!==null)return m.dehydrated!==null?(_a(a),a.flags|=128,null):(u&a.child.childLanes)!==0?T$(o,a,u):(_a(a),o=ca(o,a,u),o!==null?o.sibling:null);_a(a);break;case 19:var v=(o.flags&128)!==0;if(m=(u&a.childLanes)!==0,m||(Rl(o,a,u,!1),m=(u&a.childLanes)!==0),v){if(m)return N$(o,a,u);a.flags|=128}if(v=a.memoizedState,v!==null&&(v.rendering=null,v.tail=null,v.lastEffect=null),q(Bn,Bn.current),m)break;return null;case 22:return a.lanes=0,$$(o,a,u,a.pendingProps);case 24:za(a,kn,o.memoizedState.cache)}return ca(o,a,u)}function I$(o,a,u){if(o!==null)if(o.memoizedProps!==a.pendingProps)qn=!0;else{if(!mh(o,u)&&(a.flags&128)===0)return qn=!1,TI(o,a,u);qn=(o.flags&131072)!==0}else qn=!1,Qt&&(a.flags&1048576)!==0&&cC(a,Js,a.index);switch(a.lanes=0,a.tag){case 16:e:{var m=a.pendingProps;if(o=Ei(a.elementType),a.type=o,typeof o=="function")bg(o)?(m=Oi(o,m),a.tag=1,a=M$(null,a,o,m,u)):(a.tag=0,a=ih(null,a,o,m,u));else{if(o!=null){var v=o.$$typeof;if(v===R){a.tag=11,a=v$(null,a,o,m,u);break e}else if(v===O){a.tag=14,a=S$(null,a,o,m,u);break e}}throw a=V(o)||o,Error(r(306,a,""))}}return a;case 0:return ih(o,a,a.type,a.pendingProps,u);case 1:return m=a.type,v=Oi(m,a.pendingProps),M$(o,a,m,v,u);case 3:e:{if(re(a,a.stateNode.containerInfo),o===null)throw Error(r(387));m=a.pendingProps;var E=a.memoizedState;v=E.element,zg(o,a),lc(a,m,null,u);var W=a.memoizedState;if(m=W.cache,za(a,kn,m),m!==E.cache&&Rg(a,[kn],u,!0),ic(),m=W.element,E.isDehydrated)if(E={element:m,isDehydrated:!1,cache:W.cache},a.updateQueue.baseState=E,a.memoizedState=E,a.flags&256){a=R$(o,a,m,u);break e}else if(m!==v){v=so(Error(r(424)),a),ec(v),a=R$(o,a,m,u);break e}else for(o=a.stateNode.containerInfo,o.nodeType===9?o=o.body:o=o.nodeName==="HTML"?o.ownerDocument.body:o,Mn=po(o.firstChild),hr=a,Qt=!0,Ia=null,fo=!0,u=$C(a,null,m,u),a.child=u;u;)u.flags=u.flags&-3|4096,u=u.sibling;else{if(Ci(),m===v){a=ca(o,a,u);break e}br(o,a,m,u)}a=a.child}return a;case 26:return rf(o,a),o===null?(u=Fx(a.type,null,a.pendingProps,null))?a.memoizedState=u:Qt||(u=a.type,o=a.pendingProps,m=Cf(J.current).createElement(u),m[wt]=a,m[dn]=o,vr(m,u,o),fn(m),a.stateNode=m):a.memoizedState=Fx(a.type,o.memoizedProps,a.pendingProps,o.memoizedState),null;case 27:return ie(a),o===null&&Qt&&(m=a.stateNode=Bx(a.type,a.pendingProps,J.current),hr=a,fo=!0,v=Mn,Ya(a.type)?(Yh=v,Mn=po(m.firstChild)):Mn=v),br(o,a,a.pendingProps.children,u),rf(o,a),o===null&&(a.flags|=4194304),a.child;case 5:return o===null&&Qt&&((v=m=Mn)&&(m=oP(m,a.type,a.pendingProps,fo),m!==null?(a.stateNode=m,hr=a,Mn=po(m.firstChild),fo=!1,v=!0):v=!1),v||Pa(a)),ie(a),v=a.type,E=a.pendingProps,W=o!==null?o.memoizedProps:null,m=E.children,Vh(v,E)?m=null:W!==null&&Vh(v,W)&&(a.flags|=32),a.memoizedState!==null&&(v=Lg(o,a,vI,null,null,u),Rc._currentValue=v),rf(o,a),br(o,a,m,u),a.child;case 6:return o===null&&Qt&&((o=u=Mn)&&(u=aP(u,a.pendingProps,fo),u!==null?(a.stateNode=u,hr=a,Mn=null,o=!0):o=!1),o||Pa(a)),null;case 13:return T$(o,a,u);case 4:return re(a,a.stateNode.containerInfo),m=a.pendingProps,o===null?a.child=Ri(a,null,m,u):br(o,a,m,u),a.child;case 11:return v$(o,a,a.type,a.pendingProps,u);case 7:return br(o,a,a.pendingProps,u),a.child;case 8:return br(o,a,a.pendingProps.children,u),a.child;case 12:return br(o,a,a.pendingProps.children,u),a.child;case 10:return m=a.pendingProps,za(a,a.type,m.value),br(o,a,m.children,u),a.child;case 9:return v=a.type._context,m=a.pendingProps.children,xi(a),v=yr(v),m=m(v),a.flags|=1,br(o,a,m,u),a.child;case 14:return S$(o,a,a.type,a.pendingProps,u);case 15:return C$(o,a,a.type,a.pendingProps,u);case 19:return N$(o,a,u);case 31:return RI(o,a,u);case 22:return $$(o,a,u,a.pendingProps);case 24:return xi(a),m=yr(kn),o===null?(v=Ng(),v===null&&(v=Sn,E=Tg(),v.pooledCache=E,E.refCount++,E!==null&&(v.pooledCacheLanes|=u),v=E),a.memoizedState={parent:m,cache:v},Pg(a),za(a,kn,v)):((o.lanes&u)!==0&&(zg(o,a),lc(a,null,null,u),ic()),v=o.memoizedState,E=a.memoizedState,v.parent!==m?(v={parent:m,cache:m},a.memoizedState=v,a.lanes===0&&(a.memoizedState=a.updateQueue.baseState=v),za(a,kn,m)):(m=E.cache,za(a,kn,m),m!==v.cache&&Rg(a,[kn],u,!0))),br(o,a,a.pendingProps.children,u),a.child;case 29:throw a.pendingProps}throw Error(r(156,a.tag))}function ua(o){o.flags|=4}function ph(o,a,u,m,v){if((a=(o.mode&32)!==0)&&(a=!1),a){if(o.flags|=16777216,(v&335544128)===v)if(o.stateNode.complete)o.flags|=8192;else if(ox())o.flags|=8192;else throw Mi=Fd,Ig}else o.flags&=-16777217}function P$(o,a){if(a.type!=="stylesheet"||(a.state.loading&4)!==0)o.flags&=-16777217;else if(o.flags|=16777216,!Ux(a))if(ox())o.flags|=8192;else throw Mi=Fd,Ig}function af(o,a){a!==null&&(o.flags|=4),o.flags&16384&&(a=o.tag!==22?qe():536870912,o.lanes|=a,Bl|=a)}function mc(o,a){if(!Qt)switch(o.tailMode){case"hidden":a=o.tail;for(var u=null;a!==null;)a.alternate!==null&&(u=a),a=a.sibling;u===null?o.tail=null:u.sibling=null;break;case"collapsed":u=o.tail;for(var m=null;u!==null;)u.alternate!==null&&(m=u),u=u.sibling;m===null?a||o.tail===null?o.tail=null:o.tail.sibling=null:m.sibling=null}}function Rn(o){var a=o.alternate!==null&&o.alternate.child===o.child,u=0,m=0;if(a)for(var v=o.child;v!==null;)u|=v.lanes|v.childLanes,m|=v.subtreeFlags&65011712,m|=v.flags&65011712,v.return=o,v=v.sibling;else for(v=o.child;v!==null;)u|=v.lanes|v.childLanes,m|=v.subtreeFlags,m|=v.flags,v.return=o,v=v.sibling;return o.subtreeFlags|=m,o.childLanes=u,a}function OI(o,a,u){var m=a.pendingProps;switch($g(a),a.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Rn(a),null;case 1:return Rn(a),null;case 3:return u=a.stateNode,m=null,o!==null&&(m=o.memoizedState.cache),a.memoizedState.cache!==m&&(a.flags|=2048),ia(kn),ne(),u.pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),(o===null||o.child===null)&&(Ml(a)?ua(a):o===null||o.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,wg())),Rn(a),null;case 26:var v=a.type,E=a.memoizedState;return o===null?(ua(a),E!==null?(Rn(a),P$(a,E)):(Rn(a),ph(a,v,null,m,u))):E?E!==o.memoizedState?(ua(a),Rn(a),P$(a,E)):(Rn(a),a.flags&=-16777217):(o=o.memoizedProps,o!==m&&ua(a),Rn(a),ph(a,v,o,m,u)),null;case 27:if(fe(a),u=J.current,v=a.type,o!==null&&a.stateNode!=null)o.memoizedProps!==m&&ua(a);else{if(!m){if(a.stateNode===null)throw Error(r(166));return Rn(a),null}o=X.current,Ml(a)?dC(a):(o=Bx(v,m,u),a.stateNode=o,ua(a))}return Rn(a),null;case 5:if(fe(a),v=a.type,o!==null&&a.stateNode!=null)o.memoizedProps!==m&&ua(a);else{if(!m){if(a.stateNode===null)throw Error(r(166));return Rn(a),null}if(E=X.current,Ml(a))dC(a);else{var W=Cf(J.current);switch(E){case 1:E=W.createElementNS("http://www.w3.org/2000/svg",v);break;case 2:E=W.createElementNS("http://www.w3.org/1998/Math/MathML",v);break;default:switch(v){case"svg":E=W.createElementNS("http://www.w3.org/2000/svg",v);break;case"math":E=W.createElementNS("http://www.w3.org/1998/Math/MathML",v);break;case"script":E=W.createElement("div"),E.innerHTML="<script><\/script>",E=E.removeChild(E.firstChild);break;case"select":E=typeof m.is=="string"?W.createElement("select",{is:m.is}):W.createElement("select"),m.multiple?E.multiple=!0:m.size&&(E.size=m.size);break;default:E=typeof m.is=="string"?W.createElement(v,{is:m.is}):W.createElement(v)}}E[wt]=a,E[dn]=m;e:for(W=a.child;W!==null;){if(W.tag===5||W.tag===6)E.appendChild(W.stateNode);else if(W.tag!==4&&W.tag!==27&&W.child!==null){W.child.return=W,W=W.child;continue}if(W===a)break e;for(;W.sibling===null;){if(W.return===null||W.return===a)break e;W=W.return}W.sibling.return=W.return,W=W.sibling}a.stateNode=E;e:switch(vr(E,v,m),v){case"button":case"input":case"select":case"textarea":m=!!m.autoFocus;break e;case"img":m=!0;break e;default:m=!1}m&&ua(a)}}return Rn(a),ph(a,a.type,o===null?null:o.memoizedProps,a.pendingProps,u),null;case 6:if(o&&a.stateNode!=null)o.memoizedProps!==m&&ua(a);else{if(typeof m!="string"&&a.stateNode===null)throw Error(r(166));if(o=J.current,Ml(a)){if(o=a.stateNode,u=a.memoizedProps,m=null,v=hr,v!==null)switch(v.tag){case 27:case 5:m=v.memoizedProps}o[wt]=a,o=!!(o.nodeValue===u||m!==null&&m.suppressHydrationWarning===!0||Tx(o.nodeValue,u)),o||Pa(a,!0)}else o=Cf(o).createTextNode(m),o[wt]=a,a.stateNode=o}return Rn(a),null;case 31:if(u=a.memoizedState,o===null||o.memoizedState!==null){if(m=Ml(a),u!==null){if(o===null){if(!m)throw Error(r(318));if(o=a.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(557));o[wt]=a}else Ci(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;Rn(a),o=!1}else u=wg(),o!==null&&o.memoizedState!==null&&(o.memoizedState.hydrationErrors=u),o=!0;if(!o)return a.flags&256?(Kr(a),a):(Kr(a),null);if((a.flags&128)!==0)throw Error(r(558))}return Rn(a),null;case 13:if(m=a.memoizedState,o===null||o.memoizedState!==null&&o.memoizedState.dehydrated!==null){if(v=Ml(a),m!==null&&m.dehydrated!==null){if(o===null){if(!v)throw Error(r(318));if(v=a.memoizedState,v=v!==null?v.dehydrated:null,!v)throw Error(r(317));v[wt]=a}else Ci(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;Rn(a),v=!1}else v=wg(),o!==null&&o.memoizedState!==null&&(o.memoizedState.hydrationErrors=v),v=!0;if(!v)return a.flags&256?(Kr(a),a):(Kr(a),null)}return Kr(a),(a.flags&128)!==0?(a.lanes=u,a):(u=m!==null,o=o!==null&&o.memoizedState!==null,u&&(m=a.child,v=null,m.alternate!==null&&m.alternate.memoizedState!==null&&m.alternate.memoizedState.cachePool!==null&&(v=m.alternate.memoizedState.cachePool.pool),E=null,m.memoizedState!==null&&m.memoizedState.cachePool!==null&&(E=m.memoizedState.cachePool.pool),E!==v&&(m.flags|=2048)),u!==o&&u&&(a.child.flags|=8192),af(a,a.updateQueue),Rn(a),null);case 4:return ne(),o===null&&jh(a.stateNode.containerInfo),Rn(a),null;case 10:return ia(a.type),Rn(a),null;case 19:if(j(Bn),m=a.memoizedState,m===null)return Rn(a),null;if(v=(a.flags&128)!==0,E=m.rendering,E===null)if(v)mc(m,!1);else{if(Dn!==0||o!==null&&(o.flags&128)!==0)for(o=a.child;o!==null;){if(E=Yd(o),E!==null){for(a.flags|=128,mc(m,!1),o=E.updateQueue,a.updateQueue=o,af(a,o),a.subtreeFlags=0,o=u,u=a.child;u!==null;)iC(u,o),u=u.sibling;return q(Bn,Bn.current&1|2),Qt&&oa(a,m.treeForkCount),a.child}o=o.sibling}m.tail!==null&&be()>df&&(a.flags|=128,v=!0,mc(m,!1),a.lanes=4194304)}else{if(!v)if(o=Yd(E),o!==null){if(a.flags|=128,v=!0,o=o.updateQueue,a.updateQueue=o,af(a,o),mc(m,!0),m.tail===null&&m.tailMode==="hidden"&&!E.alternate&&!Qt)return Rn(a),null}else 2*be()-m.renderingStartTime>df&&u!==536870912&&(a.flags|=128,v=!0,mc(m,!1),a.lanes=4194304);m.isBackwards?(E.sibling=a.child,a.child=E):(o=m.last,o!==null?o.sibling=E:a.child=E,m.last=E)}return m.tail!==null?(o=m.tail,m.rendering=o,m.tail=o.sibling,m.renderingStartTime=be(),o.sibling=null,u=Bn.current,q(Bn,v?u&1|2:u&1),Qt&&oa(a,m.treeForkCount),o):(Rn(a),null);case 22:case 23:return Kr(a),_g(),m=a.memoizedState!==null,o!==null?o.memoizedState!==null!==m&&(a.flags|=8192):m&&(a.flags|=8192),m?(u&536870912)!==0&&(a.flags&128)===0&&(Rn(a),a.subtreeFlags&6&&(a.flags|=8192)):Rn(a),u=a.updateQueue,u!==null&&af(a,u.retryQueue),u=null,o!==null&&o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(u=o.memoizedState.cachePool.pool),m=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(m=a.memoizedState.cachePool.pool),m!==u&&(a.flags|=2048),o!==null&&j(wi),null;case 24:return u=null,o!==null&&(u=o.memoizedState.cache),a.memoizedState.cache!==u&&(a.flags|=2048),ia(kn),Rn(a),null;case 25:return null;case 30:return null}throw Error(r(156,a.tag))}function NI(o,a){switch($g(a),a.tag){case 1:return o=a.flags,o&65536?(a.flags=o&-65537|128,a):null;case 3:return ia(kn),ne(),o=a.flags,(o&65536)!==0&&(o&128)===0?(a.flags=o&-65537|128,a):null;case 26:case 27:case 5:return fe(a),null;case 31:if(a.memoizedState!==null){if(Kr(a),a.alternate===null)throw Error(r(340));Ci()}return o=a.flags,o&65536?(a.flags=o&-65537|128,a):null;case 13:if(Kr(a),o=a.memoizedState,o!==null&&o.dehydrated!==null){if(a.alternate===null)throw Error(r(340));Ci()}return o=a.flags,o&65536?(a.flags=o&-65537|128,a):null;case 19:return j(Bn),null;case 4:return ne(),null;case 10:return ia(a.type),null;case 22:case 23:return Kr(a),_g(),o!==null&&j(wi),o=a.flags,o&65536?(a.flags=o&-65537|128,a):null;case 24:return ia(kn),null;case 25:return null;default:return null}}function z$(o,a){switch($g(a),a.tag){case 3:ia(kn),ne();break;case 26:case 27:case 5:fe(a);break;case 4:ne();break;case 31:a.memoizedState!==null&&Kr(a);break;case 13:Kr(a);break;case 19:j(Bn);break;case 10:ia(a.type);break;case 22:case 23:Kr(a),_g(),o!==null&&j(wi);break;case 24:ia(kn)}}function pc(o,a){try{var u=a.updateQueue,m=u!==null?u.lastEffect:null;if(m!==null){var v=m.next;u=v;do{if((u.tag&o)===o){m=void 0;var E=u.create,W=u.inst;m=E(),W.destroy=m}u=u.next}while(u!==v)}}catch(ee){pn(a,a.return,ee)}}function Ba(o,a,u){try{var m=a.updateQueue,v=m!==null?m.lastEffect:null;if(v!==null){var E=v.next;m=E;do{if((m.tag&o)===o){var W=m.inst,ee=W.destroy;if(ee!==void 0){W.destroy=void 0,v=a;var ce=u,Ce=ee;try{Ce()}catch(He){pn(v,ce,He)}}}m=m.next}while(m!==E)}}catch(He){pn(a,a.return,He)}}function A$(o){var a=o.updateQueue;if(a!==null){var u=o.stateNode;try{wC(a,u)}catch(m){pn(o,o.return,m)}}}function D$(o,a,u){u.props=Oi(o.type,o.memoizedProps),u.state=o.memoizedState;try{u.componentWillUnmount()}catch(m){pn(o,a,m)}}function gc(o,a){try{var u=o.ref;if(u!==null){switch(o.tag){case 26:case 27:case 5:var m=o.stateNode;break;case 30:m=o.stateNode;break;default:m=o.stateNode}typeof u=="function"?o.refCleanup=u(m):u.current=m}}catch(v){pn(o,a,v)}}function Fo(o,a){var u=o.ref,m=o.refCleanup;if(u!==null)if(typeof m=="function")try{m()}catch(v){pn(o,a,v)}finally{o.refCleanup=null,o=o.alternate,o!=null&&(o.refCleanup=null)}else if(typeof u=="function")try{u(null)}catch(v){pn(o,a,v)}else u.current=null}function j$(o){var a=o.type,u=o.memoizedProps,m=o.stateNode;try{e:switch(a){case"button":case"input":case"select":case"textarea":u.autoFocus&&m.focus();break e;case"img":u.src?m.src=u.src:u.srcSet&&(m.srcset=u.srcSet)}}catch(v){pn(o,o.return,v)}}function gh(o,a,u){try{var m=o.stateNode;ZI(m,o.type,u,a),m[dn]=a}catch(v){pn(o,o.return,v)}}function _$(o){return o.tag===5||o.tag===3||o.tag===26||o.tag===27&&Ya(o.type)||o.tag===4}function hh(o){e:for(;;){for(;o.sibling===null;){if(o.return===null||_$(o.return))return null;o=o.return}for(o.sibling.return=o.return,o=o.sibling;o.tag!==5&&o.tag!==6&&o.tag!==18;){if(o.tag===27&&Ya(o.type)||o.flags&2||o.child===null||o.tag===4)continue e;o.child.return=o,o=o.child}if(!(o.flags&2))return o.stateNode}}function yh(o,a,u){var m=o.tag;if(m===5||m===6)o=o.stateNode,a?(u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u).insertBefore(o,a):(a=u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u,a.appendChild(o),u=u._reactRootContainer,u!=null||a.onclick!==null||(a.onclick=Mo));else if(m!==4&&(m===27&&Ya(o.type)&&(u=o.stateNode,a=null),o=o.child,o!==null))for(yh(o,a,u),o=o.sibling;o!==null;)yh(o,a,u),o=o.sibling}function lf(o,a,u){var m=o.tag;if(m===5||m===6)o=o.stateNode,a?u.insertBefore(o,a):u.appendChild(o);else if(m!==4&&(m===27&&Ya(o.type)&&(u=o.stateNode),o=o.child,o!==null))for(lf(o,a,u),o=o.sibling;o!==null;)lf(o,a,u),o=o.sibling}function H$(o){var a=o.stateNode,u=o.memoizedProps;try{for(var m=o.type,v=a.attributes;v.length;)a.removeAttributeNode(v[0]);vr(a,m,u),a[wt]=o,a[dn]=u}catch(E){pn(o,o.return,E)}}var da=!1,Yn=!1,bh=!1,B$=typeof WeakSet=="function"?WeakSet:Set,sr=null;function II(o,a){if(o=o.containerInfo,Bh=Tf,o=Q1(o),dg(o)){if("selectionStart"in o)var u={start:o.selectionStart,end:o.selectionEnd};else e:{u=(u=o.ownerDocument)&&u.defaultView||window;var m=u.getSelection&&u.getSelection();if(m&&m.rangeCount!==0){u=m.anchorNode;var v=m.anchorOffset,E=m.focusNode;m=m.focusOffset;try{u.nodeType,E.nodeType}catch{u=null;break e}var W=0,ee=-1,ce=-1,Ce=0,He=0,Fe=o,Ee=null;t:for(;;){for(var Te;Fe!==u||v!==0&&Fe.nodeType!==3||(ee=W+v),Fe!==E||m!==0&&Fe.nodeType!==3||(ce=W+m),Fe.nodeType===3&&(W+=Fe.nodeValue.length),(Te=Fe.firstChild)!==null;)Ee=Fe,Fe=Te;for(;;){if(Fe===o)break t;if(Ee===u&&++Ce===v&&(ee=W),Ee===E&&++He===m&&(ce=W),(Te=Fe.nextSibling)!==null)break;Fe=Ee,Ee=Fe.parentNode}Fe=Te}u=ee===-1||ce===-1?null:{start:ee,end:ce}}else u=null}u=u||{start:0,end:0}}else u=null;for(Lh={focusedElem:o,selectionRange:u},Tf=!1,sr=a;sr!==null;)if(a=sr,o=a.child,(a.subtreeFlags&1028)!==0&&o!==null)o.return=a,sr=o;else for(;sr!==null;){switch(a=sr,E=a.alternate,o=a.flags,a.tag){case 0:if((o&4)!==0&&(o=a.updateQueue,o=o!==null?o.events:null,o!==null))for(u=0;u<o.length;u++)v=o[u],v.ref.impl=v.nextImpl;break;case 11:case 15:break;case 1:if((o&1024)!==0&&E!==null){o=void 0,u=a,v=E.memoizedProps,E=E.memoizedState,m=u.stateNode;try{var st=Oi(u.type,v);o=m.getSnapshotBeforeUpdate(st,E),m.__reactInternalSnapshotBeforeUpdate=o}catch(vt){pn(u,u.return,vt)}}break;case 3:if((o&1024)!==0){if(o=a.stateNode.containerInfo,u=o.nodeType,u===9)kh(o);else if(u===1)switch(o.nodeName){case"HEAD":case"HTML":case"BODY":kh(o);break;default:o.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((o&1024)!==0)throw Error(r(163))}if(o=a.sibling,o!==null){o.return=a.return,sr=o;break}sr=a.return}}function L$(o,a,u){var m=u.flags;switch(u.tag){case 0:case 11:case 15:ma(o,u),m&4&&pc(5,u);break;case 1:if(ma(o,u),m&4)if(o=u.stateNode,a===null)try{o.componentDidMount()}catch(W){pn(u,u.return,W)}else{var v=Oi(u.type,a.memoizedProps);a=a.memoizedState;try{o.componentDidUpdate(v,a,o.__reactInternalSnapshotBeforeUpdate)}catch(W){pn(u,u.return,W)}}m&64&&A$(u),m&512&&gc(u,u.return);break;case 3:if(ma(o,u),m&64&&(o=u.updateQueue,o!==null)){if(a=null,u.child!==null)switch(u.child.tag){case 27:case 5:a=u.child.stateNode;break;case 1:a=u.child.stateNode}try{wC(o,a)}catch(W){pn(u,u.return,W)}}break;case 27:a===null&&m&4&&H$(u);case 26:case 5:ma(o,u),a===null&&m&4&&j$(u),m&512&&gc(u,u.return);break;case 12:ma(o,u);break;case 31:ma(o,u),m&4&&k$(o,u);break;case 13:ma(o,u),m&4&&W$(o,u),m&64&&(o=u.memoizedState,o!==null&&(o=o.dehydrated,o!==null&&(u=LI.bind(null,u),iP(o,u))));break;case 22:if(m=u.memoizedState!==null||da,!m){a=a!==null&&a.memoizedState!==null||Yn,v=da;var E=Yn;da=m,(Yn=a)&&!E?pa(o,u,(u.subtreeFlags&8772)!==0):ma(o,u),da=v,Yn=E}break;case 30:break;default:ma(o,u)}}function V$(o){var a=o.alternate;a!==null&&(o.alternate=null,V$(a)),o.child=null,o.deletions=null,o.sibling=null,o.tag===5&&(a=o.stateNode,a!==null&&ln(a)),o.stateNode=null,o.return=null,o.dependencies=null,o.memoizedProps=null,o.memoizedState=null,o.pendingProps=null,o.stateNode=null,o.updateQueue=null}var On=null,jr=!1;function fa(o,a,u){for(u=u.child;u!==null;)F$(o,a,u),u=u.sibling}function F$(o,a,u){if(Ne&&typeof Ne.onCommitFiberUnmount=="function")try{Ne.onCommitFiberUnmount(Ue,u)}catch{}switch(u.tag){case 26:Yn||Fo(u,a),fa(o,a,u),u.memoizedState?u.memoizedState.count--:u.stateNode&&(u=u.stateNode,u.parentNode.removeChild(u));break;case 27:Yn||Fo(u,a);var m=On,v=jr;Ya(u.type)&&(On=u.stateNode,jr=!1),fa(o,a,u),wc(u.stateNode),On=m,jr=v;break;case 5:Yn||Fo(u,a);case 6:if(m=On,v=jr,On=null,fa(o,a,u),On=m,jr=v,On!==null)if(jr)try{(On.nodeType===9?On.body:On.nodeName==="HTML"?On.ownerDocument.body:On).removeChild(u.stateNode)}catch(E){pn(u,a,E)}else try{On.removeChild(u.stateNode)}catch(E){pn(u,a,E)}break;case 18:On!==null&&(jr?(o=On,Ax(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,u.stateNode),Ul(o)):Ax(On,u.stateNode));break;case 4:m=On,v=jr,On=u.stateNode.containerInfo,jr=!0,fa(o,a,u),On=m,jr=v;break;case 0:case 11:case 14:case 15:Ba(2,u,a),Yn||Ba(4,u,a),fa(o,a,u);break;case 1:Yn||(Fo(u,a),m=u.stateNode,typeof m.componentWillUnmount=="function"&&D$(u,a,m)),fa(o,a,u);break;case 21:fa(o,a,u);break;case 22:Yn=(m=Yn)||u.memoizedState!==null,fa(o,a,u),Yn=m;break;default:fa(o,a,u)}}function k$(o,a){if(a.memoizedState===null&&(o=a.alternate,o!==null&&(o=o.memoizedState,o!==null))){o=o.dehydrated;try{Ul(o)}catch(u){pn(a,a.return,u)}}}function W$(o,a){if(a.memoizedState===null&&(o=a.alternate,o!==null&&(o=o.memoizedState,o!==null&&(o=o.dehydrated,o!==null))))try{Ul(o)}catch(u){pn(a,a.return,u)}}function PI(o){switch(o.tag){case 31:case 13:case 19:var a=o.stateNode;return a===null&&(a=o.stateNode=new B$),a;case 22:return o=o.stateNode,a=o._retryCache,a===null&&(a=o._retryCache=new B$),a;default:throw Error(r(435,o.tag))}}function sf(o,a){var u=PI(o);a.forEach(function(m){if(!u.has(m)){u.add(m);var v=VI.bind(null,o,m);m.then(v,v)}})}function _r(o,a){var u=a.deletions;if(u!==null)for(var m=0;m<u.length;m++){var v=u[m],E=o,W=a,ee=W;e:for(;ee!==null;){switch(ee.tag){case 27:if(Ya(ee.type)){On=ee.stateNode,jr=!1;break e}break;case 5:On=ee.stateNode,jr=!1;break e;case 3:case 4:On=ee.stateNode.containerInfo,jr=!0;break e}ee=ee.return}if(On===null)throw Error(r(160));F$(E,W,v),On=null,jr=!1,E=v.alternate,E!==null&&(E.return=null),v.return=null}if(a.subtreeFlags&13886)for(a=a.child;a!==null;)q$(a,o),a=a.sibling}var To=null;function q$(o,a){var u=o.alternate,m=o.flags;switch(o.tag){case 0:case 11:case 14:case 15:_r(a,o),Hr(o),m&4&&(Ba(3,o,o.return),pc(3,o),Ba(5,o,o.return));break;case 1:_r(a,o),Hr(o),m&512&&(Yn||u===null||Fo(u,u.return)),m&64&&da&&(o=o.updateQueue,o!==null&&(m=o.callbacks,m!==null&&(u=o.shared.hiddenCallbacks,o.shared.hiddenCallbacks=u===null?m:u.concat(m))));break;case 26:var v=To;if(_r(a,o),Hr(o),m&512&&(Yn||u===null||Fo(u,u.return)),m&4){var E=u!==null?u.memoizedState:null;if(m=o.memoizedState,u===null)if(m===null)if(o.stateNode===null){e:{m=o.type,u=o.memoizedProps,v=v.ownerDocument||v;t:switch(m){case"title":E=v.getElementsByTagName("title")[0],(!E||E[Ut]||E[wt]||E.namespaceURI==="http://www.w3.org/2000/svg"||E.hasAttribute("itemprop"))&&(E=v.createElement(m),v.head.insertBefore(E,v.querySelector("head > title"))),vr(E,m,u),E[wt]=o,fn(E),m=E;break e;case"link":var W=qx("link","href",v).get(m+(u.href||""));if(W){for(var ee=0;ee<W.length;ee++)if(E=W[ee],E.getAttribute("href")===(u.href==null||u.href===""?null:u.href)&&E.getAttribute("rel")===(u.rel==null?null:u.rel)&&E.getAttribute("title")===(u.title==null?null:u.title)&&E.getAttribute("crossorigin")===(u.crossOrigin==null?null:u.crossOrigin)){W.splice(ee,1);break t}}E=v.createElement(m),vr(E,m,u),v.head.appendChild(E);break;case"meta":if(W=qx("meta","content",v).get(m+(u.content||""))){for(ee=0;ee<W.length;ee++)if(E=W[ee],E.getAttribute("content")===(u.content==null?null:""+u.content)&&E.getAttribute("name")===(u.name==null?null:u.name)&&E.getAttribute("property")===(u.property==null?null:u.property)&&E.getAttribute("http-equiv")===(u.httpEquiv==null?null:u.httpEquiv)&&E.getAttribute("charset")===(u.charSet==null?null:u.charSet)){W.splice(ee,1);break t}}E=v.createElement(m),vr(E,m,u),v.head.appendChild(E);break;default:throw Error(r(468,m))}E[wt]=o,fn(E),m=E}o.stateNode=m}else Yx(v,o.type,o.stateNode);else o.stateNode=Wx(v,m,o.memoizedProps);else E!==m?(E===null?u.stateNode!==null&&(u=u.stateNode,u.parentNode.removeChild(u)):E.count--,m===null?Yx(v,o.type,o.stateNode):Wx(v,m,o.memoizedProps)):m===null&&o.stateNode!==null&&gh(o,o.memoizedProps,u.memoizedProps)}break;case 27:_r(a,o),Hr(o),m&512&&(Yn||u===null||Fo(u,u.return)),u!==null&&m&4&&gh(o,o.memoizedProps,u.memoizedProps);break;case 5:if(_r(a,o),Hr(o),m&512&&(Yn||u===null||Fo(u,u.return)),o.flags&32){v=o.stateNode;try{Bo(v,"")}catch(st){pn(o,o.return,st)}}m&4&&o.stateNode!=null&&(v=o.memoizedProps,gh(o,v,u!==null?u.memoizedProps:v)),m&1024&&(bh=!0);break;case 6:if(_r(a,o),Hr(o),m&4){if(o.stateNode===null)throw Error(r(162));m=o.memoizedProps,u=o.stateNode;try{u.nodeValue=m}catch(st){pn(o,o.return,st)}}break;case 3:if(wf=null,v=To,To=$f(a.containerInfo),_r(a,o),To=v,Hr(o),m&4&&u!==null&&u.memoizedState.isDehydrated)try{Ul(a.containerInfo)}catch(st){pn(o,o.return,st)}bh&&(bh=!1,Y$(o));break;case 4:m=To,To=$f(o.stateNode.containerInfo),_r(a,o),Hr(o),To=m;break;case 12:_r(a,o),Hr(o);break;case 31:_r(a,o),Hr(o),m&4&&(m=o.updateQueue,m!==null&&(o.updateQueue=null,sf(o,m)));break;case 13:_r(a,o),Hr(o),o.child.flags&8192&&o.memoizedState!==null!=(u!==null&&u.memoizedState!==null)&&(uf=be()),m&4&&(m=o.updateQueue,m!==null&&(o.updateQueue=null,sf(o,m)));break;case 22:v=o.memoizedState!==null;var ce=u!==null&&u.memoizedState!==null,Ce=da,He=Yn;if(da=Ce||v,Yn=He||ce,_r(a,o),Yn=He,da=Ce,Hr(o),m&8192)e:for(a=o.stateNode,a._visibility=v?a._visibility&-2:a._visibility|1,v&&(u===null||ce||da||Yn||Ni(o)),u=null,a=o;;){if(a.tag===5||a.tag===26){if(u===null){ce=u=a;try{if(E=ce.stateNode,v)W=E.style,typeof W.setProperty=="function"?W.setProperty("display","none","important"):W.display="none";else{ee=ce.stateNode;var Fe=ce.memoizedProps.style,Ee=Fe!=null&&Fe.hasOwnProperty("display")?Fe.display:null;ee.style.display=Ee==null||typeof Ee=="boolean"?"":(""+Ee).trim()}}catch(st){pn(ce,ce.return,st)}}}else if(a.tag===6){if(u===null){ce=a;try{ce.stateNode.nodeValue=v?"":ce.memoizedProps}catch(st){pn(ce,ce.return,st)}}}else if(a.tag===18){if(u===null){ce=a;try{var Te=ce.stateNode;v?Dx(Te,!0):Dx(ce.stateNode,!1)}catch(st){pn(ce,ce.return,st)}}}else if((a.tag!==22&&a.tag!==23||a.memoizedState===null||a===o)&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===o)break e;for(;a.sibling===null;){if(a.return===null||a.return===o)break e;u===a&&(u=null),a=a.return}u===a&&(u=null),a.sibling.return=a.return,a=a.sibling}m&4&&(m=o.updateQueue,m!==null&&(u=m.retryQueue,u!==null&&(m.retryQueue=null,sf(o,u))));break;case 19:_r(a,o),Hr(o),m&4&&(m=o.updateQueue,m!==null&&(o.updateQueue=null,sf(o,m)));break;case 30:break;case 21:break;default:_r(a,o),Hr(o)}}function Hr(o){var a=o.flags;if(a&2){try{for(var u,m=o.return;m!==null;){if(_$(m)){u=m;break}m=m.return}if(u==null)throw Error(r(160));switch(u.tag){case 27:var v=u.stateNode,E=hh(o);lf(o,E,v);break;case 5:var W=u.stateNode;u.flags&32&&(Bo(W,""),u.flags&=-33);var ee=hh(o);lf(o,ee,W);break;case 3:case 4:var ce=u.stateNode.containerInfo,Ce=hh(o);yh(o,Ce,ce);break;default:throw Error(r(161))}}catch(He){pn(o,o.return,He)}o.flags&=-3}a&4096&&(o.flags&=-4097)}function Y$(o){if(o.subtreeFlags&1024)for(o=o.child;o!==null;){var a=o;Y$(a),a.tag===5&&a.flags&1024&&a.stateNode.reset(),o=o.sibling}}function ma(o,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)L$(o,a.alternate,a),a=a.sibling}function Ni(o){for(o=o.child;o!==null;){var a=o;switch(a.tag){case 0:case 11:case 14:case 15:Ba(4,a,a.return),Ni(a);break;case 1:Fo(a,a.return);var u=a.stateNode;typeof u.componentWillUnmount=="function"&&D$(a,a.return,u),Ni(a);break;case 27:wc(a.stateNode);case 26:case 5:Fo(a,a.return),Ni(a);break;case 22:a.memoizedState===null&&Ni(a);break;case 30:Ni(a);break;default:Ni(a)}o=o.sibling}}function pa(o,a,u){for(u=u&&(a.subtreeFlags&8772)!==0,a=a.child;a!==null;){var m=a.alternate,v=o,E=a,W=E.flags;switch(E.tag){case 0:case 11:case 15:pa(v,E,u),pc(4,E);break;case 1:if(pa(v,E,u),m=E,v=m.stateNode,typeof v.componentDidMount=="function")try{v.componentDidMount()}catch(Ce){pn(m,m.return,Ce)}if(m=E,v=m.updateQueue,v!==null){var ee=m.stateNode;try{var ce=v.shared.hiddenCallbacks;if(ce!==null)for(v.shared.hiddenCallbacks=null,v=0;v<ce.length;v++)xC(ce[v],ee)}catch(Ce){pn(m,m.return,Ce)}}u&&W&64&&A$(E),gc(E,E.return);break;case 27:H$(E);case 26:case 5:pa(v,E,u),u&&m===null&&W&4&&j$(E),gc(E,E.return);break;case 12:pa(v,E,u);break;case 31:pa(v,E,u),u&&W&4&&k$(v,E);break;case 13:pa(v,E,u),u&&W&4&&W$(v,E);break;case 22:E.memoizedState===null&&pa(v,E,u),gc(E,E.return);break;case 30:break;default:pa(v,E,u)}a=a.sibling}}function vh(o,a){var u=null;o!==null&&o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(u=o.memoizedState.cachePool.pool),o=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(o=a.memoizedState.cachePool.pool),o!==u&&(o!=null&&o.refCount++,u!=null&&tc(u))}function Sh(o,a){o=null,a.alternate!==null&&(o=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==o&&(a.refCount++,o!=null&&tc(o))}function Oo(o,a,u,m){if(a.subtreeFlags&10256)for(a=a.child;a!==null;)U$(o,a,u,m),a=a.sibling}function U$(o,a,u,m){var v=a.flags;switch(a.tag){case 0:case 11:case 15:Oo(o,a,u,m),v&2048&&pc(9,a);break;case 1:Oo(o,a,u,m);break;case 3:Oo(o,a,u,m),v&2048&&(o=null,a.alternate!==null&&(o=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==o&&(a.refCount++,o!=null&&tc(o)));break;case 12:if(v&2048){Oo(o,a,u,m),o=a.stateNode;try{var E=a.memoizedProps,W=E.id,ee=E.onPostCommit;typeof ee=="function"&&ee(W,a.alternate===null?"mount":"update",o.passiveEffectDuration,-0)}catch(ce){pn(a,a.return,ce)}}else Oo(o,a,u,m);break;case 31:Oo(o,a,u,m);break;case 13:Oo(o,a,u,m);break;case 23:break;case 22:E=a.stateNode,W=a.alternate,a.memoizedState!==null?E._visibility&2?Oo(o,a,u,m):hc(o,a):E._visibility&2?Oo(o,a,u,m):(E._visibility|=2,jl(o,a,u,m,(a.subtreeFlags&10256)!==0||!1)),v&2048&&vh(W,a);break;case 24:Oo(o,a,u,m),v&2048&&Sh(a.alternate,a);break;default:Oo(o,a,u,m)}}function jl(o,a,u,m,v){for(v=v&&((a.subtreeFlags&10256)!==0||!1),a=a.child;a!==null;){var E=o,W=a,ee=u,ce=m,Ce=W.flags;switch(W.tag){case 0:case 11:case 15:jl(E,W,ee,ce,v),pc(8,W);break;case 23:break;case 22:var He=W.stateNode;W.memoizedState!==null?He._visibility&2?jl(E,W,ee,ce,v):hc(E,W):(He._visibility|=2,jl(E,W,ee,ce,v)),v&&Ce&2048&&vh(W.alternate,W);break;case 24:jl(E,W,ee,ce,v),v&&Ce&2048&&Sh(W.alternate,W);break;default:jl(E,W,ee,ce,v)}a=a.sibling}}function hc(o,a){if(a.subtreeFlags&10256)for(a=a.child;a!==null;){var u=o,m=a,v=m.flags;switch(m.tag){case 22:hc(u,m),v&2048&&vh(m.alternate,m);break;case 24:hc(u,m),v&2048&&Sh(m.alternate,m);break;default:hc(u,m)}a=a.sibling}}var yc=8192;function _l(o,a,u){if(o.subtreeFlags&yc)for(o=o.child;o!==null;)G$(o,a,u),o=o.sibling}function G$(o,a,u){switch(o.tag){case 26:_l(o,a,u),o.flags&yc&&o.memoizedState!==null&&bP(u,To,o.memoizedState,o.memoizedProps);break;case 5:_l(o,a,u);break;case 3:case 4:var m=To;To=$f(o.stateNode.containerInfo),_l(o,a,u),To=m;break;case 22:o.memoizedState===null&&(m=o.alternate,m!==null&&m.memoizedState!==null?(m=yc,yc=16777216,_l(o,a,u),yc=m):_l(o,a,u));break;default:_l(o,a,u)}}function X$(o){var a=o.alternate;if(a!==null&&(o=a.child,o!==null)){a.child=null;do a=o.sibling,o.sibling=null,o=a;while(o!==null)}}function bc(o){var a=o.deletions;if((o.flags&16)!==0){if(a!==null)for(var u=0;u<a.length;u++){var m=a[u];sr=m,Q$(m,o)}X$(o)}if(o.subtreeFlags&10256)for(o=o.child;o!==null;)K$(o),o=o.sibling}function K$(o){switch(o.tag){case 0:case 11:case 15:bc(o),o.flags&2048&&Ba(9,o,o.return);break;case 3:bc(o);break;case 12:bc(o);break;case 22:var a=o.stateNode;o.memoizedState!==null&&a._visibility&2&&(o.return===null||o.return.tag!==13)?(a._visibility&=-3,cf(o)):bc(o);break;default:bc(o)}}function cf(o){var a=o.deletions;if((o.flags&16)!==0){if(a!==null)for(var u=0;u<a.length;u++){var m=a[u];sr=m,Q$(m,o)}X$(o)}for(o=o.child;o!==null;){switch(a=o,a.tag){case 0:case 11:case 15:Ba(8,a,a.return),cf(a);break;case 22:u=a.stateNode,u._visibility&2&&(u._visibility&=-3,cf(a));break;default:cf(a)}o=o.sibling}}function Q$(o,a){for(;sr!==null;){var u=sr;switch(u.tag){case 0:case 11:case 15:Ba(8,u,a);break;case 23:case 22:if(u.memoizedState!==null&&u.memoizedState.cachePool!==null){var m=u.memoizedState.cachePool.pool;m!=null&&m.refCount++}break;case 24:tc(u.memoizedState.cache)}if(m=u.child,m!==null)m.return=u,sr=m;else e:for(u=o;sr!==null;){m=sr;var v=m.sibling,E=m.return;if(V$(m),m===u){sr=null;break e}if(v!==null){v.return=E,sr=v;break e}sr=E}}}var zI={getCacheForType:function(o){var a=yr(kn),u=a.data.get(o);return u===void 0&&(u=o(),a.data.set(o,u)),u},cacheSignal:function(){return yr(kn).controller.signal}},AI=typeof WeakMap=="function"?WeakMap:Map,on=0,Sn=null,Wt=null,Gt=0,mn=0,Qr=null,La=!1,Hl=!1,Ch=!1,ga=0,Dn=0,Va=0,Ii=0,$h=0,Zr=0,Bl=0,vc=null,Br=null,xh=!1,uf=0,Z$=0,df=1/0,ff=null,Fa=null,er=0,ka=null,Ll=null,ha=0,wh=0,Eh=null,J$=null,Sc=0,Mh=null;function Jr(){return(on&2)!==0&&Gt!==0?Gt&-Gt:_.T!==null?Ph():ft()}function ex(){if(Zr===0)if((Gt&536870912)===0||Qt){var o=Ke;Ke<<=1,(Ke&3932160)===0&&(Ke=262144),Zr=o}else Zr=536870912;return o=Xr.current,o!==null&&(o.flags|=32),Zr}function Lr(o,a,u){(o===Sn&&(mn===2||mn===9)||o.cancelPendingCommit!==null)&&(Vl(o,0),Wa(o,Gt,Zr,!1)),je(o,u),((on&2)===0||o!==Sn)&&(o===Sn&&((on&2)===0&&(Ii|=u),Dn===4&&Wa(o,Gt,Zr,!1)),ko(o))}function tx(o,a,u){if((on&6)!==0)throw Error(r(327));var m=!u&&(a&127)===0&&(a&o.expiredLanes)===0||St(o,a),v=m?_I(o,a):Th(o,a,!0),E=m;do{if(v===0){Hl&&!m&&Wa(o,a,0,!1);break}else{if(u=o.current.alternate,E&&!DI(u)){v=Th(o,a,!1),E=!1;continue}if(v===2){if(E=a,o.errorRecoveryDisabledLanes&E)var W=0;else W=o.pendingLanes&-536870913,W=W!==0?W:W&536870912?536870912:0;if(W!==0){a=W;e:{var ee=o;v=vc;var ce=ee.current.memoizedState.isDehydrated;if(ce&&(Vl(ee,W).flags|=256),W=Th(ee,W,!1),W!==2){if(Ch&&!ce){ee.errorRecoveryDisabledLanes|=E,Ii|=E,v=4;break e}E=Br,Br=v,E!==null&&(Br===null?Br=E:Br.push.apply(Br,E))}v=W}if(E=!1,v!==2)continue}}if(v===1){Vl(o,0),Wa(o,a,0,!0);break}e:{switch(m=o,E=v,E){case 0:case 1:throw Error(r(345));case 4:if((a&4194048)!==a)break;case 6:Wa(m,a,Zr,!La);break e;case 2:Br=null;break;case 3:case 5:break;default:throw Error(r(329))}if((a&62914560)===a&&(v=uf+300-be(),10<v)){if(Wa(m,a,Zr,!La),lt(m,0,!0)!==0)break e;ha=a,m.timeoutHandle=Px(nx.bind(null,m,u,Br,ff,xh,a,Zr,Ii,Bl,La,E,"Throttled",-0,0),v);break e}nx(m,u,Br,ff,xh,a,Zr,Ii,Bl,La,E,null,-0,0)}}break}while(!0);ko(o)}function nx(o,a,u,m,v,E,W,ee,ce,Ce,He,Fe,Ee,Te){if(o.timeoutHandle=-1,Fe=a.subtreeFlags,Fe&8192||(Fe&16785408)===16785408){Fe={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Mo},G$(a,E,Fe);var st=(E&62914560)===E?uf-be():(E&4194048)===E?Z$-be():0;if(st=vP(Fe,st),st!==null){ha=E,o.cancelPendingCommit=st(ux.bind(null,o,a,E,u,m,v,W,ee,ce,He,Fe,null,Ee,Te)),Wa(o,E,W,!Ce);return}}ux(o,a,E,u,m,v,W,ee,ce)}function DI(o){for(var a=o;;){var u=a.tag;if((u===0||u===11||u===15)&&a.flags&16384&&(u=a.updateQueue,u!==null&&(u=u.stores,u!==null)))for(var m=0;m<u.length;m++){var v=u[m],E=v.getSnapshot;v=v.value;try{if(!Ur(E(),v))return!1}catch{return!1}}if(u=a.child,a.subtreeFlags&16384&&u!==null)u.return=a,a=u;else{if(a===o)break;for(;a.sibling===null;){if(a.return===null||a.return===o)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function Wa(o,a,u,m){a&=~$h,a&=~Ii,o.suspendedLanes|=a,o.pingedLanes&=~a,m&&(o.warmLanes|=a),m=o.expirationTimes;for(var v=a;0<v;){var E=31-Be(v),W=1<<E;m[E]=-1,v&=~W}u!==0&&ke(o,u,a)}function mf(){return(on&6)===0?(Cc(0),!1):!0}function Rh(){if(Wt!==null){if(mn===0)var o=Wt.return;else o=Wt,aa=$i=null,kg(o),Il=null,rc=0,o=Wt;for(;o!==null;)z$(o.alternate,o),o=o.return;Wt=null}}function Vl(o,a){var u=o.timeoutHandle;u!==-1&&(o.timeoutHandle=-1,tP(u)),u=o.cancelPendingCommit,u!==null&&(o.cancelPendingCommit=null,u()),ha=0,Rh(),Sn=o,Wt=u=ra(o.current,null),Gt=a,mn=0,Qr=null,La=!1,Hl=St(o,a),Ch=!1,Bl=Zr=$h=Ii=Va=Dn=0,Br=vc=null,xh=!1,(a&8)!==0&&(a|=a&32);var m=o.entangledLanes;if(m!==0)for(o=o.entanglements,m&=a;0<m;){var v=31-Be(m),E=1<<v;a|=o[v],m&=~E}return ga=a,zd(),u}function rx(o,a){At=null,_.H=dc,a===Nl||a===Vd?(a=vC(),mn=3):a===Ig?(a=vC(),mn=4):mn=a===ah?8:a!==null&&typeof a=="object"&&typeof a.then=="function"?6:1,Qr=a,Wt===null&&(Dn=1,tf(o,so(a,o.current)))}function ox(){var o=Xr.current;return o===null?!0:(Gt&4194048)===Gt?mo===null:(Gt&62914560)===Gt||(Gt&536870912)!==0?o===mo:!1}function ax(){var o=_.H;return _.H=dc,o===null?dc:o}function ix(){var o=_.A;return _.A=zI,o}function pf(){Dn=4,La||(Gt&4194048)!==Gt&&Xr.current!==null||(Hl=!0),(Va&134217727)===0&&(Ii&134217727)===0||Sn===null||Wa(Sn,Gt,Zr,!1)}function Th(o,a,u){var m=on;on|=2;var v=ax(),E=ix();(Sn!==o||Gt!==a)&&(ff=null,Vl(o,a)),a=!1;var W=Dn;e:do try{if(mn!==0&&Wt!==null){var ee=Wt,ce=Qr;switch(mn){case 8:Rh(),W=6;break e;case 3:case 2:case 9:case 6:Xr.current===null&&(a=!0);var Ce=mn;if(mn=0,Qr=null,Fl(o,ee,ce,Ce),u&&Hl){W=0;break e}break;default:Ce=mn,mn=0,Qr=null,Fl(o,ee,ce,Ce)}}jI(),W=Dn;break}catch(He){rx(o,He)}while(!0);return a&&o.shellSuspendCounter++,aa=$i=null,on=m,_.H=v,_.A=E,Wt===null&&(Sn=null,Gt=0,zd()),W}function jI(){for(;Wt!==null;)lx(Wt)}function _I(o,a){var u=on;on|=2;var m=ax(),v=ix();Sn!==o||Gt!==a?(ff=null,df=be()+500,Vl(o,a)):Hl=St(o,a);e:do try{if(mn!==0&&Wt!==null){a=Wt;var E=Qr;t:switch(mn){case 1:mn=0,Qr=null,Fl(o,a,E,1);break;case 2:case 9:if(yC(E)){mn=0,Qr=null,sx(a);break}a=function(){mn!==2&&mn!==9||Sn!==o||(mn=7),ko(o)},E.then(a,a);break e;case 3:mn=7;break e;case 4:mn=5;break e;case 7:yC(E)?(mn=0,Qr=null,sx(a)):(mn=0,Qr=null,Fl(o,a,E,7));break;case 5:var W=null;switch(Wt.tag){case 26:W=Wt.memoizedState;case 5:case 27:var ee=Wt;if(W?Ux(W):ee.stateNode.complete){mn=0,Qr=null;var ce=ee.sibling;if(ce!==null)Wt=ce;else{var Ce=ee.return;Ce!==null?(Wt=Ce,gf(Ce)):Wt=null}break t}}mn=0,Qr=null,Fl(o,a,E,5);break;case 6:mn=0,Qr=null,Fl(o,a,E,6);break;case 8:Rh(),Dn=6;break e;default:throw Error(r(462))}}HI();break}catch(He){rx(o,He)}while(!0);return aa=$i=null,_.H=m,_.A=v,on=u,Wt!==null?0:(Sn=null,Gt=0,zd(),Dn)}function HI(){for(;Wt!==null&&!$e();)lx(Wt)}function lx(o){var a=I$(o.alternate,o,ga);o.memoizedProps=o.pendingProps,a===null?gf(o):Wt=a}function sx(o){var a=o,u=a.alternate;switch(a.tag){case 15:case 0:a=E$(u,a,a.pendingProps,a.type,void 0,Gt);break;case 11:a=E$(u,a,a.pendingProps,a.type.render,a.ref,Gt);break;case 5:kg(a);default:z$(u,a),a=Wt=iC(a,ga),a=I$(u,a,ga)}o.memoizedProps=o.pendingProps,a===null?gf(o):Wt=a}function Fl(o,a,u,m){aa=$i=null,kg(a),Il=null,rc=0;var v=a.return;try{if(MI(o,v,a,u,Gt)){Dn=1,tf(o,so(u,o.current)),Wt=null;return}}catch(E){if(v!==null)throw Wt=v,E;Dn=1,tf(o,so(u,o.current)),Wt=null;return}a.flags&32768?(Qt||m===1?o=!0:Hl||(Gt&536870912)!==0?o=!1:(La=o=!0,(m===2||m===9||m===3||m===6)&&(m=Xr.current,m!==null&&m.tag===13&&(m.flags|=16384))),cx(a,o)):gf(a)}function gf(o){var a=o;do{if((a.flags&32768)!==0){cx(a,La);return}o=a.return;var u=OI(a.alternate,a,ga);if(u!==null){Wt=u;return}if(a=a.sibling,a!==null){Wt=a;return}Wt=a=o}while(a!==null);Dn===0&&(Dn=5)}function cx(o,a){do{var u=NI(o.alternate,o);if(u!==null){u.flags&=32767,Wt=u;return}if(u=o.return,u!==null&&(u.flags|=32768,u.subtreeFlags=0,u.deletions=null),!a&&(o=o.sibling,o!==null)){Wt=o;return}Wt=o=u}while(o!==null);Dn=6,Wt=null}function ux(o,a,u,m,v,E,W,ee,ce){o.cancelPendingCommit=null;do hf();while(er!==0);if((on&6)!==0)throw Error(r(327));if(a!==null){if(a===o.current)throw Error(r(177));if(E=a.lanes|a.childLanes,E|=hg,Pe(o,u,E,W,ee,ce),o===Sn&&(Wt=Sn=null,Gt=0),Ll=a,ka=o,ha=u,wh=E,Eh=v,J$=m,(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?(o.callbackNode=null,o.callbackPriority=0,FI(Ge,function(){return gx(),null})):(o.callbackNode=null,o.callbackPriority=0),m=(a.flags&13878)!==0,(a.subtreeFlags&13878)!==0||m){m=_.T,_.T=null,v=H.p,H.p=2,W=on,on|=4;try{II(o,a,u)}finally{on=W,H.p=v,_.T=m}}er=1,dx(),fx(),mx()}}function dx(){if(er===1){er=0;var o=ka,a=Ll,u=(a.flags&13878)!==0;if((a.subtreeFlags&13878)!==0||u){u=_.T,_.T=null;var m=H.p;H.p=2;var v=on;on|=4;try{q$(a,o);var E=Lh,W=Q1(o.containerInfo),ee=E.focusedElem,ce=E.selectionRange;if(W!==ee&&ee&&ee.ownerDocument&&K1(ee.ownerDocument.documentElement,ee)){if(ce!==null&&dg(ee)){var Ce=ce.start,He=ce.end;if(He===void 0&&(He=Ce),"selectionStart"in ee)ee.selectionStart=Ce,ee.selectionEnd=Math.min(He,ee.value.length);else{var Fe=ee.ownerDocument||document,Ee=Fe&&Fe.defaultView||window;if(Ee.getSelection){var Te=Ee.getSelection(),st=ee.textContent.length,vt=Math.min(ce.start,st),bn=ce.end===void 0?vt:Math.min(ce.end,st);!Te.extend&&vt>bn&&(W=bn,bn=vt,vt=W);var ye=X1(ee,vt),pe=X1(ee,bn);if(ye&&pe&&(Te.rangeCount!==1||Te.anchorNode!==ye.node||Te.anchorOffset!==ye.offset||Te.focusNode!==pe.node||Te.focusOffset!==pe.offset)){var ve=Fe.createRange();ve.setStart(ye.node,ye.offset),Te.removeAllRanges(),vt>bn?(Te.addRange(ve),Te.extend(pe.node,pe.offset)):(ve.setEnd(pe.node,pe.offset),Te.addRange(ve))}}}}for(Fe=[],Te=ee;Te=Te.parentNode;)Te.nodeType===1&&Fe.push({element:Te,left:Te.scrollLeft,top:Te.scrollTop});for(typeof ee.focus=="function"&&ee.focus(),ee=0;ee<Fe.length;ee++){var Ve=Fe[ee];Ve.element.scrollLeft=Ve.left,Ve.element.scrollTop=Ve.top}}Tf=!!Bh,Lh=Bh=null}finally{on=v,H.p=m,_.T=u}}o.current=a,er=2}}function fx(){if(er===2){er=0;var o=ka,a=Ll,u=(a.flags&8772)!==0;if((a.subtreeFlags&8772)!==0||u){u=_.T,_.T=null;var m=H.p;H.p=2;var v=on;on|=4;try{L$(o,a.alternate,a)}finally{on=v,H.p=m,_.T=u}}er=3}}function mx(){if(er===4||er===3){er=0,de();var o=ka,a=Ll,u=ha,m=J$;(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?er=5:(er=0,Ll=ka=null,px(o,o.pendingLanes));var v=o.pendingLanes;if(v===0&&(Fa=null),it(u),a=a.stateNode,Ne&&typeof Ne.onCommitFiberRoot=="function")try{Ne.onCommitFiberRoot(Ue,a,void 0,(a.current.flags&128)===128)}catch{}if(m!==null){a=_.T,v=H.p,H.p=2,_.T=null;try{for(var E=o.onRecoverableError,W=0;W<m.length;W++){var ee=m[W];E(ee.value,{componentStack:ee.stack})}}finally{_.T=a,H.p=v}}(ha&3)!==0&&hf(),ko(o),v=o.pendingLanes,(u&261930)!==0&&(v&42)!==0?o===Mh?Sc++:(Sc=0,Mh=o):Sc=0,Cc(0)}}function px(o,a){(o.pooledCacheLanes&=a)===0&&(a=o.pooledCache,a!=null&&(o.pooledCache=null,tc(a)))}function hf(){return dx(),fx(),mx(),gx()}function gx(){if(er!==5)return!1;var o=ka,a=wh;wh=0;var u=it(ha),m=_.T,v=H.p;try{H.p=32>u?32:u,_.T=null,u=Eh,Eh=null;var E=ka,W=ha;if(er=0,Ll=ka=null,ha=0,(on&6)!==0)throw Error(r(331));var ee=on;if(on|=4,K$(E.current),U$(E,E.current,W,u),on=ee,Cc(0,!1),Ne&&typeof Ne.onPostCommitFiberRoot=="function")try{Ne.onPostCommitFiberRoot(Ue,E)}catch{}return!0}finally{H.p=v,_.T=m,px(o,a)}}function hx(o,a,u){a=so(u,a),a=oh(o.stateNode,a,2),o=ja(o,a,2),o!==null&&(je(o,2),ko(o))}function pn(o,a,u){if(o.tag===3)hx(o,o,u);else for(;a!==null;){if(a.tag===3){hx(a,o,u);break}else if(a.tag===1){var m=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof m.componentDidCatch=="function"&&(Fa===null||!Fa.has(m))){o=so(u,o),u=y$(2),m=ja(a,u,2),m!==null&&(b$(u,m,a,o),je(m,2),ko(m));break}}a=a.return}}function Oh(o,a,u){var m=o.pingCache;if(m===null){m=o.pingCache=new AI;var v=new Set;m.set(a,v)}else v=m.get(a),v===void 0&&(v=new Set,m.set(a,v));v.has(u)||(Ch=!0,v.add(u),o=BI.bind(null,o,a,u),a.then(o,o))}function BI(o,a,u){var m=o.pingCache;m!==null&&m.delete(a),o.pingedLanes|=o.suspendedLanes&u,o.warmLanes&=~u,Sn===o&&(Gt&u)===u&&(Dn===4||Dn===3&&(Gt&62914560)===Gt&&300>be()-uf?(on&2)===0&&Vl(o,0):$h|=u,Bl===Gt&&(Bl=0)),ko(o)}function yx(o,a){a===0&&(a=qe()),o=vi(o,a),o!==null&&(je(o,a),ko(o))}function LI(o){var a=o.memoizedState,u=0;a!==null&&(u=a.retryLane),yx(o,u)}function VI(o,a){var u=0;switch(o.tag){case 31:case 13:var m=o.stateNode,v=o.memoizedState;v!==null&&(u=v.retryLane);break;case 19:m=o.stateNode;break;case 22:m=o.stateNode._retryCache;break;default:throw Error(r(314))}m!==null&&m.delete(a),yx(o,u)}function FI(o,a){return Ae(o,a)}var yf=null,kl=null,Nh=!1,bf=!1,Ih=!1,qa=0;function ko(o){o!==kl&&o.next===null&&(kl===null?yf=kl=o:kl=kl.next=o),bf=!0,Nh||(Nh=!0,WI())}function Cc(o,a){if(!Ih&&bf){Ih=!0;do for(var u=!1,m=yf;m!==null;){if(o!==0){var v=m.pendingLanes;if(v===0)var E=0;else{var W=m.suspendedLanes,ee=m.pingedLanes;E=(1<<31-Be(42|o)+1)-1,E&=v&~(W&~ee),E=E&201326741?E&201326741|1:E?E|2:0}E!==0&&(u=!0,Cx(m,E))}else E=Gt,E=lt(m,m===Sn?E:0,m.cancelPendingCommit!==null||m.timeoutHandle!==-1),(E&3)===0||St(m,E)||(u=!0,Cx(m,E));m=m.next}while(u);Ih=!1}}function kI(){bx()}function bx(){bf=Nh=!1;var o=0;qa!==0&&eP()&&(o=qa);for(var a=be(),u=null,m=yf;m!==null;){var v=m.next,E=vx(m,a);E===0?(m.next=null,u===null?yf=v:u.next=v,v===null&&(kl=u)):(u=m,(o!==0||(E&3)!==0)&&(bf=!0)),m=v}er!==0&&er!==5||Cc(o),qa!==0&&(qa=0)}function vx(o,a){for(var u=o.suspendedLanes,m=o.pingedLanes,v=o.expirationTimes,E=o.pendingLanes&-62914561;0<E;){var W=31-Be(E),ee=1<<W,ce=v[W];ce===-1?((ee&u)===0||(ee&m)!==0)&&(v[W]=Ct(ee,a)):ce<=a&&(o.expiredLanes|=ee),E&=~ee}if(a=Sn,u=Gt,u=lt(o,o===a?u:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),m=o.callbackNode,u===0||o===a&&(mn===2||mn===9)||o.cancelPendingCommit!==null)return m!==null&&m!==null&&we(m),o.callbackNode=null,o.callbackPriority=0;if((u&3)===0||St(o,u)){if(a=u&-u,a===o.callbackPriority)return a;switch(m!==null&&we(m),it(u)){case 2:case 8:u=Le;break;case 32:u=Ge;break;case 268435456:u=ze;break;default:u=Ge}return m=Sx.bind(null,o),u=Ae(u,m),o.callbackPriority=a,o.callbackNode=u,a}return m!==null&&m!==null&&we(m),o.callbackPriority=2,o.callbackNode=null,2}function Sx(o,a){if(er!==0&&er!==5)return o.callbackNode=null,o.callbackPriority=0,null;var u=o.callbackNode;if(hf()&&o.callbackNode!==u)return null;var m=Gt;return m=lt(o,o===Sn?m:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),m===0?null:(tx(o,m,a),vx(o,be()),o.callbackNode!=null&&o.callbackNode===u?Sx.bind(null,o):null)}function Cx(o,a){if(hf())return null;tx(o,a,!0)}function WI(){nP(function(){(on&6)!==0?Ae(Oe,kI):bx()})}function Ph(){if(qa===0){var o=Tl;o===0&&(o=Ie,Ie<<=1,(Ie&261888)===0&&(Ie=256)),qa=o}return qa}function $x(o){return o==null||typeof o=="symbol"||typeof o=="boolean"?null:typeof o=="function"?o:bl(""+o)}function xx(o,a){var u=a.ownerDocument.createElement("input");return u.name=a.name,u.value=a.value,o.id&&u.setAttribute("form",o.id),a.parentNode.insertBefore(u,a),o=new FormData(o),u.parentNode.removeChild(u),o}function qI(o,a,u,m,v){if(a==="submit"&&u&&u.stateNode===v){var E=$x((v[dn]||null).action),W=m.submitter;W&&(a=(a=W[dn]||null)?$x(a.formAction):W.getAttribute("formAction"),a!==null&&(E=a,W=null));var ee=new Od("action","action",null,m,v);o.push({event:ee,listeners:[{instance:null,listener:function(){if(m.defaultPrevented){if(qa!==0){var ce=W?xx(v,W):new FormData(v);Zg(u,{pending:!0,data:ce,method:v.method,action:E},null,ce)}}else typeof E=="function"&&(ee.preventDefault(),ce=W?xx(v,W):new FormData(v),Zg(u,{pending:!0,data:ce,method:v.method,action:E},E,ce))},currentTarget:v}]})}}for(var zh=0;zh<gg.length;zh++){var Ah=gg[zh],YI=Ah.toLowerCase(),UI=Ah[0].toUpperCase()+Ah.slice(1);Ro(YI,"on"+UI)}Ro(eC,"onAnimationEnd"),Ro(tC,"onAnimationIteration"),Ro(nC,"onAnimationStart"),Ro("dblclick","onDoubleClick"),Ro("focusin","onFocus"),Ro("focusout","onBlur"),Ro(cI,"onTransitionRun"),Ro(uI,"onTransitionStart"),Ro(dI,"onTransitionCancel"),Ro(rC,"onTransitionEnd"),Qn("onMouseEnter",["mouseout","mouseover"]),Qn("onMouseLeave",["mouseout","mouseover"]),Qn("onPointerEnter",["pointerout","pointerover"]),Qn("onPointerLeave",["pointerout","pointerover"]),Kn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Kn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Kn("onBeforeInput",["compositionend","keypress","textInput","paste"]),Kn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Kn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Kn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var $c="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),GI=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat($c));function wx(o,a){a=(a&4)!==0;for(var u=0;u<o.length;u++){var m=o[u],v=m.event;m=m.listeners;e:{var E=void 0;if(a)for(var W=m.length-1;0<=W;W--){var ee=m[W],ce=ee.instance,Ce=ee.currentTarget;if(ee=ee.listener,ce!==E&&v.isPropagationStopped())break e;E=ee,v.currentTarget=Ce;try{E(v)}catch(He){Pd(He)}v.currentTarget=null,E=ce}else for(W=0;W<m.length;W++){if(ee=m[W],ce=ee.instance,Ce=ee.currentTarget,ee=ee.listener,ce!==E&&v.isPropagationStopped())break e;E=ee,v.currentTarget=Ce;try{E(v)}catch(He){Pd(He)}v.currentTarget=null,E=ce}}}}function qt(o,a){var u=a[Qe];u===void 0&&(u=a[Qe]=new Set);var m=o+"__bubble";u.has(m)||(Ex(a,o,2,!1),u.add(m))}function Dh(o,a,u){var m=0;a&&(m|=4),Ex(u,o,m,a)}var vf="_reactListening"+Math.random().toString(36).slice(2);function jh(o){if(!o[vf]){o[vf]=!0,Cr.forEach(function(u){u!=="selectionchange"&&(GI.has(u)||Dh(u,!1,o),Dh(u,!0,o))});var a=o.nodeType===9?o:o.ownerDocument;a===null||a[vf]||(a[vf]=!0,Dh("selectionchange",!1,a))}}function Ex(o,a,u,m){switch(ew(a)){case 2:var v=$P;break;case 8:v=xP;break;default:v=Qh}u=v.bind(null,a,u,o),v=void 0,!ng||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(v=!0),m?v!==void 0?o.addEventListener(a,u,{capture:!0,passive:v}):o.addEventListener(a,u,!0):v!==void 0?o.addEventListener(a,u,{passive:v}):o.addEventListener(a,u,!1)}function _h(o,a,u,m,v){var E=m;if((a&1)===0&&(a&2)===0&&m!==null)e:for(;;){if(m===null)return;var W=m.tag;if(W===3||W===4){var ee=m.stateNode.containerInfo;if(ee===v)break;if(W===4)for(W=m.return;W!==null;){var ce=W.tag;if((ce===3||ce===4)&&W.stateNode.containerInfo===v)return;W=W.return}for(;ee!==null;){if(W=kt(ee),W===null)return;if(ce=W.tag,ce===5||ce===6||ce===26||ce===27){m=E=W;continue e}ee=ee.parentNode}}m=m.return}N1(function(){var Ce=E,He=bt(u),Fe=[];e:{var Ee=oC.get(o);if(Ee!==void 0){var Te=Od,st=o;switch(o){case"keypress":if(Rd(u)===0)break e;case"keydown":case"keyup":Te=VN;break;case"focusin":st="focus",Te=ig;break;case"focusout":st="blur",Te=ig;break;case"beforeblur":case"afterblur":Te=ig;break;case"click":if(u.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Te=z1;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Te=ON;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Te=WN;break;case eC:case tC:case nC:Te=PN;break;case rC:Te=YN;break;case"scroll":case"scrollend":Te=RN;break;case"wheel":Te=GN;break;case"copy":case"cut":case"paste":Te=AN;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Te=D1;break;case"toggle":case"beforetoggle":Te=KN}var vt=(a&4)!==0,bn=!vt&&(o==="scroll"||o==="scrollend"),ye=vt?Ee!==null?Ee+"Capture":null:Ee;vt=[];for(var pe=Ce,ve;pe!==null;){var Ve=pe;if(ve=Ve.stateNode,Ve=Ve.tag,Ve!==5&&Ve!==26&&Ve!==27||ve===null||ye===null||(Ve=Ws(pe,ye),Ve!=null&&vt.push(xc(pe,Ve,ve))),bn)break;pe=pe.return}0<vt.length&&(Ee=new Te(Ee,st,null,u,He),Fe.push({event:Ee,listeners:vt}))}}if((a&7)===0){e:{if(Ee=o==="mouseover"||o==="pointerover",Te=o==="mouseout"||o==="pointerout",Ee&&u!==Ft&&(st=u.relatedTarget||u.fromElement)&&(kt(st)||st[xt]))break e;if((Te||Ee)&&(Ee=He.window===He?He:(Ee=He.ownerDocument)?Ee.defaultView||Ee.parentWindow:window,Te?(st=u.relatedTarget||u.toElement,Te=Ce,st=st?kt(st):null,st!==null&&(bn=s(st),vt=st.tag,st!==bn||vt!==5&&vt!==27&&vt!==6)&&(st=null)):(Te=null,st=Ce),Te!==st)){if(vt=z1,Ve="onMouseLeave",ye="onMouseEnter",pe="mouse",(o==="pointerout"||o==="pointerover")&&(vt=D1,Ve="onPointerLeave",ye="onPointerEnter",pe="pointer"),bn=Te==null?Ee:xn(Te),ve=st==null?Ee:xn(st),Ee=new vt(Ve,pe+"leave",Te,u,He),Ee.target=bn,Ee.relatedTarget=ve,Ve=null,kt(He)===Ce&&(vt=new vt(ye,pe+"enter",st,u,He),vt.target=ve,vt.relatedTarget=bn,Ve=vt),bn=Ve,Te&&st)t:{for(vt=XI,ye=Te,pe=st,ve=0,Ve=ye;Ve;Ve=vt(Ve))ve++;Ve=0;for(var pt=pe;pt;pt=vt(pt))Ve++;for(;0<ve-Ve;)ye=vt(ye),ve--;for(;0<Ve-ve;)pe=vt(pe),Ve--;for(;ve--;){if(ye===pe||pe!==null&&ye===pe.alternate){vt=ye;break t}ye=vt(ye),pe=vt(pe)}vt=null}else vt=null;Te!==null&&Mx(Fe,Ee,Te,vt,!1),st!==null&&bn!==null&&Mx(Fe,bn,st,vt,!0)}}e:{if(Ee=Ce?xn(Ce):window,Te=Ee.nodeName&&Ee.nodeName.toLowerCase(),Te==="select"||Te==="input"&&Ee.type==="file")var nn=k1;else if(V1(Ee))if(W1)nn=iI;else{nn=oI;var ct=rI}else Te=Ee.nodeName,!Te||Te.toLowerCase()!=="input"||Ee.type!=="checkbox"&&Ee.type!=="radio"?Ce&&Ar(Ce.elementType)&&(nn=k1):nn=aI;if(nn&&(nn=nn(o,Ce))){F1(Fe,nn,u,He);break e}ct&&ct(o,Ee,Ce),o==="focusout"&&Ce&&Ee.type==="number"&&Ce.memoizedProps.value!=null&&Ho(Ee,"number",Ee.value)}switch(ct=Ce?xn(Ce):window,o){case"focusin":(V1(ct)||ct.contentEditable==="true")&&(Sl=ct,fg=Ce,Zs=null);break;case"focusout":Zs=fg=Sl=null;break;case"mousedown":mg=!0;break;case"contextmenu":case"mouseup":case"dragend":mg=!1,Z1(Fe,u,He);break;case"selectionchange":if(sI)break;case"keydown":case"keyup":Z1(Fe,u,He)}var _t;if(sg)e:{switch(o){case"compositionstart":var Xt="onCompositionStart";break e;case"compositionend":Xt="onCompositionEnd";break e;case"compositionupdate":Xt="onCompositionUpdate";break e}Xt=void 0}else vl?B1(o,u)&&(Xt="onCompositionEnd"):o==="keydown"&&u.keyCode===229&&(Xt="onCompositionStart");Xt&&(j1&&u.locale!=="ko"&&(vl||Xt!=="onCompositionStart"?Xt==="onCompositionEnd"&&vl&&(_t=I1()):(Oa=He,rg="value"in Oa?Oa.value:Oa.textContent,vl=!0)),ct=Sf(Ce,Xt),0<ct.length&&(Xt=new A1(Xt,o,null,u,He),Fe.push({event:Xt,listeners:ct}),_t?Xt.data=_t:(_t=L1(u),_t!==null&&(Xt.data=_t)))),(_t=ZN?JN(o,u):eI(o,u))&&(Xt=Sf(Ce,"onBeforeInput"),0<Xt.length&&(ct=new A1("onBeforeInput","beforeinput",null,u,He),Fe.push({event:ct,listeners:Xt}),ct.data=_t)),qI(Fe,o,Ce,u,He)}wx(Fe,a)})}function xc(o,a,u){return{instance:o,listener:a,currentTarget:u}}function Sf(o,a){for(var u=a+"Capture",m=[];o!==null;){var v=o,E=v.stateNode;if(v=v.tag,v!==5&&v!==26&&v!==27||E===null||(v=Ws(o,u),v!=null&&m.unshift(xc(o,v,E)),v=Ws(o,a),v!=null&&m.push(xc(o,v,E))),o.tag===3)return m;o=o.return}return[]}function XI(o){if(o===null)return null;do o=o.return;while(o&&o.tag!==5&&o.tag!==27);return o||null}function Mx(o,a,u,m,v){for(var E=a._reactName,W=[];u!==null&&u!==m;){var ee=u,ce=ee.alternate,Ce=ee.stateNode;if(ee=ee.tag,ce!==null&&ce===m)break;ee!==5&&ee!==26&&ee!==27||Ce===null||(ce=Ce,v?(Ce=Ws(u,E),Ce!=null&&W.unshift(xc(u,Ce,ce))):v||(Ce=Ws(u,E),Ce!=null&&W.push(xc(u,Ce,ce)))),u=u.return}W.length!==0&&o.push({event:a,listeners:W})}var KI=/\r\n?/g,QI=/\u0000|\uFFFD/g;function Rx(o){return(typeof o=="string"?o:""+o).replace(KI,`
9
+ `).replace(QI,"")}function Tx(o,a){return a=Rx(a),Rx(o)===a}function yn(o,a,u,m,v,E){switch(u){case"children":typeof m=="string"?a==="body"||a==="textarea"&&m===""||Bo(o,m):(typeof m=="number"||typeof m=="bigint")&&a!=="body"&&Bo(o,""+m);break;case"className":xr(o,"class",m);break;case"tabIndex":xr(o,"tabindex",m);break;case"dir":case"role":case"viewBox":case"width":case"height":xr(o,u,m);break;case"style":Jn(o,m,E);break;case"data":if(a!=="object"){xr(o,"data",m);break}case"src":case"href":if(m===""&&(a!=="a"||u!=="href")){o.removeAttribute(u);break}if(m==null||typeof m=="function"||typeof m=="symbol"||typeof m=="boolean"){o.removeAttribute(u);break}m=bl(""+m),o.setAttribute(u,m);break;case"action":case"formAction":if(typeof m=="function"){o.setAttribute(u,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof E=="function"&&(u==="formAction"?(a!=="input"&&yn(o,a,"name",v.name,v,null),yn(o,a,"formEncType",v.formEncType,v,null),yn(o,a,"formMethod",v.formMethod,v,null),yn(o,a,"formTarget",v.formTarget,v,null)):(yn(o,a,"encType",v.encType,v,null),yn(o,a,"method",v.method,v,null),yn(o,a,"target",v.target,v,null)));if(m==null||typeof m=="symbol"||typeof m=="boolean"){o.removeAttribute(u);break}m=bl(""+m),o.setAttribute(u,m);break;case"onClick":m!=null&&(o.onclick=Mo);break;case"onScroll":m!=null&&qt("scroll",o);break;case"onScrollEnd":m!=null&&qt("scrollend",o);break;case"dangerouslySetInnerHTML":if(m!=null){if(typeof m!="object"||!("__html"in m))throw Error(r(61));if(u=m.__html,u!=null){if(v.children!=null)throw Error(r(60));o.innerHTML=u}}break;case"multiple":o.multiple=m&&typeof m!="function"&&typeof m!="symbol";break;case"muted":o.muted=m&&typeof m!="function"&&typeof m!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(m==null||typeof m=="function"||typeof m=="boolean"||typeof m=="symbol"){o.removeAttribute("xlink:href");break}u=bl(""+m),o.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",u);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":m!=null&&typeof m!="function"&&typeof m!="symbol"?o.setAttribute(u,""+m):o.removeAttribute(u);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":m&&typeof m!="function"&&typeof m!="symbol"?o.setAttribute(u,""):o.removeAttribute(u);break;case"capture":case"download":m===!0?o.setAttribute(u,""):m!==!1&&m!=null&&typeof m!="function"&&typeof m!="symbol"?o.setAttribute(u,m):o.removeAttribute(u);break;case"cols":case"rows":case"size":case"span":m!=null&&typeof m!="function"&&typeof m!="symbol"&&!isNaN(m)&&1<=m?o.setAttribute(u,m):o.removeAttribute(u);break;case"rowSpan":case"start":m==null||typeof m=="function"||typeof m=="symbol"||isNaN(m)?o.removeAttribute(u):o.setAttribute(u,m);break;case"popover":qt("beforetoggle",o),qt("toggle",o),$r(o,"popover",m);break;case"xlinkActuate":Zn(o,"http://www.w3.org/1999/xlink","xlink:actuate",m);break;case"xlinkArcrole":Zn(o,"http://www.w3.org/1999/xlink","xlink:arcrole",m);break;case"xlinkRole":Zn(o,"http://www.w3.org/1999/xlink","xlink:role",m);break;case"xlinkShow":Zn(o,"http://www.w3.org/1999/xlink","xlink:show",m);break;case"xlinkTitle":Zn(o,"http://www.w3.org/1999/xlink","xlink:title",m);break;case"xlinkType":Zn(o,"http://www.w3.org/1999/xlink","xlink:type",m);break;case"xmlBase":Zn(o,"http://www.w3.org/XML/1998/namespace","xml:base",m);break;case"xmlLang":Zn(o,"http://www.w3.org/XML/1998/namespace","xml:lang",m);break;case"xmlSpace":Zn(o,"http://www.w3.org/XML/1998/namespace","xml:space",m);break;case"is":$r(o,"is",m);break;case"innerText":case"textContent":break;default:(!(2<u.length)||u[0]!=="o"&&u[0]!=="O"||u[1]!=="n"&&u[1]!=="N")&&(u=yl.get(u)||u,$r(o,u,m))}}function Hh(o,a,u,m,v,E){switch(u){case"style":Jn(o,m,E);break;case"dangerouslySetInnerHTML":if(m!=null){if(typeof m!="object"||!("__html"in m))throw Error(r(61));if(u=m.__html,u!=null){if(v.children!=null)throw Error(r(60));o.innerHTML=u}}break;case"children":typeof m=="string"?Bo(o,m):(typeof m=="number"||typeof m=="bigint")&&Bo(o,""+m);break;case"onScroll":m!=null&&qt("scroll",o);break;case"onScrollEnd":m!=null&&qt("scrollend",o);break;case"onClick":m!=null&&(o.onclick=Mo);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Pn.hasOwnProperty(u))e:{if(u[0]==="o"&&u[1]==="n"&&(v=u.endsWith("Capture"),a=u.slice(2,v?u.length-7:void 0),E=o[dn]||null,E=E!=null?E[u]:null,typeof E=="function"&&o.removeEventListener(a,E,v),typeof m=="function")){typeof E!="function"&&E!==null&&(u in o?o[u]=null:o.hasAttribute(u)&&o.removeAttribute(u)),o.addEventListener(a,m,v);break e}u in o?o[u]=m:m===!0?o.setAttribute(u,""):$r(o,u,m)}}}function vr(o,a,u){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":qt("error",o),qt("load",o);var m=!1,v=!1,E;for(E in u)if(u.hasOwnProperty(E)){var W=u[E];if(W!=null)switch(E){case"src":m=!0;break;case"srcSet":v=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,a));default:yn(o,a,E,W,u,null)}}v&&yn(o,a,"srcSet",u.srcSet,u,null),m&&yn(o,a,"src",u.src,u,null);return;case"input":qt("invalid",o);var ee=E=W=v=null,ce=null,Ce=null;for(m in u)if(u.hasOwnProperty(m)){var He=u[m];if(He!=null)switch(m){case"name":v=He;break;case"type":W=He;break;case"checked":ce=He;break;case"defaultChecked":Ce=He;break;case"value":E=He;break;case"defaultValue":ee=He;break;case"children":case"dangerouslySetInnerHTML":if(He!=null)throw Error(r(137,a));break;default:yn(o,a,m,He,u,null)}}ta(o,E,ee,ce,Ce,W,v,!1);return;case"select":qt("invalid",o),m=W=E=null;for(v in u)if(u.hasOwnProperty(v)&&(ee=u[v],ee!=null))switch(v){case"value":E=ee;break;case"defaultValue":W=ee;break;case"multiple":m=ee;default:yn(o,a,v,ee,u,null)}a=E,u=W,o.multiple=!!m,a!=null?io(o,!!m,a,!1):u!=null&&io(o,!!m,u,!0);return;case"textarea":qt("invalid",o),E=v=m=null;for(W in u)if(u.hasOwnProperty(W)&&(ee=u[W],ee!=null))switch(W){case"value":m=ee;break;case"defaultValue":v=ee;break;case"children":E=ee;break;case"dangerouslySetInnerHTML":if(ee!=null)throw Error(r(91));break;default:yn(o,a,W,ee,u,null)}hl(o,m,v,E);return;case"option":for(ce in u)u.hasOwnProperty(ce)&&(m=u[ce],m!=null)&&(ce==="selected"?o.selected=m&&typeof m!="function"&&typeof m!="symbol":yn(o,a,ce,m,u,null));return;case"dialog":qt("beforetoggle",o),qt("toggle",o),qt("cancel",o),qt("close",o);break;case"iframe":case"object":qt("load",o);break;case"video":case"audio":for(m=0;m<$c.length;m++)qt($c[m],o);break;case"image":qt("error",o),qt("load",o);break;case"details":qt("toggle",o);break;case"embed":case"source":case"link":qt("error",o),qt("load",o);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(Ce in u)if(u.hasOwnProperty(Ce)&&(m=u[Ce],m!=null))switch(Ce){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,a));default:yn(o,a,Ce,m,u,null)}return;default:if(Ar(a)){for(He in u)u.hasOwnProperty(He)&&(m=u[He],m!==void 0&&Hh(o,a,He,m,u,void 0));return}}for(ee in u)u.hasOwnProperty(ee)&&(m=u[ee],m!=null&&yn(o,a,ee,m,u,null))}function ZI(o,a,u,m){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var v=null,E=null,W=null,ee=null,ce=null,Ce=null,He=null;for(Te in u){var Fe=u[Te];if(u.hasOwnProperty(Te)&&Fe!=null)switch(Te){case"checked":break;case"value":break;case"defaultValue":ce=Fe;default:m.hasOwnProperty(Te)||yn(o,a,Te,null,m,Fe)}}for(var Ee in m){var Te=m[Ee];if(Fe=u[Ee],m.hasOwnProperty(Ee)&&(Te!=null||Fe!=null))switch(Ee){case"type":E=Te;break;case"name":v=Te;break;case"checked":Ce=Te;break;case"defaultChecked":He=Te;break;case"value":W=Te;break;case"defaultValue":ee=Te;break;case"children":case"dangerouslySetInnerHTML":if(Te!=null)throw Error(r(137,a));break;default:Te!==Fe&&yn(o,a,Ee,Te,m,Fe)}}ea(o,W,ee,ce,Ce,He,E,v);return;case"select":Te=W=ee=Ee=null;for(E in u)if(ce=u[E],u.hasOwnProperty(E)&&ce!=null)switch(E){case"value":break;case"multiple":Te=ce;default:m.hasOwnProperty(E)||yn(o,a,E,null,m,ce)}for(v in m)if(E=m[v],ce=u[v],m.hasOwnProperty(v)&&(E!=null||ce!=null))switch(v){case"value":Ee=E;break;case"defaultValue":ee=E;break;case"multiple":W=E;default:E!==ce&&yn(o,a,v,E,m,ce)}a=ee,u=W,m=Te,Ee!=null?io(o,!!u,Ee,!1):!!m!=!!u&&(a!=null?io(o,!!u,a,!0):io(o,!!u,u?[]:"",!1));return;case"textarea":Te=Ee=null;for(ee in u)if(v=u[ee],u.hasOwnProperty(ee)&&v!=null&&!m.hasOwnProperty(ee))switch(ee){case"value":break;case"children":break;default:yn(o,a,ee,null,m,v)}for(W in m)if(v=m[W],E=u[W],m.hasOwnProperty(W)&&(v!=null||E!=null))switch(W){case"value":Ee=v;break;case"defaultValue":Te=v;break;case"children":break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(r(91));break;default:v!==E&&yn(o,a,W,v,m,E)}gl(o,Ee,Te);return;case"option":for(var st in u)Ee=u[st],u.hasOwnProperty(st)&&Ee!=null&&!m.hasOwnProperty(st)&&(st==="selected"?o.selected=!1:yn(o,a,st,null,m,Ee));for(ce in m)Ee=m[ce],Te=u[ce],m.hasOwnProperty(ce)&&Ee!==Te&&(Ee!=null||Te!=null)&&(ce==="selected"?o.selected=Ee&&typeof Ee!="function"&&typeof Ee!="symbol":yn(o,a,ce,Ee,m,Te));return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var vt in u)Ee=u[vt],u.hasOwnProperty(vt)&&Ee!=null&&!m.hasOwnProperty(vt)&&yn(o,a,vt,null,m,Ee);for(Ce in m)if(Ee=m[Ce],Te=u[Ce],m.hasOwnProperty(Ce)&&Ee!==Te&&(Ee!=null||Te!=null))switch(Ce){case"children":case"dangerouslySetInnerHTML":if(Ee!=null)throw Error(r(137,a));break;default:yn(o,a,Ce,Ee,m,Te)}return;default:if(Ar(a)){for(var bn in u)Ee=u[bn],u.hasOwnProperty(bn)&&Ee!==void 0&&!m.hasOwnProperty(bn)&&Hh(o,a,bn,void 0,m,Ee);for(He in m)Ee=m[He],Te=u[He],!m.hasOwnProperty(He)||Ee===Te||Ee===void 0&&Te===void 0||Hh(o,a,He,Ee,m,Te);return}}for(var ye in u)Ee=u[ye],u.hasOwnProperty(ye)&&Ee!=null&&!m.hasOwnProperty(ye)&&yn(o,a,ye,null,m,Ee);for(Fe in m)Ee=m[Fe],Te=u[Fe],!m.hasOwnProperty(Fe)||Ee===Te||Ee==null&&Te==null||yn(o,a,Fe,Ee,m,Te)}function Ox(o){switch(o){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function JI(){if(typeof performance.getEntriesByType=="function"){for(var o=0,a=0,u=performance.getEntriesByType("resource"),m=0;m<u.length;m++){var v=u[m],E=v.transferSize,W=v.initiatorType,ee=v.duration;if(E&&ee&&Ox(W)){for(W=0,ee=v.responseEnd,m+=1;m<u.length;m++){var ce=u[m],Ce=ce.startTime;if(Ce>ee)break;var He=ce.transferSize,Fe=ce.initiatorType;He&&Ox(Fe)&&(ce=ce.responseEnd,W+=He*(ce<ee?1:(ee-Ce)/(ce-Ce)))}if(--m,a+=8*(E+W)/(v.duration/1e3),o++,10<o)break}}if(0<o)return a/o/1e6}return navigator.connection&&(o=navigator.connection.downlink,typeof o=="number")?o:5}var Bh=null,Lh=null;function Cf(o){return o.nodeType===9?o:o.ownerDocument}function Nx(o){switch(o){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Ix(o,a){if(o===0)switch(a){case"svg":return 1;case"math":return 2;default:return 0}return o===1&&a==="foreignObject"?0:o}function Vh(o,a){return o==="textarea"||o==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.children=="bigint"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var Fh=null;function eP(){var o=window.event;return o&&o.type==="popstate"?o===Fh?!1:(Fh=o,!0):(Fh=null,!1)}var Px=typeof setTimeout=="function"?setTimeout:void 0,tP=typeof clearTimeout=="function"?clearTimeout:void 0,zx=typeof Promise=="function"?Promise:void 0,nP=typeof queueMicrotask=="function"?queueMicrotask:typeof zx<"u"?function(o){return zx.resolve(null).then(o).catch(rP)}:Px;function rP(o){setTimeout(function(){throw o})}function Ya(o){return o==="head"}function Ax(o,a){var u=a,m=0;do{var v=u.nextSibling;if(o.removeChild(u),v&&v.nodeType===8)if(u=v.data,u==="/$"||u==="/&"){if(m===0){o.removeChild(v),Ul(a);return}m--}else if(u==="$"||u==="$?"||u==="$~"||u==="$!"||u==="&")m++;else if(u==="html")wc(o.ownerDocument.documentElement);else if(u==="head"){u=o.ownerDocument.head,wc(u);for(var E=u.firstChild;E;){var W=E.nextSibling,ee=E.nodeName;E[Ut]||ee==="SCRIPT"||ee==="STYLE"||ee==="LINK"&&E.rel.toLowerCase()==="stylesheet"||u.removeChild(E),E=W}}else u==="body"&&wc(o.ownerDocument.body);u=v}while(u);Ul(a)}function Dx(o,a){var u=o;o=0;do{var m=u.nextSibling;if(u.nodeType===1?a?(u._stashedDisplay=u.style.display,u.style.display="none"):(u.style.display=u._stashedDisplay||"",u.getAttribute("style")===""&&u.removeAttribute("style")):u.nodeType===3&&(a?(u._stashedText=u.nodeValue,u.nodeValue=""):u.nodeValue=u._stashedText||""),m&&m.nodeType===8)if(u=m.data,u==="/$"){if(o===0)break;o--}else u!=="$"&&u!=="$?"&&u!=="$~"&&u!=="$!"||o++;u=m}while(u)}function kh(o){var a=o.firstChild;for(a&&a.nodeType===10&&(a=a.nextSibling);a;){var u=a;switch(a=a.nextSibling,u.nodeName){case"HTML":case"HEAD":case"BODY":kh(u),ln(u);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(u.rel.toLowerCase()==="stylesheet")continue}o.removeChild(u)}}function oP(o,a,u,m){for(;o.nodeType===1;){var v=u;if(o.nodeName.toLowerCase()!==a.toLowerCase()){if(!m&&(o.nodeName!=="INPUT"||o.type!=="hidden"))break}else if(m){if(!o[Ut])switch(a){case"meta":if(!o.hasAttribute("itemprop"))break;return o;case"link":if(E=o.getAttribute("rel"),E==="stylesheet"&&o.hasAttribute("data-precedence"))break;if(E!==v.rel||o.getAttribute("href")!==(v.href==null||v.href===""?null:v.href)||o.getAttribute("crossorigin")!==(v.crossOrigin==null?null:v.crossOrigin)||o.getAttribute("title")!==(v.title==null?null:v.title))break;return o;case"style":if(o.hasAttribute("data-precedence"))break;return o;case"script":if(E=o.getAttribute("src"),(E!==(v.src==null?null:v.src)||o.getAttribute("type")!==(v.type==null?null:v.type)||o.getAttribute("crossorigin")!==(v.crossOrigin==null?null:v.crossOrigin))&&E&&o.hasAttribute("async")&&!o.hasAttribute("itemprop"))break;return o;default:return o}}else if(a==="input"&&o.type==="hidden"){var E=v.name==null?null:""+v.name;if(v.type==="hidden"&&o.getAttribute("name")===E)return o}else return o;if(o=po(o.nextSibling),o===null)break}return null}function aP(o,a,u){if(a==="")return null;for(;o.nodeType!==3;)if((o.nodeType!==1||o.nodeName!=="INPUT"||o.type!=="hidden")&&!u||(o=po(o.nextSibling),o===null))return null;return o}function jx(o,a){for(;o.nodeType!==8;)if((o.nodeType!==1||o.nodeName!=="INPUT"||o.type!=="hidden")&&!a||(o=po(o.nextSibling),o===null))return null;return o}function Wh(o){return o.data==="$?"||o.data==="$~"}function qh(o){return o.data==="$!"||o.data==="$?"&&o.ownerDocument.readyState!=="loading"}function iP(o,a){var u=o.ownerDocument;if(o.data==="$~")o._reactRetry=a;else if(o.data!=="$?"||u.readyState!=="loading")a();else{var m=function(){a(),u.removeEventListener("DOMContentLoaded",m)};u.addEventListener("DOMContentLoaded",m),o._reactRetry=m}}function po(o){for(;o!=null;o=o.nextSibling){var a=o.nodeType;if(a===1||a===3)break;if(a===8){if(a=o.data,a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"||a==="F!"||a==="F")break;if(a==="/$"||a==="/&")return null}}return o}var Yh=null;function _x(o){o=o.nextSibling;for(var a=0;o;){if(o.nodeType===8){var u=o.data;if(u==="/$"||u==="/&"){if(a===0)return po(o.nextSibling);a--}else u!=="$"&&u!=="$!"&&u!=="$?"&&u!=="$~"&&u!=="&"||a++}o=o.nextSibling}return null}function Hx(o){o=o.previousSibling;for(var a=0;o;){if(o.nodeType===8){var u=o.data;if(u==="$"||u==="$!"||u==="$?"||u==="$~"||u==="&"){if(a===0)return o;a--}else u!=="/$"&&u!=="/&"||a++}o=o.previousSibling}return null}function Bx(o,a,u){switch(a=Cf(u),o){case"html":if(o=a.documentElement,!o)throw Error(r(452));return o;case"head":if(o=a.head,!o)throw Error(r(453));return o;case"body":if(o=a.body,!o)throw Error(r(454));return o;default:throw Error(r(451))}}function wc(o){for(var a=o.attributes;a.length;)o.removeAttributeNode(a[0]);ln(o)}var go=new Map,Lx=new Set;function $f(o){return typeof o.getRootNode=="function"?o.getRootNode():o.nodeType===9?o:o.ownerDocument}var ya=H.d;H.d={f:lP,r:sP,D:cP,C:uP,L:dP,m:fP,X:pP,S:mP,M:gP};function lP(){var o=ya.f(),a=mf();return o||a}function sP(o){var a=wn(o);a!==null&&a.tag===5&&a.type==="form"?r$(a):ya.r(o)}var Wl=typeof document>"u"?null:document;function Vx(o,a,u){var m=Wl;if(m&&typeof a=="string"&&a){var v=Hn(a);v='link[rel="'+o+'"][href="'+v+'"]',typeof u=="string"&&(v+='[crossorigin="'+u+'"]'),Lx.has(v)||(Lx.add(v),o={rel:o,crossOrigin:u,href:a},m.querySelector(v)===null&&(a=m.createElement("link"),vr(a,"link",o),fn(a),m.head.appendChild(a)))}}function cP(o){ya.D(o),Vx("dns-prefetch",o,null)}function uP(o,a){ya.C(o,a),Vx("preconnect",o,a)}function dP(o,a,u){ya.L(o,a,u);var m=Wl;if(m&&o&&a){var v='link[rel="preload"][as="'+Hn(a)+'"]';a==="image"&&u&&u.imageSrcSet?(v+='[imagesrcset="'+Hn(u.imageSrcSet)+'"]',typeof u.imageSizes=="string"&&(v+='[imagesizes="'+Hn(u.imageSizes)+'"]')):v+='[href="'+Hn(o)+'"]';var E=v;switch(a){case"style":E=ql(o);break;case"script":E=Yl(o)}go.has(E)||(o=h({rel:"preload",href:a==="image"&&u&&u.imageSrcSet?void 0:o,as:a},u),go.set(E,o),m.querySelector(v)!==null||a==="style"&&m.querySelector(Ec(E))||a==="script"&&m.querySelector(Mc(E))||(a=m.createElement("link"),vr(a,"link",o),fn(a),m.head.appendChild(a)))}}function fP(o,a){ya.m(o,a);var u=Wl;if(u&&o){var m=a&&typeof a.as=="string"?a.as:"script",v='link[rel="modulepreload"][as="'+Hn(m)+'"][href="'+Hn(o)+'"]',E=v;switch(m){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":E=Yl(o)}if(!go.has(E)&&(o=h({rel:"modulepreload",href:o},a),go.set(E,o),u.querySelector(v)===null)){switch(m){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(u.querySelector(Mc(E)))return}m=u.createElement("link"),vr(m,"link",o),fn(m),u.head.appendChild(m)}}}function mP(o,a,u){ya.S(o,a,u);var m=Wl;if(m&&o){var v=gr(m).hoistableStyles,E=ql(o);a=a||"default";var W=v.get(E);if(!W){var ee={loading:0,preload:null};if(W=m.querySelector(Ec(E)))ee.loading=5;else{o=h({rel:"stylesheet",href:o,"data-precedence":a},u),(u=go.get(E))&&Uh(o,u);var ce=W=m.createElement("link");fn(ce),vr(ce,"link",o),ce._p=new Promise(function(Ce,He){ce.onload=Ce,ce.onerror=He}),ce.addEventListener("load",function(){ee.loading|=1}),ce.addEventListener("error",function(){ee.loading|=2}),ee.loading|=4,xf(W,a,m)}W={type:"stylesheet",instance:W,count:1,state:ee},v.set(E,W)}}}function pP(o,a){ya.X(o,a);var u=Wl;if(u&&o){var m=gr(u).hoistableScripts,v=Yl(o),E=m.get(v);E||(E=u.querySelector(Mc(v)),E||(o=h({src:o,async:!0},a),(a=go.get(v))&&Gh(o,a),E=u.createElement("script"),fn(E),vr(E,"link",o),u.head.appendChild(E)),E={type:"script",instance:E,count:1,state:null},m.set(v,E))}}function gP(o,a){ya.M(o,a);var u=Wl;if(u&&o){var m=gr(u).hoistableScripts,v=Yl(o),E=m.get(v);E||(E=u.querySelector(Mc(v)),E||(o=h({src:o,async:!0,type:"module"},a),(a=go.get(v))&&Gh(o,a),E=u.createElement("script"),fn(E),vr(E,"link",o),u.head.appendChild(E)),E={type:"script",instance:E,count:1,state:null},m.set(v,E))}}function Fx(o,a,u,m){var v=(v=J.current)?$f(v):null;if(!v)throw Error(r(446));switch(o){case"meta":case"title":return null;case"style":return typeof u.precedence=="string"&&typeof u.href=="string"?(a=ql(u.href),u=gr(v).hoistableStyles,m=u.get(a),m||(m={type:"style",instance:null,count:0,state:null},u.set(a,m)),m):{type:"void",instance:null,count:0,state:null};case"link":if(u.rel==="stylesheet"&&typeof u.href=="string"&&typeof u.precedence=="string"){o=ql(u.href);var E=gr(v).hoistableStyles,W=E.get(o);if(W||(v=v.ownerDocument||v,W={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},E.set(o,W),(E=v.querySelector(Ec(o)))&&!E._p&&(W.instance=E,W.state.loading=5),go.has(o)||(u={rel:"preload",as:"style",href:u.href,crossOrigin:u.crossOrigin,integrity:u.integrity,media:u.media,hrefLang:u.hrefLang,referrerPolicy:u.referrerPolicy},go.set(o,u),E||hP(v,o,u,W.state))),a&&m===null)throw Error(r(528,""));return W}if(a&&m!==null)throw Error(r(529,""));return null;case"script":return a=u.async,u=u.src,typeof u=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?(a=Yl(u),u=gr(v).hoistableScripts,m=u.get(a),m||(m={type:"script",instance:null,count:0,state:null},u.set(a,m)),m):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,o))}}function ql(o){return'href="'+Hn(o)+'"'}function Ec(o){return'link[rel="stylesheet"]['+o+"]"}function kx(o){return h({},o,{"data-precedence":o.precedence,precedence:null})}function hP(o,a,u,m){o.querySelector('link[rel="preload"][as="style"]['+a+"]")?m.loading=1:(a=o.createElement("link"),m.preload=a,a.addEventListener("load",function(){return m.loading|=1}),a.addEventListener("error",function(){return m.loading|=2}),vr(a,"link",u),fn(a),o.head.appendChild(a))}function Yl(o){return'[src="'+Hn(o)+'"]'}function Mc(o){return"script[async]"+o}function Wx(o,a,u){if(a.count++,a.instance===null)switch(a.type){case"style":var m=o.querySelector('style[data-href~="'+Hn(u.href)+'"]');if(m)return a.instance=m,fn(m),m;var v=h({},u,{"data-href":u.href,"data-precedence":u.precedence,href:null,precedence:null});return m=(o.ownerDocument||o).createElement("style"),fn(m),vr(m,"style",v),xf(m,u.precedence,o),a.instance=m;case"stylesheet":v=ql(u.href);var E=o.querySelector(Ec(v));if(E)return a.state.loading|=4,a.instance=E,fn(E),E;m=kx(u),(v=go.get(v))&&Uh(m,v),E=(o.ownerDocument||o).createElement("link"),fn(E);var W=E;return W._p=new Promise(function(ee,ce){W.onload=ee,W.onerror=ce}),vr(E,"link",m),a.state.loading|=4,xf(E,u.precedence,o),a.instance=E;case"script":return E=Yl(u.src),(v=o.querySelector(Mc(E)))?(a.instance=v,fn(v),v):(m=u,(v=go.get(E))&&(m=h({},u),Gh(m,v)),o=o.ownerDocument||o,v=o.createElement("script"),fn(v),vr(v,"link",m),o.head.appendChild(v),a.instance=v);case"void":return null;default:throw Error(r(443,a.type))}else a.type==="stylesheet"&&(a.state.loading&4)===0&&(m=a.instance,a.state.loading|=4,xf(m,u.precedence,o));return a.instance}function xf(o,a,u){for(var m=u.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),v=m.length?m[m.length-1]:null,E=v,W=0;W<m.length;W++){var ee=m[W];if(ee.dataset.precedence===a)E=ee;else if(E!==v)break}E?E.parentNode.insertBefore(o,E.nextSibling):(a=u.nodeType===9?u.head:u,a.insertBefore(o,a.firstChild))}function Uh(o,a){o.crossOrigin==null&&(o.crossOrigin=a.crossOrigin),o.referrerPolicy==null&&(o.referrerPolicy=a.referrerPolicy),o.title==null&&(o.title=a.title)}function Gh(o,a){o.crossOrigin==null&&(o.crossOrigin=a.crossOrigin),o.referrerPolicy==null&&(o.referrerPolicy=a.referrerPolicy),o.integrity==null&&(o.integrity=a.integrity)}var wf=null;function qx(o,a,u){if(wf===null){var m=new Map,v=wf=new Map;v.set(u,m)}else v=wf,m=v.get(u),m||(m=new Map,v.set(u,m));if(m.has(o))return m;for(m.set(o,null),u=u.getElementsByTagName(o),v=0;v<u.length;v++){var E=u[v];if(!(E[Ut]||E[wt]||o==="link"&&E.getAttribute("rel")==="stylesheet")&&E.namespaceURI!=="http://www.w3.org/2000/svg"){var W=E.getAttribute(a)||"";W=o+W;var ee=m.get(W);ee?ee.push(E):m.set(W,[E])}}return m}function Yx(o,a,u){o=o.ownerDocument||o,o.head.insertBefore(u,a==="title"?o.querySelector("head > title"):null)}function yP(o,a,u){if(u===1||a.itemProp!=null)return!1;switch(o){case"meta":case"title":return!0;case"style":if(typeof a.precedence!="string"||typeof a.href!="string"||a.href==="")break;return!0;case"link":if(typeof a.rel!="string"||typeof a.href!="string"||a.href===""||a.onLoad||a.onError)break;return a.rel==="stylesheet"?(o=a.disabled,typeof a.precedence=="string"&&o==null):!0;case"script":if(a.async&&typeof a.async!="function"&&typeof a.async!="symbol"&&!a.onLoad&&!a.onError&&a.src&&typeof a.src=="string")return!0}return!1}function Ux(o){return!(o.type==="stylesheet"&&(o.state.loading&3)===0)}function bP(o,a,u,m){if(u.type==="stylesheet"&&(typeof m.media!="string"||matchMedia(m.media).matches!==!1)&&(u.state.loading&4)===0){if(u.instance===null){var v=ql(m.href),E=a.querySelector(Ec(v));if(E){a=E._p,a!==null&&typeof a=="object"&&typeof a.then=="function"&&(o.count++,o=Ef.bind(o),a.then(o,o)),u.state.loading|=4,u.instance=E,fn(E);return}E=a.ownerDocument||a,m=kx(m),(v=go.get(v))&&Uh(m,v),E=E.createElement("link"),fn(E);var W=E;W._p=new Promise(function(ee,ce){W.onload=ee,W.onerror=ce}),vr(E,"link",m),u.instance=E}o.stylesheets===null&&(o.stylesheets=new Map),o.stylesheets.set(u,a),(a=u.state.preload)&&(u.state.loading&3)===0&&(o.count++,u=Ef.bind(o),a.addEventListener("load",u),a.addEventListener("error",u))}}var Xh=0;function vP(o,a){return o.stylesheets&&o.count===0&&Rf(o,o.stylesheets),0<o.count||0<o.imgCount?function(u){var m=setTimeout(function(){if(o.stylesheets&&Rf(o,o.stylesheets),o.unsuspend){var E=o.unsuspend;o.unsuspend=null,E()}},6e4+a);0<o.imgBytes&&Xh===0&&(Xh=62500*JI());var v=setTimeout(function(){if(o.waitingForImages=!1,o.count===0&&(o.stylesheets&&Rf(o,o.stylesheets),o.unsuspend)){var E=o.unsuspend;o.unsuspend=null,E()}},(o.imgBytes>Xh?50:800)+a);return o.unsuspend=u,function(){o.unsuspend=null,clearTimeout(m),clearTimeout(v)}}:null}function Ef(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Rf(this,this.stylesheets);else if(this.unsuspend){var o=this.unsuspend;this.unsuspend=null,o()}}}var Mf=null;function Rf(o,a){o.stylesheets=null,o.unsuspend!==null&&(o.count++,Mf=new Map,a.forEach(SP,o),Mf=null,Ef.call(o))}function SP(o,a){if(!(a.state.loading&4)){var u=Mf.get(o);if(u)var m=u.get(null);else{u=new Map,Mf.set(o,u);for(var v=o.querySelectorAll("link[data-precedence],style[data-precedence]"),E=0;E<v.length;E++){var W=v[E];(W.nodeName==="LINK"||W.getAttribute("media")!=="not all")&&(u.set(W.dataset.precedence,W),m=W)}m&&u.set(null,m)}v=a.instance,W=v.getAttribute("data-precedence"),E=u.get(W)||m,E===m&&u.set(null,v),u.set(W,v),this.count++,m=Ef.bind(this),v.addEventListener("load",m),v.addEventListener("error",m),E?E.parentNode.insertBefore(v,E.nextSibling):(o=o.nodeType===9?o.head:o,o.insertBefore(v,o.firstChild)),a.state.loading|=4}}var Rc={$$typeof:w,Provider:null,Consumer:null,_currentValue:I,_currentValue2:I,_threadCount:0};function CP(o,a,u,m,v,E,W,ee,ce){this.tag=1,this.containerInfo=o,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=rt(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=rt(0),this.hiddenUpdates=rt(null),this.identifierPrefix=m,this.onUncaughtError=v,this.onCaughtError=E,this.onRecoverableError=W,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=ce,this.incompleteTransitions=new Map}function Gx(o,a,u,m,v,E,W,ee,ce,Ce,He,Fe){return o=new CP(o,a,u,W,ce,Ce,He,Fe,ee),a=1,E===!0&&(a|=24),E=Gr(3,null,null,a),o.current=E,E.stateNode=o,a=Tg(),a.refCount++,o.pooledCache=a,a.refCount++,E.memoizedState={element:m,isDehydrated:u,cache:a},Pg(E),o}function Xx(o){return o?(o=xl,o):xl}function Kx(o,a,u,m,v,E){v=Xx(v),m.context===null?m.context=v:m.pendingContext=v,m=Da(a),m.payload={element:u},E=E===void 0?null:E,E!==null&&(m.callback=E),u=ja(o,m,a),u!==null&&(Lr(u,o,a),ac(u,o,a))}function Qx(o,a){if(o=o.memoizedState,o!==null&&o.dehydrated!==null){var u=o.retryLane;o.retryLane=u!==0&&u<a?u:a}}function Kh(o,a){Qx(o,a),(o=o.alternate)&&Qx(o,a)}function Zx(o){if(o.tag===13||o.tag===31){var a=vi(o,67108864);a!==null&&Lr(a,o,67108864),Kh(o,67108864)}}function Jx(o){if(o.tag===13||o.tag===31){var a=Jr();a=Ze(a);var u=vi(o,a);u!==null&&Lr(u,o,a),Kh(o,a)}}var Tf=!0;function $P(o,a,u,m){var v=_.T;_.T=null;var E=H.p;try{H.p=2,Qh(o,a,u,m)}finally{H.p=E,_.T=v}}function xP(o,a,u,m){var v=_.T;_.T=null;var E=H.p;try{H.p=8,Qh(o,a,u,m)}finally{H.p=E,_.T=v}}function Qh(o,a,u,m){if(Tf){var v=Zh(m);if(v===null)_h(o,a,m,Of,u),tw(o,m);else if(EP(v,o,a,u,m))m.stopPropagation();else if(tw(o,m),a&4&&-1<wP.indexOf(o)){for(;v!==null;){var E=wn(v);if(E!==null)switch(E.tag){case 3:if(E=E.stateNode,E.current.memoizedState.isDehydrated){var W=at(E.pendingLanes);if(W!==0){var ee=E;for(ee.pendingLanes|=2,ee.entangledLanes|=2;W;){var ce=1<<31-Be(W);ee.entanglements[1]|=ce,W&=~ce}ko(E),(on&6)===0&&(df=be()+500,Cc(0))}}break;case 31:case 13:ee=vi(E,2),ee!==null&&Lr(ee,E,2),mf(),Kh(E,2)}if(E=Zh(m),E===null&&_h(o,a,m,Of,u),E===v)break;v=E}v!==null&&m.stopPropagation()}else _h(o,a,m,null,u)}}function Zh(o){return o=bt(o),Jh(o)}var Of=null;function Jh(o){if(Of=null,o=kt(o),o!==null){var a=s(o);if(a===null)o=null;else{var u=a.tag;if(u===13){if(o=c(a),o!==null)return o;o=null}else if(u===31){if(o=d(a),o!==null)return o;o=null}else if(u===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;o=null}else a!==o&&(o=null)}}return Of=o,null}function ew(o){switch(o){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Me()){case Oe:return 2;case Le:return 8;case Ge:case et:return 32;case ze:return 268435456;default:return 32}default:return 32}}var ey=!1,Ua=null,Ga=null,Xa=null,Tc=new Map,Oc=new Map,Ka=[],wP="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function tw(o,a){switch(o){case"focusin":case"focusout":Ua=null;break;case"dragenter":case"dragleave":Ga=null;break;case"mouseover":case"mouseout":Xa=null;break;case"pointerover":case"pointerout":Tc.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":Oc.delete(a.pointerId)}}function Nc(o,a,u,m,v,E){return o===null||o.nativeEvent!==E?(o={blockedOn:a,domEventName:u,eventSystemFlags:m,nativeEvent:E,targetContainers:[v]},a!==null&&(a=wn(a),a!==null&&Zx(a)),o):(o.eventSystemFlags|=m,a=o.targetContainers,v!==null&&a.indexOf(v)===-1&&a.push(v),o)}function EP(o,a,u,m,v){switch(a){case"focusin":return Ua=Nc(Ua,o,a,u,m,v),!0;case"dragenter":return Ga=Nc(Ga,o,a,u,m,v),!0;case"mouseover":return Xa=Nc(Xa,o,a,u,m,v),!0;case"pointerover":var E=v.pointerId;return Tc.set(E,Nc(Tc.get(E)||null,o,a,u,m,v)),!0;case"gotpointercapture":return E=v.pointerId,Oc.set(E,Nc(Oc.get(E)||null,o,a,u,m,v)),!0}return!1}function nw(o){var a=kt(o.target);if(a!==null){var u=s(a);if(u!==null){if(a=u.tag,a===13){if(a=c(u),a!==null){o.blockedOn=a,jt(o.priority,function(){Jx(u)});return}}else if(a===31){if(a=d(u),a!==null){o.blockedOn=a,jt(o.priority,function(){Jx(u)});return}}else if(a===3&&u.stateNode.current.memoizedState.isDehydrated){o.blockedOn=u.tag===3?u.stateNode.containerInfo:null;return}}}o.blockedOn=null}function Nf(o){if(o.blockedOn!==null)return!1;for(var a=o.targetContainers;0<a.length;){var u=Zh(o.nativeEvent);if(u===null){u=o.nativeEvent;var m=new u.constructor(u.type,u);Ft=m,u.target.dispatchEvent(m),Ft=null}else return a=wn(u),a!==null&&Zx(a),o.blockedOn=u,!1;a.shift()}return!0}function rw(o,a,u){Nf(o)&&u.delete(a)}function MP(){ey=!1,Ua!==null&&Nf(Ua)&&(Ua=null),Ga!==null&&Nf(Ga)&&(Ga=null),Xa!==null&&Nf(Xa)&&(Xa=null),Tc.forEach(rw),Oc.forEach(rw)}function If(o,a){o.blockedOn===a&&(o.blockedOn=null,ey||(ey=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,MP)))}var Pf=null;function ow(o){Pf!==o&&(Pf=o,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Pf===o&&(Pf=null);for(var a=0;a<o.length;a+=3){var u=o[a],m=o[a+1],v=o[a+2];if(typeof m!="function"){if(Jh(m||u)===null)continue;break}var E=wn(u);E!==null&&(o.splice(a,3),a-=3,Zg(E,{pending:!0,data:v,method:u.method,action:m},m,v))}}))}function Ul(o){function a(ce){return If(ce,o)}Ua!==null&&If(Ua,o),Ga!==null&&If(Ga,o),Xa!==null&&If(Xa,o),Tc.forEach(a),Oc.forEach(a);for(var u=0;u<Ka.length;u++){var m=Ka[u];m.blockedOn===o&&(m.blockedOn=null)}for(;0<Ka.length&&(u=Ka[0],u.blockedOn===null);)nw(u),u.blockedOn===null&&Ka.shift();if(u=(o.ownerDocument||o).$$reactFormReplay,u!=null)for(m=0;m<u.length;m+=3){var v=u[m],E=u[m+1],W=v[dn]||null;if(typeof E=="function")W||ow(u);else if(W){var ee=null;if(E&&E.hasAttribute("formAction")){if(v=E,W=E[dn]||null)ee=W.formAction;else if(Jh(v)!==null)continue}else ee=W.action;typeof ee=="function"?u[m+1]=ee:(u.splice(m,3),m-=3),ow(u)}}}function aw(){function o(E){E.canIntercept&&E.info==="react-transition"&&E.intercept({handler:function(){return new Promise(function(W){return v=W})},focusReset:"manual",scroll:"manual"})}function a(){v!==null&&(v(),v=null),m||setTimeout(u,20)}function u(){if(!m&&!navigation.transition){var E=navigation.currentEntry;E&&E.url!=null&&navigation.navigate(E.url,{state:E.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var m=!1,v=null;return navigation.addEventListener("navigate",o),navigation.addEventListener("navigatesuccess",a),navigation.addEventListener("navigateerror",a),setTimeout(u,100),function(){m=!0,navigation.removeEventListener("navigate",o),navigation.removeEventListener("navigatesuccess",a),navigation.removeEventListener("navigateerror",a),v!==null&&(v(),v=null)}}}function ty(o){this._internalRoot=o}zf.prototype.render=ty.prototype.render=function(o){var a=this._internalRoot;if(a===null)throw Error(r(409));var u=a.current,m=Jr();Kx(u,m,o,a,null,null)},zf.prototype.unmount=ty.prototype.unmount=function(){var o=this._internalRoot;if(o!==null){this._internalRoot=null;var a=o.containerInfo;Kx(o.current,2,null,o,null,null),mf(),a[xt]=null}};function zf(o){this._internalRoot=o}zf.prototype.unstable_scheduleHydration=function(o){if(o){var a=ft();o={blockedOn:null,target:o,priority:a};for(var u=0;u<Ka.length&&a!==0&&a<Ka[u].priority;u++);Ka.splice(u,0,o),u===0&&nw(o)}};var iw=t.version;if(iw!=="19.2.3")throw Error(r(527,iw,"19.2.3"));H.findDOMNode=function(o){var a=o._reactInternals;if(a===void 0)throw typeof o.render=="function"?Error(r(188)):(o=Object.keys(o).join(","),Error(r(268,o)));return o=p(a),o=o!==null?g(o):null,o=o===null?null:o.stateNode,o};var RP={bundleType:0,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:_,reconcilerVersion:"19.2.3"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Af=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Af.isDisabled&&Af.supportsFiber)try{Ue=Af.inject(RP),Ne=Af}catch{}}return Pc.createRoot=function(o,a){if(!i(o))throw Error(r(299));var u=!1,m="",v=m$,E=p$,W=g$;return a!=null&&(a.unstable_strictMode===!0&&(u=!0),a.identifierPrefix!==void 0&&(m=a.identifierPrefix),a.onUncaughtError!==void 0&&(v=a.onUncaughtError),a.onCaughtError!==void 0&&(E=a.onCaughtError),a.onRecoverableError!==void 0&&(W=a.onRecoverableError)),a=Gx(o,1,!1,null,null,u,m,null,v,E,W,aw),o[xt]=a.current,jh(o),new ty(a)},Pc.hydrateRoot=function(o,a,u){if(!i(o))throw Error(r(299));var m=!1,v="",E=m$,W=p$,ee=g$,ce=null;return u!=null&&(u.unstable_strictMode===!0&&(m=!0),u.identifierPrefix!==void 0&&(v=u.identifierPrefix),u.onUncaughtError!==void 0&&(E=u.onUncaughtError),u.onCaughtError!==void 0&&(W=u.onCaughtError),u.onRecoverableError!==void 0&&(ee=u.onRecoverableError),u.formState!==void 0&&(ce=u.formState)),a=Gx(o,1,!0,a,u??null,m,v,ce,E,W,ee,aw),a.context=Xx(null),u=a.current,m=Jr(),m=Ze(m),v=Da(m),v.callback=null,ja(u,v,m),u=m,a.current.lanes=u,je(a,u),ko(a),o[xt]=a.current,jh(o),new zf(a)},Pc.version="19.2.3",Pc}var hw;function HP(){if(hw)return oy.exports;hw=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),oy.exports=_P(),oy.exports}var eR=HP();function ut(e){const t=l.useRef(e);return t.current=e,l.useCallback((...r)=>t.current?.(...r),[])}function kr(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}const yw=kr()?l.useLayoutEffect:l.useEffect,It=(e,t)=>{const n=l.useRef(!0);yw(()=>e(n.current),t),yw(()=>(n.current=!1,()=>{n.current=!0}),[])},tR=(e,t)=>{It(n=>{if(!n)return e()},t)};function Dm(e){const t=l.useRef(!1),[n,r]=l.useState(e);l.useEffect(()=>(t.current=!1,()=>{t.current=!0}),[]);function i(s,c){c&&t.current||r(s)}return[n,i]}function Yt(e,t){const[n,r]=l.useState(e),i=t!==void 0?t:n;return It(s=>{s||r(t)},[t]),[i,r]}var sy={exports:{}},cn={};var bw;function BP(){if(bw)return cn;bw=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),c=Symbol.for("react.context"),d=Symbol.for("react.server_context"),f=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),g=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),C=Symbol.for("react.offscreen"),b;b=Symbol.for("react.module.reference");function x(S){if(typeof S=="object"&&S!==null){var $=S.$$typeof;switch($){case e:switch(S=S.type,S){case n:case i:case r:case p:case g:return S;default:switch(S=S&&S.$$typeof,S){case d:case c:case f:case y:case h:case s:return S;default:return $}}case t:return $}}}return cn.ContextConsumer=c,cn.ContextProvider=s,cn.Element=e,cn.ForwardRef=f,cn.Fragment=n,cn.Lazy=y,cn.Memo=h,cn.Portal=t,cn.Profiler=i,cn.StrictMode=r,cn.Suspense=p,cn.SuspenseList=g,cn.isAsyncMode=function(){return!1},cn.isConcurrentMode=function(){return!1},cn.isContextConsumer=function(S){return x(S)===c},cn.isContextProvider=function(S){return x(S)===s},cn.isElement=function(S){return typeof S=="object"&&S!==null&&S.$$typeof===e},cn.isForwardRef=function(S){return x(S)===f},cn.isFragment=function(S){return x(S)===n},cn.isLazy=function(S){return x(S)===y},cn.isMemo=function(S){return x(S)===h},cn.isPortal=function(S){return x(S)===t},cn.isProfiler=function(S){return x(S)===i},cn.isStrictMode=function(S){return x(S)===r},cn.isSuspense=function(S){return x(S)===p},cn.isSuspenseList=function(S){return x(S)===g},cn.isValidElementType=function(S){return typeof S=="string"||typeof S=="function"||S===n||S===i||S===r||S===p||S===g||S===C||typeof S=="object"&&S!==null&&(S.$$typeof===y||S.$$typeof===h||S.$$typeof===s||S.$$typeof===c||S.$$typeof===f||S.$$typeof===b||S.getModuleId!==void 0)},cn.typeOf=x,cn}var vw;function LP(){return vw||(vw=1,sy.exports=BP()),sy.exports}var cy=LP();function od(e,t,n){const r=l.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}const VP=Symbol.for("react.element"),FP=Symbol.for("react.transitional.element"),kP=Symbol.for("react.fragment");function nR(e){return e&&typeof e=="object"&&(e.$$typeof===VP||e.$$typeof===FP)&&e.type===kP}const WP=Number(l.version.split(".")[0]),qP=(e,t)=>{typeof e=="function"?e(t):typeof e=="object"&&e&&"current"in e&&(e.current=t)},ir=(...e)=>{const t=e.filter(Boolean);return t.length<=1?t[0]:n=>{e.forEach(r=>{qP(r,n)})}},fi=(...e)=>od(()=>ir(...e),e,(t,n)=>t.length!==n.length||t.every((r,i)=>r!==n[i])),al=e=>{if(!e)return!1;if(vS(e)&&WP>=19)return!0;const t=cy.isMemo(e)?e.type.type:e.type;return!(typeof t=="function"&&!t.prototype?.render&&t.$$typeof!==cy.ForwardRef||typeof e=="function"&&!e.prototype?.render&&e.$$typeof!==cy.ForwardRef)};function vS(e){return l.isValidElement(e)&&!nR(e)}const YP=e=>vS(e)&&al(e),il=e=>{if(e&&vS(e)){const t=e;return t.props.propertyIsEnumerable("ref")?t.props.ref:t.ref}return null};function zo(e,t){let n=e;for(let r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]]}return n}function rR(e,t,n,r){if(!t.length)return n;const[i,...s]=t;let c;return!e&&typeof i=="number"?c=[]:Array.isArray(e)?c=[...e]:c={...e},r&&n===void 0&&s.length===1?delete c[i][s[0]]:c[i]=rR(c[i],s,n,r),c}function vo(e,t,n,r=!1){return t.length&&r&&n===void 0&&!zo(e,t.slice(0,-1))?e:rR(e,t,n,r)}function UP(e){return typeof e=="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function Sw(e){return Array.isArray(e)?[]:{}}const GP=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function oR(e,t={}){const{prepareArray:n}=t,r=n||(()=>[]);let i=Sw(e[0]);return e.forEach(s=>{function c(d,f){const p=new Set(f),g=zo(s,d),h=Array.isArray(g);if(h||UP(g)){if(!p.has(g)){p.add(g);const y=zo(i,d);h?i=vo(i,d,r(y,g)):(!y||typeof y!="object")&&(i=vo(i,d,Sw(g))),GP(g).forEach(C=>{Object.getOwnPropertyDescriptor(g,C).enumerable&&c([...d,C],p)})}}else i=vo(i,d,g)}c([])}),i}function us(...e){return oR(e)}let fb={};const XP=e=>{};function KP(e,t){}function QP(e,t){}function ZP(){fb={}}function aR(e,t,n){!t&&!fb[n]&&(e(!1,n),fb[n]=!0)}function rr(e,t){aR(KP,e,t)}function JP(e,t){aR(QP,e,t)}rr.preMessage=XP;rr.resetWarned=ZP;rr.noteOnce=JP;function en(e,t){const n=Object.assign({},e);return Array.isArray(t)&&t.forEach(r=>{delete n[r]}),n}function mr(e,t={}){let n=[];return ae.Children.forEach(e,r=>{r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(mr(r)):nR(r)&&r.props?n=n.concat(mr(r.props.children,t)):n.push(r))}),n}const e8=l.createContext({});function Ss(e){return e instanceof HTMLElement||e instanceof SVGElement}function mu(e){return e&&typeof e=="object"&&Ss(e.nativeElement)?e.nativeElement:Ss(e)?e:null}const mb=l.createContext(null);function t8({children:e,onBatchResize:t}){const n=l.useRef(0),r=l.useRef([]),i=l.useContext(mb),s=l.useCallback((c,d,f)=>{n.current+=1;const p=n.current;r.current.push({size:c,element:d,data:f}),Promise.resolve().then(()=>{p===n.current&&(t?.(r.current),r.current=[])}),i?.(c,d,f)},[t,i]);return l.createElement(mb.Provider,{value:s},e)}const oi=new Map;function n8(e){e.forEach(t=>{const{target:n}=t;oi.get(n)?.forEach(r=>r(n))})}let uy;function iR(){return uy||(uy=new ResizeObserver(n8)),uy}function r8(e,t){oi.has(e)||(oi.set(e,new Set),iR().observe(e)),oi.get(e).add(t)}function o8(e,t){oi.has(e)&&(oi.get(e).delete(t),oi.get(e).size||(iR().unobserve(e),oi.delete(e)))}function a8(e,t){const{children:n,disabled:r}=e,i=l.useRef(null),s=l.useContext(mb),c=typeof n=="function",d=c?n(i):n,f=l.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),p=!c&&l.isValidElement(d)&&al(d),g=p?il(d):null,h=fi(g,i),y=()=>mu(i.current);l.useImperativeHandle(t,()=>y());const C=l.useRef(e);C.current=e;const b=l.useCallback(x=>{const{onResize:S,data:$}=C.current,{width:M,height:w}=x.getBoundingClientRect(),{offsetWidth:R,offsetHeight:T}=x,N=Math.floor(M),O=Math.floor(w);if(f.current.width!==N||f.current.height!==O||f.current.offsetWidth!==R||f.current.offsetHeight!==T){const P={width:N,height:O,offsetWidth:R,offsetHeight:T};f.current=P;const D=R===Math.round(M)?M:R,k=T===Math.round(w)?w:T,F={...P,offsetWidth:D,offsetHeight:k};s?.(F,x,$),S&&Promise.resolve().then(()=>{S(F,x)})}},[]);return l.useEffect(()=>{const x=y();return x&&!r&&r8(x,b),()=>o8(x,b)},[i.current,r]),p?l.cloneElement(d,{ref:h}):d}const i8=l.forwardRef(a8);function pb(){return pb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pb.apply(this,arguments)}const l8="rc-observer-key";function s8(e,t){const{children:n}=e;return(typeof n=="function"?[n]:mr(n)).map((i,s)=>{const c=i?.key||`${l8}-${s}`;return l.createElement(i8,pb({},e,{key:c,ref:s===0?t:void 0}),i)})}const Fr=l.forwardRef(s8);Fr.Collection=t8;function lR(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=lR(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Q(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=lR(e))&&(r&&(r+=" "),r+=t);return r}function gb(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function c8(e){if(Array.isArray(e))return gb(e)}function u8(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function sR(e,t){if(e){if(typeof e=="string")return gb(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?gb(e,t):void 0}}function d8(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
10
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $n(e){return c8(e)||u8(e)||sR(e)||d8()}let cR=e=>+setTimeout(e,16),uR=e=>clearTimeout(e);typeof window<"u"&&"requestAnimationFrame"in window&&(cR=e=>window.requestAnimationFrame(e),uR=e=>window.cancelAnimationFrame(e));let Cw=0;const SS=new Map;function dR(e){SS.delete(e)}const Bt=(e,t=1)=>{Cw+=1;const n=Cw;function r(i){if(i===0)dR(n),e();else{const s=cR(()=>{r(i-1)});SS.set(n,s)}}return r(t),n};Bt.cancel=e=>{const t=SS.get(e);return dR(e),uR(t)};const pu="ant",bp="anticon",f8=["outlined","borderless","filled","underlined"],m8=(e,t)=>t||(e?`${pu}-${e}`:pu),dt=l.createContext({getPrefixCls:m8,iconPrefixCls:bp}),{Consumer:See}=dt,$w={};function Pt(e){const t=l.useContext(dt),{getPrefixCls:n,direction:r,getPopupContainer:i,renderEmpty:s}=t,c=t[e];return{classNames:$w,styles:$w,...c,getPrefixCls:n,direction:r,getPopupContainer:i,renderEmpty:s}}function gu(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function hb(e,t){if(!e)return!1;if(e.contains)return e.contains(t);let n=t;for(;n;){if(n===e)return!0;n=n.parentNode}return!1}const xw="data-rc-order",ww="data-rc-priority",p8="rc-util-key",yb=new Map;function fR({mark:e}={}){return e?e.startsWith("data-")?e:`data-${e}`:p8}function vp(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function g8(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function CS(e){return Array.from((yb.get(e)||e).children).filter(t=>t.tagName==="STYLE")}function mR(e,t={}){if(!kr())return null;const{csp:n,prepend:r,priority:i=0}=t,s=g8(r),c=s==="prependQueue",d=document.createElement("style");d.setAttribute(xw,s),c&&i&&d.setAttribute(ww,`${i}`),n?.nonce&&(d.nonce=n?.nonce),d.innerHTML=e;const f=vp(t),{firstChild:p}=f;if(r){if(c){const g=(t.styles||CS(f)).filter(h=>{if(!["prepend","prependQueue"].includes(h.getAttribute(xw)))return!1;const y=Number(h.getAttribute(ww)||0);return i>=y});if(g.length)return f.insertBefore(d,g[g.length-1].nextSibling),d}f.insertBefore(d,p)}else f.appendChild(d);return d}function pR(e,t={}){let{styles:n}=t;return n||=CS(vp(t)),n.find(r=>r.getAttribute(fR(t))===e)}function hu(e,t={}){const n=pR(e,t);n&&vp(t).removeChild(n)}function h8(e,t){const n=yb.get(e);if(!n||!hb(document,n)){const r=mR("",t),{parentNode:i}=r;yb.set(e,i),e.removeChild(r)}}function ii(e,t,n={}){const r=vp(n),i=CS(r),s={...n,styles:i};h8(r,s);const c=pR(t,s);if(c)return s.csp?.nonce&&c.nonce!==s.csp?.nonce&&(c.nonce=s.csp?.nonce),c.innerHTML!==e&&(c.innerHTML=e),c;const d=mR(e,s);return d.setAttribute(fR(s),t),d}function yu(e,t,n=!1){const r=new Set;function i(s,c,d=1){const f=r.has(s);if(rr(!f,"Warning: There may be circular references"),f)return!1;if(s===c)return!0;if(n&&d>1)return!1;r.add(s);const p=d+1;if(Array.isArray(s)){if(!Array.isArray(c)||s.length!==c.length)return!1;for(let g=0;g<s.length;g++)if(!i(s[g],c[g],p))return!1;return!0}if(s&&c&&typeof s=="object"&&typeof c=="object"){const g=Object.keys(s);return g.length!==Object.keys(c).length?!1:g.every(h=>i(s[h],c[h],p))}return!1}return i(e,t)}const y8="%";function bb(e){return e.join(y8)}let Ew=0;class b8{instanceId;constructor(t){this.instanceId=t}cache=new Map;updateTimes=new Map;extracted=new Set;get(t){return this.opGet(bb(t))}opGet(t){return this.cache.get(t)||null}update(t,n){return this.opUpdate(bb(t),n)}opUpdate(t,n){const r=this.cache.get(t),i=n(r);i===null?(this.cache.delete(t),this.updateTimes.delete(t)):(this.cache.set(t,i),this.updateTimes.set(t,Ew),Ew+=1)}}const $S="data-token-hash",$a="data-css-hash",Gi="__cssinjs_instance__";function v8(){const e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){const t=document.body.querySelectorAll(`style[${$a}]`)||[],{firstChild:n}=document.head;Array.from(t).forEach(i=>{i[Gi]||=e,i[Gi]===e&&document.head.insertBefore(i,n)});const r={};Array.from(document.querySelectorAll(`style[${$a}]`)).forEach(i=>{const s=i.getAttribute($a);r[s]?i[Gi]===e&&i.parentNode?.removeChild(i):r[s]=!0})}return new b8(e)}const ad=l.createContext({hashPriority:"low",cache:v8(),defaultCache:!0,autoPrefix:!1});function S8(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}class jm{static MAX_CACHE_SIZE=20;static MAX_CACHE_OFFSET=5;cache;keys;cacheCallTimes;constructor(){this.cache=new Map,this.keys=[],this.cacheCallTimes=0}size(){return this.keys.length}internalGet(t,n=!1){let r={map:this.cache};return t.forEach(i=>{r?r=r?.map?.get(i):r=void 0}),r?.value&&n&&(r.value[1]=this.cacheCallTimes++),r?.value}get(t){return this.internalGet(t,!0)?.[0]}has(t){return!!this.internalGet(t)}set(t,n){if(!this.has(t)){if(this.size()+1>jm.MAX_CACHE_SIZE+jm.MAX_CACHE_OFFSET){const[i]=this.keys.reduce((s,c)=>{const[,d]=s;return this.internalGet(c)[1]<d?[c,this.internalGet(c)[1]]:s},[this.keys[0],this.cacheCallTimes]);this.delete(i)}this.keys.push(t)}let r=this.cache;t.forEach((i,s)=>{if(s===t.length-1)r.set(i,{value:[n,this.cacheCallTimes++]});else{const c=r.get(i);c?c.map||(c.map=new Map):r.set(i,{map:new Map}),r=r.get(i).map}})}deleteByPath(t,n){const r=t.get(n[0]);if(n.length===1)return r.map?t.set(n[0],{map:r.map}):t.delete(n[0]),r.value?.[0];const i=this.deleteByPath(r.map,n.slice(1));return(!r.map||r.map.size===0)&&!r.value&&t.delete(n[0]),i}delete(t){if(this.has(t))return this.keys=this.keys.filter(n=>!S8(n,t)),this.deleteByPath(this.cache,t)}}let Mw=0;class gR{derivatives;id;constructor(t){this.derivatives=Array.isArray(t)?t:[t],this.id=Mw,t.length===0&&(t.length>0,void 0),Mw+=1}getDerivativeToken(t){return this.derivatives.reduce((n,r)=>r(t,n),void 0)}}const dy=new jm;function vb(e){const t=Array.isArray(e)?e:[e];return dy.has(t)||dy.set(t,new gR(t)),dy.get(t)}const C8=new WeakMap,fy={};function $8(e,t){let n=C8;for(let r=0;r<t.length;r+=1){const i=t[r];n.has(i)||n.set(i,new WeakMap),n=n.get(i)}return n.has(fy)||n.set(fy,e()),n.get(fy)}const Rw=new WeakMap;function nu(e){let t=Rw.get(e)||"";return t||(Object.keys(e).forEach(n=>{const r=e[n];t+=n,r instanceof gR?t+=r.id:r&&typeof r=="object"?t+=nu(r):t+=r}),t=gu(t),Rw.set(e,t)),t}function x8(e,t){return gu(`${t}_${nu(e)}`)}const Sb=kr();function te(e){return typeof e=="number"?`${e}px`:e}function hR(e){const{hashCls:t,hashPriority:n="low"}=e||{};if(!t)return"";const r=`.${t}`;return n==="low"?`:where(${r})`:r}const hm=(e,t="")=>`--${t?`${t}-`:""}${e}`.replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase(),w8=(e,t,n)=>{const{hashCls:r,hashPriority:i="low"}=n||{};return Object.keys(e).length?`${hR({hashCls:r,hashPriority:i})}.${t}${n?.scope?`.${n.scope}`:""}{${Object.entries(e).map(([s,c])=>`${s}:${c};`).join("")}}`:""},yR=(e,t,n)=>{const{hashCls:r,hashPriority:i="low",prefix:s,unitless:c,ignore:d,preserve:f}=n||{},p={},g={};return Object.entries(e).forEach(([h,y])=>{if(f?.[h])g[h]=y;else if((typeof y=="string"||typeof y=="number")&&!d?.[h]){const C=hm(h,s);p[C]=typeof y=="number"&&!c?.[h]?`${y}px`:String(y),g[h]=`var(${C})`}}),[g,w8(p,t,{scope:n?.scope,hashCls:r,hashPriority:i})]},Df=new Map;function xS(e,t,n,r,i){const{cache:s}=l.useContext(ad),c=[e,...t],d=bb(c),f=h=>{s.opUpdate(d,y=>{const[C=0,b]=y||[void 0,void 0],S=b||n(),$=[C,S];return h?h($):$})};l.useMemo(()=>{f()},[d]);const g=s.opGet(d)[1];return l.useInsertionEffect(()=>(f(([h,y])=>[h+1,y]),Df.has(d)||(i?.(g),Df.set(d,!0),Promise.resolve().then(()=>{Df.delete(d)})),()=>{s.opUpdate(d,h=>{const[y=0,C]=h||[];return y-1===0?(r?.(C,!1),Df.delete(d),null):[y-1,C]})}),[d]),g}const E8={},M8="css",Vi=new Map;function R8(e){Vi.set(e,(Vi.get(e)||0)+1)}function T8(e,t){typeof document<"u"&&document.querySelectorAll(`style[${$S}="${e}"]`).forEach(r=>{r[Gi]===t&&r.parentNode?.removeChild(r)})}const O8=-1;function N8(e,t){Vi.set(e,(Vi.get(e)||0)-1);const n=new Set;Vi.forEach((r,i)=>{r<=0&&n.add(i)}),Vi.size-n.size>O8&&n.forEach(r=>{T8(r,t),Vi.delete(r)})}const I8=(e,t,n,r)=>{let s={...n.getDerivativeToken(e),...t};return r&&(s=r(s)),s},P8="token";function z8(e,t,n){const{cache:{instanceId:r},container:i,hashPriority:s}=l.useContext(ad),{salt:c="",override:d=E8,formatToken:f,getComputedToken:p,cssVar:g}=n,h=$8(()=>Object.assign({},...t),t),y=nu(h),C=nu(d),b=nu(g);return xS(P8,[c,e.id,y,C,b],()=>{const S=p?p(h,d,e):I8(h,d,e,f),$={...S},M=`${c}_${g.prefix}`,w=gu(M),R=`${M8}-${w}`;$._tokenKey=x8($,M);const[T,N]=yR(S,g.key,{prefix:g.prefix,ignore:g.ignore,unitless:g.unitless,preserve:g.preserve,hashPriority:s,hashCls:g.hashed?R:void 0});return T._hashId=w,R8(g.key),[T,R,$,N,g.key]},([,,,,S])=>{N8(S,r)},([,,,S,$])=>{if(!S)return;const M=ii(S,gu(`css-var-${$}`),{mark:$a,prepend:"queue",attachTo:i,priority:-999});M[Gi]=r,M.setAttribute($S,$)})}var A8={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},Tn="-ms-",ru="-moz-",an="-webkit-",bR="comm",wS="rule",ES="decl",D8="@import",j8="@namespace",vR="@keyframes",_8="@layer",SR=Math.abs,MS=String.fromCharCode,Cb=Object.assign;function H8(e,t){return tr(e,0)^45?(((t<<2^tr(e,0))<<2^tr(e,1))<<2^tr(e,2))<<2^tr(e,3):0}function CR(e){return e.trim()}function va(e,t){return(e=t.exec(e))?e[0]:e}function Lt(e,t,n){return e.replace(t,n)}function ym(e,t,n){return e.indexOf(t,n)}function tr(e,t){return e.charCodeAt(t)|0}function Qi(e,t,n){return e.slice(t,n)}function Io(e){return e.length}function $R(e){return e.length}function Uc(e,t){return t.push(e),e}function B8(e,t){return e.map(t).join("")}function Tw(e,t){return e.filter(function(n){return!va(n,t)})}var Sp=1,Cs=1,xR=0,Co=0,Un=0,Ns="";function Cp(e,t,n,r,i,s,c,d){return{value:e,root:t,parent:n,type:r,props:i,children:s,line:Sp,column:Cs,length:c,return:"",siblings:d}}function ei(e,t){return Cb(Cp("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Gl(e){for(;e.root;)e=ei(e.root,{children:[e]});Uc(e,e.siblings)}function L8(){return Un}function V8(){return Un=Co>0?tr(Ns,--Co):0,Cs--,Un===10&&(Cs=1,Sp--),Un}function Ao(){return Un=Co<xR?tr(Ns,Co++):0,Cs++,Un===10&&(Cs=1,Sp++),Un}function ai(){return tr(Ns,Co)}function bm(){return Co}function $p(e,t){return Qi(Ns,e,t)}function bu(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 F8(e){return Sp=Cs=1,xR=Io(Ns=e),Co=0,[]}function k8(e){return Ns="",e}function my(e){return CR($p(Co-1,$b(e===91?e+2:e===40?e+1:e)))}function W8(e){for(;(Un=ai())&&Un<33;)Ao();return bu(e)>2||bu(Un)>3?"":" "}function q8(e,t){for(;--t&&Ao()&&!(Un<48||Un>102||Un>57&&Un<65||Un>70&&Un<97););return $p(e,bm()+(t<6&&ai()==32&&Ao()==32))}function $b(e){for(;Ao();)switch(Un){case e:return Co;case 34:case 39:e!==34&&e!==39&&$b(Un);break;case 40:e===41&&$b(e);break;case 92:Ao();break}return Co}function Y8(e,t){for(;Ao()&&e+Un!==57;)if(e+Un===84&&ai()===47)break;return"/*"+$p(t,Co-1)+"*"+MS(e===47?e:Ao())}function U8(e){for(;!bu(ai());)Ao();return $p(e,Co)}function Ow(e){return k8(vm("",null,null,null,[""],e=F8(e),0,[0],e))}function vm(e,t,n,r,i,s,c,d,f){for(var p=0,g=0,h=c,y=0,C=0,b=0,x=1,S=1,$=1,M=0,w="",R=i,T=s,N=r,O=w;S;)switch(b=M,M=Ao()){case 40:if(b!=108&&tr(O,h-1)==58){ym(O+=Lt(my(M),"&","&\f"),"&\f",SR(p?d[p-1]:0))!=-1&&($=-1);break}case 34:case 39:case 91:O+=my(M);break;case 9:case 10:case 13:case 32:O+=W8(b);break;case 92:O+=q8(bm()-1,7);continue;case 47:switch(ai()){case 42:case 47:Uc(G8(Y8(Ao(),bm()),t,n,f),f),(bu(b||1)==5||bu(ai()||1)==5)&&Io(O)&&Qi(O,-1,void 0)!==" "&&(O+=" ");break;default:O+="/"}break;case 123*x:d[p++]=Io(O)*$;case 125*x:case 59:case 0:switch(M){case 0:case 125:S=0;case 59+g:$==-1&&(O=Lt(O,/\f/g,"")),C>0&&(Io(O)-h||x===0&&b===47)&&Uc(C>32?Iw(O+";",r,n,h-1,f):Iw(Lt(O," ","")+";",r,n,h-2,f),f);break;case 59:O+=";";default:if(Uc(N=Nw(O,t,n,p,g,i,d,w,R=[],T=[],h,s),s),M===123)if(g===0)vm(O,t,N,N,R,s,h,d,T);else{switch(y){case 99:if(tr(O,3)===110)break;case 108:if(tr(O,2)===97)break;default:g=0;case 100:case 109:case 115:}g?vm(e,N,N,r&&Uc(Nw(e,N,N,0,0,i,d,w,i,R=[],h,T),T),i,T,h,d,r?R:T):vm(O,N,N,N,[""],T,0,d,T)}}p=g=C=0,x=$=1,w=O="",h=c;break;case 58:h=1+Io(O),C=b;default:if(x<1){if(M==123)--x;else if(M==125&&x++==0&&V8()==125)continue}switch(O+=MS(M),M*x){case 38:$=g>0?1:(O+="\f",-1);break;case 44:d[p++]=(Io(O)-1)*$,$=1;break;case 64:ai()===45&&(O+=my(Ao())),y=ai(),g=h=Io(w=O+=U8(bm())),M++;break;case 45:b===45&&Io(O)==2&&(x=0)}}return s}function Nw(e,t,n,r,i,s,c,d,f,p,g,h){for(var y=i-1,C=i===0?s:[""],b=$R(C),x=0,S=0,$=0;x<r;++x)for(var M=0,w=Qi(e,y+1,y=SR(S=c[x])),R=e;M<b;++M)(R=CR(S>0?C[M]+" "+w:Lt(w,/&\f/g,C[M])))&&(f[$++]=R);return Cp(e,t,n,i===0?wS:d,f,p,g,h)}function G8(e,t,n,r){return Cp(e,t,n,bR,MS(L8()),Qi(e,2,-2),0,r)}function Iw(e,t,n,r,i){return Cp(e,t,n,ES,Qi(e,0,r),Qi(e,r+1,-1),r,i)}function wR(e,t,n){switch(H8(e,t)){case 5103:return an+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return an+e+e;case 4855:return an+e.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+e;case 4789:return ru+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return an+e+ru+e+Tn+e+e;case 5936:switch(tr(e,t+11)){case 114:return an+e+Tn+Lt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return an+e+Tn+Lt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return an+e+Tn+Lt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return an+e+Tn+e+e;case 6165:return an+e+Tn+"flex-"+e+e;case 5187:return an+e+Lt(e,/(\w+).+(:[^]+)/,an+"box-$1$2"+Tn+"flex-$1$2")+e;case 5443:return an+e+Tn+"flex-item-"+Lt(e,/flex-|-self/g,"")+(va(e,/flex-|baseline/)?"":Tn+"grid-row-"+Lt(e,/flex-|-self/g,""))+e;case 4675:return an+e+Tn+"flex-line-pack"+Lt(e,/align-content|flex-|-self/g,"")+e;case 5548:return an+e+Tn+Lt(e,"shrink","negative")+e;case 5292:return an+e+Tn+Lt(e,"basis","preferred-size")+e;case 6060:return an+"box-"+Lt(e,"-grow","")+an+e+Tn+Lt(e,"grow","positive")+e;case 4554:return an+Lt(e,/([^-])(transform)/g,"$1"+an+"$2")+e;case 6187:return Lt(Lt(Lt(e,/(zoom-|grab)/,an+"$1"),/(image-set)/,an+"$1"),e,"")+e;case 5495:case 3959:return Lt(e,/(image-set\([^]*)/,an+"$1$`$1");case 4968:return Lt(Lt(e,/(.+:)(flex-)?(.*)/,an+"box-pack:$3"+Tn+"flex-pack:$3"),/space-between/,"justify")+an+e+e;case 4200:if(!va(e,/flex-|baseline/))return Tn+"grid-column-align"+Qi(e,t)+e;break;case 2592:case 3360:return Tn+Lt(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,i){return t=i,va(r.props,/grid-\w+-end/)})?~ym(e+(n=n[t].value),"span",0)?e:Tn+Lt(e,"-start","")+e+Tn+"grid-row-span:"+(~ym(n,"span",0)?va(n,/\d+/):+va(n,/\d+/)-+va(e,/\d+/))+";":Tn+Lt(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return va(r.props,/grid-\w+-start/)})?e:Tn+Lt(Lt(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Lt(e,/(.+)-inline(.+)/,an+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Io(e)-1-t>6)switch(tr(e,t+1)){case 109:if(tr(e,t+4)!==45)break;case 102:return Lt(e,/(.+:)(.+)-([^]+)/,"$1"+an+"$2-$3$1"+ru+(tr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~ym(e,"stretch",0)?wR(Lt(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return Lt(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,i,s,c,d,f,p){return Tn+i+":"+s+p+(c?Tn+i+"-span:"+(d?f:+f-+s)+p:"")+e});case 4949:if(tr(e,t+6)===121)return Lt(e,":",":"+an)+e;break;case 6444:switch(tr(e,tr(e,14)===45?18:11)){case 120:return Lt(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+an+(tr(e,14)===45?"inline-":"")+"box$3$1"+an+"$2$3$1"+Tn+"$2box$3")+e;case 100:return Lt(e,":",":"+Tn)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Lt(e,"scroll-","scroll-snap-")+e}return e}function vu(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function Pw(e,t,n,r){switch(e.type){case _8:if(e.children.length)break;case D8:case j8:case ES:return e.return=e.return||e.value;case bR:return"";case vR:return e.return=e.value+"{"+vu(e.children,r)+"}";case wS:if(!Io(e.value=e.props.join(",")))return""}return Io(n=vu(e.children,r))?e.return=e.value+"{"+n+"}":""}function X8(e){var t=$R(e);return function(n,r,i,s){for(var c="",d=0;d<t;d++)c+=e[d](n,r,i,s)||"";return c}}function K8(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case ES:e.return=wR(e.value,e.length,n);return;case vR:return vu([ei(e,{value:Lt(e.value,"@","@"+an)})],r);case wS:if(e.length)return B8(n=e.props,function(i){switch(va(i,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Gl(ei(e,{props:[Lt(i,/:(read-\w+)/,":"+ru+"$1")]})),Gl(ei(e,{props:[i]})),Cb(e,{props:Tw(n,r)});break;case"::placeholder":Gl(ei(e,{props:[Lt(i,/:(plac\w+)/,":"+an+"input-$1")]})),Gl(ei(e,{props:[Lt(i,/:(plac\w+)/,":"+ru+"$1")]})),Gl(ei(e,{props:[Lt(i,/:(plac\w+)/,Tn+"input-$1")]})),Gl(ei(e,{props:[i]})),Cb(e,{props:Tw(n,r)});break}return""})}}const zw="data-ant-cssinjs-cache-path",ER="_FILE_STYLE__";let Xi,MR=!0;function Q8(){if(!Xi&&(Xi={},kr())){const e=document.createElement("div");e.className=zw,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);let t=getComputedStyle(e).content||"";t=t.replace(/^"/,"").replace(/"$/,""),t.split(";").forEach(r=>{const[i,s]=r.split(":");Xi[i]=s});const n=document.querySelector(`style[${zw}]`);n&&(MR=!1,n.parentNode?.removeChild(n)),document.body.removeChild(e)}}function Z8(e){return Q8(),!!Xi[e]}function J8(e){const t=Xi[e];let n=null;if(t&&kr())if(MR)n=ER;else{const r=document.querySelector(`style[${$a}="${Xi[e]}"]`);r?n=r.innerHTML:delete Xi[e]}return[n,t]}const ez="_skip_check_",RR="_multi_value_";function py(e,t){return(t?vu(Ow(e),X8([K8,Pw])):vu(Ow(e),Pw)).replace(/\{%%%\:[^;];}/g,";")}function tz(e){return typeof e=="object"&&e&&(ez in e||RR in e)}function Aw(e,t,n="high"){if(!t)return e;const r=hR({hashCls:t,hashPriority:n});return e.split(",").map(s=>{const c=s.trim().split(/\s+/);let d=c[0]||"";const f=d.match(/^\w+/)?.[0]||"";return d=`${f}${r}${d.slice(f.length)}`,[d,...c.slice(1)].join(" ")}).join(",")}const xb=(e,t={},{root:n,injectHash:r,parentSelectors:i}={root:!0,parentSelectors:[]})=>{const{hashId:s,layer:c,path:d,hashPriority:f,transformers:p=[],linters:g=[]}=t;let h="",y={};function C(S){const $=S.getName(s);if(!y[$]){const[M]=xb(S.style,t,{root:!1,parentSelectors:i});y[$]=`@keyframes ${S.getName(s)}${M}`}}function b(S,$=[]){return S.forEach(M=>{Array.isArray(M)?b(M,$):M&&$.push(M)}),$}return b(Array.isArray(e)?e:[e]).forEach(S=>{const $=typeof S=="string"&&!n?{}:S;if(typeof $=="string")h+=`${$}
11
+ `;else if($._keyframe)C($);else{const M=p.reduce((w,R)=>R?.visit?.(w)||w,$);Object.keys(M).forEach(w=>{const R=M[w];if(typeof R=="object"&&R&&(w!=="animationName"||!R._keyframe)&&!tz(R)){let T=!1,N=w.trim(),O=!1;(n||r)&&s?N.startsWith("@")?T=!0:N==="&"?N=Aw("",s,f):N=Aw(w,s,f):n&&!s&&(N==="&"||N==="")&&(N="",O=!0);const[P,D]=xb(R,t,{root:O,injectHash:T,parentSelectors:[...i,N]});y={...y,...D},h+=`${N}${P}`}else{let T=function(O,P){const D=O.replace(/[A-Z]/g,F=>`-${F.toLowerCase()}`);let k=P;!A8[O]&&typeof k=="number"&&k!==0&&(k=`${k}px`),O==="animationName"&&P?._keyframe&&(C(P),k=P.getName(s)),h+=`${D}:${k};`};const N=R?.value??R;typeof R=="object"&&R?.[RR]&&Array.isArray(N)?N.forEach(O=>{T(w,O)}):T(w,N)}})}}),n?c&&(h&&(h=`@layer ${c.name} {${h}}`),c.dependencies&&(y[`@layer ${c.name}`]=c.dependencies.map(S=>`@layer ${S}, ${c.name};`).join(`
12
+ `))):h=`{${h}}`,[h,y]};function TR(e,t){return gu(`${e.join("%")}${t}`)}const nz="style";function wb(e,t){const{path:n,hashId:r,layer:i,nonce:s,clientOnly:c,order:d=0}=e,{mock:f,hashPriority:p,container:g,transformers:h,linters:y,cache:C,layer:b,autoPrefix:x}=l.useContext(ad),S=[r||""];b&&S.push("layer"),S.push(...n);let $=Sb;xS(nz,S,()=>{const M=S.join("|");if(Z8(M)){const[P,D]=J8(M);if(P)return[P,D,{},c,d]}const w=t(),[R,T]=xb(w,{hashId:r,hashPriority:p,layer:b?i:void 0,path:n.join("-"),transformers:h,linters:y}),N=py(R,x||!1),O=TR(S,N);return[N,O,T,c,d]},(M,w)=>{const[,R]=M;w&&Sb&&hu(R,{mark:$a,attachTo:g})},M=>{const[w,R,T,,N]=M;if($&&w!==ER){const O={mark:$a,prepend:b?!1:"queue",attachTo:g,priority:N},P=typeof s=="function"?s():s;P&&(O.csp={nonce:P});const D=[],k=[];Object.keys(T).forEach(Y=>{Y.startsWith("@layer")?D.push(Y):k.push(Y)}),D.forEach(Y=>{ii(py(T[Y],x||!1),`_layer-${Y}`,{...O,prepend:!0})});const F=ii(w,R,O);F[Gi]=C.instanceId,k.forEach(Y=>{ii(py(T[Y],x||!1),`_effect-${Y}`,O)})}})}const rz="cssVar",oz=(e,t)=>{const{key:n,prefix:r,unitless:i,ignore:s,token:c,hashId:d,scope:f=""}=e,{cache:{instanceId:p},container:g,hashPriority:h}=l.useContext(ad),{_tokenKey:y}=c,C=[...e.path,n,f,y];return xS(rz,C,()=>{const x=t(),[S,$]=yR(x,n,{prefix:r,unitless:i,ignore:s,scope:f,hashPriority:h,hashCls:d}),M=TR(C,$);return[S,$,M,n]},([,,x])=>{Sb&&hu(x,{mark:$a,attachTo:g})},([,x,S])=>{if(!x)return;const $=ii(x,S,{mark:$a,prepend:"queue",attachTo:g,priority:-999});$[Gi]=p,$.setAttribute($S,n)})};class Dt{name;style;constructor(t,n){this.name=t,this.style=n}getName(t=""){return t?`${t}-${this.name}`:this.name}_keyframe=!0}function Xl(e){return e.notSplit=!0,e}Xl(["borderTop","borderBottom"]),Xl(["borderTop"]),Xl(["borderBottom"]),Xl(["borderLeft","borderRight"]),Xl(["borderLeft"]),Xl(["borderRight"]);function Xn(e){"@babel/helpers - typeof";return Xn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xn(e)}function az(e){if(Array.isArray(e))return e}function iz(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,c,d=[],f=!0,p=!1;try{if(s=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;f=!1}else for(;!(f=(r=s.call(n)).done)&&(d.push(r.value),d.length!==t);f=!0);}catch(g){p=!0,i=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(p)throw i}}return d}}function lz(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
13
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function OR(e,t){return az(e)||iz(e,t)||sR(e,t)||lz()}function sz(e,t){if(Xn(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Xn(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function NR(e){var t=sz(e,"string");return Xn(t)=="symbol"?t:t+""}function dr(e,t,n){return(t=NR(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Dw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function _n(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Dw(Object(n),!0).forEach(function(r){dr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ll(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cz(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,NR(r.key),r)}}function sl(e,t,n){return t&&cz(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ys(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Su(e,t){return Su=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Su(e,t)}function RS(e,t){if(typeof t!="function"&&t!==null)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&&Su(e,t)}function Zi(e){return Zi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Zi(e)}function xp(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(xp=function(){return!!e})()}function IR(e,t){if(t&&(Xn(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ys(e)}function PR(e){var t=xp();return function(){var n,r=Zi(e);if(t){var i=Zi(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return IR(this,n)}}var uz=sl(function e(){ll(this,e)}),zR="CALC_UNIT",dz=new RegExp(zR,"g");function gy(e){return typeof e=="number"?"".concat(e).concat(zR):e}var fz=(function(e){RS(n,e);var t=PR(n);function n(r,i){var s;ll(this,n),s=t.call(this),dr(ys(s),"result",""),dr(ys(s),"unitlessCssVar",void 0),dr(ys(s),"lowPriority",void 0);var c=Xn(r);return s.unitlessCssVar=i,r instanceof n?s.result="(".concat(r.result,")"):c==="number"?s.result=gy(r):c==="string"&&(s.result=r),s}return sl(n,[{key:"add",value:function(i){return i instanceof n?this.result="".concat(this.result," + ").concat(i.getResult()):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," + ").concat(gy(i))),this.lowPriority=!0,this}},{key:"sub",value:function(i){return i instanceof n?this.result="".concat(this.result," - ").concat(i.getResult()):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," - ").concat(gy(i))),this.lowPriority=!0,this}},{key:"mul",value:function(i){return this.lowPriority&&(this.result="(".concat(this.result,")")),i instanceof n?this.result="".concat(this.result," * ").concat(i.getResult(!0)):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," * ").concat(i)),this.lowPriority=!1,this}},{key:"div",value:function(i){return this.lowPriority&&(this.result="(".concat(this.result,")")),i instanceof n?this.result="".concat(this.result," / ").concat(i.getResult(!0)):(typeof i=="number"||typeof i=="string")&&(this.result="".concat(this.result," / ").concat(i)),this.lowPriority=!1,this}},{key:"getResult",value:function(i){return this.lowPriority||i?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(i){var s=this,c=i||{},d=c.unit,f=!0;return typeof d=="boolean"?f=d:Array.from(this.unitlessCssVar).some(function(p){return s.result.includes(p)})&&(f=!1),this.result=this.result.replace(dz,f?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),n})(uz),mz=function(t,n){var r=fz;return function(i){return new r(i,n)}},jw=function(t,n){return"".concat([n,t.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function _w(e,t,n,r){var i=_n({},t[e]);if(r!=null&&r.deprecatedTokens){var s=r.deprecatedTokens;s.forEach(function(d){var f=OR(d,2),p=f[0],g=f[1];if(i!=null&&i[p]||i!=null&&i[g]){var h;(h=i[g])!==null&&h!==void 0||(i[g]=i?.[p])}})}var c=_n(_n({},n),i);return Object.keys(c).forEach(function(d){c[d]===t[d]&&delete c[d]}),c}var AR=typeof CSSINJS_STATISTIC<"u",Eb=!0;function Nt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!AR)return Object.assign.apply(Object,[{}].concat(t));Eb=!1;var r={};return t.forEach(function(i){if(Xn(i)==="object"){var s=Object.keys(i);s.forEach(function(c){Object.defineProperty(r,c,{configurable:!0,enumerable:!0,get:function(){return i[c]}})})}}),Eb=!0,r}var Hw={};function pz(){}var gz=function(t){var n,r=t,i=pz;return AR&&typeof Proxy<"u"&&(n=new Set,r=new Proxy(t,{get:function(c,d){if(Eb){var f;(f=n)===null||f===void 0||f.add(d)}return c[d]}}),i=function(c,d){var f;Hw[c]={global:Array.from(n),component:_n(_n({},(f=Hw[c])===null||f===void 0?void 0:f.component),d)}}),{token:r,keys:n,flush:i}};function Bw(e,t,n){if(typeof n=="function"){var r;return n(Nt(t,(r=t[e])!==null&&r!==void 0?r:{}))}return n??{}}function hz(e){return{max:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return"max(".concat(r.map(function(s){return te(s)}).join(","),")")},min:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return"min(".concat(r.map(function(s){return te(s)}).join(","),")")}}}var yz=1e3*60*10,bz=(function(){function e(){ll(this,e),dr(this,"map",new Map),dr(this,"objectIDMap",new WeakMap),dr(this,"nextID",0),dr(this,"lastAccessBeat",new Map),dr(this,"accessBeat",0)}return sl(e,[{key:"set",value:function(n,r){this.clear();var i=this.getCompositeKey(n);this.map.set(i,r),this.lastAccessBeat.set(i,Date.now())}},{key:"get",value:function(n){var r=this.getCompositeKey(n),i=this.map.get(r);return this.lastAccessBeat.set(r,Date.now()),this.accessBeat+=1,i}},{key:"getCompositeKey",value:function(n){var r=this,i=n.map(function(s){return s&&Xn(s)==="object"?"obj_".concat(r.getObjectID(s)):"".concat(Xn(s),"_").concat(s)});return i.join("|")}},{key:"getObjectID",value:function(n){if(this.objectIDMap.has(n))return this.objectIDMap.get(n);var r=this.nextID;return this.objectIDMap.set(n,r),this.nextID+=1,r}},{key:"clear",value:function(){var n=this;if(this.accessBeat>1e4){var r=Date.now();this.lastAccessBeat.forEach(function(i,s){r-i>yz&&(n.map.delete(s),n.lastAccessBeat.delete(s))}),this.accessBeat=0}}}]),e})(),Lw=new bz;function vz(e,t){return ae.useMemo(function(){var n=Lw.get(t);if(n)return n;var r=e();return Lw.set(t,r),r},t)}var Sz=function(){return{}};function Cz(e){var t=e.useCSP,n=t===void 0?Sz:t,r=e.useToken,i=e.usePrefix,s=e.getResetStyles,c=e.getCommonStyle,d=e.getCompUnitless;function f(y,C,b,x){var S=Array.isArray(y)?y[0]:y;function $(P){return"".concat(String(S)).concat(P.slice(0,1).toUpperCase()).concat(P.slice(1))}var M=x?.unitless||{},w=typeof d=="function"?d(y):{},R=_n(_n({},w),{},dr({},$("zIndexPopup"),!0));Object.keys(M).forEach(function(P){R[$(P)]=M[P]});var T=_n(_n({},x),{},{unitless:R,prefixToken:$}),N=g(y,C,b,T),O=p(S,b,T);return function(P){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:P,k=N(P,D),F=O(D);return[k,F]}}function p(y,C,b){var x=b.unitless,S=b.prefixToken,$=b.ignore;return function(M){var w=r(),R=w.cssVar,T=w.realToken;return oz({path:[y],prefix:R.prefix,key:R.key,unitless:x,ignore:$,token:T,scope:M},function(){var N=Bw(y,T,C),O=_w(y,T,N,{deprecatedTokens:b?.deprecatedTokens});return N&&Object.keys(N).forEach(function(P){O[S(P)]=O[P],delete O[P]}),O}),R?.key}}function g(y,C,b){var x=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},S=Array.isArray(y)?y:[y,y],$=OR(S,1),M=$[0],w=S.join("-"),R=e.layer||{name:"antd"};return function(T){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:T,O=r(),P=O.theme,D=O.realToken,k=O.hashId,F=O.token,Y=O.cssVar,G=O.zeroRuntime,V=l.useMemo(function(){return G},[]);if(V)return k;var B=i(),_=B.rootPrefixCls,H=B.iconPrefixCls,I=n(),z="css",L=vz(function(){var K=new Set;return Object.keys(x.unitless||{}).forEach(function(J){K.add(hm(J,Y.prefix)),K.add(hm(J,jw(M,Y.prefix)))}),mz(z,K)},[z,M,Y?.prefix]),A=hz(),j=A.max,q=A.min,X={theme:P,token:F,hashId:k,nonce:function(){return I.nonce},clientOnly:x.clientOnly,layer:R,order:x.order||-999};return typeof s=="function"&&wb(_n(_n({},X),{},{clientOnly:!1,path:["Shared",_]}),function(){return s(F,{prefix:{rootPrefixCls:_,iconPrefixCls:H},csp:I})}),wb(_n(_n({},X),{},{path:[w,T,H]}),function(){if(x.injectStyle===!1)return[];var K=gz(F),J=K.token,Z=K.flush,re=Bw(M,D,b),ne=".".concat(T),ie=_w(M,D,re,{deprecatedTokens:x.deprecatedTokens});re&&Xn(re)==="object"&&Object.keys(re).forEach(function(ge){re[ge]="var(".concat(hm(ge,jw(M,Y.prefix)),")")});var fe=Nt(J,{componentCls:ne,prefixCls:T,iconCls:".".concat(H),antCls:".".concat(_),calc:L,max:j,min:q},re),le=C(fe,{hashId:k,prefixCls:T,rootPrefixCls:_,iconPrefixCls:H});Z(M,ie);var ue=typeof c=="function"?c(fe,T,N,x.resetFont):null;return[x.resetStyle===!1?null:ue,le]}),k}}function h(y,C,b){var x=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},S=g(y,C,b,_n({resetStyle:!1,order:-998},x)),$=function(w){var R=w.prefixCls,T=w.rootCls,N=T===void 0?R:T;return S(R,N),null};return $}return{genStyleHooks:f,genSubStyleComponent:h,genComponentStyleHook:g}}const ci=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function Sm(e){return(e+8)/e}function $z(e){const t=Array.from({length:10}).map((n,r)=>{const i=r-1,s=e*Math.E**(i/5),c=r>1?Math.floor(s):Math.ceil(s);return Math.floor(c/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:Sm(n)}))}const xz="6.1.4",DR={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"},Cu={...DR,colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
14
+ 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
15
+ '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},wz={aliceblue:"9ehhb",antiquewhite:"9sgk7",aqua:"1ekf",aquamarine:"4zsno",azure:"9eiv3",beige:"9lhp8",bisque:"9zg04",black:"0",blanchedalmond:"9zhe5",blue:"73",blueviolet:"5e31e",brown:"6g016",burlywood:"8ouiv",cadetblue:"3qba8",chartreuse:"4zshs",chocolate:"87k0u",coral:"9yvyo",cornflowerblue:"3xael",cornsilk:"9zjz0",crimson:"8l4xo",cyan:"1ekf",darkblue:"3v",darkcyan:"rkb",darkgoldenrod:"776yz",darkgray:"6mbhl",darkgreen:"jr4",darkgrey:"6mbhl",darkkhaki:"7ehkb",darkmagenta:"5f91n",darkolivegreen:"3bzfz",darkorange:"9yygw",darkorchid:"5z6x8",darkred:"5f8xs",darksalmon:"9441m",darkseagreen:"5lwgf",darkslateblue:"2th1n",darkslategray:"1ugcv",darkslategrey:"1ugcv",darkturquoise:"14up",darkviolet:"5rw7n",deeppink:"9yavn",deepskyblue:"11xb",dimgray:"442g9",dimgrey:"442g9",dodgerblue:"16xof",firebrick:"6y7tu",floralwhite:"9zkds",forestgreen:"1cisi",fuchsia:"9y70f",gainsboro:"8m8kc",ghostwhite:"9pq0v",goldenrod:"8j4f4",gold:"9zda8",gray:"50i2o",green:"pa8",greenyellow:"6senj",grey:"50i2o",honeydew:"9eiuo",hotpink:"9yrp0",indianred:"80gnw",indigo:"2xcoy",ivory:"9zldc",khaki:"9edu4",lavenderblush:"9ziet",lavender:"90c8q",lawngreen:"4vk74",lemonchiffon:"9zkct",lightblue:"6s73a",lightcoral:"9dtog",lightcyan:"8s1rz",lightgoldenrodyellow:"9sjiq",lightgray:"89jo3",lightgreen:"5nkwg",lightgrey:"89jo3",lightpink:"9z6wx",lightsalmon:"9z2ii",lightseagreen:"19xgq",lightskyblue:"5arju",lightslategray:"4nwk9",lightslategrey:"4nwk9",lightsteelblue:"6wau6",lightyellow:"9zlcw",lime:"1edc",limegreen:"1zcxe",linen:"9shk6",magenta:"9y70f",maroon:"4zsow",mediumaquamarine:"40eju",mediumblue:"5p",mediumorchid:"79qkz",mediumpurple:"5r3rv",mediumseagreen:"2d9ip",mediumslateblue:"4tcku",mediumspringgreen:"1di2",mediumturquoise:"2uabw",mediumvioletred:"7rn9h",midnightblue:"z980",mintcream:"9ljp6",mistyrose:"9zg0x",moccasin:"9zfzp",navajowhite:"9zest",navy:"3k",oldlace:"9wq92",olive:"50hz4",olivedrab:"472ub",orange:"9z3eo",orangered:"9ykg0",orchid:"8iu3a",palegoldenrod:"9bl4a",palegreen:"5yw0o",paleturquoise:"6v4ku",palevioletred:"8k8lv",papayawhip:"9zi6t",peachpuff:"9ze0p",peru:"80oqn",pink:"9z8wb",plum:"8nba5",powderblue:"6wgdi",purple:"4zssg",rebeccapurple:"3zk49",red:"9y6tc",rosybrown:"7cv4f",royalblue:"2jvtt",saddlebrown:"5fmkz",salmon:"9rvci",sandybrown:"9jn1c",seagreen:"1tdnb",seashell:"9zje6",sienna:"6973h",silver:"7ir40",skyblue:"5arjf",slateblue:"45e4t",slategray:"4e100",slategrey:"4e100",snow:"9zke2",springgreen:"1egv",steelblue:"2r1kk",tan:"87yx8",teal:"pds",thistle:"8ggk8",tomato:"9yqfb",turquoise:"2j4r4",violet:"9b10u",wheat:"9ld4j",white:"9zldr",whitesmoke:"9lhpx",yellow:"9zl6o",yellowgreen:"61fzm"},cr=Math.round;function hy(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(i=>parseFloat(i));for(let i=0;i<3;i+=1)r[i]=t(r[i]||0,n[i]||"",i);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const Vw=(e,t,n)=>n===0?e:e/100;function zc(e,t){const n=t||255;return e>n?n:e<0?0:e}class Jt{isValid=!0;r=0;g=0;b=0;a=1;_h;_s;_l;_v;_max;_min;_brightness;constructor(t){function n(r){return r[0]in t&&r[1]in t&&r[2]in t}if(t)if(typeof t=="string"){let i=function(s){return r.startsWith(s)};const r=t.trim();if(/^#?[A-F\d]{3,8}$/i.test(r))this.fromHexString(r);else if(i("rgb"))this.fromRgbString(r);else if(i("hsl"))this.fromHslString(r);else if(i("hsv")||i("hsb"))this.fromHsvString(r);else{const s=wz[r.toLowerCase()];s&&this.fromHexString(parseInt(s,36).toString(16).padStart(6,"0"))}}else if(t instanceof Jt)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._s=t._s,this._l=t._l,this._v=t._v;else if(n("rgb"))this.r=zc(t.r),this.g=zc(t.g),this.b=zc(t.b),this.a=typeof t.a=="number"?zc(t.a,1):1;else if(n("hsl"))this.fromHsl(t);else if(n("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){const n=this.toHsv();return n.h=t,this._c(n)}getLuminance(){function t(s){const c=s/255;return c<=.03928?c/12.92:Math.pow((c+.055)/1.055,2.4)}const n=t(this.r),r=t(this.g),i=t(this.b);return .2126*n+.7152*r+.0722*i}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=cr(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/t+2:(this.r-this.g)/t+4))}return this._h}getSaturation(){if(typeof this._s>"u"){const t=this.getMax()-this.getMin();t===0?this._s=0:this._s=t/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){const n=this.getHue(),r=this.getSaturation();let i=this.getLightness()-t/100;return i<0&&(i=0),this._c({h:n,s:r,l:i,a:this.a})}lighten(t=10){const n=this.getHue(),r=this.getSaturation();let i=this.getLightness()+t/100;return i>1&&(i=1),this._c({h:n,s:r,l:i,a:this.a})}mix(t,n=50){const r=this._c(t),i=n/100,s=d=>(r[d]-this[d])*i+this[d],c={r:cr(s("r")),g:cr(s("g")),b:cr(s("b")),a:cr(s("a")*100)/100};return this._c(c)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){const n=this._c(t),r=this.a+n.a*(1-this.a),i=s=>cr((this[s]*this.a+n[s]*n.a*(1-this.a))/r);return this._c({r:i("r"),g:i("g"),b:i("b"),a:r})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#";const n=(this.r||0).toString(16);t+=n.length===2?n:"0"+n;const r=(this.g||0).toString(16);t+=r.length===2?r:"0"+r;const i=(this.b||0).toString(16);if(t+=i.length===2?i:"0"+i,typeof this.a=="number"&&this.a>=0&&this.a<1){const s=cr(this.a*255).toString(16);t+=s.length===2?s:"0"+s}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),n=cr(this.getSaturation()*100),r=cr(this.getLightness()*100);return this.a!==1?`hsla(${t},${n}%,${r}%,${this.a})`:`hsl(${t},${n}%,${r}%)`}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 this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,n,r){const i=this.clone();return i[t]=zc(n,r),i}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){const n=t.replace("#","");function r(i,s){return parseInt(n[i]+n[s||i],16)}n.length<6?(this.r=r(0),this.g=r(1),this.b=r(2),this.a=n[3]?r(3)/255:1):(this.r=r(0,1),this.g=r(2,3),this.b=r(4,5),this.a=n[6]?r(6,7)/255:1)}fromHsl({h:t,s:n,l:r,a:i}){if(this._h=t%360,this._s=n,this._l=r,this.a=typeof i=="number"?i:1,n<=0){const y=cr(r*255);this.r=y,this.g=y,this.b=y}let s=0,c=0,d=0;const f=t/60,p=(1-Math.abs(2*r-1))*n,g=p*(1-Math.abs(f%2-1));f>=0&&f<1?(s=p,c=g):f>=1&&f<2?(s=g,c=p):f>=2&&f<3?(c=p,d=g):f>=3&&f<4?(c=g,d=p):f>=4&&f<5?(s=g,d=p):f>=5&&f<6&&(s=p,d=g);const h=r-p/2;this.r=cr((s+h)*255),this.g=cr((c+h)*255),this.b=cr((d+h)*255)}fromHsv({h:t,s:n,v:r,a:i}){this._h=t%360,this._s=n,this._v=r,this.a=typeof i=="number"?i:1;const s=cr(r*255);if(this.r=s,this.g=s,this.b=s,n<=0)return;const c=t/60,d=Math.floor(c),f=c-d,p=cr(r*(1-n)*255),g=cr(r*(1-n*f)*255),h=cr(r*(1-n*(1-f))*255);switch(d){case 0:this.g=h,this.b=p;break;case 1:this.r=g,this.b=p;break;case 2:this.r=p,this.b=h;break;case 3:this.r=p,this.g=g;break;case 4:this.r=h,this.g=p;break;default:this.g=p,this.b=g;break}}fromHsvString(t){const n=hy(t,Vw);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=hy(t,Vw);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=hy(t,(r,i)=>i.includes("%")?cr(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}const jf=2,Fw=.16,Ez=.05,Mz=.05,Rz=.15,jR=5,_R=4,Tz=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function kw(e,t,n){let r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-jf*t:Math.round(e.h)+jf*t:r=n?Math.round(e.h)+jf*t:Math.round(e.h)-jf*t,r<0?r+=360:r>=360&&(r-=360),r}function Ww(e,t,n){if(e.h===0&&e.s===0)return e.s;let r;return n?r=e.s-Fw*t:t===_R?r=e.s+Fw:r=e.s+Ez*t,r>1&&(r=1),n&&t===jR&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function qw(e,t,n){let r;return n?r=e.v+Mz*t:r=e.v-Rz*t,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function TS(e,t={}){const n=[],r=new Jt(e),i=r.toHsv();for(let s=jR;s>0;s-=1){const c=new Jt({h:kw(i,s,!0),s:Ww(i,s,!0),v:qw(i,s,!0)});n.push(c)}n.push(r);for(let s=1;s<=_R;s+=1){const c=new Jt({h:kw(i,s),s:Ww(i,s),v:qw(i,s)});n.push(c)}return t.theme==="dark"?Tz.map(({index:s,amount:c})=>new Jt(t.backgroundColor||"#141414").mix(n[s],c).toHexString()):n.map(s=>s.toHexString())}const bs={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},Mb=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];Mb.primary=Mb[5];const Rb=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];Rb.primary=Rb[5];const Tb=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];Tb.primary=Tb[5];const _m=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];_m.primary=_m[5];const Ob=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];Ob.primary=Ob[5];const Nb=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];Nb.primary=Nb[5];const Ib=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];Ib.primary=Ib[5];const Pb=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];Pb.primary=Pb[5];const Hm=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Hm.primary=Hm[5];const zb=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];zb.primary=zb[5];const Ab=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];Ab.primary=Ab[5];const Db=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];Db.primary=Db[5];const jb=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];jb.primary=jb[5];const yy={red:Mb,volcano:Rb,orange:Tb,gold:_m,yellow:Ob,lime:Nb,green:Ib,cyan:Pb,blue:Hm,geekblue:zb,purple:Ab,magenta:Db,grey:jb};function Oz(e,{generateColorPalettes:t,generateNeutralColorPalettes:n}){const{colorSuccess:r,colorWarning:i,colorError:s,colorInfo:c,colorPrimary:d,colorBgBase:f,colorTextBase:p}=e,g=t(d),h=t(r),y=t(i),C=t(s),b=t(c),x=n(f,p),S=e.colorLink||e.colorInfo,$=t(S),M=new Jt(C[1]).mix(new Jt(C[3]),50).toHexString();return{...x,colorPrimaryBg:g[1],colorPrimaryBgHover:g[2],colorPrimaryBorder:g[3],colorPrimaryBorderHover:g[4],colorPrimaryHover:g[5],colorPrimary:g[6],colorPrimaryActive:g[7],colorPrimaryTextHover:g[8],colorPrimaryText:g[9],colorPrimaryTextActive:g[10],colorSuccessBg:h[1],colorSuccessBgHover:h[2],colorSuccessBorder:h[3],colorSuccessBorderHover:h[4],colorSuccessHover:h[4],colorSuccess:h[6],colorSuccessActive:h[7],colorSuccessTextHover:h[8],colorSuccessText:h[9],colorSuccessTextActive:h[10],colorErrorBg:C[1],colorErrorBgHover:C[2],colorErrorBgFilledHover:M,colorErrorBgActive:C[3],colorErrorBorder:C[3],colorErrorBorderHover:C[4],colorErrorHover:C[5],colorError:C[6],colorErrorActive:C[7],colorErrorTextHover:C[8],colorErrorText:C[9],colorErrorTextActive:C[10],colorWarningBg:y[1],colorWarningBgHover:y[2],colorWarningBorder:y[3],colorWarningBorderHover:y[4],colorWarningHover:y[4],colorWarning:y[6],colorWarningActive:y[7],colorWarningTextHover:y[8],colorWarningText:y[9],colorWarningTextActive:y[10],colorInfoBg:b[1],colorInfoBgHover:b[2],colorInfoBorder:b[3],colorInfoBorderHover:b[4],colorInfoHover:b[4],colorInfo:b[6],colorInfoActive:b[7],colorInfoTextHover:b[8],colorInfoText:b[9],colorInfoTextActive:b[10],colorLinkHover:$[4],colorLink:$[6],colorLinkActive:$[7],colorBgMask:new Jt("#000").setA(.45).toRgbString(),colorWhite:"#fff"}}const Nz=e=>{let t=e,n=e,r=e,i=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?i=4:e>=8&&(i=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:i}};function Iz(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:i}=e;return{motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:i+1,...Nz(r)}}const Pz=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},zz=e=>{const t=$z(e),n=t.map(g=>g.size),r=t.map(g=>g.lineHeight),i=n[1],s=n[0],c=n[2],d=r[1],f=r[0],p=r[2];return{fontSizeSM:s,fontSize:i,fontSizeLG:c,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:d,lineHeightLG:p,lineHeightSM:f,fontHeight:Math.round(d*i),fontHeightLG:Math.round(p*c),fontHeightSM:Math.round(f*s),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function Az(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)}}const ho=(e,t)=>new Jt(e).setA(t).toRgbString(),Kl=(e,t)=>new Jt(e).darken(t).toHexString(),Dz=e=>{const t=TS(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]}},jz=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:ho(r,.88),colorTextSecondary:ho(r,.65),colorTextTertiary:ho(r,.45),colorTextQuaternary:ho(r,.25),colorFill:ho(r,.15),colorFillSecondary:ho(r,.06),colorFillTertiary:ho(r,.04),colorFillQuaternary:ho(r,.02),colorBgSolid:ho(r,1),colorBgSolidHover:ho(r,.75),colorBgSolidActive:ho(r,.95),colorBgLayout:Kl(n,4),colorBgContainer:Kl(n,0),colorBgElevated:Kl(n,0),colorBgSpotlight:ho(r,.85),colorBgBlur:"transparent",colorBorder:Kl(n,15),colorBorderDisabled:Kl(n,15),colorBorderSecondary:Kl(n,6)}};function HR(e){bs.pink=bs.magenta,yy.pink=yy.magenta;const t=Object.keys(DR).map(n=>{const r=e[n]===bs[n]?yy[n]:TS(e[n]);return Array.from({length:10},()=>1).reduce((i,s,c)=>(i[`${n}-${c+1}`]=r[c],i[`${n}${c+1}`]=r[c],i),{})}).reduce((n,r)=>(n={...n,...r},n),{});return{...e,...t,...Oz(e,{generateColorPalettes:Dz,generateNeutralColorPalettes:jz}),...zz(e.fontSize),...Az(e),...Pz(e),...Iz(e)}}const BR=vb(HR),Bm={token:Cu,override:{override:Cu},hashed:!0},LR=ae.createContext(Bm);function by(e){return e>=0&&e<=255}function Gc(e,t){const{r:n,g:r,b:i,a:s}=new Jt(e).toRgb();if(s<1)return e;const{r:c,g:d,b:f}=new Jt(t).toRgb();for(let p=.01;p<=1;p+=.01){const g=Math.round((n-c*(1-p))/p),h=Math.round((r-d*(1-p))/p),y=Math.round((i-f*(1-p))/p);if(by(g)&&by(h)&&by(y))return new Jt({r:g,g:h,b:y,a:Math.round(p*100)/100}).toRgbString()}return new Jt({r:n,g:r,b:i,a:1}).toRgbString()}function _z(e){const{override:t,...n}=e,r={...t};Object.keys(Cu).forEach(y=>{delete r[y]});const i={...n,...r},s=480,c=576,d=768,f=992,p=1200,g=1600;return i.motion===!1&&(i.motionDurationFast="0s",i.motionDurationMid="0s",i.motionDurationSlow="0s"),{...i,colorFillContent:i.colorFillSecondary,colorFillContentHover:i.colorFill,colorFillAlter:i.colorFillQuaternary,colorBgContainerDisabled:i.colorFillTertiary,colorBorderBg:i.colorBgContainer,colorSplit:Gc(i.colorBorderSecondary,i.colorBgContainer),colorTextPlaceholder:i.colorTextQuaternary,colorTextDisabled:i.colorTextQuaternary,colorTextHeading:i.colorText,colorTextLabel:i.colorTextSecondary,colorTextDescription:i.colorTextTertiary,colorTextLightSolid:i.colorWhite,colorHighlight:i.colorError,colorBgTextHover:i.colorFillSecondary,colorBgTextActive:i.colorFill,colorIcon:i.colorTextTertiary,colorIconHover:i.colorText,colorErrorOutline:Gc(i.colorErrorBg,i.colorBgContainer),colorWarningOutline:Gc(i.colorWarningBg,i.colorBgContainer),fontSizeIcon:i.fontSizeSM,lineWidthFocus:i.lineWidth*3,lineWidth:i.lineWidth,controlOutlineWidth:i.lineWidth*2,controlInteractiveSize:i.controlHeight/2,controlItemBgHover:i.colorFillTertiary,controlItemBgActive:i.colorPrimaryBg,controlItemBgActiveHover:i.colorPrimaryBgHover,controlItemBgActiveDisabled:i.colorFill,controlTmpOutline:i.colorFillQuaternary,controlOutline:Gc(i.colorPrimaryBg,i.colorBgContainer),lineType:i.lineType,borderRadius:i.borderRadius,borderRadiusXS:i.borderRadiusXS,borderRadiusSM:i.borderRadiusSM,borderRadiusLG:i.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:i.sizeXXS,paddingXS:i.sizeXS,paddingSM:i.sizeSM,padding:i.size,paddingMD:i.sizeMD,paddingLG:i.sizeLG,paddingXL:i.sizeXL,paddingContentHorizontalLG:i.sizeLG,paddingContentVerticalLG:i.sizeMS,paddingContentHorizontal:i.sizeMS,paddingContentVertical:i.sizeSM,paddingContentHorizontalSM:i.size,paddingContentVerticalSM:i.sizeXS,marginXXS:i.sizeXXS,marginXS:i.sizeXS,marginSM:i.sizeSM,margin:i.size,marginMD:i.sizeMD,marginLG:i.sizeLG,marginXL:i.sizeXL,marginXXL:i.sizeXXL,boxShadow:`
16
+ 0 6px 16px 0 rgba(0, 0, 0, 0.08),
17
+ 0 3px 6px -4px rgba(0, 0, 0, 0.12),
18
+ 0 9px 28px 8px rgba(0, 0, 0, 0.05)
19
+ `,boxShadowSecondary:`
20
+ 0 6px 16px 0 rgba(0, 0, 0, 0.08),
21
+ 0 3px 6px -4px rgba(0, 0, 0, 0.12),
22
+ 0 9px 28px 8px rgba(0, 0, 0, 0.05)
23
+ `,boxShadowTertiary:`
24
+ 0 1px 2px 0 rgba(0, 0, 0, 0.03),
25
+ 0 1px 6px -1px rgba(0, 0, 0, 0.02),
26
+ 0 2px 4px 0 rgba(0, 0, 0, 0.02)
27
+ `,screenXS:s,screenXSMin:s,screenXSMax:c-1,screenSM:c,screenSMMin:c,screenSMMax:d-1,screenMD:d,screenMDMin:d,screenMDMax:f-1,screenLG:f,screenLGMin:f,screenLGMax:p-1,screenXL:p,screenXLMin:p,screenXLMax:g-1,screenXXL:g,screenXXLMin:g,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
28
+ 0 1px 2px -2px ${new Jt("rgba(0, 0, 0, 0.16)").toRgbString()},
29
+ 0 3px 6px 0 ${new Jt("rgba(0, 0, 0, 0.12)").toRgbString()},
30
+ 0 5px 12px 4px ${new Jt("rgba(0, 0, 0, 0.09)").toRgbString()}
31
+ `,boxShadowDrawerRight:`
32
+ -6px 0 16px 0 rgba(0, 0, 0, 0.08),
33
+ -3px 0 6px -4px rgba(0, 0, 0, 0.12),
34
+ -9px 0 28px 8px rgba(0, 0, 0, 0.05)
35
+ `,boxShadowDrawerLeft:`
36
+ 6px 0 16px 0 rgba(0, 0, 0, 0.08),
37
+ 3px 0 6px -4px rgba(0, 0, 0, 0.12),
38
+ 9px 0 28px 8px rgba(0, 0, 0, 0.05)
39
+ `,boxShadowDrawerUp:`
40
+ 0 6px 16px 0 rgba(0, 0, 0, 0.08),
41
+ 0 3px 6px -4px rgba(0, 0, 0, 0.12),
42
+ 0 9px 28px 8px rgba(0, 0, 0, 0.05)
43
+ `,boxShadowDrawerDown:`
44
+ 0 -6px 16px 0 rgba(0, 0, 0, 0.08),
45
+ 0 -3px 6px -4px rgba(0, 0, 0, 0.12),
46
+ 0 -9px 28px 8px rgba(0, 0, 0, 0.05)
47
+ `,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)",...r}}const VR={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},Hz={motionBase:!0,motionUnit:!0},Bz={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},FR=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:i,...s}=t;let c={...r,override:i};return c=_z(c),s&&Object.entries(s).forEach(([d,f])=>{const{theme:p,...g}=f;let h=g;p&&(h=FR({...c,...g},{override:g},p)),c[d]=h}),c};function qr(){const{token:e,hashed:t,theme:n,override:r,cssVar:i,zeroRuntime:s}=ae.useContext(LR),c={prefix:i?.prefix??"ant",key:i?.key??"css-var-root"},d=`${xz}-${t||""}`,f=n||BR,[p,g,h]=z8(f,[Cu,e],{salt:d,override:r,getComputedToken:FR,cssVar:{...c,unitless:VR,ignore:Hz,preserve:Bz}});return[f,h,t?g:"",p,c,!!s]}const $o={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Zt=(e,t=!1)=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}),Is=()=>({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"}}),Ji=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),Lz=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"}}}),Vz=(e,t,n,r)=>{const i=`[class^="${t}"], [class*=" ${t}"]`,s=n?`.${n}`:i,c={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let d={};return r!==!1&&(d={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[s]:{...d,...c,[i]:c}}},Go=(e,t)=>({outline:`${te(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:"outline-offset 0s, outline 0s"}),xo=(e,t)=>({"&:focus-visible":Go(e,t)}),kR=e=>({[`.${e}`]:{...Is(),[`.${e} .${e}-icon`]:{display:"block"}}}),WR=e=>({color:e.colorLink,textDecoration:e.linkDecoration,outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,border:0,padding:0,background:"none",userSelect:"none",...xo(e),"&:hover":{color:e.colorLinkHover,textDecoration:e.linkHoverDecoration},"&:focus":{color:e.colorLinkHover,textDecoration:e.linkFocusDecoration},"&:active":{color:e.colorLinkActive,textDecoration:e.linkHoverDecoration}}),{genStyleHooks:zt,genComponentStyleHook:Fz,genSubStyleComponent:id}=Cz({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=l.useContext(dt);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,i,s]=qr();return{theme:e,realToken:t,hashId:n,token:r,cssVar:i,zeroRuntime:s}},useCSP:()=>{const{csp:e}=l.useContext(dt);return e??{}},getResetStyles:(e,t)=>{const n=Lz(e);return[n,{"&":n},kR(t?.prefix.iconPrefixCls??bp)]},getCommonStyle:Vz,getCompUnitless:()=>VR}),kz=(e,t)=>{const n=`--${e.replace(".","")}-${t}-`;return(r,i=!1)=>{const s=`${n}${r}`;return i?`var(${s})`:s}};function wp(e,t){return ci.reduce((n,r)=>{const i=e[`${r}1`],s=e[`${r}3`],c=e[`${r}6`],d=e[`${r}7`];return{...n,...t(r,{lightColor:i,lightBorderColor:s,darkColor:c,textColor:d})}},{})}const Wz=(e,t)=>(qr(),wb({hashId:"",path:["ant-design-icons",e],nonce:()=>t?.nonce,layer:{name:"antd"}},()=>kR(e)));var qz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};const OS=l.createContext({});function qR(e){return e?.getRootNode?.()}function Yz(e){return qR(e)instanceof ShadowRoot}function Lm(e){return Yz(e)?qR(e):null}function Uz(e){return e.replace(/-(.)/g,(t,n)=>n.toUpperCase())}function Gz(e,t){rr(e,`[@ant-design/icons] ${t}`)}function Yw(e){return typeof e=="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(typeof e.icon=="object"||typeof e.icon=="function")}function Uw(e={}){return Object.keys(e).reduce((t,n)=>{const r=e[n];return n==="class"?(t.className=r,delete t.class):(delete t[n],t[Uz(n)]=r),t},{})}function _b(e,t,n){return n?ae.createElement(e.tag,{key:t,...Uw(e.attrs),...n},(e.children||[]).map((r,i)=>_b(r,`${t}-${e.tag}-${i}`))):ae.createElement(e.tag,{key:t,...Uw(e.attrs)},(e.children||[]).map((r,i)=>_b(r,`${t}-${e.tag}-${i}`)))}function YR(e){return TS(e)[0]}function UR(e){return e?Array.isArray(e)?e:[e]:[]}const Xz=`
48
+ .anticon {
49
+ display: inline-flex;
50
+ align-items: center;
51
+ color: inherit;
52
+ font-style: normal;
53
+ line-height: 0;
54
+ text-align: center;
55
+ text-transform: none;
56
+ vertical-align: -0.125em;
57
+ text-rendering: optimizeLegibility;
58
+ -webkit-font-smoothing: antialiased;
59
+ -moz-osx-font-smoothing: grayscale;
60
+ }
61
+
62
+ .anticon > * {
63
+ line-height: 1;
64
+ }
65
+
66
+ .anticon svg {
67
+ display: inline-block;
68
+ vertical-align: inherit;
69
+ }
70
+
71
+ .anticon::before {
72
+ display: none;
73
+ }
74
+
75
+ .anticon .anticon-icon {
76
+ display: block;
77
+ }
78
+
79
+ .anticon[tabindex] {
80
+ cursor: pointer;
81
+ }
82
+
83
+ .anticon-spin::before,
84
+ .anticon-spin {
85
+ display: inline-block;
86
+ -webkit-animation: loadingCircle 1s infinite linear;
87
+ animation: loadingCircle 1s infinite linear;
88
+ }
89
+
90
+ @-webkit-keyframes loadingCircle {
91
+ 100% {
92
+ -webkit-transform: rotate(360deg);
93
+ transform: rotate(360deg);
94
+ }
95
+ }
96
+
97
+ @keyframes loadingCircle {
98
+ 100% {
99
+ -webkit-transform: rotate(360deg);
100
+ transform: rotate(360deg);
101
+ }
102
+ }
103
+ `,Kz=e=>{const{csp:t,prefixCls:n,layer:r}=l.useContext(OS);let i=Xz;n&&(i=i.replace(/anticon/g,n)),r&&(i=`@layer ${r} {
104
+ ${i}
105
+ }`),l.useEffect(()=>{const s=e.current,c=Lm(s);ii(i,"@ant-design-icons",{prepend:!r,csp:t,attachTo:c})},[])},ou={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function Qz({primaryColor:e,secondaryColor:t}){ou.primaryColor=e,ou.secondaryColor=t||YR(e),ou.calculated=!!t}function Zz(){return{...ou}}const Ps=e=>{const{icon:t,className:n,onClick:r,style:i,primaryColor:s,secondaryColor:c,...d}=e,f=l.useRef(null);let p=ou;if(s&&(p={primaryColor:s,secondaryColor:c||YR(s)}),Kz(f),Gz(Yw(t),`icon should be icon definiton, but got ${t}`),!Yw(t))return null;let g=t;return g&&typeof g.icon=="function"&&(g={...g,icon:g.icon(p.primaryColor,p.secondaryColor)}),_b(g.icon,`svg-${g.name}`,{className:n,onClick:r,style:i,"data-icon":g.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",...d,ref:f})};Ps.displayName="IconReact";Ps.getTwoToneColors=Zz;Ps.setTwoToneColors=Qz;function GR(e){const[t,n]=UR(e);return Ps.setTwoToneColors({primaryColor:t,secondaryColor:n})}function Jz(){const e=Ps.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}function Hb(){return Hb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Hb.apply(this,arguments)}GR(Hm.primary);const gt=l.forwardRef((e,t)=>{const{className:n,icon:r,spin:i,rotate:s,tabIndex:c,onClick:d,twoToneColor:f,...p}=e,{prefixCls:g="anticon",rootClassName:h}=l.useContext(OS),y=Q(h,g,{[`${g}-${r.name}`]:!!r.name,[`${g}-spin`]:!!i||r.name==="loading"},n);let C=c;C===void 0&&d&&(C=-1);const b=s?{msTransform:`rotate(${s}deg)`,transform:`rotate(${s}deg)`}:void 0,[x,S]=UR(f);return l.createElement("span",Hb({role:"img","aria-label":r.name},p,{ref:t,tabIndex:C,onClick:d,className:y}),l.createElement(Ps,{icon:r,primaryColor:x,secondaryColor:S,style:b}))});gt.getTwoToneColor=Jz;gt.setTwoToneColor=GR;function Bb(){return Bb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Bb.apply(this,arguments)}const e5=(e,t)=>l.createElement(gt,Bb({},e,{ref:t,icon:qz})),Ep=l.forwardRef(e5);var t5={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"};function Lb(){return Lb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Lb.apply(this,arguments)}const n5=(e,t)=>l.createElement(gt,Lb({},e,{ref:t,icon:t5})),zs=l.forwardRef(n5);var r5={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};function Vb(){return Vb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Vb.apply(this,arguments)}const o5=(e,t)=>l.createElement(gt,Vb({},e,{ref:t,icon:r5})),Yr=l.forwardRef(o5);var a5={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"};function Fb(){return Fb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fb.apply(this,arguments)}const i5=(e,t)=>l.createElement(gt,Fb({},e,{ref:t,icon:a5})),As=l.forwardRef(i5);var l5={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"};function kb(){return kb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kb.apply(this,arguments)}const s5=(e,t)=>l.createElement(gt,kb({},e,{ref:t,icon:l5})),NS=l.forwardRef(s5),XR=l.createContext({});function c5({children:e,...t}){return l.createElement(XR.Provider,{value:t},e)}function u5(e){const[,t]=l.useReducer(s=>s+1,0),n=l.useRef(e),r=ut(()=>n.current),i=ut(s=>{n.current=typeof s=="function"?s(n.current):s,t()});return[r,i]}const Sa="none",_f="appear",Hf="enter",Bf="leave",Gw="none",Po="prepare",ds="start",fs="active",IS="end",KR="prepared";function Xw(e,t){const n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit${e}`]=`webkit${t}`,n[`Moz${e}`]=`moz${t}`,n[`ms${e}`]=`MS${t}`,n[`O${e}`]=`o${t.toLowerCase()}`,n}function d5(e,t){const n={animationend:Xw("Animation","AnimationEnd"),transitionend:Xw("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}const f5=d5(kr(),typeof window<"u"?window:{});let QR={};kr()&&({style:QR}=document.createElement("div"));const Lf={};function ZR(e){if(Lf[e])return Lf[e];const t=f5[e];if(t){const n=Object.keys(t),r=n.length;for(let i=0;i<r;i+=1){const s=n[i];if(Object.prototype.hasOwnProperty.call(t,s)&&s in QR)return Lf[e]=t[s],Lf[e]}}return""}const JR=ZR("animationend"),eT=ZR("transitionend"),m5=!!(JR&&eT),Kw=JR||"animationend",Qw=eT||"transitionend";function Zw(e,t){if(!e)return null;if(typeof e=="object"){const n=t.replace(/-\w/g,r=>r[1].toUpperCase());return e[n]}return`${e}-${t}`}const p5=(e=>{const t=l.useRef();function n(i){i&&(i.removeEventListener(Qw,e),i.removeEventListener(Kw,e))}function r(i){t.current&&t.current!==i&&n(t.current),i&&i!==t.current&&(i.addEventListener(Qw,e),i.addEventListener(Kw,e),t.current=i)}return l.useEffect(()=>()=>{n(t.current),t.current=null},[]),[r,n]}),tT=kr()?l.useLayoutEffect:l.useEffect,g5=(()=>{const e=l.useRef(null);function t(){Bt.cancel(e.current)}function n(r,i=2){t();const s=Bt(()=>{i<=1?r({isCanceled:()=>s!==e.current}):n(r,i-1)});e.current=s}return l.useEffect(()=>()=>{t()},[]),[n,t]}),h5=[Po,ds,fs,IS],y5=[Po,KR],nT=!1,b5=!0;function rT(e){return e===fs||e===IS}const v5=((e,t,n)=>{const[r,i]=Dm(Gw),[s,c]=g5();function d(){i(Po,!0)}const f=t?y5:h5;return tT(()=>{if(r!==Gw&&r!==IS){const p=f.indexOf(r),g=f[p+1],h=n(r);h===nT?i(g,!0):g&&s(y=>{function C(){y.isCanceled()||i(g,!0)}h===!0?C():Promise.resolve(h).then(C)})}},[e,r]),l.useEffect(()=>()=>{c()},[]),[d,r]});function S5(e,t,n,{motionEnter:r=!0,motionAppear:i=!0,motionLeave:s=!0,motionDeadline:c,motionLeaveImmediately:d,onAppearPrepare:f,onEnterPrepare:p,onLeavePrepare:g,onAppearStart:h,onEnterStart:y,onLeaveStart:C,onAppearActive:b,onEnterActive:x,onLeaveActive:S,onAppearEnd:$,onEnterEnd:M,onLeaveEnd:w,onVisibleChanged:R}){const[T,N]=Dm(),[O,P]=u5(Sa),[D,k]=Dm(null),F=O(),Y=l.useRef(!1),G=l.useRef(null);function V(){return n()}const B=l.useRef(!1);function _(){P(Sa),k(null,!0)}const H=ut(Z=>{const re=O();if(re===Sa)return;const ne=V();if(Z&&!Z.deadline&&Z.target!==ne)return;const ie=B.current;let fe;re===_f&&ie?fe=$?.(ne,Z):re===Hf&&ie?fe=M?.(ne,Z):re===Bf&&ie&&(fe=w?.(ne,Z)),ie&&fe!==!1&&_()}),[I]=p5(H),z=Z=>{switch(Z){case _f:return{[Po]:f,[ds]:h,[fs]:b};case Hf:return{[Po]:p,[ds]:y,[fs]:x};case Bf:return{[Po]:g,[ds]:C,[fs]:S};default:return{}}},L=l.useMemo(()=>z(F),[F]),[A,j]=v5(F,!e,Z=>{if(Z===Po){const re=L[Po];return re?re(V()):nT}return j in L&&k(L[j]?.(V(),null)||null),j===fs&&F!==Sa&&(I(V()),c>0&&(clearTimeout(G.current),G.current=setTimeout(()=>{H({deadline:!0})},c))),j===KR&&_(),b5}),q=rT(j);B.current=q;const X=l.useRef(null);tT(()=>{if(Y.current&&X.current===t)return;N(t);const Z=Y.current;Y.current=!0;let re;!Z&&t&&i&&(re=_f),Z&&t&&r&&(re=Hf),(Z&&!t&&s||!Z&&d&&!t&&s)&&(re=Bf);const ne=z(re);re&&(e||ne[Po])?(P(re),A()):P(Sa),X.current=t},[t]),l.useEffect(()=>{(F===_f&&!i||F===Hf&&!r||F===Bf&&!s)&&P(Sa)},[i,r,s]),l.useEffect(()=>()=>{Y.current=!1,clearTimeout(G.current)},[]);const K=l.useRef(!1);l.useEffect(()=>{T&&(K.current=!0),T!==void 0&&F===Sa&&((K.current||T)&&R?.(T),K.current=!0)},[T,F]);let J=D;return L[Po]&&j===ds&&(J={transition:"none",...J}),[O,j,J,T??t]}function C5(e){let t=e;typeof e=="object"&&({transitionSupport:t}=e);function n(i,s){return!!(i.motionName&&t&&s!==!1)}const r=l.forwardRef((i,s)=>{const{visible:c=!0,removeOnLeave:d=!0,forceRender:f,children:p,motionName:g,leavedClassName:h,eventProps:y}=i,{motion:C}=l.useContext(XR),b=n(i,C),x=l.useRef();function S(){return mu(x.current)}const[$,M,w,R]=S5(b,c,S,i),T=$(),N=l.useRef(R);R&&(N.current=!0);const O=l.useMemo(()=>{const k={};return Object.defineProperties(k,{nativeElement:{enumerable:!0,get:S},inMotion:{enumerable:!0,get:()=>()=>$()!==Sa},enableMotion:{enumerable:!0,get:()=>()=>b}}),k},[]);l.useImperativeHandle(s,()=>O,[]);let P;const D={...y,visible:c};if(!p)P=null;else if(T===Sa)R?P=p({...D},x):!d&&N.current&&h?P=p({...D,className:h},x):f||!d&&!h?P=p({...D,style:{display:"none"}},x):P=null;else{let k;M===Po?k="prepare":rT(M)?k="active":M===ds&&(k="start");const F=Zw(g,`${T}-${k}`);P=p({...D,className:Q(Zw(g,T),{[F]:F&&k,[g]:typeof g=="string"}),style:w},x)}return l.isValidElement(P)&&al(P)&&(il(P)||(P=l.cloneElement(P,{ref:x}))),P});return r.displayName="CSSMotion",r}const Sr=C5(m5),Wb="add",qb="keep",Yb="remove",vy="removed";function $5(e){let t;return e&&typeof e=="object"&&"key"in e?t=e:t={key:e},{...t,key:String(t.key)}}function Ub(e=[]){return e.map($5)}function x5(e=[],t=[]){let n=[],r=0;const i=t.length,s=Ub(e),c=Ub(t);s.forEach(p=>{let g=!1;for(let h=r;h<i;h+=1){const y=c[h];if(y.key===p.key){r<h&&(n=n.concat(c.slice(r,h).map(C=>({...C,status:Wb}))),r=h),n.push({...y,status:qb}),r+=1,g=!0;break}}g||n.push({...p,status:Yb})}),r<i&&(n=n.concat(c.slice(r).map(p=>({...p,status:Wb}))));const d={};return n.forEach(({key:p})=>{d[p]=(d[p]||0)+1}),Object.keys(d).filter(p=>d[p]>1).forEach(p=>{n=n.filter(({key:g,status:h})=>g!==p||h!==Yb),n.forEach(g=>{g.key===p&&(g.status=qb)})}),n}function Gb(){return Gb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Gb.apply(this,arguments)}const w5=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function E5(e,t=Sr){class n extends l.Component{static defaultProps={component:"div"};state={keyEntities:[]};static getDerivedStateFromProps({keys:i},{keyEntities:s}){const c=Ub(i);return{keyEntities:x5(s,c).filter(f=>{const p=s.find(({key:g})=>f.key===g);return!(p&&p.status===vy&&f.status===Yb)})}}removeKey=i=>{this.setState(s=>({keyEntities:s.keyEntities.map(d=>d.key!==i?d:{...d,status:vy})}),()=>{const{keyEntities:s}=this.state;s.filter(({status:d})=>d!==vy).length===0&&this.props.onAllRemoved&&this.props.onAllRemoved()})};render(){const{keyEntities:i}=this.state,{component:s,children:c,onVisibleChanged:d,onAllRemoved:f,...p}=this.props,g=s||l.Fragment,h={};return w5.forEach(y=>{h[y]=p[y],delete p[y]}),delete p.keys,l.createElement(g,p,i.map(({status:y,...C},b)=>{const x=y===Wb||y===qb;return l.createElement(t,Gb({},h,{key:C.key,visible:x,eventProps:C,onVisibleChanged:S=>{d?.(S,{key:C.key}),S||this.removeKey(C.key)}}),(S,$)=>c({...S,index:b},$))}))}}return n}const M5=E5(),R5=`accept acceptCharset accessKey action allowFullScreen allowTransparency
106
+ alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
107
+ charSet checked classID className colSpan cols content contentEditable contextMenu
108
+ controls coords crossOrigin data dateTime default defer dir disabled download draggable
109
+ encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
110
+ headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
111
+ is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
112
+ mediaGroup method min minLength multiple muted name noValidate nonce open
113
+ optimum pattern placeholder poster preload radioGroup readOnly rel required
114
+ reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
115
+ shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
116
+ summary tabIndex target title type useMap value width wmode wrap`,T5=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
117
+ onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
118
+ onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
119
+ onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
120
+ onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
121
+ onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
122
+ onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,O5=`${R5} ${T5}`.split(/[\s\n]+/),N5="aria-",I5="data-";function Jw(e,t){return e.indexOf(t)===0}function In(e,t=!1){let n;t===!1?n={aria:!0,data:!0,attr:!0}:t===!0?n={aria:!0}:n={...t};const r={};return Object.keys(e).forEach(i=>{(n.aria&&(i==="role"||Jw(i,N5))||n.data&&Jw(i,I5)||n.attr&&O5.includes(i))&&(r[i]=e[i])}),r}const oT={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"};var P5={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0};function $u(e){"@babel/helpers - typeof";return $u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$u(e)}function eE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function tE(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?eE(Object(n),!0).forEach(function(r){z5(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eE(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function z5(e,t,n){return t=A5(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function A5(e){var t=D5(e,"string");return $u(t)=="symbol"?t:String(t)}function D5(e,t){if($u(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if($u(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var j5=tE(tE({},P5),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",week:"Week",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"});const aT={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},xu={lang:{placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"],...j5},timePickerLocale:{...aT}},eo="${label} is not a valid ${type}",xa={locale:"en",Pagination:oT,DatePicker:xu,TimePicker:aT,Calendar:xu,global:{placeholder:"Please select",close:"Close",sortable:"sortable"},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:eo,method:eo,array:eo,object:eo,number:eo,date:eo,boolean:eo,integer:eo,float:eo,regexp:eo,email:eo,url:eo,hex:eo},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};let Cm={...xa.Modal},$m=[];const nE=()=>$m.reduce((e,t)=>({...e,...t}),xa.Modal);function _5(e){if(e){const t={...e};return $m.push(t),Cm=nE(),()=>{$m=$m.filter(n=>n!==t),Cm=nE()}}Cm={...xa.Modal}}function iT(){return Cm}const PS=l.createContext(void 0),oo=(e,t)=>{const n=l.useContext(PS),r=l.useMemo(()=>{const s=t||xa[e],c=n?.[e]??{};return{...typeof s=="function"?s():s,...c||{}}},[e,t,n]),i=l.useMemo(()=>{const s=n?.locale;return n?.exist&&!s?xa.locale:s},[n]);return[r,i]},H5="internalMark",B5=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;l.useEffect(()=>_5(t?.Modal),[t]);const i=l.useMemo(()=>({...t,exist:!0}),[t]);return l.createElement(PS.Provider,{value:i},n)};function Xb(...e){const t={};return e.forEach(n=>{n&&Object.keys(n).forEach(r=>{n[r]!==void 0&&(t[r]=n[r])})}),t}const Rr=e=>e!=null,$s=e=>{if(!e)return;const{closable:t,closeIcon:n}=e;return{closable:t,closeIcon:n}},lT={},rE=(e,t)=>{if(!e&&(e===!1||t===!1||t===null))return!1;if(e===void 0&&t===void 0)return null;let n={closeIcon:typeof t!="boolean"&&t!==null?t:void 0};return e&&typeof e=="object"&&(n={...n,...e}),n},L5=(e,t,n)=>e===!1?!1:e?Xb(n,t,e):t===!1?!1:t?Xb(n,t):n.closable?n:!1,V5=(e,t,n)=>{const{closeIconRender:r}=t,{closeIcon:i,...s}=e;let c=i;const d=In(s,!0);return Rr(c)&&(r&&(c=r(c)),c=ae.isValidElement(c)?ae.cloneElement(c,{"aria-label":n,...c.props,...d}):ae.createElement("span",{"aria-label":n,...d},c)),[c,d]},F5=(e,t,n=lT,r="Close")=>{const i=rE(e?.closable,e?.closeIcon),s=rE(t?.closable,t?.closeIcon),c={closeIcon:ae.createElement(Yr,null),...n},d=L5(i,s,c),f=typeof d!="boolean"?!!d?.disabled:!1;if(d===!1)return[!1,null,f,{}];const[p,g]=V5(d,c,r);return[!0,p,f,g]},zS=(e,t,n=lT)=>{const[r]=oo("global",xa.global);return ae.useMemo(()=>F5(e,t,{closeIcon:ae.createElement(Yr,null),...n},r.close),[e,t,n,r.close])},k5=()=>ae.useReducer(e=>e+1,0),oE=e=>e&&typeof e=="object"?e:typeof e=="boolean"?{enabled:e,blur:e}:{},sT=(e,t,n)=>l.useMemo(()=>{const r=oE(e),s={...oE(t),...r},c=s.blur!==!1?`${n}-mask-blur`:void 0;return[s.enabled!==!1,{mask:c}]},[e,t,n]),AS=(e,...t)=>{const n=e||{};return t.filter(Boolean).reduce((r,i)=>(Object.keys(i||{}).forEach(s=>{const c=n[s],d=i[s];if(c&&typeof c=="object")if(d&&typeof d=="object")r[s]=AS(c,r[s],d);else{const{_default:f}=c;f&&(r[s]=r[s]||{},r[s][f]=Q(r[s][f],d))}else r[s]=Q(r[s],d)}),r),{})},W5=(e,...t)=>l.useMemo(()=>AS.apply(void 0,[e].concat(t)),[e].concat(t)),cT=(...e)=>e.filter(Boolean).reduce((t,n={})=>(Object.keys(n).forEach(r=>{t[r]={...t[r],...n[r]}}),t),{}),q5=(...e)=>l.useMemo(()=>cT.apply(void 0,e),[].concat(e)),Kb=(e,t)=>{const n={...e};return Object.keys(t).forEach(r=>{if(r!=="_default"){const i=t[r],s=n[r]||{};n[r]=i?Kb(s,i):s}}),n},ms=(e,t)=>typeof e=="function"?e(t):e,Vt=(e,t,n,r)=>{const i=e.map(f=>f?ms(f,n):void 0),s=t.map(f=>f?ms(f,n):void 0),c=W5.apply(void 0,[r].concat($n(i))),d=q5.apply(void 0,$n(s));return l.useMemo(()=>r?[Kb(c,r),Kb(d,r)]:[c,d],[c,d,r])},aE=e=>e==="horizontal"||e==="vertical",ld=(e,t,n)=>l.useMemo(()=>{const r=aE(e);let i;return r?i=e:typeof t=="boolean"?i=t?"vertical":"horizontal":i=aE(n)?n:"horizontal",[i,i==="vertical"]},[n,e,t]),Y5=()=>{const[e,t]=l.useState([]),n=l.useCallback(r=>(t(i=>[].concat($n(i),[r])),()=>{t(i=>i.filter(s=>s!==r))}),[]);return[e,n]},sd=ae.createContext(void 0),ti=100,U5=10,uT=ti*U5,dT={Modal:ti,Drawer:ti,Popover:ti,Popconfirm:ti,Tooltip:ti,Tour:ti,FloatButton:ti},G5={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1},X5=e=>e in dT,mi=(e,t)=>{const[,n]=qr(),r=ae.useContext(sd),i=X5(e);let s;if(t!==void 0)s=[t,t];else{let c=r??0;i?c+=(r?0:n.zIndexPopupBase)+dT[e]:c+=G5[e],s=[r===void 0?t:c,c]}return s};function fT(e){return e&&ae.isValidElement(e)&&e.type===ae.Fragment}const DS=(e,t,n)=>ae.isValidElement(e)?ae.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t;function or(e,t){return DS(e,e,t)}const Vf=(e,t,n,r,i)=>({background:e,border:`${te(r.lineWidth)} ${r.lineType} ${t}`,[`${i}-icon`]:{color:n}}),K5=e=>{const{componentCls:t,motionDurationSlow:n,marginXS:r,marginSM:i,fontSize:s,fontSizeLG:c,lineHeight:d,borderRadiusLG:f,motionEaseInOutCirc:p,withDescriptionIconSize:g,colorText:h,colorTextHeading:y,withDescriptionPadding:C,defaultPadding:b}=e;return{[t]:{...Zt(e),position:"relative",display:"flex",alignItems:"center",padding:b,wordWrap:"break-word",borderRadius:f,[`&${t}-rtl`]:{direction:"rtl"},[`${t}-section`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:r,lineHeight:0},"&-description":{display:"none",fontSize:s,lineHeight:d},"&-title":{color:y},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${n} ${p}, opacity ${n} ${p},
123
+ padding-top ${n} ${p}, padding-bottom ${n} ${p},
124
+ margin-bottom ${n} ${p}`},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}},[`${t}-with-description`]:{alignItems:"flex-start",padding:C,[`${t}-icon`]:{marginInlineEnd:i,fontSize:g,lineHeight:0},[`${t}-title`]:{display:"block",marginBottom:r,color:y,fontSize:c},[`${t}-description`]:{display:"block",color:h}},[`${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},Q5=e=>{const{componentCls:t,colorSuccess:n,colorSuccessBorder:r,colorSuccessBg:i,colorWarning:s,colorWarningBorder:c,colorWarningBg:d,colorError:f,colorErrorBorder:p,colorErrorBg:g,colorInfo:h,colorInfoBorder:y,colorInfoBg:C}=e;return{[t]:{"&-success":Vf(i,r,n,e,t),"&-info":Vf(C,y,h,e,t),"&-warning":Vf(d,c,s,e,t),"&-error":{...Vf(g,p,f,e,t),[`${t}-description > pre`]:{margin:0,padding:0}}}}},Z5=e=>{const{componentCls:t,iconCls:n,motionDurationMid:r,marginXS:i,fontSizeIcon:s,colorIcon:c,colorIconHover:d}=e;return{[t]:{"&-actions":{marginInlineStart:i},[`${t}-close-icon`]:{marginInlineStart:i,padding:0,overflow:"hidden",fontSize:s,lineHeight:te(s),backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${n}-close`]:{color:c,transition:`color ${r}`,"&:hover":{color:d}}},"&-close-text":{color:c,transition:`color ${r}`,"&:hover":{color:d}}}}},J5=e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`}),eA=zt("Alert",e=>[K5(e),Q5(e),Z5(e)],J5),tA={success:Ep,info:NS,error:zs,warning:As},nA=e=>{const{icon:t,prefixCls:n,type:r,className:i,style:s}=e,c=tA[r]||null;return t?DS(t,l.createElement("span",{className:`${n}-icon`},t),()=>({className:Q(t.props.className,i),style:s})):l.createElement(c,{className:i,style:s})},rA=e=>{const{isClosable:t,prefixCls:n,closeIcon:r,handleClose:i,ariaProps:s,className:c,style:d}=e,f=r===!0||r===void 0?l.createElement(Yr,null):r;return t?l.createElement("button",{type:"button",onClick:i,className:Q(`${n}-close-icon`,c),tabIndex:0,style:d,...s},f):null},mT=l.forwardRef((e,t)=>{const{description:n,prefixCls:r,message:i,title:s,banner:c,className:d,rootClassName:f,style:p,onMouseEnter:g,onMouseLeave:h,onClick:y,afterClose:C,showIcon:b,closable:x,closeText:S,closeIcon:$,action:M,id:w,styles:R,classNames:T,...N}=e,O=s??i,[P,D]=l.useState(!1),k=l.useRef(null);l.useImperativeHandle(t,()=>({nativeElement:k.current}));const{getPrefixCls:F,direction:Y,closable:G,closeIcon:V,className:B,style:_,classNames:H,styles:I}=Pt("alert"),z=F("alert",r),[L,A]=eA(z),{onClose:j,afterClose:q}=x&&typeof x=="object"?x:{},X=oe=>{D(!0),(j??e.onClose)?.(oe)},K=l.useMemo(()=>e.type!==void 0?e.type:c?"warning":"info",[e.type,c]),J=l.useMemo(()=>typeof x=="object"&&x.closeIcon||S?!0:typeof x=="boolean"?x:$!==!1&&Rr($)?!0:!!G,[S,$,x,G]),Z=c&&b===void 0?!0:b,re={...e,prefixCls:z,type:K,showIcon:Z,closable:J},[ne,ie]=Vt([H,T],[I,R],{props:re}),fe=Q(z,`${z}-${K}`,{[`${z}-with-description`]:!!n,[`${z}-no-icon`]:!Z,[`${z}-banner`]:!!c,[`${z}-rtl`]:Y==="rtl"},B,d,f,ne.root,A,L),le=In(N,{aria:!0,data:!0}),ue=l.useMemo(()=>typeof x=="object"&&x.closeIcon?x.closeIcon:S||($!==void 0?$:typeof G=="object"&&G.closeIcon?G.closeIcon:V),[$,x,G,S,V]),ge=l.useMemo(()=>{const oe=x??G;return typeof oe=="object"?In(oe,{data:!0,aria:!0}):{}},[x,G]);return l.createElement(Sr,{visible:!P,motionName:`${z}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:oe=>({maxHeight:oe.offsetHeight}),onLeaveEnd:q??C},({className:oe,style:se},he)=>l.createElement("div",{id:w,ref:ir(k,he),"data-show":!P,className:Q(fe,oe),style:{...ie.root,..._,...p,...se},onMouseEnter:g,onMouseLeave:h,onClick:y,role:"alert",...le},Z?l.createElement(nA,{className:Q(`${z}-icon`,ne.icon),style:ie.icon,description:n,icon:e.icon,prefixCls:z,type:K}):null,l.createElement("div",{className:Q(`${z}-section`,ne.section),style:ie.section},O?l.createElement("div",{className:Q(`${z}-title`,ne.title),style:ie.title},O):null,n?l.createElement("div",{className:Q(`${z}-description`,ne.description),style:ie.description},n):null),M?l.createElement("div",{className:Q(`${z}-actions`,ne.actions),style:ie.actions},M):null,l.createElement(rA,{className:ne.close,style:ie.close,isClosable:J,prefixCls:z,closeIcon:ue,handleClose:X,ariaProps:ge})))});function oA(e,t,n){return t=Zi(t),IR(e,xp()?Reflect.construct(t,n||[],Zi(e).constructor):t.apply(e,n))}let aA=(function(e){function t(){var n;return ll(this,t),n=oA(this,t,arguments),n.state={error:void 0,info:{componentStack:""}},n}return RS(t,e),sl(t,[{key:"componentDidCatch",value:function(r,i){this.setState({error:r,info:i})}},{key:"render",value:function(){const{message:r,title:i,description:s,id:c,children:d}=this.props,{error:f,info:p}=this.state,g=i??r,h=p?.componentStack||null,y=typeof g>"u"?(f||"").toString():g,C=typeof s>"u"?h:s;return f?l.createElement(mT,{id:c,type:"error",title:y,description:l.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},C)}):d}}])})(l.Component);const pT=mT;pT.ErrorBoundary=aA;const lr=e=>`${e}-css-var`,iA=l.createContext(void 0);var el=J4();const gT=l.createContext(null);let lA=!1;function sA(e){return lA}const iE=[];function cA(e,t){const[n]=l.useState(()=>kr()?document.createElement("div"):null),r=l.useRef(!1),i=l.useContext(gT),[s,c]=l.useState(iE),d=i||(r.current?void 0:g=>{c(h=>[g,...h])});function f(){n.parentElement||document.body.appendChild(n),r.current=!0}function p(){n.parentElement?.removeChild(n),r.current=!1}return It(()=>(e?i?i(f):f():p(),p),[e]),It(()=>{s.length&&(s.forEach(g=>g()),c(iE))},[s]),[n,d]}function uA(e){const t=`rc-scrollbar-measure-${Math.random().toString(36).substring(7)}`,n=document.createElement("div");n.id=t;const r=n.style;r.position="absolute",r.left="0",r.top="0",r.width="100px",r.height="100px",r.overflow="scroll";let i,s;if(e){const f=getComputedStyle(e);r.scrollbarColor=f.scrollbarColor,r.scrollbarWidth=f.scrollbarWidth;const p=getComputedStyle(e,"::-webkit-scrollbar"),g=parseInt(p.width,10),h=parseInt(p.height,10);try{const y=g?`width: ${p.width};`:"",C=h?`height: ${p.height};`:"";ii(`
125
+ #${t}::-webkit-scrollbar {
126
+ ${y}
127
+ ${C}
128
+ }`,t)}catch(y){console.error(y),i=g,s=h}}document.body.appendChild(n);const c=e&&i&&!isNaN(i)?i:n.offsetWidth-n.clientWidth,d=e&&s&&!isNaN(s)?s:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),hu(t),{width:c,height:d}}function dA(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:uA(e)}function fA(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}const mA=`rc-util-locker-${Date.now()}`;let lE=0;function pA(e){const t=!!e,[n]=l.useState(()=>(lE+=1,`${mA}_${lE}`));It(()=>{if(t){const r=dA(document.body).width,i=fA();ii(`
129
+ html body {
130
+ overflow-y: hidden;
131
+ ${i?`width: calc(100% - ${r}px);`:""}
132
+ }`,n)}else hu(n);return()=>{hu(n)}},[t,n])}function gA(){return{...zP}.useId}let sE=0;const cE=gA(),Qo=cE?(function(t){const n=cE();return t||n}):(function(t){const[n,r]=l.useState("ssr-id");return l.useEffect(()=>{const i=sE;sE+=1,r(`rc_unique_${i}`)},[]),t||n});let Wi=[];const hA=200;let hT=0;const yT=e=>{if(e.key==="Escape"&&!e.isComposing){if(Date.now()-hT<hA)return;const n=Wi.length;for(let r=n-1;r>=0;r-=1)Wi[r].onEsc({top:r===n-1,event:e})}},bT=()=>{hT=Date.now()};function yA(){window.addEventListener("keydown",yT),window.addEventListener("compositionend",bT)}function bA(){Wi.length===0&&(window.removeEventListener("keydown",yT),window.removeEventListener("compositionend",bT))}function vA(e,t){const n=Qo(),r=ut(t),i=()=>{Wi.find(c=>c.id===n)||Wi.push({id:n,onEsc:r})},s=()=>{Wi=Wi.filter(c=>c.id!==n)};l.useMemo(()=>{e?i():e||s()},[e]),l.useEffect(()=>{if(e)return i(),yA(),()=>{s(),bA()}},[e])}const uE=e=>e===!1?!1:!kr()||!e?null:typeof e=="string"?document.querySelector(e):typeof e=="function"?e():e,cd=l.forwardRef((e,t)=>{const{open:n,autoLock:r,getContainer:i,debug:s,autoDestroy:c=!0,children:d,onEsc:f}=e,[p,g]=l.useState(n),h=p||n;l.useEffect(()=>{(c||n)&&g(n)},[n,c]);const[y,C]=l.useState(()=>uE(i));l.useEffect(()=>{const T=uE(i);C(()=>T??null)});const[b,x]=cA(h&&!y),S=y??b;pA(r&&n&&kr()&&(S===b||S===document.body)),vA(n,f);let $=null;d&&al(d)&&t&&($=il(d));const M=fi($,t);if(!h||!kr()||y===void 0)return null;const w=S===!1||sA();let R=d;return t&&(R=l.cloneElement(d,{ref:M})),l.createElement(gT.Provider,{value:x},w?R:el.createPortal(R,S))});function SA(e){const{prefixCls:t,align:n,arrow:r,arrowPos:i}=e,{className:s,content:c,style:d}=r||{},{x:f=0,y:p=0}=i,g=l.useRef(null);if(!n||!n.points)return null;const h={position:"absolute"};if(n.autoArrow!==!1){const y=n.points[0],C=n.points[1],b=y[0],x=y[1],S=C[0],$=C[1];b===S||!["t","b"].includes(b)?h.top=p:b==="t"?h.top=0:h.bottom=0,x===$||!["l","r"].includes(x)?h.left=f:x==="l"?h.left=0:h.right=0}return l.createElement("div",{ref:g,className:Q(`${t}-arrow`,s),style:{...h,...d}},c)}function Qb(){return Qb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qb.apply(this,arguments)}function CA(e){const{prefixCls:t,open:n,zIndex:r,mask:i,motion:s,mobile:c}=e;return i?l.createElement(Sr,Qb({},s,{motionAppear:!0,visible:n,removeOnLeave:!0}),({className:d})=>l.createElement("div",{style:{zIndex:r},className:Q(`${t}-mask`,c&&`${t}-mobile-mask`,d)})):null}const $A=l.memo(({children:e})=>e,(e,t)=>t.cache);function vT(e,t,n,r,i,s,c,d){const f="auto",p=e?{}:{left:"-1000vw",top:"-1000vh",right:f,bottom:f};if(!e&&(t||!n)){const{points:g}=r,h=r.dynamicInset||r._experimental?.dynamicInset,y=h&&g[0][1]==="r",C=h&&g[0][0]==="b";y?(p.right=i,p.left=f):(p.left=c,p.right=f),C?(p.bottom=s,p.top=f):(p.top=d,p.bottom=f)}return p}function Zb(){return Zb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Zb.apply(this,arguments)}const ST=l.forwardRef((e,t)=>{const{onEsc:n,popup:r,className:i,prefixCls:s,style:c,target:d,onVisibleChanged:f,open:p,keepDom:g,fresh:h,onClick:y,mask:C,arrow:b,arrowPos:x,align:S,motion:$,maskMotion:M,mobile:w,forceRender:R,getPopupContainer:T,autoDestroy:N,portal:O,children:P,zIndex:D,onMouseEnter:k,onMouseLeave:F,onPointerEnter:Y,onPointerDownCapture:G,ready:V,offsetX:B,offsetY:_,offsetR:H,offsetB:I,onAlign:z,onPrepare:L,onResize:A,stretch:j,targetWidth:q,targetHeight:X}=e,K=typeof r=="function"?r():r,J=p||g,Z=!!w,[re,ne,ie]=l.useMemo(()=>w?[w.mask,w.maskMotion,w.motion]:[C,M,$],[w,C,M,$]),fe=T?.length>0,[le,ue]=l.useState(!T||!fe);It(()=>{!le&&fe&&d&&ue(!0)},[le,fe,d]);const ge=ut((he,me)=>{A?.(he,me),z()}),oe=vT(Z,V,p,S,H,I,B,_);if(!le)return null;const se={};return j&&(j.includes("height")&&X?se.height=X:j.includes("minHeight")&&X&&(se.minHeight=X),j.includes("width")&&q?se.width=q:j.includes("minWidth")&&q&&(se.minWidth=q)),p||(se.pointerEvents="none"),l.createElement(O,{open:R||J,getContainer:T&&(()=>T(d)),autoDestroy:N,onEsc:n},l.createElement(CA,{prefixCls:s,open:p,zIndex:D,mask:re,motion:ne,mobile:Z}),l.createElement(Fr,{onResize:ge,disabled:!p},he=>l.createElement(Sr,Zb({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:R,leavedClassName:`${s}-hidden`},ie,{onAppearPrepare:L,onEnterPrepare:L,visible:p,onVisibleChanged:me=>{$?.onVisibleChanged?.(me),f(me)}}),({className:me,style:xe},Ae)=>{const we=Q(s,me,i,{[`${s}-mobile`]:Z});return l.createElement("div",{ref:ir(he,t,Ae),className:we,style:{"--arrow-x":`${x.x||0}px`,"--arrow-y":`${x.y||0}px`,...oe,...se,...xe,boxSizing:"border-box",zIndex:D,...c},onMouseEnter:k,onMouseLeave:F,onPointerEnter:Y,onClick:y,onPointerDownCapture:G},b&&l.createElement(SA,{prefixCls:s,arrow:b,arrowPos:x,align:S}),l.createElement($A,{cache:!p&&!h},K))})),P)}),Vm=l.createContext(null),CT=l.createContext(null);function dE(e){return e?Array.isArray(e)?e:[e]:[]}function xA(e,t,n){return l.useMemo(()=>{const r=dE(t??e),i=dE(n??e),s=new Set(r),c=new Set(i);return s.has("hover")&&!s.has("click")&&s.add("touch"),c.has("hover")&&!c.has("click")&&c.add("touch"),[s,c]},[e,t,n])}const Mp=(e=>{if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){const{width:t,height:n}=e.getBBox();if(t||n)return!0}if(e.getBoundingClientRect){const{width:t,height:n}=e.getBoundingClientRect();if(t||n)return!0}}return!1});function wA(e=[],t=[],n){const r=(i,s)=>i[s]||"";return n?r(e,0)===r(t,0):r(e,0)===r(t,0)&&r(e,1)===r(t,1)}function $T(e,t,n,r){const{points:i}=n,s=Object.keys(e);for(let c=0;c<s.length;c+=1){const d=s[c];if(wA(e[d]?.points,i,r))return`${t}-placement-${d}`}return""}function ud(e){return e.ownerDocument.defaultView}function Jb(e){const t=[];let n=e?.parentElement;const r=["hidden","scroll","clip","auto"];for(;n;){const{overflowX:i,overflowY:s,overflow:c}=ud(n).getComputedStyle(n);[i,s,c].some(d=>r.includes(d))&&t.push(n),n=n.parentElement}return t}function wu(e,t=1){return Number.isNaN(e)?t:e}function Ac(e){return wu(parseFloat(e),0)}function fE(e,t){const n={...e};return(t||[]).forEach(r=>{if(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)return;const{overflow:i,overflowClipMargin:s,borderTopWidth:c,borderBottomWidth:d,borderLeftWidth:f,borderRightWidth:p}=ud(r).getComputedStyle(r),g=r.getBoundingClientRect(),{offsetHeight:h,clientHeight:y,offsetWidth:C,clientWidth:b}=r,x=Ac(c),S=Ac(d),$=Ac(f),M=Ac(p),w=wu(Math.round(g.width/C*1e3)/1e3),R=wu(Math.round(g.height/h*1e3)/1e3),T=(C-b-$-M)*w,N=(h-y-x-S)*R,O=x*R,P=S*R,D=$*w,k=M*w;let F=0,Y=0;if(i==="clip"){const H=Ac(s);F=H*w,Y=H*R}const G=g.x+D-F,V=g.y+O-Y,B=G+g.width+2*F-D-k-T,_=V+g.height+2*Y-O-P-N;n.left=Math.max(n.left,G),n.top=Math.max(n.top,V),n.right=Math.min(n.right,B),n.bottom=Math.min(n.bottom,_)}),n}function mE(e,t=0){const n=`${t}`,r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function pE(e,t){const[n,r]=t||[];return[mE(e.width,n),mE(e.height,r)]}function gE(e=""){return[e[0],e[1]]}function Ql(e,t){const n=t[0],r=t[1];let i,s;return n==="t"?s=e.y:n==="b"?s=e.y+e.height:s=e.y+e.height/2,r==="l"?i=e.x:r==="r"?i=e.x+e.width:i=e.x+e.width/2,{x:i,y:s}}function Za(e,t){const n={t:"b",b:"t",l:"r",r:"l"},r=[...e];return r[t]=n[e[t]]||"c",r}function hE(e){return e.join("")}function xT(e,t,n,r,i,s,c,d){const[f,p]=l.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:i[r]||{}}),g=l.useRef(0),h=l.useMemo(()=>!t||d?[]:Jb(t),[t]),y=l.useRef({});e||(y.current={});const b=ut(()=>{if(t&&n&&e&&!d){let Se=function(yt,En,Nn=ge){const $r=G.x+yt,xr=G.y+En,Zn=$r+q,zn=xr+j,wo=Math.max($r,Nn.left),Jo=Math.max(xr,Nn.top),Eo=Math.min(Zn,Nn.right),_o=Math.min(zn,Nn.bottom);return Math.max(0,(Eo-wo)*(_o-Jo))},Re=function(){rt=G.y+Ne,je=rt+j,Pe=G.x+Ue,ke=Pe+q};const $=t,M=$.ownerDocument,w=ud($),{position:R}=w.getComputedStyle($),T=$.style.left,N=$.style.top,O=$.style.right,P=$.style.bottom,D=$.style.overflow,k={...i[r],...s},F=M.createElement("div");$.parentElement?.appendChild(F),F.style.left=`${$.offsetLeft}px`,F.style.top=`${$.offsetTop}px`,F.style.position=R,F.style.height=`${$.offsetHeight}px`,F.style.width=`${$.offsetWidth}px`,$.style.left="0",$.style.top="0",$.style.right="auto",$.style.bottom="auto",$.style.overflow="hidden";let Y;if(Array.isArray(n))Y={x:n[0],y:n[1],width:0,height:0};else{const yt=n.getBoundingClientRect();yt.x=yt.x??yt.left,yt.y=yt.y??yt.top,Y={x:yt.x,y:yt.y,width:yt.width,height:yt.height}}const G=$.getBoundingClientRect(),{height:V,width:B}=w.getComputedStyle($);G.x=G.x??G.left,G.y=G.y??G.top;const{clientWidth:_,clientHeight:H,scrollWidth:I,scrollHeight:z,scrollTop:L,scrollLeft:A}=M.documentElement,j=G.height,q=G.width,X=Y.height,K=Y.width,J={left:0,top:0,right:_,bottom:H},Z={left:-A,top:-L,right:I-A,bottom:z-L};let{htmlRegion:re}=k;const ne="visible",ie="visibleFirst";re!=="scroll"&&re!==ie&&(re=ne);const fe=re===ie,le=fE(Z,h),ue=fE(J,h),ge=re===ne?ue:le,oe=fe?ue:ge;$.style.left="auto",$.style.top="auto",$.style.right="0",$.style.bottom="0";const se=$.getBoundingClientRect();$.style.left=T,$.style.top=N,$.style.right=O,$.style.bottom=P,$.style.overflow=D,$.parentElement?.removeChild(F);const he=wu(Math.round(q/parseFloat(B)*1e3)/1e3),me=wu(Math.round(j/parseFloat(V)*1e3)/1e3);if(he===0||me===0||Ss(n)&&!Mp(n))return;const{offset:xe,targetOffset:Ae}=k;let[we,$e]=pE(G,xe);const[de,be]=pE(Y,Ae);Y.x-=de,Y.y-=be;const[Me,Oe]=k.points||[],Le=gE(Oe),Ge=gE(Me),et=Ql(Y,Le),ze=Ql(G,Ge),_e={...k};let De=[Ge,Le],Ue=et.x-ze.x+we,Ne=et.y-ze.y+$e;const Be=Se(Ue,Ne),Je=Se(Ue,Ne,ue),We=Ql(Y,["t","l"]),Xe=Ql(G,["t","l"]),Ie=Ql(Y,["b","r"]),Ke=Ql(G,["b","r"]),ot=k.overflow||{},{adjustX:at,adjustY:lt,shiftX:St,shiftY:Ct}=ot,qe=yt=>typeof yt=="boolean"?yt:yt>=0;let rt,je,Pe,ke;Re();const Ye=qe(lt),Ze=Ge[0]===Le[0];if(Ye&&Ge[0]==="t"&&(je>oe.bottom||y.current.bt)){let yt=Ne;Ze?yt-=j-X:yt=We.y-Ke.y-$e;const En=Se(Ue,yt),Nn=Se(Ue,yt,ue);En>Be||En===Be&&(!fe||Nn>=Je)?(y.current.bt=!0,Ne=yt,$e=-$e,De=[Za(De[0],0),Za(De[1],0)]):y.current.bt=!1}if(Ye&&Ge[0]==="b"&&(rt<oe.top||y.current.tb)){let yt=Ne;Ze?yt+=j-X:yt=Ie.y-Xe.y-$e;const En=Se(Ue,yt),Nn=Se(Ue,yt,ue);En>Be||En===Be&&(!fe||Nn>=Je)?(y.current.tb=!0,Ne=yt,$e=-$e,De=[Za(De[0],0),Za(De[1],0)]):y.current.tb=!1}const it=qe(at),ft=Ge[1]===Le[1];if(it&&Ge[1]==="l"&&(ke>oe.right||y.current.rl)){let yt=Ue;ft?yt-=q-K:yt=We.x-Ke.x-we;const En=Se(yt,Ne),Nn=Se(yt,Ne,ue);En>Be||En===Be&&(!fe||Nn>=Je)?(y.current.rl=!0,Ue=yt,we=-we,De=[Za(De[0],1),Za(De[1],1)]):y.current.rl=!1}if(it&&Ge[1]==="r"&&(Pe<oe.left||y.current.lr)){let yt=Ue;ft?yt+=q-K:yt=Ie.x-Xe.x-we;const En=Se(yt,Ne),Nn=Se(yt,Ne,ue);En>Be||En===Be&&(!fe||Nn>=Je)?(y.current.lr=!0,Ue=yt,we=-we,De=[Za(De[0],1),Za(De[1],1)]):y.current.lr=!1}_e.points=[hE(De[0]),hE(De[1])],Re();const jt=St===!0?0:St;typeof jt=="number"&&(Pe<ue.left&&(Ue-=Pe-ue.left-we,Y.x+K<ue.left+jt&&(Ue+=Y.x-ue.left+K-jt)),ke>ue.right&&(Ue-=ke-ue.right-we,Y.x>ue.right-jt&&(Ue+=Y.x-ue.right+jt)));const Rt=Ct===!0?0:Ct;typeof Rt=="number"&&(rt<ue.top&&(Ne-=rt-ue.top-$e,Y.y+X<ue.top+Rt&&(Ne+=Y.y-ue.top+X-Rt)),je>ue.bottom&&(Ne-=je-ue.bottom-$e,Y.y>ue.bottom-Rt&&(Ne+=Y.y-ue.bottom+Rt)));const wt=G.x+Ue,dn=wt+q,xt=G.y+Ne,Qe=xt+j,Et=Y.x,mt=Et+K,Tt=Y.y,Ut=Tt+X,ln=Math.max(wt,Et),kt=Math.min(dn,mt),xn=(ln+kt)/2-wt,gr=Math.max(xt,Tt),fn=Math.min(Qe,Ut),Pn=(gr+fn)/2-xt;c?.(t,_e);let Kn=se.right-G.x-(Ue+G.width),Qn=se.bottom-G.y-(Ne+G.height);he===1&&(Ue=Math.round(Ue),Kn=Math.round(Kn)),me===1&&(Ne=Math.round(Ne),Qn=Math.round(Qn));const Nr={ready:!0,offsetX:Ue/he,offsetY:Ne/me,offsetR:Kn/he,offsetB:Qn/me,arrowX:xn/he,arrowY:Pn/me,scaleX:he,scaleY:me,align:_e};p(Nr)}}),x=()=>{g.current+=1;const $=g.current;Promise.resolve().then(()=>{g.current===$&&b()})},S=()=>{p($=>({...$,ready:!1}))};return It(S,[r]),It(()=>{e||S()},[e]),[f.ready,f.offsetX,f.offsetY,f.offsetR,f.offsetB,f.arrowX,f.arrowY,f.scaleX,f.scaleY,f.align,x]}function wT(){const e=l.useRef(null),t=()=>{e.current&&(clearTimeout(e.current),e.current=null)},n=(r,i)=>{t(),i===0?r():e.current=setTimeout(()=>{r()},i*1e3)};return l.useEffect(()=>()=>{t()},[]),n}function EA(e,t,n,r,i){It(()=>{if(e&&t&&n){let h=function(){r(),i()};const s=t,c=n,d=Jb(s),f=Jb(c),p=ud(c),g=new Set([p,...d,...f]);return g.forEach(y=>{y.addEventListener("scroll",h,{passive:!0})}),p.addEventListener("resize",h,{passive:!0}),r(),()=>{g.forEach(y=>{y.removeEventListener("scroll",h),p.removeEventListener("resize",h)})}}},[e,t,n])}function MA(e,t,n,r,i,s,c,d){const f=l.useRef(e);f.current=e;const p=l.useRef(!1);l.useEffect(()=>{if(t&&r&&(!i||s)){const h=()=>{p.current=!1},y=x=>{f.current&&!c(x.composedPath?.()?.[0]||x.target)&&!p.current&&d(!1)},C=ud(r);C.addEventListener("pointerdown",h,!0),C.addEventListener("mousedown",y,!0),C.addEventListener("contextmenu",y,!0);const b=Lm(n);return b&&(b.addEventListener("mousedown",y,!0),b.addEventListener("contextmenu",y,!0)),()=>{C.removeEventListener("pointerdown",h,!0),C.removeEventListener("mousedown",y,!0),C.removeEventListener("contextmenu",y,!0),b&&(b.removeEventListener("mousedown",y,!0),b.removeEventListener("contextmenu",y,!0))}}},[t,n,r,i,s]);function g(){p.current=!0}return g}function RA(){const[e,t]=ae.useState(null),[n,r]=ae.useState(!1),[i,s]=ae.useState(!1),c=ae.useRef(null),d=ut(p=>{p===!1?(c.current=null,r(!1)):i&&n?c.current=p:(r(!0),t(p),c.current=null,n||s(!0))}),f=ut(p=>{p?(s(!1),c.current&&(t(c.current),c.current=null)):(s(!1),c.current=null)});return[d,n,e,f]}function ev(){return ev=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ev.apply(this,arguments)}const TA=e=>{const{prefixCls:t,isMobile:n,ready:r,open:i,align:s,offsetR:c,offsetB:d,offsetX:f,offsetY:p,arrowPos:g,popupSize:h,motion:y,uniqueContainerClassName:C,uniqueContainerStyle:b}=e,x=`${t}-unique-container`,[S,$]=ae.useState(!1),M=vT(n,r,i,s,c,d,f,p),w=ae.useRef(M);r&&(w.current=M);const R={};return h&&(R.width=h.width,R.height=h.height),ae.createElement(Sr,ev({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,leavedClassName:`${x}-hidden`},y,{visible:i,onVisibleChanged:T=>{$(T)}}),({className:T,style:N})=>{const O=Q(x,T,C,{[`${x}-visible`]:S});return ae.createElement("div",{className:O,style:{"--arrow-x":`${g?.x||0}px`,"--arrow-y":`${g?.y||0}px`,...w.current,...R,...N,...b}})})},OA=({children:e,postTriggerProps:t})=>{const[n,r,i,s]=RA(),c=l.useMemo(()=>!i||!t?i:t(i),[i,t]),[d,f]=l.useState(null),[p,g]=l.useState(null),h=l.useRef(null),y=ut(I=>{h.current=I,Ss(I)&&d!==I&&f(I)}),C=l.useRef(null),b=wT(),x=ut((I,z)=>{C.current=z,b(()=>{n(I)},I.delay)}),S=I=>{b(()=>{C.current?.()||n(!1)},I)},$=ut(I=>{s(I)}),[M,w,R,T,N,O,P,,,D,k]=xT(r,d,c?.target,c?.popupPlacement,c?.builtinPlacements||{},c?.popupAlign,void 0,!1),F=l.useMemo(()=>{if(!c)return"";const I=$T(c.builtinPlacements||{},c.prefixCls||"",D,!1);return Q(I,c.getPopupClassNameFromAlign?.(D))},[D,c?.getPopupClassNameFromAlign,c?.builtinPlacements,c?.prefixCls]),Y=l.useMemo(()=>({show:x,hide:S}),[]);l.useEffect(()=>{k()},[c?.target]);const G=ut(()=>(k(),Promise.resolve())),V=l.useRef({}),B=l.useContext(Vm),_=l.useMemo(()=>({registerSubPopup:(I,z)=>{V.current[I]=z,B?.registerSubPopup(I,z)}}),[B]),H=c?.prefixCls;return l.createElement(CT.Provider,{value:Y},e,c&&l.createElement(Vm.Provider,{value:_},l.createElement(ST,{ref:y,portal:cd,onEsc:c.onEsc,prefixCls:H,popup:c.popup,className:Q(c.popupClassName,F,`${H}-unique-controlled`),style:c.popupStyle,target:c.target,open:r,keepDom:!0,fresh:!0,autoDestroy:!1,onVisibleChanged:$,ready:M,offsetX:w,offsetY:R,offsetR:T,offsetB:N,onAlign:k,onPrepare:G,onResize:I=>g({width:I.offsetWidth,height:I.offsetHeight}),arrowPos:{x:O,y:P},align:D,zIndex:c.zIndex,mask:c.mask,arrow:c.arrow,motion:c.popupMotion,maskMotion:c.maskMotion,getPopupContainer:c.getPopupContainer},l.createElement(TA,{prefixCls:H,isMobile:!1,ready:M,open:r,align:D,offsetR:T,offsetB:N,offsetX:w,offsetY:R,arrowPos:{x:O,y:P},popupSize:p,motion:c.popupMotion,uniqueContainerClassName:Q(c.uniqueContainerClassName,F),uniqueContainerStyle:c.uniqueContainerStyle}))))};function NA(e=cd){return l.forwardRef((n,r)=>{const{prefixCls:i="rc-trigger-popup",children:s,action:c="hover",showAction:d,hideAction:f,popupVisible:p,defaultPopupVisible:g,onOpenChange:h,afterOpenChange:y,onPopupVisibleChange:C,afterPopupVisibleChange:b,mouseEnterDelay:x,mouseLeaveDelay:S=.1,focusDelay:$,blurDelay:M,mask:w,maskClosable:R=!0,getPopupContainer:T,forceRender:N,autoDestroy:O,popup:P,popupClassName:D,uniqueContainerClassName:k,uniqueContainerStyle:F,popupStyle:Y,popupPlacement:G,builtinPlacements:V={},popupAlign:B,zIndex:_,stretch:H,getPopupClassNameFromAlign:I,fresh:z,unique:L,alignPoint:A,onPopupClick:j,onPopupAlign:q,arrow:X,popupMotion:K,maskMotion:J,mobile:Z,...re}=n,ne=O||!1,ie=p===void 0,fe=!!Z,le=l.useRef({}),ue=l.useContext(Vm),ge=l.useMemo(()=>({registerSubPopup:(tt,tn)=>{le.current[tt]=tn,ue?.registerSubPopup(tt,tn)}}),[ue]),oe=l.useContext(CT),se=Qo(),[he,me]=l.useState(null),xe=l.useRef(null),Ae=ut(tt=>{xe.current=tt,Ss(tt)&&he!==tt&&me(tt),ue?.registerSubPopup(se,tt)}),[we,$e]=l.useState(null),de=l.useRef(null),be=ut(tt=>{Ss(tt)&&we!==tt&&($e(tt),de.current=tt)}),Me={},Oe=ut(tt=>{const tn=we;return tn?.contains(tt)||Lm(tn)?.host===tt||tt===tn||he?.contains(tt)||Lm(he)?.host===tt||tt===he||Object.values(le.current).some(Hn=>Hn?.contains(tt)||tt===Hn)}),Le=X?{...X!==!0?X:{}}:null,[Ge,et]=Yt(g||!1,p),ze=Ge||!1,_e=l.useMemo(()=>{const tt=typeof s=="function"?s({open:ze}):s;return l.Children.only(tt)},[s,ze]),De=_e?.props||{},Ue=ut(()=>ze),Ne=ut((tt=0)=>({popup:P,target:we,delay:tt,prefixCls:i,popupClassName:D,uniqueContainerClassName:k,uniqueContainerStyle:F,popupStyle:Y,popupPlacement:G,builtinPlacements:V,popupAlign:B,zIndex:_,mask:w,maskClosable:R,popupMotion:K,maskMotion:J,arrow:Le,getPopupContainer:T,getPopupClassNameFromAlign:I,id:se,onEsc:Xe}));It(()=>{oe&&L&&we&&!ie&&!ue&&(ze?oe.show(Ne(x),Ue):oe.hide(S))},[ze,we]);const Se=l.useRef(ze);Se.current=ze;const Be=ut(tt=>{el.flushSync(()=>{ze!==tt&&(et(tt),h?.(tt),C?.(tt))})}),Je=wT(),We=(tt,tn=0)=>{if(p!==void 0){Je(()=>{Be(tt)},tn);return}if(oe&&L&&ie&&!ue){tt?oe.show(Ne(tn),Ue):oe.hide(tn);return}Je(()=>{Be(tt)},tn)};function Xe({top:tt}){tt&&We(!1)}const[Ie,Ke]=l.useState(!1);It(tt=>{(!tt||ze)&&Ke(!0)},[ze]);const[ot,at]=l.useState(null),[lt,St]=l.useState(null),Ct=tt=>{St([tt.clientX,tt.clientY])},[qe,rt,je,Pe,ke,Re,Ye,Ze,it,ft,jt]=xT(ze,he,A&&lt!==null?lt:we,G,V,B,q,fe),[Rt,wt]=xA(c,d,f),dn=Rt.has("click"),xt=wt.has("click")||wt.has("contextMenu"),Qe=ut(()=>{Ie||jt()});EA(ze,we,he,Qe,()=>{Se.current&&A&&xt&&We(!1)}),It(()=>{Qe()},[lt,G]),It(()=>{ze&&!V?.[G]&&Qe()},[JSON.stringify(B)]);const mt=l.useMemo(()=>{const tt=$T(V,i,ft,A);return Q(tt,I?.(ft))},[ft,I,V,i,A]);l.useImperativeHandle(r,()=>({nativeElement:de.current,popupElement:xe.current,forceAlign:Qe}));const[Tt,Ut]=l.useState(0),[ln,kt]=l.useState(0),wn=()=>{if(H&&we){const tt=we.getBoundingClientRect();Ut(tt.width),kt(tt.height)}},xn=()=>{wn(),Qe()},gr=tt=>{Ke(!1),jt(),y?.(tt),b?.(tt)},fn=()=>new Promise(tt=>{wn(),at(()=>tt)});It(()=>{ot&&(jt(),ot(),at(null))},[ot]);function Cr(tt,tn,Hn,ea,ta){Me[tt]=(Ho,...io)=>{(!ta||!ta())&&(ea?.(Ho),We(tn,Hn)),De[tt]?.(Ho,...io)}}const Pn=Rt.has("touch"),Kn=wt.has("touch"),Qn=l.useRef(!1);(Pn||Kn)&&(Me.onTouchStart=(...tt)=>{Qn.current=!0,Se.current&&Kn?We(!1):!Se.current&&Pn&&We(!0),De.onTouchStart?.(...tt)}),(dn||xt)&&(Me.onClick=(tt,...tn)=>{Se.current&&xt?We(!1):!Se.current&&dn&&(Ct(tt),We(!0)),De.onClick?.(tt,...tn),Qn.current=!1});const Nr=MA(ze,xt||Kn,we,he,w,R,Oe,We),yt=Rt.has("hover"),En=wt.has("hover");let Nn,$r;const xr=()=>Qn.current;if(yt){const tt=tn=>{Ct(tn)};Cr("onMouseEnter",!0,x,tt,xr),Cr("onPointerEnter",!0,x,tt,xr),Nn=tn=>{(ze||Ie)&&he?.contains(tn.target)&&We(!0,x)},A&&(Me.onMouseMove=tn=>{De.onMouseMove?.(tn)})}En&&(Cr("onMouseLeave",!1,S,void 0,xr),Cr("onPointerLeave",!1,S,void 0,xr),$r=()=>{We(!1,S)}),Rt.has("focus")&&Cr("onFocus",!0,$),wt.has("focus")&&Cr("onBlur",!1,M),Rt.has("contextMenu")&&(Me.onContextMenu=(tt,...tn)=>{Se.current&&wt.has("contextMenu")?We(!1):(Ct(tt),We(!0)),tt.preventDefault(),De.onContextMenu?.(tt,...tn)});const Zn=l.useRef(!1);Zn.current||=N||ze||Ie;const zn={...De,...Me},wo={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach(tt=>{re[tt]&&(wo[tt]=(...tn)=>{zn[tt]?.(...tn),re[tt](...tn)})});const Eo={x:Re,y:Ye},_o=l.cloneElement(_e,{...zn,...wo});return l.createElement(l.Fragment,null,l.createElement(Fr,{disabled:!ze,ref:be,onResize:xn},_o),Zn.current&&(!oe||!L)&&l.createElement(Vm.Provider,{value:ge},l.createElement(ST,{portal:e,ref:Ae,prefixCls:i,popup:P,className:Q(D,!fe&&mt),style:Y,target:we,onMouseEnter:Nn,onMouseLeave:$r,onPointerEnter:Nn,zIndex:_,open:ze,keepDom:Ie,fresh:z,onClick:j,onPointerDownCapture:Nr,mask:w,motion:K,maskMotion:J,onVisibleChanged:gr,onPrepare:fn,forceRender:N,autoDestroy:ne,getPopupContainer:T,onEsc:Xe,align:ft,arrow:Le,arrowPos:Eo,ready:qe,offsetX:rt,offsetY:je,offsetR:Pe,offsetB:ke,onAlign:Qe,stretch:H,targetWidth:Tt/Ze,targetHeight:ln/it,mobile:Z})))})}const dd=NA(cd),IA=({children:e})=>{const{getPrefixCls:t}=ae.useContext(dt),n=t();return ae.isValidElement(e)?ae.createElement(Sr,{visible:!0,motionName:`${n}-fade`,motionAppear:!0,motionEnter:!0,motionLeave:!1,removeOnLeave:!1},({style:r,className:i})=>{const{className:s,style:c}=e.props,d={...c,...r};return ae.cloneElement(e,{className:Q(s,i),style:d})}):e},Ff=[null,null];function PA(e){if(Ff[0]!==e){const t={};Object.keys(e).forEach(n=>{t[n]={...e[n],dynamicInset:!1}}),Ff[0]=e,Ff[1]=t}return Ff[1]}const ET=({children:e})=>{const t=n=>{const r=typeof n.popup=="function"?n.popup():n.popup,{id:i,builtinPlacements:s}=n,c=PA(s);return{...n,getPopupContainer:null,arrow:!1,popup:ae.createElement(IA,{key:i},r),builtinPlacements:c}};return ae.createElement(OA,{postTriggerProps:t},e)},Wr=l.createContext(!1),MT=({children:e,disabled:t})=>{const n=l.useContext(Wr);return l.createElement(Wr.Provider,{value:t??n},e)},xs=l.createContext(void 0),zA=({children:e,size:t})=>{const n=l.useContext(xs);return l.createElement(xs.Provider,{value:t||n},e)};function AA(){const e=l.useContext(Wr),t=l.useContext(xs);return{componentDisabled:e,componentSize:t}}function DA(e,t,n){const r=e||{},i=r.inherit===!1||!t?{...Bm,hashed:t?.hashed??Bm.hashed,cssVar:t?.cssVar}:t,s=l.useId();return od(()=>{if(!e)return t;const c={...i.components};Object.keys(e.components||{}).forEach(p=>{c[p]={...c[p],...e.components[p]}});const d=`css-var-${s.replace(/:/g,"")}`,f={prefix:n?.prefixCls,...i.cssVar,...r.cssVar,key:r.cssVar?.key||d};return{...i,...r,token:{...i.token,...r.token},components:c,cssVar:f}},[r,i],(c,d)=>c.some((f,p)=>{const g=d[p];return!yu(f,g,!0)}))}const yE=l.createContext(!0);function jA(e){const t=l.useContext(yE),{children:n}=e,[,r]=qr(),{motion:i}=r,s=l.useRef(!1);return s.current||(s.current=t!==i),s.current?l.createElement(yE.Provider,{value:i},l.createElement(c5,{motion:i},n)):n}const _A=()=>null,HA=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let Fm,RT,TT,OT;function Sy(){return Fm||pu}function BA(){return RT||bp}const LA=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:i}=e;t!==void 0&&(Fm=t),n!==void 0&&(RT=n),"holderRender"in e&&(OT=i),r&&(TT=r)},NT=()=>({getPrefixCls:(e,t)=>t||(e?`${Sy()}-${e}`:Sy()),getIconPrefixCls:BA,getRootPrefixCls:()=>Fm||Sy(),getTheme:()=>TT,holderRender:OT}),VA=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:i,affix:s,anchor:c,form:d,locale:f,componentSize:p,direction:g,space:h,splitter:y,virtual:C,dropdownMatchSelectWidth:b,popupMatchSelectWidth:x,popupOverflow:S,legacyLocale:$,parentContext:M,iconPrefixCls:w,theme:R,componentDisabled:T,segmented:N,statistic:O,spin:P,calendar:D,carousel:k,cascader:F,collapse:Y,typography:G,checkbox:V,descriptions:B,divider:_,drawer:H,skeleton:I,steps:z,image:L,layout:A,list:j,mentions:q,modal:X,progress:K,result:J,slider:Z,breadcrumb:re,masonry:ne,menu:ie,pagination:fe,input:le,textArea:ue,otp:ge,empty:oe,badge:se,radio:he,rate:me,ribbon:xe,switch:Ae,transfer:we,avatar:$e,message:de,tag:be,table:Me,card:Oe,cardMeta:Le,tabs:Ge,timeline:et,timePicker:ze,upload:_e,notification:De,tree:Ue,colorPicker:Ne,datePicker:Se,rangePicker:Be,flex:Je,wave:We,dropdown:Xe,warning:Ie,tour:Ke,tooltip:ot,popover:at,popconfirm:lt,qrcode:St,floatButton:Ct,floatButtonGroup:qe,variant:rt,inputNumber:je,treeSelect:Pe,watermark:ke}=e,Re=l.useCallback((mt,Tt)=>{const{prefixCls:Ut}=e;if(Tt)return Tt;const ln=Ut||M.getPrefixCls("");return mt?`${ln}-${mt}`:ln},[M.getPrefixCls,e.prefixCls]),Ye=w||M.iconPrefixCls||bp,Ze=n||M.csp;Wz(Ye,Ze);const it=DA(R,M.theme,{prefixCls:Re("")}),ft={csp:Ze,autoInsertSpaceInButton:r,alert:i,affix:s,anchor:c,locale:f||$,direction:g,space:h,splitter:y,virtual:C,popupMatchSelectWidth:x??b,popupOverflow:S,getPrefixCls:Re,iconPrefixCls:Ye,theme:it,segmented:N,statistic:O,spin:P,calendar:D,carousel:k,cascader:F,collapse:Y,typography:G,checkbox:V,descriptions:B,divider:_,drawer:H,skeleton:I,steps:z,image:L,input:le,textArea:ue,otp:ge,layout:A,list:j,mentions:q,modal:X,progress:K,result:J,slider:Z,breadcrumb:re,masonry:ne,menu:ie,pagination:fe,empty:oe,badge:se,radio:he,rate:me,ribbon:xe,switch:Ae,transfer:we,avatar:$e,message:de,tag:be,table:Me,card:Oe,cardMeta:Le,tabs:Ge,timeline:et,timePicker:ze,upload:_e,notification:De,tree:Ue,colorPicker:Ne,datePicker:Se,rangePicker:Be,flex:Je,wave:We,dropdown:Xe,warning:Ie,tour:Ke,tooltip:ot,popover:at,popconfirm:lt,qrcode:St,floatButton:Ct,floatButtonGroup:qe,variant:rt,inputNumber:je,treeSelect:Pe,watermark:ke},jt={...M};Object.keys(ft).forEach(mt=>{ft[mt]!==void 0&&(jt[mt]=ft[mt])}),HA.forEach(mt=>{const Tt=e[mt];Tt&&(jt[mt]=Tt)}),typeof r<"u"&&(jt.button={autoInsertSpace:r,...jt.button});const Rt=od(()=>jt,jt,(mt,Tt)=>{const Ut=Object.keys(mt),ln=Object.keys(Tt);return Ut.length!==ln.length||Ut.some(kt=>mt[kt]!==Tt[kt])}),{layer:wt}=l.useContext(ad),dn=l.useMemo(()=>({prefixCls:Ye,csp:Ze,layer:wt?"antd":void 0}),[Ye,Ze,wt]);let xt=l.createElement(l.Fragment,null,l.createElement(_A,{dropdownMatchSelectWidth:b}),t);const Qe=l.useMemo(()=>us(xa.Form?.defaultValidateMessages||{},Rt.locale?.Form?.defaultValidateMessages||{},Rt.form?.validateMessages||{},d?.validateMessages||{}),[Rt,d?.validateMessages]);Object.keys(Qe).length>0&&(xt=l.createElement(iA.Provider,{value:Qe},xt)),f&&(xt=l.createElement(B5,{locale:f,_ANT_MARK__:H5},xt)),xt=l.createElement(OS.Provider,{value:dn},xt),p&&(xt=l.createElement(zA,{size:p},xt)),xt=l.createElement(jA,null,xt),ot?.unique&&(xt=l.createElement(ET,null,xt));const Et=l.useMemo(()=>{const{algorithm:mt,token:Tt,components:Ut,cssVar:ln,...kt}=it||{},wn=mt&&(!Array.isArray(mt)||mt.length>0)?vb(mt):BR,xn={};Object.entries(Ut||{}).forEach(([fn,Cr])=>{const Pn={...Cr};"algorithm"in Pn&&(Pn.algorithm===!0?Pn.theme=wn:(Array.isArray(Pn.algorithm)||typeof Pn.algorithm=="function")&&(Pn.theme=vb(Pn.algorithm)),delete Pn.algorithm),xn[fn]=Pn});const gr={...Cu,...Tt};return{...kt,theme:wn,token:gr,components:xn,override:{override:gr,...xn},cssVar:ln}},[it]);return R&&(xt=l.createElement(LR.Provider,{value:Et},xt)),Rt.warning&&(xt=l.createElement(e8.Provider,{value:Rt.warning},xt)),T!==void 0&&(xt=l.createElement(MT,{disabled:T},xt)),l.createElement(dt.Provider,{value:Rt},xt)},Zo=e=>{const t=l.useContext(dt),n=l.useContext(PS);return l.createElement(VA,{parentContext:t,legacyLocale:n,...e})};Zo.ConfigContext=dt;Zo.SizeContext=xs;Zo.config=LA;Zo.useConfig=AA;Object.defineProperty(Zo,"SizeContext",{get:()=>xs});const nt={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,CAPS_LOCK:20,ESC:27,SPACE:32,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,N:78,P:80,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,SEMICOLON:186,EQUALS:187,WIN_KEY:224};function km(){return km=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},km.apply(this,arguments)}const IT=l.forwardRef((e,t)=>{const{prefixCls:n,style:r,className:i,duration:s=4.5,showProgress:c,pauseOnHover:d=!0,eventKey:f,content:p,closable:g,props:h,onClick:y,onNoticeClose:C,times:b,hovering:x}=e,[S,$]=l.useState(!1),[M,w]=l.useState(0),[R,T]=l.useState(0),N=x||S,O=typeof s=="number"?s:0,P=O>0&&c,D=()=>{C(f)},k=B=>{(B.key==="Enter"||B.code==="Enter"||B.keyCode===nt.ENTER)&&D()};l.useEffect(()=>{if(!N&&O>0){const B=Date.now()-R,_=setTimeout(()=>{D()},O*1e3-R);return()=>{d&&clearTimeout(_),T(Date.now()-B)}}},[O,N,b]),l.useEffect(()=>{if(!N&&P&&(d||R===0)){const B=performance.now();let _;const H=()=>{cancelAnimationFrame(_),_=requestAnimationFrame(I=>{const z=I+R-B,L=Math.min(z/(O*1e3),1);w(L*100),L<1&&H()})};return H(),()=>{d&&cancelAnimationFrame(_)}}},[O,R,N,P,b]);const F=l.useMemo(()=>typeof g=="object"&&g!==null?g:{},[g]),Y=In(F,!0),G=100-(!M||M<0?0:M>100?100:M),V=`${n}-notice`;return l.createElement("div",km({},h,{ref:t,className:Q(V,i,{[`${V}-closable`]:g}),style:r,onMouseEnter:B=>{$(!0),h?.onMouseEnter?.(B)},onMouseLeave:B=>{$(!1),h?.onMouseLeave?.(B)},onClick:y}),l.createElement("div",{className:`${V}-content`},p),g&&l.createElement("button",km({className:`${V}-close`,onKeyDown:k,"aria-label":"Close"},Y,{onClick:B=>{B.preventDefault(),B.stopPropagation(),D()}}),F.closeIcon??"x"),P&&l.createElement("progress",{className:`${V}-progress`,max:"100",value:G},G+"%"))}),PT=ae.createContext({}),FA=({children:e,classNames:t})=>ae.createElement(PT.Provider,{value:{classNames:t}},e),bE=8,vE=3,SE=16,kA=e=>{const t={offset:bE,threshold:vE,gap:SE};return e&&typeof e=="object"&&(t.offset=e.offset??bE,t.threshold=e.threshold??vE,t.gap=e.gap??SE),[!!e,t]};function Wm(){return Wm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wm.apply(this,arguments)}const WA=e=>{const{configList:t,placement:n,prefixCls:r,className:i,style:s,motion:c,onAllNoticeRemoved:d,onNoticeClose:f,stack:p}=e,{classNames:g}=l.useContext(PT),h=l.useRef({}),[y,C]=l.useState(null),[b,x]=l.useState([]),S=t.map(O=>({config:O,key:String(O.key)})),[$,{offset:M,threshold:w,gap:R}]=kA(p),T=$&&(b.length>0||S.length<=w),N=typeof c=="function"?c(n):c;return l.useEffect(()=>{$&&b.length>1&&x(O=>O.filter(P=>S.some(({key:D})=>P===D)))},[b,S,$]),l.useEffect(()=>{$&&h.current[S[S.length-1]?.key]&&C(h.current[S[S.length-1]?.key])},[S,$]),ae.createElement(M5,Wm({key:n,className:Q(r,`${r}-${n}`,g?.list,i,{[`${r}-stack`]:!!$,[`${r}-stack-expanded`]:T}),style:s,keys:S,motionAppear:!0},N,{onAllRemoved:()=>{d(n)}}),({config:O,className:P,style:D,index:k},F)=>{const{key:Y,times:G}=O,V=String(Y),{className:B,style:_,classNames:H,styles:I,...z}=O,L=S.findIndex(j=>j.key===V),A={};if($){const j=S.length-1-(L>-1?L:k-1),q=n==="top"||n==="bottom"?"-50%":"0";if(j>0){A.height=T?h.current[V]?.offsetHeight:y?.offsetHeight;let X=0;for(let Z=0;Z<j;Z++)X+=h.current[S[S.length-1-Z].key]?.offsetHeight+R;const K=(T?X:j*M)*(n.startsWith("top")?1:-1),J=!T&&y?.offsetWidth&&h.current[V]?.offsetWidth?(y?.offsetWidth-M*2*(j<3?j:3))/h.current[V]?.offsetWidth:1;A.transform=`translate3d(${q}, ${K}px, 0) scaleX(${J})`}else A.transform=`translate3d(${q}, 0, 0)`}return ae.createElement("div",{ref:F,className:Q(`${r}-notice-wrapper`,P,H?.wrapper),style:{...D,...A,...I?.wrapper},onMouseEnter:()=>x(j=>j.includes(V)?j:[...j,V]),onMouseLeave:()=>x(j=>j.filter(q=>q!==V))},ae.createElement(IT,Wm({},z,{ref:j=>{L>-1?h.current[V]=j:delete h.current[V]},prefixCls:r,classNames:H,styles:I,className:Q(B,g?.notice),style:_,times:G,key:Y,eventKey:Y,onNoticeClose:f,hovering:$&&b.length>0})))})},qA=l.forwardRef((e,t)=>{const{prefixCls:n="rc-notification",container:r,motion:i,maxCount:s,className:c,style:d,onAllRemoved:f,stack:p,renderNotifications:g}=e,[h,y]=l.useState([]),C=w=>{const R=h.find(P=>P.key===w),T=R?.closable,N=T&&typeof T=="object"?T:{},{onClose:O}=N;O?.(),R?.onClose?.(),y(P=>P.filter(D=>D.key!==w))};l.useImperativeHandle(t,()=>({open:w=>{y(R=>{let T=[...R];const N=T.findIndex(P=>P.key===w.key),O={...w};return N>=0?(O.times=(R[N]?.times||0)+1,T[N]=O):(O.times=0,T.push(O)),s>0&&T.length>s&&(T=T.slice(-s)),T})},close:w=>{C(w)},destroy:()=>{y([])}}));const[b,x]=l.useState({});l.useEffect(()=>{const w={};h.forEach(R=>{const{placement:T="topRight"}=R;T&&(w[T]=w[T]||[],w[T].push(R))}),Object.keys(b).forEach(R=>{w[R]=w[R]||[]}),x(w)},[h]);const S=w=>{x(R=>{const T={...R};return(T[w]||[]).length||delete T[w],T})},$=l.useRef(!1);if(l.useEffect(()=>{Object.keys(b).length>0?$.current=!0:$.current&&(f?.(),$.current=!1)},[b]),!r)return null;const M=Object.keys(b);return el.createPortal(l.createElement(l.Fragment,null,M.map(w=>{const R=b[w],T=l.createElement(WA,{key:w,configList:R,placement:w,prefixCls:n,className:c?.(w),style:d?.(w),motion:i,onNoticeClose:C,onAllNoticeRemoved:S,stack:p});return g?g(T,{prefixCls:n,key:w}):T})),r)}),YA=()=>document.body;let CE=0;function UA(...e){const t={};return e.forEach(n=>{n&&Object.keys(n).forEach(r=>{const i=n[r];i!==void 0&&(t[r]=i)})}),t}function GA(e={}){const{getContainer:t=YA,motion:n,prefixCls:r,maxCount:i,className:s,style:c,onAllRemoved:d,stack:f,renderNotifications:p,...g}=e,[h,y]=l.useState(),C=l.useRef(),b=l.createElement(qA,{container:h,ref:C,prefixCls:r,motion:n,maxCount:i,className:s,style:c,onAllRemoved:d,stack:f,renderNotifications:p}),[x,S]=l.useState([]),$=ut(w=>{const R=UA(g,w);(R.key===null||R.key===void 0)&&(R.key=`rc-notification-${CE}`,CE+=1),S(T=>[...T,{type:"open",config:R}])}),M=l.useMemo(()=>({open:$,close:w=>{S(R=>[...R,{type:"close",key:w}])},destroy:()=>{S(w=>[...w,{type:"destroy"}])}}),[]);return l.useEffect(()=>{y(t())}),l.useEffect(()=>{if(C.current&&x.length){x.forEach(T=>{switch(T.type){case"open":C.current.open(T.config);break;case"close":C.current.close(T.key);break;case"destroy":C.current.destroy();break}});let w,R;S(T=>((w!==T||!R)&&(w=T,R=T.filter(N=>!x.includes(N))),R))}},[x]),[M,b]}var XA={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};function tv(){return tv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tv.apply(this,arguments)}const KA=(e,t)=>l.createElement(gt,tv({},e,{ref:t,icon:XA})),Rp=l.forwardRef(KA),QA=e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:i,colorSuccess:s,colorError:c,colorWarning:d,colorInfo:f,fontSizeLG:p,motionEaseInOutCirc:g,motionDurationSlow:h,marginXS:y,paddingXS:C,borderRadiusLG:b,zIndexPopup:x,contentPadding:S,contentBg:$}=e,M=`${t}-notice`,w=new Dt("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:C,transform:"translateY(0)",opacity:1}}),R=new Dt("MessageMoveOut",{"0%":{maxHeight:e.height,padding:C,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),T={padding:C,textAlign:"center",[`${t}-custom-content`]:{display:"flex",alignItems:"center"},[`${t}-custom-content > ${n}`]:{marginInlineEnd:y,fontSize:p},[`${M}-content`]:{display:"inline-block",padding:S,background:$,borderRadius:b,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:s},[`${t}-error > ${n}`]:{color:c},[`${t}-warning > ${n}`]:{color:d},[`${t}-info > ${n},
133
+ ${t}-loading > ${n}`]:{color:f}};return[{[t]:{...Zt(e),color:i,position:"fixed",top:y,width:"100%",pointerEvents:"none",zIndex:x,[`${t}-move-up`]:{animationFillMode:"forwards"},[`
134
+ ${t}-move-up-appear,
135
+ ${t}-move-up-enter
136
+ `]:{animationName:w,animationDuration:h,animationPlayState:"paused",animationTimingFunction:g},[`
137
+ ${t}-move-up-appear${t}-move-up-appear-active,
138
+ ${t}-move-up-enter${t}-move-up-enter-active
139
+ `]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:R,animationDuration:h,animationPlayState:"paused",animationTimingFunction:g},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}}},{[t]:{[`${M}-wrapper`]:{...T}}},{[`${t}-notice-pure-panel`]:{...T,padding:0,textAlign:"start"}}]},ZA=e=>({zIndexPopup:e.zIndexPopupBase+uT+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),zT=zt("Message",e=>{const t=Nt(e,{height:150});return QA(t)},ZA),JA={info:l.createElement(NS,null),success:l.createElement(Ep,null),error:l.createElement(zs,null),warning:l.createElement(As,null),loading:l.createElement(Rp,null)},AT=e=>{const{prefixCls:t,type:n,icon:r,children:i,classNames:s,styles:c}=e,d=r||n&&JA[n],f=or(d,p=>{const g={...p?.style,...c?.icon};return{className:Q(p.className,s?.icon),style:g}});return l.createElement("div",{className:Q(`${t}-custom-content`,`${t}-${n}`)},f,l.createElement("span",{className:s?.content,style:c?.content},i))},eD=e=>{const{prefixCls:t,className:n,style:r,type:i,icon:s,content:c,classNames:d,styles:f,...p}=e,{getPrefixCls:g,className:h,style:y,classNames:C,styles:b}=Pt("message"),x=t||g("message"),S=lr(x),[$,M]=zT(x,S),[w,R]=Vt([C,d],[b,f],{props:e});return l.createElement(IT,{...p,prefixCls:x,className:Q(h,w.root,n,$,`${x}-notice-pure-panel`,M,S),style:{...R.root,...y,...r},eventKey:"pure",duration:null,content:l.createElement(AT,{prefixCls:x,type:i,icon:s,classNames:w,styles:R},c)})};function tD(e,t){return{motionName:t??`${e}-move-up`}}function jS(e){let t;const n=new Promise(i=>{t=e(()=>{i(!0)})}),r=()=>{t?.()};return r.then=(i,s)=>n.then(i,s),r.promise=n,r}const nD=8,rD=3,oD=({children:e,prefixCls:t})=>{const n=lr(t),[r,i]=zT(t,n);return l.createElement(FA,{classNames:{list:Q(r,i,n)}},e)},aD=(e,{prefixCls:t,key:n})=>l.createElement(oD,{prefixCls:t,key:n},e),iD=l.forwardRef((e,t)=>{const{top:n,prefixCls:r,getContainer:i,maxCount:s,duration:c=rD,rtl:d,transitionName:f,onAllRemoved:p,pauseOnHover:g=!0}=e,{getPrefixCls:h,direction:y,getPopupContainer:C}=Pt("message"),{message:b}=l.useContext(dt),x=r||h("message"),S=()=>({left:"50%",transform:"translateX(-50%)",top:n??nD}),$=()=>Q({[`${x}-rtl`]:d??y==="rtl"}),M=()=>tD(x,f),[w,R]=Vt([e?.classNames,b?.classNames],[e?.styles,b?.styles],{props:e}),[T,N]=GA({prefixCls:x,style:S,className:$,motion:M,closable:!1,duration:c,getContainer:()=>i?.()||C?.()||document.body,maxCount:s,onAllRemoved:p,renderNotifications:aD,pauseOnHover:g});return l.useImperativeHandle(t,()=>({...T,prefixCls:x,message:b,classNames:w,styles:R})),N});let $E=0;function DT(e){const t=l.useRef(null);return[l.useMemo(()=>{const r=f=>{t.current?.close(f)},i=f=>{if(!t.current){const A=()=>{};return A.then=()=>{},A}const{open:p,prefixCls:g,message:h,classNames:y,styles:C}=t.current,b=h?.className||{},x=h?.style||{},S=h?.classNames||{},$=h?.styles||{},M=`${g}-notice`,{content:w,icon:R,type:T,key:N,className:O,style:P,onClose:D,classNames:k={},styles:F={},...Y}=f;let G=N;Rr(G)||($E+=1,G=`antd-message-${$E}`);const V={...e,...f},B=ms(S,{props:V}),_=ms(k,{props:V}),H=ms($,{props:V}),I=ms(F,{props:V}),z=AS(void 0,B,_,y),L=cT(H,I,C);return jS(A=>(p({...Y,key:G,content:l.createElement(AT,{prefixCls:g,type:T,icon:R,classNames:z,styles:L},w),placement:"top",className:Q({[`${M}-${T}`]:T},O,b,z.root),style:{...L.root,...x,...P},onClose:()=>{D?.(),A()}}),()=>{r(G)}))},c={open:i,destroy:f=>{f!==void 0?r(f):t.current?.destroy()}};return["info","success","warning","error","loading"].forEach(f=>{const p=(g,h,y)=>{let C;g&&typeof g=="object"&&"content"in g?C=g:C={content:g};let b,x;typeof h=="function"?x=h:(b=h,x=y);const S={onClose:x,duration:b,...C,type:f};return i(S)};c[f]=p}),c},[]),l.createElement(iD,{key:"message-holder",...e,ref:t})]}function lD(e){return DT(e)}const qm="__rc_react_root__";function _S(e,t){const n=t[qm]||eR.createRoot(t);n.render(e),t[qm]=n}async function jT(e){return Promise.resolve().then(()=>{e[qm]?.unmount(),delete e[qm]})}const Cy=()=>({height:0,opacity:0}),xE=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},sD=e=>({height:e?e.offsetHeight:0}),$y=(e,t)=>t?.deadline===!0||t.propertyName==="height",_T=(e=pu)=>({motionName:`${e}-motion-collapse`,onAppearStart:Cy,onEnterStart:Cy,onAppearActive:xE,onEnterActive:xE,onLeaveStart:sD,onLeaveActive:Cy,onAppearEnd:$y,onEnterEnd:$y,onLeaveEnd:$y,motionDeadline:500}),Xo=(e,t,n)=>n!==void 0?n:`${e}-${t}`,cD=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(",")}}}}},uD=Fz("Wave",cD),fd=`${pu}-wave-target`;function wE(e){return e&&typeof e=="string"&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"&&e!=="canvastext"}function dD(e,t=null){const n=getComputedStyle(e),{borderTopColor:r,borderColor:i,backgroundColor:s}=n;return t&&wE(n[t])?n[t]:[r,i,s].find(wE)??null}function xy(e){return Number.isNaN(e)?0:e}const fD=e=>{const{className:t,target:n,component:r,colorSource:i}=e,s=l.useRef(null),[c,d]=l.useState(null),[f,p]=l.useState([]),[g,h]=l.useState(0),[y,C]=l.useState(0),[b,x]=l.useState(0),[S,$]=l.useState(0),[M,w]=l.useState(!1),R={left:g,top:y,width:b,height:S,borderRadius:f.map(O=>`${O}px`).join(" ")};c&&(R["--wave-color"]=c);function T(){const O=getComputedStyle(n);d(dD(n,i));const P=O.position==="static",{borderLeftWidth:D,borderTopWidth:k}=O;h(P?n.offsetLeft:xy(-Number.parseFloat(D))),C(P?n.offsetTop:xy(-Number.parseFloat(k))),x(n.offsetWidth),$(n.offsetHeight);const{borderTopLeftRadius:F,borderTopRightRadius:Y,borderBottomLeftRadius:G,borderBottomRightRadius:V}=O;p([F,Y,V,G].map(B=>xy(Number.parseFloat(B))))}if(l.useEffect(()=>{if(n){const O=Bt(()=>{T(),w(!0)});let P;return typeof ResizeObserver<"u"&&(P=new ResizeObserver(T),P.observe(n)),()=>{Bt.cancel(O),P?.disconnect()}}},[n]),!M)return null;const N=(r==="Checkbox"||r==="Radio")&&n?.classList.contains(fd);return l.createElement(Sr,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(O,P)=>{if(P.deadline||P.propertyName==="opacity"){const D=s.current?.parentElement;jT(D).then(()=>{D?.remove()})}return!1}},({className:O},P)=>l.createElement("div",{ref:ir(s,P),className:Q(t,O,{"wave-quick":N}),style:R}))},mD=(e,t)=>{const{component:n}=t;if(n==="Checkbox"&&!e.querySelector("input")?.checked)return;const r=document.createElement("div");r.style.position="absolute",r.style.left="0px",r.style.top="0px",e?.insertBefore(r,e?.firstChild),_S(l.createElement(fD,{...t,target:e}),r)},pD=(e,t,n,r)=>{const{wave:i}=l.useContext(dt),[,s,c]=qr(),d=ut(g=>{const h=e.current;if(i?.disabled||!h)return;const y=h.querySelector(`.${fd}`)||h,{showEffect:C}=i||{};(C||mD)(y,{className:t,token:s,component:n,event:g,hashId:c,colorSource:r})}),f=l.useRef(null);return l.useEffect(()=>()=>{Bt.cancel(f.current)},[]),g=>{Bt.cancel(f.current),f.current=Bt(()=>{d(g)})}},md=e=>{const{children:t,disabled:n,component:r,colorSource:i}=e,{getPrefixCls:s}=l.useContext(dt),c=l.useRef(null),d=s("wave"),f=uD(d),p=pD(c,Q(d,f),r,i);if(ae.useEffect(()=>{const h=c.current;if(!h||h.nodeType!==window.Node.ELEMENT_NODE||n)return;const y=C=>{!Mp(C.target)||!h.getAttribute||h.getAttribute("disabled")||h.disabled||h.className.includes("disabled")&&!h.className.includes("disabled:")||h.getAttribute("aria-disabled")==="true"||h.className.includes("-leave")||p(C)};return h.addEventListener("click",y,!0),()=>{h.removeEventListener("click",y,!0)}},[n]),!ae.isValidElement(t))return t??null;const g=al(t)?ir(il(t),c):c;return or(t,{ref:g})},pr=e=>{const t=ae.useContext(xs);return ae.useMemo(()=>e?typeof e=="string"?e??t:typeof e=="function"?e(t):t:t,[e,t])},gD=e=>{const{componentCls:t}=e;return{[t]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"}}}},hD=zt(["Space","Compact"],e=>[gD(e)],()=>({}),{resetStyle:!1}),Tp=l.createContext(null),Ra=(e,t)=>{const n=l.useContext(Tp),r=l.useMemo(()=>{if(!n)return"";const{compactDirection:i,isFirstItem:s,isLastItem:c}=n,d=i==="vertical"?"-vertical-":"-";return Q(`${e}-compact${d}item`,{[`${e}-compact${d}first-item`]:s,[`${e}-compact${d}last-item`]:c,[`${e}-compact${d}item-rtl`]:t==="rtl"})},[e,t,n]);return{compactSize:n?.compactSize,compactDirection:n?.compactDirection,compactItemClassnames:r}},yD=e=>{const{children:t}=e;return l.createElement(Tp.Provider,{value:null},t)},bD=e=>{const{children:t,...n}=e;return l.createElement(Tp.Provider,{value:l.useMemo(()=>n,[n])},t)},HT=e=>{const{getPrefixCls:t,direction:n}=l.useContext(dt),{size:r,direction:i,orientation:s,block:c,prefixCls:d,className:f,rootClassName:p,children:g,vertical:h,...y}=e,[C,b]=ld(s,h,i),x=pr(N=>r??N),S=t("space-compact",d),[$]=hD(S),M=Q(S,$,{[`${S}-rtl`]:n==="rtl",[`${S}-block`]:c,[`${S}-vertical`]:b},f,p),w=l.useContext(Tp),R=mr(g),T=l.useMemo(()=>R.map((N,O)=>{const P=N?.key||`${S}-item-${O}`;return l.createElement(bD,{key:P,compactSize:x,compactDirection:C,isFirstItem:O===0&&(!w||w?.isFirstItem),isLastItem:O===R.length-1&&(!w||w?.isLastItem)},N)}),[R,w,C,x,S]);return R.length===0?null:l.createElement("div",{className:M,...y},T)},BT=l.createContext(void 0),vD=e=>{const{getPrefixCls:t,direction:n}=l.useContext(dt),{prefixCls:r,size:i,className:s,...c}=e,d=t("btn-group",r),[,,f]=qr(),p=l.useMemo(()=>{switch(i){case"large":return"lg";case"small":return"sm";default:return""}},[i]),g=Q(d,{[`${d}-${p}`]:p,[`${d}-rtl`]:n==="rtl"},s,f);return l.createElement(BT.Provider,{value:i},l.createElement("div",{...c,className:g}))},EE=/^[\u4E00-\u9FA5]{2}$/,nv=EE.test.bind(EE);function HS(e){return e==="danger"?{danger:!0}:{type:e}}function ME(e){return typeof e=="string"}function wy(e){return e==="text"||e==="link"}function SD(e,t,n,r){if(!Rr(e)||e==="")return;const i=t?" ":"";return typeof e!="string"&&typeof e!="number"&&ME(e.type)&&nv(e.props.children)?or(e,s=>({...s,children:s.children.split("").join(i),className:r,style:n})):ME(e)?ae.createElement("span",{className:r,style:n},nv(e)?e.split("").join(i):e):fT(e)?ae.createElement("span",{className:r,style:n},e):or(e,s=>({...s,className:Q(s.className,r)||void 0,style:{...s.style,...n}}))}function CD(e,t,n,r){let i=!1;const s=[];return ae.Children.forEach(e,c=>{const d=typeof c,f=d==="string"||d==="number";if(i&&f){const p=s.length-1,g=s[p];s[p]=`${g}${c}`}else s.push(c);i=f}),ae.Children.map(s,c=>SD(c,t,n,r))}["default","primary","danger"].concat($n(ci));const LT=l.forwardRef((e,t)=>{const{className:n,style:r,children:i,prefixCls:s}=e,c=Q(`${s}-icon`,n);return ae.createElement("span",{ref:t,className:c,style:r},i)}),RE=l.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:i,iconClassName:s}=e,c=Q(`${n}-loading-icon`,r);return ae.createElement(LT,{prefixCls:n,className:c,style:i,ref:t},ae.createElement(Rp,{className:s}))}),Ey=()=>({width:0,opacity:0,transform:"scale(0)"}),My=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),$D=e=>{const{prefixCls:t,loading:n,existIcon:r,className:i,style:s,mount:c}=e,d=!!n;return r?ae.createElement(RE,{prefixCls:t,className:i,style:s}):ae.createElement(Sr,{visible:d,motionName:`${t}-loading-icon-motion`,motionAppear:!c,motionEnter:!c,motionLeave:!c,removeOnLeave:!0,onAppearStart:Ey,onAppearActive:My,onEnterStart:Ey,onEnterActive:My,onLeaveStart:My,onLeaveActive:Ey},({className:f,style:p},g)=>{const h={...s,...p};return ae.createElement(RE,{prefixCls:t,className:Q(i,f),style:h,ref:g})})},TE=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),xD=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:i,colorErrorHover:s}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},TE(`${t}-primary`,i),TE(`${t}-danger`,s)]}},Ry=e=>Math.round(Number(e||0)),wD=e=>{if(e instanceof Jt)return e;if(e&&typeof e=="object"&&"h"in e&&"b"in e){const{b:t,...n}=e;return{...n,v:t}}return typeof e=="string"&&/hsb/.test(e)?e.replace(/hsb/,"hsv"):e};class Eu extends Jt{constructor(t){super(wD(t))}toHsbString(){const t=this.toHsb(),n=Ry(t.s*100),r=Ry(t.b*100),i=Ry(t.h),s=t.a,c=`hsb(${i}, ${n}%, ${r}%)`,d=`hsba(${i}, ${n}%, ${r}%, ${s.toFixed(s===0?0:2)})`;return s===1?c:d}toHsb(){const{v:t,...n}=this.toHsv();return{...n,b:t,a:this.a}}}const ED=e=>e instanceof Eu?e:new Eu(e);ED("#1677ff");const MD=(e,t)=>e?.replace(/[^\w/]/g,"").slice(0,t?8:6)||"",RD=(e,t)=>e?MD(e,t):"";let Ym=(function(){function e(t){if(ll(this,e),this.cleared=!1,t instanceof e){this.metaColor=t.metaColor.clone(),this.colors=t.colors?.map(r=>({color:new e(r.color),percent:r.percent})),this.cleared=t.cleared;return}const n=Array.isArray(t);n&&t.length?(this.colors=t.map(({color:r,percent:i})=>({color:new e(r),percent:i})),this.metaColor=new Eu(this.colors[0].color.metaColor)):this.metaColor=new Eu(n?"":t),(!t||n&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return sl(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return RD(this.toHexString(),this.metaColor.a<1)}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){const{colors:n}=this;return n?`linear-gradient(90deg, ${n.map(i=>`${i.color.toRgbString()} ${i.percent}%`).join(", ")})`:this.metaColor.toRgbString()}},{key:"equals",value:function(n){return!n||this.isGradient()!==n.isGradient()?!1:this.isGradient()?this.colors.length===n.colors.length&&this.colors.every((r,i)=>{const s=n.colors[i];return r.percent===s.percent&&r.color.equals(s.color)}):this.toHexString()===n.toHexString()}}])})();var TD={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"};function rv(){return rv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rv.apply(this,arguments)}const OD=(e,t)=>l.createElement(gt,rv({},e,{ref:t,icon:TD})),ws=l.forwardRef(OD);function Gn(){return Gn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Gn.apply(null,arguments)}const ND=ae.forwardRef((e,t)=>{const{prefixCls:n,forceRender:r,className:i,style:s,children:c,isActive:d,role:f,classNames:p,styles:g}=e,[h,y]=ae.useState(d||r);return ae.useEffect(()=>{(r||d)&&y(!0)},[r,d]),h?ae.createElement("div",{ref:t,className:Q(`${n}-panel`,{[`${n}-panel-active`]:d,[`${n}-panel-inactive`]:!d},i),style:s,role:f},ae.createElement("div",{className:Q(`${n}-body`,p?.body),style:g?.body},c)):null}),VT=ae.forwardRef((e,t)=>{const{showArrow:n=!0,headerClass:r,isActive:i,onItemClick:s,forceRender:c,className:d,classNames:f={},styles:p={},prefixCls:g,collapsible:h,accordion:y,panelKey:C,extra:b,header:x,expandIcon:S,openMotion:$,destroyOnHidden:M,children:w,...R}=e,T=h==="disabled",N=b!=null&&typeof b!="boolean",O={onClick:()=>{s?.(C)},onKeyDown:G=>{(G.key==="Enter"||G.keyCode===nt.ENTER||G.which===nt.ENTER)&&s?.(C)},role:y?"tab":"button","aria-expanded":i,"aria-disabled":T,tabIndex:T?-1:0},P=typeof S=="function"?S(e):ae.createElement("i",{className:"arrow"}),D=P&&ae.createElement("div",Gn({className:Q(`${g}-expand-icon`,f?.icon),style:p?.icon},["header","icon"].includes(h)?O:{}),P),k=Q(`${g}-item`,{[`${g}-item-active`]:i,[`${g}-item-disabled`]:T},d),Y={className:Q(r,`${g}-header`,{[`${g}-collapsible-${h}`]:!!h},f?.header),style:p?.header,...["header","icon"].includes(h)?{}:O};return ae.createElement("div",Gn({},R,{ref:t,className:k}),ae.createElement("div",Y,n&&D,ae.createElement("span",Gn({className:Q(`${g}-title`,f?.title),style:p?.title},h==="header"?O:{}),x),N&&ae.createElement("div",{className:`${g}-extra`},b)),ae.createElement(Sr,Gn({visible:i,leavedClassName:`${g}-panel-hidden`},$,{forceRender:c,removeOnLeave:M}),({className:G,style:V},B)=>ae.createElement(ND,{ref:B,prefixCls:g,className:G,classNames:f,style:V,styles:p,isActive:i,forceRender:c,role:y?"tabpanel":void 0},w)))}),ID=(e,t)=>{const{prefixCls:n,accordion:r,collapsible:i,destroyOnHidden:s,onItemClick:c,activeKey:d,openMotion:f,expandIcon:p,classNames:g,styles:h}=t;return e.map((y,C)=>{const{children:b,label:x,key:S,collapsible:$,onItemClick:M,destroyOnHidden:w,...R}=y,T=String(S??C),N=$??i,O=w??s,P=k=>{N!=="disabled"&&(c(k),M?.(k))};let D=!1;return r?D=d[0]===T:D=d.indexOf(T)>-1,ae.createElement(VT,Gn({},R,{classNames:g,styles:h,prefixCls:n,key:T,panelKey:T,isActive:D,accordion:r,openMotion:f,expandIcon:p,header:x,collapsible:N,onItemClick:P,destroyOnHidden:O}),b)})},PD=(e,t,n)=>{if(!e)return null;const{prefixCls:r,accordion:i,collapsible:s,destroyOnHidden:c,onItemClick:d,activeKey:f,openMotion:p,expandIcon:g,classNames:h,styles:y}=n,C=e.key||String(t),{header:b,headerClass:x,destroyOnHidden:S,collapsible:$,onItemClick:M}=e.props;let w=!1;i?w=f[0]===C:w=f.indexOf(C)>-1;const R=$??s,T=O=>{R!=="disabled"&&(d(O),M?.(O))},N={key:C,panelKey:C,header:b,headerClass:x,classNames:h,styles:y,isActive:w,prefixCls:r,destroyOnHidden:S??c,openMotion:p,accordion:i,children:e.props.children,onItemClick:T,expandIcon:g,collapsible:R};return typeof e.type=="string"?e:(Object.keys(N).forEach(O=>{typeof N[O]>"u"&&delete N[O]}),ae.cloneElement(e,N))};function zD(e,t,n){return Array.isArray(e)?ID(e,n):mr(t).map((r,i)=>PD(r,i,n))}function OE(e){let t=e;if(!Array.isArray(t)){const n=typeof t;t=n==="number"||n==="string"?[t]:[]}return t.map(n=>String(n))}const AD=ae.forwardRef((e,t)=>{const{prefixCls:n="rc-collapse",destroyOnHidden:r=!1,style:i,accordion:s,className:c,children:d,collapsible:f,openMotion:p,expandIcon:g,activeKey:h,defaultActiveKey:y,onChange:C,items:b,classNames:x,styles:S}=e,$=Q(n,c),[M,w]=Yt(y,h),R=OE(M),T=ut(P=>{const D=OE(P);w(D),C?.(D)}),N=P=>{T(s?R[0]===P?[]:[P]:R.includes(P)?R.filter(D=>D!==P):[...R,P])};rr(!d,"[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");const O=zD(b,d,{prefixCls:n,accordion:s,openMotion:p,expandIcon:g,collapsible:f,destroyOnHidden:r,onItemClick:N,activeKey:R,classNames:x,styles:S});return ae.createElement("div",Gn({ref:t,className:$,style:i,role:s?"tablist":void 0},In(e,{aria:!0,data:!0})),O)}),BS=Object.assign(AD,{Panel:VT}),{Panel:Cee}=BS,DD=l.forwardRef((e,t)=>{const{getPrefixCls:n}=l.useContext(dt),{prefixCls:r,className:i,showArrow:s=!0}=e,c=n("collapse",r),d=Q({[`${c}-no-arrow`]:!s},i);return l.createElement(BS.Panel,{ref:t,...e,prefixCls:c,className:d})}),FT=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
140
+ opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
141
+ opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),jD=e=>({animationDuration:e,animationFillMode:"both"}),_D=e=>({animationDuration:e,animationFillMode:"both"}),Op=(e,t,n,r,i=!1)=>{const s=i?"&":"";return{[`
142
+ ${s}${e}-enter,
143
+ ${s}${e}-appear
144
+ `]:{...jD(r),animationPlayState:"paused"},[`${s}${e}-leave`]:{..._D(r),animationPlayState:"paused"},[`
145
+ ${s}${e}-enter${e}-enter-active,
146
+ ${s}${e}-appear${e}-appear-active
147
+ `]:{animationName:t,animationPlayState:"running"},[`${s}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},HD=new Dt("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),BD=new Dt("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),kT=(e,t=!1)=>{const{antCls:n}=e,r=`${n}-fade`,i=t?"&":"";return[Op(r,HD,BD,e.motionDurationMid,t),{[`
148
+ ${i}${r}-enter,
149
+ ${i}${r}-appear
150
+ `]:{opacity:0,animationTimingFunction:"linear"},[`${i}${r}-leave`]:{animationTimingFunction:"linear"}}]},LD=new Dt("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),VD=new Dt("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),FD=new Dt("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),kD=new Dt("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),WD=new Dt("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),qD=new Dt("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),YD=new Dt("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),UD=new Dt("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),GD={"move-up":{inKeyframes:YD,outKeyframes:UD},"move-down":{inKeyframes:LD,outKeyframes:VD},"move-left":{inKeyframes:FD,outKeyframes:kD},"move-right":{inKeyframes:WD,outKeyframes:qD}},Es=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:s}=GD[t];return[Op(r,i,s,e.motionDurationMid),{[`
151
+ ${r}-enter,
152
+ ${r}-appear
153
+ `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Np=new Dt("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Ip=new Dt("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),Pp=new Dt("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),zp=new Dt("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),XD=new Dt("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),KD=new Dt("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),QD=new Dt("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),ZD=new Dt("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),JD={"slide-up":{inKeyframes:Np,outKeyframes:Ip},"slide-down":{inKeyframes:Pp,outKeyframes:zp},"slide-left":{inKeyframes:XD,outKeyframes:KD},"slide-right":{inKeyframes:QD,outKeyframes:ZD}},Ko=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:s}=JD[t];return[Op(r,i,s,e.motionDurationMid),{[`
154
+ ${r}-enter,
155
+ ${r}-appear
156
+ `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},ej=new Dt("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),tj=new Dt("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),NE=new Dt("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),IE=new Dt("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),nj=new Dt("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),rj=new Dt("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),oj=new Dt("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),aj=new Dt("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),ij=new Dt("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),lj=new Dt("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),sj=new Dt("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),cj=new Dt("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),uj={zoom:{inKeyframes:ej,outKeyframes:tj},"zoom-big":{inKeyframes:NE,outKeyframes:IE},"zoom-big-fast":{inKeyframes:NE,outKeyframes:IE},"zoom-left":{inKeyframes:oj,outKeyframes:aj},"zoom-right":{inKeyframes:ij,outKeyframes:lj},"zoom-up":{inKeyframes:nj,outKeyframes:rj},"zoom-down":{inKeyframes:sj,outKeyframes:cj}},pd=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:s}=uj[t];return[Op(r,i,s,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[`
157
+ ${r}-enter,
158
+ ${r}-appear
159
+ `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},dj=e=>{const{componentCls:t,contentBg:n,padding:r,headerBg:i,headerPadding:s,collapseHeaderPaddingSM:c,collapseHeaderPaddingLG:d,collapsePanelBorderRadius:f,lineWidth:p,lineType:g,colorBorder:h,colorText:y,colorTextHeading:C,colorTextDisabled:b,fontSizeLG:x,lineHeight:S,lineHeightLG:$,marginSM:M,paddingSM:w,paddingLG:R,paddingXS:T,motionDurationSlow:N,fontSizeIcon:O,contentPadding:P,fontHeight:D,fontHeightLG:k}=e,F=`${te(p)} ${g} ${h}`;return{[t]:{...Zt(e),backgroundColor:i,border:F,borderRadius:f,"&-rtl":{direction:"rtl"},[`& > ${t}-item`]:{borderBottom:F,"&:first-child":{[`
160
+ &,
161
+ & > ${t}-header`]:{borderRadius:`${te(f)} ${te(f)} 0 0`}},"&:last-child":{[`
162
+ &,
163
+ & > ${t}-header`]:{borderRadius:`0 0 ${te(f)} ${te(f)}`}},[`> ${t}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:s,color:C,lineHeight:S,cursor:"pointer",transition:`all ${N}, visibility 0s`,...xo(e),[`> ${t}-title`]:{flex:"auto"},[`${t}-expand-icon`]:{height:D,display:"flex",alignItems:"center",marginInlineEnd:M},[`${t}-arrow`]:{...Is(),fontSize:O,transition:`transform ${N}`,svg:{transition:`transform ${N}`}},[`${t}-title`]:{marginInlineEnd:"auto"}},[`${t}-collapsible-header`]:{cursor:"default",[`${t}-title`]:{flex:"none",cursor:"pointer"},[`${t}-expand-icon`]:{cursor:"pointer"}},[`${t}-collapsible-icon`]:{cursor:"unset",[`${t}-expand-icon`]:{cursor:"pointer"}}},[`${t}-panel`]:{color:y,backgroundColor:n,borderTop:F,[`& > ${t}-body`]:{padding:P},"&-hidden":{display:"none"}},"&-small":{[`> ${t}-item`]:{[`> ${t}-header`]:{padding:c,paddingInlineStart:T,[`> ${t}-expand-icon`]:{marginInlineStart:e.calc(w).sub(T).equal()}},[`> ${t}-panel > ${t}-body`]:{padding:w}}},"&-large":{[`> ${t}-item`]:{fontSize:x,lineHeight:$,[`> ${t}-header`]:{padding:d,paddingInlineStart:r,[`> ${t}-expand-icon`]:{height:k,marginInlineStart:e.calc(R).sub(r).equal()}},[`> ${t}-panel > ${t}-body`]:{padding:R}}},[`${t}-item:last-child`]:{borderBottom:0,[`> ${t}-panel`]:{borderRadius:`0 0 ${te(f)} ${te(f)}`}},[`& ${t}-item-disabled > ${t}-header`]:{"\n &,\n & > .arrow\n ":{color:b,cursor:"not-allowed"}},[`&${t}-icon-placement-end`]:{[`& > ${t}-item`]:{[`> ${t}-header`]:{[`${t}-expand-icon`]:{order:1,marginInlineEnd:0,marginInlineStart:M}}}}}}},fj=e=>{const{componentCls:t}=e,n=`> ${t}-item > ${t}-header ${t}-arrow`;return{[`${t}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},mj=e=>{const{componentCls:t,headerBg:n,borderlessContentPadding:r,borderlessContentBg:i,colorBorder:s}=e;return{[`${t}-borderless`]:{backgroundColor:n,border:0,[`> ${t}-item`]:{borderBottom:`1px solid ${s}`},[`
164
+ > ${t}-item:last-child,
165
+ > ${t}-item:last-child ${t}-header
166
+ `]:{borderRadius:0},[`> ${t}-item:last-child`]:{borderBottom:0},[`> ${t}-item > ${t}-panel`]:{backgroundColor:i,borderTop:0},[`> ${t}-item > ${t}-panel > ${t}-body`]:{padding:r}}}},pj=e=>{const{componentCls:t,paddingSM:n}=e;return{[`${t}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${t}-item`]:{borderBottom:0,[`> ${t}-panel`]:{backgroundColor:"transparent",border:0,[`> ${t}-body`]:{paddingBlock:n}}}}}},gj=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"}),hj=zt("Collapse",e=>{const t=Nt(e,{collapseHeaderPaddingSM:`${te(e.paddingXS)} ${te(e.paddingSM)}`,collapseHeaderPaddingLG:`${te(e.padding)} ${te(e.paddingLG)}`,collapsePanelBorderRadius:e.borderRadiusLG});return[dj(t),mj(t),pj(t),fj(t),FT(t)]},gj),yj=l.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r,expandIcon:i,className:s,style:c,classNames:d,styles:f}=Pt("collapse"),{prefixCls:p,className:g,rootClassName:h,style:y,bordered:C=!0,ghost:b,size:x,expandIconPlacement:S,expandIconPosition:$,children:M,destroyInactivePanel:w,destroyOnHidden:R,expandIcon:T,classNames:N,styles:O}=e,P=pr(j=>x??j??"middle"),D=n("collapse",p),k=n(),[F,Y]=hj(D),G=S??$??"start",V={...e,size:P,bordered:C,expandIconPlacement:G},[B,_]=Vt([d,N],[f,O],{props:V}),H=T??i,I=l.useCallback((j={})=>{const q=typeof H=="function"?H(j):l.createElement(ws,{rotate:j.isActive?r==="rtl"?-90:90:void 0,"aria-label":j.isActive?"expanded":"collapsed"});return or(q,()=>({className:Q(q?.props?.className,`${D}-arrow`)}))},[H,D,r]),z=Q(`${D}-icon-placement-${G}`,{[`${D}-borderless`]:!C,[`${D}-rtl`]:r==="rtl",[`${D}-ghost`]:!!b,[`${D}-${P}`]:P!=="middle"},s,g,h,F,Y,B.root),L=l.useMemo(()=>({..._T(k),motionAppear:!1,leavedClassName:`${D}-panel-hidden`}),[k,D]),A=l.useMemo(()=>M?mr(M).map(j=>j):null,[M]);return l.createElement(BS,{ref:t,openMotion:L,...en(e,["rootClassName"]),expandIcon:I,prefixCls:D,className:z,style:{..._.root,...c,...y},classNames:B,styles:_,destroyOnHidden:R??w},A)}),PE=Object.assign(yj,{Panel:DD}),bj=e=>e instanceof Ym?e:new Ym(e),WT=(e,t)=>{const{r:n,g:r,b:i,a:s}=e.toRgb(),c=new Eu(e.toRgbString()).onBackground(t).toHsv();return s<=.5?c.v>.5:n*.299+r*.587+i*.114>192},qT=e=>{const{paddingInline:t,onlyIconSize:n,borderColorDisabled:r}=e;return Nt(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n,colorBorderDisabled:r})},YT=e=>{const t=e.contentFontSize??e.fontSize,n=e.contentFontSizeSM??e.fontSize,r=e.contentFontSizeLG??e.fontSizeLG,i=e.contentLineHeight??Sm(t),s=e.contentLineHeightSM??Sm(n),c=e.contentLineHeightLG??Sm(r),d=WT(new Ym(e.colorBgSolid),"#fff")?"#000":"#fff",f=ci.reduce((h,y)=>({...h,[`${y}ShadowColor`]:`0 ${te(e.controlOutlineWidth)} 0 ${Gc(e[`${y}1`],e.colorBgContainer)}`}),{}),p=e.colorBgContainerDisabled,g=e.colorBgContainerDisabled;return{...f,fontWeight:400,iconGap:e.marginXS,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorderDisabled,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:"inherit",onlyIconSizeSM:"inherit",onlyIconSizeLG:"inherit",groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,solidTextColor:d,contentFontSize:t,contentFontSizeSM:n,contentFontSizeLG:r,contentLineHeight:i,contentLineHeightSM:s,contentLineHeightLG:c,paddingBlock:Math.max((e.controlHeight-t*i)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-n*s)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-r*c)/2-e.lineWidth,0),defaultBgDisabled:p,dashedBgDisabled:g}},vj=e=>{const{componentCls:t,antCls:n}=e,r=kz(n,"btn");return{[t]:[{[r("border-width")]:"1px",[r("border-color")]:"#000",[r("border-color-hover")]:`var(${r("border-color")})`,[r("border-color-active")]:`var(${r("border-color")})`,[r("border-color-disabled")]:`var(${r("border-color")})`,[r("border-style")]:"solid",[r("text-color")]:"#000",[r("text-color-hover")]:`var(${r("text-color")})`,[r("text-color-active")]:`var(${r("text-color")})`,[r("text-color-disabled")]:`var(${r("text-color")})`,[r("bg-color")]:"#ddd",[r("bg-color-hover")]:`var(${r("bg-color")})`,[r("bg-color-active")]:`var(${r("bg-color")})`,[r("bg-color-disabled")]:e.colorBgContainerDisabled,[r("bg-color-container")]:e.colorBgContainer,[r("shadow")]:"none"},{border:`var(${r("border-width")}) var(${r("border-style")}) var(${r("border-color")})`,color:`var(${r("text-color")})`,backgroundColor:`var(${r("bg-color")})`,[`&:not(:disabled):not(${t}-disabled)`]:{"&:hover":{border:`var(${r("border-width")}) var(${r("border-style")}) var(${r("border-color-hover")})`,color:`var(${r("text-color-hover")})`,backgroundColor:`var(${r("bg-color-hover")})`},"&:active":{border:`var(${r("border-width")}) var(${r("border-style")}) var(${r("border-color-active")})`,color:`var(${r("text-color-active")})`,backgroundColor:`var(${r("bg-color-active")})`}}},{[`&${t}-variant-solid`]:{[r("solid-bg-color")]:`var(${r("color-base")})`,[r("solid-bg-color-hover")]:`var(${r("color-hover")})`,[r("solid-bg-color-active")]:`var(${r("color-active")})`,[r("border-color")]:"transparent",[r("text-color")]:e.colorTextLightSolid,[r("bg-color")]:`var(${r("solid-bg-color")})`,[r("bg-color-hover")]:`var(${r("solid-bg-color-hover")})`,[r("bg-color-active")]:`var(${r("solid-bg-color-active")})`,boxShadow:`var(${r("shadow")})`},[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[r("border-color")]:`var(${r("color-base")})`,[r("border-color-hover")]:`var(${r("color-hover")})`,[r("border-color-active")]:`var(${r("color-active")})`,[r("bg-color")]:`var(${r("bg-color-container")})`,[r("text-color")]:`var(${r("color-base")})`,[r("text-color-hover")]:`var(${r("color-hover")})`,[r("text-color-active")]:`var(${r("color-active")})`,boxShadow:`var(${r("shadow")})`},[`&${t}-variant-dashed`]:{[r("border-style")]:"dashed",[r("bg-color-disabled")]:e.dashedBgDisabled},[`&${t}-variant-filled`]:{[r("border-color")]:"transparent",[r("text-color")]:`var(${r("color-base")})`,[r("bg-color")]:`var(${r("color-light")})`,[r("bg-color-hover")]:`var(${r("color-light-hover")})`,[r("bg-color-active")]:`var(${r("color-light-active")})`},[`&${t}-variant-text, &${t}-variant-link`]:{[r("border-color")]:"transparent",[r("text-color")]:`var(${r("color-base")})`,[r("text-color-hover")]:`var(${r("color-hover")})`,[r("text-color-active")]:`var(${r("color-active")})`,[r("bg-color")]:"transparent",[r("bg-color-hover")]:"transparent",[r("bg-color-active")]:"transparent",[`&:disabled, &${e.componentCls}-disabled`]:{background:"transparent",borderColor:"transparent"}},[`&${t}-variant-text`]:{[r("bg-color-hover")]:`var(${r("color-light")})`,[r("bg-color-active")]:`var(${r("color-light-active")})`}},{[`&${t}-variant-link`]:{[r("color-base")]:e.colorLink,[r("color-hover")]:e.colorLinkHover,[r("color-active")]:e.colorLinkActive},[`&${t}-color-primary`]:{[r("color-base")]:e.colorPrimary,[r("color-hover")]:e.colorPrimaryHover,[r("color-active")]:e.colorPrimaryActive,[r("color-light")]:e.colorPrimaryBg,[r("color-light-hover")]:e.colorPrimaryBgHover,[r("color-light-active")]:e.colorPrimaryBorder,[r("shadow")]:e.primaryShadow,[`&${t}-variant-solid`]:{[r("text-color")]:e.primaryColor,[r("text-color-hover")]:`var(${r("text-color")})`,[r("text-color-active")]:`var(${r("text-color")})`}},[`&${t}-color-dangerous`]:{[r("color-base")]:e.colorError,[r("color-hover")]:e.colorErrorHover,[r("color-active")]:e.colorErrorActive,[r("color-light")]:e.colorErrorBg,[r("color-light-hover")]:e.colorErrorBgFilledHover,[r("color-light-active")]:e.colorErrorBgActive,[r("shadow")]:e.dangerShadow,[`&${t}-variant-solid`]:{[r("text-color")]:e.dangerColor,[r("text-color-hover")]:`var(${r("text-color")})`,[r("text-color-active")]:`var(${r("text-color")})`}},[`&${t}-color-default`]:{[r("solid-bg-color")]:e.colorBgSolid,[r("solid-bg-color-hover")]:e.colorBgSolidHover,[r("solid-bg-color-active")]:e.colorBgSolidActive,[r("color-base")]:e.defaultBorderColor,[r("color-hover")]:e.defaultHoverBorderColor,[r("color-active")]:e.defaultActiveBorderColor,[r("color-light")]:e.colorFillTertiary,[r("color-light-hover")]:e.colorFillSecondary,[r("color-light-active")]:e.colorFill,[r("text-color")]:e.colorText,[r("text-color-hover")]:e.defaultHoverBorderColor,[r("text-color-active")]:e.defaultActiveBorderColor,[r("shadow")]:e.defaultShadow,[`&${t}-variant-solid`]:{[r("text-color")]:e.solidTextColor,[r("text-color-hover")]:`var(${r("text-color")})`,[r("text-color-active")]:`var(${r("text-color")})`},[`&${t}-variant-filled, &${t}-variant-text`]:{[r("text-color-hover")]:`var(${r("text-color")})`,[r("text-color-active")]:`var(${r("text-color")})`},[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[r("bg-color-hover")]:e.defaultHoverBg,[r("bg-color-active")]:e.defaultActiveBg},[`&${t}-background-ghost`]:{[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[r("text-color")]:e.defaultGhostColor,[r("border-color")]:e.defaultGhostBorderColor}}}},ci.map(i=>{const s=e[`${i}6`],c=e[`${i}1`],d=e[`${i}5`],f=e[`${i}2`],p=e[`${i}3`],g=e[`${i}7`],h=e[`${i}ShadowColor`];return{[`&${t}-color-${i}`]:{[r("color-base")]:s,[r("color-hover")]:d,[r("color-active")]:g,[r("color-light")]:c,[r("color-light-hover")]:f,[r("color-light-active")]:p,[r("shadow")]:h}}}),{[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",borderColor:e.colorBorderDisabled,background:`var(${r("bg-color-disabled")})`,color:e.colorTextDisabled,boxShadow:"none"}},{[`&${t}-background-ghost`]:{[r("bg-color")]:"transparent",[r("shadow")]:"none"}}]}},Sj=e=>{const{componentCls:t,iconCls:n,fontWeight:r,opacityLoading:i,motionDurationSlow:s,motionEaseInOut:c,iconGap:d,calc:f}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:d,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation","&:disabled > *":{pointerEvents:"none"},[`${t}-icon > svg`]:Is(),"> a":{color:"currentColor"},"&:not(:disabled)":xo(e),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${t}-icon-only`]:{paddingInline:0,[`&${t}-compact-item`]:{flex:"none"}},[`&${t}-loading`]:{opacity:i,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map(p=>`${p} ${s} ${c}`).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:f(d).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:f(d).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:f(d).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:f(d).mul(-1).equal()}}}}}},Cj=e=>({minWidth:e.controlHeight,paddingInline:0,borderRadius:"50%"}),LS=(e,t="")=>{const{componentCls:n,controlHeight:r,fontSize:i,borderRadius:s,buttonPaddingHorizontal:c,iconCls:d,buttonPaddingVertical:f,buttonIconOnlyFontSize:p}=e;return[{[t]:{fontSize:i,height:r,padding:`${te(f)} ${te(c)}`,borderRadius:s,[`&${n}-icon-only`]:{width:r,[d]:{fontSize:p}}}},{[`${n}${n}-circle${t}`]:Cj(e)},{[`${n}${n}-round${t}`]:{borderRadius:e.controlHeight,[`&:not(${n}-icon-only)`]:{paddingInline:e.buttonPaddingHorizontal}}}]},$j=e=>{const t=Nt(e,{fontSize:e.contentFontSize});return LS(t,e.componentCls)},xj=e=>{const t=Nt(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return LS(t,`${e.componentCls}-sm`)},wj=e=>{const t=Nt(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return LS(t,`${e.componentCls}-lg`)},Ej=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},Mj=zt("Button",e=>{const t=qT(e);return[Sj(t),$j(t),xj(t),wj(t),Ej(t),vj(t),xD(t)]},YT,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function Rj(e,t,n,r){const{focusElCls:i,focus:s,borderElCls:c}=n,d=c?"> *":"",f=["hover",s?"focus":null,"active"].filter(Boolean).map(p=>`&:${p} ${d}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${r}-status-success)`]:{zIndex:2},"&-item":{[f]:{zIndex:3},...i?{[`&${i}`]:{zIndex:3}}:{},[`&[disabled] ${d}`]:{zIndex:0}}}}function Tj(e,t,n){const{borderElCls:r}=n,i=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${i}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function gd(e,t={focus:!0}){const{componentCls:n}=e,{componentCls:r}=t,i=r||n,s=`${i}-compact`;return{[s]:{...Rj(e,s,t,i),...Tj(i,s,t)}}}function Oj(e,t,n){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${n}-status-success)`]:{zIndex:2},"&-item":{"&:hover,&:focus,&:active":{zIndex:3},"&[disabled]":{zIndex:0}}}}function Nj(e,t){return{[`&-item:not(${t}-first-item):not(${t}-last-item)`]:{borderRadius:0},[`&-item${t}-first-item:not(${t}-last-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${t}-last-item:not(${t}-first-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function Ij(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:{...Oj(e,t,e.componentCls),...Nj(e.componentCls,t)}}}const Pj=e=>{const{componentCls:t,colorPrimaryHover:n,lineWidth:r,calc:i}=e,s=i(r).mul(-1).equal(),c=d=>{const f=`${t}-compact${d?"-vertical":""}-item`,p=`${f}${t}-primary:not([disabled])`;return{[f]:{transition:"none"},[`${p} + ${p}::before`]:{position:"absolute",top:d?s:0,insetInlineStart:d?0:s,backgroundColor:n,content:'""',width:d?"100%":r,height:d?r:"100%"}}};return{...c(),...c(!0)}},zj=id(["Button","compact"],e=>{const t=qT(e);return[gd(t),Ij(t),Pj(t)]},YT);function Aj(e){if(typeof e=="object"&&e){let t=e?.delay;return t=!Number.isNaN(t)&&typeof t=="number"?t:0,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}const Dj={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]},jj=ae.forwardRef((e,t)=>{const{_skipSemantic:n,loading:r=!1,prefixCls:i,color:s,variant:c,type:d,danger:f=!1,shape:p,size:g,disabled:h,className:y,rootClassName:C,children:b,icon:x,iconPosition:S,iconPlacement:$,ghost:M=!1,block:w=!1,htmlType:R="button",classNames:T,styles:N,style:O,autoInsertSpace:P,autoFocus:D,...k}=e,F=mr(b),Y=d||"default",{button:G}=ae.useContext(dt),V=p||G?.shape||"default",[B,_]=l.useMemo(()=>{if(s&&c)return[s,c];if(d||f){const lt=Dj[Y]||[];return f?["danger",lt[1]]:lt}return G?.color&&G?.variant?[G.color,G.variant]:["default","outlined"]},[s,c,d,f,G?.color,G?.variant,Y]),[H,I]=l.useMemo(()=>M&&_==="solid"?[B,"outlined"]:[B,_],[B,_,M]),z=H==="danger",L=z?"dangerous":H,{getPrefixCls:A,direction:j,autoInsertSpace:q,className:X,style:K,classNames:J,styles:Z}=Pt("button"),re=P??q??!0,ne=A("btn",i),[ie,fe]=Mj(ne),le=l.useContext(Wr),ue=h??le,ge=l.useContext(BT),oe=l.useMemo(()=>Aj(r),[r]),[se,he]=l.useState(oe.loading),[me,xe]=l.useState(!1),Ae=l.useRef(null),we=fi(t,Ae),$e=F.length===1&&!x&&!wy(I),de=l.useRef(!0);ae.useEffect(()=>(de.current=!1,()=>{de.current=!0}),[]),It(()=>{let lt=null;oe.delay>0?lt=setTimeout(()=>{lt=null,he(!0)},oe.delay):he(oe.loading);function St(){lt&&(clearTimeout(lt),lt=null)}return St},[oe.delay,oe.loading]),l.useEffect(()=>{if(!Ae.current||!re)return;const lt=Ae.current.textContent||"";$e&&nv(lt)?me||xe(!0):me&&xe(!1)}),l.useEffect(()=>{D&&Ae.current&&Ae.current.focus()},[]);const be=ae.useCallback(lt=>{if(se||ue){lt.preventDefault();return}e.onClick?.(("href"in e,lt))},[e.onClick,se,ue]),{compactSize:Me,compactItemClassnames:Oe}=Ra(ne,j),Le={large:"lg",small:"sm",middle:void 0},Ge=pr(lt=>g??Me??ge??lt),et=Ge?Le[Ge]??"":"",ze=se?"loading":x,_e=$??S??"start",De=en(k,["navigate"]),Ue={...e,type:Y,color:H,variant:I,danger:z,shape:V,size:Ge,disabled:ue,loading:se,iconPlacement:_e},[Ne,Se]=Vt([n?void 0:J,T],[n?void 0:Z,N],{props:Ue}),Be=Q(ne,ie,fe,{[`${ne}-${V}`]:V!=="default"&&V!=="square"&&V,[`${ne}-${Y}`]:Y,[`${ne}-dangerous`]:f,[`${ne}-color-${L}`]:L,[`${ne}-variant-${I}`]:I,[`${ne}-${et}`]:et,[`${ne}-icon-only`]:!b&&b!==0&&!!ze,[`${ne}-background-ghost`]:M&&!wy(I),[`${ne}-loading`]:se,[`${ne}-two-chinese-chars`]:me&&re&&!se,[`${ne}-block`]:w,[`${ne}-rtl`]:j==="rtl",[`${ne}-icon-end`]:_e==="end"},Oe,y,C,X,Ne.root),Je={...Se.root,...K,...O},We={className:Ne.icon,style:Se.icon},Xe=lt=>ae.createElement(LT,{prefixCls:ne,...We},lt),Ie=ae.createElement($D,{existIcon:!!x,prefixCls:ne,loading:se,mount:de.current,...We});let Ke;x&&!se?Ke=Xe(x):r&&typeof r=="object"&&r.icon?Ke=Xe(r.icon):Ke=Ie;const ot=Rr(b)?CD(b,$e&&re,Se.content,Ne.content):null;if(De.href!==void 0)return ae.createElement("a",{...De,className:Q(Be,{[`${ne}-disabled`]:ue}),href:ue?void 0:De.href,style:Je,onClick:be,ref:we,tabIndex:ue?-1:0,"aria-disabled":ue},Ke,ot);let at=ae.createElement("button",{...k,type:R,className:Be,style:Je,onClick:be,disabled:ue,ref:we},Ke,ot,Oe&&ae.createElement(zj,{prefixCls:ne}));return wy(I)||(at=ae.createElement(md,{component:"Button",disabled:se},at)),at}),Ht=jj;Ht.Group=vD;Ht.__ANT_BUTTON=!0;const Ty=e=>typeof e?.then=="function",VS=e=>{const{type:t,children:n,prefixCls:r,buttonProps:i,close:s,autoFocus:c,emitEvent:d,isSilent:f,quitOnNullishReturnValue:p,actionFn:g}=e,h=l.useRef(!1),y=l.useRef(null),[C,b]=Dm(!1),x=(...M)=>{s?.(...M)};l.useEffect(()=>{let M=null;return c&&(M=setTimeout(()=>{y.current?.focus({preventScroll:!0})})),()=>{M&&clearTimeout(M)}},[c]);const S=M=>{Ty(M)&&(b(!0),M.then((...w)=>{b(!1,!0),x.apply(void 0,w),h.current=!1},w=>{if(b(!1,!0),h.current=!1,!f?.())return Promise.reject(w)}))},$=M=>{if(h.current)return;if(h.current=!0,!g){x();return}let w;if(d){if(w=g(M),p&&!Ty(w)){h.current=!1,x(M);return}}else if(g.length)w=g(s),h.current=!1;else if(w=g(),!Ty(w)){x();return}S(w)};return l.createElement(Ht,{...HS(t),onClick:$,loading:C,prefixCls:r,...i,ref:y},n)},hd=ae.createContext({}),{Provider:UT}=hd,zE=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:i,rootPrefixCls:s,close:c,onCancel:d,onConfirm:f,onClose:p}=l.useContext(hd);return i?ae.createElement(VS,{isSilent:r,actionFn:d,close:(...g)=>{c?.(...g),f?.(!1),p?.()},autoFocus:e==="cancel",buttonProps:t,prefixCls:`${s}-btn`},n):null},AE=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:i,okTextLocale:s,okType:c,onConfirm:d,onOk:f,onClose:p}=l.useContext(hd);return ae.createElement(VS,{isSilent:n,type:c||"primary",actionFn:f,close:(...g)=>{t?.(...g),d?.(!0),p?.()},autoFocus:e==="ok",buttonProps:r,prefixCls:`${i}-btn`},s)},GT=l.createContext({});function DE(e,t,n){let r=t;return!r&&n&&(r=`${e}-${n}`),r}function jE(e,t){let n=e[`page${t?"Y":"X"}Offset`];const r=`scroll${t?"Top":"Left"}`;if(typeof n!="number"){const i=e.document;n=i.documentElement[r],typeof n!="number"&&(n=i.body[r])}return n}function _j(e){const t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,i=r.defaultView||r.parentWindow;return n.left+=jE(i),n.top+=jE(i,!0),n}const Hj=l.memo(({children:e})=>e,(e,{shouldUpdate:t})=>!t);function Um(){return Um=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Um.apply(this,arguments)}const Bj={width:0,height:0,overflow:"hidden",outline:"none"},Lj={outline:"none"},XT=ae.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:i,title:s,ariaId:c,footer:d,closable:f,closeIcon:p,onClose:g,children:h,bodyStyle:y,bodyProps:C,modalRender:b,onMouseDown:x,onMouseUp:S,holderRef:$,visible:M,forceRender:w,width:R,height:T,classNames:N,styles:O}=e,{panel:P}=ae.useContext(GT),D=fi($,P),k=l.useRef(null),F=l.useRef(null);ae.useImperativeHandle(t,()=>({focus:()=>{k.current?.focus({preventScroll:!0})},changeActive:L=>{const{activeElement:A}=document;L&&A===F.current?k.current.focus({preventScroll:!0}):!L&&A===k.current&&F.current.focus({preventScroll:!0})}}));const Y={};R!==void 0&&(Y.width=R),T!==void 0&&(Y.height=T);const G=d?ae.createElement("div",{className:Q(`${n}-footer`,N?.footer),style:{...O?.footer}},d):null,V=s?ae.createElement("div",{className:Q(`${n}-header`,N?.header),style:{...O?.header}},ae.createElement("div",{className:Q(`${n}-title`,N?.title),id:c,style:{...O?.title}},s)):null,B=l.useMemo(()=>typeof f=="object"&&f!==null?f:f?{closeIcon:p??ae.createElement("span",{className:`${n}-close-x`})}:{},[f,p,n]),_=In(B,!0),H=typeof f=="object"&&f.disabled,I=f?ae.createElement("button",Um({type:"button",onClick:g,"aria-label":"Close"},_,{className:`${n}-close`,disabled:H}),B.closeIcon):null,z=ae.createElement("div",{className:Q(`${n}-container`,N?.container),style:O?.container},I,V,ae.createElement("div",Um({className:Q(`${n}-body`,N?.body),style:{...y,...O?.body}},C),h),G);return ae.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":s?c:null,"aria-modal":"true",ref:D,style:{...i,...Y},className:Q(n,r),onMouseDown:x,onMouseUp:S},ae.createElement("div",{ref:k,tabIndex:0,style:Lj},ae.createElement(Hj,{shouldUpdate:M||w},b?b(z):z)),ae.createElement("div",{tabIndex:0,ref:F,style:Bj}))});function ov(){return ov=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ov.apply(this,arguments)}const Vj=l.forwardRef((e,t)=>{const{prefixCls:n,title:r,style:i,className:s,visible:c,forceRender:d,destroyOnHidden:f,motionName:p,ariaId:g,onVisibleChanged:h,mousePosition:y}=e,C=l.useRef(null),b=l.useRef(null);l.useImperativeHandle(t,()=>({...b.current,inMotion:C.current.inMotion,enableMotion:C.current.enableMotion}));const[x,S]=l.useState(),$={};x&&($.transformOrigin=x);function M(){const w=_j(C.current.nativeElement);S(y&&(y.x||y.y)?`${y.x-w.left}px ${y.y-w.top}px`:"")}return l.createElement(Sr,{visible:c,onVisibleChanged:h,onAppearPrepare:M,onEnterPrepare:M,forceRender:d,motionName:p,removeOnLeave:f,ref:C},({className:w,style:R},T)=>l.createElement(XT,ov({},e,{ref:b,title:r,ariaId:g,prefixCls:n,holderRef:T,style:{...R,...i,...$},className:Q(s,w)})))});function av(){return av=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},av.apply(this,arguments)}const Fj=e=>{const{prefixCls:t,style:n,visible:r,maskProps:i,motionName:s,className:c}=e;return l.createElement(Sr,{key:"mask",visible:r,motionName:s,leavedClassName:`${t}-mask-hidden`},({className:d,style:f},p)=>l.createElement("div",av({ref:p,style:{...f,...n},className:Q(`${t}-mask`,d,c)},i)))};function au(){return au=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},au.apply(this,arguments)}const kj=e=>{const{prefixCls:t="rc-dialog",zIndex:n,visible:r=!1,keyboard:i=!0,focusTriggerAfterClose:s=!0,wrapStyle:c,wrapClassName:d,wrapProps:f,onClose:p,afterOpenChange:g,afterClose:h,transitionName:y,animation:C,closable:b=!0,mask:x=!0,maskTransitionName:S,maskAnimation:$,maskClosable:M=!0,maskStyle:w,maskProps:R,rootClassName:T,rootStyle:N,classNames:O,styles:P}=e,D=l.useRef(null),k=l.useRef(null),F=l.useRef(null),[Y,G]=l.useState(r),V=Qo();function B(){hb(k.current,document.activeElement)||(D.current=document.activeElement)}function _(){hb(k.current,document.activeElement)||F.current?.focus()}function H(){if(G(!1),x&&D.current&&s){try{D.current.focus({preventScroll:!0})}catch{}D.current=null}Y&&h?.()}function I(Z){Z?_():H(),g?.(Z)}function z(Z){p?.(Z)}const L=l.useRef(!1),A=l.useRef(null),j=()=>{clearTimeout(A.current),L.current=!0},q=()=>{A.current=setTimeout(()=>{L.current=!1})};let X=null;M&&(X=Z=>{L.current?L.current=!1:k.current===Z.target&&z(Z)});function K(Z){if(i&&Z.keyCode===nt.ESC){Z.stopPropagation(),z(Z);return}r&&Z.keyCode===nt.TAB&&F.current.changeActive(!Z.shiftKey)}l.useEffect(()=>{r?(G(!0),B()):Y&&F.current.enableMotion()&&!F.current.inMotion()&&H()},[r]),l.useEffect(()=>()=>{clearTimeout(A.current)},[]);const J={zIndex:n,...c,...P?.wrapper,display:Y?null:"none"};return l.createElement("div",au({className:Q(`${t}-root`,T),style:N},In(e,{data:!0})),l.createElement(Fj,{prefixCls:t,visible:x&&r,motionName:DE(t,S,$),style:{zIndex:n,...w,...P?.mask},maskProps:R,className:O?.mask}),l.createElement("div",au({tabIndex:-1,onKeyDown:K,className:Q(`${t}-wrap`,d,O?.wrapper),ref:k,onClick:X,style:J},f),l.createElement(Vj,au({},e,{onMouseDown:j,onMouseUp:q,ref:F,closable:b,ariaId:V,prefixCls:t,visible:r&&Y,onClose:z,onVisibleChanged:I,motionName:DE(t,y,C)}))))};function iv(){return iv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},iv.apply(this,arguments)}const Wj=e=>{const{visible:t,getContainer:n,forceRender:r,destroyOnHidden:i=!1,afterClose:s,closable:c,panelRef:d}=e,[f,p]=l.useState(t),g=l.useMemo(()=>({panel:d}),[d]);return l.useEffect(()=>{t&&p(!0)},[t]),!r&&i&&!f?null:l.createElement(GT.Provider,{value:g},l.createElement(cd,{open:t||r||f,autoDestroy:!1,getContainer:n,autoLock:t||f},l.createElement(kj,iv({},e,{destroyOnHidden:i,afterClose:()=>{const h=c&&typeof c=="object"?c:{},{afterClose:y}=h||{};y?.(),s?.(),p(!1)}}))))},qi="RC_FORM_INTERNAL_HOOKS",vn=()=>{rr(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},Ms=l.createContext({getFieldValue:vn,getFieldsValue:vn,getFieldError:vn,getFieldWarning:vn,getFieldsError:vn,isFieldsTouched:vn,isFieldTouched:vn,isFieldValidating:vn,isFieldsValidating:vn,resetFields:vn,setFields:vn,setFieldValue:vn,setFieldsValue:vn,validateFields:vn,submit:vn,getInternalHooks:()=>(vn(),{dispatch:vn,initEntityValue:vn,registerField:vn,useSubscribe:vn,setInitialValues:vn,destroyForm:vn,setCallbacks:vn,registerWatch:vn,getFields:vn,setValidateMessages:vn,setPreserve:vn,getInitialValue:vn})}),Gm=l.createContext(null);function lv(e){return e==null?[]:Array.isArray(e)?e:[e]}function qj(e){return e&&!!e._init}function sv(){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 t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var cv=sv();function Yj(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function Uj(e,t,n){if(xp())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var i=new(e.bind.apply(e,r));return n&&Su(i,n.prototype),i}function uv(e){var t=typeof Map=="function"?new Map:void 0;return uv=function(r){if(r===null||!Yj(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,i)}function i(){return Uj(r,arguments,Zi(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Su(i,r)},uv(e)}var Gj=/%[sdj%]/g,Xj=function(){};function dv(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function ro(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=0,s=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var c=e.replace(Gj,function(d){if(d==="%%")return"%";if(i>=s)return d;switch(d){case"%s":return String(n[i++]);case"%d":return Number(n[i++]);case"%j":try{return JSON.stringify(n[i++])}catch{return"[Circular]"}break;default:return d}});return c}return e}function Kj(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function ar(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||Kj(t)&&typeof e=="string"&&!e)}function Qj(e,t,n){var r=[],i=0,s=e.length;function c(d){r.push.apply(r,$n(d||[])),i++,i===s&&n(r)}e.forEach(function(d){t(d,c)})}function _E(e,t,n){var r=0,i=e.length;function s(c){if(c&&c.length){n(c);return}var d=r;r=r+1,d<i?t(e[d],s):n([])}s([])}function Zj(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,$n(e[n]||[]))}),t}var HE=(function(e){RS(n,e);var t=PR(n);function n(r,i){var s;return ll(this,n),s=t.call(this,"Async Validation Error"),dr(ys(s),"errors",void 0),dr(ys(s),"fields",void 0),s.errors=r,s.fields=i,s}return sl(n)})(uv(Error));function Jj(e,t,n,r,i){if(t.first){var s=new Promise(function(y,C){var b=function($){return r($),$.length?C(new HE($,dv($))):y(i)},x=Zj(e);_E(x,n,b)});return s.catch(function(y){return y}),s}var c=t.firstFields===!0?Object.keys(e):t.firstFields||[],d=Object.keys(e),f=d.length,p=0,g=[],h=new Promise(function(y,C){var b=function(S){if(g.push.apply(g,S),p++,p===f)return r(g),g.length?C(new HE(g,dv(g))):y(i)};d.length||(r(g),y(i)),d.forEach(function(x){var S=e[x];c.indexOf(x)!==-1?_E(S,n,b):Qj(S,n,b)})});return h.catch(function(y){return y}),h}function e_(e){return!!(e&&e.message!==void 0)}function t_(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function BE(e,t){return function(n){var r;return e.fullFields?r=t_(t,e.fullFields):r=t[n.field||e.fullField],e_(n)?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:typeof n=="function"?n():n,fieldValue:r,field:n.field||e.fullField}}}function LE(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];Xn(r)==="object"&&Xn(e[n])==="object"?e[n]=_n(_n({},e[n]),r):e[n]=r}}return e}var Zl="enum",n_=function(t,n,r,i,s){t[Zl]=Array.isArray(t[Zl])?t[Zl]:[],t[Zl].indexOf(n)===-1&&i.push(ro(s.messages[Zl],t.fullField,t[Zl].join(", ")))},r_=function(t,n,r,i,s){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||i.push(ro(s.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var c=new RegExp(t.pattern);c.test(n)||i.push(ro(s.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},o_=function(t,n,r,i,s){var c=typeof t.len=="number",d=typeof t.min=="number",f=typeof t.max=="number",p=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,g=n,h=null,y=typeof n=="number",C=typeof n=="string",b=Array.isArray(n);if(y?h="number":C?h="string":b&&(h="array"),!h)return!1;b&&(g=n.length),C&&(g=n.replace(p,"_").length),c?g!==t.len&&i.push(ro(s.messages[h].len,t.fullField,t.len)):d&&!f&&g<t.min?i.push(ro(s.messages[h].min,t.fullField,t.min)):f&&!d&&g>t.max?i.push(ro(s.messages[h].max,t.fullField,t.max)):d&&f&&(g<t.min||g>t.max)&&i.push(ro(s.messages[h].range,t.fullField,t.min,t.max))},KT=function(t,n,r,i,s,c){t.required&&(!r.hasOwnProperty(t.field)||ar(n,c||t.type))&&i.push(ro(s.messages.required,t.fullField))},kf;const a_=(function(){if(kf)return kf;var e="[a-fA-F\\d:]",t=function(N){return N&&N.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}",r="[a-fA-F\\d]{1,4}",i=["(?:".concat(r,":){7}(?:").concat(r,"|:)"),"(?:".concat(r,":){6}(?:").concat(n,"|:").concat(r,"|:)"),"(?:".concat(r,":){5}(?::").concat(n,"|(?::").concat(r,"){1,2}|:)"),"(?:".concat(r,":){4}(?:(?::").concat(r,"){0,1}:").concat(n,"|(?::").concat(r,"){1,3}|:)"),"(?:".concat(r,":){3}(?:(?::").concat(r,"){0,2}:").concat(n,"|(?::").concat(r,"){1,4}|:)"),"(?:".concat(r,":){2}(?:(?::").concat(r,"){0,3}:").concat(n,"|(?::").concat(r,"){1,5}|:)"),"(?:".concat(r,":){1}(?:(?::").concat(r,"){0,4}:").concat(n,"|(?::").concat(r,"){1,6}|:)"),"(?::(?:(?::".concat(r,"){0,5}:").concat(n,"|(?::").concat(r,"){1,7}|:))")],s="(?:%[0-9a-zA-Z]{1,})?",c="(?:".concat(i.join("|"),")").concat(s),d=new RegExp("(?:^".concat(n,"$)|(?:^").concat(c,"$)")),f=new RegExp("^".concat(n,"$")),p=new RegExp("^".concat(c,"$")),g=function(N){return N&&N.exact?d:new RegExp("(?:".concat(t(N)).concat(n).concat(t(N),")|(?:").concat(t(N)).concat(c).concat(t(N),")"),"g")};g.v4=function(T){return T&&T.exact?f:new RegExp("".concat(t(T)).concat(n).concat(t(T)),"g")},g.v6=function(T){return T&&T.exact?p:new RegExp("".concat(t(T)).concat(c).concat(t(T)),"g")};var h="(?:(?:[a-z]+:)?//)",y="(?:\\S+(?::\\S*)?@)?",C=g.v4().source,b=g.v6().source,x="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",S="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",$="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",M="(?::\\d{2,5})?",w='(?:[/?#][^\\s"]*)?',R="(?:".concat(h,"|www\\.)").concat(y,"(?:localhost|").concat(C,"|").concat(b,"|").concat(x).concat(S).concat($,")").concat(M).concat(w);return kf=new RegExp("(?:^".concat(R,"$)"),"i"),kf});var VE={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Xc={integer:function(t){return Xc.number(t)&&parseInt(t,10)===t},float:function(t){return Xc.number(t)&&!Xc.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return Xn(t)==="object"&&!Xc.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(VE.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(a_())},hex:function(t){return typeof t=="string"&&!!t.match(VE.hex)}},i_=function(t,n,r,i,s){if(t.required&&n===void 0){KT(t,n,r,i,s);return}var c=["integer","float","array","regexp","object","method","email","number","date","url","hex"],d=t.type;c.indexOf(d)>-1?Xc[d](n)||i.push(ro(s.messages.types[d],t.fullField,t.type)):d&&Xn(n)!==t.type&&i.push(ro(s.messages.types[d],t.fullField,t.type))},l_=function(t,n,r,i,s){(/^\s+$/.test(n)||n==="")&&i.push(ro(s.messages.whitespace,t.fullField))};const Kt={required:KT,whitespace:l_,type:i_,range:o_,enum:n_,pattern:r_};var s_=function(t,n,r,i,s){var c=[],d=t.required||!t.required&&i.hasOwnProperty(t.field);if(d){if(ar(n)&&!t.required)return r();Kt.required(t,n,i,c,s)}r(c)},c_=function(t,n,r,i,s){var c=[],d=t.required||!t.required&&i.hasOwnProperty(t.field);if(d){if(n==null&&!t.required)return r();Kt.required(t,n,i,c,s,"array"),n!=null&&(Kt.type(t,n,i,c,s),Kt.range(t,n,i,c,s))}r(c)},u_=function(t,n,r,i,s){var c=[],d=t.required||!t.required&&i.hasOwnProperty(t.field);if(d){if(ar(n)&&!t.required)return r();Kt.required(t,n,i,c,s),n!==void 0&&Kt.type(t,n,i,c,s)}r(c)},d_=function(t,n,r,i,s){var c=[],d=t.required||!t.required&&i.hasOwnProperty(t.field);if(d){if(ar(n,"date")&&!t.required)return r();if(Kt.required(t,n,i,c,s),!ar(n,"date")){var f;n instanceof Date?f=n:f=new Date(n),Kt.type(t,f,i,c,s),f&&Kt.range(t,f.getTime(),i,c,s)}}r(c)},f_="enum",m_=function(t,n,r,i,s){var c=[],d=t.required||!t.required&&i.hasOwnProperty(t.field);if(d){if(ar(n)&&!t.required)return r();Kt.required(t,n,i,c,s),n!==void 0&&Kt[f_](t,n,i,c,s)}r(c)},p_=function(t,n,r,i,s){var c=[],d=t.required||!t.required&&i.hasOwnProperty(t.field);if(d){if(ar(n)&&!t.required)return r();Kt.required(t,n,i,c,s),n!==void 0&&(Kt.type(t,n,i,c,s),Kt.range(t,n,i,c,s))}r(c)},g_=function(t,n,r,i,s){var c=[],d=t.required||!t.required&&i.hasOwnProperty(t.field);if(d){if(ar(n)&&!t.required)return r();Kt.required(t,n,i,c,s),n!==void 0&&(Kt.type(t,n,i,c,s),Kt.range(t,n,i,c,s))}r(c)},h_=function(t,n,r,i,s){var c=[],d=t.required||!t.required&&i.hasOwnProperty(t.field);if(d){if(ar(n)&&!t.required)return r();Kt.required(t,n,i,c,s),n!==void 0&&Kt.type(t,n,i,c,s)}r(c)},y_=function(t,n,r,i,s){var c=[],d=t.required||!t.required&&i.hasOwnProperty(t.field);if(d){if(n===""&&(n=void 0),ar(n)&&!t.required)return r();Kt.required(t,n,i,c,s),n!==void 0&&(Kt.type(t,n,i,c,s),Kt.range(t,n,i,c,s))}r(c)},b_=function(t,n,r,i,s){var c=[],d=t.required||!t.required&&i.hasOwnProperty(t.field);if(d){if(ar(n)&&!t.required)return r();Kt.required(t,n,i,c,s),n!==void 0&&Kt.type(t,n,i,c,s)}r(c)},v_=function(t,n,r,i,s){var c=[],d=t.required||!t.required&&i.hasOwnProperty(t.field);if(d){if(ar(n,"string")&&!t.required)return r();Kt.required(t,n,i,c,s),ar(n,"string")||Kt.pattern(t,n,i,c,s)}r(c)},S_=function(t,n,r,i,s){var c=[],d=t.required||!t.required&&i.hasOwnProperty(t.field);if(d){if(ar(n)&&!t.required)return r();Kt.required(t,n,i,c,s),ar(n)||Kt.type(t,n,i,c,s)}r(c)},C_=function(t,n,r,i,s){var c=[],d=Array.isArray(n)?"array":Xn(n);Kt.required(t,n,i,c,s,d),r(c)},$_=function(t,n,r,i,s){var c=[],d=t.required||!t.required&&i.hasOwnProperty(t.field);if(d){if(ar(n,"string")&&!t.required)return r();Kt.required(t,n,i,c,s,"string"),ar(n,"string")||(Kt.type(t,n,i,c,s),Kt.range(t,n,i,c,s),Kt.pattern(t,n,i,c,s),t.whitespace===!0&&Kt.whitespace(t,n,i,c,s))}r(c)},Oy=function(t,n,r,i,s){var c=t.type,d=[],f=t.required||!t.required&&i.hasOwnProperty(t.field);if(f){if(ar(n,c)&&!t.required)return r();Kt.required(t,n,i,d,s,c),ar(n,c)||Kt.type(t,n,i,d,s)}r(d)};const iu={string:$_,method:h_,number:y_,boolean:u_,regexp:S_,integer:g_,float:p_,array:c_,object:b_,enum:m_,pattern:v_,date:d_,url:Oy,hex:Oy,email:Oy,required:C_,any:s_};var yd=(function(){function e(t){ll(this,e),dr(this,"rules",null),dr(this,"_messages",cv),this.define(t)}return sl(e,[{key:"define",value:function(n){var r=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(Xn(n)!=="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(i){var s=n[i];r.rules[i]=Array.isArray(s)?s:[s]})}},{key:"messages",value:function(n){return n&&(this._messages=LE(sv(),n)),this._messages}},{key:"validate",value:function(n){var r=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},c=n,d=i,f=s;if(typeof d=="function"&&(f=d,d={}),!this.rules||Object.keys(this.rules).length===0)return f&&f(null,c),Promise.resolve(c);function p(b){var x=[],S={};function $(w){if(Array.isArray(w)){var R;x=(R=x).concat.apply(R,$n(w))}else x.push(w)}for(var M=0;M<b.length;M++)$(b[M]);x.length?(S=dv(x),f(x,S)):f(null,c)}if(d.messages){var g=this.messages();g===cv&&(g=sv()),LE(g,d.messages),d.messages=g}else d.messages=this.messages();var h={},y=d.keys||Object.keys(this.rules);y.forEach(function(b){var x=r.rules[b],S=c[b];x.forEach(function($){var M=$;typeof M.transform=="function"&&(c===n&&(c=_n({},c)),S=c[b]=M.transform(S),S!=null&&(M.type=M.type||(Array.isArray(S)?"array":Xn(S)))),typeof M=="function"?M={validator:M}:M=_n({},M),M.validator=r.getValidationMethod(M),M.validator&&(M.field=b,M.fullField=M.fullField||b,M.type=r.getType(M),h[b]=h[b]||[],h[b].push({rule:M,value:S,source:c,field:b}))})});var C={};return Jj(h,d,function(b,x){var S=b.rule,$=(S.type==="object"||S.type==="array")&&(Xn(S.fields)==="object"||Xn(S.defaultField)==="object");$=$&&(S.required||!S.required&&b.value),S.field=b.field;function M(O,P){return _n(_n({},P),{},{fullField:"".concat(S.fullField,".").concat(O),fullFields:S.fullFields?[].concat($n(S.fullFields),[O]):[O]})}function w(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],P=Array.isArray(O)?O:[O];!d.suppressWarning&&P.length&&e.warning("async-validator:",P),P.length&&S.message!==void 0&&(P=[].concat(S.message));var D=P.map(BE(S,c));if(d.first&&D.length)return C[S.field]=1,x(D);if(!$)x(D);else{if(S.required&&!b.value)return S.message!==void 0?D=[].concat(S.message).map(BE(S,c)):d.error&&(D=[d.error(S,ro(d.messages.required,S.field))]),x(D);var k={};S.defaultField&&Object.keys(b.value).map(function(G){k[G]=S.defaultField}),k=_n(_n({},k),b.rule.fields);var F={};Object.keys(k).forEach(function(G){var V=k[G],B=Array.isArray(V)?V:[V];F[G]=B.map(M.bind(null,G))});var Y=new e(F);Y.messages(d.messages),b.rule.options&&(b.rule.options.messages=d.messages,b.rule.options.error=d.error),Y.validate(b.value,b.rule.options||d,function(G){var V=[];D&&D.length&&V.push.apply(V,$n(D)),G&&G.length&&V.push.apply(V,$n(G)),x(V.length?V:null)})}}var R;if(S.asyncValidator)R=S.asyncValidator(S,b.value,w,b.source,d);else if(S.validator){try{R=S.validator(S,b.value,w,b.source,d)}catch(O){var T,N;(T=(N=console).error)===null||T===void 0||T.call(N,O),d.suppressValidatorError||setTimeout(function(){throw O},0),w(O.message)}R===!0?w():R===!1?w(typeof S.message=="function"?S.message(S.fullField||S.field):S.message||"".concat(S.fullField||S.field," fails")):R instanceof Array?w(R):R instanceof Error&&w(R.message)}R&&R.then&&R.then(function(){return w()},function(O){return w(O)})},function(b){p(b)},c)}},{key:"getType",value:function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!iu.hasOwnProperty(n.type))throw new Error(ro("Unknown rule type %s",n.type));return n.type||"string"}},{key:"getValidationMethod",value:function(n){if(typeof n.validator=="function")return n.validator;var r=Object.keys(n),i=r.indexOf("message");return i!==-1&&r.splice(i,1),r.length===1&&r[0]==="required"?iu.required:iu[this.getType(n)]||void 0}}]),e})();dr(yd,"register",function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");iu[t]=n});dr(yd,"warning",Xj);dr(yd,"messages",cv);dr(yd,"validators",iu);const to="'${name}' is not a valid ${type}",QT={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:to,method:to,array:to,object:to,number:to,date:to,boolean:to,integer:to,float:to,regexp:to,email:to,url:to,hex:to},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}"}},FE=yd;function x_(e,t){return e.replace(/\\?\$\{\w+\}/g,n=>{if(n.startsWith("\\"))return n.slice(1);const r=n.slice(2,-1);return t[r]})}const kE="CODE_LOGIC_ERROR";async function fv(e,t,n,r,i){const s={...n};if(delete s.ruleIndex,FE.warning=()=>{},s.validator){const y=s.validator;s.validator=(...C)=>{try{return y(...C)}catch(b){return console.error(b),Promise.reject(kE)}}}let c=null;s&&s.type==="array"&&s.defaultField&&(c=s.defaultField,delete s.defaultField);const d=new FE({[e]:[s]}),f=us(QT,r.validateMessages);d.messages(f);let p=[];try{await Promise.resolve(d.validate({[e]:t},{...r}))}catch(y){y.errors&&(p=y.errors.map(({message:C},b)=>{const x=C===kE?f.default:C;return l.isValidElement(x)?l.cloneElement(x,{key:`error_${b}`}):x}))}if(!p.length&&c&&Array.isArray(t)&&t.length>0)return(await Promise.all(t.map((C,b)=>fv(`${e}.${b}`,C,c,r,i)))).reduce((C,b)=>[...C,...b],[]);const g={...n,name:e,enum:(n.enum||[]).join(", "),...i};return p.map(y=>typeof y=="string"?x_(y,g):y)}function w_(e,t,n,r,i,s){const c=e.join("."),d=n.map((p,g)=>{const h=p.validator,y={...p,ruleIndex:g};return h&&(y.validator=(C,b,x)=>{let S=!1;const M=h(C,b,(...w)=>{Promise.resolve().then(()=>{rr(!S,"Your validator function has already return a promise. `callback` will be ignored."),S||x(...w)})});S=M&&typeof M.then=="function"&&typeof M.catch=="function",rr(S,"`callback` is deprecated. Please return a promise instead."),S&&M.then(()=>{x()}).catch(w=>{x(w||" ")})}),y}).sort(({warningOnly:p,ruleIndex:g},{warningOnly:h,ruleIndex:y})=>!!p==!!h?g-y:p?1:-1);let f;if(i===!0)f=new Promise(async(p,g)=>{for(let h=0;h<d.length;h+=1){const y=d[h],C=await fv(c,t,y,r,s);if(C.length){g([{errors:C,rule:y}]);return}}p([])});else{const p=d.map(g=>fv(c,t,g,r,s).then(h=>({errors:h,rule:g})));f=(i?M_(p):E_(p)).then(g=>Promise.reject(g))}return f.catch(p=>p),f}async function E_(e){return Promise.all(e).then(t=>[].concat(...t))}async function M_(e){let t=0;return new Promise(n=>{e.forEach(r=>{r.then(i=>{i.errors.length&&n([i]),t+=1,t===e.length&&n([])})})})}function jn(e){return lv(e)}function WE(e,t){let n={};return t.forEach(r=>{const i=zo(e,r);n=vo(n,r,i)}),n}function vs(e,t,n=!1){return e&&e.some(r=>Xm(t,r,n))}function Xm(e,t,n=!1){return!e||!t||!n&&e.length!==t.length?!1:t.every((r,i)=>e[i]===r)}function R_(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||typeof e!="object"||typeof t!="object")return!1;const n=Object.keys(e),r=Object.keys(t);return[...new Set([...n,...r])].every(s=>{const c=e[s],d=t[s];return typeof c=="function"&&typeof d=="function"?!0:c===d})}function T_(e,...t){const n=t[0];return n&&n.target&&typeof n.target=="object"&&e in n.target?n.target[e]:n}function qE(e,t,n){const{length:r}=e;if(t<0||t>=r||n<0||n>=r)return e;const i=e[t],s=t-n;return s>0?[...e.slice(0,n),i,...e.slice(n,t),...e.slice(t+1,r)]:s<0?[...e.slice(0,t),...e.slice(t+1,n+1),i,...e.slice(n+1,r)]:e}function mv(){return mv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mv.apply(this,arguments)}const Pi=[],Dc=[];function Ny(e,t,n,r,i,s){return typeof e=="function"?e(t,n,"source"in s?{source:s.source}:{}):r!==i}class O_ extends l.Component{static contextType=Ms;state={resetCount:0};cancelRegisterFunc=null;mounted=!1;touched=!1;dirty=!1;validatePromise;prevValidating;errors=Pi;warnings=Dc;constructor(t){if(super(t),t.fieldContext){const{getInternalHooks:n}=t.fieldContext,{initEntityValue:r}=n(qi);r(this)}}componentDidMount(){const{shouldUpdate:t,fieldContext:n}=this.props;if(this.mounted=!0,n){const{getInternalHooks:r}=n,{registerField:i}=r(qi);this.cancelRegisterFunc=i(this)}t===!0&&this.reRender()}componentWillUnmount(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}cancelRegister=()=>{const{preserve:t,isListField:n,name:r}=this.props;this.cancelRegisterFunc&&this.cancelRegisterFunc(n,t,jn(r)),this.cancelRegisterFunc=null};getNamePath=()=>{const{name:t,fieldContext:n}=this.props,{prefixName:r=[]}=n;return t!==void 0?[...r,...t]:[]};getRules=()=>{const{rules:t=[],fieldContext:n}=this.props;return t.map(r=>typeof r=="function"?r(n):r)};reRender(){this.mounted&&this.forceUpdate()}refresh=()=>{this.mounted&&this.setState(({resetCount:t})=>({resetCount:t+1}))};metaCache=null;triggerMetaEvent=t=>{const{onMetaChange:n}=this.props;if(n){const r={...this.getMeta(),destroy:t};yu(this.metaCache,r)||n(r),this.metaCache=r}else this.metaCache=null};onStoreChange=(t,n,r)=>{const{shouldUpdate:i,dependencies:s=[],onReset:c}=this.props,{store:d}=r,f=this.getNamePath(),p=this.getValue(t),g=this.getValue(d),h=n&&vs(n,f);switch(r.type==="valueUpdate"&&r.source==="external"&&!yu(p,g)&&(this.touched=!0,this.dirty=!0,this.validatePromise=null,this.errors=Pi,this.warnings=Dc,this.triggerMetaEvent()),r.type){case"reset":if(!n||h){this.touched=!1,this.dirty=!1,this.validatePromise=void 0,this.errors=Pi,this.warnings=Dc,this.triggerMetaEvent(),c?.(),this.refresh();return}break;case"remove":{if(i&&Ny(i,t,d,p,g,r)){this.reRender();return}break}case"setField":{const{data:y}=r;if(h){"touched"in y&&(this.touched=y.touched),"validating"in y&&!("originRCField"in y)&&(this.validatePromise=y.validating?Promise.resolve([]):null),"errors"in y&&(this.errors=y.errors||Pi),"warnings"in y&&(this.warnings=y.warnings||Dc),this.dirty=!0,this.triggerMetaEvent(),this.reRender();return}else if("value"in y&&vs(n,f,!0)){this.reRender();return}if(i&&!f.length&&Ny(i,t,d,p,g,r)){this.reRender();return}break}case"dependenciesUpdate":{if(s.map(jn).some(C=>vs(r.relatedFields,C))){this.reRender();return}break}default:if(h||(!s.length||f.length||i)&&Ny(i,t,d,p,g,r)){this.reRender();return}break}i===!0&&this.reRender()};validateRules=t=>{const n=this.getNamePath(),r=this.getValue(),{triggerName:i,validateOnly:s=!1}=t||{},c=Promise.resolve().then(async()=>{if(!this.mounted)return[];const{validateFirst:d=!1,messageVariables:f,validateDebounce:p}=this.props;let g=this.getRules();if(i&&(g=g.filter(y=>y).filter(y=>{const{validateTrigger:C}=y;return C?lv(C).includes(i):!0})),p&&i&&(await new Promise(y=>{setTimeout(y,p)}),this.validatePromise!==c))return[];const h=w_(n,r,g,t,d,f);return h.catch(y=>y).then((y=Pi)=>{if(this.validatePromise===c){this.validatePromise=null;const C=[],b=[];y.forEach?.(({rule:{warningOnly:x},errors:S=Pi})=>{x?b.push(...S):C.push(...S)}),this.errors=C,this.warnings=b,this.triggerMetaEvent(),this.reRender()}}),h});return s||(this.validatePromise=c,this.dirty=!0,this.errors=Pi,this.warnings=Dc,this.triggerMetaEvent(),this.reRender()),c};isFieldValidating=()=>!!this.validatePromise;isFieldTouched=()=>this.touched;isFieldDirty=()=>{if(this.dirty||this.props.initialValue!==void 0)return!0;const{fieldContext:t}=this.props,{getInitialValue:n}=t.getInternalHooks(qi);return n(this.getNamePath())!==void 0};getErrors=()=>this.errors;getWarnings=()=>this.warnings;isListField=()=>this.props.isListField;isList=()=>this.props.isList;isPreserve=()=>this.props.preserve;getMeta=()=>(this.prevValidating=this.isFieldValidating(),{touched:this.isFieldTouched(),validating:this.prevValidating,errors:this.errors,warnings:this.warnings,name:this.getNamePath(),validated:this.validatePromise===null});getOnlyChild=t=>{if(typeof t=="function"){const r=this.getMeta();return{...this.getOnlyChild(t(this.getControlled(),r,this.props.fieldContext)),isFunction:!0}}const n=mr(t);return n.length!==1||!l.isValidElement(n[0])?{child:n,isFunction:!1}:{child:n[0],isFunction:!1}};getValue=t=>{const{getFieldsValue:n}=this.props.fieldContext,r=this.getNamePath();return zo(t||n(!0),r)};getControlled=(t={})=>{const{name:n,trigger:r="onChange",validateTrigger:i,getValueFromEvent:s,normalize:c,valuePropName:d="value",getValueProps:f,fieldContext:p}=this.props,g=i!==void 0?i:p.validateTrigger,h=this.getNamePath(),{getInternalHooks:y,getFieldsValue:C}=p,{dispatch:b}=y(qi),x=this.getValue(),S=f||(T=>({[d]:T})),$=t[r],M=n!==void 0?S(x):{},w={...t,...M};return w[r]=(...T)=>{this.touched=!0,this.dirty=!0,this.triggerMetaEvent();let N;s?N=s(...T):N=T_(d,...T),c&&(N=c(N,x,C(!0))),N!==x&&b({type:"updateValue",namePath:h,value:N}),$&&$(...T)},lv(g||[]).forEach(T=>{const N=w[T];w[T]=(...O)=>{N&&N(...O);const{rules:P}=this.props;P&&P.length&&b({type:"validateField",namePath:h,triggerName:T})}}),w};render(){const{resetCount:t}=this.state,{children:n}=this.props,{child:r,isFunction:i}=this.getOnlyChild(n);let s;return i?s=r:l.isValidElement(r)?s=l.cloneElement(r,this.getControlled(r.props)):(rr(!r,"`children` of Field is not validate ReactElement."),s=r),l.createElement(l.Fragment,{key:t},s)}}function ZT({name:e,...t}){const n=l.useContext(Ms),r=l.useContext(Gm),i=e!==void 0?jn(e):void 0,s=t.isListField??!!r;let c="keep";return s||(c=`_${(i||[]).join("_")}`),l.createElement(O_,mv({key:c,name:i,isListField:s},t,{fieldContext:n}))}function N_({name:e,initialValue:t,children:n,rules:r,validateTrigger:i,isListField:s}){const c=l.useContext(Ms),d=l.useContext(Gm),p=l.useRef({keys:[],id:0}).current,g=l.useMemo(()=>[...jn(c.prefixName)||[],...jn(e)],[c.prefixName,e]),h=l.useMemo(()=>({...c,prefixName:g}),[c,g]),y=l.useMemo(()=>({getKey:b=>{const x=g.length,S=b[x];return[p.keys[S],b.slice(x+1)]}}),[p,g]);if(typeof n!="function")return rr(!1,"Form.List only accepts function as children."),null;const C=(b,x,{source:S})=>S==="internal"?!1:b!==x;return l.createElement(Gm.Provider,{value:y},l.createElement(Ms.Provider,{value:h},l.createElement(ZT,{name:[],shouldUpdate:C,rules:r,validateTrigger:i,initialValue:t,isList:!0,isListField:s??!!d},({value:b=[],onChange:x},S)=>{const{getFieldValue:$}=c,M=()=>$(g||[])||[],w={add:(T,N)=>{const O=M();N>=0&&N<=O.length?(p.keys=[...p.keys.slice(0,N),p.id,...p.keys.slice(N)],x([...O.slice(0,N),T,...O.slice(N)])):(p.keys=[...p.keys,p.id],x([...O,T])),p.id+=1},remove:T=>{const N=M(),O=new Set(Array.isArray(T)?T:[T]);O.size<=0||(p.keys=p.keys.filter((P,D)=>!O.has(D)),x(N.filter((P,D)=>!O.has(D))))},move(T,N){if(T===N)return;const O=M();T<0||T>=O.length||N<0||N>=O.length||(p.keys=qE(p.keys,T,N),x(qE(O,T,N)))}};let R=b||[];return Array.isArray(R)||(R=[]),n(R.map((T,N)=>{let O=p.keys[N];return O===void 0&&(p.keys[N]=p.id,O=p.keys[N],p.id+=1),{name:N,key:O,isListField:!0}}),w,S)})))}function I_(e){let t=!1,n=e.length;const r=[];return e.length?new Promise((i,s)=>{e.forEach((c,d)=>{c.catch(f=>(t=!0,f)).then(f=>{n-=1,r[d]=f,!(n>0)&&(t&&s(r),i(r))})})}):Promise.resolve([])}const pv="__@field_split__";function Wf(e){return e.map(t=>`${typeof t}:${t}`).join(pv)}class Jl{kvs=new Map;set(t,n){this.kvs.set(Wf(t),n)}get(t){return this.kvs.get(Wf(t))}getAsPrefix(t){const n=Wf(t),r=n+pv,i=[],s=this.kvs.get(n);return s!==void 0&&i.push(s),this.kvs.forEach((c,d)=>{d.startsWith(r)&&i.push(c)}),i}update(t,n){const r=this.get(t),i=n(r);i?this.set(t,i):this.delete(t)}delete(t){this.kvs.delete(Wf(t))}map(t){return[...this.kvs.entries()].map(([n,r])=>{const i=n.split(pv);return t({key:i.map(s=>{const[,c,d]=s.match(/^([^:]*):(.*)$/);return c==="number"?Number(d):d}),value:r})})}toJSON(){const t={};return this.map(({key:n,value:r})=>(t[n.join(".")]=r,null)),t}}const P_=e=>{const t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(null)};class z_{namePathList=[];taskId=0;watcherList=new Set;form;constructor(t){this.form=t}register(t){return this.watcherList.add(t),()=>{this.watcherList.delete(t)}}notify(t){t.forEach(n=>{this.namePathList.every(r=>!Xm(r,n))&&this.namePathList.push(n)}),this.doBatch()}doBatch(){this.taskId+=1;const t=this.taskId;P_(()=>{if(t===this.taskId&&this.watcherList.size){const n=this.form.getForm(),r=n.getFieldsValue(),i=n.getFieldsValue(!0);this.watcherList.forEach(s=>{s(r,i,this.namePathList)}),this.namePathList=[]}})}}class A_{formHooked=!1;forceRootUpdate;subscribable=!0;store={};fieldEntities=[];initialValues={};callbacks={};validateMessages=null;preserve=null;lastValidatePromise=null;watcherCenter=new z_(this);constructor(t){this.forceRootUpdate=t}getForm=()=>({getFieldValue:this.getFieldValue,getFieldsValue:this.getFieldsValue,getFieldError:this.getFieldError,getFieldWarning:this.getFieldWarning,getFieldsError:this.getFieldsError,isFieldsTouched:this.isFieldsTouched,isFieldTouched:this.isFieldTouched,isFieldValidating:this.isFieldValidating,isFieldsValidating:this.isFieldsValidating,resetFields:this.resetFields,setFields:this.setFields,setFieldValue:this.setFieldValue,setFieldsValue:this.setFieldsValue,validateFields:this.validateFields,submit:this.submit,_init:!0,getInternalHooks:this.getInternalHooks});getInternalHooks=t=>t===qi?(this.formHooked=!0,{dispatch:this.dispatch,initEntityValue:this.initEntityValue,registerField:this.registerField,useSubscribe:this.useSubscribe,setInitialValues:this.setInitialValues,destroyForm:this.destroyForm,setCallbacks:this.setCallbacks,setValidateMessages:this.setValidateMessages,getFields:this.getFields,setPreserve:this.setPreserve,getInitialValue:this.getInitialValue,registerWatch:this.registerWatch}):(rr(!1,"`getInternalHooks` is internal usage. Should not call directly."),null);useSubscribe=t=>{this.subscribable=t};prevWithoutPreserves=null;setInitialValues=(t,n)=>{if(this.initialValues=t||{},n){let r=us(t,this.store);this.prevWithoutPreserves?.map(({key:i})=>{r=vo(r,i,zo(t,i))}),this.prevWithoutPreserves=null,this.updateStore(r)}};destroyForm=t=>{if(t)this.updateStore({});else{const n=new Jl;this.getFieldEntities(!0).forEach(r=>{this.isMergedPreserve(r.isPreserve())||n.set(r.getNamePath(),!0)}),this.prevWithoutPreserves=n}};getInitialValue=t=>{const n=zo(this.initialValues,t);return t.length?us(n):n};setCallbacks=t=>{this.callbacks=t};setValidateMessages=t=>{this.validateMessages=t};setPreserve=t=>{this.preserve=t};registerWatch=t=>this.watcherCenter.register(t);notifyWatch=(t=[])=>{this.watcherCenter.notify(t)};timeoutId=null;warningUnhooked=()=>{};updateStore=t=>{this.store=t};getFieldEntities=(t=!1)=>t?this.fieldEntities.filter(n=>n.getNamePath().length):this.fieldEntities;getFieldsMap=(t=!1)=>{const n=new Jl;return this.getFieldEntities(t).forEach(r=>{const i=r.getNamePath();n.set(i,r)}),n};getFieldEntitiesForNamePathList=(t,n=!1)=>{if(!t)return this.getFieldEntities(!0);const r=this.getFieldsMap(!0);return n?t.flatMap(i=>{const s=jn(i),c=r.getAsPrefix(s);return c.length?c:[{INVALIDATE_NAME_PATH:s}]}):t.map(i=>{const s=jn(i);return r.get(s)||{INVALIDATE_NAME_PATH:jn(i)}})};getFieldsValue=(t,n)=>{this.warningUnhooked();let r,i;if(t===!0||Array.isArray(t)?(r=t,i=n):t&&typeof t=="object"&&(i=t.filter),r===!0&&!i)return this.store;const s=this.getFieldEntitiesForNamePathList(Array.isArray(r)?r:null,!0),c=[],d=[];s.forEach(p=>{const g=p.INVALIDATE_NAME_PATH||p.getNamePath();if(p.isList?.()){d.push(g);return}if(!i)c.push(g);else{const h="getMeta"in p?p.getMeta():null;i(h)&&c.push(g)}});let f=WE(this.store,c.map(jn));return d.forEach(p=>{zo(f,p)||(f=vo(f,p,[]))}),f};getFieldValue=t=>{this.warningUnhooked();const n=jn(t);return zo(this.store,n)};getFieldsError=t=>(this.warningUnhooked(),this.getFieldEntitiesForNamePathList(t).map((r,i)=>r&&!r.INVALIDATE_NAME_PATH?{name:r.getNamePath(),errors:r.getErrors(),warnings:r.getWarnings()}:{name:jn(t[i]),errors:[],warnings:[]}));getFieldError=t=>{this.warningUnhooked();const n=jn(t);return this.getFieldsError([n])[0].errors};getFieldWarning=t=>{this.warningUnhooked();const n=jn(t);return this.getFieldsError([n])[0].warnings};isFieldsTouched=(...t)=>{this.warningUnhooked();const[n,r]=t;let i,s=!1;t.length===0?i=null:t.length===1?Array.isArray(n)?(i=n.map(jn),s=!1):(i=null,s=n):(i=n.map(jn),s=r);const c=this.getFieldEntities(!0),d=h=>h.isFieldTouched();if(!i)return s?c.every(h=>d(h)||h.isList()):c.some(d);const f=new Jl;i.forEach(h=>{f.set(h,[])}),c.forEach(h=>{const y=h.getNamePath();i.forEach(C=>{C.every((b,x)=>y[x]===b)&&f.update(C,b=>[...b,h])})});const p=h=>h.some(d),g=f.map(({value:h})=>h);return s?g.every(p):g.some(p)};isFieldTouched=t=>(this.warningUnhooked(),this.isFieldsTouched([t]));isFieldsValidating=t=>{this.warningUnhooked();const n=this.getFieldEntities();if(!t)return n.some(i=>i.isFieldValidating());const r=t.map(jn);return n.some(i=>{const s=i.getNamePath();return vs(r,s)&&i.isFieldValidating()})};isFieldValidating=t=>(this.warningUnhooked(),this.isFieldsValidating([t]));resetWithFieldInitialValue=(t={})=>{const n=new Jl,r=this.getFieldEntities(!0);r.forEach(c=>{const{initialValue:d}=c.props,f=c.getNamePath();if(d!==void 0){const p=n.get(f)||new Set;p.add({entity:c,value:d}),n.set(f,p)}});const i=c=>{c.forEach(d=>{const{initialValue:f}=d.props;if(f!==void 0){const p=d.getNamePath();if(this.getInitialValue(p)!==void 0)rr(!1,`Form already set 'initialValues' with path '${p.join(".")}'. Field can not overwrite it.`);else{const h=n.get(p);if(h&&h.size>1)rr(!1,`Multiple Field with path '${p.join(".")}' set 'initialValue'. Can not decide which one to pick.`);else if(h){const y=this.getFieldValue(p);!d.isListField()&&(!t.skipExist||y===void 0)&&this.updateStore(vo(this.store,p,[...h][0].value))}}}})};let s;t.entities?s=t.entities:t.namePathList?(s=[],t.namePathList.forEach(c=>{const d=n.get(c);d&&s.push(...[...d].map(f=>f.entity))})):s=r,i(s)};resetFields=t=>{this.warningUnhooked();const n=this.store;if(!t){this.updateStore(us(this.initialValues)),this.resetWithFieldInitialValue(),this.notifyObservers(n,null,{type:"reset"}),this.notifyWatch();return}const r=t.map(jn);r.forEach(i=>{const s=this.getInitialValue(i);this.updateStore(vo(this.store,i,s))}),this.resetWithFieldInitialValue({namePathList:r}),this.notifyObservers(n,r,{type:"reset"}),this.notifyWatch(r)};setFields=t=>{this.warningUnhooked();const n=this.store,r=[];t.forEach(i=>{const{name:s,...c}=i,d=jn(s);r.push(d),"value"in c&&this.updateStore(vo(this.store,d,c.value)),this.notifyObservers(n,[d],{type:"setField",data:i})}),this.notifyWatch(r)};getFields=()=>this.getFieldEntities(!0).map(r=>{const i=r.getNamePath(),c={...r.getMeta(),name:i,value:this.getFieldValue(i)};return Object.defineProperty(c,"originRCField",{value:!0}),c});initEntityValue=t=>{const{initialValue:n}=t.props;if(n!==void 0){const r=t.getNamePath();zo(this.store,r)===void 0&&this.updateStore(vo(this.store,r,n))}};isMergedPreserve=t=>(t!==void 0?t:this.preserve)??!0;registerField=t=>{this.fieldEntities.push(t);const n=t.getNamePath();if(this.notifyWatch([n]),t.props.initialValue!==void 0){const r=this.store;this.resetWithFieldInitialValue({entities:[t],skipExist:!0}),this.notifyObservers(r,[t.getNamePath()],{type:"valueUpdate",source:"internal"})}return(r,i,s=[])=>{if(this.fieldEntities=this.fieldEntities.filter(c=>c!==t),!this.isMergedPreserve(i)&&(!r||s.length>1)){const c=r?void 0:this.getInitialValue(n);if(n.length&&this.getFieldValue(n)!==c&&this.fieldEntities.every(d=>!Xm(d.getNamePath(),n))){const d=this.store;this.updateStore(vo(d,n,c,!0)),this.notifyObservers(d,[n],{type:"remove"}),this.triggerDependenciesUpdate(d,n)}}this.notifyWatch([n])}};dispatch=t=>{switch(t.type){case"updateValue":{const{namePath:n,value:r}=t;this.updateValue(n,r);break}case"validateField":{const{namePath:n,triggerName:r}=t;this.validateFields([n],{triggerName:r});break}}};notifyObservers=(t,n,r)=>{if(this.subscribable){const i={...r,store:this.getFieldsValue(!0)};this.getFieldEntities().forEach(({onStoreChange:s})=>{s(t,n,i)})}else this.forceRootUpdate()};triggerDependenciesUpdate=(t,n)=>{const r=this.getDependencyChildrenFields(n);return r.length&&this.validateFields(r),this.notifyObservers(t,r,{type:"dependenciesUpdate",relatedFields:[n,...r]}),r};updateValue=(t,n)=>{const r=jn(t),i=this.store;this.updateStore(vo(this.store,r,n)),this.notifyObservers(i,[r],{type:"valueUpdate",source:"internal"}),this.notifyWatch([r]);const s=this.triggerDependenciesUpdate(i,r),{onValuesChange:c}=this.callbacks;if(c){const d=this.getFieldsMap(!0).get(r),f=WE(this.store,[r]),p=this.getFieldsValue(),g=oR([p,f],{prepareArray:h=>d?.isList()?[]:[...h||[]]});c(f,g)}this.triggerOnFieldsChange([r,...s])};setFieldsValue=t=>{this.warningUnhooked();const n=this.store;if(t){const r=us(this.store,t);this.updateStore(r)}this.notifyObservers(n,null,{type:"valueUpdate",source:"external"}),this.notifyWatch()};setFieldValue=(t,n)=>{this.setFields([{name:t,value:n,errors:[],warnings:[],touched:!0}])};getDependencyChildrenFields=t=>{const n=new Set,r=[],i=new Jl;this.getFieldEntities().forEach(c=>{const{dependencies:d}=c.props;(d||[]).forEach(f=>{const p=jn(f);i.update(p,(g=new Set)=>(g.add(c),g))})});const s=c=>{(i.get(c)||new Set).forEach(f=>{if(!n.has(f)){n.add(f);const p=f.getNamePath();f.isFieldDirty()&&p.length&&(r.push(p),s(p))}})};return s(t),r};triggerOnFieldsChange=(t,n)=>{const{onFieldsChange:r}=this.callbacks;if(r){const i=this.getFields();if(n){const c=new Jl;n.forEach(({name:d,errors:f})=>{c.set(d,f)}),i.forEach(d=>{d.errors=c.get(d.name)||d.errors})}const s=i.filter(({name:c})=>vs(t,c));s.length&&r(s,i)}};validateFields=(t,n)=>{this.warningUnhooked();let r,i;Array.isArray(t)||typeof t=="string"||typeof n=="string"?(r=t,i=n):i=t;const s=!!r,c=s?r.map(jn):[],d=[...c],f=[],p=String(Date.now()),g=new Set,{recursive:h,dirty:y}=i||{};this.getFieldEntities(!0).forEach(S=>{const $=S.getNamePath();if(s||((!S.isList()||!c.some(M=>Xm(M,$,!0)))&&d.push($),c.push($)),!(!S.props.rules||!S.props.rules.length)&&!(y&&!S.isFieldDirty())&&(g.add($.join(p)),!s||vs(c,$,h))){const M=S.validateRules({validateMessages:{...QT,...this.validateMessages},...i});f.push(M.then(()=>({name:$,errors:[],warnings:[]})).catch(w=>{const R=[],T=[];return w.forEach?.(({rule:{warningOnly:N},errors:O})=>{N?T.push(...O):R.push(...O)}),R.length?Promise.reject({name:$,errors:R,warnings:T}):{name:$,errors:R,warnings:T}}))}});const C=I_(f);this.lastValidatePromise=C,C.catch(S=>S).then(S=>{const $=S.map(({name:M})=>M);this.notifyObservers(this.store,$,{type:"validateFinish"}),this.triggerOnFieldsChange($,S)});const b=C.then(()=>this.lastValidatePromise===C?Promise.resolve(this.getFieldsValue(d)):Promise.reject([])).catch(S=>{const $=S.filter(w=>w&&w.errors.length),M=$[0]?.errors?.[0];return Promise.reject({message:M,values:this.getFieldsValue(c),errorFields:$,outOfDate:this.lastValidatePromise!==C})});b.catch(S=>S);const x=c.filter(S=>g.has(S.join(p)));return this.triggerOnFieldsChange(x),b};submit=()=>{this.warningUnhooked(),this.validateFields().then(t=>{const{onFinish:n}=this.callbacks;if(n)try{n(t)}catch(r){console.error(r)}}).catch(t=>{const{onFinishFailed:n}=this.callbacks;n&&n(t)})}}function JT(e){const t=l.useRef(null),[,n]=l.useState({});if(!t.current)if(e)t.current=e;else{const r=()=>{n({})},i=new A_(r);t.current=i.getForm()}return[t.current]}const gv=l.createContext({triggerFormChange:()=>{},triggerFormFinish:()=>{},registerForm:()=>{},unregisterForm:()=>{}}),D_=({validateMessages:e,onFormChange:t,onFormFinish:n,children:r})=>{const i=l.useContext(gv),s=l.useRef({});return l.createElement(gv.Provider,{value:{...i,validateMessages:{...i.validateMessages,...e},triggerFormChange:(c,d)=>{t&&t(c,{changedFields:d,forms:s.current}),i.triggerFormChange(c,d)},triggerFormFinish:(c,d)=>{n&&n(c,{values:d,forms:s.current}),i.triggerFormFinish(c,d)},registerForm:(c,d)=>{c&&(s.current={...s.current,[c]:d}),i.registerForm(c,d)},unregisterForm:c=>{const d={...s.current};delete d[c],s.current=d,i.unregisterForm(c)}}},r)};function hv(){return hv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hv.apply(this,arguments)}const j_=({name:e,initialValues:t,fields:n,form:r,preserve:i,children:s,component:c="form",validateMessages:d,validateTrigger:f="onChange",onValuesChange:p,onFieldsChange:g,onFinish:h,onFinishFailed:y,clearOnDestroy:C,...b},x)=>{const S=l.useRef(null),$=l.useContext(gv),[M]=JT(r),{useSubscribe:w,setInitialValues:R,setCallbacks:T,setValidateMessages:N,setPreserve:O,destroyForm:P}=M.getInternalHooks(qi);l.useImperativeHandle(x,()=>({...M,nativeElement:S.current})),l.useEffect(()=>($.registerForm(e,M),()=>{$.unregisterForm(e)}),[$,M,e]),N({...$.validateMessages,...d}),T({onValuesChange:p,onFieldsChange:(B,..._)=>{$.triggerFormChange(e,B),g&&g(B,..._)},onFinish:B=>{$.triggerFormFinish(e,B),h&&h(B)},onFinishFailed:y}),O(i);const D=l.useRef(null);R(t,!D.current),D.current||(D.current=!0),l.useEffect(()=>()=>P(C),[]);let k;const F=typeof s=="function";if(F){const B=M.getFieldsValue(!0);k=s(B,M)}else k=s;w(!F);const Y=l.useRef(null);l.useEffect(()=>{R_(Y.current||[],n||[])||M.setFields(n||[]),Y.current=n},[n,M]);const G=l.useMemo(()=>({...M,validateTrigger:f}),[M,f]),V=l.createElement(Gm.Provider,{value:null},l.createElement(Ms.Provider,{value:G},k));return c===!1?V:l.createElement(c,hv({},b,{ref:S,onSubmit:B=>{B.preventDefault(),B.stopPropagation(),M.submit()},onReset:B=>{B.preventDefault(),M.resetFields(),b.onReset?.(B)}}),V)};function Iy(e){try{return JSON.stringify(e)}catch{return Math.random()}}function __(...e){const[t,n={}]=e,r=qj(n)?{form:n}:n,i=r.form,[s,c]=l.useState(()=>typeof t=="function"?t({}):void 0),d=l.useMemo(()=>Iy(s),[s]),f=l.useRef(d);f.current=d;const p=l.useContext(Ms),g=i||p,h=g&&g._init,{getFieldsValue:y,getInternalHooks:C}=g,{registerWatch:b}=C(qi),x=ut(($,M)=>{const w=r.preserve?M??y(!0):$??y(),R=typeof t=="function"?t(w):zo(w,jn(t));Iy(s)!==Iy(R)&&c(R)}),S=typeof t=="function"?t:JSON.stringify(t);return l.useEffect(()=>{h&&x()},[h,S]),l.useEffect(()=>h?b((M,w)=>{x(M,w)}):void 0,[h]),s}const H_=l.forwardRef(j_),bd=H_;bd.FormProvider=D_;bd.Field=ZT;bd.List=N_;bd.useForm=JT;bd.useWatch=__;const Or=l.createContext({}),B_=({children:e,status:t,override:n})=>{const r=l.useContext(Or),i=l.useMemo(()=>{const s={...r};return n&&delete s.isFormItemInput,t&&(delete s.status,delete s.hasFeedback,delete s.feedbackIcon),s},[t,n,r]);return l.createElement(Or.Provider,{value:i},e)},L_=l.createContext(void 0),wa=e=>{const{space:t,form:n,children:r}=e;if(!Rr(r))return null;let i=r;return n&&(i=ae.createElement(B_,{override:!0,status:!0},i)),t&&(i=ae.createElement(yD,null,i)),i},V_=e=>{if(kr()&&window.document.documentElement){const t=Array.isArray(e)?e:[e],{documentElement:n}=window.document;return t.some(r=>r in n.style)}return!1};function YE(e,t){return V_(e)}const F_=()=>kr()&&window.document.documentElement,Ap=e=>{const{prefixCls:t,className:n,style:r,size:i,shape:s}=e,c=Q({[`${t}-lg`]:i==="large",[`${t}-sm`]:i==="small"}),d=Q({[`${t}-circle`]:s==="circle",[`${t}-square`]:s==="square",[`${t}-round`]:s==="round"}),f=l.useMemo(()=>typeof i=="number"?{width:i,height:i,lineHeight:`${i}px`}:{},[i]);return l.createElement("span",{className:Q(t,c,d,n),style:{...f,...r}})},k_=new Dt("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),FS=e=>({height:e,lineHeight:te(e)}),li=e=>({width:e,...FS(e)}),W_=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:k_,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),Py=(e,t)=>({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal(),...FS(e)}),q_=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:i,controlHeightSM:s}=e;return{[t]:{display:"inline-block",verticalAlign:"top",background:n,...li(r)},[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:{...li(i)},[`${t}${t}-sm`]:{...li(s)}}},Y_=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:i,controlHeightSM:s,gradientFromColor:c,calc:d}=e;return{[r]:{display:"inline-block",verticalAlign:"top",background:c,borderRadius:n,...Py(t,d)},[`${r}-lg`]:{...Py(i,d)},[`${r}-sm`]:{...Py(s,d)}}},eO=e=>{const{gradientFromColor:t,borderRadiusSM:n,imageSizeBase:r,calc:i}=e;return{display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:t,borderRadius:n,...li(i(r).mul(2).equal())}},U_=e=>({[e.skeletonNodeCls]:{...eO(e)}}),G_=e=>{const{skeletonImageCls:t,imageSizeBase:n,calc:r}=e;return{[t]:{...eO(e),[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:{...li(n),maxWidth:r(n).mul(4).equal(),maxHeight:r(n).mul(4).equal()},[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}},[`${t}${t}-circle`]:{borderRadius:"50%"}}},zy=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},Ay=(e,t)=>({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal(),...FS(e)}),X_=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:i,controlHeightSM:s,gradientFromColor:c,calc:d}=e;return{[n]:{display:"inline-block",verticalAlign:"top",background:c,borderRadius:t,width:d(r).mul(2).equal(),minWidth:d(r).mul(2).equal(),...Ay(r,d)},...zy(e,r,n),[`${n}-lg`]:{...Ay(i,d)},...zy(e,i,`${n}-lg`),[`${n}-sm`]:{...Ay(s,d)},...zy(e,s,`${n}-sm`)}},K_=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:i,skeletonButtonCls:s,skeletonInputCls:c,skeletonNodeCls:d,skeletonImageCls:f,controlHeight:p,controlHeightLG:g,controlHeightSM:h,gradientFromColor:y,padding:C,marginSM:b,borderRadius:x,titleHeight:S,blockRadius:$,paragraphLiHeight:M,controlHeightXS:w,paragraphMarginTop:R}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:C,verticalAlign:"top",[n]:{display:"inline-block",verticalAlign:"top",background:y,...li(p)},[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:{...li(g)},[`${n}-sm`]:{...li(h)}},[`${t}-section`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:S,background:y,borderRadius:$,[`+ ${i}`]:{marginBlockStart:h}},[i]:{padding:0,"> li":{width:"100%",height:M,listStyle:"none",background:y,borderRadius:$,"+ li":{marginBlockStart:w}}},[`${i}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-section`]:{[`${r}, ${i} > li`]:{borderRadius:x}}},[`${t}-with-avatar ${t}-section`]:{[r]:{marginBlockStart:b,[`+ ${i}`]:{marginBlockStart:R}}},[`${t}${t}-element`]:{display:"inline-block",width:"auto",...X_(e),...q_(e),...Y_(e),...U_(e),...G_(e)},[`${t}${t}-block`]:{width:"100%",[s]:{width:"100%"},[c]:{width:"100%"}},[`${t}${t}-active`]:{[`
167
+ ${r},
168
+ ${i} > li,
169
+ ${n},
170
+ ${s},
171
+ ${c},
172
+ ${d},
173
+ ${f}
174
+ `]:{...W_(e)}}}},Q_=e=>{const{colorFillContent:t,colorFill:n}=e,r=t,i=n;return{color:r,colorGradientEnd:i,gradientFromColor:r,gradientToColor:i,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},vd=zt("Skeleton",e=>{const{componentCls:t,calc:n}=e,r=Nt(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonNodeCls:`${t}-node`,skeletonImageCls:`${t}-image`,imageSizeBase:n(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return K_(r)},Q_,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),Z_=e=>{const{prefixCls:t,className:n,classNames:r,rootClassName:i,active:s,style:c,styles:d,shape:f="circle",size:p="default",...g}=e,{getPrefixCls:h}=l.useContext(dt),y=h("skeleton",t),[C,b]=vd(y),x=Q(y,`${y}-element`,{[`${y}-active`]:s},r?.root,n,i,C,b);return l.createElement("div",{className:x,style:d?.root},l.createElement(Ap,{prefixCls:`${y}-avatar`,className:r?.content,style:{...d?.content,...c},shape:f,size:p,...g}))},J_=e=>{const{prefixCls:t,className:n,rootClassName:r,classNames:i,active:s,style:c,styles:d,block:f=!1,size:p="default",...g}=e,{getPrefixCls:h}=l.useContext(dt),y=h("skeleton",t),[C,b]=vd(y),x=Q(y,`${y}-element`,{[`${y}-active`]:s,[`${y}-block`]:f},i?.root,n,r,C,b);return l.createElement("div",{className:x,style:d?.root},l.createElement(Ap,{prefixCls:`${y}-button`,className:i?.content,style:{...d?.content,...c},size:p,...g}))},tO=e=>{const{prefixCls:t,className:n,classNames:r,rootClassName:i,internalClassName:s,style:c,styles:d,active:f,children:p}=e,{getPrefixCls:g}=l.useContext(dt),h=g("skeleton",t),[y,C]=vd(h),b=Q(h,`${h}-element`,{[`${h}-active`]:f},y,r?.root,n,i,C);return l.createElement("div",{className:b,style:d?.root},l.createElement("div",{className:Q(r?.content,s||`${h}-node`),style:{...d?.content,...c}},p))},e9="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",t9=e=>{const{getPrefixCls:t}=l.useContext(dt),n=t("skeleton",e.prefixCls);return l.createElement(tO,{...e,internalClassName:`${n}-image`},l.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${n}-image-svg`},l.createElement("title",null,"Image placeholder"),l.createElement("path",{d:e9,className:`${n}-image-path`})))},n9=e=>{const{prefixCls:t,className:n,classNames:r,rootClassName:i,active:s,block:c,style:d,styles:f,size:p="default",...g}=e,{getPrefixCls:h}=l.useContext(dt),y=h("skeleton",t),[C,b]=vd(y),x=Q(y,`${y}-element`,{[`${y}-active`]:s,[`${y}-block`]:c},r?.root,n,i,C,b);return l.createElement("div",{className:x,style:f?.root},l.createElement(Ap,{prefixCls:`${y}-input`,className:r?.content,style:{...f?.content,...d},size:p,...g}))},r9=(e,t)=>{const{width:n,rows:r=2}=t;if(Array.isArray(n))return n[e];if(r-1===e)return n},o9=e=>{const{prefixCls:t,className:n,style:r,rows:i=0}=e,s=Array.from({length:i}).map((c,d)=>l.createElement("li",{key:d,style:{width:r9(d,e)}}));return l.createElement("ul",{className:Q(t,n),style:r},s)},a9=({prefixCls:e,className:t,width:n,style:r})=>l.createElement("h3",{className:Q(e,t),style:{width:n,...r}});function Dy(e){return e&&typeof e=="object"?e:{}}function i9(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function l9(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function s9(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const pi=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:i,classNames:s,style:c,styles:d,children:f,avatar:p=!1,title:g=!0,paragraph:h=!0,active:y,round:C}=e,{getPrefixCls:b,direction:x,className:S,style:$,classNames:M,styles:w}=Pt("skeleton"),R=b("skeleton",t),[T,N]=vd(R),O={...e,avatar:p,title:g,paragraph:h},[P,D]=Vt([M,s],[w,d],{props:O});if(n||!("loading"in e)){const k=!!p,F=!!g,Y=!!h;let G;if(k){const _={className:P.avatar,prefixCls:`${R}-avatar`,...i9(F,Y),...Dy(p),style:D.avatar};G=l.createElement("div",{className:Q(P.header,`${R}-header`),style:D.header},l.createElement(Ap,{..._}))}let V;if(F||Y){let _;if(F){const I={className:P.title,prefixCls:`${R}-title`,...l9(k,Y),...Dy(g),style:D.title};_=l.createElement(a9,{...I})}let H;if(Y){const I={className:P.paragraph,prefixCls:`${R}-paragraph`,...s9(k,F),...Dy(h),style:D.paragraph};H=l.createElement(o9,{...I})}V=l.createElement("div",{className:Q(P.section,`${R}-section`),style:D.section},_,H)}const B=Q(R,{[`${R}-with-avatar`]:k,[`${R}-active`]:y,[`${R}-rtl`]:x==="rtl",[`${R}-round`]:C},P.root,S,r,i,T,N);return l.createElement("div",{className:B,style:{...D.root,...$,...c}},G,V)}return f??null};pi.Button=J_;pi.Avatar=Z_;pi.Input=n9;pi.Image=t9;pi.Node=tO;function UE(){}const c9=l.createContext({add:UE,remove:UE});function nO(e){const t=l.useContext(c9),n=l.useRef(null);return ut(i=>{if(i){const s=e?i.querySelector(e):i;s&&(t.add(s),n.current=s)}else t.remove(n.current)})}const GE=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=l.useContext(hd);return ae.createElement(Ht,{onClick:n,...e},t)},XE=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:i}=l.useContext(hd);return ae.createElement(Ht,{...HS(n),loading:e,onClick:i,...t},r)};function rO(e,t){return ae.createElement("span",{className:`${e}-close-x`},t||ae.createElement(Yr,{className:`${e}-close-icon`}))}const oO=e=>{const{okText:t,okType:n="primary",cancelText:r,confirmLoading:i,onOk:s,onCancel:c,okButtonProps:d,cancelButtonProps:f,footer:p}=e,[g]=oo("Modal",iT()),h=t||g?.okText,y=r||g?.cancelText,C=ae.useMemo(()=>({confirmLoading:i,okButtonProps:d,cancelButtonProps:f,okTextLocale:h,cancelTextLocale:y,okType:n,onOk:s,onCancel:c}),[i,d,f,h,y,n,s,c]);let b;return typeof p=="function"||typeof p>"u"?(b=ae.createElement(ae.Fragment,null,ae.createElement(GE,null),ae.createElement(XE,null)),typeof p=="function"&&(b=p(b,{OkBtn:XE,CancelBtn:GE})),b=ae.createElement(UT,{value:C},b)):b=p,ae.createElement(MT,{disabled:!1},b)},u9=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"}}}},d9=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},f9=(e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:i}=e,s={};for(let c=i;c>=0;c--)c===0?(s[`${r}${t}-${c}`]={display:"none"},s[`${r}-push-${c}`]={insetInlineStart:"auto"},s[`${r}-pull-${c}`]={insetInlineEnd:"auto"},s[`${r}${t}-push-${c}`]={insetInlineStart:"auto"},s[`${r}${t}-pull-${c}`]={insetInlineEnd:"auto"},s[`${r}${t}-offset-${c}`]={marginInlineStart:0},s[`${r}${t}-order-${c}`]={order:0}):(s[`${r}${t}-${c}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${c/i*100}%`,maxWidth:`${c/i*100}%`}],s[`${r}${t}-push-${c}`]={insetInlineStart:`${c/i*100}%`},s[`${r}${t}-pull-${c}`]={insetInlineEnd:`${c/i*100}%`},s[`${r}${t}-offset-${c}`]={marginInlineStart:`${c/i*100}%`},s[`${r}${t}-order-${c}`]={order:c});return s[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},s},yv=(e,t)=>f9(e,t),m9=(e,t,n)=>({[`@media (min-width: ${te(t)})`]:{...yv(e,n)}}),p9=()=>({}),g9=()=>({}),h9=zt("Grid",u9,p9),aO=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin}),y9=zt("Grid",e=>{const t=Nt(e,{gridColumns:24}),n=aO(t);return delete n.xs,[d9(t),yv(t,""),yv(t,"-xs"),Object.keys(n).map(r=>m9(t,n[r],`-${r}`)).reduce((r,i)=>({...r,...i}),{})]},g9);function KE(e){return{position:e,inset:0}}const b9=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}-container`]:{pointerEvents:"none"},[`${t}-mask`]:{...KE("fixed"),zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`&${t}-mask-blur`]:{backdropFilter:"blur(4px)"},[`${t}-hidden`]:{display:"none"}},[`${t}-wrap`]:{...KE("fixed"),zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"}}},{[`${t}-root`]:kT(e)}]},v9=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:`${te(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:{...Zt(e),pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${te(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}-container`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${t}-close`]:{position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:te(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive},...xo(e)},[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${te(e.borderRadiusLG)} ${te(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:`${te(e.margin)} auto`}},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}}},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-container,
175
+ ${t}-body,
176
+ ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},S9=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},C9=e=>{const{componentCls:t}=e,n=aO(e),r={...n};delete r.xs;const i=`--${t.replace(".","")}-`,s=Object.keys(r).map(c=>({[`@media (min-width: ${te(r[c])})`]:{width:`var(${i}${c}-width)`}}));return{[`${t}-root`]:{[t]:[].concat($n(Object.keys(n).map((c,d)=>{const f=Object.keys(n)[d-1];return f?{[`${i}${c}-width`]:`var(${i}${f}-width)`}:null})),[{width:`var(${i}xs-width)`}],$n(s))}}},iO=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return Nt(e,{modalHeaderHeight:e.calc(e.calc(r).mul(n).equal()).add(e.calc(t).mul(2).equal()).equal(),modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterBorderWidth:e.lineWidth,modalCloseIconColor:e.colorIcon,modalCloseIconHoverColor:e.colorIconHover,modalCloseBtnSize:e.controlHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})},lO=e=>({footerBg:"transparent",headerBg:"transparent",titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${te(e.paddingMD)} ${te(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${te(e.padding)} ${te(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${te(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${te(e.paddingXS)} ${te(e.padding)}`:0,footerBorderTop:e.wireframe?`${te(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${te(e.borderRadiusLG)} ${te(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${te(e.padding*2)} ${te(e.padding*2)} ${te(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM,mask:!0}),sO=zt("Modal",e=>{const t=iO(e);return[v9(t),S9(t),b9(t),pd(t,"zoom"),C9(t)]},lO,{unitless:{titleLineHeight:!0}});let bv;const $9=e=>{bv={x:e.pageX,y:e.pageY},setTimeout(()=>{bv=null},100)};F_()&&document.documentElement.addEventListener("click",$9,!0);const cO=e=>{const{prefixCls:t,className:n,rootClassName:r,open:i,wrapClassName:s,centered:c,getContainer:d,focusTriggerAfterClose:f=!0,style:p,width:g=520,footer:h,classNames:y,styles:C,children:b,loading:x,confirmLoading:S,zIndex:$,mousePosition:M,onOk:w,onCancel:R,okButtonProps:T,cancelButtonProps:N,destroyOnHidden:O,destroyOnClose:P,panelRef:D=null,closable:k,mask:F,modalRender:Y,...G}=e,{getPopupContainer:V,getPrefixCls:B,direction:_,className:H,style:I,classNames:z,styles:L,centered:A,cancelButtonProps:j,okButtonProps:q,mask:X}=Pt("modal"),{modal:K}=l.useContext(dt),[J,Z]=l.useMemo(()=>typeof k=="boolean"?[void 0,void 0]:[k?.afterClose,k?.onClose],[k]),re=B("modal",t),ne=B(),[ie,fe]=sT(F,X,re),le=Be=>{S||(R?.(Be),Z?.())},ue=Be=>{w?.(Be),Z?.()},ge=lr(re),[oe,se]=sO(re,ge),he=Q(s,{[`${re}-centered`]:c??A,[`${re}-wrap-rtl`]:_==="rtl"}),me=h!==null&&!x?l.createElement(oO,{...e,okButtonProps:{...q,...T},onOk:ue,cancelButtonProps:{...j,...N},onCancel:le}):null,[xe,Ae,we,$e]=zS($s(e),$s(K),{closable:!0,closeIcon:l.createElement(Yr,{className:`${re}-close-icon`}),closeIconRender:Be=>rO(re,Be)}),de=xe?{disabled:we,closeIcon:Ae,afterClose:J,...$e}:!1,be=Y?Be=>l.createElement("div",{className:`${re}-render`},Y(Be)):void 0,Me=`.${re}-${Y?"render":"container"}`,Oe=nO(Me),Le=ir(D,Oe),[Ge,et]=mi("Modal",$),ze={...e,width:g,panelRef:D,focusTriggerAfterClose:f,mask:ie,zIndex:Ge},[_e,De]=Vt([z,y,fe],[L,C],{props:ze}),[Ue,Ne]=l.useMemo(()=>g&&typeof g=="object"?[void 0,g]:[g,void 0],[g]),Se=l.useMemo(()=>{const Be={};return Ne&&Object.keys(Ne).forEach(Je=>{const We=Ne[Je];We!==void 0&&(Be[`--${re}-${Je}-width`]=typeof We=="number"?`${We}px`:We)}),Be},[re,Ne]);return l.createElement(wa,{form:!0,space:!0},l.createElement(sd.Provider,{value:et},l.createElement(Wj,{width:Ue,...G,zIndex:Ge,getContainer:d===void 0?V:d,prefixCls:re,rootClassName:Q(oe,r,se,ge,_e.root),rootStyle:De.root,footer:me,visible:i,mousePosition:M??bv,onClose:le,closable:de,closeIcon:Ae,focusTriggerAfterClose:f,transitionName:Xo(ne,"zoom",e.transitionName),maskTransitionName:Xo(ne,"fade",e.maskTransitionName),mask:ie,className:Q(oe,n,H),style:{...I,...p,...Se},classNames:{..._e,wrapper:Q(_e.wrapper,he)},styles:De,panelRef:Le,destroyOnHidden:O??P,modalRender:be},x?l.createElement(pi,{active:!0,title:!1,paragraph:{rows:4},className:`${re}-body-skeleton`}):b)))},x9=e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:i,fontSize:s,lineHeight:c,modalTitleHeight:d,fontHeight:f,confirmBodyPadding:p}=e,g=`${t}-confirm`;return{[g]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${g}-body-wrapper`]:{...Ji()},[`&${t} ${t}-body`]:{padding:p},[`${g}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:i,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(f).sub(i).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(d).sub(i).equal()).div(2).equal()}},[`${g}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS,maxWidth:`calc(100% - ${te(e.marginSM)})`},[`${e.iconCls} + ${g}-paragraph`]:{maxWidth:`calc(100% - ${te(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${g}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},[`${g}-container`]:{color:e.colorText,fontSize:s,lineHeight:c},[`${g}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${g}-error ${g}-body > ${e.iconCls}`]:{color:e.colorError},[`${g}-warning ${g}-body > ${e.iconCls},
177
+ ${g}-confirm ${g}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${g}-info ${g}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${g}-success ${g}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},w9=id(["Modal","confirm"],e=>{const t=iO(e);return x9(t)},lO,{order:-1e3}),uO=e=>{const{prefixCls:t,icon:n,okText:r,cancelText:i,confirmPrefixCls:s,type:c,okCancel:d,footer:f,locale:p,...g}=e;let h=n;if(!n&&n!==null)switch(c){case"info":h=l.createElement(NS,null);break;case"success":h=l.createElement(Ep,null);break;case"error":h=l.createElement(zs,null);break;default:h=l.createElement(As,null)}const y=d??c==="confirm",C=e.autoFocusButton===null?!1:e.autoFocusButton||"ok",[b]=oo("Modal"),x=p||b,S=r||(y?x?.okText:x?.justOkText),$=i||x?.cancelText,{closable:M}=g,{onClose:w}=M&&typeof M=="object"?M:{},R=l.useMemo(()=>({autoFocusButton:C,cancelTextLocale:$,okTextLocale:S,mergedOkCancel:y,onClose:w,...g}),[C,$,S,y,w,g]),T=l.createElement(l.Fragment,null,l.createElement(zE,null),l.createElement(AE,null)),N=e.title!==void 0&&e.title!==null,O=`${s}-body`;return l.createElement("div",{className:`${s}-body-wrapper`},l.createElement("div",{className:Q(O,{[`${O}-has-title`]:N})},h,l.createElement("div",{className:`${s}-paragraph`},N&&l.createElement("span",{className:`${s}-title`},e.title),l.createElement("div",{className:`${s}-content`},e.content))),f===void 0||typeof f=="function"?l.createElement(UT,{value:R},l.createElement("div",{className:`${s}-btns`},typeof f=="function"?f(T,{OkBtn:AE,CancelBtn:zE}):T)):f,l.createElement(w9,{prefixCls:t}))},E9=e=>{const{close:t,zIndex:n,maskStyle:r,direction:i,prefixCls:s,wrapClassName:c,rootPrefixCls:d,bodyStyle:f,closable:p=!1,onConfirm:g,styles:h,title:y,okButtonProps:C,cancelButtonProps:b}=e,{cancelButtonProps:x,okButtonProps:S}=Pt("modal"),$=`${s}-confirm`,M=e.width||416,w=e.style||{},R=e.maskClosable===void 0?!1:e.maskClosable,T=Q($,`${$}-${e.type}`,{[`${$}-rtl`]:i==="rtl"},e.className),[,N]=qr(),O=l.useMemo(()=>n!==void 0?n:N.zIndexPopupBase+uT,[n,N]);return l.createElement(cO,{...e,className:T,wrapClassName:Q({[`${$}-centered`]:!!e.centered},c),onCancel:()=>{t?.({triggerCancel:!0}),g?.(!1)},title:y,footer:null,transitionName:Xo(d||"","zoom",e.transitionName),maskTransitionName:Xo(d||"","fade",e.maskTransitionName),maskClosable:R,style:w,styles:{body:f,mask:r,...h},width:M,zIndex:O,closable:p},l.createElement(uO,{...e,confirmPrefixCls:$,okButtonProps:{...S,...C},cancelButtonProps:{...x,...b}}))},dO=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:i}=e;return l.createElement(Zo,{prefixCls:t,iconPrefixCls:n,direction:r,theme:i},l.createElement(E9,{...e}))},Yi=[];let fO="";function mO(){return fO}const M9=e=>{const{prefixCls:t,getContainer:n,direction:r}=e,i=iT(),s=l.useContext(dt),c=mO()||s.getPrefixCls(),d=t||`${c}-modal`;let f=n;return f===!1&&(f=void 0),ae.createElement(dO,{...e,rootPrefixCls:c,prefixCls:d,iconPrefixCls:s.iconPrefixCls,theme:s.theme,direction:r??s.direction,locale:s.locale?.Modal??i,getContainer:f})};function Sd(e){const t=NT(),n=document.createDocumentFragment();let r={...e,close:d,open:!0},i;function s(...p){p.some(h=>h?.triggerCancel)&&e.onCancel?.(()=>{},...p.slice(1));for(let h=0;h<Yi.length;h++)if(Yi[h]===d){Yi.splice(h,1);break}jT(n).then(()=>{})}const c=p=>{clearTimeout(i),i=setTimeout(()=>{const g=t.getPrefixCls(void 0,mO()),h=t.getIconPrefixCls(),y=t.getTheme(),C=ae.createElement(M9,{...p});_S(ae.createElement(Zo,{prefixCls:g,iconPrefixCls:h,theme:y},typeof t.holderRender=="function"?t.holderRender(C):C),n)})};function d(...p){r={...r,open:!1,afterClose:()=>{typeof e.afterClose=="function"&&e.afterClose(),s.apply(this,p)}},c(r)}function f(p){typeof p=="function"?r=p(r):r={...r,...p},c(r)}return c(r),Yi.push(d),{destroy:d,update:f}}function pO(e){return{...e,type:"warning"}}function gO(e){return{...e,type:"info"}}function hO(e){return{...e,type:"success"}}function yO(e){return{...e,type:"error"}}function bO(e){return{...e,type:"confirm"}}function R9({rootPrefixCls:e}){fO=e}const T9=({afterClose:e,config:t,...n},r)=>{const[i,s]=l.useState(!0),[c,d]=l.useState(t),{direction:f,getPrefixCls:p}=l.useContext(dt),g=p("modal"),h=p(),y=()=>{e(),c.afterClose?.()},C=(...S)=>{s(!1),S.some(M=>M?.triggerCancel)&&c.onCancel?.(()=>{},...S.slice(1))};l.useImperativeHandle(r,()=>({destroy:C,update:S=>{d($=>{const M=typeof S=="function"?S($):S;return{...$,...M}})}}));const b=c.okCancel??c.type==="confirm",[x]=oo("Modal",xa.Modal);return l.createElement(dO,{prefixCls:g,rootPrefixCls:h,...c,close:C,open:i,afterClose:y,okText:c.okText||(b?x?.okText:x?.justOkText),direction:c.direction||f,cancelText:c.cancelText||x?.cancelText,...n})},O9=l.forwardRef(T9);let QE=0;const N9=l.memo(l.forwardRef((e,t)=>{const[n,r]=Y5();return l.useImperativeHandle(t,()=>({patchElement:r}),[r]),l.createElement(l.Fragment,null,n)}));function I9(){const e=l.useRef(null),[t,n]=l.useState([]);l.useEffect(()=>{t.length&&($n(t).forEach(c=>{c()}),n([]))},[t]);const r=l.useCallback(s=>function(d){QE+=1;const f=l.createRef();let p;const g=new Promise(x=>{p=x});let h=!1,y;const C=l.createElement(O9,{key:`modal-${QE}`,config:s(d),ref:f,afterClose:()=>{y?.()},isSilent:()=>h,onConfirm:x=>{p(x)}});return y=e.current?.patchElement(C),y&&Yi.push(y),{destroy:()=>{function x(){f.current?.destroy()}f.current?x():n(S=>[].concat($n(S),[x]))},update:x=>{function S(){f.current?.update(x)}f.current?S():n($=>[].concat($n($),[S]))},then:x=>(h=!0,g.then(x))}},[]);return[l.useMemo(()=>({info:r(gO),success:r(hO),error:r(yO),warning:r(pO),confirm:r(bO)}),[r]),l.createElement(N9,{key:"modal-holder",ref:e})]}const P9=ae.createContext({});function vO(e){return t=>l.createElement(Zo,{theme:{token:{motion:!1,zIndexPopupBase:0}}},l.createElement(e,{...t}))}const Dp=(e,t,n,r,i)=>vO(c=>{const{prefixCls:d,style:f}=c,p=l.useRef(null),[g,h]=l.useState(0),[y,C]=l.useState(0),[b,x]=Yt(!1,c.open),{getPrefixCls:S}=l.useContext(dt),$=S(r||"select",d);l.useEffect(()=>{if(x(!0),typeof ResizeObserver<"u"){const R=new ResizeObserver(N=>{const O=N[0].target;h(O.offsetHeight+8),C(O.offsetWidth)}),T=setInterval(()=>{const N=i?`.${i($)}`:`.${$}-dropdown`,O=p.current?.querySelector(N);O&&(clearInterval(T),R.observe(O))},10);return()=>{clearInterval(T),R.disconnect()}}},[$]);let M={...c,style:{...f,margin:0},open:b,getPopupContainer:()=>p.current};t&&Object.assign(M,{[t]:{overflow:{adjustX:!1,adjustY:!1}}});const w={paddingBottom:g,position:"relative",minWidth:y};return l.createElement("div",{ref:p,style:w},l.createElement(e,{...M}))}),z9=(e,t,n,r,i=!1,s,c)=>{const d=l.useMemo(()=>typeof n=="boolean"?{allowClear:n}:n&&typeof n=="object"?n:{allowClear:!1},[n]);return l.useMemo(()=>{const f=!i&&d.allowClear!==!1&&(t.length||s)&&!(c==="combobox"&&s==="");return{allowClear:f,clearIcon:f?d.clearIcon||r||"×":null}},[d,r,i,t.length,s,c])},SO=l.createContext(null);function cl(){return l.useContext(SO)}function A9(e=250){const t=l.useRef(null),n=l.useRef(null);l.useEffect(()=>()=>{window.clearTimeout(n.current)},[]);function r(i){(i||t.current===null)&&(t.current=i),window.clearTimeout(n.current),n.current=window.setTimeout(()=>{t.current=null},e)}return[()=>t.current,r]}function CO(e,t){return e.filter(n=>n).some(n=>n.contains(t)||n===t)}function D9(e,t,n,r){const i=ut(s=>{if(r)return;let c=s.target;c.shadowRoot&&s.composed&&(c=s.composedPath()[0]||c),s._ori_target&&(c=s._ori_target),t&&!CO(e(),c)&&n(!1)});l.useEffect(()=>(window.addEventListener("mousedown",i),()=>window.removeEventListener("mousedown",i)),[i])}function vv(){return vv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vv.apply(this,arguments)}const j9=e=>{const t=e===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"}}},_9=(e,t)=>{const{prefixCls:n,disabled:r,visible:i,children:s,popupElement:c,animation:d,transitionName:f,popupStyle:p,popupClassName:g,direction:h="ltr",placement:y,builtinPlacements:C,popupMatchSelectWidth:b,popupRender:x,popupAlign:S,getPopupContainer:$,empty:M,onPopupVisibleChange:w,onPopupMouseEnter:R,onPopupMouseDown:T,onPopupBlur:N,...O}=e,P=`${n}-dropdown`;let D=c;x&&(D=x(c));const k=l.useMemo(()=>C||j9(b),[C,b]),F=d?`${P}-${d}`:f,Y=typeof b=="number",G=l.useMemo(()=>Y?null:b===!1?"minWidth":"width",[b,Y]);let V=p;Y&&(V={...p,width:b});const B=l.useRef(null);return l.useImperativeHandle(t,()=>({getPopupElement:()=>B.current?.popupElement})),l.createElement(dd,vv({},O,{showAction:w?["click"]:[],hideAction:w?["click"]:[],popupPlacement:y||(h==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:k,prefixCls:P,popupMotion:{motionName:F},popup:l.createElement("div",{onMouseEnter:R,onMouseDown:T,onBlur:N},D),ref:B,stretch:G,popupAlign:S,popupVisible:i,getPopupContainer:$,popupClassName:Q(g,{[`${P}-empty`]:M}),popupStyle:V,onPopupVisibleChange:w}),s)},H9=l.forwardRef(_9);function ZE(e,t){const{key:n}=e;let r;return"value"in e&&({value:r}=e),n??(r!==void 0?r:`rc-index-key-${t}`)}function Sv(e){return typeof e<"u"&&!Number.isNaN(e)}function $O(e,t){const{label:n,value:r,options:i,groupLabel:s}=e||{},c=n||(t?"children":"label");return{label:c,value:r||"value",options:i||"options",groupLabel:s||c}}function B9(e,{fieldNames:t,childrenAsData:n}={}){const r=[],{label:i,value:s,options:c,groupLabel:d}=$O(t,!1);function f(p,g){Array.isArray(p)&&p.forEach(h=>{if(g||!(c in h)){const y=h[s];r.push({key:ZE(h,r.length),groupOption:g,data:h,label:h[i],value:y})}else{let y=h[d];y===void 0&&n&&(y=h.label),r.push({key:ZE(h,r.length),group:!0,data:h,label:y}),f(h[c],!0)}})}return f(e,!1),r}function Cv(e){const t={...e};return"props"in t||Object.defineProperty(t,"props",{get(){return rr(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}const L9=(e,t,n)=>{if(!t||!t.length)return null;let r=!1;const i=(c,[d,...f])=>{if(!d)return[c];const p=c.split(d);return r=r||p.length>1,p.reduce((g,h)=>[...g,...i(h,f)],[]).filter(Boolean)},s=i(e,t);return r?typeof n<"u"?s.slice(0,n):s:null};function V9(e){const{visible:t,values:n}=e;if(!t)return null;const r=50;return l.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},`${n.slice(0,r).map(({label:i,value:s})=>["number","string"].includes(typeof i)?i:s).join(", ")}`,n.length>r?", ...":null)}const F9=e=>{const t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(null)},kS=(e,t=1)=>{if(t<=0){e();return}F9(()=>{kS(e,t-1)})};function k9(e,t,n,r){const[i,s]=l.useState(!1);l.useEffect(()=>{s(!0)},[]);const[c,d]=Yt(e,t),p=r(i?c:!1),g=l.useRef(0),h=ut(C=>{n&&p!==C&&n(C),d(C)}),y=ut((C,b={})=>{const{cancelFun:x}=b;g.current+=1;const S=g.current,$=typeof C=="boolean"?C:!p;function M(){S===g.current&&!x?.()&&h($)}$?M():kS(()=>{M()})});return[p,y]}function jy(e){const{children:t,...n}=e;return t?l.createElement("div",n,t):null}const xO=l.createContext(null);function Cd(){return l.useContext(xO)}const wO=l.forwardRef((e,t)=>{const{onChange:n,onKeyDown:r,onBlur:i,style:s,syncWidth:c,value:d,className:f,autoComplete:p,...g}=e,{prefixCls:h,mode:y,onSearch:C,onSearchSubmit:b,onInputBlur:x,autoFocus:S,tokenWithEnter:$,placeholder:M,components:{input:w="input"}}=Cd(),{id:R,classNames:T,styles:N,open:O,activeDescendantId:P,role:D,disabled:k}=cl()||{},F=Q(`${h}-input`,T?.input,f),Y=l.useRef(!1),G=l.useRef(null),V=l.useRef(null);l.useImperativeHandle(t,()=>V.current);const B=K=>{let{value:J}=K.target;if($&&G.current&&/[\r\n]/.test(G.current)){const Z=G.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");J=J.replace(Z,G.current)}G.current=null,C&&C(J,!0,Y.current),n?.(K)},_=K=>{const{key:J}=K,{value:Z}=K.currentTarget;J==="Enter"&&y==="tags"&&!Y.current&&b&&b(Z),r?.(K)},H=K=>{x?.(),i?.(K)},I=()=>{Y.current=!0},z=K=>{if(Y.current=!1,y!=="combobox"){const{value:J}=K.currentTarget;C?.(J,!0,!1)}},L=K=>{const{clipboardData:J}=K,Z=J?.getData("text");G.current=Z||""},[A,j]=l.useState(void 0);It(()=>{const K=V.current;if(c&&K){K.style.width="0px";const J=K.scrollWidth;j(J),K.style.width=""}},[c,d]);const q={id:R,type:y==="combobox"?"text":"search",...g,ref:V,style:{...N?.input,...s,"--select-input-width":A},autoFocus:S,autoComplete:p||"off",className:F,disabled:k,value:d||"",onChange:B,onKeyDown:_,onBlur:H,onPaste:L,onCompositionStart:I,onCompositionEnd:z,role:D||"combobox","aria-expanded":O||!1,"aria-haspopup":"listbox","aria-owns":O?`${R}_list`:void 0,"aria-autocomplete":"list","aria-controls":O?`${R}_list`:void 0,"aria-activedescendant":O?P:void 0};if(l.isValidElement(w)){const K=w.props||{},J={placeholder:e.placeholder||M,...q,...K};return Object.keys(K).forEach(Z=>{const re=K[Z];typeof re=="function"&&(J[Z]=(...ne)=>{re(...ne),q[Z]?.(...ne)})}),J.ref=ir(w.ref,q.ref),l.cloneElement(w,J)}const X=w;return l.createElement(X,q)});function EO(e){const{prefixCls:t,placeholder:n,displayValues:r}=Cd(),{classNames:i,styles:s}=cl(),{show:c=!0}=e;return r.length?null:l.createElement("div",{className:Q(`${t}-placeholder`,i?.placeholder),style:{visibility:c?"visible":"hidden",...s?.placeholder}},n)}const WS=l.createContext(null);function MO(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}function W9(e){return e!=null}function q9(e){return!e&&e!==0}function JE(e){return["string","number"].includes(typeof e)}function $v(e){let t;return e&&(JE(e.title)?t=e.title.toString():JE(e.label)&&(t=e.label.toString())),t}function xv(){return xv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xv.apply(this,arguments)}const Y9=l.forwardRef(({inputProps:e},t)=>{const{prefixCls:n,searchValue:r,activeValue:i,displayValues:s,maxLength:c,mode:d}=Cd(),{triggerOpen:f,title:p,showSearch:g,classNames:h,styles:y}=cl(),C=l.useContext(WS),[b,x]=l.useState(!1),S=d==="combobox",$=s[0],M=l.useMemo(()=>S&&i&&!b&&f?i:g?r:"",[S,i,b,f,r,g]),w=l.useMemo(()=>{const R={className:`${n}-content-value`,style:{visibility:M?"hidden":"visible"}};if($&&C?.flattenOptions){const T=C.flattenOptions.find(N=>N.value===$.value);if(T?.data){const{className:N,style:O}=T.data;Object.assign(R,{title:$v(T.data),className:Q(R.className,N),style:{...R.style,...O}})}}return $&&!R.title&&(R.title=$v($)),p!==void 0&&(R.title=p),R},[$,C?.flattenOptions,n,M,p]);return l.useEffect(()=>{S&&x(!1)},[S,i]),l.createElement("div",{className:Q(`${n}-content`,h?.content),style:y?.content},$?l.createElement("div",w,$.label):l.createElement(EO,{show:!M}),l.createElement(wO,xv({ref:t},e,{value:M,maxLength:d==="combobox"?c:void 0,onChange:R=>{x(!0),e.onChange?.(R)}})))}),es=void 0;function U9(e,t){const{prefixCls:n,invalidate:r,item:i,renderItem:s,responsive:c,responsiveDisabled:d,registerSize:f,itemKey:p,className:g,style:h,children:y,display:C,order:b,component:x="div",...S}=e,$=c&&!C;function M(O){f(p,O)}l.useEffect(()=>()=>{M(null)},[]);const w=s&&i!==es?s(i,{index:b}):y;let R;r||(R={opacity:$?0:1,height:$?0:es,overflowY:$?"hidden":es,order:c?b:es,pointerEvents:$?"none":es,position:$?"absolute":es});const T={};$&&(T["aria-hidden"]=!0);let N=l.createElement(x,Gn({className:Q(!r&&n,g),style:{...R,...h}},T,S,{ref:t}),w);return c&&(N=l.createElement(Fr,{onResize:({offsetWidth:O})=>{M(O)},disabled:d},N)),N}const Kc=l.forwardRef(U9);function G9(e){if(typeof MessageChannel>"u")Bt(e);else{const t=new MessageChannel;t.port1.onmessage=()=>e(),t.port2.postMessage(void 0)}}function X9(){const e=l.useRef(null);return n=>{e.current||(e.current=[],G9(()=>{el.unstable_batchedUpdates(()=>{e.current.forEach(r=>{r()}),e.current=null})})),e.current.push(n)}}function ts(e,t){const[n,r]=l.useState(t),i=ut(s=>{e(()=>{r(s)})});return[n,i]}const Km=ae.createContext(null),K9=(e,t)=>{const n=l.useContext(Km);if(!n){const{component:d="div",...f}=e;return l.createElement(d,Gn({},f,{ref:t}))}const{className:r,...i}=n,{className:s,...c}=e;return l.createElement(Km.Provider,{value:null},l.createElement(Kc,Gn({ref:t,className:Q(r,s)},i,c)))},Q9=l.forwardRef(K9),RO="responsive",TO="invalidate";function Z9(e){return`+ ${e.length} ...`}function J9(e,t){const{prefixCls:n="rc-overflow",data:r=[],renderItem:i,renderRawItem:s,itemKey:c,itemWidth:d=10,ssr:f,style:p,className:g,maxCount:h,renderRest:y,renderRawRest:C,prefix:b,suffix:x,component:S="div",itemComponent:$,onVisibleChange:M,...w}=e,R=f==="full",T=X9(),[N,O]=ts(T,null),P=N||0,[D,k]=ts(T,new Map),[F,Y]=ts(T,0),[G,V]=ts(T,0),[B,_]=ts(T,0),[H,I]=ts(T,0),[z,L]=l.useState(null),[A,j]=l.useState(null),q=l.useMemo(()=>A===null&&R?Number.MAX_SAFE_INTEGER:A||0,[A,N]),[X,K]=l.useState(!1),J=`${n}-item`,Z=Math.max(F,G),re=h===RO,ne=r.length&&re,ie=h===TO,fe=ne||typeof h=="number"&&r.length>h,le=l.useMemo(()=>{let _e=r;return ne?N===null&&R?_e=r:_e=r.slice(0,Math.min(r.length,P/d)):typeof h=="number"&&(_e=r.slice(0,h)),_e},[r,d,N,h,ne]),ue=l.useMemo(()=>ne?r.slice(q+1):r.slice(le.length),[r,le,ne,q]),ge=l.useCallback((_e,De)=>typeof c=="function"?c(_e):(c&&_e?.[c])??De,[c]),oe=l.useCallback(i||(_e=>_e),[i]);function se(_e,De,Ue){A===_e&&(De===void 0||De===z)||(j(_e),Ue||(K(_e<r.length-1),M?.(_e)),De!==void 0&&L(De))}function he(_e,De){O(De.clientWidth)}function me(_e,De){k(Ue=>{const Ne=new Map(Ue);return De===null?Ne.delete(_e):Ne.set(_e,De),Ne})}function xe(_e,De){V(De),Y(G)}function Ae(_e,De){_(De)}function we(_e,De){I(De)}function $e(_e){return D.get(ge(le[_e],_e))}It(()=>{if(P&&typeof Z=="number"&&le){let _e=B+H;const De=le.length,Ue=De-1;if(!De){se(0,null);return}for(let Ne=0;Ne<De;Ne+=1){let Se=$e(Ne);if(R&&(Se=Se||0),Se===void 0){se(Ne-1,void 0,!0);break}if(_e+=Se,Ue===0&&_e<=P||Ne===Ue-1&&_e+$e(Ue)<=P){se(Ue,null);break}else if(_e+Z>P){se(Ne-1,_e-Se-H+G);break}}x&&$e(0)+H>P&&L(null)}},[P,D,G,B,H,ge,le]);const de=X&&!!ue.length;let be={};z!==null&&ne&&(be={position:"absolute",left:z,top:0});const Me={prefixCls:J,responsive:ne,component:$,invalidate:ie},Oe=s?(_e,De)=>{const Ue=ge(_e,De);return l.createElement(Km.Provider,{key:Ue,value:{...Me,order:De,item:_e,itemKey:Ue,registerSize:me,display:De<=q}},s(_e,De))}:(_e,De)=>{const Ue=ge(_e,De);return l.createElement(Kc,Gn({},Me,{order:De,key:Ue,item:_e,renderItem:oe,itemKey:Ue,registerSize:me,display:De<=q}))},Le={order:de?q:Number.MAX_SAFE_INTEGER,className:`${J}-rest`,registerSize:xe,display:de},Ge=y||Z9,et=C?l.createElement(Km.Provider,{value:{...Me,...Le}},C(ue)):l.createElement(Kc,Gn({},Me,Le),typeof Ge=="function"?Ge(ue):Ge),ze=l.createElement(S,Gn({className:Q(!ie&&n,g),style:p,ref:t},w),b&&l.createElement(Kc,Gn({},Me,{responsive:re,responsiveDisabled:!ne,order:-1,className:`${J}-prefix`,registerSize:Ae,display:!0}),b),le.map(Oe),fe?et:null,x&&l.createElement(Kc,Gn({},Me,{responsive:re,responsiveDisabled:!ne,order:q,className:`${J}-suffix`,registerSize:we,display:!0,style:be}),x));return re?l.createElement(Fr,{onResize:he,disabled:!ne},ze):ze}const Uo=l.forwardRef(J9);Uo.Item=Q9;Uo.RESPONSIVE=RO;Uo.INVALIDATE=TO;const OO=e=>{const{className:t,style:n,customizeIcon:r,customizeIconProps:i,children:s,onMouseDown:c,onClick:d}=e,f=typeof r=="function"?r(i):r;return l.createElement("span",{className:t,onMouseDown:p=>{p.preventDefault(),c?.(p)},style:{userSelect:"none",WebkitUserSelect:"none",...n},unselectable:"on",onClick:d,"aria-hidden":!0},f!==void 0?f:l.createElement("span",{className:Q(t.split(/\s+/).map(p=>`${p}-icon`))},s))};function wv(){return wv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wv.apply(this,arguments)}function e7(e){return e.key??e.value}const e2=e=>{e.preventDefault(),e.stopPropagation()},t7=l.forwardRef(function({inputProps:t},n){const{prefixCls:r,displayValues:i,searchValue:s,mode:c,onSelectorRemove:d,removeIcon:f}=Cd(),{disabled:p,showSearch:g,triggerOpen:h,toggleOpen:y,autoClearSearchValue:C,tagRender:b,maxTagPlaceholder:x,maxTagTextLength:S,maxTagCount:$,classNames:M,styles:w}=cl(),R=`${r}-selection-item`;let T=s;!h&&c==="multiple"&&C!==!1&&(T="");const N=g&&T||"",O=g&&!p,P=f??"×",D=x??(H=>`+ ${H.length} ...`),k=b,F=H=>{y(H)},Y=H=>{d?.(H)},G=(H,I,z,L,A)=>l.createElement("span",{title:$v(H),className:Q(R,{[`${R}-disabled`]:z},M?.item),style:w?.item},l.createElement("span",{className:Q(`${R}-content`,M?.itemContent),style:w?.itemContent},I),L&&l.createElement(OO,{className:Q(`${R}-remove`,M?.itemRemove),style:w?.itemRemove,onMouseDown:e2,onClick:A,customizeIcon:P},"×")),V=(H,I,z,L,A,j,q)=>{const X=K=>{e2(K),F(!h)};return l.createElement("span",{onMouseDown:X},k({label:I,value:H,index:q?.index,disabled:z,closable:L,onClose:A,isMaxTag:!!j}))},B=(H,I)=>{const{disabled:z,label:L,value:A}=H,j=!p&&!z;let q=L;if(typeof S=="number"&&(typeof L=="string"||typeof L=="number")){const K=String(q);K.length>S&&(q=`${K.slice(0,S)}...`)}const X=K=>{K&&K.stopPropagation(),Y(H)};return typeof k=="function"?V(A,q,z,j,X,void 0,I):G(H,q,z,j,X)},_=H=>{if(!i.length)return null;const I=typeof D=="function"?D(H):D;return typeof k=="function"?V(void 0,I,!1,!1,void 0,!0):G({title:I},I,!1)};return l.createElement(Uo,{prefixCls:`${r}-content`,className:M?.content,style:w?.content,prefix:!i.length&&(!s||!h)?l.createElement(EO,null):null,data:i,renderItem:B,renderRest:_,suffix:l.createElement(wO,wv({ref:n,disabled:p,readOnly:!O},t,{value:N||"",syncWidth:!0})),itemKey:e7,maxCount:$})}),n7=l.forwardRef(function(t,n){const{multiple:r,onInputKeyDown:i,tabIndex:s}=Cd(),c=cl(),{showSearch:d}=c,p={...In(c,{aria:!0}),onKeyDown:i,readOnly:!d,tabIndex:s};return r?l.createElement(t7,{ref:n,inputProps:p}):l.createElement(Y9,{ref:n,inputProps:p})});function r7(e){return e&&![nt.ESC,nt.SHIFT,nt.BACKSPACE,nt.TAB,nt.WIN_KEY,nt.ALT,nt.META,nt.WIN_KEY_RIGHT,nt.CTRL,nt.SEMICOLON,nt.EQUALS,nt.CAPS_LOCK,nt.CONTEXT_MENU,nt.UP,nt.LEFT,nt.RIGHT,nt.F1,nt.F2,nt.F3,nt.F4,nt.F5,nt.F6,nt.F7,nt.F8,nt.F9,nt.F10,nt.F11,nt.F12].includes(e)}function Qm(){return Qm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qm.apply(this,arguments)}const o7=["value","onChange","removeIcon","placeholder","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex","activeValue","onSelectorRemove","focused"],a7=l.forwardRef(function(t,n){const{prefixCls:r,className:i,style:s,prefix:c,suffix:d,clearIcon:f,children:p,multiple:g,displayValues:h,placeholder:y,mode:C,searchValue:b,onSearch:x,onSearchSubmit:S,onInputBlur:$,maxLength:M,autoFocus:w,onMouseDown:R,onClearMouseDown:T,onInputKeyDown:N,onSelectorRemove:O,tokenWithEnter:P,components:D,...k}=t,{triggerOpen:F,toggleOpen:Y,showSearch:G,disabled:V,loading:B,classNames:_,styles:H}=cl(),I=l.useRef(null),z=l.useRef(null),L=ut(Z=>{const{which:re}=Z,ne=z.current instanceof HTMLTextAreaElement;if(!ne&&F&&(re===nt.UP||re===nt.DOWN)&&Z.preventDefault(),N&&N(Z),ne&&!F&&~[nt.UP,nt.DOWN,nt.LEFT,nt.RIGHT].indexOf(re))return;!(Z.ctrlKey||Z.altKey||Z.metaKey)&&r7(re)&&Y(!0)});l.useImperativeHandle(n,()=>({focus:Z=>{(z.current||I.current).focus?.(Z)},blur:()=>{(z.current||I.current).blur?.()},nativeElement:I.current}));const A=ut(Z=>{if(!V){const re=mu(z.current);Z.nativeEvent._ori_target=re,re&&Z.target!==re&&!re.contains(Z.target)&&Z.preventDefault();const ne=F&&!g&&(C==="combobox"||G);Z.nativeEvent._select_lazy?F&&Y(!1):(z.current?.focus(),ne||Y())}R?.(Z)}),{root:j}=D,q=en(k,o7),X=In(q,{aria:!0}),K=Object.keys(X),J={...t,onInputKeyDown:L};return j?l.isValidElement(j)?l.cloneElement(j,{...q,ref:ir(j.ref,I)}):l.createElement(j,Qm({},q,{ref:I})):l.createElement(xO.Provider,{value:J},l.createElement("div",Qm({},en(q,K),{ref:I,className:i,style:s,onMouseDown:A}),l.createElement(jy,{className:Q(`${r}-prefix`,_?.prefix),style:H?.prefix},c),l.createElement(n7,{ref:z}),l.createElement(jy,{className:Q(`${r}-suffix`,{[`${r}-suffix-loading`]:B},_?.suffix),style:H?.suffix},d),f&&l.createElement(jy,{className:Q(`${r}-clear`,_?.clear),style:H?.clear,onMouseDown:Z=>{Z.nativeEvent._select_lazy=!0,T?.(Z)}},f),p))});function i7(e,t,n){return l.useMemo(()=>{let{root:r,input:i}=e||{};return n&&(r=n()),t&&(i=t()),{root:r,input:i}},[e,t,n])}function Ev(){return Ev=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ev.apply(this,arguments)}const Mv=e=>e==="tags"||e==="multiple",l7=l.forwardRef((e,t)=>{const{id:n,prefixCls:r,className:i,styles:s,classNames:c,showSearch:d,tagRender:f,showScrollBar:p="optional",direction:g,omitDomProps:h,displayValues:y,onDisplayValuesChange:C,emptyOptions:b,notFoundContent:x="Not Found",onClear:S,maxCount:$,placeholder:M,mode:w,disabled:R,loading:T,getInputElement:N,getRawInputElement:O,open:P,defaultOpen:D,onPopupVisibleChange:k,activeValue:F,onActiveValueChange:Y,activeDescendantId:G,searchValue:V,autoClearSearchValue:B,onSearch:_,onSearchSplit:H,tokenSeparators:I,allowClear:z,prefix:L,suffix:A,suffixIcon:j,clearIcon:q,OptionList:X,animation:K,transitionName:J,popupStyle:Z,popupClassName:re,popupMatchSelectWidth:ne,popupRender:ie,popupAlign:fe,placement:le,builtinPlacements:ue,getPopupContainer:ge,showAction:oe=[],onFocus:se,onBlur:he,onKeyUp:me,onKeyDown:xe,onMouseDown:Ae,components:we,...$e}=e,de=Mv(w),be=l.useRef(null),Me=l.useRef(null),Oe=l.useRef(null),[Le,Ge]=l.useState(!1);l.useImperativeHandle(t,()=>({focus:be.current?.focus,blur:be.current?.blur,scrollTo:Qe=>Oe.current?.scrollTo(Qe),nativeElement:mu(be.current)}));const et=i7(we,N,O),ze=l.useMemo(()=>{if(w!=="combobox")return V;const Qe=y[0]?.value;return typeof Qe=="string"||typeof Qe=="number"?String(Qe):""},[V,w,y]),_e=w==="combobox"&&typeof N=="function"&&N()||null,De=!x&&b,[Ue,Ne]=k9(D||!1,P,k,Qe=>R||De?!1:Qe),Se=l.useMemo(()=>(I||[]).some(Qe=>[`
178
+ `,`\r
179
+ `].includes(Qe)),[I]),Be=(Qe,Et,mt)=>{if(de&&Sv($)&&y.length>=$)return;let Tt=!0,Ut=Qe;Y?.(null);const ln=L9(Qe,I,Sv($)?$-y.length:void 0),kt=mt?null:ln;return w!=="combobox"&&kt&&(Ut="",H?.(kt),Ne(!1),Tt=!1),_&&ze!==Ut&&_(Ut,{source:Et?"typing":"effect"}),Qe&&Et&&Tt&&Ne(!0),Tt},Je=Qe=>{!Qe||!Qe.trim()||_(Qe,{source:"submit"})};l.useEffect(()=>{!Ue&&!de&&w!=="combobox"&&Be("",!1,!1)},[Ue]),l.useEffect(()=>{R&&(Ne(!1),Ge(!1))},[R,Ue]);const[We,Xe]=A9(),Ie=l.useRef(!1),Ke=Qe=>{const Et=We(),{key:mt}=Qe,Tt=mt==="Enter";if(Tt&&(w!=="combobox"&&Qe.preventDefault(),Ue||Ne(!0)),Xe(!!ze),mt==="Backspace"&&!Et&&de&&!ze&&y.length){const Ut=[...y];let ln=null;for(let kt=Ut.length-1;kt>=0;kt-=1){const wn=Ut[kt];if(!wn.disabled){Ut.splice(kt,1),ln=wn;break}}ln&&C(Ut,{type:"remove",values:[ln]})}Ue&&(!Tt||!Ie.current)&&(Tt&&(Ie.current=!0),Oe.current?.onKeyDown(Qe)),xe?.(Qe)},ot=(Qe,...Et)=>{Ue&&Oe.current?.onKeyUp(Qe,...Et),Qe.key==="Enter"&&(Ie.current=!1),me?.(Qe,...Et)},at=ut(Qe=>{const Et=y.filter(mt=>mt!==Qe);C(Et,{type:"remove",values:[Qe]})}),lt=()=>{Ie.current=!1},St=()=>[mu(be.current),Me.current?.getPopupElement()];D9(St,Ue,Ne,!!et.root);const Ct=l.useRef(!1),qe=Qe=>{Ge(!0),R||(oe.includes("focus")&&Ne(!0),se?.(Qe))},rt=()=>{Ue&&!Ct.current&&Ne(!1,{cancelFun:()=>CO(St(),document.activeElement)})},je=Qe=>{Ge(!1),ze&&(w==="tags"?_(ze,{source:"submit"}):w==="multiple"&&_("",{source:"blur"})),rt(),R||he?.(Qe)},Pe=(Qe,...Et)=>{const{target:mt}=Qe;Me.current?.getPopupElement()?.contains(mt)&&Ne&&Ne(!0),Ae?.(Qe,...Et),Ct.current=!0,kS(()=>{Ct.current=!1})},[,ke]=l.useState({});function Re(){ke({})}let Ye;et.root&&(Ye=Qe=>{Ne(Qe)});const Ze=l.useMemo(()=>({...e,notFoundContent:x,open:Ue,triggerOpen:Ue,id:n,showSearch:d,multiple:de,toggleOpen:Ne,showScrollBar:p,styles:s,classNames:c}),[e,x,Ne,n,d,de,Ue,p,s,c]),it=l.useMemo(()=>{const Qe=A??j;return typeof Qe=="function"?Qe({searchValue:ze,open:Ue,focused:Le,showSearch:d,loading:T}):Qe},[A,j,ze,Ue,Le,d,T]),ft=()=>{S?.(),be.current?.focus(),C([],{type:"clear",values:y}),Be("",!1,!1)},{allowClear:jt,clearIcon:Rt}=z9(r,y,z,q,R,ze,w),wt=l.createElement(X,{ref:Oe}),dn=Q(r,i,{[`${r}-focused`]:Le,[`${r}-multiple`]:de,[`${r}-single`]:!de,[`${r}-allow-clear`]:jt,[`${r}-show-arrow`]:it!=null,[`${r}-disabled`]:R,[`${r}-loading`]:T,[`${r}-open`]:Ue,[`${r}-customize-input`]:_e,[`${r}-show-search`]:d});let xt=l.createElement(a7,Ev({},$e,{ref:be,prefixCls:r,className:dn,focused:Le,prefix:L,suffix:it,clearIcon:Rt,multiple:de,mode:w,displayValues:y,placeholder:M,searchValue:ze,activeValue:F,onSearch:Be,onSearchSubmit:Je,onInputBlur:lt,onFocus:qe,onBlur:je,onClearMouseDown:ft,onKeyDown:Ke,onKeyUp:ot,onSelectorRemove:at,tokenWithEnter:Se,onMouseDown:Pe,components:et}));return xt=l.createElement(H9,{ref:Me,disabled:R,prefixCls:r,visible:Ue,popupElement:wt,animation:K,transitionName:J,popupStyle:Z,popupClassName:re,direction:g,popupMatchSelectWidth:ne,popupRender:ie,popupAlign:fe,placement:le,builtinPlacements:ue,getPopupContainer:ge,empty:b,onPopupVisibleChange:Ye,onPopupMouseEnter:Re,onPopupMouseDown:Pe,onPopupBlur:rt},xt),l.createElement(SO.Provider,{value:Ze},l.createElement(V9,{visible:Le&&!Ue,values:y}),xt)}),qS=()=>null;qS.isSelectOptGroup=!0;const YS=()=>null;YS.isSelectOption=!0;const NO=l.forwardRef(({height:e,offsetY:t,offsetX:n,children:r,prefixCls:i,onInnerResize:s,innerProps:c,rtl:d,extra:f},p)=>{let g={},h={display:"flex",flexDirection:"column"};return t!==void 0&&(g={height:e,position:"relative",overflow:"hidden"},h={...h,transform:`translateY(${t}px)`,[d?"marginRight":"marginLeft"]:-n,position:"absolute",left:0,right:0,top:0}),l.createElement("div",{style:g},l.createElement(Fr,{onResize:({offsetHeight:y})=>{y&&s&&s()}},l.createElement("div",Gn({style:h,className:Q({[`${i}-holder-inner`]:i}),ref:p},c),r,f)))});NO.displayName="Filler";function s7({children:e,setRef:t}){const n=l.useCallback(r=>{t(r)},[]);return l.cloneElement(e,{ref:n})}function c7(e,t,n,r,i,s,c,{getKey:d}){return e.slice(t,n+1).map((f,p)=>{const g=t+p,h=c(f,g,{style:{width:r},offsetX:i}),y=d(f);return l.createElement(s7,{key:y,setRef:C=>s(f,C)},h)})}function u7(e,t,n){const r=e.length,i=t.length;let s,c;if(r===0&&i===0)return null;r<i?(s=e,c=t):(s=t,c=e);const d={__EMPTY_ITEM__:!0};function f(h){return h!==void 0?n(h):d}let p=null,g=Math.abs(r-i)!==1;for(let h=0;h<c.length;h+=1){const y=f(s[h]),C=f(c[h]);if(y!==C){p=h,g=g||y!==f(c[h+1]);break}}return p===null?null:{index:p,multiple:g}}function d7(e,t,n){const[r,i]=l.useState(e),[s,c]=l.useState(null);return l.useEffect(()=>{const d=u7(r||[],e||[],t);d?.index!==void 0&&c(e[d.index]),i(e)},[e]),[s]}const t2=typeof navigator=="object"&&/Firefox/i.test(navigator.userAgent),IO=((e,t,n,r)=>{const i=l.useRef(!1),s=l.useRef(null);function c(){clearTimeout(s.current),i.current=!0,s.current=setTimeout(()=>{i.current=!1},50)}const d=l.useRef({top:e,bottom:t,left:n,right:r});return d.current.top=e,d.current.bottom=t,d.current.left=n,d.current.right=r,(f,p,g=!1)=>{const h=f?p<0&&d.current.left||p>0&&d.current.right:p<0&&d.current.top||p>0&&d.current.bottom;return g&&h?(clearTimeout(s.current),i.current=!1):(!h||i.current)&&c(),!i.current&&h}});function f7(e,t,n,r,i,s,c){const d=l.useRef(0),f=l.useRef(null),p=l.useRef(null),g=l.useRef(!1),h=IO(t,n,r,i);function y(M,w){if(Bt.cancel(f.current),h(!1,w))return;const R=M;if(!R._virtualHandled)R._virtualHandled=!0;else return;d.current+=w,p.current=w,t2||R.preventDefault(),f.current=Bt(()=>{const T=g.current?10:1;c(d.current*T,!1),d.current=0})}function C(M,w){c(w,!0),t2||M.preventDefault()}const b=l.useRef(null),x=l.useRef(null);function S(M){if(!e)return;Bt.cancel(x.current),x.current=Bt(()=>{b.current=null},2);const{deltaX:w,deltaY:R,shiftKey:T}=M;let N=w,O=R;(b.current==="sx"||!b.current&&T&&R&&!w)&&(N=R,O=0,b.current="sx");const P=Math.abs(N),D=Math.abs(O);b.current===null&&(b.current=s&&P>D?"x":"y"),b.current==="y"?y(M,O):C(M,N)}function $(M){e&&(g.current=M.detail===p.current)}return[S,$]}function m7(e,t,n,r){const[i,s]=l.useMemo(()=>[new Map,[]],[e,n.id,r]);return(d,f=d)=>{let p=i.get(d),g=i.get(f);if(p===void 0||g===void 0){const h=e.length;for(let y=s.length;y<h;y+=1){const C=e[y],b=t(C);i.set(b,y);const x=n.get(b)??r;if(s[y]=(s[y-1]||0)+x,b===d&&(p=y),b===f&&(g=y),p!==void 0&&g!==void 0)break}}return{top:s[p-1]||0,bottom:s[g]}}}class p7{maps;id=0;diffRecords=new Map;constructor(){this.maps=Object.create(null)}set(t,n){this.diffRecords.set(t,this.maps[t]),this.maps[t]=n,this.id+=1}get(t){return this.maps[t]}resetRecord(){this.diffRecords.clear()}getRecord(){return this.diffRecords}}function n2(e){const t=parseFloat(e);return isNaN(t)?0:t}function g7(e,t,n){const[r,i]=l.useState(0),s=l.useRef(new Map),c=l.useRef(new p7),d=l.useRef(0);function f(){d.current+=1}function p(h=!1){f();const y=()=>{let C=!1;s.current.forEach((b,x)=>{if(b&&b.offsetParent){const{offsetHeight:S}=b,{marginTop:$,marginBottom:M}=getComputedStyle(b),w=n2($),R=n2(M),T=S+w+R;c.current.get(x)!==T&&(c.current.set(x,T),C=!0)}}),C&&i(b=>b+1)};if(h)y();else{d.current+=1;const C=d.current;Promise.resolve().then(()=>{C===d.current&&y()})}}function g(h,y){const C=e(h);s.current.get(C),y?(s.current.set(C,y),p()):s.current.delete(C)}return l.useEffect(()=>f,[]),[g,p,c.current,r]}const r2=14/15;function h7(e,t,n){const r=l.useRef(!1),i=l.useRef(0),s=l.useRef(0),c=l.useRef(null),d=l.useRef(null);let f;const p=y=>{if(r.current){const C=Math.ceil(y.touches[0].pageX),b=Math.ceil(y.touches[0].pageY);let x=i.current-C,S=s.current-b;const $=Math.abs(x)>Math.abs(S);$?i.current=C:s.current=b;const M=n($,$?x:S,!1,y);M&&y.preventDefault(),clearInterval(d.current),M&&(d.current=setInterval(()=>{$?x*=r2:S*=r2;const w=Math.floor($?x:S);(!n($,w,!0)||Math.abs(w)<=.1)&&clearInterval(d.current)},16))}},g=()=>{r.current=!1,f()},h=y=>{f(),y.touches.length===1&&!r.current&&(r.current=!0,i.current=Math.ceil(y.touches[0].pageX),s.current=Math.ceil(y.touches[0].pageY),c.current=y.target,c.current.addEventListener("touchmove",p,{passive:!1}),c.current.addEventListener("touchend",g,{passive:!0}))};f=()=>{c.current&&(c.current.removeEventListener("touchmove",p),c.current.removeEventListener("touchend",g))},It(()=>(e&&t.current.addEventListener("touchstart",h,{passive:!0}),()=>{t.current?.removeEventListener("touchstart",h),f(),clearInterval(d.current)}),[e])}function o2(e){return Math.floor(e**.5)}function Rv(e,t){return("touches"in e?e.touches[0]:e)[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}function y7(e,t,n){l.useEffect(()=>{const r=t.current;if(e&&r){let i=!1,s,c;const d=()=>{Bt.cancel(s)},f=()=>{d(),s=Bt(()=>{n(c),f()})},p=()=>{i=!1,d()},g=y=>{if(y.target.draggable||y.button!==0)return;const C=y;C._virtualHandled||(C._virtualHandled=!0,i=!0)},h=y=>{if(i){const C=Rv(y,!1),{top:b,bottom:x}=r.getBoundingClientRect();if(C<=b){const S=b-C;c=-o2(S),f()}else if(C>=x){const S=C-x;c=o2(S),f()}else d()}};return r.addEventListener("mousedown",g),r.ownerDocument.addEventListener("mouseup",p),r.ownerDocument.addEventListener("mousemove",h),r.ownerDocument.addEventListener("dragend",p),()=>{r.removeEventListener("mousedown",g),r.ownerDocument.removeEventListener("mouseup",p),r.ownerDocument.removeEventListener("mousemove",h),r.ownerDocument.removeEventListener("dragend",p),d()}}},[e])}const b7=10;function v7(e,t,n,r,i,s,c,d){const f=l.useRef(),[p,g]=l.useState(null);return It(()=>{if(p&&p.times<b7){if(!e.current){g(w=>({...w}));return}s();const{targetAlign:h,originAlign:y,index:C,offset:b}=p,x=e.current.clientHeight;let S=!1,$=h,M=null;if(x){const w=h||y;let R=0,T=0,N=0;const O=Math.min(t.length-1,C);for(let D=0;D<=O;D+=1){const k=i(t[D]);T=R;const F=n.get(k);N=T+(F===void 0?r:F),R=N}let P=w==="top"?b:x-b;for(let D=O;D>=0;D-=1){const k=i(t[D]),F=n.get(k);if(F===void 0){S=!0;break}if(P-=F,P<=0)break}switch(w){case"top":M=T-b;break;case"bottom":M=N-x+b;break;default:{const{scrollTop:D}=e.current,k=D+x;T<D?$="top":N>k&&($="bottom")}}M!==null&&c(M),M!==p.lastTop&&(S=!0)}S&&g({...p,times:p.times+1,targetAlign:$,lastTop:M})}},[p,e.current]),h=>{if(h==null){d();return}if(Bt.cancel(f.current),typeof h=="number")c(h);else if(h&&typeof h=="object"){let y;const{align:C}=h;"index"in h?{index:y}=h:y=t.findIndex(x=>i(x)===h.key);const{offset:b=0}=h;g({times:0,index:y,offset:b,originAlign:C})}}}const a2=l.forwardRef((e,t)=>{const{prefixCls:n,rtl:r,scrollOffset:i,scrollRange:s,onStartMove:c,onStopMove:d,onScroll:f,horizontal:p,spinSize:g,containerSize:h,style:y,thumbStyle:C,showScrollBar:b}=e,[x,S]=l.useState(!1),[$,M]=l.useState(null),[w,R]=l.useState(null),T=!r,N=l.useRef(),O=l.useRef(),[P,D]=l.useState(b),k=l.useRef(),F=()=>{b===!0||b===!1||(clearTimeout(k.current),D(!0),k.current=setTimeout(()=>{D(!1)},3e3))},Y=s-h||0,G=h-g||0,V=l.useMemo(()=>i===0||Y===0?0:i/Y*G,[i,Y,G]),B=q=>{q.stopPropagation(),q.preventDefault()},_=l.useRef({top:V,dragging:x,pageY:$,startTop:w});_.current={top:V,dragging:x,pageY:$,startTop:w};const H=q=>{S(!0),M(Rv(q,p)),R(_.current.top),c(),q.stopPropagation(),q.preventDefault()};l.useEffect(()=>{const q=J=>{J.preventDefault()},X=N.current,K=O.current;return X.addEventListener("touchstart",q,{passive:!1}),K.addEventListener("touchstart",H,{passive:!1}),()=>{X.removeEventListener("touchstart",q),K.removeEventListener("touchstart",H)}},[]);const I=l.useRef();I.current=Y;const z=l.useRef();z.current=G,l.useEffect(()=>{if(x){let q;const X=J=>{const{dragging:Z,pageY:re,startTop:ne}=_.current;Bt.cancel(q);const ie=N.current.getBoundingClientRect(),fe=h/(p?ie.width:ie.height);if(Z){const le=(Rv(J,p)-re)*fe;let ue=ne;!T&&p?ue-=le:ue+=le;const ge=I.current,oe=z.current,se=oe?ue/oe:0;let he=Math.ceil(se*ge);he=Math.max(he,0),he=Math.min(he,ge),q=Bt(()=>{f(he,p)})}},K=()=>{S(!1),d()};return window.addEventListener("mousemove",X,{passive:!0}),window.addEventListener("touchmove",X,{passive:!0}),window.addEventListener("mouseup",K,{passive:!0}),window.addEventListener("touchend",K,{passive:!0}),()=>{window.removeEventListener("mousemove",X),window.removeEventListener("touchmove",X),window.removeEventListener("mouseup",K),window.removeEventListener("touchend",K),Bt.cancel(q)}}},[x]),l.useEffect(()=>(F(),()=>{clearTimeout(k.current)}),[i]),l.useImperativeHandle(t,()=>({delayHidden:F}));const L=`${n}-scrollbar`,A={position:"absolute",visibility:P?null:"hidden"},j={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return p?(Object.assign(A,{height:8,left:0,right:0,bottom:0}),Object.assign(j,{height:"100%",width:g,[T?"left":"right"]:V})):(Object.assign(A,{width:8,top:0,bottom:0,[T?"right":"left"]:0}),Object.assign(j,{width:"100%",height:g,top:V})),l.createElement("div",{ref:N,className:Q(L,{[`${L}-horizontal`]:p,[`${L}-vertical`]:!p,[`${L}-visible`]:P}),style:{...A,...y},onMouseDown:B,onMouseMove:F},l.createElement("div",{ref:O,className:Q(`${L}-thumb`,{[`${L}-thumb-moving`]:x}),style:{...j,...C},onMouseDown:H}))}),S7=20;function i2(e=0,t=0){let n=e/t*e;return isNaN(n)&&(n=0),n=Math.max(n,S7),Math.floor(n)}const C7=[],$7={overflowY:"auto",overflowAnchor:"none"};function x7(e,t){const{prefixCls:n="rc-virtual-list",className:r,height:i,itemHeight:s,fullHeight:c=!0,style:d,data:f,children:p,itemKey:g,virtual:h,direction:y,scrollWidth:C,component:b="div",onScroll:x,onVirtualScroll:S,onVisibleChange:$,innerProps:M,extraRender:w,styles:R,showScrollBar:T="optional",...N}=e,O=l.useCallback(je=>typeof g=="function"?g(je):je?.[g],[g]),[P,D,k,F]=g7(O),Y=!!(h!==!1&&i&&s),G=l.useMemo(()=>Object.values(k.maps).reduce((je,Pe)=>je+Pe,0),[k.id,k.maps]),V=Y&&f&&(Math.max(s*f.length,G)>i||!!C),B=y==="rtl",_=Q(n,{[`${n}-rtl`]:B},r),H=f||C7,I=l.useRef(),z=l.useRef(),L=l.useRef(),[A,j]=l.useState(0),[q,X]=l.useState(0),[K,J]=l.useState(!1),Z=()=>{J(!0)},re=()=>{J(!1)},ne={getKey:O};function ie(je){j(Pe=>{let ke;typeof je=="function"?ke=je(Pe):ke=je;const Re=Le(ke);return I.current.scrollTop=Re,Re})}const fe=l.useRef({start:0,end:H.length}),le=l.useRef(),[ue]=d7(H,O);le.current=ue;const{scrollHeight:ge,start:oe,end:se,offset:he}=l.useMemo(()=>{if(!Y)return{scrollHeight:void 0,start:0,end:H.length-1,offset:void 0};if(!V)return{scrollHeight:z.current?.offsetHeight||0,start:0,end:H.length-1,offset:void 0};let je=0,Pe,ke,Re;const Ye=H.length;for(let Ze=0;Ze<Ye;Ze+=1){const it=H[Ze],ft=O(it),jt=k.get(ft),Rt=je+(jt===void 0?s:jt);Rt>=A&&Pe===void 0&&(Pe=Ze,ke=je),Rt>A+i&&Re===void 0&&(Re=Ze),je=Rt}return Pe===void 0&&(Pe=0,ke=0,Re=Math.ceil(i/s)),Re===void 0&&(Re=H.length-1),Re=Math.min(Re+1,H.length-1),{scrollHeight:je,start:Pe,end:Re,offset:ke}},[V,Y,A,H,F,i]);fe.current.start=oe,fe.current.end=se,l.useLayoutEffect(()=>{const je=k.getRecord();if(je.size===1){const Pe=Array.from(je.keys())[0],ke=je.get(Pe),Re=H[oe];if(Re&&ke===void 0&&O(Re)===Pe){const it=k.get(Pe)-s;ie(ft=>ft+it)}}k.resetRecord()},[ge]);const[me,xe]=l.useState({width:0,height:i}),Ae=je=>{xe({width:je.offsetWidth,height:je.offsetHeight})},we=l.useRef(),$e=l.useRef(),de=l.useMemo(()=>i2(me.width,C),[me.width,C]),be=l.useMemo(()=>i2(me.height,ge),[me.height,ge]),Me=ge-i,Oe=l.useRef(Me);Oe.current=Me;function Le(je){let Pe=je;return Number.isNaN(Oe.current)||(Pe=Math.min(Pe,Oe.current)),Pe=Math.max(Pe,0),Pe}const Ge=A<=0,et=A>=Me,ze=q<=0,_e=q>=C,De=IO(Ge,et,ze,_e),Ue=()=>({x:B?-q:q,y:A}),Ne=l.useRef(Ue()),Se=ut(je=>{if(S){const Pe={...Ue(),...je};(Ne.current.x!==Pe.x||Ne.current.y!==Pe.y)&&(S(Pe),Ne.current=Pe)}});function Be(je,Pe){const ke=je;Pe?(el.flushSync(()=>{X(ke)}),Se()):ie(ke)}function Je(je){const{scrollTop:Pe}=je.currentTarget;Pe!==A&&ie(Pe),x?.(je),Se()}const We=je=>{let Pe=je;const ke=C?C-me.width:0;return Pe=Math.max(Pe,0),Pe=Math.min(Pe,ke),Pe},Xe=ut((je,Pe)=>{Pe?(el.flushSync(()=>{X(ke=>{const Re=ke+(B?-je:je);return We(Re)})}),Se()):ie(ke=>ke+je)}),[Ie,Ke]=f7(Y,Ge,et,ze,_e,!!C,Xe);h7(Y,I,(je,Pe,ke,Re)=>{const Ye=Re;return De(je,Pe,ke)?!1:!Ye||!Ye._virtualHandled?(Ye&&(Ye._virtualHandled=!0),Ie({preventDefault(){},deltaX:je?Pe:0,deltaY:je?0:Pe}),!0):!1}),y7(V,I,je=>{ie(Pe=>Pe+je)}),It(()=>{function je(ke){const Re=Ge&&ke.detail<0,Ye=et&&ke.detail>0;Y&&!Re&&!Ye&&ke.preventDefault()}const Pe=I.current;return Pe.addEventListener("wheel",Ie,{passive:!1}),Pe.addEventListener("DOMMouseScroll",Ke,{passive:!0}),Pe.addEventListener("MozMousePixelScroll",je,{passive:!1}),()=>{Pe.removeEventListener("wheel",Ie),Pe.removeEventListener("DOMMouseScroll",Ke),Pe.removeEventListener("MozMousePixelScroll",je)}},[Y,Ge,et]),It(()=>{if(C){const je=We(q);X(je),Se({x:je})}},[me.width,C]);const ot=()=>{we.current?.delayHidden(),$e.current?.delayHidden()},at=v7(I,H,k,s,O,()=>D(!0),ie,ot);l.useImperativeHandle(t,()=>({nativeElement:L.current,getScrollInfo:Ue,scrollTo:je=>{function Pe(ke){return ke&&typeof ke=="object"&&("left"in ke||"top"in ke)}Pe(je)?(je.left!==void 0&&X(We(je.left)),at(je.top)):at(je)}})),It(()=>{if($){const je=H.slice(oe,se+1);$(je,H)}},[oe,se,H]);const lt=m7(H,O,k,s),St=w?.({start:oe,end:se,virtual:V,offsetX:q,offsetY:he,rtl:B,getSize:lt}),Ct=c7(H,oe,se,C,q,P,p,ne);let qe=null;i&&(qe={[c?"height":"maxHeight"]:i,...$7},Y&&(qe.overflowY="hidden",C&&(qe.overflowX="hidden"),K&&(qe.pointerEvents="none")));const rt={};return B&&(rt.dir="rtl"),l.createElement("div",Gn({ref:L,style:{...d,position:"relative"},className:_},rt,N),l.createElement(Fr,{onResize:Ae},l.createElement(b,{className:`${n}-holder`,style:qe,ref:I,onScroll:Je,onMouseEnter:ot},l.createElement(NO,{prefixCls:n,height:ge,offsetX:q,offsetY:he,scrollWidth:C,onInnerResize:D,ref:z,innerProps:M,rtl:B,extra:St},Ct))),V&&ge>i&&l.createElement(a2,{ref:we,prefixCls:n,scrollOffset:A,scrollRange:ge,rtl:B,onScroll:Be,onStartMove:Z,onStopMove:re,spinSize:be,containerSize:me.height,style:R?.verticalScrollBar,thumbStyle:R?.verticalScrollBarThumb,showScrollBar:T}),V&&C>me.width&&l.createElement(a2,{ref:$e,prefixCls:n,scrollOffset:q,scrollRange:C,rtl:B,onScroll:Be,onStartMove:Z,onStopMove:re,spinSize:de,containerSize:me.width,horizontal:!0,style:R?.horizontalScrollBar,thumbStyle:R?.horizontalScrollBarThumb,showScrollBar:T}))}const PO=l.forwardRef(x7);PO.displayName="List";function w7(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}function lu(){return lu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lu.apply(this,arguments)}function l2(e){return typeof e=="string"||typeof e=="number"}const E7=(e,t)=>{const{prefixCls:n,id:r,open:i,multiple:s,mode:c,searchValue:d,toggleOpen:f,notFoundContent:p,onPopupScroll:g,showScrollBar:h}=cl(),{maxCount:y,flattenOptions:C,onActiveValue:b,defaultActiveFirstOption:x,onSelect:S,menuItemSelectedIcon:$,rawValues:M,fieldNames:w,virtual:R,direction:T,listHeight:N,listItemHeight:O,optionRender:P,classNames:D,styles:k}=l.useContext(WS),F=`${n}-item`,Y=od(()=>C,[i,C],(ne,ie)=>ie[0]&&ne[1]!==ie[1]),G=l.useRef(null),V=l.useMemo(()=>s&&Sv(y)&&M?.size>=y,[s,y,M?.size]),B=ne=>{ne.preventDefault()},_=ne=>{G.current?.scrollTo(typeof ne=="number"?{index:ne}:ne)},H=l.useCallback(ne=>c==="combobox"?!1:M.has(ne),[c,[...M].toString(),M.size]),I=(ne,ie=1)=>{const fe=Y.length;for(let le=0;le<fe;le+=1){const ue=(ne+le*ie+fe)%fe,{group:ge,data:oe}=Y[ue]||{};if(!ge&&!oe?.disabled&&(H(oe.value)||!V))return ue}return-1},[z,L]=l.useState(()=>I(0)),A=(ne,ie=!1)=>{L(ne);const fe={source:ie?"keyboard":"mouse"},le=Y[ne];if(!le){b(null,-1,fe);return}b(le.value,ne,fe)};l.useEffect(()=>{A(x!==!1?I(0):-1)},[Y.length,d]);const j=l.useCallback(ne=>c==="combobox"?String(ne).toLowerCase()===d.toLowerCase():M.has(ne),[c,d,[...M].toString(),M.size]);l.useEffect(()=>{let ne;if(!s&&i&&M.size===1){const ie=Array.from(M)[0],fe=Y.findIndex(({data:le})=>d?String(le.value).startsWith(d):le.value===ie);fe!==-1&&(A(fe),ne=setTimeout(()=>{_(fe)}))}return i&&G.current?.scrollTo(void 0),()=>clearTimeout(ne)},[i,d]);const q=ne=>{ne!==void 0&&S(ne,{selected:!M.has(ne)}),s||f(!1)};if(l.useImperativeHandle(t,()=>({onKeyDown:ne=>{const{which:ie,ctrlKey:fe}=ne;switch(ie){case nt.N:case nt.P:case nt.UP:case nt.DOWN:{let le=0;if(ie===nt.UP?le=-1:ie===nt.DOWN?le=1:w7()&&fe&&(ie===nt.N?le=1:ie===nt.P&&(le=-1)),le!==0){const ue=I(z+le,le);_(ue),A(ue,!0)}break}case nt.TAB:case nt.ENTER:{const le=Y[z];if(!le||le.data.disabled)return q(void 0);!V||M.has(le.value)?q(le.value):q(void 0),i&&ne.preventDefault();break}case nt.ESC:f(!1),i&&ne.stopPropagation()}},onKeyUp:()=>{},scrollTo:ne=>{_(ne)}})),Y.length===0)return l.createElement("div",{role:"listbox",id:`${r}_list`,className:`${F}-empty`,onMouseDown:B},p);const X=Object.keys(w).map(ne=>w[ne]),K=ne=>ne.label;function J(ne,ie){const{group:fe}=ne;return{role:fe?"presentation":"option",id:`${r}_list_${ie}`}}const Z=ne=>{const ie=Y[ne];if(!ie)return null;const fe=ie.data||{},{value:le}=fe,{group:ue}=ie,ge=In(fe,!0),oe=K(ie);return ie?l.createElement("div",lu({"aria-label":typeof oe=="string"&&!ue?oe:null},ge,{key:ne},J(ie,ne),{"aria-selected":j(le)}),le):null},re={role:"listbox",id:`${r}_list`};return l.createElement(l.Fragment,null,R&&l.createElement("div",lu({},re,{style:{height:0,width:0,overflow:"hidden"}}),Z(z-1),Z(z),Z(z+1)),l.createElement(PO,{itemKey:"key",ref:G,data:Y,height:N,itemHeight:O,fullHeight:!1,onMouseDown:B,onScroll:g,virtual:R,direction:T,innerProps:R?null:re,showScrollBar:h,className:D?.popup?.list,style:k?.popup?.list},(ne,ie)=>{const{group:fe,groupOption:le,data:ue,label:ge,value:oe}=ne,{key:se}=ue;if(fe){const De=ue.title??(l2(ge)?ge.toString():void 0);return l.createElement("div",{className:Q(F,`${F}-group`,ue.className),title:De},ge!==void 0?ge:se)}const{disabled:he,title:me,children:xe,style:Ae,className:we,...$e}=ue,de=en($e,X),be=H(oe),Me=he||!be&&V,Oe=`${F}-option`,Le=Q(F,Oe,we,D?.popup?.listItem,{[`${Oe}-grouped`]:le,[`${Oe}-active`]:z===ie&&!Me,[`${Oe}-disabled`]:Me,[`${Oe}-selected`]:be}),Ge=K(ne),et=!$||typeof $=="function"||be,ze=typeof Ge=="number"?Ge:Ge||oe;let _e=l2(ze)?ze.toString():void 0;return me!==void 0&&(_e=me),l.createElement("div",lu({},In(de),R?{}:J(ne,ie),{"aria-selected":R?void 0:j(oe),className:Le,title:_e,onMouseMove:()=>{z===ie||Me||A(ie)},onClick:()=>{Me||q(oe)},style:{...k?.popup?.listItem,...Ae}}),l.createElement("div",{className:`${Oe}-content`},typeof P=="function"?P(ne,{index:ie}):ze),l.isValidElement($)||be,et&&l.createElement(OO,{className:`${F}-option-state`,customizeIcon:$,customizeIconProps:{value:oe,disabled:Me,isSelected:be}},be?"✓":null))}))},M7=l.forwardRef(E7),R7=((e,t)=>{const n=l.useRef({values:new Map,options:new Map}),r=l.useMemo(()=>{const{values:s,options:c}=n.current,d=e.map(g=>g.label===void 0?{...g,label:s.get(g.value)?.label}:g),f=new Map,p=new Map;return d.forEach(g=>{f.set(g.value,g),p.set(g.value,t.get(g.value)||c.get(g.value))}),n.current.values=f,n.current.options=p,d},[e,t]),i=l.useCallback(s=>t.get(s)||n.current.options.get(s),[t]);return[r,i]});function _y(e,t){return MO(e).join("").toUpperCase().includes(t)}const T7=((e,t,n,r,i)=>l.useMemo(()=>{if(!n||r===!1)return e;const{options:s,label:c,value:d}=t,f=[],p=typeof r=="function",g=n.toUpperCase(),h=p?r:(C,b)=>i&&i.length?i.some(x=>_y(b[x],g)):b[s]?_y(b[c!=="children"?c:"label"],g):_y(b[d],g),y=p?C=>Cv(C):C=>C;return e.forEach(C=>{if(C[s]){if(h(n,y(C)))f.push(C);else{const x=C[s].filter(S=>h(n,y(S)));x.length&&f.push({...C,[s]:x})}return}h(n,y(C))&&f.push(C)}),f},[e,r,i,n,t]));function O7(e){const{key:t,props:{children:n,value:r,...i}}=e;return{key:t,value:r!==void 0?r:t,children:n,...i}}function zO(e,t=!1){return mr(e).map((n,r)=>{if(!l.isValidElement(n)||!n.type)return null;const{type:{isSelectOptGroup:i},key:s,props:{children:c,...d}}=n;return t||!i?O7(n):{key:`__RC_SELECT_GRP__${s===null?r:s}__`,label:s,...d,options:zO(c)}}).filter(n=>n)}const N7=(e,t,n,r,i)=>l.useMemo(()=>{let s=e;!e&&(s=zO(t));const d=new Map,f=new Map,p=(h,y,C)=>{C&&typeof C=="string"&&h.set(y[C],y)},g=(h,y=!1)=>{for(let C=0;C<h.length;C+=1){const b=h[C];!b[n.options]||y?(d.set(b[n.value],b),p(f,b,n.label),r.forEach(x=>{p(f,b,x)}),p(f,b,i)):g(b[n.options],!0)}};return g(s),{options:s,valueOptions:d,labelOptions:f}},[e,t,n,r,i]);function s2(e){const t=l.useRef();return t.current=e,l.useCallback((...r)=>t.current(...r),[])}function I7(e,t,n){const{filterOption:r,searchValue:i,optionFilterProp:s,filterSort:c,onSearch:d,autoClearSearchValue:f}=t;return l.useMemo(()=>{const p=typeof e=="object",g={filterOption:r,searchValue:i,optionFilterProp:s,filterSort:c,onSearch:d,autoClearSearchValue:f,...p?e:{}};return[p||n==="combobox"||n==="tags"||n==="multiple"&&e===void 0?!0:e,g]},[n,e,r,i,s,c,d,f])}function Tv(){return Tv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Tv.apply(this,arguments)}const P7=["inputValue"];function z7(e){return!e||typeof e!="object"}const A7=l.forwardRef((e,t)=>{const{id:n,mode:r,prefixCls:i="rc-select",backfill:s,fieldNames:c,showSearch:d,searchValue:f,onSearch:p,autoClearSearchValue:g,filterOption:h,optionFilterProp:y,filterSort:C,onSelect:b,onDeselect:x,onActive:S,popupMatchSelectWidth:$=!0,optionLabelProp:M,options:w,optionRender:R,children:T,defaultActiveFirstOption:N,menuItemSelectedIcon:O,virtual:P,direction:D,listHeight:k=200,listItemHeight:F=20,labelRender:Y,value:G,defaultValue:V,labelInValue:B,onChange:_,maxCount:H,classNames:I,styles:z,...L}=e,A={searchValue:f,onSearch:p,autoClearSearchValue:g,filterOption:h,optionFilterProp:y,filterSort:C},[j,q]=I7(d,A,r),{filterOption:X,searchValue:K,optionFilterProp:J,filterSort:Z,onSearch:re,autoClearSearchValue:ne=!0}=q,ie=l.useMemo(()=>J?Array.isArray(J)?J:[J]:[],[J]),fe=Qo(n),le=Mv(r),ue=!!(!w&&T),ge=l.useMemo(()=>X===void 0&&r==="combobox"?!1:X,[X,r]),oe=l.useMemo(()=>$O(c,ue),[JSON.stringify(c),ue]),[se,he]=Yt("",K),me=se||"",xe=N7(w,T,oe,ie,M),{valueOptions:Ae,labelOptions:we,options:$e}=xe,de=l.useCallback(Re=>MO(Re).map(Ze=>{let it,ft,jt,Rt;z7(Ze)?it=Ze:(ft=Ze.label,it=Ze.value);const wt=Ae.get(it);return wt&&(ft===void 0&&(ft=wt?.[M||oe.label]),jt=wt?.disabled,Rt=wt?.title),{label:ft,value:it,key:it,disabled:jt,title:Rt}}),[oe,M,Ae]),[be,Me]=Yt(V,G),Oe=l.useMemo(()=>{const Ye=de(le&&be===null?[]:be);return r==="combobox"&&q9(Ye[0]?.value)?[]:Ye},[be,de,r,le]),[Le,Ge]=R7(Oe,Ae),et=l.useMemo(()=>{if(!r&&Le.length===1){const Re=Le[0];if(Re.value===null&&(Re.label===null||Re.label===void 0))return[]}return Le.map(Re=>({...Re,label:(typeof Y=="function"?Y(Re):Re.label)??Re.value}))},[r,Le,Y]),ze=l.useMemo(()=>new Set(Le.map(Re=>Re.value)),[Le]);l.useEffect(()=>{if(r==="combobox"){const Re=Le[0]?.value;he(W9(Re)?String(Re):"")}},[Le]);const _e=s2((Re,Ye)=>{const Ze=Ye??Re;return{[oe.value]:Re,[oe.label]:Ze}}),De=l.useMemo(()=>{if(r!=="tags")return $e;const Re=[...$e],Ye=Ze=>Ae.has(Ze);return[...Le].sort((Ze,it)=>Ze.value<it.value?-1:1).forEach(Ze=>{const it=Ze.value;Ye(it)||Re.push(_e(it,Ze.label))}),Re},[_e,$e,Ae,Le,r]),Ue=T7(De,oe,me,ge,ie),Ne=l.useMemo(()=>{const Re=Ye=>ie.length?ie.some(Ze=>Ye?.[Ze]===me):Ye?.value===me;return r!=="tags"||!me||Ue.some(Ye=>Re(Ye))||Ue.some(Ye=>Ye[oe.value]===me)?Ue:[_e(me),...Ue]},[_e,ie,r,Ue,me,oe]),Se=Re=>[...Re].sort((Ze,it)=>Z(Ze,it,{searchValue:me})).map(Ze=>Array.isArray(Ze.options)?{...Ze,options:Ze.options.length>0?Se(Ze.options):Ze.options}:Ze),Be=l.useMemo(()=>Z?Se(Ne):Ne,[Ne,Z,me]),Je=l.useMemo(()=>B9(Be,{fieldNames:oe,childrenAsData:ue}),[Be,oe,ue]),We=Re=>{const Ye=de(Re);if(Me(Ye),_&&(Ye.length!==Le.length||Ye.some((Ze,it)=>Le[it]?.value!==Ze?.value))){const Ze=B?Ye.map(({label:ft,value:jt})=>({label:ft,value:jt})):Ye.map(ft=>ft.value),it=Ye.map(ft=>Cv(Ge(ft.value)));_(le?Ze:Ze[0],le?it:it[0])}},[Xe,Ie]=l.useState(null),[Ke,ot]=l.useState(0),at=N!==void 0?N:r!=="combobox",lt=l.useRef(),St=l.useCallback((Re,Ye,{source:Ze="keyboard"}={})=>{ot(Ye),s&&r==="combobox"&&Re!==null&&Ze==="keyboard"&&Ie(String(Re));const it=Promise.resolve().then(()=>{lt.current===it&&S?.(Re)});lt.current=it},[s,r,S]),Ct=(Re,Ye,Ze)=>{const it=()=>{const ft=Ge(Re);return[B?{label:ft?.[oe.label],value:Re}:Re,Cv(ft)]};if(Ye&&b){const[ft,jt]=it();b(ft,jt)}else if(!Ye&&x&&Ze!=="clear"){const[ft,jt]=it();x(ft,jt)}},qe=s2((Re,Ye)=>{let Ze;const it=le?Ye.selected:!0;it?Ze=le?[...Le,Re]:[Re]:Ze=Le.filter(ft=>ft.value!==Re),We(Ze),Ct(Re,it),r==="combobox"?Ie(""):(!Mv||ne)&&(he(""),Ie(""))}),rt=(Re,Ye)=>{We(Re);const{type:Ze,values:it}=Ye;(Ze==="remove"||Ze==="clear")&&it.forEach(ft=>{Ct(ft.value,!1,Ze)})},je=(Re,Ye)=>{if(he(Re),Ie(null),Ye.source==="submit"){const Ze=(Re||"").trim();if(Ze){const it=Array.from(new Set([...ze,Ze]));We(it),Ct(Ze,!0),he("")}return}Ye.source!=="blur"&&(r==="combobox"&&We(Re),re?.(Re))},Pe=Re=>{let Ye=Re;r!=="tags"&&(Ye=Re.map(it=>we.get(it)?.value).filter(it=>it!==void 0));const Ze=Array.from(new Set([...ze,...Ye]));We(Ze),Ze.forEach(it=>{Ct(it,!0)})},ke=l.useMemo(()=>({...xe,flattenOptions:Je,onActiveValue:St,defaultActiveFirstOption:at,onSelect:qe,menuItemSelectedIcon:O,rawValues:ze,fieldNames:oe,virtual:P!==!1&&$!==!1,direction:D,listHeight:k,listItemHeight:F,childrenAsData:ue,maxCount:H,optionRender:R,classNames:I,styles:z}),[H,xe,Je,St,at,qe,O,ze,oe,P,$,D,k,F,ue,R,I,z]);return l.createElement(WS.Provider,{value:ke},l.createElement(l7,Tv({},L,{id:fe,prefixCls:i,ref:t,omitDomProps:P7,mode:r,classNames:I,styles:z,displayValues:et,onDisplayValuesChange:rt,maxCount:H,direction:D,showSearch:j,searchValue:me,onSearch:je,autoClearSearchValue:ne,onSearchSplit:Pe,popupMatchSelectWidth:$,OptionList:M7,emptyOptions:!Je.length,activeValue:Xe,activeDescendantId:`${fe}_list_${Ke}`})))}),US=A7;US.Option=YS;US.OptGroup=qS;const tl=(e,t,n)=>Q({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:n}),Ds=(e,t)=>t||e,D7=()=>{const[,e]=qr(),[t]=oo("Empty"),r=new Jt(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return l.createElement("svg",{style:r,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},l.createElement("title",null,t?.description||"Empty"),l.createElement("g",{fill:"none",fillRule:"evenodd"},l.createElement("g",{transform:"translate(24 31.67)"},l.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),l.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"}),l.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)"}),l.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"}),l.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"})),l.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"}),l.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},l.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),l.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},j7=()=>{const[,e]=qr(),[t]=oo("Empty"),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:i,colorBgContainer:s}=e,{borderColor:c,shadowColor:d,contentColor:f}=l.useMemo(()=>({borderColor:new Jt(n).onBackground(s).toHexString(),shadowColor:new Jt(r).onBackground(s).toHexString(),contentColor:new Jt(i).onBackground(s).toHexString()}),[n,r,i,s]);return l.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},l.createElement("title",null,t?.description||"Empty"),l.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},l.createElement("ellipse",{fill:d,cx:"32",cy:"33",rx:"32",ry:"7"}),l.createElement("g",{fillRule:"nonzero",stroke:c},l.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"}),l.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:f}))))},_7=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:i,fontSize:s,lineHeight:c}=e;return{[t]:{marginInline:r,fontSize:s,lineHeight:c,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorTextDescription},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:i,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},H7=zt("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,i=Nt(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return _7(i)}),AO=l.createElement(D7,null),DO=l.createElement(j7,null),Fi=e=>{const{className:t,rootClassName:n,prefixCls:r,image:i,description:s,children:c,imageStyle:d,style:f,classNames:p,styles:g,...h}=e,{getPrefixCls:y,direction:C,className:b,style:x,classNames:S,styles:$,image:M}=Pt("empty"),w=y("empty",r),[R,T]=H7(w),[N,O]=Vt([S,p],[$,g],{props:e}),[P]=oo("Empty"),D=typeof s<"u"?s:P?.description,k=typeof D=="string"?D:"empty",F=i??M??AO;let Y=null;return typeof F=="string"?Y=l.createElement("img",{draggable:!1,alt:k,src:F}):Y=F,l.createElement("div",{className:Q(R,T,w,b,{[`${w}-normal`]:F===DO,[`${w}-rtl`]:C==="rtl"},t,n,N.root),style:{...O.root,...x,...f},...h},l.createElement("div",{className:Q(`${w}-image`,N.image),style:{...d,...O.image}},Y),D&&l.createElement("div",{className:Q(`${w}-description`,N.description),style:O.description},D),c&&l.createElement("div",{className:Q(`${w}-footer`,N.footer),style:O.footer},c))};Fi.PRESENTED_IMAGE_DEFAULT=AO;Fi.PRESENTED_IMAGE_SIMPLE=DO;const jO=e=>{const{componentName:t}=e,{getPrefixCls:n}=l.useContext(dt),r=n("empty");switch(t){case"Table":case"List":return ae.createElement(Fi,{image:Fi.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return ae.createElement(Fi,{image:Fi.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case"Table.filter":return null;default:return ae.createElement(Fi,null)}},js=(e,t,n)=>{const{variant:r,[e]:i}=l.useContext(dt),s=l.useContext(L_),c=i?.variant;let d;typeof t<"u"?d=t:n===!1?d="borderless":d=s??c??r??"outlined";const f=f8.includes(d);return[d,f]},B7=e=>{const n={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:{...n,points:["tl","bl"],offset:[0,4]},bottomRight:{...n,points:["tr","br"],offset:[0,4]},topLeft:{...n,points:["bl","tl"],offset:[0,-4]},topRight:{...n,points:["br","tr"],offset:[0,-4]}}};function L7(e,t){return e||B7(t)}const c2=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:i}=e;return{position:"relative",display:"block",minHeight:t,padding:i,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}},V7=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,i=`&${t}-slide-up-enter${t}-slide-up-enter-active`,s=`&${t}-slide-up-appear${t}-slide-up-appear-active`,c=`&${t}-slide-up-leave${t}-slide-up-leave-active`,d=`${n}-dropdown-placement-`,f=`${r}-option-selected`;return[{[`${n}-dropdown`]:{...Zt(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,[`
180
+ ${i}${d}bottomLeft,
181
+ ${s}${d}bottomLeft
182
+ `]:{animationName:Np},[`
183
+ ${i}${d}topLeft,
184
+ ${s}${d}topLeft,
185
+ ${i}${d}topRight,
186
+ ${s}${d}topRight
187
+ `]:{animationName:Pp},[`${c}${d}bottomLeft`]:{animationName:Ip},[`
188
+ ${c}${d}topLeft,
189
+ ${c}${d}topRight
190
+ `]:{animationName:zp},"&-hidden":{display:"none"},[r]:{...c2(e),cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":{flex:"auto",...$o},"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${r}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${r}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":{...c2(e),color:e.colorTextDisabled}},[`${f}:has(+ ${f})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${f}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}}},Ko(e,"slide-up"),Ko(e,"slide-down"),Es(e,"move-up"),Es(e,"move-down")]},F7=e=>{const{componentCls:t}=e;return{[`&${t}-customize`]:{border:0,padding:0,fontSize:"inherit",lineHeight:"inherit",[`${t}-placeholder`]:{display:"none"},[`${t}-content`]:{margin:0,padding:0,"&-value":{display:"none"}}}}},u2=4,k7=e=>{const{componentCls:t,calc:n,iconCls:r,paddingXS:i,paddingXXS:s,INTERNAL_FIXED_ITEM_MARGIN:c,lineWidth:d,colorIcon:f,colorIconHover:p,inputPaddingHorizontalBase:g}=e;return{"&-multiple":{"--select-multi-item-background":e.multipleItemBg,"--select-multi-item-border-color":"transparent","--select-multi-item-border-radius":e.borderRadiusSM,"--select-multi-item-height":e.multipleItemHeight,"--select-multi-padding-base":"calc((var(--select-height) - var(--select-multi-item-height)) / 2)","--select-multi-padding-vertical":`calc(var(--select-multi-padding-base) - ${c} - ${d})`,"--select-multi-item-padding-horizontal":`calc(${g} - var(--select-multi-padding-vertical) - ${d} * 2)`,paddingBlock:"var(--select-multi-padding-vertical)",paddingInlineStart:`calc(var(--select-multi-padding-base) - ${d})`,[`${t}-prefix`]:{marginInlineStart:"var(--select-multi-item-padding-horizontal)"},[`${t}-prefix + ${t}-content`]:{[`${t}-placeholder`]:{insetInlineStart:0},[`${t}-content-item${t}-content-item-suffix`]:{marginInlineStart:0}},[`${t}-placeholder`]:{position:"absolute",lineHeight:"var(--select-line-height)",insetInlineStart:"var(--select-multi-item-padding-horizontal)",width:"calc(100% - var(--select-multi-item-padding-horizontal))",top:"50%",transform:"translateY(-50%)"},[`${t}-content`]:{flexWrap:"wrap",alignItems:"center",lineHeight:1,"&-item-prefix":{height:"var(--select-font-size)"},"&-item":{lineHeight:1,maxWidth:`calc(100% - ${u2}px)`},[`${t}-content-item-prefix + ${t}-content-item-suffix,
191
+ ${t}-content-item-suffix:first-child`]:{marginInlineStart:"var(--select-multi-item-padding-horizontal)"},[`${t}-selection-item`]:{lineHeight:`calc(var(--select-multi-item-height) - ${d} * 2)`,border:`${d} solid var(--select-multi-item-border-color)`,display:"flex",marginBlock:c,marginInlineEnd:n(c).mul(2).equal(),background:"var(--select-multi-item-background)",borderRadius:"var(--select-multi-item-border-radius)",paddingInlineStart:i,paddingInlineEnd:s,transition:["height","line-height","padding"].map(h=>`${h} ${e.motionDurationSlow}`).join(","),"&-content":{...$o,marginInlineEnd:s},"&-remove":{...Is(),display:"inline-flex",alignItems:"center",color:f,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${r}`]:{verticalAlign:"-0.2em"},"&:hover":{color:p}}},[`${t}-input`]:{lineHeight:n(c).mul(2).add("var(--select-multi-item-height)").equal(),width:"calc(var(--select-input-width, 0) * 1px)",minWidth:u2,maxWidth:"100%",transition:`line-height ${e.motionDurationSlow}`}},[`&${t}-sm`]:{"--select-multi-item-height":e.multipleItemHeightSM,"--select-multi-item-border-radius":e.borderRadiusXS},[`&${t}-lg`]:{"--select-multi-item-height":e.multipleItemHeightLG,"--select-multi-item-border-radius":e.borderRadius},[`&${t}-filled`]:{"--select-multi-item-border-color":e.colorSplit,"--select-multi-item-background":e.colorBgContainer,[`&${t}-disabled`]:{"--select-multi-item-border-color":"transparent"}}}}},Hy=(e,t)=>{const{componentCls:n}=e,{border:r,borderHover:i,borderActive:s,borderOutline:c}=t,d=t.background||e.selectorBg||e.colorBgContainer;return{"--select-border-color":r,"--select-background":d,"--select-color":t.color||e.colorText,[`&:not(${n}-disabled)`]:{"&:hover":{"--select-border-color":i,"--select-background":t.backgroundHover||d},[`&${n}-focused`]:{"--select-border-color":s,"--select-background":t.backgroundActive||d,boxShadow:`0 0 0 ${te(e.controlOutlineWidth)} ${c}`}},[`&${n}-disabled`]:{"--select-border-color":t.borderDisabled||t.border,"--select-background":t.backgroundDisabled||t.background}}},qf=(e,t,n,r={},i={},s)=>{const{componentCls:c}=e;return{[`&${c}-${t}`]:[Hy(e,n),{[`&${c}-status-error`]:Hy(e,{...n,color:r.color||e.colorError,...r}),[`&${c}-status-warning`]:Hy(e,{...n,color:i.color||e.colorWarning,...i})},s]}},W7=e=>{const{componentCls:t,calc:n,fontHeight:r,controlHeight:i,iconCls:s}=e;return{[t]:[{"--select-border-radius":e.borderRadius,"--select-border-color":"#000","--select-border-size":e.lineWidth,"--select-background":e.colorBgContainer,"--select-font-size":e.fontSize,"--select-line-height":e.lineHeight,"--select-font-height":r,"--select-color":e.colorText,"--select-height":i,"--select-padding-horizontal":n(e.paddingSM).sub(e.lineWidth).equal(),"--select-padding-vertical":"calc((var(--select-height) - var(--select-font-height)) / 2 - var(--select-border-size))",...Zt(e,!0),display:"inline-flex",flexWrap:"nowrap",position:"relative",transition:`all ${e.motionDurationSlow}`,alignItems:"flex-start",outline:0,cursor:"pointer",borderRadius:"var(--select-border-radius)",borderWidth:"var(--select-border-size)",borderStyle:e.lineType,borderColor:"var(--select-border-color)",background:"var(--select-background)",fontSize:"var(--select-font-size)",lineHeight:"var(--select-line-height)",color:"var(--select-color)",paddingInline:"var(--select-padding-horizontal)",paddingBlock:"var(--select-padding-vertical)",[`${t}-prefix`]:{flex:"none",lineHeight:1},[`${t}-placeholder`]:{...$o,color:e.colorTextPlaceholder,pointerEvents:"none",zIndex:1},[`${t}-content`]:{flex:"auto",minWidth:0,position:"relative",display:"flex",marginInlineEnd:n(e.paddingXXS).mul(1.5).equal(),"&:before":{content:'"\\a0"',width:0,overflow:"hidden"},"&-value":{...$o,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,zIndex:1},"input[readonly]":{cursor:"inherit",caretColor:"transparent"}},[`&-open ${t}-content-value`]:{color:e.colorTextPlaceholder},[`${t}-suffix`]:{flex:"none",color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,"> :not(:last-child)":{marginInlineEnd:e.marginXS}},[`${t}-prefix, ${t}-suffix`]:{alignSelf:"center",[s]:{verticalAlign:"top"}},"&-disabled":{background:e.colorBgContainerDisabled,color:e.colorTextDisabled,cursor:"not-allowed",input:{cursor:"not-allowed"}},"&-sm":{"--select-height":e.controlHeightSM,"--select-padding-horizontal":n(e.paddingXS).sub(e.lineWidth).equal(),"--select-border-radius":e.borderRadiusSM},"&-lg":{"--select-height":e.controlHeightLG,"--select-font-size":e.fontSizeLG,"--select-line-height":e.lineHeightLG,"--select-font-height":e.fontHeightLG,"--select-border-radius":e.borderRadiusLG}},{[`&:not(${t}-customize)`]:{[`${t}-input`]:{outline:"none",background:"transparent",appearance:"none",border:0,margin:0,padding:0,color:"inherit","&::-webkit-search-cancel-button":{display:"none",appearance:"none"}}}},{[`&-single:not(${t}-customize)`]:{[`${t}-input`]:{position:"absolute",insetInline:0,insetBlock:"calc(var(--select-padding-vertical) * -1)",lineHeight:"calc(var(--select-font-height) + var(--select-padding-vertical) * 2)"},[`${t}-content`]:{alignSelf:"center"}}},{[`&-show-search:not(${t}-customize-input):not(${t}-disabled)`]:{cursor:"text"}},k7(e),qf(e,"outlined",{border:e.colorBorder,borderHover:e.hoverBorderColor,borderActive:e.activeBorderColor,borderOutline:e.activeOutlineColor,borderDisabled:e.colorBorderDisabled},{border:e.colorError,borderHover:e.colorErrorHover,borderActive:e.colorError,borderOutline:e.colorErrorOutline},{border:e.colorWarning,borderHover:e.colorWarningHover,borderActive:e.colorWarning,borderOutline:e.colorWarningOutline}),qf(e,"filled",{border:"transparent",borderHover:"transparent",borderActive:e.activeBorderColor,borderOutline:"transparent",borderDisabled:e.colorBorderDisabled,background:e.colorFillTertiary,backgroundHover:e.colorFillSecondary,backgroundActive:e.colorBgContainer},{background:e.colorErrorBg,backgroundHover:e.colorErrorBgHover,borderActive:e.colorError},{background:e.colorWarningBg,backgroundHover:e.colorWarningBgHover,borderActive:e.colorWarning}),qf(e,"borderless",{border:"transparent",borderHover:"transparent",borderActive:"transparent",borderOutline:"transparent",background:"transparent"}),qf(e,"underlined",{border:e.colorBorder,borderHover:e.hoverBorderColor,borderActive:e.activeBorderColor,borderOutline:"transparent"},{border:e.colorError,borderHover:e.colorErrorHover,borderActive:e.colorError},{border:e.colorWarning,borderHover:e.colorWarningHover,borderActive:e.colorWarning},{borderRadius:0,borderTopColor:"transparent",borderRightColor:"transparent",borderLeftColor:"transparent"}),F7(e)]}},q7=e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:i,controlHeightSM:s,controlHeightLG:c,paddingXXS:d,controlPaddingHorizontal:f,zIndexPopupBase:p,colorText:g,fontWeightStrong:h,controlItemBgActive:y,controlItemBgHover:C,colorBgContainer:b,colorFillSecondary:x,colorBgContainerDisabled:S,colorTextDisabled:$,colorPrimaryHover:M,colorPrimary:w,controlOutline:R}=e,T=d*2,N=r*2,O=Math.min(i-T,i-N),P=Math.min(s-T,s-N),D=Math.min(c-T,c-N);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(d/2),zIndexPopup:p+50,optionSelectedColor:g,optionSelectedFontWeight:h,optionSelectedBg:y,optionActiveBg:C,optionPadding:`${(i-t*n)/2}px ${f}px`,optionFontSize:t,optionLineHeight:n,optionHeight:i,selectorBg:b,clearBg:b,singleItemHeightLG:c,multipleItemBg:x,multipleItemBorderColor:"transparent",multipleItemHeight:O,multipleItemHeightSM:P,multipleItemHeightLG:D,multipleSelectorBgDisabled:S,multipleItemColorDisabled:$,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:M,activeBorderColor:w,activeOutlineColor:R,selectAffixPadding:d}},Y7=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r}=e,i={[`${n}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}};return{[n]:{...Zt(e),[`${n}-selection-item`]:{flex:1,fontWeight:"normal",position:"relative",userSelect:"none",...$o,[`> ${t}-typography`]:{display:"inline"}},[`${n}-prefix`]:{flex:"none",marginInlineEnd:e.selectAffixPadding},[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto",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(r).add(e.fontSize).add(e.paddingXS).equal()}}}}}},U7=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},Y7(e),V7(e),{[`${t}-rtl`]:{direction:"rtl"}},gd(e,{focusElCls:`${t}-focused`})]},G7=zt("Select",(e,{rootPrefixCls:t})=>{const n=Nt(e,{rootPrefixCls:t,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(e.lineWidth).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[U7(n),W7(n)]},q7,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var X7={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"};function Ov(){return Ov=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ov.apply(this,arguments)}const K7=(e,t)=>l.createElement(gt,Ov({},e,{ref:t,icon:X7})),ul=l.forwardRef(K7);var Q7={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"};function Nv(){return Nv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Nv.apply(this,arguments)}const Z7=(e,t)=>l.createElement(gt,Nv({},e,{ref:t,icon:Q7})),J7=l.forwardRef(Z7);var eH={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"};function Iv(){return Iv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Iv.apply(this,arguments)}const tH=(e,t)=>l.createElement(gt,Iv({},e,{ref:t,icon:eH})),_O=l.forwardRef(tH);function HO({suffixIcon:e,clearIcon:t,menuItemSelectedIcon:n,removeIcon:r,loading:i,multiple:s,hasFeedback:c,showSuffixIcon:d,feedbackIcon:f,showArrow:p,componentName:g}){const h=t??l.createElement(zs,null),y=S=>e===null&&!c&&!p?null:l.createElement(l.Fragment,null,d!==!1&&S,c&&f);let C=null;e!==void 0?C=y(e):i?C=y(l.createElement(Rp,{spin:!0})):C=({open:S,showSearch:$})=>y(S&&$?l.createElement(_O,null):l.createElement(J7,null));let b=null;n!==void 0?b=n:s?b=l.createElement(ul,null):b=null;let x=null;return r!==void 0?x=r:x=l.createElement(Yr,null),{clearIcon:h,suffixIcon:C,itemIcon:b,removeIcon:x}}function nH(e){return ae.useMemo(()=>{if(e)return(...t)=>ae.createElement(wa,{space:!0},e.apply(void 0,t))},[e])}function rH(e,t){return t!==void 0?t:e!==null}const BO="SECRET_COMBOBOX_MODE_DO_NOT_USE",oH=(e,t)=>{const{prefixCls:n,bordered:r,className:i,rootClassName:s,getPopupContainer:c,popupClassName:d,dropdownClassName:f,listHeight:p=256,placement:g,listItemHeight:h,size:y,disabled:C,notFoundContent:b,status:x,builtinPlacements:S,dropdownMatchSelectWidth:$,popupMatchSelectWidth:M,direction:w,style:R,allowClear:T,variant:N,popupStyle:O,dropdownStyle:P,transitionName:D,tagRender:k,maxCount:F,prefix:Y,dropdownRender:G,popupRender:V,onDropdownVisibleChange:B,onOpenChange:_,styles:H,classNames:I,...z}=e,{getPopupContainer:L,getPrefixCls:A,renderEmpty:j,direction:q,virtual:X,popupMatchSelectWidth:K,popupOverflow:J}=l.useContext(dt),{showSearch:Z,style:re,styles:ne,className:ie,classNames:fe}=Pt("select"),[,le]=qr(),ue=h??le?.controlHeight,ge=A("select",n),oe=A(),se=w??q,{compactSize:he,compactItemClassnames:me}=Ra(ge,se),[xe,Ae]=js("select",N,r),we=lr(ge),[$e,de]=G7(ge,we),be=l.useMemo(()=>{const{mode:Ye}=e;if(Ye!=="combobox")return Ye===BO?"combobox":Ye},[e.mode]),Me=be==="multiple"||be==="tags",Oe=rH(e.suffixIcon,e.showArrow),Le=M??$??K,Ge=nH(V||G),et=_||B,{status:ze,hasFeedback:_e,isFormItemInput:De,feedbackIcon:Ue}=l.useContext(Or),Ne=Ds(ze,x);let Se;b!==void 0?Se=b:be==="combobox"?Se=null:Se=j?.("Select")||l.createElement(jO,{componentName:"Select"});const{suffixIcon:Be,itemIcon:Je,removeIcon:We,clearIcon:Xe}=HO({...z,multiple:Me,hasFeedback:_e,feedbackIcon:Ue,showSuffixIcon:Oe,componentName:"Select"}),Ie=T===!0?{clearIcon:Xe}:T,Ke=en(z,["suffixIcon","itemIcon"]),ot=pr(Ye=>y??he??Ye),at=l.useContext(Wr),lt=C??at,St={...e,variant:xe,status:Ne,disabled:lt,size:ot},[Ct,qe]=Vt([fe,I],[ne,H],{props:St},{popup:{_default:"root"}}),rt=Q(Ct.popup?.root,d,f,{[`${ge}-dropdown-${se}`]:se==="rtl"},s,de,we,$e),je={...qe.popup?.root,...O??P},Pe=Q({[`${ge}-lg`]:ot==="large",[`${ge}-sm`]:ot==="small",[`${ge}-rtl`]:se==="rtl",[`${ge}-${xe}`]:Ae,[`${ge}-in-form-item`]:De},tl(ge,Ne,_e),me,ie,i,Ct.root,s,de,we,$e),ke=l.useMemo(()=>g!==void 0?g:se==="rtl"?"bottomRight":"bottomLeft",[g,se]),[Re]=mi("SelectLike",qe.popup?.root?.zIndex??je?.zIndex);return l.createElement(US,{ref:t,virtual:X,classNames:Ct,styles:qe,showSearch:Z,...Ke,style:{...qe.root,...re,...R},popupMatchSelectWidth:Le,transitionName:Xo(oe,"slide-up",D),builtinPlacements:L7(S,J),listHeight:p,listItemHeight:ue,mode:be,prefixCls:ge,placement:ke,direction:se,prefix:Y,suffixIcon:Be,menuItemSelectedIcon:Je,removeIcon:We,allowClear:Ie,notFoundContent:Se,className:Pe,getPopupContainer:c||L,popupClassName:rt,disabled:lt,popupStyle:{...qe.popup?.root,...je,zIndex:Re},maxCount:Me?F:void 0,tagRender:Me?k:void 0,popupRender:Ge,onPopupVisibleChange:et})},Vr=l.forwardRef(oH),aH=Dp(Vr,"popupAlign");Vr.SECRET_COMBOBOX_MODE_DO_NOT_USE=BO;Vr.Option=YS;Vr.OptGroup=qS;Vr._InternalPanelDoNotUseOrYouWillBeFired=aH;const nl=["xxl","xl","lg","md","sm","xs"],iH=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)`}),lH=e=>{const t=e,n=[].concat(nl).reverse();return n.forEach((r,i)=>{const s=r.toUpperCase(),c=`screen${s}Min`,d=`screen${s}`;if(!(t[c]<=t[d]))throw new Error(`${c}<=${d} fails : !(${t[c]}<=${t[d]})`);if(i<n.length-1){const f=`screen${s}Max`;if(!(t[d]<=t[f]))throw new Error(`${d}<=${f} fails : !(${t[d]}<=${t[f]})`);const g=`screen${n[i+1].toUpperCase()}Min`;if(!(t[f]<=t[g]))throw new Error(`${f}<=${g} fails : !(${t[f]}<=${t[g]})`)}}),e},sH=()=>{const[,e]=qr(),t=iH(lH(e));return ae.useMemo(()=>{const n=new Map;let r=-1,i={};return{responsiveMap:t,matchHandlers:{},dispatch(s){return i=s,n.forEach(c=>c(i)),n.size>=1},subscribe(s){return n.size||this.register(),r+=1,n.set(r,s),s(i),r},unsubscribe(s){n.delete(s),n.size||this.unregister()},register(){Object.entries(t).forEach(([s,c])=>{const d=({matches:p})=>{this.dispatch({...i,[s]:p})},f=window.matchMedia(c);typeof f?.addEventListener=="function"&&f.addEventListener("change",d),this.matchHandlers[c]={mql:f,listener:d},d(f)})},unregister(){Object.values(t).forEach(s=>{const c=this.matchHandlers[s];typeof c?.mql?.removeEventListener=="function"&&c.mql.removeEventListener("change",c?.listener)}),n.clear()}}},[t])};function jp(e=!0,t={}){const n=l.useRef(t),[,r]=k5(),i=sH();return It(()=>{const s=i.subscribe(c=>{n.current=c,e&&r()});return()=>i.unsubscribe(s)},[]),n.current}const Rs=e=>e?typeof e=="function"?e():e:null,GS=e=>{const{children:t,prefixCls:n,id:r,classNames:i,styles:s,className:c,style:d}=e;return l.createElement("div",{id:r,className:Q(`${n}-container`,i?.container,c),style:{...s?.container,...d},role:"tooltip"},typeof t=="function"?t():t)},ns={shiftX:64,adjustY:1},rs={adjustX:1,shiftY:!0},yo=[0,0],cH={left:{points:["cr","cl"],overflow:rs,offset:[-4,0],targetOffset:yo},right:{points:["cl","cr"],overflow:rs,offset:[4,0],targetOffset:yo},top:{points:["bc","tc"],overflow:ns,offset:[0,-4],targetOffset:yo},bottom:{points:["tc","bc"],overflow:ns,offset:[0,4],targetOffset:yo},topLeft:{points:["bl","tl"],overflow:ns,offset:[0,-4],targetOffset:yo},leftTop:{points:["tr","tl"],overflow:rs,offset:[-4,0],targetOffset:yo},topRight:{points:["br","tr"],overflow:ns,offset:[0,-4],targetOffset:yo},rightTop:{points:["tl","tr"],overflow:rs,offset:[4,0],targetOffset:yo},bottomRight:{points:["tr","br"],overflow:ns,offset:[0,4],targetOffset:yo},rightBottom:{points:["bl","br"],overflow:rs,offset:[4,0],targetOffset:yo},bottomLeft:{points:["tl","bl"],overflow:ns,offset:[0,4],targetOffset:yo},leftBottom:{points:["br","bl"],overflow:rs,offset:[-4,0],targetOffset:yo}};function Pv(){return Pv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Pv.apply(this,arguments)}const uH=l.forwardRef((e,t)=>{const{trigger:n=["hover"],mouseEnterDelay:r=0,mouseLeaveDelay:i=.1,prefixCls:s="rc-tooltip",children:c,onVisibleChange:d,afterVisibleChange:f,motion:p,placement:g="right",align:h={},destroyOnHidden:y=!1,defaultVisible:C,getTooltipContainer:b,arrowContent:x,overlay:S,id:$,showArrow:M=!0,classNames:w,styles:R,...T}=e,N=Qo($),O=l.useRef(null);l.useImperativeHandle(t,()=>O.current);const P={...T};"visible"in e&&(P.popupVisible=e.visible);const D=l.useMemo(()=>{if(!M)return!1;const F=M===!0?{}:M;return{...F,className:Q(F.className,w?.arrow),style:{...F.style,...R?.arrow},content:F.content??x}},[M,w?.arrow,R?.arrow,x]),k=({open:F})=>{const Y=l.Children.only(c),G={"aria-describedby":S&&F?N:void 0};return l.cloneElement(Y,G)};return l.createElement(dd,Pv({popupClassName:w?.root,prefixCls:s,popup:l.createElement(GS,{key:"content",prefixCls:s,id:N,classNames:w,styles:R},S),action:n,builtinPlacements:cH,popupPlacement:g,ref:O,popupAlign:h,getPopupContainer:b,onOpenChange:d,afterOpenChange:f,popupMotion:p,defaultPopupVisible:C,autoDestroy:y,mouseLeaveDelay:i,popupStyle:R?.root,mouseEnterDelay:r,arrow:D,uniqueContainerClassName:w?.uniqueContainer,uniqueContainerStyle:R?.uniqueContainer},P),k)});function _p(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,i=t/2,s=0,c=i,d=r*1/Math.sqrt(2),f=i-r*(1-1/Math.sqrt(2)),p=i-n*(1/Math.sqrt(2)),g=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),h=2*i-p,y=g,C=2*i-d,b=f,x=2*i-s,S=c,$=i*Math.sqrt(2)+r*(Math.sqrt(2)-2),M=r*(Math.sqrt(2)-1),w=`polygon(${M}px 100%, 50% ${M}px, ${2*i-M}px 100%, ${M}px 100%)`,R=`path('M ${s} ${c} A ${r} ${r} 0 0 0 ${d} ${f} L ${p} ${g} A ${n} ${n} 0 0 1 ${h} ${y} L ${C} ${b} A ${r} ${r} 0 0 0 ${x} ${S} Z')`;return{arrowShadowWidth:$,arrowPath:R,arrowPolygon:w}}const LO=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:i,arrowPath:s,arrowShadowWidth:c,borderRadiusXS:d,calc:f}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:f(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[i,s]},content:'""'},"&::after":{content:'""',position:"absolute",width:c,height:c,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${te(d)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},VO=8;function Hp(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?VO:r}}function Yf(e,t){return e?t:{}}function XS(e,t,n){const{componentCls:r,boxShadowPopoverArrow:i,arrowOffsetVertical:s,arrowOffsetHorizontal:c}=e,{arrowDistance:d=0,arrowPlacement:f={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[r]:{[`${r}-arrow`]:[{position:"absolute",zIndex:1,display:"block",...LO(e,t,i),"&:before":{background:t}}],...Yf(!!f.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:d,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":c,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:c}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${te(c)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:c}}}}),...Yf(!!f.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:d,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":c,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:c}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${te(c)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:c}}}}),...Yf(!!f.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:d},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:s},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:s}}),...Yf(!!f.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:d},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:s},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:s}})}}}function dH(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const i=r&&typeof r=="object"?r:{},s={};switch(e){case"top":case"bottom":s.shiftX=t.arrowOffsetHorizontal*2+n,s.shiftY=!0,s.adjustY=!0;break;case"left":case"right":s.shiftY=t.arrowOffsetVertical*2+n,s.shiftX=!0,s.adjustX=!0;break}const c={...s,...i};return c.shiftX||(c.adjustX=!0),c.shiftY||(c.adjustY=!0),c}const d2={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"]}},fH={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"]}},mH=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function FO(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:i,borderRadius:s,visibleFirst:c}=e,d=t/2,f={},p=Hp({contentRadius:s,limitVerticalRadius:!0});return Object.keys(d2).forEach(g=>{const y={...r&&fH[g]||d2[g],offset:[0,0],dynamicInset:!0};switch(f[g]=y,mH.has(g)&&(y.autoArrow=!1),g){case"top":case"topLeft":case"topRight":y.offset[1]=-d-i;break;case"bottom":case"bottomLeft":case"bottomRight":y.offset[1]=d+i;break;case"left":case"leftTop":case"leftBottom":y.offset[0]=-d-i;break;case"right":case"rightTop":case"rightBottom":y.offset[0]=d+i;break}if(r)switch(g){case"topLeft":case"bottomLeft":y.offset[0]=-p.arrowOffsetHorizontal-d;break;case"topRight":case"bottomRight":y.offset[0]=p.arrowOffsetHorizontal+d;break;case"leftTop":case"rightTop":y.offset[1]=-p.arrowOffsetHorizontal*2+d;break;case"leftBottom":case"rightBottom":y.offset[1]=p.arrowOffsetHorizontal*2-d;break}y.overflow=dH(g,p,t,n),c&&(y.htmlRegion="visibleFirst")}),f}const KS=(e,t)=>{const n=r=>typeof r=="boolean"?{show:r}:r||{};return ae.useMemo(()=>{const r=n(e),i=n(t);return{...i,...r,show:r.show??i.show??!0}},[e,t])},pH=e=>{const{calc:t,componentCls:n,tooltipMaxWidth:r,tooltipColor:i,tooltipBg:s,tooltipBorderRadius:c,zIndexPopup:d,controlHeight:f,boxShadowSecondary:p,paddingSM:g,paddingXS:h,arrowOffsetHorizontal:y,sizePopupArrow:C}=e,b=t(c).add(C).add(y).equal(),S={minWidth:t(c).mul(2).add(C).equal(),minHeight:f,padding:`${te(e.calc(g).div(2).equal())} ${te(h)}`,color:`var(--ant-tooltip-color, ${i})`,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:s,borderRadius:c,boxShadow:p,boxSizing:"border-box"},$={"--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" ")};return[{[n]:{...Zt(e),position:"absolute",zIndex:d,display:"block",width:"max-content",maxWidth:r,visibility:"visible",...$,"&-hidden":{display:"none"},"--antd-arrow-background-color":s,[`${n}-container`]:[S,kT(e,!0)],[`&:has(~ ${n}-unique-container)`]:{[`${n}-container`]:{border:"none",background:"transparent",boxShadow:"none"}},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:b},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${n}-inner`]:{borderRadius:e.min(c,VO)}},[`${n}-content`]:{position:"relative"},...wp(e,(M,{darkColor:w})=>({[`&${n}-${M}`]:{[`${n}-container`]:{backgroundColor:w},[`${n}-arrow`]:{"--antd-arrow-background-color":w}}})),"&-rtl":{direction:"rtl"}}},XS(e,"var(--antd-arrow-background-color)"),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}},{[`${n}-unique-container`]:{...S,...$,position:"absolute",zIndex:t(d).sub(1).equal(),"&-hidden":{display:"none"},"&-visible":{transition:`all ${e.motionDurationSlow}`}}}]},gH=e=>({zIndexPopup:e.zIndexPopupBase+70,...Hp({contentRadius:e.borderRadius,limitVerticalRadius:!0}),..._p(Nt(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))}),kO=(e,t,n=!0)=>zt("Tooltip",i=>{const{borderRadius:s,colorTextLightSolid:c,colorBgSpotlight:d}=i,f=Nt(i,{tooltipMaxWidth:250,tooltipColor:c,tooltipBorderRadius:s,tooltipBg:d});return[pH(f),pd(i,"zoom-big-fast")]},gH,{resetStyle:!1,injectStyle:n})(e,t),hH=ci.map(e=>`${e}-inverse`),yH=["success","processing","error","default","warning"];function Bp(e,t=!0){return t?[].concat($n(hH),$n(ci)).includes(e):ci.includes(e)}function bH(e){return yH.includes(e)}function WO(e,t){const n=Bp(t),r=Q({[`${e}-${t}`]:t&&n}),i={},s={},c=bj(t).toRgb(),f=(.299*c.r+.587*c.g+.114*c.b)/255<.5?"#FFF":"#000";return t&&!n&&(i.background=t,i["--ant-tooltip-color"]=f,s["--antd-arrow-background-color"]=t),{className:r,overlayStyle:i,arrowStyle:s}}const vH=e=>{const{prefixCls:t,className:n,placement:r="top",title:i,color:s,overlayInnerStyle:c,classNames:d,styles:f}=e,{getPrefixCls:p}=l.useContext(dt),g=p("tooltip",t),h=lr(g),[y,C]=kO(g,h),b=WO(g,s),x=b.arrowStyle,S=l.useMemo(()=>({container:{...c,...b.overlayStyle}}),[c,b.overlayStyle]),$={...e,placement:r},[M,w]=Vt([d],[S,f],{props:$}),R=Q(h,y,C,g,`${g}-pure`,`${g}-placement-${r}`,n,b.className);return l.createElement("div",{className:R,style:x},l.createElement("div",{className:`${g}-arrow`}),l.createElement(GS,{...e,className:y,prefixCls:g,classNames:M,styles:w},i))},SH=l.forwardRef((e,t)=>{const{prefixCls:n,openClassName:r,getTooltipContainer:i,color:s,children:c,afterOpenChange:d,arrow:f,destroyTooltipOnHide:p,destroyOnHidden:g,title:h,overlay:y,trigger:C,builtinPlacements:b,autoAdjustOverflow:x=!0,motion:S,getPopupContainer:$,placement:M="top",mouseEnterDelay:w=.1,mouseLeaveDelay:R=.1,rootClassName:T,styles:N,classNames:O,onOpenChange:P,overlayInnerStyle:D,overlayStyle:k,overlayClassName:F,...Y}=e,[,G]=qr(),{getPopupContainer:V,getPrefixCls:B,direction:_,className:H,style:I,classNames:z,styles:L,arrow:A,trigger:j}=Pt("tooltip"),q=KS(f,A),X=q.show,K=C||j||"hover",J=l.useRef(null),Z=()=>{J.current?.forceAlign()};l.useImperativeHandle(t,()=>({forceAlign:Z,nativeElement:J.current?.nativeElement,popupElement:J.current?.popupElement}));const[re,ne]=Yt(e.defaultOpen??!1,e.open),ie=!h&&!y&&h!==0,fe=Be=>{ne(ie?!1:Be),!ie&&P&&P(Be)},le=l.useMemo(()=>b||FO({arrowPointAtCenter:q?.pointAtCenter??!1,autoAdjustOverflow:x,arrowWidth:X?G.sizePopupArrow:0,borderRadius:G.borderRadius,offset:G.marginXXS,visibleFirst:!0}),[q,b,G,X,x]),ue=l.useMemo(()=>h===0?h:y||h||"",[y,h]),ge=l.createElement(wa,{space:!0},typeof ue=="function"?ue():ue),oe={...e,trigger:K,color:s,placement:M,builtinPlacements:b,openClassName:r,arrow:f,autoAdjustOverflow:x,getPopupContainer:$,children:c,destroyTooltipOnHide:p,destroyOnHidden:g},[se,he]=Vt([z,O],[L,N],{props:oe}),me=B("tooltip",n),xe=B(),Ae=e["data-popover-inject"];let we=re;!("open"in e)&&ie&&(we=!1);const $e=l.isValidElement(c)&&!fT(c)?c:l.createElement("span",null,c),de=$e.props,be=!de.className||typeof de.className=="string"?Q(de.className,r||`${me}-open`):de.className,Me=lr(me),[Oe,Le]=kO(me,Me,!Ae),Ge=WO(me,s),et=Ge.arrowStyle,ze=Q(Me,Oe,Le),_e=Q(F,{[`${me}-rtl`]:_==="rtl"},Ge.className,T,ze,H,se.root),[De,Ue]=mi("Tooltip",Y.zIndex),Ne={...he.container,...D,...Ge.overlayStyle},Se=l.createElement(uH,{unique:!0,...Y,trigger:K,zIndex:De,showArrow:X,placement:M,mouseEnterDelay:w,mouseLeaveDelay:R,prefixCls:me,classNames:{root:_e,container:se.container,arrow:se.arrow,uniqueContainer:Q(ze,se.container)},styles:{root:{...et,...he.root,...I,...k},container:Ne,uniqueContainer:Ne,arrow:he.arrow},getTooltipContainer:$||i||V,ref:J,builtinPlacements:le,overlay:ge,visible:we,onVisibleChange:fe,afterVisibleChange:d,arrowContent:l.createElement("span",{className:`${me}-arrow-content`}),motion:{motionName:Xo(xe,"zoom-big-fast",typeof S?.motionName=="string"?S?.motionName:void 0),motionDeadline:1e3},destroyOnHidden:g??!!p},we?or($e,{className:be}):$e);return l.createElement(sd.Provider,{value:Ue},Se)}),fr=SH;fr._InternalPanelDoNotUseOrYouWillBeFired=vH;fr.UniqueProvider=ET;const CH=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:i,innerPadding:s,boxShadowSecondary:c,colorTextHeading:d,borderRadiusLG:f,zIndexPopup:p,titleMarginBottom:g,colorBgElevated:h,popoverBg:y,titleBorderBottom:C,innerContentPadding:b,titlePadding:x}=e;return[{[t]:{...Zt(e),position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:p,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":h,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-container`]:{backgroundColor:y,backgroundClip:"padding-box",borderRadius:f,boxShadow:c,padding:s},[`${t}-title`]:{minWidth:r,marginBottom:g,color:d,fontWeight:i,borderBottom:C,padding:x},[`${t}-content`]:{color:n,padding:b}}},XS(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block"}}]},$H=e=>{const{componentCls:t}=e;return{[t]:ci.map(n=>{const r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},xH=e=>{const{lineWidth:t,controlHeight:n,fontHeight:r,padding:i,wireframe:s,zIndexPopupBase:c,borderRadiusLG:d,marginXS:f,lineType:p,colorSplit:g,paddingSM:h}=e,y=n-r,C=y/2,b=y/2-t,x=i;return{titleMinWidth:177,zIndexPopup:c+30,..._p(e),...Hp({contentRadius:d,limitVerticalRadius:!0}),innerPadding:s?0:12,titleMarginBottom:s?0:f,titlePadding:s?`${C}px ${x}px ${b}px`:0,titleBorderBottom:s?`${t}px ${p} ${g}`:"none",innerContentPadding:s?`${h}px ${x}px`:0}},qO=zt("Popover",e=>{const{colorBgElevated:t,colorText:n}=e,r=Nt(e,{popoverBg:t,popoverColor:n});return[CH(r),$H(r),pd(r,"zoom-big")]},xH,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]}),YO=e=>{const{title:t,content:n,prefixCls:r,classNames:i,styles:s}=e;return!t&&!n?null:l.createElement(l.Fragment,null,t&&l.createElement("div",{className:Q(`${r}-title`,i?.title),style:s?.title},t),n&&l.createElement("div",{className:Q(`${r}-content`,i?.content),style:s?.content},n))},wH=e=>{const{hashId:t,prefixCls:n,className:r,style:i,placement:s="top",title:c,content:d,children:f,classNames:p,styles:g}=e,h=Rs(c),y=Rs(d),C={...e,placement:s},[b,x]=Vt([p],[g],{props:C}),S=Q(t,n,`${n}-pure`,`${n}-placement-${s}`,r);return l.createElement("div",{className:S,style:i},l.createElement("div",{className:`${n}-arrow`}),l.createElement(GS,{...e,className:t,prefixCls:n,classNames:b,styles:x},f||l.createElement(YO,{prefixCls:n,title:h,content:y,classNames:b,styles:x})))},UO=e=>{const{prefixCls:t,className:n,...r}=e,{getPrefixCls:i}=l.useContext(dt),s=i("popover",t),[c,d]=qO(s);return l.createElement(wH,{...r,prefixCls:s,hashId:c,className:Q(n,d)})},EH=l.forwardRef((e,t)=>{const{prefixCls:n,title:r,content:i,overlayClassName:s,placement:c="top",trigger:d,children:f,mouseEnterDelay:p=.1,mouseLeaveDelay:g=.1,onOpenChange:h,overlayStyle:y={},styles:C,classNames:b,motion:x,arrow:S,...$}=e,{getPrefixCls:M,className:w,style:R,classNames:T,styles:N,arrow:O,trigger:P}=Pt("popover"),D=M("popover",n),[k,F]=qO(D),Y=M(),G=KS(S,O),V=d||P||"hover",B={...e,placement:c,trigger:V,mouseEnterDelay:p,mouseLeaveDelay:g,overlayStyle:y,styles:C,classNames:b},[_,H]=Vt([T,b],[N,C],{props:B}),I=Q(s,k,F,w,_.root),[z,L]=Yt(e.defaultOpen??!1,e.open),A=(J,Z)=>{L(J),h?.(J,Z)},j=J=>{J.keyCode===nt.ESC&&A(!1,J)},q=J=>{A(J)},X=Rs(r),K=Rs(i);return l.createElement(fr,{unique:!1,arrow:G,placement:c,trigger:V,mouseEnterDelay:p,mouseLeaveDelay:g,...$,prefixCls:D,classNames:{root:I,container:_.container,arrow:_.arrow},styles:{root:{...H.root,...R,...y},container:H.container,arrow:H.arrow},ref:t,open:z,onOpenChange:q,overlay:X||K?l.createElement(YO,{prefixCls:D,title:X,content:K,classNames:_,styles:H}):null,motion:{motionName:Xo(Y,"zoom-big",typeof x?.motionName=="string"?x?.motionName:void 0)},"data-popover-inject":!0},or(f,{onKeyDown:J=>{l.isValidElement(f)&&f?.props.onKeyDown?.(J),j(J)}}))}),GO=EH;GO._InternalPanelDoNotUseOrYouWillBeFired=UO;const f2=e=>{const{prefixCls:t,value:n,current:r,offset:i=0}=e;let s;return i&&(s={position:"absolute",top:`${i}00%`,left:0}),l.createElement("span",{style:s,className:Q(`${t}-only-unit`,{current:r})},n)};function MH(e,t,n){let r=e,i=0;for(;(r+10)%10!==t;)r+=n,i+=n;return i}const RH=e=>{const{prefixCls:t,count:n,value:r}=e,i=Number(r),s=Math.abs(n),[c,d]=l.useState(i),[f,p]=l.useState(s),g=()=>{d(i),p(s)};l.useEffect(()=>{const C=setTimeout(g,1e3);return()=>clearTimeout(C)},[i]);let h,y;if(c===i||Number.isNaN(i)||Number.isNaN(c))h=[l.createElement(f2,{...e,key:i,current:!0})],y={transition:"none"};else{h=[];const C=i+10,b=[];for(let M=i;M<=C;M+=1)b.push(M);const x=f<s?1:-1,S=b.findIndex(M=>M%10===c);h=(x<0?b.slice(0,S+1):b.slice(S)).map((M,w)=>{const R=M%10;return l.createElement(f2,{...e,key:M,value:R,offset:x<0?w-S:w,current:w===S})}),y={transform:`translateY(${-MH(c,i,x)}00%)`}}return l.createElement("span",{className:`${t}-only`,style:y,onTransitionEnd:g},h)},TH=l.forwardRef((e,t)=>{const{prefixCls:n,count:r,className:i,motionClassName:s,style:c,title:d,show:f,component:p="sup",children:g,...h}=e,{getPrefixCls:y}=l.useContext(dt),C=y("scroll-number",n),b={...h,"data-show":f,style:c,className:Q(C,i,s),title:d};let x=r;if(r&&Number(r)%1===0){const S=String(r).split("");x=l.createElement("bdi",null,S.map(($,M)=>l.createElement(RH,{prefixCls:C,count:Number(r),value:$,key:S.length-M})))}return c?.borderColor&&(b.style={...c,boxShadow:`0 0 0 1px ${c.borderColor} inset`}),g?or(g,S=>({className:Q(`${C}-custom-component`,S?.className,s)})):l.createElement(p,{...b,ref:t},x)}),OH=new Dt("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),NH=new Dt("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),IH=new Dt("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),PH=new Dt("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),zH=new Dt("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),AH=new Dt("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),DH=e=>{const{componentCls:t,iconCls:n,antCls:r,badgeShadowSize:i,textFontSize:s,textFontSizeSM:c,statusSize:d,dotSize:f,textFontWeight:p,indicatorHeight:g,indicatorHeightSM:h,marginXS:y,calc:C}=e,b=`${r}-scroll-number`,x=wp(e,(S,{darkColor:$})=>({[`&${t} ${t}-color-${S}`]:{background:$,[`&:not(${t}-count)`]:{color:$},"a:hover &":{background:$}}}));return{[t]:{...Zt(e),position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${t}-count`]:{display:"inline-flex",justifyContent:"center",zIndex:e.indicatorZIndex,minWidth:g,height:g,color:e.badgeTextColor,fontWeight:p,fontSize:s,lineHeight:te(g),whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:C(g).div(2).equal(),boxShadow:`0 0 0 ${te(i)} ${e.badgeShadowColor}`,transition:`background ${e.motionDurationMid}`,a:{color:e.badgeTextColor},"a:hover":{color:e.badgeTextColor},"a:hover &":{background:e.badgeColorHover}},[`${t}-count-sm`]:{minWidth:h,height:h,fontSize:c,lineHeight:te(h),borderRadius:C(h).div(2).equal()},[`${t}-multiple-words`]:{padding:`0 ${te(e.paddingXS)}`,bdi:{unicodeBidi:"plaintext"}},[`${t}-dot`]:{zIndex:e.indicatorZIndex,width:f,minWidth:f,height:f,background:e.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${te(i)} ${e.badgeShadowColor}`},[`${t}-count, ${t}-dot, ${b}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${n}-spin`]:{animationName:AH,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${t}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${t}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:d,height:d,verticalAlign:"middle",borderRadius:"50%"},[`${t}-status-success`]:{backgroundColor:e.colorSuccess},[`${t}-status-processing`]:{overflow:"visible",color:e.colorInfo,backgroundColor:e.colorInfo,borderColor:"currentcolor","&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:i,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:OH,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:y,color:e.colorText,fontSize:e.fontSize}},...x,[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:NH,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:IH,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:PH,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:zH,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:"middle"},[`${b}-custom-component, ${t}-count`]:{transform:"none"},[`${b}-custom-component, ${b}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[b]:{overflow:"hidden",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack}`,[`${b}-only`]:{position:"relative",display:"inline-block",height:g,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${b}-only-unit`]:{height:g,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${b}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${t}-count, ${t}-dot, ${b}-custom-component`]:{transform:"translate(-50%, -50%)"}}}}},XO=e=>{const{fontHeight:t,lineWidth:n,marginXS:r,colorBorderBg:i}=e,s=t,c=n,d=e.colorTextLightSolid,f=e.colorError,p=e.colorErrorHover;return Nt(e,{badgeFontHeight:s,badgeShadowSize:c,badgeTextColor:d,badgeColor:f,badgeColorHover:p,badgeShadowColor:i,badgeProcessingDuration:"1.2s",badgeRibbonOffset:r,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},KO=e=>{const{fontSize:t,lineHeight:n,fontSizeSM:r,lineWidth:i}=e;return{indicatorZIndex:"auto",indicatorHeight:Math.round(t*n)-2*i,indicatorHeightSM:t,dotSize:r/2,textFontSize:r,textFontSizeSM:r,textFontWeight:"normal",statusSize:r/2}},jH=zt("Badge",e=>{const t=XO(e);return DH(t)},KO),_H=l.forwardRef((e,t)=>{const{prefixCls:n,scrollNumberPrefixCls:r,children:i,status:s,text:c,color:d,count:f=null,overflowCount:p=99,dot:g=!1,size:h="default",title:y,offset:C,style:b,className:x,rootClassName:S,classNames:$,styles:M,showZero:w=!1,...R}=e,{getPrefixCls:T,direction:N,className:O,style:P,classNames:D,styles:k}=Pt("badge"),F=T("badge",n),[Y,G]=jH(F),V={...e,overflowCount:p,size:h,dot:g,showZero:w},[B,_]=Vt([D,$],[k,M],{props:V}),H=f>p?`${p}+`:f,I=H==="0"||H===0||c==="0"||c===0,z=f===null||I&&!w,L=(Rr(s)||Rr(d))&&z,A=Rr(s)||!I,j=g&&!I,q=j?"":H,X=l.useMemo(()=>((!Rr(q)||q==="")&&(!Rr(c)||c==="")||I&&!w)&&!j,[q,I,w,j,c]),K=l.useRef(f);X||(K.current=f);const J=K.current,Z=l.useRef(q);X||(Z.current=q);const re=Z.current,ne=l.useRef(j);X||(ne.current=j);const ie=l.useMemo(()=>{if(!C)return{...P,...b};const xe=Number.parseInt(C[0],10);return{...{marginTop:C[1],insetInlineEnd:-xe},...P,...b}},[C,b,P]),fe=y??(typeof J=="string"||typeof J=="number"?J:void 0),le=!X&&(c===0?w:!!c&&c!==!0),ue=le?l.createElement("span",{className:`${F}-status-text`},c):null,ge=!J||typeof J!="object"?void 0:or(J,xe=>({style:{...ie,...xe.style}})),oe=Bp(d,!1),se=Q(B.indicator,{[`${F}-status-dot`]:L,[`${F}-status-${s}`]:!!s,[`${F}-color-${d}`]:oe}),he={};d&&!oe&&(he.color=d,he.background=d);const me=Q(F,{[`${F}-status`]:L,[`${F}-not-a-wrapper`]:!i,[`${F}-rtl`]:N==="rtl"},x,S,O,B.root,Y,G);if(!i&&L&&(c||A||!z)){const xe=ie.color;return l.createElement("span",{...R,className:me,style:{..._.root,...ie}},l.createElement("span",{className:se,style:{..._.indicator,...he}}),le&&l.createElement("span",{style:{color:xe},className:`${F}-status-text`},c))}return l.createElement("span",{ref:t,...R,className:me,style:_.root},i,l.createElement(Sr,{visible:!X,motionName:`${F}-zoom`,motionAppear:!1,motionDeadline:1e3},({className:xe})=>{const Ae=T("scroll-number",r),we=ne.current,$e=Q(B.indicator,{[`${F}-dot`]:we,[`${F}-count`]:!we,[`${F}-count-sm`]:h==="small",[`${F}-multiple-words`]:!we&&re&&re.toString().length>1,[`${F}-status-${s}`]:!!s,[`${F}-color-${d}`]:oe});let de={..._.indicator,...ie};return d&&!oe&&(de=de||{},de.background=d),l.createElement(TH,{prefixCls:Ae,show:!X,motionClassName:xe,className:$e,count:re,title:fe,style:de,key:"scrollNumber"},ge)}),ue)}),HH=e=>{const{antCls:t,badgeFontHeight:n,marginXS:r,badgeRibbonOffset:i,calc:s}=e,c=`${t}-ribbon`,d=`${t}-ribbon-wrapper`,f=wp(e,(p,{darkColor:g})=>({[`&${c}-color-${p}`]:{background:g,color:g}}));return{[d]:{position:"relative"},[c]:{...Zt(e),position:"absolute",top:r,padding:`0 ${te(e.paddingXS)}`,color:e.colorPrimary,lineHeight:te(n),whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${c}-content`]:{color:e.badgeTextColor},[`${c}-corner`]:{position:"absolute",top:"100%",width:i,height:i,color:"currentcolor",border:`${te(s(i).div(2).equal())} solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter},...f,[`&${c}-placement-end`]:{insetInlineEnd:s(i).mul(-1).equal(),borderEndEndRadius:0,[`${c}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${c}-placement-start`]:{insetInlineStart:s(i).mul(-1).equal(),borderEndStartRadius:0,[`${c}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}}}},BH=zt(["Badge","Ribbon"],e=>{const t=XO(e);return HH(t)},KO),LH=e=>{const{className:t,prefixCls:n,style:r,color:i,children:s,text:c,placement:d="end",rootClassName:f,styles:p,classNames:g}=e,{getPrefixCls:h,direction:y,className:C,style:b,classNames:x,styles:S}=Pt("ribbon"),$=h("ribbon",n),M=`${$}-wrapper`,[w,R]=BH($,M),T={...e,placement:d},[N,O]=Vt([x,g],[S,p],{props:T}),P=Bp(i,!1),D=Q($,`${$}-placement-${d}`,{[`${$}-rtl`]:y==="rtl",[`${$}-color-${i}`]:P},t,C,N.indicator),k={},F={};return i&&!P&&(k.background=i,F.color=i),l.createElement("div",{className:Q(M,f,w,R,N.root),style:O.root},s,l.createElement("div",{className:Q(D,w),style:{...k,...O.indicator,...b,...r}},l.createElement("span",{className:Q(`${$}-content`,N.content),style:O.content},c),l.createElement("div",{className:`${$}-corner`,style:F})))},ui=_H;ui.Ribbon=LH;var VH={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"};function zv(){return zv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zv.apply(this,arguments)}const FH=(e,t)=>l.createElement(gt,zv({},e,{ref:t,icon:VH})),Mu=l.forwardRef(FH),{ESC:kH,TAB:WH}=nt;function qH({visible:e,triggerRef:t,onVisibleChange:n,autoFocus:r,overlayRef:i}){const s=l.useRef(!1),c=()=>{e&&(t.current?.focus?.(),n?.(!1))},d=()=>i.current?.focus?(i.current.focus(),s.current=!0,!0):!1,f=p=>{switch(p.keyCode){case kH:c();break;case WH:{let g=!1;s.current||(g=d()),g?p.preventDefault():c();break}}};l.useEffect(()=>e?(window.addEventListener("keydown",f),r&&Bt(d,3),()=>{window.removeEventListener("keydown",f),s.current=!1}):()=>{s.current=!1},[e])}const YH=l.forwardRef((e,t)=>{const{overlay:n,arrow:r,prefixCls:i}=e,s=l.useMemo(()=>{let d;return typeof n=="function"?d=n():d=n,d},[n]),c=ir(t,il(s));return ae.createElement(ae.Fragment,null,r&&ae.createElement("div",{className:`${i}-arrow`}),ae.cloneElement(s,{ref:al(s)?c:void 0}))}),os={adjustX:1,adjustY:1},as=[0,0],UH={topLeft:{points:["bl","tl"],overflow:os,offset:[0,-4],targetOffset:as},top:{points:["bc","tc"],overflow:os,offset:[0,-4],targetOffset:as},topRight:{points:["br","tr"],overflow:os,offset:[0,-4],targetOffset:as},bottomLeft:{points:["tl","bl"],overflow:os,offset:[0,4],targetOffset:as},bottom:{points:["tc","bc"],overflow:os,offset:[0,4],targetOffset:as},bottomRight:{points:["tr","br"],overflow:os,offset:[0,4],targetOffset:as}};function Av(){return Av=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Av.apply(this,arguments)}const QO=ae.forwardRef((e,t)=>{const{arrow:n=!1,prefixCls:r="rc-dropdown",transitionName:i,animation:s,align:c,placement:d="bottomLeft",placements:f=UH,getPopupContainer:p,showAction:g,hideAction:h,overlayClassName:y,overlayStyle:C,visible:b,trigger:x=["hover"],autoFocus:S,overlay:$,children:M,onVisibleChange:w,...R}=e,[T,N]=ae.useState(),O="visible"in e?b:T,P=s?`${r}-${s}`:i,D=ae.useRef(null),k=ae.useRef(null),F=ae.useRef(null);ae.useImperativeHandle(t,()=>D.current);const Y=L=>{N(L),w?.(L)};qH({visible:O,triggerRef:F,onVisibleChange:Y,autoFocus:S,overlayRef:k});const G=L=>{const{onOverlayClick:A}=e;N(!1),A&&A(L)},V=()=>ae.createElement(YH,{ref:k,overlay:$,prefixCls:r,arrow:n}),B=()=>typeof $=="function"?V:V(),_=()=>{const{minOverlayWidthMatchTrigger:L,alignPoint:A}=e;return"minOverlayWidthMatchTrigger"in e?L:!A},H=()=>{const{openClassName:L}=e;return L!==void 0?L:`${r}-open`},I=ae.cloneElement(M,{className:Q(M.props?.className,O&&H()),ref:al(M)?ir(F,il(M)):void 0});let z=h;return!z&&x.indexOf("contextMenu")!==-1&&(z=["click"]),ae.createElement(dd,Av({builtinPlacements:f},R,{prefixCls:r,ref:D,popupClassName:Q(y,{[`${r}-show-arrow`]:n}),popupStyle:C,action:x,showAction:g,hideAction:z,popupPlacement:d,popupAlign:c,popupMotion:{motionName:P},popupVisible:O,stretch:_()?"minWidth":"",popup:B(),onOpenChange:Y,onPopupClick:G,getPopupContainer:p}),I)}),GH=e=>typeof e!="object"&&typeof e!="function"||e===null,ZO=l.createContext(null);function JO(e,t){return`${e}-${t}`}function e6(e){const t=l.useContext(ZO);return JO(t,e)}const Do=l.createContext(null);function XH(e,t){const n={...e};return Object.keys(t).forEach(r=>{const i=t[r];i!==void 0&&(n[r]=i)}),n}function Ru({children:e,locked:t,...n}){const r=l.useContext(Do),i=od(()=>XH(r,n),[r,n],(s,c)=>!t&&(s[0]!==c[0]||!yu(s[1],c[1],!0)));return l.createElement(Do.Provider,{value:i},e)}const KH=[],t6=l.createContext(null);function Lp(){return l.useContext(t6)}const n6=l.createContext(KH);function _s(e){const t=l.useContext(n6);return l.useMemo(()=>e!==void 0?[...t,e]:t,[t,e])}const r6=l.createContext(null),QS=l.createContext({});function m2(e,t=!1){if(Mp(e)){const n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),i=e.getAttribute("tabindex"),s=Number(i);let c=null;return i&&!Number.isNaN(s)?c=s:r&&c===null&&(c=0),r&&e.disabled&&(c=null),c!==null&&(c>=0||t&&c<0)}return!1}function QH(e,t=!1){const n=[...e.querySelectorAll("*")].filter(r=>m2(r,t));return m2(e,t)&&n.unshift(e),n}function o6(e,t){if(!e)return;e.focus(t);const{cursor:n}=t||{};if(n&&(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)){const r=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(r,r);break;default:e.setSelectionRange(0,r)}}}const{LEFT:Dv,RIGHT:jv,UP:_v,DOWN:xm,ENTER:wm,ESC:a6,HOME:jc,END:_c}=nt,p2=[_v,xm,Dv,jv];function ZH(e,t,n,r){const i="prev",s="next",c="children",d="parent";if(e==="inline"&&r===wm)return{inlineTrigger:!0};const f={[_v]:i,[xm]:s},p={[Dv]:n?s:i,[jv]:n?i:s,[xm]:c,[wm]:c},g={[_v]:i,[xm]:s,[wm]:c,[a6]:d,[Dv]:n?c:d,[jv]:n?d:c};switch({inline:f,horizontal:p,vertical:g,inlineSub:f,horizontalSub:g,verticalSub:g}[`${e}${t?"":"Sub"}`]?.[r]){case i:return{offset:-1,sibling:!0};case s:return{offset:1,sibling:!0};case d:return{offset:-1,sibling:!1};case c:return{offset:1,sibling:!1};default:return null}}function JH(e){let t=e;for(;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function eB(e,t){let n=e||document.activeElement;for(;n;){if(t.has(n))return n;n=n.parentElement}return null}function ZS(e,t){return QH(e,!0).filter(r=>t.has(r))}function g2(e,t,n,r=1){if(!e)return null;const i=ZS(e,t),s=i.length;let c=i.findIndex(d=>n===d);return r<0?c===-1?c=s-1:c-=1:r>0&&(c+=1),c=(c+s)%s,i[c]}const Zm=(e,t)=>{const n=new Set,r=new Map,i=new Map;return e.forEach(s=>{const c=document.querySelector(`[data-menu-id='${JO(t,s)}']`);c&&(n.add(c),i.set(c,s),r.set(s,c))}),{elements:n,key2element:r,element2key:i}};function tB(e,t,n,r,i,s,c,d,f,p){const g=l.useRef(),h=l.useRef();h.current=t;const y=()=>{Bt.cancel(g.current)};return l.useEffect(()=>()=>{y()},[]),C=>{const{which:b}=C;if([...p2,wm,a6,jc,_c].includes(b)){const x=s();let S=Zm(x,r);const{elements:$,key2element:M,element2key:w}=S,R=M.get(t),T=eB(R,$),N=w.get(T),O=ZH(e,c(N,!0).length===1,n,b);if(!O&&b!==jc&&b!==_c)return;(p2.includes(b)||[jc,_c].includes(b))&&C.preventDefault();const P=D=>{if(D){let k=D;const F=D.querySelector("a");F?.getAttribute("href")&&(k=F);const Y=w.get(D);d(Y),y(),g.current=Bt(()=>{h.current===Y&&k.focus()})}};if([jc,_c].includes(b)||O.sibling||!T){let D;!T||e==="inline"?D=i.current:D=JH(T);let k;const F=ZS(D,$);b===jc?k=F[0]:b===_c?k=F[F.length-1]:k=g2(D,$,T,O.offset),P(k)}else if(O.inlineTrigger)f(N);else if(O.offset>0)f(N,!0),y(),g.current=Bt(()=>{S=Zm(x,r);const D=T.getAttribute("aria-controls"),k=document.getElementById(D),F=g2(k,S.elements);P(F)},5);else if(O.offset<0){const D=c(N,!0),k=D[D.length-2],F=M.get(k);f(k,!1),P(F)}}p?.(C)}}function nB(e){Promise.resolve().then(e)}const JS="__RC_UTIL_PATH_SPLIT__",h2=e=>e.join(JS),rB=e=>e.split(JS),Hv="rc-menu-more";function oB(){const[,e]=l.useState({}),t=l.useRef(new Map),n=l.useRef(new Map),[r,i]=l.useState([]),s=l.useRef(0),c=l.useRef(!1),d=()=>{c.current||e({})},f=l.useCallback((x,S)=>{const $=h2(S);n.current.set($,x),t.current.set(x,$),s.current+=1;const M=s.current;nB(()=>{M===s.current&&d()})},[]),p=l.useCallback((x,S)=>{const $=h2(S);n.current.delete($),t.current.delete(x)},[]),g=l.useCallback(x=>{i(x)},[]),h=l.useCallback((x,S)=>{const $=t.current.get(x)||"",M=rB($);return S&&r.includes(M[0])&&M.unshift(Hv),M},[r]),y=l.useCallback((x,S)=>x.filter($=>$!==void 0).some($=>h($,!0).includes(S)),[h]),C=()=>{const x=[...t.current.keys()];return r.length&&x.push(Hv),x},b=l.useCallback(x=>{const S=`${t.current.get(x)}${JS}`,$=new Set;return[...n.current.keys()].forEach(M=>{M.startsWith(S)&&$.add(n.current.get(M))}),$},[]);return l.useEffect(()=>()=>{c.current=!0},[]),{registerPath:f,unregisterPath:p,refreshOverflowKeys:g,isSubPathKey:y,getKeyPath:h,getKeys:C,getSubPathKeys:b}}function Qc(e){const t=l.useRef(e);t.current=e;const n=l.useCallback((...r)=>t.current?.(...r),[]);return e?n:void 0}function i6(e,t,n,r){const{activeKey:i,onActive:s,onInactive:c}=l.useContext(Do),d={active:i===e};return t||(d.onMouseEnter=f=>{n?.({key:e,domEvent:f}),s(e)},d.onMouseLeave=f=>{r?.({key:e,domEvent:f}),c(e)}),d}function l6(e){const{mode:t,rtl:n,inlineIndent:r}=l.useContext(Do);if(t!=="inline")return null;const i=e;return n?{paddingRight:i*r}:{paddingLeft:i*r}}function s6({icon:e,props:t,children:n}){let r;return e===null||e===!1?null:(typeof e=="function"?r=l.createElement(e,{...t}):typeof e!="boolean"&&(r=e),r||n||null)}function Jm({item:e,...t}){return Object.defineProperty(t,"item",{get:()=>(rr(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),e)}),t}function Tu(){return Tu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Tu.apply(this,arguments)}class aB extends l.Component{render(){const{title:t,attribute:n,elementRef:r,...i}=this.props,s=en(i,["eventKey","popupClassName","popupOffset","onTitleClick"]);return rr(!n,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),l.createElement(Uo.Item,Tu({},n,{title:typeof t=="string"?t:void 0},s,{ref:r}))}}const iB=l.forwardRef((e,t)=>{const{style:n,className:r,eventKey:i,warnKey:s,disabled:c,itemIcon:d,children:f,role:p,onMouseEnter:g,onMouseLeave:h,onClick:y,onKeyDown:C,onFocus:b,...x}=e,S=e6(i),{prefixCls:$,onItemClick:M,disabled:w,overflowDisabled:R,itemIcon:T,selectedKeys:N,onActive:O}=l.useContext(Do),{_internalRenderMenuItem:P}=l.useContext(QS),D=`${$}-item`,k=l.useRef(),F=l.useRef(),Y=w||c,G=fi(t,F),V=_s(i),B=J=>({key:i,keyPath:[...V].reverse(),item:k.current,domEvent:J}),_=d||T,{active:H,...I}=i6(i,Y,g,h),z=N.includes(i),L=l6(V.length),A=J=>{if(Y)return;const Z=B(J);y?.(Jm(Z)),M(Z)},j=J=>{if(C?.(J),J.which===nt.ENTER){const Z=B(J);y?.(Jm(Z)),M(Z)}},q=J=>{O(i),b?.(J)},X={};e.role==="option"&&(X["aria-selected"]=z);let K=l.createElement(aB,Tu({ref:k,elementRef:G,role:p===null?"none":p||"menuitem",tabIndex:c?null:-1,"data-menu-id":R&&S?null:S},en(x,["extra"]),I,X,{component:"li","aria-disabled":c,style:{...L,...n},className:Q(D,{[`${D}-active`]:H,[`${D}-selected`]:z,[`${D}-disabled`]:Y},r),onClick:A,onKeyDown:j,onFocus:q}),f,l.createElement(s6,{props:{...e,isSelected:z},icon:_}));return P&&(K=P(K,e,{selected:z})),K});function lB(e,t){const{eventKey:n}=e,r=Lp(),i=_s(n);return l.useEffect(()=>{if(r)return r.registerPath(n,i),()=>{r.unregisterPath(n,i)}},[i]),r?null:l.createElement(iB,Tu({},e,{ref:t}))}const $d=l.forwardRef(lB);function Bv(){return Bv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Bv.apply(this,arguments)}const sB=({className:e,children:t,...n},r)=>{const{prefixCls:i,mode:s,rtl:c}=l.useContext(Do);return l.createElement("ul",Bv({className:Q(i,c&&`${i}-rtl`,`${i}-sub`,`${i}-${s==="inline"?"inline":"vertical"}`,e),role:"menu"},n,{"data-menu-list":!0,ref:r}),t)},c6=l.forwardRef(sB);function e1(e,t){return mr(e).map((n,r)=>{if(l.isValidElement(n)){const{key:i}=n;let s=n.props?.eventKey??i;s==null&&(s=`tmp_key-${[...t,r].join("-")}`);const d={key:s,eventKey:s};return l.cloneElement(n,d)}return n})}const Mr={adjustX:1,adjustY:1},cB={topLeft:{points:["bl","tl"],overflow:Mr},topRight:{points:["br","tr"],overflow:Mr},bottomLeft:{points:["tl","bl"],overflow:Mr},bottomRight:{points:["tr","br"],overflow:Mr},leftTop:{points:["tr","tl"],overflow:Mr},leftBottom:{points:["br","bl"],overflow:Mr},rightTop:{points:["tl","tr"],overflow:Mr},rightBottom:{points:["bl","br"],overflow:Mr}},uB={topLeft:{points:["bl","tl"],overflow:Mr},topRight:{points:["br","tr"],overflow:Mr},bottomLeft:{points:["tl","bl"],overflow:Mr},bottomRight:{points:["tr","br"],overflow:Mr},rightTop:{points:["tr","tl"],overflow:Mr},rightBottom:{points:["br","bl"],overflow:Mr},leftTop:{points:["tl","tr"],overflow:Mr},leftBottom:{points:["bl","br"],overflow:Mr}};function u6(e,t,n){if(t)return t;if(n)return n[e]||n.other}const dB={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function fB({prefixCls:e,visible:t,children:n,popup:r,popupStyle:i,popupClassName:s,popupOffset:c,disabled:d,mode:f,onVisibleChange:p}){const{getPopupContainer:g,rtl:h,subMenuOpenDelay:y,subMenuCloseDelay:C,builtinPlacements:b,triggerSubMenuAction:x,forceSubMenuRender:S,rootClassName:$,motion:M,defaultMotions:w}=l.useContext(Do),[R,T]=l.useState(!1),N=h?{...uB,...b}:{...cB,...b},O=dB[f],P=u6(f,M,w),D=l.useRef(P);f!=="inline"&&(D.current=P);const k={...D.current,leavedClassName:`${e}-hidden`,removeOnLeave:!1,motionAppear:!0},F=l.useRef();return l.useEffect(()=>(F.current=Bt(()=>{T(t)}),()=>{Bt.cancel(F.current)}),[t]),l.createElement(dd,{prefixCls:e,popupClassName:Q(`${e}-popup`,{[`${e}-rtl`]:h},s,$),stretch:f==="horizontal"?"minWidth":null,getPopupContainer:g,builtinPlacements:N,popupPlacement:O,popupVisible:R,popup:r,popupStyle:i,popupAlign:c&&{offset:c},action:d?[]:[x],mouseEnterDelay:y,mouseLeaveDelay:C,onPopupVisibleChange:p,forceRender:S,popupMotion:k,fresh:!0},n)}function Lv(){return Lv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Lv.apply(this,arguments)}function mB({id:e,open:t,keyPath:n,children:r}){const i="inline",{prefixCls:s,forceSubMenuRender:c,motion:d,defaultMotions:f,mode:p}=l.useContext(Do),g=l.useRef(!1);g.current=p===i;const[h,y]=l.useState(!g.current),C=g.current?t:!1;l.useEffect(()=>{g.current&&y(!1)},[p]);const b={...u6(i,d,f)};n.length>1&&(b.motionAppear=!1);const x=b.onVisibleChanged;return b.onVisibleChanged=S=>(!g.current&&!S&&y(!0),x?.(S)),h?null:l.createElement(Ru,{mode:i,locked:!g.current},l.createElement(Sr,Lv({visible:C},b,{forceRender:c,removeOnLeave:!1,leavedClassName:`${s}-hidden`}),({className:S,style:$})=>l.createElement(c6,{id:e,className:S,style:$},r)))}function Ou(){return Ou=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ou.apply(this,arguments)}const pB=l.forwardRef((e,t)=>{const{style:n,className:r,styles:i,classNames:s,title:c,eventKey:d,warnKey:f,disabled:p,internalPopupClose:g,children:h,itemIcon:y,expandIcon:C,popupClassName:b,popupOffset:x,popupStyle:S,onClick:$,onMouseEnter:M,onMouseLeave:w,onTitleClick:R,onTitleMouseEnter:T,onTitleMouseLeave:N,popupRender:O,...P}=e,D=e6(d),{prefixCls:k,mode:F,openKeys:Y,disabled:G,overflowDisabled:V,activeKey:B,selectedKeys:_,itemIcon:H,expandIcon:I,onItemClick:z,onOpenChange:L,onActive:A,popupRender:j}=l.useContext(Do),{_internalRenderSubMenuItem:q}=l.useContext(QS),{isSubPathKey:X}=l.useContext(r6),K=_s(),J=`${k}-submenu`,Z=G||p,re=l.useRef(),ne=l.useRef(),ie=y??H,fe=C??I,le=Y.includes(d),ue=!V&&le,ge=X(_,d),{active:oe,...se}=i6(d,Z,T,N),[he,me]=l.useState(!1),xe=Se=>{Z||me(Se)},Ae=Se=>{xe(!0),M?.({key:d,domEvent:Se})},we=Se=>{xe(!1),w?.({key:d,domEvent:Se})},$e=l.useMemo(()=>oe||(F!=="inline"?he||X([B],d):!1),[F,oe,B,he,d,X]),de=l6(K.length),be=Se=>{Z||(R?.({key:d,domEvent:Se}),F==="inline"&&L(d,!le))},Me=Qc(Se=>{$?.(Jm(Se)),z(Se)}),Oe=Se=>{F!=="inline"&&L(d,Se)},Le=()=>{A(d)},Ge=D&&`${D}-popup`,et=l.useMemo(()=>l.createElement(s6,{icon:F!=="horizontal"?fe:void 0,props:{...e,isOpen:ue,isSubMenu:!0}},l.createElement("i",{className:`${J}-arrow`})),[F,fe,e,ue,J]);let ze=l.createElement("div",Ou({role:"menuitem",style:de,className:`${J}-title`,tabIndex:Z?null:-1,ref:re,title:typeof c=="string"?c:null,"data-menu-id":V&&D?null:D,"aria-expanded":ue,"aria-haspopup":!0,"aria-controls":Ge,"aria-disabled":Z,onClick:be,onFocus:Le},se),c,et);const _e=l.useRef(F);F!=="inline"&&K.length>1?_e.current="vertical":_e.current=F;const De=_e.current,Ue=l.useMemo(()=>{const Se=l.createElement(Ru,{classNames:s,styles:i,mode:De==="horizontal"?"vertical":De},l.createElement(c6,{id:Ge,ref:ne},h)),Be=O||j;return Be?Be(Se,{item:e,keys:K}):Se},[O,j,K,Ge,h,e,De]);if(!V){const Se=_e.current;ze=l.createElement(fB,{mode:Se,prefixCls:J,visible:!g&&ue&&F!=="inline",popupClassName:b,popupOffset:x,popupStyle:S,popup:Ue,disabled:Z,onVisibleChange:Oe},ze)}let Ne=l.createElement(Uo.Item,Ou({ref:t,role:"none"},P,{component:"li",style:n,className:Q(J,`${J}-${F}`,r,{[`${J}-open`]:ue,[`${J}-active`]:$e,[`${J}-selected`]:ge,[`${J}-disabled`]:Z}),onMouseEnter:Ae,onMouseLeave:we}),ze,!V&&l.createElement(mB,{id:Ge,open:ue,keyPath:K},h));return q&&(Ne=q(Ne,e,{selected:ge,active:$e,open:ue,disabled:Z})),l.createElement(Ru,{classNames:s,styles:i,onItemClick:Me,mode:F==="horizontal"?"vertical":F,itemIcon:ie,expandIcon:fe},Ne)}),Vp=l.forwardRef((e,t)=>{const{eventKey:n,children:r}=e,i=_s(n),s=e1(r,i),c=Lp();l.useEffect(()=>{if(c)return c.registerPath(n,i),()=>{c.unregisterPath(n,i)}},[i]);let d;return c?d=s:d=l.createElement(pB,Ou({ref:t},e),s),l.createElement(n6.Provider,{value:i},d)});function t1({className:e,style:t}){const{prefixCls:n}=l.useContext(Do);return Lp()?null:l.createElement("li",{role:"separator",className:Q(`${n}-item-divider`,e),style:t})}function ep(){return ep=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ep.apply(this,arguments)}const gB=l.forwardRef((e,t)=>{const{className:n,title:r,eventKey:i,children:s,...c}=e,{prefixCls:d,classNames:f,styles:p}=l.useContext(Do),g=`${d}-item-group`;return l.createElement("li",ep({ref:t,role:"presentation"},c,{onClick:h=>h.stopPropagation(),className:Q(g,n)}),l.createElement("div",{role:"presentation",className:Q(`${g}-title`,f?.listTitle),style:p?.listTitle,title:typeof r=="string"?r:void 0},r),l.createElement("ul",{role:"group",className:Q(`${g}-list`,f?.list),style:p?.list},s))}),n1=l.forwardRef((e,t)=>{const{eventKey:n,children:r}=e,i=_s(n),s=e1(r,i);return Lp()?s:l.createElement(gB,ep({ref:t},en(e,["warnKey"])),s)});function ps(){return ps=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ps.apply(this,arguments)}function Vv(e,t,n){const{item:r,group:i,submenu:s,divider:c}=t;return(e||[]).map((d,f)=>{if(d&&typeof d=="object"){const{label:p,children:g,key:h,type:y,extra:C,...b}=d,x=h??`tmp-${f}`;return g||y==="group"?y==="group"?l.createElement(i,ps({key:x},b,{title:p}),Vv(g,t,n)):l.createElement(s,ps({key:x},b,{title:p}),Vv(g,t,n)):y==="divider"?l.createElement(c,ps({key:x},b)):l.createElement(r,ps({key:x},b,{extra:C}),p,(!!C||C===0)&&l.createElement("span",{className:`${n}-item-extra`},C))}return null}).filter(d=>d)}function y2(e,t,n,r,i){let s=e;const c={divider:t1,item:$d,group:n1,submenu:Vp,...r};return t&&(s=Vv(t,c,i)),e1(s,n)}function Fv(){return Fv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fv.apply(this,arguments)}const zi=[],hB=l.forwardRef((e,t)=>{const{prefixCls:n="rc-menu",rootClassName:r,style:i,className:s,styles:c,classNames:d,tabIndex:f=0,items:p,children:g,direction:h,id:y,mode:C="vertical",inlineCollapsed:b,disabled:x,disabledOverflow:S,subMenuOpenDelay:$=.1,subMenuCloseDelay:M=.1,forceSubMenuRender:w,defaultOpenKeys:R,openKeys:T,activeKey:N,defaultActiveFirst:O,selectable:P=!0,multiple:D=!1,defaultSelectedKeys:k,selectedKeys:F,onSelect:Y,onDeselect:G,inlineIndent:V=24,motion:B,defaultMotions:_,triggerSubMenuAction:H="hover",builtinPlacements:I,itemIcon:z,expandIcon:L,overflowedIndicator:A="...",overflowedIndicatorPopupClassName:j,getPopupContainer:q,onClick:X,onOpenChange:K,onKeyDown:J,openAnimation:Z,openTransitionName:re,_internalRenderMenuItem:ne,_internalRenderSubMenuItem:ie,_internalComponents:fe,popupRender:le,...ue}=e,[ge,oe]=l.useMemo(()=>[y2(g,p,zi,fe,n),y2(g,p,zi,{},n)],[g,p,fe]),[se,he]=l.useState(!1),me=l.useRef(),xe=Qo(y?`rc-menu-uuid-${y}`:"rc-menu-uuid"),Ae=h==="rtl",[we,$e]=Yt(R,T),de=we||zi,be=(Qe,Et=!1)=>{function mt(){$e(Qe),K?.(Qe)}Et?el.flushSync(mt):mt()},[Me,Oe]=l.useState(de),Le=l.useRef(!1),[Ge,et]=l.useMemo(()=>(C==="inline"||C==="vertical")&&b?["vertical",b]:[C,!1],[C,b]),ze=Ge==="inline",[_e,De]=l.useState(Ge),[Ue,Ne]=l.useState(et);l.useEffect(()=>{De(Ge),Ne(et),Le.current&&(ze?$e(Me):be(zi))},[Ge,et]);const[Se,Be]=l.useState(0),Je=Se>=ge.length-1||_e!=="horizontal"||S;l.useEffect(()=>{ze&&Oe(de)},[de]),l.useEffect(()=>(Le.current=!0,()=>{Le.current=!1}),[]);const{registerPath:We,unregisterPath:Xe,refreshOverflowKeys:Ie,isSubPathKey:Ke,getKeyPath:ot,getKeys:at,getSubPathKeys:lt}=oB(),St=l.useMemo(()=>({registerPath:We,unregisterPath:Xe}),[We,Xe]),Ct=l.useMemo(()=>({isSubPathKey:Ke}),[Ke]);l.useEffect(()=>{Ie(Je?zi:ge.slice(Se+1).map(Qe=>Qe.key))},[Se,Je]);const[qe,rt]=Yt(N||O&&ge[0]?.key,N),je=Qc(Qe=>{rt(Qe)}),Pe=Qc(()=>{rt(void 0)});l.useImperativeHandle(t,()=>({list:me.current,focus:Qe=>{const Et=at(),{elements:mt,key2element:Tt,element2key:Ut}=Zm(Et,xe),ln=ZS(me.current,mt);let kt;qe&&Et.includes(qe)?kt=qe:kt=ln[0]?Ut.get(ln[0]):ge.find(xn=>!xn.props.disabled)?.key;const wn=Tt.get(kt);kt&&wn&&wn?.focus?.(Qe)},findItem:({key:Qe})=>{const Et=at(),{key2element:mt}=Zm(Et,xe);return mt.get(Qe)||null}}));const[ke,Re]=Yt(k||[],F),Ye=l.useMemo(()=>Array.isArray(ke)?ke:ke==null?zi:[ke],[ke]),Ze=Qe=>{if(P){const{key:Et}=Qe,mt=Ye.includes(Et);let Tt;D?mt?Tt=Ye.filter(ln=>ln!==Et):Tt=[...Ye,Et]:Tt=[Et],Re(Tt);const Ut={...Qe,selectedKeys:Tt};mt?G?.(Ut):Y?.(Ut)}!D&&de.length&&_e!=="inline"&&be(zi)},it=Qc(Qe=>{X?.(Jm(Qe)),Ze(Qe)}),ft=Qc((Qe,Et)=>{let mt=de.filter(Tt=>Tt!==Qe);if(Et)mt.push(Qe);else if(_e!=="inline"){const Tt=lt(Qe);mt=mt.filter(Ut=>!Tt.has(Ut))}yu(de,mt,!0)||be(mt,!0)}),Rt=tB(_e,qe,Ae,xe,me,at,ot,rt,(Qe,Et)=>{const mt=Et??!de.includes(Qe);ft(Qe,mt)},J);l.useEffect(()=>{he(!0)},[]);const wt=l.useMemo(()=>({_internalRenderMenuItem:ne,_internalRenderSubMenuItem:ie}),[ne,ie]),dn=_e!=="horizontal"||S?ge:ge.map((Qe,Et)=>l.createElement(Ru,{key:Qe.key,overflowDisabled:Et>Se,classNames:d,styles:c},Qe)),xt=l.createElement(Uo,Fv({id:y,ref:me,prefixCls:`${n}-overflow`,component:"ul",itemComponent:$d,className:Q(n,`${n}-root`,`${n}-${_e}`,s,{[`${n}-inline-collapsed`]:Ue,[`${n}-rtl`]:Ae},r),dir:h,style:i,role:"menu",tabIndex:f,data:dn,renderRawItem:Qe=>Qe,renderRawRest:Qe=>{const Et=Qe.length,mt=Et?ge.slice(-Et):null;return l.createElement(Vp,{eventKey:Hv,title:A,disabled:Je,internalPopupClose:Et===0,popupClassName:j},mt)},maxCount:_e!=="horizontal"||S?Uo.INVALIDATE:Uo.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:Qe=>{Be(Qe)},onKeyDown:Rt},ue));return l.createElement(QS.Provider,{value:wt},l.createElement(ZO.Provider,{value:xe},l.createElement(Ru,{prefixCls:n,rootClassName:r,classNames:d,styles:c,mode:_e,openKeys:de,rtl:Ae,disabled:x,motion:se?B:null,defaultMotions:se?_:null,activeKey:qe,onActive:je,onInactive:Pe,selectedKeys:Ye,inlineIndent:V,subMenuOpenDelay:$,subMenuCloseDelay:M,forceSubMenuRender:w,builtinPlacements:I,triggerSubMenuAction:H,getPopupContainer:q,itemIcon:z,expandIcon:L,onItemClick:it,onOpenChange:ft,popupRender:le},l.createElement(r6.Provider,{value:Ct},xt),l.createElement("div",{style:{display:"none"},"aria-hidden":!0},l.createElement(t6.Provider,{value:St},oe)))))}),Hs=hB;Hs.Item=$d;Hs.SubMenu=Vp;Hs.ItemGroup=n1;Hs.Divider=t1;var yB={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"};function kv(){return kv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kv.apply(this,arguments)}const bB=(e,t)=>l.createElement(gt,kv({},e,{ref:t,icon:yB})),vB=l.forwardRef(bB),d6=l.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}}),SB=e=>{const{antCls:t,componentCls:n,colorText:r,footerBg:i,headerHeight:s,headerPadding:c,headerColor:d,footerPadding:f,fontSize:p,bodyBg:g,headerBg:h}=e;return{[n]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:g,"&, *":{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:s,padding:c,color:d,lineHeight:te(s),background:h,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:f,color:r,fontSize:p,background:i},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}},f6=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:i,controlHeightSM:s,marginXXS:c,colorTextLightSolid:d,colorBgContainer:f}=e,p=r*1.25;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:n*2,headerPadding:`0 ${p}px`,headerColor:i,footerPadding:`${s}px ${p}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+c*2,triggerBg:"#002140",triggerColor:d,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:f,lightTriggerBg:f,lightTriggerColor:i}},m6=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]],p6=zt("Layout",SB,f6,{deprecatedTokens:m6}),CB=e=>{const{componentCls:t,siderBg:n,motionDurationMid:r,motionDurationSlow:i,antCls:s,triggerHeight:c,triggerColor:d,triggerBg:f,headerHeight:p,zeroTriggerWidth:g,zeroTriggerHeight:h,borderRadiusLG:y,lightSiderBg:C,lightTriggerColor:b,lightTriggerBg:x,bodyBg:S}=e;return{[t]:{position:"relative",minWidth:0,background:n,transition:`all ${r}, background 0s`,"&-has-trigger":{paddingBottom:c},"&-right":{order:1},[`${t}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${s}-menu${s}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${t}-children`]:{overflow:"hidden"},[`${t}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:c,color:d,lineHeight:te(c),textAlign:"center",background:f,cursor:"pointer",transition:`all ${r}`},[`${t}-zero-width-trigger`]:{position:"absolute",top:p,insetInlineEnd:e.calc(g).mul(-1).equal(),zIndex:1,width:g,height:h,color:d,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:n,borderRadius:`0 ${te(y)} ${te(y)} 0`,cursor:"pointer",transition:`background ${i} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${i}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(g).mul(-1).equal(),borderRadius:`${te(y)} 0 0 ${te(y)}`}},"&-light":{background:C,[`${t}-trigger`]:{color:b,background:x},[`${t}-zero-width-trigger`]:{color:b,background:x,border:`1px solid ${S}`,borderInlineStart:0}}}}},$B=zt(["Layout","Sider"],CB,f6,{deprecatedTokens:m6}),b2={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},xB=e=>!Number.isNaN(Number.parseFloat(e))&&Number.isFinite(Number(e)),Fp=l.createContext({}),wB=(()=>{let e=0;return(t="")=>(e+=1,`${t}${e}`)})(),g6=l.forwardRef((e,t)=>{const{prefixCls:n,className:r,trigger:i,children:s,defaultCollapsed:c=!1,theme:d="dark",style:f={},collapsible:p=!1,reverseArrow:g=!1,width:h=200,collapsedWidth:y=80,zeroWidthTriggerStyle:C,breakpoint:b,onCollapse:x,onBreakpoint:S,...$}=e,{siderHook:M}=l.useContext(d6),[w,R]=l.useState("collapsed"in e?e.collapsed:c),[T,N]=l.useState(!1);l.useEffect(()=>{"collapsed"in e&&R(e.collapsed)},[e.collapsed]);const O=(Z,re)=>{"collapsed"in e||R(Z),x?.(Z,re)},{getPrefixCls:P,direction:D}=l.useContext(dt),k=P("layout-sider",n),[F,Y]=$B(k),G=l.useRef(null);G.current=Z=>{N(Z.matches),S?.(Z.matches),w!==Z.matches&&O(Z.matches,"responsive")},l.useEffect(()=>{function Z(ne){return G.current?.(ne)}let re;return typeof window?.matchMedia<"u"&&b&&b in b2&&(re=window.matchMedia(`screen and (max-width: ${b2[b]})`),typeof re?.addEventListener=="function"&&re.addEventListener("change",Z),Z(re)),()=>{typeof re?.removeEventListener=="function"&&re.removeEventListener("change",Z)}},[b]),l.useEffect(()=>{const Z=wB("ant-sider-");return M.addSider(Z),()=>M.removeSider(Z)},[]);const V=()=>{O(!w,"clickTrigger")},B=en($,["collapsed"]),_=w?y:h,H=xB(_)?`${_}px`:String(_),I=Number.parseFloat(String(y||0))===0?l.createElement("span",{onClick:V,className:Q(`${k}-zero-width-trigger`,`${k}-zero-width-trigger-${g?"right":"left"}`),style:C},i||l.createElement(vB,null)):null,z=D==="rtl"==!g,j={expanded:z?l.createElement(ws,null):l.createElement(Mu,null),collapsed:z?l.createElement(Mu,null):l.createElement(ws,null)}[w?"collapsed":"expanded"],q=i!==null?I||l.createElement("div",{className:`${k}-trigger`,onClick:V,style:{width:H}},i||j):null,X={...f,flex:`0 0 ${H}`,maxWidth:H,minWidth:H,width:H},K=Q(k,`${k}-${d}`,{[`${k}-collapsed`]:!!w,[`${k}-has-trigger`]:p&&i!==null&&!I,[`${k}-below`]:!!T,[`${k}-zero-width`]:Number.parseFloat(H)===0},r,F,Y),J=l.useMemo(()=>({siderCollapsed:w}),[w]);return l.createElement(Fp.Provider,{value:J},l.createElement("aside",{className:K,...B,style:X,ref:t},l.createElement("div",{className:`${k}-children`},s),p||T&&I?q:null))});var EB={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"};function Wv(){return Wv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wv.apply(this,arguments)}const MB=(e,t)=>l.createElement(gt,Wv({},e,{ref:t,icon:EB})),r1=l.forwardRef(MB),tp=l.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1,styles:null,classNames:null}),h6=e=>{const{prefixCls:t,className:n,dashed:r,...i}=e,{getPrefixCls:s}=l.useContext(dt),c=s("menu",t),d=Q({[`${c}-item-divider-dashed`]:!!r},n);return l.createElement(t1,{className:d,...i})},y6=e=>{const{className:t,children:n,icon:r,title:i,danger:s,extra:c}=e,{prefixCls:d,firstLevel:f,direction:p,disableMenuItemTitleTooltip:g,inlineCollapsed:h,styles:y,classNames:C}=l.useContext(tp),b=R=>{const T=n?.[0],N=l.createElement("span",{className:Q(`${d}-title-content`,f?C.itemContent:C.subMenu.itemContent,{[`${d}-title-content-with-extra`]:!!c||c===0}),style:f?y.itemContent:y.subMenu.itemContent},n);return(!r||l.isValidElement(n)&&n.type==="span")&&n&&R&&f&&typeof T=="string"?l.createElement("div",{className:`${d}-inline-collapsed-noicon`},T.charAt(0)):N},{siderCollapsed:x}=l.useContext(Fp);let S=i;typeof i>"u"?S=f?n:"":i===!1&&(S="");const $={title:S};!x&&!h&&($.title=null,$.open=!1);const M=mr(n).length;let w=l.createElement($d,{...en(e,["title","icon","danger"]),className:Q(f?C.item:C.subMenu.item,{[`${d}-item-danger`]:s,[`${d}-item-only-child`]:(r?M+1:M)===1},t),style:{...f?y.item:y.subMenu.item,...e.style},title:typeof i=="string"?i:void 0},or(r,R=>({className:Q(`${d}-item-icon`,f?C.itemIcon:C.subMenu.itemIcon,R.className),style:{...f?y.itemIcon:y.subMenu.itemIcon,...R.style}})),b(h));return g||(w=l.createElement(fr,{...$,placement:p==="rtl"?"left":"right",classNames:{root:`${d}-inline-collapsed-tooltip`}},w)),w},np=l.createContext(null),RB=l.forwardRef((e,t)=>{const{children:n,...r}=e,i=l.useContext(np),s=l.useMemo(()=>({...i,...r}),[i,r.prefixCls,r.mode,r.selectable,r.rootClassName]),c=YP(n),d=fi(t,c?il(n):null);return l.createElement(np.Provider,{value:s},l.createElement(wa,{space:!0},c?l.cloneElement(n,{ref:d}):n))}),TB=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:i,lineWidth:s,lineType:c,itemPaddingInline:d}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${te(s)} ${c} ${i}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:d},[`> ${t}-item:hover,
192
+ > ${t}-item-active,
193
+ > ${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"}}}},OB=({componentCls:e,menuArrowOffset:t,calc:n})=>({[`${e}-rtl`]:{direction:"rtl"},[`${e}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${e}-rtl${e}-vertical,
194
+ ${e}-submenu-rtl ${e}-vertical`]:{[`${e}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${te(n(t).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${te(t)})`}}}}),v2=e=>Go(e),S2=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:i,subMenuItemSelectedColor:s,groupTitleColor:c,itemBg:d,subMenuItemBg:f,itemSelectedBg:p,activeBarHeight:g,activeBarWidth:h,activeBarBorderWidth:y,motionDurationSlow:C,motionEaseInOut:b,motionEaseOut:x,itemPaddingInline:S,motionDurationMid:$,itemHoverColor:M,lineType:w,colorSplit:R,itemDisabledColor:T,dangerItemColor:N,dangerItemHoverColor:O,dangerItemSelectedColor:P,dangerItemActiveBg:D,dangerItemSelectedBg:k,popupBg:F,itemHoverBg:Y,itemActiveBg:G,menuSubMenuBg:V,horizontalItemSelectedColor:B,horizontalItemSelectedBg:_,horizontalItemBorderRadius:H,horizontalItemHoverBg:I}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:d,[`&${n}-root:focus-visible`]:{...v2(e)},[`${n}-item`]:{"&-group-title, &-extra":{color:c}},[`${n}-submenu-selected > ${n}-submenu-title`]:{color:s},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:{...v2(e)}},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${T} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:M}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:Y},"&:active":{backgroundColor:G}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:Y},"&:active":{backgroundColor:G}}},[`${n}-item-danger`]:{color:N,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:O}},[`&${n}-item:active`]:{background:D}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:i,[`&${n}-item-danger`]:{color:P},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:p,[`&${n}-item-danger`]:{backgroundColor:k}},[`&${n}-submenu > ${n}`]:{backgroundColor:V},[`&${n}-popup > ${n}`]:{backgroundColor:F},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:F},[`&${n}-horizontal`]:{...t==="dark"?{borderBottom:0}:{},[`> ${n}-item, > ${n}-submenu`]:{top:y,marginTop:e.calc(y).mul(-1).equal(),marginBottom:0,borderRadius:H,"&::after":{position:"absolute",insetInline:S,bottom:0,borderBottom:`${te(g)} solid transparent`,transition:`border-color ${C} ${b}`,content:'""'},"&:hover, &-active, &-open":{background:I,"&::after":{borderBottomWidth:g,borderBottomColor:B}},"&-selected":{color:B,backgroundColor:_,"&:hover":{backgroundColor:_},"&::after":{borderBottomWidth:g,borderBottomColor:B}}}},[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${te(y)} ${w} ${R}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:f},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${te(h)} solid ${i}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${$} ${x}`,`opacity ${$} ${x}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:P}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${$} ${b}`,`opacity ${$} ${b}`].join(",")}}}}}},C2=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:i,menuArrowSize:s,marginXS:c,itemMarginBlock:d,itemWidth:f,itemPaddingInline:p}=e,g=e.calc(s).add(i).add(c).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:te(n),paddingInline:p,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:d,width:f},[`> ${t}-item,
195
+ > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:te(n)},[`${t}-item-group-list ${t}-submenu-title,
196
+ ${t}-submenu-title`]:{paddingInlineEnd:g}}},NB=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:i,dropdownWidth:s,controlHeightLG:c,motionEaseOut:d,paddingXL:f,itemMarginInline:p,fontSizeLG:g,motionDurationFast:h,motionDurationSlow:y,paddingXS:C,boxShadowSecondary:b,collapsedWidth:x,collapsedIconSize:S}=e,$={height:r,lineHeight:te(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":{[`&${t}-root`]:{boxShadow:"none"},...C2(e)}},[`${t}-submenu-popup`]:{[`${t}-vertical`]:{...C2(e),boxShadow:b}}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:s,maxHeight:`calc(100vh - ${te(e.calc(c).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 ${y}`,`background ${y}`,`padding ${h} ${d}`].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`]:$,[`& ${t}-item-group-title`]:{paddingInlineStart:f}},[`${t}-item`]:$}},{[`${t}-inline-collapsed`]:{width:x,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:g,textAlign:"center"}}},[`> ${t}-item,
197
+ > ${t}-item-group > ${t}-item-group-list > ${t}-item,
198
+ > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,
199
+ > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${te(e.calc(S).div(2).equal())} - ${te(p)})`,textOverflow:"clip",[`
200
+ ${t}-submenu-arrow,
201
+ ${t}-submenu-expand-icon
202
+ `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:S,lineHeight:te(r),"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:i}},[`${t}-item-group-title`]:{...$o,paddingInline:C}}}]},$2=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:i,motionEaseOut:s,iconCls:c,iconSize:d,iconMarginInlineEnd:f}=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) ${i}`].join(","),[`${t}-item-icon, ${c}`]:{minWidth:d,fontSize:d,transition:[`font-size ${r} ${s}`,`margin ${n} ${i}`,`color ${n}`].join(","),"+ span":{marginInlineStart:f,opacity:1,transition:[`opacity ${n} ${i}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:{...Is()},[`&${t}-item-only-child`]:{[`> ${c}, > ${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"}}}},x2=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:i,menuArrowSize:s,menuArrowOffset:c}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:s,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(s).mul(.6).equal(),height:e.calc(s).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:i,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${te(e.calc(c).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${te(c)})`}}}}},IB=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:i,motionDurationMid:s,motionEaseInOut:c,paddingXS:d,padding:f,colorSplit:p,lineWidth:g,zIndexPopup:h,borderRadiusLG:y,subMenuItemBorderRadius:C,menuArrowSize:b,menuArrowOffset:x,lineType:S,groupTitleLineHeight:$,groupTitleFontSize:M}=e;return[{"":{[n]:{...Ji(),"&-hidden":{display:"none"}}},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:{...Zt(e),...Ji(),marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${i} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${n}-item-group-title`]:{padding:`${te(d)} ${te(f)}`,fontSize:M,lineHeight:$,transition:`all ${i}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${i} ${c}`,`background ${i} ${c}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${i} ${c}`,`background ${i} ${c}`,`padding ${s} ${c}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${i} ${c}`,`padding ${i} ${c}`].join(",")},[`${n}-title-content`]:{transition:`color ${i}`,"&-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:p,borderStyle:S,borderWidth:0,borderTopWidth:g,marginBlock:g,padding:0,"&-dashed":{borderStyle:"dashed"}},...$2(e),[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${te(e.calc(r).mul(2).equal())} ${te(f)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:h,borderRadius:y,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${n}`]:{borderRadius:y,...$2(e),...x2(e),[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:C},[`${n}-submenu-title::after`]:{transition:`transform ${i} ${c}`}}},"\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}},...x2(e),[`&-inline-collapsed ${n}-submenu-arrow,
203
+ &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${te(x)})`},"&::after":{transform:`rotate(45deg) translateX(${te(e.calc(x).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${te(e.calc(b).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${te(e.calc(x).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${te(x)})`}}}},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},PB=e=>{const{colorPrimary:t,colorError:n,colorTextDisabled:r,colorErrorBg:i,colorText:s,colorTextDescription:c,colorBgContainer:d,colorFillAlter:f,colorFillContent:p,lineWidth:g,lineWidthBold:h,controlItemBgActive:y,colorBgTextHover:C,controlHeightLG:b,lineHeight:x,colorBgElevated:S,marginXXS:$,padding:M,fontSize:w,controlHeightSM:R,fontSizeLG:T,colorTextLightSolid:N,colorErrorHover:O}=e,P=e.activeBarWidth??0,D=e.activeBarBorderWidth??g,k=e.itemMarginInline??e.marginXXS,F=new Jt(N).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:s,itemColor:s,colorItemTextHover:s,itemHoverColor:s,colorItemTextHoverHorizontal:t,horizontalItemHoverColor:t,colorGroupTitle:c,groupTitleColor:c,colorItemTextSelected:t,itemSelectedColor:t,subMenuItemSelectedColor:t,colorItemTextSelectedHorizontal:t,horizontalItemSelectedColor:t,colorItemBg:d,itemBg:d,colorItemBgHover:C,itemHoverBg:C,colorItemBgActive:p,itemActiveBg:y,colorSubItemBg:f,subMenuItemBg:f,colorItemBgSelected:y,itemSelectedBg:y,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:P,colorActiveBarHeight:h,activeBarHeight:h,colorActiveBarBorderSize:g,activeBarBorderWidth:D,colorItemTextDisabled:r,itemDisabledColor:r,colorDangerItemText:n,dangerItemColor:n,colorDangerItemTextHover:n,dangerItemHoverColor:n,colorDangerItemTextSelected:n,dangerItemSelectedColor:n,colorDangerItemBgActive:i,dangerItemActiveBg:i,colorDangerItemBgSelected:i,dangerItemSelectedBg:i,itemMarginInline:k,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:b,groupTitleLineHeight:x,collapsedWidth:b*2,popupBg:S,itemMarginBlock:$,itemPaddingInline:M,horizontalLineHeight:`${b*1.15}px`,iconSize:w,iconMarginInlineEnd:R-w,collapsedIconSize:T,groupTitleFontSize:w,darkItemDisabledColor:new Jt(N).setA(.25).toRgbString(),darkItemColor:F,darkDangerItemColor:n,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:N,darkItemSelectedBg:t,darkDangerItemSelectedBg:n,darkItemHoverBg:"transparent",darkGroupTitleColor:F,darkItemHoverColor:N,darkDangerItemHoverColor:O,darkDangerItemSelectedColor:N,darkDangerItemActiveBg:n,itemWidth:P?`calc(100% + ${D}px)`:`calc(100% - ${k*2}px)`}},zB=(e,t=e,n=!0)=>zt("Menu",i=>{const{colorBgElevated:s,controlHeightLG:c,fontSize:d,darkItemColor:f,darkDangerItemColor:p,darkItemBg:g,darkSubMenuItemBg:h,darkItemSelectedColor:y,darkItemSelectedBg:C,darkDangerItemSelectedBg:b,darkItemHoverBg:x,darkGroupTitleColor:S,darkItemHoverColor:$,darkItemDisabledColor:M,darkDangerItemHoverColor:w,darkDangerItemSelectedColor:R,darkDangerItemActiveBg:T,popupBg:N,darkPopupBg:O}=i,P=i.calc(d).div(7).mul(5).equal(),D=Nt(i,{menuArrowSize:P,menuHorizontalHeight:i.calc(c).mul(1.15).equal(),menuArrowOffset:i.calc(P).mul(.25).equal(),menuSubMenuBg:s,calc:i.calc,popupBg:N}),k=Nt(D,{itemColor:f,itemHoverColor:$,groupTitleColor:S,itemSelectedColor:y,subMenuItemSelectedColor:y,itemBg:g,popupBg:O,subMenuItemBg:h,itemActiveBg:"transparent",itemSelectedBg:C,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:x,itemDisabledColor:M,dangerItemColor:p,dangerItemHoverColor:w,dangerItemSelectedColor:R,dangerItemActiveBg:T,dangerItemSelectedBg:b,menuSubMenuBg:h,horizontalItemSelectedColor:y,horizontalItemSelectedBg:C});return[IB(D),TB(D),NB(D),S2(D,"light"),S2(k,"dark"),OB(D),FT(D),Ko(D,"slide-up"),Ko(D,"slide-down"),pd(D,"zoom-big")]},PB,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:n,unitless:{groupTitleLineHeight:!0}})(e,t),b6=e=>{const{popupClassName:t,icon:n,title:r,theme:i}=e,s=l.useContext(tp),{prefixCls:c,inlineCollapsed:d,theme:f,classNames:p,styles:g}=s,h=_s();let y;if(!n)y=d&&!h.length&&r&&typeof r=="string"?l.createElement("div",{className:`${c}-inline-collapsed-noicon`},r.charAt(0)):l.createElement("span",{className:`${c}-title-content`},r);else{const x=l.isValidElement(r)&&r.type==="span";y=l.createElement(l.Fragment,null,or(n,S=>({className:Q(S.className,`${c}-item-icon`,p.itemIcon),style:{...S.style,...g.itemIcon}})),x?r:l.createElement("span",{className:`${c}-title-content`},r))}const C=l.useMemo(()=>({...s,firstLevel:!1}),[s]),[b]=mi("Menu");return l.createElement(tp.Provider,{value:C},l.createElement(Vp,{...en(e,["icon"]),title:y,classNames:{list:p.subMenu.list,listTitle:p.subMenu.itemTitle},styles:{list:g.subMenu.list,listTitle:g.subMenu.itemTitle},popupClassName:Q(c,t,p.popup.root,`${c}-${i||f}`),popupStyle:{zIndex:b,...e.popupStyle,...g.popup.root}}))};function By(e){return e===null||e===!1}const AB={item:y6,submenu:b6,divider:h6},DB=l.forwardRef((e,t)=>{const n=l.useContext(np),r=n||{},{prefixCls:i,className:s,style:c,theme:d="light",expandIcon:f,_internalDisableMenuItemTitleTooltip:p,inlineCollapsed:g,siderCollapsed:h,rootClassName:y,mode:C,selectable:b,onClick:x,overflowedIndicatorPopupClassName:S,classNames:$,styles:M,...w}=e,{menu:R}=l.useContext(dt),{getPrefixCls:T,getPopupContainer:N,direction:O,className:P,style:D,classNames:k,styles:F}=Pt("menu"),Y=T(),G=en(w,["collapsedWidth"]);r.validator?.({mode:C});const V=ut((...ne)=>{x?.(...ne),r.onClick?.()}),B=r.mode||C,_=b??r.selectable,H=g??h,I={...e,mode:B,inlineCollapsed:H,selectable:_,theme:d},[z,L]=Vt([k,$],[F,M],{props:I},{popup:{_default:"root"},subMenu:{_default:"item"}}),A={horizontal:{motionName:`${Y}-slide-up`},inline:_T(Y),other:{motionName:`${Y}-zoom-big`}},j=T("menu",i||r.prefixCls),q=lr(j),[X,K]=zB(j,q,!n),J=Q(`${j}-${d}`,P,s),Z=l.useMemo(()=>{if(typeof f=="function"||By(f))return f||null;if(typeof r.expandIcon=="function"||By(r.expandIcon))return r.expandIcon||null;if(typeof R?.expandIcon=="function"||By(R?.expandIcon))return R?.expandIcon||null;const ne=f??r?.expandIcon??R?.expandIcon;return or(ne,{className:Q(`${j}-submenu-expand-icon`,l.isValidElement(ne)?ne.props?.className:void 0)})},[f,r?.expandIcon,R?.expandIcon,j]),re=l.useMemo(()=>({prefixCls:j,inlineCollapsed:H||!1,direction:O,firstLevel:!0,theme:d,mode:B,disableMenuItemTitleTooltip:p,classNames:z,styles:L}),[j,H,O,p,d,B,z,L]);return l.createElement(np.Provider,{value:null},l.createElement(tp.Provider,{value:re},l.createElement(Hs,{getPopupContainer:N,overflowedIndicator:l.createElement(r1,null),overflowedIndicatorPopupClassName:Q(j,`${j}-${d}`,S),classNames:{list:z.list,listTitle:z.itemTitle},styles:{list:L.list,listTitle:L.itemTitle},mode:B,selectable:_,onClick:V,...G,inlineCollapsed:H,style:{...L.root,...D,...c},className:J,prefixCls:j,direction:O,defaultMotions:A,expandIcon:Z,ref:t,rootClassName:Q(y,X,r.rootClassName,K,q,z.root),_internalComponents:AB})))}),xd=l.forwardRef((e,t)=>{const n=l.useRef(null),r=l.useContext(Fp);return l.useImperativeHandle(t,()=>({menu:n.current,focus:i=>{n.current?.focus(i)}})),l.createElement(DB,{ref:n,...e,...r})});xd.Item=y6;xd.SubMenu=b6;xd.Divider=h6;xd.ItemGroup=n1;const jB=e=>{const{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:i}=e,s=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${s}`]:{[`&${s}-danger:not(${s}-disabled)`]:{color:r,"&:hover":{color:i,backgroundColor:r}}}}}},_B=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:i,sizePopupArrow:s,antCls:c,iconCls:d,motionDurationMid:f,paddingBlock:p,fontSize:g,dropdownEdgeChildPadding:h,colorTextDisabled:y,fontSizeIcon:C,controlPaddingHorizontal:b,colorBgElevated:x}=e;return[{[t]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:e.calc(s).div(2).sub(i).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${c}-btn`]:{[`& > ${d}-down, & > ${c}-btn-icon > ${d}-down`]:{fontSize:C}},[`${t}-wrap`]:{position:"relative",[`${c}-btn > ${d}-down`]:{fontSize:C},[`${d}-down::before`]:{transition:`transform ${f}`}},[`${t}-wrap-open`]:{[`${d}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${c}-slide-down-enter${c}-slide-down-enter-active${t}-placement-bottomLeft,
204
+ &${c}-slide-down-appear${c}-slide-down-appear-active${t}-placement-bottomLeft,
205
+ &${c}-slide-down-enter${c}-slide-down-enter-active${t}-placement-bottom,
206
+ &${c}-slide-down-appear${c}-slide-down-appear-active${t}-placement-bottom,
207
+ &${c}-slide-down-enter${c}-slide-down-enter-active${t}-placement-bottomRight,
208
+ &${c}-slide-down-appear${c}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:Np},[`&${c}-slide-up-enter${c}-slide-up-enter-active${t}-placement-topLeft,
209
+ &${c}-slide-up-appear${c}-slide-up-appear-active${t}-placement-topLeft,
210
+ &${c}-slide-up-enter${c}-slide-up-enter-active${t}-placement-top,
211
+ &${c}-slide-up-appear${c}-slide-up-appear-active${t}-placement-top,
212
+ &${c}-slide-up-enter${c}-slide-up-enter-active${t}-placement-topRight,
213
+ &${c}-slide-up-appear${c}-slide-up-appear-active${t}-placement-topRight`]:{animationName:Pp},[`&${c}-slide-down-leave${c}-slide-down-leave-active${t}-placement-bottomLeft,
214
+ &${c}-slide-down-leave${c}-slide-down-leave-active${t}-placement-bottom,
215
+ &${c}-slide-down-leave${c}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:Ip},[`&${c}-slide-up-leave${c}-slide-up-leave-active${t}-placement-topLeft,
216
+ &${c}-slide-up-leave${c}-slide-up-leave-active${t}-placement-top,
217
+ &${c}-slide-up-leave${c}-slide-up-leave-active${t}-placement-topRight`]:{animationName:zp}}},XS(e,x,{arrowPlacement:{top:!0,bottom:!0}}),{[`${t} ${n}`]:{position:"relative",margin:0},[`${n}-submenu-popup`]:{position:"absolute",zIndex:r,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${t}, ${t}-menu-submenu`]:{...Zt(e),[n]:{padding:h,listStyleType:"none",backgroundColor:x,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,...xo(e),"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${te(p)} ${te(b)}`,color:e.colorTextDescription,transition:`all ${f}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:g,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 ${f}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${n}-item-extra`]:{paddingInlineStart:e.padding,marginInlineStart:"auto",fontSize:e.fontSizeSM,color:e.colorTextDescription}},[`${n}-item, ${n}-submenu-title`]:{display:"flex",margin:0,padding:`${te(p)} ${te(b)}`,color:e.colorText,fontWeight:"normal",fontSize:g,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${f}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover},...xo(e),"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:y,cursor:"not-allowed","&:hover":{color:y,backgroundColor:x,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${te(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:C,fontStyle:"normal"}}},[`${n}-item-group-list`]:{margin:`0 ${te(e.marginXS)}`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(b).add(e.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:y,backgroundColor:x,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}}}},[Ko(e,"slide-up"),Ko(e,"slide-down"),Es(e,"move-up"),Es(e,"move-down"),pd(e,"zoom-big")]]},HB=e=>({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2,...Hp({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0}),..._p(e)}),BB=zt("Dropdown",e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:i}=e,s=Nt(e,{menuCls:`${i}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[_B(s),jB(s)]},HB,{resetStyle:!1}),kp=e=>{const{menu:t,arrow:n,prefixCls:r,children:i,trigger:s,disabled:c,dropdownRender:d,popupRender:f,getPopupContainer:p,overlayClassName:g,rootClassName:h,overlayStyle:y,open:C,onOpenChange:b,mouseEnterDelay:x=.15,mouseLeaveDelay:S=.1,autoAdjustOverflow:$=!0,placement:M="",transitionName:w,classNames:R,styles:T,destroyPopupOnHide:N,destroyOnHidden:O}=e,{getPrefixCls:P,direction:D,getPopupContainer:k,className:F,style:Y,classNames:G,styles:V}=Pt("dropdown"),B={...e,mouseEnterDelay:x,mouseLeaveDelay:S,autoAdjustOverflow:$},[_,H]=Vt([G,R],[V,T],{props:B}),I={...Y,...y,...H.root},z=f||d,L=l.useMemo(()=>{const we=P();return w!==void 0?w:M.includes("top")?`${we}-slide-down`:`${we}-slide-up`},[P,M,w]),A=l.useMemo(()=>M?M.includes("Center")?M.slice(0,M.indexOf("Center")):M:D==="rtl"?"bottomRight":"bottomLeft",[M,D]),j=P("dropdown",r),q=lr(j),[X,K]=BB(j,q),[,J]=qr(),Z=l.Children.only(GH(i)?l.createElement("span",null,i):i),re=or(Z,{className:Q(`${j}-trigger`,{[`${j}-rtl`]:D==="rtl"},Z.props.className),disabled:Z.props.disabled??c}),ne=c?[]:s,ie=!!ne?.includes("contextMenu"),[fe,le]=Yt(!1,C),ue=ut(we=>{b?.(we,{source:"trigger"}),le(we)}),ge=Q(g,h,X,K,q,F,_.root,{[`${j}-rtl`]:D==="rtl"}),oe=FO({arrowPointAtCenter:typeof n=="object"&&n.pointAtCenter,autoAdjustOverflow:$,offset:J.marginXXS,arrowWidth:n?J.sizePopupArrow:0,borderRadius:J.borderRadius}),se=ut(()=>{t?.selectable&&t?.multiple||(b?.(!1,{source:"menu"}),le(!1))}),he=()=>{const we=en(_,["root"]),$e=en(H,["root"]);let de;return t?.items&&(de=l.createElement(xd,{...t,classNames:{...we,subMenu:{...we}},styles:{...$e,subMenu:{...$e}}})),z&&(de=z(de)),de=l.Children.only(typeof de=="string"?l.createElement("span",null,de):de),l.createElement(RB,{prefixCls:`${j}-menu`,rootClassName:Q(K,q),expandIcon:l.createElement("span",{className:`${j}-menu-submenu-arrow`},D==="rtl"?l.createElement(Mu,{className:`${j}-menu-submenu-arrow-icon`}):l.createElement(ws,{className:`${j}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:se,validator:({mode:be})=>{}},de)},[me,xe]=mi("Dropdown",I.zIndex);let Ae=l.createElement(QO,{alignPoint:ie,...en(e,["rootClassName","onOpenChange"]),mouseEnterDelay:x,mouseLeaveDelay:S,visible:fe,builtinPlacements:oe,arrow:!!n,overlayClassName:ge,prefixCls:j,getPopupContainer:p||k,transitionName:L,trigger:ne,overlay:he,placement:A,onVisibleChange:ue,overlayStyle:{...I,zIndex:me},autoDestroy:O??N},re);return me&&(Ae=l.createElement(sd.Provider,{value:xe},Ae)),Ae},LB=Dp(kp,"align",void 0,"dropdown",e=>e),VB=e=>l.createElement(LB,{...e},l.createElement("span",null));kp._InternalPanelDoNotUseOrYouWillBeFired=VB;var Em={exports:{}},FB=Em.exports,w2;function v6(){return w2||(w2=1,(function(e,t){(function(n,r){e.exports=r()})(FB,(function(){var n=1e3,r=6e4,i=36e5,s="millisecond",c="second",d="minute",f="hour",p="day",g="week",h="month",y="quarter",C="year",b="date",x="Invalid Date",S=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,$=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(V){var B=["th","st","nd","rd"],_=V%100;return"["+V+(B[(_-20)%10]||B[_]||B[0])+"]"}},w=function(V,B,_){var H=String(V);return!H||H.length>=B?V:""+Array(B+1-H.length).join(_)+V},R={s:w,z:function(V){var B=-V.utcOffset(),_=Math.abs(B),H=Math.floor(_/60),I=_%60;return(B<=0?"+":"-")+w(H,2,"0")+":"+w(I,2,"0")},m:function V(B,_){if(B.date()<_.date())return-V(_,B);var H=12*(_.year()-B.year())+(_.month()-B.month()),I=B.clone().add(H,h),z=_-I<0,L=B.clone().add(H+(z?-1:1),h);return+(-(H+(_-I)/(z?I-L:L-I))||0)},a:function(V){return V<0?Math.ceil(V)||0:Math.floor(V)},p:function(V){return{M:h,y:C,w:g,d:p,D:b,h:f,m:d,s:c,ms:s,Q:y}[V]||String(V||"").toLowerCase().replace(/s$/,"")},u:function(V){return V===void 0}},T="en",N={};N[T]=M;var O="$isDayjsObject",P=function(V){return V instanceof Y||!(!V||!V[O])},D=function V(B,_,H){var I;if(!B)return T;if(typeof B=="string"){var z=B.toLowerCase();N[z]&&(I=z),_&&(N[z]=_,I=z);var L=B.split("-");if(!I&&L.length>1)return V(L[0])}else{var A=B.name;N[A]=B,I=A}return!H&&I&&(T=I),I||!H&&T},k=function(V,B){if(P(V))return V.clone();var _=typeof B=="object"?B:{};return _.date=V,_.args=arguments,new Y(_)},F=R;F.l=D,F.i=P,F.w=function(V,B){return k(V,{locale:B.$L,utc:B.$u,x:B.$x,$offset:B.$offset})};var Y=(function(){function V(_){this.$L=D(_.locale,null,!0),this.parse(_),this.$x=this.$x||_.x||{},this[O]=!0}var B=V.prototype;return B.parse=function(_){this.$d=(function(H){var I=H.date,z=H.utc;if(I===null)return new Date(NaN);if(F.u(I))return new Date;if(I instanceof Date)return new Date(I);if(typeof I=="string"&&!/Z$/i.test(I)){var L=I.match(S);if(L){var A=L[2]-1||0,j=(L[7]||"0").substring(0,3);return z?new Date(Date.UTC(L[1],A,L[3]||1,L[4]||0,L[5]||0,L[6]||0,j)):new Date(L[1],A,L[3]||1,L[4]||0,L[5]||0,L[6]||0,j)}}return new Date(I)})(_),this.init()},B.init=function(){var _=this.$d;this.$y=_.getFullYear(),this.$M=_.getMonth(),this.$D=_.getDate(),this.$W=_.getDay(),this.$H=_.getHours(),this.$m=_.getMinutes(),this.$s=_.getSeconds(),this.$ms=_.getMilliseconds()},B.$utils=function(){return F},B.isValid=function(){return this.$d.toString()!==x},B.isSame=function(_,H){var I=k(_);return this.startOf(H)<=I&&I<=this.endOf(H)},B.isAfter=function(_,H){return k(_)<this.startOf(H)},B.isBefore=function(_,H){return this.endOf(H)<k(_)},B.$g=function(_,H,I){return F.u(_)?this[H]:this.set(I,_)},B.unix=function(){return Math.floor(this.valueOf()/1e3)},B.valueOf=function(){return this.$d.getTime()},B.startOf=function(_,H){var I=this,z=!!F.u(H)||H,L=F.p(_),A=function(ne,ie){var fe=F.w(I.$u?Date.UTC(I.$y,ie,ne):new Date(I.$y,ie,ne),I);return z?fe:fe.endOf(p)},j=function(ne,ie){return F.w(I.toDate()[ne].apply(I.toDate("s"),(z?[0,0,0,0]:[23,59,59,999]).slice(ie)),I)},q=this.$W,X=this.$M,K=this.$D,J="set"+(this.$u?"UTC":"");switch(L){case C:return z?A(1,0):A(31,11);case h:return z?A(1,X):A(0,X+1);case g:var Z=this.$locale().weekStart||0,re=(q<Z?q+7:q)-Z;return A(z?K-re:K+(6-re),X);case p:case b:return j(J+"Hours",0);case f:return j(J+"Minutes",1);case d:return j(J+"Seconds",2);case c:return j(J+"Milliseconds",3);default:return this.clone()}},B.endOf=function(_){return this.startOf(_,!1)},B.$set=function(_,H){var I,z=F.p(_),L="set"+(this.$u?"UTC":""),A=(I={},I[p]=L+"Date",I[b]=L+"Date",I[h]=L+"Month",I[C]=L+"FullYear",I[f]=L+"Hours",I[d]=L+"Minutes",I[c]=L+"Seconds",I[s]=L+"Milliseconds",I)[z],j=z===p?this.$D+(H-this.$W):H;if(z===h||z===C){var q=this.clone().set(b,1);q.$d[A](j),q.init(),this.$d=q.set(b,Math.min(this.$D,q.daysInMonth())).$d}else A&&this.$d[A](j);return this.init(),this},B.set=function(_,H){return this.clone().$set(_,H)},B.get=function(_){return this[F.p(_)]()},B.add=function(_,H){var I,z=this;_=Number(_);var L=F.p(H),A=function(X){var K=k(z);return F.w(K.date(K.date()+Math.round(X*_)),z)};if(L===h)return this.set(h,this.$M+_);if(L===C)return this.set(C,this.$y+_);if(L===p)return A(1);if(L===g)return A(7);var j=(I={},I[d]=r,I[f]=i,I[c]=n,I)[L]||1,q=this.$d.getTime()+_*j;return F.w(q,this)},B.subtract=function(_,H){return this.add(-1*_,H)},B.format=function(_){var H=this,I=this.$locale();if(!this.isValid())return I.invalidDate||x;var z=_||"YYYY-MM-DDTHH:mm:ssZ",L=F.z(this),A=this.$H,j=this.$m,q=this.$M,X=I.weekdays,K=I.months,J=I.meridiem,Z=function(ie,fe,le,ue){return ie&&(ie[fe]||ie(H,z))||le[fe].slice(0,ue)},re=function(ie){return F.s(A%12||12,ie,"0")},ne=J||function(ie,fe,le){var ue=ie<12?"AM":"PM";return le?ue.toLowerCase():ue};return z.replace($,(function(ie,fe){return fe||(function(le){switch(le){case"YY":return String(H.$y).slice(-2);case"YYYY":return F.s(H.$y,4,"0");case"M":return q+1;case"MM":return F.s(q+1,2,"0");case"MMM":return Z(I.monthsShort,q,K,3);case"MMMM":return Z(K,q);case"D":return H.$D;case"DD":return F.s(H.$D,2,"0");case"d":return String(H.$W);case"dd":return Z(I.weekdaysMin,H.$W,X,2);case"ddd":return Z(I.weekdaysShort,H.$W,X,3);case"dddd":return X[H.$W];case"H":return String(A);case"HH":return F.s(A,2,"0");case"h":return re(1);case"hh":return re(2);case"a":return ne(A,j,!0);case"A":return ne(A,j,!1);case"m":return String(j);case"mm":return F.s(j,2,"0");case"s":return String(H.$s);case"ss":return F.s(H.$s,2,"0");case"SSS":return F.s(H.$ms,3,"0");case"Z":return L}return null})(ie)||L.replace(":","")}))},B.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},B.diff=function(_,H,I){var z,L=this,A=F.p(H),j=k(_),q=(j.utcOffset()-this.utcOffset())*r,X=this-j,K=function(){return F.m(L,j)};switch(A){case C:z=K()/12;break;case h:z=K();break;case y:z=K()/3;break;case g:z=(X-q)/6048e5;break;case p:z=(X-q)/864e5;break;case f:z=X/i;break;case d:z=X/r;break;case c:z=X/n;break;default:z=X}return I?z:F.a(z)},B.daysInMonth=function(){return this.endOf(h).$D},B.$locale=function(){return N[this.$L]},B.locale=function(_,H){if(!_)return this.$L;var I=this.clone(),z=D(_,H,!0);return z&&(I.$L=z),I},B.clone=function(){return F.w(this.$d,this)},B.toDate=function(){return new Date(this.valueOf())},B.toJSON=function(){return this.isValid()?this.toISOString():null},B.toISOString=function(){return this.$d.toISOString()},B.toString=function(){return this.$d.toUTCString()},V})(),G=Y.prototype;return k.prototype=G,[["$ms",s],["$s",c],["$m",d],["$H",f],["$W",p],["$M",h],["$y",C],["$D",b]].forEach((function(V){G[V[1]]=function(B){return this.$g(B,V[0],V[1])}})),k.extend=function(V,B){return V.$i||(V(B,Y,k),V.$i=!0),k},k.locale=D,k.isDayjs=P,k.unix=function(V){return k(1e3*V)},k.en=N[T],k.Ls=N,k.p={},k}))})(Em)),Em.exports}var kB=v6();const gn=Ma(kB);var Mm={exports:{}},WB=Mm.exports,E2;function qB(){return E2||(E2=1,(function(e,t){(function(n,r){e.exports=r()})(WB,(function(){return function(n,r){r.prototype.weekday=function(i){var s=this.$locale().weekStart||0,c=this.$W,d=(c<s?c+7:c)-s;return this.$utils().u(i)?d:this.subtract(d,"day").add(i,"day")}}}))})(Mm)),Mm.exports}var YB=qB();const UB=Ma(YB);var Rm={exports:{}},GB=Rm.exports,M2;function XB(){return M2||(M2=1,(function(e,t){(function(n,r){e.exports=r()})(GB,(function(){return function(n,r,i){var s=r.prototype,c=function(h){return h&&(h.indexOf?h:h.s)},d=function(h,y,C,b,x){var S=h.name?h:h.$locale(),$=c(S[y]),M=c(S[C]),w=$||M.map((function(T){return T.slice(0,b)}));if(!x)return w;var R=S.weekStart;return w.map((function(T,N){return w[(N+(R||0))%7]}))},f=function(){return i.Ls[i.locale()]},p=function(h,y){return h.formats[y]||(function(C){return C.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(b,x,S){return x||S.slice(1)}))})(h.formats[y.toUpperCase()])},g=function(){var h=this;return{months:function(y){return y?y.format("MMMM"):d(h,"months")},monthsShort:function(y){return y?y.format("MMM"):d(h,"monthsShort","months",3)},firstDayOfWeek:function(){return h.$locale().weekStart||0},weekdays:function(y){return y?y.format("dddd"):d(h,"weekdays")},weekdaysMin:function(y){return y?y.format("dd"):d(h,"weekdaysMin","weekdays",2)},weekdaysShort:function(y){return y?y.format("ddd"):d(h,"weekdaysShort","weekdays",3)},longDateFormat:function(y){return p(h.$locale(),y)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};s.localeData=function(){return g.bind(this)()},i.localeData=function(){var h=f();return{firstDayOfWeek:function(){return h.weekStart||0},weekdays:function(){return i.weekdays()},weekdaysShort:function(){return i.weekdaysShort()},weekdaysMin:function(){return i.weekdaysMin()},months:function(){return i.months()},monthsShort:function(){return i.monthsShort()},longDateFormat:function(y){return p(h,y)},meridiem:h.meridiem,ordinal:h.ordinal}},i.months=function(){return d(f(),"months")},i.monthsShort=function(){return d(f(),"monthsShort","months",3)},i.weekdays=function(h){return d(f(),"weekdays",null,null,h)},i.weekdaysShort=function(h){return d(f(),"weekdaysShort","weekdays",3,h)},i.weekdaysMin=function(h){return d(f(),"weekdaysMin","weekdays",2,h)}}}))})(Rm)),Rm.exports}var KB=XB();const QB=Ma(KB);var Tm={exports:{}},ZB=Tm.exports,R2;function JB(){return R2||(R2=1,(function(e,t){(function(n,r){e.exports=r()})(ZB,(function(){var n="week",r="year";return function(i,s,c){var d=s.prototype;d.week=function(f){if(f===void 0&&(f=null),f!==null)return this.add(7*(f-this.week()),"day");var p=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var g=c(this).startOf(r).add(1,r).date(p),h=c(this).endOf(n);if(g.isBefore(h))return 1}var y=c(this).startOf(r).date(p).startOf(n).subtract(1,"millisecond"),C=this.diff(y,n,!0);return C<0?c(this).startOf("week").week():Math.ceil(C)},d.weeks=function(f){return f===void 0&&(f=null),this.week(f)}}}))})(Tm)),Tm.exports}var eL=JB();const tL=Ma(eL);var Om={exports:{}},nL=Om.exports,T2;function rL(){return T2||(T2=1,(function(e,t){(function(n,r){e.exports=r()})(nL,(function(){return function(n,r){r.prototype.weekYear=function(){var i=this.month(),s=this.week(),c=this.year();return s===1&&i===11?c+1:i===0&&s>=52?c-1:c}}}))})(Om)),Om.exports}var oL=rL();const aL=Ma(oL);var Nm={exports:{}},iL=Nm.exports,O2;function lL(){return O2||(O2=1,(function(e,t){(function(n,r){e.exports=r()})(iL,(function(){return function(n,r){var i=r.prototype,s=i.format;i.format=function(c){var d=this,f=this.$locale();if(!this.isValid())return s.bind(this)(c);var p=this.$utils(),g=(c||"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(h){switch(h){case"Q":return Math.ceil((d.$M+1)/3);case"Do":return f.ordinal(d.$D);case"gggg":return d.weekYear();case"GGGG":return d.isoWeekYear();case"wo":return f.ordinal(d.week(),"W");case"w":case"ww":return p.s(d.week(),h==="w"?1:2,"0");case"W":case"WW":return p.s(d.isoWeek(),h==="W"?1:2,"0");case"k":case"kk":return p.s(String(d.$H===0?24:d.$H),h==="k"?1:2,"0");case"X":return Math.floor(d.$d.getTime()/1e3);case"x":return d.$d.getTime();case"z":return"["+d.offsetName()+"]";case"zzz":return"["+d.offsetName("long")+"]";default:return h}}));return s.bind(this)(g)}}}))})(Nm)),Nm.exports}var sL=lL();const cL=Ma(sL);var Im={exports:{}},uL=Im.exports,N2;function dL(){return N2||(N2=1,(function(e,t){(function(n,r){e.exports=r()})(uL,(function(){var n={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"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,i=/\d/,s=/\d\d/,c=/\d\d?/,d=/\d*[^-_:/,()\s\d]+/,f={},p=function(S){return(S=+S)+(S>68?1900:2e3)},g=function(S){return function($){this[S]=+$}},h=[/[+-]\d\d:?(\d\d)?|Z/,function(S){(this.zone||(this.zone={})).offset=(function($){if(!$||$==="Z")return 0;var M=$.match(/([+-]|\d\d)/g),w=60*M[1]+(+M[2]||0);return w===0?0:M[0]==="+"?-w:w})(S)}],y=function(S){var $=f[S];return $&&($.indexOf?$:$.s.concat($.f))},C=function(S,$){var M,w=f.meridiem;if(w){for(var R=1;R<=24;R+=1)if(S.indexOf(w(R,0,$))>-1){M=R>12;break}}else M=S===($?"pm":"PM");return M},b={A:[d,function(S){this.afternoon=C(S,!1)}],a:[d,function(S){this.afternoon=C(S,!0)}],Q:[i,function(S){this.month=3*(S-1)+1}],S:[i,function(S){this.milliseconds=100*+S}],SS:[s,function(S){this.milliseconds=10*+S}],SSS:[/\d{3}/,function(S){this.milliseconds=+S}],s:[c,g("seconds")],ss:[c,g("seconds")],m:[c,g("minutes")],mm:[c,g("minutes")],H:[c,g("hours")],h:[c,g("hours")],HH:[c,g("hours")],hh:[c,g("hours")],D:[c,g("day")],DD:[s,g("day")],Do:[d,function(S){var $=f.ordinal,M=S.match(/\d+/);if(this.day=M[0],$)for(var w=1;w<=31;w+=1)$(w).replace(/\[|\]/g,"")===S&&(this.day=w)}],w:[c,g("week")],ww:[s,g("week")],M:[c,g("month")],MM:[s,g("month")],MMM:[d,function(S){var $=y("months"),M=(y("monthsShort")||$.map((function(w){return w.slice(0,3)}))).indexOf(S)+1;if(M<1)throw new Error;this.month=M%12||M}],MMMM:[d,function(S){var $=y("months").indexOf(S)+1;if($<1)throw new Error;this.month=$%12||$}],Y:[/[+-]?\d+/,g("year")],YY:[s,function(S){this.year=p(S)}],YYYY:[/\d{4}/,g("year")],Z:h,ZZ:h};function x(S){var $,M;$=S,M=f&&f.formats;for(var w=(S=$.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(k,F,Y){var G=Y&&Y.toUpperCase();return F||M[Y]||n[Y]||M[G].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(V,B,_){return B||_.slice(1)}))}))).match(r),R=w.length,T=0;T<R;T+=1){var N=w[T],O=b[N],P=O&&O[0],D=O&&O[1];w[T]=D?{regex:P,parser:D}:N.replace(/^\[|\]$/g,"")}return function(k){for(var F={},Y=0,G=0;Y<R;Y+=1){var V=w[Y];if(typeof V=="string")G+=V.length;else{var B=V.regex,_=V.parser,H=k.slice(G),I=B.exec(H)[0];_.call(F,I),k=k.replace(I,"")}}return(function(z){var L=z.afternoon;if(L!==void 0){var A=z.hours;L?A<12&&(z.hours+=12):A===12&&(z.hours=0),delete z.afternoon}})(F),F}}return function(S,$,M){M.p.customParseFormat=!0,S&&S.parseTwoDigitYear&&(p=S.parseTwoDigitYear);var w=$.prototype,R=w.parse;w.parse=function(T){var N=T.date,O=T.utc,P=T.args;this.$u=O;var D=P[1];if(typeof D=="string"){var k=P[2]===!0,F=P[3]===!0,Y=k||F,G=P[2];F&&(G=P[2]),f=this.$locale(),!k&&G&&(f=M.Ls[G]),this.$d=(function(H,I,z,L){try{if(["x","X"].indexOf(I)>-1)return new Date((I==="X"?1e3:1)*H);var A=x(I)(H),j=A.year,q=A.month,X=A.day,K=A.hours,J=A.minutes,Z=A.seconds,re=A.milliseconds,ne=A.zone,ie=A.week,fe=new Date,le=X||(j||q?1:fe.getDate()),ue=j||fe.getFullYear(),ge=0;j&&!q||(ge=q>0?q-1:fe.getMonth());var oe,se=K||0,he=J||0,me=Z||0,xe=re||0;return ne?new Date(Date.UTC(ue,ge,le,se,he,me,xe+60*ne.offset*1e3)):z?new Date(Date.UTC(ue,ge,le,se,he,me,xe)):(oe=new Date(ue,ge,le,se,he,me,xe),ie&&(oe=L(oe).week(ie).toDate()),oe)}catch{return new Date("")}})(N,D,O,M),this.init(),G&&G!==!0&&(this.$L=this.locale(G).$L),Y&&N!=this.format(D)&&(this.$d=new Date("")),f={}}else if(D instanceof Array)for(var V=D.length,B=1;B<=V;B+=1){P[1]=D[B-1];var _=M.apply(this,P);if(_.isValid()){this.$d=_.$d,this.$L=_.$L,this.init();break}B===V&&(this.$d=new Date(""))}else R.call(this,T)}}}))})(Im)),Im.exports}var fL=dL();const mL=Ma(fL);gn.extend(mL);gn.extend(cL);gn.extend(UB);gn.extend(QB);gn.extend(tL);gn.extend(aL);gn.extend(function(e,t){var n=t.prototype,r=n.format;n.format=function(s){var c=(s||"").replace("Wo","wo");return r.bind(this)(c)}});var pL={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"},Ai=function(t){var n=pL[t];return n||t.split("_")[0]},S6={getNow:function(){var t=gn();return typeof t.tz=="function"?t.tz():t},getFixedDate:function(t){return gn(t,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(t){return t.endOf("month")},getWeekDay:function(t){var n=t.locale("en");return n.weekday()+n.localeData().firstDayOfWeek()},getYear:function(t){return t.year()},getMonth:function(t){return t.month()},getDate:function(t){return t.date()},getHour:function(t){return t.hour()},getMinute:function(t){return t.minute()},getSecond:function(t){return t.second()},getMillisecond:function(t){return t.millisecond()},addYear:function(t,n){return t.add(n,"year")},addMonth:function(t,n){return t.add(n,"month")},addDate:function(t,n){return t.add(n,"day")},setYear:function(t,n){return t.year(n)},setMonth:function(t,n){return t.month(n)},setDate:function(t,n){return t.date(n)},setHour:function(t,n){return t.hour(n)},setMinute:function(t,n){return t.minute(n)},setSecond:function(t,n){return t.second(n)},setMillisecond:function(t,n){return t.millisecond(n)},isAfter:function(t,n){return t.isAfter(n)},isValidate:function(t){return t.isValid()},locale:{getWeekFirstDay:function(t){return gn().locale(Ai(t)).localeData().firstDayOfWeek()},getWeekFirstDate:function(t,n){return n.locale(Ai(t)).weekday(0)},getWeek:function(t,n){return n.locale(Ai(t)).week()},getShortWeekDays:function(t){return gn().locale(Ai(t)).localeData().weekdaysMin()},getShortMonths:function(t){return gn().locale(Ai(t)).localeData().monthsShort()},format:function(t,n,r){return n.locale(Ai(t)).format(r)},parse:function(t,n,r){for(var i=Ai(t),s=0;s<r.length;s+=1){var c=r[s],d=n;if(c.includes("wo")||c.includes("Wo")){for(var f=d.split("-")[0],p=d.split("-")[1],g=gn(f,"YYYY").startOf("year").locale(i),h=0;h<=52;h+=1){var y=g.add(h,"week");if(y.format("Wo")===p)return y}return null}var C=gn(d,c,!0).locale(i);if(C.isValid())return C}return null}}};function gL(e,t){return e!==void 0?e:t?"bottomRight":"bottomLeft"}var jo=l.createContext(null);function Nu(e){"@babel/helpers - typeof";return Nu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Nu(e)}function I2(e,t,n){return t=hL(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hL(e){var t=yL(e,"string");return Nu(t)=="symbol"?t:String(t)}function yL(e,t){if(Nu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Nu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var bL={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function C6(e){var t=e.popupElement,n=e.popupStyle,r=e.popupClassName,i=e.popupAlign,s=e.transitionName,c=e.getPopupContainer,d=e.children,f=e.range,p=e.placement,g=e.builtinPlacements,h=g===void 0?bL:g,y=e.direction,C=e.visible,b=e.onClose,x=l.useContext(jo),S=x.prefixCls,$="".concat(S,"-dropdown"),M=gL(p,y==="rtl");return l.createElement(dd,{showAction:[],hideAction:["click"],popupPlacement:M,builtinPlacements:h,prefixCls:$,popupMotion:{motionName:s},popup:t,popupAlign:i,popupVisible:C,popupClassName:Q(r,I2(I2({},"".concat($,"-range"),f),"".concat($,"-rtl"),y==="rtl")),popupStyle:n,stretch:"minWidth",getPopupContainer:c,onPopupVisibleChange:function(R){R||b()}},d)}function vL(e){return xL(e)||$L(e)||CL(e)||SL()}function SL(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
218
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function CL(e,t){if(e){if(typeof e=="string")return qv(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return qv(e,t)}}function $L(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function xL(e){if(Array.isArray(e))return qv(e)}function qv(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function o1(e,t){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",r=String(e);r.length<t;)r="".concat(n).concat(r);return r}function dl(e){return e==null?[]:Array.isArray(e)?e:[e]}function su(e,t,n){var r=vL(e);return r[t]=n,r}function Wp(e,t){var n={},r=t||Object.keys(e);return r.forEach(function(i){e[i]!==void 0&&(n[i]=e[i])}),n}function $6(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 x6(e,t,n){var r=n!==void 0?n:t[t.length-1],i=t.find(function(s){return e[s]});return r!==i?e[i]:void 0}function w6(e){return Wp(e,["placement","builtinPlacements","popupAlign","getPopupContainer","transitionName","direction"])}function Iu(e){"@babel/helpers - typeof";return Iu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Iu(e)}function P2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function z2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?P2(Object(n),!0).forEach(function(r){wL(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):P2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function wL(e,t,n){return t=EL(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function EL(e){var t=ML(e,"string");return Iu(t)=="symbol"?t:String(t)}function ML(e,t){if(Iu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Iu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function a1(e,t,n,r){var i=l.useMemo(function(){return e||function(c,d){var f=c;return t&&d.type==="date"?t(f,d.today):n&&d.type==="month"?n(f,d.locale):d.originNode}},[e,n,t]),s=l.useCallback(function(c,d){return i(c,z2(z2({},d),{},{range:r}))},[i,r]);return s}function RL(e,t){return IL(e)||NL(e,t)||OL(e,t)||TL()}function TL(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
219
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function OL(e,t){if(e){if(typeof e=="string")return A2(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return A2(e,t)}}function A2(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function NL(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,c,d=[],f=!0,p=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(d.push(r.value),d.length!==t);f=!0);}catch(g){p=!0,i=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(p)throw i}}return d}}function IL(e){if(Array.isArray(e))return e}function E6(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=l.useState([!1,!1]),i=RL(r,2),s=i[0],c=i[1],d=function(g,h){c(function(y){return su(y,h,g)})},f=l.useMemo(function(){return s.map(function(p,g){if(p)return!0;var h=e[g];return h?!!(!n[g]&&!h||h&&t(h,{activeIndex:g})):!1})},[e,s,t,n]);return[f,d]}function Pu(e){"@babel/helpers - typeof";return Pu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pu(e)}function D2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function j2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?D2(Object(n),!0).forEach(function(r){PL(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):D2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function PL(e,t,n){return t=zL(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zL(e){var t=AL(e,"string");return Pu(t)=="symbol"?t:String(t)}function AL(e,t){if(Pu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Pu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function M6(e,t,n,r,i){var s="",c=[];return e&&c.push(i?"hh":"HH"),t&&c.push("mm"),n&&c.push("ss"),s=c.join(":"),r&&(s+=".SSS"),i&&(s+=" A"),s}function DL(e,t,n,r,i,s){var c=e.fieldDateTimeFormat,d=e.fieldDateFormat,f=e.fieldTimeFormat,p=e.fieldMonthFormat,g=e.fieldYearFormat,h=e.fieldWeekFormat,y=e.fieldQuarterFormat,C=e.yearFormat,b=e.cellYearFormat,x=e.cellQuarterFormat,S=e.dayFormat,$=e.cellDateFormat,M=M6(t,n,r,i,s);return j2(j2({},e),{},{fieldDateTimeFormat:c||"YYYY-MM-DD ".concat(M),fieldDateFormat:d||"YYYY-MM-DD",fieldTimeFormat:f||M,fieldMonthFormat:p||"YYYY-MM",fieldYearFormat:g||"YYYY",fieldWeekFormat:h||"gggg-wo",fieldQuarterFormat:y||"YYYY-[Q]Q",yearFormat:C||"YYYY",cellYearFormat:b||"YYYY",cellQuarterFormat:x||"[Q]Q",cellDateFormat:$||S||"D"})}function R6(e,t){var n=t.showHour,r=t.showMinute,i=t.showSecond,s=t.showMillisecond,c=t.use12Hours;return ae.useMemo(function(){return DL(e,n,r,i,s,c)},[e,n,r,i,s,c])}function _2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function gs(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?_2(Object(n),!0).forEach(function(r){jL(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function jL(e,t,n){return t=_L(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _L(e){var t=HL(e,"string");return rl(t)=="symbol"?t:String(t)}function HL(e,t){if(rl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(rl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Yv(e,t){return FL(e)||VL(e,t)||LL(e,t)||BL()}function BL(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
220
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function LL(e,t){if(e){if(typeof e=="string")return H2(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return H2(e,t)}}function H2(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function VL(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,c,d=[],f=!0,p=!1;try{if(s=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;f=!1}else for(;!(f=(r=s.call(n)).done)&&(d.push(r.value),d.length!==t);f=!0);}catch(g){p=!0,i=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(p)throw i}}return d}}function FL(e){if(Array.isArray(e))return e}function rl(e){"@babel/helpers - typeof";return rl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rl(e)}function Hc(e,t,n){return n??t.some(function(r){return e.includes(r)})}var kL=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function WL(e){var t=Wp(e,kL),n=e.format,r=e.picker,i=null;return n&&(i=n,Array.isArray(i)&&(i=i[0]),i=rl(i)==="object"?i.format:i),r==="time"&&(t.format=i),[t,i]}function qL(e){return e&&typeof e=="string"}function T6(e,t,n,r){return[e,t,n,r].some(function(i){return i!==void 0})}function O6(e,t,n,r,i){var s=t,c=n,d=r;if(!e&&!s&&!c&&!d&&!i)s=!0,c=!0,d=!0;else if(e){var f,p,g,h=[s,c,d].some(function(b){return b===!1}),y=[s,c,d].some(function(b){return b===!0}),C=h?!0:!y;s=(f=s)!==null&&f!==void 0?f:C,c=(p=c)!==null&&p!==void 0?p:C,d=(g=d)!==null&&g!==void 0?g:C}return[s,c,d,i]}function N6(e){var t=e.showTime,n=WL(e),r=Yv(n,2),i=r[0],s=r[1],c=t&&rl(t)==="object"?t:{},d=gs(gs({defaultOpenValue:c.defaultOpenValue||c.defaultValue},i),c),f=d.showMillisecond,p=d.showHour,g=d.showMinute,h=d.showSecond,y=T6(p,g,h,f),C=O6(y,p,g,h,f),b=Yv(C,3);return p=b[0],g=b[1],h=b[2],[d,gs(gs({},d),{},{showHour:p,showMinute:g,showSecond:h,showMillisecond:f}),d.format,s]}function I6(e,t,n,r,i){var s=e==="time";if(e==="datetime"||s){for(var c=r,d=$6(e,i,null),f=d,p=[t,n],g=0;g<p.length;g+=1){var h=dl(p[g])[0];if(qL(h)){f=h;break}}var y=c.showHour,C=c.showMinute,b=c.showSecond,x=c.showMillisecond,S=c.use12Hours,$=Hc(f,["a","A","LT","LLL","LTS"],S),M=T6(y,C,b,x);M||(y=Hc(f,["H","h","k","LT","LLL"]),C=Hc(f,["m","LT","LLL"]),b=Hc(f,["s","LTS"]),x=Hc(f,["SSS"]));var w=O6(M,y,C,b,x),R=Yv(w,3);y=R[0],C=R[1],b=R[2];var T=t||M6(y,C,b,x,$);return gs(gs({},c),{},{format:T,showHour:y,showMinute:C,showSecond:b,showMillisecond:x,use12Hours:$})}return null}function Uv(e){"@babel/helpers - typeof";return Uv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Uv(e)}function YL(e,t,n){if(t===!1)return null;var r=t&&Uv(t)==="object"?t:{};return r.clearIcon||n||l.createElement("span",{className:"".concat(e,"-clear-btn")})}var Ly=7;function gi(e,t,n){return!e&&!t||e===t?!0:!e||!t?!1:n()}function Gv(e,t,n){return gi(t,n,function(){var r=Math.floor(e.getYear(t)/10),i=Math.floor(e.getYear(n)/10);return r===i})}function ol(e,t,n){return gi(t,n,function(){return e.getYear(t)===e.getYear(n)})}function B2(e,t){var n=Math.floor(e.getMonth(t)/3);return n+1}function UL(e,t,n){return gi(t,n,function(){return ol(e,t,n)&&B2(e,t)===B2(e,n)})}function i1(e,t,n){return gi(t,n,function(){return ol(e,t,n)&&e.getMonth(t)===e.getMonth(n)})}function l1(e,t,n){return gi(t,n,function(){return ol(e,t,n)&&i1(e,t,n)&&e.getDate(t)===e.getDate(n)})}function P6(e,t,n){return gi(t,n,function(){return e.getHour(t)===e.getHour(n)&&e.getMinute(t)===e.getMinute(n)&&e.getSecond(t)===e.getSecond(n)})}function z6(e,t,n){return gi(t,n,function(){return l1(e,t,n)&&P6(e,t,n)&&e.getMillisecond(t)===e.getMillisecond(n)})}function Zc(e,t,n,r){return gi(n,r,function(){var i=e.locale.getWeekFirstDate(t,n),s=e.locale.getWeekFirstDate(t,r);return ol(e,i,s)&&e.locale.getWeek(t,n)===e.locale.getWeek(t,r)})}function Tr(e,t,n,r,i){switch(i){case"date":return l1(e,n,r);case"week":return Zc(e,t.locale,n,r);case"month":return i1(e,n,r);case"quarter":return UL(e,n,r);case"year":return ol(e,n,r);case"decade":return Gv(e,n,r);case"time":return P6(e,n,r);default:return z6(e,n,r)}}function qp(e,t,n,r){return!t||!n||!r?!1:e.isAfter(r,t)&&e.isAfter(n,r)}function Uf(e,t,n,r,i){return Tr(e,t,n,r,i)?!0:e.isAfter(n,r)}function GL(e,t,n){var r=t.locale.getWeekFirstDay(e),i=t.setDate(n,1),s=t.getWeekDay(i),c=t.addDate(i,r-s);return t.getMonth(c)===t.getMonth(n)&&t.getDate(c)>1&&(c=t.addDate(c,-7)),c}function nr(e,t){var n=t.generateConfig,r=t.locale,i=t.format;return e?typeof i=="function"?i(e):n.locale.format(r.locale,e,i):""}function rp(e,t,n){var r=t,i=["getHour","getMinute","getSecond","getMillisecond"],s=["setHour","setMinute","setSecond","setMillisecond"];return s.forEach(function(c,d){n?r=e[c](r,e[i[d]](n)):r=e[c](r,0)}),r}function XL(e,t,n,r,i){var s=ut(function(c,d){return!!(n&&n(c,d)||r&&e.isAfter(r,c)&&!Tr(e,t,r,c,d.type)||i&&e.isAfter(c,i)&&!Tr(e,t,i,c,d.type))});return s}function Xv(e){"@babel/helpers - typeof";return Xv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xv(e)}function KL(e,t,n){return l.useMemo(function(){var r=$6(e,t,n),i=dl(r),s=i[0],c=Xv(s)==="object"&&s.type==="mask"?s.format:null;return[i.map(function(d){return typeof d=="string"||typeof d=="function"?d:d.format}),c]},[e,t,n])}function QL(e,t,n){return typeof e[0]=="function"||n?!0:t}function zu(e){"@babel/helpers - typeof";return zu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zu(e)}function L2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ZL(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?L2(Object(n),!0).forEach(function(r){JL(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):L2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function JL(e,t,n){return t=eV(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eV(e){var t=tV(e,"string");return zu(t)=="symbol"?t:String(t)}function tV(e,t){if(zu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(zu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function nV(e,t,n,r){var i=ut(function(s,c){var d=ZL({type:t},c);if(delete d.activeIndex,!e.isValidate(s)||n&&n(s,d))return!0;if((t==="date"||t==="time")&&r){var f,p=c&&c.activeIndex===1?"end":"start",g=((f=r.disabledTime)===null||f===void 0?void 0:f.call(r,s,p,{from:d.from}))||{},h=g.disabledHours,y=g.disabledMinutes,C=g.disabledSeconds,b=g.disabledMilliseconds,x=r.disabledHours,S=r.disabledMinutes,$=r.disabledSeconds,M=h||x,w=y||S,R=C||$,T=e.getHour(s),N=e.getMinute(s),O=e.getSecond(s),P=e.getMillisecond(s);if(M&&M().includes(T)||w&&w(T).includes(N)||R&&R(T,N).includes(O)||b&&b(T,N,O).includes(P))return!0}return!1});return i}function Au(e){"@babel/helpers - typeof";return Au=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Au(e)}function V2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Bc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?V2(Object(n),!0).forEach(function(r){rV(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):V2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function rV(e,t,n){return t=oV(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oV(e){var t=aV(e,"string");return Au(t)=="symbol"?t:String(t)}function aV(e,t){if(Au(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Au(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function F2(e,t){return cV(e)||sV(e,t)||lV(e,t)||iV()}function iV(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
221
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lV(e,t){if(e){if(typeof e=="string")return k2(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return k2(e,t)}}function k2(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function sV(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,c,d=[],f=!0,p=!1;try{if(s=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;f=!1}else for(;!(f=(r=s.call(n)).done)&&(d.push(r.value),d.length!==t);f=!0);}catch(g){p=!0,i=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(p)throw i}}return d}}function cV(e){if(Array.isArray(e))return e}function Gf(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=l.useMemo(function(){var r=e&&dl(e);return t&&r&&(r[1]=r[1]||r[0]),r},[e,t]);return n}function A6(e,t){var n=e.generateConfig,r=e.locale,i=e.picker,s=i===void 0?"date":i,c=e.prefixCls,d=c===void 0?"rc-picker":c,f=e.previewValue,p=f===void 0?"hover":f,g=e.styles,h=g===void 0?{}:g,y=e.classNames,C=y===void 0?{}:y,b=e.order,x=b===void 0?!0:b,S=e.components,$=S===void 0?{}:S,M=e.inputRender,w=e.allowClear,R=e.clearIcon,T=e.needConfirm,N=e.multiple,O=e.format,P=e.inputReadOnly,D=e.disabledDate,k=e.minDate,F=e.maxDate,Y=e.showTime,G=e.value,V=e.defaultValue,B=e.pickerValue,_=e.defaultPickerValue,H=Gf(G),I=Gf(V),z=Gf(B),L=Gf(_),A=s==="date"&&Y?"datetime":s,j=A==="time"||A==="datetime",q=j||N,X=T??j,K=N6(e),J=F2(K,4),Z=J[0],re=J[1],ne=J[2],ie=J[3],fe=R6(r,re),le=l.useMemo(function(){return I6(A,ne,ie,Z,fe)},[A,ne,ie,Z,fe]),ue=l.useMemo(function(){return Bc(Bc({},e),{},{previewValue:p,prefixCls:d,locale:fe,picker:s,styles:h,classNames:C,order:x,components:Bc({input:M},$),clearIcon:YL(d,w,R),showTime:le,value:H,defaultValue:I,pickerValue:z,defaultPickerValue:L},t?.())},[e]),ge=KL(A,fe,O),oe=F2(ge,2),se=oe[0],he=oe[1],me=QL(se,P,N),xe=XL(n,r,D,k,F),Ae=nV(n,s,xe,le),we=l.useMemo(function(){return Bc(Bc({},ue),{},{needConfirm:X,inputReadOnly:me,disabledDate:xe})},[ue,X,me,xe]);return[we,A,q,se,he,Ae]}function W2(e,t){return mV(e)||fV(e,t)||dV(e,t)||uV()}function uV(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
222
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dV(e,t){if(e){if(typeof e=="string")return q2(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return q2(e,t)}}function q2(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function fV(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,c,d=[],f=!0,p=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(d.push(r.value),d.length!==t);f=!0);}catch(g){p=!0,i=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(p)throw i}}return d}}function mV(e){if(Array.isArray(e))return e}function pV(e,t,n){var r=Yt(t,e),i=W2(r,2),s=i[0],c=i[1],d=ae.useState({}),f=W2(d,2),p=f[1],g=ut(function(S){c(S),p({})}),h=ae.useRef(e),y=ae.useRef(),C=function(){Bt.cancel(y.current)},b=ut(function(){g(h.current),n&&s!==h.current&&n(h.current)}),x=ut(function(S,$){C(),h.current=S,S||$?b():y.current=Bt(b)});return ae.useEffect(function(){return C},[]),[s,x]}function gV(e,t){return vV(e)||bV(e,t)||yV(e,t)||hV()}function hV(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
223
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yV(e,t){if(e){if(typeof e=="string")return Y2(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Y2(e,t)}}function Y2(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function bV(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,c,d=[],f=!0,p=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(d.push(r.value),d.length!==t);f=!0);}catch(g){p=!0,i=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(p)throw i}}return d}}function vV(e){if(Array.isArray(e))return e}function D6(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=arguments.length>3?arguments[3]:void 0,i=n.every(function(g){return g})?!1:e,s=pV(i,t||!1,r),c=gV(s,2),d=c[0],f=c[1];function p(g){var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(!h.inherit||d)&&f(g,h.force)}return[d,p]}function j6(e){var t=l.useRef();return l.useImperativeHandle(e,function(){var n;return{nativeElement:(n=t.current)===null||n===void 0?void 0:n.nativeElement,focus:function(i){var s;(s=t.current)===null||s===void 0||s.focus(i)},blur:function(){var i;(i=t.current)===null||i===void 0||i.blur()}}}),t}function SV(e,t){return wV(e)||xV(e,t)||$V(e,t)||CV()}function CV(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
224
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $V(e,t){if(e){if(typeof e=="string")return U2(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return U2(e,t)}}function U2(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function xV(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,c,d=[],f=!0,p=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(d.push(r.value),d.length!==t);f=!0);}catch(g){p=!0,i=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(p)throw i}}return d}}function wV(e){if(Array.isArray(e))return e}function _6(e,t){return l.useMemo(function(){return e||(t?(rr(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(t).map(function(n){var r=SV(n,2),i=r[0],s=r[1];return{label:i,value:s}})):[])},[e,t])}function s1(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=l.useRef(t);r.current=t,tR(function(){if(e)r.current(e);else{var i=Bt(function(){r.current(e)},n);return function(){Bt.cancel(i)}}},[e])}function G2(e,t){return TV(e)||RV(e,t)||MV(e,t)||EV()}function EV(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
225
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function MV(e,t){if(e){if(typeof e=="string")return X2(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return X2(e,t)}}function X2(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function RV(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,c,d=[],f=!0,p=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(d.push(r.value),d.length!==t);f=!0);}catch(g){p=!0,i=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(p)throw i}}return d}}function TV(e){if(Array.isArray(e))return e}function H6(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=l.useState(0),i=G2(r,2),s=i[0],c=i[1],d=l.useState(!1),f=G2(d,2),p=f[0],g=f[1],h=l.useRef([]),y=l.useRef(null),C=l.useRef(null),b=function(R){y.current=R},x=function(R){return y.current===R},S=function(R){g(R)},$=function(R){return R&&(C.current=R),C.current},M=function(R){var T=h.current,N=new Set(T.filter(function(P){return R[P]||t[P]})),O=T[T.length-1]===0?1:0;return N.size>=2||e[O]?null:O};return s1(p||n,function(){p||(h.current=[],b(null))}),l.useEffect(function(){p&&h.current.push(s)},[p,s]),[p,S,$,s,c,M,h.current,b,x]}function Du(e){"@babel/helpers - typeof";return Du=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Du(e)}function K2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Q2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?K2(Object(n),!0).forEach(function(r){OV(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):K2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function OV(e,t,n){return t=NV(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function NV(e){var t=IV(e,"string");return Du(t)=="symbol"?t:String(t)}function IV(e,t){if(Du(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Du(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function PV(e,t){return jV(e)||DV(e,t)||AV(e,t)||zV()}function zV(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
226
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function AV(e,t){if(e){if(typeof e=="string")return Z2(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Z2(e,t)}}function Z2(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function DV(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,c,d=[],f=!0,p=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(d.push(r.value),d.length!==t);f=!0);}catch(g){p=!0,i=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(p)throw i}}return d}}function jV(e){if(Array.isArray(e))return e}function _V(e,t,n,r,i,s){var c=n[n.length-1],d=function(p,g){var h=PV(e,2),y=h[0],C=h[1],b=Q2(Q2({},g),{},{from:x6(e,n)});return c===1&&t[0]&&y&&!Tr(r,i,y,p,b.type)&&r.isAfter(y,p)||c===0&&t[1]&&C&&!Tr(r,i,C,p,b.type)&&r.isAfter(p,C)?!0:s?.(p,b)};return d}function Vy(e,t){return VV(e)||LV(e,t)||BV(e,t)||HV()}function HV(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
227
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function BV(e,t){if(e){if(typeof e=="string")return J2(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return J2(e,t)}}function J2(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function LV(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,c,d=[],f=!0,p=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(d.push(r.value),d.length!==t);f=!0);}catch(g){p=!0,i=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(p)throw i}}return d}}function VV(e){if(Array.isArray(e))return e}function Jc(e,t,n,r){switch(t){case"date":case"week":return e.addMonth(n,r);case"month":case"quarter":return e.addYear(n,r);case"year":return e.addYear(n,r*10);case"decade":return e.addYear(n,r*100);default:return n}}var Fy=[];function B6(e,t,n,r,i,s,c,d){var f=arguments.length>8&&arguments[8]!==void 0?arguments[8]:Fy,p=arguments.length>9&&arguments[9]!==void 0?arguments[9]:Fy,g=arguments.length>10&&arguments[10]!==void 0?arguments[10]:Fy,h=arguments.length>11?arguments[11]:void 0,y=arguments.length>12?arguments[12]:void 0,C=arguments.length>13?arguments[13]:void 0,b=c==="time",x=s||0,S=function(H){var I=e.getNow();return b&&(I=rp(e,I)),f[H]||n[H]||I},$=Vy(p,2),M=$[0],w=$[1],R=Yt(function(){return S(0)},M),T=Vy(R,2),N=T[0],O=T[1],P=Yt(function(){return S(1)},w),D=Vy(P,2),k=D[0],F=D[1],Y=l.useMemo(function(){var _=[N,k][x];return b?_:rp(e,_,g[x])},[b,N,k,x,e,g]),G=function(H){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"panel",z=[O,F][x];z(H);var L=[N,k];L[x]=H,h&&(!Tr(e,t,N,L[0],c)||!Tr(e,t,k,L[1],c))&&h(L,{source:I,range:x===1?"end":"start",mode:r})},V=function(H,I){if(d){var z={date:"month",week:"month",month:"year",quarter:"year"},L=z[c];if(L&&!Tr(e,t,H,I,L))return Jc(e,c,I,-1);if(c==="year"&&H){var A=Math.floor(e.getYear(H)/10),j=Math.floor(e.getYear(I)/10);if(A!==j)return Jc(e,c,I,-1)}}return I},B=l.useRef(null);return It(function(){if(i&&!f[x]){var _=b?null:e.getNow();if(B.current!==null&&B.current!==x?_=[N,k][x^1]:n[x]?_=x===0?n[0]:V(n[0],n[1]):n[x^1]&&(_=n[x^1]),_){y&&e.isAfter(y,_)&&(_=y);var H=d?Jc(e,c,_,1):_;C&&e.isAfter(H,C)&&(_=d?Jc(e,c,C,-1):C),G(_,"reset")}}},[i,x,n[x]]),l.useEffect(function(){i?B.current=x:B.current=null},[i,x]),It(function(){i&&f&&f[x]&&G(f[x],"reset")},[i,x]),[Y,G]}function FV(e,t){return YV(e)||qV(e,t)||WV(e,t)||kV()}function kV(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
228
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function WV(e,t){if(e){if(typeof e=="string")return eM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return eM(e,t)}}function eM(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function qV(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,c,d=[],f=!0,p=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(d.push(r.value),d.length!==t);f=!0);}catch(g){p=!0,i=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(p)throw i}}return d}}function YV(e){if(Array.isArray(e))return e}function L6(e,t){var n=l.useRef(e),r=l.useState({}),i=FV(r,2),s=i[1],c=function(p){return p&&t!==void 0?t:n.current},d=function(p){n.current=p,s({})};return[c,d,c(!0)]}function Ca(e,t){return XV(e)||GV(e,t)||V6(e,t)||UV()}function UV(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
229
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function GV(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,c,d=[],f=!0,p=!1;try{if(s=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;f=!1}else for(;!(f=(r=s.call(n)).done)&&(d.push(r.value),d.length!==t);f=!0);}catch(g){p=!0,i=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(p)throw i}}return d}}function XV(e){if(Array.isArray(e))return e}function c1(e){return ZV(e)||QV(e)||V6(e)||KV()}function KV(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
230
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function V6(e,t){if(e){if(typeof e=="string")return Kv(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Kv(e,t)}}function QV(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ZV(e){if(Array.isArray(e))return Kv(e)}function Kv(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var JV=[];function F6(e,t,n){var r=function(c){return c.map(function(d){return nr(d,{generateConfig:e,locale:t,format:n[0]})})},i=function(c,d){for(var f=Math.max(c.length,d.length),p=-1,g=0;g<f;g+=1){var h=c[g]||null,y=d[g]||null;if(h!==y&&!z6(e,h,y)){p=g;break}}return[p<0,p!==0]};return[r,i]}function k6(e,t){return c1(e).sort(function(n,r){return t.isAfter(n,r)?1:-1})}function eF(e){var t=L6(e),n=Ca(t,2),r=n[0],i=n[1],s=ut(function(){i(e)});return l.useEffect(function(){s()},[e]),[r,i]}function W6(e,t,n,r,i,s,c,d,f){var p=Yt(s,c),g=Ca(p,2),h=g[0],y=g[1],C=h||JV,b=eF(C),x=Ca(b,2),S=x[0],$=x[1],M=F6(e,t,n),w=Ca(M,2),R=w[0],T=w[1],N=ut(function(P){var D=c1(P);if(r)for(var k=0;k<2;k+=1)D[k]=D[k]||null;else i&&(D=k6(D.filter(function(_){return _}),e));var F=T(S(),D),Y=Ca(F,2),G=Y[0],V=Y[1];if(!G&&($(D),d)){var B=R(D);d(D,B,{range:V?"end":"start"})}}),O=function(){f&&f(S())};return[C,y,S,N,O]}function q6(e,t,n,r,i,s,c,d,f,p){var g=e.generateConfig,h=e.locale,y=e.picker,C=e.onChange,b=e.allowEmpty,x=e.order,S=s.some(function(G){return G})?!1:x,$=F6(g,h,c),M=Ca($,2),w=M[0],R=M[1],T=L6(t),N=Ca(T,2),O=N[0],P=N[1],D=ut(function(){P(t)});l.useEffect(function(){D()},[t]);var k=ut(function(G){var V=G===null,B=c1(G||O());if(V)for(var _=Math.max(s.length,B.length),H=0;H<_;H+=1)s[H]||(B[H]=null);S&&B[0]&&B[1]&&(B=k6(B,g)),i(B);var I=B,z=Ca(I,2),L=z[0],A=z[1],j=!L,q=!A,X=b?(!j||b[0])&&(!q||b[1]):!0,K=!x||j||q||Tr(g,h,L,A,y)||g.isAfter(A,L),J=(s[0]||!L||!p(L,{activeIndex:0}))&&(s[1]||!A||!p(A,{from:L,activeIndex:1})),Z=V||X&&K&&J;if(Z){n(B);var re=R(B,t),ne=Ca(re,1),ie=ne[0];if(C&&!ie){var fe=B.every(function(le){return!le});C(V&&fe?null:B,fe?null:w(B))}}return Z}),F=ut(function(G,V){var B=su(O(),G,r()[G]);P(B),V&&k()}),Y=!d&&!f;return s1(!Y,function(){Y&&(k(),i(t),D())},2),[F,k]}function Y6(e,t,n,r,i){return t!=="date"&&t!=="time"?!1:n!==void 0?n:r!==void 0?r:!i&&(e==="date"||e==="time")}function tF(e){return aF(e)||oF(e)||rF(e)||nF()}function nF(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
231
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rF(e,t){if(e){if(typeof e=="string")return Qv(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Qv(e,t)}}function oF(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function aF(e){if(Array.isArray(e))return Qv(e)}function Qv(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function iF(e,t,n,r,i,s){var c=e;function d(h,y,C){var b=s[h](c),x=C.find(function(w){return w.value===b});if(!x||x.disabled){var S=C.filter(function(w){return!w.disabled}),$=tF(S).reverse(),M=$.find(function(w){return w.value<=b})||S[0];M&&(b=M.value,c=s[y](c,b))}return b}var f=d("getHour","setHour",t()),p=d("getMinute","setMinute",n(f)),g=d("getSecond","setSecond",r(f,p));return d("getMillisecond","setMillisecond",i(f,p,g)),c}function ju(e){"@babel/helpers - typeof";return ju=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ju(e)}function tM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function nM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?tM(Object(n),!0).forEach(function(r){lF(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function lF(e,t,n){return t=sF(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sF(e){var t=cF(e,"string");return ju(t)=="symbol"?t:String(t)}function cF(e,t){if(ju(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ju(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Xf(e,t){return mF(e)||fF(e,t)||dF(e,t)||uF()}function uF(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
232
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dF(e,t){if(e){if(typeof e=="string")return rM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return rM(e,t)}}function rM(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function fF(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,c,d=[],f=!0,p=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(d.push(r.value),d.length!==t);f=!0);}catch(g){p=!0,i=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(p)throw i}}return d}}function mF(e){if(Array.isArray(e))return e}function Kf(){return[]}function Qf(e,t){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:2,c=[],d=n>=1?n|0:1,f=e;f<=t;f+=d){var p=i.includes(f);(!p||!r)&&c.push({label:o1(f,s),value:f,disabled:p})}return c}function u1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=t||{},i=r.use12Hours,s=r.hourStep,c=s===void 0?1:s,d=r.minuteStep,f=d===void 0?1:d,p=r.secondStep,g=p===void 0?1:p,h=r.millisecondStep,y=h===void 0?100:h,C=r.hideDisabledOptions,b=r.disabledTime,x=r.disabledHours,S=r.disabledMinutes,$=r.disabledSeconds,M=l.useMemo(function(){return n||e.getNow()},[n,e]),w=l.useCallback(function(I){var z=b?.(I)||{};return[z.disabledHours||x||Kf,z.disabledMinutes||S||Kf,z.disabledSeconds||$||Kf,z.disabledMilliseconds||Kf]},[b,x,S,$]),R=l.useMemo(function(){return w(M)},[M,w]),T=Xf(R,4),N=T[0],O=T[1],P=T[2],D=T[3],k=l.useCallback(function(I,z,L,A){var j=Qf(0,23,c,C,I()),q=i?j.map(function(Z){return nM(nM({},Z),{},{label:o1(Z.value%12||12,2)})}):j,X=function(re){return Qf(0,59,f,C,z(re))},K=function(re,ne){return Qf(0,59,g,C,L(re,ne))},J=function(re,ne,ie){return Qf(0,999,y,C,A(re,ne,ie),3)};return[q,X,K,J]},[C,c,i,y,f,g]),F=l.useMemo(function(){return k(N,O,P,D)},[k,N,O,P,D]),Y=Xf(F,4),G=Y[0],V=Y[1],B=Y[2],_=Y[3],H=function(z,L){var A=function(){return G},j=V,q=B,X=_;if(L){var K=w(L),J=Xf(K,4),Z=J[0],re=J[1],ne=J[2],ie=J[3],fe=k(Z,re,ne,ie),le=Xf(fe,4),ue=le[0],ge=le[1],oe=le[2],se=le[3];A=function(){return ue},j=ge,q=oe,X=se}var he=iF(z,A,j,q,X,e);return he};return[H,G,V,B,_]}function pF(e,t){return bF(e)||yF(e,t)||hF(e,t)||gF()}function gF(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
233
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hF(e,t){if(e){if(typeof e=="string")return oM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return oM(e,t)}}function oM(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function yF(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,c,d=[],f=!0,p=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(d.push(r.value),d.length!==t);f=!0);}catch(g){p=!0,i=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(p)throw i}}return d}}function bF(e){if(Array.isArray(e))return e}function vF(e){var t=e.mode,n=e.internalMode,r=e.renderExtraFooter,i=e.showNow,s=e.showTime,c=e.onSubmit,d=e.onNow,f=e.invalid,p=e.needConfirm,g=e.generateConfig,h=e.disabledDate,y=l.useContext(jo),C=y.prefixCls,b=y.locale,x=y.button,S=x===void 0?"button":x,$=y.classNames,M=y.styles,w=g.getNow(),R=u1(g,s,w),T=pF(R,1),N=T[0],O=r?.(t),P=h(w,{type:t}),D=function(){if(!P){var _=N(w);d(_)}},k="".concat(C,"-now"),F="".concat(k,"-btn"),Y=i&&l.createElement("li",{className:k},l.createElement("a",{className:Q(F,P&&"".concat(F,"-disabled")),"aria-disabled":P,onClick:D},n==="date"?b.today:b.now)),G=p&&l.createElement("li",{className:"".concat(C,"-ok")},l.createElement(S,{disabled:f,onClick:c},b.ok)),V=(Y||G)&&l.createElement("ul",{className:"".concat(C,"-ranges")},Y,G);return!O&&!V?null:l.createElement("div",{className:Q("".concat(C,"-footer"),$.popup.footer),style:M.popup.footer},O&&l.createElement("div",{className:"".concat(C,"-footer-extra")},O),V)}function aM(e){return xF(e)||$F(e)||CF(e)||SF()}function SF(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
234
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function CF(e,t){if(e){if(typeof e=="string")return Zv(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Zv(e,t)}}function $F(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function xF(e){if(Array.isArray(e))return Zv(e)}function Zv(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function U6(e,t,n){function r(i,s){var c=i.findIndex(function(f){return Tr(e,t,f,s,n)});if(c===-1)return[].concat(aM(i),[s]);var d=aM(i);return d.splice(c,1),d}return r}var G6=l.createContext(null),fl=l.createContext(null);function Yp(){return l.useContext(fl)}function Bs(e,t){var n=e.prefixCls,r=e.generateConfig,i=e.locale,s=e.disabledDate,c=e.minDate,d=e.maxDate,f=e.cellRender,p=e.hoverValue,g=e.hoverRangeValue,h=e.onHover,y=e.values,C=e.pickerValue,b=e.onSelect,x=e.prevIcon,S=e.nextIcon,$=e.superPrevIcon,M=e.superNextIcon,w=l.useContext(G6),R=w.classNames,T=w.styles,N=r.getNow(),O={now:N,values:y,pickerValue:C,prefixCls:n,classNames:R,styles:T,disabledDate:s,minDate:c,maxDate:d,cellRender:f,hoverValue:p,hoverRangeValue:g,onHover:h,locale:i,generateConfig:r,onSelect:b,panelType:t,prevIcon:x,nextIcon:S,superPrevIcon:$,superNextIcon:M};return[O,N]}var si=l.createContext({});function _u(e){"@babel/helpers - typeof";return _u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_u(e)}function iM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function wF(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?iM(Object(n),!0).forEach(function(r){Bi(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Bi(e,t,n){return t=EF(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function EF(e){var t=MF(e,"string");return _u(t)=="symbol"?t:String(t)}function MF(e,t){if(_u(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(_u(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function RF(e,t){return IF(e)||NF(e,t)||OF(e,t)||TF()}function TF(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
235
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function OF(e,t){if(e){if(typeof e=="string")return lM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return lM(e,t)}}function lM(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function NF(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,c,d=[],f=!0,p=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(d.push(r.value),d.length!==t);f=!0);}catch(g){p=!0,i=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(p)throw i}}return d}}function IF(e){if(Array.isArray(e))return e}function wd(e){for(var t=e.rowNum,n=e.colNum,r=e.baseDate,i=e.getCellDate,s=e.prefixColumn,c=e.rowClassName,d=e.titleFormat,f=e.getCellText,p=e.getCellClassName,g=e.headerCells,h=e.cellSelection,y=h===void 0?!0:h,C=e.disabledDate,b=Yp(),x=b.prefixCls,S=b.classNames,$=b.styles,M=b.panelType,w=b.now,R=b.disabledDate,T=b.cellRender,N=b.onHover,O=b.hoverValue,P=b.hoverRangeValue,D=b.generateConfig,k=b.values,F=b.locale,Y=b.onSelect,G=C||R,V="".concat(x,"-cell"),B=l.useContext(si),_=B.onCellDblClick,H=function(K){return k.some(function(J){return J&&Tr(D,F,K,J,M)})},I=[],z=0;z<t;z+=1){for(var L=[],A=void 0,j=function(){var K=z*n+q,J=i(r,K),Z=G?.(J,{type:M});q===0&&(A=J,s&&L.push(s(A)));var re=!1,ne=!1,ie=!1;if(y&&P){var fe=RF(P,2),le=fe[0],ue=fe[1];re=qp(D,le,ue,J),ne=Tr(D,F,J,le,M),ie=Tr(D,F,J,ue,M)}var ge=d?nr(J,{locale:F,format:d,generateConfig:D}):void 0,oe=l.createElement("div",{className:"".concat(V,"-inner")},f(J));L.push(l.createElement("td",{key:q,title:ge,className:Q(V,S.item,wF(Bi(Bi(Bi(Bi(Bi(Bi({},"".concat(V,"-disabled"),Z),"".concat(V,"-hover"),(O||[]).some(function(se){return Tr(D,F,J,se,M)})),"".concat(V,"-in-range"),re&&!ne&&!ie),"".concat(V,"-range-start"),ne),"".concat(V,"-range-end"),ie),"".concat(x,"-cell-selected"),!P&&M!=="week"&&H(J)),p(J))),style:$.item,onClick:function(){Z||Y(J)},onDoubleClick:function(){!Z&&_&&_()},onMouseEnter:function(){Z||N?.(J)},onMouseLeave:function(){Z||N?.(null)}},T?T(J,{prefixCls:x,originNode:oe,today:w,type:M,locale:F}):oe))},q=0;q<n;q+=1)j();I.push(l.createElement("tr",{key:z,className:c?.(A)},L))}return l.createElement("div",{className:Q("".concat(x,"-body"),S.body),style:$.body},l.createElement("table",{className:Q("".concat(x,"-content"),S.content),style:$.content},g&&l.createElement("thead",null,l.createElement("tr",null,g)),l.createElement("tbody",null,I)))}var Zf={visibility:"hidden"};function Ls(e){var t=e.offset,n=e.superOffset,r=e.onChange,i=e.getStart,s=e.getEnd,c=e.children,d=Yp(),f=d.prefixCls,p=d.classNames,g=d.styles,h=d.prevIcon,y=h===void 0?"‹":h,C=d.nextIcon,b=C===void 0?"›":C,x=d.superPrevIcon,S=x===void 0?"«":x,$=d.superNextIcon,M=$===void 0?"»":$,w=d.minDate,R=d.maxDate,T=d.generateConfig,N=d.locale,O=d.pickerValue,P=d.panelType,D="".concat(f,"-header"),k=l.useContext(si),F=k.hidePrev,Y=k.hideNext,G=k.hideHeader,V=l.useMemo(function(){if(!w||!t||!s)return!1;var X=s(t(-1,O));return!Uf(T,N,X,w,P)},[w,t,O,s,T,N,P]),B=l.useMemo(function(){if(!w||!n||!s)return!1;var X=s(n(-1,O));return!Uf(T,N,X,w,P)},[w,n,O,s,T,N,P]),_=l.useMemo(function(){if(!R||!t||!i)return!1;var X=i(t(1,O));return!Uf(T,N,R,X,P)},[R,t,O,i,T,N,P]),H=l.useMemo(function(){if(!R||!n||!i)return!1;var X=i(n(1,O));return!Uf(T,N,R,X,P)},[R,n,O,i,T,N,P]),I=function(K){t&&r(t(K,O))},z=function(K){n&&r(n(K,O))};if(G)return null;var L="".concat(D,"-prev-btn"),A="".concat(D,"-next-btn"),j="".concat(D,"-super-prev-btn"),q="".concat(D,"-super-next-btn");return l.createElement("div",{className:Q(D,p.header),style:g.header},n&&l.createElement("button",{type:"button","aria-label":N.previousYear,onClick:function(){return z(-1)},tabIndex:-1,className:Q(j,B&&"".concat(j,"-disabled")),disabled:B,style:F?Zf:{}},S),t&&l.createElement("button",{type:"button","aria-label":N.previousMonth,onClick:function(){return I(-1)},tabIndex:-1,className:Q(L,V&&"".concat(L,"-disabled")),disabled:V,style:F?Zf:{}},y),l.createElement("div",{className:"".concat(D,"-view")},c),t&&l.createElement("button",{type:"button","aria-label":N.nextMonth,onClick:function(){return I(1)},tabIndex:-1,className:Q(A,_&&"".concat(A,"-disabled")),disabled:_,style:Y?Zf:{}},b),n&&l.createElement("button",{type:"button","aria-label":N.nextYear,onClick:function(){return z(1)},tabIndex:-1,className:Q(q,H&&"".concat(q,"-disabled")),disabled:H,style:Y?Zf:{}},M))}function Hu(e){"@babel/helpers - typeof";return Hu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Hu(e)}function Jv(){return Jv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Jv.apply(this,arguments)}function ky(e,t,n){return t=PF(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function PF(e){var t=zF(e,"string");return Hu(t)=="symbol"?t:String(t)}function zF(e,t){if(Hu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Hu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function AF(e,t){return HF(e)||_F(e,t)||jF(e,t)||DF()}function DF(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
236
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jF(e,t){if(e){if(typeof e=="string")return sM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return sM(e,t)}}function sM(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function _F(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,c,d=[],f=!0,p=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(d.push(r.value),d.length!==t);f=!0);}catch(g){p=!0,i=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(p)throw i}}return d}}function HF(e){if(Array.isArray(e))return e}function Up(e){var t=e.prefixCls,n=e.panelName,r=n===void 0?"date":n,i=e.locale,s=e.generateConfig,c=e.pickerValue,d=e.onPickerValueChange,f=e.onModeChange,p=e.mode,g=p===void 0?"date":p,h=e.disabledDate,y=e.onSelect,C=e.onHover,b=e.showWeek,x="".concat(t,"-").concat(r,"-panel"),S="".concat(t,"-cell"),$=g==="week",M=Bs(e,g),w=AF(M,2),R=w[0],T=w[1],N=s.locale.getWeekFirstDay(i.locale),O=s.setDate(c,1),P=GL(i.locale,s,O),D=s.getMonth(c),k=b===void 0?$:b,F=k?function(j){var q=h?.(j,{type:"week"});return l.createElement("td",{key:"week",className:Q(S,"".concat(S,"-week"),ky({},"".concat(S,"-disabled"),q)),onClick:function(){q||y(j)},onMouseEnter:function(){q||C?.(j)},onMouseLeave:function(){q||C?.(null)}},l.createElement("div",{className:"".concat(S,"-inner")},s.locale.getWeek(i.locale,j)))}:null,Y=[],G=i.shortWeekDays||(s.locale.getShortWeekDays?s.locale.getShortWeekDays(i.locale):[]);F&&Y.push(l.createElement("th",{key:"empty"},l.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},i.week)));for(var V=0;V<Ly;V+=1)Y.push(l.createElement("th",{key:V},G[(V+N)%Ly]));var B=function(q,X){return s.addDate(q,X)},_=function(q){return nr(q,{locale:i,format:i.cellDateFormat,generateConfig:s})},H=function(q){var X=ky(ky({},"".concat(t,"-cell-in-view"),i1(s,q,c)),"".concat(t,"-cell-today"),l1(s,q,T));return X},I=i.shortMonths||(s.locale.getShortMonths?s.locale.getShortMonths(i.locale):[]),z=l.createElement("button",{type:"button","aria-label":i.yearSelect,key:"year",onClick:function(){f("year",c)},tabIndex:-1,className:"".concat(t,"-year-btn")},nr(c,{locale:i,format:i.yearFormat,generateConfig:s})),L=l.createElement("button",{type:"button","aria-label":i.monthSelect,key:"month",onClick:function(){f("month",c)},tabIndex:-1,className:"".concat(t,"-month-btn")},i.monthFormat?nr(c,{locale:i,format:i.monthFormat,generateConfig:s}):I[D]),A=i.monthBeforeYear?[L,z]:[z,L];return l.createElement(fl.Provider,{value:R},l.createElement("div",{className:Q(x,b&&"".concat(x,"-show-week"))},l.createElement(Ls,{offset:function(q){return s.addMonth(c,q)},superOffset:function(q){return s.addYear(c,q)},onChange:d,getStart:function(q){return s.setDate(q,1)},getEnd:function(q){var X=s.setDate(q,1);return X=s.addMonth(X,1),s.addDate(X,-1)}},A),l.createElement(wd,Jv({titleFormat:i.fieldDateFormat},e,{colNum:Ly,rowNum:6,baseDate:P,headerCells:Y,getCellDate:B,getCellText:_,getCellClassName:H,prefixColumn:F,cellSelection:!$}))))}var BF=1/3;function LF(e,t){var n=l.useRef(!1),r=l.useRef(null),i=l.useRef(null),s=function(){return n.current},c=function(){Bt.cancel(r.current),n.current=!1},d=l.useRef(),f=function(){var h=e.current;if(i.current=null,d.current=0,h){var y=h.querySelector('[data-value="'.concat(t,'"]')),C=h.querySelector("li"),b=function x(){c(),n.current=!0,d.current+=1;var S=h.scrollTop,$=C.offsetTop,M=y.offsetTop,w=M-$;if(M===0&&y!==C||!Mp(h)){d.current<=5&&(r.current=Bt(x));return}var R=S+(w-S)*BF,T=Math.abs(w-R);if(i.current!==null&&i.current<T){c();return}if(i.current=T,T<=1){h.scrollTop=w,c();return}h.scrollTop=R,r.current=Bt(x)};y&&C&&b()}},p=ut(f);return[p,c,s]}function Bu(e){"@babel/helpers - typeof";return Bu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bu(e)}function cM(e,t,n){return t=VF(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function VF(e){var t=FF(e,"string");return Bu(t)=="symbol"?t:String(t)}function FF(e,t){if(Bu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Bu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function kF(e){return YF(e)||qF(e)||X6(e)||WF()}function WF(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
237
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qF(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function YF(e){if(Array.isArray(e))return e0(e)}function UF(e,t){return KF(e)||XF(e,t)||X6(e,t)||GF()}function GF(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
238
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function X6(e,t){if(e){if(typeof e=="string")return e0(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return e0(e,t)}}function e0(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function XF(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,c,d=[],f=!0,p=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(d.push(r.value),d.length!==t);f=!0);}catch(g){p=!0,i=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(p)throw i}}return d}}function KF(e){if(Array.isArray(e))return e}var QF=300;function ZF(e){return e.map(function(t){var n=t.value,r=t.label,i=t.disabled;return[n,r,i].join(",")}).join(";")}function Lc(e){var t=e.units,n=e.value,r=e.optionalValue,i=e.type,s=e.onChange,c=e.onHover,d=e.onDblClick,f=e.changeOnScroll,p=Yp(),g=p.prefixCls,h=p.cellRender,y=p.now,C=p.locale,b=p.classNames,x=p.styles,S="".concat(g,"-time-panel"),$="".concat(g,"-time-panel-cell"),M=l.useRef(null),w=l.useRef(),R=function(){clearTimeout(w.current)},T=LF(M,n??r),N=UF(T,3),O=N[0],P=N[1],D=N[2];It(function(){return O(),R(),function(){P(),R()}},[n,r,ZF(t)]);var k=function(G){R();var V=G.target;!D()&&f&&(w.current=setTimeout(function(){var B=M.current,_=B.querySelector("li").offsetTop,H=Array.from(B.querySelectorAll("li")),I=H.map(function(q){return q.offsetTop-_}),z=I.map(function(q,X){return t[X].disabled?Number.MAX_SAFE_INTEGER:Math.abs(q-V.scrollTop)}),L=Math.min.apply(Math,kF(z)),A=z.findIndex(function(q){return q===L}),j=t[A];j&&!j.disabled&&s(j.value)},QF))},F="".concat(S,"-column");return l.createElement("ul",{className:F,ref:M,"data-type":i,onScroll:k},t.map(function(Y){var G=Y.label,V=Y.value,B=Y.disabled,_=l.createElement("div",{className:"".concat($,"-inner")},G);return l.createElement("li",{key:V,style:x.item,className:Q($,b.item,cM(cM({},"".concat($,"-selected"),n===V),"".concat($,"-disabled"),B)),onClick:function(){B||s(V)},onDoubleClick:function(){!B&&d&&d()},onMouseEnter:function(){c(V)},onMouseLeave:function(){c(null)},"data-value":V},h?h(V,{prefixCls:g,originNode:_,today:y,type:"time",subType:i,locale:C}):_)}))}function ki(){return ki=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ki.apply(this,arguments)}function Vc(e,t){return nk(e)||tk(e,t)||ek(e,t)||JF()}function JF(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
239
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ek(e,t){if(e){if(typeof e=="string")return uM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return uM(e,t)}}function uM(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function tk(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,c,d=[],f=!0,p=!1;try{if(s=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;f=!1}else for(;!(f=(r=s.call(n)).done)&&(d.push(r.value),d.length!==t);f=!0);}catch(g){p=!0,i=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(p)throw i}}return d}}function nk(e){if(Array.isArray(e))return e}function Ja(e){return e<12}function rk(e){var t=e.showHour,n=e.showMinute,r=e.showSecond,i=e.showMillisecond,s=e.use12Hours,c=e.changeOnScroll,d=Yp(),f=d.prefixCls,p=d.classNames,g=d.styles,h=d.values,y=d.generateConfig,C=d.locale,b=d.onSelect,x=d.onHover,S=x===void 0?function(){}:x,$=d.pickerValue,M=h?.[0]||null,w=l.useContext(si),R=w.onCellDblClick,T=u1(y,e,M),N=Vc(T,5),O=N[0],P=N[1],D=N[2],k=N[3],F=N[4],Y=function(Ie){var Ke=M&&y[Ie](M),ot=$&&y[Ie]($);return[Ke,ot]},G=Y("getHour"),V=Vc(G,2),B=V[0],_=V[1],H=Y("getMinute"),I=Vc(H,2),z=I[0],L=I[1],A=Y("getSecond"),j=Vc(A,2),q=j[0],X=j[1],K=Y("getMillisecond"),J=Vc(K,2),Z=J[0],re=J[1],ne=B===null?null:Ja(B)?"am":"pm",ie=l.useMemo(function(){return s?Ja(B)?P.filter(function(Xe){return Ja(Xe.value)}):P.filter(function(Xe){return!Ja(Xe.value)}):P},[B,P,s]),fe=function(Ie,Ke){var ot,at=Ie.filter(function(lt){return!lt.disabled});return Ke??(at==null||(ot=at[0])===null||ot===void 0?void 0:ot.value)},le=fe(P,B),ue=l.useMemo(function(){return D(le)},[D,le]),ge=fe(ue,z),oe=l.useMemo(function(){return k(le,ge)},[k,le,ge]),se=fe(oe,q),he=l.useMemo(function(){return F(le,ge,se)},[F,le,ge,se]),me=fe(he,Z),xe=l.useMemo(function(){if(!s)return[];var Xe=y.getNow(),Ie=y.setHour(Xe,6),Ke=y.setHour(Xe,18),ot=function(lt,St){var Ct=C.cellMeridiemFormat;return Ct?nr(lt,{generateConfig:y,locale:C,format:Ct}):St};return[{label:ot(Ie,"AM"),value:"am",disabled:P.every(function(at){return at.disabled||!Ja(at.value)})},{label:ot(Ke,"PM"),value:"pm",disabled:P.every(function(at){return at.disabled||Ja(at.value)})}]},[P,s,y,C]),Ae=function(Ie){var Ke=O(Ie);b(Ke)},we=l.useMemo(function(){var Xe=M||$||y.getNow(),Ie=function(ot){return ot!=null};return Ie(B)?(Xe=y.setHour(Xe,B),Xe=y.setMinute(Xe,z),Xe=y.setSecond(Xe,q),Xe=y.setMillisecond(Xe,Z)):Ie(_)?(Xe=y.setHour(Xe,_),Xe=y.setMinute(Xe,L),Xe=y.setSecond(Xe,X),Xe=y.setMillisecond(Xe,re)):Ie(le)&&(Xe=y.setHour(Xe,le),Xe=y.setMinute(Xe,ge),Xe=y.setSecond(Xe,se),Xe=y.setMillisecond(Xe,me)),Xe},[M,$,B,z,q,Z,le,ge,se,me,_,L,X,re,y]),$e=function(Ie,Ke){return Ie===null?null:y[Ke](we,Ie)},de=function(Ie){return $e(Ie,"setHour")},be=function(Ie){return $e(Ie,"setMinute")},Me=function(Ie){return $e(Ie,"setSecond")},Oe=function(Ie){return $e(Ie,"setMillisecond")},Le=function(Ie){return Ie===null?null:Ie==="am"&&!Ja(B)?y.setHour(we,B-12):Ie==="pm"&&Ja(B)?y.setHour(we,B+12):we},Ge=function(Ie){Ae(de(Ie))},et=function(Ie){Ae(be(Ie))},ze=function(Ie){Ae(Me(Ie))},_e=function(Ie){Ae(Oe(Ie))},De=function(Ie){Ae(Le(Ie))},Ue=function(Ie){S(de(Ie))},Ne=function(Ie){S(be(Ie))},Se=function(Ie){S(Me(Ie))},Be=function(Ie){S(Oe(Ie))},Je=function(Ie){S(Le(Ie))},We={onDblClick:R,changeOnScroll:c};return l.createElement("div",{className:Q("".concat(f,"-content"),p.content),style:g.content},t&&l.createElement(Lc,ki({units:ie,value:B,optionalValue:_,type:"hour",onChange:Ge,onHover:Ue},We)),n&&l.createElement(Lc,ki({units:ue,value:z,optionalValue:L,type:"minute",onChange:et,onHover:Ne},We)),r&&l.createElement(Lc,ki({units:oe,value:q,optionalValue:X,type:"second",onChange:ze,onHover:Se},We)),i&&l.createElement(Lc,ki({units:he,value:Z,optionalValue:re,type:"millisecond",onChange:_e,onHover:Be},We)),s&&l.createElement(Lc,ki({units:xe,value:ne,type:"meridiem",onChange:De,onHover:Je},We)))}function ok(e,t){return sk(e)||lk(e,t)||ik(e,t)||ak()}function ak(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
240
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ik(e,t){if(e){if(typeof e=="string")return dM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return dM(e,t)}}function dM(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function lk(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,c,d=[],f=!0,p=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(d.push(r.value),d.length!==t);f=!0);}catch(g){p=!0,i=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(p)throw i}}return d}}function sk(e){if(Array.isArray(e))return e}function K6(e){var t=e.prefixCls,n=e.value,r=e.locale,i=e.generateConfig,s=e.showTime,c=s||{},d=c.format,f="".concat(t,"-time-panel"),p=Bs(e,"time"),g=ok(p,1),h=g[0];return l.createElement(fl.Provider,{value:h},l.createElement("div",{className:Q(f)},l.createElement(Ls,null,n?nr(n,{locale:r,format:d,generateConfig:i}):" "),l.createElement(rk,s)))}function t0(){return t0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},t0.apply(this,arguments)}function ck(e,t){return mk(e)||fk(e,t)||dk(e,t)||uk()}function uk(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
241
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dk(e,t){if(e){if(typeof e=="string")return fM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return fM(e,t)}}function fM(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function fk(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,c,d=[],f=!0,p=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(d.push(r.value),d.length!==t);f=!0);}catch(g){p=!0,i=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(p)throw i}}return d}}function mk(e){if(Array.isArray(e))return e}function pk(e){var t=e.prefixCls,n=e.generateConfig,r=e.showTime,i=e.onSelect,s=e.value,c=e.pickerValue,d=e.onHover,f="".concat(t,"-datetime-panel"),p=u1(n,r),g=ck(p,1),h=g[0],y=function(S){return s?rp(n,S,s):rp(n,S,c)},C=function(S){d?.(S&&y(S))},b=function(S){var $=y(S);i(h($,$))};return l.createElement("div",{className:f},l.createElement(Up,t0({},e,{onSelect:b,onHover:C})),l.createElement(K6,e))}function Lu(e){"@babel/helpers - typeof";return Lu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Lu(e)}function n0(){return n0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n0.apply(this,arguments)}function gk(e,t,n){return t=hk(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hk(e){var t=yk(e,"string");return Lu(t)=="symbol"?t:String(t)}function yk(e,t){if(Lu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Lu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function bk(e,t){return $k(e)||Ck(e,t)||Sk(e,t)||vk()}function vk(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
242
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Sk(e,t){if(e){if(typeof e=="string")return mM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return mM(e,t)}}function mM(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ck(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,c,d=[],f=!0,p=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(d.push(r.value),d.length!==t);f=!0);}catch(g){p=!0,i=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(p)throw i}}return d}}function $k(e){if(Array.isArray(e))return e}function xk(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,i=e.pickerValue,s=e.disabledDate,c=e.onPickerValueChange,d="".concat(t,"-decade-panel"),f=Bs(e,"decade"),p=bk(f,1),g=p[0],h=function(N){var O=Math.floor(r.getYear(N)/100)*100;return r.setYear(N,O)},y=function(N){var O=h(N);return r.addYear(O,99)},C=h(i),b=y(i),x=r.addYear(C,-10),S=function(N,O){return r.addYear(N,O*10)},$=function(N){var O=n.cellYearFormat,P=nr(N,{locale:n,format:O,generateConfig:r}),D=nr(r.addYear(N,9),{locale:n,format:O,generateConfig:r});return"".concat(P,"-").concat(D)},M=function(N){return gk({},"".concat(t,"-cell-in-view"),Gv(r,N,C)||Gv(r,N,b)||qp(r,C,b,N))},w=s?function(T,N){var O=r.setDate(T,1),P=r.setMonth(O,0),D=r.setYear(P,Math.floor(r.getYear(P)/10)*10),k=r.addYear(D,10),F=r.addDate(k,-1);return s(D,N)&&s(F,N)}:null,R="".concat(nr(C,{locale:n,format:n.yearFormat,generateConfig:r}),"-").concat(nr(b,{locale:n,format:n.yearFormat,generateConfig:r}));return l.createElement(fl.Provider,{value:g},l.createElement("div",{className:d},l.createElement(Ls,{superOffset:function(N){return r.addYear(i,N*100)},onChange:c,getStart:h,getEnd:y},R),l.createElement(wd,n0({},e,{disabledDate:w,colNum:3,rowNum:4,baseDate:x,getCellDate:S,getCellText:$,getCellClassName:M}))))}function Vu(e){"@babel/helpers - typeof";return Vu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vu(e)}function r0(){return r0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r0.apply(this,arguments)}function wk(e,t,n){return t=Ek(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ek(e){var t=Mk(e,"string");return Vu(t)=="symbol"?t:String(t)}function Mk(e,t){if(Vu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Vu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Rk(e,t){return Ik(e)||Nk(e,t)||Ok(e,t)||Tk()}function Tk(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
243
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ok(e,t){if(e){if(typeof e=="string")return pM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return pM(e,t)}}function pM(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Nk(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,c,d=[],f=!0,p=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(d.push(r.value),d.length!==t);f=!0);}catch(g){p=!0,i=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(p)throw i}}return d}}function Ik(e){if(Array.isArray(e))return e}function Pk(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,i=e.pickerValue,s=e.disabledDate,c=e.onPickerValueChange,d=e.onModeChange,f="".concat(t,"-month-panel"),p=Bs(e,"month"),g=Rk(p,1),h=g[0],y=r.setMonth(i,0),C=n.shortMonths||(r.locale.getShortMonths?r.locale.getShortMonths(n.locale):[]),b=function(R,T){return r.addMonth(R,T)},x=function(R){var T=r.getMonth(R);return n.monthFormat?nr(R,{locale:n,format:n.monthFormat,generateConfig:r}):C[T]},S=function(){return wk({},"".concat(t,"-cell-in-view"),!0)},$=s?function(w,R){var T=r.setDate(w,1),N=r.setMonth(T,r.getMonth(T)+1),O=r.addDate(N,-1);return s(T,R)&&s(O,R)}:null,M=l.createElement("button",{type:"button",key:"year","aria-label":n.yearSelect,onClick:function(){d("year")},tabIndex:-1,className:"".concat(t,"-year-btn")},nr(i,{locale:n,format:n.yearFormat,generateConfig:r}));return l.createElement(fl.Provider,{value:h},l.createElement("div",{className:f},l.createElement(Ls,{superOffset:function(R){return r.addYear(i,R)},onChange:c,getStart:function(R){return r.setMonth(R,0)},getEnd:function(R){return r.setMonth(R,11)}},M),l.createElement(wd,r0({},e,{disabledDate:$,titleFormat:n.fieldMonthFormat,colNum:3,rowNum:4,baseDate:y,getCellDate:b,getCellText:x,getCellClassName:S}))))}function Fu(e){"@babel/helpers - typeof";return Fu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fu(e)}function o0(){return o0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o0.apply(this,arguments)}function zk(e,t,n){return t=Ak(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ak(e){var t=Dk(e,"string");return Fu(t)=="symbol"?t:String(t)}function Dk(e,t){if(Fu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Fu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function jk(e,t){return Lk(e)||Bk(e,t)||Hk(e,t)||_k()}function _k(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
244
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Hk(e,t){if(e){if(typeof e=="string")return gM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return gM(e,t)}}function gM(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Bk(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,c,d=[],f=!0,p=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(d.push(r.value),d.length!==t);f=!0);}catch(g){p=!0,i=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(p)throw i}}return d}}function Lk(e){if(Array.isArray(e))return e}function Vk(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,i=e.pickerValue,s=e.onPickerValueChange,c=e.onModeChange,d="".concat(t,"-quarter-panel"),f=Bs(e,"quarter"),p=jk(f,1),g=p[0],h=r.setMonth(i,0),y=function($,M){return r.addMonth($,M*3)},C=function($){return nr($,{locale:n,format:n.cellQuarterFormat,generateConfig:r})},b=function(){return zk({},"".concat(t,"-cell-in-view"),!0)},x=l.createElement("button",{type:"button",key:"year","aria-label":n.yearSelect,onClick:function(){c("year")},tabIndex:-1,className:"".concat(t,"-year-btn")},nr(i,{locale:n,format:n.yearFormat,generateConfig:r}));return l.createElement(fl.Provider,{value:g},l.createElement("div",{className:d},l.createElement(Ls,{superOffset:function($){return r.addYear(i,$)},onChange:s,getStart:function($){return r.setMonth($,0)},getEnd:function($){return r.setMonth($,11)}},x),l.createElement(wd,o0({},e,{titleFormat:n.fieldQuarterFormat,colNum:4,rowNum:1,baseDate:h,getCellDate:y,getCellText:C,getCellClassName:b}))))}function ku(e){"@babel/helpers - typeof";return ku=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ku(e)}function a0(){return a0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a0.apply(this,arguments)}function Fk(e,t,n){return t=kk(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kk(e){var t=Wk(e,"string");return ku(t)=="symbol"?t:String(t)}function Wk(e,t){if(ku(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ku(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function qk(e,t){return Xk(e)||Gk(e,t)||Uk(e,t)||Yk()}function Yk(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
245
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Uk(e,t){if(e){if(typeof e=="string")return hM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return hM(e,t)}}function hM(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Gk(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,c,d=[],f=!0,p=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(d.push(r.value),d.length!==t);f=!0);}catch(g){p=!0,i=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(p)throw i}}return d}}function Xk(e){if(Array.isArray(e))return e}function Kk(e){var t=e.prefixCls,n=e.generateConfig,r=e.locale,i=e.value,s=e.hoverValue,c=e.hoverRangeValue,d=r.locale,f="".concat(t,"-week-panel-row"),p=function(h){var y={};if(c){var C=qk(c,2),b=C[0],x=C[1],S=Zc(n,d,b,h),$=Zc(n,d,x,h);y["".concat(f,"-range-start")]=S,y["".concat(f,"-range-end")]=$,y["".concat(f,"-range-hover")]=!S&&!$&&qp(n,b,x,h)}return s&&(y["".concat(f,"-hover")]=s.some(function(M){return Zc(n,d,h,M)})),Q(f,Fk({},"".concat(f,"-selected"),!c&&Zc(n,d,i,h)),y)};return l.createElement(Up,a0({},e,{mode:"week",panelName:"week",rowClassName:p}))}function Wu(e){"@babel/helpers - typeof";return Wu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wu(e)}function i0(){return i0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i0.apply(this,arguments)}function Qk(e,t,n){return t=Zk(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zk(e){var t=Jk(e,"string");return Wu(t)=="symbol"?t:String(t)}function Jk(e,t){if(Wu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Wu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function eW(e,t){return oW(e)||rW(e,t)||nW(e,t)||tW()}function tW(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
246
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nW(e,t){if(e){if(typeof e=="string")return yM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return yM(e,t)}}function yM(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function rW(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,c,d=[],f=!0,p=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(d.push(r.value),d.length!==t);f=!0);}catch(g){p=!0,i=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(p)throw i}}return d}}function oW(e){if(Array.isArray(e))return e}function aW(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,i=e.pickerValue,s=e.disabledDate,c=e.onPickerValueChange,d=e.onModeChange,f="".concat(t,"-year-panel"),p=Bs(e,"year"),g=eW(p,1),h=g[0],y=function(O){var P=Math.floor(r.getYear(O)/10)*10;return r.setYear(O,P)},C=function(O){var P=y(O);return r.addYear(P,9)},b=y(i),x=C(i),S=r.addYear(b,-1),$=function(O,P){return r.addYear(O,P)},M=function(O){return nr(O,{locale:n,format:n.cellYearFormat,generateConfig:r})},w=function(O){return Qk({},"".concat(t,"-cell-in-view"),ol(r,O,b)||ol(r,O,x)||qp(r,b,x,O))},R=s?function(N,O){var P=r.setMonth(N,0),D=r.setDate(P,1),k=r.addYear(D,1),F=r.addDate(k,-1);return s(D,O)&&s(F,O)}:null,T=l.createElement("button",{type:"button",key:"decade","aria-label":n.decadeSelect,onClick:function(){d("decade")},tabIndex:-1,className:"".concat(t,"-decade-btn")},nr(b,{locale:n,format:n.yearFormat,generateConfig:r}),"-",nr(x,{locale:n,format:n.yearFormat,generateConfig:r}));return l.createElement(fl.Provider,{value:h},l.createElement("div",{className:f},l.createElement(Ls,{superOffset:function(O){return r.addYear(i,O*10)},onChange:c,getStart:y,getEnd:C},T),l.createElement(wd,i0({},e,{disabledDate:R,titleFormat:n.fieldYearFormat,colNum:3,rowNum:4,baseDate:S,getCellDate:$,getCellText:M,getCellClassName:w}))))}function qu(e){"@babel/helpers - typeof";return qu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qu(e)}function l0(){return l0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l0.apply(this,arguments)}function bM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function vM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?bM(Object(n),!0).forEach(function(r){Q6(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Q6(e,t,n){return t=iW(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iW(e){var t=lW(e,"string");return qu(t)=="symbol"?t:String(t)}function lW(e,t){if(qu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(qu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function SM(e){return uW(e)||cW(e)||Z6(e)||sW()}function sW(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
247
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cW(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function uW(e){if(Array.isArray(e))return s0(e)}function Fc(e,t){return mW(e)||fW(e,t)||Z6(e,t)||dW()}function dW(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
248
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Z6(e,t){if(e){if(typeof e=="string")return s0(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s0(e,t)}}function s0(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function fW(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,c,d=[],f=!0,p=!1;try{if(s=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;f=!1}else for(;!(f=(r=s.call(n)).done)&&(d.push(r.value),d.length!==t);f=!0);}catch(g){p=!0,i=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(p)throw i}}return d}}function mW(e){if(Array.isArray(e))return e}var pW={date:Up,datetime:pk,week:Kk,month:Pk,quarter:Vk,year:aW,decade:xk,time:K6};function gW(e,t){var n=e.classNames,r=e.styles,i=e.locale,s=e.generateConfig,c=e.direction,d=e.prefixCls,f=e.tabIndex,p=f===void 0?0:f,g=e.multiple,h=e.defaultValue,y=e.value,C=e.onChange,b=e.onSelect,x=e.defaultPickerValue,S=e.pickerValue,$=e.onPickerValueChange,M=e.mode,w=e.onPanelChange,R=e.picker,T=R===void 0?"date":R,N=e.showTime,O=e.hoverValue,P=e.hoverRangeValue,D=e.cellRender,k=e.dateRender,F=e.monthCellRender,Y=e.components,G=Y===void 0?{}:Y,V=e.hideHeader,B=l.useContext(jo)||{},_=B.prefixCls,H=B.classNames,I=B.styles,z=_||d||"rc-picker",L=l.useRef();l.useImperativeHandle(t,function(){return{nativeElement:L.current}});var A=N6(e),j=Fc(A,4),q=j[0],X=j[1],K=j[2],J=j[3],Z=R6(i,X),re=T==="date"&&N?"datetime":T,ne=l.useMemo(function(){return I6(re,K,J,q,Z)},[re,K,J,q,Z]),ie=s.getNow(),fe=Yt(T||"date",M),le=Fc(fe,2),ue=le[0],ge=le[1],oe=ue==="date"&&ne?"datetime":ue,se=U6(s,i,re),he=Yt(h,y),me=Fc(he,2),xe=me[0],Ae=me[1],we=l.useMemo(function(){var Ie=dl(xe).filter(function(Ke){return Ke});return g?Ie:Ie.slice(0,1)},[xe,g]),$e=ut(function(Ie){Ae(Ie),C&&(Ie===null||we.length!==Ie.length||we.some(function(Ke,ot){return!Tr(s,i,Ke,Ie[ot],re)}))&&C?.(g?Ie:Ie[0])}),de=ut(function(Ie){if(b?.(Ie),ue===T){var Ke=g?se(we,Ie):[Ie];$e(Ke)}}),be=Yt(x||we[0]||ie,S),Me=Fc(be,2),Oe=Me[0],Le=Me[1];l.useEffect(function(){we[0]&&!S&&Le(we[0])},[we[0]]);var Ge=function(Ke,ot){w?.(Ke||S,ot||ue)},et=function(Ke){var ot=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Le(Ke),$?.(Ke),ot&&Ge(Ke)},ze=function(Ke,ot){ge(Ke),ot&&et(ot),Ge(ot,Ke)},_e=function(Ke){if(de(Ke),et(Ke),ue!==T){var ot=["decade","year"],at=[].concat(ot,["month"]),lt={quarter:[].concat(ot,["quarter"]),week:[].concat(SM(at),["week"]),date:[].concat(SM(at),["date"])},St=lt[T]||at,Ct=St.indexOf(ue),qe=St[Ct+1];qe&&ze(qe,Ke)}},De=l.useMemo(function(){var Ie,Ke;if(Array.isArray(P)){var ot=Fc(P,2);Ie=ot[0],Ke=ot[1]}else Ie=P;return!Ie&&!Ke?null:(Ie=Ie||Ke,Ke=Ke||Ie,s.isAfter(Ie,Ke)?[Ke,Ie]:[Ie,Ke])},[P,s]),Ue=a1(D,k,F),Ne=G[oe]||pW[oe]||Up,Se=l.useMemo(function(){var Ie,Ke,ot,at;return{classNames:(Ie=(Ke=H?.popup)!==null&&Ke!==void 0?Ke:n)!==null&&Ie!==void 0?Ie:{},styles:(ot=(at=I?.popup)!==null&&at!==void 0?at:r)!==null&&ot!==void 0?ot:{}}},[H,n,I,r]),Be=l.useContext(si),Je=l.useMemo(function(){return vM(vM({},Be),{},{hideHeader:V})},[Be,V]),We="".concat(z,"-panel"),Xe=Wp(e,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return l.createElement(G6.Provider,{value:Se},l.createElement(si.Provider,{value:Je},l.createElement("div",{ref:L,tabIndex:p,className:Q(We,Q6({},"".concat(We,"-rtl"),c==="rtl"))},l.createElement(Ne,l0({},Xe,{showTime:ne,prefixCls:z,locale:Z,generateConfig:s,onModeChange:ze,pickerValue:Oe,onPickerValueChange:function(Ke){et(Ke,!0)},value:we[0],onSelect:_e,values:we,cellRender:Ue,hoverRangeValue:De,hoverValue:O})))))}var Pm=l.memo(l.forwardRef(gW));function Yu(e){"@babel/helpers - typeof";return Yu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yu(e)}function c0(){return c0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c0.apply(this,arguments)}function CM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Di(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?CM(Object(n),!0).forEach(function(r){hW(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function hW(e,t,n){return t=yW(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yW(e){var t=bW(e,"string");return Yu(t)=="symbol"?t:String(t)}function bW(e,t){if(Yu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Yu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function vW(e){var t=e.picker,n=e.multiplePanel,r=e.pickerValue,i=e.onPickerValueChange,s=e.needConfirm,c=e.onSubmit,d=e.range,f=e.hoverValue,p=l.useContext(jo),g=p.prefixCls,h=p.generateConfig,y=l.useCallback(function(M,w){return Jc(h,t,M,w)},[h,t]),C=l.useMemo(function(){return y(r,1)},[r,y]),b=function(w){i(y(w,-1))},x={onCellDblClick:function(){s&&c()}},S=t==="time",$=Di(Di({},e),{},{hoverValue:null,hoverRangeValue:null,hideHeader:S});return d?$.hoverRangeValue=f:$.hoverValue=f,n?l.createElement("div",{className:"".concat(g,"-panels")},l.createElement(si.Provider,{value:Di(Di({},x),{},{hideNext:!0})},l.createElement(Pm,$)),l.createElement(si.Provider,{value:Di(Di({},x),{},{hidePrev:!0})},l.createElement(Pm,c0({},$,{pickerValue:C,onPickerValueChange:b})))):l.createElement(si.Provider,{value:Di({},x)},l.createElement(Pm,$))}function $M(e){return typeof e=="function"?e():e}function SW(e){var t=e.prefixCls,n=e.presets,r=e.onClick,i=e.onHover;return n.length?l.createElement("div",{className:"".concat(t,"-presets")},l.createElement("ul",null,n.map(function(s,c){var d=s.label,f=s.value;return l.createElement("li",{key:c,onClick:function(){r($M(f))},onMouseEnter:function(){i($M(f))},onMouseLeave:function(){i(null)}},d)}))):null}function Uu(e){"@babel/helpers - typeof";return Uu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Uu(e)}function xM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function CW(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?xM(Object(n),!0).forEach(function(r){u0(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function u0(e,t,n){return t=$W(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $W(e){var t=xW(e,"string");return Uu(t)=="symbol"?t:String(t)}function xW(e,t){if(Uu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Uu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function op(){return op=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},op.apply(this,arguments)}function kc(e,t){return RW(e)||MW(e,t)||EW(e,t)||wW()}function wW(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
249
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function EW(e,t){if(e){if(typeof e=="string")return wM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return wM(e,t)}}function wM(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function MW(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,c,d=[],f=!0,p=!1;try{if(s=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;f=!1}else for(;!(f=(r=s.call(n)).done)&&(d.push(r.value),d.length!==t);f=!0);}catch(g){p=!0,i=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(p)throw i}}return d}}function RW(e){if(Array.isArray(e))return e}function J6(e){var t,n,r=e.panelRender,i=e.internalMode,s=e.picker,c=e.showNow,d=e.range,f=e.multiple,p=e.activeInfo,g=p===void 0?[0,0,0]:p,h=e.presets,y=e.onPresetHover,C=e.onPresetSubmit,b=e.onFocus,x=e.onBlur,S=e.onPanelMouseDown,$=e.direction,M=e.value,w=e.onSelect,R=e.isInvalid,T=e.defaultOpenValue,N=e.onOk,O=e.onSubmit,P=e.classNames,D=e.styles,k=l.useContext(jo),F=k.prefixCls,Y="".concat(F,"-panel"),G=$==="rtl",V=l.useRef(null),B=l.useRef(null),_=l.useState(0),H=kc(_,2),I=H[0],z=H[1],L=l.useState(0),A=kc(L,2),j=A[0],q=A[1],X=l.useState(0),K=kc(X,2),J=K[0],Z=K[1],re=function(ze){ze.width&&z(ze.width)},ne=kc(g,3),ie=ne[0],fe=ne[1],le=ne[2],ue=l.useState(0),ge=kc(ue,2),oe=ge[0],se=ge[1];l.useEffect(function(){se(10)},[ie]),l.useEffect(function(){if(d&&B.current){var et,ze=((et=V.current)===null||et===void 0?void 0:et.offsetWidth)||0,_e=B.current.getBoundingClientRect();if(!_e.height||_e.right<0){se(function(Se){return Math.max(0,Se-1)});return}var De=(G?fe-ze:ie)-_e.left;if(Z(De),I&&I<le){var Ue=G?_e.right-(fe-ze+I):ie+ze-_e.left-I,Ne=Math.max(0,Ue);q(Ne)}else q(0)}},[oe,G,I,ie,fe,le,d]);function he(et){return et.filter(function(ze){return ze})}var me=l.useMemo(function(){return he(dl(M))},[M]),xe=s==="time"&&!me.length,Ae=l.useMemo(function(){return xe?he([T]):me},[xe,me,T]),we=xe?T:me,$e=l.useMemo(function(){return Ae.length?Ae.some(function(et){return R(et)}):!0},[Ae,R]),de=function(){xe&&w(T),N(),O()},be=l.createElement("div",{className:"".concat(F,"-panel-layout")},l.createElement(SW,{prefixCls:F,presets:h,onClick:C,onHover:y}),l.createElement("div",null,l.createElement(vW,op({},e,{value:we})),l.createElement(vF,op({},e,{showNow:f?!1:c,invalid:$e,onSubmit:de}))));r&&(be=r(be));var Me="".concat(Y,"-container"),Oe="marginLeft",Le="marginRight",Ge=l.createElement("div",{onMouseDown:S,tabIndex:-1,className:Q(Me,"".concat(F,"-").concat(i,"-panel-container"),P==null||(t=P.popup)===null||t===void 0?void 0:t.container),style:CW(u0(u0({},G?Le:Oe,j),G?Oe:Le,"auto"),D==null||(n=D.popup)===null||n===void 0?void 0:n.container),onFocus:b,onBlur:x},be);return d&&(Ge=l.createElement("div",{onMouseDown:S,ref:B,className:Q("".concat(F,"-range-wrapper"),"".concat(F,"-").concat(s,"-range-wrapper"))},l.createElement("div",{ref:V,className:"".concat(F,"-range-arrow"),style:{left:J}}),l.createElement(Fr,{onResize:re},Ge))),Ge}function Gu(e){"@babel/helpers - typeof";return Gu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gu(e)}function EM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function MM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?EM(Object(n),!0).forEach(function(r){TW(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):EM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function TW(e,t,n){return t=OW(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function OW(e){var t=NW(e,"string");return Gu(t)=="symbol"?t:String(t)}function NW(e,t){if(Gu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Gu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function e3(e,t){var n=e.format,r=e.maskFormat,i=e.generateConfig,s=e.locale,c=e.preserveInvalidOnBlur,d=e.inputReadOnly,f=e.required,p=e["aria-required"],g=e.onSubmit,h=e.onFocus,y=e.onBlur,C=e.onInputChange,b=e.onInvalid,x=e.open,S=e.onOpenChange,$=e.onKeyDown,M=e.onChange,w=e.activeHelp,R=e.name,T=e.autoComplete,N=e.id,O=e.value,P=e.invalid,D=e.placeholder,k=e.disabled,F=e.activeIndex,Y=e.allHelp,G=e.picker,V=function(j,q){var X=i.locale.parse(s.locale,j,[q]);return X&&i.isValidate(X)?X:null},B=n[0],_=l.useCallback(function(A){return nr(A,{locale:s,format:B,generateConfig:i})},[s,i,B]),H=l.useMemo(function(){return O.map(_)},[O,_]),I=l.useMemo(function(){var A=G==="time"?8:10,j=typeof B=="function"?B(i.getNow()).length:B.length;return Math.max(A,j)+2},[B,G,i]),z=function(j){for(var q=0;q<n.length;q+=1){var X=n[q];if(typeof X=="string"){var K=V(j,X);if(K)return K}}return!1},L=function(j){function q(J){return j!==void 0?J[j]:J}var X=In(e,{aria:!0,data:!0}),K=MM(MM({},X),{},{format:r,validateFormat:function(Z){return!!z(Z)},preserveInvalidOnBlur:c,readOnly:d,required:f,"aria-required":p,name:R,autoComplete:T,size:I,id:q(N),value:q(H)||"",invalid:q(P),placeholder:q(D),active:F===j,helped:Y||w&&F===j,disabled:q(k),onFocus:function(Z){h(Z,j)},onBlur:function(Z){y(Z,j)},onSubmit:g,onChange:function(Z){C();var re=z(Z);if(re){b(!1,j),M(re,j);return}b(!!Z,j)},onHelp:function(){S(!0,{index:j})},onKeyDown:function(Z){var re=!1;if($?.(Z,function(){re=!0}),!Z.defaultPrevented&&!re)switch(Z.key){case"Escape":S(!1,{index:j});break;case"Enter":x||S(!0);break}}},t?.({valueTexts:H}));return Object.keys(K).forEach(function(J){K[J]===void 0&&delete K[J]}),K};return[L,_]}var IW=["onMouseEnter","onMouseLeave"];function t3(e){return l.useMemo(function(){return Wp(e,IW)},[e])}var PW=["icon","type"],zW=["onClear"];function ap(){return ap=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ap.apply(this,arguments)}function n3(e,t){if(e==null)return{};var n=AW(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function AW(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s<r.length;s++)i=r[s],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Gp(e){var t=e.icon,n=e.type,r=n3(e,PW),i=l.useContext(jo),s=i.prefixCls,c=i.classNames,d=i.styles;return t?l.createElement("span",ap({className:Q("".concat(s,"-").concat(n),c.suffix),style:d.suffix},r),t):null}function d0(e){var t=e.onClear,n=n3(e,zW);return l.createElement(Gp,ap({},n,{type:"clear",role:"button",onMouseDown:function(i){i.preventDefault()},onClick:function(i){i.stopPropagation(),t()}}))}function Xu(e){"@babel/helpers - typeof";return Xu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xu(e)}function DW(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jW(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r3(r.key),r)}}function _W(e,t,n){return t&&jW(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Jf(e,t,n){return t=r3(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r3(e){var t=HW(e,"string");return Xu(t)=="symbol"?t:String(t)}function HW(e,t){if(Xu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Xu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Wy=["YYYY","MM","DD","HH","mm","ss","SSS"],RM="顧",BW=(function(){function e(t){DW(this,e),Jf(this,"format",void 0),Jf(this,"maskFormat",void 0),Jf(this,"cells",void 0),Jf(this,"maskCells",void 0),this.format=t;var n=Wy.map(function(d){return"(".concat(d,")")}).join("|"),r=new RegExp(n,"g");this.maskFormat=t.replace(r,function(d){return RM.repeat(d.length)});var i=new RegExp("(".concat(Wy.join("|"),")")),s=(t.split(i)||[]).filter(function(d){return d}),c=0;this.cells=s.map(function(d){var f=Wy.includes(d),p=c,g=c+d.length;return c=g,{text:d,mask:f,start:p,end:g}}),this.maskCells=this.cells.filter(function(d){return d.mask})}return _W(e,[{key:"getSelection",value:function(n){var r=this.maskCells[n]||{},i=r.start,s=r.end;return[i||0,s||0]}},{key:"match",value:function(n){for(var r=0;r<this.maskFormat.length;r+=1){var i=this.maskFormat[r],s=n[r];if(!s||i!==RM&&i!==s)return!1}return!0}},{key:"size",value:function(){return this.maskCells.length}},{key:"getMaskCellIndex",value:function(n){for(var r=Number.MAX_SAFE_INTEGER,i=0,s=0;s<this.maskCells.length;s+=1){var c=this.maskCells[s],d=c.start,f=c.end;if(n>=d&&n<=f)return s;var p=Math.min(Math.abs(n-d),Math.abs(n-f));p<r&&(r=p,i=s)}return i}}]),e})();function LW(e){var t={YYYY:[0,9999,new Date().getFullYear()],MM:[1,12],DD:[1,31],HH:[0,23],mm:[0,59],ss:[0,59],SSS:[0,999]};return t[e]}function Ku(e){"@babel/helpers - typeof";return Ku=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ku(e)}var VW=["className","active","showActiveCls","suffixIcon","format","validateFormat","onChange","onInput","helped","onHelp","onSubmit","onKeyDown","preserveInvalidOnBlur","invalid","clearIcon"];function f0(){return f0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f0.apply(this,arguments)}function TM(e,t,n){return t=FW(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function FW(e){var t=kW(e,"string");return Ku(t)=="symbol"?t:String(t)}function kW(e,t){if(Ku(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ku(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ji(e,t){return UW(e)||YW(e,t)||qW(e,t)||WW()}function WW(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
250
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qW(e,t){if(e){if(typeof e=="string")return OM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return OM(e,t)}}function OM(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function YW(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,c,d=[],f=!0,p=!1;try{if(s=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;f=!1}else for(;!(f=(r=s.call(n)).done)&&(d.push(r.value),d.length!==t);f=!0);}catch(g){p=!0,i=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(p)throw i}}return d}}function UW(e){if(Array.isArray(e))return e}function GW(e,t){if(e==null)return{};var n=XW(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function XW(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s<r.length;s++)i=r[s],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var m0=l.forwardRef(function(e,t){var n=e.className,r=e.active,i=e.showActiveCls,s=i===void 0?!0:i,c=e.suffixIcon,d=e.format,f=e.validateFormat,p=e.onChange;e.onInput;var g=e.helped,h=e.onHelp,y=e.onSubmit,C=e.onKeyDown,b=e.preserveInvalidOnBlur,x=b===void 0?!1:b,S=e.invalid,$=e.clearIcon,M=GW(e,VW),w=e.value,R=e.onFocus,T=e.onBlur,N=e.onMouseUp,O=l.useContext(jo),P=O.prefixCls,D=O.input,k=D===void 0?"input":D,F=O.classNames,Y=O.styles,G="".concat(P,"-input"),V=l.useState(!1),B=ji(V,2),_=B[0],H=B[1],I=l.useState(w),z=ji(I,2),L=z[0],A=z[1],j=l.useState(""),q=ji(j,2),X=q[0],K=q[1],J=l.useState(null),Z=ji(J,2),re=Z[0],ne=Z[1],ie=l.useState(null),fe=ji(ie,2),le=fe[0],ue=fe[1],ge=L||"";l.useEffect(function(){A(w)},[w]);var oe=l.useRef(null),se=l.useRef(null);l.useImperativeHandle(t,function(){return{nativeElement:oe.current,inputElement:se.current,focus:function(Je){se.current.focus(Je)},blur:function(){se.current.blur()}}});var he=l.useMemo(function(){return new BW(d||"")},[d]),me=l.useMemo(function(){return g?[0,0]:he.getSelection(re)},[he,re,g]),xe=ji(me,2),Ae=xe[0],we=xe[1],$e=function(Je){Je&&Je!==d&&Je!==w&&h()},de=ut(function(Be){f(Be)&&p(Be),A(Be),$e(Be)}),be=function(Je){if(!d){var We=Je.target.value;$e(We),A(We),p(We)}},Me=function(Je){var We=Je.clipboardData.getData("text");f(We)&&de(We)},Oe=l.useRef(!1),Le=function(){Oe.current=!0},Ge=function(Je){var We=Je.target,Xe=We.selectionStart,Ie=he.getMaskCellIndex(Xe);ne(Ie),ue({}),N?.(Je),Oe.current=!1},et=function(Je){H(!0),ne(0),K(""),R(Je)},ze=function(Je){T(Je)},_e=function(Je){H(!1),ze(Je)};s1(r,function(){!r&&!x&&A(w)});var De=function(Je){Je.key==="Enter"&&f(ge)&&y(),C?.(Je)},Ue=function(Je){De(Je);var We=Je.key,Xe=null,Ie=null,Ke=we-Ae,ot=d.slice(Ae,we),at=function(qe){ne(function(rt){var je=rt+qe;return je=Math.max(je,0),je=Math.min(je,he.size()-1),je})},lt=function(qe){var rt=LW(ot),je=ji(rt,3),Pe=je[0],ke=je[1],Re=je[2],Ye=ge.slice(Ae,we),Ze=Number(Ye);if(isNaN(Ze))return String(Re||(qe>0?Pe:ke));var it=Ze+qe,ft=ke-Pe+1;return String(Pe+(ft+it-Pe)%ft)};switch(We){case"Backspace":case"Delete":Xe="",Ie=ot;break;case"ArrowLeft":Xe="",at(-1);break;case"ArrowRight":Xe="",at(1);break;case"ArrowUp":Xe="",Ie=lt(1);break;case"ArrowDown":Xe="",Ie=lt(-1);break;default:isNaN(Number(We))||(Xe=X+We,Ie=Xe);break}if(Xe!==null&&(K(Xe),Xe.length>=Ke&&(at(1),K(""))),Ie!==null){var St=ge.slice(0,Ae)+o1(Ie,Ke)+ge.slice(we);de(St.slice(0,d.length))}ue({})},Ne=l.useRef();It(function(){if(!(!_||!d||Oe.current)){if(!he.match(ge)){de(d);return}return se.current.setSelectionRange(Ae,we),Ne.current=Bt(function(){se.current.setSelectionRange(Ae,we)}),function(){Bt.cancel(Ne.current)}}},[he,d,_,ge,re,Ae,we,le,de]);var Se=d?{onFocus:et,onBlur:_e,onKeyDown:Ue,onMouseDown:Le,onMouseUp:Ge,onPaste:Me}:{};return l.createElement("div",{ref:oe,className:Q(G,TM(TM({},"".concat(G,"-active"),r&&s),"".concat(G,"-placeholder"),g),n)},l.createElement(k,f0({ref:se,"aria-invalid":S,autoComplete:"off"},M,{onKeyDown:De,onBlur:ze},Se,{value:ge,onChange:be,className:F.input,style:Y.input})),l.createElement(Gp,{type:"suffix",icon:c}),$)}),KW=["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"],QW=["index"];function cu(){return cu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cu.apply(this,arguments)}function NM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function em(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?NM(Object(n),!0).forEach(function(r){eu(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):NM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function eu(e,t,n){return t=ZW(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ZW(e){var t=JW(e,"string");return Ts(t)=="symbol"?t:String(t)}function JW(e,t){if(Ts(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ts(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function IM(e,t){return rq(e)||nq(e,t)||tq(e,t)||eq()}function eq(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
251
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tq(e,t){if(e){if(typeof e=="string")return PM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return PM(e,t)}}function PM(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function nq(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,c,d=[],f=!0,p=!1;try{if(s=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;f=!1}else for(;!(f=(r=s.call(n)).done)&&(d.push(r.value),d.length!==t);f=!0);}catch(g){p=!0,i=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(p)throw i}}return d}}function rq(e){if(Array.isArray(e))return e}function Ts(e){"@babel/helpers - typeof";return Ts=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ts(e)}function zM(e,t){if(e==null)return{};var n=oq(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function oq(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s<r.length;s++)i=r[s],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function aq(e,t){var n=e.id,r=e.prefix,i=e.clearIcon,s=e.suffixIcon,c=e.separator,d=c===void 0?"~":c,f=e.activeIndex;e.activeHelp,e.allHelp;var p=e.focused;e.onFocus,e.onBlur,e.onKeyDown,e.locale,e.generateConfig;var g=e.placeholder,h=e.className,y=e.style,C=e.onClick,b=e.onClear,x=e.value;e.onChange,e.onSubmit,e.onInputChange,e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var S=e.disabled,$=e.invalid;e.inputReadOnly;var M=e.direction;e.onOpenChange;var w=e.onActiveInfo;e.placement;var R=e.onMouseDown;e.required,e["aria-required"];var T=e.autoFocus,N=e.tabIndex,O=zM(e,KW),P=M==="rtl",D=l.useContext(jo),k=D.prefixCls,F=D.classNames,Y=D.styles,G=l.useMemo(function(){if(typeof n=="string")return[n];var fe=n||{};return[fe.start,fe.end]},[n]),V=l.useRef(),B=l.useRef(),_=l.useRef(),H=function(le){var ue;return(ue=[B,_][le])===null||ue===void 0?void 0:ue.current};l.useImperativeHandle(t,function(){return{nativeElement:V.current,focus:function(le){if(Ts(le)==="object"){var ue,ge=le||{},oe=ge.index,se=oe===void 0?0:oe,he=zM(ge,QW);(ue=H(se))===null||ue===void 0||ue.focus(he)}else{var me;(me=H(le??0))===null||me===void 0||me.focus()}},blur:function(){var le,ue;(le=H(0))===null||le===void 0||le.blur(),(ue=H(1))===null||ue===void 0||ue.blur()}}});var I=t3(O),z=l.useMemo(function(){return Array.isArray(g)?g:[g,g]},[g]),L=e3(em(em({},e),{},{id:G,placeholder:z})),A=IM(L,1),j=A[0],q=l.useState({position:"absolute",width:0}),X=IM(q,2),K=X[0],J=X[1],Z=ut(function(){var fe=H(f);if(fe){var le=fe.nativeElement.getBoundingClientRect(),ue=V.current.getBoundingClientRect(),ge=le.left-ue.left;J(function(oe){return em(em({},oe),{},{width:le.width,left:ge})}),w([le.left,le.right,ue.width])}});l.useEffect(function(){Z()},[f]);var re=i&&(x[0]&&!S[0]||x[1]&&!S[1]),ne=T&&!S[0],ie=T&&!ne&&!S[1];return l.createElement(Fr,{onResize:Z},l.createElement("div",cu({},I,{className:Q(k,"".concat(k,"-range"),eu(eu(eu(eu({},"".concat(k,"-focused"),p),"".concat(k,"-disabled"),S.every(function(fe){return fe})),"".concat(k,"-invalid"),$.some(function(fe){return fe})),"".concat(k,"-rtl"),P),h),style:y,ref:V,onClick:C,onMouseDown:function(le){var ue=le.target;ue!==B.current.inputElement&&ue!==_.current.inputElement&&le.preventDefault(),R?.(le)}}),r&&l.createElement("div",{className:Q("".concat(k,"-prefix"),F.prefix),style:Y.prefix},r),l.createElement(m0,cu({ref:B},j(0),{className:"".concat(k,"-input-start"),autoFocus:ne,tabIndex:N,"date-range":"start"})),l.createElement("div",{className:"".concat(k,"-range-separator")},d),l.createElement(m0,cu({ref:_},j(1),{className:"".concat(k,"-input-end"),autoFocus:ie,tabIndex:N,"date-range":"end"})),l.createElement("div",{className:"".concat(k,"-active-bar"),style:K}),l.createElement(Gp,{type:"suffix",icon:s}),re&&l.createElement(d0,{icon:i,onClear:b})))}var iq=l.forwardRef(aq);function Qu(e){"@babel/helpers - typeof";return Qu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qu(e)}function AM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function tm(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?AM(Object(n),!0).forEach(function(r){lq(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):AM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function lq(e,t,n){return t=sq(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sq(e){var t=cq(e,"string");return Qu(t)=="symbol"?t:String(t)}function cq(e,t){if(Qu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Qu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function o3(e,t){return l.useMemo(function(){var n=tm(tm({},e),{},{popup:e?.popup||{}}),r=tm(tm({},t),{},{popup:t?.popup||{}});return[n,r]},[e,t])}function Zu(e){"@babel/helpers - typeof";return Zu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zu(e)}function uu(){return uu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},uu.apply(this,arguments)}function DM(e){return fq(e)||dq(e)||a3(e)||uq()}function uq(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
252
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dq(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function fq(e){if(Array.isArray(e))return p0(e)}function jM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function nm(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?jM(Object(n),!0).forEach(function(r){mq(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function mq(e,t,n){return t=pq(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pq(e){var t=gq(e,"string");return Zu(t)=="symbol"?t:String(t)}function gq(e,t){if(Zu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Zu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function bo(e,t){return bq(e)||yq(e,t)||a3(e,t)||hq()}function hq(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
253
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function a3(e,t){if(e){if(typeof e=="string")return p0(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return p0(e,t)}}function p0(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function yq(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,c,d=[],f=!0,p=!1;try{if(s=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;f=!1}else for(;!(f=(r=s.call(n)).done)&&(d.push(r.value),d.length!==t);f=!0);}catch(g){p=!0,i=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(p)throw i}}return d}}function bq(e){if(Array.isArray(e))return e}function _M(e,t){var n=e??t;return Array.isArray(n)?n:[n,n]}function rm(e){return e===1?"end":"start"}function vq(e,t){var n=A6(e,function(){var Ft=e.disabled,bt=e.allowEmpty,$t=_M(Ft,!1),sn=_M(bt,!1);return{disabled:$t,allowEmpty:sn}}),r=bo(n,6),i=r[0],s=r[1],c=r[2],d=r[3],f=r[4],p=r[5],g=i.prefixCls,h=i.rootClassName,y=i.styles,C=i.classNames,b=i.previewValue,x=i.defaultValue,S=i.value,$=i.needConfirm,M=i.onKeyDown,w=i.disabled,R=i.allowEmpty,T=i.disabledDate,N=i.minDate,O=i.maxDate,P=i.defaultOpen,D=i.open,k=i.onOpenChange,F=i.locale,Y=i.generateConfig,G=i.picker,V=i.showNow,B=i.showToday,_=i.showTime,H=i.mode,I=i.onPanelChange,z=i.onCalendarChange,L=i.onOk,A=i.defaultPickerValue,j=i.pickerValue,q=i.onPickerValueChange,X=i.inputReadOnly,K=i.suffixIcon,J=i.onFocus,Z=i.onBlur,re=i.presets,ne=i.ranges,ie=i.components,fe=i.cellRender,le=i.dateRender,ue=i.monthCellRender,ge=i.onClick,oe=j6(t),se=o3(C,y),he=bo(se,2),me=he[0],xe=he[1],Ae=D6(D,P,w,k),we=bo(Ae,2),$e=we[0],de=we[1],be=function(bt,$t){(w.some(function(sn){return!sn})||!bt)&&de(bt,$t)},Me=W6(Y,F,d,!0,!1,x,S,z,L),Oe=bo(Me,5),Le=Oe[0],Ge=Oe[1],et=Oe[2],ze=Oe[3],_e=Oe[4],De=et(),Ue=H6(w,R,$e),Ne=bo(Ue,9),Se=Ne[0],Be=Ne[1],Je=Ne[2],We=Ne[3],Xe=Ne[4],Ie=Ne[5],Ke=Ne[6],ot=Ne[7],at=Ne[8],lt=function(bt,$t){Be(!0),J?.(bt,{range:rm($t??We)})},St=function(bt,$t){Be(!1),Z?.(bt,{range:rm($t??We)})},Ct=l.useMemo(function(){if(!_)return null;var Ft=_.disabledTime,bt=Ft?function($t){var sn=rm(We),Fn=x6(De,Ke,We);return Ft($t,sn,{from:Fn})}:void 0;return nm(nm({},_),{},{disabledTime:bt})},[_,We,De,Ke]),qe=Yt([G,G],H),rt=bo(qe,2),je=rt[0],Pe=rt[1],ke=je[We]||G,Re=ke==="date"&&Ct?"datetime":ke,Ye=Re===G&&Re!=="time",Ze=Y6(G,ke,V,B,!0),it=q6(i,Le,Ge,et,ze,w,d,Se,$e,p),ft=bo(it,2),jt=ft[0],Rt=ft[1],wt=_V(De,w,Ke,Y,F,T),dn=E6(De,p,R),xt=bo(dn,2),Qe=xt[0],Et=xt[1],mt=B6(Y,F,De,je,$e,We,s,Ye,A,j,Ct?.defaultOpenValue,q,N,O),Tt=bo(mt,2),Ut=Tt[0],ln=Tt[1],kt=ut(function(Ft,bt,$t){var sn=su(je,We,bt);if((sn[0]!==je[0]||sn[1]!==je[1])&&Pe(sn),I&&$t!==!1){var Fn=DM(De);Ft&&(Fn[We]=Ft),I(Fn,sn)}}),wn=function(bt,$t){return su(De,$t,bt)},xn=function(bt,$t){var sn=De;bt&&(sn=wn(bt,We)),ot(We);var Fn=Ie(sn);ze(sn),jt(We,Fn===null),Fn===null?be(!1,{force:!0}):$t||oe.current.focus({index:Fn})},gr=function(bt){var $t,sn=bt.target.getRootNode();if(!oe.current.nativeElement.contains(($t=sn.activeElement)!==null&&$t!==void 0?$t:document.activeElement)){var Fn=w.findIndex(function(ks){return!ks});Fn>=0&&oe.current.focus({index:Fn})}be(!0),ge?.(bt)},fn=function(){Rt(null),be(!1,{force:!0})},Cr=l.useState(null),Pn=bo(Cr,2),Kn=Pn[0],Qn=Pn[1],Nr=l.useState(null),yt=bo(Nr,2),En=yt[0],Nn=yt[1],$r=l.useMemo(function(){return En||De},[De,En]);l.useEffect(function(){$e||Nn(null)},[$e]);var xr=l.useState([0,0,0]),Zn=bo(xr,2),zn=Zn[0],wo=Zn[1],Jo=function(bt,$t){b==="hover"&&(Nn(bt),Qn($t))},Eo=_6(re,ne),_o=function(bt){Jo(bt,"preset")},tt=function(bt){var $t=Rt(bt);$t&&be(!1,{force:!0})},tn=function(bt){xn(bt)},Hn=function(bt){Jo(bt?wn(bt,We):null,"cell")},ea=function(bt){be(!0),lt(bt)},ta=function(){Je("panel")},Ho=function(bt){var $t=su(De,We,bt);ze($t),!$&&!c&&s===Re&&xn(bt)},io=function(){be(!1)},gl=a1(fe,le,ue,rm(We)),hl=De[We]||null,Bo=ut(function(Ft){return p(Ft,{activeIndex:We})}),Mt=l.useMemo(function(){var Ft=In(i,!1),bt=en(i,[].concat(DM(Object.keys(Ft)),["onChange","onCalendarChange","style","className","onPanelChange","disabledTime","classNames","styles"]));return bt},[i]),ht=l.createElement(J6,uu({},Mt,{showNow:Ze,showTime:Ct,range:!0,multiplePanel:Ye,activeInfo:zn,disabledDate:wt,onFocus:ea,onBlur:St,onPanelMouseDown:ta,picker:G,mode:ke,internalMode:Re,onPanelChange:kt,format:f,value:hl,isInvalid:Bo,onChange:null,onSelect:Ho,pickerValue:Ut,defaultOpenValue:dl(_?.defaultOpenValue)[We],onPickerValueChange:ln,hoverValue:$r,onHover:Hn,needConfirm:$,onSubmit:xn,onOk:_e,presets:Eo,onPresetHover:_o,onPresetSubmit:tt,onNow:tn,cellRender:gl,classNames:me,styles:xe})),Jn=function(bt,$t){var sn=wn(bt,$t);ze(sn)},Ar=function(){Je("input")},yl=function(bt,$t){var sn=Ke.length,Fn=Ke[sn-1];if(sn&&Fn!==$t&&$&&!R[Fn]&&!at(Fn)&&De[Fn]){oe.current.focus({index:Fn});return}Je("input"),be(!0,{inherit:!0}),We!==$t&&$e&&!$&&c&&xn(null,!0),Xe($t),lt(bt,$t)},tg=function(bt,$t){if(be(!1),!$&&Je()==="input"){var sn=Ie(De);jt(We,sn===null)}St(bt,$t)},bl=function(bt,$t){bt.key==="Tab"&&xn(null,!0),M?.(bt,$t)},Mo=l.useMemo(function(){return{prefixCls:g,locale:F,generateConfig:Y,button:ie.button,input:ie.input,classNames:me,styles:xe}},[g,F,Y,ie.button,ie.input,me,xe]);return It(function(){$e&&We!==void 0&&kt(null,G,!1)},[$e,We,G]),It(function(){var Ft=Je();!$e&&Ft==="input"&&(be(!1),xn(null,!0)),!$e&&c&&!$&&Ft==="panel"&&(be(!0),xn())},[$e]),l.createElement(jo.Provider,{value:Mo},l.createElement(C6,uu({},w6(i),{popupElement:ht,popupStyle:xe.popup.root,popupClassName:Q(h,me.popup.root),visible:$e,onClose:io,range:!0}),l.createElement(iq,uu({},i,{ref:oe,className:Q(i.className,h,me.root),style:nm(nm({},xe.root),i.style),suffixIcon:K,activeIndex:Se||$e?We:null,activeHelp:!!En,allHelp:!!En&&Kn==="preset",focused:Se,onFocus:yl,onBlur:tg,onKeyDown:bl,onSubmit:xn,value:$r,maskFormat:f,onChange:Jn,onInputChange:Ar,format:d,inputReadOnly:X,disabled:w,open:$e,onOpenChange:be,onClick:gr,onClear:fn,invalid:Qe,onInvalid:Et,onActiveInfo:wo}))))}var Sq=l.forwardRef(vq);function Cq(e){var t=e.prefixCls,n=e.value,r=e.onRemove,i=e.removeIcon,s=i===void 0?"×":i,c=e.formatDate,d=e.disabled,f=e.maxTagCount,p=e.placeholder,g="".concat(t,"-selector"),h="".concat(t,"-selection"),y="".concat(h,"-overflow");function C(S,$){return l.createElement("span",{className:Q("".concat(h,"-item")),title:typeof S=="string"?S:null},l.createElement("span",{className:"".concat(h,"-item-content")},S),!d&&$&&l.createElement("span",{onMouseDown:function(w){w.preventDefault()},onClick:$,className:"".concat(h,"-item-remove")},s))}function b(S){var $=c(S),M=function(R){R&&R.stopPropagation(),r(S)};return C($,M)}function x(S){var $="+ ".concat(S.length," ...");return C($)}return l.createElement("div",{className:g},l.createElement(Uo,{prefixCls:y,data:n,renderItem:b,renderRest:x,itemKey:function($){return c($)},maxCount:f}),!n.length&&l.createElement("span",{className:"".concat(t,"-selection-placeholder")},p))}function Ju(e){"@babel/helpers - typeof";return Ju=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ju(e)}var $q=["id","open","prefix","clearIcon","suffixIcon","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","internalPicker","value","onChange","onSubmit","onInputChange","multiple","maxTagCount","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onMouseDown","required","aria-required","autoFocus","tabIndex","removeIcon"];function ip(){return ip=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ip.apply(this,arguments)}function HM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function BM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?HM(Object(n),!0).forEach(function(r){ss(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ss(e,t,n){return t=xq(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xq(e){var t=wq(e,"string");return Ju(t)=="symbol"?t:String(t)}function wq(e,t){if(Ju(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ju(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Eq(e,t){return Oq(e)||Tq(e,t)||Rq(e,t)||Mq()}function Mq(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
254
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Rq(e,t){if(e){if(typeof e=="string")return LM(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return LM(e,t)}}function LM(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Tq(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,c,d=[],f=!0,p=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(d.push(r.value),d.length!==t);f=!0);}catch(g){p=!0,i=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(p)throw i}}return d}}function Oq(e){if(Array.isArray(e))return e}function Nq(e,t){if(e==null)return{};var n=Iq(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Iq(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s<r.length;s++)i=r[s],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Pq(e,t){e.id;var n=e.open,r=e.prefix,i=e.clearIcon,s=e.suffixIcon;e.activeHelp,e.allHelp;var c=e.focused;e.onFocus,e.onBlur,e.onKeyDown;var d=e.locale,f=e.generateConfig,p=e.placeholder,g=e.className,h=e.style,y=e.onClick,C=e.onClear,b=e.internalPicker,x=e.value,S=e.onChange,$=e.onSubmit;e.onInputChange;var M=e.multiple,w=e.maxTagCount;e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var R=e.disabled,T=e.invalid;e.inputReadOnly;var N=e.direction;e.onOpenChange;var O=e.onMouseDown;e.required,e["aria-required"];var P=e.autoFocus,D=e.tabIndex,k=e.removeIcon,F=Nq(e,$q),Y=N==="rtl",G=l.useContext(jo),V=G.prefixCls,B=G.classNames,_=G.styles,H=l.useRef(),I=l.useRef();l.useImperativeHandle(t,function(){return{nativeElement:H.current,focus:function(ne){var ie;(ie=I.current)===null||ie===void 0||ie.focus(ne)},blur:function(){var ne;(ne=I.current)===null||ne===void 0||ne.blur()}}});var z=t3(F),L=function(ne){S([ne])},A=function(ne){var ie=x.filter(function(fe){return fe&&!Tr(f,d,fe,ne,b)});S(ie),n||$()},j=e3(BM(BM({},e),{},{onChange:L}),function(re){var ne=re.valueTexts;return{value:ne[0]||"",active:c}}),q=Eq(j,2),X=q[0],K=q[1],J=!!(i&&x.length&&!R),Z=M?l.createElement(l.Fragment,null,l.createElement(Cq,{prefixCls:V,value:x,onRemove:A,formatDate:K,maxTagCount:w,disabled:R,removeIcon:k,placeholder:p}),l.createElement("input",{className:"".concat(V,"-multiple-input"),value:x.map(K).join(","),ref:I,readOnly:!0,autoFocus:P,tabIndex:D}),l.createElement(Gp,{type:"suffix",icon:s}),J&&l.createElement(d0,{icon:i,onClear:C})):l.createElement(m0,ip({ref:I},X(),{autoFocus:P,tabIndex:D,suffixIcon:s,clearIcon:J&&l.createElement(d0,{icon:i,onClear:C}),showActiveCls:!1}));return l.createElement("div",ip({},z,{className:Q(V,ss(ss(ss(ss(ss({},"".concat(V,"-multiple"),M),"".concat(V,"-focused"),c),"".concat(V,"-disabled"),R),"".concat(V,"-invalid"),T),"".concat(V,"-rtl"),Y),g),style:h,ref:H,onClick:y,onMouseDown:function(ne){var ie,fe=ne.target;fe!==((ie=I.current)===null||ie===void 0?void 0:ie.inputElement)&&ne.preventDefault(),O?.(ne)}}),r&&l.createElement("div",{className:Q("".concat(V,"-prefix"),B.prefix),style:_.prefix},r),Z)}var zq=l.forwardRef(Pq);function ed(e){"@babel/helpers - typeof";return ed=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ed(e)}function du(){return du=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},du.apply(this,arguments)}function VM(e){return jq(e)||Dq(e)||i3(e)||Aq()}function Aq(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
255
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Dq(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function jq(e){if(Array.isArray(e))return g0(e)}function FM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ba(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?FM(Object(n),!0).forEach(function(r){_q(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):FM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function _q(e,t,n){return t=Hq(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hq(e){var t=Bq(e,"string");return ed(t)=="symbol"?t:String(t)}function Bq(e,t){if(ed(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ed(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function No(e,t){return Fq(e)||Vq(e,t)||i3(e,t)||Lq()}function Lq(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
256
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function i3(e,t){if(e){if(typeof e=="string")return g0(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return g0(e,t)}}function g0(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Vq(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,c,d=[],f=!0,p=!1;try{if(s=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;f=!1}else for(;!(f=(r=s.call(n)).done)&&(d.push(r.value),d.length!==t);f=!0);}catch(g){p=!0,i=g}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(p)throw i}}return d}}function Fq(e){if(Array.isArray(e))return e}function kq(e,t){var n=A6(e),r=No(n,6),i=r[0],s=r[1],c=r[2],d=r[3],f=r[4],p=r[5],g=i,h=g.prefixCls,y=g.rootClassName,C=g.styles,b=g.classNames,x=g.previewValue,S=g.order,$=g.defaultValue,M=g.value,w=g.needConfirm,R=g.onChange,T=g.onKeyDown,N=g.disabled,O=g.disabledDate,P=g.minDate,D=g.maxDate,k=g.defaultOpen,F=g.open,Y=g.onOpenChange,G=g.locale,V=g.generateConfig,B=g.picker,_=g.showNow,H=g.showToday,I=g.showTime,z=g.mode,L=g.onPanelChange,A=g.onCalendarChange,j=g.onOk,q=g.multiple,X=g.defaultPickerValue,K=g.pickerValue,J=g.onPickerValueChange,Z=g.inputReadOnly,re=g.suffixIcon,ne=g.removeIcon,ie=g.onFocus,fe=g.onBlur,le=g.presets,ue=g.components,ge=g.cellRender,oe=g.dateRender,se=g.monthCellRender,he=g.onClick,me=j6(t);function xe(Mt){return Mt===null?null:q?Mt:Mt[0]}var Ae=U6(V,G,s),we=o3(b,C),$e=No(we,2),de=$e[0],be=$e[1],Me=D6(F,k,[N],Y),Oe=No(Me,2),Le=Oe[0],Ge=Oe[1],et=function(ht,Jn,Ar){if(A){var yl=ba({},Ar);delete yl.range,A(xe(ht),xe(Jn),yl)}},ze=function(ht){j?.(xe(ht))},_e=W6(V,G,d,!1,S,$,M,et,ze),De=No(_e,5),Ue=De[0],Ne=De[1],Se=De[2],Be=De[3],Je=De[4],We=Se(),Xe=H6([N]),Ie=No(Xe,4),Ke=Ie[0],ot=Ie[1],at=Ie[2],lt=Ie[3],St=function(ht){ot(!0),ie?.(ht,{})},Ct=function(ht){ot(!1),fe?.(ht,{})},qe=Yt(B,z),rt=No(qe,2),je=rt[0],Pe=rt[1],ke=je==="date"&&I?"datetime":je,Re=Y6(B,je,_,H),Ye=R&&function(Mt,ht){R(xe(Mt),xe(ht))},Ze=q6(ba(ba({},i),{},{onChange:Ye}),Ue,Ne,Se,Be,[],d,Ke,Le,p),it=No(Ze,2),ft=it[1],jt=E6(We,p),Rt=No(jt,2),wt=Rt[0],dn=Rt[1],xt=l.useMemo(function(){return wt.some(function(Mt){return Mt})},[wt]),Qe=function(ht,Jn){if(J){var Ar=ba(ba({},Jn),{},{mode:Jn.mode[0]});delete Ar.range,J(ht[0],Ar)}},Et=B6(V,G,We,[je],Le,lt,s,!1,X,K,dl(I?.defaultOpenValue),Qe,P,D),mt=No(Et,2),Tt=mt[0],Ut=mt[1],ln=ut(function(Mt,ht,Jn){if(Pe(ht),L&&Jn!==!1){var Ar=Mt||We[We.length-1];L(Ar,ht)}}),kt=function(){ft(Se()),Ge(!1,{force:!0})},wn=function(ht){!N&&!me.current.nativeElement.contains(document.activeElement)&&me.current.focus(),Ge(!0),he?.(ht)},xn=function(){ft(null),Ge(!1,{force:!0})},gr=l.useState(null),fn=No(gr,2),Cr=fn[0],Pn=fn[1],Kn=l.useState(null),Qn=No(Kn,2),Nr=Qn[0],yt=Qn[1],En=l.useMemo(function(){var Mt=[Nr].concat(VM(We)).filter(function(ht){return ht});return q?Mt:Mt.slice(0,1)},[We,Nr,q]),Nn=l.useMemo(function(){return!q&&Nr?[Nr]:We.filter(function(Mt){return Mt})},[We,Nr,q]);l.useEffect(function(){Le||yt(null)},[Le]);var $r=function(ht,Jn){x==="hover"&&(yt(ht),Pn(Jn))},xr=_6(le),Zn=function(ht){$r(ht,"preset")},zn=function(ht){var Jn=q?Ae(Se(),ht):[ht],Ar=ft(Jn);Ar&&!q&&Ge(!1,{force:!0})},wo=function(ht){zn(ht)},Jo=function(ht){$r(ht,"cell")},Eo=function(ht){Ge(!0),St(ht)},_o=function(ht){if(at("panel"),!(q&&ke!==B)){var Jn=q?Ae(Se(),ht):[ht];Be(Jn),!w&&!c&&s===ke&&kt()}},tt=function(){Ge(!1)},tn=a1(ge,oe,se),Hn=l.useMemo(function(){var Mt=In(i,!1),ht=en(i,[].concat(VM(Object.keys(Mt)),["onChange","onCalendarChange","style","className","onPanelChange","classNames","styles"]));return ba(ba({},ht),{},{multiple:i.multiple})},[i]),ea=l.createElement(J6,du({},Hn,{showNow:Re,showTime:I,disabledDate:O,onFocus:Eo,onBlur:Ct,picker:B,mode:je,internalMode:ke,onPanelChange:ln,format:f,value:We,isInvalid:p,onChange:null,onSelect:_o,pickerValue:Tt,defaultOpenValue:I?.defaultOpenValue,onPickerValueChange:Ut,hoverValue:En,onHover:Jo,needConfirm:w,onSubmit:kt,onOk:Je,presets:xr,onPresetHover:Zn,onPresetSubmit:zn,onNow:wo,cellRender:tn,classNames:de,styles:be})),ta=function(ht){Be(ht)},Ho=function(){at("input")},io=function(ht){at("input"),Ge(!0,{inherit:!0}),St(ht)},gl=function(ht){Ge(!1),Ct(ht)},hl=function(ht,Jn){ht.key==="Tab"&&kt(),T?.(ht,Jn)},Bo=l.useMemo(function(){return{prefixCls:h,locale:G,generateConfig:V,button:ue.button,input:ue.input,classNames:de,styles:be}},[h,G,V,ue.button,ue.input,de,be]);return It(function(){Le&&lt!==void 0&&ln(null,B,!1)},[Le,lt,B]),It(function(){var Mt=at();!Le&&Mt==="input"&&(Ge(!1),kt()),!Le&&c&&!w&&Mt==="panel"&&kt()},[Le]),l.createElement(jo.Provider,{value:Bo},l.createElement(C6,du({},w6(i),{popupElement:ea,popupStyle:be.popup.root,popupClassName:Q(y,de.popup.root),visible:Le,onClose:tt}),l.createElement(zq,du({},i,{ref:me,className:Q(i.className,y,de.root),style:ba(ba({},be.root),i.style),suffixIcon:re,removeIcon:ne,activeHelp:!!Nr,allHelp:!!Nr&&Cr==="preset",focused:Ke,onFocus:io,onBlur:gl,onKeyDown:hl,onSubmit:kt,value:Nn,maskFormat:f,onChange:ta,onInputChange:Ho,internalPicker:s,format:d,inputReadOnly:Z,disabled:N,open:Le,onOpenChange:Ge,onClick:wn,onClear:xn,invalid:xt,onInvalid:function(ht){dn(ht,0)}}))))}var Wq=l.forwardRef(kq);function qq(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function Yq(e){return qq(e).join("_")}const l3=l.createContext(null),Uq=l3.Provider,s3=l.createContext(null),Gq=s3.Provider;function h0(){return h0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},h0.apply(this,arguments)}const c3=l.forwardRef((e,t)=>{const{prefixCls:n="rc-checkbox",className:r,style:i,checked:s,disabled:c,defaultChecked:d=!1,type:f="checkbox",title:p,onChange:g,...h}=e,y=l.useRef(null),C=l.useRef(null),[b,x]=Yt(d,s);l.useImperativeHandle(t,()=>({focus:M=>{y.current?.focus(M)},blur:()=>{y.current?.blur()},input:y.current,nativeElement:C.current}));const S=Q(n,r,{[`${n}-checked`]:b,[`${n}-disabled`]:c}),$=M=>{c||("checked"in e||x(M.target.checked),g?.({target:{...e,type:f,checked:M.target.checked},stopPropagation(){M.stopPropagation()},preventDefault(){M.preventDefault()},nativeEvent:M.nativeEvent}))};return l.createElement("span",{className:S,title:p,style:i,ref:C},l.createElement("input",h0({},h,{className:`${n}-input`,ref:y,onChange:$,disabled:c,checked:!!b,type:f})),l.createElement("span",{className:`${n}-inner`}))});function u3(e){const t=ae.useRef(null),n=()=>{Bt.cancel(t.current),t.current=null};return[()=>{n(),t.current=Bt(()=>{t.current=null})},s=>{t.current&&(s.stopPropagation(),n()),e?.(s)}]}const Xq=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return{[r]:{...Zt(e),display:"inline-block",fontSize:0,[`&${r}-rtl`]:{direction:"rtl"},[`&${r}-block`]:{display:"flex"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"},"&-vertical":{display:"flex",flexDirection:"column",rowGap:e.marginXS}}}},Kq=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,radioSize:i,motionDurationSlow:s,motionDurationMid:c,motionEaseInOutCirc:d,colorBgContainer:f,colorBorder:p,lineWidth:g,colorBgContainerDisabled:h,colorTextDisabled:y,paddingXS:C,dotColorDisabled:b,lineType:x,radioColor:S,radioBgColor:$,calc:M}=e,w=`${t}-inner`,T=M(i).sub(M(4).mul(2)),N=M(1).mul(i).equal({unit:!0});return{[`${t}-wrapper`]:{...Zt(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:`${te(g)} ${x} ${r}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[t]:{...Zt(e),position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"},[`${t}-wrapper:hover &,
257
+ &:hover ${w}`]:{borderColor:r},[`${t}-input:focus-visible + ${w}`]:Go(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:N,height:N,marginBlockStart:M(1).mul(i).div(-2).equal({unit:!0}),marginInlineStart:M(1).mul(i).div(-2).equal({unit:!0}),backgroundColor:S,borderBlockStart:0,borderInlineStart:0,borderRadius:N,transform:"scale(0)",opacity:0,transition:`all ${s} ${d}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:N,height:N,backgroundColor:f,borderColor:p,borderStyle:"solid",borderWidth:g,borderRadius:"50%",transition:`all ${c}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[w]:{borderColor:r,backgroundColor:$,"&::after":{transform:`scale(${e.calc(e.dotSize).div(i).equal()})`,opacity:1,transition:`all ${s} ${d}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[w]:{backgroundColor:h,borderColor:p,cursor:"not-allowed","&::after":{backgroundColor:b}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:y,cursor:"not-allowed"},[`&${t}-checked`]:{[w]:{"&::after":{transform:`scale(${M(T).div(i).equal()})`}}}},[`span${t} + *`]:{paddingInlineStart:C,paddingInlineEnd:C}}}},Qq=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:i,lineType:s,colorBorder:c,motionDurationMid:d,buttonPaddingInline:f,fontSize:p,buttonBg:g,fontSizeLG:h,controlHeightLG:y,controlHeightSM:C,paddingXS:b,borderRadius:x,borderRadiusSM:S,borderRadiusLG:$,buttonCheckedBg:M,buttonSolidCheckedColor:w,colorTextDisabled:R,colorBgContainerDisabled:T,buttonCheckedBgDisabled:N,buttonCheckedColorDisabled:O,colorPrimary:P,colorPrimaryHover:D,colorPrimaryActive:k,buttonSolidCheckedBg:F,buttonSolidCheckedHoverBg:Y,buttonSolidCheckedActiveBg:G,calc:V}=e;return{[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:f,paddingBlock:0,color:t,fontSize:p,lineHeight:te(V(n).sub(V(i).mul(2)).equal()),background:g,border:`${te(i)} ${s} ${c}`,borderBlockStartWidth:V(i).add(.02).equal(),borderInlineEndWidth:i,cursor:"pointer",transition:[`color ${d}`,`background ${d}`,`box-shadow ${d}`].join(","),a:{color:t},[`> ${r}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:last-child)":{marginInlineEnd:V(i).mul(-1).equal()},"&:first-child":{borderInlineStart:`${te(i)} ${s} ${c}`,borderStartStartRadius:x,borderEndStartRadius:x},"&:last-child":{borderStartEndRadius:x,borderEndEndRadius:x},"&:first-child:last-child":{borderRadius:x},[`${r}-group-large &`]:{height:y,fontSize:h,lineHeight:te(V(y).sub(V(i).mul(2)).equal()),"&:first-child":{borderStartStartRadius:$,borderEndStartRadius:$},"&:last-child":{borderStartEndRadius:$,borderEndEndRadius:$}},[`${r}-group-small &`]:{height:C,paddingInline:V(b).sub(i).equal(),paddingBlock:0,lineHeight:te(V(C).sub(V(i).mul(2)).equal()),"&:first-child":{borderStartStartRadius:S,borderEndStartRadius:S},"&:last-child":{borderStartEndRadius:S,borderEndEndRadius:S}},"&:hover":{position:"relative",color:P},"&:has(:focus-visible)":Go(e),[`${r}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${r}-button-wrapper-disabled)`]:{zIndex:1,color:P,background:M,borderColor:P,"&::before":{backgroundColor:P},"&:first-child":{borderColor:P},"&:hover":{color:D,borderColor:D,"&::before":{backgroundColor:D}},"&:active":{color:k,borderColor:k,"&::before":{backgroundColor:k}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:w,background:F,borderColor:F,"&:hover":{color:w,background:Y,borderColor:Y},"&:active":{color:w,background:G,borderColor:G}},"&-disabled":{color:R,backgroundColor:T,borderColor:c,cursor:"not-allowed","&:first-child, &:hover":{color:R,backgroundColor:T,borderColor:c}},[`&-disabled${r}-button-wrapper-checked`]:{color:O,backgroundColor:N,borderColor:c,boxShadow:"none"},"&-block":{flex:1,textAlign:"center"}}}},Zq=e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:i,fontSizeLG:s,colorText:c,colorBgContainer:d,colorTextDisabled:f,controlItemBgActiveDisabled:p,colorTextLightSolid:g,colorPrimary:h,colorPrimaryHover:y,colorPrimaryActive:C,colorWhite:b}=e,x=4,S=s,$=t?S-x*2:S-(x+i)*2;return{radioSize:S,dotSize:$,dotColorDisabled:f,buttonSolidCheckedColor:g,buttonSolidCheckedBg:h,buttonSolidCheckedHoverBg:y,buttonSolidCheckedActiveBg:C,buttonBg:d,buttonCheckedBg:d,buttonColor:c,buttonCheckedBgDisabled:p,buttonCheckedColorDisabled:f,buttonPaddingInline:n-i,wrapperMarginInlineEnd:r,radioColor:t?h:b,radioBgColor:t?d:h}},d3=zt("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${te(n)} ${t}`,s=Nt(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return[Xq(s),Kq(s),Qq(s)]},Zq,{unitless:{radioSize:!0,dotSize:!0}}),Jq=(e,t)=>{const n=l.useContext(l3),r=l.useContext(s3),{getPrefixCls:i,direction:s,className:c,style:d,classNames:f,styles:p}=Pt("radio"),g=l.useRef(null),h=ir(t,g),{isFormItemInput:y}=l.useContext(Or),C=A=>{e.onChange?.(A),n?.onChange?.(A)},{prefixCls:b,className:x,rootClassName:S,children:$,style:M,title:w,classNames:R,styles:T,...N}=e,O=i("radio",b),P=(n?.optionType||r)==="button",D=P?`${O}-button`:O,k=lr(O),[F,Y]=d3(O,k),G={...N},V=l.useContext(Wr);n&&(G.name=n.name,G.onChange=C,G.checked=e.value===n.value,G.disabled=G.disabled??n.disabled),G.disabled=G.disabled??V;const B={...e,...G},[_,H]=Vt([f,R],[p,T],{props:B}),I=Q(`${D}-wrapper`,{[`${D}-wrapper-checked`]:G.checked,[`${D}-wrapper-disabled`]:G.disabled,[`${D}-wrapper-rtl`]:s==="rtl",[`${D}-wrapper-in-form-item`]:y,[`${D}-wrapper-block`]:!!n?.block},c,x,S,_.root,F,Y,k),[z,L]=u3(G.onClick);return l.createElement(md,{component:"Radio",disabled:G.disabled},l.createElement("label",{className:I,style:{...H.root,...d,...M},onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:w,onClick:z},l.createElement(c3,{...G,className:Q(_.icon,{[fd]:!P}),style:H.icon,type:"radio",prefixCls:D,ref:h,onClick:L}),$!==void 0?l.createElement("span",{className:Q(`${D}-label`,_.label),style:H.label},$):null))},lp=l.forwardRef(Jq),eY=l.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=l.useContext(dt),{name:i}=l.useContext(Or),s=Qo(Yq(i)),{prefixCls:c,className:d,rootClassName:f,options:p,buttonStyle:g="outline",disabled:h,children:y,size:C,style:b,id:x,optionType:S,name:$=s,defaultValue:M,value:w,block:R=!1,onChange:T,onMouseEnter:N,onMouseLeave:O,onFocus:P,onBlur:D,orientation:k,vertical:F}=e,[Y,G]=Yt(M,w),V=l.useCallback(K=>{const J=Y,Z=K.target.value;"value"in e||G(Z),Z!==J&&T?.(K)},[Y,G,T]),B=n("radio",c),_=`${B}-group`,H=lr(B),[I,z]=d3(B,H);let L=y;p&&p.length>0&&(L=p.map(K=>typeof K=="string"||typeof K=="number"?l.createElement(lp,{key:K.toString(),prefixCls:B,disabled:h,value:K,checked:Y===K},K):l.createElement(lp,{key:`radio-group-value-options-${K.value}`,prefixCls:B,disabled:K.disabled||h,value:K.value,checked:Y===K.value,title:K.title,style:K.style,className:K.className,id:K.id,required:K.required},K.label)));const A=pr(C),[,j]=ld(k,F),q=Q(_,`${_}-${g}`,{[`${_}-${A}`]:A,[`${_}-rtl`]:r==="rtl",[`${_}-block`]:R},d,f,I,z,H),X=l.useMemo(()=>({onChange:V,value:Y,disabled:h,name:$,optionType:S,block:R}),[V,Y,h,$,S,R]);return l.createElement("div",{...In(e,{aria:!0,data:!0}),className:Q(q,{[`${B}-group-vertical`]:j}),style:b,onMouseEnter:N,onMouseLeave:O,onFocus:P,onBlur:D,id:x,ref:t},l.createElement(Uq,{value:X},L))}),f3=l.memo(eY),tY=(e,t)=>{const{getPrefixCls:n}=l.useContext(dt),{prefixCls:r,...i}=e,s=n("radio",r);return l.createElement(Gq,{value:"button"},l.createElement(lp,{prefixCls:s,...i,type:"radio",ref:t}))},y0=l.forwardRef(tY),d1=lp;d1.Button=y0;d1.Group=f3;d1.__ANT_RADIO=!0;const nY=10,rY=20;function oY(e){const{fullscreen:t,validRange:n,generateConfig:r,locale:i,prefixCls:s,value:c,onChange:d,divRef:f}=e,p=r.getYear(c||r.getNow());let g=p-nY,h=g+rY;n&&(g=r.getYear(n[0]),h=r.getYear(n[1])+1);const y=i&&i.year==="年"?"年":"",C=[];for(let b=g;b<h;b++)C.push({label:`${b}${y}`,value:b});return l.createElement(Vr,{size:t?void 0:"small",options:C,value:p,className:`${s}-year-select`,onChange:b=>{let x=r.setYear(c,b);if(n){const[S,$]=n,M=r.getYear(x),w=r.getMonth(x);M===r.getYear($)&&w>r.getMonth($)&&(x=r.setMonth(x,r.getMonth($))),M===r.getYear(S)&&w<r.getMonth(S)&&(x=r.setMonth(x,r.getMonth(S)))}d(x)},getPopupContainer:()=>f.current})}function aY(e){const{prefixCls:t,fullscreen:n,validRange:r,value:i,generateConfig:s,locale:c,onChange:d,divRef:f}=e,p=s.getMonth(i||s.getNow());let g=0,h=11;if(r){const[b,x]=r,S=s.getYear(i);s.getYear(x)===S&&(h=s.getMonth(x)),s.getYear(b)===S&&(g=s.getMonth(b))}const y=c.shortMonths||s.locale.getShortMonths(c.locale),C=[];for(let b=g;b<=h;b+=1)C.push({label:y[b],value:b});return l.createElement(Vr,{size:n?void 0:"small",className:`${t}-month-select`,value:p,options:C,onChange:b=>{d(s.setMonth(i,b))},getPopupContainer:()=>f.current})}function iY(e){const{prefixCls:t,locale:n,mode:r,fullscreen:i,onModeChange:s}=e;return l.createElement(f3,{onChange:({target:{value:c}})=>{s(c)},value:r,size:i?void 0:"small",className:`${t}-mode-switch`},l.createElement(y0,{value:"month"},n.month),l.createElement(y0,{value:"year"},n.year))}function lY(e){const{prefixCls:t,fullscreen:n,mode:r,onChange:i,onModeChange:s,className:c,style:d}=e,f=l.useRef(null),p=l.useContext(Or),g=l.useMemo(()=>({...p,isFormItemInput:!1}),[p]),h={...e,fullscreen:n,divRef:f};return l.createElement("div",{className:Q(`${t}-header`,c),style:d,ref:f},l.createElement(Or.Provider,{value:g},l.createElement(oY,{...h,onChange:y=>{i(y,"year")}}),r==="month"&&l.createElement(aY,{...h,onChange:y=>{i(y,"month")}})),l.createElement(iY,{...h,onModeChange:s}))}function Vs(e){return Nt(e,{inputAffixPadding:e.paddingXXS})}const Fs=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:i,controlHeightSM:s,controlHeightLG:c,fontSizeLG:d,lineHeightLG:f,paddingSM:p,controlPaddingHorizontalSM:g,controlPaddingHorizontal:h,colorFillAlter:y,colorPrimaryHover:C,colorPrimary:b,controlOutlineWidth:x,controlOutline:S,colorErrorOutline:$,colorWarningOutline:M,colorBgContainer:w,inputFontSize:R,inputFontSizeLG:T,inputFontSizeSM:N}=e,O=R||n,P=N||O,D=T||d,k=Math.round((t-O*r)/2*10)/10-i,F=Math.round((s-P*r)/2*10)/10-i,Y=Math.ceil((c-D*f)/2*10)/10-i;return{paddingBlock:Math.max(k,0),paddingBlockSM:Math.max(F,0),paddingBlockLG:Math.max(Y,0),paddingInline:p-i,paddingInlineSM:g-i,paddingInlineLG:h-i,addonBg:y,activeBorderColor:b,hoverBorderColor:C,activeShadow:`0 0 0 ${x}px ${S}`,errorActiveShadow:`0 0 0 ${x}px ${$}`,warningActiveShadow:`0 0 0 ${x}px ${M}`,hoverBg:w,activeBg:w,inputFontSize:O,inputFontSizeLG:D,inputFontSizeSM:P}},sY=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),Xp=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])":{...sY(Nt(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled}))}}),f1=(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}}),kM=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...f1(e,t),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}},[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),m3=(e,t)=>({"&-outlined":{...f1(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow}),[`&${e.componentCls}-disabled, &[disabled]`]:{...Xp(e)},...kM(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError}),...kM(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning}),...t}}),WM=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),cY=e=>({"&-outlined":{[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${te(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},...WM(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText}),...WM(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText}),[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:{...Xp(e)}}}}),p3=(e,t)=>{const{componentCls:n}=e;return{"&-borderless":{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}}},g3=(e,t)=>({background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:t?.inputColor??"unset"},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}),qM=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...g3(e,t),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}}),h3=(e,t)=>({"&-filled":{...g3(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,inputColor:e.colorText}),[`&${e.componentCls}-disabled, &[disabled]`]:{...Xp(e)},...qM(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError}),...qM(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning}),...t}}),YM=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),uY=e=>({"&-filled":{[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:"static"}},...YM(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText}),...YM(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:`${te(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${te(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${te(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${te(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${te(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${te(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}}}),y3=(e,t)=>({background:e.colorBgContainer,borderWidth:`${te(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.borderColor} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${t.hoverBorderColor} transparent`,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:`transparent transparent ${t.activeBorderColor} transparent`,outline:0,backgroundColor:e.activeBg}}),UM=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...y3(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`}}),b3=(e,t)=>({"&-underlined":{...y3(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"},...UM(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError}),...UM(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning}),...t}}),v3=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),S3=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:i}=e;return{padding:`${te(t)} ${te(i)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},m1=e=>({padding:`${te(e.paddingBlockSM)} ${te(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),p1=(e,t={})=>({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${te(e.paddingBlock)} ${te(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`,...v3(e.colorTextPlaceholder),"&-lg":{...S3(e),...t.largeStyle},"&-sm":{...m1(e),...t.smallStyle},"&-rtl, &-textarea-rtl":{direction:"rtl"}}),dY=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`]:{...S3(e)},[`&-sm ${t}, &-sm > ${t}-group-addon`]:{...m1(e)},[`&-lg ${n}-select-single`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${te(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${te(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${te(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{backgroundColor:"inherit",border:`${te(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}},[`${n}-cascader-picker`]:{margin:`-9px ${te(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[t]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0},"&:not(:first-child)":{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:{display:"block",...Ji(),[`${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},[`
258
+ & > ${t}-affix-wrapper,
259
+ & > ${t}-number-affix-wrapper,
260
+ & > ${n}-picker-range
261
+ `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:"none"},[`& > ${n}-select,
262
+ & > ${n}-select-auto-complete ${t},
263
+ & > ${n}-cascader-picker ${t},
264
+ & > ${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,
265
+ & > ${n}-select:first-child,
266
+ & > ${n}-select-auto-complete:first-child ${t},
267
+ & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
268
+ & > ${n}-select:last-child,
269
+ & > ${n}-cascader-picker:last-child ${t},
270
+ & > ${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`]:{}}}}},fY=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:i}=e,c=i(n).sub(i(r).mul(2)).sub(16).div(2).equal();return{[t]:{...Zt(e),...p1(e),...m3(e),...h3(e),...p3(e),...b3(e),'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:c,paddingBottom:c}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:"none"}}}},mY=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 ${te(e.inputAffixPadding)}`}}}},pY=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:i,colorIcon:s,colorIconHover:c,iconCls:d}=e,f=`${t}-affix-wrapper`,p=`${t}-affix-wrapper-disabled`;return{[f]:{...p1(e),display:"inline-flex","&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r,direction:"ltr"},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}},...mY(e),[`${d}${t}-password-icon`]:{color:s,cursor:"pointer",transition:`all ${i}`,"&:hover":{color:c}}},[`${t}-underlined`]:{borderRadius:0},[p]:{[`${d}${t}-password-icon`]:{color:s,cursor:"not-allowed","&:hover":{color:s}}}}},gY=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:{...Zt(e),...dY(e),"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:n,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:r}},...cY(e),...uY(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}}}}}},hY=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},C3=zt(["Input","Shared"],e=>{const t=Nt(e,Vs(e));return[fY(t),pY(t)]},Fs,{resetFont:!1}),$3=zt(["Input","Component"],e=>{const t=Nt(e,Vs(e));return[gY(t),hY(t),gd(t,{focus:!0,focusElCls:`${t.componentCls}-affix-wrapper-focused`})]},Fs,{resetFont:!1}),yY=e=>{const{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:i}=e,s=e.max(e.calc(n).sub(r).equal(),0),c=e.max(e.calc(s).sub(i).equal(),0);return{basePadding:s,containerPadding:c,itemHeight:te(t),itemLineHeight:te(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},bY=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:i,paddingXS:s,multipleItemColorDisabled:c,multipleItemBorderColorDisabled:d,colorIcon:f,colorIconHover:p,INTERNAL_FIXED_ITEM_MARGIN:g}=e;return{[`${t}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"calc(100% - 4px)",display:"inline-flex"},[`${t}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:g,borderRadius:r,cursor:"default",transition:`font-size ${i}, line-height ${i}, height ${i}`,marginInlineEnd:e.calc(g).mul(2).equal(),paddingInlineStart:s,paddingInlineEnd:e.calc(s).div(2).equal(),[`${t}-disabled&`]:{color:c,borderColor:d,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(s).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":{...Is(),display:"inline-flex",alignItems:"center",color:f,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:p}}}}}},qy=(e,t)=>{const{componentCls:n,controlHeight:r}=e,i=t?`${n}-${t}`:"",s=yY(e);return[{[`${n}-multiple${i}`]:{paddingBlock:s.containerPadding,paddingInlineStart:s.basePadding,minHeight:r,[`${n}-selection-item`]:{height:s.itemHeight,lineHeight:te(s.itemLineHeight)}}}]},vY=e=>{const{componentCls:t,calc:n,lineWidth:r}=e,i=Nt(e,{fontHeight:e.fontSize,selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS,controlHeight:e.controlHeightSM}),s=Nt(e,{fontHeight:n(e.multipleItemHeightLG).sub(n(r).mul(2).equal()).equal(),fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius,controlHeight:e.controlHeightLG});return[qy(i,"small"),qy(e),qy(s,"large"),{[`${t}${t}-multiple`]:{width:"100%",cursor:"text",[`${t}-selector`]:{flex:"auto",padding:0,position:"relative","&:after":{margin:0},[`${t}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:0,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}},...bY(e),[`${t}-multiple-input`]:{width:0,height:0,border:0,visibility:"hidden",position:"absolute",zIndex:-1}}}]},SY=e=>{const{pickerCellCls:t,pickerCellInnerCls:n,cellHeight:r,borderRadiusSM:i,motionDurationMid:s,cellHoverBg:c,lineWidth:d,lineType:f,colorPrimary:p,cellActiveWithRangeBg:g,colorTextLightSolid:h,colorTextDisabled:y,cellBgDisabled:C,colorFillSecondary:b}=e;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:r,transform:"translateY(-50%)",content:'""',pointerEvents:"none"},[n]:{position:"relative",zIndex:2,display:"inline-block",minWidth:r,height:r,lineHeight:te(r),borderRadius:i,transition:`background ${s}`},[`&:hover:not(${t}-in-view):not(${t}-disabled),
271
+ &:hover:not(${t}-selected):not(${t}-range-start):not(${t}-range-end):not(${t}-disabled)`]:{[n]:{background:c}},[`&-in-view${t}-today ${n}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${te(d)} ${f} ${p}`,borderRadius:i,content:'""'}},[`&-in-view${t}-in-range,
272
+ &-in-view${t}-range-start,
273
+ &-in-view${t}-range-end`]:{position:"relative",[`&:not(${t}-disabled):before`]:{background:g}},[`&-in-view${t}-selected,
274
+ &-in-view${t}-range-start,
275
+ &-in-view${t}-range-end`]:{[`&:not(${t}-disabled) ${n}`]:{color:h,background:p},[`&${t}-disabled ${n}`]:{background:b}},[`&-in-view${t}-range-start:not(${t}-disabled):before`]:{insetInlineStart:"50%"},[`&-in-view${t}-range-end:not(${t}-disabled):before`]:{insetInlineEnd:"50%"},[`&-in-view${t}-range-start:not(${t}-range-end) ${n}`]:{borderStartStartRadius:i,borderEndStartRadius:i,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${t}-range-end:not(${t}-range-start) ${n}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:i,borderEndEndRadius:i},"&-disabled":{color:y,cursor:"not-allowed",[n]:{background:"transparent"},"&::before":{background:C}},[`&-disabled${t}-today ${n}::before`]:{borderColor:y}}},x3=e=>{const{componentCls:t,pickerCellCls:n,pickerCellInnerCls:r,pickerYearMonthCellWidth:i,pickerControlIconSize:s,cellWidth:c,paddingSM:d,paddingXS:f,paddingXXS:p,colorBgContainer:g,lineWidth:h,lineType:y,borderRadiusLG:C,colorPrimary:b,colorTextHeading:x,colorSplit:S,pickerControlIconBorderWidth:$,colorIcon:M,textHeight:w,motionDurationMid:R,colorIconHover:T,fontWeightStrong:N,cellHeight:O,pickerCellPaddingVertical:P,colorTextDisabled:D,colorText:k,fontSize:F,motionDurationSlow:Y,withoutTimeCellHeight:G,pickerQuarterPanelContentHeight:V,borderRadiusSM:B,colorTextLightSolid:_,cellHoverBg:H,timeColumnHeight:I,timeColumnWidth:z,timeCellHeight:L,controlItemBgActive:A,marginXXS:j,pickerDatePanelPaddingHorizontal:q,pickerControlIconMargin:X}=e,K=e.calc(c).mul(7).add(e.calc(q).mul(2)).equal();return{[t]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:g,borderRadius:C,outline:"none","&-focused":{borderColor:b},"&-rtl":{[`${t}-prev-icon,
276
+ ${t}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${t}-next-icon,
277
+ ${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:K},"&-header":{display:"flex",padding:`0 ${te(f)}`,color:x,borderBottom:`${te(h)} ${y} ${S}`,"> *":{flex:"none"},button:{padding:0,color:M,lineHeight:te(w),background:"transparent",border:0,cursor:"pointer",transition:`color ${R}`,fontSize:"inherit",display:"inline-flex",alignItems:"center",justifyContent:"center","&:empty":{display:"none"}},"> button":{minWidth:"1.6em",fontSize:F,"&:hover":{color:T},"&:disabled":{opacity:.25,pointerEvents:"none"}},"&-view":{flex:"auto",fontWeight:N,lineHeight:te(w),"> button":{color:"inherit",fontWeight:"inherit",verticalAlign:"top","&:not(:first-child)":{marginInlineStart:f},"&:hover":{color:b}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:"relative",width:s,height:s,"&::before":{position:"absolute",top:0,insetInlineStart:0,width:s,height:s,border:"0 solid currentcolor",borderBlockStartWidth:$,borderInlineStartWidth:$,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:X,insetInlineStart:X,display:"inline-block",width:s,height:s,border:"0 solid currentcolor",borderBlockStartWidth:$,borderInlineStartWidth:$,content:'""'}},"&-prev-icon, &-super-prev-icon":{transform:"rotate(-45deg)"},"&-next-icon, &-super-next-icon":{transform:"rotate(135deg)"},"&-content":{width:"100%",tableLayout:"fixed",borderCollapse:"collapse","th, td":{position:"relative",minWidth:O,fontWeight:"normal"},th:{height:e.calc(O).add(e.calc(P).mul(2)).equal(),color:k,verticalAlign:"middle"}},"&-cell":{padding:`${te(P)} 0`,color:D,cursor:"pointer","&-in-view":{color:k},...SY(e)},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-content`]:{height:e.calc(G).mul(4).equal()},[r]:{padding:`0 ${te(f)}`}},"&-quarter-panel":{[`${t}-content`]:{height:V}},"&-decade-panel":{[r]:{padding:`0 ${te(e.calc(f).div(2).equal())}`},[`${t}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-body`]:{padding:`0 ${te(f)}`},[r]:{width:i}},"&-date-panel":{[`${t}-body`]:{padding:`${te(f)} ${te(q)}`},[`${t}-content th`]:{boxSizing:"border-box",padding:0}},"&-week-panel-row":{td:{"&:before":{transition:`background ${R}`},"&:first-child:before":{borderStartStartRadius:B,borderEndStartRadius:B},"&:last-child:before":{borderStartEndRadius:B,borderEndEndRadius:B}},"&:hover td:before":{background:H},"&-range-start td, &-range-end td, &-selected td, &-hover td":{[`&${n}`]:{"&:before":{background:b},[`&${t}-cell-week`]:{color:new Jt(_).setA(.5).toHexString()},[r]:{color:_}}},"&-range-hover td:before":{background:A}},"&-week-panel, &-date-panel-show-week":{[`${t}-body`]:{padding:`${te(f)} ${te(d)}`},[`${t}-content th`]:{width:"auto"}},"&-datetime-panel":{display:"flex",[`${t}-time-panel`]:{borderInlineStart:`${te(h)} ${y} ${S}`},[`${t}-date-panel,
278
+ ${t}-time-panel`]:{transition:`opacity ${Y}`},"&-active":{[`${t}-date-panel,
279
+ ${t}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",[`${t}-content`]:{display:"flex",flex:"auto",height:I},"&-column":{flex:"1 0 auto",width:z,margin:`${te(p)} 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${R}`,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% - ${te(L)})`,content:'""'},"&:not(:first-child)":{borderInlineStart:`${te(h)} ${y} ${S}`},"&-active":{background:new Jt(A).setA(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:j,[`${t}-time-panel-cell-inner`]:{display:"block",width:e.calc(z).sub(e.calc(j).mul(2)).equal(),height:L,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:e.calc(z).sub(L).div(2).equal(),color:k,lineHeight:te(L),borderRadius:B,cursor:"pointer",transition:`background ${R}`,"&:hover":{background:H}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:A}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:D,background:"transparent",cursor:"not-allowed"}}}}}}}}},CY=e=>{const{componentCls:t,textHeight:n,lineWidth:r,paddingSM:i,antCls:s,colorPrimary:c,cellActiveWithRangeBg:d,colorPrimaryBorder:f,lineType:p,colorSplit:g}=e;return{[`${t}-dropdown`]:{[`${t}-footer`]:{borderTop:`${te(r)} ${p} ${g}`,"&-extra":{padding:`0 ${te(i)}`,lineHeight:te(e.calc(n).sub(e.calc(r).mul(2)).equal()),textAlign:"start","&:not(:last-child)":{borderBottom:`${te(r)} ${p} ${g}`}}},[`${t}-panels + ${t}-footer ${t}-ranges`]:{justifyContent:"space-between"},[`${t}-ranges`]:{marginBlock:0,paddingInline:te(i),overflow:"hidden",textAlign:"start",listStyle:"none",display:"flex",justifyContent:"center",alignItems:"center","> li":{lineHeight:te(e.calc(n).sub(e.calc(r).mul(2)).equal()),display:"inline-block"},[`${t}-now-btn-disabled`]:{pointerEvents:"none",color:e.colorTextDisabled},[`${t}-preset > ${s}-tag-blue`]:{color:c,background:d,borderColor:f,cursor:"pointer"},[`${t}-ok`]:{paddingBlock:e.calc(r).mul(2).equal(),marginInlineStart:"auto"}}}}},w3=e=>{const{componentCls:t,controlHeightLG:n,paddingXXS:r,padding:i}=e;return{pickerCellCls:`${t}-cell`,pickerCellInnerCls:`${t}-cell-inner`,pickerYearMonthCellWidth:e.calc(n).mul(1.5).equal(),pickerQuarterPanelContentHeight:e.calc(n).mul(1.4).equal(),pickerCellPaddingVertical:e.calc(r).add(e.calc(r).div(2)).equal(),pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconMargin:4,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:e.calc(i).add(e.calc(r).div(2)).equal()}},E3=e=>{const{colorBgContainerDisabled:t,controlHeight:n,controlHeightSM:r,controlHeightLG:i,paddingXXS:s,lineWidth:c}=e,d=s*2,f=c*2,p=Math.min(n-d,n-f),g=Math.min(r-d,r-f),h=Math.min(i-d,i-f);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(s/2),cellHoverBg:e.controlItemBgHover,cellActiveWithRangeBg:e.controlItemBgActive,cellHoverWithRangeBg:new Jt(e.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new Jt(e.colorPrimary).lighten(20).toHexString(),cellBgDisabled:t,timeColumnWidth:i*1.4,timeColumnHeight:224,timeCellHeight:28,cellWidth:r*1.5,cellHeight:r,textHeight:i,withoutTimeCellHeight:i*1.65,multipleItemBg:e.colorFillSecondary,multipleItemBorderColor:"transparent",multipleItemHeight:p,multipleItemHeightSM:g,multipleItemHeightLG:h,multipleSelectorBgDisabled:t,multipleItemColorDisabled:e.colorTextDisabled,multipleItemBorderColorDisabled:"transparent"}},$Y=e=>({...Fs(e),...E3(e),..._p(e),presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50}),xY=e=>{const{componentCls:t}=e;return{[t]:[{...m3(e),...b3(e),...h3(e),...p3(e)},{"&-outlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${te(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-filled":{[`&${t}-multiple ${t}-selection-item`]:{background:e.colorBgContainer,border:`${te(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}},"&-borderless":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${te(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-underlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${te(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}]}},Yy=(e,t)=>({padding:`${te(e)} ${te(t)}`}),wY=e=>{const{componentCls:t,colorError:n,colorWarning:r}=e;return{[`${t}:not(${t}-disabled):not([disabled])`]:{[`&${t}-status-error`]:{[`${t}-active-bar`]:{background:n}},[`&${t}-status-warning`]:{[`${t}-active-bar`]:{background:r}}}}},EY=e=>{const{componentCls:t,antCls:n,paddingInline:r,lineWidth:i,lineType:s,colorBorder:c,borderRadius:d,motionDurationMid:f,colorTextDisabled:p,colorTextPlaceholder:g,colorTextQuaternary:h,fontSizeLG:y,inputFontSizeLG:C,fontSizeSM:b,inputFontSizeSM:x,controlHeightSM:S,paddingInlineSM:$,paddingXS:M,marginXS:w,colorIcon:R,lineWidthBold:T,colorPrimary:N,motionDurationSlow:O,zIndexPopup:P,paddingXXS:D,sizePopupArrow:k,colorBgElevated:F,borderRadiusLG:Y,boxShadowSecondary:G,borderRadiusSM:V,colorSplit:B,cellHoverBg:_,presetsWidth:H,presetsMaxWidth:I,boxShadowPopoverArrow:z,fontHeight:L,lineHeightLG:A}=e;return[{[t]:{...Zt(e),...Yy(e.paddingBlock,e.paddingInline),position:"relative",display:"inline-flex",alignItems:"center",lineHeight:1,borderRadius:d,transition:`border ${f}, box-shadow ${f}, background ${f}`,[`${t}-prefix`]:{flex:"0 0 auto",marginInlineEnd:e.inputAffixPadding},[`${t}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":{position:"relative",display:"inline-block",width:"100%",color:"inherit",fontSize:e.inputFontSize??e.fontSize,lineHeight:e.lineHeight,transition:`all ${f}`,...v3(g),flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,fontFamily:"inherit","&:focus":{boxShadow:"none",outline:0},"&[disabled]":{background:"transparent",color:p,cursor:"not-allowed"}},"&-placeholder":{"> input":{color:g}}},"&-large":{...Yy(e.paddingBlockLG,e.paddingInlineLG),borderRadius:e.borderRadiusLG,[`${t}-input > input`]:{fontSize:C??y,lineHeight:A}},"&-small":{...Yy(e.paddingBlockSM,e.paddingInlineSM),borderRadius:e.borderRadiusSM,[`${t}-input > input`]:{fontSize:x??b}},[`${t}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:e.calc(M).div(2).equal(),color:h,lineHeight:1,pointerEvents:"none",transition:`opacity ${f}, color ${f}`,"> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:w}}},[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:h,lineHeight:1,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${f}, color ${f}`,"> *":{verticalAlign:"top"},"&:hover":{color:R}},"&:hover":{[`${t}-clear`]:{opacity:1},[`${t}-suffix:not(:last-child)`]:{opacity:0}},[`${t}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:y,color:h,fontSize:y,verticalAlign:"top",cursor:"default",[`${t}-focused &`]:{color:R},[`${t}-range-separator &`]:{[`${t}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${t}-active-bar`]:{bottom:e.calc(i).mul(-1).equal(),height:T,background:N,opacity:0,transition:`all ${O} ease-out`,pointerEvents:"none"},[`&${t}-focused`]:{[`${t}-active-bar`]:{opacity:1}},[`${t}-range-separator`]:{alignItems:"center",padding:`0 ${te(M)}`,lineHeight:1}},"&-range, &-multiple":{[`${t}-clear`]:{insetInlineEnd:r},[`&${t}-small`]:{[`${t}-clear`]:{insetInlineEnd:$}}},"&-dropdown":{...Zt(e),...x3(e),pointerEvents:"none",position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:P,[`&${t}-dropdown-hidden`]:{display:"none"},"&-rtl":{direction:"rtl"},[`&${t}-dropdown-placement-bottomLeft,
280
+ &${t}-dropdown-placement-bottomRight`]:{[`${t}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${t}-dropdown-placement-topLeft,
281
+ &${t}-dropdown-placement-topRight`]:{[`${t}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${n}-slide-up-appear, &${n}-slide-up-enter`]:{[`${t}-range-arrow${t}-range-arrow`]:{transition:"none"}},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topLeft,
282
+ &${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topRight,
283
+ &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topLeft,
284
+ &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topRight`]:{animationName:Pp},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomLeft,
285
+ &${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomRight,
286
+ &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomLeft,
287
+ &${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomRight`]:{animationName:Np},[`&${n}-slide-up-leave ${t}-panel-container`]:{pointerEvents:"none"},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topLeft,
288
+ &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topRight`]:{animationName:zp},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomLeft,
289
+ &${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomRight`]:{animationName:Ip},[`${t}-panel > ${t}-time-panel`]:{paddingTop:D},[`${t}-range-wrapper`]:{display:"flex",position:"relative"},[`${t}-range-arrow`]:{position:"absolute",zIndex:1,display:"none",paddingInline:e.calc(r).mul(1.5).equal(),boxSizing:"content-box",transition:`all ${O} ease-out`,...LO(e,F,z),"&:before":{insetInlineStart:e.calc(r).mul(1.5).equal()}},[`${t}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:F,borderRadius:Y,boxShadow:G,transition:`margin ${O}`,display:"inline-block",pointerEvents:"auto",[`${t}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${t}-presets`]:{display:"flex",flexDirection:"column",minWidth:H,maxWidth:I,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:M,borderInlineEnd:`${te(i)} ${s} ${B}`,li:{...$o,borderRadius:V,paddingInline:M,paddingBlock:e.calc(S).sub(L).div(2).equal(),cursor:"pointer",transition:`all ${O}`,"+ li":{marginTop:w},"&:hover":{background:_}}}},[`${t}-panels`]:{display:"inline-flex",flexWrap:"nowrap","&:last-child":{[`${t}-panel`]:{borderWidth:0}}},[`${t}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${t}-content, table`]:{textAlign:"center"},"&-focused":{borderColor:c}}}},"&-dropdown-range":{padding:`${te(e.calc(k).mul(2).div(3).equal())} 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${t}-separator`]:{transform:"scale(-1, 1)"},[`${t}-footer`]:{"&-extra":{direction:"rtl"}}}}},Ko(e,"slide-up"),Ko(e,"slide-down"),Es(e,"move-up"),Es(e,"move-down")]},M3=zt("DatePicker",e=>{const t=Nt(Vs(e),w3(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[CY(t),EY(t),xY(t),wY(t),vY(t),gd(e,{focusElCls:`${e.componentCls}-focused`})]},$Y),MY=e=>{const{calendarCls:t,componentCls:n,fullBg:r,fullPanelBg:i,itemActiveBg:s}=e;return{[t]:{...x3(e),...Zt(e),background:r,"&-rtl":{direction:"rtl"},[`${t}-header`]:{display:"flex",justifyContent:"flex-end",padding:`${te(e.paddingSM)} 0`,[`${t}-year-select`]:{minWidth:e.yearControlWidth},[`${t}-month-select`]:{minWidth:e.monthControlWidth,marginInlineStart:e.marginXS},[`${t}-mode-switch`]:{marginInlineStart:e.marginXS}}},[`${t} ${n}-panel`]:{background:i,border:0,borderTop:`${te(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,borderRadius:0,[`${n}-month-panel, ${n}-date-panel`]:{width:"auto"},[`${n}-body`]:{padding:`${te(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 ${te(e.borderRadiusLG)} ${te(e.borderRadiusLG)}`},[`${n}-content`]:{height:e.miniContentHeight,th:{height:"auto",padding:0,lineHeight:te(e.weekHeight)}},[`${n}-cell::before`]:{pointerEvents:"none"}},[`${t}${t}-full`]:{[`${n}-panel`]:{display:"block",width:"100%",textAlign:"end",background:r,border:0,[`${n}-body`]:{"th, td":{padding:0},th:{height:"auto",paddingInlineEnd:e.paddingSM,paddingBottom:e.paddingXXS,lineHeight:te(e.weekHeight)}}},[`${n}-cell-week ${n}-cell-inner`]:{display:"block",borderRadius:0,borderTop:`${te(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:s}},"&-selected, &-selected:hover":{[`${t}-date, ${t}-date-today`]:{[`${t}-date-value`]:{color:e.colorPrimary}}}},[`${t}-date`]:{display:"block",width:"auto",height:"auto",margin:`0 ${te(e.calc(e.marginXS).div(2).equal())}`,padding:`${te(e.calc(e.paddingXS).div(2).equal())} ${te(e.paddingXS)} 0`,border:0,borderTop:`${te(e.lineWidthBold)} ${e.lineType} ${e.colorSplit}`,borderRadius:0,transition:`background ${e.motionDurationSlow}`,"&-value":{lineHeight:te(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: ${te(e.screenXS)}) `]:{[t]:{[`${t}-header`]:{display:"block",[`${t}-year-select`]:{width:"50%"},[`${t}-month-select`]:{width:`calc(50% - ${te(e.paddingXS)})`},[`${t}-mode-switch`]:{width:"100%",marginTop:e.marginXS,marginInlineStart:0,"> label":{width:"50%",textAlign:"center"}}}}}}},RY=e=>({fullBg:e.colorBgContainer,fullPanelBg:e.colorBgContainer,itemActiveBg:e.controlItemBgActive,yearControlWidth:80,monthControlWidth:70,miniContentHeight:256,...E3(e)}),TY=zt("Calendar",e=>{const t=`${e.componentCls}-calendar`,n=Nt(e,w3(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 MY(n)},RY),R3=(e,t,n)=>{const{getYear:r}=n;return e&&t&&r(e)===r(t)},b0=(e,t,n)=>{const{getMonth:r}=n;return R3(e,t,n)&&r(e)===r(t)},GM=(e,t,n)=>{const{getDate:r}=n;return b0(e,t,n)&&r(e)===r(t)},T3=e=>n=>{const{prefixCls:r,className:i,rootClassName:s,style:c,dateFullCellRender:d,dateCellRender:f,monthFullCellRender:p,monthCellRender:g,cellRender:h,fullCellRender:y,headerRender:C,value:b,defaultValue:x,disabledDate:S,mode:$,validRange:M,fullscreen:w=!0,showWeek:R,onChange:T,onPanelChange:N,onSelect:O,styles:P,classNames:D}=n,{getPrefixCls:k,direction:F,className:Y,style:G,classNames:V,styles:B}=Pt("calendar"),_={...n,mode:$,fullscreen:w,showWeek:R},[H,I]=Vt([V,D],[B,P],{props:_}),[z,L,A,j,q,X]=l.useMemo(()=>{const{root:Me,header:Oe,...Le}=H,{root:Ge,header:et,...ze}=I;return[Me,Oe,Le,Ge,et,ze]},[H,I]),K=k("picker",r),J=`${K}-calendar`,[Z,re]=TY(K,J),ne=e.getNow(),[ie,fe]=Yt(()=>x||e.getNow(),b),[le,ue]=Yt("month",$),ge=l.useMemo(()=>le==="year"?"month":"date",[le]),oe=l.useCallback(Me=>(M?e.isAfter(M[0],Me)||e.isAfter(Me,M[1]):!1)||!!S?.(Me),[S,M]),se=(Me,Oe)=>{N?.(Me,Oe)},he=Me=>{fe(Me),GM(Me,ie,e)||((ge==="date"&&!b0(Me,ie,e)||ge==="month"&&!R3(Me,ie,e))&&se(Me,le),T?.(Me))},me=Me=>{ue(Me),se(ie,Me)},xe=(Me,Oe)=>{he(Me),O?.(Me,{source:Oe})},Ae=l.useCallback((Me,Oe)=>y?y(Me,Oe):d?d(Me):l.createElement("div",{className:Q(`${K}-cell-inner`,`${J}-date`,{[`${J}-date-today`]:GM(ne,Me,e)})},l.createElement("div",{className:`${J}-date-value`},String(e.getDate(Me)).padStart(2,"0")),l.createElement("div",{className:`${J}-date-content`},typeof h=="function"?h(Me,Oe):f?.(Me))),[ne,K,J,y,d,h,f]),we=l.useCallback((Me,Oe)=>{if(y)return y(Me,Oe);if(p)return p(Me);const Le=Oe.locale.shortMonths||e.locale.getShortMonths(Oe.locale.locale);return l.createElement("div",{className:Q(`${K}-cell-inner`,`${J}-date`,{[`${J}-date-today`]:b0(ne,Me,e)})},l.createElement("div",{className:`${J}-date-value`},Le[e.getMonth(Me)]),l.createElement("div",{className:`${J}-date-content`},typeof h=="function"?h(Me,Oe):g?.(Me)))},[ne,K,J,y,p,h,g]),[$e]=oo("Calendar",xu),de={...$e,...n.locale},be=(Me,Oe)=>{if(Oe.type==="date")return Ae(Me,Oe);if(Oe.type==="month")return we(Me,{...Oe,locale:de?.lang})};return l.createElement("div",{className:Q(J,{[`${J}-full`]:w,[`${J}-mini`]:!w,[`${J}-rtl`]:F==="rtl"},Y,i,s,z,Z,re),style:{...j,...G,...c}},C?C({value:ie,type:le,onChange:Me=>{xe(Me,"customize")},onTypeChange:me}):l.createElement(lY,{className:L,style:q,prefixCls:J,value:ie,generateConfig:e,mode:le,fullscreen:w,locale:de?.lang,validRange:M,onChange:xe,onModeChange:me}),l.createElement(Pm,{classNames:A,styles:X,value:ie,prefixCls:K,locale:de?.lang,generateConfig:e,cellRender:be,onSelect:Me=>{xe(Me,ge)},mode:ge,picker:ge,disabledDate:oe,hideHeader:!0,showWeek:R}))},O3=T3(S6);O3.generateCalendar=T3;var OY={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};function v0(){return v0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},v0.apply(this,arguments)}const NY=(e,t)=>l.createElement(gt,v0({},e,{ref:t,icon:OY})),sp=l.forwardRef(NY);var Wc={exports:{}},XM;function IY(){if(XM)return Wc.exports;XM=1,Wc.exports=r,Wc.exports.isMobile=r,Wc.exports.default=r;const e=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|redmi|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,t=/CrOS/,n=/android|ipad|playbook|silk/i;function r(i){i||(i={});let s=i.ua;if(!s&&typeof navigator<"u"&&(s=navigator.userAgent),s&&s.headers&&typeof s.headers["user-agent"]=="string"&&(s=s.headers["user-agent"]),typeof s!="string")return!1;let c=e.test(s)&&!t.test(s)||!!i.tablet&&n.test(s);return!c&&i.tablet&&i.featureDetect&&navigator&&navigator.maxTouchPoints>1&&s.indexOf("Macintosh")!==-1&&s.indexOf("Safari")!==-1&&(c=!0),c}return Wc.exports}var PY=IY();const zY=Ma(PY);let Uy;const AY=(()=>(typeof Uy>"u"&&(Uy=zY()),Uy)),g1=l.createContext(null),DY=e=>{const{activeTabOffset:t,horizontal:n,rtl:r,indicator:i={}}=e,{size:s,align:c="center"}=i,[d,f]=l.useState(),p=l.useRef(),g=ae.useCallback(y=>typeof s=="function"?s(y):typeof s=="number"?s:y,[s]);function h(){Bt.cancel(p.current)}return l.useEffect(()=>{const y={};if(t)if(n){y.width=g(t.width);const C=r?"right":"left";c==="start"&&(y[C]=t[C]),c==="center"&&(y[C]=t[C]+t.width/2,y.transform=r?"translateX(50%)":"translateX(-50%)"),c==="end"&&(y[C]=t[C]+t.width,y.transform="translateX(-100%)")}else y.height=g(t.height),c==="start"&&(y.top=t.top),c==="center"&&(y.top=t.top+t.height/2,y.transform="translateY(-50%)"),c==="end"&&(y.top=t.top+t.height,y.transform="translateY(-100%)");return h(),p.current=Bt(()=>{d&&y&&Object.keys(y).every(b=>{const x=y[b],S=d[b];return typeof x=="number"&&typeof S=="number"?Math.round(x)===Math.round(S):x===S})||f(y)}),h},[JSON.stringify(t),n,r,c,g]),{style:d}},KM={width:0,height:0,left:0,top:0};function jY(e,t,n){return l.useMemo(()=>{const r=new Map,i=t.get(e[0]?.key)||KM,s=i.left+i.width;for(let c=0;c<e.length;c+=1){const{key:d}=e[c];let f=t.get(d);f||(f=t.get(e[c-1]?.key)||KM);const p=r.get(d)||{...f};p.right=s-p.left-p.width,r.set(d,p)}return r},[e.map(r=>r.key).join("_"),t,n])}function QM(e,t){const n=l.useRef(e),[,r]=l.useState({});function i(s){const c=typeof s=="function"?s(n.current):s;c!==n.current&&t(c,n.current),n.current=c,r({})}return[n.current,i]}const _Y=.1,ZM=.01,zm=20,JM=.995**zm;function HY(e,t){const[n,r]=l.useState(),[i,s]=l.useState(0),[c,d]=l.useState(0),[f,p]=l.useState(),g=l.useRef();function h($){const{screenX:M,screenY:w}=$.touches[0];r({x:M,y:w}),window.clearInterval(g.current)}function y($){if(!n)return;const{screenX:M,screenY:w}=$.touches[0];r({x:M,y:w});const R=M-n.x,T=w-n.y;t(R,T);const N=Date.now();s(N),d(N-i),p({x:R,y:T})}function C(){if(n&&(r(null),p(null),f)){const $=f.x/c,M=f.y/c,w=Math.abs($),R=Math.abs(M);if(Math.max(w,R)<_Y)return;let T=$,N=M;g.current=window.setInterval(()=>{if(Math.abs(T)<ZM&&Math.abs(N)<ZM){window.clearInterval(g.current);return}T*=JM,N*=JM,t(T*zm,N*zm)},zm)}}const b=l.useRef();function x($){const{deltaX:M,deltaY:w}=$;let R=0;const T=Math.abs(M),N=Math.abs(w);T===N?R=b.current==="x"?M:w:T>N?(R=M,b.current="x"):(R=w,b.current="y"),t(-R,-R)&&$.preventDefault()}const S=l.useRef(null);S.current={onTouchStart:h,onTouchMove:y,onTouchEnd:C,onWheel:x},l.useEffect(()=>{function $(T){S.current.onTouchStart(T)}function M(T){S.current.onTouchMove(T)}function w(T){S.current.onTouchEnd(T)}function R(T){S.current.onWheel(T)}return document.addEventListener("touchmove",M,{passive:!1}),document.addEventListener("touchend",w,{passive:!0}),e.current.addEventListener("touchstart",$,{passive:!0}),e.current.addEventListener("wheel",R,{passive:!1}),()=>{document.removeEventListener("touchmove",M),document.removeEventListener("touchend",w)}},[])}function N3(e){const[t,n]=l.useState(0),r=l.useRef(0),i=l.useRef();return i.current=e,tR(()=>{i.current?.()},[t]),()=>{r.current===t&&(r.current+=1,n(r.current))}}function BY(e){const t=l.useRef([]),[,n]=l.useState({}),r=l.useRef(typeof e=="function"?e():e),i=N3(()=>{let c=r.current;t.current.forEach(d=>{c=d(c)}),t.current=[],r.current=c,n({})});function s(c){t.current.push(c),i()}return[r.current,s]}const e4={width:0,height:0,left:0,top:0,right:0};function LY(e,t,n,r,i,s,{tabs:c,tabPosition:d,rtl:f}){let p,g,h;return["top","bottom"].includes(d)?(p="width",g=f?"right":"left",h=Math.abs(n)):(p="height",g="top",h=-n),l.useMemo(()=>{if(!c.length)return[0,0];const y=c.length;let C=y;for(let x=0;x<y;x+=1){const S=e.get(c[x].key)||e4;if(Math.floor(S[g]+S[p])>Math.floor(h+t)){C=x-1;break}}let b=0;for(let x=y-1;x>=0;x-=1)if((e.get(c[x].key)||e4)[g]<h){b=x+1;break}return b>C?[0,-1]:[b,C]},[e,t,r,i,s,h,d,c.map(y=>y.key).join("_"),f])}function t4(e){let t;return e instanceof Map?(t={},e.forEach((n,r)=>{t[r]=n})):t=e,JSON.stringify(t)}const VY="TABS_DQ";function I3(e){return String(e).replace(/"/g,VY)}function h1(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}const P3=l.forwardRef((e,t)=>{const{prefixCls:n,editable:r,locale:i,style:s}=e;return!r||r.showAdd===!1?null:l.createElement("button",{ref:t,type:"button",className:`${n}-nav-add`,style:s,"aria-label":i?.addAriaLabel||"Add tab",onClick:c=>{r.onEdit("add",{event:c})}},r.addIcon||"+")}),n4=l.forwardRef((e,t)=>{const{position:n,prefixCls:r,extra:i}=e;if(!i)return null;let s,c={};return typeof i=="object"&&!l.isValidElement(i)?c=i:c.right=i,n==="right"&&(s=c.right),n==="left"&&(s=c.left),s?l.createElement("div",{className:`${r}-extra-content`,ref:t},s):null});function S0(){return S0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},S0.apply(this,arguments)}const FY=l.forwardRef((e,t)=>{const{prefixCls:n,id:r,tabs:i,locale:s,mobile:c,more:d={},style:f,className:p,editable:g,tabBarGutter:h,rtl:y,removeAriaLabel:C,onTabClick:b,getPopupContainer:x,popupClassName:S,popupStyle:$}=e,[M,w]=l.useState(!1),[R,T]=l.useState(null),{icon:N="More"}=d,O=`${r}-more-popup`,P=`${n}-dropdown`,D=R!==null?`${O}-${R}`:null,k=s?.dropdownAriaLabel;function F(I,z){I.preventDefault(),I.stopPropagation(),g.onEdit("remove",{key:z,event:I})}const Y=l.createElement(Hs,{onClick:({key:I,domEvent:z})=>{b(I,z),w(!1)},prefixCls:`${P}-menu`,id:O,tabIndex:-1,role:"listbox","aria-activedescendant":D,selectedKeys:[R],"aria-label":k!==void 0?k:"expanded dropdown"},i.map(I=>{const{closable:z,disabled:L,closeIcon:A,key:j,label:q}=I,X=h1(z,A,g,L);return l.createElement($d,{key:j,id:`${O}-${j}`,role:"option","aria-controls":r&&`${r}-panel-${j}`,disabled:L},l.createElement("span",null,q),X&&l.createElement("button",{type:"button","aria-label":C||"remove",tabIndex:0,className:`${P}-menu-item-remove`,onClick:K=>{K.stopPropagation(),F(K,j)}},A||g.removeIcon||"×"))}));function G(I){const z=i.filter(j=>!j.disabled);let L=z.findIndex(j=>j.key===R)||0;const A=z.length;for(let j=0;j<A;j+=1){L=(L+I+A)%A;const q=z[L];if(!q.disabled){T(q.key);return}}}function V(I){const{which:z}=I;if(!M){[nt.DOWN,nt.SPACE,nt.ENTER].includes(z)&&(w(!0),I.preventDefault());return}switch(z){case nt.UP:G(-1),I.preventDefault();break;case nt.DOWN:G(1),I.preventDefault();break;case nt.ESC:w(!1);break;case nt.SPACE:case nt.ENTER:R!==null&&b(R,I);break}}l.useEffect(()=>{const I=document.getElementById(D);I?.scrollIntoView&&I.scrollIntoView(!1)},[D,R]),l.useEffect(()=>{M||T(null)},[M]);const B={marginInlineStart:h};i.length||(B.visibility="hidden",B.order=1);const _=Q(S,{[`${P}-rtl`]:y}),H=c?null:l.createElement(QO,S0({prefixCls:P,overlay:Y,visible:i.length?M:!1,onVisibleChange:w,overlayClassName:_,overlayStyle:$,mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:x},d),l.createElement("button",{type:"button",className:`${n}-nav-more`,style:B,"aria-haspopup":"listbox","aria-controls":O,id:`${r}-more`,"aria-expanded":M,onKeyDown:V},N));return l.createElement("div",{className:Q(`${n}-nav-operations`,p),style:f,ref:t},H,l.createElement(P3,{prefixCls:n,locale:s,editable:g}))}),kY=l.memo(FY,(e,t)=>t.tabMoving),WY=e=>{const{prefixCls:t,id:n,active:r,focus:i,tab:{key:s,label:c,disabled:d,closeIcon:f,icon:p},closable:g,renderWrapper:h,removeAriaLabel:y,editable:C,onClick:b,onFocus:x,onBlur:S,onKeyDown:$,onMouseDown:M,onMouseUp:w,style:R,className:T,tabCount:N,currentPosition:O}=e,P=`${t}-tab`,D=h1(g,f,C,d);function k(B){d||b(B)}function F(B){B.preventDefault(),B.stopPropagation(),C.onEdit("remove",{key:s,event:B})}const Y=l.useMemo(()=>p&&typeof c=="string"?l.createElement("span",null,c):c,[c,p]),G=l.useRef(null);l.useEffect(()=>{i&&G.current&&G.current.focus()},[i]);const V=l.createElement("div",{key:s,"data-node-key":I3(s),className:Q(P,T,{[`${P}-with-remove`]:D,[`${P}-active`]:r,[`${P}-disabled`]:d,[`${P}-focus`]:i}),style:R,onClick:k},l.createElement("div",{ref:G,role:"tab","aria-selected":r,id:n&&`${n}-tab-${s}`,className:`${P}-btn`,"aria-controls":n&&`${n}-panel-${s}`,"aria-disabled":d,tabIndex:d?null:r?0:-1,onClick:B=>{B.stopPropagation(),k(B)},onKeyDown:$,onMouseDown:M,onMouseUp:w,onFocus:x,onBlur:S},i&&l.createElement("div",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},`Tab ${O} of ${N}`),p&&l.createElement("span",{className:`${P}-icon`},p),c&&Y),D&&l.createElement("button",{type:"button","aria-label":y||"remove",tabIndex:r?0:-1,className:`${P}-remove`,onClick:B=>{B.stopPropagation(),F(B)}},f||C.removeIcon||"×"));return h?h(V):V};function C0(){return C0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},C0.apply(this,arguments)}const qY=(e,t)=>{const{offsetWidth:n,offsetHeight:r,offsetTop:i,offsetLeft:s}=e,{width:c,height:d,left:f,top:p}=e.getBoundingClientRect();return Math.abs(c-n)<1?[c,d,f-t.left,p-t.top]:[n,r,s,i]},is=e=>{const{offsetWidth:t=0,offsetHeight:n=0}=e.current||{};if(e.current){const{width:r,height:i}=e.current.getBoundingClientRect();if(Math.abs(r-t)<1)return[r,i]}return[t,n]},om=(e,t)=>e[t?0:1],r4=l.forwardRef((e,t)=>{const{className:n,style:r,id:i,animated:s,activeKey:c,rtl:d,extra:f,editable:p,locale:g,tabPosition:h,tabBarGutter:y,children:C,onTabClick:b,onTabScroll:x,indicator:S,classNames:$,styles:M}=e,{prefixCls:w,tabs:R}=l.useContext(g1),T=l.useRef(null),N=l.useRef(null),O=l.useRef(null),P=l.useRef(null),D=l.useRef(null),k=l.useRef(null),F=l.useRef(null),Y=h==="top"||h==="bottom",[G,V]=QM(0,(Pe,ke)=>{Y&&x&&x({direction:Pe>ke?"left":"right"})}),[B,_]=QM(0,(Pe,ke)=>{!Y&&x&&x({direction:Pe>ke?"top":"bottom"})}),[H,I]=l.useState([0,0]),[z,L]=l.useState([0,0]),[A,j]=l.useState([0,0]),[q,X]=l.useState([0,0]),[K,J]=BY(new Map),Z=jY(R,K,z[0]),re=om(H,Y),ne=om(z,Y),ie=om(A,Y),fe=om(q,Y),le=Math.floor(re)<Math.floor(ne+ie),ue=le?re-fe:re-ie,ge=`${w}-nav-operations-hidden`;let oe=0,se=0;Y&&d?(oe=0,se=Math.max(0,ne-ue)):(oe=Math.min(0,ue-ne),se=0);function he(Pe){return Pe<oe?oe:Pe>se?se:Pe}const me=l.useRef(null),[xe,Ae]=l.useState();function we(){Ae(Date.now())}function $e(){me.current&&clearTimeout(me.current)}HY(P,(Pe,ke)=>{function Re(Ye,Ze){Ye(it=>he(it+Ze))}return le?(Y?Re(V,Pe):Re(_,ke),$e(),we(),!0):!1}),l.useEffect(()=>($e(),xe&&(me.current=setTimeout(()=>{Ae(0)},100)),$e),[xe]);const[de,be]=LY(Z,ue,Y?G:B,ne,ie,fe,{...e,tabs:R}),Me=ut((Pe=c)=>{const ke=Z.get(Pe)||{width:0,height:0,left:0,right:0,top:0};if(Y){let Re=G;d?ke.right<G?Re=ke.right:ke.right+ke.width>G+ue&&(Re=ke.right+ke.width-ue):ke.left<-G?Re=-ke.left:ke.left+ke.width>-G+ue&&(Re=-(ke.left+ke.width-ue)),_(0),V(he(Re))}else{let Re=B;ke.top<-B?Re=-ke.top:ke.top+ke.height>-B+ue&&(Re=-(ke.top+ke.height-ue)),V(0),_(he(Re))}}),[Oe,Le]=l.useState(),[Ge,et]=l.useState(!1),ze=R.filter(Pe=>!Pe.disabled).map(Pe=>Pe.key),_e=Pe=>{const ke=ze.indexOf(Oe||c),Re=ze.length,Ye=(ke+Pe+Re)%Re,Ze=ze[Ye];Le(Ze)},De=(Pe,ke)=>{const Re=ze.indexOf(Pe),Ye=R.find(it=>it.key===Pe);h1(Ye?.closable,Ye?.closeIcon,p,Ye?.disabled)&&(ke.preventDefault(),ke.stopPropagation(),p.onEdit("remove",{key:Pe,event:ke}),Re===ze.length-1?_e(-1):_e(1))},Ue=(Pe,ke)=>{et(!0),ke.button===1&&De(Pe,ke)},Ne=Pe=>{const{code:ke}=Pe,Re=d&&Y,Ye=ze[0],Ze=ze[ze.length-1];switch(ke){case"ArrowLeft":{Y&&_e(Re?1:-1);break}case"ArrowRight":{Y&&_e(Re?-1:1);break}case"ArrowUp":{Pe.preventDefault(),Y||_e(-1);break}case"ArrowDown":{Pe.preventDefault(),Y||_e(1);break}case"Home":{Pe.preventDefault(),Le(Ye);break}case"End":{Pe.preventDefault(),Le(Ze);break}case"Enter":case"Space":{Pe.preventDefault(),b(Oe??c,Pe);break}case"Backspace":case"Delete":{De(Oe,Pe);break}}},Se={};Y?Se.marginInlineStart=y:Se.marginTop=y;const Be=R.map((Pe,ke)=>{const{key:Re}=Pe;return l.createElement(WY,{id:i,prefixCls:w,key:Re,tab:Pe,className:$?.item,style:ke===0?M?.item:{...Se,...M?.item},closable:Pe.closable,editable:p,active:Re===c,focus:Re===Oe,renderWrapper:C,removeAriaLabel:g?.removeAriaLabel,tabCount:ze.length,currentPosition:ke+1,onClick:Ye=>{b(Re,Ye)},onKeyDown:Ne,onFocus:()=>{Ge||Le(Re),Me(Re),we(),P.current&&(d||(P.current.scrollLeft=0),P.current.scrollTop=0)},onBlur:()=>{Le(void 0)},onMouseDown:Ye=>Ue(Re,Ye),onMouseUp:()=>{et(!1)}})}),Je=()=>J(()=>{const Pe=new Map,ke=D.current?.getBoundingClientRect();return R.forEach(({key:Re})=>{const Ye=D.current?.querySelector(`[data-node-key="${I3(Re)}"]`);if(Ye){const[Ze,it,ft,jt]=qY(Ye,ke);Pe.set(Re,{width:Ze,height:it,left:ft,top:jt})}}),Pe});l.useEffect(()=>{Je()},[R.map(Pe=>Pe.key).join("_")]);const We=N3(()=>{const Pe=is(T),ke=is(N),Re=is(O);I([Pe[0]-ke[0]-Re[0],Pe[1]-ke[1]-Re[1]]);const Ye=is(F);j(Ye);const Ze=is(k);X(Ze);const it=is(D);L([it[0]-Ye[0],it[1]-Ye[1]]),Je()}),Xe=R.slice(0,de),Ie=R.slice(be+1),Ke=[...Xe,...Ie],ot=Z.get(c),{style:at}=DY({activeTabOffset:ot,horizontal:Y,indicator:S,rtl:d});l.useEffect(()=>{Me()},[c,oe,se,t4(ot),t4(Z),Y]),l.useEffect(()=>{We()},[d]);const lt=!!Ke.length,St=`${w}-nav-wrap`;let Ct,qe,rt,je;return Y?d?(qe=G>0,Ct=G!==se):(Ct=G<0,qe=G!==oe):(rt=B<0,je=B!==oe),l.createElement(Fr,{onResize:We},l.createElement("div",{ref:fi(t,T),role:"tablist","aria-orientation":Y?"horizontal":"vertical",className:Q(`${w}-nav`,n,$?.header),style:{...M?.header,...r},onKeyDown:()=>{we()}},l.createElement(n4,{ref:N,position:"left",extra:f,prefixCls:w}),l.createElement(Fr,{onResize:We},l.createElement("div",{className:Q(St,{[`${St}-ping-left`]:Ct,[`${St}-ping-right`]:qe,[`${St}-ping-top`]:rt,[`${St}-ping-bottom`]:je}),ref:P},l.createElement(Fr,{onResize:We},l.createElement("div",{ref:D,className:`${w}-nav-list`,style:{transform:`translate(${G}px, ${B}px)`,transition:xe?"none":void 0}},Be,l.createElement(P3,{ref:F,prefixCls:w,locale:g,editable:p,style:{...Be.length===0?void 0:Se,visibility:lt?"hidden":null}}),l.createElement("div",{className:Q(`${w}-ink-bar`,$?.indicator,{[`${w}-ink-bar-animated`]:s.inkBar}),style:{...at,...M?.indicator}}))))),l.createElement(kY,C0({},e,{removeAriaLabel:g?.removeAriaLabel,ref:k,prefixCls:w,tabs:Ke,className:!lt&&ge,popupStyle:M?.popup,tabMoving:!!xe})),l.createElement(n4,{ref:O,position:"right",extra:f,prefixCls:w})))}),YY=({renderTabBar:e,...t})=>e?e(t,r4):l.createElement(r4,t),UY=l.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:i,id:s,active:c,tabKey:d,children:f}=e,p=l.Children.count(f)>0;return l.createElement("div",{id:s&&`${s}-panel-${d}`,role:"tabpanel",tabIndex:c&&p?0:-1,"aria-labelledby":s&&`${s}-tab-${d}`,"aria-hidden":!c,style:i,className:Q(n,c&&`${n}-active`,r),ref:t},f)});function cp(){return cp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cp.apply(this,arguments)}const GY=e=>{const{id:t,activeKey:n,animated:r,tabPosition:i,destroyOnHidden:s,contentStyle:c,contentClassName:d}=e,{prefixCls:f,tabs:p}=l.useContext(g1),g=r.tabPane,h=`${f}-tabpane`;return l.createElement("div",{className:Q(`${f}-content-holder`)},l.createElement("div",{className:Q(`${f}-content`,`${f}-content-${i}`,{[`${f}-content-animated`]:g})},p.map(y=>{const{key:C,forceRender:b,style:x,className:S,destroyOnHidden:$,...M}=y,w=C===n;return l.createElement(Sr,cp({key:C,visible:w,forceRender:b,removeOnLeave:!!(s??$),leavedClassName:`${h}-hidden`},r.tabPaneMotion),({style:R,className:T},N)=>l.createElement(UY,cp({},M,{prefixCls:h,id:t,tabKey:C,animated:g,active:w,style:{...c,...x,...R},className:Q(d,S,T),ref:N})))})))};function XY(e={inkBar:!0,tabPane:!1}){let t;return e===!1?t={inkBar:!1,tabPane:!1}:e===!0?t={inkBar:!0,tabPane:!1}:t={inkBar:!0,...typeof e=="object"?e:{}},t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}function fu(){return fu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fu.apply(this,arguments)}let o4=0;const KY=l.forwardRef((e,t)=>{const{id:n,prefixCls:r="rc-tabs",className:i,items:s,direction:c,activeKey:d,defaultActiveKey:f,editable:p,animated:g,tabPosition:h="top",tabBarGutter:y,tabBarStyle:C,tabBarExtraContent:b,locale:x,more:S,destroyOnHidden:$,renderTabBar:M,onChange:w,onTabClick:R,onTabScroll:T,getPopupContainer:N,popupClassName:O,indicator:P,classNames:D,styles:k,...F}=e,Y=l.useMemo(()=>(s||[]).filter(Z=>Z&&typeof Z=="object"&&"key"in Z),[s]),G=c==="rtl",V=XY(g),[B,_]=l.useState(!1);l.useEffect(()=>{_(AY())},[]);const[H,I]=Yt(f??Y[0]?.key,d),[z,L]=l.useState(()=>Y.findIndex(Z=>Z.key===H));l.useEffect(()=>{let Z=Y.findIndex(re=>re.key===H);Z===-1&&(Z=Math.max(0,Math.min(z,Y.length-1)),I(Y[Z]?.key)),L(Z)},[Y.map(Z=>Z.key).join("_"),H,z]);const[A,j]=Yt(null,n);l.useEffect(()=>{n||(j(`rc-tabs-${o4}`),o4+=1)},[]);function q(Z,re){R?.(Z,re);const ne=Z!==H;I(Z),ne&&w?.(Z)}const X={id:A,activeKey:H,animated:V,tabPosition:h,rtl:G,mobile:B},K={...X,editable:p,locale:x,more:S,tabBarGutter:y,onTabClick:q,onTabScroll:T,extra:b,style:C,getPopupContainer:N,popupClassName:Q(O,D?.popup),indicator:P,styles:k,classNames:D},J=l.useMemo(()=>({tabs:Y,prefixCls:r}),[Y,r]);return l.createElement(g1.Provider,{value:J},l.createElement("div",fu({ref:t,id:n,className:Q(r,`${r}-${h}`,{[`${r}-mobile`]:B,[`${r}-editable`]:p,[`${r}-rtl`]:G},i)},F),l.createElement(YY,fu({},K,{renderTabBar:M})),l.createElement(GY,fu({destroyOnHidden:$},X,{contentStyle:k?.content,contentClassName:D?.content,animated:V}))))}),QY={motionAppear:!1,motionEnter:!0,motionLeave:!0};function ZY(e,t={inkBar:!0,tabPane:!1}){let n;return t===!1?n={inkBar:!1,tabPane:!1}:t===!0?n={inkBar:!0,tabPane:!0}:n={inkBar:!0,...typeof t=="object"?t:{}},n.tabPane&&(n.tabPaneMotion={...QY,motionName:Xo(e,"switch")}),n}function JY(e){return e.filter(t=>t)}function eU(e,t){if(e)return e.map(r=>({...r,destroyOnHidden:r.destroyOnHidden??r.destroyInactiveTabPane}));const n=mr(t).map(r=>{if(l.isValidElement(r)){const{key:i,props:s}=r,{tab:c,...d}=s||{};return{key:String(i),...d,label:c}}return null});return JY(n)}const tU=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}`}}}}},[Ko(e,"slide-up"),Ko(e,"slide-down")]]},nU=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:i,colorBorderSecondary:s,itemSelectedColor:c}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${te(e.lineWidth)} ${e.lineType} ${s}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:c,background:e.colorBgContainer},[`${t}-tab-focus:has(${t}-tab-btn:focus-visible)`]:Go(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:te(i)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${te(e.borderRadiusLG)} ${te(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${te(e.borderRadiusLG)} ${te(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:te(i)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${te(e.borderRadiusLG)} 0 0 ${te(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 ${te(e.borderRadiusLG)} ${te(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},rU=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:{...Zt(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:`${te(r)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":{...$o,display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${te(e.paddingXXS)} ${te(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"}}}}}}},oU=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:i,verticalItemPadding:s,verticalItemMargin:c,calc:d}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:i,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${te(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},
290
+ 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,
291
+ > 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:d(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:s,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:c},[`${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:te(d(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${te(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:d(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${te(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},aU=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,cardHeightSM:i,cardHeightLG:s,horizontalItemPaddingSM:c,horizontalItemPaddingLG:d}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:c,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:d,fontSize:e.titleFontSizeLG,lineHeight:e.lineHeightLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n},[`${t}-nav-add`]:{minWidth:i,minHeight:i}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${te(e.borderRadius)} ${te(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${te(e.borderRadius)} ${te(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${te(e.borderRadius)} ${te(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${te(e.borderRadius)} 0 0 ${te(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r},[`${t}-nav-add`]:{minWidth:s,minHeight:s}}}}}},iU=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:i,tabsHorizontalItemMargin:s,horizontalItemPadding:c,itemSelectedColor:d,itemColor:f}=e,p=`${t}-tab`;return{[p]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:c,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:f,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:n}},"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${p}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":{flex:"none",lineHeight:1,marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorIcon,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading},...xo(e)},"&:hover":{color:r},[`&${p}-active ${p}-btn`]:{color:d},[`&${p}-focus ${p}-btn:focus-visible`]:Go(e),[`&${p}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${p}-disabled ${p}-btn, &${p}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${p}-remove ${i}`]:{margin:0,verticalAlign:"middle"},[`${i}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${p} + ${p}`]:{margin:{_skip_check_:!0,value:s}}}},lU=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:i,calc:s}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:te(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:te(e.marginXS)},marginLeft:{_skip_check_:!0,value:te(s(e.marginXXS).mul(-1).equal())},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:i},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},sU=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:i,itemHoverColor:s,itemActiveColor:c,colorBorderSecondary:d}=e;return{[t]:{...Zt(e),display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:{minWidth:r,minHeight:r,marginLeft:{_skip_check_:!0,value:i},background:"transparent",border:`${te(e.lineWidth)} ${e.lineType} ${d}`,borderRadius:`${te(e.borderRadiusLG)} ${te(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:s},"&:active, &:focus:not(:focus-visible)":{color:c},...xo(e,-3)}},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"},...iU(e),[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{...xo(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"}}}}}},cU=e=>{const{cardHeight:t,cardHeightSM:n,cardHeightLG:r,controlHeight:i,controlHeightLG:s}=e,c=t||s,d=n||i,f=r||s+8;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:c,cardHeightSM:d,cardHeightLG:f,cardPadding:`${(c-e.fontHeight)/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${(d-e.fontHeight)/2-e.lineWidth}px ${e.paddingXS}px`,cardPaddingLG:`${(f-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}},uU=zt("Tabs",e=>{const t=Nt(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${te(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${te(e.horizontalItemGutter)}`});return[aU(t),lU(t),oU(t),rU(t),nU(t),sU(t),tU(t)]},cU),dU=()=>null,fU=l.forwardRef((e,t)=>{const{type:n,className:r,rootClassName:i,size:s,onEdit:c,hideAdd:d,centered:f,addIcon:p,removeIcon:g,moreIcon:h,more:y,popupClassName:C,children:b,items:x,animated:S,style:$,indicatorSize:M,indicator:w,classNames:R,styles:T,destroyInactiveTabPane:N,destroyOnHidden:O,tabPlacement:P,tabPosition:D,...k}=e,{prefixCls:F}=k,{getPrefixCls:Y,direction:G,getPopupContainer:V,className:B,style:_,classNames:H,styles:I}=Pt("tabs"),{tabs:z}=l.useContext(dt),L=Y("tabs",F),A=lr(L),[j,q]=uU(L,A),X=l.useRef(null);l.useImperativeHandle(t,()=>({nativeElement:X.current}));let K;n==="editable-card"&&(K={onEdit:(oe,{key:se,event:he})=>{c?.(oe==="add"?he:se,oe)},removeIcon:g??z?.removeIcon??l.createElement(Yr,null),addIcon:(p??z?.addIcon)||l.createElement(sp,null),showAdd:d!==!0});const J=Y(),Z=pr(s),re=eU(x,b),ne=ZY(L,S),ie={align:w?.align??z?.indicator?.align,size:w?.size??M??z?.indicator?.size??z?.indicatorSize},fe=l.useMemo(()=>{const oe=P??D??void 0,se=G==="rtl";switch(oe){case"start":return se?"right":"left";case"end":return se?"left":"right";default:return oe}},[P,D,G]),le={...e,size:Z,tabPlacement:fe,items:re},[ue,ge]=Vt([H,R],[I,T],{props:le},{popup:{_default:"root"}});return l.createElement(KY,{ref:X,direction:G,getPopupContainer:V,...k,items:re,className:Q({[`${L}-${Z}`]:Z,[`${L}-card`]:["card","editable-card"].includes(n),[`${L}-editable-card`]:n==="editable-card",[`${L}-centered`]:f},B,r,i,ue.root,j,q,A),classNames:{...ue,popup:Q(C,j,q,A,ue.popup?.root)},styles:ge,style:{...ge.root,..._,...$},editable:K,more:{icon:z?.more?.icon??z?.moreIcon??h??l.createElement(r1,null),transitionName:`${J}-slide-up`,...y},prefixCls:L,animated:ne,indicator:ie,destroyOnHidden:O??N,tabPosition:fe})}),y1=fU;y1.TabPane=dU;const z3=({prefixCls:e,className:t,hoverable:n=!0,...r})=>{const{getPrefixCls:i}=l.useContext(dt),s=i("card",e),c=Q(`${s}-grid`,t,{[`${s}-grid-hoverable`]:n});return l.createElement("div",{...r,className:c})},mU=e=>{const{antCls:t,componentCls:n,headerHeight:r,headerPadding:i,tabsMarginBottom:s}=e;return{display:"flex",justifyContent:"center",flexDirection:"column",minHeight:r,marginBottom:-1,padding:`0 ${te(i)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${te(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${te(e.borderRadiusLG)} ${te(e.borderRadiusLG)} 0 0`,...Ji(),"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":{display:"inline-block",flex:1,...$o,[`
292
+ > ${n}-typography,
293
+ > ${n}-typography-edit-content
294
+ `]:{insetInlineStart:0,marginTop:0,marginBottom:0}},[`${t}-tabs-top`]:{clear:"both",marginBottom:s,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${te(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}}},pU=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:i}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:`
295
+ ${te(i)} 0 0 0 ${n},
296
+ 0 ${te(i)} 0 0 ${n},
297
+ ${te(i)} ${te(i)} 0 0 ${n},
298
+ ${te(i)} 0 0 0 ${n} inset,
299
+ 0 ${te(i)} 0 0 ${n} inset;
300
+ `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},gU=e=>{const{componentCls:t,iconCls:n,actionsLiMargin:r,cardActionsIconSize:i,colorBorderSecondary:s,actionsBg:c}=e;return{margin:0,padding:0,listStyle:"none",background:c,borderTop:`${te(e.lineWidth)} ${e.lineType} ${s}`,display:"flex",borderRadius:`0 0 ${te(e.borderRadiusLG)} ${te(e.borderRadiusLG)}`,...Ji(),"& > li":{margin:r,color:e.colorTextDescription,textAlign:"center","> span":{position:"relative",display:"block",minWidth:e.calc(e.cardActionsIconSize).mul(2).equal(),fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer","&:hover":{color:e.colorPrimary,transition:`color ${e.motionDurationMid}`},[`a:not(${t}-btn), > ${n}`]:{display:"inline-block",width:"100%",color:e.colorIcon,lineHeight:te(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:i,lineHeight:te(e.calc(i).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${te(e.lineWidth)} ${e.lineType} ${s}`}}}},hU=e=>({margin:`${te(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex",...Ji(),"&-avatar":{paddingInlineEnd:e.padding},"&-section":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,...$o},"&-description":{color:e.colorTextDescription}}),yU=e=>{const{componentCls:t,colorFillAlter:n,headerPadding:r,bodyPadding:i}=e;return{[`${t}-head`]:{padding:`0 ${te(r)}`,background:n,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${te(e.padding)} ${te(i)}`}}},bU=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},vU=e=>{const{componentCls:t,cardShadow:n,cardHeadPadding:r,colorBorderSecondary:i,boxShadowTertiary:s,bodyPadding:c,extraColor:d}=e;return{[t]:{...Zt(e),position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:s},[`${t}-head`]:mU(e),[`${t}-extra`]:{marginInlineStart:"auto",color:d,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:{padding:c,borderRadius:`0 0 ${te(e.borderRadiusLG)} ${te(e.borderRadiusLG)}`},[`${t}-grid`]:pU(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${te(e.borderRadiusLG)} ${te(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:gU(e),[`${t}-meta`]:hU(e)},[`${t}-bordered`]:{border:`${te(e.lineWidth)} ${e.lineType} ${i}`,[`${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:`${te(e.borderRadiusLG)} ${te(e.borderRadiusLG)} 0 0 `,[`&:not(:has(> ${t}-head))`]:{borderRadius:0},[`${t}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${t}-contain-tabs`]:{[`> div${t}-head`]:{minHeight:0,[`${t}-head-title, ${t}-extra`]:{paddingTop:r}}},[`${t}-type-inner`]:yU(e),[`${t}-loading`]:bU(e),[`${t}-rtl`]:{direction:"rtl"}}},SU=e=>{const{componentCls:t,bodyPaddingSM:n,headerPaddingSM:r,headerHeightSM:i,headerFontSizeSM:s}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:i,padding:`0 ${te(r)}`,fontSize:s,[`> ${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"}}}}},CU=e=>({headerBg:"transparent",headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,headerHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText,bodyPaddingSM:12,headerPaddingSM:12,bodyPadding:e.bodyPadding??e.paddingLG,headerPadding:e.headerPadding??e.paddingLG}),$U=zt("Card",e=>{const t=Nt(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize});return[vU(t),SU(t)]},CU),xU=e=>{const{actionClasses:t,actions:n=[],actionStyle:r}=e;return l.createElement("ul",{className:t,style:r},n.map((i,s)=>{const c=`action-${s}`;return l.createElement("li",{style:{width:`${100/n.length}%`},key:c},l.createElement("span",null,i))}))},wU=l.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:i,style:s,extra:c,headStyle:d={},bodyStyle:f={},title:p,loading:g,bordered:h,variant:y,size:C,type:b,cover:x,actions:S,tabList:$,children:M,activeTabKey:w,defaultActiveTabKey:R,tabBarExtraContent:T,hoverable:N,tabProps:O={},classNames:P,styles:D,...k}=e,{getPrefixCls:F,direction:Y,className:G,style:V,classNames:B,styles:_}=Pt("card"),[H]=js("card",y,h),I=pr(C),z={...e,size:I,variant:H,loading:g},[L,A]=Vt([B,P],[_,D],{props:z}),j=de=>{e.onTabChange?.(de)},q=l.useMemo(()=>mr(M).some(be=>l.isValidElement(be)&&be.type===z3),[M]),X=F("card",n),[K,J]=$U(X),Z=l.createElement(pi,{loading:!0,active:!0,paragraph:{rows:4},title:!1},M),re=w!==void 0,ne={...O,[re?"activeKey":"defaultActiveKey"]:re?w:R,tabBarExtraContent:T};let ie;const fe=!I||I==="default"?"large":I,le=$?l.createElement(y1,{size:fe,...ne,className:`${X}-head-tabs`,onChange:j,items:$.map(({tab:de,...be})=>({label:de,...be}))}):null;if(p||c||le){const de=Q(`${X}-head`,L.header),be=Q(`${X}-head-title`,L.title),Me=Q(`${X}-extra`,L.extra),Oe={...d,...A.header};ie=l.createElement("div",{className:de,style:Oe},l.createElement("div",{className:`${X}-head-wrapper`},p&&l.createElement("div",{className:be,style:A.title},p),c&&l.createElement("div",{className:Me,style:A.extra},c)),le)}const ue=Q(`${X}-cover`,L.cover),ge=x?l.createElement("div",{className:ue,style:A.cover},x):null,oe=Q(`${X}-body`,L.body),se={...f,...A.body},he=l.createElement("div",{className:oe,style:se},g?Z:M),me=Q(`${X}-actions`,L.actions),xe=S?.length?l.createElement(xU,{actionClasses:me,actionStyle:A.actions,actions:S}):null,Ae=en(k,["onTabChange"]),we=Q(X,G,{[`${X}-loading`]:g,[`${X}-bordered`]:H!=="borderless",[`${X}-hoverable`]:N,[`${X}-contain-grid`]:q,[`${X}-contain-tabs`]:$?.length,[`${X}-${I}`]:I,[`${X}-type-${b}`]:!!b,[`${X}-rtl`]:Y==="rtl"},r,i,K,J,L.root),$e={...A.root,...V,...s};return l.createElement("div",{ref:t,...Ae,className:we,style:$e},ie,ge,he,xe)}),EU=e=>{const{prefixCls:t,className:n,avatar:r,title:i,description:s,style:c,classNames:d,styles:f,...p}=e,{getPrefixCls:g,className:h,style:y,classNames:C,styles:b}=Pt("cardMeta"),S=`${g("card",t)}-meta`,[$,M]=Vt([C,d],[b,f],{props:e}),w=Q(S,n,h,$.root),R={...y,...M.root,...c},T=Q(`${S}-avatar`,$.avatar),N=Q(`${S}-title`,$.title),O=Q(`${S}-description`,$.description),P=Q(`${S}-section`,$.section),D=r?l.createElement("div",{className:T,style:M.avatar},r):null,k=i?l.createElement("div",{className:N,style:M.title},i):null,F=s?l.createElement("div",{className:O,style:M.description},s):null,Y=k||F?l.createElement("div",{className:P,style:M.section},k,F):null;return l.createElement("div",{...p,className:w,style:R},D,Y)},Ea=wU;Ea.Grid=z3;Ea.Meta=EU;function MU(e,t,n){var r=n||{},i=r.noTrailing,s=i===void 0?!1:i,c=r.noLeading,d=c===void 0?!1:c,f=r.debounceMode,p=f===void 0?void 0:f,g,h=!1,y=0;function C(){g&&clearTimeout(g)}function b(S){var $=S||{},M=$.upcomingOnly,w=M===void 0?!1:M;C(),h=!w}function x(){for(var S=arguments.length,$=new Array(S),M=0;M<S;M++)$[M]=arguments[M];var w=this,R=Date.now()-y;if(h)return;function T(){y=Date.now(),t.apply(w,$)}function N(){g=void 0}!d&&p&&!g&&T(),C(),p===void 0&&R>e?d?(y=Date.now(),s||(g=setTimeout(p?N:T,e))):T():s!==!0&&(g=setTimeout(p?N:T,p===void 0?e-R:e))}return x.cancel=b,x}function RU(e,t,n){var r={},i=r.atBegin,s=i===void 0?!1:i;return MU(e,t,{debounceMode:s!==!1})}const TU=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:{...Zt(e),display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}},[n]:{...Zt(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]:{...Zt(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`]:Go(e)},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${te(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:`${te(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}}},{[`
301
+ ${n}:not(${n}-disabled),
302
+ ${t}:not(${t}-disabled)
303
+ `]:{[`&: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}`}}},[`
304
+ ${n}-checked:not(${n}-disabled),
305
+ ${t}-checked:not(${t}-disabled)
306
+ `]:{[`&: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 OU(e,t){const n=Nt(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return TU(n)}const A3=zt("Checkbox",(e,{prefixCls:t})=>[OU(t,e)]),D3=ae.createContext(null),NU=(e,t)=>{const{prefixCls:n,className:r,rootClassName:i,children:s,indeterminate:c=!1,style:d,onMouseEnter:f,onMouseLeave:p,skipGroup:g=!1,disabled:h,classNames:y,styles:C,...b}=e,{getPrefixCls:x,direction:S,className:$,style:M,classNames:w,styles:R}=Pt("checkbox"),T=l.useContext(D3),{isFormItemInput:N}=l.useContext(Or),O=l.useContext(Wr),P=(T?.disabled||h)??O,D={...e,indeterminate:c,disabled:P},[k,F]=Vt([w,y],[R,C],{props:D}),Y=l.useRef(b.value),G=l.useRef(null),V=ir(t,G);l.useEffect(()=>{T?.registerValue(b.value)},[]),l.useEffect(()=>{if(!g)return b.value!==Y.current&&(T?.cancelValue(Y.current),T?.registerValue(b.value),Y.current=b.value),()=>T?.cancelValue(b.value)},[b.value]),l.useEffect(()=>{G.current?.input&&(G.current.input.indeterminate=c)},[c]);const B=x("checkbox",n),_=lr(B),[H,I]=A3(B,_),z={...b};T&&!g&&(z.onChange=(...X)=>{b.onChange&&b.onChange.apply(b,X),T.toggleOption&&T.toggleOption({label:s,value:b.value})},z.name=T.name,z.checked=T.value.includes(b.value));const L=Q(`${B}-wrapper`,{[`${B}-rtl`]:S==="rtl",[`${B}-wrapper-checked`]:z.checked,[`${B}-wrapper-disabled`]:P,[`${B}-wrapper-in-form-item`]:N},$,r,k.root,i,I,_,H),A=Q(k.icon,{[`${B}-indeterminate`]:c},fd,H),[j,q]=u3(z.onClick);return l.createElement(md,{component:"Checkbox",disabled:P},l.createElement("label",{className:L,style:{...F.root,...M,...d},onMouseEnter:f,onMouseLeave:p,onClick:j},l.createElement(c3,{...z,onClick:q,prefixCls:B,className:A,style:F.icon,disabled:P,ref:V}),Rr(s)&&l.createElement("span",{className:Q(`${B}-label`,k.label),style:F.label},s)))},j3=l.forwardRef(NU),IU=l.forwardRef((e,t)=>{const{defaultValue:n,children:r,options:i=[],prefixCls:s,className:c,rootClassName:d,style:f,onChange:p,...g}=e,{getPrefixCls:h,direction:y}=l.useContext(dt),[C,b]=l.useState(g.value||n||[]),[x,S]=l.useState([]);l.useEffect(()=>{"value"in g&&b(g.value||[])},[g.value]);const $=l.useMemo(()=>i.map(V=>typeof V=="string"||typeof V=="number"?{label:V,value:V}:V),[i]),M=V=>{S(B=>B.filter(_=>_!==V))},w=V=>{S(B=>[].concat($n(B),[V]))},R=V=>{const B=C.indexOf(V.value),_=$n(C);B===-1?_.push(V.value):_.splice(B,1),"value"in g||b(_),p?.(_.filter(H=>x.includes(H)).sort((H,I)=>{const z=$.findIndex(A=>A.value===H),L=$.findIndex(A=>A.value===I);return z-L}))},T=h("checkbox",s),N=`${T}-group`,O=lr(T),[P,D]=A3(T,O),k=en(g,["value","disabled"]),F=i.length?$.map(V=>l.createElement(j3,{prefixCls:T,key:V.value.toString(),disabled:"disabled"in V?V.disabled:g.disabled,value:V.value,checked:C.includes(V.value),onChange:V.onChange,className:Q(`${N}-item`,V.className),style:V.style,title:V.title,id:V.id,required:V.required},V.label)):r,Y=l.useMemo(()=>({toggleOption:R,value:C,disabled:g.disabled,name:g.name,registerValue:w,cancelValue:M}),[R,C,g.disabled,g.name,w,M]),G=Q(N,{[`${N}-rtl`]:y==="rtl"},c,d,D,O,P);return l.createElement("div",{className:G,style:f,...k,ref:t},l.createElement(D3.Provider,{value:Y},F))}),Os=j3;Os.Group=IU;Os.__ANT_CHECKBOX=!0;const _3=l.createContext({});function a4(e){return e==="auto"?"1 1 auto":typeof e=="number"?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const PU=["xs","sm","md","lg","xl","xxl"],zU=l.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=l.useContext(dt),{gutter:i,wrap:s}=l.useContext(_3),{prefixCls:c,span:d,order:f,offset:p,push:g,pull:h,className:y,children:C,flex:b,style:x,...S}=e,$=n("col",c),[M,w]=y9($),R={};let T={};PU.forEach(P=>{let D={};const k=e[P];typeof k=="number"?D.span=k:typeof k=="object"&&(D=k||{}),delete S[P],T={...T,[`${$}-${P}-${D.span}`]:D.span!==void 0,[`${$}-${P}-order-${D.order}`]:D.order||D.order===0,[`${$}-${P}-offset-${D.offset}`]:D.offset||D.offset===0,[`${$}-${P}-push-${D.push}`]:D.push||D.push===0,[`${$}-${P}-pull-${D.pull}`]:D.pull||D.pull===0,[`${$}-rtl`]:r==="rtl"},D.flex&&(T[`${$}-${P}-flex`]=!0,R[`--${$}-${P}-flex`]=a4(D.flex))});const N=Q($,{[`${$}-${d}`]:d!==void 0,[`${$}-order-${f}`]:f,[`${$}-offset-${p}`]:p,[`${$}-push-${g}`]:g,[`${$}-pull-${h}`]:h},y,T,M,w),O={};if(i?.[0]){const P=typeof i[0]=="number"?`${i[0]/2}px`:`calc(${i[0]} / 2)`;O.paddingInline=P}return b&&(O.flex=a4(b),s===!1&&!O.minWidth&&(O.minWidth=0)),l.createElement("div",{...S,style:{...O,...x,...R},className:N,ref:t},C)});function AU(e,t){const n=[void 0,void 0],r=Array.isArray(e)?e:[e,void 0],i=t||{xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0};return r.forEach((s,c)=>{if(typeof s=="object"&&s!==null)for(let d=0;d<nl.length;d++){const f=nl[d];if(i[f]&&s[f]!==void 0){n[c]=s[f];break}}else n[c]=s}),n}function i4(e,t){const[n,r]=l.useState(typeof e=="string"?e:""),i=()=>{if(typeof e=="string"&&r(e),typeof e=="object")for(let s=0;s<nl.length;s++){const c=nl[s];if(!t||!t[c])continue;const d=e[c];if(d!==void 0){r(d);return}}};return l.useEffect(()=>{i()},[JSON.stringify(e),t]),n}const DU=l.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:i,className:s,style:c,children:d,gutter:f=0,wrap:p,...g}=e,{getPrefixCls:h,direction:y}=l.useContext(dt),C=jp(!0,null),b=i4(i,C),x=i4(r,C),S=h("row",n),[$,M]=h9(S),w=AU(f,C),R=Q(S,{[`${S}-no-wrap`]:p===!1,[`${S}-${x}`]:x,[`${S}-${b}`]:b,[`${S}-rtl`]:y==="rtl"},s,$,M),T={};if(w?.[0]){const D=typeof w[0]=="number"?`${w[0]/-2}px`:`calc(${w[0]} / -2)`;T.marginInline=D}const[N,O]=w;T.rowGap=O;const P=l.useMemo(()=>({gutter:[N,O],wrap:p}),[N,O,p]);return l.createElement(_3.Provider,{value:P},l.createElement("div",{...g,className:R,style:{...T,...c},ref:t},d))}),jU=e=>{const{componentCls:t}=e;return{[t]:{"&-horizontal":{[`&${t}`]:{"&-sm":{marginBlock:e.marginXS},"&-md":{marginBlock:e.margin}}}}}},_U=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:i,textPaddingInline:s,orientationMargin:c,verticalMarginInline:d}=e,f=`${t}-rail`;return{[t]:{...Zt(e),borderBlockStart:`${te(i)} solid ${r}`,[f]:{borderBlockStart:`${te(i)} solid ${r}`},"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:d,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${te(i)} solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${te(e.marginLG)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${te(e.dividerHorizontalWithTextGutterMargin)} 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,[`${f}-start, ${f}-end`]:{width:"50%",borderBlockStartColor:"inherit",borderBlockEnd:0,content:"''"}},[`&-horizontal${t}-with-text-start`]:{[`${f}-start`]:{width:`calc(${c} * 100%)`},[`${f}-end`]:{width:`calc(100% - ${c} * 100%)`}},[`&-horizontal${t}-with-text-end`]:{[`${f}-start`]:{width:`calc(100% - ${c} * 100%)`},[`${f}-end`]:{width:`calc(${c} * 100%)`}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:s},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${te(i)} 0 0`,[f]:{borderBlockStart:`${te(i)} dashed ${r}`}},[`&-horizontal${t}-with-text${t}-dashed`]:{[`${f}-start, ${f}-end`]:{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:i,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:r,borderStyle:"dotted",borderWidth:`${te(i)} 0 0`,[f]:{borderBlockStart:`${te(i)} dotted ${r}`}},[`&-horizontal${t}-with-text${t}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${t}-dotted`]:{borderInlineStartWidth:i,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-start${t}-no-default-orientation-margin-start`]:{[`${f}-start`]:{width:0},[`${f}-end`]:{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-end${t}-no-default-orientation-margin-end`]:{[`${f}-start`]:{width:"100%"},[`${f}-end`]:{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}}}},HU=e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}),BU=zt("Divider",e=>{const t=Nt(e,{dividerHorizontalWithTextGutterMargin:e.margin,sizePaddingEdgeHorizontal:0});return[_U(t),jU(t)]},HU,{unitless:{orientationMargin:!0}}),LU=["left","right","center","start","end"],VU={small:"sm",middle:"md"},ri=e=>{const{getPrefixCls:t,direction:n,className:r,style:i,classNames:s,styles:c}=Pt("divider"),{prefixCls:d,type:f,orientation:p,vertical:g,titlePlacement:h,orientationMargin:y,className:C,rootClassName:b,children:x,dashed:S,variant:$="solid",plain:M,style:w,size:R,classNames:T,styles:N,...O}=e,P=t("divider",d),D=`${P}-rail`,[k,F]=BU(P),Y=pr(R),G=VU[Y],V=!!x,B=LU.includes(p||""),_=l.useMemo(()=>{const Z=h??(B?p:"center");return Z==="left"?n==="rtl"?"end":"start":Z==="right"?n==="rtl"?"start":"end":Z},[n,p,h,B]),H=_==="start"&&y!=null,I=_==="end"&&y!=null,[z,L]=ld(p,g,f),A={...e,orientation:z,titlePlacement:_,size:Y},[j,q]=Vt([s,T],[c,N],{props:A}),X=Q(P,r,k,F,`${P}-${z}`,{[`${P}-with-text`]:V,[`${P}-with-text-${_}`]:V,[`${P}-dashed`]:!!S,[`${P}-${$}`]:$!=="solid",[`${P}-plain`]:!!M,[`${P}-rtl`]:n==="rtl",[`${P}-no-default-orientation-margin-start`]:H,[`${P}-no-default-orientation-margin-end`]:I,[`${P}-${G}`]:!!G,[D]:!x,[j.rail]:j.rail&&!x},C,b,j.root),K=l.useMemo(()=>typeof y=="number"?y:/^\d+$/.test(y)?Number(y):y,[y]),J={marginInlineStart:H?K:void 0,marginInlineEnd:I?K:void 0};return l.createElement("div",{className:X,style:{...i,...q.root,...x?{}:q.rail,...w},...O,role:"separator"},x&&!L&&l.createElement(l.Fragment,null,l.createElement("div",{className:Q(D,`${D}-start`,j.rail),style:q.rail}),l.createElement("span",{className:Q(`${P}-inner-text`,j.content),style:{...J,...q.content}},x),l.createElement("div",{className:Q(D,`${D}-end`,j.rail),style:q.rail})))},l4=(e,t)=>{if(!e)return null;const 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}},Wo=e=>e!==void 0?`${e}px`:void 0;function FU(e){const{prefixCls:t,containerRef:n,value:r,getValueIndex:i,motionName:s,onMotionStart:c,onMotionEnd:d,direction:f,vertical:p=!1}=e,g=l.useRef(null),[h,y]=l.useState(r),C=O=>{const P=i(O),D=n.current?.querySelectorAll(`.${t}-item`)[P];return D?.offsetParent&&D},[b,x]=l.useState(null),[S,$]=l.useState(null);It(()=>{if(h!==r){const O=C(h),P=C(r),D=l4(O,p),k=l4(P,p);y(r),x(D),$(k),O&&P?c():d()}},[r]);const M=l.useMemo(()=>Wo(p?b?.top??0:f==="rtl"?-b?.right:b?.left),[p,f,b]),w=l.useMemo(()=>Wo(p?S?.top??0:f==="rtl"?-S?.right:S?.left),[p,f,S]),R=()=>p?{transform:"translateY(var(--thumb-start-top))",height:"var(--thumb-start-height)"}:{transform:"translateX(var(--thumb-start-left))",width:"var(--thumb-start-width)"},T=()=>p?{transform:"translateY(var(--thumb-active-top))",height:"var(--thumb-active-height)"}:{transform:"translateX(var(--thumb-active-left))",width:"var(--thumb-active-width)"},N=()=>{x(null),$(null),d()};return!b||!S?null:l.createElement(Sr,{visible:!0,motionName:s,motionAppear:!0,onAppearStart:R,onAppearActive:T,onVisibleChanged:N},({className:O,style:P},D)=>{const k={...P,"--thumb-start-left":M,"--thumb-start-width":Wo(b?.width),"--thumb-active-left":w,"--thumb-active-width":Wo(S?.width),"--thumb-start-top":M,"--thumb-start-height":Wo(b?.height),"--thumb-active-top":w,"--thumb-active-height":Wo(S?.height)},F={ref:ir(g,D),style:k,className:Q(`${t}-thumb`,O)};return l.createElement("div",F)})}function kU(e){if(typeof e.title<"u")return e.title;if(typeof e.label!="object")return e.label?.toString()}function WU(e){return e.map(t=>{if(typeof t=="object"&&t!==null){const n=kU(t);return{...t,title:n}}return{label:t?.toString(),title:t?.toString(),value:t}})}const qU=({prefixCls:e,className:t,style:n,styles:r,classNames:i,data:s,disabled:c,checked:d,label:f,title:p,value:g,name:h,onChange:y,onFocus:C,onBlur:b,onKeyDown:x,onKeyUp:S,onMouseDown:$,itemRender:M=w=>w})=>{const w=T=>{c||y(T,g)},R=l.createElement("label",{className:Q(t,{[`${e}-item-disabled`]:c}),style:n,onMouseDown:$},l.createElement("input",{name:h,className:`${e}-item-input`,type:"radio",disabled:c,checked:d,onChange:w,onFocus:C,onBlur:b,onKeyDown:x,onKeyUp:S}),l.createElement("div",{className:Q(`${e}-item-label`,i?.label),title:p,style:r?.label},f));return M(R,{item:s})},YU=l.forwardRef((e,t)=>{const{prefixCls:n="rc-segmented",direction:r,vertical:i,options:s=[],disabled:c,defaultValue:d,value:f,name:p,onChange:g,className:h="",style:y,styles:C,classNames:b,motionName:x="thumb-motion",itemRender:S,...$}=e,M=l.useRef(null),w=l.useMemo(()=>ir(M,t),[M,t]),R=l.useMemo(()=>WU(s),[s]),[T,N]=Yt(d??R[0]?.value,f),[O,P]=l.useState(!1),D=(j,q)=>{N(q),g?.(q)},k=en($,["children"]),[F,Y]=l.useState(!1),[G,V]=l.useState(!1),B=()=>{V(!0)},_=()=>{V(!1)},H=()=>{Y(!1)},I=j=>{j.key==="Tab"&&Y(!0)},z=j=>{const q=R.findIndex(Z=>Z.value===T),X=R.length,K=(q+j+X)%X,J=R[K];J&&(N(J.value),g?.(J.value))},L=j=>{switch(j.key){case"ArrowLeft":case"ArrowUp":z(-1);break;case"ArrowRight":case"ArrowDown":z(1);break}},A=j=>{const{value:q,disabled:X}=j;return l.createElement(qU,Gn({},j,{name:p,data:j,itemRender:S,key:q,prefixCls:n,className:Q(j.className,`${n}-item`,b?.item,{[`${n}-item-selected`]:q===T&&!O,[`${n}-item-focused`]:G&&F&&q===T}),style:C?.item,classNames:b,styles:C,checked:q===T,onChange:D,onFocus:B,onBlur:_,onKeyDown:L,onKeyUp:I,onMouseDown:H,disabled:!!c||!!X}))};return l.createElement("div",Gn({role:"radiogroup","aria-label":"segmented control",tabIndex:c?void 0:0,"aria-orientation":i?"vertical":"horizontal",style:y},k,{className:Q(n,{[`${n}-rtl`]:r==="rtl",[`${n}-disabled`]:c,[`${n}-vertical`]:i},h),ref:w}),l.createElement("div",{className:`${n}-group`},l.createElement(FU,{vertical:i,prefixCls:n,value:T,containerRef:M,motionName:`${n}-${x}`,direction:r,getValueIndex:j=>R.findIndex(q=>q.value===j),onMotionStart:()=>{P(!0)},onMotionEnd:()=>{P(!1)}}),R.map(A)))}),UU=YU;function s4(e,t){return{[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:"not-allowed"}}}function c4(e){return{background:e.itemSelectedBg,boxShadow:e.boxShadowTertiary}}const GU={overflow:"hidden",...$o},XU=e=>{const{componentCls:t}=e,n=e.calc(e.controlHeight).sub(e.calc(e.trackPadding).mul(2)).equal(),r=e.calc(e.controlHeightLG).sub(e.calc(e.trackPadding).mul(2)).equal(),i=e.calc(e.controlHeightSM).sub(e.calc(e.trackPadding).mul(2)).equal();return{[t]:{...Zt(e),display:"inline-block",padding:e.trackPadding,color:e.itemColor,background:e.trackBg,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`,...xo(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 ${te(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}`,borderRadius:e.borderRadiusSM,transform:"translateZ(0)","&-selected":{...c4(e),color:e.itemSelectedColor},"&-focused":Go(e),"&::after":{content:'""',position:"absolute",zIndex:-1,width:"100%",height:"100%",top:0,insetInlineStart:0,borderRadius:"inherit",opacity:0,transition:`opacity ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,pointerEvents:"none"},[`&:not(${t}-item-selected):not(${t}-item-disabled)`]:{"&:hover, &:active":{color:e.itemHoverColor},"&:hover::after":{opacity:1,backgroundColor:e.itemHoverBg},"&:active::after":{opacity:1,backgroundColor:e.itemActiveBg}},"&-label":{minHeight:n,lineHeight:te(n),padding:`0 ${te(e.segmentedPaddingHorizontal)}`,...GU},"&-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`]:{...c4(e),position:"absolute",insetBlockStart:0,insetInlineStart:0,width:0,height:"100%",padding:`${te(e.paddingXXS)} 0`,borderRadius:e.borderRadiusSM,[`& ~ ${t}-item:not(${t}-item-selected):not(${t}-item-disabled)::after`]:{backgroundColor:"transparent"}},[`&${t}-lg`]:{borderRadius:e.borderRadiusLG,[`${t}-item-label`]:{minHeight:r,lineHeight:te(r),padding:`0 ${te(e.segmentedPaddingHorizontal)}`,fontSize:e.fontSizeLG},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadius}},[`&${t}-sm`]:{borderRadius:e.borderRadiusSM,[`${t}-item-label`]:{minHeight:i,lineHeight:te(i),padding:`0 ${te(e.segmentedPaddingHorizontalSM)}`},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadiusXS}},...s4(`&-disabled ${t}-item`,e),...s4(`${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}}}}},KU=e=>{const{colorTextLabel:t,colorText:n,colorFillSecondary:r,colorBgElevated:i,colorFill:s,lineWidthBold:c,colorBgLayout:d}=e;return{trackPadding:c,trackBg:d,itemColor:t,itemHoverColor:n,itemHoverBg:r,itemSelectedBg:i,itemActiveBg:s,itemSelectedColor:n}},QU=zt("Segmented",e=>{const{lineWidth:t,calc:n}=e,r=Nt(e,{segmentedPaddingHorizontal:n(e.controlPaddingHorizontal).sub(t).equal(),segmentedPaddingHorizontalSM:n(e.controlPaddingHorizontalSM).sub(t).equal()});return XU(r)},KU);function ZU(e){return typeof e=="object"&&!!e?.icon}const JU=l.forwardRef((e,t)=>{const n=Qo(),{prefixCls:r,className:i,rootClassName:s,block:c,options:d=[],size:f="middle",style:p,vertical:g,orientation:h,shape:y="default",name:C=n,styles:b,classNames:x,...S}=e,{getPrefixCls:$,direction:M,className:w,style:R,classNames:T,styles:N}=Pt("segmented"),O={...e,options:d,size:f,shape:y},[P,D]=Vt([T,x],[N,b],{props:O}),k=$("segmented",r),[F,Y]=QU(k),G=pr(f),V=l.useMemo(()=>d.map(z=>{if(ZU(z)){const{icon:L,label:A,...j}=z;return{...j,label:l.createElement(l.Fragment,null,l.createElement("span",{className:Q(`${k}-item-icon`,P.icon),style:D.icon},L),A&&l.createElement("span",null,A))}}return z}),[d,k,P.icon,D.icon]),[,B]=ld(h,g),_=Q(i,s,w,P.root,{[`${k}-block`]:c,[`${k}-sm`]:G==="small",[`${k}-lg`]:G==="large",[`${k}-vertical`]:B,[`${k}-shape-${y}`]:y==="round"},F,Y),H={...D.root,...R,...p},I=(z,{item:L})=>{if(!L.tooltip)return z;const A=typeof L.tooltip=="object"?L.tooltip:{title:L.tooltip};return l.createElement(fr,{...A},z)};return l.createElement(UU,{...S,name:C,className:_,style:H,classNames:P,styles:D,itemRender:I,options:V,ref:t,prefixCls:k,direction:M,vertical:B})}),eG=JU;var tG={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-600-80h56c4.4 0 8-3.6 8-8V560c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v144c0 4.4 3.6 8 8 8zm152 0h56c4.4 0 8-3.6 8-8V384c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v320c0 4.4 3.6 8 8 8zm152 0h56c4.4 0 8-3.6 8-8V462c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v242c0 4.4 3.6 8 8 8zm152 0h56c4.4 0 8-3.6 8-8V304c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v400c0 4.4 3.6 8 8 8z"}}]},name:"bar-chart",theme:"outlined"};function $0(){return $0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$0.apply(this,arguments)}const nG=(e,t)=>l.createElement(gt,$0({},e,{ref:t,icon:tG})),u4=l.forwardRef(nG);var rG={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"border",theme:"outlined"};function x0(){return x0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},x0.apply(this,arguments)}const oG=(e,t)=>l.createElement(gt,x0({},e,{ref:t,icon:rG})),aG=l.forwardRef(oG);var iG={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"};function w0(){return w0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},w0.apply(this,arguments)}const lG=(e,t)=>l.createElement(gt,w0({},e,{ref:t,icon:iG})),H3=l.forwardRef(lG);var sG={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M715.8 493.5L335 165.1c-14.2-12.2-35-1.2-35 18.5v656.8c0 19.7 20.8 30.7 35 18.5l380.8-328.4c10.9-9.4 10.9-27.6 0-37z"}}]},name:"caret-right",theme:"filled"};function E0(){return E0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},E0.apply(this,arguments)}const cG=(e,t)=>l.createElement(gt,E0({},e,{ref:t,icon:sG})),uG=l.forwardRef(cG);var dG={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"check-circle",theme:"outlined"};function M0(){return M0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},M0.apply(this,arguments)}const fG=(e,t)=>l.createElement(gt,M0({},e,{ref:t,icon:dG})),b1=l.forwardRef(fG);var mG={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM695.5 365.7l-210.6 292a31.8 31.8 0 01-51.7 0L308.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H689c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-square",theme:"filled"};function R0(){return R0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},R0.apply(this,arguments)}const pG=(e,t)=>l.createElement(gt,R0({},e,{ref:t,icon:mG})),gG=l.forwardRef(pG);var hG={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M433.1 657.7a31.8 31.8 0 0051.7 0l210.6-292c3.8-5.3 0-12.7-6.5-12.7H642c-10.2 0-19.9 4.9-25.9 13.3L459 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H315c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"check-square",theme:"outlined"};function T0(){return T0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},T0.apply(this,arguments)}const yG=(e,t)=>l.createElement(gt,T0({},e,{ref:t,icon:hG})),B3=l.forwardRef(yG);var bG={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"};function O0(){return O0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},O0.apply(this,arguments)}const vG=(e,t)=>l.createElement(gt,O0({},e,{ref:t,icon:bG})),Ed=l.forwardRef(vG);var SG={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M811.4 368.9C765.6 248 648.9 162 512.2 162S258.8 247.9 213 368.8C126.9 391.5 63.5 470.2 64 563.6 64.6 668 145.6 752.9 247.6 762c4.7.4 8.7-3.3 8.7-8v-60.4c0-4-3-7.4-7-7.9-27-3.4-52.5-15.2-72.1-34.5-24-23.5-37.2-55.1-37.2-88.6 0-28 9.1-54.4 26.2-76.4 16.7-21.4 40.2-36.9 66.1-43.7l37.9-10 13.9-36.7c8.6-22.8 20.6-44.2 35.7-63.5 14.9-19.2 32.6-36 52.4-50 41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.3c19.9 14 37.5 30.8 52.4 50 15.1 19.3 27.1 40.7 35.7 63.5l13.8 36.6 37.8 10c54.2 14.4 92.1 63.7 92.1 120 0 33.6-13.2 65.1-37.2 88.6-19.5 19.2-44.9 31.1-71.9 34.5-4 .5-6.9 3.9-6.9 7.9V754c0 4.7 4.1 8.4 8.8 8 101.7-9.2 182.5-94 183.2-198.2.6-93.4-62.7-172.1-148.6-194.9z"}},{tag:"path",attrs:{d:"M376.9 656.4c1.8-33.5 15.7-64.7 39.5-88.6 25.4-25.5 60-39.8 96-39.8 36.2 0 70.3 14.1 96 39.8 1.4 1.4 2.7 2.8 4.1 4.3l-25 19.6a8 8 0 003 14.1l98.2 24c5 1.2 9.9-2.6 9.9-7.7l.5-101.3c0-6.7-7.6-10.5-12.9-6.3L663 532.7c-36.6-42-90.4-68.6-150.5-68.6-107.4 0-195 85.1-199.4 191.7-.2 4.5 3.4 8.3 8 8.3H369c4.2-.1 7.7-3.4 7.9-7.7zM703 664h-47.9c-4.2 0-7.7 3.3-8 7.6-1.8 33.5-15.7 64.7-39.5 88.6-25.4 25.5-60 39.8-96 39.8-36.2 0-70.3-14.1-96-39.8-1.4-1.4-2.7-2.8-4.1-4.3l25-19.6a8 8 0 00-3-14.1l-98.2-24c-5-1.2-9.9 2.6-9.9 7.7l-.4 101.4c0 6.7 7.6 10.5 12.9 6.3l23.2-18.2c36.6 42 90.4 68.6 150.5 68.6 107.4 0 195-85.1 199.4-191.7.2-4.5-3.4-8.3-8-8.3z"}}]},name:"cloud-sync",theme:"outlined"};function N0(){return N0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},N0.apply(this,arguments)}const CG=(e,t)=>l.createElement(gt,N0({},e,{ref:t,icon:SG})),d4=l.forwardRef(CG);var $G={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M518.3 459a8 8 0 00-12.6 0l-112 141.7a7.98 7.98 0 006.3 12.9h73.9V856c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V613.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 459z"}},{tag:"path",attrs:{d:"M811.4 366.7C765.6 245.9 648.9 160 512.2 160S258.8 245.8 213 366.6C127.3 389.1 64 467.2 64 560c0 110.5 89.5 200 199.9 200H304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8h-40.1c-33.7 0-65.4-13.4-89-37.7-23.5-24.2-36-56.8-34.9-90.6.9-26.4 9.9-51.2 26.2-72.1 16.7-21.3 40.1-36.8 66.1-43.7l37.9-9.9 13.9-36.6c8.6-22.8 20.6-44.1 35.7-63.4a245.6 245.6 0 0152.4-49.9c41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.2c19.9 14 37.5 30.8 52.4 49.9 15.1 19.3 27.1 40.7 35.7 63.4l13.8 36.5 37.8 10C846.1 454.5 884 503.8 884 560c0 33.1-12.9 64.3-36.3 87.7a123.07 123.07 0 01-87.6 36.3H720c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h40.1C870.5 760 960 670.5 960 560c0-92.7-63.1-170.7-148.6-193.3z"}}]},name:"cloud-upload",theme:"outlined"};function I0(){return I0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},I0.apply(this,arguments)}const xG=(e,t)=>l.createElement(gt,I0({},e,{ref:t,icon:$G})),wG=l.forwardRef(xG);var EG={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"};function P0(){return P0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},P0.apply(this,arguments)}const MG=(e,t)=>l.createElement(gt,P0({},e,{ref:t,icon:EG})),L3=l.forwardRef(MG);var RG={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"};function z0(){return z0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},z0.apply(this,arguments)}const TG=(e,t)=>l.createElement(gt,z0({},e,{ref:t,icon:RG})),up=l.forwardRef(TG);var OG={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"};function A0(){return A0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},A0.apply(this,arguments)}const NG=(e,t)=>l.createElement(gt,A0({},e,{ref:t,icon:OG})),f4=l.forwardRef(NG);var IG={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"};function D0(){return D0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},D0.apply(this,arguments)}const PG=(e,t)=>l.createElement(gt,D0({},e,{ref:t,icon:IG})),m4=l.forwardRef(PG);var zG={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.3 506.3L781.7 405.6a7.23 7.23 0 00-11.7 5.7V476H548V254h64.8c6 0 9.4-7 5.7-11.7L517.7 114.7a7.14 7.14 0 00-11.3 0L405.6 242.3a7.23 7.23 0 005.7 11.7H476v222H254v-64.8c0-6-7-9.4-11.7-5.7L114.7 506.3a7.14 7.14 0 000 11.3l127.5 100.8c4.7 3.7 11.7.4 11.7-5.7V548h222v222h-64.8c-6 0-9.4 7-5.7 11.7l100.8 127.5c2.9 3.7 8.5 3.7 11.3 0l100.8-127.5c3.7-4.7.4-11.7-5.7-11.7H548V548h222v64.8c0 6 7 9.4 11.7 5.7l127.5-100.8a7.3 7.3 0 00.1-11.4z"}}]},name:"drag",theme:"outlined"};function j0(){return j0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},j0.apply(this,arguments)}const AG=(e,t)=>l.createElement(gt,j0({},e,{ref:t,icon:zG})),DG=l.forwardRef(AG);var jG={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"};function _0(){return _0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_0.apply(this,arguments)}const _G=(e,t)=>l.createElement(gt,_0({},e,{ref:t,icon:jG})),di=l.forwardRef(_G);var HG={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"};function H0(){return H0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},H0.apply(this,arguments)}const BG=(e,t)=>l.createElement(gt,H0({},e,{ref:t,icon:HG})),LG=l.forwardRef(BG);var VG={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"};function B0(){return B0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},B0.apply(this,arguments)}const FG=(e,t)=>l.createElement(gt,B0({},e,{ref:t,icon:VG})),kG=l.forwardRef(FG);var WG={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"};function L0(){return L0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},L0.apply(this,arguments)}const qG=(e,t)=>l.createElement(gt,L0({},e,{ref:t,icon:WG})),YG=l.forwardRef(qG);var UG={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"};function V0(){return V0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},V0.apply(this,arguments)}const GG=(e,t)=>l.createElement(gt,V0({},e,{ref:t,icon:UG})),XG=l.forwardRef(GG);var KG={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"};function F0(){return F0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},F0.apply(this,arguments)}const QG=(e,t)=>l.createElement(gt,F0({},e,{ref:t,icon:KG})),ZG=l.forwardRef(QG);var JG={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494zM504 618H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 490v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8z"}}]},name:"file-text",theme:"outlined"};function k0(){return k0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},k0.apply(this,arguments)}const eX=(e,t)=>l.createElement(gt,k0({},e,{ref:t,icon:JG})),dp=l.forwardRef(eX);var tX={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M511.6 76.3C264.3 76.2 64 276.4 64 523.5 64 718.9 189.3 885 363.8 946c23.5 5.9 19.9-10.8 19.9-22.2v-77.5c-135.7 15.9-141.2-73.9-150.3-88.9C215 726 171.5 718 184.5 703c30.9-15.9 62.4 4 98.9 57.9 26.4 39.1 77.9 32.5 104 26 5.7-23.5 17.9-44.5 34.7-60.8-140.6-25.2-199.2-111-199.2-213 0-49.5 16.3-95 48.3-131.7-20.4-60.5 1.9-112.3 4.9-120 58.1-5.2 118.5 41.6 123.2 45.3 33-8.9 70.7-13.6 112.9-13.6 42.4 0 80.2 4.9 113.5 13.9 11.3-8.6 67.3-48.8 121.3-43.9 2.9 7.7 24.7 58.3 5.5 118 32.4 36.8 48.9 82.7 48.9 132.3 0 102.2-59 188.1-200 212.9a127.5 127.5 0 0138.1 91v112.5c.8 9 0 17.9 15 17.9 177.1-59.7 304.6-227 304.6-424.1 0-247.2-200.4-447.3-447.5-447.3z"}}]},name:"github",theme:"outlined"};function W0(){return W0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},W0.apply(this,arguments)}const nX=(e,t)=>l.createElement(gt,W0({},e,{ref:t,icon:tX})),rX=l.forwardRef(nX);var oX={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M881 442.4H519.7v148.5h206.4c-8.9 48-35.9 88.6-76.6 115.8-34.4 23-78.3 36.6-129.9 36.6-99.9 0-184.4-67.5-214.6-158.2-7.6-23-12-47.6-12-72.9s4.4-49.9 12-72.9c30.3-90.6 114.8-158.1 214.7-158.1 56.3 0 106.8 19.4 146.6 57.4l110-110.1c-66.5-62-153.2-100-256.6-100-149.9 0-279.6 86-342.7 211.4-26 51.8-40.8 110.4-40.8 172.4S151 632.8 177 684.6C240.1 810 369.8 896 519.7 896c103.6 0 190.4-34.4 253.8-93 72.5-66.8 114.4-165.2 114.4-282.1 0-27.2-2.4-53.3-6.9-78.5z"}}]},name:"google",theme:"outlined"};function q0(){return q0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},q0.apply(this,arguments)}const aX=(e,t)=>l.createElement(gt,q0({},e,{ref:t,icon:oX})),iX=l.forwardRef(aX);var lX={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 912H144c-17.7 0-32-14.3-32-32V144c0-17.7 14.3-32 32-32h360c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8H184v656h656V520c0-4.4 3.6-8 8-8h56c4.4 0 8 3.6 8 8v360c0 17.7-14.3 32-32 32zM653.3 424.6l52.2 52.2a8.01 8.01 0 01-4.7 13.6l-179.4 21c-5.1.6-9.5-3.7-8.9-8.9l21-179.4c.8-6.6 8.9-9.4 13.6-4.7l52.4 52.4 256.2-256.2c3.1-3.1 8.2-3.1 11.3 0l42.4 42.4c3.1 3.1 3.1 8.2 0 11.3L653.3 424.6z"}}]},name:"import",theme:"outlined"};function Y0(){return Y0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Y0.apply(this,arguments)}const sX=(e,t)=>l.createElement(gt,Y0({},e,{ref:t,icon:lX})),cX=l.forwardRef(sX);var uX={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"};function U0(){return U0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},U0.apply(this,arguments)}const dX=(e,t)=>l.createElement(gt,U0({},e,{ref:t,icon:uX})),fX=l.forwardRef(dX);var mX={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M456 231a56 56 0 10112 0 56 56 0 10-112 0zm0 280a56 56 0 10112 0 56 56 0 10-112 0zm0 280a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"more",theme:"outlined"};function G0(){return G0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},G0.apply(this,arguments)}const pX=(e,t)=>l.createElement(gt,G0({},e,{ref:t,icon:mX})),V3=l.forwardRef(pX);var gX={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372zm-88-532h-48c-4.4 0-8 3.6-8 8v304c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V360c0-4.4-3.6-8-8-8zm224 0h-48c-4.4 0-8 3.6-8 8v304c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V360c0-4.4-3.6-8-8-8z"}}]},name:"pause-circle",theme:"outlined"};function X0(){return X0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},X0.apply(this,arguments)}const hX=(e,t)=>l.createElement(gt,X0({},e,{ref:t,icon:gX})),yX=l.forwardRef(hX);var bX={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M304 176h80v672h-80zm408 0h-64c-4.4 0-8 3.6-8 8v656c0 4.4 3.6 8 8 8h64c4.4 0 8-3.6 8-8V184c0-4.4-3.6-8-8-8z"}}]},name:"pause",theme:"outlined"};function K0(){return K0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},K0.apply(this,arguments)}const vX=(e,t)=>l.createElement(gt,K0({},e,{ref:t,icon:bX})),SX=l.forwardRef(vX);var CX={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M719.4 499.1l-296.1-215A15.9 15.9 0 00398 297v430c0 13.1 14.8 20.5 25.3 12.9l296.1-215a15.9 15.9 0 000-25.8zm-257.6 134V390.9L628.5 512 461.8 633.1z"}}]},name:"play-circle",theme:"outlined"};function Q0(){return Q0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Q0.apply(this,arguments)}const $X=(e,t)=>l.createElement(gt,Q0({},e,{ref:t,icon:CX})),F3=l.forwardRef($X);var xX={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M280 752h80c4.4 0 8-3.6 8-8V280c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8v464c0 4.4 3.6 8 8 8zm192-280h80c4.4 0 8-3.6 8-8V280c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8v184c0 4.4 3.6 8 8 8zm192 72h80c4.4 0 8-3.6 8-8V280c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8v256c0 4.4 3.6 8 8 8zm216-432H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"project",theme:"outlined"};function Z0(){return Z0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Z0.apply(this,arguments)}const wX=(e,t)=>l.createElement(gt,Z0({},e,{ref:t,icon:xX})),EX=l.forwardRef(wX);var MX={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M758.2 839.1C851.8 765.9 912 651.9 912 523.9 912 303 733.5 124.3 512.6 124 291.4 123.7 112 302.8 112 523.9c0 125.2 57.5 236.9 147.6 310.2 3.5 2.8 8.6 2.2 11.4-1.3l39.4-50.5c2.7-3.4 2.1-8.3-1.2-11.1-8.1-6.6-15.9-13.7-23.4-21.2a318.64 318.64 0 01-68.6-101.7C200.4 609 192 567.1 192 523.9s8.4-85.1 25.1-124.5c16.1-38.1 39.2-72.3 68.6-101.7 29.4-29.4 63.6-52.5 101.7-68.6C426.9 212.4 468.8 204 512 204s85.1 8.4 124.5 25.1c38.1 16.1 72.3 39.2 101.7 68.6 29.4 29.4 52.5 63.6 68.6 101.7 16.7 39.4 25.1 81.3 25.1 124.5s-8.4 85.1-25.1 124.5a318.64 318.64 0 01-68.6 101.7c-9.3 9.3-19.1 18-29.3 26L668.2 724a8 8 0 00-14.1 3l-39.6 162.2c-1.2 5 2.6 9.9 7.7 9.9l167 .8c6.7 0 10.5-7.7 6.3-12.9l-37.3-47.9z"}}]},name:"redo",theme:"outlined"};function J0(){return J0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},J0.apply(this,arguments)}const RX=(e,t)=>l.createElement(gt,J0({},e,{ref:t,icon:MX})),TX=l.forwardRef(RX);var OX={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z"}}]},name:"reload",theme:"outlined"};function eS(){return eS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},eS.apply(this,arguments)}const NX=(e,t)=>l.createElement(gt,eS({},e,{ref:t,icon:OX})),k3=l.forwardRef(NX);var IX={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M893.3 293.3L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 184h256v104H384V184zm456 656H184V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V840zM512 442c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144zm0 224c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z"}}]},name:"save",theme:"outlined"};function tS(){return tS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tS.apply(this,arguments)}const PX=(e,t)=>l.createElement(gt,tS({},e,{ref:t,icon:IX})),v1=l.forwardRef(PX);var zX={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M931.4 498.9L94.9 79.5c-3.4-1.7-7.3-2.1-11-1.2a15.99 15.99 0 00-11.7 19.3l86.2 352.2c1.3 5.3 5.2 9.6 10.4 11.3l147.7 50.7-147.6 50.7c-5.2 1.8-9.1 6-10.3 11.3L72.2 926.5c-.9 3.7-.5 7.6 1.2 10.9 3.9 7.9 13.5 11.1 21.5 7.2l836.5-417c3.1-1.5 5.6-4.1 7.2-7.1 3.9-8 .7-17.6-7.2-21.6zM170.8 826.3l50.3-205.6 295.2-101.3c2.3-.8 4.2-2.6 5-5 1.4-4.2-.8-8.7-5-10.2L221.1 403 171 198.2l628 314.9-628.2 313.2z"}}]},name:"send",theme:"outlined"};function nS(){return nS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nS.apply(this,arguments)}const AX=(e,t)=>l.createElement(gt,nS({},e,{ref:t,icon:zX})),DX=l.forwardRef(AX);var jX={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z"}}]},name:"setting",theme:"outlined"};function rS(){return rS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rS.apply(this,arguments)}const _X=(e,t)=>l.createElement(gt,rS({},e,{ref:t,icon:jX})),HX=l.forwardRef(_X);var BX={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"}}]},name:"swap-right",theme:"outlined"};function oS(){return oS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},oS.apply(this,arguments)}const LX=(e,t)=>l.createElement(gt,oS({},e,{ref:t,icon:BX})),VX=l.forwardRef(LX);var FX={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M511.4 124C290.5 124.3 112 303 112 523.9c0 128 60.2 242 153.8 315.2l-37.5 48c-4.1 5.3-.3 13 6.3 12.9l167-.8c5.2 0 9-4.9 7.7-9.9L369.8 727a8 8 0 00-14.1-3L315 776.1c-10.2-8-20-16.7-29.3-26a318.64 318.64 0 01-68.6-101.7C200.4 609 192 567.1 192 523.9s8.4-85.1 25.1-124.5c16.1-38.1 39.2-72.3 68.6-101.7 29.4-29.4 63.6-52.5 101.7-68.6C426.9 212.4 468.8 204 512 204s85.1 8.4 124.5 25.1c38.1 16.1 72.3 39.2 101.7 68.6 29.4 29.4 52.5 63.6 68.6 101.7 16.7 39.4 25.1 81.3 25.1 124.5s-8.4 85.1-25.1 124.5a318.64 318.64 0 01-68.6 101.7c-7.5 7.5-15.3 14.5-23.4 21.2a7.93 7.93 0 00-1.2 11.1l39.4 50.5c2.8 3.5 7.9 4.1 11.4 1.3C854.5 760.8 912 649.1 912 523.9c0-221.1-179.4-400.2-400.6-399.9z"}}]},name:"undo",theme:"outlined"};function aS(){return aS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},aS.apply(this,arguments)}const kX=(e,t)=>l.createElement(gt,aS({},e,{ref:t,icon:FX})),WX=l.forwardRef(kX);var qX={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 720a48 48 0 1096 0 48 48 0 10-96 0zm16-304v184c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V416c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8zm475.7 440l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zm-783.5-27.9L512 239.9l339.8 588.2H172.2z"}}]},name:"warning",theme:"outlined"};function iS(){return iS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},iS.apply(this,arguments)}const YX=(e,t)=>l.createElement(gt,iS({},e,{ref:t,icon:qX})),W3=l.forwardRef(YX),UX=e=>{const{componentCls:t,borderRadius:n,paddingSM:r,colorBorder:i,paddingXS:s,fontSizeLG:c,fontSizeSM:d,borderRadiusLG:f,borderRadiusSM:p,colorBgContainerDisabled:g,lineWidth:h}=e;return{[t]:[{display:"inline-flex",alignItems:"center",gap:0,paddingInline:r,margin:0,borderWidth:h,borderStyle:"solid",borderRadius:n,"&:hover":{zIndex:0},[`&${t}-disabled`]:{color:e.colorTextDisabled},"&-large":{fontSize:c,borderRadius:f},"&-small":{paddingInline:s,borderRadius:p,fontSize:d},"&-compact-last-item":{borderEndStartRadius:0,borderStartStartRadius:0},"&-compact-first-item":{borderEndEndRadius:0,borderStartEndRadius:0},"&-compact-item:not(:first-child):not(:last-child)":{borderRadius:0},"&-compact-item:not(:last-child)":{borderInlineEndWidth:0},"&-compact-item:not(:first-child)":{borderInlineStartWidth:0}},{"--space-addon-border-color":i,"--space-addon-background":g,"--space-addon-border-color-outlined":i,"--space-addon-background-filled":g,borderColor:"var(--space-addon-border-color)",background:"var(--space-addon-background)","&-variant-outlined":{"--space-addon-border-color":"var(--space-addon-border-color-outlined)"},"&-variant-filled":{"--space-addon-border-color":"transparent","--space-addon-background":"var(--space-addon-background-filled)",[`&${t}-disabled`]:{"--space-addon-border-color":i,"--space-addon-background":g}},"&-variant-borderless":{border:"none",background:"transparent"},"&-variant-underlined":{border:"none",background:"transparent"}},{"&-status-error":{"--space-addon-border-color-outlined":e.colorError,"--space-addon-background-filled":e.colorErrorBg,color:e.colorError},"&-status-warning":{"--space-addon-border-color-outlined":e.colorWarning,"--space-addon-background-filled":e.colorWarningBg,color:e.colorWarning}}]}},GX=zt(["Space","Addon"],e=>[UX(e),gd(e,{focus:!1})]),XX=ae.forwardRef((e,t)=>{const{className:n,children:r,style:i,prefixCls:s,variant:c="outlined",disabled:d,status:f,...p}=e,{getPrefixCls:g,direction:h}=ae.useContext(dt),y=g("space-addon",s),[C,b]=GX(y),{compactItemClassnames:x,compactSize:S}=Ra(y,h),$=tl(y,f),M=Q(y,C,x,b,`${y}-variant-${c}`,$,{[`${y}-${S}`]:S,[`${y}-disabled`]:d},n);return ae.createElement("div",{ref:t,className:M,style:i,...p},r)});function KX(e){return!!(e.addonBefore||e.addonAfter)}function QX(e){return!!(e.prefix||e.suffix||e.allowClear)}function p4(e,t,n){const r=t.cloneNode(!0),i=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=n,typeof t.selectionStart=="number"&&typeof t.selectionEnd=="number"&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),r.setSelectionRange=(...s)=>{t.setSelectionRange(...s)},i}function fp(e,t,n,r){if(!n)return;let i=t;if(t.type==="click"){i=p4(t,e,""),n(i);return}if(e.type!=="file"&&r!==void 0){i=p4(t,e,r),n(i);return}n(i)}function lS(){return lS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lS.apply(this,arguments)}const q3=ae.forwardRef((e,t)=>{const{inputElement:n,children:r,prefixCls:i,prefix:s,suffix:c,addonBefore:d,addonAfter:f,className:p,style:g,disabled:h,readOnly:y,focused:C,triggerFocus:b,allowClear:x,value:S,handleReset:$,hidden:M,classes:w,classNames:R,dataAttrs:T,styles:N,components:O,onClear:P}=e,D=r??n,k=O?.affixWrapper||"span",F=O?.groupWrapper||"span",Y=O?.wrapper||"span",G=O?.groupAddon||"span",V=l.useRef(null),B=z=>{V.current?.contains(z.target)&&b?.()},_=QX(e);let H=l.cloneElement(D,{value:S,className:Q(D.props?.className,!_&&R?.variant)||null});const I=l.useRef(null);if(ae.useImperativeHandle(t,()=>({nativeElement:I.current||V.current})),_){let z=null;if(x){const q=!h&&!y&&S,X=`${i}-clear-icon`,K=typeof x=="object"&&x?.clearIcon?x.clearIcon:"✖";z=ae.createElement("button",{type:"button",tabIndex:-1,onClick:J=>{$?.(J),P?.()},onMouseDown:J=>J.preventDefault(),className:Q(X,{[`${X}-hidden`]:!q,[`${X}-has-suffix`]:!!c})},K)}const L=`${i}-affix-wrapper`,A=Q(L,{[`${i}-disabled`]:h,[`${L}-disabled`]:h,[`${L}-focused`]:C,[`${L}-readonly`]:y,[`${L}-input-with-clear-btn`]:c&&x&&S},w?.affixWrapper,R?.affixWrapper,R?.variant),j=(c||x)&&ae.createElement("span",{className:Q(`${i}-suffix`,R?.suffix),style:N?.suffix},z,c);H=ae.createElement(k,lS({className:A,style:N?.affixWrapper,onClick:B},T?.affixWrapper,{ref:V}),s&&ae.createElement("span",{className:Q(`${i}-prefix`,R?.prefix),style:N?.prefix},s),H,j)}if(KX(e)){const z=`${i}-group`,L=`${z}-addon`,A=`${z}-wrapper`,j=Q(`${i}-wrapper`,z,w?.wrapper,R?.wrapper),q=Q(A,{[`${A}-disabled`]:h},w?.group,R?.groupWrapper);H=ae.createElement(F,{className:q,ref:I},ae.createElement(Y,{className:j},d&&ae.createElement(G,{className:L},d),H,f&&ae.createElement(G,{className:L},f)))}return ae.cloneElement(H,{className:Q(H.props?.className,p)||null,style:{...H.props?.style,...g},hidden:M})});function Y3(e,t){return l.useMemo(()=>{let n={};t&&(n.show=typeof t=="object"&&t.formatter?t.formatter:!!t),n={...n,...e};const{show:r,...i}=n;return{...i,show:!!r,showFormatter:typeof r=="function"?r:void 0,strategy:i.strategy||(s=>s.length)}},[e,t])}function mp(){return mp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mp.apply(this,arguments)}const ZX=l.forwardRef((e,t)=>{const{autoComplete:n,onChange:r,onFocus:i,onBlur:s,onPressEnter:c,onKeyDown:d,onKeyUp:f,prefixCls:p="rc-input",disabled:g,htmlSize:h,className:y,maxLength:C,suffix:b,showCount:x,count:S,type:$="text",classes:M,classNames:w,styles:R,onCompositionStart:T,onCompositionEnd:N,...O}=e,[P,D]=l.useState(!1),k=l.useRef(!1),F=l.useRef(!1),Y=l.useRef(null),G=l.useRef(null),V=oe=>{Y.current&&o6(Y.current,oe)},[B,_]=Yt(e.defaultValue,e.value),H=B==null?"":String(B),[I,z]=l.useState(null),L=Y3(S,x),A=L.max||C,j=L.strategy(H),q=!!A&&j>A;l.useImperativeHandle(t,()=>({focus:V,blur:()=>{Y.current?.blur()},setSelectionRange:(oe,se,he)=>{Y.current?.setSelectionRange(oe,se,he)},select:()=>{Y.current?.select()},input:Y.current,nativeElement:G.current?.nativeElement||Y.current})),l.useEffect(()=>{F.current&&(F.current=!1),D(oe=>oe&&g?!1:oe)},[g]);const X=(oe,se,he)=>{let me=se;if(!k.current&&L.exceedFormatter&&L.max&&L.strategy(se)>L.max)me=L.exceedFormatter(se,{max:L.max}),se!==me&&z([Y.current?.selectionStart||0,Y.current?.selectionEnd||0]);else if(he.source==="compositionEnd")return;_(me),Y.current&&fp(Y.current,oe,r,me)};l.useEffect(()=>{I&&Y.current?.setSelectionRange(...I)},[I]);const K=oe=>{X(oe,oe.target.value,{source:"change"})},J=oe=>{k.current=!1,X(oe,oe.currentTarget.value,{source:"compositionEnd"}),N?.(oe)},Z=oe=>{c&&oe.key==="Enter"&&!F.current&&!oe.nativeEvent.isComposing&&(F.current=!0,c(oe)),d?.(oe)},re=oe=>{oe.key==="Enter"&&(F.current=!1),f?.(oe)},ne=oe=>{D(!0),i?.(oe)},ie=oe=>{F.current&&(F.current=!1),D(!1),s?.(oe)},fe=oe=>{_(""),V(),Y.current&&fp(Y.current,oe,r)},le=q&&`${p}-out-of-range`,ue=()=>{const oe=en(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return ae.createElement("input",mp({autoComplete:n},oe,{onChange:K,onFocus:ne,onBlur:ie,onKeyDown:Z,onKeyUp:re,className:Q(p,{[`${p}-disabled`]:g},w?.input),style:R?.input,ref:Y,size:h,type:$,onCompositionStart:se=>{k.current=!0,T?.(se)},onCompositionEnd:J}))},ge=()=>{const oe=Number(A)>0;if(b||L.show){const se=L.showFormatter?L.showFormatter({value:H,count:j,maxLength:A}):`${j}${oe?` / ${A}`:""}`;return ae.createElement(ae.Fragment,null,L.show&&ae.createElement("span",{className:Q(`${p}-show-count-suffix`,{[`${p}-show-count-has-suffix`]:!!b},w?.count),style:{...R?.count}},se),b)}return null};return ae.createElement(q3,mp({},O,{prefixCls:p,className:Q(y,le),handleReset:fe,value:H,focused:P,triggerFocus:V,suffix:ge(),disabled:g,classes:M,classNames:w,styles:R,ref:G}),ue())}),U3=e=>{let t;return typeof e=="object"&&e?.clearIcon?t=e:e&&(t={clearIcon:ae.createElement(zs,null)}),t};function G3(e,t){const n=l.useRef([]),r=()=>{n.current.push(setTimeout(()=>{e.current?.input&&e.current?.input.getAttribute("type")==="password"&&e.current?.input.hasAttribute("value")&&e.current?.input.removeAttribute("value")}))};return l.useEffect(()=>(t&&r(),()=>n.current.forEach(i=>{i&&clearTimeout(i)})),[]),r}function JX(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}const Kp=l.forwardRef((e,t)=>{const{prefixCls:n,bordered:r=!0,status:i,size:s,disabled:c,onBlur:d,onFocus:f,suffix:p,allowClear:g,addonAfter:h,addonBefore:y,className:C,style:b,styles:x,rootClassName:S,onChange:$,classNames:M,variant:w,...R}=e,{getPrefixCls:T,direction:N,allowClear:O,autoComplete:P,className:D,style:k,classNames:F,styles:Y}=Pt("input"),G=T("input",n),V=l.useRef(null),B=lr(G),[_,H]=C3(G,S);$3(G,B);const{compactSize:I,compactItemClassnames:z}=Ra(G,N),L=pr(xe=>s??I??xe),A=ae.useContext(Wr),j=c??A,q={...e,size:L,disabled:j},[X,K]=Vt([F,M],[Y,x],{props:q}),{status:J,hasFeedback:Z,feedbackIcon:re}=l.useContext(Or),ne=Ds(J,i),ie=JX(e)||!!Z;l.useRef(ie);const fe=G3(V,!0),le=xe=>{fe(),d?.(xe)},ue=xe=>{fe(),f?.(xe)},ge=xe=>{fe(),$?.(xe)},oe=(Z||p)&&ae.createElement(ae.Fragment,null,p,Z&&re),se=U3(g??O),[he,me]=js("input",w,r);return ae.createElement(ZX,{ref:ir(t,V),prefixCls:G,autoComplete:P,...R,disabled:j,onBlur:le,onFocus:ue,style:{...K.root,...k,...b},styles:K,suffix:oe,allowClear:se,className:Q(C,S,H,B,z,D,X.root),onChange:ge,addonBefore:y&&ae.createElement(wa,{form:!0,space:!0},y),addonAfter:h&&ae.createElement(wa,{form:!0,space:!0},h),classNames:{...X,input:Q({[`${G}-sm`]:L==="small",[`${G}-lg`]:L==="large",[`${G}-rtl`]:N==="rtl"},X.input,_),variant:Q({[`${G}-${he}`]:me},tl(G,ne)),affixWrapper:Q({[`${G}-affix-wrapper-sm`]:L==="small",[`${G}-affix-wrapper-lg`]:L==="large",[`${G}-affix-wrapper-rtl`]:N==="rtl"},_),wrapper:Q({[`${G}-group-rtl`]:N==="rtl"},_),groupWrapper:Q({[`${G}-group-wrapper-sm`]:L==="small",[`${G}-group-wrapper-lg`]:L==="large",[`${G}-group-wrapper-rtl`]:N==="rtl",[`${G}-group-wrapper-${he}`]:me},tl(`${G}-group-wrapper`,ne,Z),_)}})}),X3=(e,t,n,r,i,s)=>{const{classNames:c,styles:d}=Pt(e),[f,p]=Vt([c,t],[d,n],{props:s},{popup:{_default:"root"}});return l.useMemo(()=>{const g={...f,popup:{...f.popup,root:Q(f.popup?.root,r)}},h={...p,popup:{...p.popup,root:{...p.popup?.root,...i}}};return[g,h]},[f,p,r,i])};function eK(e,t,n){return n!==void 0?n:t==="year"&&e.lang.yearPlaceholder?e.lang.yearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.quarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.monthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.weekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.placeholder:e.lang.placeholder}function tK(e,t,n){return n!==void 0?n:t==="year"&&e.lang.yearPlaceholder?e.lang.rangeYearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.rangeQuarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.rangeMonthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.rangeWeekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.rangePlaceholder:e.lang.rangePlaceholder}function K3(e,t){const{allowClear:n=!0}=e,{clearIcon:r,removeIcon:i}=HO({...e,componentName:"DatePicker"});return[l.useMemo(()=>n===!1?!1:{clearIcon:r,...n===!0?{}:n},[n,r]),i]}const[nK,rK]=["week","WeekPicker"],[oK,aK]=["month","MonthPicker"],[iK,lK]=["year","YearPicker"],[sK,cK]=["quarter","QuarterPicker"],[S1,g4]=["time","TimePicker"],Q3=({picker:e,hasFeedback:t,feedbackIcon:n,suffixIcon:r})=>r===null||r===!1?null:r===!0||r===void 0?ae.createElement(ae.Fragment,null,e===S1?ae.createElement(Ed,null):ae.createElement(H3,null),t&&n):r,uK=e=>l.createElement(Ht,{size:"small",type:"primary",...e});function Z3(e){return l.useMemo(()=>({button:uK,...e}),[e])}const dK=e=>l.forwardRef((n,r)=>{const{prefixCls:i,getPopupContainer:s,components:c,className:d,style:f,classNames:p,styles:g,placement:h,size:y,disabled:C,bordered:b=!0,placeholder:x,status:S,variant:$,picker:M,dropdownClassName:w,popupClassName:R,popupStyle:T,rootClassName:N,suffixIcon:O,...P}=n,D=M===S1?"timePicker":"datePicker",[k,F]=X3(D,p,g,R||w,T),Y=l.useRef(null),{getPrefixCls:G,direction:V,getPopupContainer:B,rangePicker:_}=l.useContext(dt),H=G("picker",i),{compactSize:I,compactItemClassnames:z}=Ra(H,V),L=G(),[A,j]=js("rangePicker",$,b),q=lr(H),[X,K]=M3(H,q),J=Q(X,K,q,N),[Z]=K3(n),re=Z3(c),ne=pr(Ae=>y??I??Ae),ie=l.useContext(Wr),fe=C??ie,le=l.useContext(Or),{hasFeedback:ue,status:ge,feedbackIcon:oe}=le,se=l.createElement(Q3,{picker:M,hasFeedback:ue,feedbackIcon:oe,suffixIcon:O});l.useImperativeHandle(r,()=>Y.current);const[he]=oo("Calendar",xu),me={...he,...n.locale},[xe]=mi("DatePicker",F?.popup?.root?.zIndex);return l.createElement(wa,{space:!0},l.createElement(Sq,{separator:l.createElement("span",{"aria-label":"to",className:`${H}-separator`},l.createElement(VX,null)),disabled:fe,ref:Y,placement:h,placeholder:tK(me,M,x),suffixIcon:se,prevIcon:l.createElement("span",{className:`${H}-prev-icon`}),nextIcon:l.createElement("span",{className:`${H}-next-icon`}),superPrevIcon:l.createElement("span",{className:`${H}-super-prev-icon`}),superNextIcon:l.createElement("span",{className:`${H}-super-next-icon`}),transitionName:`${L}-slide-up`,picker:M,...P,locale:me.lang,getPopupContainer:s||B,generateConfig:e,components:re,direction:V,prefixCls:H,rootClassName:J,className:Q({[`${H}-${ne}`]:ne,[`${H}-${A}`]:j},tl(H,Ds(ge,S),ue),z,d,_?.className),style:{..._?.style,...f},classNames:k,styles:{...F,popup:{...F.popup,root:{...F.popup.root,zIndex:xe}}},allowClear:Z}))}),fK=e=>{const t=(f,p)=>{const g=p===g4?"timePicker":"datePicker";return l.forwardRef((y,C)=>{const{prefixCls:b,getPopupContainer:x,components:S,style:$,className:M,size:w,bordered:R,placement:T,placeholder:N,disabled:O,status:P,variant:D,onCalendarChange:k,classNames:F,styles:Y,dropdownClassName:G,popupClassName:V,popupStyle:B,rootClassName:_,suffixIcon:H,...I}=y,{getPrefixCls:z,direction:L,getPopupContainer:A,[g]:j}=l.useContext(dt),q=z("picker",b),{compactSize:X,compactItemClassnames:K}=Ra(q,L),J=pr(Je=>w??X??Je),Z=l.useContext(Wr),re=O??Z,ne={...y,size:J,disabled:re,status:P,variant:D},[ie,fe]=X3(g,F,Y,V||G,B,ne),le=l.useRef(null),[ue,ge]=js("datePicker",D,R),oe=lr(q),[se,he]=M3(q,oe),me=Q(se,he,oe,_);l.useImperativeHandle(C,()=>le.current);const xe={showToday:!0},Ae=f||y.picker,we=z(),{onSelect:$e,multiple:de}=I,be=$e&&f==="time"&&!de,Me=(Je,We,Xe)=>{k?.(Je,We,Xe),be&&$e(Je)},[Oe,Le]=K3(y),Ge=Z3(S),et=l.useContext(Or),{hasFeedback:ze,status:_e,feedbackIcon:De}=et,Ue=l.createElement(Q3,{picker:Ae,hasFeedback:ze,feedbackIcon:De,suffixIcon:H}),[Ne]=oo("DatePicker",xu),Se={...Ne,...y.locale},[Be]=mi("DatePicker",fe?.popup?.root?.zIndex);return l.createElement(wa,{space:!0},l.createElement(Wq,{ref:le,placeholder:eK(Se,Ae,N),suffixIcon:Ue,placement:T,prevIcon:l.createElement("span",{className:`${q}-prev-icon`}),nextIcon:l.createElement("span",{className:`${q}-next-icon`}),superPrevIcon:l.createElement("span",{className:`${q}-super-prev-icon`}),superNextIcon:l.createElement("span",{className:`${q}-super-next-icon`}),transitionName:`${we}-slide-up`,picker:f,onCalendarChange:Me,...xe,...I,locale:Se.lang,getPopupContainer:x||A,generateConfig:e,components:Ge,direction:L,disabled:re,prefixCls:q,rootClassName:me,className:Q({[`${q}-${J}`]:J,[`${q}-${ue}`]:ge},tl(q,Ds(_e,P),ze),K,j?.className,M),style:{...j?.style,...$},classNames:ie,styles:{...fe,popup:{...fe.popup,root:{...fe.popup.root,zIndex:Be}}},allowClear:Oe,removeIcon:Le}))})},n=t(),r=t(nK,rK),i=t(oK,aK),s=t(iK,lK),c=t(sK,cK),d=t(S1,g4);return{DatePicker:n,WeekPicker:r,MonthPicker:i,YearPicker:s,TimePicker:d,QuarterPicker:c}},J3=e=>{const{DatePicker:t,WeekPicker:n,MonthPicker:r,YearPicker:i,TimePicker:s,QuarterPicker:c}=fK(e),d=dK(e),f=t;return f.WeekPicker=n,f.MonthPicker=r,f.YearPicker=i,f.RangePicker=d,f.TimePicker=s,f.QuarterPicker=c,f},ml=J3(S6),mK=Dp(ml,"popupAlign",void 0,"picker");ml._InternalPanelDoNotUseOrYouWillBeFired=mK;const pK=Dp(ml.RangePicker,"popupAlign",void 0,"picker");ml._InternalRangePanelDoNotUseOrYouWillBeFired=pK;ml.generatePicker=J3;const h4=l.createContext(null),eN=l.createContext({});function sS(){return sS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sS.apply(this,arguments)}const gK=e=>{const{prefixCls:t,className:n,containerRef:r,...i}=e,{panel:s}=l.useContext(eN),c=fi(s,r);return l.createElement("div",sS({className:Q(`${t}-section`,n),role:"dialog",ref:c},In(e,{aria:!0}),{"aria-modal":"true"},i))};function hK(e){const{prefixCls:t,direction:n,className:r,style:i,maxSize:s,containerRef:c,currentSize:d,onResize:f,onResizeEnd:p,onResizeStart:g}=e,[h,y]=l.useState(!1),[C,b]=l.useState(0),[x,S]=l.useState(0),$=n==="left"||n==="right",M=ut(N=>{N.preventDefault(),N.stopPropagation(),y(!0),b($?N.clientX:N.clientY);let O;if(typeof d=="number")O=d;else if(c?.current){const P=c.current.getBoundingClientRect();O=$?P.width:P.height}S(O),g?.(O)}),w=ut(N=>{if(!h)return;let P=($?N.clientX:N.clientY)-C;(n==="right"||n==="bottom")&&(P=-P);let D=x+P;D<0&&(D=0),s&&D>s&&(D=s),f?.(D)}),R=l.useCallback(()=>{if(h&&(y(!1),c?.current)){const N=c.current.getBoundingClientRect(),O=$?N.width:N.height;p?.(O)}},[h,c,p,$]);return l.useEffect(()=>{if(h)return document.addEventListener("mousemove",w),document.addEventListener("mouseup",R),()=>{document.removeEventListener("mousemove",w),document.removeEventListener("mouseup",R)}},[h,w,R]),{dragElementProps:{className:Q(`${t}-dragger`,`${t}-dragger-${n}`,{[`${t}-dragger-dragging`]:h,[`${t}-dragger-horizontal`]:$,[`${t}-dragger-vertical`]:!$},r),style:i,onMouseDown:M},isDragging:h}}function Gy(e){if(typeof e=="string"){const t=Number(e.replace(/px$/i,""));if(parseFloat(e)===t&&rr(!1,"Invalid value type of `width` or `height` which should be number type instead."),!Number.isNaN(t))return t}return e}function hs(){return hs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hs.apply(this,arguments)}const y4={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"},yK=(e,t)=>{const{prefixCls:n,open:r,placement:i,inline:s,push:c,forceRender:d,autoFocus:f,keyboard:p,classNames:g,rootClassName:h,rootStyle:y,zIndex:C,className:b,id:x,style:S,motion:$,width:M,height:w,size:R,maxSize:T,children:N,mask:O,maskClosable:P,maskMotion:D,maskClassName:k,maskStyle:F,afterOpenChange:Y,onClose:G,onMouseEnter:V,onMouseOver:B,onMouseLeave:_,onClick:H,onKeyDown:I,onKeyUp:z,styles:L,drawerRender:A,resizable:j,defaultSize:q}=e,X=l.useRef(null),K=l.useRef(null),J=l.useRef(null);l.useImperativeHandle(t,()=>X.current);const Z=ze=>{const{keyCode:_e,shiftKey:De}=ze;switch(_e){case nt.TAB:{_e===nt.TAB&&(!De&&document.activeElement===J.current?K.current?.focus({preventScroll:!0}):De&&document.activeElement===K.current&&J.current?.focus({preventScroll:!0}));break}case nt.ESC:{G&&p&&(ze.stopPropagation(),G(ze));break}}};l.useEffect(()=>{r&&f&&X.current?.focus({preventScroll:!0})},[r]);const[re,ne]=l.useState(!1),ie=l.useContext(h4);let fe;typeof c=="boolean"?fe=c?{}:{distance:0}:fe=c||{};const le=fe?.distance??ie?.pushDistance??180,ue=l.useMemo(()=>({pushDistance:le,push:()=>{ne(!0)},pull:()=>{ne(!1)}}),[le]);l.useEffect(()=>{r?ie?.push?.():ie?.pull?.()},[r]),l.useEffect(()=>()=>{ie?.pull?.()},[]);const ge=l.createElement(Sr,hs({key:"mask"},D,{visible:O&&r}),({className:ze,style:_e},De)=>l.createElement("div",{className:Q(`${n}-mask`,ze,g?.mask,k),style:{..._e,...F,...L?.mask},onClick:P&&r?G:void 0,ref:De})),oe=typeof $=="function"?$(i):$,[se,he]=l.useState(),me=i==="left"||i==="right",xe=l.useMemo(()=>Gy(R??(me?M:w)??se??q??(me?378:void 0)),[R,M,w,q,me,se]),Ae=l.useMemo(()=>{const ze={};if(re&&le)switch(i){case"top":ze.transform=`translateY(${le}px)`;break;case"bottom":ze.transform=`translateY(${-le}px)`;break;case"left":ze.transform=`translateX(${le}px)`;break;default:ze.transform=`translateX(${-le}px)`;break}return me?ze.width=Gy(xe):ze.height=Gy(xe),ze},[re,le,i,me,xe]),we=l.useRef(null),$e=!!j,de=typeof j=="object"&&j||{},be=ut(ze=>{he(ze),de.onResize?.(ze)}),{dragElementProps:Me,isDragging:Oe}=hK({prefixCls:`${n}-resizable`,direction:i,className:g?.dragger,style:L?.dragger,maxSize:T,containerRef:we,currentSize:xe,onResize:be,onResizeStart:de.onResizeStart,onResizeEnd:de.onResizeEnd}),Le={onMouseEnter:V,onMouseOver:B,onMouseLeave:_,onClick:H,onKeyDown:I,onKeyUp:z},Ge=l.createElement(Sr,hs({key:"panel"},oe,{visible:r,forceRender:d,onVisibleChanged:ze=>{Y?.(ze)},removeOnLeave:!1,leavedClassName:`${n}-content-wrapper-hidden`}),({className:ze,style:_e},De)=>{const Ue=l.createElement(gK,hs({id:x,containerRef:De,prefixCls:n,className:Q(b,g?.section),style:{...S,...L?.section}},In(e,{aria:!0}),Le),N);return l.createElement("div",hs({ref:we,className:Q(`${n}-content-wrapper`,Oe&&`${n}-content-wrapper-dragging`,g?.wrapper,!Oe&&ze),style:{..._e,...Ae,...L?.wrapper}},In(e,{data:!0})),$e&&l.createElement("div",Me),A?A(Ue):Ue)}),et={...y};return C&&(et.zIndex=C),l.createElement(h4.Provider,{value:ue},l.createElement("div",{className:Q(n,`${n}-${i}`,h,{[`${n}-open`]:r,[`${n}-inline`]:s}),style:et,tabIndex:-1,ref:X,onKeyDown:Z},ge,l.createElement("div",{tabIndex:0,ref:K,style:y4,"aria-hidden":"true","data-sentinel":"start"}),Ge,l.createElement("div",{tabIndex:0,ref:J,style:y4,"aria-hidden":"true","data-sentinel":"end"})))},bK=l.forwardRef(yK),vK=e=>{const{open:t=!1,prefixCls:n="rc-drawer",placement:r="right",autoFocus:i=!0,keyboard:s=!0,width:c,height:d,size:f,maxSize:p,mask:g=!0,maskClosable:h=!0,getContainer:y,forceRender:C,afterOpenChange:b,destroyOnHidden:x,onMouseEnter:S,onMouseOver:$,onMouseLeave:M,onClick:w,onKeyDown:R,onKeyUp:T,resizable:N,defaultSize:O,panelRef:P}=e,[D,k]=l.useState(!1),[F,Y]=l.useState(!1);It(()=>{Y(!0)},[]);const G=F?t:!1,V=l.useRef(null),B=l.useRef(null);It(()=>{G&&(B.current=document.activeElement)},[G]);const _=L=>{k(L),b?.(L),!L&&B.current&&!V.current?.contains(B.current)&&B.current?.focus({preventScroll:!0})},H=l.useMemo(()=>({panel:P}),[P]);if(!C&&!D&&!G&&x)return null;const z={...e,open:G,prefixCls:n,placement:r,autoFocus:i,keyboard:s,width:c,height:d,size:f,maxSize:p,defaultSize:O,mask:g,maskClosable:h,inline:y===!1,afterOpenChange:_,ref:V,resizable:N,...{onMouseEnter:S,onMouseOver:$,onMouseLeave:M,onClick:w,onKeyDown:R,onKeyUp:T}};return l.createElement(eN.Provider,{value:H},l.createElement(cd,{open:G||C||D,autoDestroy:!1,getContainer:y,autoLock:g&&(G||D)},l.createElement(bK,z)))},tN=e=>{const{prefixCls:t,ariaId:n,title:r,footer:i,extra:s,closable:c,loading:d,onClose:f,headerStyle:p,bodyStyle:g,footerStyle:h,children:y,classNames:C,styles:b}=e,x=Pt("drawer"),{classNames:S,styles:$,closable:M}=x,[w,R]=Vt([S,C],[$,b],{props:{...e,closable:c??M}}),T=l.useMemo(()=>{const F=c??M;if(F!==!1)return typeof F=="object"&&F&&F.placement==="end"?"end":"start"},[c,M]),N=l.useCallback(F=>l.createElement("button",{type:"button",onClick:f,className:Q(`${t}-close`,{[`${t}-close-${T}`]:T==="end"},w.close),style:R.close},F),[f,t,T,w.close,R.close]),[O,P]=zS($s(e),$s(x),{closable:!0,closeIconRender:N}),D=()=>!r&&!O?null:l.createElement("div",{style:{...R.header,...p},className:Q(`${t}-header`,w.header,{[`${t}-header-close-only`]:O&&!r&&!s})},l.createElement("div",{className:`${t}-header-title`},T==="start"&&P,r&&l.createElement("div",{className:Q(`${t}-title`,w.title),style:R.title,id:n},r)),s&&l.createElement("div",{className:Q(`${t}-extra`,w.extra),style:R.extra},s),T==="end"&&P),k=()=>i?l.createElement("div",{className:Q(`${t}-footer`,w.footer),style:{...R.footer,...h}},i):null;return l.createElement(l.Fragment,null,D(),l.createElement("div",{className:Q(`${t}-body`,w.body),style:{...R.body,...g}},d?l.createElement(pi,{active:!0,title:!1,paragraph:{rows:5},className:`${t}-body-skeleton`}):y),k())},SK=e=>{const t="100%";return{left:`translateX(-${t})`,right:`translateX(${t})`,top:`translateY(-${t})`,bottom:`translateY(${t})`}[e]},nN=(e,t)=>({"&-enter, &-appear":{...e,"&-active":t},"&-leave":{...t,"&-active":e}}),rN=(e,t)=>({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${t}`}},...nN({opacity:e},{opacity:1})}),CK=(e,t)=>[rN(.7,t),nN({transform:SK(e)},{transform:"none"})],$K=e=>{const{componentCls:t,motionDurationSlow:n}=e;return{[t]:{[`${t}-mask-motion`]:rN(0,n),[`${t}-panel-motion`]:["left","right","top","bottom"].reduce((r,i)=>({...r,[`&-${i}`]:CK(i,n)}),{})}}},xK=e=>{const{borderRadiusSM:t,componentCls:n,zIndexPopup:r,colorBgMask:i,colorBgElevated:s,motionDurationSlow:c,motionDurationMid:d,paddingXS:f,padding:p,paddingLG:g,fontSizeLG:h,lineHeightLG:y,lineWidth:C,lineType:b,colorSplit:x,marginXS:S,colorIcon:$,colorIconHover:M,colorBgTextHover:w,colorBgTextActive:R,colorText:T,fontWeightStrong:N,footerPaddingBlock:O,footerPaddingInline:P,draggerSize:D,calc:k}=e,F=`${n}-content-wrapper`,Y=`${n}-resizable-dragger`;return{[n]:{position:"fixed",inset:0,zIndex:r,pointerEvents:"none",color:T,"&-pure":{position:"relative",background:s,display:"flex",flexDirection:"column",pointerEvents:"auto",[`&${n}-left`]:{boxShadow:e.boxShadowDrawerLeft},[`&${n}-right`]:{boxShadow:e.boxShadowDrawerRight},[`&${n}-top`]:{boxShadow:e.boxShadowDrawerUp},[`&${n}-bottom`]:{boxShadow:e.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${n}-mask`]:{position:"absolute",inset:0,zIndex:r,background:i,pointerEvents:"auto",[`&${n}-mask-blur`]:{backdropFilter:"blur(4px)"}},[F]:{position:"absolute",zIndex:r,maxWidth:"100vw",transition:`all ${c}`,"&-hidden":{display:"none"}},[`&-left > ${F}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${F}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${F}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${F}`]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},[`${n}-section`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:s,pointerEvents:"auto"},[`${n}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${te(p)} ${te(g)}`,fontSize:h,lineHeight:y,borderBottom:`${te(C)} ${b} ${x}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${n}-extra`]:{flex:"none"},[`${n}-close`]:{display:"inline-flex",width:k(h).add(f).equal(),height:k(h).add(f).equal(),borderRadius:t,justifyContent:"center",alignItems:"center",color:$,fontWeight:N,fontSize:h,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${d}`,textRendering:"auto",[`&${n}-close-end`]:{marginInlineStart:S},[`&:not(${n}-close-end)`]:{marginInlineEnd:S},"&:hover":{color:M,backgroundColor:w,textDecoration:"none"},"&:active":{backgroundColor:R},...xo(e)},[`${n}-title`]:{flex:1,margin:0,fontWeight:e.fontWeightStrong,fontSize:h,lineHeight:y},[`${n}-body`]:{flex:1,minWidth:0,minHeight:0,padding:g,overflow:"auto",[`${n}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[`${n}-footer`]:{flexShrink:0,padding:`${te(O)} ${te(P)}`,borderTop:`${te(C)} ${b} ${x}`},[Y]:{position:"absolute",zIndex:1,backgroundColor:"transparent",userSelect:"none",pointerEvents:"auto","&:hover":{backgroundColor:e.colorPrimary,opacity:.2},"&-dragging":{backgroundColor:e.colorPrimary,opacity:.3}},[`${Y}-left`]:{top:0,bottom:0,insetInlineEnd:0,width:D,cursor:"col-resize"},[`${Y}-right`]:{top:0,bottom:0,insetInlineStart:0,width:D,cursor:"col-resize"},[`${Y}-top`]:{insetInline:0,bottom:0,height:D,cursor:"row-resize"},[`${Y}-bottom`]:{insetInline:0,top:0,height:D,cursor:"row-resize"},[`${F}-dragging`]:{userSelect:"none",transition:"none",willChange:"width, height",[`${n}-content`]:{pointerEvents:"none"},[`${n}-section`]:{pointerEvents:"none"}},"&-rtl":{direction:"rtl"}}}},wK=e=>({zIndexPopup:e.zIndexPopupBase,footerPaddingBlock:e.paddingXS,footerPaddingInline:e.padding,draggerSize:4}),oN=zt("Drawer",e=>{const t=Nt(e,{});return[xK(t),$K(t)]},wK),EK={distance:180},b4=378,aN=e=>{const{rootClassName:t,size:n,defaultSize:r=b4,height:i,width:s,mask:c,push:d=EK,open:f,afterOpenChange:p,onClose:g,prefixCls:h,getContainer:y,panelRef:C=null,style:b,className:x,resizable:S,"aria-labelledby":$,maskStyle:M,drawerStyle:w,contentWrapperStyle:R,destroyOnClose:T,destroyOnHidden:N,...O}=e,{placement:P}=O,D=Qo(),k=O.title?D:void 0,{getPopupContainer:F,getPrefixCls:Y,direction:G,className:V,style:B,classNames:_,styles:H,mask:I}=Pt("drawer"),z=Y("drawer",h),[L,A]=oN(z),j=y===void 0&&F?()=>F(document.body):y,q=l.useMemo(()=>typeof n=="number"?n:n==="large"?736:n==="default"?b4:!P||P==="left"||P==="right"?s:i,[n,P,s,i]),X={motionName:Xo(z,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},K=xe=>({motionName:Xo(z,`panel-motion-${xe}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),J=nO(),Z=ir(C,J),[re,ne]=mi("Drawer",O.zIndex),{classNames:ie,styles:fe,rootStyle:le}=O,[ue,ge]=sT(c,I,z),oe={...e,zIndex:re,panelRef:C,mask:ue,defaultSize:r,push:d},[se,he]=Vt([_,ie],[H,fe],{props:oe}),me=Q({"no-mask":!ue,[`${z}-rtl`]:G==="rtl"},t,L,A,se.root);return l.createElement(wa,{form:!0,space:!0},l.createElement(sd.Provider,{value:ne},l.createElement(vK,{prefixCls:z,onClose:g,maskMotion:X,motion:K,...O,classNames:{mask:Q(se.mask,ge.mask),section:se.section,wrapper:se.wrapper,dragger:se.dragger},styles:{mask:{...he.mask,...M},section:{...he.section,...w},wrapper:{...he.wrapper,...R},dragger:he.dragger},open:f,mask:ue,push:d,size:q,defaultSize:r,style:{...B,...b},rootStyle:{...le,...he.root},className:Q(V,x),rootClassName:me,getContainer:j,afterOpenChange:p,panelRef:Z,zIndex:re,...S?{resizable:S}:{},"aria-labelledby":$??k,destroyOnHidden:N??T},l.createElement(tN,{prefixCls:z,size:n,...O,ariaId:k,onClose:g}))))},MK=e=>{const{prefixCls:t,style:n,className:r,placement:i="right",...s}=e,{getPrefixCls:c}=l.useContext(dt),d=c("drawer",t),[f,p]=oN(d),g=Q(d,`${d}-pure`,`${d}-${i}`,f,p,r);return l.createElement("div",{className:g,style:n},l.createElement(tN,{prefixCls:d,...s}))};aN._InternalPanelDoNotUseOrYouWillBeFired=MK;function v4(e){return["small","middle","large"].includes(e)}function S4(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const iN=ae.createContext({latestIndex:0}),RK=iN.Provider,TK=e=>{const{className:t,prefix:n,index:r,children:i,separator:s,style:c,classNames:d,styles:f}=e,{latestIndex:p}=l.useContext(iN);return Rr(i)?l.createElement(l.Fragment,null,l.createElement("div",{className:t,style:c},i),r<p&&s&&l.createElement("span",{className:Q(`${n}-item-separator`,d.separator),style:f.separator},s)):null},OK=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"}}}},NK=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}}}},IK=zt("Space",e=>{const t=Nt(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[OK(t),NK(t)]},()=>({}),{resetStyle:!1}),PK=l.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r,size:i,className:s,style:c,classNames:d,styles:f}=Pt("space"),{size:p=i??"small",align:g,className:h,rootClassName:y,children:C,direction:b,orientation:x,prefixCls:S,split:$,separator:M,style:w,vertical:R,wrap:T=!1,classNames:N,styles:O,...P}=e,[D,k]=Array.isArray(p)?p:[p,p],F=v4(k),Y=v4(D),G=S4(k),V=S4(D),B=mr(C,{keepEmpty:!0}),[_,H]=ld(x,R,b),I=g===void 0&&!H?"center":g,z=M??$,L=n("space",S),[A,j]=IK(L),q={...e,size:p,orientation:_,align:I},[X,K]=Vt([d,N],[f,O],{props:q}),J=Q(L,s,A,`${L}-${_}`,{[`${L}-rtl`]:r==="rtl",[`${L}-align-${I}`]:I,[`${L}-gap-row-${k}`]:F,[`${L}-gap-col-${D}`]:Y},h,y,j,X.root),Z=Q(`${L}-item`,X.item),re=B.map((fe,le)=>{const ue=fe?.key||`${Z}-${le}`;return l.createElement(TK,{prefix:L,classNames:X,styles:K,className:Z,key:ue,index:le,separator:z,style:K.item},fe)}),ne=l.useMemo(()=>({latestIndex:B.reduce((le,ue,ge)=>Rr(ue)?ge:le,0)}),[B]);if(B.length===0)return null;const ie={};return T&&(ie.flexWrap="wrap"),!Y&&V&&(ie.columnGap=D),!F&&G&&(ie.rowGap=k),l.createElement("div",{ref:t,className:J,style:{...ie,...K.root,...c,...w},...P},l.createElement(RK,{value:ne},re))}),un=PK;un.Compact=HT;un.Addon=XX;const lN=e=>{const{getPopupContainer:t,getPrefixCls:n,direction:r}=l.useContext(dt),{prefixCls:i,type:s="default",danger:c,disabled:d,loading:f,onClick:p,htmlType:g,children:h,className:y,menu:C,arrow:b,autoFocus:x,trigger:S,align:$,open:M,onOpenChange:w,placement:R,getPopupContainer:T,href:N,icon:O=l.createElement(r1,null),title:P,buttonsRender:D=ie=>ie,mouseEnterDelay:k,mouseLeaveDelay:F,overlayClassName:Y,overlayStyle:G,destroyOnHidden:V,destroyPopupOnHide:B,dropdownRender:_,popupRender:H,...I}=e,z=n("dropdown",i),L=`${z}-button`,j={menu:C,arrow:b,autoFocus:x,align:$,disabled:d,trigger:d?[]:S,onOpenChange:w,getPopupContainer:T||t,mouseEnterDelay:k,mouseLeaveDelay:F,classNames:{root:Y},styles:{root:G},destroyOnHidden:V,popupRender:H||_},{compactSize:q,compactItemClassnames:X}=Ra(z,r),K=Q(L,X,y);"destroyPopupOnHide"in e&&(j.destroyPopupOnHide=B),"open"in e&&(j.open=M),"placement"in e?j.placement=R:j.placement=r==="rtl"?"bottomLeft":"bottomRight";const J=l.createElement(Ht,{type:s,danger:c,disabled:d,loading:f,onClick:p,htmlType:g,href:N,title:P},h),Z=l.createElement(Ht,{type:s,danger:c,icon:O}),[re,ne]=D([J,Z]);return l.createElement(un.Compact,{className:K,size:q,block:!0,...I},re,l.createElement(kp,{...j},ne))};lN.__ANT_BUTTON=!0;const C1=kp;C1.Button=lN;const zK=e=>{const{getPrefixCls:t,direction:n}=l.useContext(dt),{prefixCls:r,className:i}=e,s=t("input-group",r),c=t("input"),[d,f]=$3(c),p=Q(s,f,{[`${s}-lg`]:e.size==="large",[`${s}-sm`]:e.size==="small",[`${s}-compact`]:e.compact,[`${s}-rtl`]:n==="rtl"},d,i),g=l.useContext(Or),h=l.useMemo(()=>({...g,isFormItemInput:!1}),[g]);return l.createElement(Or.Provider,{value:h},l.createElement(un.Compact,{className:p,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},e.children))},AK=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:e.colorText},[`${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}}}},DK=zt(["Input","OTP"],e=>{const t=Nt(e,Vs(e));return AK(t)},Fs),jK=l.forwardRef((e,t)=>{const{className:n,value:r,onChange:i,onActiveChange:s,index:c,mask:d,onFocus:f,...p}=e,{getPrefixCls:g}=l.useContext(dt),h=g("otp"),y=typeof d=="string"?d:r,C=l.useRef(null);l.useImperativeHandle(t,()=>C.current);const b=M=>{i(c,M.target.value)},x=()=>{Bt(()=>{const M=C.current?.input;document.activeElement===M&&M&&M.select()})},S=M=>{f?.(M),x()},$=M=>{const{key:w,ctrlKey:R,metaKey:T}=M;w==="ArrowLeft"?s(c-1):w==="ArrowRight"?s(c+1):w==="z"&&(R||T)?M.preventDefault():w==="Backspace"&&!r&&s(c-1),x()};return l.createElement("span",{className:`${h}-input-wrapper`,role:"presentation"},d&&r!==""&&r!==void 0&&l.createElement("span",{className:`${h}-mask-icon`,"aria-hidden":"true"},y),l.createElement(Kp,{"aria-label":`OTP Input ${c+1}`,type:d===!0?"password":"text",...p,ref:C,value:r,onInput:b,onFocus:S,onKeyDown:$,onMouseDown:x,onMouseUp:x,className:Q(n,{[`${h}-mask-input`]:d})}))});function am(e){return(e||"").split("")}const _K=e=>{const{index:t,prefixCls:n,separator:r,className:i,style:s}=e,c=typeof r=="function"?r(t):r;return c?l.createElement("span",{className:Q(`${n}-separator`,i),style:s},c):null},HK=l.forwardRef((e,t)=>{const{prefixCls:n,length:r=6,size:i,defaultValue:s,value:c,onChange:d,formatter:f,separator:p,variant:g,disabled:h,status:y,autoFocus:C,mask:b,type:x,onInput:S,onFocus:$,inputMode:M,classNames:w,styles:R,className:T,style:N,...O}=e,{classNames:P,styles:D,getPrefixCls:k,direction:F,style:Y,className:G}=Pt("otp"),V=k("otp",n),B={...e,length:r},[_,H]=Vt([P,w],[D,R],{props:B}),I=In(O,{aria:!0,data:!0,attr:!0}),[z,L]=DK(V),A=pr(se=>i??se),j=l.useContext(Or),q=Ds(j.status,y),X=l.useMemo(()=>({...j,status:q,hasFeedback:!1,feedbackIcon:null}),[j,q]),K=l.useRef(null),J=l.useRef({});l.useImperativeHandle(t,()=>({focus:()=>{J.current[0]?.focus()},blur:()=>{for(let se=0;se<r;se+=1)J.current[se]?.blur()},nativeElement:K.current}));const Z=se=>f?f(se):se,[re,ne]=l.useState(()=>am(Z(s||"")));l.useEffect(()=>{c!==void 0&&ne(am(c))},[c]);const ie=ut(se=>{ne(se),S&&S(se),d&&se.length===r&&se.every(he=>he)&&se.some((he,me)=>re[me]!==he)&&d(se.join(""))}),fe=ut((se,he)=>{let me=$n(re);for(let Ae=0;Ae<se;Ae+=1)me[Ae]||(me[Ae]="");he.length<=1?me[se]=he:me=me.slice(0,se).concat(am(he)),me=me.slice(0,r);for(let Ae=me.length-1;Ae>=0&&!me[Ae];Ae-=1)me.pop();const xe=Z(me.map(Ae=>Ae||" ").join(""));return me=am(xe).map((Ae,we)=>Ae===" "&&!me[we]?me[we]:Ae),me}),le=(se,he)=>{const me=fe(se,he),xe=Math.min(se+he.length,r-1);xe!==se&&me[se]!==void 0&&J.current[xe]?.focus(),ie(me)},ue=se=>{J.current[se]?.focus()},ge=(se,he)=>{for(let me=0;me<he;me+=1)if(!J.current[me]?.input?.value){J.current[me]?.focus();break}$?.(se)},oe={variant:g,disabled:h,status:q,mask:b,type:x,inputMode:M};return l.createElement("div",{...I,ref:K,className:Q(T,V,{[`${V}-sm`]:A==="small",[`${V}-lg`]:A==="large",[`${V}-rtl`]:F==="rtl"},L,z,G,_.root),style:{...H.root,...Y,...N},role:"group"},l.createElement(Or.Provider,{value:X},Array.from({length:r}).map((se,he)=>{const me=`otp-${he}`,xe=re[he]||"";return l.createElement(l.Fragment,{key:me},l.createElement(jK,{ref:Ae=>{J.current[he]=Ae},index:he,size:A,htmlSize:1,className:Q(_.input,`${V}-input`),style:H.input,onChange:le,value:xe,onActiveChange:ue,autoFocus:he===0&&C,onFocus:Ae=>ge(Ae,he),...oe}),he<r-1&&l.createElement(_K,{separator:p,index:he,prefixCls:V,className:Q(_.separator),style:H.separator}))})))}),BK=e=>e?l.createElement(XG,null):l.createElement(YG,null),LK={click:"onClick",hover:"onMouseOver"},VK=l.forwardRef((e,t)=>{const{disabled:n,action:r="click",visibilityToggle:i=!0,iconRender:s=BK,suffix:c}=e,d=l.useContext(Wr),f=n??d,p=typeof i=="object"&&i.visible!==void 0,[g,h]=l.useState(()=>p?i.visible:!1),y=l.useRef(null);l.useEffect(()=>{p&&h(i.visible)},[p,i]);const C=G3(y),b=()=>{if(f)return;g&&C();const F=!g;h(F),typeof i=="object"&&i.onVisibleChange?.(F)},x=F=>{const Y=LK[r]||"",G=s(g),V={[Y]:b,className:`${F}-icon`,key:"passwordIcon",onMouseDown:B=>{B.preventDefault()},onMouseUp:B=>{B.preventDefault()}};return l.cloneElement(l.isValidElement(G)?G:l.createElement("span",null,G),V)},{className:S,prefixCls:$,inputPrefixCls:M,size:w,...R}=e,{getPrefixCls:T}=l.useContext(dt),N=T("input",M),O=T("input-password",$),P=i&&x(O),D=Q(O,S,{[`${O}-${w}`]:!!w}),k={...en(R,["suffix","iconRender","visibilityToggle"]),type:g?"text":"password",className:D,prefixCls:N,suffix:l.createElement(l.Fragment,null,P,c)};return w&&(k.size=w),l.createElement(Kp,{ref:ir(t,y),...k})}),FK=e=>{const{componentCls:t}=e,n=`${t}-btn`;return{[t]:{width:"100%",[n]:{"&-filled":{background:e.colorFillTertiary,"&:not(:disabled)":{"&:hover":{background:e.colorFillSecondary},"&:active":{background:e.colorFill}}}}}}},kK=zt(["Input","Search"],e=>[FK(e)]),WK=l.forwardRef((e,t)=>{const{prefixCls:n,inputPrefixCls:r,className:i,size:s,style:c,enterButton:d=!1,addonAfter:f,loading:p,disabled:g,onSearch:h,onChange:y,onCompositionStart:C,onCompositionEnd:b,variant:x,onPressEnter:S,classNames:$,styles:M,hidden:w,...R}=e,{direction:T,getPrefixCls:N,classNames:O,styles:P}=Pt("inputSearch"),D={...e,enterButton:d},[k,F]=Vt([O,$],[P,M],{props:D},{button:{_default:"root"}}),Y=l.useRef(!1),G=N("input-search",n),V=N("input",r),[B,_]=kK(G),{compactSize:H}=Ra(G,T),I=pr(oe=>s??H??oe),z=l.useRef(null),L=oe=>{oe?.target&&oe.type==="click"&&h&&h(oe.target.value,oe,{source:"clear"}),y?.(oe)},A=oe=>{document.activeElement===z.current?.input&&oe.preventDefault()},j=oe=>{h&&h(z.current?.input?.value,oe,{source:"input"})},q=oe=>{Y.current||p||(S?.(oe),j(oe))},X=typeof d=="boolean"?l.createElement(_O,null):null,K=`${G}-btn`,J=Q(K,{[`${K}-${x}`]:x});let Z;const re=d||{},ne=re.type&&re.type.__ANT_BUTTON===!0;ne||re.type==="button"?Z=or(re,{onMouseDown:A,onClick:oe=>{re?.props?.onClick?.(oe),j(oe)},key:"enterButton",...ne?{className:J,size:I}:{}}):Z=l.createElement(Ht,{classNames:k.button,styles:F.button,className:J,color:d?"primary":"default",size:I,disabled:g,key:"enterButton",onMouseDown:A,onClick:j,loading:p,icon:X,variant:x==="borderless"||x==="filled"||x==="underlined"?"text":d?"solid":void 0},d),f&&(Z=[Z,or(f,{key:"addonAfter"})]);const ie=Q(G,_,{[`${G}-rtl`]:T==="rtl",[`${G}-${I}`]:!!I,[`${G}-with-button`]:!!d},i,B,k.root),fe=oe=>{Y.current=!0,C?.(oe)},le=oe=>{Y.current=!1,b?.(oe)},ue=In(R,{data:!0}),ge=en({...R,classNames:en(k,["button","root"]),styles:en(F,["button","root"]),prefixCls:V,type:"search",size:I,variant:x,onPressEnter:q,onCompositionStart:fe,onCompositionEnd:le,onChange:L,disabled:g},Object.keys(ue));return l.createElement(HT,{className:ie,style:{...c,...F.root},...ue,hidden:w},l.createElement(Kp,{ref:ir(z,t),...ge}),Z)}),qK=`
307
+ min-height:0 !important;
308
+ max-height:none !important;
309
+ height:0 !important;
310
+ visibility:hidden !important;
311
+ overflow:hidden !important;
312
+ position:absolute !important;
313
+ z-index:-1000 !important;
314
+ top:0 !important;
315
+ right:0 !important;
316
+ pointer-events: none !important;
317
+ `,YK=["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"],Xy={};let no;function UK(e,t=!1){const n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&Xy[n])return Xy[n];const r=window.getComputedStyle(e),i=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),s=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),c=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),f={sizingStyle:YK.map(p=>`${p}:${r.getPropertyValue(p)}`).join(";"),paddingSize:s,borderSize:c,boxSizing:i};return t&&n&&(Xy[n]=f),f}function GK(e,t=!1,n=null,r=null){no||(no=document.createElement("textarea"),no.setAttribute("tab-index","-1"),no.setAttribute("aria-hidden","true"),no.setAttribute("name","hiddenTextarea"),document.body.appendChild(no)),e.getAttribute("wrap")?no.setAttribute("wrap",e.getAttribute("wrap")):no.removeAttribute("wrap");const{paddingSize:i,borderSize:s,boxSizing:c,sizingStyle:d}=UK(e,t);no.setAttribute("style",`${d};${qK}`),no.value=e.value||e.placeholder||"";let f,p,g,h=no.scrollHeight;if(c==="border-box"?h+=s:c==="content-box"&&(h-=i),n!==null||r!==null){no.value=" ";const C=no.scrollHeight-i;n!==null&&(f=C*n,c==="border-box"&&(f=f+i+s),h=Math.max(f,h)),r!==null&&(p=C*r,c==="border-box"&&(p=p+i+s),g=h>p?"":"hidden",h=Math.min(p,h))}const y={height:h,overflowY:g,resize:"none"};return f&&(y.minHeight=f),p&&(y.maxHeight=p),y}function cS(){return cS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cS.apply(this,arguments)}const Ky=0,Qy=1,Zy=2,XK=l.forwardRef((e,t)=>{const{prefixCls:n,defaultValue:r,value:i,autoSize:s,onResize:c,className:d,style:f,disabled:p,onChange:g,onInternalAutoSize:h,...y}=e,[C,b]=Yt(r,i),x=C??"",S=B=>{b(B.target.value),g?.(B)},$=l.useRef();l.useImperativeHandle(t,()=>({textArea:$.current}));const[M,w]=l.useMemo(()=>s&&typeof s=="object"?[s.minRows,s.maxRows]:[],[s]),R=!!s,[T,N]=l.useState(Zy),[O,P]=l.useState(),D=()=>{N(Ky)};It(()=>{R&&D()},[i,M,w,R]),It(()=>{if(T===Ky)N(Qy);else if(T===Qy){const B=GK($.current,!1,M,w);N(Zy),P(B)}},[T]);const k=l.useRef(),F=()=>{Bt.cancel(k.current)},Y=B=>{T===Zy&&(c?.(B),s&&(F(),k.current=Bt(()=>{D()})))};l.useEffect(()=>F,[]);const V={...f,...R?O:null};return(T===Ky||T===Qy)&&(V.overflowY="hidden",V.overflowX="hidden"),l.createElement(Fr,{onResize:Y,disabled:!(s||c)},l.createElement("textarea",cS({},y,{ref:$,style:V,className:Q(n,d,{[`${n}-disabled`]:p}),disabled:p,value:x,onChange:S})))});function uS(){return uS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},uS.apply(this,arguments)}const KK=ae.forwardRef(({defaultValue:e,value:t,onFocus:n,onBlur:r,onChange:i,allowClear:s,maxLength:c,onCompositionStart:d,onCompositionEnd:f,suffix:p,prefixCls:g="rc-textarea",showCount:h,count:y,className:C,style:b,disabled:x,hidden:S,classNames:$,styles:M,onResize:w,onClear:R,onPressEnter:T,readOnly:N,autoSize:O,onKeyDown:P,...D},k)=>{const[F,Y]=Yt(e,t),G=F==null?"":String(F),[V,B]=ae.useState(!1),_=ae.useRef(!1),[H,I]=ae.useState(null),z=l.useRef(null),L=l.useRef(null),A=()=>L.current?.textArea,j=()=>{A().focus()};l.useImperativeHandle(k,()=>({resizableTextArea:L.current,focus:j,blur:()=>{A().blur()},nativeElement:z.current?.nativeElement||A()})),l.useEffect(()=>{B($e=>!x&&$e)},[x]);const[q,X]=ae.useState(null);ae.useEffect(()=>{q&&A().setSelectionRange(...q)},[q]);const K=Y3(y,h),J=K.max??c,Z=Number(J)>0,re=K.strategy(G),ne=!!J&&re>J,ie=($e,de)=>{let be=de;!_.current&&K.exceedFormatter&&K.max&&K.strategy(de)>K.max&&(be=K.exceedFormatter(de,{max:K.max}),de!==be&&X([A().selectionStart||0,A().selectionEnd||0])),Y(be),fp($e.currentTarget,$e,i,be)},fe=$e=>{_.current=!0,d?.($e)},le=$e=>{_.current=!1,ie($e,$e.currentTarget.value),f?.($e)},ue=$e=>{ie($e,$e.target.value)},ge=$e=>{$e.key==="Enter"&&T&&!$e.nativeEvent.isComposing&&T($e),P?.($e)},oe=$e=>{B(!0),n?.($e)},se=$e=>{B(!1),r?.($e)},he=$e=>{Y(""),j(),fp(A(),$e,i)};let me=p,xe;K.show&&(K.showFormatter?xe=K.showFormatter({value:G,count:re,maxLength:J}):xe=`${re}${Z?` / ${J}`:""}`,me=ae.createElement(ae.Fragment,null,me,ae.createElement("span",{className:Q(`${g}-data-count`,$?.count),style:M?.count},xe)));const Ae=$e=>{w?.($e),A()?.style.height&&I(!0)},we=!O&&!h&&!s;return ae.createElement(q3,{ref:z,value:G,allowClear:s,handleReset:he,suffix:me,prefixCls:g,classNames:{...$,affixWrapper:Q($?.affixWrapper,{[`${g}-show-count`]:h,[`${g}-textarea-allow-clear`]:s})},disabled:x,focused:V,className:Q(C,ne&&`${g}-out-of-range`),style:{...b,...H&&!we?{height:"auto"}:{}},dataAttrs:{affixWrapper:{"data-count":typeof xe=="string"?xe:void 0}},hidden:S,readOnly:N,onClear:R},ae.createElement(XK,uS({},D,{autoSize:O,maxLength:c,onKeyDown:ge,onChange:ue,onFocus:oe,onBlur:se,onCompositionStart:fe,onCompositionEnd:le,className:Q($?.textarea),style:{resize:b?.resize,...M?.textarea},disabled:x,prefixCls:g,onResize:Ae,ref:L,readOnly:N})))}),QK=e=>{const{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[`textarea${t}`]:{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}`,resize:"vertical",[`&${t}-mouse-active`]:{transition:`all ${e.motionDurationSlow}, height 0s, width 0s`}},[`${t}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[r]:{position:"relative","&-show-count":{[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
318
+ &-allow-clear > ${t},
319
+ &-affix-wrapper${r}-has-feedback ${t}
320
+ `]:{paddingInlineEnd:n},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-rtl`]:{[`${t}-suffix`]:{[`${t}-data-count`]:{direction:"ltr",insetInlineStart:0}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},ZK=zt(["Input","TextArea"],e=>{const t=Nt(e,Vs(e));return QK(t)},Fs,{resetFont:!1}),sN=l.forwardRef((e,t)=>{const{prefixCls:n,bordered:r=!0,size:i,disabled:s,status:c,allowClear:d,classNames:f,rootClassName:p,className:g,style:h,styles:y,variant:C,showCount:b,onMouseDown:x,onResize:S,...$}=e,{getPrefixCls:M,direction:w,allowClear:R,autoComplete:T,className:N,style:O,classNames:P,styles:D}=Pt("textArea"),k=l.useContext(Wr),F=s??k,{status:Y,hasFeedback:G,feedbackIcon:V}=l.useContext(Or),B=Ds(Y,c),[_,H]=Vt([P,f],[D,y],{props:e}),I=l.useRef(null);l.useImperativeHandle(t,()=>({resizableTextArea:I.current?.resizableTextArea,focus:oe=>{o6(I.current?.resizableTextArea?.textArea,oe)},blur:()=>I.current?.blur()}));const z=M("input",n),L=lr(z),[A,j]=C3(z,p);ZK(z,L);const{compactSize:q,compactItemClassnames:X}=Ra(z,w),K=pr(oe=>i??q??oe),[J,Z]=js("textArea",C,r),re=U3(d??R),[ne,ie]=l.useState(!1),[fe,le]=l.useState(!1),ue=oe=>{ie(!0),x?.(oe);const se=()=>{ie(!1),document.removeEventListener("mouseup",se)};document.addEventListener("mouseup",se)},ge=oe=>{if(S?.(oe),ne&&typeof getComputedStyle=="function"){const se=I.current?.nativeElement?.querySelector("textarea");se&&getComputedStyle(se).resize==="both"&&le(!0)}};return l.createElement(KK,{autoComplete:T,...$,style:{...H.root,...O,...h},styles:H,disabled:F,allowClear:re,className:Q(j,L,g,p,X,N,_.root,{[`${z}-textarea-affix-wrapper-resize-dirty`]:fe}),classNames:{..._,textarea:Q({[`${z}-sm`]:K==="small",[`${z}-lg`]:K==="large"},A,_.textarea,ne&&`${z}-mouse-active`),variant:Q({[`${z}-${J}`]:Z},tl(z,B)),affixWrapper:Q(`${z}-textarea-affix-wrapper`,{[`${z}-affix-wrapper-rtl`]:w==="rtl",[`${z}-affix-wrapper-sm`]:K==="small",[`${z}-affix-wrapper-lg`]:K==="large",[`${z}-textarea-show-count`]:b||e.count?.show},A)},prefixCls:z,suffix:G&&l.createElement("span",{className:`${z}-textarea-suffix`},V),showCount:b,ref:I,onResize:ge,onMouseDown:ue})}),Pr=Kp;Pr.Group=zK;Pr.Search=WK;Pr.TextArea=sN;Pr.Password=VK;Pr.OTP=HK;function JK(e,t,n){return typeof n=="boolean"?n:e.length?!0:mr(t).some(i=>i.type===g6)}const Qp=({suffixCls:e,tagName:t,displayName:n})=>r=>l.forwardRef((s,c)=>l.createElement(r,{ref:c,suffixCls:e,tagName:t,...s})),$1=l.forwardRef((e,t)=>{const{prefixCls:n,suffixCls:r,className:i,tagName:s,...c}=e,{getPrefixCls:d}=l.useContext(dt),f=d("layout",n),[p]=p6(f),g=r?`${f}-${r}`:f;return l.createElement(s,{className:Q(n||g,i,p),ref:t,...c})}),eQ=l.forwardRef((e,t)=>{const{direction:n}=l.useContext(dt),[r,i]=l.useState([]),{prefixCls:s,className:c,rootClassName:d,children:f,hasSider:p,tagName:g,style:h,...y}=e,C=en(y,["suffixCls"]),{getPrefixCls:b,className:x,style:S}=Pt("layout"),$=b("layout",s),M=JK(r,f,p),[w,R]=p6($),T=Q($,{[`${$}-has-sider`]:M,[`${$}-rtl`]:n==="rtl"},x,c,d,w,R),N=l.useMemo(()=>({siderHook:{addSider:O=>{i(P=>[].concat($n(P),[O]))},removeSider:O=>{i(P=>P.filter(D=>D!==O))}}}),[]);return l.createElement(d6.Provider,{value:N},l.createElement(g,{ref:t,className:T,style:{...S,...h},...C},f))}),tQ=Qp({tagName:"div",displayName:"Layout"})(eQ),nQ=Qp({suffixCls:"header",tagName:"header",displayName:"Header"})($1),rQ=Qp({suffixCls:"footer",tagName:"footer",displayName:"Footer"})($1),oQ=Qp({suffixCls:"content",tagName:"main",displayName:"Content"})($1),Ta=tQ;Ta.Header=nQ;Ta.Footer=rQ;Ta.Content=oQ;Ta.Sider=g6;Ta._InternalSiderContext=Fp;const aQ={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"},iQ=[10,20,50,100],lQ=e=>{const{pageSizeOptions:t=iQ,locale:n,changeSize:r,pageSize:i,goButton:s,quickGo:c,rootPrefixCls:d,disabled:f,buildOptionText:p,showSizeChanger:g,sizeChangerRender:h}=e,[y,C]=ae.useState(""),b=ae.useMemo(()=>!y||Number.isNaN(y)?void 0:Number(y),[y]),x=typeof p=="function"?p:P=>`${P} ${n.items_per_page}`,S=P=>{const D=P.target.value;/^\d*$/.test(D)&&C(D)},$=P=>{s||y===""||(C(""),!(P.relatedTarget&&(P.relatedTarget.className.includes(`${d}-item-link`)||P.relatedTarget.className.includes(`${d}-item`)))&&c?.(b))},M=P=>{y!==""&&(P.keyCode===nt.ENTER||P.type==="click")&&(C(""),c?.(b))},w=()=>t.some(P=>P.toString()===i.toString())?t:t.concat([i]).sort((P,D)=>{const k=Number.isNaN(Number(P))?0:Number(P),F=Number.isNaN(Number(D))?0:Number(D);return k-F}),R=`${d}-options`;if(!g&&!c)return null;let T=null,N=null,O=null;return g&&h&&(T=h({disabled:f,size:i,onSizeChange:P=>{r?.(Number(P))},"aria-label":n.page_size,className:`${R}-size-changer`,options:w().map(P=>({label:x(P),value:P}))})),c&&(s&&(O=typeof s=="boolean"?ae.createElement("button",{type:"button",onClick:M,onKeyUp:M,disabled:f,className:`${R}-quick-jumper-button`},n.jump_to_confirm):ae.createElement("span",{onClick:M,onKeyUp:M},s)),N=ae.createElement("div",{className:`${R}-quick-jumper`},n.jump_to,ae.createElement("input",{disabled:f,type:"text",value:y,onChange:S,onKeyUp:M,onBlur:$,"aria-label":n.page}),n.page,O)),ae.createElement("li",{className:R},T,N)},qc=e=>{const{rootPrefixCls:t,page:n,active:r,className:i,style:s,showTitle:c,onClick:d,onKeyPress:f,itemRender:p}=e,g=`${t}-item`,h=Q(g,`${g}-${n}`,{[`${g}-active`]:r,[`${g}-disabled`]:!n},i),y=()=>{d(n)},C=x=>{f(x,d,n)},b=p(n,"page",ae.createElement("a",{rel:"nofollow"},n));return b?ae.createElement("li",{title:c?String(n):null,className:h,style:s,onClick:y,onKeyDown:C,tabIndex:0},b):null};function ni(){return ni=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ni.apply(this,arguments)}const sQ=(e,t,n)=>n;function C4(){}function $4(e){const t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function _i(e,t,n){const r=typeof e>"u"?t:e;return Math.floor((n-1)/r)+1}const cQ=e=>{const{prefixCls:t="rc-pagination",selectPrefixCls:n="rc-select",className:r,classNames:i,styles:s,current:c,defaultCurrent:d=1,total:f=0,pageSize:p,defaultPageSize:g=10,onChange:h=C4,hideOnSinglePage:y,align:C,showPrevNextJumpers:b=!0,showQuickJumper:x,showLessItems:S,showTitle:$=!0,onShowSizeChange:M=C4,locale:w=aQ,style:R,totalBoundaryShowSizeChanger:T=50,disabled:N,simple:O,showTotal:P,showSizeChanger:D=f>T,sizeChangerRender:k,pageSizeOptions:F,itemRender:Y=sQ,jumpPrevIcon:G,jumpNextIcon:V,prevIcon:B,nextIcon:_}=e,H=ae.useRef(null),[I,z]=Yt(g,p),[L,A]=Yt(d,c),j=Math.max(1,Math.min(L,_i(void 0,I,f))),[q,X]=ae.useState(j);l.useEffect(()=>{X(j)},[j]);const K=Math.max(1,j-(S?3:5)),J=Math.min(_i(void 0,I,f),j+(S?3:5));function Z(qe,rt){let je=qe||ae.createElement("button",{type:"button","aria-label":rt,className:`${t}-item-link`});return typeof qe=="function"&&(je=ae.createElement(qe,e)),je}function re(qe){const rt=qe.target.value,je=_i(void 0,I,f);let Pe;return rt===""?Pe=rt:Number.isNaN(Number(rt))?Pe=q:rt>=je?Pe=je:Pe=Number(rt),Pe}function ne(qe){return $4(qe)&&qe!==j&&$4(f)&&f>0}const ie=f>I?x:!1;function fe(qe){(qe.keyCode===nt.UP||qe.keyCode===nt.DOWN)&&qe.preventDefault()}function le(qe){const rt=re(qe);switch(rt!==q&&X(rt),qe.keyCode){case nt.ENTER:oe(rt);break;case nt.UP:oe(rt-1);break;case nt.DOWN:oe(rt+1);break}}function ue(qe){oe(re(qe))}function ge(qe){const rt=_i(qe,I,f),je=j>rt&&rt!==0?rt:j;z(qe),X(je),M?.(j,qe),A(je),h?.(je,qe)}function oe(qe){if(ne(qe)&&!N){const rt=_i(void 0,I,f);let je=qe;return qe>rt?je=rt:qe<1&&(je=1),je!==q&&X(je),A(je),h?.(je,I),je}return j}const se=j>1,he=j<_i(void 0,I,f);function me(){se&&oe(j-1)}function xe(){he&&oe(j+1)}function Ae(){oe(K)}function we(){oe(J)}function $e(qe,rt,...je){(qe.key==="Enter"||qe.charCode===nt.ENTER||qe.keyCode===nt.ENTER)&&rt(...je)}function de(qe){$e(qe,me)}function be(qe){$e(qe,xe)}function Me(qe){$e(qe,Ae)}function Oe(qe){$e(qe,we)}function Le(qe){const rt=Y(qe,"prev",Z(B,"prev page"));return ae.isValidElement(rt)?ae.cloneElement(rt,{disabled:!se}):rt}function Ge(qe){const rt=Y(qe,"next",Z(_,"next page"));return ae.isValidElement(rt)?ae.cloneElement(rt,{disabled:!he}):rt}function et(qe){(qe.type==="click"||qe.keyCode===nt.ENTER)&&oe(q)}let ze=null;const _e=In(e,{aria:!0,data:!0}),De=P&&ae.createElement("li",{className:`${t}-total-text`},P(f,[f===0?0:(j-1)*I+1,j*I>f?f:j*I]));let Ue=null;const Ne=_i(void 0,I,f);if(y&&f<=I)return null;const Se=[],Be={rootPrefixCls:t,onClick:oe,onKeyPress:$e,showTitle:$,itemRender:Y,page:-1,className:i?.item,style:s?.item},Je=j-1>0?j-1:0,We=j+1<Ne?j+1:Ne,Xe=x&&x.goButton,Ie=typeof O=="object"?O.readOnly:!O;let Ke=Xe,ot=null;O&&(Xe&&(typeof Xe=="boolean"?Ke=ae.createElement("button",{type:"button",onClick:et,onKeyUp:et},w.jump_to_confirm):Ke=ae.createElement("span",{onClick:et,onKeyUp:et},Xe),Ke=ae.createElement("li",{title:$?`${w.jump_to}${j}/${Ne}`:null,className:`${t}-simple-pager`},Ke)),ot=ae.createElement("li",{title:$?`${j}/${Ne}`:null,className:Q(`${t}-simple-pager`,i?.item),style:s?.item},Ie?q:ae.createElement("input",{type:"text","aria-label":w.jump_to,value:q,disabled:N,onKeyDown:fe,onKeyUp:le,onChange:le,onBlur:ue,size:3}),ae.createElement("span",{className:`${t}-slash`},"/"),Ne));const at=S?1:2;if(Ne<=3+at*2){Ne||Se.push(ae.createElement(qc,ni({},Be,{key:"noPager",page:1,className:`${t}-item-disabled`})));for(let qe=1;qe<=Ne;qe+=1)Se.push(ae.createElement(qc,ni({},Be,{key:qe,page:qe,active:j===qe})))}else{const qe=S?w.prev_3:w.prev_5,rt=S?w.next_3:w.next_5,je=Y(K,"jump-prev",Z(G,"prev page")),Pe=Y(J,"jump-next",Z(V,"next page"));b&&(ze=je?ae.createElement("li",{title:$?qe:null,key:"prev",onClick:Ae,tabIndex:0,onKeyDown:Me,className:Q(`${t}-jump-prev`,{[`${t}-jump-prev-custom-icon`]:!!G})},je):null,Ue=Pe?ae.createElement("li",{title:$?rt:null,key:"next",onClick:we,tabIndex:0,onKeyDown:Oe,className:Q(`${t}-jump-next`,{[`${t}-jump-next-custom-icon`]:!!V})},Pe):null);let ke=Math.max(1,j-at),Re=Math.min(j+at,Ne);j-1<=at&&(Re=1+at*2),Ne-j<=at&&(ke=Ne-at*2);for(let Ye=ke;Ye<=Re;Ye+=1)Se.push(ae.createElement(qc,ni({},Be,{key:Ye,page:Ye,active:j===Ye})));if(j-1>=at*2&&j!==3&&(Se[0]=ae.cloneElement(Se[0],{className:Q(`${t}-item-after-jump-prev`,Se[0].props.className)}),Se.unshift(ze)),Ne-j>=at*2&&j!==Ne-2){const Ye=Se[Se.length-1];Se[Se.length-1]=ae.cloneElement(Ye,{className:Q(`${t}-item-before-jump-next`,Ye.props.className)}),Se.push(Ue)}ke!==1&&Se.unshift(ae.createElement(qc,ni({},Be,{key:1,page:1}))),Re!==Ne&&Se.push(ae.createElement(qc,ni({},Be,{key:Ne,page:Ne})))}let lt=Le(Je);if(lt){const qe=!se||!Ne;lt=ae.createElement("li",{title:$?w.prev_page:null,onClick:me,tabIndex:qe?null:0,onKeyDown:de,className:Q(`${t}-prev`,i?.item,{[`${t}-disabled`]:qe}),style:s?.item,"aria-disabled":qe},lt)}let St=Ge(We);if(St){let qe,rt;O?(qe=!he,rt=se?0:null):(qe=!he||!Ne,rt=qe?null:0),St=ae.createElement("li",{title:$?w.next_page:null,onClick:xe,tabIndex:rt,onKeyDown:be,className:Q(`${t}-next`,i?.item,{[`${t}-disabled`]:qe}),style:s?.item,"aria-disabled":qe},St)}const Ct=Q(t,r,{[`${t}-start`]:C==="start",[`${t}-center`]:C==="center",[`${t}-end`]:C==="end",[`${t}-simple`]:O,[`${t}-disabled`]:N});return ae.createElement("ul",ni({className:Ct,style:R,ref:H},_e),De,lt,O?ot:Se,St,ae.createElement(lQ,{locale:w,rootPrefixCls:t,disabled:N,selectPrefixCls:n,changeSize:ge,pageSize:I,pageSizeOptions:F,quickGo:ie?oe:null,goButton:Ke,showSizeChanger:D,sizeChangerRender:k}))},uQ=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}}}}},dQ=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:te(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:te(e.calc(e.itemSizeSM).sub(2).equal())},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:te(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"}}},[`
321
+ &${t}-mini ${t}-prev ${t}-item-link,
322
+ &${t}-mini ${t}-next ${t}-item-link
323
+ `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:te(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:te(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:te(e.itemSizeSM),input:{...m1(e),width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM}}}}},fQ=e=>{const{componentCls:t}=e;return{[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{height:e.itemSize,lineHeight:te(e.itemSize),verticalAlign:"top",[`${t}-item-link`]:{height:e.itemSize,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.itemSize,lineHeight:te(e.itemSize)}}},[`${t}-simple-pager`]:{display:"inline-flex",alignItems:"center",height:e.itemSize,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",width:e.quickJumperInputWidth,padding:`0 ${te(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${te(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:`${te(e.inputOutlineOffset)} 0 ${te(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}},[`&${t}-disabled`]:{[`${t}-prev, ${t}-next`]:{[`${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}},[`&${t}-mini`]:{[`${t}-prev, ${t}-next`]:{height:e.itemSizeSM,lineHeight:te(e.itemSizeSM),[`${t}-item-link`]:{height:e.itemSizeSM,"&::after":{height:e.itemSizeSM,lineHeight:te(e.itemSizeSM)}}},[`${t}-simple-pager`]:{height:e.itemSizeSM,input:{width:e.paginationMiniQuickJumperInputWidth}}}}}},mQ=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}}},[`
324
+ ${t}-prev,
325
+ ${t}-jump-prev,
326
+ ${t}-jump-next
327
+ `]:{marginInlineEnd:e.marginXS},[`
328
+ ${t}-prev,
329
+ ${t}-next,
330
+ ${t}-jump-prev,
331
+ ${t}-jump-next
332
+ `]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:te(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:`${te(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer":{width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:te(e.controlHeight),verticalAlign:"top",input:{...p1(e),...f1(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow}),"&[disabled]":{...Xp(e)},width:e.quickJumperInputWidth,height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS}}}}},pQ=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:te(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:e.itemBg,border:`${te(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${te(e.paginationItemPaddingInline)}`,color:e.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.itemActiveColor},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.itemActiveColorHover}}}}},gQ=e=>{const{componentCls:t}=e;return{[t]:{...Zt(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:te(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"},...pQ(e),...mQ(e),...fQ(e),...dQ(e),...uQ(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"}}},hQ=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:{...xo(e)},[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0},...Go(e)}},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Go(e)}}}},cN=e=>({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemActiveColor:e.colorPrimary,itemActiveColorHover:e.colorPrimaryHover,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0,...Fs(e)}),uN=e=>Nt(e,{inputOutlineOffset:0,quickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.25).equal(),paginationMiniOptionsMarginInlineStart:e.calc(e.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:e.calc(e.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:e.calc(e.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:e.marginSM,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},Vs(e)),yQ=zt("Pagination",e=>{const t=uN(e);return[gQ(t),hQ(t)]},cN),bQ=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:`${te(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}}}}},vQ=id(["Pagination","bordered"],e=>{const t=uN(e);return bQ(t)},cN);function x4(e){return l.useMemo(()=>typeof e=="boolean"?[e,{}]:e&&typeof e=="object"?[!0,e]:[void 0,void 0],[e])}const SQ=e=>{const{align:t,prefixCls:n,selectPrefixCls:r,className:i,rootClassName:s,style:c,size:d,locale:f,responsive:p,showSizeChanger:g,selectComponentClass:h,pageSizeOptions:y,styles:C,classNames:b,...x}=e,{xs:S}=jp(p),[,$]=qr(),{getPrefixCls:M,direction:w,showSizeChanger:R,className:T,style:N,classNames:O,styles:P}=Pt("pagination"),D=M("pagination",n),[k,F]=yQ(D),Y=pr(d),G=Y==="small"||!!(S&&!Y&&p),V={...e,size:Y},[B,_]=Vt([O,b],[P,C],{props:V}),[H]=oo("Pagination",oT),I={...H,...f},[z,L]=x4(g),[A,j]=x4(R),q=z??A,X=L??j,K=h||Vr,J=l.useMemo(()=>y?y.map(le=>Number(le)):void 0,[y]),Z=le=>{const{disabled:ue,size:ge,onSizeChange:oe,"aria-label":se,className:he,options:me}=le,{className:xe,onChange:Ae}=X||{},we=me.find($e=>String($e.value)===String(ge))?.value;return l.createElement(K,{disabled:ue,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:$e=>$e.parentNode,"aria-label":se,options:me,...X,value:we,onChange:($e,de)=>{oe?.($e),Ae?.($e,de)},size:G?"small":"middle",className:Q(he,xe)})},re=l.useMemo(()=>{const le=l.createElement("span",{className:`${D}-item-ellipsis`},"•••"),ue=l.createElement("button",{className:`${D}-item-link`,type:"button",tabIndex:-1},w==="rtl"?l.createElement(ws,null):l.createElement(Mu,null)),ge=l.createElement("button",{className:`${D}-item-link`,type:"button",tabIndex:-1},w==="rtl"?l.createElement(Mu,null):l.createElement(ws,null)),oe=l.createElement("a",{className:`${D}-item-link`},l.createElement("div",{className:`${D}-item-container`},w==="rtl"?l.createElement(m4,{className:`${D}-item-link-icon`}):l.createElement(f4,{className:`${D}-item-link-icon`}),le)),se=l.createElement("a",{className:`${D}-item-link`},l.createElement("div",{className:`${D}-item-container`},w==="rtl"?l.createElement(f4,{className:`${D}-item-link-icon`}):l.createElement(m4,{className:`${D}-item-link-icon`}),le));return{prevIcon:ue,nextIcon:ge,jumpPrevIcon:oe,jumpNextIcon:se}},[w,D]),ne=M("select",r),ie=Q({[`${D}-${t}`]:!!t,[`${D}-mini`]:G,[`${D}-rtl`]:w==="rtl",[`${D}-bordered`]:$.wireframe},T,i,s,B.root,k,F),fe={..._.root,...N,...c};return l.createElement(l.Fragment,null,$.wireframe&&l.createElement(vQ,{prefixCls:D}),l.createElement(cQ,{...re,...x,styles:_,classNames:B,style:fe,prefixCls:D,selectPrefixCls:ne,className:ie,locale:I,pageSizeOptions:J,showSizeChanger:q,sizeChangerRender:Z}))},pp=100,dN=pp/5,fN=pp/2-dN/2,Jy=fN*2*Math.PI,w4=50,E4=e=>{const{dotClassName:t,style:n,hasCircleCls:r}=e;return l.createElement("circle",{className:Q(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:fN,cx:w4,cy:w4,strokeWidth:dN,style:n})},CQ=({percent:e,prefixCls:t})=>{const n=`${t}-dot`,r=`${n}-holder`,i=`${r}-hidden`,[s,c]=l.useState(!1);It(()=>{e!==0&&c(!0)},[e!==0]);const d=Math.max(Math.min(e,100),0);if(!s)return null;const f={strokeDashoffset:`${Jy/4}`,strokeDasharray:`${Jy*d/100} ${Jy*(100-d)/100}`};return l.createElement("span",{className:Q(r,`${n}-progress`,d<=0&&i)},l.createElement("svg",{viewBox:`0 0 ${pp} ${pp}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":d},l.createElement(E4,{dotClassName:n,hasCircleCls:!0}),l.createElement(E4,{dotClassName:n,style:f})))};function $Q(e){const{prefixCls:t,percent:n=0,className:r,style:i}=e,s=`${t}-dot`,c=`${s}-holder`,d=`${c}-hidden`;return l.createElement(l.Fragment,null,l.createElement("span",{className:Q(c,r,n>0&&d),style:i},l.createElement("span",{className:Q(s,`${t}-dot-spin`)},[1,2,3,4].map(f=>l.createElement("i",{className:`${t}-dot-item`,key:f})))),l.createElement(CQ,{prefixCls:t,percent:n}))}function xQ(e){const{prefixCls:t,indicator:n,percent:r,className:i,style:s}=e,c=`${t}-dot`;return n&&l.isValidElement(n)?or(n,d=>({className:Q(d.className,c,i),style:{...d.style,...s},percent:r})):l.createElement($Q,{prefixCls:t,percent:r,className:i,style:s})}const wQ=new Dt("antSpinMove",{to:{opacity:1}}),EQ=new Dt("antRotate",{to:{transform:"rotate(405deg)"}}),MQ=e=>{const{componentCls:t,calc:n}=e;return{[t]:{...Zt(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:wQ,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:EQ,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"},"&-circle":{strokeLinecap:"round",transition:["stroke-dashoffset","stroke-dasharray","stroke","stroke-width","opacity"].map(r=>`${r} ${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"}}}},RQ=e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:n}},TQ=zt("Spin",e=>{const t=Nt(e,{spinDotDefault:e.colorTextDescription});return MQ(t)},RQ),OQ=200,M4=[[30,.05],[70,.03],[96,.01]];function NQ(e,t){const[n,r]=l.useState(0),i=l.useRef(null),s=t==="auto";return l.useEffect(()=>(s&&e&&(r(0),i.current=setInterval(()=>{r(c=>{const d=100-c;for(let f=0;f<M4.length;f+=1){const[p,g]=M4[f];if(c<=p)return c+d*g}return c})},OQ)),()=>{i.current&&(clearInterval(i.current),i.current=null)}),[s,e]),s?n:t}let mN;function IQ(e,t){return!!e&&!!t&&!Number.isNaN(Number(t))}const gp=e=>{const{prefixCls:t,spinning:n=!0,delay:r=0,className:i,rootClassName:s,size:c="default",tip:d,wrapperClassName:f,style:p,children:g,fullscreen:h=!1,indicator:y,percent:C,classNames:b,styles:x,...S}=e,{getPrefixCls:$,direction:M,indicator:w,className:R,style:T,classNames:N,styles:O}=Pt("spin"),P=$("spin",t),[D,k]=TQ(P),[F,Y]=l.useState(()=>n&&!IQ(n,r)),G=NQ(F,C);l.useEffect(()=>{if(n){const q=RU(r,()=>{Y(!0)});return q(),()=>{q?.cancel?.()}}Y(!1)},[r,n]);const V=l.useMemo(()=>typeof g<"u"&&!h,[g,h]),B={...e,size:c,spinning:F,tip:d,fullscreen:h,children:g,percent:G},[_,H]=Vt([N,b],[O,x],{props:B}),I=Q(P,R,{[`${P}-sm`]:c==="small",[`${P}-lg`]:c==="large",[`${P}-spinning`]:F,[`${P}-show-text`]:!!d,[`${P}-rtl`]:M==="rtl"},i,!h&&s,!h&&_.root,D,k),z=Q(`${P}-container`,{[`${P}-blur`]:F}),L=y??w??mN,A={...T,...p},j=l.createElement("div",{...S,style:h?A:{...H.root,...A},className:I,"aria-live":"polite","aria-busy":F},l.createElement(xQ,{className:_.indicator,style:H.indicator,prefixCls:P,indicator:L,percent:G}),d&&(V||h)?l.createElement("div",{className:Q(`${P}-text`,_.tip),style:H.tip},d):null);return V?l.createElement("div",{...S,className:Q(`${P}-nested-loading`,f,_.wrapper,D,k),style:H.wrapper},F&&l.createElement("div",{key:"loading"},j),l.createElement("div",{className:z,key:"container"},g)):h?l.createElement("div",{className:Q(`${P}-fullscreen`,{[`${P}-fullscreen-show`]:F},s,D,k,_.mask),style:H.mask},j):j};gp.setDefaultIndicator=e=>{mN=e};const x1=ae.createContext({});x1.Consumer;const PQ=({prefixCls:e,className:t,avatar:n,title:r,description:i,...s})=>{const{getPrefixCls:c}=l.useContext(dt),d=c("list",e),f=Q(`${d}-item-meta`,t),p=ae.createElement("div",{className:`${d}-item-meta-content`},r&&ae.createElement("h4",{className:`${d}-item-meta-title`},r),i&&ae.createElement("div",{className:`${d}-item-meta-description`},i));return ae.createElement("div",{...s,className:f},n&&ae.createElement("div",{className:`${d}-item-meta-avatar`},n),(r||i)&&p)},zQ=ae.forwardRef((e,t)=>{const{prefixCls:n,children:r,actions:i,extra:s,styles:c,className:d,classNames:f,colStyle:p,...g}=e,{grid:h,itemLayout:y}=l.useContext(x1),{getPrefixCls:C,list:b}=l.useContext(dt),x=O=>Q(b?.item?.classNames?.[O],f?.[O]),S=O=>({...b?.item?.styles?.[O],...c?.[O]}),$=()=>{const O=mr(r);return O.some(D=>typeof D=="string")&&O.length>1},M=()=>y==="vertical"?!!s:!$(),w=C("list",n),R=i&&i.length>0&&ae.createElement("ul",{className:Q(`${w}-item-action`,x("actions")),key:"actions",style:S("actions")},i.map((O,P)=>ae.createElement("li",{key:`${w}-item-action-${P}`},O,P!==i.length-1&&ae.createElement("em",{className:`${w}-item-action-split`})))),T=h?"div":"li",N=ae.createElement(T,{...g,...h?{}:{ref:t},className:Q(`${w}-item`,{[`${w}-item-no-flex`]:!M()},d)},y==="vertical"&&s?[ae.createElement("div",{className:`${w}-item-main`,key:"content"},r,R),ae.createElement("div",{className:Q(`${w}-item-extra`,x("extra")),key:"extra",style:S("extra")},s)]:[r,R,or(s,{key:"extra"})]);return h?ae.createElement(zU,{ref:t,flex:1,style:p},N):N}),pN=zQ;pN.Meta=PQ;const AQ=e=>{const{listBorderedCls:t,componentCls:n,paddingLG:r,margin:i,itemPaddingSM:s,itemPaddingLG:c,marginLG:d,borderRadiusLG:f}=e,p=te(e.calc(f).sub(e.lineWidth).equal());return{[t]:{border:`${te(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:f,[`${n}-header`]:{borderRadius:`${p} ${p} 0 0`},[`${n}-footer`]:{borderRadius:`0 0 ${p} ${p}`},[`${n}-header,${n}-footer,${n}-item`]:{paddingInline:r},[`${n}-pagination`]:{margin:`${te(i)} ${te(d)}`}},[`${t}${n}-sm`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:s}},[`${t}${n}-lg`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:c}}}},DQ=e=>{const{componentCls:t,screenSM:n,screenMD:r,marginLG:i,marginSM:s,margin:c}=e;return{[`@media screen and (max-width:${r}px)`]:{[t]:{[`${t}-item`]:{[`${t}-item-action`]:{marginInlineStart:i}}},[`${t}-vertical`]:{[`${t}-item`]:{[`${t}-item-extra`]:{marginInlineStart:i}}}},[`@media screen and (max-width: ${n}px)`]:{[t]:{[`${t}-item`]:{flexWrap:"wrap",[`${t}-action`]:{marginInlineStart:s}}},[`${t}-vertical`]:{[`${t}-item`]:{flexWrap:"wrap-reverse",[`${t}-item-main`]:{minWidth:e.contentWidth},[`${t}-item-extra`]:{margin:`auto auto ${te(c)}`}}}}}},jQ=e=>{const{componentCls:t,antCls:n,controlHeight:r,minHeight:i,paddingSM:s,marginLG:c,padding:d,itemPadding:f,colorPrimary:p,itemPaddingSM:g,itemPaddingLG:h,paddingXS:y,margin:C,colorText:b,colorTextDescription:x,motionDurationSlow:S,lineWidth:$,headerBg:M,footerBg:w,emptyTextPadding:R,metaMarginBottom:T,avatarMarginRight:N,titleMarginBottom:O,descriptionFontSize:P}=e;return{[t]:{...Zt(e),position:"relative","--rc-virtual-list-scrollbar-bg":e.colorSplit,"*":{outline:"none"},[`${t}-header`]:{background:M},[`${t}-footer`]:{background:w},[`${t}-header, ${t}-footer`]:{paddingBlock:s},[`${t}-pagination`]:{marginBlockStart:c,[`${n}-pagination-options`]:{textAlign:"start"}},[`${t}-spin`]:{minHeight:i,textAlign:"center"},[`${t}-items`]:{margin:0,padding:0,listStyle:"none"},[`${t}-item`]:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:f,color:b,[`${t}-item-meta`]:{display:"flex",flex:1,alignItems:"flex-start",maxWidth:"100%",[`${t}-item-meta-avatar`]:{marginInlineEnd:N},[`${t}-item-meta-content`]:{flex:"1 0",width:0,color:b},[`${t}-item-meta-title`]:{margin:`0 0 ${te(e.marginXXS)} 0`,color:b,fontSize:e.fontSize,lineHeight:e.lineHeight,"> a":{color:b,transition:`all ${S}`,"&:hover":{color:p}}},[`${t}-item-meta-description`]:{color:x,fontSize:P,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 ${te(y)}`,color:x,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"center","&:first-child":{paddingInlineStart:0}},[`${t}-item-action-split`]:{position:"absolute",insetBlockStart:"50%",insetInlineEnd:0,width:$,height:e.calc(e.fontHeight).sub(e.calc(e.marginXXS).mul(2)).equal(),transform:"translateY(-50%)",backgroundColor:e.colorSplit}}},[`${t}-empty`]:{padding:`${te(d)} 0`,color:x,fontSize:e.fontSizeSM,textAlign:"center"},[`${t}-empty-text`]:{padding:R,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:C,paddingBlock:0,borderBlockEnd:"none"},[`${t}-vertical ${t}-item`]:{alignItems:"initial",[`${t}-item-main`]:{display:"block",flex:1},[`${t}-item-extra`]:{marginInlineStart:c},[`${t}-item-meta`]:{marginBlockEnd:T,[`${t}-item-meta-title`]:{marginBlockStart:0,marginBlockEnd:O,color:b,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}},[`${t}-item-action`]:{marginBlockStart:d,marginInlineStart:"auto","> li":{padding:`0 ${te(d)}`,"&:first-child":{paddingInlineStart:0}}}},[`${t}-split ${t}-item`]:{borderBlockEnd:`${te(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBlockEnd:"none"}},[`${t}-split ${t}-header`]:{borderBlockEnd:`${te(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-split${t}-empty ${t}-footer`]:{borderTop:`${te(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-loading ${t}-spin-nested-loading`]:{minHeight:r},[`${t}-split${t}-something-after-last-item ${n}-spin-container > ${t}-items > ${t}-item:last-child`]:{borderBlockEnd:`${te(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-lg ${t}-item`]:{padding:h},[`${t}-sm ${t}-item`]:{padding:g},[`${t}:not(${t}-vertical)`]:{[`${t}-item-no-flex`]:{[`${t}-item-action`]:{float:"right"}}}}},_Q=e=>({contentWidth:220,itemPadding:`${te(e.paddingContentVertical)} 0`,itemPaddingSM:`${te(e.paddingContentVerticalSM)} ${te(e.paddingContentHorizontal)}`,itemPaddingLG:`${te(e.paddingContentVerticalLG)} ${te(e.paddingContentHorizontalLG)}`,headerBg:"transparent",footerBg:"transparent",emptyTextPadding:e.padding,metaMarginBottom:e.padding,avatarMarginRight:e.padding,titleMarginBottom:e.paddingSM,descriptionFontSize:e.fontSize}),HQ=zt("List",e=>{const t=Nt(e,{listBorderedCls:`${e.componentCls}-bordered`,minHeight:e.controlHeightLG});return[jQ(t),AQ(t),DQ(t)]},_Q),BQ=(e,t)=>{const{pagination:n=!1,prefixCls:r,bordered:i=!1,split:s=!0,className:c,rootClassName:d,style:f,children:p,itemLayout:g,loadMore:h,grid:y,dataSource:C=[],size:b,header:x,footer:S,loading:$=!1,rowKey:M,renderItem:w,locale:R,...T}=e,N=n&&typeof n=="object"?n:{},[O,P]=l.useState(N.defaultCurrent||1),[D,k]=l.useState(N.defaultPageSize||10),{getPrefixCls:F,direction:Y,className:G,style:V}=Pt("list"),{renderEmpty:B}=l.useContext(dt),_={current:1,total:0,position:"bottom"},H=we=>($e,de)=>{P($e),k(de),n&&n?.[we]?.($e,de)},I=H("onChange"),z=H("onShowSizeChange"),L=(we,$e)=>{if(!w)return null;let de;return typeof M=="function"?de=M(we):M?de=we[M]:de=we.key,de||(de=`list-item-${$e}`),l.createElement(l.Fragment,{key:de},w(we,$e))},A=!!(h||n||S),j=F("list",r),[q,X]=HQ(j);let K=$;typeof K=="boolean"&&(K={spinning:K});const J=!!K?.spinning,Z=pr(b);let re="";switch(Z){case"large":re="lg";break;case"small":re="sm";break}const ne=Q(j,{[`${j}-vertical`]:g==="vertical",[`${j}-${re}`]:re,[`${j}-split`]:s,[`${j}-bordered`]:i,[`${j}-loading`]:J,[`${j}-grid`]:!!y,[`${j}-something-after-last-item`]:A,[`${j}-rtl`]:Y==="rtl"},G,c,d,q,X),ie=Xb(_,{total:C.length,current:O,pageSize:D},n||{}),fe=Math.ceil(ie.total/ie.pageSize);ie.current=Math.min(ie.current,fe);const le=n&&l.createElement("div",{className:Q(`${j}-pagination`)},l.createElement(SQ,{align:"end",...ie,onChange:I,onShowSizeChange:z}));let ue=$n(C);n&&C.length>(ie.current-1)*ie.pageSize&&(ue=$n(C).splice((ie.current-1)*ie.pageSize,ie.pageSize));const ge=Object.keys(y||{}).some(we=>["xs","sm","md","lg","xl","xxl"].includes(we)),oe=jp(ge),se=l.useMemo(()=>{for(let we=0;we<nl.length;we+=1){const $e=nl[we];if(oe[$e])return $e}},[oe]),he=l.useMemo(()=>{if(!y)return;const we=se&&y[se]?y[se]:y.column;if(we)return{width:`${100/we}%`,maxWidth:`${100/we}%`}},[JSON.stringify(y),se]);let me=J&&l.createElement("div",{style:{minHeight:53}});if(ue.length>0){const we=ue.map(L);me=y?l.createElement(DU,{gutter:y.gutter},l.Children.map(we,$e=>l.createElement("div",{key:$e?.key,style:he},$e))):l.createElement("ul",{className:`${j}-items`},we)}else!p&&!J&&(me=l.createElement("div",{className:`${j}-empty-text`},R?.emptyText||B?.("List")||l.createElement(jO,{componentName:"List"})));const xe=ie.position,Ae=l.useMemo(()=>({grid:y,itemLayout:g}),[JSON.stringify(y),g]);return l.createElement(x1.Provider,{value:Ae},l.createElement("div",{ref:t,style:{...V,...f},className:ne,...T},(xe==="top"||xe==="both")&&le,x&&l.createElement("div",{className:`${j}-header`},x),l.createElement(gp,{...K},me,p),S&&l.createElement("div",{className:`${j}-footer`},S),h||(xe==="bottom"||xe==="both")&&le))},LQ=l.forwardRef(BQ),So=LQ;So.Item=pN;const VQ=(e,t=!1)=>t&&!Rr(e)?[]:Array.isArray(e)?e:[e];let Li=null,Ui=e=>e(),td=[],nd={};function R4(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:i}=nd,s=e?.()||document.body;return{getContainer:()=>s,duration:t,rtl:n,maxCount:r,top:i}}const FQ=ae.forwardRef((e,t)=>{const{messageConfig:n,sync:r}=e,{getPrefixCls:i}=l.useContext(dt),s=nd.prefixCls||i("message"),c=l.useContext(P9),[d,f]=DT({...n,prefixCls:s,...c.message});return ae.useImperativeHandle(t,()=>{const p={...d};return Object.keys(p).forEach(g=>{p[g]=(...h)=>(r(),d[g].apply(d,h))}),{instance:p,sync:r}}),f}),kQ=ae.forwardRef((e,t)=>{const[n,r]=ae.useState(R4),i=()=>{r(R4)};ae.useEffect(i,[]);const s=NT(),c=s.getRootPrefixCls(),d=s.getIconPrefixCls(),f=s.getTheme(),p=ae.createElement(FQ,{ref:t,sync:i,messageConfig:n});return ae.createElement(Zo,{prefixCls:c,iconPrefixCls:d,theme:f},s.holderRender?s.holderRender(p):p)}),Zp=()=>{if(!Li){const e=document.createDocumentFragment(),t={fragment:e};Li=t,Ui(()=>{_S(ae.createElement(kQ,{ref:n=>{const{instance:r,sync:i}=n||{};Promise.resolve().then(()=>{!t.instance&&r&&(t.instance=r,t.sync=i,Zp())})}}),e)});return}Li.instance&&(td.forEach(e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":{Ui(()=>{const r=Li.instance.open({...nd,...e.config});r?.then(e.resolve),e.setCloseFn(r)});break}case"destroy":Ui(()=>{Li?.instance.destroy(e.key)});break;default:Ui(()=>{var r;const i=(r=Li.instance)[t].apply(r,$n(e.args));i?.then(e.resolve),e.setCloseFn(i)})}}),td=[])};function WQ(e){nd={...nd,...e},Ui(()=>{Li?.sync?.()})}function qQ(e){const t=jS(n=>{let r;const i={type:"open",config:e,resolve:n,setCloseFn:s=>{r=s}};return td.push(i),()=>{r?Ui(()=>{r()}):i.skipped=!0}});return Zp(),t}function YQ(e,t){const n=jS(r=>{let i;const s={type:e,args:t,resolve:r,setCloseFn:c=>{i=c}};return td.push(s),()=>{i?Ui(()=>{i()}):s.skipped=!0}});return Zp(),n}const UQ=e=>{td.push({type:"destroy",key:e}),Zp()},GQ=["success","info","warning","error","loading"],XQ={open:qQ,destroy:UQ,config:WQ,useMessage:lD,_InternalPanelDoNotUseOrYouWillBeFired:eD},Cn=XQ;GQ.forEach(e=>{Cn[e]=(...t)=>YQ(e,t)});const KQ=e=>{const{prefixCls:t,className:n,closeIcon:r,closable:i,type:s,title:c,children:d,footer:f,...p}=e,{getPrefixCls:g}=l.useContext(dt),h=g(),y=t||g("modal"),C=lr(h),[b,x]=sO(y,C),S=`${y}-confirm`;let $={};return s?$={closable:i??!1,title:"",footer:"",children:l.createElement(uO,{...e,prefixCls:y,confirmPrefixCls:S,rootPrefixCls:h,content:d})}:$={closable:i??!0,title:c,footer:f!==null&&l.createElement(oO,{...e}),children:d},l.createElement(XT,{prefixCls:y,className:Q(b,`${y}-pure-panel`,s&&S,s&&`${S}-${s}`,n,x,C),...p,closeIcon:rO(y,r),closable:i,...$})},QQ=vO(KQ);function gN(e){return Sd(pO(e))}const ao=cO;ao.useModal=I9;ao.info=function(t){return Sd(gO(t))};ao.success=function(t){return Sd(hO(t))};ao.error=function(t){return Sd(yO(t))};ao.warning=gN;ao.warn=gN;ao.confirm=function(t){return Sd(bO(t))};ao.destroyAll=function(){for(;Yi.length;){const t=Yi.pop();t&&t()}};ao.config=R9;ao._InternalPanelDoNotUseOrYouWillBeFired=QQ;const ZQ=e=>{const{componentCls:t,iconCls:n,antCls:r,zIndexPopup:i,colorText:s,colorWarning:c,marginXXS:d,marginXS:f,fontSize:p,fontWeightStrong:g,colorTextHeading:h}=e;return{[t]:{zIndex:i,[`&${r}-popover`]:{fontSize:p},[`${t}-message`]:{marginBottom:f,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${t}-message-icon ${n}`]:{color:c,fontSize:p,lineHeight:1,marginInlineEnd:f},[`${t}-title`]:{fontWeight:g,color:h,"&:only-child":{fontWeight:"normal"}},[`${t}-description`]:{marginTop:d,color:s}},[`${t}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:f}}}}},JQ=e=>{const{zIndexPopupBase:t}=e;return{zIndexPopup:t+60}},hN=zt("Popconfirm",e=>ZQ(e),JQ,{resetStyle:!1}),yN=e=>{const{prefixCls:t,okButtonProps:n,cancelButtonProps:r,title:i,description:s,cancelText:c,okText:d,okType:f="primary",icon:p=l.createElement(As,null),showCancel:g=!0,close:h,onConfirm:y,onCancel:C,onPopupClick:b,classNames:x,styles:S}=e,{getPrefixCls:$}=l.useContext(dt),[M]=oo("Popconfirm",xa.Popconfirm),w=Rs(i),R=Rs(s);return l.createElement("div",{className:`${t}-inner-content`,onClick:b},l.createElement("div",{className:`${t}-message`},p&&l.createElement("span",{className:`${t}-message-icon`},p),l.createElement("div",{className:`${t}-message-text`},w&&l.createElement("div",{className:Q(`${t}-title`,x?.title),style:S?.title},w),R&&l.createElement("div",{className:Q(`${t}-description`,x?.content),style:S?.content},R))),l.createElement("div",{className:`${t}-buttons`},g&&l.createElement(Ht,{onClick:C,size:"small",...r},c||M?.cancelText),l.createElement(VS,{buttonProps:{size:"small",...HS(f),...n},actionFn:y,close:h,prefixCls:$("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},d||M?.okText)))},eZ=e=>{const{prefixCls:t,placement:n,className:r,style:i,...s}=e,{getPrefixCls:c}=l.useContext(dt),d=c("popconfirm",t);return hN(d),l.createElement(UO,{placement:n,className:Q(d,r),style:i,content:l.createElement(yN,{prefixCls:d,...s})})},tZ=l.forwardRef((e,t)=>{const{prefixCls:n,placement:r="top",trigger:i,okType:s="primary",icon:c=l.createElement(As,null),children:d,overlayClassName:f,onOpenChange:p,overlayStyle:g,styles:h,arrow:y,classNames:C,...b}=e,{getPrefixCls:x,className:S,style:$,classNames:M,styles:w,arrow:R,trigger:T}=Pt("popconfirm"),[N,O]=Yt(e.defaultOpen??!1,e.open),P=KS(y,R),D=i||T||"click",k=(L,A)=>{O(L),p?.(L,A)},F=L=>{k(!1,L)},Y=L=>e.onConfirm?.call(void 0,L),G=L=>{k(!1,L),e.onCancel?.call(void 0,L)},V=(L,A)=>{const{disabled:j=!1}=e;j||k(L,A)},B=x("popconfirm",n),_={...e,placement:r,trigger:D,okType:s,overlayStyle:g,styles:h,classNames:C},[H,I]=Vt([M,C],[w,h],{props:_}),z=Q(B,S,f,H.root);return hN(B),l.createElement(GO,{arrow:P,...en(b,["title"]),trigger:D,placement:r,onOpenChange:V,open:N,ref:t,classNames:{root:z,container:H.container,arrow:H.arrow},styles:{root:{...$,...I.root,...g},container:I.container,arrow:I.arrow},content:l.createElement(yN,{okType:s,icon:c,...e,prefixCls:B,close:F,onConfirm:Y,onCancel:G,classNames:H,styles:I}),"data-popover-inject":!0},d)}),dS=tZ;dS._InternalPanelDoNotUseOrYouWillBeFired=eZ;const nZ={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,railColor:"#D9D9D9",railWidth:1,gapPosition:"bottom",loading:!1},rZ=()=>{const e=l.useRef([]),t=l.useRef(null);return l.useEffect(()=>{const n=Date.now();let r=!1;e.current.forEach(i=>{if(!i)return;r=!0;const s=i.style;s.transitionDuration=".3s, .3s, .3s, .06s",t.current&&n-t.current<100&&(s.transitionDuration="0s, 0s")}),r&&(t.current=Date.now())}),e.current},T4=({bg:e,children:t})=>l.createElement("div",{style:{width:"100%",height:"100%",background:e}},t);function O4(e,t){return Object.keys(e).map(n=>{const r=parseFloat(n),i=`${Math.floor(r*t)}%`;return`${e[n]} ${i}`})}const oZ=l.forwardRef((e,t)=>{const{prefixCls:n,color:r,gradientId:i,radius:s,className:c,style:d,ptg:f,strokeLinecap:p,strokeWidth:g,size:h,gapDegree:y}=e,C=r&&typeof r=="object",b=C?"#FFF":void 0,x=h/2,S=l.createElement("circle",{className:Q(`${n}-circle-path`,c),r:s,cx:x,cy:x,stroke:b,strokeLinecap:p,strokeWidth:g,opacity:f===0?0:1,style:d,ref:t});if(!C)return S;const $=`${i}-conic`,M=y?`${180+y/2}deg`:"0deg",w=O4(r,(360-y)/360),R=O4(r,1),T=`conic-gradient(from ${M}, ${w.join(", ")})`,N=`linear-gradient(to ${y?"bottom":"top"}, ${R.join(", ")})`;return l.createElement(l.Fragment,null,l.createElement("mask",{id:$},S),l.createElement("foreignObject",{x:0,y:0,width:h,height:h,mask:`url(#${$})`},l.createElement(T4,{bg:N},l.createElement(T4,{bg:T}))))}),tu=100,eb=(e,t,n,r,i,s,c,d,f,p,g=0)=>{const h=n/100*360*((360-s)/360),y=s===0?0:{bottom:0,top:180,left:90,right:-90}[c];let C=(100-r)/100*t;f==="round"&&r!==100&&(C+=p/2,C>=t&&(C=t-.01));const b=tu/2;return{stroke:typeof d=="string"?d:void 0,strokeDasharray:`${t}px ${e}`,strokeDashoffset:C+g,transform:`rotate(${i+h+y}deg)`,transformOrigin:`${b}px ${b}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}},aZ=(({id:e,loading:t})=>{if(!t)return{indeterminateStyleProps:{},indeterminateStyleAnimation:null};const n=`${e}-indeterminate-animate`;return{indeterminateStyleProps:{transform:"rotate(0deg)",animation:`${n} 1s linear infinite`},indeterminateStyleAnimation:ae.createElement("style",null,`@keyframes ${n} {
333
+ 0% { transform: rotate(0deg); }
334
+ 100% { transform: rotate(360deg); }
335
+ }`)}});function fS(){return fS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fS.apply(this,arguments)}function N4(e){const t=e??[];return Array.isArray(t)?t:[t]}const iZ=e=>{const{id:t,prefixCls:n,classNames:r={},styles:i={},steps:s,strokeWidth:c,railWidth:d,gapDegree:f=0,gapPosition:p,railColor:g,strokeLinecap:h,style:y,className:C,strokeColor:b,percent:x,loading:S,...$}={...nZ,...e},M=tu/2,w=Qo(t),R=`${w}-gradient`,T=M-c/2,N=Math.PI*2*T,O=f>0?90+f/2:-90,P=N*((360-f)/360),{count:D,gap:k}=typeof s=="object"?s:{count:s,gap:2},F=N4(x),Y=N4(b),G=Y.find(j=>j&&typeof j=="object"),B=G&&typeof G=="object"?"butt":h,{indeterminateStyleProps:_,indeterminateStyleAnimation:H}=aZ({id:w,loading:S}),I=eb(N,P,0,100,O,f,p,g,B,c),z=rZ(),L=()=>{let j=0;return F.map((q,X)=>{const K=Y[X]||Y[Y.length-1],J=eb(N,P,j,q,O,f,p,K,B,c);return j+=q,l.createElement(oZ,{key:X,color:K,ptg:q,radius:T,prefixCls:n,gradientId:R,className:r.track,style:{...J,..._,...i.track},strokeLinecap:B,strokeWidth:c,gapDegree:f,ref:Z=>{z[X]=Z},size:tu})}).reverse()},A=()=>{const j=Math.round(D*(F[0]/100)),q=100/D;let X=0;return new Array(D).fill(null).map((K,J)=>{const Z=J<=j-1?Y[0]:g,re=Z&&typeof Z=="object"?`url(#${R})`:void 0,ne=eb(N,P,X,q,O,f,p,Z,"butt",c,k);return X+=(P-ne.strokeDashoffset+k)*100/P,l.createElement("circle",{key:J,className:Q(`${n}-circle-path`,r.track),r:T,cx:M,cy:M,stroke:re,strokeWidth:c,opacity:1,style:{...ne,...i.track},ref:ie=>{z[J]=ie}})})};return l.createElement("svg",fS({className:Q(`${n}-circle`,r.root,C),viewBox:`0 0 ${tu} ${tu}`,style:{...i.root,...y},id:t,role:"presentation"},$),!D&&l.createElement("circle",{className:Q(`${n}-circle-rail`,r.rail),r:T,cx:M,cy:M,stroke:g,strokeLinecap:B,strokeWidth:d||c,style:{...I,...i.rail}}),D?A():L(),H)};function Ki(e){return!e||e<0?0:e>100?100:e}function hp({success:e}){let t;return e&&"percent"in e&&(t=e.percent),t}const lZ=({percent:e,success:t})=>{const n=Ki(hp({success:t}));return[n,Ki(Ki(e)-n)]},sZ=({success:e={},strokeColor:t})=>{const{strokeColor:n}=e;return[n||bs.green,t||null]},Jp=(e,t,n)=>{let r=-1,i=-1;if(t==="step"){const s=n.steps,c=n.strokeWidth;typeof e=="string"||typeof e>"u"?(r=e==="small"?2:14,i=c??8):typeof e=="number"?[r,i]=[e,e]:[r=14,i=8]=Array.isArray(e)?e:[e.width,e.height],r*=s}else if(t==="line"){const s=n?.strokeWidth;typeof e=="string"||typeof e>"u"?i=s||(e==="small"?6:8):typeof e=="number"?[r,i]=[e,e]:[r=-1,i=8]=Array.isArray(e)?e:[e.width,e.height]}else(t==="circle"||t==="dashboard")&&(typeof e=="string"||typeof e>"u"?[r,i]=e==="small"?[60,60]:[120,120]:typeof e=="number"?[r,i]=[e,e]:Array.isArray(e)&&(r=e[0]??e[1]??120,i=e[0]??e[1]??120));return[r,i]},cZ=3,uZ=e=>cZ/e*100,I4=["root","body","indicator"],dZ=e=>{const{prefixCls:t,classNames:n,styles:r,railColor:i,trailColor:s,strokeLinecap:c="round",gapPosition:d,gapPlacement:f,gapDegree:p,width:g=120,type:h,children:y,success:C,size:b=g,steps:x}=e,{direction:S}=Pt("progress"),$=i??s,[M,w]=Jp(b,"circle");let{strokeWidth:R}=e;R===void 0&&(R=Math.max(uZ(M),6));const T={width:M,height:w,fontSize:M*.15+6},N=l.useMemo(()=>{if(p||p===0)return p;if(h==="dashboard")return 75},[p,h]),O=lZ(e),P=l.useMemo(()=>{const B=(f??d)||h==="dashboard"&&"bottom"||void 0,_=S==="rtl";switch(B){case"start":return _?"right":"left";case"end":return _?"left":"right";default:return B}},[S,f,d,h]),D=Object.prototype.toString.call(e.strokeColor)==="[object Object]",k=sZ({success:C,strokeColor:e.strokeColor}),F=Q(`${t}-body`,{[`${t}-circle-gradient`]:D},n.body),Y=l.createElement(iZ,{steps:x,percent:x?O[1]:O,strokeWidth:R,railWidth:R,strokeColor:x?k[1]:k,strokeLinecap:c,railColor:$,prefixCls:t,gapDegree:N,gapPosition:P,classNames:en(n,I4),styles:en(r,I4)}),G=M<=20,V=l.createElement("div",{className:F,style:{...T,...r.body}},Y,!G&&y);return G?l.createElement(fr,{title:y},V):V},mS="--progress-line-stroke-color",fZ=e=>{const t="-100%";return new Dt("antProgressLTRActive",{"0%":{transform:`translateX(${t}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${t}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},mZ=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{...Zt(e),display:"inline-flex","&-rtl":{direction:"rtl"},[`${t}-indicator`]:{color:e.colorText,lineHeight:1,whiteSpace:"nowrap",verticalAlign:"middle",wordBreak:"normal",[n]:{fontSize:e.fontSize}},[`&${t}-status-exception`]:{[`${t}-indicator`]:{color:e.colorError}},[`&${t}-status-success`]:{[`${t}-indicator`]:{color:e.colorSuccess}}}}},pZ=e=>{const{componentCls:t}=e;return{[`${t}-line`]:{position:"relative",width:"100%",fontSize:e.fontSize,[`${t}-body`]:{display:"inline-flex",alignItems:"center",width:"100%",gap:e.marginXS},[`${t}-rail`]:{flex:"auto",background:e.remainingColor,borderRadius:e.lineBorderRadius,position:"relative",width:"100%"},[`&${t}-status-active`]:{[`${t}-track:after`]:{content:'""',position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:"inherit",opacity:0,animationName:fZ(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite"}},[`${t}-track`]:{position:"absolute",insetInlineStart:0,insetBlock:0,borderRadius:"inherit",background:e.defaultColor,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,minWidth:"max-content",display:"flex",alignItems:"center","&-success":{background:e.colorSuccess}},[`&${t}-status-exception`]:{[`${t}-track`]:{background:e.colorError}},[`&${t}-status-success`]:{[`${t}-track`]:{background:e.colorSuccess}},[`${t}-indicator-outer`]:{[`&${t}-indicator-start`]:{order:-1}},[`${t}-body-layout-bottom`]:{flexDirection:"column",alignItems:"center",gap:e.marginXXS},[`${t}-indicator${t}-indicator-inner`]:{color:e.colorWhite,paddingInline:e.paddingXXS,width:"100%",display:"flex",justifyContent:"center",[`&${t}-indicator-end`]:{justifyContent:"end"},[`&${t}-indicator-start`]:{justifyContent:"start"},[`&${t}-indicator-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}}},gZ=e=>{const{componentCls:t,iconCls:n}=e;return{[`${t}-circle`]:{[`${t}-circle-rail`]:{stroke:e.remainingColor},[`${t}-body:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.defaultColor}},[`${t}-body`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`${t}-indicator`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.circleTextColor,fontSize:e.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[n]:{fontSize:e.circleIconFontSize}},[`&${t}-status-exception`]:{[`${t}-body:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}}},[`&${t}-status-success`]:{[`${t}-body:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},hZ=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-body":{display:"flex",flexDirection:"row",alignItems:"center",gap:e.progressStepMarginInlineEnd,[`${t}-indicator`]:{marginInlineStart:e.marginXS}},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,backgroundColor:e.remainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.defaultColor}}}}}},yZ=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-indicator ${n}`]:{fontSize:e.fontSizeSM}}}},bZ=e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`}),vZ=zt("Progress",e=>{const t=e.calc(e.marginXXS).div(2).equal(),n=Nt(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[mZ(n),pZ(n),gZ(n),hZ(n),yZ(n)]},bZ),SZ=e=>{let t=[];return Object.keys(e).forEach(n=>{const r=Number.parseFloat(n.replace(/%/g,""));Number.isNaN(r)||t.push({key:r,value:e[n]})}),t=t.sort((n,r)=>n.key-r.key),t.map(({key:n,value:r})=>`${r} ${n}%`).join(", ")},CZ=(e,t)=>{const{from:n=bs.blue,to:r=bs.blue,direction:i=t==="rtl"?"to left":"to right",...s}=e;if(Object.keys(s).length!==0){const d=SZ(s),f=`linear-gradient(${i}, ${d})`;return{background:f,[mS]:f}}const c=`linear-gradient(${i}, ${n}, ${r})`;return{background:c,[mS]:c}},$Z=e=>{const{prefixCls:t,classNames:n,styles:r,direction:i,percent:s,size:c,strokeWidth:d,strokeColor:f,strokeLinecap:p="round",children:g,railColor:h,trailColor:y,percentPosition:C,success:b}=e,{align:x,type:S}=C,$=h??y,M=p==="square"||p==="butt"?0:void 0,w=c??[-1,d||(c==="small"?6:8)],[R,T]=Jp(w,"line",{strokeWidth:d}),N={backgroundColor:$||void 0,borderRadius:M,height:T},O=`${t}-track`,P=f&&typeof f!="string"?CZ(f,i):{[mS]:f,background:f},D={width:`${Ki(s)}%`,height:T,borderRadius:M,...P},k=hp(e),F={width:`${Ki(k)}%`,height:T,borderRadius:M,backgroundColor:b?.strokeColor};return l.createElement("div",{className:Q(`${t}-body`,n.body,{[`${t}-body-layout-bottom`]:x==="center"&&S==="outer"}),style:{width:R>0?R:"100%",...r.body}},l.createElement("div",{className:Q(`${t}-rail`,n.rail),style:{...N,...r.rail}},l.createElement("div",{className:Q(O,n.track),style:{...D,...r.track}},S==="inner"&&g),k!==void 0&&l.createElement("div",{className:Q(O,`${O}-success`,n.track),style:{...F,...r.track}})),S==="outer"&&g)},xZ=e=>{const{classNames:t,styles:n,size:r,steps:i,rounding:s=Math.round,percent:c=0,strokeWidth:d=8,strokeColor:f,railColor:p,trailColor:g,prefixCls:h,children:y}=e,C=s(i*(c/100)),x=r??[r==="small"?2:14,d],[S,$]=Jp(x,"step",{steps:i,strokeWidth:d}),M=S/i,w=Array.from({length:i}),R=p??g;for(let T=0;T<i;T++){const N=Array.isArray(f)?f[T]:f;w[T]=l.createElement("div",{key:T,className:Q(`${h}-steps-item`,{[`${h}-steps-item-active`]:T<=C-1},t.track),style:{backgroundColor:T<=C-1?N:R,width:M,height:$,...n.track}})}return l.createElement("div",{className:Q(`${h}-steps-body`,t.body),style:n.body},w,y)},wZ=["normal","exception","active","success"],EZ=l.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:i,classNames:s,styles:c,steps:d,strokeColor:f,percent:p=0,size:g="default",showInfo:h=!0,type:y="line",status:C,format:b,style:x,percentPosition:S={},...$}=e,{align:M="end",type:w="outer"}=S,R=Array.isArray(f)?f[0]:f,T=typeof f=="string"||Array.isArray(f)?f:void 0,N=l.useMemo(()=>{if(R){const Z=typeof R=="string"?R:Object.values(R)[0];return new Jt(Z).isLight()}return!1},[f]),O=l.useMemo(()=>{const Z=hp(e);return Number.parseInt(Z!==void 0?(Z??0)?.toString():(p??0)?.toString(),10)},[p,e.success]),P=l.useMemo(()=>!wZ.includes(C)&&O>=100?"success":C||"normal",[C,O]),{getPrefixCls:D,direction:k,className:F,style:Y,classNames:G,styles:V}=Pt("progress"),B=D("progress",n),[_,H]=vZ(B),I={...e,percent:p,type:y,size:g,showInfo:h,percentPosition:S},[z,L]=Vt([G,s],[V,c],{props:I}),A=y==="line",j=A&&!d,q=l.useMemo(()=>{if(!h)return null;const Z=hp(e);let re;const ne=b||(fe=>`${fe}%`),ie=A&&N&&w==="inner";return w==="inner"||b||P!=="exception"&&P!=="success"?re=ne(Ki(p),Ki(Z)):P==="exception"?re=A?l.createElement(zs,null):l.createElement(Yr,null):P==="success"&&(re=A?l.createElement(Ep,null):l.createElement(ul,null)),l.createElement("span",{className:Q(`${B}-indicator`,{[`${B}-indicator-bright`]:ie,[`${B}-indicator-${M}`]:j,[`${B}-indicator-${w}`]:j},z.indicator),style:L.indicator,title:typeof re=="string"?re:void 0},re)},[h,p,O,P,y,B,b,A,N,w,M,j,z.indicator,L.indicator]),X={...e,classNames:z,styles:L};let K;y==="line"?K=d?l.createElement(xZ,{...X,strokeColor:T,prefixCls:B,steps:typeof d=="object"?d.count:d},q):l.createElement($Z,{...X,strokeColor:R,prefixCls:B,direction:k,percentPosition:{align:M,type:w}},q):(y==="circle"||y==="dashboard")&&(K=l.createElement(dZ,{...X,strokeColor:R,prefixCls:B,progressStatus:P},q));const J=Q(B,`${B}-status-${P}`,{[`${B}-${y==="dashboard"&&"circle"||y}`]:y!=="line",[`${B}-inline-circle`]:y==="circle"&&Jp(g,"circle")[0]<=20,[`${B}-line`]:j,[`${B}-line-align-${M}`]:j,[`${B}-line-position-${w}`]:j,[`${B}-steps`]:d,[`${B}-show-info`]:h,[`${B}-${g}`]:typeof g=="string",[`${B}-rtl`]:k==="rtl"},F,r,i,z.root,_,H);return l.createElement("div",{ref:t,style:{...Y,...L.root,...x},className:J,role:"progressbar","aria-valuenow":O,"aria-valuemin":0,"aria-valuemax":100,...en($,["railColor","trailColor","strokeWidth","width","gapDegree","gapPosition","gapPlacement","strokeLinecap","success"])},K)});function MZ(e){const{prefixCls:t,className:n,style:r,status:i}=e,s=`${t}-rail`;return l.createElement("div",{className:Q(s,`${s}-${i}`,n),style:r})}const RZ=l.createContext({}),w1=l.createContext(null);function pS(){return pS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pS.apply(this,arguments)}const bN=l.createContext({}),P4=l.forwardRef((e,t)=>{const{className:n,style:r,children:i,...s}=e,{prefixCls:c,classNames:d,styles:f}=l.useContext(w1),{className:p,style:g}=l.useContext(bN),h=`${c}-item`;return l.createElement("div",pS({},In(s,!1),{ref:t,className:Q(`${h}-icon`,d.itemIcon,p,n),style:{...f.itemIcon,...g,...r}}),i)});function gS(){return gS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gS.apply(this,arguments)}function tb(e){return e!=null}function TZ(e){const{prefixCls:t,classNames:n,styles:r,data:i,last:s,nextStatus:c,active:d,index:f,itemRender:p,iconRender:g,itemWrapperRender:h,onClick:y}=e,C=`${t}-item`,{railFollowPrevStatus:b}=l.useContext(RZ),{ItemComponent:x}=l.useContext(w1),{onClick:S,title:$,subTitle:M,content:w,description:R,disabled:T,icon:N,status:O,className:P,style:D,classNames:k={},styles:F={},...Y}=i,G=w??R,V={item:{...i,content:G},index:f,active:d},B=!!(y||S)&&!T,_={};B&&(_.role="button",_.tabIndex=0,_.onClick=X=>{S?.(X),y(f)},_.onKeyDown=X=>{const{which:K}=X;(K===nt.ENTER||K===nt.SPACE)&&y(f)});const H=O||"wait",I=tb($),z=tb(M),L=Q(C,`${C}-${H}`,{[`${C}-custom`]:N,[`${C}-active`]:d,[`${C}-disabled`]:T===!0,[`${C}-empty-header`]:!I&&!z},P,n.item,k.root);let A=l.createElement(P4,null);g&&(A=g(A,{...V,components:{Icon:P4}}));const j=l.createElement("div",{className:Q(`${C}-wrapper`,n.itemWrapper,k.wrapper),style:{...r.itemWrapper,...F.wrapper}},l.createElement(bN.Provider,{value:{className:k.icon,style:F.icon}},A),l.createElement("div",{className:Q(`${C}-section`,n.itemSection,k.section),style:{...r.itemSection,...F.section}},l.createElement("div",{className:Q(`${C}-header`,n.itemHeader,k.header),style:{...r.itemHeader,...F.header}},I&&l.createElement("div",{className:Q(`${C}-title`,n.itemTitle,k.title),style:{...r.itemTitle,...F.title}},$),z&&l.createElement("div",{title:typeof M=="string"?M:void 0,className:Q(`${C}-subtitle`,n.itemSubtitle,k.subtitle),style:{...r.itemSubtitle,...F.subtitle}},M),!s&&l.createElement(MZ,{prefixCls:C,className:Q(n.itemRail,k.rail),style:{...r.itemRail,...F.rail},status:b?O:c})),tb(G)&&l.createElement("div",{className:Q(`${C}-content`,n.itemContent,k.content),style:{...r.itemContent,...F.content}},G)));let q=l.createElement(x,gS({},Y,_,{className:L,style:{...r.item,...F.root,...D}}),h?h(j):j);return p&&(q=p(q,V)||null),q}function hS(){return hS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hS.apply(this,arguments)}const z4={};function OZ(e){const{prefixCls:t="rc-steps",style:n,className:r,classNames:i=z4,styles:s=z4,rootClassName:c,orientation:d,titlePlacement:f,components:p,status:g="process",current:h=0,initial:y=0,onChange:C,items:b,iconRender:x,itemRender:S,itemWrapperRender:$,...M}=e,w=d==="vertical",R=w?"vertical":"horizontal",T=!w&&f==="vertical"?"vertical":"horizontal",N=Q(t,`${t}-${R}`,`${t}-title-${T}`,c,r,i.root),O=ae.useMemo(()=>(b||[]).filter(Boolean),[b]),P=ae.useMemo(()=>O.map(({status:V},B)=>{const _=y+B;return V||(_===h?g:_<h?"finish":"wait")}),[O,g,h,y]),D=V=>{C&&h!==V&&C(V)},{root:k="div",item:F="div"}=p||{},Y=ae.useMemo(()=>({prefixCls:t,classNames:i,styles:s,ItemComponent:F}),[t,i,s,F]),G=(V,B)=>{const _=y+B,H=P[B],I=P[B+1],z={...V,status:H};return ae.createElement(TZ,{key:_,prefixCls:t,classNames:i,styles:s,data:z,nextStatus:I,active:_===h,index:_,last:O.length-1===B,iconRender:x,itemRender:S,itemWrapperRender:$,onClick:C&&D})};return ae.createElement(k,hS({className:N,style:{...n,...s?.root}},M),ae.createElement(w1.Provider,{value:Y},O.map(G)))}const NZ=l.createContext(null);function IZ(e){const{prefixCls:t}=e;return l.createElement("svg",{className:`${t}-panel-arrow`,viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"none"},l.createElement("title",null,"Arrow"),l.createElement("path",{d:"M 0 0 L 100 50 L 0 100"}))}function PZ(e){const{prefixCls:t,children:n,percent:r}=e,i=`${t}-item-progress-icon`,s=`${i}-circle`,c=`calc(var(--progress-r) * 2 * ${Math.PI*r/100}) 9999`;return l.createElement(l.Fragment,null,l.createElement("svg",{className:`${i}-svg`,viewBox:"0 0 100 100",width:"100%",height:"100%",xmlns:"http://www.w3.org/2000/svg","aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":r},l.createElement("title",null,"Progress"),l.createElement("circle",{className:Q(s,`${s}-rail`)}),l.createElement("circle",{className:Q(s,`${s}-ptg`),strokeDasharray:c,transform:"rotate(-90 50 50)"})),n)}const zZ=e=>{const{componentCls:t}=e,n=`${t}-item`;return{[`${t}-horizontal`]:{[`> ${n}`]:{flex:"1 1 auto",minWidth:e.iconSize,[`${n}-rail`]:{"--steps-horizontal-rail-margin":"calc(var(--steps-icon-size-max) / 2 + var(--steps-item-wrapper-padding-top))",position:"static",marginTop:"var(--steps-horizontal-rail-margin)",width:"auto",borderBlockStartWidth:"var(--steps-rail-size)",flex:1,minWidth:0,alignSelf:"flex-start",transform:"translateY(-50%)"}}}}},AZ=e=>{const{componentCls:t,customIconFontSize:n,motionDurationSlow:r}=e,i=`${t}-item`;return{[t]:{"--steps-icon-size":e.iconSize,"--steps-icon-border-width":e.lineWidth,[`${i}-icon`]:{width:"var(--steps-icon-size)",height:"var(--steps-icon-size)",margin:0,flex:"none",display:"flex",alignItems:"center",justifyContent:"center",fontSize:e.iconFontSize,fontFamily:e.fontFamily,lineHeight:"var(--steps-icon-size)",textAlign:"center",borderRadius:"var(--steps-icon-size)",border:`var(--steps-icon-border-width) ${e.lineType} transparent`,transition:["background","border","color","inset","transform"].map(s=>`${s} ${r}`).join(", "),zIndex:1},[`${i}-custom ${i}-icon`]:{background:"none",border:0,fontSize:n}}}},DZ=e=>{const{componentCls:t,inlineDotSize:n}=e,r=e.calc(e.paddingXS).add(e.lineWidth).equal(),i=`${t}-item`;return{[`${t}-inline`]:{"--steps-items-offset":"0","--steps-item-wrapper-padding-top":r,display:"inline-flex","&:before":{content:'""',flex:"var(--steps-items-offset)"},[i]:{"--steps-title-vertical-row-gap":e.paddingXS,"--steps-icon-size":n,"--steps-icon-size-active":n,"--steps-title-font-size":e.fontSizeSM,"--steps-title-line-height":e.lineHeightSM,"--steps-item-title-color":e.colorTextSecondary,"--steps-subtitle-font-size":e.fontSizeSM,"--steps-subtitle-line-height":e.lineHeightSM,"--steps-item-subtitle-color":e.colorTextQuaternary,"--steps-rail-size":e.lineWidth,"--steps-title-horizontal-rail-gap":"0px",flex:1,"&-wrapper":{paddingInline:e.paddingXXS,marginInline:e.calc(e.marginXXS).div(2).equal(),borderRadius:e.borderRadiusSM,cursor:"pointer",transition:`background ${e.motionDurationMid}`,"&:hover":{background:e.controlItemBgHover}},"&-icon":{[`${i}-icon-dot`]:{"&:after":{display:"none"}}},"&-title":{fontWeight:"normal",whiteSpace:"nowrap"},"&-content":{display:"none"}}}}};function jZ(e){return(e||"--ant-not-exist").replace(/var\((.*)\)/,"$1")}function E1(e,t,n){const{calc:r,componentCls:i,descriptionMaxWidth:s}=e,c=`${i}-item`;return{[`@container style(${jZ(s)})`]:[{[`${c}-icon`]:{marginInlineStart:r(s).sub("var(--steps-icon-size)").div(2).equal()},[`${c}-rail`]:{width:"auto",insetInlineStart:r(s).add("var(--steps-icon-size)").div(2).add(t).equal(),insetInlineEnd:r(s).sub("var(--steps-icon-size)").div(2).sub(t).mul(-1).equal()}},n]}}const _Z=e=>{const{componentCls:t,descriptionMaxWidth:n,marginXS:r,fontHeightLG:i,calc:s}=e,c=`${t}-item`;return{[t]:{"--steps-icon-size-max":"max(var(--steps-icon-size), var(--steps-icon-size-active, var(--steps-icon-size)))",[`${c}-icon`]:{marginBlockStart:"calc((var(--steps-heading-height) - var(--steps-icon-size)) / 2)"}},[`${t}-title-horizontal`]:{"--steps-title-horizontal-item-margin":e.margin,"--steps-title-horizontal-rail-margin":e.margin,"--steps-title-horizontal-title-height":i,"--steps-heading-height":"max(var(--steps-icon-size), var(--steps-title-horizontal-title-height))",[`&${t}-horizontal, &${t}-horizontal-alternate`]:{[`${c}:not(:first-child)`]:{marginInlineStart:"var(--steps-title-horizontal-item-margin)"},[`${c}:last-child`]:{flex:"0 1 auto"},[`${c}-wrapper`]:{columnGap:e.marginXS}},[`&${t}-vertical`]:{[`${c}-wrapper`]:{columnGap:e.margin},[`${c}-empty-header`]:{[`${c}-header`]:{minHeight:"auto"},[`${c}-content`]:{marginTop:s("var(--steps-heading-height)").sub(e.fontHeight).div(2).equal()}}},[`${c}-section`]:{flex:1,minWidth:0},[`${c}-header`]:{minHeight:"var(--steps-heading-height)"},[`${c}-title`]:{flex:"0 1 auto"},[`${c}-content`]:{maxWidth:n},[`${c}-subtitle`]:{flex:"0 9999 auto"},[`&${t}-horizontal ${c}-rail`]:{"--steps-item-wrapper-padding-top":"0px",flex:1,marginInlineStart:"var(--steps-title-horizontal-rail-margin)"}},[`${t}-title-vertical`]:{"--steps-title-vertical-row-gap":e.paddingSM,"--steps-title-horizontal-rail-gap":e.marginXXS,"--steps-heading-height":"var(--steps-icon-size-max)",[`> ${c}`]:{flex:1,[`${c}-wrapper`]:{flexDirection:"column",rowGap:"var(--steps-title-vertical-row-gap)",alignItems:"center"},[`${c}-section`]:{alignSelf:"stretch"},[`${c}-header`]:{flexDirection:"column",alignItems:"center"},[`${c}-title, ${c}-subtitle, ${c}-content`]:{textAlign:"center",maxWidth:"100%"},[`${c}-subtitle`]:{margin:0},[`${c}-rail`]:{position:"absolute",top:0,width:"calc(100% - var(--steps-icon-size) - var(--steps-title-horizontal-rail-gap) * 2)",insetInlineStart:"calc(50% + var(--steps-icon-size) / 2 + var(--steps-title-horizontal-rail-gap))"}},...E1(e,r,{[`${c}:last-child`]:{flex:"none"},[`${c}-icon`]:{alignSelf:"flex-start"},[`${c}-section`]:{width:n}})}}},HZ=e=>{const{componentCls:t,fontSizeIcon:n,calc:r,navContentMaxWidth:i,navArrowColor:s,colorPrimary:c,motionDurationSlow:d}=e,f=`${t}-item`,p=c;return{[`${t}${t}-navigation`]:{[f.repeat(4)]:{display:"flex",justifyContent:"center",position:"relative",flex:1,marginInlineStart:0,[`${f}-wrapper`]:{paddingBlock:e.paddingSM},[`${f}-section`]:{maxWidth:i},[`${f}-rail`]:{display:"none"},"&:before":{position:"absolute",display:"block",backgroundColor:p,transition:`all ${d}`,transitionTimingFunction:"ease-out",content:'""'},"&:not(:last-child):after":{position:"absolute",display:"block",borderTop:`${te(e.lineWidth)} ${e.lineType} ${s}`,borderBottom:"none",borderInlineStart:"none",borderInlineEnd:`${te(e.lineWidth)} ${e.lineType} ${s}`,content:'""'},[`&${f}-active`]:{"--steps-item-content-active-color":"var(--steps-item-content-color)","--steps-item-icon-active-bg-color":"var(--steps-item-icon-bg-color)","--steps-item-icon-active-border-color":"var(--steps-item-icon-border-color)","--steps-item-icon-active-text-color":"var(--steps-item-icon-text-color)"}},[`&${t}-horizontal`]:{[f]:{"&:before":{bottom:0,insetInlineStart:"50%",width:0,height:e.lineWidthBold},[`&${f}-active:before`]:{insetInlineStart:0,width:"100%"},"&:not(:last-child):after":{top:"50%",insetInlineStart:r(n).div(2).mul(-1).add("100%").equal(),width:n,height:n,transform:"translateY(-50%) rotate(45deg)"}}},[`&${t}-vertical`]:{[f.repeat(4)]:{[`${f}-content`]:{padding:0},"&:before":{insetInlineEnd:0,top:"50%",width:e.lineWidthBold,height:0},[`&${f}-active::before`]:{top:0,height:"100%"},"&:not(:last-child):after":{left:{_skip_check_:!0,value:"50%"},top:"100%",width:r(n).div(3).mul(2).equal(),height:r(n).div(3).mul(2).equal(),transform:"translateY(-50%) translateX(-50%) rotate(135deg)"}}}}}},BZ=e=>{const{componentCls:t,calc:n,lineWidthBold:r,borderRadius:i,borderRadiusSM:s,motionDurationMid:c}=e,d=`${t}-item`,f=`${te(r)} ${e.lineType} var(--steps-panel-border-color)`;return{[`${t}${t}-panel`]:[{[`${d}-rail`]:{display:"none"},[`&${t}-horizontal`]:{alignItems:"stretch",[d]:{flex:1,margin:0}}},{"&":{"--steps-panel-padding":e.paddingSM,"--steps-item-border-radius":i,[d]:{"--steps-panel-bg-color":"var(--steps-item-icon-bg-color)","--steps-panel-border-color":"var(--steps-item-icon-border-color)","--steps-panel-active-bg-color":"var(--steps-item-icon-active-bg-color)","--steps-panel-active-border-color":"var(--steps-item-icon-active-border-color)","--steps-panel-title-height":"calc(var(--steps-title-font-size) * var(--steps-title-line-height))","--steps-item-base-height":n("var(--steps-panel-padding)").mul(2).add("var(--steps-icon-size)").add("var(--steps-panel-title-height)").equal(),"--steps-item-base-width":"calc(var(--steps-item-base-height) * 0.7071)",transition:`background ${c}`}},[`${d}-icon`]:{display:"none"},[`${d}-header`]:{minHeight:"auto"},[`${t}-panel-arrow`]:{position:"absolute",top:n(r).mul(-1).equal(),insetInlineStart:"100%",zIndex:1,height:n(r).mul(2).add("100%").equal(),width:"var(--steps-item-base-width)",overflow:"visible",strokeLinecap:"round",path:{fill:"var(--steps-panel-bg-color)",stroke:"var(--steps-panel-border-color)",strokeWidth:r,vectorEffect:"non-scaling-stroke",transition:`fill ${c}`}},[`${d}:last-child ${t}-panel-arrow`]:{display:"none"},[d]:{padding:"var(--steps-panel-padding)",background:"var(--steps-panel-bg-color)",position:"relative",borderBlock:f,"&:not(:first-child)":{paddingInlineStart:"calc(var(--steps-panel-padding) + var(--steps-item-base-width))"},"&:first-child":{borderInlineStart:f,borderStartStartRadius:"var(--steps-item-border-radius)",borderEndStartRadius:"var(--steps-item-border-radius)"},"&:last-child":{borderInlineEnd:f,borderStartEndRadius:"var(--steps-item-border-radius)",borderEndEndRadius:"var(--steps-item-border-radius)"},"&-active":{background:"var(--steps-panel-active-bg-color)",borderColor:"var(--steps-panel-active-border-color)",[`${t}-panel-arrow`]:{path:{fill:"var(--steps-panel-active-bg-color)",stroke:"var(--steps-panel-active-border-color)"}},[`${d}-title, ${d}-subtitle, ${d}-content`]:{color:"var(--steps-item-icon-active-text-color)"}}}},{[`&${t}-small`]:{"--steps-panel-padding":e.paddingXS,"--steps-item-border-radius":s}},{[`&${t}-filled`]:{[d]:{"&:not(:first-child)":{clipPath:`polygon(${[`${te(r)} 0`,"calc(100% + var(--steps-item-base-width)) 0","calc(100% + var(--steps-item-base-width)) 100%",`${te(r)} 100%`,`calc(var(--steps-item-base-width) + ${te(r)}) 50%`].join(",")})`}}}},{[`&${t}-outlined`]:{[`${t}-panel-arrow`]:{top:n(r).div(2).mul(-1).equal(),height:n(r).add("100%").equal()}}}]}},LZ=e=>{const{calc:t,antCls:n,componentCls:r,iconSize:i,iconSizeSM:s,lineWidthBold:c,paddingXXS:d}=e,f=`${r}-item`,p=e.calc(i).add(e.calc(c).mul(4).equal()).equal(),g=e.calc(s).add(e.calc(e.lineWidth).mul(4).equal()).equal(),h=t(c).add(c).equal();return{[`${r}${r}-with-progress`]:{"--steps-item-wrapper-padding-top":h,[`${f}${f}-process`]:{[`${f}-icon`]:{position:"relative"}},[`${f}-progress-icon`]:{"&-svg":{"--steps-svg-size":t(h).mul(2).add("var(--steps-icon-size)").equal(),"--icon-size-ptg-unitless":"calc(100 / tan(atan2(var(--steps-svg-size),1px)))",fontSize:"var(--steps-svg-size)",lineHeight:"var(--icon-size-ptg-unitless)",position:"absolute",inset:t(h).mul(-1).equal(),width:"auto",height:"auto"},"&-circle":{lineHeight:"var(--icon-size-ptg-unitless)",strokeWidth:t("var(--icon-size-ptg-unitless)").mul(c).equal(),"--progress-r":t("var(--steps-svg-size)").sub(c).mul("var(--icon-size-ptg-unitless)").div(2).equal(),r:"var(--progress-r)",fill:"none",cx:50,cy:50,transition:`all ${e.motionDurationSlow} ease-in-out`,"&-rail":{stroke:e.colorSplit},"&-ptg":{stroke:e.colorPrimary}}}},[`&${r}-with-progress11`]:{[f]:{paddingTop:d,paddingInlineStart:d},[`${f}-icon`]:{position:"relative",[`${n}-progress`]:{position:"absolute",left:{_skip_check_:!0,value:"50%"},top:"50%",transform:"translate(-50%, -50%)","&-body":{width:`${te(p)} !important`,height:`${te(p)} !important`}}},[`&${r}-small`]:{[`${f}-icon ${n}-progress-body`]:{width:`${te(g)} !important`,height:`${te(g)} !important`}}}}},VZ=e=>{const{componentCls:t,iconSize:n,dotSize:r,dotCurrentSize:i,marginXXS:s,lineWidthBold:c,fontSizeSM:d}=e,f=`${t}-item`;return{[`${t}${t}-dot`]:{"--steps-icon-size-active":i,"--steps-icon-size":r,"--steps-dot-icon-size":r,"--steps-dot-icon-border-width":e.lineWidthBold,"--steps-rail-size":c,"--steps-icon-border-width":c,[`${f}-custom ${f}-icon`]:{fontSize:d},[`${f}-icon`]:{position:"relative","&:after":{content:'""',width:n,height:n,display:"block",position:"absolute",top:"50%",left:{_skip_check_:!0,value:"50%"},transform:"translate(-50%, -50%)"}},[`${f}-active ${f}-icon`]:{"--steps-icon-size":"var(--steps-icon-size-active)"},[`&${t}-horizontal`]:{[`&, &${t}-small`]:E1(e,s)}}}},FZ=e=>{const{componentCls:t,lineWidthBold:n}=e,r=`${t}-item`;return{[`${t}${t}-rtl`]:{direction:"rtl",[`&${t}-navigation${t}-horizontal`]:{[`${r}:after`]:{transform:"translateY(-50%) rotate(-45deg)"}},[`&${t}-panel`]:{[`${t}-panel-arrow`]:{transform:"scaleX(-1)"},[`&${t}-filled`]:{[r]:{"&:not(:first-child)":{clipPath:`polygon(${["calc(0px - var(--steps-item-base-width)) 0px",`calc(100% - ${te(n)}) 0px`,`calc(100% - var(--steps-item-base-width) - ${te(n)}) 50%`,`calc(100% - ${te(n)}) 100%`,"calc(0px - var(--steps-item-base-width)) 100%"].join(",")})`}}}}}}},kZ=e=>{const{componentCls:t,iconSizeSM:n,fontSize:r,lineHeight:i,marginXS:s}=e;return{[`${t}${t}-small`]:{"--steps-icon-size":n,"--steps-title-horizontal-item-margin":e.marginSM,"--steps-title-vertical-row-gap":e.paddingXS,"--steps-title-font-size":r,"--steps-title-line-height":i,"--steps-title-horizontal-rail-margin":e.marginXS,"--steps-title-horizontal-title-height":e.fontHeight,[`&${t}-horizontal${t}-title-vertical`]:E1(e,s)}}},im="wait",lm="process",sm="finish",cm="error",WZ=e=>{const{componentCls:t,colorTextDisabled:n,colorTextLightSolid:r,colorPrimary:i,colorTextLabel:s,colorError:c,colorText:d,colorTextDescription:f,colorBgContainer:p,colorPrimaryHover:g}=e,h=`${t}-item`;return{[t]:[{[h]:{"--steps-item-solid-line-color":"#000","--steps-item-title-color":"#000","--steps-item-content-color":"#000","--steps-item-subtitle-color":"var(--steps-item-content-color)","--steps-item-icon-custom-color":"#000","--steps-item-icon-bg-color":"#000","--steps-item-icon-border-color":"#000","--steps-item-icon-text-color":"#fff","--steps-item-icon-dot-color":"#000","--steps-item-icon-dot-bg-color":"var(--steps-item-icon-dot-color)","--steps-item-icon-dot-border-color":"var(--steps-item-icon-dot-color)","--steps-item-text-hover-color":"#000","--steps-item-icon-bg-hover-color":"var(--steps-item-icon-bg-color)","--steps-item-icon-border-hover-color":"var(--steps-item-icon-border-color)","--steps-item-icon-text-hover-color":"var(--steps-item-icon-text-color)","--steps-item-content-active-color":"var(--steps-item-content-color)","--steps-item-icon-active-bg-color":"var(--steps-item-icon-bg-color)","--steps-item-icon-active-border-color":"var(--steps-item-icon-border-color)","--steps-item-icon-active-text-color":"var(--steps-item-icon-text-color)","--steps-item-process-rail-line-style":e.lineType},[`${h}-rail`]:{borderColor:"var(--steps-item-solid-line-color)"},[`${h}-custom ${h}-icon`]:{color:"var(--steps-item-icon-custom-color)"},[`${h}-title`]:{color:"var(--steps-item-title-color)"},[`${h}-subtitle`]:{color:"var(--steps-item-subtitle-color)"},[`${h}-content`]:{color:"var(--steps-item-content-color)"},[`${h}-active ${h}-icon`]:{},[`${h}-active ${h}-content`]:{color:"var(--steps-item-content-active-color)"},[`${h}[role='button']:not(${h}-active):hover`]:{[`${h}-title, ${h}-content`]:{color:"var(--steps-item-text-hover-color)"}},[`&:not(${t}-dot)`]:{[`${h}:not(${h}-custom)`]:{[`${h}-icon`]:{background:"var(--steps-item-icon-bg-color)",borderColor:"var(--steps-item-icon-border-color)",color:"var(--steps-item-icon-text-color)"},[`&[role='button']:not(${h}-active):hover`]:{[`${h}-icon`]:{background:"var(--steps-item-icon-bg-hover-color)",borderColor:"var(--steps-item-icon-border-hover-color)",color:"var(--steps-item-icon-text-hover-color)"}},[`&${h}-active`]:{[`${h}-icon`]:{background:"var(--steps-item-icon-active-bg-color)",borderColor:"var(--steps-item-icon-active-border-color)",color:"var(--steps-item-icon-active-text-color)"}}}},[`&${t}-dot`]:{[`${h}-icon`]:{background:"var(--steps-item-icon-dot-bg-color)",borderColor:"var(--steps-item-icon-dot-border-color)",color:"var(--steps-item-icon-dot-color)",[`&${h}-icon-dot-custom`]:{background:"transparent",border:"none"}}}},{[`${h}-${im}`]:{"--steps-item-icon-custom-color":n,"--steps-item-title-color":f,"--steps-item-content-color":f,"--steps-item-content-active-color":d,"--steps-item-text-hover-color":g},[`${h}-rail-${im}`]:{"--steps-item-solid-line-color":n},[`${h}-${lm}`]:{"--steps-item-icon-custom-color":i,"--steps-item-title-color":d,"--steps-item-content-color":f,"--steps-item-content-active-color":d,"--steps-item-text-hover-color":g},[`${h}-rail-${lm}`]:{"--steps-item-solid-line-color":i,"--steps-rail-line-style":"var(--steps-item-process-rail-line-style)"},[`${h}-${sm}`]:{"--steps-item-icon-custom-color":i,"--steps-item-title-color":d,"--steps-item-content-color":f,"--steps-item-content-active-color":d,"--steps-item-text-hover-color":g},[`${h}-rail-${sm}`]:{"--steps-item-solid-line-color":i},[`${h}-${cm}`]:{"--steps-item-icon-custom-color":c,"--steps-item-title-color":c,"--steps-item-content-color":c,"--steps-item-content-active-color":c,"--steps-item-text-hover-color":e.colorErrorHover},[`${h}-rail-${cm}`]:{"--steps-item-solid-line-color":c}},{[`&${t}-filled`]:{[h]:{"--steps-item-icon-dot-border-color":"transparent"},[`${h}-${im}`]:{"--steps-item-icon-bg-color":e.colorFillTertiary,"--steps-item-icon-border-color":"transparent","--steps-item-icon-text-color":s,"--steps-item-icon-dot-bg-color":n,"--steps-item-icon-bg-hover-color":e.colorPrimaryBgHover,"--steps-item-icon-border-hover-color":"transparent","--steps-item-icon-text-hover-color":i,"--steps-item-icon-active-bg-color":i,"--steps-item-icon-active-border-color":"transparent","--steps-item-icon-active-text-color":r},[`${h}-${lm}, ${h}-${sm}`]:{"--steps-item-icon-bg-color":e.colorPrimaryBg,"--steps-item-icon-border-color":"transparent","--steps-item-icon-text-color":i,"--steps-item-icon-dot-bg-color":i,"--steps-item-icon-bg-hover-color":e.colorPrimaryBgHover,"--steps-item-icon-border-hover-color":"transparent","--steps-item-icon-text-hover-color":i,"--steps-item-icon-active-bg-color":i,"--steps-item-icon-active-border-color":"transparent","--steps-item-icon-active-text-color":r},[`${h}-${cm}`]:{"--steps-item-icon-bg-color":e.colorErrorBg,"--steps-item-icon-border-color":"transparent","--steps-item-icon-text-color":c,"--steps-item-icon-dot-bg-color":c,"--steps-item-icon-bg-hover-color":e.colorErrorBgFilledHover,"--steps-item-icon-border-hover-color":"transparent","--steps-item-icon-text-hover-color":c,"--steps-item-icon-active-bg-color":c,"--steps-item-icon-active-border-color":"transparent","--steps-item-icon-active-text-color":r}}},{[`&${t}-outlined`]:{[h]:{"--steps-item-icon-dot-bg-color":"transparent"},[`${h}-${im}`]:{"--steps-item-icon-bg-color":p,"--steps-item-icon-border-color":n,"--steps-item-icon-text-color":n,"--steps-item-icon-dot-color":n,"--steps-item-icon-bg-hover-color":"transparent","--steps-item-icon-border-hover-color":g,"--steps-item-icon-text-hover-color":g,"--steps-item-icon-active-bg-color":e.colorFillTertiary},[`${h}-${lm}, ${h}-${sm}`]:{"--steps-item-icon-bg-color":p,"--steps-item-icon-border-color":i,"--steps-item-icon-text-color":i,"--steps-item-icon-dot-color":i,"--steps-item-icon-bg-hover-color":"transparent","--steps-item-icon-border-hover-color":e.colorPrimaryHover,"--steps-item-icon-text-hover-color":e.colorPrimaryHover,"--steps-item-icon-active-bg-color":e.colorPrimaryBg},[`${h}-${cm}`]:{"--steps-item-icon-bg-color":p,"--steps-item-icon-border-color":c,"--steps-item-icon-text-color":c,"--steps-item-icon-dot-color":c,"--steps-item-icon-bg-hover-color":"transparent","--steps-item-icon-border-hover-color":e.colorErrorHover,"--steps-item-icon-text-hover-color":e.colorErrorHover,"--steps-item-icon-active-bg-color":e.colorErrorBg}}}]}},qZ=e=>{const{componentCls:t,calc:n}=e,r=`${t}-item`;return{[`${t}-vertical`]:{"--steps-vertical-rail-margin":n(e.marginXXS).mul(1.5).equal(),flexDirection:"column",alignItems:"stretch",[`> ${r}`]:{minHeight:n(e.controlHeight).mul(1.5).equal(),paddingBottom:e.paddingSM,"&:last-child":{paddingBottom:0},[`${r}-icon`]:{marginInlineStart:"calc((var(--steps-icon-size-max) - var(--steps-icon-size)) / 2)"},[`${r}-rail`]:{"--steps-rail-offset":n("var(--steps-heading-height)").sub("var(--steps-icon-size)").div(2).equal(),borderInlineStartWidth:"var(--steps-rail-size)",position:"absolute",top:n("var(--steps-icon-size)").add("var(--steps-item-wrapper-padding-top)").add("var(--steps-rail-offset)").add("var(--steps-vertical-rail-margin)").equal(),insetInlineStart:n("var(--steps-icon-size-max)").div(2).equal(),bottom:n("var(--steps-vertical-rail-margin)").sub("var(--steps-rail-offset)").equal(),marginInlineStart:"calc(var(--steps-rail-size) / -2)"}}}}},YZ=e=>{const{componentCls:t}=e,n=`${t}-item`;return{[t]:{"--steps-title-font-size":e.fontSizeLG,"--steps-title-line-height":e.lineHeightLG,"--steps-subtitle-font-size":e.fontSize,"--steps-subtitle-line-height":e.lineHeight,"--steps-item-wrapper-padding-top":"0px","--steps-rail-size":e.lineWidth,"--steps-rail-line-style":e.lineType,...Zt(e),display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[n]:{flex:"none",position:"relative"},[`${n}-wrapper`]:{display:"flex",flexWrap:"nowrap",paddingTop:"var(--steps-item-wrapper-padding-top)"},[`${n}-header`]:{display:"flex",flexWrap:"nowrap",alignItems:"center"},[`${n}-title`]:{color:e.colorText,fontSize:"var(--steps-title-font-size)",lineHeight:"var(--steps-title-line-height)",wordBreak:"break-word"},[`${n}-subtitle`]:{color:e.colorTextDescription,fontWeight:"normal",fontSize:"var(--steps-subtitle-font-size)",lineHeight:"var(--steps-subtitle-line-height)",marginInlineStart:e.marginXS,wordBreak:"break-word"},[`${n}-content`]:{color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight,wordBreak:"break-word"},[`${n}-rail`]:{borderStyle:"var(--steps-rail-line-style)",borderWidth:0},[`${n}-title, ${n}-subtitle, ${n}-content, ${n}-rail`]:{transition:`all ${e.motionDurationSlow}`},[`&${t}-ellipsis`]:{[`${n}-title, ${n}-subtitle, ${n}-content`]:$o},[`${n}[role='button']:not(${n}-active):hover`]:{cursor:"pointer"}}}},UZ=e=>({titleLineHeight:e.controlHeight,customIconSize:e.controlHeight,customIconTop:0,customIconFontSize:e.controlHeightSM,iconSize:e.controlHeight,iconTop:-.5,iconFontSize:e.fontSize,iconSizeSM:e.fontSizeHeading3,dotSize:e.controlHeight/4,dotCurrentSize:e.controlHeightLG/4,navArrowColor:e.colorTextDisabled,navContentMaxWidth:"unset",descriptionMaxWidth:void 0,waitIconColor:e.wireframe?e.colorTextDisabled:e.colorTextLabel,waitIconBgColor:e.wireframe?e.colorBgContainer:e.colorFillContent,waitIconBorderColor:e.wireframe?e.colorTextDisabled:"transparent",finishIconBgColor:e.wireframe?e.colorBgContainer:e.controlItemBgActive,finishIconBorderColor:e.wireframe?e.colorPrimary:e.controlItemBgActive}),GZ=zt("Steps",e=>{const t=Nt(e,{inlineDotSize:6});return[YZ(t),AZ(t),qZ(t),zZ(t),_Z(t),kZ(t),VZ(t),WZ(t),HZ(t),BZ(t),DZ(t),LZ(t),FZ(t)]},UZ),XZ={itemIcon:fd},KZ=e=>{const{size:t,className:n,rootClassName:r,style:i,variant:s="filled",type:c,classNames:d,styles:f,direction:p,orientation:g,responsive:h=!0,progressDot:y,labelPlacement:C,titlePlacement:b,ellipsis:x,offset:S=0,items:$,percent:M,current:w=0,onChange:R,iconRender:T,...N}=e,O=l.useContext(NZ),P=Pt("steps"),{getPrefixCls:D,direction:k,className:F,style:Y}=P;let G,V,B={};O?B={root:O.rootComponent,item:O.itemComponent}:{classNames:G,styles:V}=P;const _=D("steps",e.prefixCls),H=`${_}-item-icon`,[I,z]=GZ(_),L=pr(t),A=l.useMemo(()=>($||[]).filter(Boolean),[$]),{xs:j}=jp(h),q=l.useMemo(()=>c&&c!=="default"?c:y?"dot":c,[y,c]),X=q==="inline",K=q==="dot"||q==="inline",J=l.useMemo(()=>q==="dot"&&typeof y=="function"?y:void 0,[q,y]),Z=l.useMemo(()=>{const me=g||p;return q==="panel"?"horizontal":h&&j||me==="vertical"?"vertical":"horizontal"},[g,p,q,h,j]),re=l.useMemo(()=>K||Z==="vertical"?Z==="vertical"?"horizontal":"vertical":c==="navigation"?"horizontal":b||C||"horizontal",[K,C,Z,b,c]),ne=X?void 0:M,ie={...e,variant:s,size:L,type:q,orientation:Z,titlePlacement:re,current:w,percent:ne,responsive:h,offset:S},[fe,le]=Vt([XZ,G,d],[V,f],{props:ie}),ue=(me,xe)=>{const{item:Ae,index:we,active:$e,components:{Icon:de}}=xe,{status:be,icon:Me}=Ae;let Oe=null;if(K||Me)Oe=Me;else switch(be){case"finish":Oe=l.createElement(ul,{className:`${H}-finish`});break;case"error":Oe=l.createElement(Yr,{className:`${H}-error`});break;default:{let Ge=l.createElement("span",{className:`${H}-number`},xe.index+1);be==="process"&&ne!==void 0&&(Ge=l.createElement(PZ,{prefixCls:_,percent:ne},Ge)),Oe=Ge}}let Le=l.createElement(de,null,Oe);return T?Le=T(Le,{index:we,active:$e,item:Ae,components:{Icon:de}}):typeof J=="function"&&(Le=J(Le,{index:we,...Ae})),Le},ge=(me,xe)=>{let Ae=me;return X&&xe.item.content&&(Ae=l.createElement(fr,{destroyOnHidden:!0,title:xe.item.content},me)),l.createElement(md,{component:"Steps",disabled:xe.item.disabled||!R,colorSource:s==="filled"?"color":null},Ae)},oe=q==="panel"?me=>l.createElement(l.Fragment,null,me,l.createElement(IZ,{prefixCls:_})):void 0,se={"--steps-items-offset":`${S}`,...Y,...i},he=Q(F,`${_}-${s}`,{[`${_}-${q}`]:q!=="dot"?q:!1,[`${_}-rtl`]:k==="rtl",[`${_}-dot`]:K,[`${_}-ellipsis`]:x,[`${_}-with-progress`]:ne!==void 0,[`${_}-${L}`]:L},n,r,I,z);return l.createElement(OZ,{...N,prefixCls:_,className:he,style:se,classNames:fe,styles:le,orientation:Z,titlePlacement:re,components:B,current:w,items:A,onChange:R,iconRender:ue,itemRender:ge,itemWrapperRender:oe})},QZ=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:i,calc:s}=e,c=s(r).sub(n).equal(),d=s(t).sub(n).equal();return{[i]:{...Zt(e),display:"inline-block",height:"auto",paddingInline:c,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",backgroundColor:e.defaultBg,border:`${te(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${i}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${i}-close-icon`]:{marginInlineStart:d,fontSize:e.tagIconSize,color:e.colorIcon,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${i}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive},"&-disabled":{cursor:"not-allowed",[`&:not(${i}-checkable-checked)`]:{color:e.colorTextDisabled,"&:hover":{backgroundColor:"transparent"}},[`&${i}-checkable-checked`]:{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled},"&:hover, &:active":{backgroundColor:e.colorBgContainerDisabled,color:e.colorTextDisabled},[`&:not(${i}-checkable-checked):hover`]:{color:e.colorTextDisabled}},"&-group":{display:"flex",flexWrap:"wrap",gap:e.paddingXS}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:c}},[`&${e.componentCls}-solid`]:{borderColor:"transparent",color:e.colorTextLightSolid,backgroundColor:e.colorBgSolid,[`&${i}-default`]:{color:e.solidTextColor}},[`${i}-filled`]:{borderColor:"transparent",backgroundColor:e.tagBorderlessBg},[`&${i}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",backgroundColor:e.colorBgContainerDisabled,a:{cursor:"not-allowed",pointerEvents:"none",color:e.colorTextDisabled,"&:hover":{color:e.colorTextDisabled}},"a&":{"&:hover, &:active":{color:e.colorTextDisabled}},[`&${i}-outlined`]:{borderColor:e.colorBorderDisabled},[`&${i}-solid, &${i}-filled`]:{color:e.colorTextDisabled,[`${i}-close-icon`]:{color:e.colorTextDisabled}},[`${i}-close-icon`]:{cursor:"not-allowed",color:e.colorTextDisabled,"&:hover":{color:e.colorTextDisabled}}}}},M1=e=>{const{lineWidth:t,fontSizeIcon:n,calc:r}=e,i=e.fontSizeSM;return Nt(e,{tagFontSize:i,tagLineHeight:te(r(e.lineHeightSM).mul(i).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},R1=e=>{const t=WT(new Ym(e.colorBgSolid),"#fff")?"#000":"#fff";return{defaultBg:new Jt(e.colorFillTertiary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText,solidTextColor:t}},T1=zt("Tag",e=>{const t=M1(e);return QZ(t)},R1),vN=l.forwardRef((e,t)=>{const{prefixCls:n,style:r,className:i,checked:s,children:c,icon:d,onChange:f,onClick:p,disabled:g,...h}=e,{getPrefixCls:y,tag:C}=l.useContext(dt),b=l.useContext(Wr),x=g??b,S=T=>{x||(f?.(!s),p?.(T))},$=y("tag",n),[M,w]=T1($),R=Q($,`${$}-checkable`,{[`${$}-checkable-checked`]:s,[`${$}-checkable-disabled`]:x},C?.className,i,M,w);return l.createElement("span",{...h,ref:t,style:{...r,...C?.style},className:R,onClick:S},d,l.createElement("span",null,c))});function ZZ(e,t){const{id:n,prefixCls:r,rootClassName:i,className:s,style:c,classNames:d,styles:f,disabled:p,options:g,value:h,defaultValue:y,onChange:C,multiple:b,...x}=e,{getPrefixCls:S,direction:$,className:M,style:w,classNames:R,styles:T}=Pt("tag"),N=S("tag",r),O=`${N}-checkable-group`,P=lr(N),[D,k]=T1(N,P),[F,Y]=Vt([R,d],[T,f],{props:e}),G=l.useMemo(()=>(g||[]).map(z=>z&&typeof z=="object"?z:{value:z,label:z}),[g]),[V,B]=Yt(y,h),_=(z,L)=>{let A=null;if(b){const j=V||[];A=z?[].concat($n(j),[L.value]):j.filter(q=>q!==L.value)}else A=z?L.value:null;B(A),C?.(A)},H=ae.useRef(null);l.useImperativeHandle(t,()=>({nativeElement:H.current}));const I=In(x,{aria:!0,data:!0});return ae.createElement("div",{...I,className:Q(O,M,i,{[`${O}-disabled`]:p,[`${O}-rtl`]:$==="rtl"},D,k,s,F.root),style:{...w,...Y.root,...c},id:n,ref:H},G.map(z=>ae.createElement(vN,{key:z.value,className:Q(`${O}-item`,F.item),style:Y.item,checked:b?(V||[]).includes(z.value):V===z.value,onChange:L=>_(L,z),disabled:p},z.label)))}const JZ=ae.forwardRef(ZZ);function eJ(e,t){const{color:n,variant:r,bordered:i}=e;return l.useMemo(()=>{const s=n?.endsWith("-inverse");let c;r?c=r:s?c="solid":i===!1?c="filled":c=t||"filled";const d=s?n?.replace("-inverse",""):n,f=Bp(n),p=bH(n),g={};if(!f&&!p&&d)if(c==="solid")g.backgroundColor=n;else{const h=new Jt(d).toHsl();h.l=.95,g.backgroundColor=new Jt(h).toHexString(),g.color=n,c==="outlined"&&(g.borderColor=n)}return[c,d,f,p,g]},[n,r,i,t])}const tJ=e=>wp(e,(t,{textColor:n,lightBorderColor:r,lightColor:i,darkColor:s})=>({[`${e.componentCls}${e.componentCls}-${t}:not(${e.componentCls}-disabled)`]:{[`&${e.componentCls}-outlined`]:{backgroundColor:i,borderColor:r,color:n},[`&${e.componentCls}-solid`]:{backgroundColor:s,borderColor:s,color:e.colorTextLightSolid},[`&${e.componentCls}-filled`]:{backgroundColor:i,color:n}}})),nJ=id(["Tag","preset"],e=>{const t=M1(e);return tJ(t)},R1);function rJ(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const um=(e,t,n)=>{const r=rJ(n);return{[`${e.componentCls}${e.componentCls}-${t}:not(${e.componentCls}-disabled)`]:{[`&${e.componentCls}-outlined`]:{backgroundColor:e[`color${r}Bg`],borderColor:e[`color${r}Border`],color:e[`color${n}`]},[`&${e.componentCls}-solid`]:{backgroundColor:e[`color${n}`],borderColor:e[`color${n}`]},[`&${e.componentCls}-filled`]:{backgroundColor:e[`color${r}Bg`],color:e[`color${n}`]}}}},oJ=id(["Tag","status"],e=>{const t=M1(e);return[um(t,"success","Success"),um(t,"processing","Info"),um(t,"error","Error"),um(t,"warning","Warning")]},R1),aJ=l.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:i,style:s,children:c,icon:d,color:f,variant:p,onClose:g,bordered:h,disabled:y,href:C,target:b,styles:x,classNames:S,...$}=e,{getPrefixCls:M,direction:w,className:R,variant:T,style:N,classNames:O,styles:P}=Pt("tag"),[D,k,F,Y,G]=eJ(e,T),V=F||Y,B=l.useContext(Wr),_=y??B,{tag:H}=l.useContext(dt),[I,z]=l.useState(!0),L=en($,["closeIcon","closable"]),A={...e,color:k,variant:D,disabled:_,href:C,target:b,icon:d},[j,q]=Vt([O,S],[P,x],{props:A}),X=l.useMemo(()=>{let se={...q.root,...N,...s};return _||(se={...G,...se}),se},[q.root,N,s,G,_]),K=M("tag",n),[J,Z]=T1(K),re=Q(K,R,j.root,`${K}-${D}`,{[`${K}-${k}`]:V,[`${K}-hidden`]:!I,[`${K}-rtl`]:w==="rtl",[`${K}-disabled`]:_},r,i,J,Z),ne=se=>{_||(se.stopPropagation(),g?.(se),!se.defaultPrevented&&z(!1))},[,ie]=zS($s(e),$s(H),{closable:!1,closeIconRender:se=>{const he=l.createElement("span",{className:`${K}-close-icon`,onClick:ne},se);return DS(se,he,me=>({onClick:xe=>{me?.onClick?.(xe),ne(xe)},className:Q(me?.className,`${K}-close-icon`)}))}}),fe=typeof $.onClick=="function"||c&&c.type==="a",le=or(d,{className:Q(l.isValidElement(d)?d.props?.className:"",j.icon),style:q.icon}),ue=le?l.createElement(l.Fragment,null,le,c&&l.createElement("span",{className:j.content,style:q.content},c)):c,ge=C?"a":"span",oe=l.createElement(ge,{...L,ref:t,className:re,style:X,href:_?void 0:C,target:b,onClick:_?void 0:L.onClick,...C&&_?{"aria-disabled":!0}:{}},ue,ie,F&&l.createElement(nJ,{key:"preset",prefixCls:K}),Y&&l.createElement(oJ,{key:"status",prefixCls:K}));return fe?l.createElement(md,{component:"Tag"},oe):oe}),ur=aJ;ur.CheckableTag=vN;ur.CheckableTagGroup=JZ;const iJ={defaultSeed:Bm.token,defaultAlgorithm:HR},lJ=(e,t,n,r)=>{const{titleMarginBottom:i,fontWeightStrong:s}=r;return{marginBottom:i,color:n,fontWeight:s,fontSize:e,lineHeight:t}},sJ=e=>{const t=[1,2,3,4,5],n={};return t.forEach(r=>{n[`
336
+ h${r}&,
337
+ div&-h${r},
338
+ div&-h${r} > textarea,
339
+ h${r}
340
+ `]=lJ(e[`fontSizeHeading${r}`],e[`lineHeightHeading${r}`],e.colorTextHeading,e)}),n},cJ=e=>{const{componentCls:t}=e;return{"a&, a":{...WR(e),userSelect:"text",[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}}}},uJ=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:_m[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}}),dJ=e=>{const{componentCls:t,paddingSM:n}=e,r=n;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),insetBlockStart:e.calc(r).div(-2).add(1).equal(),marginBottom:e.calc(r).div(2).sub(2).equal()},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorIcon,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},fJ=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),mJ=()=>({"\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"}}),pJ=e=>{const{componentCls:t,titleMarginTop:n}=e;return{[t]:{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"},...sJ(e),[`
341
+ & + h1${t},
342
+ & + h2${t},
343
+ & + h3${t},
344
+ & + h4${t},
345
+ & + h5${t}
346
+ `]:{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}},...uJ(e),...cJ(e),[`
347
+ ${t}-expand,
348
+ ${t}-collapse,
349
+ ${t}-edit,
350
+ ${t}-copy
351
+ `]:{...WR(e),marginInlineStart:e.marginXXS},...dJ(e),...fJ(e),...mJ(),"&-rtl":{direction:"rtl"}}}},gJ=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),SN=zt("Typography",pJ,gJ),hJ=e=>{const{prefixCls:t,"aria-label":n,className:r,style:i,direction:s,maxLength:c,autoSize:d=!0,value:f,onSave:p,onCancel:g,onEnd:h,component:y,enterIcon:C=l.createElement(LG,null)}=e,b=l.useRef(null),x=l.useRef(!1),S=l.useRef(null),[$,M]=l.useState(f);l.useEffect(()=>{M(f)},[f]),l.useEffect(()=>{if(b.current?.resizableTextArea){const{textArea:G}=b.current.resizableTextArea;G.focus();const{length:V}=G.value;G.setSelectionRange(V,V)}},[]);const w=({target:G})=>{M(G.value.replace(/[\n\r]/g,""))},R=()=>{x.current=!0},T=()=>{x.current=!1},N=({keyCode:G})=>{x.current||(S.current=G)},O=()=>{p($.trim())},P=({keyCode:G,ctrlKey:V,altKey:B,metaKey:_,shiftKey:H})=>{S.current!==G||x.current||V||B||_||H||(G===nt.ENTER?(O(),h?.()):G===nt.ESC&&g())},D=()=>{O()},[k,F]=SN(t),Y=Q(t,`${t}-edit-content`,{[`${t}-rtl`]:s==="rtl",[`${t}-${y}`]:!!y},r,k,F);return l.createElement("div",{className:Y,style:i},l.createElement(sN,{ref:b,maxLength:c,value:$,onChange:w,onKeyDown:N,onKeyUp:P,onCompositionStart:R,onCompositionEnd:T,onBlur:D,"aria-label":n,rows:1,autoSize:d}),C!==null?or(C,{className:`${t}-edit-content-confirm`}):null)},yJ=(e,t)=>{let n=!1;const r=i=>{i.stopPropagation(),i.preventDefault(),i.clipboardData?.clearData(),i.clipboardData?.setData("text/plain",e),t&&i.clipboardData?.setData("text/html",e),n=!0};try{return document.addEventListener("copy",r,{capture:!0}),document.execCommand("copy"),n}catch{return!1}finally{document.removeEventListener("copy",r,{capture:!0})}},bJ=async(e,t)=>{try{return t?await navigator.clipboard.write([new ClipboardItem({"text/html":new Blob([e],{type:"text/html"}),"text/plain":new Blob([e],{type:"text/plain"})})]):await navigator.clipboard.writeText(e),!0}catch{return!1}};async function vJ(e,t){if(typeof e!="string")return!1;const n=t?.format==="text/html";return!!(await bJ(e,n)||yJ(e,n))}const SJ=({copyConfig:e,children:t})=>{const[n,r]=l.useState(!1),[i,s]=l.useState(!1),c=l.useRef(null),d=()=>{c.current&&clearTimeout(c.current)},f={};e.format&&(f.format=e.format),l.useEffect(()=>d,[]);const p=ut(async g=>{g?.preventDefault(),g?.stopPropagation(),s(!0);try{const h=typeof e.text=="function"?await e.text():e.text;await vJ(h||VQ(t,!0).join("")||"",f),s(!1),r(!0),d(),c.current=setTimeout(()=>{r(!1)},3e3),e.onCopy?.(g)}catch(h){throw s(!1),h}});return{copied:n,copyLoading:i,onClick:p}};function nb(e,t){return l.useMemo(()=>{const n=!!e;return[n,{...t,...n&&typeof e=="object"?e:null}]},[e])}const CJ=e=>{const t=l.useRef(void 0);return l.useEffect(()=>{t.current=e}),t.current},$J=(e,t,n)=>l.useMemo(()=>e===!0?{title:t??n}:l.isValidElement(e)?{title:e}:typeof e=="object"?{title:t??n,...e}:{title:e},[e,t,n]),CN=l.forwardRef((e,t)=>{const{prefixCls:n,component:r="article",className:i,rootClassName:s,children:c,direction:d,style:f,...p}=e,{getPrefixCls:g,direction:h,className:y,style:C}=Pt("typography"),b=d??h,x=g("typography",n),[S,$]=SN(x),M=Q(x,y,{[`${x}-rtl`]:b==="rtl"},i,s,S,$),w={...C,...f};return l.createElement(r,{className:M,style:w,ref:t,...p},c)});function A4(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function rb(e,t,n){return e===!0||e===void 0?t:e||n&&t}function xJ(e){const t=document.createElement("em");e.appendChild(t);const n=e.getBoundingClientRect(),r=t.getBoundingClientRect();return e.removeChild(t),n.left>r.left||r.right>n.right||n.top>r.top||r.bottom>n.bottom}const O1=e=>["string","number"].includes(typeof e),wJ=({prefixCls:e,copied:t,locale:n,iconOnly:r,tooltips:i,icon:s,tabIndex:c,onCopy:d,loading:f})=>{const p=A4(i),g=A4(s),{copied:h,copy:y}=n??{},C=t?h:y,b=rb(p[t?1:0],C),x=typeof b=="string"?b:C;return l.createElement(fr,{title:b},l.createElement("button",{type:"button",className:Q(`${e}-copy`,{[`${e}-copy-success`]:t,[`${e}-copy-icon-only`]:r}),onClick:d,"aria-label":x,tabIndex:c},t?rb(g[1],l.createElement(ul,null),!0):rb(g[0],f?l.createElement(Rp,null):l.createElement(L3,null),!0)))},dm=l.forwardRef(({style:e,children:t},n)=>{const r=l.useRef(null);return l.useImperativeHandle(n,()=>({isExceed:()=>{const i=r.current;return i.scrollHeight>i.clientHeight},getHeight:()=>r.current.clientHeight})),l.createElement("span",{"aria-hidden":!0,ref:r,style:{position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)",...e}},t)}),EJ=e=>e.reduce((t,n)=>t+(O1(n)?String(n).length:1),0);function D4(e,t){let n=0;const r=[];for(let i=0;i<e.length;i+=1){if(n===t)return r;const s=e[i],d=O1(s)?String(s).length:1,f=n+d;if(f>t){const p=t-n;return r.push(String(s).slice(0,p)),r}r.push(s),n=f}return e}const ob=0,ab=1,ib=2,lb=3,j4=4,fm={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function MJ(e){const{enableMeasure:t,width:n,text:r,children:i,rows:s,expanded:c,miscDeps:d,onEllipsis:f}=e,p=l.useMemo(()=>mr(r),[r]),g=l.useMemo(()=>EJ(p),[r]),h=l.useMemo(()=>i(p,!1),[r]),[y,C]=l.useState(null),b=l.useRef(null),x=l.useRef(null),S=l.useRef(null),$=l.useRef(null),M=l.useRef(null),[w,R]=l.useState(!1),[T,N]=l.useState(ob),[O,P]=l.useState(0),[D,k]=l.useState(null);It(()=>{N(t&&n&&g?ab:ob)},[n,r,s,t,p]),It(()=>{if(T===ab){N(ib);const V=x.current&&getComputedStyle(x.current).whiteSpace;k(V)}else if(T===ib){const V=!!S.current?.isExceed();N(V?lb:j4),C(V?[0,g]:null),R(V);const B=S.current?.getHeight()||0,_=s===1?0:$.current?.getHeight()||0,H=M.current?.getHeight()||0,I=Math.max(B,_+H);P(I+1),f(V)}},[T]);const F=y?Math.ceil((y[0]+y[1])/2):0;It(()=>{const[V,B]=y||[0,0];if(V!==B){const H=(b.current?.getHeight()||0)>O;let I=F;B-V===1&&(I=H?V:B),C(H?[V,I]:[I,B])}},[y,F]);const Y=l.useMemo(()=>{if(!t)return i(p,!1);if(T!==lb||!y||y[0]!==y[1]){const V=i(p,!1);return[j4,ob].includes(T)?V:l.createElement("span",{style:{...fm,WebkitLineClamp:s}},V)}return i(c?p:D4(p,y[0]),w)},[c,T,y,p].concat($n(d))),G={width:n,margin:0,padding:0,whiteSpace:D==="nowrap"?"normal":"inherit"};return l.createElement(l.Fragment,null,Y,T===ib&&l.createElement(l.Fragment,null,l.createElement(dm,{style:{...G,...fm,WebkitLineClamp:s},ref:S},h),l.createElement(dm,{style:{...G,...fm,WebkitLineClamp:s-1},ref:$},h),l.createElement(dm,{style:{...G,...fm,WebkitLineClamp:1},ref:M},i([],!0))),T===lb&&y&&y[0]!==y[1]&&l.createElement(dm,{style:{...G,top:400},ref:b},i(D4(p,F),!0)),T===ab&&l.createElement("span",{style:{whiteSpace:"inherit"},ref:x}))}const RJ=({enableEllipsis:e,isEllipsis:t,children:n,tooltipProps:r})=>!r?.title||!e?n:l.createElement(fr,{open:t?void 0:!1,...r},n);function TJ({mark:e,code:t,underline:n,delete:r,strong:i,keyboard:s,italic:c},d){let f=d;function p(g,h){h&&(f=l.createElement(g,{},f))}return p("strong",i),p("u",n),p("del",r),p("code",t),p("mark",e),p("kbd",s),p("i",c),f}const OJ="...",_4=["delete","mark","code","underline","strong","keyboard","italic"],eg=l.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:i,type:s,disabled:c,children:d,ellipsis:f,editable:p,copyable:g,component:h,title:y,...C}=e,{getPrefixCls:b,direction:x}=l.useContext(dt),[S]=oo("Text"),$=l.useRef(null),M=l.useRef(null),w=b("typography",n),R=en(C,_4),[T,N]=nb(p),[O,P]=Yt(!1,N.editing),{triggerType:D=["icon"]}=N,k=Se=>{Se&&N.onStart?.(),P(Se)},F=CJ(O);It(()=>{!O&&F&&M.current?.focus()},[O]);const Y=Se=>{Se?.preventDefault(),k(!0)},G=Se=>{N.onChange?.(Se),k(!1)},V=()=>{N.onCancel?.(),k(!1)},[B,_]=nb(g),{copied:H,copyLoading:I,onClick:z}=SJ({copyConfig:_,children:d}),[L,A]=l.useState(!1),[j,q]=l.useState(!1),[X,K]=l.useState(!1),[J,Z]=l.useState(!1),[re,ne]=l.useState(!0),[ie,fe]=nb(f,{expandable:!1,symbol:Se=>Se?S?.collapse:S?.expand}),[le,ue]=Yt(fe.defaultExpanded||!1,fe.expanded),ge=ie&&(!le||fe.expandable==="collapsible"),{rows:oe=1}=fe,se=l.useMemo(()=>ge&&(fe.suffix!==void 0||fe.onEllipsis||fe.expandable||T||B),[ge,fe,T,B]);It(()=>{ie&&!se&&(A(YE("webkitLineClamp")),q(YE("textOverflow")))},[se,ie]);const[he,me]=l.useState(ge),xe=l.useMemo(()=>se?!1:oe===1?j:L,[se,j,L]);It(()=>{me(xe&&ge)},[xe,ge]);const Ae=ge&&(he?J:X),we=ge&&oe===1&&he,$e=ge&&oe>1&&he,de=(Se,Be)=>{ue(Be.expanded),fe.onExpand?.(Se,Be)},[be,Me]=l.useState(0),Oe=({offsetWidth:Se})=>{Me(Se)},Le=Se=>{K(Se),X!==Se&&fe.onEllipsis?.(Se)};l.useEffect(()=>{const Se=$.current;if(ie&&he&&Se){const Be=xJ(Se);J!==Be&&Z(Be)}},[ie,he,d,$e,re,be]),l.useEffect(()=>{const Se=$.current;if(typeof IntersectionObserver>"u"||!Se||!he||!ge)return;const Be=new IntersectionObserver(()=>{ne(!!Se.offsetParent)});return Be.observe(Se),()=>{Be.disconnect()}},[he,ge]);const Ge=$J(fe.tooltip,N.text,d),et=l.useMemo(()=>{if(!(!ie||he))return[N.text,d,y,Ge.title].find(O1)},[ie,he,y,Ge.title,Ae]);if(O)return l.createElement(hJ,{value:N.text??(typeof d=="string"?d:""),onSave:G,onCancel:V,onEnd:N.onEnd,prefixCls:w,className:r,style:i,direction:x,component:h,maxLength:N.maxLength,autoSize:N.autoSize,enterIcon:N.enterIcon});const ze=()=>{const{expandable:Se,symbol:Be}=fe;return Se?l.createElement("button",{type:"button",key:"expand",className:`${w}-${le?"collapse":"expand"}`,onClick:Je=>de(Je,{expanded:!le}),"aria-label":le?S.collapse:S?.expand},typeof Be=="function"?Be(le):Be):null},_e=()=>{if(!T)return;const{icon:Se,tooltip:Be,tabIndex:Je}=N,We=mr(Be)[0]||S?.edit,Xe=typeof We=="string"?We:"";return D.includes("icon")?l.createElement(fr,{key:"edit",title:Be===!1?"":We},l.createElement("button",{type:"button",ref:M,className:`${w}-edit`,onClick:Y,"aria-label":Xe,tabIndex:Je},Se||l.createElement(di,{role:"button"}))):null},De=()=>B?l.createElement(wJ,{key:"copy",..._,prefixCls:w,copied:H,locale:S,onCopy:z,loading:I,iconOnly:!Rr(d)}):null,Ue=Se=>[Se&&ze(),_e(),De()],Ne=Se=>[Se&&!le&&l.createElement("span",{"aria-hidden":!0,key:"ellipsis"},OJ),fe.suffix,Ue(Se)];return l.createElement(Fr,{onResize:Oe,disabled:!ge},Se=>l.createElement(RJ,{tooltipProps:Ge,enableEllipsis:ge,isEllipsis:Ae},l.createElement(CN,{className:Q({[`${w}-${s}`]:s,[`${w}-disabled`]:c,[`${w}-ellipsis`]:ie,[`${w}-ellipsis-single-line`]:we,[`${w}-ellipsis-multiple-line`]:$e},r),prefixCls:n,style:{...i,WebkitLineClamp:$e?oe:void 0},component:h,ref:ir(Se,$,t),direction:x,onClick:D.includes("text")?Y:void 0,"aria-label":et?.toString(),title:y,...R},l.createElement(MJ,{enableMeasure:ge&&!he,text:d,rows:oe,width:be,onEllipsis:Le,expanded:le,miscDeps:[H,le,I,T,B,S].concat($n(_4.map(Be=>e[Be])))},(Be,Je)=>TJ(e,l.createElement(l.Fragment,null,Be.length>0&&Je&&!le&&et?l.createElement("span",{key:"show-content","aria-hidden":!0},Be):Be,Ne(Je)))))))}),NJ=l.forwardRef((e,t)=>{const{ellipsis:n,rel:r,children:i,navigate:s,...c}=e,d={...c,rel:r===void 0&&c.target==="_blank"?"noopener noreferrer":r};return l.createElement(eg,{...d,ref:t,ellipsis:!!n,component:"a"},i)}),IJ=l.forwardRef((e,t)=>{const{children:n,...r}=e;return l.createElement(eg,{ref:t,...r,component:"div"},n)}),PJ=(e,t)=>{const{ellipsis:n,children:r,...i}=e,s=l.useMemo(()=>n&&typeof n=="object"?en(n,["expandable","rows"]):n,[n]);return l.createElement(eg,{ref:t,...i,ellipsis:s,component:"span"},r)},zJ=l.forwardRef(PJ),AJ=[1,2,3,4,5],DJ=l.forwardRef((e,t)=>{const{level:n=1,children:r,...i}=e,s=AJ.includes(n)?`h${n}`:"h1";return l.createElement(eg,{ref:t,...i,component:s},r)}),zr=CN;zr.Text=zJ;zr.Link=NJ;zr.Title=DJ;zr.Paragraph=IJ;var Am={exports:{}},jJ=Am.exports,H4;function _J(){return H4||(H4=1,(function(e,t){(function(n,r){e.exports=r(v6())})(jJ,(function(n){function r(c){return c&&typeof c=="object"&&"default"in c?c:{default:c}}var i=r(n),s={name:"ja",weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),months:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(c){return c+"日"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日(ddd) HH:mm"},meridiem:function(c){return c<12?"午前":"午後"},relativeTime:{future:"%s後",past:"%s前",s:"数秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}};return i.default.locale(s,null,!0),s}))})(Am)),Am.exports}_J();const $N=l.createContext(null),pl=()=>{const e=l.useContext($N);if(!e)throw new Error("useDashboard must be used within Dashboard");return e},HJ={},qo=typeof import.meta<"u"&&HJ?.VITE_API_URL||"/api";class xN extends Error{status;code;constructor(t,n,r){super(n),this.name="ApiError",this.status=t,this.code=r}}async function Yo(e){if(!e.ok){const t=await e.json().catch(()=>({message:"API Error"}));throw new xN(e.status,t.message||`HTTP ${e.status}`,t.code)}if(!(e.status===204||e.headers.get("content-length")==="0"))return e.json()}const B4={async getCalendarData(e){const t=new URLSearchParams;e.year!==void 0&&t.set("year",String(e.year)),e.month!==void 0&&t.set("month",String(e.month));const n=`${qo}/calendar`+(t.toString()?"?"+t:""),r=await fetch(n);return Yo(r)},async getAvailableYearMonths(e){const t=`${qo}/calendar/months`,n=await fetch(t);return Yo(n)}},yp={async getConfig(e){const t=`${qo}/config`,n=await fetch(t);return Yo(n)},async updateConfig(e){const t=`${qo}/config`,n=await fetch(t,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e.data)});return Yo(n)},async getRoutinesMarkdown(e){const t=`${qo}/config/routines/markdown`,n=await fetch(t);return Yo(n)},async saveRoutinesMarkdown(e){const t=`${qo}/config/routines/markdown`,n=await fetch(t,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e.data)});return Yo(n)}},BJ={async getStatus(e){const t=`${qo}/git/status`,n=await fetch(t);return Yo(n)}},cs={async getReport(e){const t=`${qo}/reports/${e.date}`,n=await fetch(t);return Yo(n)},async saveReport(e){const t=`${qo}/reports/${e.date}`,n=await fetch(t,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e.data)});return Yo(n)},async deleteReport(e){const t=`${qo}/reports/${e.date}`,n=await fetch(t,{method:"DELETE"});await Yo(n)}},{TextArea:LJ}=Pr,{Header:VJ}=Ta,{Text:Er}=zr,L4="dashboard_save_step",FJ=({selectedDate:e,onDateChange:t,onImportClick:n,selectedProjects:r=[],onRemoveProject:i,onClearProjectFilter:s})=>{const{report:c,saveMultipleReports:d,config:f,unsavedReports:p}=pl(),g=f.config?.slack?.enabled??!1,[h,y]=l.useState(!1),[C,b]=l.useState(()=>{const z=localStorage.getItem(L4);return z?parseInt(z,10):0}),[x,S]=l.useState(!1),[$,M]=l.useState(new Set),[w,R]=l.useState(null),[T,N]=l.useState(!1);l.useEffect(()=>{localStorage.setItem(L4,String(C))},[C]),l.useEffect(()=>{!g&&C>2&&b(2)},[g,C]);const O=l.useMemo(()=>{const z=new Set(p.unsavedDates),L=e.format("YYYY-MM-DD");return c.isDirty&&z.add(L),Array.from(z).sort((A,j)=>j.localeCompare(A))},[p.unsavedDates,e,c.isDirty]);l.useEffect(()=>{h&&(M(new Set(O)),N(!0),BJ.getStatus({}).then(z=>R(z)).catch(z=>console.error("Git状態の取得に失敗:",z)).finally(()=>N(!1)))},[h,O]);const P=l.useMemo(()=>!!($.size>0||C>=1&&w?.uncommitted&&w.uncommitted.count>0||C>=2&&w?.unpushed&&w.unpushed.count>0),[$.size,C,w]),D=l.useCallback(()=>{t(gn())},[t]),k=l.useCallback(()=>{t(e.subtract(1,"day"))},[e,t]),F=l.useCallback(()=>{t(e.add(1,"day"))},[e,t]),Y=l.useCallback(()=>{y(!0)},[]),G=l.useCallback(async()=>{if(!P){Cn.warning("実行対象がありません");return}S(!0);try{const z=C>=1,L=C>=2,A=C>=3,j={git:z?{commit:!0,push:L}:void 0,slack:A?{post:!0}:void 0},q=Array.from($);q.length>0?await d(q,j):(z||L)&&await d([e.format("YYYY-MM-DD")],j),y(!1)}catch{Cn.error("操作に失敗しました")}finally{S(!1)}},[C,$,d,P,e]),V=l.useCallback((z,L)=>{M(A=>{const j=new Set(A);return L?j.add(z):j.delete(z),j})},[]),B=l.useCallback(z=>{M(z?new Set(O):new Set)},[O]),_=l.useCallback(z=>{const L=e.format("YYYY-MM-DD");return z===L?c.markdownContent||"(日報データがありません)":p.getUnsavedReport(z)?.currentMarkdown||"(データがありません)"},[e,c.markdownContent,p]),H=l.useMemo(()=>{const z=O.length;return U.jsxs("div",{style:{fontSize:12,whiteSpace:"nowrap"},children:[U.jsx("div",{style:{fontWeight:600,marginBottom:2},children:"Git"}),U.jsxs("div",{children:["未保存: ",z,"件"]})]})},[O.length]),I=O.length>0;return U.jsxs(VJ,{style:{background:"#fff",padding:"0 24px",display:"flex",alignItems:"center",justifyContent:"space-between",borderBottom:"1px solid #f0f0f0",position:"sticky",top:0,zIndex:100,height:64},children:[U.jsxs(un,{size:"large",children:[U.jsxs("div",{className:"dashboard-title",style:{display:"flex",alignItems:"center",gap:12},children:[U.jsx(H3,{style:{fontSize:24,color:"#1890ff"}}),U.jsx(Er,{className:"dashboard-title-text",strong:!0,style:{fontSize:18},children:"日報ダッシュボード"})]}),U.jsxs(un,{size:"small",children:[U.jsx(Ht,{size:"small",onClick:k,children:"◀"}),U.jsx(ml,{value:e,onChange:t,allowClear:!1,format:"YYYY年MM月DD日",style:{width:150}}),U.jsx(Ht,{size:"small",onClick:F,children:"▶"}),U.jsx(Ht,{type:"primary",size:"small",onClick:D,children:"今日"}),r.length>0&&U.jsxs(un,{size:4,style:{marginLeft:8},children:[r.map(z=>U.jsx(ur,{color:z.color,closable:!0,onClose:()=>i?.(z.code),closeIcon:U.jsx(Yr,{style:{fontSize:10}}),children:z.code},z.code)),r.length>1&&U.jsx(ur,{style:{cursor:"pointer"},onClick:s,children:"すべて解除"})]})]})]}),U.jsxs(un,{size:"middle",align:"center",children:[U.jsx(Ht,{icon:U.jsx(cX,{}),onClick:n,children:"取り込み"}),U.jsx(Ht,{type:"primary",icon:U.jsx(wG,{}),onClick:Y,loading:c.saving,children:"保存"}),U.jsx(fr,{title:H,children:U.jsxs("div",{style:{position:"relative",width:24,height:32,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer"},children:[U.jsx(rX,{style:{fontSize:18,color:I?"#ff4d4f":"#52c41a"}}),I&&U.jsx("span",{style:{position:"absolute",top:2,right:-6,minWidth:14,height:14,borderRadius:7,backgroundColor:"#ff4d4f",color:"#fff",fontSize:10,fontWeight:500,display:"flex",alignItems:"center",justifyContent:"center"},children:"!"})]})})]}),U.jsxs(ao,{title:"保存の確認",open:h,onCancel:()=>y(!1),onOk:G,okText:"実行",cancelText:"キャンセル",okButtonProps:{loading:x,disabled:!P},width:900,children:[U.jsxs("div",{style:{marginBottom:24},children:[U.jsx(Er,{type:"secondary",style:{fontSize:12,marginBottom:12,display:"block"},children:"保存範囲を選択してください(クリックで選択、右を選ぶと左も自動で実行されます)"}),U.jsx(KZ,{current:C,onChange:z=>b(z),items:[{title:"ローカル保存",description:"ファイルに保存",icon:U.jsx(ZG,{})},{title:"Commit",description:"Gitにコミット",icon:U.jsx(v1,{})},{title:"Push",description:"リモートに反映",icon:U.jsx(d4,{})},...g?[{title:"Slack",description:"日報を投稿",icon:U.jsx(DX,{})}]:[]],style:{marginTop:16}})]}),U.jsxs("div",{style:{marginTop:16},children:[U.jsxs("div",{style:{display:"flex",alignItems:"center",gap:16,marginBottom:12},children:[U.jsxs(Er,{strong:!0,style:{fontSize:14},children:["保存対象 (",$.size,"/",O.length,"件)"]}),U.jsx(Os,{checked:$.size===O.length&&O.length>0,indeterminate:$.size>0&&$.size<O.length,onChange:z=>B(z.target.checked),children:"全選択"})]}),U.jsxs("div",{style:{maxHeight:300,overflow:"auto",border:"1px solid #f0f0f0",borderRadius:6},children:[O.map((z,L)=>U.jsxs("div",{style:{padding:12,borderBottom:L<O.length-1?"1px solid #f0f0f0":"none",background:$.has(z)?"#f6ffed":"#fff"},children:[U.jsxs(Os,{checked:$.has(z),onChange:A=>V(z,A.target.checked),style:{marginBottom:8},children:[U.jsx(Er,{strong:!0,children:z}),z===e.format("YYYY-MM-DD")&&U.jsx(ur,{color:"blue",style:{marginLeft:8},children:"現在表示中"})]}),$.has(z)&&U.jsx(LJ,{value:_(z),readOnly:!0,autoSize:{minRows:6,maxRows:12},style:{fontFamily:"monospace",fontSize:11,background:"#fafafa",marginTop:4}})]},z)),O.length===0&&U.jsx("div",{style:{padding:12,background:"#f6ffed",borderRadius:6,textAlign:"center"},children:U.jsx(Er,{type:"secondary",style:{fontSize:12},children:"未保存の変更はありません"})})]})]}),C>=1&&U.jsxs(U.Fragment,{children:[U.jsx(ri,{style:{margin:"16px 0 12px"}}),U.jsxs("div",{children:[U.jsxs(Er,{strong:!0,style:{fontSize:14,display:"flex",alignItems:"center",gap:8,marginBottom:8},children:[U.jsx(kG,{style:{color:"#faad14"}}),"保存済み・未コミットのファイル"]}),T?U.jsx("div",{style:{padding:16,textAlign:"center"},children:U.jsx(gp,{size:"small"})}):w?.uncommitted&&w.uncommitted.count>0?U.jsx(PE,{size:"small",items:[{key:"uncommitted",label:U.jsxs(Er,{type:"secondary",children:[w.uncommitted.count,"件の未コミットファイル"]}),children:U.jsx("div",{style:{maxHeight:150,overflow:"auto"},children:w.uncommitted.files.map((z,L)=>U.jsxs("div",{style:{padding:"4px 0",display:"flex",alignItems:"center",gap:8},children:[U.jsx(dp,{style:{color:"#1890ff"}}),U.jsx(Er,{code:!0,style:{fontSize:11},children:z.path}),U.jsx(ur,{color:z.status==="D"?"red":z.status==="A"||z.status==="?"?"green":"blue",style:{fontSize:10},children:z.status==="D"?"削除":z.status==="A"?"追加":z.status==="?"?"新規":"変更"})]},L))})}],defaultActiveKey:["uncommitted"]}):U.jsx("div",{style:{padding:12,background:"#f6ffed",borderRadius:6,textAlign:"center"},children:U.jsx(Er,{type:"secondary",style:{fontSize:12},children:"未コミットのファイルはありません"})}),U.jsx(Er,{type:"secondary",style:{fontSize:11,marginTop:8,display:"block"},children:"※ Commitを選択すると、上記ファイルと未保存の変更が一緒にコミットされます"})]})]}),C>=2&&U.jsxs(U.Fragment,{children:[U.jsx(ri,{style:{margin:"16px 0 12px"}}),U.jsxs("div",{children:[U.jsxs(Er,{strong:!0,style:{fontSize:14,display:"flex",alignItems:"center",gap:8,marginBottom:8},children:[U.jsx(d4,{style:{color:"#1890ff"}}),"未プッシュのコミット"]}),T?U.jsx("div",{style:{padding:16,textAlign:"center"},children:U.jsx(gp,{size:"small"})}):w?.unpushed&&w.unpushed.count>0?U.jsx(PE,{size:"small",items:[{key:"unpushed",label:U.jsxs(Er,{type:"secondary",children:[w.unpushed.count,"件の未プッシュコミット"]}),children:U.jsx("div",{style:{maxHeight:200,overflow:"auto"},children:w.unpushed.commits.map((z,L)=>U.jsxs("div",{style:{padding:"8px 0",borderBottom:L<w.unpushed.commits.length-1?"1px solid #f0f0f0":"none"},children:[U.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:4},children:[U.jsx(ur,{color:"purple",style:{fontSize:10,fontFamily:"monospace"},children:z.hash}),U.jsx(Er,{style:{fontSize:12},children:z.message})]}),z.files.length>0&&U.jsxs("div",{style:{paddingLeft:16},children:[z.files.slice(0,5).map((A,j)=>U.jsxs("div",{style:{fontSize:11,color:"#666"},children:[U.jsx(dp,{style:{marginRight:4}}),A]},j)),z.files.length>5&&U.jsxs(Er,{type:"secondary",style:{fontSize:11},children:["... 他 ",z.files.length-5," ファイル"]})]})]},L))})}],defaultActiveKey:["unpushed"]}):U.jsx("div",{style:{padding:12,background:"#f6ffed",borderRadius:6,textAlign:"center"},children:U.jsx(Er,{type:"secondary",style:{fontSize:12},children:"未プッシュのコミットはありません"})}),U.jsx(Er,{type:"secondary",style:{fontSize:11,marginTop:8,display:"block"},children:"※ Pushを選択すると、上記コミットと新しい変更がリモートにプッシュされます"})]})]})]})]})},{Text:sb}=zr,kJ=({selectedDate:e,onDateSelect:t})=>{const{calendar:n,unsavedReports:r,report:i}=pl(),[s,c]=l.useState(e),d=gn(),f=l.useMemo(()=>{const w={};for(const R of n.days)R.hasReport&&(w[R.date]={actual:R.resultHours||0,plan:R.planHours||0});return w},[n.days]),p=l.useMemo(()=>{const w=new Map;for(const T of n.availableYearMonths){const N=`${T.year}-${T.month-1}`;w.has(N)||w.set(N,{year:T.year,month:T.month-1})}const R=`${d.year()}-${d.month()}`;w.has(R)||w.set(R,{year:d.year(),month:d.month()});for(let T=-2;T<=2;T++){const N=d.add(T,"month"),O=`${N.year()}-${N.month()}`;w.has(O)||w.set(O,{year:N.year(),month:N.month()})}return Array.from(w.values()).sort((T,N)=>T.year-N.year||T.month-N.month).map(T=>({...T,label:`${T.year}年${T.month+1}月`}))},[n.availableYearMonths,d]),g=p.map(w=>({value:`${w.year}-${w.month}`,label:w.label})),h=w=>{const[R,T]=w.split("-").map(Number),N=s.year(R).month(T);c(N),n.loadCalendar(R,T+1)},y=()=>{const w=p.findIndex(R=>R.year===s.year()&&R.month===s.month());if(w>0){const R=p[w-1],T=s.year(R.year).month(R.month);c(T),n.loadCalendar(R.year,R.month+1)}},C=()=>{const w=p.findIndex(R=>R.year===s.year()&&R.month===s.month());if(w<p.length-1){const R=p[w+1],T=s.year(R.year).month(R.month);c(T),n.loadCalendar(R.year,R.month+1)}};l.useEffect(()=>{(e.month()!==s.month()||e.year()!==s.year())&&c(e)},[e]);const b=p.findIndex(w=>w.year===s.year()&&w.month===s.month()),x=b>0,S=b<p.length-1,$=w=>w>=9?"#ff4d4f":w>=8?"#52c41a":w>=6?"#1890ff":"#d9d9d9",M=w=>{const R=w.format("YYYY-MM-DD"),T=w.isBefore(d,"day"),N=w.isAfter(d,"day"),O=w.isSame(d,"day"),P=w.isSame(e,"day"),D=w.month()===s.month(),k=f[R],F=k?Math.min(k.actual/8*100,100):0,Y=r.hasUnsavedChangesForDate(R)||P&&i.isDirty;return U.jsx(fr,{title:k?`稼働: ${k.actual}h${Y?" (未保存)":""}`:Y?"未保存":void 0,children:U.jsxs("div",{onClick:()=>t(R),style:{position:"relative",width:32,height:32,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",opacity:N?.4:D?1:.3},children:[(T||O)&&k&&U.jsx(EZ,{type:"circle",percent:F,size:30,strokeColor:$(k.actual),railColor:"#f0f0f0",strokeWidth:10,format:()=>null,style:{position:"absolute",top:1,left:1}}),Y&&U.jsx(As,{style:{position:"absolute",top:-2,right:-2,fontSize:10,color:"#ff4d4f",zIndex:2}}),U.jsx("span",{style:{position:"relative",zIndex:1,fontSize:12,fontWeight:O||P?600:400,color:O||P?"#1890ff":"#000",background:P?"#e6f7ff":O?"#fff":"transparent",borderRadius:"50%",width:22,height:22,display:"flex",alignItems:"center",justifyContent:"center"},children:w.date()})]})})};return U.jsxs(Ea,{title:U.jsx("div",{style:{display:"flex",justifyContent:"center"},children:U.jsxs(un,{size:"small",children:[U.jsx(Ht,{size:"small",onClick:y,disabled:!x,children:"◀"}),U.jsx(Vr,{value:`${s.year()}-${s.month()}`,options:g,size:"small",style:{width:120},onChange:h,popupMatchSelectWidth:!1}),U.jsx(Ht,{size:"small",onClick:C,disabled:!S,children:"▶"})]})}),styles:{body:{padding:8}},children:[U.jsx("style",{children:`
352
+ .compact-calendar .ant-picker-content th,
353
+ .compact-calendar .ant-picker-content td {
354
+ padding: 2px 0 !important;
355
+ }
356
+ .compact-calendar .ant-picker-cell {
357
+ padding: 0 !important;
358
+ }
359
+ .compact-calendar .ant-picker-cell-inner {
360
+ min-width: 32px !important;
361
+ height: 32px !important;
362
+ line-height: 32px !important;
363
+ }
364
+ `}),U.jsx(O3,{fullscreen:!1,value:s,className:"compact-calendar",onSelect:w=>{c(w),t(w.format("YYYY-MM-DD"))},fullCellRender:M,style:{border:"none"},headerRender:()=>null}),n.summary&&U.jsx("div",{style:{padding:"6px 8px",marginTop:4,background:"#fafafa",borderRadius:4,fontSize:11,color:"#666"},children:U.jsxs("div",{style:{display:"flex",justifyContent:"space-between"},children:[U.jsxs("span",{children:["稼働日数: ",n.summary.workDays??0,"日"]}),U.jsxs("span",{children:["合計: ",(n.summary.totalResultHours??0).toFixed(1),"h"]})]})}),U.jsxs("div",{style:{padding:"4px 8px",marginTop:4,background:"#f5f5f5",borderRadius:4,display:"flex",justifyContent:"center",gap:12},children:[U.jsxs("div",{style:{display:"flex",alignItems:"center",gap:4},children:[U.jsx("div",{style:{width:8,height:8,borderRadius:"50%",background:"#52c41a"}}),U.jsx(sb,{type:"secondary",style:{fontSize:9},children:"8h+"})]}),U.jsxs("div",{style:{display:"flex",alignItems:"center",gap:4},children:[U.jsx("div",{style:{width:8,height:8,borderRadius:"50%",background:"#1890ff"}}),U.jsx(sb,{type:"secondary",style:{fontSize:9},children:"6-8h"})]}),U.jsxs("div",{style:{display:"flex",alignItems:"center",gap:4},children:[U.jsx("div",{style:{width:8,height:8,borderRadius:"50%",background:"#ff4d4f"}}),U.jsx(sb,{type:"secondary",style:{fontSize:9},children:"9h+"})]})]})]})};function rd(e){const[t,n]=e.split(":").map(Number);return t*60+n}function Hi(e){const t=Math.floor(e/60),n=e%60;return n>0?`${t}h${n}m`:`${t}h`}const{Text:cb}=zr,WJ=({item:e,type:t,isHovered:n,isDragging:r,isDraggingToResultArea:i,dragOffset:s,getProjectColor:c,projects:d,onHover:f,onDragStart:p,onMenuAction:g})=>{const h=t==="result",y=e.topPx,C=e.heightPx,b=r&&!i?y+s:y,S={items:[{key:"project",label:"プロジェクト変更",children:d.filter($=>$.active).map($=>({key:`project:${e.id}:${t}:${$.code}`,label:U.jsxs(un,{children:[U.jsx(ui,{color:$.color}),$.name]})}))},...t==="plan"?[{key:`toResult:${e.id}`,label:"実績に反映",icon:U.jsx(b1,{})}]:[],{type:"divider"},{key:`delete:${e.id}:${t}`,label:"削除",icon:U.jsx(up,{}),danger:!0}],onClick:({key:$})=>g($),onSelect:({key:$})=>g($),subMenuOpenDelay:.1,subMenuCloseDelay:.2};return U.jsxs("div",{onMouseEnter:()=>!r&&f(`${t}-${e.id}`),onMouseLeave:()=>!r&&f(null),onMouseDown:$=>p($,e.id,t,e.startMinutes),style:{position:"absolute",top:Math.max(0,b),height:Math.max(C,20),left:4,right:4,background:h?`${c(e.project)}90`:`${c(e.project)}40`,borderLeft:`3px solid ${c(e.project)}`,borderRadius:4,padding:"2px 6px",overflow:"hidden",cursor:r?"grabbing":"grab",transition:r?"none":"all 0.2s",fontSize:11,opacity:i?.4:r?.8:1,zIndex:r?10:1,boxShadow:r&&!i?"0 4px 12px rgba(0,0,0,0.15)":"none"},children:[U.jsxs("div",{style:{display:"flex",alignItems:"center",gap:4},children:[U.jsx(cb,{style:{fontSize:10,color:"#666",flexShrink:0},children:e.time}),U.jsx(cb,{ellipsis:!0,style:{fontSize:11,fontWeight:500,flex:1},children:e.task}),U.jsx("div",{style:{visibility:n&&!r?"visible":"hidden",flexShrink:0},children:U.jsx(C1,{menu:S,trigger:["click"],placement:"bottomRight",styles:{root:{minWidth:140}},children:U.jsx(V3,{style:{fontSize:14,color:"#666",cursor:"pointer",padding:"0 2px"},onMouseDown:$=>$.stopPropagation(),onClick:$=>$.stopPropagation()})})})]}),e.description&&U.jsx(cb,{style:{fontSize:10,color:"#888",display:"block",marginTop:2,whiteSpace:"pre-wrap",lineHeight:1.3},children:e.description})]})},{Text:ub}=zr;function V4(e){const t=Math.floor(e/60),n=e%60;return`${String(t).padStart(2,"0")}:${String(n).padStart(2,"0")}`}const qJ=({dragState:e,dragOffset:t,isDraggingToResult:n,planItems:r,getProjectColor:i,startHour:s=8,hourHeight:c=60})=>{if(!n||!e||e.type!=="plan")return null;const d=t/c*60,f=Math.round((e.startMinutes+d)/15)*15,p=V4(f),g=(f-s*60)/60*c;if(e.isBreak){const C=e.breakDuration||60,b=C/60*c,x=f+C,S=V4(x);return U.jsx("div",{style:{position:"absolute",top:Math.max(0,g),height:Math.max(b,20),left:4,right:4,background:"repeating-linear-gradient(45deg, rgba(200,200,200,0.3), rgba(200,200,200,0.3) 4px, rgba(180,180,180,0.3) 4px, rgba(180,180,180,0.3) 8px)",borderRadius:4,border:"2px dashed #52c41a",display:"flex",alignItems:"center",justifyContent:"center",opacity:.9,zIndex:5,pointerEvents:"none"},children:U.jsxs(ub,{style:{fontSize:10,color:"#52c41a",fontWeight:500},children:["休憩 ",p,"〜",S]})})}const h=r.find(C=>C.id===e.itemId);if(!h)return null;const y=c;return U.jsx("div",{style:{position:"absolute",top:Math.max(0,g),height:Math.max(y,20),left:4,right:4,background:`${i(h.project)}30`,borderLeft:`3px dashed ${i(h.project)}`,borderRadius:4,padding:"2px 6px",overflow:"hidden",fontSize:11,opacity:.8,zIndex:5,pointerEvents:"none"},children:U.jsxs("div",{style:{display:"flex",alignItems:"center",gap:4},children:[U.jsx(ub,{style:{fontSize:10,color:"#666",flexShrink:0},children:p}),U.jsx(ub,{ellipsis:!0,style:{fontSize:11,fontWeight:500,flex:1,color:"#666"},children:h.task})]})})};function F4(e){const t=Math.floor(e/60),n=e%60;return`${String(t).padStart(2,"0")}:${String(n).padStart(2,"0")}`}function mm(e,t,n,r,i,s=15){const c=t/n*60;let d=Math.round(e+c);d=Math.round(d/s)*s;const f=0,p=(i+r)*60;d=Math.max(f,Math.min(p-60,d));const g=Math.floor(d/60),h=d%60;return`${String(g).padStart(2,"0")}:${String(h).padStart(2,"0")}`}function YJ({resultAreaRef:e,currentReport:t,updatePlan:n,updateResult:r,startHour:i=8,totalHours:s=12,hourHeight:c=60,snapMinutes:d=15}){const[f,p]=l.useState(null),[g,h]=l.useState(0),[y,C]=l.useState(!1),b=l.useCallback(($,M,w,R,T,N)=>{$.preventDefault(),$.stopPropagation(),p({itemId:M,type:w,startY:$.clientY,startMinutes:R,isBreak:T,breakDuration:N}),h(0)},[]),x=l.useCallback($=>{if(!f)return;const M=$.clientY-f.startY,w=c/4,R=Math.round(M/w)*w;if(h(R),f.type==="plan"&&e.current){const T=e.current.getBoundingClientRect(),N=$.clientX>=T.left&&$.clientX<=T.right;C(N)}},[f,e,c]),S=l.useCallback(()=>{if(!(!f||!t)){if(f.type==="plan"&&y)if(f.isBreak){const $=g!==0?mm(f.startMinutes,g,c,s,i,d):F4(f.startMinutes),M={id:`r${Date.now()}-${Math.random().toString(36).substring(2,9)}`,time:$,project:"---",task:"休憩"},w=f.startMinutes+(f.breakDuration||60),R=g!==0?mm(w,g,c,s,i,d):F4(w),T=[...t.result,M];T.sort((N,O)=>N.time.localeCompare(O.time)),r(T),Cn.success(`休憩(${$}〜${R})を実績にコピーしました`)}else{const $=t.plan.find(M=>M.id===f.itemId);if($){const M=g!==0?mm(f.startMinutes,g,c,s,i,d):$.time,w={id:`r${Date.now()}-${Math.random().toString(36).substring(2,9)}`,time:M,project:$.project,task:$.task},R=[...t.result,w];R.sort((T,N)=>T.time.localeCompare(N.time)),r(R),Cn.success(`「${$.task}」を実績にコピーしました`)}}else if(g!==0){const $=mm(f.startMinutes,g,c,s,i,d),w=(f.type==="plan"?[...t.plan]:[...t.result]).map(R=>R.id===f.itemId?{...R,time:$}:R);w.sort((R,T)=>R.time.localeCompare(T.time)),f.type==="plan"?n(w):r(w),Cn.success(`予定を ${$} に移動しました`)}p(null),h(0),C(!1)}},[f,g,y,t,n,r,i,s,c,d]);return l.useEffect(()=>{if(f)return document.addEventListener("mousemove",x),document.addEventListener("mouseup",S),document.body.style.cursor="grabbing",document.body.style.userSelect="none",()=>{document.removeEventListener("mousemove",x),document.removeEventListener("mouseup",S),document.body.style.cursor="",document.body.style.userSelect=""}},[f,x,S]),{dragState:f,dragOffset:g,isDraggingToResult:y,handleDragStart:b}}function UJ(e){const t=Math.floor(e/60),n=e%60;return`${t.toString().padStart(2,"0")}:${n.toString().padStart(2,"0")}`}function yS(e){const t=[];for(const n of e)if(!n.task)t.push(`* ${n.time}`);else if(t.push(`* ${n.time} [${n.project}] ${n.task}`),n.description){const r=n.description.split(`
365
+ `);for(const i of r)t.push(` ${i}`)}return t}function k4(e,t){return[`## ${t}`,...yS(e)].join(`
366
+ `)}function W4(e){const t=e.split(`
367
+ `),n=[];let r=null,i=[];const s=()=>{r&&(i.length>0&&(r.description=i.join(`
368
+ `)),n.push(r),r=null,i=[])};for(let c=0;c<t.length;c++){const d=t[c];if(d.startsWith(" ")&&r){i.push(d.substring(2));continue}const f=d.match(/^[*-]\s+(\d{1,2}:\d{2})\s+\[(\w+)\]\s+(.+)$/);if(f){s(),r={id:`s${Date.now()}-${c}`,time:f[1].padStart(5,"0"),project:f[2],task:f[3].trim()};continue}const p=d.match(/^[*-]\s+(\d{1,2}:\d{2})\s*$/);p&&(s(),n.push({id:`break${Date.now()}-${c}`,time:p[1].padStart(5,"0"),project:"",task:""}))}return s(),n}function q4(e,t=8,n=12,r=60){if(e.length===0)return[];const i=[...e].sort((f,p)=>f.time.localeCompare(p.time)),s=t*60,c=n*60,d=[];for(let f=0;f<i.length;f++){const p=i[f];if(!p.task)continue;const h=rd(p.time);let y=60;for(let b=f+1;b<i.length;b++){const x=i[b],S=rd(x.time);if(S>h){y=S-h;break}}const C=h+y;d.push({id:p.id,time:p.time,project:p.project,task:p.task,description:p.description,duration:y,isBreak:!1,startMinutes:h,endMinutes:C,top:(h-s)/c*100,height:y/c*100,topPx:(h-s)/60*r,heightPx:y/60*r})}return d}function Y4(e,t=8,n=12,r=60){if(e.length===0)return[];const i=[...e].sort((f,p)=>f.time.localeCompare(p.time)),s=[],c=t*60,d=n*60;for(let f=0;f<i.length;f++){const p=i[f];if(!p.task){let g=!1,h=0;for(let b=f+1;b<i.length;b++)if(i[b].task){h=rd(i[b].time),g=!0;break}if(!g)continue;const y=rd(p.time),C=h-y;s.push({id:p.id,startTime:p.time,endTime:UJ(h),startMinutes:y,endMinutes:h,duration:C,top:(y-c)/d*100,height:C/d*100,topPx:(y-c)/60*r,heightPx:C/60*r})}}return s}function GJ(e,t={}){const{maxHours:n=36,defaultStartHour:r=8,defaultEndHour:i=20}=t;if(e.length===0)return{startHour:r,endHour:i,totalHours:i-r};let s=r*60,c=i*60;for(const g of e){const h=rd(g.time);s=Math.min(s,h),c=Math.max(c,h)}c+=60;let d=Math.floor(s/60)-2;d<0&&(d=0);let f=Math.ceil(c/60)+2;const p=d+n;return f>p&&(f=p),{startHour:d,endHour:f,totalHours:f-d}}function XJ(e){switch(e){case"completed":return"x";case"in_progress":return"*";case"on_hold":return"-";default:return" "}}function KJ(e){switch(e.toLowerCase()){case"x":return"completed";case"*":return"in_progress";case"-":return"on_hold";default:return"pending"}}function wN(e){const t=[];for(const n of e){const r=XJ(n.status),i=n.priority==="high"?"!!!":n.priority==="medium"?"!!":n.priority==="low"?"!":"",s=n.deadline?` @${n.deadline}`:"";if(t.push(`- [${r}] [${n.project}] ${i}${n.task}${s}`),n.description){const c=n.description.split(`
369
+ `);for(const d of c)t.push(` ${d}`)}}return t}function U4(e,t){const n=["## [TODO]",""];return n.push(...wN(e)),n.push(""),n.push("## [NOTE]"),n.push(t),n.join(`
370
+ `)}function QJ(e){const t=e.split(`
371
+ `),n=[];let r="P99",i=!1;const s=[];let c=null;const d=[],f=()=>{c&&(d.length>0&&(c.description=d.join(`
372
+ `)),n.push(c),c=null,d.length=0)};for(let p=0;p<t.length;p++){const g=t[p];if(g.match(/^##\s+\[NOTE\]/i)){f(),i=!0;continue}if(i){s.push(g);continue}const h=g.match(/^###\s+(\S+)/);if(h){f(),r=h[1];continue}if(c&&g.match(/^ {2}/)){d.push(g.substring(2));continue}const y=g.match(/^-\s+\[([xX\s*-])\]\s+(.+)$/);if(y){f();const C=y[1];let b=y[2],x=r;const S=b.match(/^\[([^\]]+)\]\s*/);S&&(x=S[1],b=b.substring(S[0].length));let $;const M=b.match(/^(!!!|!!|!)/);if(M){const T=M[1];$=T==="!!!"?"high":T==="!!"?"medium":"low",b=b.substring(M[0].length)}let w;const R=b.match(/\s*@(\d{4}-\d{2}-\d{2}|\d{2}-\d{2})$/);if(R)w=R[1],b=b.substring(0,b.length-R[0].length);else{const T=b.match(/^@(\d{4}-\d{2}-\d{2}|\d{2}-\d{2})\s*/);T&&(w=T[1],b=b.substring(T[0].length))}w&&w.length===5&&(w=`${new Date().getFullYear()}-${w}`),c={id:`t${Date.now()}-${p}`,project:x,task:b.trim(),status:KJ(C),deadline:w,priority:$}}}return f(),{todos:n,notes:s.join(`
373
+ `).trim()}}function EN(e){if(!e)return!1;const t=new Date;t.setHours(0,0,0,0);const n=new Date(e);return n.setHours(0,0,0,0),n<t}function ZJ(e){if(!e)return!1;const t=new Date;t.setHours(0,0,0,0);const n=new Date(e);n.setHours(0,0,0,0);const r=Math.ceil((n.getTime()-t.getTime())/(1e3*60*60*24));return r>=0&&r<=2}function JJ(e,t,n="名前"){const r=s=>s.map(c=>`* ${c.time} [${c.project}] ${c.task}`).join(`
374
+ `),i=s=>s.map(c=>{const d=c.status==="completed"?"x":c.status==="in_progress"?"*":c.status==="on_hold"?"-":" ",f=c.deadline?`@${c.deadline} `:"",p=c.priority==="high"?"!!! ":c.priority==="medium"?"!! ":c.priority==="low"?"! ":"";return`- [${d}] ${f}${p}[${c.project}] ${c.task}`}).join(`
375
+ `);return`# [日報] ${n} ${t}
376
+
377
+ ## [PLAN]
378
+ ${r(e.plan)}
379
+
380
+ ## [RESULT]
381
+ ${r(e.result)}
382
+
383
+ ## [TODO]
384
+ ${i(e.todos)}
385
+
386
+ ## [NOTE]
387
+ ${e.notes||""}
388
+ `}const{Text:Vn}=zr,{TextArea:G4}=Pr,eee=({selectedDate:e,selectedProjects:t=[]})=>{const{report:n,config:r}=pl(),[i,s]=l.useState(!1),[c,d]=l.useState(!1),[f,p]=l.useState(null),g=l.useRef(null),h=l.useRef(null),y=n.report,C=r.projects,b=l.useMemo(()=>y?.plan||[],[y?.plan]),x=l.useMemo(()=>y?.result||[],[y?.result]),S=r.config?.timeline,$=S?.hourHeight??60,M=S?.maxHours??36,w=S?.defaultStartHour??8,R=S?.defaultEndHour??20,T=S?.snapMinutes??15,N=l.useMemo(()=>{const de=[...b,...x];return GJ(de,{maxHours:M,defaultStartHour:w,defaultEndHour:R})},[b,x,M,w,R]),{startHour:O,endHour:P,totalHours:D}=N,k=D*$,[F,Y]=l.useState(""),[G,V]=l.useState(""),{dragState:B,dragOffset:_,isDraggingToResult:H,handleDragStart:I}=YJ({resultAreaRef:h,currentReport:y,updatePlan:n.updatePlan,updateResult:n.updateResult,startHour:O,totalHours:D,hourHeight:$,snapMinutes:T}),z=de=>r.getProjectColor(de),L=gn(),A=e.isSame(L,"day"),j=L.hour()*60+L.minute(),q=Array.from({length:D+1},(de,be)=>O+be),X=l.useMemo(()=>q4(b,O,D,$),[b,O,D,$]),K=l.useMemo(()=>q4(x,O,D,$),[x,O,D,$]),J=l.useMemo(()=>Y4(b,O,D,$),[b,O,D,$]),Z=l.useMemo(()=>Y4(x,O,D,$),[x,O,D,$]),re=l.useMemo(()=>t.length>0?X.filter(de=>t.includes(de.project)):X,[X,t]),ne=l.useMemo(()=>t.length>0?K.filter(de=>t.includes(de.project)):K,[K,t]),ie=J,fe=Z,le=l.useRef(null);l.useEffect(()=>{const de=e.format("YYYY-MM-DD");if(le.current===de)return;const be=[...b,...x];if(be.length===0)return;const Me=be.reduce((Ge,et)=>{const[ze,_e]=et.time.split(":").map(Number),De=ze*60+_e;return De<Ge?De:Ge},1/0),Oe=Math.max(Me-30,O*60),Le=(Oe-O*60)/60*$;requestAnimationFrame(()=>{g.current&&!i&&(g.current.scrollTop=Le,le.current=de,console.log(`[Timeline] Scrolled to ${Oe}min (${Math.floor(Oe/60)}:${String(Oe%60).padStart(2,"0")}), scrollTop=${Le}px, firstItem=${Me}min, startHour=${O}`))})},[e,i,O,$,b,x]);const ue=(de,be)=>{n.deleteScheduleItem(be,de),Cn.success(`${be==="plan"?"計画":"実績"}を削除しました`)},ge=l.useCallback((de,be,Me)=>{n.updateScheduleItem(Me,de,{project:be}),Cn.success(`プロジェクトを ${be} に変更しました`)},[n]),oe=de=>{n.addScheduleItem("result",{time:de.time,project:de.project,task:de.task,duration:de.duration}),Cn.success(`「${de.task}」を実績にコピーしました`)},se=l.useCallback(de=>{if(de.startsWith("project:")){const be=de.split(":"),Me=be[1],Oe=be[2],Le=be[3];ge(Me,Le,Oe)}else if(de.startsWith("toResult:")){const[,be]=de.split(":"),Me=y?.plan.find(Oe=>Oe.id===be);Me&&oe(Me)}else if(de.startsWith("delete:")){const[,be,Me]=de.split(":");ue(be,Me)}},[y,ge]),he=l.useMemo(()=>re.reduce((de,be)=>de+be.duration,0),[re]),me=l.useMemo(()=>ne.reduce((de,be)=>de+be.duration,0),[ne]),xe=l.useMemo(()=>{const de=new Map;for(const Oe of X)Oe.project&&!Oe.isBreak&&de.set(Oe.project,(de.get(Oe.project)||0)+Oe.duration);const be=new Map;for(const Oe of K)Oe.project&&!Oe.isBreak&&be.set(Oe.project,(be.get(Oe.project)||0)+Oe.duration);const Me=new Set([...de.keys(),...be.keys()]);return Array.from(Me).map(Oe=>{const Le=C.find(Ge=>Ge.code===Oe);return{project:Oe,projectName:Le?.name||Oe,color:Le?.color||"#999",planMinutes:de.get(Oe)||0,resultMinutes:be.get(Oe)||0}}).sort((Oe,Le)=>Le.resultMinutes-Oe.resultMinutes||Le.planMinutes-Oe.planMinutes)},[X,K,C]),Ae=()=>{!i&&y&&(Y(k4(y.plan,"[PLAN]")),V(k4(y.result,"[RESULT]"))),s(!i)},we=()=>{const de=W4(F),be=W4(G);n.updatePlan(de),n.updateResult(be),Cn.success("反映しました"),s(!1)},$e=(de,be)=>{const Me=be?"result":"plan",Oe=f===`${Me}-${de.id}`,Le=B?.itemId===de.id&&B?.type===Me,Ge=Le&&H;return U.jsx(WJ,{item:de,type:Me,isHovered:Oe,isDragging:Le,isDraggingToResultArea:Ge,dragOffset:_,getProjectColor:z,projects:C,onHover:p,onDragStart:I,onMenuAction:se},de.id)};return U.jsxs(Ea,{title:U.jsxs(un,{children:[U.jsx(Ed,{}),U.jsx("span",{children:"タイムライン"}),U.jsx(ur,{children:e.format("MM/DD (ddd)")})]}),extra:U.jsx(un,{children:i?U.jsxs(U.Fragment,{children:[U.jsx(Ht,{size:"small",icon:U.jsx(Yr,{}),onClick:()=>s(!1),children:"キャンセル"}),U.jsx(Ht,{type:"primary",size:"small",icon:U.jsx(ul,{}),onClick:we,children:"OK"})]}):U.jsxs(U.Fragment,{children:[U.jsx(Ht,{size:"small",icon:U.jsx(u4,{}),onClick:()=>d(!0),children:"集計"}),U.jsx(Ht,{type:"primary",size:"small",icon:U.jsx(di,{}),onClick:Ae,children:"編集"})]})}),style:{height:"100%"},styles:{body:{padding:12,height:"calc(100% - 57px)",overflow:"hidden",display:"flex",flexDirection:"column"}},children:[i?U.jsxs("div",{style:{display:"flex",flex:1,gap:12,overflow:"hidden"},children:[U.jsxs("div",{style:{flex:1,display:"flex",flexDirection:"column"},children:[U.jsx(Vn,{strong:!0,style:{marginBottom:4,color:"#1890ff"},children:"計画"}),U.jsx(G4,{value:F,onChange:de=>Y(de.target.value),style:{flex:1,fontFamily:"monospace",fontSize:12}})]}),U.jsxs("div",{style:{flex:1,display:"flex",flexDirection:"column"},children:[U.jsx(Vn,{strong:!0,style:{marginBottom:4,color:"#52c41a"},children:"実績"}),U.jsx(G4,{value:G,onChange:de=>V(de.target.value),style:{flex:1,fontFamily:"monospace",fontSize:12}})]})]}):U.jsxs("div",{style:{display:"flex",flexDirection:"column",flex:1,minHeight:0},children:[U.jsxs("div",{style:{display:"flex",flexShrink:0,paddingBottom:4,borderBottom:"1px solid #f0f0f0"},children:[U.jsx("div",{style:{width:40,flexShrink:0}}),U.jsxs("div",{style:{flex:1,display:"flex",alignItems:"center",justifyContent:"center",gap:6,minWidth:80},children:[U.jsx(F3,{style:{fontSize:12,color:"#1890ff"}}),U.jsx(Vn,{style:{fontSize:11,color:"#1890ff"},children:"計画"}),U.jsx(Vn,{strong:!0,style:{fontSize:12,color:"#1890ff"},children:Hi(he)})]}),U.jsxs("div",{style:{flex:1,display:"flex",alignItems:"center",justifyContent:"center",gap:6,minWidth:80,marginLeft:8},children:[U.jsx(b1,{style:{fontSize:12,color:"#52c41a"}}),U.jsx(Vn,{style:{fontSize:11,color:"#52c41a"},children:H?"ここにドロップでコピー":"実績"}),U.jsx(Vn,{strong:!0,style:{fontSize:12,color:"#52c41a"},children:Hi(me)})]})]}),U.jsxs("div",{ref:g,style:{display:"flex",flex:1,overflow:"auto",minHeight:0},children:[U.jsx("div",{style:{width:40,flexShrink:0,position:"relative",height:k},children:q.map((de,be)=>U.jsx("div",{style:{position:"absolute",top:be*$,left:0,right:0,height:be<q.length-1?$:0,borderTop:"1px solid #f0f0f0",paddingRight:4,textAlign:"right"},children:U.jsxs(Vn,{type:"secondary",style:{fontSize:10},children:[de,":00"]})},de))}),U.jsxs("div",{style:{flex:1,position:"relative",minWidth:80,height:k,background:"#fafafa"},children:[q.map(de=>U.jsx("div",{style:{position:"absolute",top:(de-O)*$,left:0,right:0,borderTop:"1px dashed #e8e8e8"}},de)),A&&j>=O*60&&j<=P*60&&U.jsx("div",{style:{position:"absolute",top:(j-O*60)/60*$,left:0,right:0,borderTop:"2px solid #ff4d4f",zIndex:10},children:U.jsx("div",{style:{position:"absolute",left:-4,top:-6,width:10,height:10,borderRadius:"50%",background:"#ff4d4f"}})}),ie.map(de=>{const be=B?.itemId===de.id&&B?.isBreak;return U.jsx("div",{style:{position:"absolute",top:(de.startMinutes-O*60)/60*$+(be?_:0),height:de.duration/60*$,left:4,right:4,background:"repeating-linear-gradient(45deg, #f5f5f5, #f5f5f5 4px, #e8e8e8 4px, #e8e8e8 8px)",borderRadius:4,border:"1px dashed #d9d9d9",display:"flex",alignItems:"center",justifyContent:"center",opacity:be?.5:.8,cursor:"grab",transition:be?"none":"opacity 0.2s"},onMouseDown:Me=>I(Me,de.id,"plan",de.startMinutes,!0,de.duration),children:U.jsx(Vn,{type:"secondary",style:{fontSize:10},children:"休憩"})},de.id)}),re.map(de=>$e(de,!1))]}),U.jsxs("div",{ref:h,style:{flex:1,position:"relative",minWidth:80,marginLeft:8,height:k,background:"#fafafa",transition:"all 0.2s",...H&&{boxShadow:"0 0 0 2px #52c41a"}},children:[q.map(de=>U.jsx("div",{style:{position:"absolute",top:(de-O)*$,left:0,right:0,borderTop:"1px dashed #e8e8e8"}},de)),fe.map(de=>{const be=B?.itemId===de.id&&B?.isBreak;return U.jsx("div",{style:{position:"absolute",top:(de.startMinutes-O*60)/60*$+(be?_:0),height:de.duration/60*$,left:4,right:4,background:"repeating-linear-gradient(45deg, #f5f5f5, #f5f5f5 4px, #e8e8e8 4px, #e8e8e8 8px)",borderRadius:4,border:"1px dashed #d9d9d9",display:"flex",alignItems:"center",justifyContent:"center",opacity:be?.5:.8,cursor:"grab",transition:be?"none":"opacity 0.2s"},onMouseDown:Me=>I(Me,de.id,"result",de.startMinutes,!0,de.duration),children:U.jsx(Vn,{type:"secondary",style:{fontSize:10},children:"休憩"})},de.id)}),ne.map(de=>$e(de,!0)),U.jsx(qJ,{dragState:B,dragOffset:_,isDraggingToResult:H,planItems:b,getProjectColor:z,startHour:O,hourHeight:$})]})]})]}),U.jsx(ao,{title:U.jsxs(un,{children:[U.jsx(u4,{}),U.jsx("span",{children:"プロジェクト別稼働時間"}),U.jsx(ur,{children:e.format("MM/DD (ddd)")})]}),open:c,onCancel:()=>d(!1),footer:null,width:600,children:U.jsxs("div",{style:{padding:"16px 0"},children:[U.jsxs("div",{style:{display:"flex",justifyContent:"space-around",marginBottom:24,padding:"12px 16px",background:"#fafafa",borderRadius:8},children:[U.jsxs("div",{style:{textAlign:"center"},children:[U.jsx(Vn,{type:"secondary",style:{fontSize:12},children:"計画"}),U.jsx("div",{children:U.jsx(Vn,{strong:!0,style:{fontSize:20,color:"#1890ff"},children:Hi(he)})})]}),U.jsxs("div",{style:{textAlign:"center"},children:[U.jsx(Vn,{type:"secondary",style:{fontSize:12},children:"実績"}),U.jsx("div",{children:U.jsx(Vn,{strong:!0,style:{fontSize:20,color:"#52c41a"},children:Hi(me)})})]}),U.jsxs("div",{style:{textAlign:"center"},children:[U.jsx(Vn,{type:"secondary",style:{fontSize:12},children:"差分"}),U.jsx("div",{children:U.jsxs(Vn,{strong:!0,style:{fontSize:20,color:me>=he?"#52c41a":"#ff4d4f"},children:[me>=he?"+":"-",Hi(Math.abs(me-he))]})})]})]}),xe.length>0?U.jsx("div",{style:{display:"flex",flexDirection:"column",gap:12},children:xe.map(de=>{const be=Math.max(...xe.map(Le=>Math.max(Le.planMinutes,Le.resultMinutes)),60),Me=de.planMinutes/be*100,Oe=de.resultMinutes/be*100;return U.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:4},children:[U.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[U.jsx("div",{style:{width:12,height:12,borderRadius:2,background:de.color,flexShrink:0}}),U.jsxs(Vn,{strong:!0,style:{fontSize:13},children:["[",de.project,"] ",de.projectName]})]}),U.jsxs("div",{style:{marginLeft:20},children:[U.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:2},children:[U.jsx(Vn,{type:"secondary",style:{fontSize:11,width:32},children:"計画"}),U.jsx("div",{style:{flex:1,height:16,background:"#f0f0f0",borderRadius:2,overflow:"hidden"},children:U.jsx("div",{style:{width:`${Me}%`,height:"100%",background:`linear-gradient(90deg, ${de.color}88, ${de.color}cc)`,transition:"width 0.3s ease"}})}),U.jsx(Vn,{style:{fontSize:12,width:50,textAlign:"right",color:"#1890ff"},children:Hi(de.planMinutes)})]}),U.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:[U.jsx(Vn,{type:"secondary",style:{fontSize:11,width:32},children:"実績"}),U.jsx("div",{style:{flex:1,height:16,background:"#f0f0f0",borderRadius:2,overflow:"hidden"},children:U.jsx("div",{style:{width:`${Oe}%`,height:"100%",background:de.color,transition:"width 0.3s ease"}})}),U.jsx(Vn,{style:{fontSize:12,width:50,textAlign:"right",color:"#52c41a"},children:Hi(de.resultMinutes)})]})]})]},de.project)})}):U.jsx("div",{style:{textAlign:"center",padding:40},children:U.jsx(Vn,{type:"secondary",children:"データがありません"})})]})})]})},tee=({status:e,onClick:t})=>{const n={display:"inline-flex",alignItems:"center",justifyContent:"center",width:18,height:18,cursor:"pointer",flexShrink:0},r={display:"inline-flex",alignItems:"center",justifyContent:"center",width:14,height:14,borderRadius:2};switch(e){case"completed":return U.jsx("span",{style:n,onClick:t,children:U.jsx(gG,{style:{fontSize:18,color:"#52c41a"}})});case"in_progress":return U.jsx("span",{style:n,onClick:t,children:U.jsx("span",{style:{...r,border:"2px solid #1890ff"},children:U.jsx(uG,{style:{fontSize:8,color:"#1890ff"}})})});case"on_hold":return U.jsx("span",{style:n,onClick:t,children:U.jsx("span",{style:{...r,border:"2px solid #faad14"},children:U.jsx(SX,{style:{fontSize:8,color:"#faad14"}})})});default:return U.jsx("span",{style:n,onClick:t,children:U.jsx(aG,{style:{fontSize:18,color:"#d9d9d9"}})})}},{Text:X4}=zr,{TextArea:nee}=Pr,ree=({todo:e,isHovered:t,isEditing:n,editText:r,editDeadline:i,editPriority:s,projects:c,onHover:d,onStatusChange:f,onSaveEdit:p,onCancelEdit:g,onEditTextChange:h,onEditDeadlineChange:y,onEditPriorityChange:C,onMenuAction:b})=>{const x=EN(e.deadline),S=ZJ(e.deadline),$=R=>R==="high"?U.jsx(ur,{color:"red",style:{margin:0,fontSize:10},children:"高"}):R==="medium"?U.jsx(ur,{color:"orange",style:{margin:0,fontSize:10},children:"中"}):null,w={items:[{key:"edit",label:"編集",icon:U.jsx(di,{})},{key:"project",label:"プロジェクト変更",children:c.filter(R=>R.active).map(R=>({key:`project:${e.id}:${R.code}`,label:U.jsxs(un,{children:[U.jsx(ui,{color:R.color}),R.name]})}))},{type:"divider"},{key:"delete",label:"削除",icon:U.jsx(up,{}),danger:!0}],onClick:({key:R})=>b(R,e),onSelect:({key:R})=>b(R,e),subMenuOpenDelay:.1,subMenuCloseDelay:.2};return n?U.jsx(So.Item,{style:{padding:"8px 12px",borderRadius:6,marginBottom:6,border:"1px solid #1890ff",background:"#e6f7ff"},children:U.jsxs("div",{style:{width:"100%"},children:[U.jsx(nee,{value:r,onChange:R=>h(R.target.value),autoSize:{minRows:2,maxRows:8},style:{marginBottom:8,fontSize:12},placeholder:`1行目: タスク名
389
+ 2行目以降: 詳細説明(任意)`}),U.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",flexWrap:"wrap",gap:8},children:[U.jsxs(un,{size:"small",children:[U.jsx(ml,{size:"small",placeholder:"期日",value:i?gn(i):null,onChange:R=>y(R?R.format("YYYY-MM-DD"):void 0),style:{width:120},format:"MM/DD"}),U.jsx(Vr,{size:"small",placeholder:"優先度",value:s,onChange:R=>C(R),allowClear:!0,style:{width:80},options:[{value:"high",label:U.jsx(ur,{color:"red",style:{margin:0},children:"高"})},{value:"medium",label:U.jsx(ur,{color:"orange",style:{margin:0},children:"中"})},{value:"low",label:U.jsx(ur,{color:"blue",style:{margin:0},children:"低"})}]})]}),U.jsxs(un,{size:"small",children:[U.jsx(Ht,{size:"small",icon:U.jsx(Yr,{}),onClick:g,children:"キャンセル"}),U.jsx(Ht,{size:"small",type:"primary",icon:U.jsx(ul,{}),onClick:p,children:"OK"})]})]})]})}):U.jsx(So.Item,{onMouseEnter:()=>d(e.id),onMouseLeave:()=>d(null),style:{padding:"8px 12px",background:e.status==="completed"?"#fafafa":x?"#fff2f0":"transparent",opacity:e.status==="completed"?.6:1,borderRadius:6,marginBottom:6,border:x&&e.status!=="completed"?"1px solid #ffccc7":"1px solid #f0f0f0"},children:U.jsxs("div",{style:{display:"flex",alignItems:"flex-start",gap:8,width:"100%"},children:[U.jsx(tee,{status:e.status,onClick:()=>f(e.id)}),U.jsxs("div",{style:{flex:1,minWidth:0},children:[U.jsxs("div",{style:{display:"flex",alignItems:"center",gap:6,flexWrap:"wrap"},children:[U.jsx(X4,{delete:e.status==="completed",style:{fontWeight:500,fontSize:13},children:e.task}),$(e.priority),x&&e.status!=="completed"&&U.jsxs(ur,{color:"error",style:{margin:0,fontSize:10},children:[U.jsx(W3,{})," 期限切れ"]})]}),e.description&&U.jsx("div",{style:{marginTop:4,paddingLeft:4},children:U.jsx(X4,{type:"secondary",style:{fontSize:12,whiteSpace:"pre-wrap",lineHeight:1.5},children:e.description})}),e.deadline&&U.jsx("div",{style:{display:"flex",alignItems:"center",gap:6,marginTop:4},children:U.jsx(fr,{title:`期限: ${e.deadline}`,children:U.jsxs(ur,{color:x?"error":S?"warning":"default",style:{margin:0,fontSize:10},children:[U.jsx(Ed,{style:{marginRight:2}}),gn(e.deadline).format("MM/DD")]})})})]}),U.jsx(un,{size:4,style:{visibility:t?"visible":"hidden",flexShrink:0},children:U.jsx(C1,{menu:w,trigger:["click"],placement:"bottomRight",styles:{root:{minWidth:140}},children:U.jsx(V3,{style:{fontSize:16,color:"#666",cursor:"pointer",padding:"0 4px"},onClick:R=>R.stopPropagation()})})})]})})},oee=({filter:e,counts:t,onFilterChange:n})=>{const r=[{key:"all",icon:U.jsx(fX,{}),label:"全て",count:t.all,color:"#666"},{key:"pending",icon:U.jsx(Ed,{}),label:"未着手",count:t.pending,color:"#999"},{key:"in_progress",icon:U.jsx(F3,{}),label:"進行中",count:t.in_progress,color:"#1890ff"},{key:"completed",icon:U.jsx(b1,{}),label:"完了",count:t.completed,color:"#52c41a"},{key:"on_hold",icon:U.jsx(yX,{}),label:"保留",count:t.on_hold,color:"#faad14"}];return U.jsx("div",{style:{display:"flex",borderBottom:"1px solid #e8e8e8",background:"#fafafa",flexShrink:0},children:r.map(i=>U.jsxs("div",{onClick:()=>n(i.key),style:{flex:1,display:"flex",alignItems:"center",justifyContent:"center",gap:4,padding:"10px 4px",cursor:"pointer",background:e===i.key?"#fff":"transparent",borderBottom:e===i.key?`2px solid ${i.color}`:"2px solid transparent",transition:"all 0.2s"},children:[U.jsx("span",{style:{fontSize:14,color:e===i.key?i.color:"#999"},children:i.icon}),U.jsx("span",{style:{fontSize:11,color:e===i.key?i.color:"#999",fontWeight:e===i.key?600:400},children:i.label}),U.jsx(ui,{count:i.count,size:"small",style:{backgroundColor:e===i.key?i.color:"#d9d9d9",fontSize:10}})]},i.key))})},{Text:Yc}=zr,{TextArea:K4}=Pr,aee=({selectedProjects:e=[]})=>{const{report:t,config:n}=pl(),[r,i]=l.useState("all"),[s,c]=l.useState(!1),[d,f]=l.useState(null),[p,g]=l.useState(null),[h,y]=l.useState(""),[C,b]=l.useState(void 0),[x,S]=l.useState(void 0),$=t.report,M=$?.todos||[],w=n.projects,[R,T]=l.useState($?.notes||""),[N,O]=l.useState("");l.useEffect(()=>{$&&(T($.notes||""),O(U4($.todos,$.notes||"")))},[$]),l.useEffect(()=>{$&&R!==$.notes&&t.updateNotes(R)},[R]);const P=X=>n.getProjectColor(X),D=X=>n.getProjectName(X),k=e.length>0?M.filter(X=>e.includes(X.project)):M,F=k.filter(X=>!(r!=="all"&&X.status!==r)),Y=F.filter(X=>X.deadline&&EN(X.deadline)&&X.status!=="completed"),G=F.reduce((X,K)=>{const J=K.project;return X[J]||(X[J]=[]),X[J].push(K),X},{}),V=X=>{t.toggleTodoStatus(X)},B=(X,K)=>{t.updateTodo(X,{project:K}),Cn.success(`プロジェクトを ${K} に変更しました`)},_=X=>{t.deleteTodo(X),Cn.success("TODOを削除しました")},H=X=>{g(X.id);const K=X.description?`${X.task}
390
+ ${X.description}`:X.task;y(K),b(X.deadline),S(X.priority)},I=()=>{if(p){const X=h.split(`
391
+ `),K=X[0].trim(),J=X.slice(1).join(`
392
+ `).trim()||void 0;t.updateTodo(p,{task:K,description:J,deadline:C,priority:x}),Cn.success("更新しました"),g(null),y(""),b(void 0),S(void 0)}},z=()=>{g(null),y(""),b(void 0),S(void 0)},L=l.useCallback((X,K)=>{if(X==="edit")H(K);else if(X.startsWith("project:")){const J=X.split(":"),Z=J[1],re=J[2];B(Z,re)}else X==="delete"&&_(K.id)},[B]),A={all:k.length,pending:k.filter(X=>X.status==="pending").length,in_progress:k.filter(X=>X.status==="in_progress").length,completed:k.filter(X=>X.status==="completed").length,on_hold:k.filter(X=>X.status==="on_hold").length},j=()=>{!s&&$&&O(U4($.todos,$.notes||"")),c(!s)},q=()=>{const{todos:X,notes:K}=QJ(N);t.updateTodos(X),t.updateNotes(K),T(K),Cn.success("反映しました"),c(!1)};return U.jsx(Ea,{title:U.jsxs(un,{children:[U.jsx(B3,{}),U.jsx("span",{children:"TODO"}),U.jsx(ui,{count:A.pending+A.in_progress,style:{backgroundColor:"#1890ff"}}),Y.length>0&&U.jsxs("span",{style:{display:"inline-flex",alignItems:"center",gap:4,marginLeft:8,padding:"2px 8px",backgroundColor:"#fff7e6",border:"1px solid #ffd591",borderRadius:4,fontSize:11,color:"#d46b08"},children:[U.jsx(W3,{}),U.jsxs("span",{children:[Y.length,"件期限切れ"]})]})]}),extra:s?U.jsxs(un,{children:[U.jsx(Ht,{size:"small",icon:U.jsx(Yr,{}),onClick:()=>c(!1),children:"キャンセル"}),U.jsx(Ht,{type:"primary",size:"small",icon:U.jsx(ul,{}),onClick:q,children:"OK"})]}):U.jsx(Ht,{type:"primary",size:"small",icon:U.jsx(di,{}),onClick:j,children:"編集"}),style:{height:"100%"},styles:{body:{padding:0,height:"calc(100% - 57px)",overflow:"hidden",display:"flex",flexDirection:"column"}},children:s?U.jsxs("div",{style:{flex:1,padding:12,display:"flex",flexDirection:"column"},children:[U.jsx(Yc,{type:"secondary",style:{marginBottom:8,fontSize:11},children:"TODO: - [ ] タスク名 @期日 !優先度 / NOTE: ## [NOTE] 以降に自由記述"}),U.jsx(K4,{value:N,onChange:X=>O(X.target.value),style:{flex:1,fontFamily:"monospace",fontSize:12}})]}):U.jsxs(U.Fragment,{children:[U.jsx(oee,{filter:r,counts:A,onFilterChange:i}),U.jsxs("div",{style:{flex:1,overflow:"auto",padding:"12px 12px 12px 12px"},children:[Object.entries(G).map(([X,K])=>U.jsxs("div",{style:{marginBottom:16},children:[U.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,marginBottom:8,padding:"6px 10px",background:"#f5f5f5",borderRadius:6},children:[U.jsx("div",{style:{width:10,height:10,borderRadius:"50%",backgroundColor:P(X),flexShrink:0}}),U.jsxs(Yc,{type:"secondary",style:{fontSize:10},children:["[",X,"]"]}),U.jsx(Yc,{strong:!0,style:{fontSize:12},children:D(X)}),U.jsxs(Yc,{type:"secondary",style:{fontSize:11},children:["(",K.length,")"]})]}),U.jsx(So,{dataSource:K,renderItem:J=>U.jsx(ree,{todo:J,isHovered:d===J.id,isEditing:p===J.id,editText:h,editDeadline:C,editPriority:x,projects:w,getProjectColor:P,onHover:f,onStatusChange:V,onStartEdit:H,onSaveEdit:I,onCancelEdit:z,onEditTextChange:y,onEditDeadlineChange:b,onEditPriorityChange:S,onMenuAction:L},J.id),size:"small",split:!1})]},X)),U.jsx(ri,{style:{margin:"16px 0 12px 0"}}),U.jsxs("div",{style:{marginBottom:12},children:[U.jsx("div",{style:{display:"flex",alignItems:"center",marginBottom:8},children:U.jsxs(un,{children:[U.jsx(dp,{style:{color:"#666"}}),U.jsx(Yc,{strong:!0,style:{fontSize:12},children:"NOTE"})]})}),U.jsx(K4,{value:R,onChange:X=>T(X.target.value),autoSize:{minRows:3,maxRows:8},placeholder:"メモを入力...",style:{fontSize:12}})]})]})]})})},{Text:pm}=zr,iee=({selectedProjects:e=[],onToggleProject:t})=>{const{config:n,report:r}=pl(),i=n.projects,s=l.useMemo(()=>{const p=r.report?.todos||[];return i.filter(g=>g.active).map(g=>{const y=p.filter(C=>C.project===g.code).filter(C=>C.status!=="completed").length;return{...g,pendingTodos:y}})},[i,r.report?.todos]),c=l.useMemo(()=>s.reduce((p,g)=>(p[g.category]||(p[g.category]=[]),p[g.category].push(g),p),{}),[s]),d={internal:"社内業務",client:"クライアント",personal:"個人"},f=p=>{t&&t(p)};return U.jsx(Ea,{title:U.jsxs(un,{children:[U.jsx(EX,{}),U.jsx("span",{children:"プロジェクト"})]}),extra:U.jsx(Ht,{type:"text",size:"small",icon:U.jsx(HX,{})}),style:{height:"100%"},styles:{body:{padding:12,height:"calc(100% - 57px)",overflow:"auto"}},children:Object.entries(c).map(([p,g])=>U.jsxs("div",{style:{marginBottom:12},children:[U.jsxs("div",{style:{display:"flex",alignItems:"center",marginBottom:6,padding:"4px 8px",background:"#f5f5f5",borderRadius:4},children:[U.jsx(pm,{strong:!0,style:{fontSize:11},children:d[p]||p}),U.jsxs(pm,{type:"secondary",style:{fontSize:10,marginLeft:6},children:["(",g.length,")"]})]}),U.jsx(So,{dataSource:g,renderItem:h=>{const y=e.includes(h.code);return U.jsx(So.Item,{onClick:()=>f(h.code),style:{padding:"8px 10px",marginBottom:4,borderRadius:6,border:y?`2px solid ${h.color}`:"1px solid #f0f0f0",cursor:"pointer",background:y?`${h.color}10`:"#fff",transition:"all 0.2s"},children:U.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,width:"100%"},children:[U.jsx("div",{style:{width:10,height:10,borderRadius:"50%",backgroundColor:h.color,flexShrink:0}}),U.jsxs("div",{style:{flex:1,minWidth:0},children:[U.jsxs(pm,{type:"secondary",style:{fontSize:10,marginRight:4},children:["[",h.code,"]"]}),U.jsx(pm,{strong:!0,style:{fontSize:12},children:h.name})]}),h.pendingTodos>0&&U.jsx(ui,{count:h.pendingTodos,size:"small",style:{backgroundColor:"#999"}})]})})},size:"small",split:!1})]},p))})},{TextArea:lee}=Pr,{Text:ls}=zr,see=({onApplyRoutine:e})=>{const{config:t}=pl(),{loadConfig:n}=t,[r,i]=l.useState(new Set),[s,c]=l.useState(!1),[d,f]=l.useState(""),[p,g]=l.useState(!1),[h,y]=l.useState(!1),C=t.routines?.weekly||{},b=t.routines?.adhoc||[],x=t.routines?.monthly||{},S=t.routines?.quarterly||[],$=t.routines?.yearly||[],M=l.useCallback(async()=>{y(!0);try{const I=await yp.getRoutinesMarkdown({});f(I.content),c(!0)}catch(I){console.error("Failed to load routines markdown:",I),Cn.error("ルーチン設定の読み込みに失敗しました")}finally{y(!1)}},[]),w=l.useCallback(async()=>{g(!0);try{await yp.saveRoutinesMarkdown({data:{content:d}}),Cn.success("ルーチン設定を保存しました"),c(!1),await n()}catch(I){console.error("Failed to save routines markdown:",I),Cn.error("ルーチン設定の保存に失敗しました")}finally{g(!1)}},[d,n]),R=l.useCallback(()=>{c(!1),f("")},[]),T=I=>t.getProjectColor(I),N=[{key:"monday",label:"月"},{key:"tuesday",label:"火"},{key:"wednesday",label:"水"},{key:"thursday",label:"木"},{key:"friday",label:"金"},{key:"saturday",label:"土"},{key:"sunday",label:"日"},{key:"adhoc",label:"随時"},{key:"monthly",label:"月次"},{key:"quarterly",label:"四半期"},{key:"yearly",label:"年次"}],O=gn().day(),P=O===0?"sunday":N[O-1].key,D=l.useMemo(()=>{const I=[];return x.schedule&&x.schedule.forEach(z=>{I.push({time:z.time,project:z.project,task:z.task,category:"plan"})}),x.start_of_month&&x.start_of_month.forEach(z=>{I.push({project:z.project,task:`[月初] ${z.task}`,category:z.category||"todo"})}),x.end_of_month&&x.end_of_month.forEach(z=>{I.push({project:z.project,task:`[月末] ${z.task}`,category:z.category||"todo"})}),I},[x]),k=l.useMemo(()=>{const I=[];return S.forEach(z=>{if(z.schedule&&z.schedule.forEach(L=>{I.push({time:L.time,project:L.project,task:L.task,category:"plan"})}),z.months.length>0){const L=z.months.join(",")+"月";z.tasks.forEach(A=>{I.push({project:A.project,task:`[${L}] ${A.task}`,category:A.category||"todo"})})}}),I},[S]),F=l.useMemo(()=>$.map(I=>I.time&&I.month===0&&I.day===0?{time:I.time,project:I.project,task:I.task,category:"plan"}:{project:I.project,task:I.task,category:"todo"}),[$]),Y=(I,z)=>{const L=`${I}:${z}`;i(A=>{const j=new Set(A);return j.has(L)?j.delete(L):j.add(L),j})},G=(I,z)=>{const L=z.map((j,q)=>`${I}:${q}`),A=L.every(j=>r.has(j));i(j=>{const q=new Set(j);return A?L.forEach(X=>q.delete(X)):L.forEach(X=>q.add(X)),q})},V=()=>{if(r.size===0){Cn.info("追加するルーチンを選択してください");return}const I=[];if(r.forEach(z=>{const[L,A]=z.split(":"),j=parseInt(A,10);let q;if(L==="adhoc"?q=b[j]:L==="monthly"?q=D[j]:L==="quarterly"?q=k[j]:L==="yearly"?q=F[j]:q=C[L]?.[j],q){const X=q.time&&q.time!=="",K=q.category||(X?"plan":"todo");I.push({time:q.time,project:q.project,task:q.task,duration:q.duration,category:K})}}),I.length>0&&e){e(I),i(new Set);const z=I.filter(j=>j.category==="plan").length,L=I.filter(j=>j.category==="todo").length,A=[];z>0&&A.push(`PLAN: ${z}件`),L>0&&A.push(`TODO: ${L}件`),Cn.success(`ルーチンを追加しました(${A.join("、")})`)}},B=(I,z)=>{const L=z.map((q,X)=>`${I}:${X}`),A=L.length>0&&L.every(q=>r.has(q)),j=L.some(q=>r.has(q));return U.jsxs("div",{children:[z.length>0&&U.jsx("div",{style:{marginBottom:8,display:"flex",alignItems:"center"},children:U.jsx(Os,{checked:A,indeterminate:j&&!A,onChange:()=>G(I,z),children:U.jsx(ls,{type:"secondary",style:{fontSize:11},children:"すべて選択"})})}),z.length===0?U.jsx("div",{style:{textAlign:"center",padding:16},children:U.jsx(ls,{type:"secondary",children:"ルーチンが登録されていません"})}):U.jsx(So,{dataSource:z,renderItem:(q,X)=>{const K=`${I}:${X}`,J=r.has(K),Z=q.time&&q.time!=="",re=q.category==="todo"||!Z;return U.jsx(So.Item,{style:{padding:"6px 8px",marginBottom:4,borderRadius:4,borderLeft:`3px solid ${T(q.project)}`,background:J?"#e6f7ff":"#fafafa",cursor:"pointer",transition:"background 0.2s"},onClick:()=>Y(I,String(X)),children:U.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,width:"100%"},children:[U.jsx(Os,{checked:J,onClick:ne=>ne.stopPropagation(),onChange:()=>Y(I,String(X))}),re?U.jsxs(ls,{style:{fontSize:11,color:"#52c41a",minWidth:40},children:[U.jsx(B3,{style:{marginRight:2}}),"TODO"]}):U.jsxs(ls,{style:{fontSize:11,color:"#1890ff",minWidth:40,fontWeight:500},children:[U.jsx(Ed,{style:{marginRight:2}}),q.time]}),U.jsx(ur,{color:T(q.project),style:{margin:0,fontSize:10},children:q.project}),U.jsx(ls,{ellipsis:!0,style:{flex:1,fontSize:12},children:q.task}),q.duration&&q.duration>0&&U.jsx(ls,{type:"secondary",style:{fontSize:10},children:_(q.duration)})]})})},size:"small",split:!1})]})},_=I=>{if(!I||isNaN(I))return"";const z=Math.floor(I/60),L=I%60;return z===0?`${L}分`:L===0?`${z}時間`:`${z}時間${L}分`},H=l.useMemo(()=>N.map(I=>{let z;I.key==="adhoc"?z=b:I.key==="monthly"?z=D:I.key==="quarterly"?z=k:I.key==="yearly"?z=F:z=C[I.key]||[];const L=I.key===P,A=z.filter((j,q)=>r.has(`${I.key}:${q}`)).length;return{key:I.key,label:U.jsxs(un,{size:4,children:[U.jsx("span",{children:I.label}),L&&U.jsx(ui,{status:"processing"}),A>0&&U.jsx(ui,{count:A,size:"small",style:{backgroundColor:"#1890ff"}})]}),children:B(I.key,z)}}),[C,b,D,k,F,r,P]);return s?U.jsx(Ea,{title:U.jsxs(un,{children:[U.jsx(di,{}),U.jsx("span",{children:"ルーチン編集"})]}),extra:U.jsxs(un,{children:[U.jsx(Ht,{size:"small",icon:U.jsx(Yr,{}),onClick:R,disabled:p,children:"キャンセル"}),U.jsx(Ht,{type:"primary",size:"small",icon:U.jsx(v1,{}),onClick:w,loading:p,children:"保存"})]}),style:{height:"100%"},styles:{body:{padding:12,height:"calc(100% - 57px)",display:"flex",flexDirection:"column"}},children:U.jsx(lee,{value:d,onChange:I=>f(I.target.value),style:{flex:1,fontFamily:"monospace",fontSize:12,resize:"none"},placeholder:`## [ROUTINES]
393
+
394
+ ### [Mon]
395
+ * 08:00 [P99] タスク確認
396
+
397
+ ### [month]
398
+ - [ ] [P99] 月末タスク`})}):U.jsx(Ea,{title:U.jsxs(un,{children:[U.jsx(k3,{}),U.jsx("span",{children:"ルーチン"})]}),extra:U.jsxs(un,{children:[U.jsxs(Ht,{type:"primary",size:"small",icon:U.jsx(sp,{}),disabled:r.size===0,onClick:V,children:["追加 ",r.size>0&&`(${r.size})`]}),U.jsx(Ht,{size:"small",icon:U.jsx(di,{}),onClick:M,loading:h,children:"編集"})]}),style:{height:"100%"},styles:{body:{padding:12,height:"calc(100% - 57px)",overflow:"auto"}},children:U.jsx(y1,{defaultActiveKey:P,size:"small",items:H})})},{Text:db}=zr,{TextArea:Q4}=Pr,cee=()=>{const e=[];for(let t=6;t<=23;t++)for(let n=0;n<60;n+=15){const r=`${t.toString().padStart(2,"0")}:${n.toString().padStart(2,"0")}`;e.push({value:r,label:r})}return e},uee=cee(),dee=({selectedDate:e})=>{const{report:t,config:n}=pl(),[r,i]=l.useState("visual"),[s,c]=l.useState([]),[d,f]=l.useState([]),[p,g]=l.useState([]),[h,y]=l.useState("");l.useEffect(()=>{t.report&&(c(t.report.plan),f(t.report.result),g(t.report.todos),y(t.report.notes||""))},[t.report]);const C=n.projects,b=n.routines?.weekly,x=()=>JJ({date:e.format("YYYY-MM-DD"),plan:s,result:d,todos:p,notes:h,author:t.report?.author||"名前"},e.format("YYYY-MM-DD"),t.report?.author||"名前"),[S,$]=l.useState(x()),M=C.filter(I=>I.active).map(I=>({value:I.code,label:U.jsxs(un,{children:[U.jsx("span",{style:{color:I.color},children:"●"}),I.code," - ",I.name]})})),w=()=>{if(!b)return[];const z=["sunday","monday","tuesday","wednesday","thursday","friday","saturday"][e.day()];return b[z]||[]},R=I=>{const z={id:`${I}-${Date.now()}`,time:gn().format("HH:00"),project:"P99",task:""};I==="plan"?c([...s,z]):f([...d,z])},T=(I,z)=>{I==="plan"?c(s.filter(L=>L.id!==z)):f(d.filter(L=>L.id!==z))},N=(I,z,L,A)=>{const j=q=>q.map(X=>X.id===z?{...X,[L]:A}:X);I==="plan"?c(j(s)):f(j(d))},O=()=>{const I={id:`todo-${Date.now()}`,project:"P99",task:"",status:"pending"};g([...p,I])},P=(I,z,L)=>{g(p.map(A=>A.id===I?{...A,[z]:L}:A))},D=I=>{g(p.filter(z=>z.id!==I))},k=()=>{Cn.success("保存しました")},F=()=>{const I=w(),z=I.map((L,A)=>({id:`plan-routine-${Date.now()}-${A}`,time:L.time||"09:00",project:L.project,task:L.task,duration:L.duration}));c([...s,...z]),Cn.success(`${I.length}件のルーチンを計画に追加しました`)},Y=()=>{const z=[{id:"g1",time:"10:00",task:"チームMTG",project:"P99"},{id:"g2",time:"14:00",task:"1on1",project:"P99"}].map((L,A)=>({id:`plan-gcal-${Date.now()}-${A}`,time:L.time,project:L.project,task:L.task}));c([...s,...z]),Cn.success("Googleカレンダーから計画を取り込みました")},G=()=>{const I=s.map((z,L)=>({...z,id:`result-copy-${Date.now()}-${L}`}));f(I),Cn.success("計画を実績にコピーしました")},V=(I,z)=>U.jsxs("div",{style:{marginBottom:16},children:[U.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:8},children:[U.jsx(db,{strong:!0,style:{fontSize:14},children:I==="plan"?"[PLAN] 計画":"[RESULT] 実績"}),U.jsxs(un,{children:[I==="plan"&&U.jsxs(U.Fragment,{children:[U.jsx(fr,{title:"ルーチンから取り込み",children:U.jsx(Ht,{size:"small",icon:U.jsx(k3,{}),onClick:F,children:"ルーチン"})}),U.jsx(fr,{title:"Googleカレンダーから取り込み",children:U.jsx(Ht,{size:"small",icon:U.jsx(iX,{}),onClick:Y,children:"GCal"})})]}),I==="result"&&U.jsx(fr,{title:"計画を実績にコピー",children:U.jsx(Ht,{size:"small",type:"primary",ghost:!0,icon:U.jsx(L3,{}),onClick:G,children:"計画をコピー"})}),U.jsx(Ht,{size:"small",type:"primary",icon:U.jsx(sp,{}),onClick:()=>R(I),children:"追加"})]})]}),I==="result"&&U.jsx(pT,{type:"info",message:"計画を元に実績を記録してください。計画と異なる場合は直接編集できます。",style:{marginBottom:8,fontSize:12},showIcon:!0}),U.jsx(So,{dataSource:z,renderItem:L=>U.jsx(So.Item,{style:{padding:"10px 12px",marginBottom:6,borderRadius:6,border:"1px solid #f0f0f0",background:"#fafafa"},children:U.jsxs("div",{style:{width:"100%"},children:[U.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,width:"100%"},children:[U.jsx(DG,{style:{color:"#999",cursor:"grab"}}),U.jsx(Vr,{value:L.time,options:uee,size:"small",style:{width:90},showSearch:!0,filterOption:(A,j)=>(j?.value??"").toLowerCase().includes(A.toLowerCase()),onChange:A=>N(I,L.id,"time",A),placeholder:"時刻"}),U.jsx(Vr,{value:L.project,options:M,size:"small",style:{width:150},onChange:A=>N(I,L.id,"project",A)}),U.jsx(Pr,{value:L.task,placeholder:"タスク名を入力...",size:"small",style:{flex:1},onChange:A=>N(I,L.id,"task",A.target.value)}),U.jsx(dS,{title:"削除しますか?",onConfirm:()=>T(I,L.id),children:U.jsx(Ht,{type:"text",size:"small",danger:!0,icon:U.jsx(up,{})})})]}),U.jsx(Pr.TextArea,{value:L.description||"",placeholder:"詳細説明(任意)",size:"small",autoSize:{minRows:1,maxRows:4},style:{marginTop:8,marginLeft:24},onChange:A=>N(I,L.id,"description",A.target.value)})]})}),size:"small",split:!1,locale:{emptyText:"項目がありません"}})]}),B=()=>U.jsxs("div",{style:{marginBottom:16},children:[U.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:8},children:[U.jsx(db,{strong:!0,style:{fontSize:14},children:"[TODO]"}),U.jsx(Ht,{size:"small",type:"primary",icon:U.jsx(sp,{}),onClick:O,children:"追加"})]}),U.jsx(So,{dataSource:p,renderItem:I=>U.jsx(So.Item,{style:{padding:"10px 12px",marginBottom:6,borderRadius:6,border:"1px solid #f0f0f0",background:"#fafafa"},children:U.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,width:"100%"},children:[U.jsx(Vr,{value:I.status,size:"small",style:{width:110},onChange:z=>P(I.id,"status",z),options:[{value:"pending",label:"[ ] 未着手"},{value:"in_progress",label:"[*] 進行中"},{value:"completed",label:"[x] 完了"},{value:"on_hold",label:"[-] 保留"}]}),U.jsx(Vr,{value:I.project,options:M,size:"small",style:{width:150},onChange:z=>P(I.id,"project",z)}),U.jsx(Pr,{value:I.task,placeholder:"タスク名を入力...",size:"small",style:{flex:1},onChange:z=>P(I.id,"task",z.target.value)}),U.jsx(Pr,{value:I.deadline||"",placeholder:"期限 (YYYY-MM-DD)",size:"small",style:{width:120},onChange:z=>P(I.id,"deadline",z.target.value)}),U.jsx(dS,{title:"削除しますか?",onConfirm:()=>D(I.id),children:U.jsx(Ht,{type:"text",size:"small",danger:!0,icon:U.jsx(up,{})})})]})}),size:"small",split:!1,locale:{emptyText:"TODOがありません"}})]}),_=()=>U.jsxs("div",{style:{height:"100%",overflow:"auto",padding:"0 4px"},children:[V("plan",s),U.jsx(ri,{style:{margin:"16px 0"}}),V("result",d),U.jsx(ri,{style:{margin:"16px 0"}}),B(),U.jsx(ri,{style:{margin:"16px 0"}}),U.jsxs("div",{children:[U.jsx(db,{strong:!0,style:{fontSize:14},children:"[NOTE] メモ"}),U.jsx(Q4,{value:h,onChange:I=>y(I.target.value),rows:4,placeholder:"自由記述メモ...",style:{marginTop:8}})]})]}),H=()=>U.jsx("div",{style:{height:"100%",display:"flex",flexDirection:"column"},children:U.jsx("div",{style:{flex:1,overflow:"hidden"},children:U.jsx(Q4,{value:S,onChange:I=>$(I.target.value),style:{height:"100%",fontFamily:"monospace",fontSize:13,background:"#fafafa"}})})});return U.jsx(Ea,{title:U.jsxs(un,{children:[U.jsx(di,{}),U.jsx("span",{children:"日報編集"}),U.jsx(ur,{children:e.format("YYYY-MM-DD (ddd)")})]}),extra:U.jsxs(un,{children:[U.jsx(eG,{size:"small",options:[{label:"ビジュアル",value:"visual",icon:U.jsx(di,{})},{label:"テキスト",value:"text",icon:U.jsx(dp,{})}],value:r,onChange:I=>{I==="text"&&$(x()),i(I)}}),U.jsx(ri,{type:"vertical"}),U.jsx(fr,{title:"元に戻す (Ctrl+Z)",children:U.jsx(Ht,{type:"text",size:"small",icon:U.jsx(WX,{})})}),U.jsx(fr,{title:"やり直し (Ctrl+Shift+Z)",children:U.jsx(Ht,{type:"text",size:"small",icon:U.jsx(TX,{})})}),U.jsx(ri,{type:"vertical"}),U.jsx(Ht,{type:"primary",icon:U.jsx(v1,{}),onClick:k,children:"保存"})]}),style:{height:"100%"},styles:{body:{padding:16,height:"calc(100% - 73px)",overflow:"hidden"}},children:r==="visual"?_():H()})};function fee(e){const[t,n]=l.useState(e||gn().format("YYYY-MM-DD")),[r,i]=l.useState(null),[s,c]=l.useState(null),[d,f]=l.useState(!1),[p,g]=l.useState(!1),[h,y]=l.useState(null),[C,b]=l.useState(!1),x=l.useCallback(async H=>{f(!0),y(null),n(H);try{let I;try{I=await cs.getReport({date:H})}catch(z){if(z instanceof xN&&z.status===404)I=null;else throw z}if(I)c(I.stats),i(gm(H,I.content));else{const z=MN(H),L=gn(H).subtract(1,"day").format("YYYY-MM-DD");try{const A=await cs.getReport({date:L});if(A){const q=gm(L,A.content).todos.filter(X=>X.status!=="completed");z.todos=q.map((X,K)=>({...X,id:`carryover-${Date.now()}-${K}`}))}}catch{}i(z),c(null)}b(!1)}catch(I){y(I instanceof Error?I.message:"読み込みに失敗しました")}finally{f(!1)}},[]),S=l.useCallback(async H=>{if(!r)return!1;g(!0),y(null);try{const I=Z4(r),z=await cs.saveReport({date:t,data:{content:I,git:H?.git,slack:H?.slack}});if(z.saved){c(z.stats),b(!1);const L=await cs.getReport({date:t});return L&&(i(gm(t,L.content)),c(L.stats)),!0}return!1}catch(I){return y(I instanceof Error?I.message:"保存に失敗しました"),!1}finally{g(!1)}},[r,t]),$=l.useCallback(async()=>{try{return await cs.deleteReport({date:t}),i(null),c(null),b(!1),!0}catch(H){return y(H instanceof Error?H.message:"削除に失敗しました"),!1}},[t]),M=l.useCallback(H=>{i(I=>I?{...I,plan:H}:null),b(!0)},[]),w=l.useCallback(H=>{i(I=>I?{...I,result:H}:null),b(!0)},[]),R=l.useCallback(H=>{i(I=>I?{...I,todos:H}:null),b(!0)},[]),T=l.useCallback(H=>{i(I=>I?{...I,notes:H}:null),b(!0)},[]),N=l.useCallback(H=>{const I=gm(t,H);i(I),b(!0)},[t]),O=l.useCallback(H=>{i(I=>{if(!I)return null;const z={...H,id:`t${Date.now()}-${Math.random().toString(36).substring(2,9)}`};return{...I,todos:[...I.todos,z]}}),b(!0)},[]),P=l.useCallback((H,I)=>{i(z=>z?{...z,todos:z.todos.map(L=>L.id===H?{...L,...I}:L)}:null),b(!0)},[]),D=l.useCallback(H=>{i(I=>I?{...I,todos:I.todos.filter(z=>z.id!==H)}:null),b(!0)},[]),k=l.useCallback(H=>{i(I=>I?{...I,todos:I.todos.map(z=>z.id!==H?z:{...z,status:{pending:"in_progress",in_progress:"completed",completed:"on_hold",on_hold:"pending"}[z.status]||"pending"})}:null),b(!0)},[]),F=l.useCallback((H,I)=>{i(z=>{if(!z)return null;const L={...I,id:`${H[0]}${Date.now()}-${Math.random().toString(36).substring(2,9)}`},A=[...z[H],L].sort((j,q)=>j.time.localeCompare(q.time));return{...z,[H]:A}}),b(!0)},[]),Y=l.useCallback((H,I,z)=>{i(L=>{if(!L)return null;const A=L[H].map(j=>j.id===I?{...j,...z}:j);return A.sort((j,q)=>j.time.localeCompare(q.time)),{...L,[H]:A}}),b(!0)},[]),G=l.useCallback((H,I)=>{i(z=>z?{...z,[H]:z[H].filter(L=>L.id!==I)}:null),b(!0)},[]),V=l.useCallback(H=>{i(I=>{if(!I)return null;const z=H.map((A,j)=>({...A,id:`p${Date.now()}-${j}`})),L=[...I.plan,...z].sort((A,j)=>A.time.localeCompare(j.time));return{...I,plan:L}}),b(!0)},[]),B=l.useCallback(()=>{i(H=>{if(!H)return null;const I=H.plan.map((z,L)=>({...z,id:`r${Date.now()}-${L}`}));return{...H,result:I}}),b(!0)},[]);l.useEffect(()=>{e&&x(e)},[e,x]);const _=l.useMemo(()=>r?Z4(r):"",[r]);return{report:r,markdownContent:_,stats:s,loading:d,saving:p,error:h,isDirty:C,loadReport:x,saveReport:S,deleteReport:$,updatePlan:M,updateResult:w,updateTodos:R,updateNotes:T,updateMarkdown:N,addTodo:O,updateTodo:P,deleteTodo:D,toggleTodoStatus:k,addScheduleItem:F,updateScheduleItem:Y,deleteScheduleItem:G,applyRoutine:V,copyPlanToResult:B}}function MN(e){return{date:e,author:"",plan:[],result:[],todos:[],notes:""}}function gm(e,t){const n=MN(e),r=t.split(`
399
+ `);let i="",s="P99";const c=[],d=r[0]?.match(/^#\s+\[日報\]\s+(.+?)\s+(\d{4}-\d{2}-\d{2})/);d&&(n.author=d[1]);for(let f=0;f<r.length;f++){const p=r[f];if(p.match(/^##\s+\[PLAN\]/i)){i="plan";continue}if(p.match(/^##\s+\[RESULT\]/i)){i="result";continue}if(p.match(/^##\s+\[TODO\]/i)){i="todo";continue}if(p.match(/^##\s+\[NOTE\]/i)){i="note";continue}if(i==="todo"&&p.match(/^###\s+(.+)$/)){const g=p.match(/^###\s+(.+)$/);g&&(s=g[1].trim());continue}if((i==="plan"||i==="result")&&p.startsWith("*")){const g=p.match(/^\*\s+(\d{2}:\d{2})\s+\[([^\]]+)\]\s+(.+)$/);if(g){const y={id:`${i[0]}${f}`,time:g[1],project:g[2],task:g[3]};i==="plan"?n.plan.push(y):n.result.push(y);continue}const h=p.match(/^\*\s+(\d{2}:\d{2})\s*$/);if(h){const y={id:`break${i[0]}${f}`,time:h[1],project:"",task:""};i==="plan"?n.plan.push(y):n.result.push(y)}}if(i==="todo"&&p.startsWith("-")){const g=p.match(/^-\s+\[([xX\s*\->])\]\s+(.+)$/);if(g){const h=g[1];let y=g[2],C=s,b,x;const S=y.match(/^\[([^\]]+)\]\s*/);S&&(C=S[1],y=y.substring(S[0].length));const $=y.match(/^(!!!|!!|!)\s*/);if($){const R=$[1];x=R==="!!!"?"high":R==="!!"?"medium":"low",y=y.substring($[0].length)}const M=y.match(/\s*@(\d{4}-\d{2}-\d{2}|\d{2}-\d{2})$/);if(M)b=M[1],y=y.substring(0,y.length-M[0].length);else{const R=y.match(/^@(\d{4}-\d{2}-\d{2}|\d{2}-\d{2})\s*/);R&&(b=R[1],y=y.substring(R[0].length))}b&&b.length===5&&(b=`${new Date().getFullYear()}-${b}`);const w={id:`t${f}`,status:mee(h),project:C,task:y.trim(),deadline:b,priority:x};n.todos.push(w);continue}}if(i==="todo"&&p.match(/^\s{2,}/)&&n.todos.length>0){const g=n.todos[n.todos.length-1],h=p.trim();g.description?g.description+=`
400
+ `+h:g.description=h;continue}i==="note"&&!p.startsWith("##")&&c.push(p)}return n.notes=c.join(`
401
+ `).trim(),n}function Z4(e){const t=[];return t.push(`# [日報] ${e.author||"名前"} ${e.date}`),t.push(""),t.push("## [PLAN]"),t.push(""),t.push(...yS(e.plan)),t.push(""),t.push("## [RESULT]"),t.push(""),t.push(...yS(e.result)),t.push(""),t.push("## [TODO]"),t.push(""),t.push(...wN(e.todos)),t.push(""),t.push("## [NOTE]"),t.push(""),t.push(e.notes||""),t.join(`
402
+ `)}function mee(e){switch(e.toLowerCase()){case"x":return"completed";case"*":return"in_progress";case"-":return"on_hold";case">":return"on_hold";default:return"pending"}}function pee(){const[e,t]=l.useState(null),[n,r]=l.useState(!1),[i,s]=l.useState(null),c=l.useCallback(async()=>{r(!0),s(null);try{const b=await yp.getConfig({});t(b)}catch(b){s(b instanceof Error?b.message:"設定の読み込みに失敗しました")}finally{r(!1)}},[]),d=l.useCallback(async b=>{s(null);try{const x=await yp.updateConfig({data:b});return t(x),!0}catch(x){return s(x instanceof Error?x.message:"設定の更新に失敗しました"),!1}},[]),f=l.useCallback(b=>e?.projects?.find(x=>x.code===b),[e]),p=l.useCallback(b=>f(b)?.color||"#999",[f]),g=l.useCallback(b=>f(b)?.name||b,[f]),h=l.useCallback(()=>e?.projects?.filter(b=>b.active)||[],[e]),y=l.useCallback(b=>{if(!e?.routines?.weekly)return[];const S={0:"sunday",1:"monday",2:"tuesday",3:"wednesday",4:"thursday",5:"friday",6:"saturday"}[b.day()];return e.routines.weekly[S]||[]},[e]),C=l.useCallback(b=>e?.routines?.monthly?e.routines.monthly[b]||[]:[],[e]);return l.useEffect(()=>{c()},[c]),{config:e,projects:e?.projects||[],routines:e?.routines||null,loading:n,error:i,loadConfig:c,updateConfig:d,getProject:f,getProjectColor:p,getProjectName:g,getActiveProjects:h,getRoutinesForDay:y,getMonthlyRoutines:C}}function gee(e,t){const n=gn(),[r,i]=l.useState(e||n.year()),[s,c]=l.useState(t||n.month()+1),[d,f]=l.useState(null),[p,g]=l.useState([]),[h,y]=l.useState(!1),[C,b]=l.useState(null),x=l.useCallback(async(O,P)=>{y(!0),b(null);try{const D=await B4.getCalendarData({year:O,month:P});f(D),i(O),c(P)}catch(D){b(D instanceof Error?D.message:"カレンダーデータの読み込みに失敗しました")}finally{y(!1)}},[]),S=l.useCallback(async()=>{try{const O=await B4.getAvailableYearMonths({});g(O.yearMonths)}catch(O){console.error("Failed to load available months:",O)}},[]),$=l.useCallback(()=>{const O=gn(`${r}-${s}-01`).subtract(1,"month");x(O.year(),O.month()+1)},[r,s,x]),M=l.useCallback(()=>{const O=gn(`${r}-${s}-01`).add(1,"month");x(O.year(),O.month()+1)},[r,s,x]),w=l.useCallback((O,P)=>{x(O,P)},[x]),R=l.useCallback(O=>d?.days.find(P=>P.date===O),[d]),T=l.useCallback(O=>R(O)?.hasReport||!1,[R]),N=l.useCallback(O=>{const P=R(O);return{plan:P?.planHours||0,result:P?.resultHours||0}},[R]);return l.useEffect(()=>{x(r,s),S()},[]),{calendarData:d,days:d?.days||[],summary:d?.summary||null,loading:h,error:C,year:r,month:s,availableYearMonths:p,loadCalendar:x,loadAvailableMonths:S,goToPrevMonth:$,goToNextMonth:M,goToMonth:w,getDayStats:R,hasReport:T,getWorkHours:N}}function hee(){const[e,t]=l.useState(new Map),n=l.useMemo(()=>e.size>0,[e]),r=l.useMemo(()=>Array.from(e.keys()),[e]),i=l.useCallback(p=>e.has(p),[e]),s=l.useCallback((p,g,h,y)=>{if(h===y){t(C=>{const b=new Map(C);return b.delete(p),b});return}t(C=>{const b=new Map(C);return b.set(p,{date:p,report:g,originalMarkdown:h,currentMarkdown:y}),b})},[]),c=l.useCallback(p=>{t(g=>{const h=new Map(g);return h.delete(p),h})},[]),d=l.useCallback(()=>{t(new Map)},[]),f=l.useCallback(p=>e.get(p),[e]);return{unsavedReports:e,hasUnsavedChanges:n,unsavedDates:r,hasUnsavedChangesForDate:i,setUnsavedReport:s,clearUnsavedReport:c,clearAllUnsavedReports:d,getUnsavedReport:f}}gn.locale("ja");const{Content:yee}=Ta,bee=()=>{const[e,t]=l.useState(gn()),[n,r]=l.useState(!1),[i,s]=l.useState(!1),[c,d]=l.useState([]),f=fee(e.format("YYYY-MM-DD")),p=pee(),g=gee(e.year(),e.month()+1),h=hee(),y=l.useRef(h);y.current=h;const C=l.useRef(e.format("YYYY-MM-DD")),b=l.useRef(!1);l.useEffect(()=>{const V=e.format("YYYY-MM-DD");C.current!==V&&(b.current=!0,C.current=V)},[e]),l.useEffect(()=>{if(b.current){b.current=!1;return}const V=e.format("YYYY-MM-DD");f.isDirty&&f.report&&y.current.setUnsavedReport(V,f.report,"",f.markdownContent)},[f.isDirty,f.report,f.markdownContent,e]);const[x,S]=l.useState(null),$=l.useRef(null),M=l.useRef(0),w=l.useRef(0),R=l.useCallback(async V=>{if(V){const B=V.format("YYYY-MM-DD");t(V),(V.month()!==e.month()||V.year()!==e.year())&&g.loadCalendar(V.year(),V.month()+1);const _=y.current.getUnsavedReport(B);await f.loadReport(B),_&&f.updateMarkdown(_.currentMarkdown)}},[f,g,e]),T=l.useCallback(async V=>{const B=gn(V);t(B);const _=y.current.getUnsavedReport(V);await f.loadReport(V),_&&f.updateMarkdown(_.currentMarkdown)},[f]),N=l.useCallback(V=>{d(B=>B.includes(V)?B.filter(_=>_!==V):[...B,V])},[]),O=l.useCallback(()=>{d([])},[]),P=c.map(V=>p.getProject(V)).filter(V=>V!==void 0),D=l.useCallback(async V=>{await f.saveReport(V)?(h.clearUnsavedReport(e.format("YYYY-MM-DD")),Cn.success("日報を保存しました"),g.loadCalendar(g.year,g.month)):Cn.error("日報の保存に失敗しました")},[f,g,h,e]),k=l.useCallback(async(V,B)=>{let _=0,H=0;for(const I of V)try{if(I===e.format("YYYY-MM-DD"))await f.saveReport(B)?(_++,h.clearUnsavedReport(I)):H++;else{const z=h.getUnsavedReport(I);z&&((await cs.saveReport({date:I,data:{content:z.currentMarkdown,git:B?.git,slack:B?.slack}})).saved?(_++,h.clearUnsavedReport(I)):H++)}}catch{H++}_>0&&(Cn.success(`${_}件の日報を保存しました`),g.loadCalendar(g.year,g.month)),H>0&&Cn.error(`${H}件の日報の保存に失敗しました`)},[f,e,h,g]),F=l.useCallback(V=>{const B=V.filter(H=>H.category==="plan"||!H.category&&H.time&&H.time!==""),_=V.filter(H=>H.category==="todo"||!H.category&&(!H.time||H.time===""));if(B.length>0){const H=B.map((I,z)=>({id:`routine-${Date.now()}-${z}`,time:I.time,project:I.project,task:I.task,duration:I.duration}));f.applyRoutine(H)}_.length>0&&_.forEach(H=>{f.addTodo({project:H.project,task:H.task,status:"pending"})}),s(!1)},[f]),Y=l.useCallback(V=>{V.preventDefault();const B=$.current?.firstElementChild;if(!B||!$.current)return;M.current=V.clientX,w.current=B.getBoundingClientRect().width,document.body.style.cursor="col-resize",document.body.style.userSelect="none";const _=I=>{if(!$.current)return;const z=I.clientX-M.current,L=$.current.getBoundingClientRect().width,A=296,j=200,q=L-A-j-20;let X=w.current+z;X=Math.max(j,Math.min(q,X)),S(X)},H=()=>{document.body.style.cursor="",document.body.style.userSelect="",document.removeEventListener("mousemove",_),document.removeEventListener("mouseup",H)};document.addEventListener("mousemove",_),document.addEventListener("mouseup",H)},[]),G={selectedDate:e,setSelectedDate:R,selectedProjects:c,toggleProject:N,clearProjectFilter:O,report:f,config:p,calendar:g,unsavedReports:h,editorOpen:n,setEditorOpen:r,saveReport:D,saveMultipleReports:k};return U.jsx($N.Provider,{value:G,children:U.jsx(Zo,{theme:{algorithm:iJ.defaultAlgorithm,token:{colorPrimary:"#1890ff",borderRadius:6}},locale:{locale:"ja"},children:U.jsxs(Ta,{style:{height:"100vh",overflow:"hidden"},children:[U.jsx(FJ,{selectedDate:e,onDateChange:R,onImportClick:()=>s(!0),selectedProjects:P,onRemoveProject:N,onClearProjectFilter:O}),U.jsx(yee,{className:"dashboard-content",style:{padding:16,background:"#f0f2f5",flex:1,display:"flex",flexDirection:"column"},children:U.jsxs("div",{ref:$,className:"dashboard-container",children:[U.jsx("div",{className:"dashboard-timeline",style:{width:x??void 0,flex:x?void 0:1},children:U.jsx(eee,{selectedDate:e,onEditClick:()=>r(!0),selectedProjects:c})}),U.jsx("div",{className:"dashboard-resizer",onMouseDown:Y,children:U.jsx("div",{className:"dashboard-resizer-handle"})}),U.jsx("div",{className:"dashboard-todo",children:U.jsx(aee,{selectedDate:e,selectedProjects:c})}),U.jsxs("div",{className:"dashboard-right-column",children:[U.jsx("div",{className:"dashboard-calendar",children:U.jsx(kJ,{selectedDate:e,onDateSelect:T,selectedProjects:c})}),U.jsx("div",{className:"dashboard-project",children:U.jsx(iee,{selectedProjects:c,onToggleProject:N})})]})]})}),U.jsx(ao,{title:null,open:n,onCancel:()=>r(!1),footer:null,width:"90%",style:{top:20},styles:{body:{height:"calc(100vh - 120px)",padding:0}},destroyOnHidden:!0,children:U.jsx(dee,{selectedDate:e,onClose:()=>r(!1)})}),U.jsx(aN,{title:"ルーチンから取り込み",placement:"right",size:"large",onClose:()=>s(!1),open:i,children:U.jsx(see,{onApplyRoutine:F})})]})})})},{Footer:$ee}=Ta,{Text:xee}=zr;function vee(){return U.jsx(bee,{})}eR.createRoot(document.getElementById("root")).render(U.jsx(l.StrictMode,{children:U.jsx(vee,{})}));