local-diff-reviewer 2.0.7 → 2.0.9

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 (69) hide show
  1. package/dist/web/assets/{arc-DPbtceHP.js → arc-BJmNGNWI.js} +1 -1
  2. package/dist/web/assets/{architectureDiagram-3BPJPVTR-DNStf-Tm.js → architectureDiagram-3BPJPVTR-DhsJxoU1.js} +1 -1
  3. package/dist/web/assets/{blockDiagram-GPEHLZMM-urJ9rmUi.js → blockDiagram-GPEHLZMM-CJCEgdD9.js} +1 -1
  4. package/dist/web/assets/{c4Diagram-AAUBKEIU-8NNwyK7B.js → c4Diagram-AAUBKEIU-B26zOI-l.js} +1 -1
  5. package/dist/web/assets/channel-B9TAFOXG.js +1 -0
  6. package/dist/web/assets/{chunk-2J33WTMH-I9RAI31w.js → chunk-2J33WTMH-Cv6YJ4Ki.js} +1 -1
  7. package/dist/web/assets/{chunk-3OPIFGDE-BfDOBvGP.js → chunk-3OPIFGDE-CTkUNNSV.js} +1 -1
  8. package/dist/web/assets/{chunk-4BX2VUAB-CfhA9Ka0.js → chunk-4BX2VUAB-BFWKl_tK.js} +1 -1
  9. package/dist/web/assets/{chunk-55IACEB6-D5xa1Q-O.js → chunk-55IACEB6-B9qdPPE-.js} +1 -1
  10. package/dist/web/assets/{chunk-5ZQYHXKU-DThBXSxw.js → chunk-5ZQYHXKU-DcyGFbSm.js} +1 -1
  11. package/dist/web/assets/{chunk-727SXJPM-Dmj0TguB.js → chunk-727SXJPM-ICzohRCO.js} +1 -1
  12. package/dist/web/assets/{chunk-AQP2D5EJ-5GQUKm6Y.js → chunk-AQP2D5EJ-CyVZq46g.js} +1 -1
  13. package/dist/web/assets/{chunk-BSJP7CBP-ByP7yKcL.js → chunk-BSJP7CBP-BDdB7dLK.js} +1 -1
  14. package/dist/web/assets/{chunk-CSCIHK7Q-CyvdpuGn.js → chunk-CSCIHK7Q-Cnk8Xb3q.js} +1 -1
  15. package/dist/web/assets/{chunk-FMBD7UC4-BqfFPh0V.js → chunk-FMBD7UC4-C5spNfHI.js} +1 -1
  16. package/dist/web/assets/{chunk-KSCS5N6A-BO3kRHKk.js → chunk-KSCS5N6A-DxPYlaFd.js} +1 -1
  17. package/dist/web/assets/{chunk-L5ZTLDWV-D7pnZKRu.js → chunk-L5ZTLDWV-BGI0SHjx.js} +1 -1
  18. package/dist/web/assets/{chunk-LZXEDZCA-COYSA4i7.js → chunk-LZXEDZCA-BiIAwsSs.js} +2 -2
  19. package/dist/web/assets/{chunk-ND2GUHAM-BkFNsWII.js → chunk-ND2GUHAM-CWrXmxUg.js} +1 -1
  20. package/dist/web/assets/{chunk-NZK2D7GU-CFWvYQLi.js → chunk-NZK2D7GU-C30w884O.js} +1 -1
  21. package/dist/web/assets/{chunk-O5CBEL6O-CYtSs6L5.js → chunk-O5CBEL6O-B3FPi81L.js} +1 -1
  22. package/dist/web/assets/chunk-QZHKN3VN-BnZzQ5Xh.js +1 -0
  23. package/dist/web/assets/chunk-WU5MYG2G-ChbKphQk.js +1 -0
  24. package/dist/web/assets/{chunk-XPW4576I-BvdxSfsN.js → chunk-XPW4576I-DXexMxog.js} +1 -1
  25. package/dist/web/assets/classDiagram-4FO5ZUOK-BSbTSqMz.js +1 -0
  26. package/dist/web/assets/classDiagram-v2-Q7XG4LA2-DRPVXAuu.js +1 -0
  27. package/dist/web/assets/{cose-bilkent-S5V4N54A-C7S-jawG.js → cose-bilkent-S5V4N54A-C4ponk0s.js} +1 -1
  28. package/dist/web/assets/{dagre-BM42HDAG-lUKGyvJU.js → dagre-BM42HDAG-CPJIjfFp.js} +1 -1
  29. package/dist/web/assets/{diagram-2AECGRRQ-DN8rqT2I.js → diagram-2AECGRRQ-CmvKSOJ-.js} +1 -1
  30. package/dist/web/assets/{diagram-5GNKFQAL-BRbFkDGi.js → diagram-5GNKFQAL-GGVz99GI.js} +1 -1
  31. package/dist/web/assets/{diagram-KO2AKTUF-Cps4A0uL.js → diagram-KO2AKTUF-BcbrEnkm.js} +1 -1
  32. package/dist/web/assets/{diagram-LMA3HP47-BI4Xpctp.js → diagram-LMA3HP47-D3s5RhrH.js} +1 -1
  33. package/dist/web/assets/{diagram-OG6HWLK6-YfavGQG9.js → diagram-OG6HWLK6-BzAlyqFh.js} +1 -1
  34. package/dist/web/assets/{dist-DYCOh5B-.js → dist-Cta4cgUm.js} +1 -1
  35. package/dist/web/assets/{erDiagram-TEJ5UH35-B-NZZR1E.js → erDiagram-TEJ5UH35-CanfkGHr.js} +1 -1
  36. package/dist/web/assets/{flowDiagram-I6XJVG4X-DAcraWeQ.js → flowDiagram-I6XJVG4X-CRE3oVQ6.js} +1 -1
  37. package/dist/web/assets/{ganttDiagram-6RSMTGT7-CRpKXkhi.js → ganttDiagram-6RSMTGT7-CkiGkH03.js} +1 -1
  38. package/dist/web/assets/{gitGraphDiagram-PVQCEYII-CHDbUCDS.js → gitGraphDiagram-PVQCEYII-CmWrPSVj.js} +1 -1
  39. package/dist/web/assets/{index-B3WywPiu.css → index-B2gz8YY8.css} +1 -1
  40. package/dist/web/assets/{index-Cvgi-Hso.js → index-Dk-wg7u9.js} +51 -51
  41. package/dist/web/assets/{infoDiagram-5YYISTIA-CFEPg5mW.js → infoDiagram-5YYISTIA-BqxgWbk5.js} +1 -1
  42. package/dist/web/assets/{ishikawaDiagram-YF4QCWOH-BOv6SvbZ.js → ishikawaDiagram-YF4QCWOH-CxaQxM0m.js} +1 -1
  43. package/dist/web/assets/{journeyDiagram-JHISSGLW-Co5lN3xn.js → journeyDiagram-JHISSGLW-BLDPmXUb.js} +1 -1
  44. package/dist/web/assets/{kanban-definition-UN3LZRKU-BxdsR9s2.js → kanban-definition-UN3LZRKU-DT1Y7kW1.js} +1 -1
  45. package/dist/web/assets/{line-D0DomxkJ.js → line-Bj30pxwA.js} +1 -1
  46. package/dist/web/assets/{linear-AQU4Ho2j.js → linear-BcxovYcg.js} +1 -1
  47. package/dist/web/assets/{mermaid-parser.core-BAwBxRkv.js → mermaid-parser.core-D-WIzcuE.js} +1 -1
  48. package/dist/web/assets/{mermaid.core-KWVajzzH.js → mermaid.core-C0NTkxP5.js} +3 -3
  49. package/dist/web/assets/{mindmap-definition-RKZ34NQL-GQphHDAQ.js → mindmap-definition-RKZ34NQL-DDPqBJlW.js} +1 -1
  50. package/dist/web/assets/{pieDiagram-4H26LBE5-D2pisj3a.js → pieDiagram-4H26LBE5-D43UzE_8.js} +1 -1
  51. package/dist/web/assets/{quadrantDiagram-W4KKPZXB-DIq7qWjn.js → quadrantDiagram-W4KKPZXB-BwqjAejy.js} +1 -1
  52. package/dist/web/assets/{requirementDiagram-4Y6WPE33-D-u8bK7o.js → requirementDiagram-4Y6WPE33-BqN-IzS4.js} +1 -1
  53. package/dist/web/assets/{sankeyDiagram-5OEKKPKP-DweSKe-f.js → sankeyDiagram-5OEKKPKP-DtEi01IS.js} +1 -1
  54. package/dist/web/assets/{sequenceDiagram-3UESZ5HK-B1HBcu7E.js → sequenceDiagram-3UESZ5HK-Cr2Qm_K7.js} +1 -1
  55. package/dist/web/assets/{src-DnVHeYvx.js → src-qBjHgrBl.js} +1 -1
  56. package/dist/web/assets/{stateDiagram-AJRCARHV-BP4U8oWy.js → stateDiagram-AJRCARHV-DKpe8Xd-.js} +1 -1
  57. package/dist/web/assets/stateDiagram-v2-BHNVJYJU-B_MSRk6Z.js +1 -0
  58. package/dist/web/assets/{timeline-definition-PNZ67QCA-qFZo1QlL.js → timeline-definition-PNZ67QCA-CO0B-6_8.js} +1 -1
  59. package/dist/web/assets/{vennDiagram-CIIHVFJN-C5yTB5bU.js → vennDiagram-CIIHVFJN-wG_mo3Ei.js} +1 -1
  60. package/dist/web/assets/{wardleyDiagram-YWT4CUSO-wVHBlqeh.js → wardleyDiagram-YWT4CUSO--9tyieES.js} +1 -1
  61. package/dist/web/assets/{xychartDiagram-2RQKCTM6-5EHjNtPE.js → xychartDiagram-2RQKCTM6-B2j8z88z.js} +1 -1
  62. package/dist/web/index.html +2 -2
  63. package/package.json +1 -1
  64. package/dist/web/assets/channel-DZ7E6kmR.js +0 -1
  65. package/dist/web/assets/chunk-QZHKN3VN-pRal5WFW.js +0 -1
  66. package/dist/web/assets/chunk-WU5MYG2G-snysjnwx.js +0 -1
  67. package/dist/web/assets/classDiagram-4FO5ZUOK-DfarIwEb.js +0 -1
  68. package/dist/web/assets/classDiagram-v2-Q7XG4LA2-CwKjh0kk.js +0 -1
  69. package/dist/web/assets/stateDiagram-v2-BHNVJYJU-Cd8xaQOp.js +0 -1
@@ -1,4 +1,4 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/mermaid.core-KWVajzzH.js","assets/chunk-O5CBEL6O-CYtSs6L5.js","assets/src-DnVHeYvx.js","assets/chunk-5ZQYHXKU-DThBXSxw.js","assets/dist-DYCOh5B-.js","assets/chunk-CSCIHK7Q-CyvdpuGn.js","assets/chunk-3OPIFGDE-BfDOBvGP.js","assets/chunk-L5ZTLDWV-D7pnZKRu.js","assets/chunk-NZK2D7GU-CFWvYQLi.js","assets/rough.esm-KjoEK0it.js","assets/chunk-BSJP7CBP-ByP7yKcL.js","assets/chunk-KSCS5N6A-BO3kRHKk.js","assets/line-D0DomxkJ.js","assets/path-BJQEcSo7.js","assets/array-yLZkcI6Y.js","assets/chunk-LZXEDZCA-COYSA4i7.js","assets/chunk-WU5MYG2G-snysjnwx.js","assets/chunk-XPW4576I-BvdxSfsN.js"])))=>i.map(i=>d[i]);
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/mermaid.core-C0NTkxP5.js","assets/chunk-O5CBEL6O-B3FPi81L.js","assets/src-qBjHgrBl.js","assets/chunk-5ZQYHXKU-DcyGFbSm.js","assets/dist-Cta4cgUm.js","assets/chunk-CSCIHK7Q-Cnk8Xb3q.js","assets/chunk-3OPIFGDE-CTkUNNSV.js","assets/chunk-L5ZTLDWV-BGI0SHjx.js","assets/chunk-NZK2D7GU-C30w884O.js","assets/rough.esm-KjoEK0it.js","assets/chunk-BSJP7CBP-BDdB7dLK.js","assets/chunk-KSCS5N6A-DxPYlaFd.js","assets/line-Bj30pxwA.js","assets/path-BJQEcSo7.js","assets/array-yLZkcI6Y.js","assets/chunk-LZXEDZCA-BiIAwsSs.js","assets/chunk-WU5MYG2G-ChbKphQk.js","assets/chunk-XPW4576I-DXexMxog.js"])))=>i.map(i=>d[i]);
2
2
  var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),s=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},c=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},l=(n,r,a)=>(a=n==null?{}:e(i(n)),c(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var u=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.iterator;function m(e){return typeof e!=`object`||!e?null:(e=p&&e[p]||e[`@@iterator`],typeof e==`function`?e:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,_={};function v(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=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,e,t,`setState`)},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function y(){}y.prototype=v.prototype;function b(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}var x=b.prototype=new y;x.constructor=b,g(x,v.prototype),x.isPureReactComponent=!0;var S=Array.isArray;function C(){}var w={H:null,A:null,T:null,S:null},T=Object.prototype.hasOwnProperty;function E(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function D(e,t){return E(e.type,t,e.props)}function O(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function k(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var A=/\/+/g;function j(e,t){return typeof e==`object`&&e&&e.key!=null?k(``+e.key):t.toString(36)}function M(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(C,C):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function N(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,N(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+j(e,0):a,S(o)?(i=``,c!=null&&(i=c.replace(A,`$&/`)+`/`),N(o,r,i,``,function(e){return e})):o!=null&&(O(o)&&(o=D(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(A,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(S(e))for(var u=0;u<e.length;u++)a=e[u],s=l+j(a,u),c+=N(a,r,i,s,o);else if(u=m(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+j(a,u++),c+=N(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return N(M(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function P(e,t,n){if(e==null)return e;var r=[],i=0;return N(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function F(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var I=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},L={map:P,forEach:function(e,t,n){P(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return P(e,function(){t++}),t},toArray:function(e){return P(e,function(e){return e})||[]},only:function(e){if(!O(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=L,e.Component=v,e.Fragment=r,e.Profiler=a,e.PureComponent=b,e.StrictMode=i,e.Suspense=l,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=w,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return w.H.useMemoCache(e)}},e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=g({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!T.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return E(e.type,i,r)},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:o,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)T.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return E(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=O,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:F}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=function(e){var t=w.T,n={};w.T=n;try{var r=e(),i=w.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(C,I)}catch(e){I(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),w.T=t}},e.unstable_useCacheRefresh=function(){return w.H.useCacheRefresh()},e.use=function(e){return w.H.use(e)},e.useActionState=function(e,t,n){return w.H.useActionState(e,t,n)},e.useCallback=function(e,t){return w.H.useCallback(e,t)},e.useContext=function(e){return w.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return w.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return w.H.useEffect(e,t)},e.useEffectEvent=function(e){return w.H.useEffectEvent(e)},e.useId=function(){return w.H.useId()},e.useImperativeHandle=function(e,t,n){return w.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return w.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return w.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return w.H.useMemo(e,t)},e.useOptimistic=function(e,t){return w.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return w.H.useReducer(e,t,n)},e.useRef=function(e){return w.H.useRef(e)},e.useState=function(e){return w.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return w.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return w.H.useTransition()},e.version=`19.2.6`})),d=o(((e,t)=>{t.exports=u()})),f=o((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m)if(n(c)!==null)m=!0,S||(S=!0,O());else{var t=n(l);t!==null&&j(x,t.startTime-e)}}var S=!1,C=-1,w=5,T=-1;function E(){return g?!0:!(e.unstable_now()-T<w)}function D(){if(g=!1,S){var t=e.unstable_now();T=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(C),C=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&E());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&j(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?O():S=!1}}}var O;if(typeof y==`function`)O=function(){y(D)};else if(typeof MessageChannel<`u`){var k=new MessageChannel,A=k.port2;k.port1.onmessage=D,O=function(){A.postMessage(null)}}else O=function(){_(D,0)};function j(t,n){C=_(function(){t(e.unstable_now())},n)}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(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):w=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,j(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,O()))),r},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),p=o(((e,t)=>{t.exports=f()})),m=o((e=>{var t=d();function n(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function r(){}var i={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},a=Symbol.for(`react.portal`);function o(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}}var s=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,e.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(n(299));return o(e,t,null,r)},e.flushSync=function(e){var t=s.T,n=i.p;try{if(s.T=null,i.p=2,e)return e()}finally{s.T=t,i.p=n,i.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,i.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&i.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=c(n,t.crossOrigin),a=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?i.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:a,fetchPriority:o}):n===`script`&&i.d.X(e,{crossOrigin:r,integrity:a,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`)if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=c(t.as,t.crossOrigin);i.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0})}}else t??i.d.M(e)},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=c(n,t.crossOrigin);i.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`)if(t){var n=c(t.as,t.crossOrigin);i.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0})}else i.d.m(e)},e.requestFormReset=function(e){i.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return s.H.useFormState(e,t,n)},e.useFormStatus=function(){return s.H.useHostTransitionStatus()},e.version=`19.2.6`})),h=o(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=m()})),g=o((e=>{var t=p(),n=d(),r=h();function i(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function a(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function o(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function s(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function c(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function l(e){if(o(e)!==e)throw Error(i(188))}function u(e){var t=e.alternate;if(!t){if(t=o(e),t===null)throw Error(i(188));return t===e?e:null}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var s=a.alternate;if(s===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===s.child){for(s=a.child;s;){if(s===n)return l(a),e;if(s===r)return l(a),t;s=s.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=s;else{for(var c=!1,u=a.child;u;){if(u===n){c=!0,n=a,r=s;break}if(u===r){c=!0,r=a,n=s;break}u=u.sibling}if(!c){for(u=s.child;u;){if(u===n){c=!0,n=s,r=a;break}if(u===r){c=!0,r=s,n=a;break}u=u.sibling}if(!c)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function f(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=f(e),t!==null)return t;e=e.sibling}return null}var m=Object.assign,g=Symbol.for(`react.element`),_=Symbol.for(`react.transitional.element`),v=Symbol.for(`react.portal`),y=Symbol.for(`react.fragment`),b=Symbol.for(`react.strict_mode`),x=Symbol.for(`react.profiler`),S=Symbol.for(`react.consumer`),C=Symbol.for(`react.context`),w=Symbol.for(`react.forward_ref`),T=Symbol.for(`react.suspense`),E=Symbol.for(`react.suspense_list`),D=Symbol.for(`react.memo`),O=Symbol.for(`react.lazy`),k=Symbol.for(`react.activity`),A=Symbol.for(`react.memo_cache_sentinel`),j=Symbol.iterator;function M(e){return typeof e!=`object`||!e?null:(e=j&&e[j]||e[`@@iterator`],typeof e==`function`?e:null)}var N=Symbol.for(`react.client.reference`);function P(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===N?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case y:return`Fragment`;case x:return`Profiler`;case b:return`StrictMode`;case T:return`Suspense`;case E:return`SuspenseList`;case k:return`Activity`}if(typeof e==`object`)switch(e.$$typeof){case v:return`Portal`;case C:return e.displayName||`Context`;case S:return(e._context.displayName||`Context`)+`.Consumer`;case w:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case D:return t=e.displayName||null,t===null?P(e.type)||`Memo`:t;case O:t=e._payload,e=e._init;try{return P(e(t))}catch{}}return null}var F=Array.isArray,I=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,L=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,R={pending:!1,data:null,method:null,action:null},z=[],B=-1;function V(e){return{current:e}}function H(e){0>B||(e.current=z[B],z[B]=null,B--)}function U(e,t){B++,z[B]=e.current,e.current=t}var W=V(null),ee=V(null),te=V(null),G=V(null);function ne(e,t){switch(U(te,t),U(ee,e),U(W,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Ud(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Ud(t),e=Wd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}H(W),U(W,e)}function re(){H(W),H(ee),H(te)}function ie(e){e.memoizedState!==null&&U(G,e);var t=W.current,n=Wd(t,e.type);t!==n&&(U(ee,e),U(W,n))}function K(e){ee.current===e&&(H(W),H(ee)),G.current===e&&(H(G),ep._currentValue=R)}var q,ae;function oe(e){if(q===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);q=t&&t[1]||``,ae=-1<e.stack.indexOf(`
3
3
  at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
4
4
  `+q+e+ae}var se=!1;function J(e,t){if(!e||se)return``;se=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,`props`,{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,`name`,{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`
@@ -130,25 +130,25 @@ html body {
130
130
  `]:{animationName:y,animationDuration:d,animationPlayState:`paused`,animationTimingFunction:u},[`
131
131
  ${t}-move-up-appear${t}-move-up-appear-active,
132
132
  ${t}-move-up-enter${t}-move-up-enter-active
133
- `]:{animationPlayState:`running`},[`${t}-move-up-leave`]:{animationName:b,animationDuration:d,animationPlayState:`paused`,animationTimingFunction:u},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:`running`},"&-rtl":{direction:`rtl`,span:{direction:`rtl`}}}},{[t]:{[`${v}-wrapper`]:{...x}}},{[`${t}-notice-pure-panel`]:{...x,padding:0,textAlign:`start`}}]},Zu=Ja(`Message`,e=>Xu(si(e,{height:150})),e=>({zIndexPopup:e.zIndexPopupBase+Nc+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`})),Qu={info:v.createElement(Io,null),success:v.createElement(wo,null),error:v.createElement(Do,null),warning:v.createElement(No,null),loading:v.createElement(Yu,null)},$u=e=>{let{prefixCls:t,type:n,icon:r,children:i,classNames:a,styles:o}=e,s=ou(r||n&&Qu[n],e=>{let t={...e?.style,...o?.icon};return{className:Y(e.className,a?.icon),style:t}});return v.createElement(`div`,{className:Y(`${t}-custom-content`,`${t}-${n}`)},s,v.createElement(`span`,{className:a?.content,style:o?.content},i))};function ed(e,t){return{motionName:t??`${e}-move-up`}}function td(e){let t,n=new Promise(n=>{t=e(()=>{n(!0)})}),r=()=>{t?.()};return r.then=(e,t)=>n.then(e,t),r.promise=n,r}var nd=8,rd=3,id=({children:e,prefixCls:t})=>{let n=Yc(t),[r,i]=Zu(t,n);return v.createElement(Fu,{classNames:{list:Y(r,i,n)}},e)},ad=(e,{prefixCls:t,key:n})=>v.createElement(id,{prefixCls:t,key:n},e),od=v.forwardRef((e,t)=>{let{top:n,prefixCls:r,getContainer:i,maxCount:a,duration:o=rd,rtl:s,transitionName:c,onAllRemoved:l,pauseOnHover:u=!0}=e,{getPrefixCls:d,direction:f,getPopupContainer:p}=Ze(`message`),{message:m}=v.useContext(Je),h=r||d(`message`),g=()=>({left:`50%`,transform:`translateX(-50%)`,top:n??nd}),_=()=>Y({[`${h}-rtl`]:s??f===`rtl`}),y=()=>ed(h,c),[b,x]=Dc([e?.classNames,m?.classNames],[e?.styles,m?.styles],{props:e}),[S,C]=Ku({prefixCls:h,style:g,className:_,motion:y,closable:!1,duration:o,getContainer:()=>i?.()||p?.()||document.body,maxCount:a,onAllRemoved:l,renderNotifications:ad,pauseOnHover:u});return v.useImperativeHandle(t,()=>({...S,prefixCls:h,message:m,classNames:b,styles:x})),C}),sd=0;function cd(e){let t=v.useRef(null);return he(`Message`),[v.useMemo(()=>{let n=e=>{t.current?.close(e)},r=r=>{if(!t.current){let e=()=>{};return e.then=()=>{},e}let{open:i,prefixCls:a,message:o,classNames:s,styles:c}=t.current,l=o?.className||{},u=o?.style||{},d=o?.classNames||{},f=o?.styles||{},p=`${a}-notice`,{content:m,icon:h,type:g,key:_,className:y,style:b,onClose:x,classNames:S={},styles:C={},...w}=r,T=_;ic(T)||(sd+=1,T=`antd-message-${sd}`);let E={...e,...r},D=Ec(d,{props:E}),O=Ec(S,{props:E}),k=Ec(f,{props:E}),A=Ec(C,{props:E}),j=xc(void 0,D,O,s),M=Cc(k,A,c);return td(e=>(i({...w,key:T,content:v.createElement($u,{prefixCls:a,type:g,icon:h,classNames:j,styles:M},m),placement:`top`,className:Y({[`${p}-${g}`]:g},y,l,j.root),style:{...M.root,...u,...b},onClose:()=>{x?.(),e()}}),()=>{n(T)}))},i={open:r,destroy:e=>{e===void 0?t.current?.destroy():n(e)}};return[`info`,`success`,`warning`,`error`,`loading`].forEach(e=>{i[e]=(t,n,i)=>{let a;a=sc(t)&&`content`in t?t:{content:t};let o,s;return typeof n==`function`?s=n:(o=n,s=i),r({onClose:s,duration:o,...a,type:e})}}),i},[]),v.createElement(od,{key:`message-holder`,...e,ref:t})]}function ld(e){return cd(e)}var ud=_(),dd=`__rc_react_root__`;function fd(e,t){let n=t[dd]||(0,ud.createRoot)(t);n.render(e),t[dd]=n}async function pd(e){return Promise.resolve().then(()=>{e[dd]?.unmount(),delete e[dd]})}var md=()=>({height:0,opacity:0}),hd=e=>({height:e?.scrollHeight??0,opacity:+!!e}),gd=e=>({height:e?.offsetHeight??0}),_d=e=>sc(e)&&`propertyName`in e,vd=(e,t)=>t?.deadline===!0||(_d(t)?t.propertyName===`height`:!1),yd=(e=`ant`)=>({motionName:`${e}-motion-collapse`,onAppearStart:md,onEnterStart:md,onAppearActive:hd,onEnterActive:hd,onLeaveStart:gd,onLeaveActive:md,onAppearEnd:vd,onEnterEnd:vd,onLeaveEnd:vd,motionDeadline:500}),bd=(e,t,n)=>n===void 0?`${e}-${t}`:n,xd=Ya(`Wave`,e=>{let{componentCls:t,colorPrimary:n,motionDurationSlow:r,motionEaseInOut:i,motionEaseOutCirc:a,antCls:o}=e,[,s]=Za(o,`wave`);return{[t]:{position:`absolute`,background:`transparent`,pointerEvents:`none`,boxSizing:`border-box`,color:s(`color`,n),boxShadow:`0 0 0 0 currentcolor`,opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s`,`opacity 2s`].map(e=>`${e} ${a}`).join(`,`),"&-active":{boxShadow:`0 0 0 6px currentcolor`,opacity:0},"&.wave-quick":{transition:[`box-shadow`,`opacity`].map(e=>`${e} ${r} ${i}`).join(`,`)}}}}}),Sd=`ant-wave-target`;function Cd(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 wd(e,t=null){let n=getComputedStyle(e),{borderTopColor:r,borderColor:i,backgroundColor:a}=n;return t&&Cd(n[t])?n[t]:[r,i,a].find(Cd)??null}function Td(e){return Number.isNaN(e)?0:e}var Ed=e=>{let{className:t,target:n,component:r,colorSource:i}=e,a=v.useRef(null),{getPrefixCls:o}=v.useContext(Je),[s]=Za(o(),`wave`),[c,l]=v.useState(null),[u,d]=v.useState([]),[f,p]=v.useState(0),[m,h]=v.useState(0),[g,_]=v.useState(0),[y,b]=v.useState(0),[x,S]=v.useState(!1),C={left:f,top:m,width:g,height:y,borderRadius:u.map(e=>`${e}px`).join(` `)};c&&(C[s(`color`)]=c);function w(){let e=getComputedStyle(n);l(wd(n,i));let t=e.position===`static`,{borderLeftWidth:r,borderTopWidth:a}=e;p(t?n.offsetLeft:Td(-Number.parseFloat(r))),h(t?n.offsetTop:Td(-Number.parseFloat(a))),_(n.offsetWidth),b(n.offsetHeight);let{borderTopLeftRadius:o,borderTopRightRadius:s,borderBottomLeftRadius:c,borderBottomRightRadius:u}=e;d([o,s,u,c].map(e=>Td(Number.parseFloat(e))))}if(v.useEffect(()=>{if(n){let e=Ge(()=>{w(),S(!0)}),t;return typeof ResizeObserver<`u`&&(t=new ResizeObserver(w),t.observe(n)),()=>{Ge.cancel(e),t?.disconnect()}}},[n]),!x)return null;let T=(r===`Checkbox`||r===`Radio`)&&n?.classList.contains(Sd);return v.createElement(Os,{visible:!0,motionAppear:!0,motionName:`wave-motion`,motionDeadline:5e3,onAppearEnd:(e,t)=>{if(t.deadline||t.propertyName===`opacity`){let e=a.current?.parentElement;pd(e).then(()=>{e?.remove()})}return!1}},({className:e},n)=>v.createElement(`div`,{ref:I(a,n),className:Y(t,e,{"wave-quick":T}),style:C}))},Dd=(e,t)=>{let{component:n}=t;if(n===`Checkbox`&&!e.querySelector(`input`)?.checked)return;let r=document.createElement(`div`);r.style.position=`absolute`,r.style.left=`0px`,r.style.top=`0px`,e?.insertBefore(r,e?.firstChild),fd(v.createElement(Ed,{...t,target:e}),r)},Od=(e,t,n,r)=>{let{wave:i}=v.useContext(Je),[,a,o]=La(),s=y(s=>{let c=e.current;if(i?.disabled||!c)return;let l=c.querySelector(`.${Sd}`)||c,{showEffect:u}=i||{};(u||Dd)(l,{className:t,token:a,component:n,event:s,hashId:o,colorSource:r})}),c=v.useRef(null);return v.useEffect(()=>()=>{Ge.cancel(c.current)},[]),e=>{Ge.cancel(c.current),c.current=Ge(()=>{s(e)})}},kd=e=>{let{children:t,disabled:n,component:r,colorSource:i}=e,{getPrefixCls:a}=(0,v.useContext)(Je),o=(0,v.useRef)(null),s=a(`wave`),c=Od(o,Y(s,xd(s)),r,i);return v.useEffect(()=>{let e=o.current;if(!e||e.nodeType!==window.Node.ELEMENT_NODE||n)return;let t=t=>{!Pl(t.target)||!e.getAttribute||e.getAttribute(`disabled`)||e.disabled||e.className.includes(`disabled`)&&!e.className.includes(`disabled:`)||e.getAttribute(`aria-disabled`)===`true`||e.className.includes(`-leave`)||c(t)};return e.addEventListener(`click`,t,!0),()=>{e.removeEventListener(`click`,t,!0)}},[n]),v.isValidElement(t)?ou(t,{ref:R(t)?I(V(t),o):o}):t??null},Ad=e=>{let t=v.useContext(pu);return v.useMemo(()=>e?typeof e==`string`?e??t:typeof e==`function`?e(t):t:t,[e,t])},jd=Ja([`Space`,`Compact`],e=>{let{componentCls:t}=e;return{[t]:{display:`inline-flex`,"&-block":{display:`flex`,width:`100%`},"&-vertical":{flexDirection:`column`},"&-rtl":{direction:`rtl`}}}},()=>({}),{resetStyle:!1}),Md=v.createContext(null),Nd=(e,t)=>{let n=v.useContext(Md),r=v.useMemo(()=>{if(!n)return``;let{compactDirection:r,isFirstItem:i,isLastItem:a}=n,o=r===`vertical`?`-vertical-`:`-`;return Y(`${e}-compact${o}item`,{[`${e}-compact${o}first-item`]:i,[`${e}-compact${o}last-item`]:a,[`${e}-compact${o}item-rtl`]:t===`rtl`})},[e,t,n]);return{compactSize:n?.compactSize,compactDirection:n?.compactDirection,compactItemClassnames:r}},Pd=e=>{let{children:t}=e;return v.createElement(Md.Provider,{value:null},t)},Fd=e=>{let{children:t,...n}=e;return v.createElement(Md.Provider,{value:v.useMemo(()=>n,[n])},t)},Id=e=>{let{getPrefixCls:t,direction:n}=v.useContext(Je),{size:r,direction:i,orientation:a,block:o,prefixCls:s,className:c,rootClassName:l,children:u,vertical:d,...f}=e,[p,m]=kc(a,d,i),h=Ad(e=>r??e),g=t(`space-compact`,s),[_]=jd(g),y=Y(g,_,{[`${g}-rtl`]:n===`rtl`,[`${g}-block`]:o,[`${g}-vertical`]:m},c,l),b=v.useContext(Md),x=de(u),S=v.useMemo(()=>x.map((e,t)=>{let n=e?.key||`${g}-item-${t}`;return v.createElement(Fd,{key:n,compactSize:h,compactDirection:p,isFirstItem:t===0&&(!b||b?.isFirstItem),isLastItem:t===x.length-1&&(!b||b?.isLastItem)},e)}),[x,b,p,h,g]);return x.length===0?null:v.createElement(`div`,{className:y,...f},S)},Ld=v.createContext(void 0),Rd=e=>{let{getPrefixCls:t,direction:n}=v.useContext(Je),{prefixCls:r,size:i,className:a,...o}=e,s=t(`btn-group`,r),[,,c]=La(),l=v.useMemo(()=>{switch(i){case`large`:return`lg`;case`small`:return`sm`;default:return``}},[i]),u=Y(s,{[`${s}-${l}`]:l,[`${s}-rtl`]:n===`rtl`},a,c);return v.createElement(Ld.Provider,{value:i},v.createElement(`div`,{...o,className:u}))},zd=/^[\u4E00-\u9FA5]{2}$/,Bd=zd.test.bind(zd);function Vd(e){return e===`danger`?{danger:!0}:{type:e}}function Hd(e){return e===`text`||e===`link`}function Ud(e,t,n,r){if(!ic(e)||e===``)return;let i=t?` `:``;return typeof e!=`string`&&typeof e!=`number`&&oc(e.type)&&Bd(e.props.children)?ou(e,e=>{let t=Y(e.className,r)||void 0,a={...n,...e.style};return{...e,children:e.children.split(``).join(i),className:t,style:a}}):oc(e)?v.createElement(`span`,{className:r,style:n},Bd(e)?e.split(``).join(i):e):iu(e)?v.createElement(`span`,{className:r,style:n},e):ou(e,e=>({...e,className:Y(e.className,r)||void 0,style:{...e.style,...n}}))}function Wd(e,t,n,r){let i=!1,a=[];return v.Children.forEach(e,e=>{let t=typeof e,n=t===`string`||t===`number`;if(i&&n){let t=a.length-1;a[t]=`${a[t]}${e}`}else a.push(e);i=n}),v.Children.map(a,e=>Ud(e,t,n,r))}[`default`,`primary`,`danger`].concat(ze(vi));var Gd=(0,v.forwardRef)((e,t)=>{let{className:n,style:r,children:i,prefixCls:a}=e,o=Y(`${a}-icon`,n);return v.createElement(`span`,{ref:t,className:o,style:r},i)}),Kd=(0,v.forwardRef)((e,t)=>{let{prefixCls:n,className:r,style:i,iconClassName:a}=e,o=Y(`${n}-loading-icon`,r);return v.createElement(Gd,{prefixCls:n,className:o,style:i,ref:t},v.createElement(Yu,{className:a}))}),qd=()=>({width:0,opacity:0,transform:`scale(0)`}),Jd=e=>({width:e.scrollWidth,opacity:1,transform:`scale(1)`}),Yd=e=>{let{prefixCls:t,loading:n,existIcon:r,className:i,style:a,mount:o}=e,s=!!n;return r?v.createElement(Kd,{prefixCls:t,className:i,style:a}):v.createElement(Os,{visible:s,motionName:`${t}-loading-icon-motion`,motionAppear:!o,motionEnter:!o,motionLeave:!o,removeOnLeave:!0,onAppearStart:qd,onAppearActive:Jd,onEnterStart:qd,onEnterActive:Jd,onLeaveStart:Jd,onLeaveActive:qd},({className:e,style:n},r)=>{let o={...a,...n};return v.createElement(Kd,{prefixCls:t,className:Y(i,e),style:o,ref:r})})},Xd=e=>{let{componentCls:t,antCls:n,motionDurationMid:r,motionEaseInOut:i}=e;return{[t]:{[`${n}-motion-collapse-legacy`]:{overflow:`hidden`,"&-active":{transition:`${[`height`,`opacity`].map(e=>`${e} ${r} ${i}`).join(`, `)} !important`}},[`${n}-motion-collapse`]:{overflow:`hidden`,transition:`${[`height`,`opacity`].map(e=>`${e} ${r} ${i}`).join(`, `)} !important`}}}},Zd=e=>({animationDuration:e,animationFillMode:`both`}),Qd=(e,t,n,r,i=!1)=>{let a=i?`&`:``;return{[`
133
+ `]:{animationPlayState:`running`},[`${t}-move-up-leave`]:{animationName:b,animationDuration:d,animationPlayState:`paused`,animationTimingFunction:u},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:`running`},"&-rtl":{direction:`rtl`,span:{direction:`rtl`}}}},{[t]:{[`${v}-wrapper`]:{...x}}},{[`${t}-notice-pure-panel`]:{...x,padding:0,textAlign:`start`}}]},Zu=Ja(`Message`,e=>Xu(si(e,{height:150})),e=>({zIndexPopup:e.zIndexPopupBase+Nc+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`})),Qu={info:v.createElement(Io,null),success:v.createElement(wo,null),error:v.createElement(Do,null),warning:v.createElement(No,null),loading:v.createElement(Yu,null)},$u=e=>{let{prefixCls:t,type:n,icon:r,children:i,classNames:a,styles:o}=e,s=ou(r||n&&Qu[n],e=>{let t={...e?.style,...o?.icon};return{className:Y(e.className,a?.icon),style:t}});return v.createElement(`div`,{className:Y(`${t}-custom-content`,`${t}-${n}`)},s,v.createElement(`span`,{className:a?.content,style:o?.content},i))},ed=e=>{let{prefixCls:t,className:n,style:r,type:i,icon:a,content:o,classNames:s,styles:c,...l}=e,{getPrefixCls:u,className:d,style:f,classNames:p,styles:m}=Ze(`message`),h=t||u(`message`),g=Yc(h),[_,y]=Zu(h,g),[b,x]=Dc([p,s],[m,c],{props:e});return v.createElement(Nu,{...l,prefixCls:h,className:Y(d,b.root,n,_,`${h}-notice-pure-panel`,y,g),style:{...x.root,...f,...r},eventKey:`pure`,duration:null,content:v.createElement($u,{prefixCls:h,type:i,icon:a,classNames:b,styles:x},o)})};function td(e,t){return{motionName:t??`${e}-move-up`}}function nd(e){let t,n=new Promise(n=>{t=e(()=>{n(!0)})}),r=()=>{t?.()};return r.then=(e,t)=>n.then(e,t),r.promise=n,r}var rd=8,id=3,ad=({children:e,prefixCls:t})=>{let n=Yc(t),[r,i]=Zu(t,n);return v.createElement(Fu,{classNames:{list:Y(r,i,n)}},e)},od=(e,{prefixCls:t,key:n})=>v.createElement(ad,{prefixCls:t,key:n},e),sd=v.forwardRef((e,t)=>{let{top:n,prefixCls:r,getContainer:i,maxCount:a,duration:o=id,rtl:s,transitionName:c,onAllRemoved:l,pauseOnHover:u=!0}=e,{getPrefixCls:d,direction:f,getPopupContainer:p}=Ze(`message`),{message:m}=v.useContext(Je),h=r||d(`message`),g=()=>({left:`50%`,transform:`translateX(-50%)`,top:n??rd}),_=()=>Y({[`${h}-rtl`]:s??f===`rtl`}),y=()=>td(h,c),[b,x]=Dc([e?.classNames,m?.classNames],[e?.styles,m?.styles],{props:e}),[S,C]=Ku({prefixCls:h,style:g,className:_,motion:y,closable:!1,duration:o,getContainer:()=>i?.()||p?.()||document.body,maxCount:a,onAllRemoved:l,renderNotifications:od,pauseOnHover:u});return v.useImperativeHandle(t,()=>({...S,prefixCls:h,message:m,classNames:b,styles:x})),C}),cd=0;function ld(e){let t=v.useRef(null);return he(`Message`),[v.useMemo(()=>{let n=e=>{t.current?.close(e)},r=r=>{if(!t.current){let e=()=>{};return e.then=()=>{},e}let{open:i,prefixCls:a,message:o,classNames:s,styles:c}=t.current,l=o?.className||{},u=o?.style||{},d=o?.classNames||{},f=o?.styles||{},p=`${a}-notice`,{content:m,icon:h,type:g,key:_,className:y,style:b,onClose:x,classNames:S={},styles:C={},...w}=r,T=_;ic(T)||(cd+=1,T=`antd-message-${cd}`);let E={...e,...r},D=Ec(d,{props:E}),O=Ec(S,{props:E}),k=Ec(f,{props:E}),A=Ec(C,{props:E}),j=xc(void 0,D,O,s),M=Cc(k,A,c);return nd(e=>(i({...w,key:T,content:v.createElement($u,{prefixCls:a,type:g,icon:h,classNames:j,styles:M},m),placement:`top`,className:Y({[`${p}-${g}`]:g},y,l,j.root),style:{...M.root,...u,...b},onClose:()=>{x?.(),e()}}),()=>{n(T)}))},i={open:r,destroy:e=>{e===void 0?t.current?.destroy():n(e)}};return[`info`,`success`,`warning`,`error`,`loading`].forEach(e=>{i[e]=(t,n,i)=>{let a;a=sc(t)&&`content`in t?t:{content:t};let o,s;return typeof n==`function`?s=n:(o=n,s=i),r({onClose:s,duration:o,...a,type:e})}}),i},[]),v.createElement(sd,{key:`message-holder`,...e,ref:t})]}function ud(e){return ld(e)}var dd=_(),fd=`__rc_react_root__`;function pd(e,t){let n=t[fd]||(0,dd.createRoot)(t);n.render(e),t[fd]=n}async function md(e){return Promise.resolve().then(()=>{e[fd]?.unmount(),delete e[fd]})}var hd=()=>({height:0,opacity:0}),gd=e=>({height:e?.scrollHeight??0,opacity:+!!e}),_d=e=>({height:e?.offsetHeight??0}),vd=e=>sc(e)&&`propertyName`in e,yd=(e,t)=>t?.deadline===!0||(vd(t)?t.propertyName===`height`:!1),bd=(e=`ant`)=>({motionName:`${e}-motion-collapse`,onAppearStart:hd,onEnterStart:hd,onAppearActive:gd,onEnterActive:gd,onLeaveStart:_d,onLeaveActive:hd,onAppearEnd:yd,onEnterEnd:yd,onLeaveEnd:yd,motionDeadline:500}),xd=(e,t,n)=>n===void 0?`${e}-${t}`:n,Sd=Ya(`Wave`,e=>{let{componentCls:t,colorPrimary:n,motionDurationSlow:r,motionEaseInOut:i,motionEaseOutCirc:a,antCls:o}=e,[,s]=Za(o,`wave`);return{[t]:{position:`absolute`,background:`transparent`,pointerEvents:`none`,boxSizing:`border-box`,color:s(`color`,n),boxShadow:`0 0 0 0 currentcolor`,opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s`,`opacity 2s`].map(e=>`${e} ${a}`).join(`,`),"&-active":{boxShadow:`0 0 0 6px currentcolor`,opacity:0},"&.wave-quick":{transition:[`box-shadow`,`opacity`].map(e=>`${e} ${r} ${i}`).join(`,`)}}}}}),Cd=`ant-wave-target`;function wd(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 Td(e,t=null){let n=getComputedStyle(e),{borderTopColor:r,borderColor:i,backgroundColor:a}=n;return t&&wd(n[t])?n[t]:[r,i,a].find(wd)??null}function Ed(e){return Number.isNaN(e)?0:e}var Dd=e=>{let{className:t,target:n,component:r,colorSource:i}=e,a=v.useRef(null),{getPrefixCls:o}=v.useContext(Je),[s]=Za(o(),`wave`),[c,l]=v.useState(null),[u,d]=v.useState([]),[f,p]=v.useState(0),[m,h]=v.useState(0),[g,_]=v.useState(0),[y,b]=v.useState(0),[x,S]=v.useState(!1),C={left:f,top:m,width:g,height:y,borderRadius:u.map(e=>`${e}px`).join(` `)};c&&(C[s(`color`)]=c);function w(){let e=getComputedStyle(n);l(Td(n,i));let t=e.position===`static`,{borderLeftWidth:r,borderTopWidth:a}=e;p(t?n.offsetLeft:Ed(-Number.parseFloat(r))),h(t?n.offsetTop:Ed(-Number.parseFloat(a))),_(n.offsetWidth),b(n.offsetHeight);let{borderTopLeftRadius:o,borderTopRightRadius:s,borderBottomLeftRadius:c,borderBottomRightRadius:u}=e;d([o,s,u,c].map(e=>Ed(Number.parseFloat(e))))}if(v.useEffect(()=>{if(n){let e=Ge(()=>{w(),S(!0)}),t;return typeof ResizeObserver<`u`&&(t=new ResizeObserver(w),t.observe(n)),()=>{Ge.cancel(e),t?.disconnect()}}},[n]),!x)return null;let T=(r===`Checkbox`||r===`Radio`)&&n?.classList.contains(Cd);return v.createElement(Os,{visible:!0,motionAppear:!0,motionName:`wave-motion`,motionDeadline:5e3,onAppearEnd:(e,t)=>{if(t.deadline||t.propertyName===`opacity`){let e=a.current?.parentElement;md(e).then(()=>{e?.remove()})}return!1}},({className:e},n)=>v.createElement(`div`,{ref:I(a,n),className:Y(t,e,{"wave-quick":T}),style:C}))},Od=(e,t)=>{let{component:n}=t;if(n===`Checkbox`&&!e.querySelector(`input`)?.checked)return;let r=document.createElement(`div`);r.style.position=`absolute`,r.style.left=`0px`,r.style.top=`0px`,e?.insertBefore(r,e?.firstChild),pd(v.createElement(Dd,{...t,target:e}),r)},kd=(e,t,n,r)=>{let{wave:i}=v.useContext(Je),[,a,o]=La(),s=y(s=>{let c=e.current;if(i?.disabled||!c)return;let l=c.querySelector(`.${Cd}`)||c,{showEffect:u}=i||{};(u||Od)(l,{className:t,token:a,component:n,event:s,hashId:o,colorSource:r})}),c=v.useRef(null);return v.useEffect(()=>()=>{Ge.cancel(c.current)},[]),e=>{Ge.cancel(c.current),c.current=Ge(()=>{s(e)})}},Ad=e=>{let{children:t,disabled:n,component:r,colorSource:i}=e,{getPrefixCls:a}=(0,v.useContext)(Je),o=(0,v.useRef)(null),s=a(`wave`),c=kd(o,Y(s,Sd(s)),r,i);return v.useEffect(()=>{let e=o.current;if(!e||e.nodeType!==window.Node.ELEMENT_NODE||n)return;let t=t=>{!Pl(t.target)||!e.getAttribute||e.getAttribute(`disabled`)||e.disabled||e.className.includes(`disabled`)&&!e.className.includes(`disabled:`)||e.getAttribute(`aria-disabled`)===`true`||e.className.includes(`-leave`)||c(t)};return e.addEventListener(`click`,t,!0),()=>{e.removeEventListener(`click`,t,!0)}},[n]),v.isValidElement(t)?ou(t,{ref:R(t)?I(V(t),o):o}):t??null},jd=e=>{let t=v.useContext(pu);return v.useMemo(()=>e?typeof e==`string`?e??t:typeof e==`function`?e(t):t:t,[e,t])},Md=Ja([`Space`,`Compact`],e=>{let{componentCls:t}=e;return{[t]:{display:`inline-flex`,"&-block":{display:`flex`,width:`100%`},"&-vertical":{flexDirection:`column`},"&-rtl":{direction:`rtl`}}}},()=>({}),{resetStyle:!1}),Nd=v.createContext(null),Pd=(e,t)=>{let n=v.useContext(Nd),r=v.useMemo(()=>{if(!n)return``;let{compactDirection:r,isFirstItem:i,isLastItem:a}=n,o=r===`vertical`?`-vertical-`:`-`;return Y(`${e}-compact${o}item`,{[`${e}-compact${o}first-item`]:i,[`${e}-compact${o}last-item`]:a,[`${e}-compact${o}item-rtl`]:t===`rtl`})},[e,t,n]);return{compactSize:n?.compactSize,compactDirection:n?.compactDirection,compactItemClassnames:r}},Fd=e=>{let{children:t}=e;return v.createElement(Nd.Provider,{value:null},t)},Id=e=>{let{children:t,...n}=e;return v.createElement(Nd.Provider,{value:v.useMemo(()=>n,[n])},t)},Ld=e=>{let{getPrefixCls:t,direction:n}=v.useContext(Je),{size:r,direction:i,orientation:a,block:o,prefixCls:s,className:c,rootClassName:l,children:u,vertical:d,...f}=e,[p,m]=kc(a,d,i),h=jd(e=>r??e),g=t(`space-compact`,s),[_]=Md(g),y=Y(g,_,{[`${g}-rtl`]:n===`rtl`,[`${g}-block`]:o,[`${g}-vertical`]:m},c,l),b=v.useContext(Nd),x=de(u),S=v.useMemo(()=>x.map((e,t)=>{let n=e?.key||`${g}-item-${t}`;return v.createElement(Id,{key:n,compactSize:h,compactDirection:p,isFirstItem:t===0&&(!b||b?.isFirstItem),isLastItem:t===x.length-1&&(!b||b?.isLastItem)},e)}),[x,b,p,h,g]);return x.length===0?null:v.createElement(`div`,{className:y,...f},S)},Rd=v.createContext(void 0),zd=e=>{let{getPrefixCls:t,direction:n}=v.useContext(Je),{prefixCls:r,size:i,className:a,...o}=e,s=t(`btn-group`,r),[,,c]=La(),l=v.useMemo(()=>{switch(i){case`large`:return`lg`;case`small`:return`sm`;default:return``}},[i]),u=Y(s,{[`${s}-${l}`]:l,[`${s}-rtl`]:n===`rtl`},a,c);return v.createElement(Rd.Provider,{value:i},v.createElement(`div`,{...o,className:u}))},Bd=/^[\u4E00-\u9FA5]{2}$/,Vd=Bd.test.bind(Bd);function Hd(e){return e===`danger`?{danger:!0}:{type:e}}function Ud(e){return e===`text`||e===`link`}function Wd(e,t,n,r){if(!ic(e)||e===``)return;let i=t?` `:``;return typeof e!=`string`&&typeof e!=`number`&&oc(e.type)&&Vd(e.props.children)?ou(e,e=>{let t=Y(e.className,r)||void 0,a={...n,...e.style};return{...e,children:e.children.split(``).join(i),className:t,style:a}}):oc(e)?v.createElement(`span`,{className:r,style:n},Vd(e)?e.split(``).join(i):e):iu(e)?v.createElement(`span`,{className:r,style:n},e):ou(e,e=>({...e,className:Y(e.className,r)||void 0,style:{...e.style,...n}}))}function Gd(e,t,n,r){let i=!1,a=[];return v.Children.forEach(e,e=>{let t=typeof e,n=t===`string`||t===`number`;if(i&&n){let t=a.length-1;a[t]=`${a[t]}${e}`}else a.push(e);i=n}),v.Children.map(a,e=>Wd(e,t,n,r))}[`default`,`primary`,`danger`].concat(ze(vi));var Kd=(0,v.forwardRef)((e,t)=>{let{className:n,style:r,children:i,prefixCls:a}=e,o=Y(`${a}-icon`,n);return v.createElement(`span`,{ref:t,className:o,style:r},i)}),qd=(0,v.forwardRef)((e,t)=>{let{prefixCls:n,className:r,style:i,iconClassName:a}=e,o=Y(`${n}-loading-icon`,r);return v.createElement(Kd,{prefixCls:n,className:o,style:i,ref:t},v.createElement(Yu,{className:a}))}),Jd=()=>({width:0,opacity:0,transform:`scale(0)`}),Yd=e=>({width:e.scrollWidth,opacity:1,transform:`scale(1)`}),Xd=e=>{let{prefixCls:t,loading:n,existIcon:r,className:i,style:a,mount:o}=e,s=!!n;return r?v.createElement(qd,{prefixCls:t,className:i,style:a}):v.createElement(Os,{visible:s,motionName:`${t}-loading-icon-motion`,motionAppear:!o,motionEnter:!o,motionLeave:!o,removeOnLeave:!0,onAppearStart:Jd,onAppearActive:Yd,onEnterStart:Jd,onEnterActive:Yd,onLeaveStart:Yd,onLeaveActive:Jd},({className:e,style:n},r)=>{let o={...a,...n};return v.createElement(qd,{prefixCls:t,className:Y(i,e),style:o,ref:r})})},Zd=e=>{let{componentCls:t,antCls:n,motionDurationMid:r,motionEaseInOut:i}=e;return{[t]:{[`${n}-motion-collapse-legacy`]:{overflow:`hidden`,"&-active":{transition:`${[`height`,`opacity`].map(e=>`${e} ${r} ${i}`).join(`, `)} !important`}},[`${n}-motion-collapse`]:{overflow:`hidden`,transition:`${[`height`,`opacity`].map(e=>`${e} ${r} ${i}`).join(`, `)} !important`}}}},Qd=e=>({animationDuration:e,animationFillMode:`both`}),$d=(e,t,n,r,i=!1)=>{let a=i?`&`:``;return{[`
134
134
  ${a}${e}-enter,
135
135
  ${a}${e}-appear
136
- `]:{...Zd(r),animationPlayState:`paused`},[`${a}${e}-leave`]:{...Zd(r),animationPlayState:`paused`},[`
136
+ `]:{...Qd(r),animationPlayState:`paused`},[`${a}${e}-leave`]:{...Qd(r),animationPlayState:`paused`},[`
137
137
  ${a}${e}-enter${e}-enter-active,
138
138
  ${a}${e}-appear${e}-appear-active
139
- `]:{animationName:t,animationPlayState:`running`},[`${a}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:`running`,pointerEvents:`none`}}},$d=new Or(`antFadeIn`,{"0%":{opacity:0},"100%":{opacity:1}}),ef=new Or(`antFadeOut`,{"0%":{opacity:1},"100%":{opacity:0}}),tf=(e,t=!1)=>{let{antCls:n}=e,r=`${n}-fade`,i=t?`&`:``;return[Qd(r,$d,ef,e.motionDurationMid,t),{[`
139
+ `]:{animationName:t,animationPlayState:`running`},[`${a}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:`running`,pointerEvents:`none`}}},ef=new Or(`antFadeIn`,{"0%":{opacity:0},"100%":{opacity:1}}),tf=new Or(`antFadeOut`,{"0%":{opacity:1},"100%":{opacity:0}}),nf=(e,t=!1)=>{let{antCls:n}=e,r=`${n}-fade`,i=t?`&`:``;return[$d(r,ef,tf,e.motionDurationMid,t),{[`
140
140
  ${i}${r}-enter,
141
141
  ${i}${r}-appear
142
- `]:{opacity:0,animationTimingFunction:`linear`},[`${i}${r}-leave`]:{animationTimingFunction:`linear`}}]},nf=new Or(`antMoveDownIn`,{"0%":{transform:`translate3d(0, 100%, 0)`,transformOrigin:`0 0`,opacity:0},"100%":{transform:`translate3d(0, 0, 0)`,transformOrigin:`0 0`,opacity:1}}),rf=new Or(`antMoveDownOut`,{"0%":{transform:`translate3d(0, 0, 0)`,transformOrigin:`0 0`,opacity:1},"100%":{transform:`translate3d(0, 100%, 0)`,transformOrigin:`0 0`,opacity:0}}),af=new Or(`antMoveLeftIn`,{"0%":{transform:`translate3d(-100%, 0, 0)`,transformOrigin:`0 0`,opacity:0},"100%":{transform:`translate3d(0, 0, 0)`,transformOrigin:`0 0`,opacity:1}}),of=new Or(`antMoveLeftOut`,{"0%":{transform:`translate3d(0, 0, 0)`,transformOrigin:`0 0`,opacity:1},"100%":{transform:`translate3d(-100%, 0, 0)`,transformOrigin:`0 0`,opacity:0}}),sf=new Or(`antMoveRightIn`,{"0%":{transform:`translate3d(100%, 0, 0)`,transformOrigin:`0 0`,opacity:0},"100%":{transform:`translate3d(0, 0, 0)`,transformOrigin:`0 0`,opacity:1}}),cf=new Or(`antMoveRightOut`,{"0%":{transform:`translate3d(0, 0, 0)`,transformOrigin:`0 0`,opacity:1},"100%":{transform:`translate3d(100%, 0, 0)`,transformOrigin:`0 0`,opacity:0}}),lf={"move-up":{inKeyframes:new Or(`antMoveUpIn`,{"0%":{transform:`translate3d(0, -100%, 0)`,transformOrigin:`0 0`,opacity:0},"100%":{transform:`translate3d(0, 0, 0)`,transformOrigin:`0 0`,opacity:1}}),outKeyframes:new Or(`antMoveUpOut`,{"0%":{transform:`translate3d(0, 0, 0)`,transformOrigin:`0 0`,opacity:1},"100%":{transform:`translate3d(0, -100%, 0)`,transformOrigin:`0 0`,opacity:0}})},"move-down":{inKeyframes:nf,outKeyframes:rf},"move-left":{inKeyframes:af,outKeyframes:of},"move-right":{inKeyframes:sf,outKeyframes:cf}},uf=(e,t)=>{let{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:a}=lf[t];return[Qd(r,i,a,e.motionDurationMid),{[`
142
+ `]:{opacity:0,animationTimingFunction:`linear`},[`${i}${r}-leave`]:{animationTimingFunction:`linear`}}]},rf=new Or(`antMoveDownIn`,{"0%":{transform:`translate3d(0, 100%, 0)`,transformOrigin:`0 0`,opacity:0},"100%":{transform:`translate3d(0, 0, 0)`,transformOrigin:`0 0`,opacity:1}}),af=new Or(`antMoveDownOut`,{"0%":{transform:`translate3d(0, 0, 0)`,transformOrigin:`0 0`,opacity:1},"100%":{transform:`translate3d(0, 100%, 0)`,transformOrigin:`0 0`,opacity:0}}),of=new Or(`antMoveLeftIn`,{"0%":{transform:`translate3d(-100%, 0, 0)`,transformOrigin:`0 0`,opacity:0},"100%":{transform:`translate3d(0, 0, 0)`,transformOrigin:`0 0`,opacity:1}}),sf=new Or(`antMoveLeftOut`,{"0%":{transform:`translate3d(0, 0, 0)`,transformOrigin:`0 0`,opacity:1},"100%":{transform:`translate3d(-100%, 0, 0)`,transformOrigin:`0 0`,opacity:0}}),cf=new Or(`antMoveRightIn`,{"0%":{transform:`translate3d(100%, 0, 0)`,transformOrigin:`0 0`,opacity:0},"100%":{transform:`translate3d(0, 0, 0)`,transformOrigin:`0 0`,opacity:1}}),lf=new Or(`antMoveRightOut`,{"0%":{transform:`translate3d(0, 0, 0)`,transformOrigin:`0 0`,opacity:1},"100%":{transform:`translate3d(100%, 0, 0)`,transformOrigin:`0 0`,opacity:0}}),uf={"move-up":{inKeyframes:new Or(`antMoveUpIn`,{"0%":{transform:`translate3d(0, -100%, 0)`,transformOrigin:`0 0`,opacity:0},"100%":{transform:`translate3d(0, 0, 0)`,transformOrigin:`0 0`,opacity:1}}),outKeyframes:new Or(`antMoveUpOut`,{"0%":{transform:`translate3d(0, 0, 0)`,transformOrigin:`0 0`,opacity:1},"100%":{transform:`translate3d(0, -100%, 0)`,transformOrigin:`0 0`,opacity:0}})},"move-down":{inKeyframes:rf,outKeyframes:af},"move-left":{inKeyframes:of,outKeyframes:sf},"move-right":{inKeyframes:cf,outKeyframes:lf}},df=(e,t)=>{let{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:a}=uf[t];return[$d(r,i,a,e.motionDurationMid),{[`
143
143
  ${r}-enter,
144
144
  ${r}-appear
145
- `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},df=new Or(`antSlideUpIn`,{"0%":{transform:`scaleY(0.8)`,transformOrigin:`0% 0%`,opacity:0},"100%":{transform:`scaleY(1)`,transformOrigin:`0% 0%`,opacity:1}}),ff=new Or(`antSlideUpOut`,{"0%":{transform:`scaleY(1)`,transformOrigin:`0% 0%`,opacity:1},"100%":{transform:`scaleY(0.8)`,transformOrigin:`0% 0%`,opacity:0}}),pf=new Or(`antSlideDownIn`,{"0%":{transform:`scaleY(0.8)`,transformOrigin:`100% 100%`,opacity:0},"100%":{transform:`scaleY(1)`,transformOrigin:`100% 100%`,opacity:1}}),mf=new Or(`antSlideDownOut`,{"0%":{transform:`scaleY(1)`,transformOrigin:`100% 100%`,opacity:1},"100%":{transform:`scaleY(0.8)`,transformOrigin:`100% 100%`,opacity:0}}),hf=new Or(`antSlideLeftIn`,{"0%":{transform:`scaleX(0.8)`,transformOrigin:`0% 0%`,opacity:0},"100%":{transform:`scaleX(1)`,transformOrigin:`0% 0%`,opacity:1}}),gf=new Or(`antSlideLeftOut`,{"0%":{transform:`scaleX(1)`,transformOrigin:`0% 0%`,opacity:1},"100%":{transform:`scaleX(0.8)`,transformOrigin:`0% 0%`,opacity:0}}),_f=new Or(`antSlideRightIn`,{"0%":{transform:`scaleX(0.8)`,transformOrigin:`100% 0%`,opacity:0},"100%":{transform:`scaleX(1)`,transformOrigin:`100% 0%`,opacity:1}}),vf=new Or(`antSlideRightOut`,{"0%":{transform:`scaleX(1)`,transformOrigin:`100% 0%`,opacity:1},"100%":{transform:`scaleX(0.8)`,transformOrigin:`100% 0%`,opacity:0}}),yf={"slide-up":{inKeyframes:df,outKeyframes:ff},"slide-down":{inKeyframes:pf,outKeyframes:mf},"slide-left":{inKeyframes:hf,outKeyframes:gf},"slide-right":{inKeyframes:_f,outKeyframes:vf}},bf=(e,t)=>{let{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:a}=yf[t];return[Qd(r,i,a,e.motionDurationMid),{[`
145
+ `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},ff=new Or(`antSlideUpIn`,{"0%":{transform:`scaleY(0.8)`,transformOrigin:`0% 0%`,opacity:0},"100%":{transform:`scaleY(1)`,transformOrigin:`0% 0%`,opacity:1}}),pf=new Or(`antSlideUpOut`,{"0%":{transform:`scaleY(1)`,transformOrigin:`0% 0%`,opacity:1},"100%":{transform:`scaleY(0.8)`,transformOrigin:`0% 0%`,opacity:0}}),mf=new Or(`antSlideDownIn`,{"0%":{transform:`scaleY(0.8)`,transformOrigin:`100% 100%`,opacity:0},"100%":{transform:`scaleY(1)`,transformOrigin:`100% 100%`,opacity:1}}),hf=new Or(`antSlideDownOut`,{"0%":{transform:`scaleY(1)`,transformOrigin:`100% 100%`,opacity:1},"100%":{transform:`scaleY(0.8)`,transformOrigin:`100% 100%`,opacity:0}}),gf=new Or(`antSlideLeftIn`,{"0%":{transform:`scaleX(0.8)`,transformOrigin:`0% 0%`,opacity:0},"100%":{transform:`scaleX(1)`,transformOrigin:`0% 0%`,opacity:1}}),_f=new Or(`antSlideLeftOut`,{"0%":{transform:`scaleX(1)`,transformOrigin:`0% 0%`,opacity:1},"100%":{transform:`scaleX(0.8)`,transformOrigin:`0% 0%`,opacity:0}}),vf=new Or(`antSlideRightIn`,{"0%":{transform:`scaleX(0.8)`,transformOrigin:`100% 0%`,opacity:0},"100%":{transform:`scaleX(1)`,transformOrigin:`100% 0%`,opacity:1}}),yf=new Or(`antSlideRightOut`,{"0%":{transform:`scaleX(1)`,transformOrigin:`100% 0%`,opacity:1},"100%":{transform:`scaleX(0.8)`,transformOrigin:`100% 0%`,opacity:0}}),bf={"slide-up":{inKeyframes:ff,outKeyframes:pf},"slide-down":{inKeyframes:mf,outKeyframes:hf},"slide-left":{inKeyframes:gf,outKeyframes:_f},"slide-right":{inKeyframes:vf,outKeyframes:yf}},xf=(e,t)=>{let{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:a}=bf[t];return[$d(r,i,a,e.motionDurationMid),{[`
146
146
  ${r}-enter,
147
147
  ${r}-appear
148
- `]:{transform:`scale(0)`,transformOrigin:`0% 0%`,opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:`scale(1)`}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},xf=()=>({"@media (prefers-reduced-motion: reduce)":{transition:`none`,animation:`none`}}),Sf=new Or(`antZoomIn`,{"0%":{transform:`scale(0.2)`,opacity:0},"100%":{transform:`scale(1)`,opacity:1}}),Cf=new Or(`antZoomOut`,{"0%":{transform:`scale(1)`},"100%":{transform:`scale(0.2)`,opacity:0}}),wf=new Or(`antZoomBigIn`,{"0%":{transform:`scale(0.8)`,opacity:0},"100%":{transform:`scale(1)`,opacity:1}}),Tf=new Or(`antZoomBigOut`,{"0%":{transform:`scale(1)`},"100%":{transform:`scale(0.8)`,opacity:0}}),Ef=new Or(`antZoomUpIn`,{"0%":{transform:`scale(0.8)`,transformOrigin:`50% 0%`,opacity:0},"100%":{transform:`scale(1)`,transformOrigin:`50% 0%`}}),Df=new Or(`antZoomUpOut`,{"0%":{transform:`scale(1)`,transformOrigin:`50% 0%`},"100%":{transform:`scale(0.8)`,transformOrigin:`50% 0%`,opacity:0}}),Of=new Or(`antZoomLeftIn`,{"0%":{transform:`scale(0.8)`,transformOrigin:`0% 50%`,opacity:0},"100%":{transform:`scale(1)`,transformOrigin:`0% 50%`}}),kf=new Or(`antZoomLeftOut`,{"0%":{transform:`scale(1)`,transformOrigin:`0% 50%`},"100%":{transform:`scale(0.8)`,transformOrigin:`0% 50%`,opacity:0}}),Af=new Or(`antZoomRightIn`,{"0%":{transform:`scale(0.8)`,transformOrigin:`100% 50%`,opacity:0},"100%":{transform:`scale(1)`,transformOrigin:`100% 50%`}}),jf=new Or(`antZoomRightOut`,{"0%":{transform:`scale(1)`,transformOrigin:`100% 50%`},"100%":{transform:`scale(0.8)`,transformOrigin:`100% 50%`,opacity:0}}),Mf=new Or(`antZoomDownIn`,{"0%":{transform:`scale(0.8)`,transformOrigin:`50% 100%`,opacity:0},"100%":{transform:`scale(1)`,transformOrigin:`50% 100%`}}),Nf=new Or(`antZoomDownOut`,{"0%":{transform:`scale(1)`,transformOrigin:`50% 100%`},"100%":{transform:`scale(0.8)`,transformOrigin:`50% 100%`,opacity:0}}),Pf={zoom:{inKeyframes:Sf,outKeyframes:Cf},"zoom-big":{inKeyframes:wf,outKeyframes:Tf},"zoom-big-fast":{inKeyframes:wf,outKeyframes:Tf},"zoom-left":{inKeyframes:Of,outKeyframes:kf},"zoom-right":{inKeyframes:Af,outKeyframes:jf},"zoom-up":{inKeyframes:Ef,outKeyframes:Df},"zoom-down":{inKeyframes:Mf,outKeyframes:Nf}},Ff=(e,t)=>{let{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:a}=Pf[t];return[Qd(r,i,a,t===`zoom-big-fast`?e.motionDurationFast:e.motionDurationMid),{[`
148
+ `]:{transform:`scale(0)`,transformOrigin:`0% 0%`,opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:`scale(1)`}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},Sf=()=>({"@media (prefers-reduced-motion: reduce)":{transition:`none`,animation:`none`}}),Cf=new Or(`antZoomIn`,{"0%":{transform:`scale(0.2)`,opacity:0},"100%":{transform:`scale(1)`,opacity:1}}),wf=new Or(`antZoomOut`,{"0%":{transform:`scale(1)`},"100%":{transform:`scale(0.2)`,opacity:0}}),Tf=new Or(`antZoomBigIn`,{"0%":{transform:`scale(0.8)`,opacity:0},"100%":{transform:`scale(1)`,opacity:1}}),Ef=new Or(`antZoomBigOut`,{"0%":{transform:`scale(1)`},"100%":{transform:`scale(0.8)`,opacity:0}}),Df=new Or(`antZoomUpIn`,{"0%":{transform:`scale(0.8)`,transformOrigin:`50% 0%`,opacity:0},"100%":{transform:`scale(1)`,transformOrigin:`50% 0%`}}),Of=new Or(`antZoomUpOut`,{"0%":{transform:`scale(1)`,transformOrigin:`50% 0%`},"100%":{transform:`scale(0.8)`,transformOrigin:`50% 0%`,opacity:0}}),kf=new Or(`antZoomLeftIn`,{"0%":{transform:`scale(0.8)`,transformOrigin:`0% 50%`,opacity:0},"100%":{transform:`scale(1)`,transformOrigin:`0% 50%`}}),Af=new Or(`antZoomLeftOut`,{"0%":{transform:`scale(1)`,transformOrigin:`0% 50%`},"100%":{transform:`scale(0.8)`,transformOrigin:`0% 50%`,opacity:0}}),jf=new Or(`antZoomRightIn`,{"0%":{transform:`scale(0.8)`,transformOrigin:`100% 50%`,opacity:0},"100%":{transform:`scale(1)`,transformOrigin:`100% 50%`}}),Mf=new Or(`antZoomRightOut`,{"0%":{transform:`scale(1)`,transformOrigin:`100% 50%`},"100%":{transform:`scale(0.8)`,transformOrigin:`100% 50%`,opacity:0}}),Nf=new Or(`antZoomDownIn`,{"0%":{transform:`scale(0.8)`,transformOrigin:`50% 100%`,opacity:0},"100%":{transform:`scale(1)`,transformOrigin:`50% 100%`}}),Pf=new Or(`antZoomDownOut`,{"0%":{transform:`scale(1)`,transformOrigin:`50% 100%`},"100%":{transform:`scale(0.8)`,transformOrigin:`50% 100%`,opacity:0}}),Ff={zoom:{inKeyframes:Cf,outKeyframes:wf},"zoom-big":{inKeyframes:Tf,outKeyframes:Ef},"zoom-big-fast":{inKeyframes:Tf,outKeyframes:Ef},"zoom-left":{inKeyframes:kf,outKeyframes:Af},"zoom-right":{inKeyframes:jf,outKeyframes:Mf},"zoom-up":{inKeyframes:Df,outKeyframes:Of},"zoom-down":{inKeyframes:Nf,outKeyframes:Pf}},If=(e,t)=>{let{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:i,outKeyframes:a}=Ff[t];return[$d(r,i,a,t===`zoom-big-fast`?e.motionDurationFast:e.motionDurationMid),{[`
149
149
  ${r}-enter,
150
150
  ${r}-appear
151
- `]:{transform:`scale(0)`,opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:`none`}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},If=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),Lf=e=>{let{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:i,colorErrorHover:a}=e;return{[`${t}-group`]:[{position:`relative`,display:`inline-flex`,[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:`relative`,zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},If(`${t}-primary`,i),If(`${t}-danger`,a)]}},Rf=e=>Math.round(Number(e||0)),zf=e=>{if(e instanceof ki)return e;if(e&&typeof e==`object`&&`h`in e&&`b`in e){let{b:t,...n}=e;return{...n,v:t}}return typeof e==`string`&&/hsb/.test(e)?e.replace(/hsb/,`hsv`):e},Bf=class extends ki{constructor(e){super(zf(e))}toHsbString(){let e=this.toHsb(),t=Rf(e.s*100),n=Rf(e.b*100),r=Rf(e.h),i=e.a,a=`hsb(${r}, ${t}%, ${n}%)`,o=`hsba(${r}, ${t}%, ${n}%, ${i.toFixed(i===0?0:2)})`;return i===1?a:o}toHsb(){let{v:e,...t}=this.toHsv();return{...t,b:e,a:this.a}}};(e=>e instanceof Bf?e:new Bf(e))(`#1677ff`);var Vf=(e,t)=>e?.replace(/[^0-9a-f]/gi,``).slice(0,t?8:6)||``,Hf=(e,t)=>e?Vf(e,t):``,Uf=function(){function e(t){if(Br(this,e),this.cleared=!1,t instanceof e){this.metaColor=t.metaColor.clone(),this.colors=t.colors?.map(t=>({color:new e(t.color),percent:t.percent})),this.cleared=t.cleared;return}let n=Array.isArray(t);n&&t.length?(this.colors=t.map(({color:t,percent:n})=>({color:new e(t),percent:n})),this.metaColor=new Bf(this.colors[0].color.metaColor)):this.metaColor=new Bf(n?``:t),(!t||n&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return Hr(e,[{key:`toHsb`,value:function(){return this.metaColor.toHsb()}},{key:`toHsbString`,value:function(){return this.metaColor.toHsbString()}},{key:`toHex`,value:function(){return Hf(this.toHexString(),this.metaColor.a<1)}},{key:`toHexString`,value:function(){return this.metaColor.toHexString()}},{key:`toRgb`,value:function(){return this.metaColor.toRgb()}},{key:`toRgbString`,value:function(){return this.metaColor.toRgbString()}},{key:`isGradient`,value:function(){return!!this.colors&&!this.cleared}},{key:`getColors`,value:function(){return this.colors||[{color:this,percent:0}]}},{key:`toCssString`,value:function(){let{colors:e}=this;return e?`linear-gradient(90deg, ${e.map(e=>`${e.color.toRgbString()} ${e.percent}%`).join(`, `)})`:this.metaColor.toRgbString()}},{key:`equals`,value:function(e){return!e||this.isGradient()!==e.isGradient()?!1:this.isGradient()?this.colors.length===e.colors.length&&this.colors.every((t,n)=>{let r=e.colors[n];return t.percent===r.percent&&t.color.equals(r.color)}):this.toHexString()===e.toHexString()}}])}(),Wf={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 Gf(){return Gf=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},Gf.apply(this,arguments)}var Kf=v.forwardRef((e,t)=>v.createElement(So,Gf({},e,{ref:t,icon:Wf})));function qf(){return qf=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},qf.apply(null,arguments)}var Jf=e=>e instanceof Uf?e:new Uf(e),Yf=(e,t)=>{let{r:n,g:r,b:i,a}=e.toRgb(),o=new Bf(e.toRgbString()).onBackground(t).toHsv();return a<=.5?o.v>.5:n*.299+r*.587+i*.114>192},Xf=e=>{let{paddingInline:t,onlyIconSize:n,borderColorDisabled:r}=e;return si(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n,colorBorderDisabled:r})},Zf=e=>{let t=e.contentFontSize??e.fontSize,n=e.contentFontSizeSM??e.fontSize,r=e.contentFontSizeLG??e.fontSizeLG,i=e.contentLineHeight??yi(t),a=e.contentLineHeightSM??yi(n),o=e.contentLineHeightLG??yi(r),s=Yf(new Uf(e.colorBgSolid),`#fff`)?`#000`:`#fff`,c=vi.reduce((t,n)=>({...t,[`${n}ShadowColor`]:`0 ${X(e.controlOutlineWidth)} 0 ${ja(e[`${n}1`],e.colorBgContainer)}`}),{}),l=e.colorBgContainerDisabled,u=e.colorBgContainerDisabled;return{...c,fontWeight:400,iconGap:e.marginXS,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorderDisabled,defaultGhostColor:e.colorBgContainer,ghostBg:`transparent`,defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:`inherit`,onlyIconSizeSM:`inherit`,onlyIconSizeLG:`inherit`,groupBorderColor:e.colorPrimaryHover,linkHoverBg:`transparent`,textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,solidTextColor:s,contentFontSize:t,contentFontSizeSM:n,contentFontSizeLG:r,contentLineHeight:i,contentLineHeightSM:a,contentLineHeightLG:o,paddingBlock:Math.max((e.controlHeight-t*i)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-n*a)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-r*o)/2-e.lineWidth,0),defaultBgDisabled:l,dashedBgDisabled:u}},Qf=e=>{let{componentCls:t,antCls:n,lineWidth:r}=e,[i,a]=Za(n,`btn`);return{[t]:[{[i(`border-width`)]:r,[i(`border-color`)]:`#000`,[i(`border-color-hover`)]:a(`border-color`),[i(`border-color-active`)]:a(`border-color`),[i(`border-color-disabled`)]:a(`border-color`),[i(`border-style`)]:`solid`,[i(`text-color`)]:`#000`,[i(`text-color-hover`)]:a(`text-color`),[i(`text-color-active`)]:a(`text-color`),[i(`text-color-disabled`)]:a(`text-color`),[i(`bg-color`)]:`#ddd`,[i(`bg-color-hover`)]:a(`bg-color`),[i(`bg-color-active`)]:a(`bg-color`),[i(`bg-color-disabled`)]:e.colorBgContainerDisabled,[i(`bg-color-container`)]:e.colorBgContainer,[i(`shadow`)]:`none`},{border:[a(`border-width`),a(`border-style`),a(`border-color`)].join(` `),color:a(`text-color`),backgroundColor:a(`bg-color`),[`&:not(:disabled):not(${t}-disabled)`]:{"&:hover":{border:[a(`border-width`),a(`border-style`),a(`border-color-hover`)].join(` `),color:a(`text-color-hover`),backgroundColor:a(`bg-color-hover`)},"&:active":{border:[a(`border-width`),a(`border-style`),a(`border-color-active`)].join(` `),color:a(`text-color-active`),backgroundColor:a(`bg-color-active`)}}},{[`&${t}-variant-solid`]:{[i(`solid-bg-color`)]:a(`color-base`),[i(`solid-bg-color-hover`)]:a(`color-hover`),[i(`solid-bg-color-active`)]:a(`color-active`),[i(`border-color`)]:`transparent`,[i(`text-color`)]:e.colorTextLightSolid,[i(`bg-color`)]:a(`solid-bg-color`),[i(`bg-color-hover`)]:a(`solid-bg-color-hover`),[i(`bg-color-active`)]:a(`solid-bg-color-active`),boxShadow:a(`shadow`)},[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[i(`border-color`)]:a(`color-base`),[i(`border-color-hover`)]:a(`color-hover`),[i(`border-color-active`)]:a(`color-active`),[i(`bg-color`)]:a(`bg-color-container`),[i(`text-color`)]:a(`color-base`),[i(`text-color-hover`)]:a(`color-hover`),[i(`text-color-active`)]:a(`color-active`),boxShadow:a(`shadow`)},[`&${t}-variant-dashed`]:{[i(`border-style`)]:`dashed`,[i(`bg-color-disabled`)]:e.dashedBgDisabled},[`&${t}-variant-filled`]:{[i(`border-color`)]:`transparent`,[i(`text-color`)]:a(`color-base`),[i(`bg-color`)]:a(`color-light`),[i(`bg-color-hover`)]:a(`color-light-hover`),[i(`bg-color-active`)]:a(`color-light-active`)},[`&${t}-variant-text, &${t}-variant-link`]:{[i(`border-color`)]:`transparent`,[i(`text-color`)]:a(`color-base`),[i(`text-color-hover`)]:a(`color-hover`),[i(`text-color-active`)]:a(`color-active`),[i(`bg-color`)]:`transparent`,[i(`bg-color-hover`)]:`transparent`,[i(`bg-color-active`)]:`transparent`,[`&:disabled, &${e.componentCls}-disabled`]:{background:`transparent`,borderColor:`transparent`}},[`&${t}-variant-text`]:{[i(`bg-color-hover`)]:a(`color-light`),[i(`bg-color-active`)]:a(`color-light-active`)}},{[`&${t}-variant-link`]:{[i(`color-base`)]:e.colorLink,[i(`color-hover`)]:e.colorLinkHover,[i(`color-active`)]:e.colorLinkActive,[i(`bg-color-hover`)]:e.linkHoverBg},[`&${t}-color-primary`]:{[i(`color-base`)]:e.colorPrimary,[i(`color-hover`)]:e.colorPrimaryHover,[i(`color-active`)]:e.colorPrimaryActive,[i(`color-light`)]:e.colorPrimaryBg,[i(`color-light-hover`)]:e.colorPrimaryBgHover,[i(`color-light-active`)]:e.colorPrimaryBorder,[i(`shadow`)]:e.primaryShadow,[`&${t}-variant-solid`]:{[i(`text-color`)]:e.primaryColor,[i(`text-color-hover`)]:a(`text-color`),[i(`text-color-active`)]:a(`text-color`)}},[`&${t}-color-dangerous`]:{[i(`color-base`)]:e.colorError,[i(`color-hover`)]:e.colorErrorHover,[i(`color-active`)]:e.colorErrorActive,[i(`color-light`)]:e.colorErrorBg,[i(`color-light-hover`)]:e.colorErrorBgFilledHover,[i(`color-light-active`)]:e.colorErrorBgActive,[i(`shadow`)]:e.dangerShadow,[`&${t}-variant-solid`]:{[i(`text-color`)]:e.dangerColor,[i(`text-color-hover`)]:a(`text-color`),[i(`text-color-active`)]:a(`text-color`)}},[`&${t}-color-default`]:{[i(`solid-bg-color`)]:e.colorBgSolid,[i(`solid-bg-color-hover`)]:e.colorBgSolidHover,[i(`solid-bg-color-active`)]:e.colorBgSolidActive,[i(`color-base`)]:e.defaultBorderColor,[i(`color-hover`)]:e.defaultHoverBorderColor,[i(`color-active`)]:e.defaultActiveBorderColor,[i(`color-light`)]:e.colorFillTertiary,[i(`color-light-hover`)]:e.colorFillSecondary,[i(`color-light-active`)]:e.colorFill,[i(`text-color`)]:e.defaultColor,[i(`text-color-hover`)]:e.defaultHoverColor,[i(`text-color-active`)]:e.defaultActiveColor,[i(`shadow`)]:e.defaultShadow,[`&${t}-variant-outlined`]:{[i(`bg-color-disabled`)]:e.defaultBgDisabled},[`&${t}-variant-solid`]:{[i(`text-color`)]:e.solidTextColor,[i(`text-color-hover`)]:a(`text-color`),[i(`text-color-active`)]:a(`text-color`)},[`&${t}-variant-filled, &${t}-variant-text`]:{[i(`text-color-hover`)]:a(`text-color`),[i(`text-color-active`)]:a(`text-color`)},[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[i(`text-color`)]:e.defaultColor,[i(`text-color-hover`)]:e.defaultHoverColor,[i(`text-color-active`)]:e.defaultActiveColor,[i(`bg-color-container`)]:e.defaultBg,[i(`bg-color-hover`)]:e.defaultHoverBg,[i(`bg-color-active`)]:e.defaultActiveBg},[`&${t}-variant-text`]:{[i(`text-color`)]:e.textTextColor,[i(`text-color-hover`)]:e.textTextHoverColor,[i(`text-color-active`)]:e.textTextActiveColor,[i(`bg-color-hover`)]:e.textHoverBg},[`&${t}-background-ghost`]:{[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[i(`text-color`)]:e.defaultGhostColor,[i(`border-color`)]:e.defaultGhostBorderColor}}}},vi.map(n=>{let r=e[`${n}6`],a=e[`${n}1`],o=e[`${n}Hover`],s=e[`${n}2`],c=e[`${n}3`],l=e[`${n}Active`],u=e[`${n}ShadowColor`];return{[`&${t}-color-${n}`]:{[i(`color-base`)]:r,[i(`color-hover`)]:o,[i(`color-active`)]:l,[i(`color-light`)]:a,[i(`color-light-hover`)]:s,[i(`color-light-active`)]:c,[i(`shadow`)]:u}}}),{[`&:disabled, &${e.componentCls}-disabled`]:{cursor:`not-allowed`,borderColor:e.colorBorderDisabled,background:a(`bg-color-disabled`),color:e.colorTextDisabled,boxShadow:`none`}},{[`&${t}-background-ghost`]:{[i(`bg-color`)]:e.ghostBg,[i(`bg-color-hover`)]:e.ghostBg,[i(`bg-color-active`)]:e.ghostBg,[i(`shadow`)]:`none`,[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[i(`bg-color-hover`)]:e.ghostBg,[i(`bg-color-active`)]:e.ghostBg}}}]}},$f=e=>{let{componentCls:t,iconCls:n,fontWeight:r,opacityLoading:i,motionDurationSlow:a,motionEaseInOut:o,iconGap:s,calc:c}=e;return{[t]:{outline:`none`,position:`relative`,display:`inline-flex`,gap:s,alignItems:`center`,justifyContent:`center`,fontWeight:r,whiteSpace:`nowrap`,textAlign:`center`,backgroundImage:`none`,cursor:`pointer`,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:`none`,touchAction:`manipulation`,...xf(),"&:disabled > *":{pointerEvents:`none`},[`${t}-icon > svg`]:Ba(),"> a":{color:`currentColor`},"&:not(:disabled)":Ua(e),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:`0.34em`},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:`-0.34em`,letterSpacing:`0.34em`},[`&${t}-icon-only`]:{paddingInline:0,[`&${t}-compact-item`]:{flex:`none`}},[`&${t}-loading`]:{opacity:i,cursor:`default`},[`${t}-loading-icon`]:{transition:[`width`,`opacity`,`margin`].map(e=>`${e} ${a} ${o}`).join(`,`)},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:c(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:c(s).mul(-1).equal()}}},"&-icon-end":{flexDirection:`row-reverse`,[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:c(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:c(s).mul(-1).equal()}}}}}},ep=e=>({minWidth:e.controlHeight,paddingInline:0,borderRadius:`50%`}),tp=(e,t=``)=>{let{componentCls:n,controlHeight:r,fontSize:i,borderRadius:a,buttonPaddingHorizontal:o,iconCls:s,buttonPaddingVertical:c,buttonIconOnlyFontSize:l}=e;return[{[t]:{fontSize:i,height:r,padding:`${X(c)} ${X(o)}`,borderRadius:a,[`&${n}-icon-only`]:{width:r,[s]:{fontSize:l}}}},{[`${n}${n}-circle${t}`]:ep(e)},{[`${n}${n}-round${t}`]:{borderRadius:e.controlHeight,[`&:not(${n}-icon-only)`]:{paddingInline:e.buttonPaddingHorizontal}}}]},np=e=>tp(si(e,{fontSize:e.contentFontSize}),e.componentCls),rp=e=>tp(si(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM}),`${e.componentCls}-sm`),ip=e=>tp(si(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG}),`${e.componentCls}-lg`),ap=e=>{let{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:`100%`}}}},op=Ja(`Button`,e=>{let t=Xf(e);return[$f(t),np(t),rp(t),ip(t),ap(t),Qf(t),Lf(t)]},Zf,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function sp(e,t,n,r){let{focusElCls:i,focus:a,borderElCls:o}=n,s=o?`> *`:``,c=[`hover`,a?`focus`:null,`active`].filter(Boolean).map(e=>`&:${e} ${s}`).join(`,`);return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${r}-status-success)`]:{zIndex:2},"&-item":{[c]:{zIndex:3},...i?{[`&${i}`]:{zIndex:3}}:{},[`&[disabled] ${s}`]:{zIndex:0}}}}function cp(e,t,n){let{borderElCls:r}=n,i=r?`> ${r}`:``;return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${i}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function lp(e,t={focus:!0}){let{componentCls:n}=e,{componentCls:r}=t,i=r||n,a=`${i}-compact`;return{[a]:{...sp(e,a,t,i),...cp(i,a,t)}}}function up(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 dp(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 fp(e){let t=`${e.componentCls}-compact-vertical`;return{[t]:{...up(e,t,e.componentCls),...dp(e.componentCls,t)}}}var pp=e=>{let{antCls:t,componentCls:n,lineWidth:r,calc:i,colorBgContainer:a}=e,o=`${n}-variant-solid:not([disabled])`,s=i(r).mul(-1).equal(),[c,l]=Za(t,`btn`),u=e=>({[`${n}-compact${e?`-vertical`:``}-item`]:{[c(`compact-connect-border-color`)]:l(`bg-color-hover`),[`&${o}`]:{transition:`none`,[`& + ${o}:before`]:[{position:`absolute`,backgroundColor:l(`compact-connect-border-color`),content:`""`},e?{top:s,insetInline:s,height:r}:{insetBlock:s,insetInlineStart:s,width:r}],"&:hover:before":{display:`none`}}}});return[u(),u(!0),{[`${o}${n}-color-default`]:{[c(`compact-connect-border-color`)]:`color-mix(in srgb, ${l(`bg-color-hover`)} 75%, ${a})`}}]},mp=Xa([`Button`,`compact`],e=>{let t=Xf(e);return[lp(t),fp(t),pp(t)]},Zf);function hp(e){if(sc(e)){let t=e?.delay;return t=ac(t)?t:0,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}var gp={default:[`default`,`outlined`],primary:[`primary`,`solid`],dashed:[`default`,`dashed`],link:[`link`,`link`],text:[`default`,`text`]},_p=v.forwardRef((e,t)=>{let{_skipSemantic:n,loading:r=!1,prefixCls:i,color:a,variant:o,type:s,danger:c=!1,shape:l,size:u,disabled:d,className:f,rootClassName:p,children:m,icon:h,iconPosition:g,iconPlacement:_,ghost:y=!1,block:b=!1,htmlType:x=`button`,classNames:C,styles:w,style:T,autoInsertSpace:E,autoFocus:D,...O}=e,k=de(m),A=s||`default`,{getPrefixCls:j,direction:M,autoInsertSpace:N,className:P,style:F,classNames:I,styles:R,loadingIcon:z,shape:B,color:V,variant:H}=Ze(`button`),U=l||B||`default`,[W,ee]=(0,v.useMemo)(()=>{if(a&&o)return[a,o];if(s||c){let e=gp[A]||[];return c?[`danger`,e[1]]:e}return V&&H?[V,H]:[`default`,`outlined`]},[a,o,s,c,V,H,A]),[te,G]=(0,v.useMemo)(()=>y&&ee===`solid`?[W,`outlined`]:[W,ee],[W,ee,y]),ne=te===`danger`,re=ne?`dangerous`:te,ie=E??N??!0,K=j(`btn`,i),[q,ae]=op(K),oe=(0,v.useContext)(du),se=d??oe,J=(0,v.useContext)(Ld),ce=(0,v.useMemo)(()=>hp(r),[r]),[le,fe]=(0,v.useState)(ce.loading),[pe,me]=(0,v.useState)(!1),he=(0,v.useRef)(null),ge=L(t,he),_e=k.length===1&&!h&&!Hd(G),ve=(0,v.useRef)(!0);v.useEffect(()=>(ve.current=!1,()=>{ve.current=!0}),[]),S(()=>{let e=null;ce.delay>0?e=setTimeout(()=>{e=null,fe(!0)},ce.delay):fe(ce.loading);function t(){e&&=(clearTimeout(e),null)}return t},[ce.delay,ce.loading]),(0,v.useEffect)(()=>{if(!he.current||!ie)return;let e=he.current.textContent||``;_e&&Bd(e)?pe||me(!0):pe&&me(!1)}),(0,v.useEffect)(()=>{D&&he.current&&he.current.focus()},[]);let ye=v.useCallback(t=>{if(le||se){t.preventDefault();return}e.onClick?.((`href`in e,t))},[e.onClick,le,se]),{compactSize:be,compactItemClassnames:xe}=Nd(K,M),Se=Ad(e=>u??be??J??e),Ce=le?`loading`:h,we=_??g??`start`,Te=ue(O,[`navigate`]),Ee={...e,type:A,color:te,variant:G,danger:ne,shape:U,size:Se,disabled:se,loading:le,iconPlacement:we},[De,Oe]=Dc([n?void 0:I,C],[n?void 0:R,w],{props:Ee}),ke=Y(K,q,ae,{[`${K}-${U}`]:U!==`default`&&U!==`square`&&U,[`${K}-${A}`]:A,[`${K}-dangerous`]:c,[`${K}-color-${re}`]:re,[`${K}-variant-${G}`]:G,[`${K}-lg`]:Se===`large`,[`${K}-sm`]:Se===`small`,[`${K}-icon-only`]:!m&&m!==0&&!!Ce,[`${K}-background-ghost`]:y&&!Hd(G),[`${K}-loading`]:le,[`${K}-two-chinese-chars`]:pe&&ie&&!le,[`${K}-block`]:b,[`${K}-rtl`]:M===`rtl`,[`${K}-icon-end`]:we===`end`},xe,f,p,P,De.root),Ae={...Oe.root,...F,...T},je={className:De.icon,style:Oe.icon},Me=e=>v.createElement(Gd,{prefixCls:K,...je},e),Ne=v.createElement(Yd,{existIcon:!!h,prefixCls:K,loading:le,mount:ve.current,...je}),Pe=sc(r)&&r.icon||z,Fe;Fe=h&&!le?Me(h):r&&Pe?Me(Pe):Ne;let Ie=ic(m)?Wd(m,_e&&ie,Oe.content,De.content):null;if(Te.href!==void 0)return v.createElement(`a`,{...Te,className:Y(ke,{[`${K}-disabled`]:se}),href:se?void 0:Te.href,style:Ae,onClick:ye,ref:ge,tabIndex:se?-1:0,"aria-disabled":se},Fe,Ie);let Le=v.createElement(`button`,{...O,type:x,className:ke,style:Ae,onClick:ye,disabled:se,ref:ge},Fe,Ie,xe&&v.createElement(mp,{prefixCls:K}));return Hd(G)||(Le=v.createElement(kd,{component:`Button`,disabled:le},Le)),Le});_p.Group=Rd,_p.__ANT_BUTTON=!0;var vp=e=>{let{type:t,children:n,prefixCls:r,buttonProps:i,close:a,autoFocus:o,emitEvent:s,isSilent:c,quitOnNullishReturnValue:l,actionFn:u}=e,d=v.useRef(!1),f=v.useRef(null),[p,m]=w(!1),h=(...e)=>{a?.(...e)};v.useEffect(()=>{let e=null;return o&&(e=setTimeout(()=>{f.current?.focus({preventScroll:!0})})),()=>{e&&clearTimeout(e)}},[o]);let g=e=>{lc(e)&&(m(!0),e.then((...e)=>{m(!1,!0),h.apply(void 0,e),d.current=!1},e=>{if(m(!1,!0),d.current=!1,!c?.())return Promise.reject(e)}))},_=e=>{if(d.current)return;if(d.current=!0,!u){h();return}let t;if(s){if(t=u(e),l&&!lc(t)){d.current=!1,h(e);return}}else if(u.length)t=u(a),d.current=!1;else if(t=u(),!lc(t)){h();return}g(t)};return v.createElement(_p,{...Vd(t),onClick:_,loading:p,prefixCls:r,...i,ref:f},n)},yp=v.createContext({}),{Provider:bp}=yp,xp=()=>{let{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:i,rootPrefixCls:a,close:o,onCancel:s,onConfirm:c,onClose:l}=(0,v.useContext)(yp);return i?v.createElement(vp,{isSilent:r,actionFn:s,close:(...e)=>{o?.(...e),c?.(!1),l?.()},autoFocus:e===`cancel`,buttonProps:t,prefixCls:`${a}-btn`},n):null},Sp=()=>{let{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:i,okTextLocale:a,okType:o,onConfirm:s,onOk:c,onClose:l}=(0,v.useContext)(yp);return v.createElement(vp,{isSilent:n,type:o||`primary`,actionFn:c,close:(...e)=>{t?.(...e),s?.(!0),l?.()},autoFocus:e===`ok`,buttonProps:r,prefixCls:`${i}-btn`},a)},Cp=v.createContext({});function wp(e,t,n){let r=t;return!r&&n&&(r=`${e}-${n}`),r}function Tp(e,t){let n=e[`page${t?`Y`:`X`}Offset`],r=`scroll${t?`Top`:`Left`}`;if(typeof n!=`number`){let t=e.document;n=t.documentElement[r],typeof n!=`number`&&(n=t.body[r])}return n}function Ep(e){let t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,i=r.defaultView||r.parentWindow;return n.left+=Tp(i),n.top+=Tp(i,!0),n}function Dp(e,t=!1){if(Pl(e)){let n=e.nodeName.toLowerCase(),r=[`input`,`select`,`textarea`,`button`].includes(n)||e.isContentEditable||n===`a`&&!!e.getAttribute(`href`),i=e.getAttribute(`tabindex`),a=Number(i),o=null;return i&&!Number.isNaN(a)?o=a:r&&o===null&&(o=0),r&&e.disabled&&(o=null),o!==null&&(o>=0||t&&o<0)}return!1}function Op(e,t=!1){let n=[...e.querySelectorAll(`*`)].filter(e=>Dp(e,t));return Dp(e,t)&&n.unshift(e),n}function kp(e,t){if(!e)return;e.focus(t);let{cursor:n}=t||{};if(n&&(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)){let t=e.value.length;switch(n){case`start`:e.setSelectionRange(0,0);break;case`end`:e.setSelectionRange(t,t);break;default:e.setSelectionRange(0,t)}}}var Ap=null,jp=[],Mp=new Map,Np=new Map;function Pp(){return jp[jp.length-1]}function Fp(e){let t=Pp();if(e&&t){let n;for(let[e,r]of Mp.entries())if(r===t){n=e;break}let r=Np.get(n);return!!r&&(r===e||r.contains(e))}return!1}function Ip(e){let{activeElement:t}=document;return e===t||e.contains(t)}function Lp(){let e=Pp(),{activeElement:t}=document;if(!Fp(t))if(e&&!Ip(e)){let t=Op(e);(t.includes(Ap)?Ap:t[0])?.focus({preventScroll:!0})}else Ap=t}function Rp(e){if(e.key===`Tab`){let{activeElement:t}=document,n=Op(Pp()),r=n[n.length-1];e.shiftKey&&t===n[0]?Ap=r:!e.shiftKey&&t===r&&(Ap=n[0])}}function zp(e,t){return e&&(Mp.set(t,e),jp=jp.filter(t=>t!==e),jp.push(e),window.addEventListener(`focusin`,Lp),window.addEventListener(`keydown`,Rp,!0),Lp()),()=>{Ap=null,jp=jp.filter(t=>t!==e),Mp.delete(t),Np.delete(t),jp.length===0&&(window.removeEventListener(`focusin`,Lp),window.removeEventListener(`keydown`,Rp,!0))}}function Bp(e,t){let n=(0,v.useRef)(0),[r,i]=(0,v.useState)(0);(0,v.useEffect)(()=>{n.current=0},t),(0,v.useEffect)(()=>{let[t,r]=e(n.current);return r||(n.current+=1,i(e=>e+1)),t},[...t,r])}function Vp(e,t){let n=dl(),r=(0,v.useRef)(t);return r.current=t,Bp(t=>{if(!e)return[void 0,!0];let i=r.current();return i?[zp(i,n),!0]:[void 0,t>=1]},[n,e]),[e=>{e&&Np.set(n,e)}]}var Hp=v.memo(({children:e})=>e,(e,{shouldUpdate:t})=>!t);function Up(){return Up=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Up.apply(this,arguments)}var Wp=v.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:i,title:a,ariaId:o,footer:s,closable:c,closeIcon:l,onClose:u,children:d,bodyStyle:f,bodyProps:p,modalRender:m,onMouseDown:h,onMouseUp:g,holderRef:_,visible:y,forceRender:b,width:x,height:S,classNames:C,styles:w,isFixedPos:T,focusTrap:E}=e,{panel:D}=v.useContext(Cp),O=(0,v.useRef)(null),k=L(_,D,O),[A]=Vp(y&&T&&E!==!1,()=>O.current);v.useImperativeHandle(t,()=>({focus:()=>{O.current?.focus({preventScroll:!0})}}));let j={};x!==void 0&&(j.width=x),S!==void 0&&(j.height=S);let M=s?v.createElement(`div`,{className:Y(`${n}-footer`,C?.footer),style:{...w?.footer}},s):null,N=a?v.createElement(`div`,{className:Y(`${n}-header`,C?.header),style:{...w?.header}},v.createElement(`div`,{className:Y(`${n}-title`,C?.title),id:o,style:{...w?.title}},a)):null,P=(0,v.useMemo)(()=>typeof c==`object`&&c?c:c?{closeIcon:l??v.createElement(`span`,{className:`${n}-close-x`})}:{},[c,l,n]),F=Ns(P,!0),I=typeof c==`object`&&c.disabled,R=c?v.createElement(`button`,Up({type:`button`,onClick:u,"aria-label":`Close`},F,{className:`${n}-close`,disabled:I}),P.closeIcon):null,z=v.createElement(`div`,{className:Y(`${n}-container`,C?.container),style:w?.container},R,N,v.createElement(`div`,Up({className:Y(`${n}-body`,C?.body),style:{...f,...w?.body}},p),d),M);return v.createElement(`div`,{key:`dialog-element`,role:`dialog`,"aria-labelledby":a?o:null,"aria-modal":`true`,ref:k,style:{...i,...j},className:Y(n,r),onMouseDown:h,onMouseUp:g,tabIndex:-1,onFocus:e=>{A(e.target)}},v.createElement(Hp,{shouldUpdate:y||b},m?m(z):z))});function Gp(){return Gp=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},Gp.apply(this,arguments)}var Kp=v.forwardRef((e,t)=>{let{prefixCls:n,title:r,style:i,className:a,visible:o,forceRender:s,destroyOnHidden:c,motionName:l,ariaId:u,onVisibleChanged:d,mousePosition:f}=e,p=(0,v.useRef)(null),m=(0,v.useRef)(null);v.useImperativeHandle(t,()=>({...m.current,inMotion:p.current.inMotion,enableMotion:p.current.enableMotion}));let[h,g]=v.useState(),_={};h&&(_.transformOrigin=h);function y(){if(!p.current?.nativeElement)return;let e=Ep(p.current.nativeElement);g(f&&(f.x||f.y)?`${f.x-e.left}px ${f.y-e.top}px`:``)}return v.createElement(Os,{visible:o,onVisibleChanged:d,onAppearPrepare:y,onEnterPrepare:y,forceRender:s,motionName:l,removeOnLeave:c,ref:p},({className:t,style:o},s)=>v.createElement(Wp,Gp({},e,{ref:m,title:r,ariaId:u,prefixCls:n,holderRef:s,style:{...o,...i,..._},className:Y(a,t)})))});function qp(){return qp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qp.apply(this,arguments)}var Jp=e=>{let{prefixCls:t,style:n,visible:r,maskProps:i,motionName:a,className:o}=e;return v.createElement(Os,{key:`mask`,visible:r,motionName:a,leavedClassName:`${t}-mask-hidden`},({className:e,style:r},a)=>v.createElement(`div`,qp({ref:a,style:{...r,...n},className:Y(`${t}-mask`,e,o)},i)))};function Yp(){return Yp=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},Yp.apply(this,arguments)}var Xp=e=>{let{prefixCls:t=`rc-dialog`,zIndex:n,visible:r=!1,focusTriggerAfterClose:i=!0,wrapStyle:a,wrapClassName:o,wrapProps:s,onClose:c,afterOpenChange:l,afterClose:u,transitionName:d,animation:f,closable:p=!0,mask:m=!0,maskTransitionName:h,maskAnimation:g,maskClosable:_=!0,maskStyle:y,maskProps:b,rootClassName:x,rootStyle:S,classNames:C,styles:w}=e,T=(0,v.useRef)(null),E=(0,v.useRef)(null),D=(0,v.useRef)(null),[O,k]=v.useState(r),[A,j]=v.useState(!1),M=dl();function N(){$e(E.current,document.activeElement)||(T.current=document.activeElement)}function P(){$e(E.current,document.activeElement)||D.current?.focus()}function F(){if(k(!1),m&&T.current&&i){try{T.current.focus({preventScroll:!0})}catch{}T.current=null}O&&u?.()}function I(e){e?P():F(),l?.(e)}function L(e){c?.(e)}let R=(0,v.useRef)(!1),z=null;_&&(z=e=>{E.current===e.target&&R.current&&L(e)});function B(e){R.current=e.target===E.current}(0,v.useEffect)(()=>{r?(R.current=!1,k(!0),N(),E.current&&j(getComputedStyle(E.current).position===`fixed`)):O&&D.current.enableMotion()&&!D.current.inMotion()&&F()},[r]);let V={zIndex:n,...a,...w?.wrapper,display:O?null:`none`};return v.createElement(`div`,Yp({className:Y(`${t}-root`,x),style:S},Ns(e,{data:!0})),v.createElement(Jp,{prefixCls:t,visible:m&&r,motionName:wp(t,h,g),style:{zIndex:n,...y,...w?.mask},maskProps:b,className:C?.mask}),v.createElement(`div`,Yp({className:Y(`${t}-wrap`,o,C?.wrapper),ref:E,onClick:z,onMouseDown:B,style:V},s),v.createElement(Kp,Yp({},e,{isFixedPos:A,ref:D,closable:p,ariaId:M,prefixCls:t,visible:r&&O,onClose:L,onVisibleChanged:I,motionName:wp(t,d,f)}))))};function Zp(){return Zp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Zp.apply(this,arguments)}var Qp=e=>{let{visible:t,getContainer:n,forceRender:r,destroyOnHidden:i=!1,afterClose:a,closable:o,panelRef:s,keyboard:c=!0,onClose:l}=e,[u,d]=v.useState(t),f=v.useMemo(()=>({panel:s}),[s]);return v.useEffect(()=>{t&&d(!0)},[t]),!r&&i&&!u?null:v.createElement(Cp.Provider,{value:f},v.createElement(Sl,{open:t||r||u,onEsc:({top:e,event:t})=>{if(e&&c){t.stopPropagation(),l?.(t);return}},autoDestroy:!1,getContainer:n,autoLock:t||u},v.createElement(Xp,Zp({},e,{destroyOnHidden:i,afterClose:()=>{let{afterClose:e}=(o&&typeof o==`object`?o:{})||{};e?.(),a?.(),d(!1)}}))))},$p=`RC_FORM_INTERNAL_HOOKS`,em=()=>{ce(!1,`Can not find FormContext. Please make sure you wrap Field under Form.`)},tm=v.createContext({getFieldValue:em,getFieldsValue:em,getFieldError:em,getFieldWarning:em,getFieldsError:em,isFieldsTouched:em,isFieldTouched:em,isFieldValidating:em,isFieldsValidating:em,resetFields:em,setFields:em,setFieldValue:em,setFieldsValue:em,validateFields:em,submit:em,getInternalHooks:()=>(em(),{dispatch:em,initEntityValue:em,registerField:em,useSubscribe:em,setInitialValues:em,destroyForm:em,setCallbacks:em,registerWatch:em,getFields:em,setValidateMessages:em,setPreserve:em,getInitialValue:em})}),nm=v.createContext(null);function rm(e){return e==null?[]:Array.isArray(e)?e:[e]}function im(e){return e&&!!e._init}function am(){return{default:`Validation error on field %s`,required:`%s is required`,enum:`%s must be one of %s`,whitespace:`%s cannot be empty`,date:{format:`%s date %s is invalid for format %s`,parse:`%s date could not be parsed, %s is invalid `,invalid:`%s date %s is invalid`},types:{string:`%s is not a %s`,method:`%s is not a %s (function)`,array:`%s is not an %s`,object:`%s is not an %s`,number:`%s is not a %s`,date:`%s is not a %s`,boolean:`%s is not a %s`,integer:`%s is not an %s`,float:`%s is not a %s`,regexp:`%s is not a valid %s`,email:`%s is not a valid %s`,tel:`%s is not a valid %s`,url:`%s is not a valid %s`,hex:`%s is not a valid %s`},string:{len:`%s must be exactly %s characters`,min:`%s must be at least %s characters`,max:`%s cannot be longer than %s characters`,range:`%s must be between %s and %s characters`},number:{len:`%s must equal %s`,min:`%s cannot be less than %s`,max:`%s cannot be greater than %s`,range:`%s must be between %s and %s`},array:{len:`%s must be exactly %s in length`,min:`%s cannot be less than %s in length`,max:`%s cannot be greater than %s in length`,range:`%s must be between %s and %s in length`},pattern:{mismatch:`%s value %s does not match pattern %s`},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var om=am();function sm(e){try{return Function.toString.call(e).indexOf(`[native code]`)!==-1}catch{return typeof e==`function`}}function cm(e,t,n){if(qr())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var i=new(e.bind.apply(e,r));return n&&Wr(i,n.prototype),i}function lm(e){var t=typeof Map==`function`?new Map:void 0;return lm=function(e){if(e===null||!sm(e))return e;if(typeof e!=`function`)throw TypeError(`Super expression must either be null or a function`);if(t!==void 0){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return cm(e,arguments,Kr(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Wr(n,e)},lm(e)}var um=/%[sdj%]/g,dm=function(){};function fm(e){if(!e||!e.length)return null;var t={};return e.forEach(function(e){var n=e.field;t[n]=t[n]||[],t[n].push(e)}),t}function pm(e){var t=[...arguments].slice(1),n=0,r=t.length;return typeof e==`function`?e.apply(null,t):typeof e==`string`?e.replace(um,function(e){if(e===`%%`)return`%`;if(n>=r)return e;switch(e){case`%s`:return String(t[n++]);case`%d`:return Number(t[n++]);case`%j`:try{return JSON.stringify(t[n++])}catch{return`[Circular]`}break;default:return e}}):e}function mm(e){return e===`string`||e===`url`||e===`hex`||e===`email`||e===`date`||e===`pattern`||e===`tel`}function hm(e,t){return!!(e==null||t===`array`&&Array.isArray(e)&&!e.length||mm(t)&&typeof e==`string`&&!e)}function gm(e,t,n){var r=[],i=0,a=e.length;function o(e){r.push.apply(r,ze(e||[])),i++,i===a&&n(r)}e.forEach(function(e){t(e,o)})}function _m(e,t,n){var r=0,i=e.length;function a(o){if(o&&o.length){n(o);return}var s=r;r+=1,s<i?t(e[s],a):n([])}a([])}function vm(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,ze(e[n]||[]))}),t}var ym=function(e){Gr(n,e);var t=Yr(n);function n(e,r){var i;return Br(this,n),i=t.call(this,`Async Validation Error`),Lr(Ur(i),`errors`,void 0),Lr(Ur(i),`fields`,void 0),i.errors=e,i.fields=r,i}return Hr(n)}(lm(Error));function bm(e,t,n,r,i){if(t.first){var a=new Promise(function(t,a){_m(vm(e),n,function(e){return r(e),e.length?a(new ym(e,fm(e))):t(i)})});return a.catch(function(e){return e}),a}var o=t.firstFields===!0?Object.keys(e):t.firstFields||[],s=Object.keys(e),c=s.length,l=0,u=[],d=new Promise(function(t,a){var d=function(e){if(u.push.apply(u,e),l++,l===c)return r(u),u.length?a(new ym(u,fm(u))):t(i)};s.length||(r(u),t(i)),s.forEach(function(t){var r=e[t];o.indexOf(t)===-1?gm(r,n,d):_m(r,n,d)})});return d.catch(function(e){return e}),d}function xm(e){return!!(e&&e.message!==void 0)}function Sm(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function Cm(e,t){return function(n){var r=e.fullFields?Sm(t,e.fullFields):t[n.field||e.fullField];return xm(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 wm(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];Ar(r)===`object`&&Ar(e[n])===`object`?e[n]=zr(zr({},e[n]),r):e[n]=r}}return e}var Tm=`enum`,Em=function(e,t,n,r,i){e[Tm]=Array.isArray(e[Tm])?e[Tm]:[],e[Tm].indexOf(t)===-1&&r.push(pm(i.messages[Tm],e.fullField,e[Tm].join(`, `)))},Dm=function(e,t,n,r,i){e.pattern&&(e.pattern instanceof RegExp?(e.pattern.lastIndex=0,e.pattern.test(t)||r.push(pm(i.messages.pattern.mismatch,e.fullField,t,e.pattern))):typeof e.pattern==`string`&&(new RegExp(e.pattern).test(t)||r.push(pm(i.messages.pattern.mismatch,e.fullField,t,e.pattern))))},Om=function(e,t,n,r,i){var a=typeof e.len==`number`,o=typeof e.min==`number`,s=typeof e.max==`number`,c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,l=t,u=null,d=typeof t==`number`,f=typeof t==`string`,p=Array.isArray(t);if(d?u=`number`:f?u=`string`:p&&(u=`array`),!u)return!1;p&&(l=t.length),f&&(l=t.replace(c,`_`).length),a?l!==e.len&&r.push(pm(i.messages[u].len,e.fullField,e.len)):o&&!s&&l<e.min?r.push(pm(i.messages[u].min,e.fullField,e.min)):s&&!o&&l>e.max?r.push(pm(i.messages[u].max,e.fullField,e.max)):o&&s&&(l<e.min||l>e.max)&&r.push(pm(i.messages[u].range,e.fullField,e.min,e.max))},km=function(e,t,n,r,i,a){e.required&&(!n.hasOwnProperty(e.field)||hm(t,a||e.type))&&r.push(pm(i.messages.required,e.fullField))},Am,jm=(function(){if(Am)return Am;var e=`[a-fA-F\\d:]`,t=function(t){return t&&t.includeBoundaries?`(?:(?<=\\s|^)(?=${e})|(?<=${e})(?=\\s|\$))`:``},n=`(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}`,r=`[a-fA-F\\d]{1,4}`,i=`(?:${[`(?:${r}:){7}(?:${r}|:)`,`(?:${r}:){6}(?:${n}|:${r}|:)`,`(?:${r}:){5}(?::${n}|(?::${r}){1,2}|:)`,`(?:${r}:){4}(?:(?::${r}){0,1}:${n}|(?::${r}){1,3}|:)`,`(?:${r}:){3}(?:(?::${r}){0,2}:${n}|(?::${r}){1,4}|:)`,`(?:${r}:){2}(?:(?::${r}){0,3}:${n}|(?::${r}){1,5}|:)`,`(?:${r}:){1}(?:(?::${r}){0,4}:${n}|(?::${r}){1,6}|:)`,`(?::(?:(?::${r}){0,5}:${n}|(?::${r}){1,7}|:))`].join(`|`)})(?:%[0-9a-zA-Z]{1,})?`,a=RegExp(`(?:^${n}\$)|(?:^${i}\$)`),o=RegExp(`^${n}\$`),s=RegExp(`^${i}\$`),c=function(e){return e&&e.exact?a:RegExp(`(?:${t(e)}${n}${t(e)})|(?:${t(e)}${i}${t(e)})`,`g`)};c.v4=function(e){return e&&e.exact?o:RegExp(`${t(e)}${n}${t(e)}`,`g`)},c.v6=function(e){return e&&e.exact?s:RegExp(`${t(e)}${i}${t(e)}`,`g`)};var l=`(?:(?:(?:[a-z]+:)?//)|www\\.)(?:\\S+(?::\\S*)?@)?(?:localhost|${c.v4().source}|${c.v6().source}|(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))(?::\\d{2,5})?(?:[/?#][^\\s"]*)?`;return Am=RegExp(`(?:^${l}\$)`,`i`),Am}),Mm={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,tel:/^(\+[0-9]{1,3}[-\s\u2011]?)?(\([0-9]{1,4}\)[-\s\u2011]?)?([0-9]+[-\s\u2011]?)*[0-9]+$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Nm={integer:function(e){return Nm.number(e)&&parseInt(e,10)===e},float:function(e){return Nm.number(e)&&!Nm.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch{return!1}},date:function(e){return typeof e.getTime==`function`&&typeof e.getMonth==`function`&&typeof e.getYear==`function`&&!isNaN(e.getTime())},number:function(e){return isNaN(e)?!1:typeof e==`number`},object:function(e){return Ar(e)===`object`&&!Nm.array(e)},method:function(e){return typeof e==`function`},email:function(e){return typeof e==`string`&&e.length<=320&&!!e.match(Mm.email)},tel:function(e){return typeof e==`string`&&e.length<=32&&!!e.match(Mm.tel)},url:function(e){return typeof e==`string`&&e.length<=2048&&!!e.match(jm())},hex:function(e){return typeof e==`string`&&!!e.match(Mm.hex)}},Pm={required:km,whitespace:function(e,t,n,r,i){(/^\s+$/.test(t)||t===``)&&r.push(pm(i.messages.whitespace,e.fullField))},type:function(e,t,n,r,i){if(e.required&&t===void 0){km(e,t,n,r,i);return}var a=[`integer`,`float`,`array`,`regexp`,`object`,`method`,`email`,`tel`,`number`,`date`,`url`,`hex`],o=e.type;a.indexOf(o)>-1?Nm[o](t)||r.push(pm(i.messages.types[o],e.fullField,e.type)):o&&Ar(t)!==e.type&&r.push(pm(i.messages.types[o],e.fullField,e.type))},range:Om,enum:Em,pattern:Dm},Fm=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(hm(t)&&!e.required)return n();Pm.required(e,t,r,a,i)}n(a)},Im=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(t==null&&!e.required)return n();Pm.required(e,t,r,a,i,`array`),t!=null&&(Pm.type(e,t,r,a,i),Pm.range(e,t,r,a,i))}n(a)},Lm=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(hm(t)&&!e.required)return n();Pm.required(e,t,r,a,i),t!==void 0&&Pm.type(e,t,r,a,i)}n(a)},Rm=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(hm(t,`date`)&&!e.required)return n();if(Pm.required(e,t,r,a,i),!hm(t,`date`)){var o=t instanceof Date?t:new Date(t);Pm.type(e,o,r,a,i),o&&Pm.range(e,o.getTime(),r,a,i)}}n(a)},zm=`enum`,Bm=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(hm(t)&&!e.required)return n();Pm.required(e,t,r,a,i),t!==void 0&&Pm[zm](e,t,r,a,i)}n(a)},Vm=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(hm(t)&&!e.required)return n();Pm.required(e,t,r,a,i),t!==void 0&&(Pm.type(e,t,r,a,i),Pm.range(e,t,r,a,i))}n(a)},Hm=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(hm(t)&&!e.required)return n();Pm.required(e,t,r,a,i),t!==void 0&&(Pm.type(e,t,r,a,i),Pm.range(e,t,r,a,i))}n(a)},Um=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(hm(t)&&!e.required)return n();Pm.required(e,t,r,a,i),t!==void 0&&Pm.type(e,t,r,a,i)}n(a)},Wm=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(t===``&&(t=void 0),hm(t)&&!e.required)return n();Pm.required(e,t,r,a,i),t!==void 0&&(Pm.type(e,t,r,a,i),Pm.range(e,t,r,a,i))}n(a)},Gm=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(hm(t)&&!e.required)return n();Pm.required(e,t,r,a,i),t!==void 0&&Pm.type(e,t,r,a,i)}n(a)},Km=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(hm(t,`string`)&&!e.required)return n();Pm.required(e,t,r,a,i),hm(t,`string`)||Pm.pattern(e,t,r,a,i)}n(a)},qm=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(hm(t)&&!e.required)return n();Pm.required(e,t,r,a,i),hm(t)||Pm.type(e,t,r,a,i)}n(a)},Jm=function(e,t,n,r,i){var a=[],o=Array.isArray(t)?`array`:Ar(t);Pm.required(e,t,r,a,i,o),n(a)},Ym=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(hm(t,`string`)&&!e.required)return n();Pm.required(e,t,r,a,i,`string`),hm(t,`string`)||(Pm.type(e,t,r,a,i),Pm.range(e,t,r,a,i),Pm.pattern(e,t,r,a,i),e.whitespace===!0&&Pm.whitespace(e,t,r,a,i))}n(a)},Xm=function(e,t,n,r,i){var a=e.type,o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(hm(t,a)&&!e.required)return n();Pm.required(e,t,r,o,i,a),hm(t,a)||Pm.type(e,t,r,o,i)}n(o)},Zm={string:Ym,method:Um,number:Wm,boolean:Lm,regexp:qm,integer:Hm,float:Vm,array:Im,object:Gm,enum:Bm,pattern:Km,date:Rm,url:Xm,hex:Xm,email:Xm,tel:Xm,required:Jm,any:Fm},Qm=function(){function e(t){Br(this,e),Lr(this,`rules`,null),Lr(this,`_messages`,om),this.define(t)}return Hr(e,[{key:`define`,value:function(e){var t=this;if(!e)throw Error(`Cannot configure a schema with no rules`);if(Ar(e)!==`object`||Array.isArray(e))throw Error(`Rules must be an object`);this.rules={},Object.keys(e).forEach(function(n){var r=e[n];t.rules[n]=Array.isArray(r)?r:[r]})}},{key:`messages`,value:function(e){return e&&(this._messages=wm(am(),e)),this._messages}},{key:`validate`,value:function(t){var n=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},a=t,o=r,s=i;if(typeof o==`function`&&(s=o,o={}),!this.rules||Object.keys(this.rules).length===0)return s&&s(null,a),Promise.resolve(a);function c(e){var t=[],n={};function r(e){if(Array.isArray(e)){var n;t=(n=t).concat.apply(n,ze(e))}else t.push(e)}for(var i=0;i<e.length;i++)r(e[i]);t.length?(n=fm(t),s(t,n)):s(null,a)}if(o.messages){var l=this.messages();l===om&&(l=am()),wm(l,o.messages),o.messages=l}else o.messages=this.messages();var u={};(o.keys||Object.keys(this.rules)).forEach(function(e){var r=n.rules[e],i=a[e];r.forEach(function(r){var o=r;typeof o.transform==`function`&&(a===t&&(a=zr({},a)),i=a[e]=o.transform(i),i!=null&&(o.type=o.type||(Array.isArray(i)?`array`:Ar(i)))),o=typeof o==`function`?{validator:o}:zr({},o),o.validator=n.getValidationMethod(o),o.validator&&(o.field=e,o.fullField=o.fullField||e,o.type=n.getType(o),u[e]=u[e]||[],u[e].push({rule:o,value:i,source:a,field:e}))})});var d={};return bm(u,o,function(t,n){var r=t.rule,i=(r.type===`object`||r.type===`array`)&&(Ar(r.fields)===`object`||Ar(r.defaultField)===`object`);i&&=r.required||!r.required&&t.value,r.field=t.field;function s(e,t){return zr(zr({},t),{},{fullField:`${r.fullField}.${e}`,fullFields:r.fullFields?[].concat(ze(r.fullFields),[e]):[e]})}function c(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],l=Array.isArray(c)?c:[c];!o.suppressWarning&&l.length&&e.warning(`async-validator:`,l),l.length&&r.message!==void 0&&r.message!==null&&(l=[].concat(r.message));var u=l.map(Cm(r,a));if(o.first&&u.length)return d[r.field]=1,n(u);if(!i)n(u);else{if(r.required&&!t.value)return r.message===void 0?o.error&&(u=[o.error(r,pm(o.messages.required,r.field))]):u=[].concat(r.message).map(Cm(r,a)),n(u);var f={};r.defaultField&&Object.keys(t.value).map(function(e){f[e]=r.defaultField}),f=zr(zr({},f),t.rule.fields);var p={};Object.keys(f).forEach(function(e){var t=f[e];p[e]=(Array.isArray(t)?t:[t]).map(s.bind(null,e))});var m=new e(p);m.messages(o.messages),t.rule.options&&(t.rule.options.messages=o.messages,t.rule.options.error=o.error),m.validate(t.value,t.rule.options||o,function(e){var t=[];u&&u.length&&t.push.apply(t,ze(u)),e&&e.length&&t.push.apply(t,ze(e)),n(t.length?t:null)})}}var l;if(r.asyncValidator)l=r.asyncValidator(r,t.value,c,t.source,o);else if(r.validator){try{l=r.validator(r,t.value,c,t.source,o)}catch(e){var u,f;(u=(f=console).error)==null||u.call(f,e),o.suppressValidatorError||setTimeout(function(){throw e},0),c(e.message)}l===!0?c():l===!1?c(typeof r.message==`function`?r.message(r.fullField||r.field):r.message||`${r.fullField||r.field} fails`):l instanceof Array?c(l):l instanceof Error&&c(l.message)}l&&l.then&&l.then(function(){return c()},function(e){return c(e)})},function(e){c(e)},a)}},{key:`getType`,value:function(e){if(e.type===void 0&&e.pattern instanceof RegExp&&(e.type=`pattern`),typeof e.validator!=`function`&&e.type&&!Zm.hasOwnProperty(e.type))throw Error(pm(`Unknown rule type %s`,e.type));return e.type||`string`}},{key:`getValidationMethod`,value:function(e){if(typeof e.validator==`function`)return e.validator;var t=Object.keys(e),n=t.indexOf(`message`);return n!==-1&&t.splice(n,1),t.length===1&&t[0]===`required`?Zm.required:Zm[this.getType(e)]||void 0}}]),e}();Lr(Qm,`register`,function(e,t){if(typeof t!=`function`)throw Error(`Cannot register a validator by type, validator is not a function`);Zm[e]=t}),Lr(Qm,`warning`,dm),Lr(Qm,`messages`,om),Lr(Qm,`validators`,Zm);var $m="'${name}' is not a valid ${type}",eh={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:$m,method:$m,array:$m,object:$m,number:$m,date:$m,boolean:$m,integer:$m,float:$m,regexp:$m,email:$m,tel:$m,url:$m,hex:$m},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}"}},th=Qm;function nh(e,t){return e.replace(/\\?\$\{\w+\}/g,e=>e.startsWith(`\\`)?e.slice(1):t[e.slice(2,-1)])}var rh=`CODE_LOGIC_ERROR`;async function ih(e,t,n,r,i){let a={...n};if(delete a.ruleIndex,th.warning=()=>void 0,a.validator){let e=a.validator;a.validator=(...t)=>{try{return e(...t)}catch(e){return console.error(e),Promise.reject(rh)}}}let o=null;a&&a.type===`array`&&a.defaultField&&(o=a.defaultField,delete a.defaultField);let s=new th({[e]:[a]}),c=re(eh,r.validateMessages);s.messages(c);let l=[];try{await Promise.resolve(s.validate({[e]:t},{...r}))}catch(e){e.errors&&(l=e.errors.map(({message:e},t)=>{let n=e===rh?c.default:e;return v.isValidElement(n)?v.cloneElement(n,{key:`error_${t}`}):n}))}if(!l.length&&o&&Array.isArray(t)&&t.length>0)return(await Promise.all(t.map((t,n)=>ih(`${e}.${n}`,t,o,r,i)))).reduce((e,t)=>[...e,...t],[]);let u={...n,name:e,enum:(n.enum||[]).join(`, `),...i};return l.map(e=>typeof e==`string`?nh(e,u):e)}function ah(e,t,n,r,i,a){let o=e.join(`.`),s=n.map((e,t)=>{let n=e.validator,r={...e,ruleIndex:t};return n&&(r.validator=(e,t,r)=>{let i=!1,a=n(e,t,(...e)=>{Promise.resolve().then(()=>{ce(!i,"Your validator function has already return a promise. `callback` will be ignored."),i||r(...e)})});i=a&&typeof a.then==`function`&&typeof a.catch==`function`,ce(i,"`callback` is deprecated. Please return a promise instead."),i&&a.then(()=>{r()}).catch(e=>{r(e||` `)})}),r}).sort(({warningOnly:e,ruleIndex:t},{warningOnly:n,ruleIndex:r})=>!!e==!!n?t-r:e?1:-1),c;if(i===!0)c=new Promise(async(e,n)=>{for(let e=0;e<s.length;e+=1){let i=s[e],c=await ih(o,t,i,r,a);if(c.length){n([{errors:c,rule:i}]);return}}e([])});else{let e=s.map(e=>ih(o,t,e,r,a).then(t=>({errors:t,rule:e})));c=(i?sh(e):oh(e)).then(e=>Promise.reject(e))}return c.catch(e=>e),c}async function oh(e){return Promise.all(e).then(e=>[].concat(...e))}async function sh(e){let t=0;return new Promise(n=>{e.forEach(r=>{r.then(r=>{r.errors.length&&n([r]),t+=1,t===e.length&&n([])})})})}function ch(e){return rm(e)}function lh(e,t){let n={};return t.forEach(t=>{let r=H(e,t);n=W(n,t,r)}),n}function uh(e,t,n=!1){return e&&e.some(e=>dh(t,e,n))}function dh(e,t,n=!1){return!e||!t||!n&&e.length!==t.length?!1:t.every((t,n)=>e[n]===t)}function fh(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||typeof e!=`object`||typeof t!=`object`)return!1;let n=Object.keys(e),r=Object.keys(t);return[...new Set([...n,...r])].every(n=>{let r=e[n],i=t[n];return typeof r==`function`&&typeof i==`function`?!0:r===i})}function ph(e,...t){let n=t[0];return n&&n.target&&typeof n.target==`object`&&e in n.target?n.target[e]:n}function mh(e,t,n){let{length:r}=e;if(t<0||t>=r||n<0||n>=r)return e;let i=e[t],a=t-n;return a>0?[...e.slice(0,n),i,...e.slice(n,t),...e.slice(t+1,r)]:a<0?[...e.slice(0,t),...e.slice(t+1,n+1),i,...e.slice(n+1,r)]:e}var hh=e=>{let t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(null)},gh=class{namePathList=[];taskId=0;watcherList=new Set;form;constructor(e){this.form=e}register(e){return this.watcherList.add(e),()=>{this.watcherList.delete(e)}}notify(e){e.forEach(e=>{this.namePathList.every(t=>!dh(t,e))&&this.namePathList.push(e)}),this.doBatch()}doBatch(){this.taskId+=1;let e=this.taskId;hh(()=>{if(e===this.taskId&&this.watcherList.size){let e=this.form.getForm(),t=e.getFieldsValue(),n=e.getFieldsValue(!0);this.watcherList.forEach(e=>{e(t,n,this.namePathList)}),this.namePathList=[]}})}};async function _h(){return new Promise(e=>{hh(()=>{Ge(()=>{e()})})})}function vh(){return vh=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},vh.apply(this,arguments)}var yh=[],bh=[];function xh(e,t,n,r,i,a){return typeof e==`function`?e(t,n,`source`in a?{source:a.source}:{}):r!==i}var Sh=class extends v.Component{static contextType=tm;state={resetCount:0};cancelRegisterFunc=null;mounted=!1;touched=!1;dirty=!1;validatePromise;prevValidating;errors=yh;warnings=bh;constructor(e){if(super(e),e.fieldContext){let{getInternalHooks:t}=e.fieldContext,{initEntityValue:n}=t($p);n(this)}}componentDidMount(){let{shouldUpdate:e,fieldContext:t}=this.props;if(this.mounted=!0,t){let{getInternalHooks:e}=t,{registerField:n}=e($p);this.cancelRegisterFunc=n(this)}e===!0&&this.reRender()}componentWillUnmount(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}cancelRegister=()=>{let{preserve:e,isListField:t,name:n}=this.props;this.cancelRegisterFunc&&this.cancelRegisterFunc(t,e,ch(n)),this.cancelRegisterFunc=null};getNamePath=()=>{let{name:e,fieldContext:t}=this.props,{prefixName:n=[]}=t;return e===void 0?[]:[...n,...e]};getRules=()=>{let{rules:e=[],fieldContext:t}=this.props;return e.map(e=>typeof e==`function`?e(t):e)};reRender(){this.mounted&&this.forceUpdate()}refresh=()=>{this.mounted&&this.setState(({resetCount:e})=>({resetCount:e+1}))};metaCache=null;triggerMetaEvent=e=>{let{onMetaChange:t}=this.props;if(t){let n={...this.getMeta(),destroy:e};pt(this.metaCache,n)||t(n),this.metaCache=n}else this.metaCache=null};onStoreChange=(e,t,n)=>{let{shouldUpdate:r,dependencies:i=[],onReset:a}=this.props,{store:o}=n,s=this.getNamePath(),c=this.getValue(e),l=this.getValue(o),u=t&&uh(t,s);switch(n.type===`valueUpdate`&&n.source===`external`&&!pt(c,l)&&(this.touched=!0,this.dirty=!0,this.validatePromise=null,this.errors=yh,this.warnings=bh,this.triggerMetaEvent()),n.type){case`reset`:if(!t||u){this.touched=!1,this.dirty=!1,this.validatePromise=void 0,this.errors=yh,this.warnings=bh,this.triggerMetaEvent(),a?.(),this.refresh();return}break;case`remove`:if(r&&xh(r,e,o,c,l,n)){this.reRender();return}break;case`setField`:{let{data:i}=n;if(u){`touched`in i&&(this.touched=i.touched),`validating`in i&&!(`originRCField`in i)&&(this.validatePromise=i.validating?Promise.resolve([]):null),`errors`in i&&(this.errors=i.errors||yh),`warnings`in i&&(this.warnings=i.warnings||bh),this.dirty=!0,this.triggerMetaEvent(),this.reRender();return}else if(`value`in i&&uh(t,s,!0)){this.reRender();return}if(r&&!s.length&&xh(r,e,o,c,l,n)){this.reRender();return}break}case`dependenciesUpdate`:if(i.map(ch).some(e=>uh(n.relatedFields,e))){this.reRender();return}break;default:if(u||(!i.length||s.length||r)&&xh(r,e,o,c,l,n)){this.reRender();return}break}r===!0&&this.reRender()};validateRules=e=>{let t=this.getNamePath(),n=this.getValue(),{triggerName:r,validateOnly:i=!1,delayFrame:a}=e||{},o=Promise.resolve().then(async()=>{if(!this.mounted)return[];let{validateFirst:i=!1,messageVariables:s,validateDebounce:c}=this.props;a&&await _h();let l=this.getRules();if(r&&(l=l.filter(e=>e).filter(e=>{let{validateTrigger:t}=e;return t?rm(t).includes(r):!0})),c&&r&&(await new Promise(e=>{setTimeout(e,c)}),this.validatePromise!==o))return[];let u=ah(t,n,l,e,i,s);return u.catch(e=>e).then((e=yh)=>{if(this.validatePromise===o){this.validatePromise=null;let t=[],n=[];e.forEach?.(({rule:{warningOnly:e},errors:r=yh})=>{e?n.push(...r):t.push(...r)}),this.errors=t,this.warnings=n,this.triggerMetaEvent(),this.reRender()}}),u});return i?o:(this.validatePromise=o,this.dirty=!0,this.errors=yh,this.warnings=bh,this.triggerMetaEvent(),this.reRender(),o)};isFieldValidating=()=>!!this.validatePromise;isFieldTouched=()=>this.touched;isFieldDirty=()=>{if(this.dirty||this.props.initialValue!==void 0)return!0;let{fieldContext:e}=this.props,{getInitialValue:t}=e.getInternalHooks($p);return t(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=e=>{if(typeof e==`function`){let t=this.getMeta();return{...this.getOnlyChild(e(this.getControlled(),t,this.props.fieldContext)),isFunction:!0}}let t=de(e);return t.length!==1||!v.isValidElement(t[0])?{child:t,isFunction:!1}:{child:t[0],isFunction:!1}};getValue=e=>{let{getFieldsValue:t}=this.props.fieldContext,n=this.getNamePath();return H(e||t(!0),n)};getControlled=(e={})=>{let{name:t,trigger:n=`onChange`,validateTrigger:r,getValueFromEvent:i,normalize:a,valuePropName:o=`value`,getValueProps:s,fieldContext:c}=this.props,l=r===void 0?c.validateTrigger:r,u=this.getNamePath(),{getInternalHooks:d,getFieldsValue:f}=c,{dispatch:p}=d($p),m=this.getValue(),h=s||(e=>({[o]:e})),g=e[n],_=t===void 0?{}:h(m),v={...e,..._};return v[n]=(...e)=>{this.touched=!0,this.dirty=!0,this.triggerMetaEvent();let t;t=i?i(...e):ph(o,...e),a&&(t=a(t,m,f(!0))),t!==m&&p({type:`updateValue`,namePath:u,value:t}),g&&g(...e)},rm(l||[]).forEach(e=>{let t=v[e];v[e]=(...n)=>{t&&t(...n);let{rules:r}=this.props;r&&r.length&&p({type:`validateField`,namePath:u,triggerName:e})}}),v};render(){let{resetCount:e}=this.state,{children:t}=this.props,{child:n,isFunction:r}=this.getOnlyChild(t),i;return r?i=n:v.isValidElement(n)?i=v.cloneElement(n,this.getControlled(n.props)):(ce(!n,"`children` of Field is not validate ReactElement."),i=n),v.createElement(v.Fragment,{key:e},i)}};function Ch({name:e,...t}){let n=v.useContext(tm),r=v.useContext(nm),i=e===void 0?void 0:ch(e),a=t.isListField??!!r,o=`keep`;return a||(o=`_${(i||[]).join(`_`)}`),v.createElement(Sh,vh({key:o,name:i,isListField:a},t,{fieldContext:n}))}function wh({name:e,initialValue:t,children:n,rules:r,validateTrigger:i,isListField:a}){let o=v.useContext(tm),s=v.useContext(nm),c=v.useRef({keys:[],id:0}).current,l=v.useMemo(()=>[...ch(o.prefixName)||[],...ch(e)],[o.prefixName,e]),u=v.useMemo(()=>({...o,prefixName:l}),[o,l]),d=v.useMemo(()=>({getKey:e=>{let t=l.length,n=e[t];return[c.keys[n],e.slice(t+1)]}}),[c,l]);return typeof n==`function`?v.createElement(nm.Provider,{value:d},v.createElement(tm.Provider,{value:u},v.createElement(Ch,{name:[],shouldUpdate:(e,t,{source:n})=>n===`internal`?!1:e!==t,rules:r,validateTrigger:i,initialValue:t,isList:!0,isListField:a??!!s},({value:e=[],onChange:t},r)=>{let{getFieldValue:i}=o,a=()=>i(l||[])||[],s={add:(e,n)=>{let r=a();n>=0&&n<=r.length?(c.keys=[...c.keys.slice(0,n),c.id,...c.keys.slice(n)],t([...r.slice(0,n),e,...r.slice(n)])):(c.keys=[...c.keys,c.id],t([...r,e])),c.id+=1},remove:e=>{let n=a(),r=new Set(Array.isArray(e)?e:[e]);r.size<=0||(c.keys=c.keys.filter((e,t)=>!r.has(t)),t(n.filter((e,t)=>!r.has(t))))},move(e,n){if(e===n)return;let r=a();e<0||e>=r.length||n<0||n>=r.length||(c.keys=mh(c.keys,e,n),t(mh(r,e,n)))}},u=e||[];return Array.isArray(u)||(u=[]),n(u.map((e,t)=>{let n=c.keys[t];return n===void 0&&(c.keys[t]=c.id,n=c.keys[t],c.id+=1),{name:t,key:n,isListField:!0}}),s,r)}))):(ce(!1,`Form.List only accepts function as children.`),null)}function Th(e){let t=!1,n=e.length,r=[];return e.length?new Promise((i,a)=>{e.forEach((e,o)=>{e.catch(e=>(t=!0,e)).then(e=>{--n,r[o]=e,!(n>0)&&(t&&a(r),i(r))})})}):Promise.resolve([])}var Eh=`__@field_split__`;function Dh(e){return e.map(e=>`${typeof e}:${e}`).join(Eh)}var Oh=class{kvs=new Map;set(e,t){this.kvs.set(Dh(e),t)}get(e){return this.kvs.get(Dh(e))}getAsPrefix(e){let t=Dh(e),n=t+Eh,r=[],i=this.kvs.get(t);return i!==void 0&&r.push(i),this.kvs.forEach((e,t)=>{t.startsWith(n)&&r.push(e)}),r}update(e,t){let n=t(this.get(e));n?this.set(e,n):this.delete(e)}delete(e){this.kvs.delete(Dh(e))}map(e){return[...this.kvs.entries()].map(([t,n])=>e({key:t.split(Eh).map(e=>{let[,t,n]=e.match(/^([^:]*):(.*)$/);return t===`number`?Number(n):n}),value:n}))}toJSON(){let e={};return this.map(({key:t,value:n})=>(e[t.join(`.`)]=n,null)),e}},kh=class{formHooked=!1;forceRootUpdate;subscribable=!0;store={};fieldEntities=[];initialValues={};callbacks={};validateMessages=null;preserve=null;lastValidatePromise=null;watcherCenter=new gh(this);constructor(e){this.forceRootUpdate=e}getForm=()=>({getFieldValue:this.getFieldValue,getFieldsValue:this.getFieldsValue,getFieldError:this.getFieldError,getFieldWarning:this.getFieldWarning,getFieldsError:this.getFieldsError,isFieldsTouched:this.isFieldsTouched,isFieldTouched:this.isFieldTouched,isFieldValidating:this.isFieldValidating,isFieldsValidating:this.isFieldsValidating,resetFields:this.resetFields,setFields:this.setFields,setFieldValue:this.setFieldValue,setFieldsValue:this.setFieldsValue,validateFields:this.validateFields,submit:this.submit,_init:!0,getInternalHooks:this.getInternalHooks});getInternalHooks=e=>e===`RC_FORM_INTERNAL_HOOKS`?(this.formHooked=!0,{dispatch:this.dispatch,initEntityValue:this.initEntityValue,registerField:this.registerField,useSubscribe:this.useSubscribe,setInitialValues:this.setInitialValues,destroyForm:this.destroyForm,setCallbacks:this.setCallbacks,setValidateMessages:this.setValidateMessages,getFields:this.getFields,setPreserve:this.setPreserve,getInitialValue:this.getInitialValue,registerWatch:this.registerWatch}):(ce(!1,"`getInternalHooks` is internal usage. Should not call directly."),null);useSubscribe=e=>{this.subscribable=e};prevWithoutPreserves=null;setInitialValues=(e,t)=>{if(this.initialValues=e||{},t){let t=re(e,this.store);this.prevWithoutPreserves?.map(({key:n})=>{t=W(t,n,H(e,n))}),this.prevWithoutPreserves=null,this.updateStore(t)}};destroyForm=e=>{if(e)this.updateStore({});else{let e=new Oh;this.getFieldEntities(!0).forEach(t=>{this.isMergedPreserve(t.isPreserve())||e.set(t.getNamePath(),!0)}),this.prevWithoutPreserves=e}};getInitialValue=e=>{let t=H(this.initialValues,e);return e.length?re(t):t};setCallbacks=e=>{this.callbacks=e};setValidateMessages=e=>{this.validateMessages=e};setPreserve=e=>{this.preserve=e};registerWatch=e=>this.watcherCenter.register(e);notifyWatch=(e=[])=>{this.watcherCenter.notify(e)};timeoutId=null;warningUnhooked=()=>{};updateStore=e=>{this.store=e};getFieldEntities=(e=!1)=>e?this.fieldEntities.filter(e=>e.getNamePath().length):this.fieldEntities;getFieldsMap=(e=!1)=>{let t=new Oh;return this.getFieldEntities(e).forEach(e=>{let n=e.getNamePath();t.set(n,e)}),t};getFieldEntitiesForNamePathList=(e,t=!1)=>{if(!e)return this.getFieldEntities(!0);let n=this.getFieldsMap(!0);return t?e.flatMap(e=>{let t=ch(e),r=n.getAsPrefix(t);return r.length?r:[{INVALIDATE_NAME_PATH:t}]}):e.map(e=>{let t=ch(e);return n.get(t)||{INVALIDATE_NAME_PATH:ch(e)}})};getFieldsValue=(e,t)=>{this.warningUnhooked();let n,r;if(e===!0||Array.isArray(e)?(n=e,r=t):e&&typeof e==`object`&&(r=e.filter),n===!0&&!r)return this.store;let i=this.getFieldEntitiesForNamePathList(Array.isArray(n)?n:null,!0),a=[],o=[];i.forEach(e=>{let t=e.INVALIDATE_NAME_PATH||e.getNamePath();if(e.isList?.()){o.push(t);return}if(!r)a.push(t);else{let n=`getMeta`in e?e.getMeta():null;r(n)&&a.push(t)}});let s=lh(this.store,a.map(ch));return o.forEach(e=>{H(s,e)||(s=W(s,e,[]))}),s};getFieldValue=e=>{this.warningUnhooked();let t=ch(e);return H(this.store,t)};getFieldsError=e=>(this.warningUnhooked(),this.getFieldEntitiesForNamePathList(e).map((t,n)=>t&&!t.INVALIDATE_NAME_PATH?{name:t.getNamePath(),errors:t.getErrors(),warnings:t.getWarnings()}:{name:ch(e[n]),errors:[],warnings:[]}));getFieldError=e=>{this.warningUnhooked();let t=ch(e);return this.getFieldsError([t])[0].errors};getFieldWarning=e=>{this.warningUnhooked();let t=ch(e);return this.getFieldsError([t])[0].warnings};isFieldsTouched=(...e)=>{this.warningUnhooked();let[t,n]=e,r,i=!1;e.length===0?r=null:e.length===1?Array.isArray(t)?(r=t.map(ch),i=!1):(r=null,i=t):(r=t.map(ch),i=n);let a=this.getFieldEntities(!0),o=e=>e.isFieldTouched();if(!r)return i?a.every(e=>o(e)||e.isList()):a.some(o);let s=new Oh;r.forEach(e=>{s.set(e,[])}),a.forEach(e=>{let t=e.getNamePath();r.forEach(n=>{n.every((e,n)=>t[n]===e)&&s.update(n,t=>[...t,e])})});let c=e=>e.some(o),l=s.map(({value:e})=>e);return i?l.every(c):l.some(c)};isFieldTouched=e=>(this.warningUnhooked(),this.isFieldsTouched([e]));isFieldsValidating=e=>{this.warningUnhooked();let t=this.getFieldEntities();if(!e)return t.some(e=>e.isFieldValidating());let n=e.map(ch);return t.some(e=>uh(n,e.getNamePath())&&e.isFieldValidating())};isFieldValidating=e=>(this.warningUnhooked(),this.isFieldsValidating([e]));resetWithFieldInitialValue=(e={})=>{let t=new Oh,n=this.getFieldEntities(!0);n.forEach(e=>{let{initialValue:n}=e.props,r=e.getNamePath();if(n!==void 0){let i=t.get(r)||new Set;i.add({entity:e,value:n}),t.set(r,i)}});let r=n=>{n.forEach(n=>{let{initialValue:r}=n.props;if(r!==void 0){let r=n.getNamePath();if(this.getInitialValue(r)!==void 0)ce(!1,`Form already set 'initialValues' with path '${r.join(`.`)}'. Field can not overwrite it.`);else{let i=t.get(r);if(i&&i.size>1)ce(!1,`Multiple Field with path '${r.join(`.`)}' set 'initialValue'. Can not decide which one to pick.`);else if(i){let t=this.getFieldValue(r);!n.isListField()&&(!e.skipExist||t===void 0)&&this.updateStore(W(this.store,r,[...i][0].value))}}}})},i;e.entities?i=e.entities:e.namePathList?(i=[],e.namePathList.forEach(e=>{let n=t.get(e);n&&i.push(...[...n].map(e=>e.entity))})):i=n,r(i)};resetFields=e=>{this.warningUnhooked();let t=this.store;if(!e){this.updateStore(re(this.initialValues)),this.resetWithFieldInitialValue(),this.notifyObservers(t,null,{type:`reset`}),this.notifyWatch();return}let n=e.map(ch);n.forEach(e=>{let t=this.getInitialValue(e);this.updateStore(W(this.store,e,t))}),this.resetWithFieldInitialValue({namePathList:n}),this.notifyObservers(t,n,{type:`reset`}),this.notifyWatch(n)};setFields=e=>{this.warningUnhooked();let t=this.store,n=[];e.forEach(e=>{let{name:r,...i}=e,a=ch(r);n.push(a),`value`in i&&this.updateStore(W(this.store,a,i.value)),this.notifyObservers(t,[a],{type:`setField`,data:e})}),this.notifyWatch(n)};getFields=()=>this.getFieldEntities(!0).map(e=>{let t=e.getNamePath(),n={...e.getMeta(),name:t,value:this.getFieldValue(t)};return Object.defineProperty(n,`originRCField`,{value:!0}),n});initEntityValue=e=>{let{initialValue:t}=e.props;if(t!==void 0){let n=e.getNamePath();H(this.store,n)===void 0&&this.updateStore(W(this.store,n,t))}};isMergedPreserve=e=>(e===void 0?this.preserve:e)??!0;registerField=e=>{this.fieldEntities.push(e);let t=e.getNamePath();if(this.notifyWatch([t]),e.props.initialValue!==void 0){let t=this.store;this.resetWithFieldInitialValue({entities:[e],skipExist:!0}),this.notifyObservers(t,[e.getNamePath()],{type:`valueUpdate`,source:`internal`})}return(n,r,i=[])=>{if(this.fieldEntities=this.fieldEntities.filter(t=>t!==e),!this.isMergedPreserve(r)&&(!n||i.length>1)){let e=n?void 0:this.getInitialValue(t);if(t.length&&this.getFieldValue(t)!==e&&this.fieldEntities.every(e=>!dh(e.getNamePath(),t))){let n=this.store;this.updateStore(W(n,t,e,!0)),this.notifyObservers(n,[t],{type:`remove`}),this.triggerDependenciesUpdate(n,t)}}this.notifyWatch([t])}};dispatch=e=>{switch(e.type){case`updateValue`:{let{namePath:t,value:n}=e;this.updateValue(t,n);break}case`validateField`:{let{namePath:t,triggerName:n}=e;this.validateFields([t],{triggerName:n});break}default:}};notifyObservers=(e,t,n)=>{if(this.subscribable){let r={...n,store:this.getFieldsValue(!0)};this.getFieldEntities().forEach(({onStoreChange:n})=>{n(e,t,r)})}else this.forceRootUpdate()};triggerDependenciesUpdate=(e,t)=>{let n=this.getDependencyChildrenFields(t);return n.length&&this.validateFields(n,{delayFrame:!0}),this.notifyObservers(e,n,{type:`dependenciesUpdate`,relatedFields:[t,...n]}),n};updateValue=(e,t)=>{let n=ch(e),r=this.store;this.updateStore(W(this.store,n,t)),this.notifyObservers(r,[n],{type:`valueUpdate`,source:`internal`}),this.notifyWatch([n]);let i=this.triggerDependenciesUpdate(r,n),{onValuesChange:a}=this.callbacks;if(a){let e=lh(this.store,[n]);a(e,W(this.getFieldsValue(),n,H(e,n)))}this.triggerOnFieldsChange([n,...i])};setFieldsValue=e=>{this.warningUnhooked();let t=this.store;if(e){let t=re(this.store,e);this.updateStore(t)}this.notifyObservers(t,null,{type:`valueUpdate`,source:`external`}),this.notifyWatch()};setFieldValue=(e,t)=>{this.setFields([{name:e,value:t,errors:[],warnings:[],touched:!0}])};getDependencyChildrenFields=e=>{let t=new Set,n=[],r=new Oh;this.getFieldEntities().forEach(e=>{let{dependencies:t}=e.props;(t||[]).forEach(t=>{let n=ch(t);r.update(n,(t=new Set)=>(t.add(e),t))})});let i=e=>{(r.get(e)||new Set).forEach(e=>{if(!t.has(e)){t.add(e);let r=e.getNamePath();e.isFieldDirty()&&r.length&&(n.push(r),i(r))}})};return i(e),n};triggerOnFieldsChange=(e,t)=>{let{onFieldsChange:n}=this.callbacks;if(n){let r=this.getFields();if(t){let e=new Oh;t.forEach(({name:t,errors:n})=>{e.set(t,n)}),r.forEach(t=>{t.errors=e.get(t.name)||t.errors})}let i=r.filter(({name:t})=>uh(e,t));i.length&&n(i,r)}};validateFields=(e,t)=>{this.warningUnhooked();let n,r;Array.isArray(e)||typeof e==`string`||typeof t==`string`?(n=e,r=t):r=e;let i=!!n,a=i?n.map(ch):[],o=[...a],s=[],c=String(Date.now()),l=new Set,{recursive:u,dirty:d}=r||{};this.getFieldEntities(!0).forEach(e=>{let t=e.getNamePath();if(i||((!e.isList()||!a.some(e=>dh(e,t,!0)))&&o.push(t),a.push(t)),!(!e.props.rules||!e.props.rules.length)&&!(d&&!e.isFieldDirty())&&(l.add(t.join(c)),!i||uh(a,t,u))){let n=e.validateRules({validateMessages:{...eh,...this.validateMessages},...r});s.push(n.then(()=>({name:t,errors:[],warnings:[]})).catch(e=>{let n=[],r=[];return e.forEach?.(({rule:{warningOnly:e},errors:t})=>{e?r.push(...t):n.push(...t)}),n.length?Promise.reject({name:t,errors:n,warnings:r}):{name:t,errors:n,warnings:r}}))}});let f=Th(s);this.lastValidatePromise=f,f.catch(e=>e).then(e=>{let t=e.map(({name:e})=>e);this.notifyObservers(this.store,t,{type:`validateFinish`}),this.triggerOnFieldsChange(t,e)});let p=f.then(()=>this.lastValidatePromise===f?Promise.resolve(this.getFieldsValue(o)):Promise.reject([])).catch(e=>{let t=e.filter(e=>e&&e.errors.length),n=t[0]?.errors?.[0];return Promise.reject({message:n,values:this.getFieldsValue(a),errorFields:t,outOfDate:this.lastValidatePromise!==f})});p.catch(e=>e);let m=a.filter(e=>l.has(e.join(c)));return this.triggerOnFieldsChange(m),p};submit=()=>{this.warningUnhooked(),this.validateFields().then(e=>{let{onFinish:t}=this.callbacks;if(t)try{t(e)}catch(e){console.error(e)}}).catch(e=>{let{onFinishFailed:t}=this.callbacks;t&&t(e)})}};function Ah(e){let t=v.useRef(null),[,n]=v.useState({});return t.current||(e?t.current=e:t.current=new kh(()=>{n({})}).getForm()),[t.current]}var jh=v.createContext({triggerFormChange:()=>{},triggerFormFinish:()=>{},registerForm:()=>{},unregisterForm:()=>{}}),Mh=({validateMessages:e,onFormChange:t,onFormFinish:n,children:r})=>{let i=v.useContext(jh),a=v.useRef({});return v.createElement(jh.Provider,{value:{...i,validateMessages:{...i.validateMessages,...e},triggerFormChange:(e,n)=>{t&&t(e,{changedFields:n,forms:a.current}),i.triggerFormChange(e,n)},triggerFormFinish:(e,t)=>{n&&n(e,{values:t,forms:a.current}),i.triggerFormFinish(e,t)},registerForm:(e,t)=>{e&&(a.current={...a.current,[e]:t}),i.registerForm(e,t)},unregisterForm:e=>{let t={...a.current};delete t[e],a.current=t,i.unregisterForm(e)}}},r)};function Nh(){return Nh=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},Nh.apply(this,arguments)}var Ph=({name:e,initialValues:t,fields:n,form:r,preserve:i,children:a,component:o=`form`,validateMessages:s,validateTrigger:c=`onChange`,onValuesChange:l,onFieldsChange:u,onFinish:d,onFinishFailed:f,clearOnDestroy:p,...m},h)=>{let g=v.useRef(null),_=v.useContext(jh),[y]=Ah(r),{useSubscribe:b,setInitialValues:x,setCallbacks:S,setValidateMessages:C,setPreserve:w,destroyForm:T}=y.getInternalHooks($p);v.useImperativeHandle(h,()=>({...y,nativeElement:g.current})),v.useEffect(()=>(_.registerForm(e,y),()=>{_.unregisterForm(e)}),[_,y,e]),C({..._.validateMessages,...s}),S({onValuesChange:l,onFieldsChange:(t,...n)=>{_.triggerFormChange(e,t),u&&u(t,...n)},onFinish:t=>{_.triggerFormFinish(e,t),d&&d(t)},onFinishFailed:f}),w(i);let E=v.useRef(null);x(t,!E.current),E.current||=!0,v.useEffect(()=>()=>T(p),[]);let D,O=typeof a==`function`;D=O?a(y.getFieldsValue(!0),y):a,b(!O);let k=v.useRef(null);v.useEffect(()=>{fh(k.current||[],n||[])||y.setFields(n||[]),k.current=n},[n,y]);let A=v.useMemo(()=>({...y,validateTrigger:c}),[y,c]),j=v.createElement(nm.Provider,{value:null},v.createElement(tm.Provider,{value:A},D));return o===!1?j:v.createElement(o,Nh({},m,{ref:g,onSubmit:e=>{e.preventDefault(),e.stopPropagation(),y.submit()},onReset:e=>{e.preventDefault(),y.resetFields(),m.onReset?.(e)}}),j)};function Fh(e){try{return JSON.stringify(e)}catch{return Math.random()}}function Ih(...e){let[t,n={}]=e,r=im(n)?{form:n}:n,i=r.form,[a,o]=(0,v.useState)(()=>typeof t==`function`?t({}):void 0),s=(0,v.useMemo)(()=>Fh(a),[a]),c=(0,v.useRef)(s);c.current=s;let l=(0,v.useContext)(tm),u=i||l,d=u&&u._init,{getFieldsValue:f,getInternalHooks:p}=u,{registerWatch:m}=p($p),h=y((e,n)=>{let i=r.preserve?n??f(!0):e??f(),s=typeof t==`function`?t(i):H(i,ch(t));Fh(a)!==Fh(s)&&o(s)});return(0,v.useEffect)(()=>{d&&h()},[d,typeof t==`function`?t:JSON.stringify(t)]),(0,v.useEffect)(()=>{if(d)return m((e,t)=>{h(e,t)})},[d]),a}var Lh=v.forwardRef(Ph);Lh.FormProvider=Mh,Lh.Field=Ch,Lh.List=wh,Lh.useForm=Ah,Lh.useWatch=Ih;var Rh=v.createContext({}),zh=({children:e,status:t,override:n})=>{let r=v.useContext(Rh),i=v.useMemo(()=>{let e={...r};return n&&delete e.isFormItemInput,t&&(delete e.status,delete e.hasFeedback,delete e.feedbackIcon),e},[t,n,r]);return v.createElement(Rh.Provider,{value:i},e)},Bh=v.createContext(void 0),Vh=e=>{let{space:t,form:n,children:r}=e;if(!ic(r))return null;let i=r;return n&&(i=v.createElement(zh,{override:!0,status:!0},i)),t&&(i=v.createElement(Pd,null,i)),i},Hh=e=>{if(b()&&window.document.documentElement){let t=Array.isArray(e)?e:[e],{documentElement:n}=window.document;return t.some(e=>e in n.style)}return!1},Uh=(e,t)=>{if(!Hh(e))return!1;let n=document.createElement(`div`),r=n.style[e];return n.style[e]=t,n.style[e]!==r};function Wh(e,t){return!Array.isArray(e)&&t!==void 0?Uh(e,t):Hh(e)}var Gh=()=>b()&&window.document.documentElement;function Kh(e,t,n){return(0,v.useMemo)(()=>({trap:t??!0,focusTriggerAfterClose:n??!0,...e}),[e,t,n])}var qh=e=>{let{prefixCls:t,className:n,style:r,size:i,shape:a}=e,o=Y({[`${t}-lg`]:i===`large`,[`${t}-sm`]:i===`small`}),s=Y({[`${t}-circle`]:a===`circle`,[`${t}-square`]:a===`square`,[`${t}-round`]:a===`round`}),c=v.useMemo(()=>ac(i)?{width:i,height:i,lineHeight:`${i}px`}:{},[i]);return v.createElement(`span`,{className:Y(t,o,s,n),style:{...c,...r}})},Jh=new Or(`ant-skeleton-loading`,{"0%":{backgroundPosition:`100% 50%`},"100%":{backgroundPosition:`0 50%`}}),Yh=e=>({height:e,lineHeight:X(e)}),Xh=e=>({width:e,...Yh(e)}),Zh=e=>({background:e.skeletonLoadingBackground,backgroundSize:`400% 100%`,animationName:Jh,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:`ease`,animationIterationCount:`infinite`}),Qh=(e,t)=>({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal(),...Yh(e)}),$h=e=>{let{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:i,controlHeightSM:a}=e;return{[t]:{display:`inline-block`,verticalAlign:`top`,background:n,...Xh(r)},[`${t}${t}-circle`]:{borderRadius:`50%`},[`${t}${t}-lg`]:{...Xh(i)},[`${t}${t}-sm`]:{...Xh(a)}}},eg=e=>{let{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:i,controlHeightSM:a,gradientFromColor:o,calc:s}=e;return{[r]:{display:`inline-block`,verticalAlign:`top`,background:o,borderRadius:n,...Qh(t,s)},[`${r}-lg`]:{...Qh(i,s)},[`${r}-sm`]:{...Qh(a,s)}}},tg=e=>{let{gradientFromColor:t,borderRadiusSM:n,imageSizeBase:r,calc:i}=e;return{display:`inline-flex`,alignItems:`center`,justifyContent:`center`,verticalAlign:`middle`,background:t,borderRadius:n,...Xh(i(r).mul(2).equal())}},ng=e=>({[e.skeletonNodeCls]:{...tg(e)}}),rg=e=>{let{skeletonImageCls:t,imageSizeBase:n,calc:r}=e;return{[t]:{...tg(e),[`${t}-path`]:{fill:`#bfbfbf`},[`${t}-svg`]:{...Xh(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%`}}},ig=(e,t,n)=>{let{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:`50%`},[`${n}${r}-round`]:{borderRadius:t}}},ag=(e,t)=>({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal(),...Yh(e)}),og=e=>{let{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:i,controlHeightSM:a,gradientFromColor:o,calc:s}=e;return{[n]:{display:`inline-block`,verticalAlign:`top`,background:o,borderRadius:t,width:s(r).mul(2).equal(),minWidth:s(r).mul(2).equal(),...ag(r,s)},...ig(e,r,n),[`${n}-lg`]:{...ag(i,s)},...ig(e,i,`${n}-lg`),[`${n}-sm`]:{...ag(a,s)},...ig(e,a,`${n}-sm`)}},sg=e=>{let{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:i,skeletonButtonCls:a,skeletonInputCls:o,skeletonNodeCls:s,skeletonImageCls:c,controlHeight:l,controlHeightLG:u,controlHeightSM:d,gradientFromColor:f,padding:p,marginSM:m,borderRadius:h,titleHeight:g,blockRadius:_,paragraphLiHeight:v,controlHeightXS:y,paragraphMarginTop:b}=e;return{[t]:{display:`table`,width:`100%`,[`${t}-header`]:{display:`table-cell`,paddingInlineEnd:p,verticalAlign:`top`,[n]:{display:`inline-block`,verticalAlign:`top`,background:f,...Xh(l)},[`${n}-circle`]:{borderRadius:`50%`},[`${n}-lg`]:{...Xh(u)},[`${n}-sm`]:{...Xh(d)}},[`${t}-section`]:{display:`table-cell`,width:`100%`,verticalAlign:`top`,[r]:{width:`100%`,height:g,background:f,borderRadius:_,[`+ ${i}`]:{marginBlockStart:d}},[i]:{padding:0,"> li":{width:`100%`,height:v,listStyle:`none`,background:f,borderRadius:_,"+ li":{marginBlockStart:y}}},[`${i}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:`61%`}},[`&-round ${t}-section`]:{[`${r}, ${i} > li`]:{borderRadius:h}}},[`${t}-with-avatar ${t}-section`]:{[r]:{marginBlockStart:m,[`+ ${i}`]:{marginBlockStart:b}}},[`${t}${t}-element`]:{display:`inline-block`,width:`auto`,...og(e),...$h(e),...eg(e),...ng(e),...rg(e)},[`${t}${t}-block`]:{width:`100%`,[a]:{width:`100%`},[o]:{width:`100%`}},[`${t}${t}-active`]:{[`
151
+ `]:{transform:`scale(0)`,opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:`none`}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Lf=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),Rf=e=>{let{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:i,colorErrorHover:a}=e;return{[`${t}-group`]:[{position:`relative`,display:`inline-flex`,[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:`relative`,zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:n}},Lf(`${t}-primary`,i),Lf(`${t}-danger`,a)]}},zf=e=>Math.round(Number(e||0)),Bf=e=>{if(e instanceof ki)return e;if(e&&typeof e==`object`&&`h`in e&&`b`in e){let{b:t,...n}=e;return{...n,v:t}}return typeof e==`string`&&/hsb/.test(e)?e.replace(/hsb/,`hsv`):e},Vf=class extends ki{constructor(e){super(Bf(e))}toHsbString(){let e=this.toHsb(),t=zf(e.s*100),n=zf(e.b*100),r=zf(e.h),i=e.a,a=`hsb(${r}, ${t}%, ${n}%)`,o=`hsba(${r}, ${t}%, ${n}%, ${i.toFixed(i===0?0:2)})`;return i===1?a:o}toHsb(){let{v:e,...t}=this.toHsv();return{...t,b:e,a:this.a}}};(e=>e instanceof Vf?e:new Vf(e))(`#1677ff`);var Hf=(e,t)=>e?.replace(/[^0-9a-f]/gi,``).slice(0,t?8:6)||``,Uf=(e,t)=>e?Hf(e,t):``,Wf=function(){function e(t){if(Br(this,e),this.cleared=!1,t instanceof e){this.metaColor=t.metaColor.clone(),this.colors=t.colors?.map(t=>({color:new e(t.color),percent:t.percent})),this.cleared=t.cleared;return}let n=Array.isArray(t);n&&t.length?(this.colors=t.map(({color:t,percent:n})=>({color:new e(t),percent:n})),this.metaColor=new Vf(this.colors[0].color.metaColor)):this.metaColor=new Vf(n?``:t),(!t||n&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return Hr(e,[{key:`toHsb`,value:function(){return this.metaColor.toHsb()}},{key:`toHsbString`,value:function(){return this.metaColor.toHsbString()}},{key:`toHex`,value:function(){return Uf(this.toHexString(),this.metaColor.a<1)}},{key:`toHexString`,value:function(){return this.metaColor.toHexString()}},{key:`toRgb`,value:function(){return this.metaColor.toRgb()}},{key:`toRgbString`,value:function(){return this.metaColor.toRgbString()}},{key:`isGradient`,value:function(){return!!this.colors&&!this.cleared}},{key:`getColors`,value:function(){return this.colors||[{color:this,percent:0}]}},{key:`toCssString`,value:function(){let{colors:e}=this;return e?`linear-gradient(90deg, ${e.map(e=>`${e.color.toRgbString()} ${e.percent}%`).join(`, `)})`:this.metaColor.toRgbString()}},{key:`equals`,value:function(e){return!e||this.isGradient()!==e.isGradient()?!1:this.isGradient()?this.colors.length===e.colors.length&&this.colors.every((t,n)=>{let r=e.colors[n];return t.percent===r.percent&&t.color.equals(r.color)}):this.toHexString()===e.toHexString()}}])}(),Gf={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 Kf(){return Kf=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},Kf.apply(this,arguments)}var qf=v.forwardRef((e,t)=>v.createElement(So,Kf({},e,{ref:t,icon:Gf})));function Jf(){return Jf=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},Jf.apply(null,arguments)}var Yf=e=>e instanceof Wf?e:new Wf(e),Xf=(e,t)=>{let{r:n,g:r,b:i,a}=e.toRgb(),o=new Vf(e.toRgbString()).onBackground(t).toHsv();return a<=.5?o.v>.5:n*.299+r*.587+i*.114>192},Zf=e=>{let{paddingInline:t,onlyIconSize:n,borderColorDisabled:r}=e;return si(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n,colorBorderDisabled:r})},Qf=e=>{let t=e.contentFontSize??e.fontSize,n=e.contentFontSizeSM??e.fontSize,r=e.contentFontSizeLG??e.fontSizeLG,i=e.contentLineHeight??yi(t),a=e.contentLineHeightSM??yi(n),o=e.contentLineHeightLG??yi(r),s=Xf(new Wf(e.colorBgSolid),`#fff`)?`#000`:`#fff`,c=vi.reduce((t,n)=>({...t,[`${n}ShadowColor`]:`0 ${X(e.controlOutlineWidth)} 0 ${ja(e[`${n}1`],e.colorBgContainer)}`}),{}),l=e.colorBgContainerDisabled,u=e.colorBgContainerDisabled;return{...c,fontWeight:400,iconGap:e.marginXS,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorderDisabled,defaultGhostColor:e.colorBgContainer,ghostBg:`transparent`,defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:`inherit`,onlyIconSizeSM:`inherit`,onlyIconSizeLG:`inherit`,groupBorderColor:e.colorPrimaryHover,linkHoverBg:`transparent`,textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,solidTextColor:s,contentFontSize:t,contentFontSizeSM:n,contentFontSizeLG:r,contentLineHeight:i,contentLineHeightSM:a,contentLineHeightLG:o,paddingBlock:Math.max((e.controlHeight-t*i)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-n*a)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-r*o)/2-e.lineWidth,0),defaultBgDisabled:l,dashedBgDisabled:u}},$f=e=>{let{componentCls:t,antCls:n,lineWidth:r}=e,[i,a]=Za(n,`btn`);return{[t]:[{[i(`border-width`)]:r,[i(`border-color`)]:`#000`,[i(`border-color-hover`)]:a(`border-color`),[i(`border-color-active`)]:a(`border-color`),[i(`border-color-disabled`)]:a(`border-color`),[i(`border-style`)]:`solid`,[i(`text-color`)]:`#000`,[i(`text-color-hover`)]:a(`text-color`),[i(`text-color-active`)]:a(`text-color`),[i(`text-color-disabled`)]:a(`text-color`),[i(`bg-color`)]:`#ddd`,[i(`bg-color-hover`)]:a(`bg-color`),[i(`bg-color-active`)]:a(`bg-color`),[i(`bg-color-disabled`)]:e.colorBgContainerDisabled,[i(`bg-color-container`)]:e.colorBgContainer,[i(`shadow`)]:`none`},{border:[a(`border-width`),a(`border-style`),a(`border-color`)].join(` `),color:a(`text-color`),backgroundColor:a(`bg-color`),[`&:not(:disabled):not(${t}-disabled)`]:{"&:hover":{border:[a(`border-width`),a(`border-style`),a(`border-color-hover`)].join(` `),color:a(`text-color-hover`),backgroundColor:a(`bg-color-hover`)},"&:active":{border:[a(`border-width`),a(`border-style`),a(`border-color-active`)].join(` `),color:a(`text-color-active`),backgroundColor:a(`bg-color-active`)}}},{[`&${t}-variant-solid`]:{[i(`solid-bg-color`)]:a(`color-base`),[i(`solid-bg-color-hover`)]:a(`color-hover`),[i(`solid-bg-color-active`)]:a(`color-active`),[i(`border-color`)]:`transparent`,[i(`text-color`)]:e.colorTextLightSolid,[i(`bg-color`)]:a(`solid-bg-color`),[i(`bg-color-hover`)]:a(`solid-bg-color-hover`),[i(`bg-color-active`)]:a(`solid-bg-color-active`),boxShadow:a(`shadow`)},[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[i(`border-color`)]:a(`color-base`),[i(`border-color-hover`)]:a(`color-hover`),[i(`border-color-active`)]:a(`color-active`),[i(`bg-color`)]:a(`bg-color-container`),[i(`text-color`)]:a(`color-base`),[i(`text-color-hover`)]:a(`color-hover`),[i(`text-color-active`)]:a(`color-active`),boxShadow:a(`shadow`)},[`&${t}-variant-dashed`]:{[i(`border-style`)]:`dashed`,[i(`bg-color-disabled`)]:e.dashedBgDisabled},[`&${t}-variant-filled`]:{[i(`border-color`)]:`transparent`,[i(`text-color`)]:a(`color-base`),[i(`bg-color`)]:a(`color-light`),[i(`bg-color-hover`)]:a(`color-light-hover`),[i(`bg-color-active`)]:a(`color-light-active`)},[`&${t}-variant-text, &${t}-variant-link`]:{[i(`border-color`)]:`transparent`,[i(`text-color`)]:a(`color-base`),[i(`text-color-hover`)]:a(`color-hover`),[i(`text-color-active`)]:a(`color-active`),[i(`bg-color`)]:`transparent`,[i(`bg-color-hover`)]:`transparent`,[i(`bg-color-active`)]:`transparent`,[`&:disabled, &${e.componentCls}-disabled`]:{background:`transparent`,borderColor:`transparent`}},[`&${t}-variant-text`]:{[i(`bg-color-hover`)]:a(`color-light`),[i(`bg-color-active`)]:a(`color-light-active`)}},{[`&${t}-variant-link`]:{[i(`color-base`)]:e.colorLink,[i(`color-hover`)]:e.colorLinkHover,[i(`color-active`)]:e.colorLinkActive,[i(`bg-color-hover`)]:e.linkHoverBg},[`&${t}-color-primary`]:{[i(`color-base`)]:e.colorPrimary,[i(`color-hover`)]:e.colorPrimaryHover,[i(`color-active`)]:e.colorPrimaryActive,[i(`color-light`)]:e.colorPrimaryBg,[i(`color-light-hover`)]:e.colorPrimaryBgHover,[i(`color-light-active`)]:e.colorPrimaryBorder,[i(`shadow`)]:e.primaryShadow,[`&${t}-variant-solid`]:{[i(`text-color`)]:e.primaryColor,[i(`text-color-hover`)]:a(`text-color`),[i(`text-color-active`)]:a(`text-color`)}},[`&${t}-color-dangerous`]:{[i(`color-base`)]:e.colorError,[i(`color-hover`)]:e.colorErrorHover,[i(`color-active`)]:e.colorErrorActive,[i(`color-light`)]:e.colorErrorBg,[i(`color-light-hover`)]:e.colorErrorBgFilledHover,[i(`color-light-active`)]:e.colorErrorBgActive,[i(`shadow`)]:e.dangerShadow,[`&${t}-variant-solid`]:{[i(`text-color`)]:e.dangerColor,[i(`text-color-hover`)]:a(`text-color`),[i(`text-color-active`)]:a(`text-color`)}},[`&${t}-color-default`]:{[i(`solid-bg-color`)]:e.colorBgSolid,[i(`solid-bg-color-hover`)]:e.colorBgSolidHover,[i(`solid-bg-color-active`)]:e.colorBgSolidActive,[i(`color-base`)]:e.defaultBorderColor,[i(`color-hover`)]:e.defaultHoverBorderColor,[i(`color-active`)]:e.defaultActiveBorderColor,[i(`color-light`)]:e.colorFillTertiary,[i(`color-light-hover`)]:e.colorFillSecondary,[i(`color-light-active`)]:e.colorFill,[i(`text-color`)]:e.defaultColor,[i(`text-color-hover`)]:e.defaultHoverColor,[i(`text-color-active`)]:e.defaultActiveColor,[i(`shadow`)]:e.defaultShadow,[`&${t}-variant-outlined`]:{[i(`bg-color-disabled`)]:e.defaultBgDisabled},[`&${t}-variant-solid`]:{[i(`text-color`)]:e.solidTextColor,[i(`text-color-hover`)]:a(`text-color`),[i(`text-color-active`)]:a(`text-color`)},[`&${t}-variant-filled, &${t}-variant-text`]:{[i(`text-color-hover`)]:a(`text-color`),[i(`text-color-active`)]:a(`text-color`)},[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[i(`text-color`)]:e.defaultColor,[i(`text-color-hover`)]:e.defaultHoverColor,[i(`text-color-active`)]:e.defaultActiveColor,[i(`bg-color-container`)]:e.defaultBg,[i(`bg-color-hover`)]:e.defaultHoverBg,[i(`bg-color-active`)]:e.defaultActiveBg},[`&${t}-variant-text`]:{[i(`text-color`)]:e.textTextColor,[i(`text-color-hover`)]:e.textTextHoverColor,[i(`text-color-active`)]:e.textTextActiveColor,[i(`bg-color-hover`)]:e.textHoverBg},[`&${t}-background-ghost`]:{[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[i(`text-color`)]:e.defaultGhostColor,[i(`border-color`)]:e.defaultGhostBorderColor}}}},vi.map(n=>{let r=e[`${n}6`],a=e[`${n}1`],o=e[`${n}Hover`],s=e[`${n}2`],c=e[`${n}3`],l=e[`${n}Active`],u=e[`${n}ShadowColor`];return{[`&${t}-color-${n}`]:{[i(`color-base`)]:r,[i(`color-hover`)]:o,[i(`color-active`)]:l,[i(`color-light`)]:a,[i(`color-light-hover`)]:s,[i(`color-light-active`)]:c,[i(`shadow`)]:u}}}),{[`&:disabled, &${e.componentCls}-disabled`]:{cursor:`not-allowed`,borderColor:e.colorBorderDisabled,background:a(`bg-color-disabled`),color:e.colorTextDisabled,boxShadow:`none`}},{[`&${t}-background-ghost`]:{[i(`bg-color`)]:e.ghostBg,[i(`bg-color-hover`)]:e.ghostBg,[i(`bg-color-active`)]:e.ghostBg,[i(`shadow`)]:`none`,[`&${t}-variant-outlined, &${t}-variant-dashed`]:{[i(`bg-color-hover`)]:e.ghostBg,[i(`bg-color-active`)]:e.ghostBg}}}]}},ep=e=>{let{componentCls:t,iconCls:n,fontWeight:r,opacityLoading:i,motionDurationSlow:a,motionEaseInOut:o,iconGap:s,calc:c}=e;return{[t]:{outline:`none`,position:`relative`,display:`inline-flex`,gap:s,alignItems:`center`,justifyContent:`center`,fontWeight:r,whiteSpace:`nowrap`,textAlign:`center`,backgroundImage:`none`,cursor:`pointer`,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:`none`,touchAction:`manipulation`,...Sf(),"&:disabled > *":{pointerEvents:`none`},[`${t}-icon > svg`]:Ba(),"> a":{color:`currentColor`},"&:not(:disabled)":Ua(e),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:`0.34em`},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:`-0.34em`,letterSpacing:`0.34em`},[`&${t}-icon-only`]:{paddingInline:0,[`&${t}-compact-item`]:{flex:`none`}},[`&${t}-loading`]:{opacity:i,cursor:`default`},[`${t}-loading-icon`]:{transition:[`width`,`opacity`,`margin`].map(e=>`${e} ${a} ${o}`).join(`,`)},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:c(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:c(s).mul(-1).equal()}}},"&-icon-end":{flexDirection:`row-reverse`,[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:c(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:c(s).mul(-1).equal()}}}}}},tp=e=>({minWidth:e.controlHeight,paddingInline:0,borderRadius:`50%`}),np=(e,t=``)=>{let{componentCls:n,controlHeight:r,fontSize:i,borderRadius:a,buttonPaddingHorizontal:o,iconCls:s,buttonPaddingVertical:c,buttonIconOnlyFontSize:l}=e;return[{[t]:{fontSize:i,height:r,padding:`${X(c)} ${X(o)}`,borderRadius:a,[`&${n}-icon-only`]:{width:r,[s]:{fontSize:l}}}},{[`${n}${n}-circle${t}`]:tp(e)},{[`${n}${n}-round${t}`]:{borderRadius:e.controlHeight,[`&:not(${n}-icon-only)`]:{paddingInline:e.buttonPaddingHorizontal}}}]},rp=e=>np(si(e,{fontSize:e.contentFontSize}),e.componentCls),ip=e=>np(si(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM}),`${e.componentCls}-sm`),ap=e=>np(si(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG}),`${e.componentCls}-lg`),op=e=>{let{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:`100%`}}}},sp=Ja(`Button`,e=>{let t=Zf(e);return[ep(t),rp(t),ip(t),ap(t),op(t),$f(t),Rf(t)]},Qf,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function cp(e,t,n,r){let{focusElCls:i,focus:a,borderElCls:o}=n,s=o?`> *`:``,c=[`hover`,a?`focus`:null,`active`].filter(Boolean).map(e=>`&:${e} ${s}`).join(`,`);return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${r}-status-success)`]:{zIndex:2},"&-item":{[c]:{zIndex:3},...i?{[`&${i}`]:{zIndex:3}}:{},[`&[disabled] ${s}`]:{zIndex:0}}}}function lp(e,t,n){let{borderElCls:r}=n,i=r?`> ${r}`:``;return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${i}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function up(e,t={focus:!0}){let{componentCls:n}=e,{componentCls:r}=t,i=r||n,a=`${i}-compact`;return{[a]:{...cp(e,a,t,i),...lp(i,a,t)}}}function dp(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 fp(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 pp(e){let t=`${e.componentCls}-compact-vertical`;return{[t]:{...dp(e,t,e.componentCls),...fp(e.componentCls,t)}}}var mp=e=>{let{antCls:t,componentCls:n,lineWidth:r,calc:i,colorBgContainer:a}=e,o=`${n}-variant-solid:not([disabled])`,s=i(r).mul(-1).equal(),[c,l]=Za(t,`btn`),u=e=>({[`${n}-compact${e?`-vertical`:``}-item`]:{[c(`compact-connect-border-color`)]:l(`bg-color-hover`),[`&${o}`]:{transition:`none`,[`& + ${o}:before`]:[{position:`absolute`,backgroundColor:l(`compact-connect-border-color`),content:`""`},e?{top:s,insetInline:s,height:r}:{insetBlock:s,insetInlineStart:s,width:r}],"&:hover:before":{display:`none`}}}});return[u(),u(!0),{[`${o}${n}-color-default`]:{[c(`compact-connect-border-color`)]:`color-mix(in srgb, ${l(`bg-color-hover`)} 75%, ${a})`}}]},hp=Xa([`Button`,`compact`],e=>{let t=Zf(e);return[up(t),pp(t),mp(t)]},Qf);function gp(e){if(sc(e)){let t=e?.delay;return t=ac(t)?t:0,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}var _p={default:[`default`,`outlined`],primary:[`primary`,`solid`],dashed:[`default`,`dashed`],link:[`link`,`link`],text:[`default`,`text`]},vp=v.forwardRef((e,t)=>{let{_skipSemantic:n,loading:r=!1,prefixCls:i,color:a,variant:o,type:s,danger:c=!1,shape:l,size:u,disabled:d,className:f,rootClassName:p,children:m,icon:h,iconPosition:g,iconPlacement:_,ghost:y=!1,block:b=!1,htmlType:x=`button`,classNames:C,styles:w,style:T,autoInsertSpace:E,autoFocus:D,...O}=e,k=de(m),A=s||`default`,{getPrefixCls:j,direction:M,autoInsertSpace:N,className:P,style:F,classNames:I,styles:R,loadingIcon:z,shape:B,color:V,variant:H}=Ze(`button`),U=l||B||`default`,[W,ee]=(0,v.useMemo)(()=>{if(a&&o)return[a,o];if(s||c){let e=_p[A]||[];return c?[`danger`,e[1]]:e}return V&&H?[V,H]:[`default`,`outlined`]},[a,o,s,c,V,H,A]),[te,G]=(0,v.useMemo)(()=>y&&ee===`solid`?[W,`outlined`]:[W,ee],[W,ee,y]),ne=te===`danger`,re=ne?`dangerous`:te,ie=E??N??!0,K=j(`btn`,i),[q,ae]=sp(K),oe=(0,v.useContext)(du),se=d??oe,J=(0,v.useContext)(Rd),ce=(0,v.useMemo)(()=>gp(r),[r]),[le,fe]=(0,v.useState)(ce.loading),[pe,me]=(0,v.useState)(!1),he=(0,v.useRef)(null),ge=L(t,he),_e=k.length===1&&!h&&!Ud(G),ve=(0,v.useRef)(!0);v.useEffect(()=>(ve.current=!1,()=>{ve.current=!0}),[]),S(()=>{let e=null;ce.delay>0?e=setTimeout(()=>{e=null,fe(!0)},ce.delay):fe(ce.loading);function t(){e&&=(clearTimeout(e),null)}return t},[ce.delay,ce.loading]),(0,v.useEffect)(()=>{if(!he.current||!ie)return;let e=he.current.textContent||``;_e&&Vd(e)?pe||me(!0):pe&&me(!1)}),(0,v.useEffect)(()=>{D&&he.current&&he.current.focus()},[]);let ye=v.useCallback(t=>{if(le||se){t.preventDefault();return}e.onClick?.((`href`in e,t))},[e.onClick,le,se]),{compactSize:be,compactItemClassnames:xe}=Pd(K,M),Se=jd(e=>u??be??J??e),Ce=le?`loading`:h,we=_??g??`start`,Te=ue(O,[`navigate`]),Ee={...e,type:A,color:te,variant:G,danger:ne,shape:U,size:Se,disabled:se,loading:le,iconPlacement:we},[De,Oe]=Dc([n?void 0:I,C],[n?void 0:R,w],{props:Ee}),ke=Y(K,q,ae,{[`${K}-${U}`]:U!==`default`&&U!==`square`&&U,[`${K}-${A}`]:A,[`${K}-dangerous`]:c,[`${K}-color-${re}`]:re,[`${K}-variant-${G}`]:G,[`${K}-lg`]:Se===`large`,[`${K}-sm`]:Se===`small`,[`${K}-icon-only`]:!m&&m!==0&&!!Ce,[`${K}-background-ghost`]:y&&!Ud(G),[`${K}-loading`]:le,[`${K}-two-chinese-chars`]:pe&&ie&&!le,[`${K}-block`]:b,[`${K}-rtl`]:M===`rtl`,[`${K}-icon-end`]:we===`end`},xe,f,p,P,De.root),Ae={...Oe.root,...F,...T},je={className:De.icon,style:Oe.icon},Me=e=>v.createElement(Kd,{prefixCls:K,...je},e),Ne=v.createElement(Xd,{existIcon:!!h,prefixCls:K,loading:le,mount:ve.current,...je}),Pe=sc(r)&&r.icon||z,Fe;Fe=h&&!le?Me(h):r&&Pe?Me(Pe):Ne;let Ie=ic(m)?Gd(m,_e&&ie,Oe.content,De.content):null;if(Te.href!==void 0)return v.createElement(`a`,{...Te,className:Y(ke,{[`${K}-disabled`]:se}),href:se?void 0:Te.href,style:Ae,onClick:ye,ref:ge,tabIndex:se?-1:0,"aria-disabled":se},Fe,Ie);let Le=v.createElement(`button`,{...O,type:x,className:ke,style:Ae,onClick:ye,disabled:se,ref:ge},Fe,Ie,xe&&v.createElement(hp,{prefixCls:K}));return Ud(G)||(Le=v.createElement(Ad,{component:`Button`,disabled:le},Le)),Le});vp.Group=zd,vp.__ANT_BUTTON=!0;var yp=e=>{let{type:t,children:n,prefixCls:r,buttonProps:i,close:a,autoFocus:o,emitEvent:s,isSilent:c,quitOnNullishReturnValue:l,actionFn:u}=e,d=v.useRef(!1),f=v.useRef(null),[p,m]=w(!1),h=(...e)=>{a?.(...e)};v.useEffect(()=>{let e=null;return o&&(e=setTimeout(()=>{f.current?.focus({preventScroll:!0})})),()=>{e&&clearTimeout(e)}},[o]);let g=e=>{lc(e)&&(m(!0),e.then((...e)=>{m(!1,!0),h.apply(void 0,e),d.current=!1},e=>{if(m(!1,!0),d.current=!1,!c?.())return Promise.reject(e)}))},_=e=>{if(d.current)return;if(d.current=!0,!u){h();return}let t;if(s){if(t=u(e),l&&!lc(t)){d.current=!1,h(e);return}}else if(u.length)t=u(a),d.current=!1;else if(t=u(),!lc(t)){h();return}g(t)};return v.createElement(vp,{...Hd(t),onClick:_,loading:p,prefixCls:r,...i,ref:f},n)},bp=v.createContext({}),{Provider:xp}=bp,Sp=()=>{let{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:i,rootPrefixCls:a,close:o,onCancel:s,onConfirm:c,onClose:l}=(0,v.useContext)(bp);return i?v.createElement(yp,{isSilent:r,actionFn:s,close:(...e)=>{o?.(...e),c?.(!1),l?.()},autoFocus:e===`cancel`,buttonProps:t,prefixCls:`${a}-btn`},n):null},Cp=()=>{let{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:i,okTextLocale:a,okType:o,onConfirm:s,onOk:c,onClose:l}=(0,v.useContext)(bp);return v.createElement(yp,{isSilent:n,type:o||`primary`,actionFn:c,close:(...e)=>{t?.(...e),s?.(!0),l?.()},autoFocus:e===`ok`,buttonProps:r,prefixCls:`${i}-btn`},a)},wp=v.createContext({});function Tp(e,t,n){let r=t;return!r&&n&&(r=`${e}-${n}`),r}function Ep(e,t){let n=e[`page${t?`Y`:`X`}Offset`],r=`scroll${t?`Top`:`Left`}`;if(typeof n!=`number`){let t=e.document;n=t.documentElement[r],typeof n!=`number`&&(n=t.body[r])}return n}function Dp(e){let t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,i=r.defaultView||r.parentWindow;return n.left+=Ep(i),n.top+=Ep(i,!0),n}function Op(e,t=!1){if(Pl(e)){let n=e.nodeName.toLowerCase(),r=[`input`,`select`,`textarea`,`button`].includes(n)||e.isContentEditable||n===`a`&&!!e.getAttribute(`href`),i=e.getAttribute(`tabindex`),a=Number(i),o=null;return i&&!Number.isNaN(a)?o=a:r&&o===null&&(o=0),r&&e.disabled&&(o=null),o!==null&&(o>=0||t&&o<0)}return!1}function kp(e,t=!1){let n=[...e.querySelectorAll(`*`)].filter(e=>Op(e,t));return Op(e,t)&&n.unshift(e),n}function Ap(e,t){if(!e)return;e.focus(t);let{cursor:n}=t||{};if(n&&(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)){let t=e.value.length;switch(n){case`start`:e.setSelectionRange(0,0);break;case`end`:e.setSelectionRange(t,t);break;default:e.setSelectionRange(0,t)}}}var jp=null,Mp=[],Np=new Map,Pp=new Map;function Fp(){return Mp[Mp.length-1]}function Ip(e){let t=Fp();if(e&&t){let n;for(let[e,r]of Np.entries())if(r===t){n=e;break}let r=Pp.get(n);return!!r&&(r===e||r.contains(e))}return!1}function Lp(e){let{activeElement:t}=document;return e===t||e.contains(t)}function Rp(){let e=Fp(),{activeElement:t}=document;if(!Ip(t))if(e&&!Lp(e)){let t=kp(e);(t.includes(jp)?jp:t[0])?.focus({preventScroll:!0})}else jp=t}function zp(e){if(e.key===`Tab`){let{activeElement:t}=document,n=kp(Fp()),r=n[n.length-1];e.shiftKey&&t===n[0]?jp=r:!e.shiftKey&&t===r&&(jp=n[0])}}function Bp(e,t){return e&&(Np.set(t,e),Mp=Mp.filter(t=>t!==e),Mp.push(e),window.addEventListener(`focusin`,Rp),window.addEventListener(`keydown`,zp,!0),Rp()),()=>{jp=null,Mp=Mp.filter(t=>t!==e),Np.delete(t),Pp.delete(t),Mp.length===0&&(window.removeEventListener(`focusin`,Rp),window.removeEventListener(`keydown`,zp,!0))}}function Vp(e,t){let n=(0,v.useRef)(0),[r,i]=(0,v.useState)(0);(0,v.useEffect)(()=>{n.current=0},t),(0,v.useEffect)(()=>{let[t,r]=e(n.current);return r||(n.current+=1,i(e=>e+1)),t},[...t,r])}function Hp(e,t){let n=dl(),r=(0,v.useRef)(t);return r.current=t,Vp(t=>{if(!e)return[void 0,!0];let i=r.current();return i?[Bp(i,n),!0]:[void 0,t>=1]},[n,e]),[e=>{e&&Pp.set(n,e)}]}var Up=v.memo(({children:e})=>e,(e,{shouldUpdate:t})=>!t);function Wp(){return Wp=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},Wp.apply(this,arguments)}var Gp=v.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:i,title:a,ariaId:o,footer:s,closable:c,closeIcon:l,onClose:u,children:d,bodyStyle:f,bodyProps:p,modalRender:m,onMouseDown:h,onMouseUp:g,holderRef:_,visible:y,forceRender:b,width:x,height:S,classNames:C,styles:w,isFixedPos:T,focusTrap:E}=e,{panel:D}=v.useContext(wp),O=(0,v.useRef)(null),k=L(_,D,O),[A]=Hp(y&&T&&E!==!1,()=>O.current);v.useImperativeHandle(t,()=>({focus:()=>{O.current?.focus({preventScroll:!0})}}));let j={};x!==void 0&&(j.width=x),S!==void 0&&(j.height=S);let M=s?v.createElement(`div`,{className:Y(`${n}-footer`,C?.footer),style:{...w?.footer}},s):null,N=a?v.createElement(`div`,{className:Y(`${n}-header`,C?.header),style:{...w?.header}},v.createElement(`div`,{className:Y(`${n}-title`,C?.title),id:o,style:{...w?.title}},a)):null,P=(0,v.useMemo)(()=>typeof c==`object`&&c?c:c?{closeIcon:l??v.createElement(`span`,{className:`${n}-close-x`})}:{},[c,l,n]),F=Ns(P,!0),I=typeof c==`object`&&c.disabled,R=c?v.createElement(`button`,Wp({type:`button`,onClick:u,"aria-label":`Close`},F,{className:`${n}-close`,disabled:I}),P.closeIcon):null,z=v.createElement(`div`,{className:Y(`${n}-container`,C?.container),style:w?.container},R,N,v.createElement(`div`,Wp({className:Y(`${n}-body`,C?.body),style:{...f,...w?.body}},p),d),M);return v.createElement(`div`,{key:`dialog-element`,role:`dialog`,"aria-labelledby":a?o:null,"aria-modal":`true`,ref:k,style:{...i,...j},className:Y(n,r),onMouseDown:h,onMouseUp:g,tabIndex:-1,onFocus:e=>{A(e.target)}},v.createElement(Up,{shouldUpdate:y||b},m?m(z):z))});function Kp(){return Kp=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},Kp.apply(this,arguments)}var qp=v.forwardRef((e,t)=>{let{prefixCls:n,title:r,style:i,className:a,visible:o,forceRender:s,destroyOnHidden:c,motionName:l,ariaId:u,onVisibleChanged:d,mousePosition:f}=e,p=(0,v.useRef)(null),m=(0,v.useRef)(null);v.useImperativeHandle(t,()=>({...m.current,inMotion:p.current.inMotion,enableMotion:p.current.enableMotion}));let[h,g]=v.useState(),_={};h&&(_.transformOrigin=h);function y(){if(!p.current?.nativeElement)return;let e=Dp(p.current.nativeElement);g(f&&(f.x||f.y)?`${f.x-e.left}px ${f.y-e.top}px`:``)}return v.createElement(Os,{visible:o,onVisibleChanged:d,onAppearPrepare:y,onEnterPrepare:y,forceRender:s,motionName:l,removeOnLeave:c,ref:p},({className:t,style:o},s)=>v.createElement(Gp,Kp({},e,{ref:m,title:r,ariaId:u,prefixCls:n,holderRef:s,style:{...o,...i,..._},className:Y(a,t)})))});function Jp(){return Jp=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},Jp.apply(this,arguments)}var Yp=e=>{let{prefixCls:t,style:n,visible:r,maskProps:i,motionName:a,className:o}=e;return v.createElement(Os,{key:`mask`,visible:r,motionName:a,leavedClassName:`${t}-mask-hidden`},({className:e,style:r},a)=>v.createElement(`div`,Jp({ref:a,style:{...r,...n},className:Y(`${t}-mask`,e,o)},i)))};function Xp(){return Xp=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},Xp.apply(this,arguments)}var Zp=e=>{let{prefixCls:t=`rc-dialog`,zIndex:n,visible:r=!1,focusTriggerAfterClose:i=!0,wrapStyle:a,wrapClassName:o,wrapProps:s,onClose:c,afterOpenChange:l,afterClose:u,transitionName:d,animation:f,closable:p=!0,mask:m=!0,maskTransitionName:h,maskAnimation:g,maskClosable:_=!0,maskStyle:y,maskProps:b,rootClassName:x,rootStyle:S,classNames:C,styles:w}=e,T=(0,v.useRef)(null),E=(0,v.useRef)(null),D=(0,v.useRef)(null),[O,k]=v.useState(r),[A,j]=v.useState(!1),M=dl();function N(){$e(E.current,document.activeElement)||(T.current=document.activeElement)}function P(){$e(E.current,document.activeElement)||D.current?.focus()}function F(){if(k(!1),m&&T.current&&i){try{T.current.focus({preventScroll:!0})}catch{}T.current=null}O&&u?.()}function I(e){e?P():F(),l?.(e)}function L(e){c?.(e)}let R=(0,v.useRef)(!1),z=null;_&&(z=e=>{E.current===e.target&&R.current&&L(e)});function B(e){R.current=e.target===E.current}(0,v.useEffect)(()=>{r?(R.current=!1,k(!0),N(),E.current&&j(getComputedStyle(E.current).position===`fixed`)):O&&D.current.enableMotion()&&!D.current.inMotion()&&F()},[r]);let V={zIndex:n,...a,...w?.wrapper,display:O?null:`none`};return v.createElement(`div`,Xp({className:Y(`${t}-root`,x),style:S},Ns(e,{data:!0})),v.createElement(Yp,{prefixCls:t,visible:m&&r,motionName:Tp(t,h,g),style:{zIndex:n,...y,...w?.mask},maskProps:b,className:C?.mask}),v.createElement(`div`,Xp({className:Y(`${t}-wrap`,o,C?.wrapper),ref:E,onClick:z,onMouseDown:B,style:V},s),v.createElement(qp,Xp({},e,{isFixedPos:A,ref:D,closable:p,ariaId:M,prefixCls:t,visible:r&&O,onClose:L,onVisibleChanged:I,motionName:Tp(t,d,f)}))))};function Qp(){return Qp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qp.apply(this,arguments)}var $p=e=>{let{visible:t,getContainer:n,forceRender:r,destroyOnHidden:i=!1,afterClose:a,closable:o,panelRef:s,keyboard:c=!0,onClose:l}=e,[u,d]=v.useState(t),f=v.useMemo(()=>({panel:s}),[s]);return v.useEffect(()=>{t&&d(!0)},[t]),!r&&i&&!u?null:v.createElement(wp.Provider,{value:f},v.createElement(Sl,{open:t||r||u,onEsc:({top:e,event:t})=>{if(e&&c){t.stopPropagation(),l?.(t);return}},autoDestroy:!1,getContainer:n,autoLock:t||u},v.createElement(Zp,Qp({},e,{destroyOnHidden:i,afterClose:()=>{let{afterClose:e}=(o&&typeof o==`object`?o:{})||{};e?.(),a?.(),d(!1)}}))))},em=`RC_FORM_INTERNAL_HOOKS`,tm=()=>{ce(!1,`Can not find FormContext. Please make sure you wrap Field under Form.`)},nm=v.createContext({getFieldValue:tm,getFieldsValue:tm,getFieldError:tm,getFieldWarning:tm,getFieldsError:tm,isFieldsTouched:tm,isFieldTouched:tm,isFieldValidating:tm,isFieldsValidating:tm,resetFields:tm,setFields:tm,setFieldValue:tm,setFieldsValue:tm,validateFields:tm,submit:tm,getInternalHooks:()=>(tm(),{dispatch:tm,initEntityValue:tm,registerField:tm,useSubscribe:tm,setInitialValues:tm,destroyForm:tm,setCallbacks:tm,registerWatch:tm,getFields:tm,setValidateMessages:tm,setPreserve:tm,getInitialValue:tm})}),rm=v.createContext(null);function im(e){return e==null?[]:Array.isArray(e)?e:[e]}function am(e){return e&&!!e._init}function om(){return{default:`Validation error on field %s`,required:`%s is required`,enum:`%s must be one of %s`,whitespace:`%s cannot be empty`,date:{format:`%s date %s is invalid for format %s`,parse:`%s date could not be parsed, %s is invalid `,invalid:`%s date %s is invalid`},types:{string:`%s is not a %s`,method:`%s is not a %s (function)`,array:`%s is not an %s`,object:`%s is not an %s`,number:`%s is not a %s`,date:`%s is not a %s`,boolean:`%s is not a %s`,integer:`%s is not an %s`,float:`%s is not a %s`,regexp:`%s is not a valid %s`,email:`%s is not a valid %s`,tel:`%s is not a valid %s`,url:`%s is not a valid %s`,hex:`%s is not a valid %s`},string:{len:`%s must be exactly %s characters`,min:`%s must be at least %s characters`,max:`%s cannot be longer than %s characters`,range:`%s must be between %s and %s characters`},number:{len:`%s must equal %s`,min:`%s cannot be less than %s`,max:`%s cannot be greater than %s`,range:`%s must be between %s and %s`},array:{len:`%s must be exactly %s in length`,min:`%s cannot be less than %s in length`,max:`%s cannot be greater than %s in length`,range:`%s must be between %s and %s in length`},pattern:{mismatch:`%s value %s does not match pattern %s`},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var sm=om();function cm(e){try{return Function.toString.call(e).indexOf(`[native code]`)!==-1}catch{return typeof e==`function`}}function lm(e,t,n){if(qr())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var i=new(e.bind.apply(e,r));return n&&Wr(i,n.prototype),i}function um(e){var t=typeof Map==`function`?new Map:void 0;return um=function(e){if(e===null||!cm(e))return e;if(typeof e!=`function`)throw TypeError(`Super expression must either be null or a function`);if(t!==void 0){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return lm(e,arguments,Kr(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Wr(n,e)},um(e)}var dm=/%[sdj%]/g,fm=function(){};function pm(e){if(!e||!e.length)return null;var t={};return e.forEach(function(e){var n=e.field;t[n]=t[n]||[],t[n].push(e)}),t}function mm(e){var t=[...arguments].slice(1),n=0,r=t.length;return typeof e==`function`?e.apply(null,t):typeof e==`string`?e.replace(dm,function(e){if(e===`%%`)return`%`;if(n>=r)return e;switch(e){case`%s`:return String(t[n++]);case`%d`:return Number(t[n++]);case`%j`:try{return JSON.stringify(t[n++])}catch{return`[Circular]`}break;default:return e}}):e}function hm(e){return e===`string`||e===`url`||e===`hex`||e===`email`||e===`date`||e===`pattern`||e===`tel`}function gm(e,t){return!!(e==null||t===`array`&&Array.isArray(e)&&!e.length||hm(t)&&typeof e==`string`&&!e)}function _m(e,t,n){var r=[],i=0,a=e.length;function o(e){r.push.apply(r,ze(e||[])),i++,i===a&&n(r)}e.forEach(function(e){t(e,o)})}function vm(e,t,n){var r=0,i=e.length;function a(o){if(o&&o.length){n(o);return}var s=r;r+=1,s<i?t(e[s],a):n([])}a([])}function ym(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,ze(e[n]||[]))}),t}var bm=function(e){Gr(n,e);var t=Yr(n);function n(e,r){var i;return Br(this,n),i=t.call(this,`Async Validation Error`),Lr(Ur(i),`errors`,void 0),Lr(Ur(i),`fields`,void 0),i.errors=e,i.fields=r,i}return Hr(n)}(um(Error));function xm(e,t,n,r,i){if(t.first){var a=new Promise(function(t,a){vm(ym(e),n,function(e){return r(e),e.length?a(new bm(e,pm(e))):t(i)})});return a.catch(function(e){return e}),a}var o=t.firstFields===!0?Object.keys(e):t.firstFields||[],s=Object.keys(e),c=s.length,l=0,u=[],d=new Promise(function(t,a){var d=function(e){if(u.push.apply(u,e),l++,l===c)return r(u),u.length?a(new bm(u,pm(u))):t(i)};s.length||(r(u),t(i)),s.forEach(function(t){var r=e[t];o.indexOf(t)===-1?_m(r,n,d):vm(r,n,d)})});return d.catch(function(e){return e}),d}function Sm(e){return!!(e&&e.message!==void 0)}function Cm(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function wm(e,t){return function(n){var r=e.fullFields?Cm(t,e.fullFields):t[n.field||e.fullField];return Sm(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 Tm(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];Ar(r)===`object`&&Ar(e[n])===`object`?e[n]=zr(zr({},e[n]),r):e[n]=r}}return e}var Em=`enum`,Dm=function(e,t,n,r,i){e[Em]=Array.isArray(e[Em])?e[Em]:[],e[Em].indexOf(t)===-1&&r.push(mm(i.messages[Em],e.fullField,e[Em].join(`, `)))},Om=function(e,t,n,r,i){e.pattern&&(e.pattern instanceof RegExp?(e.pattern.lastIndex=0,e.pattern.test(t)||r.push(mm(i.messages.pattern.mismatch,e.fullField,t,e.pattern))):typeof e.pattern==`string`&&(new RegExp(e.pattern).test(t)||r.push(mm(i.messages.pattern.mismatch,e.fullField,t,e.pattern))))},km=function(e,t,n,r,i){var a=typeof e.len==`number`,o=typeof e.min==`number`,s=typeof e.max==`number`,c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,l=t,u=null,d=typeof t==`number`,f=typeof t==`string`,p=Array.isArray(t);if(d?u=`number`:f?u=`string`:p&&(u=`array`),!u)return!1;p&&(l=t.length),f&&(l=t.replace(c,`_`).length),a?l!==e.len&&r.push(mm(i.messages[u].len,e.fullField,e.len)):o&&!s&&l<e.min?r.push(mm(i.messages[u].min,e.fullField,e.min)):s&&!o&&l>e.max?r.push(mm(i.messages[u].max,e.fullField,e.max)):o&&s&&(l<e.min||l>e.max)&&r.push(mm(i.messages[u].range,e.fullField,e.min,e.max))},Am=function(e,t,n,r,i,a){e.required&&(!n.hasOwnProperty(e.field)||gm(t,a||e.type))&&r.push(mm(i.messages.required,e.fullField))},jm,Mm=(function(){if(jm)return jm;var e=`[a-fA-F\\d:]`,t=function(t){return t&&t.includeBoundaries?`(?:(?<=\\s|^)(?=${e})|(?<=${e})(?=\\s|\$))`:``},n=`(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}`,r=`[a-fA-F\\d]{1,4}`,i=`(?:${[`(?:${r}:){7}(?:${r}|:)`,`(?:${r}:){6}(?:${n}|:${r}|:)`,`(?:${r}:){5}(?::${n}|(?::${r}){1,2}|:)`,`(?:${r}:){4}(?:(?::${r}){0,1}:${n}|(?::${r}){1,3}|:)`,`(?:${r}:){3}(?:(?::${r}){0,2}:${n}|(?::${r}){1,4}|:)`,`(?:${r}:){2}(?:(?::${r}){0,3}:${n}|(?::${r}){1,5}|:)`,`(?:${r}:){1}(?:(?::${r}){0,4}:${n}|(?::${r}){1,6}|:)`,`(?::(?:(?::${r}){0,5}:${n}|(?::${r}){1,7}|:))`].join(`|`)})(?:%[0-9a-zA-Z]{1,})?`,a=RegExp(`(?:^${n}\$)|(?:^${i}\$)`),o=RegExp(`^${n}\$`),s=RegExp(`^${i}\$`),c=function(e){return e&&e.exact?a:RegExp(`(?:${t(e)}${n}${t(e)})|(?:${t(e)}${i}${t(e)})`,`g`)};c.v4=function(e){return e&&e.exact?o:RegExp(`${t(e)}${n}${t(e)}`,`g`)},c.v6=function(e){return e&&e.exact?s:RegExp(`${t(e)}${i}${t(e)}`,`g`)};var l=`(?:(?:(?:[a-z]+:)?//)|www\\.)(?:\\S+(?::\\S*)?@)?(?:localhost|${c.v4().source}|${c.v6().source}|(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))(?::\\d{2,5})?(?:[/?#][^\\s"]*)?`;return jm=RegExp(`(?:^${l}\$)`,`i`),jm}),Nm={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,tel:/^(\+[0-9]{1,3}[-\s\u2011]?)?(\([0-9]{1,4}\)[-\s\u2011]?)?([0-9]+[-\s\u2011]?)*[0-9]+$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Pm={integer:function(e){return Pm.number(e)&&parseInt(e,10)===e},float:function(e){return Pm.number(e)&&!Pm.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch{return!1}},date:function(e){return typeof e.getTime==`function`&&typeof e.getMonth==`function`&&typeof e.getYear==`function`&&!isNaN(e.getTime())},number:function(e){return isNaN(e)?!1:typeof e==`number`},object:function(e){return Ar(e)===`object`&&!Pm.array(e)},method:function(e){return typeof e==`function`},email:function(e){return typeof e==`string`&&e.length<=320&&!!e.match(Nm.email)},tel:function(e){return typeof e==`string`&&e.length<=32&&!!e.match(Nm.tel)},url:function(e){return typeof e==`string`&&e.length<=2048&&!!e.match(Mm())},hex:function(e){return typeof e==`string`&&!!e.match(Nm.hex)}},Fm={required:Am,whitespace:function(e,t,n,r,i){(/^\s+$/.test(t)||t===``)&&r.push(mm(i.messages.whitespace,e.fullField))},type:function(e,t,n,r,i){if(e.required&&t===void 0){Am(e,t,n,r,i);return}var a=[`integer`,`float`,`array`,`regexp`,`object`,`method`,`email`,`tel`,`number`,`date`,`url`,`hex`],o=e.type;a.indexOf(o)>-1?Pm[o](t)||r.push(mm(i.messages.types[o],e.fullField,e.type)):o&&Ar(t)!==e.type&&r.push(mm(i.messages.types[o],e.fullField,e.type))},range:km,enum:Dm,pattern:Om},Im=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(gm(t)&&!e.required)return n();Fm.required(e,t,r,a,i)}n(a)},Lm=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(t==null&&!e.required)return n();Fm.required(e,t,r,a,i,`array`),t!=null&&(Fm.type(e,t,r,a,i),Fm.range(e,t,r,a,i))}n(a)},Rm=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(gm(t)&&!e.required)return n();Fm.required(e,t,r,a,i),t!==void 0&&Fm.type(e,t,r,a,i)}n(a)},zm=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(gm(t,`date`)&&!e.required)return n();if(Fm.required(e,t,r,a,i),!gm(t,`date`)){var o=t instanceof Date?t:new Date(t);Fm.type(e,o,r,a,i),o&&Fm.range(e,o.getTime(),r,a,i)}}n(a)},Bm=`enum`,Vm=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(gm(t)&&!e.required)return n();Fm.required(e,t,r,a,i),t!==void 0&&Fm[Bm](e,t,r,a,i)}n(a)},Hm=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(gm(t)&&!e.required)return n();Fm.required(e,t,r,a,i),t!==void 0&&(Fm.type(e,t,r,a,i),Fm.range(e,t,r,a,i))}n(a)},Um=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(gm(t)&&!e.required)return n();Fm.required(e,t,r,a,i),t!==void 0&&(Fm.type(e,t,r,a,i),Fm.range(e,t,r,a,i))}n(a)},Wm=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(gm(t)&&!e.required)return n();Fm.required(e,t,r,a,i),t!==void 0&&Fm.type(e,t,r,a,i)}n(a)},Gm=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(t===``&&(t=void 0),gm(t)&&!e.required)return n();Fm.required(e,t,r,a,i),t!==void 0&&(Fm.type(e,t,r,a,i),Fm.range(e,t,r,a,i))}n(a)},Km=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(gm(t)&&!e.required)return n();Fm.required(e,t,r,a,i),t!==void 0&&Fm.type(e,t,r,a,i)}n(a)},qm=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(gm(t,`string`)&&!e.required)return n();Fm.required(e,t,r,a,i),gm(t,`string`)||Fm.pattern(e,t,r,a,i)}n(a)},Jm=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(gm(t)&&!e.required)return n();Fm.required(e,t,r,a,i),gm(t)||Fm.type(e,t,r,a,i)}n(a)},Ym=function(e,t,n,r,i){var a=[],o=Array.isArray(t)?`array`:Ar(t);Fm.required(e,t,r,a,i,o),n(a)},Xm=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(gm(t,`string`)&&!e.required)return n();Fm.required(e,t,r,a,i,`string`),gm(t,`string`)||(Fm.type(e,t,r,a,i),Fm.range(e,t,r,a,i),Fm.pattern(e,t,r,a,i),e.whitespace===!0&&Fm.whitespace(e,t,r,a,i))}n(a)},Zm=function(e,t,n,r,i){var a=e.type,o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(gm(t,a)&&!e.required)return n();Fm.required(e,t,r,o,i,a),gm(t,a)||Fm.type(e,t,r,o,i)}n(o)},Qm={string:Xm,method:Wm,number:Gm,boolean:Rm,regexp:Jm,integer:Um,float:Hm,array:Lm,object:Km,enum:Vm,pattern:qm,date:zm,url:Zm,hex:Zm,email:Zm,tel:Zm,required:Ym,any:Im},$m=function(){function e(t){Br(this,e),Lr(this,`rules`,null),Lr(this,`_messages`,sm),this.define(t)}return Hr(e,[{key:`define`,value:function(e){var t=this;if(!e)throw Error(`Cannot configure a schema with no rules`);if(Ar(e)!==`object`||Array.isArray(e))throw Error(`Rules must be an object`);this.rules={},Object.keys(e).forEach(function(n){var r=e[n];t.rules[n]=Array.isArray(r)?r:[r]})}},{key:`messages`,value:function(e){return e&&(this._messages=Tm(om(),e)),this._messages}},{key:`validate`,value:function(t){var n=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},a=t,o=r,s=i;if(typeof o==`function`&&(s=o,o={}),!this.rules||Object.keys(this.rules).length===0)return s&&s(null,a),Promise.resolve(a);function c(e){var t=[],n={};function r(e){if(Array.isArray(e)){var n;t=(n=t).concat.apply(n,ze(e))}else t.push(e)}for(var i=0;i<e.length;i++)r(e[i]);t.length?(n=pm(t),s(t,n)):s(null,a)}if(o.messages){var l=this.messages();l===sm&&(l=om()),Tm(l,o.messages),o.messages=l}else o.messages=this.messages();var u={};(o.keys||Object.keys(this.rules)).forEach(function(e){var r=n.rules[e],i=a[e];r.forEach(function(r){var o=r;typeof o.transform==`function`&&(a===t&&(a=zr({},a)),i=a[e]=o.transform(i),i!=null&&(o.type=o.type||(Array.isArray(i)?`array`:Ar(i)))),o=typeof o==`function`?{validator:o}:zr({},o),o.validator=n.getValidationMethod(o),o.validator&&(o.field=e,o.fullField=o.fullField||e,o.type=n.getType(o),u[e]=u[e]||[],u[e].push({rule:o,value:i,source:a,field:e}))})});var d={};return xm(u,o,function(t,n){var r=t.rule,i=(r.type===`object`||r.type===`array`)&&(Ar(r.fields)===`object`||Ar(r.defaultField)===`object`);i&&=r.required||!r.required&&t.value,r.field=t.field;function s(e,t){return zr(zr({},t),{},{fullField:`${r.fullField}.${e}`,fullFields:r.fullFields?[].concat(ze(r.fullFields),[e]):[e]})}function c(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],l=Array.isArray(c)?c:[c];!o.suppressWarning&&l.length&&e.warning(`async-validator:`,l),l.length&&r.message!==void 0&&r.message!==null&&(l=[].concat(r.message));var u=l.map(wm(r,a));if(o.first&&u.length)return d[r.field]=1,n(u);if(!i)n(u);else{if(r.required&&!t.value)return r.message===void 0?o.error&&(u=[o.error(r,mm(o.messages.required,r.field))]):u=[].concat(r.message).map(wm(r,a)),n(u);var f={};r.defaultField&&Object.keys(t.value).map(function(e){f[e]=r.defaultField}),f=zr(zr({},f),t.rule.fields);var p={};Object.keys(f).forEach(function(e){var t=f[e];p[e]=(Array.isArray(t)?t:[t]).map(s.bind(null,e))});var m=new e(p);m.messages(o.messages),t.rule.options&&(t.rule.options.messages=o.messages,t.rule.options.error=o.error),m.validate(t.value,t.rule.options||o,function(e){var t=[];u&&u.length&&t.push.apply(t,ze(u)),e&&e.length&&t.push.apply(t,ze(e)),n(t.length?t:null)})}}var l;if(r.asyncValidator)l=r.asyncValidator(r,t.value,c,t.source,o);else if(r.validator){try{l=r.validator(r,t.value,c,t.source,o)}catch(e){var u,f;(u=(f=console).error)==null||u.call(f,e),o.suppressValidatorError||setTimeout(function(){throw e},0),c(e.message)}l===!0?c():l===!1?c(typeof r.message==`function`?r.message(r.fullField||r.field):r.message||`${r.fullField||r.field} fails`):l instanceof Array?c(l):l instanceof Error&&c(l.message)}l&&l.then&&l.then(function(){return c()},function(e){return c(e)})},function(e){c(e)},a)}},{key:`getType`,value:function(e){if(e.type===void 0&&e.pattern instanceof RegExp&&(e.type=`pattern`),typeof e.validator!=`function`&&e.type&&!Qm.hasOwnProperty(e.type))throw Error(mm(`Unknown rule type %s`,e.type));return e.type||`string`}},{key:`getValidationMethod`,value:function(e){if(typeof e.validator==`function`)return e.validator;var t=Object.keys(e),n=t.indexOf(`message`);return n!==-1&&t.splice(n,1),t.length===1&&t[0]===`required`?Qm.required:Qm[this.getType(e)]||void 0}}]),e}();Lr($m,`register`,function(e,t){if(typeof t!=`function`)throw Error(`Cannot register a validator by type, validator is not a function`);Qm[e]=t}),Lr($m,`warning`,fm),Lr($m,`messages`,sm),Lr($m,`validators`,Qm);var eh="'${name}' is not a valid ${type}",th={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:eh,method:eh,array:eh,object:eh,number:eh,date:eh,boolean:eh,integer:eh,float:eh,regexp:eh,email:eh,tel:eh,url:eh,hex:eh},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}"}},nh=$m;function rh(e,t){return e.replace(/\\?\$\{\w+\}/g,e=>e.startsWith(`\\`)?e.slice(1):t[e.slice(2,-1)])}var ih=`CODE_LOGIC_ERROR`;async function ah(e,t,n,r,i){let a={...n};if(delete a.ruleIndex,nh.warning=()=>void 0,a.validator){let e=a.validator;a.validator=(...t)=>{try{return e(...t)}catch(e){return console.error(e),Promise.reject(ih)}}}let o=null;a&&a.type===`array`&&a.defaultField&&(o=a.defaultField,delete a.defaultField);let s=new nh({[e]:[a]}),c=re(th,r.validateMessages);s.messages(c);let l=[];try{await Promise.resolve(s.validate({[e]:t},{...r}))}catch(e){e.errors&&(l=e.errors.map(({message:e},t)=>{let n=e===ih?c.default:e;return v.isValidElement(n)?v.cloneElement(n,{key:`error_${t}`}):n}))}if(!l.length&&o&&Array.isArray(t)&&t.length>0)return(await Promise.all(t.map((t,n)=>ah(`${e}.${n}`,t,o,r,i)))).reduce((e,t)=>[...e,...t],[]);let u={...n,name:e,enum:(n.enum||[]).join(`, `),...i};return l.map(e=>typeof e==`string`?rh(e,u):e)}function oh(e,t,n,r,i,a){let o=e.join(`.`),s=n.map((e,t)=>{let n=e.validator,r={...e,ruleIndex:t};return n&&(r.validator=(e,t,r)=>{let i=!1,a=n(e,t,(...e)=>{Promise.resolve().then(()=>{ce(!i,"Your validator function has already return a promise. `callback` will be ignored."),i||r(...e)})});i=a&&typeof a.then==`function`&&typeof a.catch==`function`,ce(i,"`callback` is deprecated. Please return a promise instead."),i&&a.then(()=>{r()}).catch(e=>{r(e||` `)})}),r}).sort(({warningOnly:e,ruleIndex:t},{warningOnly:n,ruleIndex:r})=>!!e==!!n?t-r:e?1:-1),c;if(i===!0)c=new Promise(async(e,n)=>{for(let e=0;e<s.length;e+=1){let i=s[e],c=await ah(o,t,i,r,a);if(c.length){n([{errors:c,rule:i}]);return}}e([])});else{let e=s.map(e=>ah(o,t,e,r,a).then(t=>({errors:t,rule:e})));c=(i?ch(e):sh(e)).then(e=>Promise.reject(e))}return c.catch(e=>e),c}async function sh(e){return Promise.all(e).then(e=>[].concat(...e))}async function ch(e){let t=0;return new Promise(n=>{e.forEach(r=>{r.then(r=>{r.errors.length&&n([r]),t+=1,t===e.length&&n([])})})})}function lh(e){return im(e)}function uh(e,t){let n={};return t.forEach(t=>{let r=H(e,t);n=W(n,t,r)}),n}function dh(e,t,n=!1){return e&&e.some(e=>fh(t,e,n))}function fh(e,t,n=!1){return!e||!t||!n&&e.length!==t.length?!1:t.every((t,n)=>e[n]===t)}function ph(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||typeof e!=`object`||typeof t!=`object`)return!1;let n=Object.keys(e),r=Object.keys(t);return[...new Set([...n,...r])].every(n=>{let r=e[n],i=t[n];return typeof r==`function`&&typeof i==`function`?!0:r===i})}function mh(e,...t){let n=t[0];return n&&n.target&&typeof n.target==`object`&&e in n.target?n.target[e]:n}function hh(e,t,n){let{length:r}=e;if(t<0||t>=r||n<0||n>=r)return e;let i=e[t],a=t-n;return a>0?[...e.slice(0,n),i,...e.slice(n,t),...e.slice(t+1,r)]:a<0?[...e.slice(0,t),...e.slice(t+1,n+1),i,...e.slice(n+1,r)]:e}var gh=e=>{let t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(null)},_h=class{namePathList=[];taskId=0;watcherList=new Set;form;constructor(e){this.form=e}register(e){return this.watcherList.add(e),()=>{this.watcherList.delete(e)}}notify(e){e.forEach(e=>{this.namePathList.every(t=>!fh(t,e))&&this.namePathList.push(e)}),this.doBatch()}doBatch(){this.taskId+=1;let e=this.taskId;gh(()=>{if(e===this.taskId&&this.watcherList.size){let e=this.form.getForm(),t=e.getFieldsValue(),n=e.getFieldsValue(!0);this.watcherList.forEach(e=>{e(t,n,this.namePathList)}),this.namePathList=[]}})}};async function vh(){return new Promise(e=>{gh(()=>{Ge(()=>{e()})})})}function yh(){return yh=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},yh.apply(this,arguments)}var bh=[],xh=[];function Sh(e,t,n,r,i,a){return typeof e==`function`?e(t,n,`source`in a?{source:a.source}:{}):r!==i}var Ch=class extends v.Component{static contextType=nm;state={resetCount:0};cancelRegisterFunc=null;mounted=!1;touched=!1;dirty=!1;validatePromise;prevValidating;errors=bh;warnings=xh;constructor(e){if(super(e),e.fieldContext){let{getInternalHooks:t}=e.fieldContext,{initEntityValue:n}=t(em);n(this)}}componentDidMount(){let{shouldUpdate:e,fieldContext:t}=this.props;if(this.mounted=!0,t){let{getInternalHooks:e}=t,{registerField:n}=e(em);this.cancelRegisterFunc=n(this)}e===!0&&this.reRender()}componentWillUnmount(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}cancelRegister=()=>{let{preserve:e,isListField:t,name:n}=this.props;this.cancelRegisterFunc&&this.cancelRegisterFunc(t,e,lh(n)),this.cancelRegisterFunc=null};getNamePath=()=>{let{name:e,fieldContext:t}=this.props,{prefixName:n=[]}=t;return e===void 0?[]:[...n,...e]};getRules=()=>{let{rules:e=[],fieldContext:t}=this.props;return e.map(e=>typeof e==`function`?e(t):e)};reRender(){this.mounted&&this.forceUpdate()}refresh=()=>{this.mounted&&this.setState(({resetCount:e})=>({resetCount:e+1}))};metaCache=null;triggerMetaEvent=e=>{let{onMetaChange:t}=this.props;if(t){let n={...this.getMeta(),destroy:e};pt(this.metaCache,n)||t(n),this.metaCache=n}else this.metaCache=null};onStoreChange=(e,t,n)=>{let{shouldUpdate:r,dependencies:i=[],onReset:a}=this.props,{store:o}=n,s=this.getNamePath(),c=this.getValue(e),l=this.getValue(o),u=t&&dh(t,s);switch(n.type===`valueUpdate`&&n.source===`external`&&!pt(c,l)&&(this.touched=!0,this.dirty=!0,this.validatePromise=null,this.errors=bh,this.warnings=xh,this.triggerMetaEvent()),n.type){case`reset`:if(!t||u){this.touched=!1,this.dirty=!1,this.validatePromise=void 0,this.errors=bh,this.warnings=xh,this.triggerMetaEvent(),a?.(),this.refresh();return}break;case`remove`:if(r&&Sh(r,e,o,c,l,n)){this.reRender();return}break;case`setField`:{let{data:i}=n;if(u){`touched`in i&&(this.touched=i.touched),`validating`in i&&!(`originRCField`in i)&&(this.validatePromise=i.validating?Promise.resolve([]):null),`errors`in i&&(this.errors=i.errors||bh),`warnings`in i&&(this.warnings=i.warnings||xh),this.dirty=!0,this.triggerMetaEvent(),this.reRender();return}else if(`value`in i&&dh(t,s,!0)){this.reRender();return}if(r&&!s.length&&Sh(r,e,o,c,l,n)){this.reRender();return}break}case`dependenciesUpdate`:if(i.map(lh).some(e=>dh(n.relatedFields,e))){this.reRender();return}break;default:if(u||(!i.length||s.length||r)&&Sh(r,e,o,c,l,n)){this.reRender();return}break}r===!0&&this.reRender()};validateRules=e=>{let t=this.getNamePath(),n=this.getValue(),{triggerName:r,validateOnly:i=!1,delayFrame:a}=e||{},o=Promise.resolve().then(async()=>{if(!this.mounted)return[];let{validateFirst:i=!1,messageVariables:s,validateDebounce:c}=this.props;a&&await vh();let l=this.getRules();if(r&&(l=l.filter(e=>e).filter(e=>{let{validateTrigger:t}=e;return t?im(t).includes(r):!0})),c&&r&&(await new Promise(e=>{setTimeout(e,c)}),this.validatePromise!==o))return[];let u=oh(t,n,l,e,i,s);return u.catch(e=>e).then((e=bh)=>{if(this.validatePromise===o){this.validatePromise=null;let t=[],n=[];e.forEach?.(({rule:{warningOnly:e},errors:r=bh})=>{e?n.push(...r):t.push(...r)}),this.errors=t,this.warnings=n,this.triggerMetaEvent(),this.reRender()}}),u});return i?o:(this.validatePromise=o,this.dirty=!0,this.errors=bh,this.warnings=xh,this.triggerMetaEvent(),this.reRender(),o)};isFieldValidating=()=>!!this.validatePromise;isFieldTouched=()=>this.touched;isFieldDirty=()=>{if(this.dirty||this.props.initialValue!==void 0)return!0;let{fieldContext:e}=this.props,{getInitialValue:t}=e.getInternalHooks(em);return t(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=e=>{if(typeof e==`function`){let t=this.getMeta();return{...this.getOnlyChild(e(this.getControlled(),t,this.props.fieldContext)),isFunction:!0}}let t=de(e);return t.length!==1||!v.isValidElement(t[0])?{child:t,isFunction:!1}:{child:t[0],isFunction:!1}};getValue=e=>{let{getFieldsValue:t}=this.props.fieldContext,n=this.getNamePath();return H(e||t(!0),n)};getControlled=(e={})=>{let{name:t,trigger:n=`onChange`,validateTrigger:r,getValueFromEvent:i,normalize:a,valuePropName:o=`value`,getValueProps:s,fieldContext:c}=this.props,l=r===void 0?c.validateTrigger:r,u=this.getNamePath(),{getInternalHooks:d,getFieldsValue:f}=c,{dispatch:p}=d(em),m=this.getValue(),h=s||(e=>({[o]:e})),g=e[n],_=t===void 0?{}:h(m),v={...e,..._};return v[n]=(...e)=>{this.touched=!0,this.dirty=!0,this.triggerMetaEvent();let t;t=i?i(...e):mh(o,...e),a&&(t=a(t,m,f(!0))),t!==m&&p({type:`updateValue`,namePath:u,value:t}),g&&g(...e)},im(l||[]).forEach(e=>{let t=v[e];v[e]=(...n)=>{t&&t(...n);let{rules:r}=this.props;r&&r.length&&p({type:`validateField`,namePath:u,triggerName:e})}}),v};render(){let{resetCount:e}=this.state,{children:t}=this.props,{child:n,isFunction:r}=this.getOnlyChild(t),i;return r?i=n:v.isValidElement(n)?i=v.cloneElement(n,this.getControlled(n.props)):(ce(!n,"`children` of Field is not validate ReactElement."),i=n),v.createElement(v.Fragment,{key:e},i)}};function wh({name:e,...t}){let n=v.useContext(nm),r=v.useContext(rm),i=e===void 0?void 0:lh(e),a=t.isListField??!!r,o=`keep`;return a||(o=`_${(i||[]).join(`_`)}`),v.createElement(Ch,yh({key:o,name:i,isListField:a},t,{fieldContext:n}))}function Th({name:e,initialValue:t,children:n,rules:r,validateTrigger:i,isListField:a}){let o=v.useContext(nm),s=v.useContext(rm),c=v.useRef({keys:[],id:0}).current,l=v.useMemo(()=>[...lh(o.prefixName)||[],...lh(e)],[o.prefixName,e]),u=v.useMemo(()=>({...o,prefixName:l}),[o,l]),d=v.useMemo(()=>({getKey:e=>{let t=l.length,n=e[t];return[c.keys[n],e.slice(t+1)]}}),[c,l]);return typeof n==`function`?v.createElement(rm.Provider,{value:d},v.createElement(nm.Provider,{value:u},v.createElement(wh,{name:[],shouldUpdate:(e,t,{source:n})=>n===`internal`?!1:e!==t,rules:r,validateTrigger:i,initialValue:t,isList:!0,isListField:a??!!s},({value:e=[],onChange:t},r)=>{let{getFieldValue:i}=o,a=()=>i(l||[])||[],s={add:(e,n)=>{let r=a();n>=0&&n<=r.length?(c.keys=[...c.keys.slice(0,n),c.id,...c.keys.slice(n)],t([...r.slice(0,n),e,...r.slice(n)])):(c.keys=[...c.keys,c.id],t([...r,e])),c.id+=1},remove:e=>{let n=a(),r=new Set(Array.isArray(e)?e:[e]);r.size<=0||(c.keys=c.keys.filter((e,t)=>!r.has(t)),t(n.filter((e,t)=>!r.has(t))))},move(e,n){if(e===n)return;let r=a();e<0||e>=r.length||n<0||n>=r.length||(c.keys=hh(c.keys,e,n),t(hh(r,e,n)))}},u=e||[];return Array.isArray(u)||(u=[]),n(u.map((e,t)=>{let n=c.keys[t];return n===void 0&&(c.keys[t]=c.id,n=c.keys[t],c.id+=1),{name:t,key:n,isListField:!0}}),s,r)}))):(ce(!1,`Form.List only accepts function as children.`),null)}function Eh(e){let t=!1,n=e.length,r=[];return e.length?new Promise((i,a)=>{e.forEach((e,o)=>{e.catch(e=>(t=!0,e)).then(e=>{--n,r[o]=e,!(n>0)&&(t&&a(r),i(r))})})}):Promise.resolve([])}var Dh=`__@field_split__`;function Oh(e){return e.map(e=>`${typeof e}:${e}`).join(Dh)}var kh=class{kvs=new Map;set(e,t){this.kvs.set(Oh(e),t)}get(e){return this.kvs.get(Oh(e))}getAsPrefix(e){let t=Oh(e),n=t+Dh,r=[],i=this.kvs.get(t);return i!==void 0&&r.push(i),this.kvs.forEach((e,t)=>{t.startsWith(n)&&r.push(e)}),r}update(e,t){let n=t(this.get(e));n?this.set(e,n):this.delete(e)}delete(e){this.kvs.delete(Oh(e))}map(e){return[...this.kvs.entries()].map(([t,n])=>e({key:t.split(Dh).map(e=>{let[,t,n]=e.match(/^([^:]*):(.*)$/);return t===`number`?Number(n):n}),value:n}))}toJSON(){let e={};return this.map(({key:t,value:n})=>(e[t.join(`.`)]=n,null)),e}},Ah=class{formHooked=!1;forceRootUpdate;subscribable=!0;store={};fieldEntities=[];initialValues={};callbacks={};validateMessages=null;preserve=null;lastValidatePromise=null;watcherCenter=new _h(this);constructor(e){this.forceRootUpdate=e}getForm=()=>({getFieldValue:this.getFieldValue,getFieldsValue:this.getFieldsValue,getFieldError:this.getFieldError,getFieldWarning:this.getFieldWarning,getFieldsError:this.getFieldsError,isFieldsTouched:this.isFieldsTouched,isFieldTouched:this.isFieldTouched,isFieldValidating:this.isFieldValidating,isFieldsValidating:this.isFieldsValidating,resetFields:this.resetFields,setFields:this.setFields,setFieldValue:this.setFieldValue,setFieldsValue:this.setFieldsValue,validateFields:this.validateFields,submit:this.submit,_init:!0,getInternalHooks:this.getInternalHooks});getInternalHooks=e=>e===`RC_FORM_INTERNAL_HOOKS`?(this.formHooked=!0,{dispatch:this.dispatch,initEntityValue:this.initEntityValue,registerField:this.registerField,useSubscribe:this.useSubscribe,setInitialValues:this.setInitialValues,destroyForm:this.destroyForm,setCallbacks:this.setCallbacks,setValidateMessages:this.setValidateMessages,getFields:this.getFields,setPreserve:this.setPreserve,getInitialValue:this.getInitialValue,registerWatch:this.registerWatch}):(ce(!1,"`getInternalHooks` is internal usage. Should not call directly."),null);useSubscribe=e=>{this.subscribable=e};prevWithoutPreserves=null;setInitialValues=(e,t)=>{if(this.initialValues=e||{},t){let t=re(e,this.store);this.prevWithoutPreserves?.map(({key:n})=>{t=W(t,n,H(e,n))}),this.prevWithoutPreserves=null,this.updateStore(t)}};destroyForm=e=>{if(e)this.updateStore({});else{let e=new kh;this.getFieldEntities(!0).forEach(t=>{this.isMergedPreserve(t.isPreserve())||e.set(t.getNamePath(),!0)}),this.prevWithoutPreserves=e}};getInitialValue=e=>{let t=H(this.initialValues,e);return e.length?re(t):t};setCallbacks=e=>{this.callbacks=e};setValidateMessages=e=>{this.validateMessages=e};setPreserve=e=>{this.preserve=e};registerWatch=e=>this.watcherCenter.register(e);notifyWatch=(e=[])=>{this.watcherCenter.notify(e)};timeoutId=null;warningUnhooked=()=>{};updateStore=e=>{this.store=e};getFieldEntities=(e=!1)=>e?this.fieldEntities.filter(e=>e.getNamePath().length):this.fieldEntities;getFieldsMap=(e=!1)=>{let t=new kh;return this.getFieldEntities(e).forEach(e=>{let n=e.getNamePath();t.set(n,e)}),t};getFieldEntitiesForNamePathList=(e,t=!1)=>{if(!e)return this.getFieldEntities(!0);let n=this.getFieldsMap(!0);return t?e.flatMap(e=>{let t=lh(e),r=n.getAsPrefix(t);return r.length?r:[{INVALIDATE_NAME_PATH:t}]}):e.map(e=>{let t=lh(e);return n.get(t)||{INVALIDATE_NAME_PATH:lh(e)}})};getFieldsValue=(e,t)=>{this.warningUnhooked();let n,r;if(e===!0||Array.isArray(e)?(n=e,r=t):e&&typeof e==`object`&&(r=e.filter),n===!0&&!r)return this.store;let i=this.getFieldEntitiesForNamePathList(Array.isArray(n)?n:null,!0),a=[],o=[];i.forEach(e=>{let t=e.INVALIDATE_NAME_PATH||e.getNamePath();if(e.isList?.()){o.push(t);return}if(!r)a.push(t);else{let n=`getMeta`in e?e.getMeta():null;r(n)&&a.push(t)}});let s=uh(this.store,a.map(lh));return o.forEach(e=>{H(s,e)||(s=W(s,e,[]))}),s};getFieldValue=e=>{this.warningUnhooked();let t=lh(e);return H(this.store,t)};getFieldsError=e=>(this.warningUnhooked(),this.getFieldEntitiesForNamePathList(e).map((t,n)=>t&&!t.INVALIDATE_NAME_PATH?{name:t.getNamePath(),errors:t.getErrors(),warnings:t.getWarnings()}:{name:lh(e[n]),errors:[],warnings:[]}));getFieldError=e=>{this.warningUnhooked();let t=lh(e);return this.getFieldsError([t])[0].errors};getFieldWarning=e=>{this.warningUnhooked();let t=lh(e);return this.getFieldsError([t])[0].warnings};isFieldsTouched=(...e)=>{this.warningUnhooked();let[t,n]=e,r,i=!1;e.length===0?r=null:e.length===1?Array.isArray(t)?(r=t.map(lh),i=!1):(r=null,i=t):(r=t.map(lh),i=n);let a=this.getFieldEntities(!0),o=e=>e.isFieldTouched();if(!r)return i?a.every(e=>o(e)||e.isList()):a.some(o);let s=new kh;r.forEach(e=>{s.set(e,[])}),a.forEach(e=>{let t=e.getNamePath();r.forEach(n=>{n.every((e,n)=>t[n]===e)&&s.update(n,t=>[...t,e])})});let c=e=>e.some(o),l=s.map(({value:e})=>e);return i?l.every(c):l.some(c)};isFieldTouched=e=>(this.warningUnhooked(),this.isFieldsTouched([e]));isFieldsValidating=e=>{this.warningUnhooked();let t=this.getFieldEntities();if(!e)return t.some(e=>e.isFieldValidating());let n=e.map(lh);return t.some(e=>dh(n,e.getNamePath())&&e.isFieldValidating())};isFieldValidating=e=>(this.warningUnhooked(),this.isFieldsValidating([e]));resetWithFieldInitialValue=(e={})=>{let t=new kh,n=this.getFieldEntities(!0);n.forEach(e=>{let{initialValue:n}=e.props,r=e.getNamePath();if(n!==void 0){let i=t.get(r)||new Set;i.add({entity:e,value:n}),t.set(r,i)}});let r=n=>{n.forEach(n=>{let{initialValue:r}=n.props;if(r!==void 0){let r=n.getNamePath();if(this.getInitialValue(r)!==void 0)ce(!1,`Form already set 'initialValues' with path '${r.join(`.`)}'. Field can not overwrite it.`);else{let i=t.get(r);if(i&&i.size>1)ce(!1,`Multiple Field with path '${r.join(`.`)}' set 'initialValue'. Can not decide which one to pick.`);else if(i){let t=this.getFieldValue(r);!n.isListField()&&(!e.skipExist||t===void 0)&&this.updateStore(W(this.store,r,[...i][0].value))}}}})},i;e.entities?i=e.entities:e.namePathList?(i=[],e.namePathList.forEach(e=>{let n=t.get(e);n&&i.push(...[...n].map(e=>e.entity))})):i=n,r(i)};resetFields=e=>{this.warningUnhooked();let t=this.store;if(!e){this.updateStore(re(this.initialValues)),this.resetWithFieldInitialValue(),this.notifyObservers(t,null,{type:`reset`}),this.notifyWatch();return}let n=e.map(lh);n.forEach(e=>{let t=this.getInitialValue(e);this.updateStore(W(this.store,e,t))}),this.resetWithFieldInitialValue({namePathList:n}),this.notifyObservers(t,n,{type:`reset`}),this.notifyWatch(n)};setFields=e=>{this.warningUnhooked();let t=this.store,n=[];e.forEach(e=>{let{name:r,...i}=e,a=lh(r);n.push(a),`value`in i&&this.updateStore(W(this.store,a,i.value)),this.notifyObservers(t,[a],{type:`setField`,data:e})}),this.notifyWatch(n)};getFields=()=>this.getFieldEntities(!0).map(e=>{let t=e.getNamePath(),n={...e.getMeta(),name:t,value:this.getFieldValue(t)};return Object.defineProperty(n,`originRCField`,{value:!0}),n});initEntityValue=e=>{let{initialValue:t}=e.props;if(t!==void 0){let n=e.getNamePath();H(this.store,n)===void 0&&this.updateStore(W(this.store,n,t))}};isMergedPreserve=e=>(e===void 0?this.preserve:e)??!0;registerField=e=>{this.fieldEntities.push(e);let t=e.getNamePath();if(this.notifyWatch([t]),e.props.initialValue!==void 0){let t=this.store;this.resetWithFieldInitialValue({entities:[e],skipExist:!0}),this.notifyObservers(t,[e.getNamePath()],{type:`valueUpdate`,source:`internal`})}return(n,r,i=[])=>{if(this.fieldEntities=this.fieldEntities.filter(t=>t!==e),!this.isMergedPreserve(r)&&(!n||i.length>1)){let e=n?void 0:this.getInitialValue(t);if(t.length&&this.getFieldValue(t)!==e&&this.fieldEntities.every(e=>!fh(e.getNamePath(),t))){let n=this.store;this.updateStore(W(n,t,e,!0)),this.notifyObservers(n,[t],{type:`remove`}),this.triggerDependenciesUpdate(n,t)}}this.notifyWatch([t])}};dispatch=e=>{switch(e.type){case`updateValue`:{let{namePath:t,value:n}=e;this.updateValue(t,n);break}case`validateField`:{let{namePath:t,triggerName:n}=e;this.validateFields([t],{triggerName:n});break}default:}};notifyObservers=(e,t,n)=>{if(this.subscribable){let r={...n,store:this.getFieldsValue(!0)};this.getFieldEntities().forEach(({onStoreChange:n})=>{n(e,t,r)})}else this.forceRootUpdate()};triggerDependenciesUpdate=(e,t)=>{let n=this.getDependencyChildrenFields(t);return n.length&&this.validateFields(n,{delayFrame:!0}),this.notifyObservers(e,n,{type:`dependenciesUpdate`,relatedFields:[t,...n]}),n};updateValue=(e,t)=>{let n=lh(e),r=this.store;this.updateStore(W(this.store,n,t)),this.notifyObservers(r,[n],{type:`valueUpdate`,source:`internal`}),this.notifyWatch([n]);let i=this.triggerDependenciesUpdate(r,n),{onValuesChange:a}=this.callbacks;if(a){let e=uh(this.store,[n]);a(e,W(this.getFieldsValue(),n,H(e,n)))}this.triggerOnFieldsChange([n,...i])};setFieldsValue=e=>{this.warningUnhooked();let t=this.store;if(e){let t=re(this.store,e);this.updateStore(t)}this.notifyObservers(t,null,{type:`valueUpdate`,source:`external`}),this.notifyWatch()};setFieldValue=(e,t)=>{this.setFields([{name:e,value:t,errors:[],warnings:[],touched:!0}])};getDependencyChildrenFields=e=>{let t=new Set,n=[],r=new kh;this.getFieldEntities().forEach(e=>{let{dependencies:t}=e.props;(t||[]).forEach(t=>{let n=lh(t);r.update(n,(t=new Set)=>(t.add(e),t))})});let i=e=>{(r.get(e)||new Set).forEach(e=>{if(!t.has(e)){t.add(e);let r=e.getNamePath();e.isFieldDirty()&&r.length&&(n.push(r),i(r))}})};return i(e),n};triggerOnFieldsChange=(e,t)=>{let{onFieldsChange:n}=this.callbacks;if(n){let r=this.getFields();if(t){let e=new kh;t.forEach(({name:t,errors:n})=>{e.set(t,n)}),r.forEach(t=>{t.errors=e.get(t.name)||t.errors})}let i=r.filter(({name:t})=>dh(e,t));i.length&&n(i,r)}};validateFields=(e,t)=>{this.warningUnhooked();let n,r;Array.isArray(e)||typeof e==`string`||typeof t==`string`?(n=e,r=t):r=e;let i=!!n,a=i?n.map(lh):[],o=[...a],s=[],c=String(Date.now()),l=new Set,{recursive:u,dirty:d}=r||{};this.getFieldEntities(!0).forEach(e=>{let t=e.getNamePath();if(i||((!e.isList()||!a.some(e=>fh(e,t,!0)))&&o.push(t),a.push(t)),!(!e.props.rules||!e.props.rules.length)&&!(d&&!e.isFieldDirty())&&(l.add(t.join(c)),!i||dh(a,t,u))){let n=e.validateRules({validateMessages:{...th,...this.validateMessages},...r});s.push(n.then(()=>({name:t,errors:[],warnings:[]})).catch(e=>{let n=[],r=[];return e.forEach?.(({rule:{warningOnly:e},errors:t})=>{e?r.push(...t):n.push(...t)}),n.length?Promise.reject({name:t,errors:n,warnings:r}):{name:t,errors:n,warnings:r}}))}});let f=Eh(s);this.lastValidatePromise=f,f.catch(e=>e).then(e=>{let t=e.map(({name:e})=>e);this.notifyObservers(this.store,t,{type:`validateFinish`}),this.triggerOnFieldsChange(t,e)});let p=f.then(()=>this.lastValidatePromise===f?Promise.resolve(this.getFieldsValue(o)):Promise.reject([])).catch(e=>{let t=e.filter(e=>e&&e.errors.length),n=t[0]?.errors?.[0];return Promise.reject({message:n,values:this.getFieldsValue(a),errorFields:t,outOfDate:this.lastValidatePromise!==f})});p.catch(e=>e);let m=a.filter(e=>l.has(e.join(c)));return this.triggerOnFieldsChange(m),p};submit=()=>{this.warningUnhooked(),this.validateFields().then(e=>{let{onFinish:t}=this.callbacks;if(t)try{t(e)}catch(e){console.error(e)}}).catch(e=>{let{onFinishFailed:t}=this.callbacks;t&&t(e)})}};function jh(e){let t=v.useRef(null),[,n]=v.useState({});return t.current||(e?t.current=e:t.current=new Ah(()=>{n({})}).getForm()),[t.current]}var Mh=v.createContext({triggerFormChange:()=>{},triggerFormFinish:()=>{},registerForm:()=>{},unregisterForm:()=>{}}),Nh=({validateMessages:e,onFormChange:t,onFormFinish:n,children:r})=>{let i=v.useContext(Mh),a=v.useRef({});return v.createElement(Mh.Provider,{value:{...i,validateMessages:{...i.validateMessages,...e},triggerFormChange:(e,n)=>{t&&t(e,{changedFields:n,forms:a.current}),i.triggerFormChange(e,n)},triggerFormFinish:(e,t)=>{n&&n(e,{values:t,forms:a.current}),i.triggerFormFinish(e,t)},registerForm:(e,t)=>{e&&(a.current={...a.current,[e]:t}),i.registerForm(e,t)},unregisterForm:e=>{let t={...a.current};delete t[e],a.current=t,i.unregisterForm(e)}}},r)};function Ph(){return Ph=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},Ph.apply(this,arguments)}var Fh=({name:e,initialValues:t,fields:n,form:r,preserve:i,children:a,component:o=`form`,validateMessages:s,validateTrigger:c=`onChange`,onValuesChange:l,onFieldsChange:u,onFinish:d,onFinishFailed:f,clearOnDestroy:p,...m},h)=>{let g=v.useRef(null),_=v.useContext(Mh),[y]=jh(r),{useSubscribe:b,setInitialValues:x,setCallbacks:S,setValidateMessages:C,setPreserve:w,destroyForm:T}=y.getInternalHooks(em);v.useImperativeHandle(h,()=>({...y,nativeElement:g.current})),v.useEffect(()=>(_.registerForm(e,y),()=>{_.unregisterForm(e)}),[_,y,e]),C({..._.validateMessages,...s}),S({onValuesChange:l,onFieldsChange:(t,...n)=>{_.triggerFormChange(e,t),u&&u(t,...n)},onFinish:t=>{_.triggerFormFinish(e,t),d&&d(t)},onFinishFailed:f}),w(i);let E=v.useRef(null);x(t,!E.current),E.current||=!0,v.useEffect(()=>()=>T(p),[]);let D,O=typeof a==`function`;D=O?a(y.getFieldsValue(!0),y):a,b(!O);let k=v.useRef(null);v.useEffect(()=>{ph(k.current||[],n||[])||y.setFields(n||[]),k.current=n},[n,y]);let A=v.useMemo(()=>({...y,validateTrigger:c}),[y,c]),j=v.createElement(rm.Provider,{value:null},v.createElement(nm.Provider,{value:A},D));return o===!1?j:v.createElement(o,Ph({},m,{ref:g,onSubmit:e=>{e.preventDefault(),e.stopPropagation(),y.submit()},onReset:e=>{e.preventDefault(),y.resetFields(),m.onReset?.(e)}}),j)};function Ih(e){try{return JSON.stringify(e)}catch{return Math.random()}}function Lh(...e){let[t,n={}]=e,r=am(n)?{form:n}:n,i=r.form,[a,o]=(0,v.useState)(()=>typeof t==`function`?t({}):void 0),s=(0,v.useMemo)(()=>Ih(a),[a]),c=(0,v.useRef)(s);c.current=s;let l=(0,v.useContext)(nm),u=i||l,d=u&&u._init,{getFieldsValue:f,getInternalHooks:p}=u,{registerWatch:m}=p(em),h=y((e,n)=>{let i=r.preserve?n??f(!0):e??f(),s=typeof t==`function`?t(i):H(i,lh(t));Ih(a)!==Ih(s)&&o(s)});return(0,v.useEffect)(()=>{d&&h()},[d,typeof t==`function`?t:JSON.stringify(t)]),(0,v.useEffect)(()=>{if(d)return m((e,t)=>{h(e,t)})},[d]),a}var Rh=v.forwardRef(Fh);Rh.FormProvider=Nh,Rh.Field=wh,Rh.List=Th,Rh.useForm=jh,Rh.useWatch=Lh;var zh=v.createContext({}),Bh=({children:e,status:t,override:n})=>{let r=v.useContext(zh),i=v.useMemo(()=>{let e={...r};return n&&delete e.isFormItemInput,t&&(delete e.status,delete e.hasFeedback,delete e.feedbackIcon),e},[t,n,r]);return v.createElement(zh.Provider,{value:i},e)},Vh=v.createContext(void 0),Hh=e=>{let{space:t,form:n,children:r}=e;if(!ic(r))return null;let i=r;return n&&(i=v.createElement(Bh,{override:!0,status:!0},i)),t&&(i=v.createElement(Fd,null,i)),i},Uh=e=>{if(b()&&window.document.documentElement){let t=Array.isArray(e)?e:[e],{documentElement:n}=window.document;return t.some(e=>e in n.style)}return!1},Wh=(e,t)=>{if(!Uh(e))return!1;let n=document.createElement(`div`),r=n.style[e];return n.style[e]=t,n.style[e]!==r};function Gh(e,t){return!Array.isArray(e)&&t!==void 0?Wh(e,t):Uh(e)}var Kh=()=>b()&&window.document.documentElement;function qh(e,t,n){return(0,v.useMemo)(()=>({trap:t??!0,focusTriggerAfterClose:n??!0,...e}),[e,t,n])}var Jh=e=>{let{prefixCls:t,className:n,style:r,size:i,shape:a}=e,o=Y({[`${t}-lg`]:i===`large`,[`${t}-sm`]:i===`small`}),s=Y({[`${t}-circle`]:a===`circle`,[`${t}-square`]:a===`square`,[`${t}-round`]:a===`round`}),c=v.useMemo(()=>ac(i)?{width:i,height:i,lineHeight:`${i}px`}:{},[i]);return v.createElement(`span`,{className:Y(t,o,s,n),style:{...c,...r}})},Yh=new Or(`ant-skeleton-loading`,{"0%":{backgroundPosition:`100% 50%`},"100%":{backgroundPosition:`0 50%`}}),Xh=e=>({height:e,lineHeight:X(e)}),Zh=e=>({width:e,...Xh(e)}),Qh=e=>({background:e.skeletonLoadingBackground,backgroundSize:`400% 100%`,animationName:Yh,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:`ease`,animationIterationCount:`infinite`}),$h=(e,t)=>({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal(),...Xh(e)}),eg=e=>{let{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:i,controlHeightSM:a}=e;return{[t]:{display:`inline-block`,verticalAlign:`top`,background:n,...Zh(r)},[`${t}${t}-circle`]:{borderRadius:`50%`},[`${t}${t}-lg`]:{...Zh(i)},[`${t}${t}-sm`]:{...Zh(a)}}},tg=e=>{let{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:i,controlHeightSM:a,gradientFromColor:o,calc:s}=e;return{[r]:{display:`inline-block`,verticalAlign:`top`,background:o,borderRadius:n,...$h(t,s)},[`${r}-lg`]:{...$h(i,s)},[`${r}-sm`]:{...$h(a,s)}}},ng=e=>{let{gradientFromColor:t,borderRadiusSM:n,imageSizeBase:r,calc:i}=e;return{display:`inline-flex`,alignItems:`center`,justifyContent:`center`,verticalAlign:`middle`,background:t,borderRadius:n,...Zh(i(r).mul(2).equal())}},rg=e=>({[e.skeletonNodeCls]:{...ng(e)}}),ig=e=>{let{skeletonImageCls:t,imageSizeBase:n,calc:r}=e;return{[t]:{...ng(e),[`${t}-path`]:{fill:`#bfbfbf`},[`${t}-svg`]:{...Zh(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%`}}},ag=(e,t,n)=>{let{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:`50%`},[`${n}${r}-round`]:{borderRadius:t}}},og=(e,t)=>({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal(),...Xh(e)}),sg=e=>{let{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:i,controlHeightSM:a,gradientFromColor:o,calc:s}=e;return{[n]:{display:`inline-block`,verticalAlign:`top`,background:o,borderRadius:t,width:s(r).mul(2).equal(),minWidth:s(r).mul(2).equal(),...og(r,s)},...ag(e,r,n),[`${n}-lg`]:{...og(i,s)},...ag(e,i,`${n}-lg`),[`${n}-sm`]:{...og(a,s)},...ag(e,a,`${n}-sm`)}},cg=e=>{let{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:i,skeletonButtonCls:a,skeletonInputCls:o,skeletonNodeCls:s,skeletonImageCls:c,controlHeight:l,controlHeightLG:u,controlHeightSM:d,gradientFromColor:f,padding:p,marginSM:m,borderRadius:h,titleHeight:g,blockRadius:_,paragraphLiHeight:v,controlHeightXS:y,paragraphMarginTop:b}=e;return{[t]:{display:`table`,width:`100%`,[`${t}-header`]:{display:`table-cell`,paddingInlineEnd:p,verticalAlign:`top`,[n]:{display:`inline-block`,verticalAlign:`top`,background:f,...Zh(l)},[`${n}-circle`]:{borderRadius:`50%`},[`${n}-lg`]:{...Zh(u)},[`${n}-sm`]:{...Zh(d)}},[`${t}-section`]:{display:`table-cell`,width:`100%`,verticalAlign:`top`,[r]:{width:`100%`,height:g,background:f,borderRadius:_,[`+ ${i}`]:{marginBlockStart:d}},[i]:{padding:0,"> li":{width:`100%`,height:v,listStyle:`none`,background:f,borderRadius:_,"+ li":{marginBlockStart:y}}},[`${i}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:`61%`}},[`&-round ${t}-section`]:{[`${r}, ${i} > li`]:{borderRadius:h}}},[`${t}-with-avatar ${t}-section`]:{[r]:{marginBlockStart:m,[`+ ${i}`]:{marginBlockStart:b}}},[`${t}${t}-element`]:{display:`inline-block`,width:`auto`,...sg(e),...eg(e),...tg(e),...rg(e),...ig(e)},[`${t}${t}-block`]:{width:`100%`,[a]:{width:`100%`},[o]:{width:`100%`}},[`${t}${t}-active`]:{[`
152
152
  ${r},
153
153
  ${i} > li,
154
154
  ${n},
@@ -156,50 +156,50 @@ html body {
156
156
  ${o},
157
157
  ${s},
158
158
  ${c}
159
- `]:{...Zh(e)}}}},cg=Ja(`Skeleton`,e=>{let{componentCls:t,calc:n}=e;return sg(si(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonNodeCls:`${t}-node`,skeletonImageCls:`${t}-image`,imageSizeBase:n(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:`1.4s`}))},e=>{let{colorFillContent:t,colorFill:n}=e,r=t,i=n;return{color:r,colorGradientEnd:i,gradientFromColor:r,gradientToColor:i,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},{deprecatedTokens:[[`color`,`gradientFromColor`],[`colorGradientEnd`,`gradientToColor`]]}),lg=e=>{let{prefixCls:t,className:n,classNames:r,rootClassName:i,active:a,style:o,styles:s,shape:c=`circle`,size:l,...u}=e,{getPrefixCls:d}=v.useContext(Je),f=d(`skeleton`,t),[p,m]=cg(f),h=Ad(e=>l??e),g=Y(f,`${f}-element`,{[`${f}-active`]:a},r?.root,n,i,p,m);return v.createElement(`div`,{className:g,style:s?.root},v.createElement(qh,{prefixCls:`${f}-avatar`,className:r?.content,style:{...s?.content,...o},shape:c,size:h,...u}))},ug=e=>{let{prefixCls:t,className:n,rootClassName:r,classNames:i,active:a,style:o,styles:s,block:c=!1,size:l,...u}=e,{getPrefixCls:d}=v.useContext(Je),f=d(`skeleton`,t),[p,m]=cg(f),h=Ad(e=>l??e),g=Y(f,`${f}-element`,{[`${f}-active`]:a,[`${f}-block`]:c},i?.root,n,r,p,m);return v.createElement(`div`,{className:g,style:s?.root},v.createElement(qh,{prefixCls:`${f}-button`,className:i?.content,style:{...s?.content,...o},size:h,...u}))},dg=e=>{let{prefixCls:t,className:n,classNames:r,rootClassName:i,internalClassName:a,style:o,styles:s,active:c,children:l}=e,{getPrefixCls:u}=v.useContext(Je),d=u(`skeleton`,t),[f,p]=cg(d),m=Y(d,`${d}-element`,{[`${d}-active`]:c},f,r?.root,n,i,p);return v.createElement(`div`,{className:m,style:s?.root},v.createElement(`div`,{className:Y(r?.content,a||`${d}-node`),style:{...s?.content,...o}},l))},fg=e=>{let{getPrefixCls:t}=v.useContext(Je),n=t(`skeleton`,e.prefixCls);return v.createElement(dg,{...e,internalClassName:`${n}-image`},v.createElement(`svg`,{viewBox:`0 0 1098 1024`,xmlns:`http://www.w3.org/2000/svg`,className:`${n}-image-svg`},v.createElement(`title`,null,`Image placeholder`),v.createElement(`path`,{d:`M365.7 329.1q0 45.8-32 77.7t-77.7 32-77.7-32-32-77.7 32-77.6 77.7-32 77.7 32 32 77.6M951 548.6v256H146.3V694.9L329 512l91.5 91.4L713 311zm54.8-402.3H91.4q-7.4 0-12.8 5.4T73 164.6v694.8q0 7.5 5.5 12.9t12.8 5.4h914.3q7.5 0 12.9-5.4t5.4-12.9V164.6q0-7.5-5.4-12.9t-12.9-5.4m91.4 18.3v694.8q0 37.8-26.8 64.6t-64.6 26.9H91.4q-37.7 0-64.6-26.9T0 859.4V164.6q0-37.8 26.8-64.6T91.4 73h914.3q37.8 0 64.6 26.9t26.8 64.6`,className:`${n}-image-path`})))},pg=e=>{let{prefixCls:t,className:n,classNames:r,rootClassName:i,active:a,block:o,style:s,styles:c,size:l,...u}=e,{getPrefixCls:d}=v.useContext(Je),f=d(`skeleton`,t),[p,m]=cg(f),h=Ad(e=>l??e),g=Y(f,`${f}-element`,{[`${f}-active`]:a,[`${f}-block`]:o},r?.root,n,i,p,m);return v.createElement(`div`,{className:g,style:c?.root},v.createElement(qh,{prefixCls:`${f}-input`,className:r?.content,style:{...c?.content,...s},size:h,...u}))},mg=(e,t)=>{let{width:n,rows:r=2}=t;if(Array.isArray(n))return n[e];if(r-1===e)return n},hg=e=>{let{prefixCls:t,className:n,style:r,rows:i=0}=e,a=Array.from({length:i}).map((t,n)=>v.createElement(`li`,{key:n,style:{width:mg(n,e)}}));return v.createElement(`ul`,{className:Y(t,n),style:r},a)},gg=({prefixCls:e,className:t,width:n,style:r})=>v.createElement(`h3`,{className:Y(e,t),style:{width:n,...r}});function _g(e){return sc(e)?e:{}}function vg(e,t){return e&&!t?{size:`large`,shape:`square`}:{size:`large`,shape:`circle`}}function yg(e,t){return!e&&t?{width:`38%`}:e&&t?{width:`50%`}:{}}function bg(e,t){let n={};return(!e||!t)&&(n.width=`61%`),!e&&t?n.rows=3:n.rows=2,n}var xg=e=>{let{prefixCls:t,loading:n,className:r,rootClassName:i,classNames:a,style:o,styles:s,children:c,avatar:l=!1,title:u=!0,paragraph:d=!0,active:f,round:p}=e,{getPrefixCls:m,direction:h,className:g,style:_,classNames:y,styles:b}=Ze(`skeleton`),x=m(`skeleton`,t),[S,C]=cg(x),w={...e,avatar:l,title:u,paragraph:d},[T,E]=Dc([y,a],[b,s],{props:w});if(n||!(`loading`in e)){let e=!!l,t=!!u,n=!!d,a;if(e){let e={className:T.avatar,prefixCls:`${x}-avatar`,...vg(t,n),..._g(l),style:E.avatar};a=v.createElement(`div`,{className:Y(T.header,`${x}-header`),style:E.header},v.createElement(qh,{...e}))}let s;if(t||n){let r;if(t){let t={className:T.title,prefixCls:`${x}-title`,...yg(e,n),..._g(u),style:E.title};r=v.createElement(gg,{...t})}let i;if(n){let n={className:T.paragraph,prefixCls:`${x}-paragraph`,...bg(e,t),..._g(d),style:E.paragraph};i=v.createElement(hg,{...n})}s=v.createElement(`div`,{className:Y(T.section,`${x}-section`),style:E.section},r,i)}let c=Y(x,{[`${x}-with-avatar`]:e,[`${x}-active`]:f,[`${x}-rtl`]:h===`rtl`,[`${x}-round`]:p},T.root,g,r,i,S,C);return v.createElement(`div`,{className:c,style:{...E.root,..._,...o}},a,s)}return c??null};xg.Button=ug,xg.Avatar=lg,xg.Input=pg,xg.Image=fg,xg.Node=dg;var Sg=xg;function Cg(){}var wg=v.createContext({add:Cg,remove:Cg});function Tg(e){let t=v.useContext(wg),n=v.useRef(null);return y(r=>{if(r){let i=e?r.querySelector(e):r;i&&(t.add(i),n.current=i)}else t.remove(n.current)})}var Eg=()=>{let{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=(0,v.useContext)(yp);return v.createElement(_p,{onClick:n,...e},t)},Dg=()=>{let{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:i}=(0,v.useContext)(yp);return v.createElement(_p,{...Vd(n),loading:e,onClick:i,...t},r)};function Og(e,t){return v.createElement(`span`,{className:`${e}-close-x`},t||v.createElement(Ao,{className:`${e}-close-icon`}))}var kg=e=>{let{okText:t,okType:n=`primary`,cancelText:r,confirmLoading:i,onOk:a,onCancel:o,okButtonProps:s,cancelButtonProps:c,footer:l}=e,[u]=ec(`Modal`,Qs()),d=t||u?.okText,f=r||u?.cancelText,p=v.useMemo(()=>({confirmLoading:i,okButtonProps:s,cancelButtonProps:c,okTextLocale:d,cancelTextLocale:f,okType:n,onOk:a,onCancel:o}),[i,s,c,d,f,n,a,o]),m;return typeof l==`function`||l===void 0?(m=v.createElement(v.Fragment,null,v.createElement(Eg,null),v.createElement(Dg,null)),typeof l==`function`&&(m=l(m,{OkBtn:Dg,CancelBtn:Eg})),m=v.createElement(bp,{value:p},m)):m=l,v.createElement(fu,{disabled:!1},m)},Ag=e=>{let{componentCls:t}=e;return{[t]:{display:`flex`,flexFlow:`row wrap`,minWidth:0,"&::before, &::after":{display:`flex`},"&-no-wrap":{flexWrap:`nowrap`},"&-start":{justifyContent:`flex-start`},"&-center":{justifyContent:`center`},"&-end":{justifyContent:`flex-end`},"&-space-between":{justifyContent:`space-between`},"&-space-around":{justifyContent:`space-around`},"&-space-evenly":{justifyContent:`space-evenly`},"&-top":{alignItems:`flex-start`},"&-middle":{alignItems:`center`},"&-bottom":{alignItems:`flex-end`}}}},jg=e=>{let{componentCls:t}=e;return{[t]:{position:`relative`,maxWidth:`100%`,minHeight:1}}},Mg=(e,t)=>{let{componentCls:n,gridColumns:r,antCls:i}=e,[a,o]=Za(i,`grid`),[,s]=Za(i,`col`),c={};for(let e=r;e>=0;e--)e===0?(c[`${n}${t}-${e}`]={display:`none`},c[`${n}-push-${e}`]={insetInlineStart:`auto`},c[`${n}-pull-${e}`]={insetInlineEnd:`auto`},c[`${n}${t}-push-${e}`]={insetInlineStart:`auto`},c[`${n}${t}-pull-${e}`]={insetInlineEnd:`auto`},c[`${n}${t}-offset-${e}`]={marginInlineStart:0},c[`${n}${t}-order-${e}`]={order:0}):(c[`${n}${t}-${e}`]=[{[a(`display`)]:`block`,display:`block`},{display:o(`display`),flex:`0 0 ${e/r*100}%`,maxWidth:`${e/r*100}%`}],c[`${n}${t}-push-${e}`]={insetInlineStart:`${e/r*100}%`},c[`${n}${t}-pull-${e}`]={insetInlineEnd:`${e/r*100}%`},c[`${n}${t}-offset-${e}`]={marginInlineStart:`${e/r*100}%`},c[`${n}${t}-order-${e}`]={order:e});return c[`${n}${t}-flex`]={flex:s(`${t.replace(/-/,``)}-flex`)},c},Ng=(e,t)=>Mg(e,t),Pg=(e,t,n)=>({[`@media (min-width: ${X(t)})`]:{...Ng(e,n)}}),Fg=()=>({}),Ig=()=>({}),Lg=Ja(`Grid`,Ag,Fg),Rg=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin,xxxl:e.screenXXXLMin}),zg=Ja(`Grid`,e=>{let t=si(e,{gridColumns:24}),n=Rg(t);return delete n.xs,[jg(t),Ng(t,``),Ng(t,`-xs`),Object.keys(n).map(e=>Pg(t,n[e],`-${e}`)).reduce((e,t)=>({...e,...t}),{})]},Ig);function Bg(e){return{position:e,inset:0}}var Vg=e=>{let{componentCls:t,antCls:n}=e;return[{[`${t}-root`]:{[`${t}${n}-zoom-enter, ${t}${n}-zoom-appear`]:{transform:`none`,opacity:0,animationDuration:e.motionDurationSlow,userSelect:`none`},[`${t}${n}-zoom-leave ${t}-container`]:{pointerEvents:`none`},[`${t}-mask`]:{...Bg(`fixed`),zIndex:e.zIndexPopupBase,height:`100%`,backgroundColor:e.colorBgMask,pointerEvents:`none`,[`&${t}-mask-blur`]:{backdropFilter:`blur(4px)`},[`${t}-hidden`]:{display:`none`}},[`${t}-wrap`]:{...Bg(`fixed`),zIndex:e.zIndexPopupBase,overflow:`auto`,outline:0,WebkitOverflowScrolling:`touch`}}},{[`${t}-root`]:tf(e)}]},Hg=e=>{let{componentCls:t,motionDurationMid:n}=e;return[{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:`rtl`},[`${t}-centered`]:{textAlign:`center`,"&::before":{display:`inline-block`,width:0,height:`100%`,verticalAlign:`middle`,content:`""`},[t]:{top:0,display:`inline-block`,paddingBottom:0,textAlign:`start`,verticalAlign:`middle`}},[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{maxWidth:`calc(100vw - 16px)`,margin:`${X(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:{...za(e),pointerEvents:`none`,position:`relative`,top:100,width:`auto`,maxWidth:`calc(100vw - ${X(e.calc(e.margin).mul(2).equal())})`,margin:`0 auto`,"&:focus-visible":{borderRadius:e.borderRadiusLG,...Ha(e)},[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:`break-word`},[`${t}-container`]:{position:`relative`,backgroundColor:e.contentBg,backgroundClip:`padding-box`,border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:`auto`,padding:e.contentPadding},[`${t}-close`]:{position:`absolute`,top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:`none`,background:`transparent`,borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:`pointer`,transition:[`color`,`background-color`].map(e=>`${e} ${n}`).join(`, `),"&-x":{display:`flex`,fontSize:e.fontSizeLG,fontStyle:`normal`,lineHeight:X(e.modalCloseBtnSize),justifyContent:`center`,textTransform:`none`,textRendering:`auto`},"&:disabled":{pointerEvents:`none`},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:`none`},"&:active":{backgroundColor:e.colorBgTextActive},...Ua(e)},[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${X(e.borderRadiusLG)} ${X(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:`${X(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,
159
+ `]:{...Qh(e)}}}},lg=Ja(`Skeleton`,e=>{let{componentCls:t,calc:n}=e;return cg(si(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonNodeCls:`${t}-node`,skeletonImageCls:`${t}-image`,imageSizeBase:n(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:`1.4s`}))},e=>{let{colorFillContent:t,colorFill:n}=e,r=t,i=n;return{color:r,colorGradientEnd:i,gradientFromColor:r,gradientToColor:i,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},{deprecatedTokens:[[`color`,`gradientFromColor`],[`colorGradientEnd`,`gradientToColor`]]}),ug=e=>{let{prefixCls:t,className:n,classNames:r,rootClassName:i,active:a,style:o,styles:s,shape:c=`circle`,size:l,...u}=e,{getPrefixCls:d}=v.useContext(Je),f=d(`skeleton`,t),[p,m]=lg(f),h=jd(e=>l??e),g=Y(f,`${f}-element`,{[`${f}-active`]:a},r?.root,n,i,p,m);return v.createElement(`div`,{className:g,style:s?.root},v.createElement(Jh,{prefixCls:`${f}-avatar`,className:r?.content,style:{...s?.content,...o},shape:c,size:h,...u}))},dg=e=>{let{prefixCls:t,className:n,rootClassName:r,classNames:i,active:a,style:o,styles:s,block:c=!1,size:l,...u}=e,{getPrefixCls:d}=v.useContext(Je),f=d(`skeleton`,t),[p,m]=lg(f),h=jd(e=>l??e),g=Y(f,`${f}-element`,{[`${f}-active`]:a,[`${f}-block`]:c},i?.root,n,r,p,m);return v.createElement(`div`,{className:g,style:s?.root},v.createElement(Jh,{prefixCls:`${f}-button`,className:i?.content,style:{...s?.content,...o},size:h,...u}))},fg=e=>{let{prefixCls:t,className:n,classNames:r,rootClassName:i,internalClassName:a,style:o,styles:s,active:c,children:l}=e,{getPrefixCls:u}=v.useContext(Je),d=u(`skeleton`,t),[f,p]=lg(d),m=Y(d,`${d}-element`,{[`${d}-active`]:c},f,r?.root,n,i,p);return v.createElement(`div`,{className:m,style:s?.root},v.createElement(`div`,{className:Y(r?.content,a||`${d}-node`),style:{...s?.content,...o}},l))},pg=e=>{let{getPrefixCls:t}=v.useContext(Je),n=t(`skeleton`,e.prefixCls);return v.createElement(fg,{...e,internalClassName:`${n}-image`},v.createElement(`svg`,{viewBox:`0 0 1098 1024`,xmlns:`http://www.w3.org/2000/svg`,className:`${n}-image-svg`},v.createElement(`title`,null,`Image placeholder`),v.createElement(`path`,{d:`M365.7 329.1q0 45.8-32 77.7t-77.7 32-77.7-32-32-77.7 32-77.6 77.7-32 77.7 32 32 77.6M951 548.6v256H146.3V694.9L329 512l91.5 91.4L713 311zm54.8-402.3H91.4q-7.4 0-12.8 5.4T73 164.6v694.8q0 7.5 5.5 12.9t12.8 5.4h914.3q7.5 0 12.9-5.4t5.4-12.9V164.6q0-7.5-5.4-12.9t-12.9-5.4m91.4 18.3v694.8q0 37.8-26.8 64.6t-64.6 26.9H91.4q-37.7 0-64.6-26.9T0 859.4V164.6q0-37.8 26.8-64.6T91.4 73h914.3q37.8 0 64.6 26.9t26.8 64.6`,className:`${n}-image-path`})))},mg=e=>{let{prefixCls:t,className:n,classNames:r,rootClassName:i,active:a,block:o,style:s,styles:c,size:l,...u}=e,{getPrefixCls:d}=v.useContext(Je),f=d(`skeleton`,t),[p,m]=lg(f),h=jd(e=>l??e),g=Y(f,`${f}-element`,{[`${f}-active`]:a,[`${f}-block`]:o},r?.root,n,i,p,m);return v.createElement(`div`,{className:g,style:c?.root},v.createElement(Jh,{prefixCls:`${f}-input`,className:r?.content,style:{...c?.content,...s},size:h,...u}))},hg=(e,t)=>{let{width:n,rows:r=2}=t;if(Array.isArray(n))return n[e];if(r-1===e)return n},gg=e=>{let{prefixCls:t,className:n,style:r,rows:i=0}=e,a=Array.from({length:i}).map((t,n)=>v.createElement(`li`,{key:n,style:{width:hg(n,e)}}));return v.createElement(`ul`,{className:Y(t,n),style:r},a)},_g=({prefixCls:e,className:t,width:n,style:r})=>v.createElement(`h3`,{className:Y(e,t),style:{width:n,...r}});function vg(e){return sc(e)?e:{}}function yg(e,t){return e&&!t?{size:`large`,shape:`square`}:{size:`large`,shape:`circle`}}function bg(e,t){return!e&&t?{width:`38%`}:e&&t?{width:`50%`}:{}}function xg(e,t){let n={};return(!e||!t)&&(n.width=`61%`),!e&&t?n.rows=3:n.rows=2,n}var Sg=e=>{let{prefixCls:t,loading:n,className:r,rootClassName:i,classNames:a,style:o,styles:s,children:c,avatar:l=!1,title:u=!0,paragraph:d=!0,active:f,round:p}=e,{getPrefixCls:m,direction:h,className:g,style:_,classNames:y,styles:b}=Ze(`skeleton`),x=m(`skeleton`,t),[S,C]=lg(x),w={...e,avatar:l,title:u,paragraph:d},[T,E]=Dc([y,a],[b,s],{props:w});if(n||!(`loading`in e)){let e=!!l,t=!!u,n=!!d,a;if(e){let e={className:T.avatar,prefixCls:`${x}-avatar`,...yg(t,n),...vg(l),style:E.avatar};a=v.createElement(`div`,{className:Y(T.header,`${x}-header`),style:E.header},v.createElement(Jh,{...e}))}let s;if(t||n){let r;if(t){let t={className:T.title,prefixCls:`${x}-title`,...bg(e,n),...vg(u),style:E.title};r=v.createElement(_g,{...t})}let i;if(n){let n={className:T.paragraph,prefixCls:`${x}-paragraph`,...xg(e,t),...vg(d),style:E.paragraph};i=v.createElement(gg,{...n})}s=v.createElement(`div`,{className:Y(T.section,`${x}-section`),style:E.section},r,i)}let c=Y(x,{[`${x}-with-avatar`]:e,[`${x}-active`]:f,[`${x}-rtl`]:h===`rtl`,[`${x}-round`]:p},T.root,g,r,i,S,C);return v.createElement(`div`,{className:c,style:{...E.root,..._,...o}},a,s)}return c??null};Sg.Button=dg,Sg.Avatar=ug,Sg.Input=mg,Sg.Image=pg,Sg.Node=fg;var Cg=Sg;function wg(){}var Tg=v.createContext({add:wg,remove:wg});function Eg(e){let t=v.useContext(Tg),n=v.useRef(null);return y(r=>{if(r){let i=e?r.querySelector(e):r;i&&(t.add(i),n.current=i)}else t.remove(n.current)})}var Dg=()=>{let{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=(0,v.useContext)(bp);return v.createElement(vp,{onClick:n,...e},t)},Og=()=>{let{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:i}=(0,v.useContext)(bp);return v.createElement(vp,{...Hd(n),loading:e,onClick:i,...t},r)};function kg(e,t){return v.createElement(`span`,{className:`${e}-close-x`},t||v.createElement(Ao,{className:`${e}-close-icon`}))}var Ag=e=>{let{okText:t,okType:n=`primary`,cancelText:r,confirmLoading:i,onOk:a,onCancel:o,okButtonProps:s,cancelButtonProps:c,footer:l}=e,[u]=ec(`Modal`,Qs()),d=t||u?.okText,f=r||u?.cancelText,p=v.useMemo(()=>({confirmLoading:i,okButtonProps:s,cancelButtonProps:c,okTextLocale:d,cancelTextLocale:f,okType:n,onOk:a,onCancel:o}),[i,s,c,d,f,n,a,o]),m;return typeof l==`function`||l===void 0?(m=v.createElement(v.Fragment,null,v.createElement(Dg,null),v.createElement(Og,null)),typeof l==`function`&&(m=l(m,{OkBtn:Og,CancelBtn:Dg})),m=v.createElement(xp,{value:p},m)):m=l,v.createElement(fu,{disabled:!1},m)},jg=e=>{let{componentCls:t}=e;return{[t]:{display:`flex`,flexFlow:`row wrap`,minWidth:0,"&::before, &::after":{display:`flex`},"&-no-wrap":{flexWrap:`nowrap`},"&-start":{justifyContent:`flex-start`},"&-center":{justifyContent:`center`},"&-end":{justifyContent:`flex-end`},"&-space-between":{justifyContent:`space-between`},"&-space-around":{justifyContent:`space-around`},"&-space-evenly":{justifyContent:`space-evenly`},"&-top":{alignItems:`flex-start`},"&-middle":{alignItems:`center`},"&-bottom":{alignItems:`flex-end`}}}},Mg=e=>{let{componentCls:t}=e;return{[t]:{position:`relative`,maxWidth:`100%`,minHeight:1}}},Ng=(e,t)=>{let{componentCls:n,gridColumns:r,antCls:i}=e,[a,o]=Za(i,`grid`),[,s]=Za(i,`col`),c={};for(let e=r;e>=0;e--)e===0?(c[`${n}${t}-${e}`]={display:`none`},c[`${n}-push-${e}`]={insetInlineStart:`auto`},c[`${n}-pull-${e}`]={insetInlineEnd:`auto`},c[`${n}${t}-push-${e}`]={insetInlineStart:`auto`},c[`${n}${t}-pull-${e}`]={insetInlineEnd:`auto`},c[`${n}${t}-offset-${e}`]={marginInlineStart:0},c[`${n}${t}-order-${e}`]={order:0}):(c[`${n}${t}-${e}`]=[{[a(`display`)]:`block`,display:`block`},{display:o(`display`),flex:`0 0 ${e/r*100}%`,maxWidth:`${e/r*100}%`}],c[`${n}${t}-push-${e}`]={insetInlineStart:`${e/r*100}%`},c[`${n}${t}-pull-${e}`]={insetInlineEnd:`${e/r*100}%`},c[`${n}${t}-offset-${e}`]={marginInlineStart:`${e/r*100}%`},c[`${n}${t}-order-${e}`]={order:e});return c[`${n}${t}-flex`]={flex:s(`${t.replace(/-/,``)}-flex`)},c},Pg=(e,t)=>Ng(e,t),Fg=(e,t,n)=>({[`@media (min-width: ${X(t)})`]:{...Pg(e,n)}}),Ig=()=>({}),Lg=()=>({}),Rg=Ja(`Grid`,jg,Ig),zg=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin,xxxl:e.screenXXXLMin}),Bg=Ja(`Grid`,e=>{let t=si(e,{gridColumns:24}),n=zg(t);return delete n.xs,[Mg(t),Pg(t,``),Pg(t,`-xs`),Object.keys(n).map(e=>Fg(t,n[e],`-${e}`)).reduce((e,t)=>({...e,...t}),{})]},Lg);function Vg(e){return{position:e,inset:0}}var Hg=e=>{let{componentCls:t,antCls:n}=e;return[{[`${t}-root`]:{[`${t}${n}-zoom-enter, ${t}${n}-zoom-appear`]:{transform:`none`,opacity:0,animationDuration:e.motionDurationSlow,userSelect:`none`},[`${t}${n}-zoom-leave ${t}-container`]:{pointerEvents:`none`},[`${t}-mask`]:{...Vg(`fixed`),zIndex:e.zIndexPopupBase,height:`100%`,backgroundColor:e.colorBgMask,pointerEvents:`none`,[`&${t}-mask-blur`]:{backdropFilter:`blur(4px)`},[`${t}-hidden`]:{display:`none`}},[`${t}-wrap`]:{...Vg(`fixed`),zIndex:e.zIndexPopupBase,overflow:`auto`,outline:0,WebkitOverflowScrolling:`touch`}}},{[`${t}-root`]:nf(e)}]},Ug=e=>{let{componentCls:t,motionDurationMid:n}=e;return[{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:`rtl`},[`${t}-centered`]:{textAlign:`center`,"&::before":{display:`inline-block`,width:0,height:`100%`,verticalAlign:`middle`,content:`""`},[t]:{top:0,display:`inline-block`,paddingBottom:0,textAlign:`start`,verticalAlign:`middle`}},[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{maxWidth:`calc(100vw - 16px)`,margin:`${X(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:{...za(e),pointerEvents:`none`,position:`relative`,top:100,width:`auto`,maxWidth:`calc(100vw - ${X(e.calc(e.margin).mul(2).equal())})`,margin:`0 auto`,"&:focus-visible":{borderRadius:e.borderRadiusLG,...Ha(e)},[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:`break-word`},[`${t}-container`]:{position:`relative`,backgroundColor:e.contentBg,backgroundClip:`padding-box`,border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:`auto`,padding:e.contentPadding},[`${t}-close`]:{position:`absolute`,top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:`none`,background:`transparent`,borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:`pointer`,transition:[`color`,`background-color`].map(e=>`${e} ${n}`).join(`, `),"&-x":{display:`flex`,fontSize:e.fontSizeLG,fontStyle:`normal`,lineHeight:X(e.modalCloseBtnSize),justifyContent:`center`,textTransform:`none`,textRendering:`auto`},"&:disabled":{pointerEvents:`none`},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:`none`},"&:active":{backgroundColor:e.colorBgTextActive},...Ua(e)},[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${X(e.borderRadiusLG)} ${X(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:`${X(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,
160
160
  ${t}-body,
161
- ${t}-confirm-body-wrapper`]:{display:`flex`,flexDirection:`column`,flex:`auto`},[`${t}-confirm-body`]:{marginBottom:`auto`}}}]},Ug=e=>{let{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:`rtl`,[`${t}-confirm-body`]:{direction:`rtl`}}}}},Wg=e=>{let{componentCls:t}=e,n=Rg(e),r={...n};delete r.xs;let i=`--${t.replace(`.`,``)}-`,a=Object.keys(r).map(e=>({[`@media (min-width: ${X(r[e])})`]:{width:`var(${i}${e}-width)`}}));return{[`${t}-root`]:{[t]:[].concat(ze(Object.keys(n).map((e,t)=>{let r=Object.keys(n)[t-1];return r?{[`${i}${e}-width`]:`var(${i}${r}-width)`}:null})),[{width:`var(${i}xs-width)`}],ze(a))}}},Gg=e=>{let t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return si(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()})},Kg=e=>({footerBg:`transparent`,headerBg:`transparent`,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${X(e.paddingMD)} ${X(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${X(e.padding)} ${X(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${X(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:`none`,headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${X(e.paddingXS)} ${X(e.padding)}`:0,footerBorderTop:e.wireframe?`${X(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:`none`,footerBorderRadius:e.wireframe?`0 0 ${X(e.borderRadiusLG)} ${X(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${X(e.padding*2)} ${X(e.padding*2)} ${X(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM,mask:!0}),qg=Ja(`Modal`,e=>{let t=Gg(e);return[Hg(t),Ug(t),Vg(t),Ff(t,`zoom`),Wg(t)]},Kg,{unitless:{titleLineHeight:!0}}),Jg;Gh()&&document.documentElement.addEventListener(`click`,e=>{Jg={x:e.pageX,y:e.pageY},setTimeout(()=>{Jg=null},100)},!0);var Yg=e=>{let{prefixCls:t,className:n,rootClassName:r,open:i,wrapClassName:a,centered:o,getContainer:s,style:c,width:l=520,footer:u,classNames:d,styles:f,children:p,loading:m,confirmLoading:h,zIndex:g,mousePosition:_,onOk:y,onCancel:b,okButtonProps:x,cancelButtonProps:S,destroyOnHidden:C,destroyOnClose:w,panelRef:T=null,closable:E,mask:D,modalRender:O,maskClosable:k,focusTriggerAfterClose:A,focusable:j,...M}=e,{getPopupContainer:N,getPrefixCls:P,direction:F,className:L,style:R,classNames:z,styles:B,centered:V,cancelButtonProps:H,okButtonProps:U,mask:W}=Ze(`modal`),{modal:ee}=v.useContext(Je),[te,G]=v.useMemo(()=>typeof E==`boolean`?[void 0,void 0]:[E?.afterClose,E?.onClose],[E]),ne=P(`modal`,t),re=P(),[ie,K,q]=bc(D,W,ne,k),ae=Kh(j,ie,A),oe=e=>{h||(b?.(e),G?.())},se=e=>{y?.(e),G?.()},J=Yc(ne),[ce,le]=qg(ne,J),ue=Y(a,{[`${ne}-centered`]:o??V,[`${ne}-wrap-rtl`]:F===`rtl`}),de=u!==null&&!m?v.createElement(kg,{...e,okButtonProps:{...U,...x},onOk:se,cancelButtonProps:{...H,...S},onCancel:oe}):null,[fe,pe,me,he]=_c(dc(e),dc(ee),{closable:!0,closeIcon:v.createElement(Ao,{className:`${ne}-close-icon`}),closeIconRender:e=>Og(ne,e)}),ge=fe?{disabled:me,closeIcon:pe,afterClose:te,...he}:!1,_e=O?e=>v.createElement(`div`,{className:`${ne}-render`},O(e)):void 0,ve=I(T,Tg(`.${ne}-${O?`render`:`container`}`)),[ye,be]=Lc(`Modal`,g),xe={...e,width:l,panelRef:T,focusTriggerAfterClose:ae.focusTriggerAfterClose,focusable:ae,mask:ie,maskClosable:q,zIndex:ye},[Se,Ce]=Dc([z,d,K],[B,f],{props:xe}),[we,Te]=v.useMemo(()=>sc(l)?[void 0,l]:[l,void 0],[l]),Ee=v.useMemo(()=>{let e={};return Te&&Object.keys(Te).forEach(t=>{let n=Te[t];ic(n)&&(e[`--${ne}-${t}-width`]=ac(n)?`${n}px`:n)}),e},[ne,Te]);return v.createElement(Vh,{form:!0,space:!0},v.createElement(jc.Provider,{value:be},v.createElement(Qp,{width:we,...M,zIndex:ye,getContainer:s===void 0?N:s,prefixCls:ne,rootClassName:Y(ce,r,le,J,Se.root),rootStyle:Ce.root,footer:de,visible:i,mousePosition:_??Jg,onClose:oe,closable:ge,closeIcon:pe,transitionName:bd(re,`zoom`,e.transitionName),maskTransitionName:bd(re,`fade`,e.maskTransitionName),mask:ie,maskClosable:q,className:Y(ce,n,L),style:{...R,...c,...Ee},classNames:{...Se,wrapper:Y(Se.wrapper,ue)},styles:Ce,panelRef:ve,destroyOnHidden:C??w,modalRender:_e,focusTriggerAfterClose:ae.focusTriggerAfterClose,focusTrap:ae.trap},m?v.createElement(Sg,{active:!0,title:!1,paragraph:{rows:4},className:`${ne}-body-skeleton`}):p)))},Xg=e=>{let{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:i,fontSize:a,lineHeight:o,modalTitleHeight:s,fontHeight:c,confirmBodyPadding:l}=e,u=`${t}-confirm`;return{[u]:{"&-rtl":{direction:`rtl`},[`${e.antCls}-modal-header`]:{display:`none`},[`${u}-body-wrapper`]:{...Va()},[`&${t} ${t}-body`]:{padding:l},[`${u}-body`]:{display:`flex`,flexWrap:`nowrap`,alignItems:`start`,[`> ${e.iconCls}`]:{flex:`none`,fontSize:i,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(c).sub(i).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(s).sub(i).equal()).div(2).equal()}},[`${u}-paragraph`]:{display:`flex`,flexDirection:`column`,flex:`auto`,rowGap:e.marginXS,maxWidth:`calc(100% - ${X(e.marginSM)})`},[`${u}-body-no-icon ${u}-paragraph`]:{maxWidth:`100%`},[`${e.iconCls} + ${u}-paragraph`]:{maxWidth:`calc(100% - ${X(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${u}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},[`${u}-container`]:{color:e.colorText,fontSize:a,lineHeight:o},[`${u}-btns`]:{textAlign:`end`,marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${u}-error ${u}-body > ${e.iconCls}`]:{color:e.colorError},[`${u}-warning ${u}-body > ${e.iconCls},
162
- ${u}-confirm ${u}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${u}-info ${u}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${u}-success ${u}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},Zg=Xa([`Modal`,`confirm`],e=>Xg(Gg(e)),Kg,{order:-1e3}),Qg=e=>{let{prefixCls:t,icon:n,okText:r,cancelText:i,confirmPrefixCls:a,type:o,okCancel:s,footer:c,locale:l,autoFocusButton:u,focusable:d,...f}=e,p=n;if(!n&&n!==null)switch(o){case`info`:p=v.createElement(Io,null);break;case`success`:p=v.createElement(wo,null);break;case`error`:p=v.createElement(Do,null);break;default:p=v.createElement(No,null)}let m=s??o===`confirm`,h=v.useMemo(()=>{let e=d?.autoFocusButton||u;return e||e===null?e:`ok`},[u,d?.autoFocusButton]),[g]=ec(`Modal`),_=l||g,y=r||(m?_?.okText:_?.justOkText),b=i||_?.cancelText,{closable:x}=f,{onClose:S}=sc(x)?x:{},C=v.useMemo(()=>({autoFocusButton:h,cancelTextLocale:b,okTextLocale:y,mergedOkCancel:m,onClose:S,...f}),[h,b,y,m,S,f]),w=v.createElement(v.Fragment,null,v.createElement(xp,null),v.createElement(Sp,null)),T=ic(e.title)&&e.title!==``,E=ic(p),D=`${a}-body`;return v.createElement(`div`,{className:`${a}-body-wrapper`},v.createElement(`div`,{className:Y(D,{[`${D}-has-title`]:T,[`${D}-no-icon`]:!E})},p,v.createElement(`div`,{className:`${a}-paragraph`},T&&v.createElement(`span`,{className:`${a}-title`},e.title),v.createElement(`div`,{className:`${a}-content`},e.content))),c===void 0||typeof c==`function`?v.createElement(bp,{value:C},v.createElement(`div`,{className:`${a}-btns`},typeof c==`function`?c(w,{OkBtn:Sp,CancelBtn:xp}):w)):c,v.createElement(Zg,{prefixCls:t}))},$g=e=>{let{close:t,zIndex:n,maskStyle:r,direction:i,prefixCls:a,wrapClassName:o,rootPrefixCls:s,bodyStyle:c,closable:l=!1,onConfirm:u,styles:d,title:f,mask:p,maskClosable:m,okButtonProps:h,cancelButtonProps:g}=e,{cancelButtonProps:_,okButtonProps:y}=Ze(`modal`),b=`${a}-confirm`,x=e.width||416,S=e.style||{},C=Y(b,`${b}-${e.type}`,{[`${b}-rtl`]:i===`rtl`},e.className),w=v.useMemo(()=>{let e=yc(p,m);return e.closable??=!1,e},[p,m]),[,T]=La(),E=v.useMemo(()=>n===void 0?T.zIndexPopupBase+Nc:n,[n,T]);return v.createElement(Yg,{...e,className:C,wrapClassName:Y({[`${b}-centered`]:!!e.centered},o),onCancel:()=>{t?.({triggerCancel:!0}),u?.(!1)},title:f,footer:null,transitionName:bd(s||``,`zoom`,e.transitionName),maskTransitionName:bd(s||``,`fade`,e.maskTransitionName),mask:w,style:S,styles:{body:c,mask:r,...d},width:x,zIndex:E,closable:l},v.createElement(Qg,{...e,confirmPrefixCls:b,okButtonProps:{...y,...h},cancelButtonProps:{..._,...g}}))},e_=e=>{let{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:i}=e;return v.createElement(ju,{prefixCls:t,iconPrefixCls:n,direction:r,theme:i},v.createElement($g,{...e}))},t_=[],n_=``;function r_(){return n_}var i_=e=>{let{prefixCls:t,getContainer:n,direction:r}=e,i=Qs(),a=(0,v.useContext)(Je),o=r_()||a.getPrefixCls(),s=t||`${o}-modal`,c=n;return c===!1&&(c=void 0),v.createElement(e_,{...e,rootPrefixCls:o,prefixCls:s,iconPrefixCls:a.iconPrefixCls,theme:a.theme,direction:r??a.direction,locale:a.locale?.Modal??i,getContainer:c})};function a_(e){let t=ku(),n=document.createDocumentFragment(),r={...e,close:s,open:!0},i;function a(...t){t.some(e=>e?.triggerCancel)&&e.onCancel?.(()=>{},...t.slice(1));for(let e=0;e<t_.length;e++)if(t_[e]===s){t_.splice(e,1);break}pd(n).then(()=>{})}let o=e=>{clearTimeout(i),i=setTimeout(()=>{let r=t.getPrefixCls(void 0,r_()),i=t.getIconPrefixCls(),a=t.getTheme(),o=v.createElement(i_,{...e});fd(v.createElement(ju,{prefixCls:r,iconPrefixCls:i,theme:a},typeof t.holderRender==`function`?t.holderRender(o):o),n)})};function s(...t){r={...r,open:!1,afterClose:()=>{typeof e.afterClose==`function`&&e.afterClose(),a.apply(this,t)}},o(r)}function c(e){r=typeof e==`function`?e(r):{...r,...e},o(r)}return o(r),t_.push(s),{destroy:s,update:c}}function o_(e){return{...e,type:`warning`}}function s_(e){return{...e,type:`info`}}function c_(e){return{...e,type:`success`}}function l_(e){return{...e,type:`error`}}function u_(e){return{...e,type:`confirm`}}function d_({rootPrefixCls:e}){n_=e}var f_=v.forwardRef((e,t)=>{let{afterClose:n,config:r,...i}=e,[a,o]=v.useState(!0),[s,c]=v.useState(r),{direction:l,getPrefixCls:u}=v.useContext(Je),d=u(`modal`),f=u(),p=()=>{n(),s.afterClose?.()},m=(...e)=>{o(!1),e.some(e=>e?.triggerCancel)&&s.onCancel?.(()=>{},...e.slice(1))};v.useImperativeHandle(t,()=>({destroy:m,update:e=>{c(t=>{let n=typeof e==`function`?e(t):e;return{...t,...n}})}}));let h=s.okCancel??s.type===`confirm`,[g]=ec(`Modal`,qs.Modal);return v.createElement(e_,{prefixCls:d,rootPrefixCls:f,...s,close:m,open:a,afterClose:p,okText:s.okText||(h?g?.okText:g?.justOkText),direction:s.direction||l,cancelText:s.cancelText||g?.cancelText,...i})}),p_=0,m_=v.memo(v.forwardRef((e,t)=>{let[n,r]=Ac();return v.useImperativeHandle(t,()=>({patchElement:r}),[r]),v.createElement(v.Fragment,null,n)}));function h_(){let e=v.useRef(null),[t,n]=v.useState([]);v.useEffect(()=>{t.length&&(ze(t).forEach(e=>{e()}),n([]))},[t]);let r=v.useCallback(t=>function(r){p_+=1;let i=v.createRef(),a,o=new Promise(e=>{a=e}),s=!1,c,l=v.createElement(f_,{key:`modal-${p_}`,config:t(r),ref:i,afterClose:()=>{c?.()},isSilent:()=>s,onConfirm:e=>{a(e)}});return c=e.current?.patchElement(l),c&&t_.push(c),{destroy:()=>{function e(){i.current?.destroy()}i.current?e():n(t=>[].concat(ze(t),[e]))},update:e=>{function t(){i.current?.update(e)}i.current?t():n(e=>[].concat(ze(e),[t]))},then:e=>(s=!0,o.then(e))}},[]);return[v.useMemo(()=>({info:r(s_),success:r(c_),error:r(l_),warning:r(o_),confirm:r(u_)}),[r]),v.createElement(m_,{key:`modal-holder`,ref:e})]}var g_=e=>{let{componentCls:t,notificationMarginEdge:n,animationMaxHeight:r}=e,i=`${t}-notice`,a=new Or(`antNotificationFadeIn`,{"0%":{transform:`translate3d(100%, 0, 0)`,opacity:0},"100%":{transform:`translate3d(0, 0, 0)`,opacity:1}}),o=new Or(`antNotificationTopFadeIn`,{"0%":{top:-r,opacity:0},"100%":{top:0,opacity:1}}),s=new Or(`antNotificationBottomFadeIn`,{"0%":{bottom:e.calc(r).mul(-1).equal(),opacity:0},"100%":{bottom:0,opacity:1}}),c=new Or(`antNotificationLeftFadeIn`,{"0%":{transform:`translate3d(-100%, 0, 0)`,opacity:0},"100%":{transform:`translate3d(0, 0, 0)`,opacity:1}});return{[t]:{[`&${t}-top, &${t}-bottom`]:{marginInline:0,[i]:{marginInline:`auto auto`}},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:o}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:s}},[`&${t}-topRight, &${t}-bottomRight`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:a}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginRight:{value:0,_skip_check_:!0},marginLeft:{value:n,_skip_check_:!0},[i]:{marginInlineEnd:`auto`,marginInlineStart:0},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:c}}}}},__=[`top`,`topLeft`,`topRight`,`bottom`,`bottomLeft`,`bottomRight`],v_={topLeft:`left`,topRight:`right`,bottomLeft:`left`,bottomRight:`right`,top:`left`,bottom:`left`},y_=(e,t)=>{let{componentCls:n}=e;return{[`${n}-${t}`]:{[`&${n}-stack > ${n}-notice-wrapper`]:{[t.startsWith(`top`)?`top`:`bottom`]:0,[v_[t]]:{value:0,_skip_check_:!0}}}}},b_=e=>{let t={};for(let n=1;n<e.notificationStackLayer;n++)t[`&:nth-last-child(${n+1})`]={overflow:`hidden`,[`& > ${e.componentCls}-notice`]:{opacity:0,transition:`opacity ${e.motionDurationMid}`}};return{[`&:not(:nth-last-child(-n+${e.notificationStackLayer}))`]:{opacity:0,overflow:`hidden`,color:`transparent`,pointerEvents:`none`},...t}},x_=e=>{let t={};for(let n=1;n<e.notificationStackLayer;n++)t[`&:nth-last-child(${n+1})`]={background:e.colorBgBlur,backdropFilter:`blur(10px)`,"-webkit-backdrop-filter":`blur(10px)`};return t},S_=e=>{let{componentCls:t}=e;return{[`${t}-stack`]:{[`& > ${t}-notice-wrapper`]:{transition:`transform ${e.motionDurationSlow}, backdrop-filter 0s`,willChange:`transform, opacity`,position:`absolute`,...b_(e)}},[`${t}-stack:not(${t}-stack-expanded)`]:{[`& > ${t}-notice-wrapper`]:{...x_(e)}},[`${t}-stack${t}-stack-expanded`]:{[`& > ${t}-notice-wrapper`]:{"&:not(:nth-last-child(-n + 1))":{opacity:1,overflow:`unset`,color:`inherit`,pointerEvents:`auto`,[`& > ${e.componentCls}-notice`]:{opacity:1}},"&:after":{content:`""`,position:`absolute`,height:e.margin,width:`100%`,insetInline:0,bottom:e.calc(e.margin).mul(-1).equal(),background:`transparent`,pointerEvents:`auto`}}},...__.map(t=>y_(e,t)).reduce((e,t)=>({...e,...t}),{})}},C_=e=>{let{iconCls:t,componentCls:n,boxShadow:r,fontSizeLG:i,notificationMarginBottom:a,borderRadiusLG:o,colorSuccess:s,colorInfo:c,colorWarning:l,colorError:u,colorTextHeading:d,notificationBg:f,notificationPadding:p,notificationMarginEdge:m,progressBg:h,notificationProgressHeight:g,fontSize:_,lineHeight:v,width:y,notificationIconSize:b,colorText:x,colorSuccessBg:S,colorErrorBg:C,colorInfoBg:w,colorWarningBg:T,motionDurationMid:E}=e,D=`${n}-notice`;return{position:`relative`,marginBottom:a,marginInlineStart:`auto`,background:f,borderRadius:o,boxShadow:r,[D]:{padding:p,width:y,maxWidth:`calc(100vw - ${X(e.calc(m).mul(2).equal())})`,lineHeight:v,wordWrap:`break-word`,borderRadius:o,overflow:`hidden`,"&-success":S?{background:S}:{},"&-error":C?{background:C}:{},"&-info":w?{background:w}:{},"&-warning":T?{background:T}:{}},[`${D}-title`]:{marginBottom:e.marginXS,color:d,fontSize:i,lineHeight:e.lineHeightLG},[`${D}-description`]:{fontSize:_,color:x,marginTop:e.marginXS,"&:first-child":{marginTop:0,marginInlineEnd:e.marginSM}},[`${D}-closable ${D}-title`]:{paddingInlineEnd:e.paddingLG},[`${D}-with-icon ${D}-title`]:{marginBottom:e.marginXS,marginInlineStart:e.calc(e.marginSM).add(b).equal(),fontSize:i},[`${D}-with-icon ${D}-description`]:{marginInlineStart:e.calc(e.marginSM).add(b).equal(),fontSize:_},[`${D}-icon`]:{position:`absolute`,fontSize:b,lineHeight:1,[`&-success${t}`]:{color:s},[`&-info${t}`]:{color:c},[`&-warning${t}`]:{color:l},[`&-error${t}`]:{color:u}},[`${D}-close`]:{position:`absolute`,top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:`none`,width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:[`color`,`background-color`].map(e=>`${e} ${E}`).join(`, `),display:`flex`,alignItems:`center`,justifyContent:`center`,background:`none`,border:`none`,"&:hover":{color:e.colorIconHover,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},...Ua(e)},[`${D}-progress`]:{position:`absolute`,display:`block`,appearance:`none`,inlineSize:`calc(100% - ${X(o)} * 2)`,left:{_skip_check_:!0,value:o},right:{_skip_check_:!0,value:o},bottom:0,blockSize:g,border:0,"&, &::-webkit-progress-bar":{borderRadius:o,backgroundColor:`rgba(0, 0, 0, 0.04)`},"&::-moz-progress-bar":{background:h},"&::-webkit-progress-value":{borderRadius:o,background:h}},[`${D}-actions`]:{float:`right`,marginTop:e.marginSM}}},w_=e=>{let{componentCls:t,notificationMarginBottom:n,notificationMarginEdge:r,motionDurationMid:i,motionEaseInOut:a}=e,o=`${t}-notice`,s=new Or(`antNotificationFadeOut`,{"0%":{maxHeight:e.animationMaxHeight,marginBottom:n},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[t]:{...za(e),position:`fixed`,zIndex:e.zIndexPopup,marginRight:{value:r,_skip_check_:!0},[`${t}-hook-holder`]:{position:`relative`},[`${t}-fade-appear-prepare`]:{opacity:`0 !important`},[`${t}-fade-enter, ${t}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:a,animationFillMode:`both`,opacity:0,animationPlayState:`paused`},[`${t}-fade-leave`]:{animationTimingFunction:a,animationFillMode:`both`,animationDuration:i,animationPlayState:`paused`},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationPlayState:`running`},[`${t}-fade-leave${t}-fade-leave-active`]:{animationName:s,animationPlayState:`running`},"&-rtl":{direction:`rtl`,[`${o}-actions`]:{float:`left`}}}},{[t]:{[`${o}-wrapper`]:C_(e)}}]},T_=e=>({zIndexPopup:e.zIndexPopupBase+Nc+50,width:384,progressBg:`linear-gradient(90deg, ${e.colorPrimaryBorderHover}, ${e.colorPrimary})`,colorSuccessBg:void 0,colorErrorBg:void 0,colorInfoBg:void 0,colorWarningBg:void 0}),E_=e=>{let t=e.paddingMD,n=e.paddingLG;return si(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:n,notificationIconSize:e.calc(e.fontSizeLG).mul(e.lineHeightLG).equal(),notificationCloseButtonSize:e.calc(e.controlHeightLG).mul(.55).equal(),notificationMarginBottom:e.margin,notificationPadding:`${X(e.paddingMD)} ${X(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationStackLayer:3,notificationProgressHeight:2})},D_=Ja(`Notification`,e=>{let t=E_(e);return[w_(t),g_(t),S_(t)]},T_);function O_(e,t){return t===null||t===!1?null:t||v.createElement(Ao,{className:`${e}-close-icon`})}var k_={success:wo,info:Io,error:Do,warning:No},A_=e=>{let{prefixCls:t,icon:n,type:r,title:i,description:a,actions:o,role:s=`alert`,styles:c,classNames:l}=e,u=null;return n?u=v.createElement(`span`,{className:Y(`${t}-icon`,l.icon),style:c.icon},n):r&&(u=v.createElement(k_[r]||null,{className:Y(`${t}-icon`,l.icon,`${t}-icon-${r}`),style:c.icon})),v.createElement(`div`,{className:Y({[`${t}-with-icon`]:u}),role:s},u,i&&v.createElement(`div`,{className:Y(`${t}-title`,l.title),style:c.title},i),a&&v.createElement(`div`,{className:Y(`${t}-description`,l.description),style:c.description},a),o&&v.createElement(`div`,{className:Y(`${t}-actions`,l.actions),style:c.actions},o))};function j_(e,t,n){let r;switch(e){case`top`:r={left:`50%`,transform:`translateX(-50%)`,right:`auto`,top:t,bottom:`auto`};break;case`topLeft`:r={left:0,top:t,bottom:`auto`};break;case`topRight`:r={right:0,top:t,bottom:`auto`};break;case`bottom`:r={left:`50%`,transform:`translateX(-50%)`,right:`auto`,top:`auto`,bottom:n};break;case`bottomLeft`:r={left:0,top:`auto`,bottom:n};break;default:r={right:0,top:`auto`,bottom:n};break}return r}function M_(e){return{motionName:`${e}-fade`}}function N_(e,t,n){return e===void 0?t?.closeIcon===void 0?n?.closeIcon:t.closeIcon:e}var P_=24,F_=4.5,I_=`topRight`,L_=({children:e,prefixCls:t})=>{let n=Yc(t),[r,i]=D_(t,n);return v.createElement(Fu,{classNames:{list:Y(r,i,n)}},e)},R_=(e,{prefixCls:t,key:n})=>v.createElement(L_,{prefixCls:t,key:n},e),z_=v.forwardRef((e,t)=>{let{top:n,bottom:r,prefixCls:i,getContainer:a,maxCount:o,rtl:s,onAllRemoved:c,stack:l,duration:u=F_,pauseOnHover:d=!0,showProgress:f}=e,{getPrefixCls:p,getPopupContainer:m,direction:h}=Ze(`notification`),{notification:g}=(0,v.useContext)(Je),[,_]=La(),y=i||p(`notification`),b=(0,v.useMemo)(()=>ac(u)&&u>0?u:!1,[u]),[x,S]=Ku({prefixCls:y,style:e=>j_(e,n??P_,r??P_),className:()=>Y({[`${y}-rtl`]:s??h===`rtl`}),motion:()=>M_(y),closable:{closeIcon:O_(y)},duration:b,getContainer:()=>a?.()||m?.()||document.body,maxCount:o,pauseOnHover:d,showProgress:f,onAllRemoved:c,renderNotifications:R_,stack:l===!1?!1:{threshold:sc(l)?l?.threshold:void 0,offset:8,gap:_.margin}}),[C,w]=Dc([g?.classNames,e?.classNames],[g?.styles,e?.styles],{props:e});return v.useImperativeHandle(t,()=>({...x,prefixCls:y,notification:g,classNames:C,styles:w})),S});function B_(e){let t=v.useRef(null);he(`Notification`);let{notification:n}=v.useContext(Je);return[v.useMemo(()=>{let r=r=>{if(!t.current)return;let{open:i,prefixCls:a,notification:o,classNames:s,styles:c}=t.current,l=o?.className||{},u=o?.style||{},d=`${a}-notice`,{title:f,message:p,description:m,icon:h,type:g,btn:_,actions:y,className:b,style:x,role:S=`alert`,closeIcon:C,closable:w,classNames:T={},styles:E={},...D}=r,O=f??p,k=y??_,A=O_(d,N_(C,e,o)),[j,M,,N]=gc(dc({...e||{},...r}),dc(n),{closable:!0,closeIcon:A}),P=j?{onClose:sc(w)?w.onClose:void 0,closeIcon:M,...N}:!1,F=Ec(T,{props:r}),I=Ec(E,{props:r}),L=xc(void 0,s,F),R=Cc(c,I);return i({placement:e?.placement??I_,...D,content:v.createElement(A_,{prefixCls:d,icon:h,type:g,title:O,description:m,actions:k,role:S,classNames:L,styles:R}),className:Y({[`${d}-${g}`]:g},b,l,L.root),style:{...u,...R.root,...x},closable:P})},i={open:r,destroy:e=>{e===void 0?t.current?.destroy():t.current?.close(e)}};return[`success`,`info`,`warning`,`error`].forEach(e=>{i[e]=t=>r({...t,type:e})}),i},[e,n]),v.createElement(z_,{key:`notification-holder`,...e,ref:t})]}function V_(e){return B_(e)}var H_=v.createContext({}),U_=v.createContext({message:{},notification:{},modal:{}}),W_=Ja(`App`,e=>{let{componentCls:t,colorText:n,fontSize:r,lineHeight:i,fontFamily:a}=e;return{[t]:{color:n,fontSize:r,lineHeight:i,fontFamily:a,[`&${t}-rtl`]:{direction:`rtl`}}}},()=>({})),G_=e=>{let{prefixCls:t,children:n,className:r,rootClassName:i,message:a,notification:o,style:s,component:c=`div`}=e,{direction:l,getPrefixCls:u,className:d,style:f}=Ze(`app`),p=u(`app`,t),[m,h]=W_(p),g=Y(m,p,r,i,h,{[`${p}-rtl`]:l===`rtl`}),_=(0,v.useContext)(H_),y=v.useMemo(()=>({message:{..._.message,...a},notification:{..._.notification,...o}}),[a,o,_.message,_.notification]),[b,x]=ld(y.message),[S,C]=V_(y.notification),[w,T]=h_(),E=v.useMemo(()=>({message:b,notification:S,modal:w}),[b,S,w]);he(`App`)(!(h&&c===!1),`usage`,"When using cssVar, ensure `component` is assigned a valid React component string.");let D=c===!1?v.Fragment:c,O={className:Y(d,g),style:{...f,...s}};return v.createElement(U_.Provider,{value:E},v.createElement(H_.Provider,{value:y},v.createElement(D,{...c===!1?void 0:O},T,x,C,n)))},K_=()=>v.useContext(U_),q_=G_;q_.useApp=K_;function J_(e){return t=>v.createElement(ju,{theme:{token:{motion:!1,zIndexPopupBase:0}}},v.createElement(e,{...t}))}var Y_=(e,t,n,r,i)=>J_(a=>{let{prefixCls:o,style:s}=a,c=v.useRef(null),[l,u]=v.useState(0),[d,f]=v.useState(0),[p,m]=T(!1,a.open),{getPrefixCls:h}=v.useContext(Je),g=h(r||`select`,o);v.useEffect(()=>{if(m(!0),typeof ResizeObserver<`u`){let e=new ResizeObserver(e=>{let t=e[0].target;u(t.offsetHeight+8),f(t.offsetWidth)}),t=setInterval(()=>{let n=i?`.${i(g)}`:`.${g}-dropdown`,r=c.current?.querySelector(n);r&&(clearInterval(t),e.observe(r))},10);return()=>{clearInterval(t),e.disconnect()}}},[g]);let _={...a,style:{...s,margin:0},open:p,getPopupContainer:()=>c.current};n&&(_=n(_)),t&&(_={..._,[t]:{overflow:{adjustX:!1,adjustY:!1}}});let y={paddingBottom:l,position:`relative`,minWidth:d};return v.createElement(`div`,{ref:c,style:y},v.createElement(e,{..._}))}),X_=(e,t,n,r,i=!1,a,o)=>{let s=(0,v.useMemo)(()=>typeof n==`boolean`?{allowClear:n}:n&&typeof n==`object`?n:{allowClear:!1},[n]);return(0,v.useMemo)(()=>{let e=!i&&s.allowClear!==!1&&(t.length||a)&&!(o===`combobox`&&a===``);return{allowClear:e,clearIcon:e?s.clearIcon||r||`×`:null}},[s,r,i,t.length,a,o])},Z_=v.createContext(null);function Q_(){return v.useContext(Z_)}function $_(e=250){let t=v.useRef(null),n=v.useRef(null);v.useEffect(()=>()=>{window.clearTimeout(n.current)},[]);function r(r){(r||t.current===null)&&(t.current=r),window.clearTimeout(n.current),n.current=window.setTimeout(()=>{t.current=null},e)}return[()=>t.current,r]}function ev(e,t){return e.filter(e=>e).some(e=>e.contains(t)||e===t)}function tv(e,t,n,r){let i=y(i=>{if(r)return;let a=i.target;a.shadowRoot&&i.composed&&(a=i.composedPath()[0]||a),i._ori_target&&(a=i._ori_target),t&&!ev(e(),a)&&n(!1)});v.useEffect(()=>(window.addEventListener(`mousedown`,i),()=>window.removeEventListener(`mousedown`,i)),[i])}function nv(){return nv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nv.apply(this,arguments)}var rv=e=>{let t=e===!0?0:1;return{bottomLeft:{points:[`tl`,`bl`],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:`scroll`},bottomRight:{points:[`tr`,`br`],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:`scroll`},topLeft:{points:[`bl`,`tl`],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:`scroll`},topRight:{points:[`br`,`tr`],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:`scroll`}}},iv=v.forwardRef((e,t)=>{let{prefixCls:n,disabled:r,visible:i,children:a,popupElement:o,animation:s,transitionName:c,popupStyle:l,popupClassName:u,direction:d=`ltr`,placement:f,builtinPlacements:p,popupMatchSelectWidth:m,popupRender:h,popupAlign:g,getPopupContainer:_,empty:y,onPopupVisibleChange:b,onPopupMouseEnter:x,onPopupMouseDown:S,onPopupBlur:C,...w}=e,T=`${n}-dropdown`,E=o;h&&(E=h(o));let D=v.useMemo(()=>p||rv(m),[p,m]),O=s?`${T}-${s}`:c,k=typeof m==`number`,A=v.useMemo(()=>k?null:m===!1?`minWidth`:`width`,[m,k]),j=l;k&&(j={...l,width:m});let M=v.useRef(null);return v.useImperativeHandle(t,()=>({getPopupElement:()=>M.current?.popupElement})),v.createElement(ru,nv({},w,{showAction:b?[`click`]:[],hideAction:b?[`click`]:[],popupPlacement:f||(d===`rtl`?`bottomRight`:`bottomLeft`),builtinPlacements:D,prefixCls:T,popupMotion:{motionName:O},popup:v.createElement(`div`,{onMouseEnter:x,onMouseDown:S,onBlur:C},E),ref:M,stretch:A,popupAlign:g,popupVisible:i,getPopupContainer:_,popupClassName:Y(u,{[`${T}-empty`]:y}),popupStyle:j,onPopupVisibleChange:b}),a)});function av(e,t){let{key:n}=e,r;return`value`in e&&({value:r}=e),n??(r===void 0?`rc-index-key-${t}`:r)}function ov(e){return e!==void 0&&!Number.isNaN(e)}function sv(e,t){let{label:n,value:r,options:i,groupLabel:a}=e||{},o=n||(t?`children`:`label`);return{label:o,value:r||`value`,options:i||`options`,groupLabel:a||o}}function cv(e,{fieldNames:t,childrenAsData:n}={}){let r=[],{label:i,value:a,options:o,groupLabel:s}=sv(t,!1);function c(e,t){Array.isArray(e)&&e.forEach(e=>{if(t||!(o in e)){let n=e[a];r.push({key:av(e,r.length),groupOption:t,data:e,label:e[i],value:n})}else{let t=e[s];t===void 0&&n&&(t=e.label),r.push({key:av(e,r.length),group:!0,data:e,label:t}),c(e[o],!0)}})}return c(e,!1),r}function lv(e){let t={...e};return`props`in t||Object.defineProperty(t,`props`,{get(){return ce(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var uv=(e,t,n)=>{if(!t||!t.length)return null;let r=!1,i=(e,[t,...n])=>{if(!t)return[e];let a=e.split(t);return r||=a.length>1,a.reduce((e,t)=>[...e,...i(t,n)],[]).filter(Boolean)},a=i(e,t);return r?n===void 0?a:a.slice(0,n):null};function dv(e){let{visible:t,values:n}=e;return t?v.createElement(`span`,{"aria-live":`polite`,style:{width:0,height:0,position:`absolute`,overflow:`hidden`,opacity:0}},`${n.slice(0,50).map(({label:e,value:t})=>[`number`,`string`].includes(typeof e)?e:t).join(`, `)}`,n.length>50?`, ...`:null):null}var fv=e=>{let t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(null)},pv=(e,t=1)=>{if(t<=0){e();return}fv(()=>{pv(e,t-1)})};function mv(e,t,n,r){let[i,a]=(0,v.useState)(!1);(0,v.useEffect)(()=>{a(!0)},[]);let[o,s]=T(e,t),[c,l]=(0,v.useState)(!1),u=i?o:!1,d=r(u),f=(0,v.useRef)(0),p=y(e=>{n&&d!==e&&n(e),s(e)});return[u,d,y((e,t={})=>{let{cancelFun:n}=t;f.current+=1;let r=f.current,i=typeof e==`boolean`?e:!d;l(!i);function a(){r===f.current&&!n?.()&&(p(i),l(!1))}i?a():pv(()=>{a()})}),c]}function hv(e){let{children:t,...n}=e;return t?v.createElement(`div`,n,t):null}var gv=v.createContext(null);function _v(){return v.useContext(gv)}var vv=v.forwardRef((e,t)=>{let{onChange:n,onKeyDown:r,onBlur:i,style:a,syncWidth:o,value:s,className:c,autoComplete:l,...u}=e,{prefixCls:d,mode:f,onSearch:p,onSearchSubmit:m,onInputBlur:h,autoFocus:g,tokenWithEnter:_,placeholder:y,components:{input:b=`input`}}=_v(),{id:x,classNames:C,styles:w,open:T,activeDescendantId:E,role:D,disabled:O}=Q_()||{},k=Y(`${d}-input`,C?.input,c),A=v.useRef(!1),j=v.useRef(null),M=v.useRef(null);v.useImperativeHandle(t,()=>M.current);let N=e=>{let{value:t}=e.target;if(_&&j.current&&/[\r\n]/.test(j.current)){let e=j.current.replace(/[\r\n]+$/,``).replace(/\r\n/g,` `).replace(/[\r\n]/g,` `);t=t.replace(e,j.current)}j.current=null,p&&p(t,!0,A.current),n?.(e)},P=e=>{let{key:t}=e,{value:n}=e.currentTarget;t===`Enter`&&f===`tags`&&!T&&!A.current&&m&&m(n),r?.(e)},F=e=>{h?.(),i?.(e)},L=()=>{A.current=!0},R=e=>{if(A.current=!1,f!==`combobox`){let{value:t}=e.currentTarget;p?.(t,!0,!1)}},z=e=>{let{clipboardData:t}=e;j.current=t?.getData(`text`)||``},[B,V]=v.useState(void 0);S(()=>{let e=M.current;if(o&&e){e.style.width=`0px`;let t=e.scrollWidth;V(t),e.style.width=``}},[o,s]);let H={id:x,type:f===`combobox`?`text`:`search`,...u,ref:M,style:{...w?.input,...a,"--select-input-width":B},autoFocus:g,autoComplete:l||`off`,className:k,disabled:O,value:s||``,onChange:N,onKeyDown:P,onBlur:F,onPaste:z,onCompositionStart:L,onCompositionEnd:R,role:D||`combobox`,"aria-expanded":T||!1,"aria-haspopup":`listbox`,"aria-owns":T?`${x}_list`:void 0,"aria-autocomplete":`list`,"aria-controls":T?`${x}_list`:void 0,"aria-activedescendant":T?E:void 0};if(v.isValidElement(b)){let t=b.props||{},n={placeholder:e.placeholder||y,...H,...t};return Object.keys(t).forEach(e=>{let r=t[e];typeof r==`function`&&(n[e]=(...t)=>{r(...t),H[e]?.(...t)})}),n.ref=I(b.ref,H.ref),v.cloneElement(b,n)}let U=b;return v.createElement(U,H)});function yv(e){let{prefixCls:t,placeholder:n,displayValues:r}=_v(),{classNames:i,styles:a}=Q_(),{show:o=!0}=e;return r.length?null:v.createElement(`div`,{className:Y(`${t}-placeholder`,i?.placeholder),style:{visibility:o?`visible`:`hidden`,...a?.placeholder}},n)}var bv=v.createContext(null);function xv(e){return Array.isArray(e)?e:e===void 0?[]:[e]}typeof window<`u`&&window.document&&window.document.documentElement;function Sv(e){return e!=null}function Cv(e){return!e&&e!==0}function wv(e){return[`string`,`number`].includes(typeof e)}function Tv(e){let t;return e&&(wv(e.title)?t=e.title.toString():wv(e.label)&&(t=e.label.toString())),t}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)}var Dv=v.forwardRef(({inputProps:e},t)=>{let{prefixCls:n,searchValue:r,activeValue:i,displayValues:a,maxLength:o,mode:s,components:c}=_v(),{triggerOpen:l,title:u,showSearch:d,classNames:f,styles:p}=Q_(),m=v.useContext(bv),[h,g]=v.useState(!1),_=s===`combobox`,y=a[0],b=v.useMemo(()=>_&&i&&!h&&l?i:d?r:``,[_,i,h,l,r,d]),[x,S,C,w]=v.useMemo(()=>{let e,t,n;if(y&&m?.flattenOptions){let r=m.flattenOptions.find(e=>e.value===y.value);r?.data&&(e=r.data.className,t=r.data.style,n=Tv(r.data))}return y&&!n&&(n=Tv(y)),u!==void 0&&(n=u),[e,t,n,!!e||!!t]},[y,m?.flattenOptions,u]);v.useEffect(()=>{_&&g(!1)},[_,i]);let T=y&&y.label!==null&&y.label!==void 0&&String(y.label).trim()!==``,E=_&&c?.input?null:y?w?v.createElement(`div`,{className:Y(`${n}-content-value`,x),style:{...b?{visibility:`hidden`}:{},...S},title:C},y.label):y.label:v.createElement(yv,{show:!b});return v.createElement(`div`,{className:Y(`${n}-content`,T&&`${n}-content-has-value`,b&&`${n}-content-has-search-value`,w&&`${n}-content-has-option-style`,f?.content),style:p?.content,title:w?void 0:C},E,v.createElement(vv,Ev({ref:t},e,{value:b,maxLength:s===`combobox`?o:void 0,onChange:t=>{g(!0),e.onChange?.(t)}})))}),Ov=void 0;function kv(e,t){let{prefixCls:n,invalidate:r,item:i,renderItem:a,responsive:o,responsiveDisabled:s,registerSize:c,itemKey:l,className:u,style:d,children:f,display:p,order:m,component:h=`div`,...g}=e,_=o&&!p;function y(e){c(l,e)}v.useEffect(()=>()=>{y(null)},[]);let b=a&&i!==Ov?a(i,{index:m}):f,x;r||(x={opacity:+!_,height:_?0:Ov,overflowY:_?`hidden`:Ov,order:o?m:Ov,pointerEvents:_?`none`:Ov,position:_?`absolute`:Ov});let S={};_&&(S[`aria-hidden`]=!0);let C=v.createElement(h,qf({className:Y(!r&&n,u),style:{...x,...d}},S,g,{ref:t}),b);return o&&(C=v.createElement(Me,{onResize:({offsetWidth:e})=>{y(e)},disabled:s},C)),C}var Av=v.forwardRef(kv);function jv(e){if(typeof MessageChannel>`u`)Ge(e);else{let t=new MessageChannel;t.port1.onmessage=()=>e(),t.port2.postMessage(void 0)}}function Mv(){let e=v.useRef(null);return t=>{e.current||(e.current=[],jv(()=>{(0,bl.unstable_batchedUpdates)(()=>{e.current.forEach(e=>{e()}),e.current=null})})),e.current.push(t)}}function Nv(e,t){let[n,r]=v.useState(t);return[n,y(t=>{e(()=>{r(t)})})]}var Pv=v.createContext(null),Fv=v.forwardRef((e,t)=>{let n=v.useContext(Pv);if(!n){let{component:n=`div`,...r}=e;return v.createElement(n,qf({},r,{ref:t}))}let{className:r,...i}=n,{className:a,...o}=e;return v.createElement(Pv.Provider,{value:null},v.createElement(Av,qf({ref:t,className:Y(r,a)},i,o)))}),Iv=`responsive`,Lv=`invalidate`;function Rv(e){return`+ ${e.length} ...`}function zv(e,t){let{prefixCls:n=`rc-overflow`,data:r=[],renderItem:i,renderRawItem:a,itemKey:o,itemWidth:s=10,ssr:c,style:l,className:u,maxCount:d,renderRest:f,renderRawRest:p,prefix:m,suffix:h,component:g=`div`,itemComponent:_,onVisibleChange:y,...b}=e,x=c===`full`,C=Mv(),[w,T]=Nv(C,null),E=w||0,[D,O]=Nv(C,new Map),[k,A]=Nv(C,0),[j,M]=Nv(C,0),[N,P]=Nv(C,0),[F,I]=Nv(C,0),[L,R]=(0,v.useState)(null),[z,B]=(0,v.useState)(null),V=v.useMemo(()=>z===null&&x?2**53-1:z||0,[z,w]),[H,U]=(0,v.useState)(!1),W=`${n}-item`,ee=Math.max(k,j),te=d===Iv,G=r.length&&te,ne=d===Lv,re=G||typeof d==`number`&&r.length>d,ie=(0,v.useMemo)(()=>{let e=r;return G?e=w===null&&x?r:r.slice(0,Math.min(r.length,E/s)):typeof d==`number`&&(e=r.slice(0,d)),e},[r,s,w,d,G]),K=(0,v.useMemo)(()=>G?r.slice(V+1):r.slice(ie.length),[r,ie,G,V]),q=(0,v.useCallback)((e,t)=>typeof o==`function`?o(e):(o&&e?.[o])??t,[o]),ae=(0,v.useCallback)(i||(e=>e),[i]);function oe(e,t,n){z===e&&(t===void 0||t===L)||(B(e),n||(U(e<r.length-1),y?.(e)),t!==void 0&&R(t))}function se(e,t){T(t.clientWidth)}function J(e,t){O(n=>{let r=new Map(n);return t===null?r.delete(e):r.set(e,t),r})}function ce(e,t){M(t),A(j)}function le(e,t){P(t)}function ue(e,t){I(t)}function de(e){return D.get(q(ie[e],e))}S(()=>{if(E&&typeof ee==`number`&&ie){let e=N+F,t=ie.length,n=t-1;if(!t){oe(0,null);return}for(let r=0;r<t;r+=1){let t=de(r);if(x&&(t||=0),t===void 0){oe(r-1,void 0,!0);break}if(e+=t,n===0&&e<=E||r===n-1&&e+de(n)<=E){oe(n,null);break}else if(e+ee>E){oe(r-1,e-t-F+j);break}}h&&de(0)+F>E&&R(null)}},[E,D,j,N,F,q,ie]);let fe=H&&!!K.length,pe={};L!==null&&G&&(pe={position:`absolute`,top:0,insetInlineStart:L});let me={prefixCls:W,responsive:G,component:_,invalidate:ne},he=a?(e,t)=>{let n=q(e,t);return v.createElement(Pv.Provider,{key:n,value:{...me,order:t,item:e,itemKey:n,registerSize:J,display:t<=V}},a(e,t))}:(e,t)=>{let n=q(e,t);return v.createElement(Av,qf({},me,{order:t,key:n,item:e,renderItem:ae,itemKey:n,registerSize:J,display:t<=V}))},ge={order:fe?V:2**53-1,className:`${W}-rest`,registerSize:ce,display:fe},_e=f||Rv,ve=p?v.createElement(Pv.Provider,{value:{...me,...ge}},p(K)):v.createElement(Av,qf({},me,ge),typeof _e==`function`?_e(K):_e),ye=v.createElement(g,qf({className:Y(!ne&&n,u),style:l,ref:t},b),m&&v.createElement(Av,qf({},me,{responsive:te,responsiveDisabled:!G,order:-1,className:`${W}-prefix`,registerSize:le,display:!0}),m),ie.map(he),re?ve:null,h&&v.createElement(Av,qf({},me,{responsive:te,responsiveDisabled:!G,order:V,className:`${W}-suffix`,registerSize:ue,display:!0,style:pe}),h));return te?v.createElement(Me,{onResize:se,disabled:!G},ye):ye}var Bv=v.forwardRef(zv);Bv.Item=Fv,Bv.RESPONSIVE=Iv,Bv.INVALIDATE=Lv;var Vv=Bv,Hv=e=>{let{className:t,style:n,customizeIcon:r,customizeIconProps:i,children:a,onMouseDown:o,onClick:s}=e,c=typeof r==`function`?r(i):r;return v.createElement(`span`,{className:t,onMouseDown:e=>{e.preventDefault(),o?.(e)},style:{userSelect:`none`,WebkitUserSelect:`none`,...n},unselectable:`on`,onClick:s,"aria-hidden":!0},c===void 0?v.createElement(`span`,{className:Y(t.split(/\s+/).map(e=>`${e}-icon`))},a):c)};function Uv(){return Uv=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},Uv.apply(this,arguments)}function Wv(e){return e.key??e.value}var Gv=e=>{e.preventDefault(),e.stopPropagation()},Kv=v.forwardRef(function({inputProps:e},t){let{prefixCls:n,displayValues:r,searchValue:i,mode:a,onSelectorRemove:o,removeIcon:s}=_v(),{disabled:c,showSearch:l,triggerOpen:u,rawOpen:d,toggleOpen:f,autoClearSearchValue:p,tagRender:m,maxTagPlaceholder:h,maxTagTextLength:g,maxTagCount:_,classNames:y,styles:b}=Q_(),x=`${n}-selection-item`,S=i;!d&&a===`multiple`&&p!==!1&&(S=``);let C=l&&S||``,w=l&&!c,T=s??`×`,E=h??(e=>`+ ${e.length} ...`),D=m,O=e=>{f(e)},k=e=>{o?.(e)},A=(e,t,n,r,i)=>v.createElement(`span`,{title:Tv(e),className:Y(x,{[`${x}-disabled`]:n},y?.item),style:b?.item},v.createElement(`span`,{className:Y(`${x}-content`,y?.itemContent),style:b?.itemContent},t),r&&v.createElement(Hv,{className:Y(`${x}-remove`,y?.itemRemove),style:b?.itemRemove,onMouseDown:Gv,onClick:i,customizeIcon:T},`×`)),j=(e,t,n,r,i,a,o)=>v.createElement(`span`,{onMouseDown:e=>{Gv(e),O(!u)}},D({label:t,value:e,index:o?.index,disabled:n,closable:r,onClose:i,isMaxTag:!!a}));return v.createElement(Vv,{prefixCls:`${n}-content`,className:y?.content,style:b?.content,prefix:!r.length&&!C&&v.createElement(yv,null),data:r,renderItem:(e,t)=>{let{disabled:n,label:r,value:i}=e,a=!c&&!n,o=r;if(typeof g==`number`&&(typeof r==`string`||typeof r==`number`)){let e=String(o);e.length>g&&(o=`${e.slice(0,g)}...`)}let s=t=>{t&&t.stopPropagation(),k(e)};return typeof D==`function`?j(i,o,n,a,s,void 0,t):A(e,o,n,a,s)},renderRest:e=>{if(!r.length)return null;let t=typeof E==`function`?E(e):E;return typeof D==`function`?j(void 0,t,!1,!1,void 0,!0):A({title:t},t,!1)},suffix:v.createElement(vv,Uv({ref:t,disabled:c,readOnly:!w},e,{value:C||``,syncWidth:!0})),itemKey:Wv,maxCount:_})}),qv=v.forwardRef(function(e,t){let{multiple:n,onInputKeyDown:r,tabIndex:i}=_v(),a=Q_(),{showSearch:o}=a,s={...Ns(a,{aria:!0}),onKeyDown:r,readOnly:!o,tabIndex:i};return n?v.createElement(Kv,{ref:t,inputProps:s}):v.createElement(Dv,{ref:t,inputProps:s})});function Jv(e){return e&&![Z.ESC,Z.SHIFT,Z.BACKSPACE,Z.TAB,Z.WIN_KEY,Z.ALT,Z.META,Z.WIN_KEY_RIGHT,Z.CTRL,Z.SEMICOLON,Z.EQUALS,Z.CAPS_LOCK,Z.CONTEXT_MENU,Z.UP,Z.LEFT,Z.RIGHT,Z.F1,Z.F2,Z.F3,Z.F4,Z.F5,Z.F6,Z.F7,Z.F8,Z.F9,Z.F10,Z.F11,Z.F12].includes(e)}function Yv(){return Yv=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},Yv.apply(this,arguments)}var Xv=[`value`,`onChange`,`removeIcon`,`placeholder`,`maxTagCount`,`maxTagTextLength`,`maxTagPlaceholder`,`choiceTransitionName`,`onInputKeyDown`,`onPopupScroll`,`tabIndex`,`activeValue`,`onSelectorRemove`,`focused`],Zv=v.forwardRef(function(e,t){let{prefixCls:n,className:r,style:i,prefix:a,suffix:o,clearIcon:s,children:c,multiple:l,displayValues:u,placeholder:d,mode:f,searchValue:p,onSearch:m,onSearchSubmit:h,onInputBlur:g,maxLength:_,autoFocus:b,onMouseDown:x,onClearMouseDown:S,onInputKeyDown:C,onSelectorRemove:w,tokenWithEnter:T,components:E,...D}=e,{triggerOpen:O,toggleOpen:k,showSearch:A,disabled:j,loading:M,classNames:N,styles:P}=Q_(),F=v.useRef(null),L=v.useRef(null),R=y(e=>{let{which:t}=e,n=L.current instanceof HTMLTextAreaElement;!n&&O&&(t===Z.UP||t===Z.DOWN)&&e.preventDefault(),C&&C(e),!(n&&!O&&~[Z.UP,Z.DOWN,Z.LEFT,Z.RIGHT].indexOf(t))&&!(e.ctrlKey||e.altKey||e.metaKey)&&Jv(t)&&k(!0)});v.useImperativeHandle(t,()=>({focus:e=>{(L.current||F.current).focus?.(e)},blur:()=>{(L.current||F.current).blur?.()},nativeElement:_e(F.current)}));let z=y(e=>{if(!j){let t=_e(L.current);e.nativeEvent._ori_target=t;let n=t===e.target||t?.contains(e.target);t&&!n&&e.preventDefault();let r=O&&!l&&(f===`combobox`||A)||O&&l&&n;e.nativeEvent._select_lazy?O&&k(!1):(L.current?.focus(),r||k())}x?.(e)}),{root:B}=E,V=ue(D,Xv),H=Ns(V,{aria:!0}),U=Object.keys(H),W={...e,onInputKeyDown:R};if(B){let e=B.props||{},t={...e,...V};return Object.keys(e).forEach(n=>{let r=e[n],i=V[n];typeof r==`function`&&typeof i==`function`&&(t[n]=(...e)=>{i(...e),r(...e)})}),v.isValidElement(B)?v.cloneElement(B,{...t,ref:I(B.ref,F)}):v.createElement(B,Yv({},t,{ref:F}))}return v.createElement(gv.Provider,{value:W},v.createElement(`div`,Yv({},ue(V,U),{ref:F,className:r,style:i,onMouseDown:z}),v.createElement(hv,{className:Y(`${n}-prefix`,N?.prefix),style:P?.prefix},a),v.createElement(qv,{ref:L}),v.createElement(hv,{className:Y(`${n}-suffix`,{[`${n}-suffix-loading`]:M},N?.suffix),style:P?.suffix},o),s&&v.createElement(hv,{className:Y(`${n}-clear`,N?.clear),style:P?.clear,onMouseDown:e=>{e.nativeEvent._select_lazy=!0,S?.(e)}},s),c))});function Qv(e,t,n){return v.useMemo(()=>{let{root:r,input:i}=e||{};return n&&(r=n()),t&&(i=t()),{root:r,input:i}},[e,t,n])}function $v(){return $v=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},$v.apply(this,arguments)}var ey=e=>e===`tags`||e===`multiple`,ty=v.forwardRef((e,t)=>{let{id:n,prefixCls:r,className:i,styles:a,classNames:o,showSearch:s,tagRender:c,showScrollBar:l=`optional`,direction:u,omitDomProps:d,displayValues:f,onDisplayValuesChange:p,emptyOptions:m,notFoundContent:h=`Not Found`,onClear:g,maxCount:_,placeholder:b,mode:x,disabled:S,loading:C,getInputElement:w,getRawInputElement:T,open:E,defaultOpen:D,onPopupVisibleChange:O,activeValue:k,onActiveValueChange:A,activeDescendantId:j,searchValue:M,autoClearSearchValue:N,onSearch:P,onSearchSplit:F,tokenSeparators:I,allowClear:L,prefix:R,suffix:z,suffixIcon:B,clearIcon:V,OptionList:H,animation:U,transitionName:W,popupStyle:ee,popupClassName:te,popupMatchSelectWidth:G,popupRender:ne,popupAlign:re,placement:ie,builtinPlacements:K,getPopupContainer:q,showAction:ae=[],onFocus:oe,onBlur:se,onKeyUp:J,onKeyDown:ce,onMouseDown:le,components:ue,...de}=e,fe=ey(x),pe=v.useRef(null),me=v.useRef(null),he=v.useRef(null),[ge,ve]=v.useState(!1);v.useImperativeHandle(t,()=>({focus:pe.current?.focus,blur:pe.current?.blur,scrollTo:e=>he.current?.scrollTo(e),nativeElement:_e(pe.current)}));let ye=Qv(ue,w,T),be=v.useMemo(()=>{if(x!==`combobox`)return M;let e=f[0]?.value;return typeof e==`string`||typeof e==`number`?String(e):``},[M,x,f]),xe=x===`combobox`&&typeof w==`function`&&w()||null,Se=!h&&m,[Ce,we,Te,Ee]=mv(D||!1,E,O,e=>S||Se?!1:e),De=v.useMemo(()=>(I||[]).some(e=>[`
161
+ ${t}-confirm-body-wrapper`]:{display:`flex`,flexDirection:`column`,flex:`auto`},[`${t}-confirm-body`]:{marginBottom:`auto`}}}]},Wg=e=>{let{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:`rtl`,[`${t}-confirm-body`]:{direction:`rtl`}}}}},Gg=e=>{let{componentCls:t}=e,n=zg(e),r={...n};delete r.xs;let i=`--${t.replace(`.`,``)}-`,a=Object.keys(r).map(e=>({[`@media (min-width: ${X(r[e])})`]:{width:`var(${i}${e}-width)`}}));return{[`${t}-root`]:{[t]:[].concat(ze(Object.keys(n).map((e,t)=>{let r=Object.keys(n)[t-1];return r?{[`${i}${e}-width`]:`var(${i}${r}-width)`}:null})),[{width:`var(${i}xs-width)`}],ze(a))}}},Kg=e=>{let t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return si(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()})},qg=e=>({footerBg:`transparent`,headerBg:`transparent`,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${X(e.paddingMD)} ${X(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${X(e.padding)} ${X(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${X(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:`none`,headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${X(e.paddingXS)} ${X(e.padding)}`:0,footerBorderTop:e.wireframe?`${X(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:`none`,footerBorderRadius:e.wireframe?`0 0 ${X(e.borderRadiusLG)} ${X(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${X(e.padding*2)} ${X(e.padding*2)} ${X(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM,mask:!0}),Jg=Ja(`Modal`,e=>{let t=Kg(e);return[Ug(t),Wg(t),Hg(t),If(t,`zoom`),Gg(t)]},qg,{unitless:{titleLineHeight:!0}}),Yg;Kh()&&document.documentElement.addEventListener(`click`,e=>{Yg={x:e.pageX,y:e.pageY},setTimeout(()=>{Yg=null},100)},!0);var Xg=e=>{let{prefixCls:t,className:n,rootClassName:r,open:i,wrapClassName:a,centered:o,getContainer:s,style:c,width:l=520,footer:u,classNames:d,styles:f,children:p,loading:m,confirmLoading:h,zIndex:g,mousePosition:_,onOk:y,onCancel:b,okButtonProps:x,cancelButtonProps:S,destroyOnHidden:C,destroyOnClose:w,panelRef:T=null,closable:E,mask:D,modalRender:O,maskClosable:k,focusTriggerAfterClose:A,focusable:j,...M}=e,{getPopupContainer:N,getPrefixCls:P,direction:F,className:L,style:R,classNames:z,styles:B,centered:V,cancelButtonProps:H,okButtonProps:U,mask:W}=Ze(`modal`),{modal:ee}=v.useContext(Je),[te,G]=v.useMemo(()=>typeof E==`boolean`?[void 0,void 0]:[E?.afterClose,E?.onClose],[E]),ne=P(`modal`,t),re=P(),[ie,K,q]=bc(D,W,ne,k),ae=qh(j,ie,A),oe=e=>{h||(b?.(e),G?.())},se=e=>{y?.(e),G?.()},J=Yc(ne),[ce,le]=Jg(ne,J),ue=Y(a,{[`${ne}-centered`]:o??V,[`${ne}-wrap-rtl`]:F===`rtl`}),de=u!==null&&!m?v.createElement(Ag,{...e,okButtonProps:{...U,...x},onOk:se,cancelButtonProps:{...H,...S},onCancel:oe}):null,[fe,pe,me,he]=_c(dc(e),dc(ee),{closable:!0,closeIcon:v.createElement(Ao,{className:`${ne}-close-icon`}),closeIconRender:e=>kg(ne,e)}),ge=fe?{disabled:me,closeIcon:pe,afterClose:te,...he}:!1,_e=O?e=>v.createElement(`div`,{className:`${ne}-render`},O(e)):void 0,ve=I(T,Eg(`.${ne}-${O?`render`:`container`}`)),[ye,be]=Lc(`Modal`,g),xe={...e,width:l,panelRef:T,focusTriggerAfterClose:ae.focusTriggerAfterClose,focusable:ae,mask:ie,maskClosable:q,zIndex:ye},[Se,Ce]=Dc([z,d,K],[B,f],{props:xe}),[we,Te]=v.useMemo(()=>sc(l)?[void 0,l]:[l,void 0],[l]),Ee=v.useMemo(()=>{let e={};return Te&&Object.keys(Te).forEach(t=>{let n=Te[t];ic(n)&&(e[`--${ne}-${t}-width`]=ac(n)?`${n}px`:n)}),e},[ne,Te]);return v.createElement(Hh,{form:!0,space:!0},v.createElement(jc.Provider,{value:be},v.createElement($p,{width:we,...M,zIndex:ye,getContainer:s===void 0?N:s,prefixCls:ne,rootClassName:Y(ce,r,le,J,Se.root),rootStyle:Ce.root,footer:de,visible:i,mousePosition:_??Yg,onClose:oe,closable:ge,closeIcon:pe,transitionName:xd(re,`zoom`,e.transitionName),maskTransitionName:xd(re,`fade`,e.maskTransitionName),mask:ie,maskClosable:q,className:Y(ce,n,L),style:{...R,...c,...Ee},classNames:{...Se,wrapper:Y(Se.wrapper,ue)},styles:Ce,panelRef:ve,destroyOnHidden:C??w,modalRender:_e,focusTriggerAfterClose:ae.focusTriggerAfterClose,focusTrap:ae.trap},m?v.createElement(Cg,{active:!0,title:!1,paragraph:{rows:4},className:`${ne}-body-skeleton`}):p)))},Zg=e=>{let{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:i,fontSize:a,lineHeight:o,modalTitleHeight:s,fontHeight:c,confirmBodyPadding:l}=e,u=`${t}-confirm`;return{[u]:{"&-rtl":{direction:`rtl`},[`${e.antCls}-modal-header`]:{display:`none`},[`${u}-body-wrapper`]:{...Va()},[`&${t} ${t}-body`]:{padding:l},[`${u}-body`]:{display:`flex`,flexWrap:`nowrap`,alignItems:`start`,[`> ${e.iconCls}`]:{flex:`none`,fontSize:i,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(c).sub(i).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(s).sub(i).equal()).div(2).equal()}},[`${u}-paragraph`]:{display:`flex`,flexDirection:`column`,flex:`auto`,rowGap:e.marginXS,maxWidth:`calc(100% - ${X(e.marginSM)})`},[`${u}-body-no-icon ${u}-paragraph`]:{maxWidth:`100%`},[`${e.iconCls} + ${u}-paragraph`]:{maxWidth:`calc(100% - ${X(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${u}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},[`${u}-container`]:{color:e.colorText,fontSize:a,lineHeight:o},[`${u}-btns`]:{textAlign:`end`,marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${u}-error ${u}-body > ${e.iconCls}`]:{color:e.colorError},[`${u}-warning ${u}-body > ${e.iconCls},
162
+ ${u}-confirm ${u}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${u}-info ${u}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${u}-success ${u}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},Qg=Xa([`Modal`,`confirm`],e=>Zg(Kg(e)),qg,{order:-1e3}),$g=e=>{let{prefixCls:t,icon:n,okText:r,cancelText:i,confirmPrefixCls:a,type:o,okCancel:s,footer:c,locale:l,autoFocusButton:u,focusable:d,...f}=e,p=n;if(!n&&n!==null)switch(o){case`info`:p=v.createElement(Io,null);break;case`success`:p=v.createElement(wo,null);break;case`error`:p=v.createElement(Do,null);break;default:p=v.createElement(No,null)}let m=s??o===`confirm`,h=v.useMemo(()=>{let e=d?.autoFocusButton||u;return e||e===null?e:`ok`},[u,d?.autoFocusButton]),[g]=ec(`Modal`),_=l||g,y=r||(m?_?.okText:_?.justOkText),b=i||_?.cancelText,{closable:x}=f,{onClose:S}=sc(x)?x:{},C=v.useMemo(()=>({autoFocusButton:h,cancelTextLocale:b,okTextLocale:y,mergedOkCancel:m,onClose:S,...f}),[h,b,y,m,S,f]),w=v.createElement(v.Fragment,null,v.createElement(Sp,null),v.createElement(Cp,null)),T=ic(e.title)&&e.title!==``,E=ic(p),D=`${a}-body`;return v.createElement(`div`,{className:`${a}-body-wrapper`},v.createElement(`div`,{className:Y(D,{[`${D}-has-title`]:T,[`${D}-no-icon`]:!E})},p,v.createElement(`div`,{className:`${a}-paragraph`},T&&v.createElement(`span`,{className:`${a}-title`},e.title),v.createElement(`div`,{className:`${a}-content`},e.content))),c===void 0||typeof c==`function`?v.createElement(xp,{value:C},v.createElement(`div`,{className:`${a}-btns`},typeof c==`function`?c(w,{OkBtn:Cp,CancelBtn:Sp}):w)):c,v.createElement(Qg,{prefixCls:t}))},e_=e=>{let{close:t,zIndex:n,maskStyle:r,direction:i,prefixCls:a,wrapClassName:o,rootPrefixCls:s,bodyStyle:c,closable:l=!1,onConfirm:u,styles:d,title:f,mask:p,maskClosable:m,okButtonProps:h,cancelButtonProps:g}=e,{cancelButtonProps:_,okButtonProps:y}=Ze(`modal`),b=`${a}-confirm`,x=e.width||416,S=e.style||{},C=Y(b,`${b}-${e.type}`,{[`${b}-rtl`]:i===`rtl`},e.className),w=v.useMemo(()=>{let e=yc(p,m);return e.closable??=!1,e},[p,m]),[,T]=La(),E=v.useMemo(()=>n===void 0?T.zIndexPopupBase+Nc:n,[n,T]);return v.createElement(Xg,{...e,className:C,wrapClassName:Y({[`${b}-centered`]:!!e.centered},o),onCancel:()=>{t?.({triggerCancel:!0}),u?.(!1)},title:f,footer:null,transitionName:xd(s||``,`zoom`,e.transitionName),maskTransitionName:xd(s||``,`fade`,e.maskTransitionName),mask:w,style:S,styles:{body:c,mask:r,...d},width:x,zIndex:E,closable:l},v.createElement($g,{...e,confirmPrefixCls:b,okButtonProps:{...y,...h},cancelButtonProps:{..._,...g}}))},t_=e=>{let{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:i}=e;return v.createElement(ju,{prefixCls:t,iconPrefixCls:n,direction:r,theme:i},v.createElement(e_,{...e}))},n_=[],r_=``;function i_(){return r_}var a_=e=>{let{prefixCls:t,getContainer:n,direction:r}=e,i=Qs(),a=(0,v.useContext)(Je),o=i_()||a.getPrefixCls(),s=t||`${o}-modal`,c=n;return c===!1&&(c=void 0),v.createElement(t_,{...e,rootPrefixCls:o,prefixCls:s,iconPrefixCls:a.iconPrefixCls,theme:a.theme,direction:r??a.direction,locale:a.locale?.Modal??i,getContainer:c})};function o_(e){let t=ku(),n=document.createDocumentFragment(),r={...e,close:s,open:!0},i;function a(...t){t.some(e=>e?.triggerCancel)&&e.onCancel?.(()=>{},...t.slice(1));for(let e=0;e<n_.length;e++)if(n_[e]===s){n_.splice(e,1);break}md(n).then(()=>{})}let o=e=>{clearTimeout(i),i=setTimeout(()=>{let r=t.getPrefixCls(void 0,i_()),i=t.getIconPrefixCls(),a=t.getTheme(),o=v.createElement(a_,{...e});pd(v.createElement(ju,{prefixCls:r,iconPrefixCls:i,theme:a},typeof t.holderRender==`function`?t.holderRender(o):o),n)})};function s(...t){r={...r,open:!1,afterClose:()=>{typeof e.afterClose==`function`&&e.afterClose(),a.apply(this,t)}},o(r)}function c(e){r=typeof e==`function`?e(r):{...r,...e},o(r)}return o(r),n_.push(s),{destroy:s,update:c}}function s_(e){return{...e,type:`warning`}}function c_(e){return{...e,type:`info`}}function l_(e){return{...e,type:`success`}}function u_(e){return{...e,type:`error`}}function d_(e){return{...e,type:`confirm`}}function f_({rootPrefixCls:e}){r_=e}var p_=v.forwardRef((e,t)=>{let{afterClose:n,config:r,...i}=e,[a,o]=v.useState(!0),[s,c]=v.useState(r),{direction:l,getPrefixCls:u}=v.useContext(Je),d=u(`modal`),f=u(),p=()=>{n(),s.afterClose?.()},m=(...e)=>{o(!1),e.some(e=>e?.triggerCancel)&&s.onCancel?.(()=>{},...e.slice(1))};v.useImperativeHandle(t,()=>({destroy:m,update:e=>{c(t=>{let n=typeof e==`function`?e(t):e;return{...t,...n}})}}));let h=s.okCancel??s.type===`confirm`,[g]=ec(`Modal`,qs.Modal);return v.createElement(t_,{prefixCls:d,rootPrefixCls:f,...s,close:m,open:a,afterClose:p,okText:s.okText||(h?g?.okText:g?.justOkText),direction:s.direction||l,cancelText:s.cancelText||g?.cancelText,...i})}),m_=0,h_=v.memo(v.forwardRef((e,t)=>{let[n,r]=Ac();return v.useImperativeHandle(t,()=>({patchElement:r}),[r]),v.createElement(v.Fragment,null,n)}));function g_(){let e=v.useRef(null),[t,n]=v.useState([]);v.useEffect(()=>{t.length&&(ze(t).forEach(e=>{e()}),n([]))},[t]);let r=v.useCallback(t=>function(r){m_+=1;let i=v.createRef(),a,o=new Promise(e=>{a=e}),s=!1,c,l=v.createElement(p_,{key:`modal-${m_}`,config:t(r),ref:i,afterClose:()=>{c?.()},isSilent:()=>s,onConfirm:e=>{a(e)}});return c=e.current?.patchElement(l),c&&n_.push(c),{destroy:()=>{function e(){i.current?.destroy()}i.current?e():n(t=>[].concat(ze(t),[e]))},update:e=>{function t(){i.current?.update(e)}i.current?t():n(e=>[].concat(ze(e),[t]))},then:e=>(s=!0,o.then(e))}},[]);return[v.useMemo(()=>({info:r(c_),success:r(l_),error:r(u_),warning:r(s_),confirm:r(d_)}),[r]),v.createElement(h_,{key:`modal-holder`,ref:e})]}var __=e=>{let{componentCls:t,notificationMarginEdge:n,animationMaxHeight:r}=e,i=`${t}-notice`,a=new Or(`antNotificationFadeIn`,{"0%":{transform:`translate3d(100%, 0, 0)`,opacity:0},"100%":{transform:`translate3d(0, 0, 0)`,opacity:1}}),o=new Or(`antNotificationTopFadeIn`,{"0%":{top:-r,opacity:0},"100%":{top:0,opacity:1}}),s=new Or(`antNotificationBottomFadeIn`,{"0%":{bottom:e.calc(r).mul(-1).equal(),opacity:0},"100%":{bottom:0,opacity:1}}),c=new Or(`antNotificationLeftFadeIn`,{"0%":{transform:`translate3d(-100%, 0, 0)`,opacity:0},"100%":{transform:`translate3d(0, 0, 0)`,opacity:1}});return{[t]:{[`&${t}-top, &${t}-bottom`]:{marginInline:0,[i]:{marginInline:`auto auto`}},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:o}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:s}},[`&${t}-topRight, &${t}-bottomRight`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:a}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginRight:{value:0,_skip_check_:!0},marginLeft:{value:n,_skip_check_:!0},[i]:{marginInlineEnd:`auto`,marginInlineStart:0},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:c}}}}},v_=[`top`,`topLeft`,`topRight`,`bottom`,`bottomLeft`,`bottomRight`],y_={topLeft:`left`,topRight:`right`,bottomLeft:`left`,bottomRight:`right`,top:`left`,bottom:`left`},b_=(e,t)=>{let{componentCls:n}=e;return{[`${n}-${t}`]:{[`&${n}-stack > ${n}-notice-wrapper`]:{[t.startsWith(`top`)?`top`:`bottom`]:0,[y_[t]]:{value:0,_skip_check_:!0}}}}},x_=e=>{let t={};for(let n=1;n<e.notificationStackLayer;n++)t[`&:nth-last-child(${n+1})`]={overflow:`hidden`,[`& > ${e.componentCls}-notice`]:{opacity:0,transition:`opacity ${e.motionDurationMid}`}};return{[`&:not(:nth-last-child(-n+${e.notificationStackLayer}))`]:{opacity:0,overflow:`hidden`,color:`transparent`,pointerEvents:`none`},...t}},S_=e=>{let t={};for(let n=1;n<e.notificationStackLayer;n++)t[`&:nth-last-child(${n+1})`]={background:e.colorBgBlur,backdropFilter:`blur(10px)`,"-webkit-backdrop-filter":`blur(10px)`};return t},C_=e=>{let{componentCls:t}=e;return{[`${t}-stack`]:{[`& > ${t}-notice-wrapper`]:{transition:`transform ${e.motionDurationSlow}, backdrop-filter 0s`,willChange:`transform, opacity`,position:`absolute`,...x_(e)}},[`${t}-stack:not(${t}-stack-expanded)`]:{[`& > ${t}-notice-wrapper`]:{...S_(e)}},[`${t}-stack${t}-stack-expanded`]:{[`& > ${t}-notice-wrapper`]:{"&:not(:nth-last-child(-n + 1))":{opacity:1,overflow:`unset`,color:`inherit`,pointerEvents:`auto`,[`& > ${e.componentCls}-notice`]:{opacity:1}},"&:after":{content:`""`,position:`absolute`,height:e.margin,width:`100%`,insetInline:0,bottom:e.calc(e.margin).mul(-1).equal(),background:`transparent`,pointerEvents:`auto`}}},...v_.map(t=>b_(e,t)).reduce((e,t)=>({...e,...t}),{})}},w_=e=>{let{iconCls:t,componentCls:n,boxShadow:r,fontSizeLG:i,notificationMarginBottom:a,borderRadiusLG:o,colorSuccess:s,colorInfo:c,colorWarning:l,colorError:u,colorTextHeading:d,notificationBg:f,notificationPadding:p,notificationMarginEdge:m,progressBg:h,notificationProgressHeight:g,fontSize:_,lineHeight:v,width:y,notificationIconSize:b,colorText:x,colorSuccessBg:S,colorErrorBg:C,colorInfoBg:w,colorWarningBg:T,motionDurationMid:E}=e,D=`${n}-notice`;return{position:`relative`,marginBottom:a,marginInlineStart:`auto`,background:f,borderRadius:o,boxShadow:r,[D]:{padding:p,width:y,maxWidth:`calc(100vw - ${X(e.calc(m).mul(2).equal())})`,lineHeight:v,wordWrap:`break-word`,borderRadius:o,overflow:`hidden`,"&-success":S?{background:S}:{},"&-error":C?{background:C}:{},"&-info":w?{background:w}:{},"&-warning":T?{background:T}:{}},[`${D}-title`]:{marginBottom:e.marginXS,color:d,fontSize:i,lineHeight:e.lineHeightLG},[`${D}-description`]:{fontSize:_,color:x,marginTop:e.marginXS,"&:first-child":{marginTop:0,marginInlineEnd:e.marginSM}},[`${D}-closable ${D}-title`]:{paddingInlineEnd:e.paddingLG},[`${D}-with-icon ${D}-title`]:{marginBottom:e.marginXS,marginInlineStart:e.calc(e.marginSM).add(b).equal(),fontSize:i},[`${D}-with-icon ${D}-description`]:{marginInlineStart:e.calc(e.marginSM).add(b).equal(),fontSize:_},[`${D}-icon`]:{position:`absolute`,fontSize:b,lineHeight:1,[`&-success${t}`]:{color:s},[`&-info${t}`]:{color:c},[`&-warning${t}`]:{color:l},[`&-error${t}`]:{color:u}},[`${D}-close`]:{position:`absolute`,top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:`none`,width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:[`color`,`background-color`].map(e=>`${e} ${E}`).join(`, `),display:`flex`,alignItems:`center`,justifyContent:`center`,background:`none`,border:`none`,"&:hover":{color:e.colorIconHover,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},...Ua(e)},[`${D}-progress`]:{position:`absolute`,display:`block`,appearance:`none`,inlineSize:`calc(100% - ${X(o)} * 2)`,left:{_skip_check_:!0,value:o},right:{_skip_check_:!0,value:o},bottom:0,blockSize:g,border:0,"&, &::-webkit-progress-bar":{borderRadius:o,backgroundColor:`rgba(0, 0, 0, 0.04)`},"&::-moz-progress-bar":{background:h},"&::-webkit-progress-value":{borderRadius:o,background:h}},[`${D}-actions`]:{float:`right`,marginTop:e.marginSM}}},T_=e=>{let{componentCls:t,notificationMarginBottom:n,notificationMarginEdge:r,motionDurationMid:i,motionEaseInOut:a}=e,o=`${t}-notice`,s=new Or(`antNotificationFadeOut`,{"0%":{maxHeight:e.animationMaxHeight,marginBottom:n},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[t]:{...za(e),position:`fixed`,zIndex:e.zIndexPopup,marginRight:{value:r,_skip_check_:!0},[`${t}-hook-holder`]:{position:`relative`},[`${t}-fade-appear-prepare`]:{opacity:`0 !important`},[`${t}-fade-enter, ${t}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:a,animationFillMode:`both`,opacity:0,animationPlayState:`paused`},[`${t}-fade-leave`]:{animationTimingFunction:a,animationFillMode:`both`,animationDuration:i,animationPlayState:`paused`},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationPlayState:`running`},[`${t}-fade-leave${t}-fade-leave-active`]:{animationName:s,animationPlayState:`running`},"&-rtl":{direction:`rtl`,[`${o}-actions`]:{float:`left`}}}},{[t]:{[`${o}-wrapper`]:w_(e)}}]},E_=e=>({zIndexPopup:e.zIndexPopupBase+Nc+50,width:384,progressBg:`linear-gradient(90deg, ${e.colorPrimaryBorderHover}, ${e.colorPrimary})`,colorSuccessBg:void 0,colorErrorBg:void 0,colorInfoBg:void 0,colorWarningBg:void 0}),D_=e=>{let t=e.paddingMD,n=e.paddingLG;return si(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:n,notificationIconSize:e.calc(e.fontSizeLG).mul(e.lineHeightLG).equal(),notificationCloseButtonSize:e.calc(e.controlHeightLG).mul(.55).equal(),notificationMarginBottom:e.margin,notificationPadding:`${X(e.paddingMD)} ${X(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationStackLayer:3,notificationProgressHeight:2})},O_=Ja(`Notification`,e=>{let t=D_(e);return[T_(t),__(t),C_(t)]},E_);function k_(e,t){return t===null||t===!1?null:t||v.createElement(Ao,{className:`${e}-close-icon`})}var A_={success:wo,info:Io,error:Do,warning:No},j_=e=>{let{prefixCls:t,icon:n,type:r,title:i,description:a,actions:o,role:s=`alert`,styles:c,classNames:l}=e,u=null;return n?u=v.createElement(`span`,{className:Y(`${t}-icon`,l.icon),style:c.icon},n):r&&(u=v.createElement(A_[r]||null,{className:Y(`${t}-icon`,l.icon,`${t}-icon-${r}`),style:c.icon})),v.createElement(`div`,{className:Y({[`${t}-with-icon`]:u}),role:s},u,i&&v.createElement(`div`,{className:Y(`${t}-title`,l.title),style:c.title},i),a&&v.createElement(`div`,{className:Y(`${t}-description`,l.description),style:c.description},a),o&&v.createElement(`div`,{className:Y(`${t}-actions`,l.actions),style:c.actions},o))};function M_(e,t,n){let r;switch(e){case`top`:r={left:`50%`,transform:`translateX(-50%)`,right:`auto`,top:t,bottom:`auto`};break;case`topLeft`:r={left:0,top:t,bottom:`auto`};break;case`topRight`:r={right:0,top:t,bottom:`auto`};break;case`bottom`:r={left:`50%`,transform:`translateX(-50%)`,right:`auto`,top:`auto`,bottom:n};break;case`bottomLeft`:r={left:0,top:`auto`,bottom:n};break;default:r={right:0,top:`auto`,bottom:n};break}return r}function N_(e){return{motionName:`${e}-fade`}}function P_(e,t,n){return e===void 0?t?.closeIcon===void 0?n?.closeIcon:t.closeIcon:e}var F_=24,I_=4.5,L_=`topRight`,R_=({children:e,prefixCls:t})=>{let n=Yc(t),[r,i]=O_(t,n);return v.createElement(Fu,{classNames:{list:Y(r,i,n)}},e)},z_=(e,{prefixCls:t,key:n})=>v.createElement(R_,{prefixCls:t,key:n},e),B_=v.forwardRef((e,t)=>{let{top:n,bottom:r,prefixCls:i,getContainer:a,maxCount:o,rtl:s,onAllRemoved:c,stack:l,duration:u=I_,pauseOnHover:d=!0,showProgress:f}=e,{getPrefixCls:p,getPopupContainer:m,direction:h}=Ze(`notification`),{notification:g}=(0,v.useContext)(Je),[,_]=La(),y=i||p(`notification`),b=(0,v.useMemo)(()=>ac(u)&&u>0?u:!1,[u]),[x,S]=Ku({prefixCls:y,style:e=>M_(e,n??F_,r??F_),className:()=>Y({[`${y}-rtl`]:s??h===`rtl`}),motion:()=>N_(y),closable:{closeIcon:k_(y)},duration:b,getContainer:()=>a?.()||m?.()||document.body,maxCount:o,pauseOnHover:d,showProgress:f,onAllRemoved:c,renderNotifications:z_,stack:l===!1?!1:{threshold:sc(l)?l?.threshold:void 0,offset:8,gap:_.margin}}),[C,w]=Dc([g?.classNames,e?.classNames],[g?.styles,e?.styles],{props:e});return v.useImperativeHandle(t,()=>({...x,prefixCls:y,notification:g,classNames:C,styles:w})),S});function V_(e){let t=v.useRef(null);he(`Notification`);let{notification:n}=v.useContext(Je);return[v.useMemo(()=>{let r=r=>{if(!t.current)return;let{open:i,prefixCls:a,notification:o,classNames:s,styles:c}=t.current,l=o?.className||{},u=o?.style||{},d=`${a}-notice`,{title:f,message:p,description:m,icon:h,type:g,btn:_,actions:y,className:b,style:x,role:S=`alert`,closeIcon:C,closable:w,classNames:T={},styles:E={},...D}=r,O=f??p,k=y??_,A=k_(d,P_(C,e,o)),[j,M,,N]=gc(dc({...e||{},...r}),dc(n),{closable:!0,closeIcon:A}),P=j?{onClose:sc(w)?w.onClose:void 0,closeIcon:M,...N}:!1,F=Ec(T,{props:r}),I=Ec(E,{props:r}),L=xc(void 0,s,F),R=Cc(c,I);return i({placement:e?.placement??L_,...D,content:v.createElement(j_,{prefixCls:d,icon:h,type:g,title:O,description:m,actions:k,role:S,classNames:L,styles:R}),className:Y({[`${d}-${g}`]:g},b,l,L.root),style:{...u,...R.root,...x},closable:P})},i={open:r,destroy:e=>{e===void 0?t.current?.destroy():t.current?.close(e)}};return[`success`,`info`,`warning`,`error`].forEach(e=>{i[e]=t=>r({...t,type:e})}),i},[e,n]),v.createElement(B_,{key:`notification-holder`,...e,ref:t})]}function H_(e){return V_(e)}var U_=v.createContext({}),W_=v.createContext({message:{},notification:{},modal:{}}),G_=Ja(`App`,e=>{let{componentCls:t,colorText:n,fontSize:r,lineHeight:i,fontFamily:a}=e;return{[t]:{color:n,fontSize:r,lineHeight:i,fontFamily:a,[`&${t}-rtl`]:{direction:`rtl`}}}},()=>({})),K_=e=>{let{prefixCls:t,children:n,className:r,rootClassName:i,message:a,notification:o,style:s,component:c=`div`}=e,{direction:l,getPrefixCls:u,className:d,style:f}=Ze(`app`),p=u(`app`,t),[m,h]=G_(p),g=Y(m,p,r,i,h,{[`${p}-rtl`]:l===`rtl`}),_=(0,v.useContext)(U_),y=v.useMemo(()=>({message:{..._.message,...a},notification:{..._.notification,...o}}),[a,o,_.message,_.notification]),[b,x]=ud(y.message),[S,C]=H_(y.notification),[w,T]=g_(),E=v.useMemo(()=>({message:b,notification:S,modal:w}),[b,S,w]);he(`App`)(!(h&&c===!1),`usage`,"When using cssVar, ensure `component` is assigned a valid React component string.");let D=c===!1?v.Fragment:c,O={className:Y(d,g),style:{...f,...s}};return v.createElement(W_.Provider,{value:E},v.createElement(U_.Provider,{value:y},v.createElement(D,{...c===!1?void 0:O},T,x,C,n)))},q_=()=>v.useContext(W_),J_=K_;J_.useApp=q_;function Y_(e){return t=>v.createElement(ju,{theme:{token:{motion:!1,zIndexPopupBase:0}}},v.createElement(e,{...t}))}var X_=(e,t,n,r,i)=>Y_(a=>{let{prefixCls:o,style:s}=a,c=v.useRef(null),[l,u]=v.useState(0),[d,f]=v.useState(0),[p,m]=T(!1,a.open),{getPrefixCls:h}=v.useContext(Je),g=h(r||`select`,o);v.useEffect(()=>{if(m(!0),typeof ResizeObserver<`u`){let e=new ResizeObserver(e=>{let t=e[0].target;u(t.offsetHeight+8),f(t.offsetWidth)}),t=setInterval(()=>{let n=i?`.${i(g)}`:`.${g}-dropdown`,r=c.current?.querySelector(n);r&&(clearInterval(t),e.observe(r))},10);return()=>{clearInterval(t),e.disconnect()}}},[g]);let _={...a,style:{...s,margin:0},open:p,getPopupContainer:()=>c.current};n&&(_=n(_)),t&&(_={..._,[t]:{overflow:{adjustX:!1,adjustY:!1}}});let y={paddingBottom:l,position:`relative`,minWidth:d};return v.createElement(`div`,{ref:c,style:y},v.createElement(e,{..._}))}),Z_=(e,t,n,r,i=!1,a,o)=>{let s=(0,v.useMemo)(()=>typeof n==`boolean`?{allowClear:n}:n&&typeof n==`object`?n:{allowClear:!1},[n]);return(0,v.useMemo)(()=>{let e=!i&&s.allowClear!==!1&&(t.length||a)&&!(o===`combobox`&&a===``);return{allowClear:e,clearIcon:e?s.clearIcon||r||`×`:null}},[s,r,i,t.length,a,o])},Q_=v.createContext(null);function $_(){return v.useContext(Q_)}function ev(e=250){let t=v.useRef(null),n=v.useRef(null);v.useEffect(()=>()=>{window.clearTimeout(n.current)},[]);function r(r){(r||t.current===null)&&(t.current=r),window.clearTimeout(n.current),n.current=window.setTimeout(()=>{t.current=null},e)}return[()=>t.current,r]}function tv(e,t){return e.filter(e=>e).some(e=>e.contains(t)||e===t)}function nv(e,t,n,r){let i=y(i=>{if(r)return;let a=i.target;a.shadowRoot&&i.composed&&(a=i.composedPath()[0]||a),i._ori_target&&(a=i._ori_target),t&&!tv(e(),a)&&n(!1)});v.useEffect(()=>(window.addEventListener(`mousedown`,i),()=>window.removeEventListener(`mousedown`,i)),[i])}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)}var iv=e=>{let t=e===!0?0:1;return{bottomLeft:{points:[`tl`,`bl`],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:`scroll`},bottomRight:{points:[`tr`,`br`],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:`scroll`},topLeft:{points:[`bl`,`tl`],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:`scroll`},topRight:{points:[`br`,`tr`],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:`scroll`}}},av=v.forwardRef((e,t)=>{let{prefixCls:n,disabled:r,visible:i,children:a,popupElement:o,animation:s,transitionName:c,popupStyle:l,popupClassName:u,direction:d=`ltr`,placement:f,builtinPlacements:p,popupMatchSelectWidth:m,popupRender:h,popupAlign:g,getPopupContainer:_,empty:y,onPopupVisibleChange:b,onPopupMouseEnter:x,onPopupMouseDown:S,onPopupBlur:C,...w}=e,T=`${n}-dropdown`,E=o;h&&(E=h(o));let D=v.useMemo(()=>p||iv(m),[p,m]),O=s?`${T}-${s}`:c,k=typeof m==`number`,A=v.useMemo(()=>k?null:m===!1?`minWidth`:`width`,[m,k]),j=l;k&&(j={...l,width:m});let M=v.useRef(null);return v.useImperativeHandle(t,()=>({getPopupElement:()=>M.current?.popupElement})),v.createElement(ru,rv({},w,{showAction:b?[`click`]:[],hideAction:b?[`click`]:[],popupPlacement:f||(d===`rtl`?`bottomRight`:`bottomLeft`),builtinPlacements:D,prefixCls:T,popupMotion:{motionName:O},popup:v.createElement(`div`,{onMouseEnter:x,onMouseDown:S,onBlur:C},E),ref:M,stretch:A,popupAlign:g,popupVisible:i,getPopupContainer:_,popupClassName:Y(u,{[`${T}-empty`]:y}),popupStyle:j,onPopupVisibleChange:b}),a)});function ov(e,t){let{key:n}=e,r;return`value`in e&&({value:r}=e),n??(r===void 0?`rc-index-key-${t}`:r)}function sv(e){return e!==void 0&&!Number.isNaN(e)}function cv(e,t){let{label:n,value:r,options:i,groupLabel:a}=e||{},o=n||(t?`children`:`label`);return{label:o,value:r||`value`,options:i||`options`,groupLabel:a||o}}function lv(e,{fieldNames:t,childrenAsData:n}={}){let r=[],{label:i,value:a,options:o,groupLabel:s}=cv(t,!1);function c(e,t){Array.isArray(e)&&e.forEach(e=>{if(t||!(o in e)){let n=e[a];r.push({key:ov(e,r.length),groupOption:t,data:e,label:e[i],value:n})}else{let t=e[s];t===void 0&&n&&(t=e.label),r.push({key:ov(e,r.length),group:!0,data:e,label:t}),c(e[o],!0)}})}return c(e,!1),r}function uv(e){let t={...e};return`props`in t||Object.defineProperty(t,`props`,{get(){return ce(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var dv=(e,t,n)=>{if(!t||!t.length)return null;let r=!1,i=(e,[t,...n])=>{if(!t)return[e];let a=e.split(t);return r||=a.length>1,a.reduce((e,t)=>[...e,...i(t,n)],[]).filter(Boolean)},a=i(e,t);return r?n===void 0?a:a.slice(0,n):null};function fv(e){let{visible:t,values:n}=e;return t?v.createElement(`span`,{"aria-live":`polite`,style:{width:0,height:0,position:`absolute`,overflow:`hidden`,opacity:0}},`${n.slice(0,50).map(({label:e,value:t})=>[`number`,`string`].includes(typeof e)?e:t).join(`, `)}`,n.length>50?`, ...`:null):null}var pv=e=>{let t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(null)},mv=(e,t=1)=>{if(t<=0){e();return}pv(()=>{mv(e,t-1)})};function hv(e,t,n,r){let[i,a]=(0,v.useState)(!1);(0,v.useEffect)(()=>{a(!0)},[]);let[o,s]=T(e,t),[c,l]=(0,v.useState)(!1),u=i?o:!1,d=r(u),f=(0,v.useRef)(0),p=y(e=>{n&&d!==e&&n(e),s(e)});return[u,d,y((e,t={})=>{let{cancelFun:n}=t;f.current+=1;let r=f.current,i=typeof e==`boolean`?e:!d;l(!i);function a(){r===f.current&&!n?.()&&(p(i),l(!1))}i?a():mv(()=>{a()})}),c]}function gv(e){let{children:t,...n}=e;return t?v.createElement(`div`,n,t):null}var _v=v.createContext(null);function vv(){return v.useContext(_v)}var yv=v.forwardRef((e,t)=>{let{onChange:n,onKeyDown:r,onBlur:i,style:a,syncWidth:o,value:s,className:c,autoComplete:l,...u}=e,{prefixCls:d,mode:f,onSearch:p,onSearchSubmit:m,onInputBlur:h,autoFocus:g,tokenWithEnter:_,placeholder:y,components:{input:b=`input`}}=vv(),{id:x,classNames:C,styles:w,open:T,activeDescendantId:E,role:D,disabled:O}=$_()||{},k=Y(`${d}-input`,C?.input,c),A=v.useRef(!1),j=v.useRef(null),M=v.useRef(null);v.useImperativeHandle(t,()=>M.current);let N=e=>{let{value:t}=e.target;if(_&&j.current&&/[\r\n]/.test(j.current)){let e=j.current.replace(/[\r\n]+$/,``).replace(/\r\n/g,` `).replace(/[\r\n]/g,` `);t=t.replace(e,j.current)}j.current=null,p&&p(t,!0,A.current),n?.(e)},P=e=>{let{key:t}=e,{value:n}=e.currentTarget;t===`Enter`&&f===`tags`&&!T&&!A.current&&m&&m(n),r?.(e)},F=e=>{h?.(),i?.(e)},L=()=>{A.current=!0},R=e=>{if(A.current=!1,f!==`combobox`){let{value:t}=e.currentTarget;p?.(t,!0,!1)}},z=e=>{let{clipboardData:t}=e;j.current=t?.getData(`text`)||``},[B,V]=v.useState(void 0);S(()=>{let e=M.current;if(o&&e){e.style.width=`0px`;let t=e.scrollWidth;V(t),e.style.width=``}},[o,s]);let H={id:x,type:f===`combobox`?`text`:`search`,...u,ref:M,style:{...w?.input,...a,"--select-input-width":B},autoFocus:g,autoComplete:l||`off`,className:k,disabled:O,value:s||``,onChange:N,onKeyDown:P,onBlur:F,onPaste:z,onCompositionStart:L,onCompositionEnd:R,role:D||`combobox`,"aria-expanded":T||!1,"aria-haspopup":`listbox`,"aria-owns":T?`${x}_list`:void 0,"aria-autocomplete":`list`,"aria-controls":T?`${x}_list`:void 0,"aria-activedescendant":T?E:void 0};if(v.isValidElement(b)){let t=b.props||{},n={placeholder:e.placeholder||y,...H,...t};return Object.keys(t).forEach(e=>{let r=t[e];typeof r==`function`&&(n[e]=(...t)=>{r(...t),H[e]?.(...t)})}),n.ref=I(b.ref,H.ref),v.cloneElement(b,n)}let U=b;return v.createElement(U,H)});function bv(e){let{prefixCls:t,placeholder:n,displayValues:r}=vv(),{classNames:i,styles:a}=$_(),{show:o=!0}=e;return r.length?null:v.createElement(`div`,{className:Y(`${t}-placeholder`,i?.placeholder),style:{visibility:o?`visible`:`hidden`,...a?.placeholder}},n)}var xv=v.createContext(null);function Sv(e){return Array.isArray(e)?e:e===void 0?[]:[e]}typeof window<`u`&&window.document&&window.document.documentElement;function Cv(e){return e!=null}function wv(e){return!e&&e!==0}function Tv(e){return[`string`,`number`].includes(typeof e)}function Ev(e){let t;return e&&(Tv(e.title)?t=e.title.toString():Tv(e.label)&&(t=e.label.toString())),t}function Dv(){return Dv=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},Dv.apply(this,arguments)}var Ov=v.forwardRef(({inputProps:e},t)=>{let{prefixCls:n,searchValue:r,activeValue:i,displayValues:a,maxLength:o,mode:s,components:c}=vv(),{triggerOpen:l,title:u,showSearch:d,classNames:f,styles:p}=$_(),m=v.useContext(xv),[h,g]=v.useState(!1),_=s===`combobox`,y=a[0],b=v.useMemo(()=>_&&i&&!h&&l?i:d?r:``,[_,i,h,l,r,d]),[x,S,C,w]=v.useMemo(()=>{let e,t,n;if(y&&m?.flattenOptions){let r=m.flattenOptions.find(e=>e.value===y.value);r?.data&&(e=r.data.className,t=r.data.style,n=Ev(r.data))}return y&&!n&&(n=Ev(y)),u!==void 0&&(n=u),[e,t,n,!!e||!!t]},[y,m?.flattenOptions,u]);v.useEffect(()=>{_&&g(!1)},[_,i]);let T=y&&y.label!==null&&y.label!==void 0&&String(y.label).trim()!==``,E=_&&c?.input?null:y?w?v.createElement(`div`,{className:Y(`${n}-content-value`,x),style:{...b?{visibility:`hidden`}:{},...S},title:C},y.label):y.label:v.createElement(bv,{show:!b});return v.createElement(`div`,{className:Y(`${n}-content`,T&&`${n}-content-has-value`,b&&`${n}-content-has-search-value`,w&&`${n}-content-has-option-style`,f?.content),style:p?.content,title:w?void 0:C},E,v.createElement(yv,Dv({ref:t},e,{value:b,maxLength:s===`combobox`?o:void 0,onChange:t=>{g(!0),e.onChange?.(t)}})))}),kv=void 0;function Av(e,t){let{prefixCls:n,invalidate:r,item:i,renderItem:a,responsive:o,responsiveDisabled:s,registerSize:c,itemKey:l,className:u,style:d,children:f,display:p,order:m,component:h=`div`,...g}=e,_=o&&!p;function y(e){c(l,e)}v.useEffect(()=>()=>{y(null)},[]);let b=a&&i!==kv?a(i,{index:m}):f,x;r||(x={opacity:+!_,height:_?0:kv,overflowY:_?`hidden`:kv,order:o?m:kv,pointerEvents:_?`none`:kv,position:_?`absolute`:kv});let S={};_&&(S[`aria-hidden`]=!0);let C=v.createElement(h,Jf({className:Y(!r&&n,u),style:{...x,...d}},S,g,{ref:t}),b);return o&&(C=v.createElement(Me,{onResize:({offsetWidth:e})=>{y(e)},disabled:s},C)),C}var jv=v.forwardRef(Av);function Mv(e){if(typeof MessageChannel>`u`)Ge(e);else{let t=new MessageChannel;t.port1.onmessage=()=>e(),t.port2.postMessage(void 0)}}function Nv(){let e=v.useRef(null);return t=>{e.current||(e.current=[],Mv(()=>{(0,bl.unstable_batchedUpdates)(()=>{e.current.forEach(e=>{e()}),e.current=null})})),e.current.push(t)}}function Pv(e,t){let[n,r]=v.useState(t);return[n,y(t=>{e(()=>{r(t)})})]}var Fv=v.createContext(null),Iv=v.forwardRef((e,t)=>{let n=v.useContext(Fv);if(!n){let{component:n=`div`,...r}=e;return v.createElement(n,Jf({},r,{ref:t}))}let{className:r,...i}=n,{className:a,...o}=e;return v.createElement(Fv.Provider,{value:null},v.createElement(jv,Jf({ref:t,className:Y(r,a)},i,o)))}),Lv=`responsive`,Rv=`invalidate`;function zv(e){return`+ ${e.length} ...`}function Bv(e,t){let{prefixCls:n=`rc-overflow`,data:r=[],renderItem:i,renderRawItem:a,itemKey:o,itemWidth:s=10,ssr:c,style:l,className:u,maxCount:d,renderRest:f,renderRawRest:p,prefix:m,suffix:h,component:g=`div`,itemComponent:_,onVisibleChange:y,...b}=e,x=c===`full`,C=Nv(),[w,T]=Pv(C,null),E=w||0,[D,O]=Pv(C,new Map),[k,A]=Pv(C,0),[j,M]=Pv(C,0),[N,P]=Pv(C,0),[F,I]=Pv(C,0),[L,R]=(0,v.useState)(null),[z,B]=(0,v.useState)(null),V=v.useMemo(()=>z===null&&x?2**53-1:z||0,[z,w]),[H,U]=(0,v.useState)(!1),W=`${n}-item`,ee=Math.max(k,j),te=d===Lv,G=r.length&&te,ne=d===Rv,re=G||typeof d==`number`&&r.length>d,ie=(0,v.useMemo)(()=>{let e=r;return G?e=w===null&&x?r:r.slice(0,Math.min(r.length,E/s)):typeof d==`number`&&(e=r.slice(0,d)),e},[r,s,w,d,G]),K=(0,v.useMemo)(()=>G?r.slice(V+1):r.slice(ie.length),[r,ie,G,V]),q=(0,v.useCallback)((e,t)=>typeof o==`function`?o(e):(o&&e?.[o])??t,[o]),ae=(0,v.useCallback)(i||(e=>e),[i]);function oe(e,t,n){z===e&&(t===void 0||t===L)||(B(e),n||(U(e<r.length-1),y?.(e)),t!==void 0&&R(t))}function se(e,t){T(t.clientWidth)}function J(e,t){O(n=>{let r=new Map(n);return t===null?r.delete(e):r.set(e,t),r})}function ce(e,t){M(t),A(j)}function le(e,t){P(t)}function ue(e,t){I(t)}function de(e){return D.get(q(ie[e],e))}S(()=>{if(E&&typeof ee==`number`&&ie){let e=N+F,t=ie.length,n=t-1;if(!t){oe(0,null);return}for(let r=0;r<t;r+=1){let t=de(r);if(x&&(t||=0),t===void 0){oe(r-1,void 0,!0);break}if(e+=t,n===0&&e<=E||r===n-1&&e+de(n)<=E){oe(n,null);break}else if(e+ee>E){oe(r-1,e-t-F+j);break}}h&&de(0)+F>E&&R(null)}},[E,D,j,N,F,q,ie]);let fe=H&&!!K.length,pe={};L!==null&&G&&(pe={position:`absolute`,top:0,insetInlineStart:L});let me={prefixCls:W,responsive:G,component:_,invalidate:ne},he=a?(e,t)=>{let n=q(e,t);return v.createElement(Fv.Provider,{key:n,value:{...me,order:t,item:e,itemKey:n,registerSize:J,display:t<=V}},a(e,t))}:(e,t)=>{let n=q(e,t);return v.createElement(jv,Jf({},me,{order:t,key:n,item:e,renderItem:ae,itemKey:n,registerSize:J,display:t<=V}))},ge={order:fe?V:2**53-1,className:`${W}-rest`,registerSize:ce,display:fe},_e=f||zv,ve=p?v.createElement(Fv.Provider,{value:{...me,...ge}},p(K)):v.createElement(jv,Jf({},me,ge),typeof _e==`function`?_e(K):_e),ye=v.createElement(g,Jf({className:Y(!ne&&n,u),style:l,ref:t},b),m&&v.createElement(jv,Jf({},me,{responsive:te,responsiveDisabled:!G,order:-1,className:`${W}-prefix`,registerSize:le,display:!0}),m),ie.map(he),re?ve:null,h&&v.createElement(jv,Jf({},me,{responsive:te,responsiveDisabled:!G,order:V,className:`${W}-suffix`,registerSize:ue,display:!0,style:pe}),h));return te?v.createElement(Me,{onResize:se,disabled:!G},ye):ye}var Vv=v.forwardRef(Bv);Vv.Item=Iv,Vv.RESPONSIVE=Lv,Vv.INVALIDATE=Rv;var Hv=Vv,Uv=e=>{let{className:t,style:n,customizeIcon:r,customizeIconProps:i,children:a,onMouseDown:o,onClick:s}=e,c=typeof r==`function`?r(i):r;return v.createElement(`span`,{className:t,onMouseDown:e=>{e.preventDefault(),o?.(e)},style:{userSelect:`none`,WebkitUserSelect:`none`,...n},unselectable:`on`,onClick:s,"aria-hidden":!0},c===void 0?v.createElement(`span`,{className:Y(t.split(/\s+/).map(e=>`${e}-icon`))},a):c)};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 Gv(e){return e.key??e.value}var Kv=e=>{e.preventDefault(),e.stopPropagation()},qv=v.forwardRef(function({inputProps:e},t){let{prefixCls:n,displayValues:r,searchValue:i,mode:a,onSelectorRemove:o,removeIcon:s}=vv(),{disabled:c,showSearch:l,triggerOpen:u,rawOpen:d,toggleOpen:f,autoClearSearchValue:p,tagRender:m,maxTagPlaceholder:h,maxTagTextLength:g,maxTagCount:_,classNames:y,styles:b}=$_(),x=`${n}-selection-item`,S=i;!d&&a===`multiple`&&p!==!1&&(S=``);let C=l&&S||``,w=l&&!c,T=s??`×`,E=h??(e=>`+ ${e.length} ...`),D=m,O=e=>{f(e)},k=e=>{o?.(e)},A=(e,t,n,r,i)=>v.createElement(`span`,{title:Ev(e),className:Y(x,{[`${x}-disabled`]:n},y?.item),style:b?.item},v.createElement(`span`,{className:Y(`${x}-content`,y?.itemContent),style:b?.itemContent},t),r&&v.createElement(Uv,{className:Y(`${x}-remove`,y?.itemRemove),style:b?.itemRemove,onMouseDown:Kv,onClick:i,customizeIcon:T},`×`)),j=(e,t,n,r,i,a,o)=>v.createElement(`span`,{onMouseDown:e=>{Kv(e),O(!u)}},D({label:t,value:e,index:o?.index,disabled:n,closable:r,onClose:i,isMaxTag:!!a}));return v.createElement(Hv,{prefixCls:`${n}-content`,className:y?.content,style:b?.content,prefix:!r.length&&!C&&v.createElement(bv,null),data:r,renderItem:(e,t)=>{let{disabled:n,label:r,value:i}=e,a=!c&&!n,o=r;if(typeof g==`number`&&(typeof r==`string`||typeof r==`number`)){let e=String(o);e.length>g&&(o=`${e.slice(0,g)}...`)}let s=t=>{t&&t.stopPropagation(),k(e)};return typeof D==`function`?j(i,o,n,a,s,void 0,t):A(e,o,n,a,s)},renderRest:e=>{if(!r.length)return null;let t=typeof E==`function`?E(e):E;return typeof D==`function`?j(void 0,t,!1,!1,void 0,!0):A({title:t},t,!1)},suffix:v.createElement(yv,Wv({ref:t,disabled:c,readOnly:!w},e,{value:C||``,syncWidth:!0})),itemKey:Gv,maxCount:_})}),Jv=v.forwardRef(function(e,t){let{multiple:n,onInputKeyDown:r,tabIndex:i}=vv(),a=$_(),{showSearch:o}=a,s={...Ns(a,{aria:!0}),onKeyDown:r,readOnly:!o,tabIndex:i};return n?v.createElement(qv,{ref:t,inputProps:s}):v.createElement(Ov,{ref:t,inputProps:s})});function Yv(e){return e&&![Z.ESC,Z.SHIFT,Z.BACKSPACE,Z.TAB,Z.WIN_KEY,Z.ALT,Z.META,Z.WIN_KEY_RIGHT,Z.CTRL,Z.SEMICOLON,Z.EQUALS,Z.CAPS_LOCK,Z.CONTEXT_MENU,Z.UP,Z.LEFT,Z.RIGHT,Z.F1,Z.F2,Z.F3,Z.F4,Z.F5,Z.F6,Z.F7,Z.F8,Z.F9,Z.F10,Z.F11,Z.F12].includes(e)}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)}var Zv=[`value`,`onChange`,`removeIcon`,`placeholder`,`maxTagCount`,`maxTagTextLength`,`maxTagPlaceholder`,`choiceTransitionName`,`onInputKeyDown`,`onPopupScroll`,`tabIndex`,`activeValue`,`onSelectorRemove`,`focused`],Qv=v.forwardRef(function(e,t){let{prefixCls:n,className:r,style:i,prefix:a,suffix:o,clearIcon:s,children:c,multiple:l,displayValues:u,placeholder:d,mode:f,searchValue:p,onSearch:m,onSearchSubmit:h,onInputBlur:g,maxLength:_,autoFocus:b,onMouseDown:x,onClearMouseDown:S,onInputKeyDown:C,onSelectorRemove:w,tokenWithEnter:T,components:E,...D}=e,{triggerOpen:O,toggleOpen:k,showSearch:A,disabled:j,loading:M,classNames:N,styles:P}=$_(),F=v.useRef(null),L=v.useRef(null),R=y(e=>{let{which:t}=e,n=L.current instanceof HTMLTextAreaElement;!n&&O&&(t===Z.UP||t===Z.DOWN)&&e.preventDefault(),C&&C(e),!(n&&!O&&~[Z.UP,Z.DOWN,Z.LEFT,Z.RIGHT].indexOf(t))&&!(e.ctrlKey||e.altKey||e.metaKey)&&Yv(t)&&k(!0)});v.useImperativeHandle(t,()=>({focus:e=>{(L.current||F.current).focus?.(e)},blur:()=>{(L.current||F.current).blur?.()},nativeElement:_e(F.current)}));let z=y(e=>{if(!j){let t=_e(L.current);e.nativeEvent._ori_target=t;let n=t===e.target||t?.contains(e.target);t&&!n&&e.preventDefault();let r=O&&!l&&(f===`combobox`||A)||O&&l&&n;e.nativeEvent._select_lazy?O&&k(!1):(L.current?.focus(),r||k())}x?.(e)}),{root:B}=E,V=ue(D,Zv),H=Ns(V,{aria:!0}),U=Object.keys(H),W={...e,onInputKeyDown:R};if(B){let e=B.props||{},t={...e,...V};return Object.keys(e).forEach(n=>{let r=e[n],i=V[n];typeof r==`function`&&typeof i==`function`&&(t[n]=(...e)=>{i(...e),r(...e)})}),v.isValidElement(B)?v.cloneElement(B,{...t,ref:I(B.ref,F)}):v.createElement(B,Xv({},t,{ref:F}))}return v.createElement(_v.Provider,{value:W},v.createElement(`div`,Xv({},ue(V,U),{ref:F,className:r,style:i,onMouseDown:z}),v.createElement(gv,{className:Y(`${n}-prefix`,N?.prefix),style:P?.prefix},a),v.createElement(Jv,{ref:L}),v.createElement(gv,{className:Y(`${n}-suffix`,{[`${n}-suffix-loading`]:M},N?.suffix),style:P?.suffix},o),s&&v.createElement(gv,{className:Y(`${n}-clear`,N?.clear),style:P?.clear,onMouseDown:e=>{e.nativeEvent._select_lazy=!0,S?.(e)}},s),c))});function $v(e,t,n){return v.useMemo(()=>{let{root:r,input:i}=e||{};return n&&(r=n()),t&&(i=t()),{root:r,input:i}},[e,t,n])}function ey(){return ey=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},ey.apply(this,arguments)}var ty=e=>e===`tags`||e===`multiple`,ny=v.forwardRef((e,t)=>{let{id:n,prefixCls:r,className:i,styles:a,classNames:o,showSearch:s,tagRender:c,showScrollBar:l=`optional`,direction:u,omitDomProps:d,displayValues:f,onDisplayValuesChange:p,emptyOptions:m,notFoundContent:h=`Not Found`,onClear:g,maxCount:_,placeholder:b,mode:x,disabled:S,loading:C,getInputElement:w,getRawInputElement:T,open:E,defaultOpen:D,onPopupVisibleChange:O,activeValue:k,onActiveValueChange:A,activeDescendantId:j,searchValue:M,autoClearSearchValue:N,onSearch:P,onSearchSplit:F,tokenSeparators:I,allowClear:L,prefix:R,suffix:z,suffixIcon:B,clearIcon:V,OptionList:H,animation:U,transitionName:W,popupStyle:ee,popupClassName:te,popupMatchSelectWidth:G,popupRender:ne,popupAlign:re,placement:ie,builtinPlacements:K,getPopupContainer:q,showAction:ae=[],onFocus:oe,onBlur:se,onKeyUp:J,onKeyDown:ce,onMouseDown:le,components:ue,...de}=e,fe=ty(x),pe=v.useRef(null),me=v.useRef(null),he=v.useRef(null),[ge,ve]=v.useState(!1);v.useImperativeHandle(t,()=>({focus:pe.current?.focus,blur:pe.current?.blur,scrollTo:e=>he.current?.scrollTo(e),nativeElement:_e(pe.current)}));let ye=$v(ue,w,T),be=v.useMemo(()=>{if(x!==`combobox`)return M;let e=f[0]?.value;return typeof e==`string`||typeof e==`number`?String(e):``},[M,x,f]),xe=x===`combobox`&&typeof w==`function`&&w()||null,Se=!h&&m,[Ce,we,Te,Ee]=hv(D||!1,E,O,e=>S||Se?!1:e),De=v.useMemo(()=>(I||[]).some(e=>[`
163
163
  `,`\r
164
- `].includes(e)),[I]),Oe=(e,t,n)=>{if(fe&&ov(_)&&f.length>=_)return;let r=!0,i=e;A?.(null);let a=uv(e,I,ov(_)?_-f.length:void 0),o=n?null:a;return x!==`combobox`&&o&&(i=``,F?.(o),Te(!1),r=!1),P&&be!==i&&P(i,{source:t?`typing`:`effect`}),e&&t&&r&&Te(!0),r},ke=e=>{!e||!e.trim()||P(e,{source:`submit`})};v.useEffect(()=>{!Ce&&!fe&&x!==`combobox`&&Oe(``,!1,!1)},[Ce]),v.useEffect(()=>{S&&(Te(!1),ve(!1))},[S,we]);let[Ae,je]=$_(),Me=v.useRef(!1),Ne=e=>{let t=Ae(),{key:n}=e,r=n===`Enter`,i=n===` `;if(r||i){let t=x===`combobox`;(i&&!(t||s)||r&&!t)&&e.preventDefault(),we||Te(!0)}if(je(!!be),n===`Backspace`&&!t&&fe&&!be&&f.length){let e=[...f],t=null;for(let n=e.length-1;n>=0;--n){let r=e[n];if(!r.disabled){e.splice(n,1),t=r;break}}t&&p(e,{type:`remove`,values:[t]})}we&&(!r||!Me.current)&&!i&&(r&&(Me.current=!0),he.current?.onKeyDown(e)),ce?.(e)},Pe=(e,...t)=>{we&&he.current?.onKeyUp(e,...t),e.key===`Enter`&&(Me.current=!1),J?.(e,...t)},Fe=y(e=>{p(f.filter(t=>t!==e),{type:`remove`,values:[e]})}),Ie=()=>{Me.current=!1},Le=()=>[_e(pe.current),me.current?.getPopupElement()];tv(Le,we,Te,!!ye.root);let Re=v.useRef(!1),ze=e=>{ve(!0),S||(ae.includes(`focus`)&&Te(!0),oe?.(e))},Be=()=>{we&&!Re.current&&Te(!1,{cancelFun:()=>ev(Le(),document.activeElement)})},Ve=e=>{ve(!1),be&&(x===`tags`?P(be,{source:`submit`}):x===`multiple`&&P(``,{source:`blur`})),Be(),S||se?.(e)},He=(e,...t)=>{let{target:n}=e;(me.current?.getPopupElement())?.contains(n)&&Te&&Te(!0),le?.(e,...t),Re.current=!0,pv(()=>{Re.current=!1})},[,Ue]=v.useState({});function We(){Ue({})}let Ge;ye.root&&(Ge=e=>{Te(e)});let Ke=v.useMemo(()=>({...e,notFoundContent:h,open:we,triggerOpen:we,rawOpen:Ce,id:n,showSearch:s,multiple:fe,toggleOpen:Te,showScrollBar:l,styles:a,classNames:o,lockOptions:Ee}),[e,h,Te,n,s,fe,we,Ce,l,a,o,Ee]),qe=v.useMemo(()=>{let e=z??B;return typeof e==`function`?e({searchValue:be,open:we,focused:ge,showSearch:s,loading:C}):e},[z,B,be,we,ge,s,C]),Je=()=>{g?.(),pe.current?.focus(),p([],{type:`clear`,values:f}),Oe(``,!1,!1)},{allowClear:Ye,clearIcon:Xe}=X_(r,f,L,V,S,be,x),Ze=v.createElement(H,{ref:he}),Qe=Y(r,i,{[`${r}-focused`]:ge,[`${r}-multiple`]:fe,[`${r}-single`]:!fe,[`${r}-allow-clear`]:Ye,[`${r}-show-arrow`]:qe!=null,[`${r}-disabled`]:S,[`${r}-loading`]:C,[`${r}-open`]:we,[`${r}-customize-input`]:xe,[`${r}-show-search`]:s}),$e=v.createElement(Zv,$v({},de,{ref:pe,prefixCls:r,className:Qe,focused:ge,prefix:R,suffix:qe,clearIcon:Xe,multiple:fe,mode:x,displayValues:f,placeholder:b,searchValue:be,activeValue:k,onSearch:Oe,onSearchSubmit:ke,onInputBlur:Ie,onFocus:ze,onBlur:Ve,onClearMouseDown:Je,onKeyDown:Ne,onKeyUp:Pe,onSelectorRemove:Fe,tokenWithEnter:De,onMouseDown:He,components:ye}));return $e=v.createElement(iv,{ref:me,disabled:S,prefixCls:r,visible:we,popupElement:Ze,animation:U,transitionName:W,popupStyle:ee,popupClassName:te,direction:u,popupMatchSelectWidth:G,popupRender:ne,popupAlign:re,placement:ie,builtinPlacements:K,getPopupContainer:q,empty:m,onPopupVisibleChange:Ge,onPopupMouseEnter:We,onPopupMouseDown:He,onPopupBlur:Be},$e),v.createElement(Z_.Provider,{value:Ke},v.createElement(dv,{visible:ge&&!we,values:f}),$e)}),ny=()=>null;ny.isSelectOptGroup=!0;var ry=()=>null;ry.isSelectOption=!0;var iy=v.forwardRef(({height:e,offsetY:t,offsetX:n,children:r,prefixCls:i,onInnerResize:a,innerProps:o,rtl:s,extra:c},l)=>{let u={},d={display:`flex`,flexDirection:`column`};return t!==void 0&&(u={height:e,position:`relative`,overflow:`hidden`},d={...d,transform:`translateY(${t}px)`,[s?`marginRight`:`marginLeft`]:-n,position:`absolute`,left:0,right:0,top:0}),v.createElement(`div`,{style:u},v.createElement(Me,{onResize:({offsetHeight:e})=>{e&&a&&a()}},v.createElement(`div`,qf({style:d,className:Y({[`${i}-holder-inner`]:i}),ref:l},o),r,c)))});iy.displayName=`Filler`;function ay({children:e,setRef:t}){let n=v.useCallback(e=>{t(e)},[]);return v.cloneElement(e,{ref:n})}function oy(e,t,n,r,i,a,o,{getKey:s}){return e.slice(t,n+1).map((e,n)=>{let c=o(e,t+n,{style:{width:r},offsetX:i}),l=s(e);return v.createElement(ay,{key:l,setRef:t=>a(e,t)},c)})}function sy(e,t,n){let r=e.length,i=t.length,a,o;if(r===0&&i===0)return null;r<i?(a=e,o=t):(a=t,o=e);let s={__EMPTY_ITEM__:!0};function c(e){return e===void 0?s:n(e)}let l=null,u=Math.abs(r-i)!==1;for(let e=0;e<o.length;e+=1){let t=c(a[e]);if(t!==c(o[e])){l=e,u||=t!==c(o[e+1]);break}}return l===null?null:{index:l,multiple:u}}function cy(e,t,n){let[r,i]=v.useState(e),[a,o]=v.useState(null);return v.useEffect(()=>{let a=sy(r||[],e||[],t);a?.index!==void 0&&(n?.(a.index),o(e[a.index])),i(e)},[e]),[a]}var ly=typeof navigator==`object`&&/Firefox/i.test(navigator.userAgent),uy=((e,t,n,r)=>{let i=(0,v.useRef)(!1),a=(0,v.useRef)(null);function o(){clearTimeout(a.current),i.current=!0,a.current=setTimeout(()=>{i.current=!1},50)}let s=(0,v.useRef)({top:e,bottom:t,left:n,right:r});return s.current.top=e,s.current.bottom=t,s.current.left=n,s.current.right=r,(e,t,n=!1)=>{let r=e?t<0&&s.current.left||t>0&&s.current.right:t<0&&s.current.top||t>0&&s.current.bottom;return n&&r?(clearTimeout(a.current),i.current=!1):(!r||i.current)&&o(),!i.current&&r}});function dy(e,t,n,r,i,a,o){let s=(0,v.useRef)(0),c=(0,v.useRef)(null),l=(0,v.useRef)(null),u=(0,v.useRef)(!1),d=uy(t,n,r,i);function f(e,t){if(Ge.cancel(c.current),d(!1,t))return;let n=e;if(!n._virtualHandled)n._virtualHandled=!0;else return;s.current+=t,l.current=t,ly||n.preventDefault(),c.current=Ge(()=>{let e=u.current?10:1;o(s.current*e,!1),s.current=0})}function p(e,t){o(t,!0),ly||e.preventDefault()}let m=(0,v.useRef)(null),h=(0,v.useRef)(null);function g(t){if(!e)return;Ge.cancel(h.current),h.current=Ge(()=>{m.current=null},2);let{deltaX:n,deltaY:r,shiftKey:i}=t,o=n,s=r;(m.current===`sx`||!m.current&&i&&r&&!n)&&(o=r,s=0,m.current=`sx`);let c=Math.abs(o),l=Math.abs(s);m.current===null&&(m.current=a&&c>l?`x`:`y`),m.current===`y`?f(t,s):p(t,o)}function _(t){e&&(u.current=t.detail===l.current)}return[g,_]}function fy(e,t,n,r){let[i,a]=v.useMemo(()=>[new Map,[]],[e,n.id,r]);return(o,s=o)=>{let c=i.get(o),l=i.get(s);if(c===void 0||l===void 0){let u=e.length;for(let d=a.length;d<u;d+=1){let u=e[d],f=t(u);i.set(f,d);let p=n.get(f)??r;if(a[d]=(a[d-1]||0)+p,f===o&&(c=d),f===s&&(l=d),c!==void 0&&l!==void 0)break}}return{top:a[c-1]||0,bottom:a[l]}}}var py=class{maps;id=0;diffRecords=new Map;constructor(){this.maps=Object.create(null)}set(e,t){this.diffRecords.set(e,this.maps[e]),this.maps[e]=t,this.id+=1}get(e){return this.maps[e]}resetRecord(){this.diffRecords.clear()}getRecord(){return this.diffRecords}};function my(e){let t=parseFloat(e);return isNaN(t)?0:t}function hy(e,t,n){let[r,i]=v.useState(0),a=(0,v.useRef)(new Map),o=(0,v.useRef)(new py),s=(0,v.useRef)(0);function c(){s.current+=1}function l(e=!1){c();let t=()=>{let e=!1;a.current.forEach((t,n)=>{if(t&&t.offsetParent){let{offsetHeight:r}=t,{marginTop:i,marginBottom:a}=getComputedStyle(t),s=my(i),c=my(a),l=r+s+c;o.current.get(n)!==l&&(o.current.set(n,l),e=!0)}}),e&&i(e=>e+1)};if(e)t();else{s.current+=1;let e=s.current;Promise.resolve().then(()=>{e===s.current&&t()})}}function u(r,i){let o=e(r),s=a.current.get(o);i?(a.current.set(o,i),l()):a.current.delete(o),!s!=!i&&(i?t?.(r):n?.(r))}return(0,v.useEffect)(()=>c,[]),[u,l,o.current,r]}var gy=14/15;function _y(e,t,n){let r=(0,v.useRef)(!1),i=(0,v.useRef)(0),a=(0,v.useRef)(0),o=(0,v.useRef)(null),s=(0,v.useRef)(null),c,l=e=>{if(r.current){let t=Math.ceil(e.touches[0].pageX),r=Math.ceil(e.touches[0].pageY),o=i.current-t,c=a.current-r,l=Math.abs(o)>Math.abs(c);l?i.current=t:a.current=r;let u=n(l,l?o:c,!1,e);u&&e.preventDefault(),clearInterval(s.current),u&&(s.current=setInterval(()=>{l?o*=gy:c*=gy;let e=Math.floor(l?o:c);(!n(l,e,!0)||Math.abs(e)<=.1)&&clearInterval(s.current)},16))}},u=()=>{r.current=!1,c()},d=e=>{c(),e.touches.length===1&&!r.current&&(r.current=!0,i.current=Math.ceil(e.touches[0].pageX),a.current=Math.ceil(e.touches[0].pageY),o.current=e.target,o.current.addEventListener(`touchmove`,l,{passive:!1}),o.current.addEventListener(`touchend`,u,{passive:!0}))};c=()=>{o.current&&(o.current.removeEventListener(`touchmove`,l),o.current.removeEventListener(`touchend`,u))},S(()=>(e&&t.current.addEventListener(`touchstart`,d,{passive:!0}),()=>{t.current?.removeEventListener(`touchstart`,d),c(),clearInterval(s.current)}),[e])}function vy(e){return Math.floor(e**.5)}function yy(e,t){return(`touches`in e?e.touches[0]:e)[t?`pageX`:`pageY`]-window[t?`scrollX`:`scrollY`]}function by(e,t,n){v.useEffect(()=>{let r=t.current;if(e&&r){let e=!1,t,i,a=()=>{Ge.cancel(t)},o=()=>{a(),t=Ge(()=>{n(i),o()})},s=()=>{e=!1,a()},c=t=>{if(t.target.draggable||t.button!==0)return;let n=t;n._virtualHandled||(n._virtualHandled=!0,e=!0)},l=t=>{if(e){let e=yy(t,!1),{top:n,bottom:s}=r.getBoundingClientRect();e<=n?(i=-vy(n-e),o()):e>=s?(i=vy(e-s),o()):a()}};return r.addEventListener(`mousedown`,c),r.ownerDocument.addEventListener(`mouseup`,s),r.ownerDocument.addEventListener(`mousemove`,l),r.ownerDocument.addEventListener(`dragend`,s),()=>{r.removeEventListener(`mousedown`,c),r.ownerDocument.removeEventListener(`mouseup`,s),r.ownerDocument.removeEventListener(`mousemove`,l),r.ownerDocument.removeEventListener(`dragend`,s),a()}}},[e])}var xy=10;function Sy(e,t,n,r,i,a,o,s){let c=v.useRef(),[l,u]=v.useState(null);return S(()=>{if(l&&l.times<xy){if(!e.current){u(e=>({...e}));return}a();let{targetAlign:s,originAlign:c,index:d,offset:f}=l,p=e.current.clientHeight,m=!1,h=s,g=null;if(p){let a=s||c,u=0,_=0,v=0,y=Math.min(t.length-1,d);for(let e=0;e<=y;e+=1){let a=i(t[e]);_=u;let o=n.get(a);v=_+(o===void 0?r:o),u=v}let b=a===`top`?f:p-f;for(let e=y;e>=0;--e){let r=i(t[e]),a=n.get(r);if(a===void 0){m=!0;break}if(b-=a,b<=0)break}switch(a){case`top`:g=_-f;break;case`bottom`:g=v-p+f;break;default:{let{scrollTop:t}=e.current,n=t+p;_<t?h=`top`:v>n&&(h=`bottom`)}}g!==null&&o(g),g!==l.lastTop&&(m=!0)}m&&u({...l,times:l.times+1,targetAlign:h,lastTop:g})}},[l,e.current]),e=>{if(e==null){s();return}if(Ge.cancel(c.current),typeof e==`number`)o(e);else if(e&&typeof e==`object`){let n,{align:r}=e;`index`in e?{index:n}=e:n=t.findIndex(t=>i(t)===e.key);let{offset:a=0}=e;u({times:0,index:n,offset:a,originAlign:r})}}}var Cy=v.forwardRef((e,t)=>{let{prefixCls:n,rtl:r,scrollOffset:i,scrollRange:a,onStartMove:o,onStopMove:s,onScroll:c,horizontal:l,spinSize:u,containerSize:d,style:f,thumbStyle:p,showScrollBar:m}=e,[h,g]=v.useState(!1),[_,y]=v.useState(null),[b,x]=v.useState(null),S=!r,C=v.useRef(),w=v.useRef(),[T,E]=v.useState(m),D=v.useRef(),O=()=>{m===!0||m===!1||(clearTimeout(D.current),E(!0),D.current=setTimeout(()=>{E(!1)},3e3))},k=a-d||0,A=d-u||0,j=v.useMemo(()=>i===0||k===0?0:i/k*A,[i,k,A]),M=e=>{e.stopPropagation(),e.preventDefault()},N=v.useRef({top:j,dragging:h,pageY:_,startTop:b});N.current={top:j,dragging:h,pageY:_,startTop:b};let P=e=>{g(!0),y(yy(e,l)),x(N.current.top),o(),e.stopPropagation(),e.preventDefault()};v.useEffect(()=>{let e=e=>{e.preventDefault()},t=C.current,n=w.current;return t.addEventListener(`touchstart`,e,{passive:!1}),n.addEventListener(`touchstart`,P,{passive:!1}),()=>{t.removeEventListener(`touchstart`,e),n.removeEventListener(`touchstart`,P)}},[]);let F=v.useRef();F.current=k;let I=v.useRef();I.current=A,v.useEffect(()=>{if(h){let e,t=t=>{let{dragging:n,pageY:r,startTop:i}=N.current;Ge.cancel(e);let a=C.current.getBoundingClientRect(),o=d/(l?a.width:a.height);if(n){let n=(yy(t,l)-r)*o,a=i;!S&&l?a-=n:a+=n;let s=F.current,u=I.current,d=u?a/u:0,f=Math.ceil(d*s);f=Math.max(f,0),f=Math.min(f,s),e=Ge(()=>{c(f,l)})}},n=()=>{g(!1),s()};return window.addEventListener(`mousemove`,t,{passive:!0}),window.addEventListener(`touchmove`,t,{passive:!0}),window.addEventListener(`mouseup`,n,{passive:!0}),window.addEventListener(`touchend`,n,{passive:!0}),()=>{window.removeEventListener(`mousemove`,t),window.removeEventListener(`touchmove`,t),window.removeEventListener(`mouseup`,n),window.removeEventListener(`touchend`,n),Ge.cancel(e)}}},[h]),v.useEffect(()=>(O(),()=>{clearTimeout(D.current)}),[i]),v.useImperativeHandle(t,()=>({delayHidden:O}));let L=`${n}-scrollbar`,R={position:`absolute`,visibility:T?null:`hidden`},z={position:`absolute`,borderRadius:99,background:`var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))`,cursor:`pointer`,userSelect:`none`};return l?(Object.assign(R,{height:8,left:0,right:0,bottom:0}),Object.assign(z,{height:`100%`,width:u,[S?`left`:`right`]:j})):(Object.assign(R,{width:8,top:0,bottom:0,[S?`right`:`left`]:0}),Object.assign(z,{width:`100%`,height:u,top:j})),v.createElement(`div`,{ref:C,className:Y(L,{[`${L}-horizontal`]:l,[`${L}-vertical`]:!l,[`${L}-visible`]:T}),style:{...R,...f},onMouseDown:M,onMouseMove:O},v.createElement(`div`,{ref:w,className:Y(`${L}-thumb`,{[`${L}-thumb-moving`]:h}),style:{...z,...p},onMouseDown:P}))}),wy=20;function Ty(e=0,t=0){let n=e/t*e;return isNaN(n)&&(n=0),n=Math.max(n,wy),Math.floor(n)}var Ey=[],Dy={overflowY:`auto`,overflowAnchor:`none`};function Oy(e,t){let{prefixCls:n=`rc-virtual-list`,className:r,height:i,itemHeight:a,fullHeight:o=!0,style:s,data:c,children:l,itemKey:u,virtual:d,direction:f,scrollWidth:p,component:m=`div`,onScroll:h,onVirtualScroll:g,onVisibleChange:_,innerProps:b,extraRender:x,styles:C,showScrollBar:w=`optional`,...T}=e,E=v.useCallback(e=>typeof u==`function`?u(e):e?.[u],[u]),[D,O,k,A]=hy(E,null,null),j=!!(d!==!1&&i&&a),M=v.useMemo(()=>Object.values(k.maps).reduce((e,t)=>e+t,0),[k.id,k.maps]),N=j&&c&&(Math.max(a*c.length,M)>i||!!p),P=f===`rtl`,F=Y(n,{[`${n}-rtl`]:P},r),I=c||Ey,L=(0,v.useRef)(),R=(0,v.useRef)(),z=(0,v.useRef)(),[B,V]=(0,v.useState)(0),[H,U]=(0,v.useState)(0),[W,ee]=(0,v.useState)(!1),te=()=>{ee(!0)},G=()=>{ee(!1)},ne={getKey:E};function re(e){V(t=>{let n;n=typeof e==`function`?e(t):e;let r=_e(n);return L.current.scrollTop=r,r})}let ie=(0,v.useRef)({start:0,end:I.length}),K=(0,v.useRef)(),[q]=cy(I,E);K.current=q;let{scrollHeight:ae,start:oe,end:se,offset:J}=v.useMemo(()=>{if(!j)return{scrollHeight:void 0,start:0,end:I.length-1,offset:void 0};if(!N)return{scrollHeight:R.current?.offsetHeight||0,start:0,end:I.length-1,offset:void 0};let e=0,t,n,r,o=I.length;for(let s=0;s<o;s+=1){let o=I[s],c=E(o),l=k.get(c),u=e+(l===void 0?a:l);u>=B&&t===void 0&&(t=s,n=e),u>B+i&&r===void 0&&(r=s),e=u}return t===void 0&&(t=0,n=0,r=Math.ceil(i/a)),r===void 0&&(r=I.length-1),r=Math.min(r+1,I.length-1),{scrollHeight:e,start:t,end:r,offset:n}},[N,j,B,I,A,i]);ie.current.start=oe,ie.current.end=se,v.useLayoutEffect(()=>{let e=k.getRecord();if(e.size===1){let t=Array.from(e.keys())[0],n=e.get(t),r=I[oe];if(r&&n===void 0&&E(r)===t){let e=k.get(t)-a;re(t=>t+e)}}k.resetRecord()},[ae]);let[ce,le]=v.useState({width:0,height:i}),ue=e=>{le({width:e.offsetWidth,height:e.offsetHeight})},de=(0,v.useRef)(),fe=(0,v.useRef)(),pe=v.useMemo(()=>Ty(ce.width,p),[ce.width,p]),me=v.useMemo(()=>Ty(ce.height,ae),[ce.height,ae]),he=ae-i,ge=(0,v.useRef)(he);ge.current=he;function _e(e){let t=e;return Number.isNaN(ge.current)||(t=Math.min(t,ge.current)),t=Math.max(t,0),t}let ve=B<=0,ye=B>=he,be=H<=0,xe=H>=p,Se=uy(ve,ye,be,xe),Ce=()=>({x:P?-H:H,y:B}),we=(0,v.useRef)(Ce()),Te=y(e=>{if(g){let t={...Ce(),...e};(we.current.x!==t.x||we.current.y!==t.y)&&(g(t),we.current=t)}});function Ee(e,t){let n=e;t?((0,bl.flushSync)(()=>{U(n)}),Te()):re(n)}function De(e){let{scrollTop:t}=e.currentTarget;t!==B&&re(t),h?.(e),Te()}let Oe=e=>{let t=e,n=p?p-ce.width:0;return t=Math.max(t,0),t=Math.min(t,n),t},ke=y((e,t)=>{t?((0,bl.flushSync)(()=>{U(t=>Oe(t+(P?-e:e)))}),Te()):re(t=>t+e)}),[Ae,je]=dy(j,ve,ye,be,xe,!!p,ke);_y(j,L,(e,t,n,r)=>{let i=r;return Se(e,t,n)?!1:!i||!i._virtualHandled?(i&&(i._virtualHandled=!0),Ae({preventDefault(){},deltaX:e?t:0,deltaY:e?0:t}),!0):!1}),by(N,L,e=>{re(t=>t+e)}),S(()=>{function e(e){let t=ve&&e.detail<0,n=ye&&e.detail>0;j&&!t&&!n&&e.preventDefault()}let t=L.current;return t.addEventListener(`wheel`,Ae,{passive:!1}),t.addEventListener(`DOMMouseScroll`,je,{passive:!0}),t.addEventListener(`MozMousePixelScroll`,e,{passive:!1}),()=>{t.removeEventListener(`wheel`,Ae),t.removeEventListener(`DOMMouseScroll`,je),t.removeEventListener(`MozMousePixelScroll`,e)}},[j,ve,ye]),S(()=>{if(p){let e=Oe(H);U(e),Te({x:e})}},[ce.width,p]);let Ne=()=>{de.current?.delayHidden(),fe.current?.delayHidden()},Pe=Sy(L,I,k,a,E,()=>O(!0),re,Ne);v.useImperativeHandle(t,()=>({nativeElement:z.current,getScrollInfo:Ce,scrollTo:e=>{function t(e){return e&&typeof e==`object`&&(`left`in e||`top`in e)}t(e)?(e.left!==void 0&&U(Oe(e.left)),Pe(e.top)):Pe(e)}})),S(()=>{_&&_(I.slice(oe,se+1),I)},[oe,se,I]);let Fe=fy(I,E,k,a),Ie=x?.({start:oe,end:se,virtual:N,offsetX:H,offsetY:J,rtl:P,getSize:Fe}),Le=oy(I,oe,se,p,H,D,l,ne),Re=null;i&&(Re={[o?`height`:`maxHeight`]:i,...Dy},j&&(Re.overflowY=`hidden`,p&&(Re.overflowX=`hidden`),W&&(Re.pointerEvents=`none`)));let ze={};return P&&(ze.dir=`rtl`),v.createElement(`div`,qf({ref:z,style:{...s,position:`relative`},className:F},ze,T),v.createElement(Me,{onResize:ue},v.createElement(m,{className:`${n}-holder`,style:Re,ref:L,onScroll:De,onMouseEnter:Ne},v.createElement(iy,{prefixCls:n,height:ae,offsetX:H,offsetY:J,scrollWidth:p,onInnerResize:O,ref:R,innerProps:b,rtl:P,extra:Ie},Le))),N&&ae>i&&v.createElement(Cy,{ref:de,prefixCls:n,scrollOffset:B,scrollRange:ae,rtl:P,onScroll:Ee,onStartMove:te,onStopMove:G,spinSize:me,containerSize:ce.height,style:C?.verticalScrollBar,thumbStyle:C?.verticalScrollBarThumb,showScrollBar:w}),N&&p>ce.width&&v.createElement(Cy,{ref:fe,prefixCls:n,scrollOffset:H,scrollRange:p,rtl:P,onScroll:Ee,onStartMove:te,onStopMove:G,spinSize:pe,containerSize:ce.width,horizontal:!0,style:C?.horizontalScrollBar,thumbStyle:C?.horizontalScrollBarThumb,showScrollBar:w}))}var ky=v.forwardRef(Oy);ky.displayName=`List`;var Ay=ky;function jy(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}function My(){return My=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},My.apply(this,arguments)}function Ny(e){return typeof e==`string`||typeof e==`number`}var Py=v.forwardRef((e,t)=>{let{prefixCls:n,id:r,open:i,multiple:a,mode:o,searchValue:s,toggleOpen:c,notFoundContent:l,onPopupScroll:u,showScrollBar:d,lockOptions:f}=Q_(),{maxCount:p,flattenOptions:m,onActiveValue:h,defaultActiveFirstOption:g,onSelect:_,menuItemSelectedIcon:y,rawValues:b,fieldNames:x,virtual:S,direction:C,listHeight:w,listItemHeight:T,optionRender:E,classNames:D,styles:k}=v.useContext(bv),A=`${n}-item`,j=O(()=>m,[i,f],(e,t)=>t[0]&&!t[1]),M=v.useRef(null),N=v.useMemo(()=>a&&ov(p)&&b?.size>=p,[a,p,b?.size]),P=e=>{e.preventDefault()},F=e=>{M.current?.scrollTo(typeof e==`number`?{index:e}:e)},I=v.useCallback(e=>o===`combobox`?!1:b.has(e),[o,[...b].toString(),b.size]),L=(e,t=1)=>{let n=j.length;for(let r=0;r<n;r+=1){let i=(e+r*t+n)%n,{group:a,data:o}=j[i]||{};if(!a&&!o?.disabled&&(I(o.value)||!N))return i}return-1},[R,z]=v.useState(()=>L(0)),B=(e,t=!1)=>{z(e);let n={source:t?`keyboard`:`mouse`},r=j[e];if(!r){h(null,-1,n);return}h(r.value,e,n)};(0,v.useEffect)(()=>{B(g===!1?-1:L(0))},[j.length,s]);let V=v.useCallback(e=>o===`combobox`?String(e).toLowerCase()===s.toLowerCase():b.has(e),[o,s,[...b].toString(),b.size]);(0,v.useEffect)(()=>{let e;if(!a&&i&&b.size===1){let t=Array.from(b)[0],n=j.findIndex(({data:e})=>s?String(e.value).startsWith(s):e.value===t);n!==-1&&(B(n),e=setTimeout(()=>{F(n)}))}return i&&M.current?.scrollTo(void 0),()=>clearTimeout(e)},[i,s]);let H=e=>{e!==void 0&&_(e,{selected:!b.has(e)}),a||c(!1)};if(v.useImperativeHandle(t,()=>({onKeyDown:e=>{let{which:t,ctrlKey:n}=e;switch(t){case Z.N:case Z.P:case Z.UP:case Z.DOWN:{let e=0;if(t===Z.UP?e=-1:t===Z.DOWN?e=1:jy()&&n&&(t===Z.N?e=1:t===Z.P&&(e=-1)),e!==0){let t=L(R+e,e);F(t),B(t,!0)}break}case Z.TAB:case Z.ENTER:{let t=j[R];if(!t||t.data.disabled)return H(void 0);!N||b.has(t.value)?H(t.value):H(void 0),i&&e.preventDefault();break}case Z.ESC:c(!1),i&&e.stopPropagation()}},onKeyUp:()=>{},scrollTo:e=>{F(e)}})),j.length===0)return v.createElement(`div`,{role:`listbox`,id:`${r}_list`,className:`${A}-empty`,onMouseDown:P},l);let U=Object.keys(x).map(e=>x[e]),W=e=>e.label;function ee(e,t){let{group:n}=e;return{role:n?`presentation`:`option`,id:`${r}_list_${t}`}}let te=e=>{let t=j[e];if(!t)return null;let n=t.data||{},{value:r,disabled:i}=n,{group:a}=t,o=Ns(n,!0),s=W(t);return t?v.createElement(`div`,My({"aria-label":typeof s==`string`&&!a?s:null},o,{key:e},ee(t,e),{"aria-selected":V(r),"aria-disabled":i}),r):null},G={role:`listbox`,id:`${r}_list`};return v.createElement(v.Fragment,null,S&&v.createElement(`div`,My({},G,{style:{height:0,width:0,overflow:`hidden`}}),te(R-1),te(R),te(R+1)),v.createElement(Ay,{itemKey:`key`,ref:M,data:j,height:w,itemHeight:T,fullHeight:!1,onMouseDown:P,onScroll:u,virtual:S,direction:C,innerProps:S?null:G,showScrollBar:d,className:D?.popup?.list,style:k?.popup?.list},(e,t)=>{let{group:n,groupOption:r,data:i,label:a,value:o}=e,{key:s}=i;if(n){let e=i.title??(Ny(a)?a.toString():void 0);return v.createElement(`div`,{className:Y(A,`${A}-group`,i.className),title:e},a===void 0?s:a)}let{disabled:c,title:l,children:u,style:d,className:f,...p}=i,m=ue(p,U),h=I(o),g=c||!h&&N,_=`${A}-option`,b=Y(A,_,f,D?.popup?.listItem,{[`${_}-grouped`]:r,[`${_}-active`]:R===t&&!g,[`${_}-disabled`]:g,[`${_}-selected`]:h}),x=W(e),C=!y||typeof y==`function`||h,w=typeof x==`number`?x:x||o,T=Ny(w)?w.toString():void 0;return l!==void 0&&(T=l),v.createElement(`div`,My({},Ns(m),S?{}:ee(e,t),{"aria-selected":S?void 0:V(o),"aria-disabled":g,className:b,title:T,onMouseMove:()=>{R===t||g||B(t)},onClick:()=>{g||H(o)},style:{...k?.popup?.listItem,...d}}),v.createElement(`div`,{className:`${_}-content`},typeof E==`function`?E(e,{index:t}):w),v.isValidElement(y)||h,C&&v.createElement(Hv,{className:`${A}-option-state`,customizeIcon:y,customizeIconProps:{value:o,disabled:g,isSelected:h}},h?`✓`:null))}))}),Fy=((e,t)=>{let n=v.useRef({values:new Map,options:new Map});return[v.useMemo(()=>{let{values:r,options:i}=n.current,a=e.map(e=>e.label===void 0?{...e,label:r.get(e.value)?.label}:e),o=new Map,s=new Map;return a.forEach(e=>{o.set(e.value,e),s.set(e.value,t.get(e.value)||i.get(e.value))}),n.current.values=o,n.current.options=s,a},[e,t]),v.useCallback(e=>t.get(e)||n.current.options.get(e),[t])]});function Iy(e,t){return xv(e).join(``).toUpperCase().includes(t)}var Ly=((e,t,n,r,i)=>v.useMemo(()=>{if(!n||r===!1)return e;let{options:a,label:o,value:s}=t,c=[],l=typeof r==`function`,u=n.toUpperCase(),d=l?r:(e,t)=>i&&i.length?i.some(e=>Iy(t[e],u)):t[a]?Iy(t[o===`children`?`label`:o],u):Iy(t[s],u),f=l?e=>lv(e):e=>e;return e.forEach(e=>{if(e[a]){if(d(n,f(e)))c.push(e);else{let t=e[a].filter(e=>d(n,f(e)));t.length&&c.push({...e,[a]:t})}return}d(n,f(e))&&c.push(e)}),c},[e,r,i,n,t]));function Ry(e){let{key:t,props:{children:n,value:r,...i}}=e;return{key:t,value:r===void 0?t:r,children:n,...i}}function zy(e,t=!1){return de(e).map((e,n)=>{if(!v.isValidElement(e)||!e.type)return null;let{type:{isSelectOptGroup:r},key:i,props:{children:a,...o}}=e;return t||!r?Ry(e):{key:`__RC_SELECT_GRP__${i===null?n:i}__`,label:i,...o,options:zy(a)}}).filter(e=>e)}var By=(e,t,n,r,i)=>v.useMemo(()=>{let a=e;e||(a=zy(t));let o=new Map,s=new Map,c=(e,t,n)=>{n&&typeof n==`string`&&e.set(t[n],t)},l=(e,t=!1)=>{for(let a=0;a<e.length;a+=1){let u=e[a];!u[n.options]||t?(o.set(u[n.value],u),c(s,u,n.label),r.forEach(e=>{c(s,u,e)}),c(s,u,i)):l(u[n.options],!0)}};return l(a),{options:a,valueOptions:o,labelOptions:s}},[e,t,n,r,i]);function Vy(e){let t=v.useRef();return t.current=e,v.useCallback((...e)=>t.current(...e),[])}function Hy(e,t,n){let{filterOption:r,searchValue:i,optionFilterProp:a,filterSort:o,onSearch:s,autoClearSearchValue:c}=t;return v.useMemo(()=>{let t=typeof e==`object`,l={filterOption:r,searchValue:i,optionFilterProp:a,filterSort:o,onSearch:s,autoClearSearchValue:c,...t?e:{}};return[t||n===`combobox`||n===`tags`||n===`multiple`&&e===void 0?!0:e,l]},[n,e,r,i,a,o,s,c])}function Uy(){return Uy=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},Uy.apply(this,arguments)}var Wy=[`inputValue`];function Gy(e){return!e||typeof e!=`object`}var Ky=v.forwardRef((e,t)=>{let{id:n,mode:r,prefixCls:i=`rc-select`,backfill:a,fieldNames:o,showSearch:s,searchValue:c,onSearch:l,autoClearSearchValue:u,filterOption:d,optionFilterProp:f,filterSort:p,onSelect:m,onDeselect:h,onActive:g,popupMatchSelectWidth:_=!0,optionLabelProp:y,options:b,optionRender:x,children:S,defaultActiveFirstOption:C,menuItemSelectedIcon:w,virtual:E,direction:D,listHeight:O=200,listItemHeight:k=20,labelRender:A,value:j,defaultValue:M,labelInValue:N,onChange:P,maxCount:F,classNames:I,styles:L,...R}=e,[z,B]=Hy(s,{searchValue:c,onSearch:l,autoClearSearchValue:u,filterOption:d,optionFilterProp:f,filterSort:p},r),{filterOption:V,searchValue:H,optionFilterProp:U,filterSort:W,onSearch:ee,autoClearSearchValue:te=!0}=B,G=v.useMemo(()=>U?Array.isArray(U)?U:[U]:[],[U]),ne=dl(n),re=ey(r),ie=!!(!b&&S),K=v.useMemo(()=>V===void 0&&r===`combobox`?!1:V,[V,r]),q=v.useMemo(()=>sv(o,ie),[JSON.stringify(o),ie]),[ae,oe]=T(``,H),se=ae||``,J=By(b,S,q,G,y),{valueOptions:ce,labelOptions:le,options:ue}=J,de=v.useCallback(e=>xv(e).map(e=>{let t,n,r,i;Gy(e)?t=e:(n=e.label,t=e.value);let a=ce.get(t);return a&&(n===void 0&&(n=a?.[y||q.label]),r=a?.disabled,i=a?.title),{label:n,value:t,key:t,disabled:r,title:i}}),[q,y,ce]),[fe,pe]=T(M,j),[me,he]=Fy(v.useMemo(()=>{let e=de(re&&fe===null?[]:fe);return r===`combobox`&&Cv(e[0]?.value)?[]:e},[fe,de,r,re]),ce),ge=v.useMemo(()=>{if(!r&&me.length===1){let e=me[0];if(e.value===null&&(e.label===null||e.label===void 0))return[]}return me.map(e=>({...e,label:(typeof A==`function`?A(e):e.label)??e.value}))},[r,me,A]),_e=v.useMemo(()=>new Set(me.map(e=>e.value)),[me]);v.useEffect(()=>{if(r===`combobox`){let e=me[0]?.value;oe(Sv(e)?String(e):``)}},[me]);let ve=Vy((e,t)=>{let n=t??e;return{[q.value]:e,[q.label]:n}}),ye=Ly(v.useMemo(()=>{if(r!==`tags`)return ue;let e=[...ue],t=e=>ce.has(e);return[...me].sort((e,t)=>e.value<t.value?-1:1).forEach(n=>{let r=n.value;t(r)||e.push(ve(r,n.label))}),e},[ve,ue,ce,me,r]),q,se,K,G),be=v.useMemo(()=>{let e=e=>G.length?G.some(t=>e?.[t]===se):e?.value===se;return r!==`tags`||!se||ye.some(t=>e(t))||ye.some(e=>e[q.value]===se)?ye:[ve(se),...ye]},[ve,G,r,ye,se,q]),xe=e=>[...e].sort((e,t)=>W(e,t,{searchValue:se})).map(e=>Array.isArray(e.options)?{...e,options:e.options.length>0?xe(e.options):e.options}:e),Se=v.useMemo(()=>W?xe(be):be,[be,W,se]),Ce=v.useMemo(()=>cv(Se,{fieldNames:q,childrenAsData:ie}),[Se,q,ie]),we=e=>{let t=de(e);if(pe(t),P&&(t.length!==me.length||t.some((e,t)=>me[t]?.value!==e?.value))){let e=N?t.map(({label:e,value:t})=>({label:e,value:t})):t.map(e=>e.value),n=t.map(e=>lv(he(e.value)));P(re?e:e[0],re?n:n[0])}},[Te,Ee]=v.useState(null),[De,Oe]=v.useState(0),ke=C===void 0?r!==`combobox`:C,Ae=v.useRef(),je=v.useCallback((e,t,{source:n=`keyboard`}={})=>{Oe(t),a&&r===`combobox`&&e!==null&&n===`keyboard`&&Ee(String(e));let i=Promise.resolve().then(()=>{Ae.current===i&&g?.(e)});Ae.current=i},[a,r,g]),Me=(e,t,n)=>{let r=()=>{let t=he(e);return[N?{label:t?.[q.label],value:e}:e,lv(t)]};if(t&&m){let[e,t]=r();m(e,t)}else if(!t&&h&&n!==`clear`){let[e,t]=r();h(e,t)}},Ne=Vy((e,t)=>{let n,i=re?t.selected:!0;n=i?re?[...me,e]:[e]:me.filter(t=>t.value!==e),we(n),Me(e,i),r===`combobox`?Ee(``):(!ey||te)&&(oe(``),Ee(``))}),Y=(e,t)=>{we(e);let{type:n,values:r}=t;(n===`remove`||n===`clear`)&&r.forEach(e=>{Me(e.value,!1,n)})},Pe=(e,t)=>{if(oe(e),Ee(null),t.source===`submit`){let t=(e||``).trim();t&&(we(Array.from(new Set([..._e,t]))),Me(t,!0),oe(``));return}t.source!==`blur`&&(r===`combobox`&&we(e),ee?.(e))},Fe=e=>{let t=e;r!==`tags`&&(t=e.map(e=>le.get(e)?.value).filter(e=>e!==void 0));let n=Array.from(new Set([..._e,...t]));we(n),n.forEach(e=>{Me(e,!0)})},Ie=v.useMemo(()=>{let e=E!==!1&&_!==!1;return{...J,flattenOptions:Ce,onActiveValue:je,defaultActiveFirstOption:ke,onSelect:Ne,menuItemSelectedIcon:w,rawValues:_e,fieldNames:q,virtual:e,direction:D,listHeight:O,listItemHeight:k,childrenAsData:ie,maxCount:F,optionRender:x,classNames:I,styles:L}},[F,J,Ce,je,ke,Ne,w,_e,q,E,_,D,O,k,ie,x,I,L]);return v.createElement(bv.Provider,{value:Ie},v.createElement(ty,Uy({},R,{id:ne,prefixCls:i,ref:t,omitDomProps:Wy,mode:r,classNames:I,styles:L,displayValues:ge,onDisplayValuesChange:Y,maxCount:F,direction:D,showSearch:z,searchValue:se,onSearch:Pe,autoClearSearchValue:te,onSearchSplit:Fe,popupMatchSelectWidth:_,OptionList:Py,emptyOptions:!Ce.length,activeValue:Te,activeDescendantId:`${ne}_list_${De}`})))});Ky.Option=ry,Ky.OptGroup=ny;var qy=Ky,Jy=(e,t,n)=>Y({[`${e}-status-success`]:t===`success`,[`${e}-status-warning`]:t===`warning`,[`${e}-status-error`]:t===`error`,[`${e}-status-validating`]:t===`validating`,[`${e}-has-feedback`]:n}),Yy=(e,t)=>t||e,Xy=()=>{let[,e]=La(),[t]=ec(`Empty`),n=new ki(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return v.createElement(`svg`,{style:n,width:`184`,height:`152`,viewBox:`0 0 184 152`,xmlns:`http://www.w3.org/2000/svg`},v.createElement(`title`,null,t?.description||`Empty`),v.createElement(`g`,{fill:`none`,fillRule:`evenodd`},v.createElement(`g`,{transform:`translate(24 31.7)`},v.createElement(`ellipse`,{fillOpacity:`.8`,fill:`#F5F5F7`,cx:`67.8`,cy:`106.9`,rx:`67.8`,ry:`12.7`}),v.createElement(`path`,{fill:`#aeb8c2`,d:`M122 69.7 98.1 40.2a6 6 0 0 0-4.6-2.2H42.1a6 6 0 0 0-4.6 2.2l-24 29.5V85H122z`}),v.createElement(`path`,{fill:`#f5f5f7`,d:`M33.8 0h68a4 4 0 0 1 4 4v93.3a4 4 0 0 1-4 4h-68a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4`}),v.createElement(`path`,{fill:`#dce0e6`,d:`M42.7 10h50.2a2 2 0 0 1 2 2v25a2 2 0 0 1-2 2H42.7a2 2 0 0 1-2-2V12a2 2 0 0 1 2-2m.2 39.8h49.8a2.3 2.3 0 1 1 0 4.5H42.9a2.3 2.3 0 0 1 0-4.5m0 11.7h49.8a2.3 2.3 0 1 1 0 4.6H42.9a2.3 2.3 0 0 1 0-4.6m79 43.5a7 7 0 0 1-6.8 5.4H20.5a7 7 0 0 1-6.7-5.4l-.2-1.8V69.7h26.3c2.9 0 5.2 2.4 5.2 5.4s2.4 5.4 5.3 5.4h34.8c2.9 0 5.3-2.4 5.3-5.4s2.3-5.4 5.2-5.4H122v33.5q0 1-.2 1.8`})),v.createElement(`path`,{fill:`#dce0e6`,d:`m149.1 33.3-6.8 2.6a1 1 0 0 1-1.3-1.2l2-6.2q-4.1-4.5-4.2-10.4c0-10 10.1-18.1 22.6-18.1S184 8.1 184 18.1s-10.1 18-22.6 18q-6.8 0-12.3-2.8`}),v.createElement(`g`,{fill:`#fff`,transform:`translate(149.7 15.4)`},v.createElement(`circle`,{cx:`20.7`,cy:`3.2`,r:`2.8`}),v.createElement(`path`,{d:`M5.7 5.6H0L2.9.7zM9.3.7h5v5h-5z`}))))},Zy=()=>{let[,e]=La(),[t]=ec(`Empty`),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:i,colorBgContainer:a}=e,{borderColor:o,shadowColor:s,contentColor:c}=(0,v.useMemo)(()=>({borderColor:new ki(n).onBackground(a).toHexString(),shadowColor:new ki(r).onBackground(a).toHexString(),contentColor:new ki(i).onBackground(a).toHexString()}),[n,r,i,a]);return v.createElement(`svg`,{width:`64`,height:`41`,viewBox:`0 0 64 41`,xmlns:`http://www.w3.org/2000/svg`},v.createElement(`title`,null,t?.description||`Empty`),v.createElement(`g`,{transform:`translate(0 1)`,fill:`none`,fillRule:`evenodd`},v.createElement(`ellipse`,{fill:s,cx:`32`,cy:`33`,rx:`32`,ry:`7`}),v.createElement(`g`,{fillRule:`nonzero`,stroke:o},v.createElement(`path`,{d:`M55 12.8 44.9 1.3Q44 0 42.9 0H21.1q-1.2 0-2 1.3L9 12.8V22h46z`}),v.createElement(`path`,{d:`M41.6 16c0-1.7 1-3 2.2-3H55v18.1c0 2.2-1.3 3.9-3 3.9H12c-1.7 0-3-1.7-3-3.9V13h11.2c1.2 0 2.2 1.3 2.2 3s1 2.9 2.2 2.9h14.8c1.2 0 2.2-1.4 2.2-3`,fill:c}))))},Qy=e=>{let{componentCls:t,margin:n,marginXS:r,marginXL:i,fontSize:a,lineHeight:o}=e;return{[t]:{marginInline:r,fontSize:a,lineHeight:o,textAlign:`center`,[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:`100%`},svg:{maxWidth:`100%`,height:`100%`,margin:`auto`}},[`${t}-description`]:{color:e.colorTextDescription},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:i,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},$y=Ja(`Empty`,e=>{let{componentCls:t,controlHeightLG:n,calc:r}=e;return Qy(si(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()}))}),eb=v.createElement(Xy,null),tb=v.createElement(Zy,null),nb=e=>{let{className:t,rootClassName:n,prefixCls:r,image:i,description:a,children:o,imageStyle:s,style:c,classNames:l,styles:u,...d}=e,{getPrefixCls:f,direction:p,className:m,style:h,classNames:g,styles:_,image:y}=Ze(`empty`),b=f(`empty`,r),[x,S]=$y(b),[C,w]=Dc([g,l],[_,u],{props:e}),[T]=ec(`Empty`),E=a===void 0?T?.description:a,D=typeof E==`string`?E:`empty`,O=i??y??eb,k=null;return k=typeof O==`string`?v.createElement(`img`,{draggable:!1,alt:D,src:O}):O,v.createElement(`div`,{className:Y(x,S,b,m,{[`${b}-normal`]:O===tb,[`${b}-rtl`]:p===`rtl`},t,n,C.root),style:{...w.root,...h,...c},...d},v.createElement(`div`,{className:Y(`${b}-image`,C.image),style:{...s,...w.image}},k),E&&v.createElement(`div`,{className:Y(`${b}-description`,C.description),style:w.description},E),o&&v.createElement(`div`,{className:Y(`${b}-footer`,C.footer),style:w.footer},o))};nb.PRESENTED_IMAGE_DEFAULT=eb,nb.PRESENTED_IMAGE_SIMPLE=tb;var rb=e=>{let{componentName:t}=e,{getPrefixCls:n}=(0,v.useContext)(Je),r=n(`empty`);switch(t){case`Table`:case`List`:return v.createElement(nb,{image:nb.PRESENTED_IMAGE_SIMPLE});case`Select`:case`TreeSelect`:case`Cascader`:case`Transfer`:case`Mentions`:return v.createElement(nb,{image:nb.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case`Table.filter`:return null;default:return v.createElement(nb,null)}},ib=(e,t,n)=>{let{variant:r,[e]:i}=v.useContext(Je),a=v.useContext(Bh),o=i?.variant,s;s=t===void 0?n===!1?`borderless`:a??o??r??`outlined`:t;let c=qe.includes(s);return[s,c]},ab=e=>{let t={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e===`scroll`?`scroll`:`visible`,dynamicInset:!0};return{bottomLeft:{...t,points:[`tl`,`bl`],offset:[0,4]},bottomRight:{...t,points:[`tr`,`br`],offset:[0,4]},topLeft:{...t,points:[`bl`,`tl`],offset:[0,-4]},topRight:{...t,points:[`br`,`tr`],offset:[0,-4]}}};function ob(e,t){return e||ab(t)}var sb=e=>{let{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:i}=e;return{position:`relative`,display:`block`,minHeight:t,padding:i,color:e.colorText,fontWeight:`normal`,fontSize:n,lineHeight:r,boxSizing:`border-box`}},cb=e=>{let{antCls:t,componentCls:n}=e,r=`${n}-item`,i=`&${t}-slide-up-enter${t}-slide-up-enter-active`,a=`&${t}-slide-up-appear${t}-slide-up-appear-active`,o=`&${t}-slide-up-leave${t}-slide-up-leave-active`,s=`${n}-dropdown-placement-`,c=`${r}-option-selected`;return[{[`${n}-dropdown`]:{...za(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,[`
164
+ `].includes(e)),[I]),Oe=(e,t,n)=>{if(fe&&sv(_)&&f.length>=_)return;let r=!0,i=e;A?.(null);let a=dv(e,I,sv(_)?_-f.length:void 0),o=n?null:a;return x!==`combobox`&&o&&(i=``,F?.(o),Te(!1),r=!1),P&&be!==i&&P(i,{source:t?`typing`:`effect`}),e&&t&&r&&Te(!0),r},ke=e=>{!e||!e.trim()||P(e,{source:`submit`})};v.useEffect(()=>{!Ce&&!fe&&x!==`combobox`&&Oe(``,!1,!1)},[Ce]),v.useEffect(()=>{S&&(Te(!1),ve(!1))},[S,we]);let[Ae,je]=ev(),Me=v.useRef(!1),Ne=e=>{let t=Ae(),{key:n}=e,r=n===`Enter`,i=n===` `;if(r||i){let t=x===`combobox`;(i&&!(t||s)||r&&!t)&&e.preventDefault(),we||Te(!0)}if(je(!!be),n===`Backspace`&&!t&&fe&&!be&&f.length){let e=[...f],t=null;for(let n=e.length-1;n>=0;--n){let r=e[n];if(!r.disabled){e.splice(n,1),t=r;break}}t&&p(e,{type:`remove`,values:[t]})}we&&(!r||!Me.current)&&!i&&(r&&(Me.current=!0),he.current?.onKeyDown(e)),ce?.(e)},Pe=(e,...t)=>{we&&he.current?.onKeyUp(e,...t),e.key===`Enter`&&(Me.current=!1),J?.(e,...t)},Fe=y(e=>{p(f.filter(t=>t!==e),{type:`remove`,values:[e]})}),Ie=()=>{Me.current=!1},Le=()=>[_e(pe.current),me.current?.getPopupElement()];nv(Le,we,Te,!!ye.root);let Re=v.useRef(!1),ze=e=>{ve(!0),S||(ae.includes(`focus`)&&Te(!0),oe?.(e))},Be=()=>{we&&!Re.current&&Te(!1,{cancelFun:()=>tv(Le(),document.activeElement)})},Ve=e=>{ve(!1),be&&(x===`tags`?P(be,{source:`submit`}):x===`multiple`&&P(``,{source:`blur`})),Be(),S||se?.(e)},He=(e,...t)=>{let{target:n}=e;(me.current?.getPopupElement())?.contains(n)&&Te&&Te(!0),le?.(e,...t),Re.current=!0,mv(()=>{Re.current=!1})},[,Ue]=v.useState({});function We(){Ue({})}let Ge;ye.root&&(Ge=e=>{Te(e)});let Ke=v.useMemo(()=>({...e,notFoundContent:h,open:we,triggerOpen:we,rawOpen:Ce,id:n,showSearch:s,multiple:fe,toggleOpen:Te,showScrollBar:l,styles:a,classNames:o,lockOptions:Ee}),[e,h,Te,n,s,fe,we,Ce,l,a,o,Ee]),qe=v.useMemo(()=>{let e=z??B;return typeof e==`function`?e({searchValue:be,open:we,focused:ge,showSearch:s,loading:C}):e},[z,B,be,we,ge,s,C]),Je=()=>{g?.(),pe.current?.focus(),p([],{type:`clear`,values:f}),Oe(``,!1,!1)},{allowClear:Ye,clearIcon:Xe}=Z_(r,f,L,V,S,be,x),Ze=v.createElement(H,{ref:he}),Qe=Y(r,i,{[`${r}-focused`]:ge,[`${r}-multiple`]:fe,[`${r}-single`]:!fe,[`${r}-allow-clear`]:Ye,[`${r}-show-arrow`]:qe!=null,[`${r}-disabled`]:S,[`${r}-loading`]:C,[`${r}-open`]:we,[`${r}-customize-input`]:xe,[`${r}-show-search`]:s}),$e=v.createElement(Qv,ey({},de,{ref:pe,prefixCls:r,className:Qe,focused:ge,prefix:R,suffix:qe,clearIcon:Xe,multiple:fe,mode:x,displayValues:f,placeholder:b,searchValue:be,activeValue:k,onSearch:Oe,onSearchSubmit:ke,onInputBlur:Ie,onFocus:ze,onBlur:Ve,onClearMouseDown:Je,onKeyDown:Ne,onKeyUp:Pe,onSelectorRemove:Fe,tokenWithEnter:De,onMouseDown:He,components:ye}));return $e=v.createElement(av,{ref:me,disabled:S,prefixCls:r,visible:we,popupElement:Ze,animation:U,transitionName:W,popupStyle:ee,popupClassName:te,direction:u,popupMatchSelectWidth:G,popupRender:ne,popupAlign:re,placement:ie,builtinPlacements:K,getPopupContainer:q,empty:m,onPopupVisibleChange:Ge,onPopupMouseEnter:We,onPopupMouseDown:He,onPopupBlur:Be},$e),v.createElement(Q_.Provider,{value:Ke},v.createElement(fv,{visible:ge&&!we,values:f}),$e)}),ry=()=>null;ry.isSelectOptGroup=!0;var iy=()=>null;iy.isSelectOption=!0;var ay=v.forwardRef(({height:e,offsetY:t,offsetX:n,children:r,prefixCls:i,onInnerResize:a,innerProps:o,rtl:s,extra:c},l)=>{let u={},d={display:`flex`,flexDirection:`column`};return t!==void 0&&(u={height:e,position:`relative`,overflow:`hidden`},d={...d,transform:`translateY(${t}px)`,[s?`marginRight`:`marginLeft`]:-n,position:`absolute`,left:0,right:0,top:0}),v.createElement(`div`,{style:u},v.createElement(Me,{onResize:({offsetHeight:e})=>{e&&a&&a()}},v.createElement(`div`,Jf({style:d,className:Y({[`${i}-holder-inner`]:i}),ref:l},o),r,c)))});ay.displayName=`Filler`;function oy({children:e,setRef:t}){let n=v.useCallback(e=>{t(e)},[]);return v.cloneElement(e,{ref:n})}function sy(e,t,n,r,i,a,o,{getKey:s}){return e.slice(t,n+1).map((e,n)=>{let c=o(e,t+n,{style:{width:r},offsetX:i}),l=s(e);return v.createElement(oy,{key:l,setRef:t=>a(e,t)},c)})}function cy(e,t,n){let r=e.length,i=t.length,a,o;if(r===0&&i===0)return null;r<i?(a=e,o=t):(a=t,o=e);let s={__EMPTY_ITEM__:!0};function c(e){return e===void 0?s:n(e)}let l=null,u=Math.abs(r-i)!==1;for(let e=0;e<o.length;e+=1){let t=c(a[e]);if(t!==c(o[e])){l=e,u||=t!==c(o[e+1]);break}}return l===null?null:{index:l,multiple:u}}function ly(e,t,n){let[r,i]=v.useState(e),[a,o]=v.useState(null);return v.useEffect(()=>{let a=cy(r||[],e||[],t);a?.index!==void 0&&(n?.(a.index),o(e[a.index])),i(e)},[e]),[a]}var uy=typeof navigator==`object`&&/Firefox/i.test(navigator.userAgent),dy=((e,t,n,r)=>{let i=(0,v.useRef)(!1),a=(0,v.useRef)(null);function o(){clearTimeout(a.current),i.current=!0,a.current=setTimeout(()=>{i.current=!1},50)}let s=(0,v.useRef)({top:e,bottom:t,left:n,right:r});return s.current.top=e,s.current.bottom=t,s.current.left=n,s.current.right=r,(e,t,n=!1)=>{let r=e?t<0&&s.current.left||t>0&&s.current.right:t<0&&s.current.top||t>0&&s.current.bottom;return n&&r?(clearTimeout(a.current),i.current=!1):(!r||i.current)&&o(),!i.current&&r}});function fy(e,t,n,r,i,a,o){let s=(0,v.useRef)(0),c=(0,v.useRef)(null),l=(0,v.useRef)(null),u=(0,v.useRef)(!1),d=dy(t,n,r,i);function f(e,t){if(Ge.cancel(c.current),d(!1,t))return;let n=e;if(!n._virtualHandled)n._virtualHandled=!0;else return;s.current+=t,l.current=t,uy||n.preventDefault(),c.current=Ge(()=>{let e=u.current?10:1;o(s.current*e,!1),s.current=0})}function p(e,t){o(t,!0),uy||e.preventDefault()}let m=(0,v.useRef)(null),h=(0,v.useRef)(null);function g(t){if(!e)return;Ge.cancel(h.current),h.current=Ge(()=>{m.current=null},2);let{deltaX:n,deltaY:r,shiftKey:i}=t,o=n,s=r;(m.current===`sx`||!m.current&&i&&r&&!n)&&(o=r,s=0,m.current=`sx`);let c=Math.abs(o),l=Math.abs(s);m.current===null&&(m.current=a&&c>l?`x`:`y`),m.current===`y`?f(t,s):p(t,o)}function _(t){e&&(u.current=t.detail===l.current)}return[g,_]}function py(e,t,n,r){let[i,a]=v.useMemo(()=>[new Map,[]],[e,n.id,r]);return(o,s=o)=>{let c=i.get(o),l=i.get(s);if(c===void 0||l===void 0){let u=e.length;for(let d=a.length;d<u;d+=1){let u=e[d],f=t(u);i.set(f,d);let p=n.get(f)??r;if(a[d]=(a[d-1]||0)+p,f===o&&(c=d),f===s&&(l=d),c!==void 0&&l!==void 0)break}}return{top:a[c-1]||0,bottom:a[l]}}}var my=class{maps;id=0;diffRecords=new Map;constructor(){this.maps=Object.create(null)}set(e,t){this.diffRecords.set(e,this.maps[e]),this.maps[e]=t,this.id+=1}get(e){return this.maps[e]}resetRecord(){this.diffRecords.clear()}getRecord(){return this.diffRecords}};function hy(e){let t=parseFloat(e);return isNaN(t)?0:t}function gy(e,t,n){let[r,i]=v.useState(0),a=(0,v.useRef)(new Map),o=(0,v.useRef)(new my),s=(0,v.useRef)(0);function c(){s.current+=1}function l(e=!1){c();let t=()=>{let e=!1;a.current.forEach((t,n)=>{if(t&&t.offsetParent){let{offsetHeight:r}=t,{marginTop:i,marginBottom:a}=getComputedStyle(t),s=hy(i),c=hy(a),l=r+s+c;o.current.get(n)!==l&&(o.current.set(n,l),e=!0)}}),e&&i(e=>e+1)};if(e)t();else{s.current+=1;let e=s.current;Promise.resolve().then(()=>{e===s.current&&t()})}}function u(r,i){let o=e(r),s=a.current.get(o);i?(a.current.set(o,i),l()):a.current.delete(o),!s!=!i&&(i?t?.(r):n?.(r))}return(0,v.useEffect)(()=>c,[]),[u,l,o.current,r]}var _y=14/15;function vy(e,t,n){let r=(0,v.useRef)(!1),i=(0,v.useRef)(0),a=(0,v.useRef)(0),o=(0,v.useRef)(null),s=(0,v.useRef)(null),c,l=e=>{if(r.current){let t=Math.ceil(e.touches[0].pageX),r=Math.ceil(e.touches[0].pageY),o=i.current-t,c=a.current-r,l=Math.abs(o)>Math.abs(c);l?i.current=t:a.current=r;let u=n(l,l?o:c,!1,e);u&&e.preventDefault(),clearInterval(s.current),u&&(s.current=setInterval(()=>{l?o*=_y:c*=_y;let e=Math.floor(l?o:c);(!n(l,e,!0)||Math.abs(e)<=.1)&&clearInterval(s.current)},16))}},u=()=>{r.current=!1,c()},d=e=>{c(),e.touches.length===1&&!r.current&&(r.current=!0,i.current=Math.ceil(e.touches[0].pageX),a.current=Math.ceil(e.touches[0].pageY),o.current=e.target,o.current.addEventListener(`touchmove`,l,{passive:!1}),o.current.addEventListener(`touchend`,u,{passive:!0}))};c=()=>{o.current&&(o.current.removeEventListener(`touchmove`,l),o.current.removeEventListener(`touchend`,u))},S(()=>(e&&t.current.addEventListener(`touchstart`,d,{passive:!0}),()=>{t.current?.removeEventListener(`touchstart`,d),c(),clearInterval(s.current)}),[e])}function yy(e){return Math.floor(e**.5)}function by(e,t){return(`touches`in e?e.touches[0]:e)[t?`pageX`:`pageY`]-window[t?`scrollX`:`scrollY`]}function xy(e,t,n){v.useEffect(()=>{let r=t.current;if(e&&r){let e=!1,t,i,a=()=>{Ge.cancel(t)},o=()=>{a(),t=Ge(()=>{n(i),o()})},s=()=>{e=!1,a()},c=t=>{if(t.target.draggable||t.button!==0)return;let n=t;n._virtualHandled||(n._virtualHandled=!0,e=!0)},l=t=>{if(e){let e=by(t,!1),{top:n,bottom:s}=r.getBoundingClientRect();e<=n?(i=-yy(n-e),o()):e>=s?(i=yy(e-s),o()):a()}};return r.addEventListener(`mousedown`,c),r.ownerDocument.addEventListener(`mouseup`,s),r.ownerDocument.addEventListener(`mousemove`,l),r.ownerDocument.addEventListener(`dragend`,s),()=>{r.removeEventListener(`mousedown`,c),r.ownerDocument.removeEventListener(`mouseup`,s),r.ownerDocument.removeEventListener(`mousemove`,l),r.ownerDocument.removeEventListener(`dragend`,s),a()}}},[e])}var Sy=10;function Cy(e,t,n,r,i,a,o,s){let c=v.useRef(),[l,u]=v.useState(null);return S(()=>{if(l&&l.times<Sy){if(!e.current){u(e=>({...e}));return}a();let{targetAlign:s,originAlign:c,index:d,offset:f}=l,p=e.current.clientHeight,m=!1,h=s,g=null;if(p){let a=s||c,u=0,_=0,v=0,y=Math.min(t.length-1,d);for(let e=0;e<=y;e+=1){let a=i(t[e]);_=u;let o=n.get(a);v=_+(o===void 0?r:o),u=v}let b=a===`top`?f:p-f;for(let e=y;e>=0;--e){let r=i(t[e]),a=n.get(r);if(a===void 0){m=!0;break}if(b-=a,b<=0)break}switch(a){case`top`:g=_-f;break;case`bottom`:g=v-p+f;break;default:{let{scrollTop:t}=e.current,n=t+p;_<t?h=`top`:v>n&&(h=`bottom`)}}g!==null&&o(g),g!==l.lastTop&&(m=!0)}m&&u({...l,times:l.times+1,targetAlign:h,lastTop:g})}},[l,e.current]),e=>{if(e==null){s();return}if(Ge.cancel(c.current),typeof e==`number`)o(e);else if(e&&typeof e==`object`){let n,{align:r}=e;`index`in e?{index:n}=e:n=t.findIndex(t=>i(t)===e.key);let{offset:a=0}=e;u({times:0,index:n,offset:a,originAlign:r})}}}var wy=v.forwardRef((e,t)=>{let{prefixCls:n,rtl:r,scrollOffset:i,scrollRange:a,onStartMove:o,onStopMove:s,onScroll:c,horizontal:l,spinSize:u,containerSize:d,style:f,thumbStyle:p,showScrollBar:m}=e,[h,g]=v.useState(!1),[_,y]=v.useState(null),[b,x]=v.useState(null),S=!r,C=v.useRef(),w=v.useRef(),[T,E]=v.useState(m),D=v.useRef(),O=()=>{m===!0||m===!1||(clearTimeout(D.current),E(!0),D.current=setTimeout(()=>{E(!1)},3e3))},k=a-d||0,A=d-u||0,j=v.useMemo(()=>i===0||k===0?0:i/k*A,[i,k,A]),M=e=>{e.stopPropagation(),e.preventDefault()},N=v.useRef({top:j,dragging:h,pageY:_,startTop:b});N.current={top:j,dragging:h,pageY:_,startTop:b};let P=e=>{g(!0),y(by(e,l)),x(N.current.top),o(),e.stopPropagation(),e.preventDefault()};v.useEffect(()=>{let e=e=>{e.preventDefault()},t=C.current,n=w.current;return t.addEventListener(`touchstart`,e,{passive:!1}),n.addEventListener(`touchstart`,P,{passive:!1}),()=>{t.removeEventListener(`touchstart`,e),n.removeEventListener(`touchstart`,P)}},[]);let F=v.useRef();F.current=k;let I=v.useRef();I.current=A,v.useEffect(()=>{if(h){let e,t=t=>{let{dragging:n,pageY:r,startTop:i}=N.current;Ge.cancel(e);let a=C.current.getBoundingClientRect(),o=d/(l?a.width:a.height);if(n){let n=(by(t,l)-r)*o,a=i;!S&&l?a-=n:a+=n;let s=F.current,u=I.current,d=u?a/u:0,f=Math.ceil(d*s);f=Math.max(f,0),f=Math.min(f,s),e=Ge(()=>{c(f,l)})}},n=()=>{g(!1),s()};return window.addEventListener(`mousemove`,t,{passive:!0}),window.addEventListener(`touchmove`,t,{passive:!0}),window.addEventListener(`mouseup`,n,{passive:!0}),window.addEventListener(`touchend`,n,{passive:!0}),()=>{window.removeEventListener(`mousemove`,t),window.removeEventListener(`touchmove`,t),window.removeEventListener(`mouseup`,n),window.removeEventListener(`touchend`,n),Ge.cancel(e)}}},[h]),v.useEffect(()=>(O(),()=>{clearTimeout(D.current)}),[i]),v.useImperativeHandle(t,()=>({delayHidden:O}));let L=`${n}-scrollbar`,R={position:`absolute`,visibility:T?null:`hidden`},z={position:`absolute`,borderRadius:99,background:`var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))`,cursor:`pointer`,userSelect:`none`};return l?(Object.assign(R,{height:8,left:0,right:0,bottom:0}),Object.assign(z,{height:`100%`,width:u,[S?`left`:`right`]:j})):(Object.assign(R,{width:8,top:0,bottom:0,[S?`right`:`left`]:0}),Object.assign(z,{width:`100%`,height:u,top:j})),v.createElement(`div`,{ref:C,className:Y(L,{[`${L}-horizontal`]:l,[`${L}-vertical`]:!l,[`${L}-visible`]:T}),style:{...R,...f},onMouseDown:M,onMouseMove:O},v.createElement(`div`,{ref:w,className:Y(`${L}-thumb`,{[`${L}-thumb-moving`]:h}),style:{...z,...p},onMouseDown:P}))}),Ty=20;function Ey(e=0,t=0){let n=e/t*e;return isNaN(n)&&(n=0),n=Math.max(n,Ty),Math.floor(n)}var Dy=[],Oy={overflowY:`auto`,overflowAnchor:`none`};function ky(e,t){let{prefixCls:n=`rc-virtual-list`,className:r,height:i,itemHeight:a,fullHeight:o=!0,style:s,data:c,children:l,itemKey:u,virtual:d,direction:f,scrollWidth:p,component:m=`div`,onScroll:h,onVirtualScroll:g,onVisibleChange:_,innerProps:b,extraRender:x,styles:C,showScrollBar:w=`optional`,...T}=e,E=v.useCallback(e=>typeof u==`function`?u(e):e?.[u],[u]),[D,O,k,A]=gy(E,null,null),j=!!(d!==!1&&i&&a),M=v.useMemo(()=>Object.values(k.maps).reduce((e,t)=>e+t,0),[k.id,k.maps]),N=j&&c&&(Math.max(a*c.length,M)>i||!!p),P=f===`rtl`,F=Y(n,{[`${n}-rtl`]:P},r),I=c||Dy,L=(0,v.useRef)(),R=(0,v.useRef)(),z=(0,v.useRef)(),[B,V]=(0,v.useState)(0),[H,U]=(0,v.useState)(0),[W,ee]=(0,v.useState)(!1),te=()=>{ee(!0)},G=()=>{ee(!1)},ne={getKey:E};function re(e){V(t=>{let n;n=typeof e==`function`?e(t):e;let r=_e(n);return L.current.scrollTop=r,r})}let ie=(0,v.useRef)({start:0,end:I.length}),K=(0,v.useRef)(),[q]=ly(I,E);K.current=q;let{scrollHeight:ae,start:oe,end:se,offset:J}=v.useMemo(()=>{if(!j)return{scrollHeight:void 0,start:0,end:I.length-1,offset:void 0};if(!N)return{scrollHeight:R.current?.offsetHeight||0,start:0,end:I.length-1,offset:void 0};let e=0,t,n,r,o=I.length;for(let s=0;s<o;s+=1){let o=I[s],c=E(o),l=k.get(c),u=e+(l===void 0?a:l);u>=B&&t===void 0&&(t=s,n=e),u>B+i&&r===void 0&&(r=s),e=u}return t===void 0&&(t=0,n=0,r=Math.ceil(i/a)),r===void 0&&(r=I.length-1),r=Math.min(r+1,I.length-1),{scrollHeight:e,start:t,end:r,offset:n}},[N,j,B,I,A,i]);ie.current.start=oe,ie.current.end=se,v.useLayoutEffect(()=>{let e=k.getRecord();if(e.size===1){let t=Array.from(e.keys())[0],n=e.get(t),r=I[oe];if(r&&n===void 0&&E(r)===t){let e=k.get(t)-a;re(t=>t+e)}}k.resetRecord()},[ae]);let[ce,le]=v.useState({width:0,height:i}),ue=e=>{le({width:e.offsetWidth,height:e.offsetHeight})},de=(0,v.useRef)(),fe=(0,v.useRef)(),pe=v.useMemo(()=>Ey(ce.width,p),[ce.width,p]),me=v.useMemo(()=>Ey(ce.height,ae),[ce.height,ae]),he=ae-i,ge=(0,v.useRef)(he);ge.current=he;function _e(e){let t=e;return Number.isNaN(ge.current)||(t=Math.min(t,ge.current)),t=Math.max(t,0),t}let ve=B<=0,ye=B>=he,be=H<=0,xe=H>=p,Se=dy(ve,ye,be,xe),Ce=()=>({x:P?-H:H,y:B}),we=(0,v.useRef)(Ce()),Te=y(e=>{if(g){let t={...Ce(),...e};(we.current.x!==t.x||we.current.y!==t.y)&&(g(t),we.current=t)}});function Ee(e,t){let n=e;t?((0,bl.flushSync)(()=>{U(n)}),Te()):re(n)}function De(e){let{scrollTop:t}=e.currentTarget;t!==B&&re(t),h?.(e),Te()}let Oe=e=>{let t=e,n=p?p-ce.width:0;return t=Math.max(t,0),t=Math.min(t,n),t},ke=y((e,t)=>{t?((0,bl.flushSync)(()=>{U(t=>Oe(t+(P?-e:e)))}),Te()):re(t=>t+e)}),[Ae,je]=fy(j,ve,ye,be,xe,!!p,ke);vy(j,L,(e,t,n,r)=>{let i=r;return Se(e,t,n)?!1:!i||!i._virtualHandled?(i&&(i._virtualHandled=!0),Ae({preventDefault(){},deltaX:e?t:0,deltaY:e?0:t}),!0):!1}),xy(N,L,e=>{re(t=>t+e)}),S(()=>{function e(e){let t=ve&&e.detail<0,n=ye&&e.detail>0;j&&!t&&!n&&e.preventDefault()}let t=L.current;return t.addEventListener(`wheel`,Ae,{passive:!1}),t.addEventListener(`DOMMouseScroll`,je,{passive:!0}),t.addEventListener(`MozMousePixelScroll`,e,{passive:!1}),()=>{t.removeEventListener(`wheel`,Ae),t.removeEventListener(`DOMMouseScroll`,je),t.removeEventListener(`MozMousePixelScroll`,e)}},[j,ve,ye]),S(()=>{if(p){let e=Oe(H);U(e),Te({x:e})}},[ce.width,p]);let Ne=()=>{de.current?.delayHidden(),fe.current?.delayHidden()},Pe=Cy(L,I,k,a,E,()=>O(!0),re,Ne);v.useImperativeHandle(t,()=>({nativeElement:z.current,getScrollInfo:Ce,scrollTo:e=>{function t(e){return e&&typeof e==`object`&&(`left`in e||`top`in e)}t(e)?(e.left!==void 0&&U(Oe(e.left)),Pe(e.top)):Pe(e)}})),S(()=>{_&&_(I.slice(oe,se+1),I)},[oe,se,I]);let Fe=py(I,E,k,a),Ie=x?.({start:oe,end:se,virtual:N,offsetX:H,offsetY:J,rtl:P,getSize:Fe}),Le=sy(I,oe,se,p,H,D,l,ne),Re=null;i&&(Re={[o?`height`:`maxHeight`]:i,...Oy},j&&(Re.overflowY=`hidden`,p&&(Re.overflowX=`hidden`),W&&(Re.pointerEvents=`none`)));let ze={};return P&&(ze.dir=`rtl`),v.createElement(`div`,Jf({ref:z,style:{...s,position:`relative`},className:F},ze,T),v.createElement(Me,{onResize:ue},v.createElement(m,{className:`${n}-holder`,style:Re,ref:L,onScroll:De,onMouseEnter:Ne},v.createElement(ay,{prefixCls:n,height:ae,offsetX:H,offsetY:J,scrollWidth:p,onInnerResize:O,ref:R,innerProps:b,rtl:P,extra:Ie},Le))),N&&ae>i&&v.createElement(wy,{ref:de,prefixCls:n,scrollOffset:B,scrollRange:ae,rtl:P,onScroll:Ee,onStartMove:te,onStopMove:G,spinSize:me,containerSize:ce.height,style:C?.verticalScrollBar,thumbStyle:C?.verticalScrollBarThumb,showScrollBar:w}),N&&p>ce.width&&v.createElement(wy,{ref:fe,prefixCls:n,scrollOffset:H,scrollRange:p,rtl:P,onScroll:Ee,onStartMove:te,onStopMove:G,spinSize:pe,containerSize:ce.width,horizontal:!0,style:C?.horizontalScrollBar,thumbStyle:C?.horizontalScrollBarThumb,showScrollBar:w}))}var Ay=v.forwardRef(ky);Ay.displayName=`List`;var jy=Ay;function My(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}function Ny(){return Ny=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},Ny.apply(this,arguments)}function Py(e){return typeof e==`string`||typeof e==`number`}var Fy=v.forwardRef((e,t)=>{let{prefixCls:n,id:r,open:i,multiple:a,mode:o,searchValue:s,toggleOpen:c,notFoundContent:l,onPopupScroll:u,showScrollBar:d,lockOptions:f}=$_(),{maxCount:p,flattenOptions:m,onActiveValue:h,defaultActiveFirstOption:g,onSelect:_,menuItemSelectedIcon:y,rawValues:b,fieldNames:x,virtual:S,direction:C,listHeight:w,listItemHeight:T,optionRender:E,classNames:D,styles:k}=v.useContext(xv),A=`${n}-item`,j=O(()=>m,[i,f],(e,t)=>t[0]&&!t[1]),M=v.useRef(null),N=v.useMemo(()=>a&&sv(p)&&b?.size>=p,[a,p,b?.size]),P=e=>{e.preventDefault()},F=e=>{M.current?.scrollTo(typeof e==`number`?{index:e}:e)},I=v.useCallback(e=>o===`combobox`?!1:b.has(e),[o,[...b].toString(),b.size]),L=(e,t=1)=>{let n=j.length;for(let r=0;r<n;r+=1){let i=(e+r*t+n)%n,{group:a,data:o}=j[i]||{};if(!a&&!o?.disabled&&(I(o.value)||!N))return i}return-1},[R,z]=v.useState(()=>L(0)),B=(e,t=!1)=>{z(e);let n={source:t?`keyboard`:`mouse`},r=j[e];if(!r){h(null,-1,n);return}h(r.value,e,n)};(0,v.useEffect)(()=>{B(g===!1?-1:L(0))},[j.length,s]);let V=v.useCallback(e=>o===`combobox`?String(e).toLowerCase()===s.toLowerCase():b.has(e),[o,s,[...b].toString(),b.size]);(0,v.useEffect)(()=>{let e;if(!a&&i&&b.size===1){let t=Array.from(b)[0],n=j.findIndex(({data:e})=>s?String(e.value).startsWith(s):e.value===t);n!==-1&&(B(n),e=setTimeout(()=>{F(n)}))}return i&&M.current?.scrollTo(void 0),()=>clearTimeout(e)},[i,s]);let H=e=>{e!==void 0&&_(e,{selected:!b.has(e)}),a||c(!1)};if(v.useImperativeHandle(t,()=>({onKeyDown:e=>{let{which:t,ctrlKey:n}=e;switch(t){case Z.N:case Z.P:case Z.UP:case Z.DOWN:{let e=0;if(t===Z.UP?e=-1:t===Z.DOWN?e=1:My()&&n&&(t===Z.N?e=1:t===Z.P&&(e=-1)),e!==0){let t=L(R+e,e);F(t),B(t,!0)}break}case Z.TAB:case Z.ENTER:{let t=j[R];if(!t||t.data.disabled)return H(void 0);!N||b.has(t.value)?H(t.value):H(void 0),i&&e.preventDefault();break}case Z.ESC:c(!1),i&&e.stopPropagation()}},onKeyUp:()=>{},scrollTo:e=>{F(e)}})),j.length===0)return v.createElement(`div`,{role:`listbox`,id:`${r}_list`,className:`${A}-empty`,onMouseDown:P},l);let U=Object.keys(x).map(e=>x[e]),W=e=>e.label;function ee(e,t){let{group:n}=e;return{role:n?`presentation`:`option`,id:`${r}_list_${t}`}}let te=e=>{let t=j[e];if(!t)return null;let n=t.data||{},{value:r,disabled:i}=n,{group:a}=t,o=Ns(n,!0),s=W(t);return t?v.createElement(`div`,Ny({"aria-label":typeof s==`string`&&!a?s:null},o,{key:e},ee(t,e),{"aria-selected":V(r),"aria-disabled":i}),r):null},G={role:`listbox`,id:`${r}_list`};return v.createElement(v.Fragment,null,S&&v.createElement(`div`,Ny({},G,{style:{height:0,width:0,overflow:`hidden`}}),te(R-1),te(R),te(R+1)),v.createElement(jy,{itemKey:`key`,ref:M,data:j,height:w,itemHeight:T,fullHeight:!1,onMouseDown:P,onScroll:u,virtual:S,direction:C,innerProps:S?null:G,showScrollBar:d,className:D?.popup?.list,style:k?.popup?.list},(e,t)=>{let{group:n,groupOption:r,data:i,label:a,value:o}=e,{key:s}=i;if(n){let e=i.title??(Py(a)?a.toString():void 0);return v.createElement(`div`,{className:Y(A,`${A}-group`,i.className),title:e},a===void 0?s:a)}let{disabled:c,title:l,children:u,style:d,className:f,...p}=i,m=ue(p,U),h=I(o),g=c||!h&&N,_=`${A}-option`,b=Y(A,_,f,D?.popup?.listItem,{[`${_}-grouped`]:r,[`${_}-active`]:R===t&&!g,[`${_}-disabled`]:g,[`${_}-selected`]:h}),x=W(e),C=!y||typeof y==`function`||h,w=typeof x==`number`?x:x||o,T=Py(w)?w.toString():void 0;return l!==void 0&&(T=l),v.createElement(`div`,Ny({},Ns(m),S?{}:ee(e,t),{"aria-selected":S?void 0:V(o),"aria-disabled":g,className:b,title:T,onMouseMove:()=>{R===t||g||B(t)},onClick:()=>{g||H(o)},style:{...k?.popup?.listItem,...d}}),v.createElement(`div`,{className:`${_}-content`},typeof E==`function`?E(e,{index:t}):w),v.isValidElement(y)||h,C&&v.createElement(Uv,{className:`${A}-option-state`,customizeIcon:y,customizeIconProps:{value:o,disabled:g,isSelected:h}},h?`✓`:null))}))}),Iy=((e,t)=>{let n=v.useRef({values:new Map,options:new Map});return[v.useMemo(()=>{let{values:r,options:i}=n.current,a=e.map(e=>e.label===void 0?{...e,label:r.get(e.value)?.label}:e),o=new Map,s=new Map;return a.forEach(e=>{o.set(e.value,e),s.set(e.value,t.get(e.value)||i.get(e.value))}),n.current.values=o,n.current.options=s,a},[e,t]),v.useCallback(e=>t.get(e)||n.current.options.get(e),[t])]});function Ly(e,t){return Sv(e).join(``).toUpperCase().includes(t)}var Ry=((e,t,n,r,i)=>v.useMemo(()=>{if(!n||r===!1)return e;let{options:a,label:o,value:s}=t,c=[],l=typeof r==`function`,u=n.toUpperCase(),d=l?r:(e,t)=>i&&i.length?i.some(e=>Ly(t[e],u)):t[a]?Ly(t[o===`children`?`label`:o],u):Ly(t[s],u),f=l?e=>uv(e):e=>e;return e.forEach(e=>{if(e[a]){if(d(n,f(e)))c.push(e);else{let t=e[a].filter(e=>d(n,f(e)));t.length&&c.push({...e,[a]:t})}return}d(n,f(e))&&c.push(e)}),c},[e,r,i,n,t]));function zy(e){let{key:t,props:{children:n,value:r,...i}}=e;return{key:t,value:r===void 0?t:r,children:n,...i}}function By(e,t=!1){return de(e).map((e,n)=>{if(!v.isValidElement(e)||!e.type)return null;let{type:{isSelectOptGroup:r},key:i,props:{children:a,...o}}=e;return t||!r?zy(e):{key:`__RC_SELECT_GRP__${i===null?n:i}__`,label:i,...o,options:By(a)}}).filter(e=>e)}var Vy=(e,t,n,r,i)=>v.useMemo(()=>{let a=e;e||(a=By(t));let o=new Map,s=new Map,c=(e,t,n)=>{n&&typeof n==`string`&&e.set(t[n],t)},l=(e,t=!1)=>{for(let a=0;a<e.length;a+=1){let u=e[a];!u[n.options]||t?(o.set(u[n.value],u),c(s,u,n.label),r.forEach(e=>{c(s,u,e)}),c(s,u,i)):l(u[n.options],!0)}};return l(a),{options:a,valueOptions:o,labelOptions:s}},[e,t,n,r,i]);function Hy(e){let t=v.useRef();return t.current=e,v.useCallback((...e)=>t.current(...e),[])}function Uy(e,t,n){let{filterOption:r,searchValue:i,optionFilterProp:a,filterSort:o,onSearch:s,autoClearSearchValue:c}=t;return v.useMemo(()=>{let t=typeof e==`object`,l={filterOption:r,searchValue:i,optionFilterProp:a,filterSort:o,onSearch:s,autoClearSearchValue:c,...t?e:{}};return[t||n===`combobox`||n===`tags`||n===`multiple`&&e===void 0?!0:e,l]},[n,e,r,i,a,o,s,c])}function Wy(){return Wy=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},Wy.apply(this,arguments)}var Gy=[`inputValue`];function Ky(e){return!e||typeof e!=`object`}var qy=v.forwardRef((e,t)=>{let{id:n,mode:r,prefixCls:i=`rc-select`,backfill:a,fieldNames:o,showSearch:s,searchValue:c,onSearch:l,autoClearSearchValue:u,filterOption:d,optionFilterProp:f,filterSort:p,onSelect:m,onDeselect:h,onActive:g,popupMatchSelectWidth:_=!0,optionLabelProp:y,options:b,optionRender:x,children:S,defaultActiveFirstOption:C,menuItemSelectedIcon:w,virtual:E,direction:D,listHeight:O=200,listItemHeight:k=20,labelRender:A,value:j,defaultValue:M,labelInValue:N,onChange:P,maxCount:F,classNames:I,styles:L,...R}=e,[z,B]=Uy(s,{searchValue:c,onSearch:l,autoClearSearchValue:u,filterOption:d,optionFilterProp:f,filterSort:p},r),{filterOption:V,searchValue:H,optionFilterProp:U,filterSort:W,onSearch:ee,autoClearSearchValue:te=!0}=B,G=v.useMemo(()=>U?Array.isArray(U)?U:[U]:[],[U]),ne=dl(n),re=ty(r),ie=!!(!b&&S),K=v.useMemo(()=>V===void 0&&r===`combobox`?!1:V,[V,r]),q=v.useMemo(()=>cv(o,ie),[JSON.stringify(o),ie]),[ae,oe]=T(``,H),se=ae||``,J=Vy(b,S,q,G,y),{valueOptions:ce,labelOptions:le,options:ue}=J,de=v.useCallback(e=>Sv(e).map(e=>{let t,n,r,i;Ky(e)?t=e:(n=e.label,t=e.value);let a=ce.get(t);return a&&(n===void 0&&(n=a?.[y||q.label]),r=a?.disabled,i=a?.title),{label:n,value:t,key:t,disabled:r,title:i}}),[q,y,ce]),[fe,pe]=T(M,j),[me,he]=Iy(v.useMemo(()=>{let e=de(re&&fe===null?[]:fe);return r===`combobox`&&wv(e[0]?.value)?[]:e},[fe,de,r,re]),ce),ge=v.useMemo(()=>{if(!r&&me.length===1){let e=me[0];if(e.value===null&&(e.label===null||e.label===void 0))return[]}return me.map(e=>({...e,label:(typeof A==`function`?A(e):e.label)??e.value}))},[r,me,A]),_e=v.useMemo(()=>new Set(me.map(e=>e.value)),[me]);v.useEffect(()=>{if(r===`combobox`){let e=me[0]?.value;oe(Cv(e)?String(e):``)}},[me]);let ve=Hy((e,t)=>{let n=t??e;return{[q.value]:e,[q.label]:n}}),ye=Ry(v.useMemo(()=>{if(r!==`tags`)return ue;let e=[...ue],t=e=>ce.has(e);return[...me].sort((e,t)=>e.value<t.value?-1:1).forEach(n=>{let r=n.value;t(r)||e.push(ve(r,n.label))}),e},[ve,ue,ce,me,r]),q,se,K,G),be=v.useMemo(()=>{let e=e=>G.length?G.some(t=>e?.[t]===se):e?.value===se;return r!==`tags`||!se||ye.some(t=>e(t))||ye.some(e=>e[q.value]===se)?ye:[ve(se),...ye]},[ve,G,r,ye,se,q]),xe=e=>[...e].sort((e,t)=>W(e,t,{searchValue:se})).map(e=>Array.isArray(e.options)?{...e,options:e.options.length>0?xe(e.options):e.options}:e),Se=v.useMemo(()=>W?xe(be):be,[be,W,se]),Ce=v.useMemo(()=>lv(Se,{fieldNames:q,childrenAsData:ie}),[Se,q,ie]),we=e=>{let t=de(e);if(pe(t),P&&(t.length!==me.length||t.some((e,t)=>me[t]?.value!==e?.value))){let e=N?t.map(({label:e,value:t})=>({label:e,value:t})):t.map(e=>e.value),n=t.map(e=>uv(he(e.value)));P(re?e:e[0],re?n:n[0])}},[Te,Ee]=v.useState(null),[De,Oe]=v.useState(0),ke=C===void 0?r!==`combobox`:C,Ae=v.useRef(),je=v.useCallback((e,t,{source:n=`keyboard`}={})=>{Oe(t),a&&r===`combobox`&&e!==null&&n===`keyboard`&&Ee(String(e));let i=Promise.resolve().then(()=>{Ae.current===i&&g?.(e)});Ae.current=i},[a,r,g]),Me=(e,t,n)=>{let r=()=>{let t=he(e);return[N?{label:t?.[q.label],value:e}:e,uv(t)]};if(t&&m){let[e,t]=r();m(e,t)}else if(!t&&h&&n!==`clear`){let[e,t]=r();h(e,t)}},Ne=Hy((e,t)=>{let n,i=re?t.selected:!0;n=i?re?[...me,e]:[e]:me.filter(t=>t.value!==e),we(n),Me(e,i),r===`combobox`?Ee(``):(!ty||te)&&(oe(``),Ee(``))}),Y=(e,t)=>{we(e);let{type:n,values:r}=t;(n===`remove`||n===`clear`)&&r.forEach(e=>{Me(e.value,!1,n)})},Pe=(e,t)=>{if(oe(e),Ee(null),t.source===`submit`){let t=(e||``).trim();t&&(we(Array.from(new Set([..._e,t]))),Me(t,!0),oe(``));return}t.source!==`blur`&&(r===`combobox`&&we(e),ee?.(e))},Fe=e=>{let t=e;r!==`tags`&&(t=e.map(e=>le.get(e)?.value).filter(e=>e!==void 0));let n=Array.from(new Set([..._e,...t]));we(n),n.forEach(e=>{Me(e,!0)})},Ie=v.useMemo(()=>{let e=E!==!1&&_!==!1;return{...J,flattenOptions:Ce,onActiveValue:je,defaultActiveFirstOption:ke,onSelect:Ne,menuItemSelectedIcon:w,rawValues:_e,fieldNames:q,virtual:e,direction:D,listHeight:O,listItemHeight:k,childrenAsData:ie,maxCount:F,optionRender:x,classNames:I,styles:L}},[F,J,Ce,je,ke,Ne,w,_e,q,E,_,D,O,k,ie,x,I,L]);return v.createElement(xv.Provider,{value:Ie},v.createElement(ny,Wy({},R,{id:ne,prefixCls:i,ref:t,omitDomProps:Gy,mode:r,classNames:I,styles:L,displayValues:ge,onDisplayValuesChange:Y,maxCount:F,direction:D,showSearch:z,searchValue:se,onSearch:Pe,autoClearSearchValue:te,onSearchSplit:Fe,popupMatchSelectWidth:_,OptionList:Fy,emptyOptions:!Ce.length,activeValue:Te,activeDescendantId:`${ne}_list_${De}`})))});qy.Option=iy,qy.OptGroup=ry;var Jy=qy,Yy=(e,t,n)=>Y({[`${e}-status-success`]:t===`success`,[`${e}-status-warning`]:t===`warning`,[`${e}-status-error`]:t===`error`,[`${e}-status-validating`]:t===`validating`,[`${e}-has-feedback`]:n}),Xy=(e,t)=>t||e,Zy=()=>{let[,e]=La(),[t]=ec(`Empty`),n=new ki(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return v.createElement(`svg`,{style:n,width:`184`,height:`152`,viewBox:`0 0 184 152`,xmlns:`http://www.w3.org/2000/svg`},v.createElement(`title`,null,t?.description||`Empty`),v.createElement(`g`,{fill:`none`,fillRule:`evenodd`},v.createElement(`g`,{transform:`translate(24 31.7)`},v.createElement(`ellipse`,{fillOpacity:`.8`,fill:`#F5F5F7`,cx:`67.8`,cy:`106.9`,rx:`67.8`,ry:`12.7`}),v.createElement(`path`,{fill:`#aeb8c2`,d:`M122 69.7 98.1 40.2a6 6 0 0 0-4.6-2.2H42.1a6 6 0 0 0-4.6 2.2l-24 29.5V85H122z`}),v.createElement(`path`,{fill:`#f5f5f7`,d:`M33.8 0h68a4 4 0 0 1 4 4v93.3a4 4 0 0 1-4 4h-68a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4`}),v.createElement(`path`,{fill:`#dce0e6`,d:`M42.7 10h50.2a2 2 0 0 1 2 2v25a2 2 0 0 1-2 2H42.7a2 2 0 0 1-2-2V12a2 2 0 0 1 2-2m.2 39.8h49.8a2.3 2.3 0 1 1 0 4.5H42.9a2.3 2.3 0 0 1 0-4.5m0 11.7h49.8a2.3 2.3 0 1 1 0 4.6H42.9a2.3 2.3 0 0 1 0-4.6m79 43.5a7 7 0 0 1-6.8 5.4H20.5a7 7 0 0 1-6.7-5.4l-.2-1.8V69.7h26.3c2.9 0 5.2 2.4 5.2 5.4s2.4 5.4 5.3 5.4h34.8c2.9 0 5.3-2.4 5.3-5.4s2.3-5.4 5.2-5.4H122v33.5q0 1-.2 1.8`})),v.createElement(`path`,{fill:`#dce0e6`,d:`m149.1 33.3-6.8 2.6a1 1 0 0 1-1.3-1.2l2-6.2q-4.1-4.5-4.2-10.4c0-10 10.1-18.1 22.6-18.1S184 8.1 184 18.1s-10.1 18-22.6 18q-6.8 0-12.3-2.8`}),v.createElement(`g`,{fill:`#fff`,transform:`translate(149.7 15.4)`},v.createElement(`circle`,{cx:`20.7`,cy:`3.2`,r:`2.8`}),v.createElement(`path`,{d:`M5.7 5.6H0L2.9.7zM9.3.7h5v5h-5z`}))))},Qy=()=>{let[,e]=La(),[t]=ec(`Empty`),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:i,colorBgContainer:a}=e,{borderColor:o,shadowColor:s,contentColor:c}=(0,v.useMemo)(()=>({borderColor:new ki(n).onBackground(a).toHexString(),shadowColor:new ki(r).onBackground(a).toHexString(),contentColor:new ki(i).onBackground(a).toHexString()}),[n,r,i,a]);return v.createElement(`svg`,{width:`64`,height:`41`,viewBox:`0 0 64 41`,xmlns:`http://www.w3.org/2000/svg`},v.createElement(`title`,null,t?.description||`Empty`),v.createElement(`g`,{transform:`translate(0 1)`,fill:`none`,fillRule:`evenodd`},v.createElement(`ellipse`,{fill:s,cx:`32`,cy:`33`,rx:`32`,ry:`7`}),v.createElement(`g`,{fillRule:`nonzero`,stroke:o},v.createElement(`path`,{d:`M55 12.8 44.9 1.3Q44 0 42.9 0H21.1q-1.2 0-2 1.3L9 12.8V22h46z`}),v.createElement(`path`,{d:`M41.6 16c0-1.7 1-3 2.2-3H55v18.1c0 2.2-1.3 3.9-3 3.9H12c-1.7 0-3-1.7-3-3.9V13h11.2c1.2 0 2.2 1.3 2.2 3s1 2.9 2.2 2.9h14.8c1.2 0 2.2-1.4 2.2-3`,fill:c}))))},$y=e=>{let{componentCls:t,margin:n,marginXS:r,marginXL:i,fontSize:a,lineHeight:o}=e;return{[t]:{marginInline:r,fontSize:a,lineHeight:o,textAlign:`center`,[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:`100%`},svg:{maxWidth:`100%`,height:`100%`,margin:`auto`}},[`${t}-description`]:{color:e.colorTextDescription},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:i,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},eb=Ja(`Empty`,e=>{let{componentCls:t,controlHeightLG:n,calc:r}=e;return $y(si(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()}))}),tb=v.createElement(Zy,null),nb=v.createElement(Qy,null),rb=e=>{let{className:t,rootClassName:n,prefixCls:r,image:i,description:a,children:o,imageStyle:s,style:c,classNames:l,styles:u,...d}=e,{getPrefixCls:f,direction:p,className:m,style:h,classNames:g,styles:_,image:y}=Ze(`empty`),b=f(`empty`,r),[x,S]=eb(b),[C,w]=Dc([g,l],[_,u],{props:e}),[T]=ec(`Empty`),E=a===void 0?T?.description:a,D=typeof E==`string`?E:`empty`,O=i??y??tb,k=null;return k=typeof O==`string`?v.createElement(`img`,{draggable:!1,alt:D,src:O}):O,v.createElement(`div`,{className:Y(x,S,b,m,{[`${b}-normal`]:O===nb,[`${b}-rtl`]:p===`rtl`},t,n,C.root),style:{...w.root,...h,...c},...d},v.createElement(`div`,{className:Y(`${b}-image`,C.image),style:{...s,...w.image}},k),E&&v.createElement(`div`,{className:Y(`${b}-description`,C.description),style:w.description},E),o&&v.createElement(`div`,{className:Y(`${b}-footer`,C.footer),style:w.footer},o))};rb.PRESENTED_IMAGE_DEFAULT=tb,rb.PRESENTED_IMAGE_SIMPLE=nb;var ib=e=>{let{componentName:t}=e,{getPrefixCls:n}=(0,v.useContext)(Je),r=n(`empty`);switch(t){case`Table`:case`List`:return v.createElement(rb,{image:rb.PRESENTED_IMAGE_SIMPLE});case`Select`:case`TreeSelect`:case`Cascader`:case`Transfer`:case`Mentions`:return v.createElement(rb,{image:rb.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case`Table.filter`:return null;default:return v.createElement(rb,null)}},ab=(e,t,n)=>{let{variant:r,[e]:i}=v.useContext(Je),a=v.useContext(Vh),o=i?.variant,s;s=t===void 0?n===!1?`borderless`:a??o??r??`outlined`:t;let c=qe.includes(s);return[s,c]},ob=e=>{let t={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e===`scroll`?`scroll`:`visible`,dynamicInset:!0};return{bottomLeft:{...t,points:[`tl`,`bl`],offset:[0,4]},bottomRight:{...t,points:[`tr`,`br`],offset:[0,4]},topLeft:{...t,points:[`bl`,`tl`],offset:[0,-4]},topRight:{...t,points:[`br`,`tr`],offset:[0,-4]}}};function sb(e,t){return e||ob(t)}var cb=e=>{let{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:i}=e;return{position:`relative`,display:`block`,minHeight:t,padding:i,color:e.colorText,fontWeight:`normal`,fontSize:n,lineHeight:r,boxSizing:`border-box`}},lb=e=>{let{antCls:t,componentCls:n}=e,r=`${n}-item`,i=`&${t}-slide-up-enter${t}-slide-up-enter-active`,a=`&${t}-slide-up-appear${t}-slide-up-appear-active`,o=`&${t}-slide-up-leave${t}-slide-up-leave-active`,s=`${n}-dropdown-placement-`,c=`${r}-option-selected`;return[{[`${n}-dropdown`]:{...za(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,[`
165
165
  ${i}${s}bottomLeft,
166
166
  ${a}${s}bottomLeft
167
- `]:{animationName:df},[`
167
+ `]:{animationName:ff},[`
168
168
  ${i}${s}topLeft,
169
169
  ${a}${s}topLeft,
170
170
  ${i}${s}topRight,
171
171
  ${a}${s}topRight
172
- `]:{animationName:pf},[`${o}${s}bottomLeft`]:{animationName:ff},[`
172
+ `]:{animationName:mf},[`${o}${s}bottomLeft`]:{animationName:pf},[`
173
173
  ${o}${s}topLeft,
174
174
  ${o}${s}topRight
175
- `]:{animationName:mf},"&-hidden":{display:`none`},[r]:{...sb(e),cursor:`pointer`,transition:`background-color ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:`default`},"&-option":{display:`flex`,"&-content":{flex:`auto`,...Ra},"&-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":{...sb(e),color:e.colorTextDisabled}},[`${c}:has(+ ${c})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${c}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:`rtl`}}},bf(e,`slide-up`),bf(e,`slide-down`),uf(e,`move-up`),uf(e,`move-down`)]},lb=e=>{let{componentCls:t}=e;return{[`&${t}-customize`]:{border:0,padding:0,fontSize:`inherit`,lineHeight:`inherit`,[`${t}-placeholder`]:{display:`none`},[`${t}-content`]:{margin:0,padding:0,"&-value":{display:`none`}}}}},ub=4,db=e=>{let{componentCls:t,calc:n,iconCls:r,paddingXS:i,paddingXXS:a,INTERNAL_FIXED_ITEM_MARGIN:o,lineWidth:s,colorIcon:c,colorIconHover:l,inputPaddingHorizontalBase:u,antCls:d}=e,[f,p]=Za(d,`select`);return{"&-multiple":{[f(`multi-item-background`)]:e.multipleItemBg,[f(`multi-item-border-color`)]:`transparent`,[f(`multi-item-border-radius`)]:e.borderRadiusSM,[f(`multi-item-height`)]:e.multipleItemHeight,[f(`multi-padding-base`)]:`calc((${p(`height`)} - ${p(`multi-item-height`)}) / 2)`,[f(`multi-padding-vertical`)]:`calc(${p(`multi-padding-base`)} - ${o} - ${s})`,[f(`multi-item-padding-horizontal`)]:`calc(${u} - ${p(`multi-padding-vertical`)} - ${s} * 2)`,paddingBlock:p(`multi-padding-vertical`),paddingInlineStart:`calc(${p(`multi-padding-base`)} - ${s})`,[`${t}-prefix`]:{marginInlineStart:p(`multi-item-padding-horizontal`)},[`${t}-prefix + ${t}-content`]:{[`${t}-placeholder`]:{insetInlineStart:0},[`${t}-content-item${t}-content-item-suffix`]:{marginInlineStart:0}},[`${t}-placeholder`]:{position:`absolute`,lineHeight:p(`line-height`),insetInlineStart:p(`multi-item-padding-horizontal`),width:`calc(100% - ${p(`multi-item-padding-horizontal`)})`,top:`50%`,transform:`translateY(-50%)`},[`${t}-content`]:{flexWrap:`wrap`,alignItems:`center`,lineHeight:1,"&-item-prefix":{height:p(`font-size`)},"&-item":{lineHeight:1,maxWidth:`calc(100% - ${ub}px)`},[`${t}-content-item-prefix + ${t}-content-item-suffix,
176
- ${t}-content-item-suffix:first-child`]:{marginInlineStart:p(`multi-item-padding-horizontal`)},[`${t}-selection-item`]:{lineHeight:`calc(${p(`multi-item-height`)} - ${s} * 2)`,border:`${s} solid ${p(`multi-item-border-color`)}`,display:`flex`,marginBlock:o,marginInlineEnd:n(o).mul(2).equal(),background:p(`multi-item-background`),borderRadius:p(`multi-item-border-radius`),paddingInlineStart:i,paddingInlineEnd:a,transition:[`height`,`line-height`,`padding`].map(t=>`${t} ${e.motionDurationSlow}`).join(`,`),"&-content":{...Ra,marginInlineEnd:a},"&-remove":{...Ba(),display:`inline-flex`,alignItems:`center`,color:c,fontWeight:`bold`,fontSize:10,lineHeight:`inherit`,cursor:`pointer`,[`> ${r}`]:{verticalAlign:`-0.2em`},"&:hover":{color:l}}},[`${t}-input`]:{lineHeight:n(o).mul(2).add(p(`multi-item-height`)).equal(),width:`calc(var(--select-input-width, 0) * 1px)`,minWidth:ub,maxWidth:`100%`,transition:`line-height ${e.motionDurationSlow}`}},[`&${t}-sm`]:{[f(`multi-item-height`)]:e.multipleItemHeightSM,[f(`multi-item-border-radius`)]:e.borderRadiusXS},[`&${t}-lg`]:{[f(`multi-item-height`)]:e.multipleItemHeightLG,[f(`multi-item-border-radius`)]:e.borderRadius},[`&${t}-filled`]:{[f(`multi-item-border-color`)]:e.colorSplit,[f(`multi-item-background`)]:e.colorBgContainer,[`&${t}-disabled`]:{[f(`multi-item-border-color`)]:`transparent`}}}}},fb=(e,t)=>{let{componentCls:n,antCls:r}=e,[i]=Za(r,`select`),{border:a,borderHover:o,borderActive:s,borderOutline:c}=t,l=t.background||e.selectorBg||e.colorBgContainer;return{[i(`border-color`)]:a,[i(`background-color`)]:l,[i(`color`)]:t.color||e.colorText,[`&:not(${n}-disabled)`]:{"&:hover":{[i(`border-color`)]:o,[i(`background-color`)]:t.backgroundHover||l},[`&${n}-focused`]:{[i(`border-color`)]:s,[i(`background-color`)]:t.backgroundActive||l,boxShadow:`0 0 0 ${X(e.controlOutlineWidth)} ${c}`}},[`&${n}-disabled`]:{[i(`border-color`)]:t.borderDisabled||t.border,[i(`background-color`)]:t.backgroundDisabled||t.background}}},pb=(e,t,n,r={},i={},a)=>{let{componentCls:o}=e;return{[`&${o}-${t}`]:[fb(e,n),{[`&${o}-status-error`]:fb(e,{...n,color:r.color||e.colorError,...r}),[`&${o}-status-warning`]:fb(e,{...n,color:i.color||e.colorWarning,...i})},a]}},mb=e=>{let{componentCls:t,fontHeight:n,controlHeight:r,iconCls:i,antCls:a,calc:o}=e,[s,c]=Za(a,`select`);return{[t]:[{[s(`border-radius`)]:e.borderRadius,[s(`border-color`)]:`#000`,[s(`border-size`)]:e.lineWidth,[s(`background-color`)]:e.colorBgContainer,[s(`font-size`)]:e.fontSize,[s(`line-height`)]:e.lineHeight,[s(`font-height`)]:n,[s(`color`)]:e.colorText,[s(`height`)]:r,[s(`padding-horizontal`)]:o(e.paddingSM).sub(e.lineWidth).equal(),[s(`padding-vertical`)]:`calc((${c(`height`)} - ${c(`font-height`)}) / 2 - ${c(`border-size`)})`,...za(e,!0),display:`inline-flex`,flexWrap:`nowrap`,position:`relative`,transition:`all ${e.motionDurationSlow}`,alignItems:`flex-start`,outline:0,cursor:`pointer`,borderRadius:c(`border-radius`),borderWidth:c(`border-size`),borderStyle:e.lineType,borderColor:c(`border-color`),background:c(`background-color`),fontSize:c(`font-size`),lineHeight:c(`line-height`),color:c(`color`),paddingInline:c(`padding-horizontal`),paddingBlock:c(`padding-vertical`),[`${t}-prefix`]:{flex:`none`,lineHeight:1},[`${t}-placeholder`]:{...Ra,color:e.colorTextPlaceholder,pointerEvents:`none`,zIndex:1},[`${t}-content`]:{flex:`auto`,minWidth:0,position:`relative`,display:`flex`,marginInlineEnd:o(e.paddingXXS).mul(1.5).equal(),"&:before":{content:`"\\a0"`,width:0,overflow:`hidden`},"&-value":{visibility:`inherit`},"input[readonly]":{cursor:`inherit`,caretColor:`transparent`}},[`${t}-suffix`]:{flex:`none`,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,"> :not(:last-child)":{marginInlineEnd:e.marginXS}},[`${t}-prefix, ${t}-suffix`]:{alignSelf:`center`,[i]:{verticalAlign:`top`}},"&-disabled":{background:e.colorBgContainerDisabled,color:e.colorTextDisabled,cursor:`not-allowed`,input:{cursor:`not-allowed`}},"&-sm":{[s(`height`)]:e.controlHeightSM,[s(`padding-horizontal`)]:o(e.paddingXS).sub(e.lineWidth).equal(),[s(`border-radius`)]:e.borderRadiusSM,[`${t}-clear`]:{insetInlineEnd:c(`padding-horizontal`)}},"&-lg":{[s(`height`)]:e.controlHeightLG,[s(`font-size`)]:e.fontSizeLG,[s(`line-height`)]:e.lineHeightLG,[s(`font-height`)]:e.fontHeightLG,[s(`border-radius`)]:e.borderRadiusLG}},{[`&:not(${t}-customize)`]:{[`${t}-input`]:{outline:`none`,background:`transparent`,appearance:`none`,border:0,margin:0,padding:0,color:c(`color`),"&::-webkit-search-cancel-button":{display:`none`,appearance:`none`}}}},{[`&-single:not(${t}-customize)`]:{[`${t}-input`]:{position:`absolute`,inset:0,lineHeight:`calc(${c(`font-height`)} + ${c(`padding-vertical`)} * 2)`},[`${t}-content`]:{...Ra,alignSelf:`center`,"&-has-value":{display:`block`,"&:before":{display:`none`}},"&-has-search-value":{color:`transparent`},"&-value":{transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,zIndex:1}},[`&${t}-open ${t}-content`]:{color:e.colorTextPlaceholder,"&-has-search-value":{color:`transparent`}}}},{[`&-show-search:not(${t}-customize-input):not(${t}-disabled)`]:{cursor:`text`}},db(e),pb(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}),pb(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}),pb(e,`borderless`,{border:`transparent`,borderHover:`transparent`,borderActive:`transparent`,borderOutline:`transparent`,background:`transparent`}),pb(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`,borderInlineColor:`transparent`}),lb(e)]}},hb=e=>{let{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:i,controlHeightSM:a,controlHeightLG:o,paddingXXS:s,controlPaddingHorizontal:c,zIndexPopupBase:l,colorText:u,fontWeightStrong:d,controlItemBgActive:f,controlItemBgHover:p,colorBgContainer:m,colorFillSecondary:h,colorBgContainerDisabled:g,colorTextDisabled:_,colorPrimaryHover:v,colorPrimary:y,controlOutline:b}=e,x=s*2,S=r*2,C=Math.min(i-x,i-S),w=Math.min(a-x,a-S),T=Math.min(o-x,o-S);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(s/2),zIndexPopup:l+50,optionSelectedColor:u,optionSelectedFontWeight:d,optionSelectedBg:f,optionActiveBg:p,optionPadding:`${(i-t*n)/2}px ${c}px`,optionFontSize:t,optionLineHeight:n,optionHeight:i,selectorBg:m,clearBg:m,singleItemHeightLG:o,multipleItemBg:h,multipleItemBorderColor:`transparent`,multipleItemHeight:C,multipleItemHeightSM:w,multipleItemHeightLG:T,multipleSelectorBgDisabled:g,multipleItemColorDisabled:_,multipleItemBorderColorDisabled:`transparent`,showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:v,activeBorderColor:y,activeOutlineColor:b,selectAffixPadding:s}},gb=e=>{let{antCls:t,componentCls:n,motionDurationMid:r,inputPaddingHorizontalBase:i}=e,a={[`${n}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:`50%`}};return{[n]:{...za(e),[`${n}-selection-item`]:{flex:1,fontWeight:`normal`,position:`relative`,userSelect:`none`,...Ra,[`> ${t}-typography`]:{display:`inline`}},[`${n}-prefix`]:{flex:`none`,marginInlineEnd:e.selectAffixPadding},[`${n}-clear`]:{position:`absolute`,top:`50%`,insetInlineStart:`auto`,insetInlineEnd:i,zIndex:1,display:`inline-block`,width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:`normal`,lineHeight:1,textAlign:`center`,textTransform:`none`,cursor:`pointer`,opacity:0,transition:[`color`,`opacity`].map(e=>`${e} ${r} ease`).join(`, `),textRendering:`auto`,transform:`translateZ(0)`,"&:before":{display:`block`},"&:hover":{color:e.colorIcon}},"@media(hover:none)":a,"&:hover":a},[`${n}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(i).add(e.fontSize).add(e.paddingXS).equal()}}}}}},_b=e=>{let{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:`100%`}}},gb(e),cb(e),{[`${t}-rtl`]:{direction:`rtl`}},lp(e,{focusElCls:`${t}-focused`})]},vb=Ja(`Select`,(e,{rootPrefixCls:t})=>{let n=si(e,{rootPrefixCls:t,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(e.lineWidth).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[_b(n),mb(n)]},hb,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}}),yb={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 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)}var xb=v.forwardRef((e,t)=>v.createElement(So,bb({},e,{ref:t,icon:yb}))),Sb={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 Cb(){return Cb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Cb.apply(this,arguments)}var wb=v.forwardRef((e,t)=>v.createElement(So,Cb({},e,{ref:t,icon:Sb}))),Tb={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 Eb(){return Eb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Eb.apply(this,arguments)}var Db=v.forwardRef((e,t)=>v.createElement(So,Eb({},e,{ref:t,icon:Tb})));function Ob({suffixIcon:e,clearIcon:t,menuItemSelectedIcon:n,removeIcon:r,loading:i,loadingIcon:a,multiple:o,hasFeedback:s,showSuffixIcon:c,feedbackIcon:l,showArrow:u,componentName:d}){let f=t??v.createElement(Do,null),p=t=>e===null&&!s&&!u?null:v.createElement(v.Fragment,null,c!==!1&&t,s&&l),m=null;m=e===void 0?i?p(a??v.createElement(Yu,{spin:!0})):({open:e,showSearch:t})=>p(e&&t?v.createElement(Db,null):v.createElement(wb,null)):p(e);let h=null;h=n===void 0?o?v.createElement(xb,null):null:n;let g=null;return g=r===void 0?v.createElement(Ao,null):r,{clearIcon:f,suffixIcon:m,itemIcon:h,removeIcon:g}}function kb(e){return v.useMemo(()=>{if(e)return(...t)=>v.createElement(Vh,{space:!0},e.apply(void 0,t))},[e])}function Ab(e,t){return t===void 0?e!==null:t}var jb=`SECRET_COMBOBOX_MODE_DO_NOT_USE`,Mb=v.forwardRef((e,t)=>{let{prefixCls:n,bordered:r,className:i,rootClassName:a,getPopupContainer:o,popupClassName:s,dropdownClassName:c,listHeight:l=256,placement:u,listItemHeight:d,size:f,disabled:p,notFoundContent:m,status:h,builtinPlacements:g,dropdownMatchSelectWidth:_,popupMatchSelectWidth:y,direction:b,style:x,allowClear:S,variant:C,popupStyle:w,dropdownStyle:T,transitionName:E,tagRender:D,maxCount:O,prefix:k,dropdownRender:A,popupRender:j,onDropdownVisibleChange:M,onOpenChange:N,styles:P,classNames:F,...I}=e,{getPopupContainer:L,getPrefixCls:R,renderEmpty:z,direction:B,virtual:V,popupMatchSelectWidth:H,popupOverflow:U}=v.useContext(Je),{showSearch:W,style:ee,styles:te,className:G,classNames:ne}=Ze(`select`),[,re]=La(),ie=d??re?.controlHeight,K=R(`select`,n),q=R(),ae=b??B,{compactSize:oe,compactItemClassnames:se}=Nd(K,ae),[J,ce]=ib(`select`,C,r),le=Yc(K),[de,fe]=vb(K,le),pe=v.useMemo(()=>{let{mode:t}=e;if(t!==`combobox`)return t===jb?`combobox`:t},[e.mode]),me=pe===`multiple`||pe===`tags`,he=Ab(e.suffixIcon,e.showArrow),ge=y??_??H,_e=kb(j||A),ve=N||M,{status:ye,hasFeedback:be,isFormItemInput:xe,feedbackIcon:Se}=v.useContext(Rh),Ce=Yy(ye,h),we;we=m===void 0?pe===`combobox`?null:z?.(`Select`)||v.createElement(rb,{componentName:`Select`}):m;let{suffixIcon:Te,itemIcon:Ee,removeIcon:De,clearIcon:Oe}=Ob({...I,multiple:me,hasFeedback:be,feedbackIcon:Se,showSuffixIcon:he,prefixCls:K,componentName:`Select`}),ke=S===!0?{clearIcon:Oe}:S,Ae=ue(I,[`suffixIcon`,`itemIcon`]),je=Ad(e=>f??oe??e),Me=v.useContext(du),Ne=p??Me,Pe={...e,variant:J,status:Ce,disabled:Ne,size:je},[Fe,Ie]=Dc([ne,F],[te,P],{props:Pe},{popup:{_default:`root`}}),Le=Y(Fe.popup?.root,s,c,{[`${K}-dropdown-${ae}`]:ae===`rtl`},a,fe,le,de),Re={...Ie.popup?.root,...w??T},ze=Y({[`${K}-lg`]:je===`large`,[`${K}-sm`]:je===`small`,[`${K}-rtl`]:ae===`rtl`,[`${K}-${J}`]:ce,[`${K}-in-form-item`]:xe},Jy(K,Ce,be),se,G,i,Fe.root,a,fe,le,de),Be=v.useMemo(()=>u===void 0?ae===`rtl`?`bottomRight`:`bottomLeft`:u,[u,ae]),[Ve]=Lc(`SelectLike`,Ie.popup?.root?.zIndex??Re?.zIndex);return v.createElement(qy,{ref:t,virtual:V,classNames:Fe,styles:Ie,showSearch:W,...Ae,style:{...Ie.root,...ee,...x},popupMatchSelectWidth:ge,transitionName:bd(q,`slide-up`,E),builtinPlacements:ob(g,U),listHeight:l,listItemHeight:ie,mode:pe,prefixCls:K,placement:Be,direction:ae,prefix:k,suffixIcon:Te,menuItemSelectedIcon:Ee,removeIcon:De,allowClear:ke,notFoundContent:we,className:ze,getPopupContainer:o||L,popupClassName:Le,disabled:Ne,popupStyle:{...Ie.popup?.root,...Re,zIndex:Ve},maxCount:me?O:void 0,tagRender:me?D:void 0,popupRender:_e,onPopupVisibleChange:ve})}),Nb=Y_(Mb,`popupAlign`);Mb.SECRET_COMBOBOX_MODE_DO_NOT_USE=jb,Mb.Option=ry,Mb.OptGroup=ny,Mb._InternalPanelDoNotUseOrYouWillBeFired=Nb;var Pb=[`xxxl`,`xxl`,`xl`,`lg`,`md`,`sm`,`xs`],Fb=[].concat(Pb).reverse(),Ib=e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`,xxxl:`(min-width: ${e.screenXXXL}px)`}),Lb=e=>{let t=e,n=[].concat(Pb).reverse();return n.forEach((e,r)=>{let i=e.toUpperCase(),a=`screen${i}Min`,o=`screen${i}`;if(!(t[a]<=t[o]))throw Error(`${a}<=${o} fails : !(${t[a]}<=${t[o]})`);if(r<n.length-1){let e=`screen${i}Max`;if(!(t[o]<=t[e]))throw Error(`${o}<=${e} fails : !(${t[o]}<=${t[e]})`);let a=`screen${n[r+1].toUpperCase()}Min`;if(!(t[e]<=t[a]))throw Error(`${e}<=${a} fails : !(${t[e]}<=${t[a]})`)}}),e},Rb=()=>{let[,e]=La(),t=Ib(Lb(e));return v.useMemo(()=>{let e=new Map,n=-1,r={};return{responsiveMap:t,matchHandlers:{},dispatch(t){return r=t,e.forEach(e=>{e(r)}),e.size>=1},subscribe(t){return e.size||this.register(),n+=1,e.set(n,t),t(r),n},unsubscribe(t){e.delete(t),e.size||this.unregister()},register(){Object.entries(t).forEach(([e,t])=>{let n=({matches:t})=>{this.dispatch({...r,[e]:t})},i=window.matchMedia(t);typeof i?.addEventListener==`function`&&i.addEventListener(`change`,n),this.matchHandlers[t]={mql:i,listener:n},n(i)})},unregister(){Object.values(t).forEach(e=>{let t=this.matchHandlers[e];typeof t?.mql?.removeEventListener==`function`&&t.mql.removeEventListener(`change`,t?.listener)}),e.clear()}}},[t])};function zb(e=!0,t={}){let n=(0,v.useRef)(t),[,r]=vc(),i=Rb();return S(()=>{let t=i.subscribe(t=>{n.current=t,e&&r()});return()=>i.unsubscribe(t)},[]),n.current}var Bb=e=>e?typeof e==`function`?e():e:null,Vb=e=>{let{children:t,prefixCls:n,id:r,classNames:i,styles:a,className:o,style:s}=e;return v.createElement(`div`,{id:r,className:Y(`${n}-container`,i?.container,o),style:{...a?.container,...s},role:`tooltip`},typeof t==`function`?t():t)},Hb={shiftX:64,adjustY:1},Ub={adjustX:1,shiftY:!0},Wb=[0,0],Gb={left:{points:[`cr`,`cl`],overflow:Ub,offset:[-4,0],targetOffset:Wb},right:{points:[`cl`,`cr`],overflow:Ub,offset:[4,0],targetOffset:Wb},top:{points:[`bc`,`tc`],overflow:Hb,offset:[0,-4],targetOffset:Wb},bottom:{points:[`tc`,`bc`],overflow:Hb,offset:[0,4],targetOffset:Wb},topLeft:{points:[`bl`,`tl`],overflow:Hb,offset:[0,-4],targetOffset:Wb},leftTop:{points:[`tr`,`tl`],overflow:Ub,offset:[-4,0],targetOffset:Wb},topRight:{points:[`br`,`tr`],overflow:Hb,offset:[0,-4],targetOffset:Wb},rightTop:{points:[`tl`,`tr`],overflow:Ub,offset:[4,0],targetOffset:Wb},bottomRight:{points:[`tr`,`br`],overflow:Hb,offset:[0,4],targetOffset:Wb},rightBottom:{points:[`bl`,`br`],overflow:Ub,offset:[4,0],targetOffset:Wb},bottomLeft:{points:[`tl`,`bl`],overflow:Hb,offset:[0,4],targetOffset:Wb},leftBottom:{points:[`br`,`bl`],overflow:Ub,offset:[-4,0],targetOffset:Wb}};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)}var qb=v.forwardRef((e,t)=>{let{trigger:n=[`hover`],mouseEnterDelay:r=0,mouseLeaveDelay:i=.1,prefixCls:a=`rc-tooltip`,children:o,onVisibleChange:s,afterVisibleChange:c,motion:l,placement:u=`right`,align:d={},destroyOnHidden:f=!1,defaultVisible:p,getTooltipContainer:m,arrowContent:h,overlay:g,id:_,showArrow:y=!0,classNames:b,styles:x,...S}=e,C=dl(_),w=(0,v.useRef)(null);(0,v.useImperativeHandle)(t,()=>w.current);let T={...S};`visible`in e&&(T.popupVisible=e.visible);let E=v.useMemo(()=>{if(!y)return!1;let e=y===!0?{}:y;return{...e,className:Y(e.className,b?.arrow),style:{...e.style,...x?.arrow},content:e.content??h}},[y,b?.arrow,x?.arrow,h]);return v.createElement(ru,Kb({popupClassName:b?.root,prefixCls:a,popup:v.createElement(Vb,{key:`content`,prefixCls:a,id:C,classNames:b,styles:x},g),action:n,builtinPlacements:Gb,popupPlacement:u,ref:w,popupAlign:d,getPopupContainer:m,onOpenChange:s,afterOpenChange:c,popupMotion:l,defaultPopupVisible:p,autoDestroy:f,mouseLeaveDelay:i,popupStyle:x?.root,mouseEnterDelay:r,arrow:E,uniqueContainerClassName:b?.uniqueContainer,uniqueContainerStyle:x?.uniqueContainer},T),({open:e})=>{let t=v.Children.only(o),n={"aria-describedby":g&&e?C:void 0};return v.cloneElement(t,n)})});function Jb(e){let{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,i=t/2,a=i,o=r*1/Math.sqrt(2),s=i-r*(1-1/Math.sqrt(2)),c=i-1/Math.sqrt(2)*n,l=r*(Math.sqrt(2)-1)+1/Math.sqrt(2)*n,u=2*i-c,d=l,f=2*i-o,p=s,m=2*i-0,h=a,g=i*Math.sqrt(2)+r*(Math.sqrt(2)-2),_=r*(Math.sqrt(2)-1),v=`polygon(${_}px 100%, 50% ${_}px, ${2*i-_}px 100%, ${_}px 100%)`;return{arrowShadowWidth:g,arrowPath:`path('M 0 ${a} A ${r} ${r} 0 0 0 ${o} ${s} L ${c} ${l} A ${n} ${n} 0 0 1 ${u} ${d} L ${f} ${p} A ${r} ${r} 0 0 0 ${m} ${h} Z')`,arrowPolygon:v}}var Yb=(e,t,n)=>{let{sizePopupArrow:r,arrowPolygon:i,arrowPath:a,arrowShadowWidth:o,borderRadiusXS:s,calc:c}=e;return{pointerEvents:`none`,width:r,height:r,overflow:`hidden`,"&::before":{position:`absolute`,bottom:0,insetInlineStart:0,width:r,height:c(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[i,a]},content:`""`},"&::after":{content:`""`,position:`absolute`,width:o,height:o,bottom:0,insetInline:0,margin:`auto`,borderRadius:{_skip_check_:!0,value:`0 0 ${X(s)} 0`},transform:`translateY(50%) rotate(-135deg)`,boxShadow:n,zIndex:0,background:`transparent`}}};function Xb(e){let{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?8:r}}function Zb(e,t){return e?t:{}}var Qb=(e,t,n)=>{let{componentCls:r,boxShadowPopoverArrow:i,arrowOffsetVertical:a,arrowOffsetHorizontal:o,antCls:s}=e,[c]=Za(s,`tooltip`),{arrowDistance:l=0,arrowPlacement:u={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[r]:{[`${r}-arrow`]:[{position:`absolute`,zIndex:1,display:`block`,...Yb(e,t,i),"&:before":{background:t}}],...Zb(!!u.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(`,`)]:{bottom:l,transform:`translateY(100%) rotate(180deg)`},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:`50%`},transform:`translateX(-50%) translateY(100%) rotate(180deg)`},"&-placement-topLeft":{[c(`arrow-offset-x`)]:o,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:o}}},"&-placement-topRight":{[c(`arrow-offset-x`)]:`calc(100% - ${X(o)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:o}}}}),...Zb(!!u.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(`,`)]:{top:l,transform:`translateY(-100%)`},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:`50%`},transform:`translateX(-50%) translateY(-100%)`},"&-placement-bottomLeft":{[c(`arrow-offset-x`)]:o,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:o}}},"&-placement-bottomRight":{[c(`arrow-offset-x`)]:`calc(100% - ${X(o)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:o}}}}),...Zb(!!u.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(`,`)]:{right:{_skip_check_:!0,value:l},transform:`translateX(100%) rotate(90deg)`},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:`50%`},transform:`translateY(-50%) translateX(100%) rotate(90deg)`},[`&-placement-leftTop > ${r}-arrow`]:{top:a},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:a}}),...Zb(!!u.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(`,`)]:{left:{_skip_check_:!0,value:l},transform:`translateX(-100%) rotate(-90deg)`},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:`50%`},transform:`translateY(-50%) translateX(-100%) rotate(-90deg)`},[`&-placement-rightTop > ${r}-arrow`]:{top:a},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:a}})}}};function $b(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};let i=sc(r)?r:{},a={};switch(e){case`top`:case`bottom`:a.shiftX=t.arrowOffsetHorizontal*2+n,a.shiftY=!0,a.adjustY=!0;break;case`left`:case`right`:a.shiftY=t.arrowOffsetVertical*2+n,a.shiftX=!0,a.adjustX=!0;break}let o={...a,...i};return o.shiftX||(o.adjustX=!0),o.shiftY||(o.adjustY=!0),o}var ex={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`]}},tx={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`]}},nx=new Set([`topLeft`,`topRight`,`bottomLeft`,`bottomRight`,`leftTop`,`leftBottom`,`rightTop`,`rightBottom`]);function rx(e){let{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:i,borderRadius:a,visibleFirst:o}=e,s=t/2,c={},l=Xb({contentRadius:a,limitVerticalRadius:!0});return Object.keys(ex).forEach(e=>{let a={...r&&tx[e]||ex[e],offset:[0,0],dynamicInset:!0};switch(c[e]=a,nx.has(e)&&(a.autoArrow=!1),e){case`top`:case`topLeft`:case`topRight`:a.offset[1]=-s-i;break;case`bottom`:case`bottomLeft`:case`bottomRight`:a.offset[1]=s+i;break;case`left`:case`leftTop`:case`leftBottom`:a.offset[0]=-s-i;break;case`right`:case`rightTop`:case`rightBottom`:a.offset[0]=s+i;break}if(r)switch(e){case`topLeft`:case`bottomLeft`:a.offset[0]=-l.arrowOffsetHorizontal-s;break;case`topRight`:case`bottomRight`:a.offset[0]=l.arrowOffsetHorizontal+s;break;case`leftTop`:case`rightTop`:a.offset[1]=-l.arrowOffsetHorizontal*2+s;break;case`leftBottom`:case`rightBottom`:a.offset[1]=l.arrowOffsetHorizontal*2-s;break}a.overflow=$b(e,l,t,n),o&&(a.htmlRegion=`visibleFirst`)}),c}var ix=v.createContext(!1),ax=(e,t)=>{let n=e=>typeof e==`boolean`?{show:e}:e||{};return v.useMemo(()=>{let r=n(e),i=n(t);return{...i,...r,show:r.show??i.show??!0}},[e,t])},ox=`50%`,sx=e=>{let{calc:t,componentCls:n,tooltipMaxWidth:r,tooltipColor:i,tooltipBg:a,tooltipBorderRadius:o,zIndexPopup:s,controlHeight:c,boxShadowSecondary:l,paddingSM:u,paddingXS:d,arrowOffsetHorizontal:f,sizePopupArrow:p,antCls:m}=e,[h,g]=Za(m,`tooltip`),_=t(o).add(p).add(f).equal(),v={minWidth:t(o).mul(2).add(p).equal(),minHeight:c,padding:`${X(e.calc(u).div(2).equal())} ${X(d)}`,color:g(`overlay-color`,i),textAlign:`start`,textDecoration:`none`,wordWrap:`break-word`,backgroundColor:a,borderRadius:o,boxShadow:l,boxSizing:`border-box`},y={[h(`valid-offset-x`)]:g(`arrow-offset-x`,`var(--arrow-x)`),transformOrigin:[g(`valid-offset-x`,ox),`var(--arrow-y, ${ox})`].join(` `)};return[{[n]:{...za(e),position:`absolute`,zIndex:s,display:`block`,width:`max-content`,maxWidth:r,visibility:`visible`,...y,"&-hidden":{display:`none`},[h(`arrow-background-color`)]:a,[`${n}-container`]:[v,tf(e,!0)],[`&:has(~ ${n}-unique-container)`]:{[`${n}-container`]:{border:`none`,background:`transparent`,boxShadow:`none`}},[[`&-placement-topLeft`,`&-placement-topRight`,`&-placement-bottomLeft`,`&-placement-bottomRight`].join(`,`)]:{minWidth:_},[[`&-placement-left`,`&-placement-leftTop`,`&-placement-leftBottom`,`&-placement-right`,`&-placement-rightTop`,`&-placement-rightBottom`].join(`,`)]:{[`${n}-inner`]:{borderRadius:e.min(o,8)}},[`${n}-content`]:{position:`relative`},...Qa(e,(e,{darkColor:t})=>({[`&${n}-${e}`]:{[`${n}-container`]:{backgroundColor:t},[`${n}-arrow`]:{[h(`arrow-background-color`)]:t}}})),"&-rtl":{direction:`rtl`}}},Qb(e,g(`arrow-background-color`)),{[`${n}-pure`]:{position:`relative`,maxWidth:`none`,margin:e.sizePopupArrow}},{[`${n}-unique-container`]:{...v,...y,position:`absolute`,zIndex:t(s).sub(1).equal(),"&-hidden":{display:`none`},"&-visible":{transition:`all ${e.motionDurationSlow}`}}}]},cx=e=>({zIndexPopup:e.zIndexPopupBase+70,maxWidth:250,...Xb({contentRadius:e.borderRadius,limitVerticalRadius:!0}),...Jb(si(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))}),lx=(e,t,n=!0)=>Ja(`Tooltip`,e=>{let{borderRadius:t,colorTextLightSolid:n,colorBgSpotlight:r,maxWidth:i}=e;return[sx(si(e,{tooltipMaxWidth:i,tooltipColor:n,tooltipBorderRadius:t,tooltipBg:r})),Ff(e,`zoom-big-fast`)]},cx,{resetStyle:!1,injectStyle:n})(e,t),ux=vi.map(e=>`${e}-inverse`),dx=[`success`,`processing`,`error`,`default`,`warning`];function fx(e,t=!0){return t?[].concat(ze(ux),ze(vi)).includes(e):vi.includes(e)}function px(e){return dx.includes(e)}var mx=(e,t,n)=>{let r=fx(n),[i]=Za(e,`tooltip`),a=Y({[`${t}-${n}`]:n&&r}),o={},s={},c=Jf(n).toRgb(),l=(.299*c.r+.587*c.g+.114*c.b)/255<.5?`#FFF`:`#000`;return n&&!r&&(o.background=n,o[i(`overlay-color`)]=l,s[i(`arrow-background-color`)]=n),{className:a,overlayStyle:o,arrowStyle:s}},hx=e=>{let{prefixCls:t,className:n,placement:r=`top`,title:i,color:a,overlayInnerStyle:o,classNames:s,styles:c}=e,{getPrefixCls:l}=v.useContext(Je),u=l(`tooltip`,t),d=l(),f=Yc(u),[p,m]=lx(u,f),h=mx(d,u,a),g=h.arrowStyle,_=v.useMemo(()=>({container:{...o,...h.overlayStyle}}),[o,h.overlayStyle]),y={...e,placement:r},[b,x]=Dc([s],[_,c],{props:y}),S=Y(f,p,m,u,`${u}-pure`,`${u}-placement-${r}`,n,h.className);return v.createElement(`div`,{className:S,style:g},v.createElement(`div`,{className:`${u}-arrow`}),v.createElement(Vb,{...e,className:p,prefixCls:u,classNames:b,styles:x},i))},gx=v.forwardRef((e,t)=>{let{prefixCls:n,openClassName:r,getTooltipContainer:i,color:a,children:o,afterOpenChange:s,arrow:c,destroyTooltipOnHide:l,destroyOnHidden:u,title:d,overlay:f,trigger:p,builtinPlacements:m,autoAdjustOverflow:h=!0,motion:g,getPopupContainer:_,placement:y=`top`,mouseEnterDelay:b=.1,mouseLeaveDelay:x=.1,rootClassName:S,styles:C,classNames:w,onOpenChange:E,overlayInnerStyle:D,overlayStyle:O,overlayClassName:k,...A}=e,[,j]=La(),M=e[`data-popover-inject`],{getPopupContainer:N,getPrefixCls:P,direction:F,...I}=Ze(`tooltip`),{className:L,style:R,classNames:z,styles:B,arrow:V,trigger:H}=M?{}:I,U=ax(c,V),W=U.show,ee=p||H||`hover`,te=_||N,G=u??!!l,ne=v.useContext(ix);he(`Tooltip`);let re=v.useRef(null),ie=()=>{re.current?.forceAlign()};v.useImperativeHandle(t,()=>({forceAlign:ie,nativeElement:re.current?.nativeElement,popupElement:re.current?.popupElement}));let[K,q]=T(e.defaultOpen??!1,e.open),ae=!d&&!f&&d!==0,oe=e=>{q(ae?!1:e),!ae&&E&&E(e)},se=v.useMemo(()=>m||rx({arrowPointAtCenter:U?.pointAtCenter??!1,autoAdjustOverflow:h,arrowWidth:W?j.sizePopupArrow:0,borderRadius:j.borderRadius,offset:j.marginXXS,visibleFirst:!0}),[U,m,j,W,h]),J=v.useMemo(()=>d===0?d:f||d||``,[f,d]),ce=v.createElement(Vh,{space:!0,form:!0},typeof J==`function`?J():J),le={...e,trigger:ee,builtinPlacements:se,getPopupContainer:te,destroyOnHidden:G},[ue,de]=Dc([z,w],[B,C],{props:le}),fe=P(`tooltip`,n),pe=P(),me=K;(!(`open`in e)&&ae||ne)&&(me=!1);let ge=v.isValidElement(o)&&!iu(o)?o:v.createElement(`span`,null,o),_e=ge.props,ve=!_e.className||typeof _e.className==`string`?Y(_e.className,r||`${fe}-open`):_e.className,ye=Yc(fe),[be,xe]=lx(fe,ye,!M),Se=mx(pe,fe,a),Ce=Se.arrowStyle,we=Y(ye,be,xe),Te=Y(k,{[`${fe}-rtl`]:F===`rtl`},Se.className,S,we,L,ue.root),[Ee,De]=Lc(`Tooltip`,A.zIndex),Oe={...de.container,...D,...Se.overlayStyle},ke=v.createElement(qb,{unique:!0,...A,zIndex:Ee,showArrow:W,placement:y,mouseEnterDelay:b,mouseLeaveDelay:x,prefixCls:fe,classNames:{root:Te,container:ue.container,arrow:ue.arrow,uniqueContainer:Y(we,ue.container)},styles:{root:{...Ce,...de.root,...R,...O},container:Oe,uniqueContainer:Oe,arrow:de.arrow},ref:re,overlay:ce,visible:me,onVisibleChange:oe,afterVisibleChange:s,arrowContent:v.createElement(`span`,{className:`${fe}-arrow-content`}),motion:{motionName:bd(pe,`zoom-big-fast`,typeof g?.motionName==`string`?g?.motionName:void 0),motionDeadline:1e3},trigger:ee,builtinPlacements:se,getTooltipContainer:te,destroyOnHidden:G},me?ou(ge,{className:ve}):ge);return v.createElement(jc.Provider,{value:De},ke)});gx._InternalPanelDoNotUseOrYouWillBeFired=hx,gx.UniqueProvider=uu;var _x=`50%`,vx=e=>{let{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:i,innerPadding:a,boxShadowSecondary:o,colorTextHeading:s,borderRadiusLG:c,zIndexPopup:l,titleMarginBottom:u,colorBgElevated:d,popoverBg:f,titleBorderBottom:p,innerContentPadding:m,titlePadding:h,antCls:g}=e,[_,v]=Za(g,`tooltip`);return[{[t]:{...za(e),position:`absolute`,top:0,left:{_skip_check_:!0,value:0},zIndex:l,fontWeight:`normal`,whiteSpace:`normal`,textAlign:`start`,cursor:`auto`,userSelect:`text`,[_(`valid-offset-x`)]:v(`arrow-offset-x`,`var(--arrow-x)`),transformOrigin:[v(`valid-offset-x`,_x),`var(--arrow-y, ${_x})`].join(` `),[_(`arrow-background-color`)]:d,width:`max-content`,maxWidth:`100vw`,"&-rtl":{direction:`rtl`},"&-hidden":{display:`none`},[`${t}-content`]:{position:`relative`},[`${t}-container`]:{backgroundColor:f,backgroundClip:`padding-box`,borderRadius:c,boxShadow:o,padding:a},[`${t}-title`]:{minWidth:r,marginBottom:u,color:s,fontWeight:i,borderBottom:p,padding:h},[`${t}-content`]:{color:n,padding:m}}},Qb(e,v(`arrow-background-color`)),{[`${t}-pure`]:{position:`relative`,maxWidth:`none`,margin:e.sizePopupArrow,display:`inline-block`}}]},yx=e=>{let{componentCls:t,antCls:n}=e,[r]=Za(n,`tooltip`);return{[t]:vi.map(n=>{let i=e[`${n}6`];return{[`&${t}-${n}`]:{[r(`arrow-background-color`)]:i,[`${t}-inner`]:{backgroundColor:i},[`${t}-arrow`]:{background:`transparent`}}}})}},bx=Ja(`Popover`,e=>{let{colorBgElevated:t,colorText:n}=e,r=si(e,{popoverBg:t,popoverColor:n});return[vx(r),yx(r),Ff(r,`zoom-big`)]},e=>{let{lineWidth:t,controlHeight:n,fontHeight:r,padding:i,wireframe:a,zIndexPopupBase:o,borderRadiusLG:s,marginXS:c,lineType:l,colorSplit:u,paddingSM:d}=e,f=n-r,p=f/2,m=f/2-t,h=i;return{titleMinWidth:177,zIndexPopup:o+30,...Jb(e),...Xb({contentRadius:s,limitVerticalRadius:!0}),innerPadding:a?0:12,titleMarginBottom:a?0:c,titlePadding:a?`${p}px ${h}px ${m}px`:0,titleBorderBottom:a?`${t}px ${l} ${u}`:`none`,innerContentPadding:a?`${d}px ${h}px`:0}},{resetStyle:!1,deprecatedTokens:[[`width`,`titleMinWidth`],[`minWidth`,`titleMinWidth`]]}),xx=e=>{let{title:t,content:n,prefixCls:r,classNames:i,styles:a}=e;return!t&&!n?null:v.createElement(v.Fragment,null,t&&v.createElement(`div`,{className:Y(`${r}-title`,i?.title),style:a?.title},t),n&&v.createElement(`div`,{className:Y(`${r}-content`,i?.content),style:a?.content},n))},Sx=e=>{let{hashId:t,prefixCls:n,className:r,style:i,placement:a=`top`,title:o,content:s,children:c,classNames:l,styles:u}=e,d=Bb(o),f=Bb(s),p={...e,placement:a},[m,h]=Dc([l],[u],{props:p}),g=Y(t,n,`${n}-pure`,`${n}-placement-${a}`,r);return v.createElement(`div`,{className:g,style:i},v.createElement(`div`,{className:`${n}-arrow`}),v.createElement(Vb,{...e,className:t,prefixCls:n,classNames:m,styles:h},c||v.createElement(xx,{prefixCls:n,title:d,content:f,classNames:m,styles:h})))},Cx=e=>{let{prefixCls:t,className:n,...r}=e,{getPrefixCls:i}=v.useContext(Je),a=i(`popover`,t),[o,s]=bx(a);return v.createElement(Sx,{...r,prefixCls:a,hashId:o,className:Y(n,s)})},wx=v.forwardRef((e,t)=>{let{prefixCls:n,title:r,content:i,overlayClassName:a,placement:o=`top`,trigger:s,children:c,mouseEnterDelay:l=.1,mouseLeaveDelay:u=.1,onOpenChange:d,overlayStyle:f={},styles:p,classNames:m,motion:h,arrow:g,..._}=e,{getPrefixCls:y,className:b,style:x,classNames:S,styles:C,arrow:w,trigger:E}=Ze(`popover`),D=y(`popover`,n),[O,k]=bx(D),A=y(),j=ax(g,w),M=s||E||`hover`,N={...e,placement:o,trigger:M,mouseEnterDelay:l,mouseLeaveDelay:u,overlayStyle:f,styles:p,classNames:m},[P,F]=Dc([S,m],[C,p],{props:N}),I=Y(a,O,k,b,P.root),[L,R]=T(e.defaultOpen??!1,e.open),z=e=>{R(e),d?.(e)},B=Bb(r),V=Bb(i);return v.createElement(gx,{unique:!1,arrow:j,placement:o,trigger:M,mouseEnterDelay:l,mouseLeaveDelay:u,..._,prefixCls:D,classNames:{root:I,container:P.container,arrow:P.arrow},styles:{root:{...F.root,...x,...f},container:F.container,arrow:F.arrow},ref:t,open:L,onOpenChange:z,overlay:B||V?v.createElement(xx,{prefixCls:D,title:B,content:V,classNames:P,styles:F}):null,motion:{motionName:bd(A,`zoom-big`,typeof h?.motionName==`string`?h?.motionName:void 0)},"data-popover-inject":!0},c)});wx._InternalPanelDoNotUseOrYouWillBeFired=Cx;var Tx={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M859.9 168H164.1c-4.5 0-8.1 3.6-8.1 8v60c0 4.4 3.6 8 8.1 8h695.8c4.5 0 8.1-3.6 8.1-8v-60c0-4.4-3.6-8-8.1-8zM518.3 355a8 8 0 00-12.6 0l-112 141.7a7.98 7.98 0 006.3 12.9h73.9V848c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V509.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 355z`}}]},name:`vertical-align-top`,theme:`outlined`};function Ex(){return Ex=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ex.apply(this,arguments)}var Dx=v.forwardRef((e,t)=>v.createElement(So,Ex({},e,{ref:t,icon:Tx}))),Ox={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 kx(){return kx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kx.apply(this,arguments)}var Ax=v.forwardRef((e,t)=>v.createElement(So,kx({},e,{ref:t,icon:Ox}))),{ESC:jx,TAB:Mx}=Z;function Nx({visible:e,triggerRef:t,onVisibleChange:n,autoFocus:r,overlayRef:i}){let a=v.useRef(!1),o=()=>{e&&(t.current?.focus?.(),n?.(!1))},s=()=>i.current?.focus?(i.current.focus(),a.current=!0,!0):!1,c=e=>{switch(e.keyCode){case jx:o();break;case Mx:{let t=!1;a.current||(t=s()),t?e.preventDefault():o();break}}};v.useEffect(()=>e?(window.addEventListener(`keydown`,c),r&&Ge(s,3),()=>{window.removeEventListener(`keydown`,c),a.current=!1}):()=>{a.current=!1},[e])}var Px=(0,v.forwardRef)((e,t)=>{let{overlay:n,arrow:r,prefixCls:i}=e,a=(0,v.useMemo)(()=>{let e;return e=typeof n==`function`?n():n,e},[n]),o=I(t,V(a));return v.createElement(v.Fragment,null,r&&v.createElement(`div`,{className:`${i}-arrow`}),v.cloneElement(a,{ref:R(a)?o:void 0}))}),Fx={adjustX:1,adjustY:1},Ix=[0,0],Lx={topLeft:{points:[`bl`,`tl`],overflow:Fx,offset:[0,-4],targetOffset:Ix},top:{points:[`bc`,`tc`],overflow:Fx,offset:[0,-4],targetOffset:Ix},topRight:{points:[`br`,`tr`],overflow:Fx,offset:[0,-4],targetOffset:Ix},bottomLeft:{points:[`tl`,`bl`],overflow:Fx,offset:[0,4],targetOffset:Ix},bottom:{points:[`tc`,`bc`],overflow:Fx,offset:[0,4],targetOffset:Ix},bottomRight:{points:[`tr`,`br`],overflow:Fx,offset:[0,4],targetOffset:Ix}};function Rx(){return Rx=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},Rx.apply(this,arguments)}var zx=v.forwardRef((e,t)=>{let{arrow:n=!1,prefixCls:r=`rc-dropdown`,transitionName:i,animation:a,align:o,placement:s=`bottomLeft`,placements:c=Lx,getPopupContainer:l,showAction:u,hideAction:d,overlayClassName:f,overlayStyle:p,visible:m,trigger:h=[`hover`],autoFocus:g,overlay:_,children:y,onVisibleChange:b,...x}=e,[S,C]=v.useState(),w=`visible`in e?m:S,T=a?`${r}-${a}`:i,E=v.useRef(null),D=v.useRef(null),O=v.useRef(null);v.useImperativeHandle(t,()=>E.current);let k=e=>{C(e),b?.(e)};Nx({visible:w,triggerRef:O,onVisibleChange:k,autoFocus:g,overlayRef:D});let A=t=>{let{onOverlayClick:n}=e;C(!1),n&&n(t)},j=()=>v.createElement(Px,{ref:D,overlay:_,prefixCls:r,arrow:n}),M=()=>typeof _==`function`?j:j(),N=()=>{let{minOverlayWidthMatchTrigger:t,alignPoint:n}=e;return`minOverlayWidthMatchTrigger`in e?t:!n},P=v.cloneElement(y,{className:Y(y.props?.className,w&&(()=>{let{openClassName:t}=e;return t===void 0?`${r}-open`:t})()),ref:R(y)?I(O,V(y)):void 0}),F=d;return!F&&h.indexOf(`contextMenu`)!==-1&&(F=[`click`]),v.createElement(ru,Rx({builtinPlacements:c},x,{prefixCls:r,ref:E,popupClassName:Y(f,{[`${r}-show-arrow`]:n}),popupStyle:p,action:h,showAction:u,hideAction:F,popupPlacement:s,popupAlign:o,popupMotion:{motionName:T},popupVisible:w,stretch:N()?`minWidth`:``,popup:M(),onOpenChange:k,onPopupClick:A,getPopupContainer:l}),P)}),Bx=v.createContext(null);function Vx(e,t){return`${e}-${t}`}function Hx(e){return Vx(v.useContext(Bx),e)}var Ux=v.createContext(null);function Wx(e,t){let n={...e};return Object.keys(t).forEach(e=>{let r=t[e];r!==void 0&&(n[e]=r)}),n}function Gx({children:e,locked:t,...n}){let r=v.useContext(Ux),i=O(()=>Wx(r,n),[r,n],(e,n)=>!t&&(e[0]!==n[0]||!pt(e[1],n[1],!0)));return v.createElement(Ux.Provider,{value:i},e)}var Kx=[],qx=v.createContext(null);function Jx(){return v.useContext(qx)}var Yx=v.createContext(Kx);function Xx(e){let t=v.useContext(Yx);return v.useMemo(()=>e===void 0?t:[...t,e],[t,e])}var Zx=v.createContext(null),Qx=v.createContext({}),{LEFT:$x,RIGHT:eS,UP:tS,DOWN:nS,ENTER:rS,ESC:iS,HOME:aS,END:oS}=Z,sS=[tS,nS,$x,eS];function cS(e,t,n,r){let i=`prev`,a=`next`,o=`children`,s=`parent`;if(e===`inline`&&r===rS)return{inlineTrigger:!0};let c={[tS]:i,[nS]:a},l={[$x]:n?a:i,[eS]:n?i:a,[nS]:o,[rS]:o},u={[tS]:i,[nS]:a,[rS]:o,[iS]:s,[$x]:n?o:s,[eS]:n?s:o};switch({inline:c,horizontal:l,vertical:u,inlineSub:c,horizontalSub:u,verticalSub:u}[`${e}${t?``:`Sub`}`]?.[r]){case i:return{offset:-1,sibling:!0};case a:return{offset:1,sibling:!0};case s:return{offset:-1,sibling:!1};case o:return{offset:1,sibling:!1};default:return null}}function lS(e){let t=e;for(;t;){if(t.getAttribute(`data-menu-list`))return t;t=t.parentElement}return null}function uS(e,t){let n=e||document.activeElement;for(;n;){if(t.has(n))return n;n=n.parentElement}return null}function dS(e,t){return Op(e,!0).filter(e=>t.has(e))}function fS(e,t,n,r=1){if(!e)return null;let i=dS(e,t),a=i.length,o=i.findIndex(e=>n===e);return r<0?o===-1?o=a-1:--o:r>0&&(o+=1),o=(o+a)%a,i[o]}var pS=(e,t)=>{let n=new Set,r=new Map,i=new Map;return e.forEach(e=>{let a=document.querySelector(`[data-menu-id='${Vx(t,e)}']`);a&&(n.add(a),i.set(a,e),r.set(e,a))}),{elements:n,key2element:r,element2key:i}};function mS(e,t,n,r,i,a,o,s,c,l){let u=v.useRef(),d=v.useRef();d.current=t;let f=()=>{Ge.cancel(u.current)};return v.useEffect(()=>()=>{f()},[]),p=>{let{which:m}=p;if([...sS,rS,iS,aS,oS].includes(m)){let l=a(),h=pS(l,r),{elements:g,key2element:_,element2key:v}=h,y=uS(_.get(t),g),b=v.get(y),x=cS(e,o(b,!0).length===1,n,m);if(!x&&m!==aS&&m!==oS)return;(sS.includes(m)||[aS,oS].includes(m))&&p.preventDefault();let S=e=>{if(e){let t=e,n=e.querySelector(`a`);n?.getAttribute(`href`)&&(t=n);let r=v.get(e);s(r),f(),u.current=Ge(()=>{d.current===r&&t.focus()})}};if([aS,oS].includes(m)||x.sibling||!y){let t;t=!y||e===`inline`?i.current:lS(y);let n,r=dS(t,g);n=m===aS?r[0]:m===oS?r[r.length-1]:fS(t,g,y,x.offset),S(n)}else if(x.inlineTrigger)c(b);else if(x.offset>0)c(b,!0),f(),u.current=Ge(()=>{h=pS(l,r);let e=y.getAttribute(`aria-controls`);S(fS(document.getElementById(e),h.elements))},5);else if(x.offset<0){let e=o(b,!0),t=e[e.length-2],n=_.get(t);c(t,!1),S(n)}}l?.(p)}}function hS(e){Promise.resolve().then(e)}var gS=`__RC_UTIL_PATH_SPLIT__`,_S=e=>e.join(gS),vS=e=>e.split(gS),yS=`rc-menu-more`;function bS(){let[,e]=v.useState({}),t=(0,v.useRef)(new Map),n=(0,v.useRef)(new Map),[r,i]=v.useState([]),a=(0,v.useRef)(0),o=(0,v.useRef)(!1),s=()=>{o.current||e({})},c=(0,v.useCallback)((e,r)=>{let i=_S(r);n.current.set(i,e),t.current.set(e,i),a.current+=1;let o=a.current;hS(()=>{o===a.current&&s()})},[]),l=(0,v.useCallback)((e,r)=>{let i=_S(r);n.current.delete(i),t.current.delete(e)},[]),u=(0,v.useCallback)(e=>{i(e)},[]),d=(0,v.useCallback)((e,n)=>{let i=vS(t.current.get(e)||``);return n&&r.includes(i[0])&&i.unshift(yS),i},[r]),f=(0,v.useCallback)((e,t)=>e.filter(e=>e!==void 0).some(e=>d(e,!0).includes(t)),[d]),p=()=>{let e=[...t.current.keys()];return r.length&&e.push(yS),e},m=(0,v.useCallback)(e=>{let r=`${t.current.get(e)}${gS}`,i=new Set;return[...n.current.keys()].forEach(e=>{e.startsWith(r)&&i.add(n.current.get(e))}),i},[]);return v.useEffect(()=>()=>{o.current=!0},[]),{registerPath:c,unregisterPath:l,refreshOverflowKeys:u,isSubPathKey:f,getKeyPath:d,getKeys:p,getSubPathKeys:m}}function xS(e){let t=v.useRef(e);t.current=e;let n=v.useCallback((...e)=>t.current?.(...e),[]);return e?n:void 0}function SS(e,t,n,r){let{activeKey:i,onActive:a,onInactive:o}=v.useContext(Ux),s={active:i===e};return t||(s.onMouseEnter=t=>{n?.({key:e,domEvent:t}),a(e)},s.onMouseLeave=t=>{r?.({key:e,domEvent:t}),o(e)}),s}function CS(e){let{mode:t,rtl:n,inlineIndent:r}=v.useContext(Ux);if(t!==`inline`)return null;let i=e;return n?{paddingRight:i*r}:{paddingLeft:i*r}}function wS({icon:e,props:t,children:n}){let r;return e===null||e===!1?null:(typeof e==`function`?r=v.createElement(e,{...t}):typeof e!=`boolean`&&(r=e),r||n||null)}function TS({item:e,...t}){return Object.defineProperty(t,`item`,{get:()=>(ce(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),e)}),t}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)}var DS=class extends v.Component{render(){let{title:e,attribute:t,elementRef:n,...r}=this.props,i=ue(r,[`eventKey`,`popupClassName`,`popupOffset`,`onTitleClick`]);return ce(!t,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),v.createElement(Vv.Item,ES({},t,{title:typeof e==`string`?e:void 0},i,{ref:n}))}},OS=v.forwardRef((e,t)=>{let{style:n,className:r,eventKey:i,warnKey:a,disabled:o,itemIcon:s,children:c,role:l,onMouseEnter:u,onMouseLeave:d,onClick:f,onKeyDown:p,onFocus:m,...h}=e,g=Hx(i),{prefixCls:_,onItemClick:y,disabled:b,overflowDisabled:x,itemIcon:S,selectedKeys:C,onActive:w}=v.useContext(Ux),{_internalRenderMenuItem:T}=v.useContext(Qx),E=`${_}-item`,D=v.useRef(),O=v.useRef(),k=b||o,A=L(t,O),j=Xx(i),M=e=>({key:i,keyPath:[...j].reverse(),item:D.current,domEvent:e}),N=s||S,{active:P,...F}=SS(i,k,u,d),I=C.includes(i),R=CS(j.length),z=e=>{if(k)return;let t=M(e);f?.(TS(t)),y(t)},B=e=>{if(p?.(e),e.which===Z.ENTER){let t=M(e);f?.(TS(t)),y(t)}},V=e=>{w(i),m?.(e)},H={};e.role===`option`&&(H[`aria-selected`]=I);let U=v.createElement(DS,ES({ref:D,elementRef:A,role:l===null?`none`:l||`menuitem`,tabIndex:o?null:-1,"data-menu-id":x&&g?null:g},ue(h,[`extra`]),F,H,{component:`li`,"aria-disabled":o,style:{...R,...n},className:Y(E,{[`${E}-active`]:P,[`${E}-selected`]:I,[`${E}-disabled`]:k},r),onClick:z,onKeyDown:B,onFocus:V}),c,v.createElement(wS,{props:{...e,isSelected:I},icon:N}));return T&&(U=T(U,e,{selected:I})),U});function kS(e,t){let{eventKey:n}=e,r=Jx(),i=Xx(n);return v.useEffect(()=>{if(r)return r.registerPath(n,i),()=>{r.unregisterPath(n,i)}},[i]),r?null:v.createElement(OS,ES({},e,{ref:t}))}var AS=v.forwardRef(kS);function jS(){return jS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jS.apply(this,arguments)}var MS=v.forwardRef(({className:e,children:t,...n},r)=>{let{prefixCls:i,mode:a,rtl:o}=v.useContext(Ux);return v.createElement(`ul`,jS({className:Y(i,o&&`${i}-rtl`,`${i}-sub`,`${i}-${a===`inline`?`inline`:`vertical`}`,e),role:`menu`},n,{"data-menu-list":!0,ref:r}),t)});function NS(e,t){return de(e).map((e,n)=>{if(v.isValidElement(e)){let{key:r}=e,i=e.props?.eventKey??r;i??=`tmp_key-${[...t,n].join(`-`)}`;let a={key:i,eventKey:i};return v.cloneElement(e,a)}return e})}var PS={adjustX:1,adjustY:1},FS={topLeft:{points:[`bl`,`tl`],overflow:PS},topRight:{points:[`br`,`tr`],overflow:PS},bottomLeft:{points:[`tl`,`bl`],overflow:PS},bottomRight:{points:[`tr`,`br`],overflow:PS},leftTop:{points:[`tr`,`tl`],overflow:PS},leftBottom:{points:[`br`,`bl`],overflow:PS},rightTop:{points:[`tl`,`tr`],overflow:PS},rightBottom:{points:[`bl`,`br`],overflow:PS}},IS={topLeft:{points:[`bl`,`tl`],overflow:PS},topRight:{points:[`br`,`tr`],overflow:PS},bottomLeft:{points:[`tl`,`bl`],overflow:PS},bottomRight:{points:[`tr`,`br`],overflow:PS},rightTop:{points:[`tr`,`tl`],overflow:PS},rightBottom:{points:[`br`,`bl`],overflow:PS},leftTop:{points:[`tl`,`tr`],overflow:PS},leftBottom:{points:[`bl`,`br`],overflow:PS}};function LS(e,t,n){if(t)return t;if(n)return n[e]||n.other}var RS={horizontal:`bottomLeft`,vertical:`rightTop`,"vertical-left":`rightTop`,"vertical-right":`leftTop`};function zS({prefixCls:e,visible:t,children:n,popup:r,popupStyle:i,popupClassName:a,popupOffset:o,disabled:s,mode:c,onVisibleChange:l}){let{getPopupContainer:u,rtl:d,subMenuOpenDelay:f,subMenuCloseDelay:p,builtinPlacements:m,triggerSubMenuAction:h,forceSubMenuRender:g,rootClassName:_,motion:y,defaultMotions:b}=v.useContext(Ux),[x,S]=v.useState(!1),C=d?{...IS,...m}:{...FS,...m},w=RS[c],T=LS(c,y,b),E=v.useRef(T);c!==`inline`&&(E.current=T);let D={...E.current,leavedClassName:`${e}-hidden`,removeOnLeave:!1,motionAppear:!0},O=v.useRef();return v.useEffect(()=>(O.current=Ge(()=>{S(t)}),()=>{Ge.cancel(O.current)}),[t]),v.createElement(ru,{prefixCls:e,popupClassName:Y(`${e}-popup`,{[`${e}-rtl`]:d},a,_),stretch:c===`horizontal`?`minWidth`:null,getPopupContainer:u,builtinPlacements:C,popupPlacement:w,popupVisible:x,popup:r,popupStyle:i,popupAlign:o&&{offset:o},action:s?[]:[h],mouseEnterDelay:f,mouseLeaveDelay:p,onPopupVisibleChange:l,forceRender:g,popupMotion:D,fresh:!0},n)}function BS(){return BS=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},BS.apply(this,arguments)}function VS({id:e,open:t,keyPath:n,children:r}){let i=`inline`,{prefixCls:a,forceSubMenuRender:o,motion:s,defaultMotions:c,mode:l}=v.useContext(Ux),u=v.useRef(!1);u.current=l===i;let[d,f]=v.useState(!u.current),p=u.current?t:!1;v.useEffect(()=>{u.current&&f(!1)},[l]);let m={...LS(i,s,c)};n.length>1&&(m.motionAppear=!1);let h=m.onVisibleChanged;return m.onVisibleChanged=e=>(!u.current&&!e&&f(!0),h?.(e)),d?null:v.createElement(Gx,{mode:i,locked:!u.current},v.createElement(Os,BS({visible:p},m,{forceRender:o,removeOnLeave:!1,leavedClassName:`${a}-hidden`}),({className:t,style:n})=>v.createElement(MS,{id:e,className:t,style:n},r)))}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)}var US=v.forwardRef((e,t)=>{let{style:n,className:r,styles:i,classNames:a,title:o,eventKey:s,warnKey:c,disabled:l,internalPopupClose:u,children:d,itemIcon:f,expandIcon:p,popupClassName:m,popupOffset:h,popupStyle:g,onClick:_,onMouseEnter:y,onMouseLeave:b,onTitleClick:x,onTitleMouseEnter:S,onTitleMouseLeave:C,popupRender:w,...T}=e,E=Hx(s),{prefixCls:D,mode:O,openKeys:k,disabled:A,overflowDisabled:j,activeKey:M,selectedKeys:N,itemIcon:P,expandIcon:F,onItemClick:I,onOpenChange:L,onActive:R,popupRender:z}=v.useContext(Ux),{_internalRenderSubMenuItem:B}=v.useContext(Qx),{isSubPathKey:V}=v.useContext(Zx),H=Xx(),U=`${D}-submenu`,W=A||l,ee=v.useRef(),te=v.useRef(),G=f??P,ne=p??F,re=k.includes(s),ie=!j&&re,K=V(N,s),{active:q,...ae}=SS(s,W,S,C),[oe,se]=v.useState(!1),J=e=>{W||se(e)},ce=e=>{J(!0),y?.({key:s,domEvent:e})},le=e=>{J(!1),b?.({key:s,domEvent:e})},ue=v.useMemo(()=>q||(O===`inline`?!1:oe||V([M],s)),[O,q,M,oe,s,V]),de=CS(H.length),fe=e=>{W||(x?.({key:s,domEvent:e}),O===`inline`&&L(s,!re))},pe=xS(e=>{_?.(TS(e)),I(e)}),me=e=>{O!==`inline`&&L(s,e)},he=()=>{R(s)},ge=E&&`${E}-popup`,_e=v.useMemo(()=>v.createElement(wS,{icon:O===`horizontal`?void 0:ne,props:{...e,isOpen:ie,isSubMenu:!0}},v.createElement(`i`,{className:`${U}-arrow`})),[O,ne,e,ie,U]),ve=v.createElement(`div`,HS({role:`menuitem`,style:de,className:`${U}-title`,tabIndex:W?null:-1,ref:ee,title:typeof o==`string`?o:null,"data-menu-id":j&&E?null:E,"aria-expanded":ie,"aria-haspopup":!0,"aria-controls":ge,"aria-disabled":W,onClick:fe,onFocus:he},ae),o,_e),ye=v.useRef(O);O!==`inline`&&H.length>1?ye.current=`vertical`:ye.current=O;let be=ye.current,xe=v.useMemo(()=>{let t=v.createElement(Gx,{classNames:a,styles:i,mode:be===`horizontal`?`vertical`:be},v.createElement(MS,{id:ge,ref:te},d)),n=w||z;return n?n(t,{item:e,keys:H}):t},[w,z,H,ge,d,e,be]);if(!j){let e=ye.current;ve=v.createElement(zS,{mode:e,prefixCls:U,visible:!u&&ie&&O!==`inline`,popupClassName:m,popupOffset:h,popupStyle:g,popup:xe,disabled:W,onVisibleChange:me},ve)}let Se=v.createElement(Vv.Item,HS({ref:t,role:`none`},T,{component:`li`,style:n,className:Y(U,`${U}-${O}`,r,{[`${U}-open`]:ie,[`${U}-active`]:ue,[`${U}-selected`]:K,[`${U}-disabled`]:W}),onMouseEnter:ce,onMouseLeave:le}),ve,!j&&v.createElement(VS,{id:ge,open:ie,keyPath:H},d));return B&&(Se=B(Se,e,{selected:K,active:ue,open:ie,disabled:W})),v.createElement(Gx,{classNames:a,styles:i,onItemClick:pe,mode:O===`horizontal`?`vertical`:O,itemIcon:G,expandIcon:ne},Se)}),WS=v.forwardRef((e,t)=>{let{eventKey:n,children:r}=e,i=Xx(n),a=NS(r,i),o=Jx();v.useEffect(()=>{if(o)return o.registerPath(n,i),()=>{o.unregisterPath(n,i)}},[i]);let s;return s=o?a:v.createElement(US,HS({ref:t},e),a),v.createElement(Yx.Provider,{value:i},s)});function GS({className:e,style:t}){let{prefixCls:n}=v.useContext(Ux);return Jx()?null:v.createElement(`li`,{role:`separator`,className:Y(`${n}-item-divider`,e),style:t})}function KS(){return KS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},KS.apply(this,arguments)}var qS=v.forwardRef((e,t)=>{let{className:n,title:r,eventKey:i,children:a,...o}=e,{prefixCls:s,classNames:c,styles:l}=v.useContext(Ux),u=`${s}-item-group`;return v.createElement(`li`,KS({ref:t,role:`presentation`},o,{onClick:e=>e.stopPropagation(),className:Y(u,n)}),v.createElement(`div`,{role:`presentation`,className:Y(`${u}-title`,c?.listTitle),style:l?.listTitle,title:typeof r==`string`?r:void 0},r),v.createElement(`ul`,{role:`group`,className:Y(`${u}-list`,c?.list),style:l?.list},a))}),JS=v.forwardRef((e,t)=>{let{eventKey:n,children:r}=e,i=NS(r,Xx(n));return Jx()?i:v.createElement(qS,KS({ref:t},ue(e,[`warnKey`])),i)});function YS(){return YS=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},YS.apply(this,arguments)}function XS(e,t,n){let{item:r,group:i,submenu:a,divider:o}=t;return(e||[]).map((e,s)=>{if(e&&typeof e==`object`){let{label:c,children:l,key:u,type:d,extra:f,...p}=e,m=u??`tmp-${s}`;return l||d===`group`?d===`group`?v.createElement(i,YS({key:m},p,{title:c}),XS(l,t,n)):v.createElement(a,YS({key:m},p,{title:c}),XS(l,t,n)):d===`divider`?v.createElement(o,YS({key:m},p)):v.createElement(r,YS({key:m},p,{extra:f}),c,(!!f||f===0)&&v.createElement(`span`,{className:`${n}-item-extra`},f))}return null}).filter(e=>e)}function ZS(e,t,n,r,i){let a=e,o={divider:GS,item:AS,group:JS,submenu:WS,...r};return t&&(a=XS(t,o,i)),NS(a,n)}function QS(){return QS=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},QS.apply(this,arguments)}var $S=[],eC=v.forwardRef((e,t)=>{let{prefixCls:n=`rc-menu`,rootClassName:r,style:i,className:a,styles:o,classNames:s,tabIndex:c=0,items:l,children:u,direction:d,id:f,mode:p=`vertical`,inlineCollapsed:m,disabled:h,disabledOverflow:g,subMenuOpenDelay:_=.1,subMenuCloseDelay:y=.1,forceSubMenuRender:b,defaultOpenKeys:x,openKeys:S,activeKey:C,defaultActiveFirst:w,selectable:E=!0,multiple:D=!1,defaultSelectedKeys:O,selectedKeys:k,onSelect:A,onDeselect:j,inlineIndent:M=24,motion:N,defaultMotions:P,triggerSubMenuAction:F=`hover`,builtinPlacements:I,itemIcon:L,expandIcon:R,overflowedIndicator:z=`...`,overflowedIndicatorPopupClassName:B,getPopupContainer:V,onClick:H,onOpenChange:U,onKeyDown:W,openAnimation:ee,openTransitionName:te,_internalRenderMenuItem:G,_internalRenderSubMenuItem:ne,_internalComponents:re,popupRender:ie,...K}=e,[q,ae]=v.useMemo(()=>[ZS(u,l,$S,re,n),ZS(u,l,$S,{},n)],[u,l,re]),[oe,se]=v.useState(!1),J=v.useRef(),ce=dl(f?`rc-menu-uuid-${f}`:`rc-menu-uuid`),le=d===`rtl`,[ue,de]=T(x,S),fe=ue||$S,pe=(e,t=!1)=>{function n(){de(e),U?.(e)}t?(0,bl.flushSync)(n):n()},[me,he]=v.useState(fe),ge=v.useRef(!1),[_e,ve]=v.useMemo(()=>(p===`inline`||p===`vertical`)&&m?[`vertical`,m]:[p,!1],[p,m]),ye=_e===`inline`,[be,xe]=v.useState(_e),[Se,Ce]=v.useState(ve);v.useEffect(()=>{xe(_e),Ce(ve),ge.current&&(ye?de(me):pe($S))},[_e,ve]);let[we,Te]=v.useState(0),Ee=we>=q.length-1||be!==`horizontal`||g;v.useEffect(()=>{ye&&he(fe)},[fe]),v.useEffect(()=>(ge.current=!0,()=>{ge.current=!1}),[]);let{registerPath:De,unregisterPath:Oe,refreshOverflowKeys:ke,isSubPathKey:Ae,getKeyPath:je,getKeys:Me,getSubPathKeys:Ne}=bS(),Pe=v.useMemo(()=>({registerPath:De,unregisterPath:Oe}),[De,Oe]),Fe=v.useMemo(()=>({isSubPathKey:Ae}),[Ae]);v.useEffect(()=>{ke(Ee?$S:q.slice(we+1).map(e=>e.key))},[we,Ee]);let[Ie,Le]=T(C||w&&q[0]?.key,C),Re=xS(e=>{Le(e)}),ze=xS(()=>{Le(void 0)});(0,v.useImperativeHandle)(t,()=>({list:J.current,focus:e=>{let t=Me(),{elements:n,key2element:r,element2key:i}=pS(t,ce),a=dS(J.current,n),o;o=Ie&&t.includes(Ie)?Ie:a[0]?i.get(a[0]):q.find(e=>!e.props.disabled)?.key;let s=r.get(o);o&&s&&s?.focus?.(e)},findItem:({key:e})=>{let{key2element:t}=pS(Me(),ce);return t.get(e)||null}}));let[Be,Ve]=T(O||[],k),He=v.useMemo(()=>Array.isArray(Be)?Be:Be==null?$S:[Be],[Be]),Ue=e=>{if(E){let{key:t}=e,n=He.includes(t),r;r=D?n?He.filter(e=>e!==t):[...He,t]:[t],Ve(r);let i={...e,selectedKeys:r};n?j?.(i):A?.(i)}!D&&fe.length&&be!==`inline`&&pe($S)},We=xS(e=>{H?.(TS(e)),Ue(e)}),Ge=xS((e,t)=>{let n=fe.filter(t=>t!==e);if(t)n.push(e);else if(be!==`inline`){let t=Ne(e);n=n.filter(e=>!t.has(e))}pt(fe,n,!0)||pe(n,!0)}),Ke=mS(be,Ie,le,ce,J,Me,je,Le,(e,t)=>{Ge(e,t??!fe.includes(e))},W);v.useEffect(()=>{se(!0)},[]);let qe=v.useMemo(()=>({_internalRenderMenuItem:G,_internalRenderSubMenuItem:ne}),[G,ne]),Je=be!==`horizontal`||g?q:q.map((e,t)=>v.createElement(Gx,{key:e.key,overflowDisabled:t>we,classNames:s,styles:o},e)),Ye=v.createElement(Vv,QS({id:f,ref:J,prefixCls:`${n}-overflow`,component:`ul`,itemComponent:AS,className:Y(n,`${n}-root`,`${n}-${be}`,a,{[`${n}-inline-collapsed`]:Se,[`${n}-rtl`]:le},r),dir:d,style:i,role:`menu`,tabIndex:c,data:Je,renderRawItem:e=>e,renderRawRest:e=>{let t=e.length,n=t?q.slice(-t):null;return v.createElement(WS,{eventKey:yS,title:z,disabled:Ee,internalPopupClose:t===0,popupClassName:B},n)},maxCount:be!==`horizontal`||g?Vv.INVALIDATE:Vv.RESPONSIVE,ssr:`full`,"data-menu-list":!0,onVisibleChange:e=>{Te(e)},onKeyDown:Ke},K));return v.createElement(Qx.Provider,{value:qe},v.createElement(Bx.Provider,{value:ce},v.createElement(Gx,{prefixCls:n,rootClassName:r,classNames:s,styles:o,mode:be,openKeys:fe,rtl:le,disabled:h,motion:oe?N:null,defaultMotions:oe?P:null,activeKey:Ie,onActive:Re,onInactive:ze,selectedKeys:He,inlineIndent:M,subMenuOpenDelay:_,subMenuCloseDelay:y,forceSubMenuRender:b,builtinPlacements:I,triggerSubMenuAction:F,getPopupContainer:V,itemIcon:L,expandIcon:R,onItemClick:We,onOpenChange:Ge,popupRender:ie},v.createElement(Zx.Provider,{value:Fe},Ye),v.createElement(`div`,{style:{display:`none`},"aria-hidden":!0},v.createElement(qx.Provider,{value:Pe},ae)))))});eC.Item=AS,eC.SubMenu=WS,eC.ItemGroup=JS,eC.Divider=GS;var tC={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 nC(){return nC=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},nC.apply(this,arguments)}var rC=v.forwardRef((e,t)=>v.createElement(So,nC({},e,{ref:t,icon:tC}))),iC=v.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}}),aC=e=>{let{antCls:t,componentCls:n,colorText:r,footerBg:i,headerHeight:a,headerPadding:o,headerColor:s,footerPadding:c,fontSize:l,bodyBg:u,headerBg:d}=e;return{[n]:{display:`flex`,flex:`auto`,flexDirection:`column`,minHeight:0,background:u,"&, *":{boxSizing:`border-box`},[`&${n}-has-sider`]:{flexDirection:`row`,[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:`0 0 auto`},"&-rtl":{direction:`rtl`}},[`${n}-header`]:{height:a,padding:o,color:s,lineHeight:X(a),background:d,[`${t}-menu`]:{lineHeight:`inherit`}},[`${n}-footer`]:{padding:c,color:r,fontSize:l,background:i},[`${n}-content`]:{flex:`auto`,color:r,minHeight:0}}},oC=e=>{let{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:i,controlHeightSM:a,marginXXS:o,colorTextLightSolid:s,colorBgContainer:c}=e,l=r*1.25;return{colorBgHeader:`#001529`,colorBgBody:t,colorBgTrigger:`#002140`,bodyBg:t,headerBg:`#001529`,headerHeight:n*2,headerPadding:`0 ${l}px`,headerColor:i,footerPadding:`${a}px ${l}px`,footerBg:t,siderBg:`#001529`,triggerHeight:r+o*2,triggerBg:`#002140`,triggerColor:s,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:c,lightTriggerBg:c,lightTriggerColor:i}},sC=[[`colorBgBody`,`bodyBg`],[`colorBgHeader`,`headerBg`],[`colorBgTrigger`,`triggerBg`]],cC=Ja(`Layout`,aC,oC,{deprecatedTokens:sC}),lC=Ja([`Layout`,`Sider`],e=>{let{componentCls:t,siderBg:n,motionDurationMid:r,motionDurationSlow:i,antCls:a,triggerHeight:o,triggerColor:s,triggerBg:c,headerHeight:l,zeroTriggerWidth:u,zeroTriggerHeight:d,borderRadiusLG:f,lightSiderBg:p,lightTriggerColor:m,lightTriggerBg:h,bodyBg:g}=e;return{[t]:{position:`relative`,minWidth:0,background:n,transition:`all ${r}, background 0s`,"&-has-trigger":{paddingBottom:o},"&-right":{order:1},[`${t}-children`]:{height:`100%`,marginTop:-.1,paddingTop:.1,[`${a}-menu${a}-menu-inline-collapsed`]:{width:`auto`}},[`&-zero-width ${t}-children`]:{overflow:`hidden`},[`${t}-trigger`]:{position:`fixed`,bottom:0,zIndex:1,height:o,color:s,lineHeight:X(o),textAlign:`center`,background:c,cursor:`pointer`,transition:`all ${r}`},[`${t}-zero-width-trigger`]:{position:`absolute`,top:l,insetInlineEnd:e.calc(u).mul(-1).equal(),zIndex:1,width:u,height:d,color:s,fontSize:e.fontSizeXL,display:`flex`,alignItems:`center`,justifyContent:`center`,background:n,borderRadius:`0 ${X(f)} ${X(f)} 0`,cursor:`pointer`,transition:`background-color ${i} ease`,"&::after":{position:`absolute`,inset:0,background:`transparent`,transition:`all ${i}`,content:`""`},"&:hover::after":{background:`rgba(255, 255, 255, 0.2)`},"&-right":{insetInlineStart:e.calc(u).mul(-1).equal(),borderRadius:`${X(f)} 0 0 ${X(f)}`}},"&-light":{background:p,[`${t}-trigger`]:{color:m,background:h},[`${t}-zero-width-trigger`]:{color:m,background:h,border:`1px solid ${g}`,borderInlineStart:0}}}}},oC,{deprecatedTokens:sC}),uC={xs:`479.98px`,sm:`575.98px`,md:`767.98px`,lg:`991.98px`,xl:`1199.98px`,xxl:`1599.98px`,xxxl:`1839.98px`},dC=e=>!Number.isNaN(Number.parseFloat(e))&&Number.isFinite(Number(e)),fC=v.createContext({}),pC=(()=>{let e=0;return(t=``)=>(e+=1,`${t}${e}`)})(),mC=v.forwardRef((e,t)=>{let{prefixCls:n,className:r,trigger:i,children:a,defaultCollapsed:o=!1,theme:s=`dark`,style:c={},collapsible:l=!1,reverseArrow:u=!1,width:d=200,collapsedWidth:f=80,zeroWidthTriggerStyle:p,breakpoint:m,onCollapse:h,onBreakpoint:g,..._}=e,{siderHook:y}=(0,v.useContext)(iC),[b,x]=(0,v.useState)(`collapsed`in e?e.collapsed:o),[S,C]=(0,v.useState)(!1);(0,v.useEffect)(()=>{`collapsed`in e&&x(e.collapsed)},[e.collapsed]);let w=(t,n)=>{`collapsed`in e||x(t),h?.(t,n)},{getPrefixCls:T,direction:E}=(0,v.useContext)(Je),D=T(`layout-sider`,n),[O,k]=lC(D),A=(0,v.useRef)(null);A.current=e=>{C(e.matches),g?.(e.matches),b!==e.matches&&w(e.matches,`responsive`)},(0,v.useEffect)(()=>{function e(e){return A.current?.(e)}let t;return window?.matchMedia!==void 0&&m&&m in uC&&(t=window.matchMedia(`screen and (max-width: ${uC[m]})`),typeof t?.addEventListener==`function`&&t.addEventListener(`change`,e),e(t)),()=>{typeof t?.removeEventListener==`function`&&t.removeEventListener(`change`,e)}},[m]),(0,v.useEffect)(()=>{let e=pC(`ant-sider-`);return y.addSider(e),()=>y.removeSider(e)},[]);let j=()=>{w(!b,`clickTrigger`)},M=ue(_,[`collapsed`]),N=b?f:d,P=dC(N)?`${N}px`:String(N),F=Number.parseFloat(String(f||0))===0?v.createElement(`span`,{onClick:j,className:Y(`${D}-zero-width-trigger`,`${D}-zero-width-trigger-${u?`right`:`left`}`),style:p},i||v.createElement(rC,null)):null,I=E===`rtl`==!u,L={expanded:I?v.createElement(Kf,null):v.createElement(Ax,null),collapsed:I?v.createElement(Ax,null):v.createElement(Kf,null)}[b?`collapsed`:`expanded`],R=i===null?null:F||v.createElement(`div`,{className:`${D}-trigger`,onClick:j,style:{width:P}},i||L),z={...c,flex:`0 0 ${P}`,maxWidth:P,minWidth:P,width:P},B=Y(D,`${D}-${s}`,{[`${D}-collapsed`]:!!b,[`${D}-has-trigger`]:l&&i!==null&&!F,[`${D}-below`]:!!S,[`${D}-zero-width`]:Number.parseFloat(P)===0},r,O,k),V=v.useMemo(()=>({siderCollapsed:b}),[b]);return v.createElement(fC.Provider,{value:V},v.createElement(`aside`,{className:B,...M,style:z,ref:t},v.createElement(`div`,{className:`${D}-children`},a),l||S&&F?R:null))}),hC={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 gC(){return gC=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},gC.apply(this,arguments)}var _C=v.forwardRef((e,t)=>v.createElement(So,gC({},e,{ref:t,icon:hC}))),vC=(0,v.createContext)({prefixCls:``,firstLevel:!0,inlineCollapsed:!1,styles:null,classNames:null}),yC=e=>{let{prefixCls:t,className:n,dashed:r,...i}=e,{getPrefixCls:a}=v.useContext(Je),o=Y({[`${a(`menu`,t)}-item-divider-dashed`]:!!r},n);return v.createElement(GS,{className:o,...i})},bC=e=>{let{className:t,children:n,icon:r,title:i,danger:a,extra:o}=e,{prefixCls:s,firstLevel:c,direction:l,disableMenuItemTitleTooltip:u,tooltip:d,inlineCollapsed:f,styles:p,classNames:m}=v.useContext(vC),h=e=>{let t=n?.[0],i=v.createElement(`span`,{className:Y(`${s}-title-content`,c?m?.itemContent:m?.subMenu?.itemContent,{[`${s}-title-content-with-extra`]:!!o||o===0}),style:c?p?.itemContent:p?.subMenu?.itemContent},n);return(!r||v.isValidElement(n)&&n.type===`span`)&&n&&e&&c&&typeof t==`string`?v.createElement(`div`,{className:`${s}-inline-collapsed-noicon`},t.charAt(0)):i},{siderCollapsed:g}=v.useContext(fC),_=i;i===void 0?_=c?n:``:i===!1&&(_=``);let y=d===!1?void 0:d,b=y&&y.title!==void 0?y.title:_,x={...y??null,title:b};!g&&!f&&(x.title=null,x.open=!1);let S=de(n).length,C=v.createElement(AS,{...ue(e,[`title`,`icon`,`danger`]),className:Y(c?m?.item:m?.subMenu?.item,{[`${s}-item-danger`]:a,[`${s}-item-only-child`]:(r?S+1:S)===1},t),style:{...c?p?.item:p?.subMenu?.item,...e.style},title:typeof i==`string`?i:void 0},ou(r,e=>({className:Y(`${s}-item-icon`,c?m?.itemIcon:m?.subMenu?.itemIcon,e.className),style:{...c?p?.itemIcon:p?.subMenu?.itemIcon,...e.style}})),h(f));if(!u&&d!==!1){let e=y&&y.placement?y.placement:l===`rtl`?`left`:`right`,t=`${s}-inline-collapsed-tooltip`,n=e=>({...e,root:Y(t,e?.root)}),r=y&&typeof y.classNames==`function`?e=>n(y.classNames(e)):n(y?.classNames);C=v.createElement(gx,{...x,placement:e,classNames:r},C)}return C},xC=v.createContext(null),SC=v.forwardRef((e,t)=>{let{children:n,...r}=e,i=v.useContext(xC),a=v.useMemo(()=>({...i,...r}),[i,r.prefixCls,r.mode,r.selectable,r.rootClassName]),o=B(n),s=L(t,o?V(n):null);return v.createElement(xC.Provider,{value:a},v.createElement(Vh,{space:!0},o?v.cloneElement(n,{ref:s}):n))}),CC=e=>{let{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:i,lineWidth:a,lineType:o,itemPaddingInline:s}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${X(a)} ${o} ${i}`,boxShadow:`none`,"&::after":{display:`block`,clear:`both`,height:0,content:`"\\20"`},[`${t}-item, ${t}-submenu`]:{position:`relative`,display:`inline-block`,verticalAlign:`bottom`,paddingInline:s},[`> ${t}-item:hover,
175
+ `]:{animationName:hf},"&-hidden":{display:`none`},[r]:{...cb(e),cursor:`pointer`,transition:`background-color ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:`default`},"&-option":{display:`flex`,"&-content":{flex:`auto`,...Ra},"&-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":{...cb(e),color:e.colorTextDisabled}},[`${c}:has(+ ${c})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${c}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:`rtl`}}},xf(e,`slide-up`),xf(e,`slide-down`),df(e,`move-up`),df(e,`move-down`)]},ub=e=>{let{componentCls:t}=e;return{[`&${t}-customize`]:{border:0,padding:0,fontSize:`inherit`,lineHeight:`inherit`,[`${t}-placeholder`]:{display:`none`},[`${t}-content`]:{margin:0,padding:0,"&-value":{display:`none`}}}}},db=4,fb=e=>{let{componentCls:t,calc:n,iconCls:r,paddingXS:i,paddingXXS:a,INTERNAL_FIXED_ITEM_MARGIN:o,lineWidth:s,colorIcon:c,colorIconHover:l,inputPaddingHorizontalBase:u,antCls:d}=e,[f,p]=Za(d,`select`);return{"&-multiple":{[f(`multi-item-background`)]:e.multipleItemBg,[f(`multi-item-border-color`)]:`transparent`,[f(`multi-item-border-radius`)]:e.borderRadiusSM,[f(`multi-item-height`)]:e.multipleItemHeight,[f(`multi-padding-base`)]:`calc((${p(`height`)} - ${p(`multi-item-height`)}) / 2)`,[f(`multi-padding-vertical`)]:`calc(${p(`multi-padding-base`)} - ${o} - ${s})`,[f(`multi-item-padding-horizontal`)]:`calc(${u} - ${p(`multi-padding-vertical`)} - ${s} * 2)`,paddingBlock:p(`multi-padding-vertical`),paddingInlineStart:`calc(${p(`multi-padding-base`)} - ${s})`,[`${t}-prefix`]:{marginInlineStart:p(`multi-item-padding-horizontal`)},[`${t}-prefix + ${t}-content`]:{[`${t}-placeholder`]:{insetInlineStart:0},[`${t}-content-item${t}-content-item-suffix`]:{marginInlineStart:0}},[`${t}-placeholder`]:{position:`absolute`,lineHeight:p(`line-height`),insetInlineStart:p(`multi-item-padding-horizontal`),width:`calc(100% - ${p(`multi-item-padding-horizontal`)})`,top:`50%`,transform:`translateY(-50%)`},[`${t}-content`]:{flexWrap:`wrap`,alignItems:`center`,lineHeight:1,"&-item-prefix":{height:p(`font-size`)},"&-item":{lineHeight:1,maxWidth:`calc(100% - ${db}px)`},[`${t}-content-item-prefix + ${t}-content-item-suffix,
176
+ ${t}-content-item-suffix:first-child`]:{marginInlineStart:p(`multi-item-padding-horizontal`)},[`${t}-selection-item`]:{lineHeight:`calc(${p(`multi-item-height`)} - ${s} * 2)`,border:`${s} solid ${p(`multi-item-border-color`)}`,display:`flex`,marginBlock:o,marginInlineEnd:n(o).mul(2).equal(),background:p(`multi-item-background`),borderRadius:p(`multi-item-border-radius`),paddingInlineStart:i,paddingInlineEnd:a,transition:[`height`,`line-height`,`padding`].map(t=>`${t} ${e.motionDurationSlow}`).join(`,`),"&-content":{...Ra,marginInlineEnd:a},"&-remove":{...Ba(),display:`inline-flex`,alignItems:`center`,color:c,fontWeight:`bold`,fontSize:10,lineHeight:`inherit`,cursor:`pointer`,[`> ${r}`]:{verticalAlign:`-0.2em`},"&:hover":{color:l}}},[`${t}-input`]:{lineHeight:n(o).mul(2).add(p(`multi-item-height`)).equal(),width:`calc(var(--select-input-width, 0) * 1px)`,minWidth:db,maxWidth:`100%`,transition:`line-height ${e.motionDurationSlow}`}},[`&${t}-sm`]:{[f(`multi-item-height`)]:e.multipleItemHeightSM,[f(`multi-item-border-radius`)]:e.borderRadiusXS},[`&${t}-lg`]:{[f(`multi-item-height`)]:e.multipleItemHeightLG,[f(`multi-item-border-radius`)]:e.borderRadius},[`&${t}-filled`]:{[f(`multi-item-border-color`)]:e.colorSplit,[f(`multi-item-background`)]:e.colorBgContainer,[`&${t}-disabled`]:{[f(`multi-item-border-color`)]:`transparent`}}}}},pb=(e,t)=>{let{componentCls:n,antCls:r}=e,[i]=Za(r,`select`),{border:a,borderHover:o,borderActive:s,borderOutline:c}=t,l=t.background||e.selectorBg||e.colorBgContainer;return{[i(`border-color`)]:a,[i(`background-color`)]:l,[i(`color`)]:t.color||e.colorText,[`&:not(${n}-disabled)`]:{"&:hover":{[i(`border-color`)]:o,[i(`background-color`)]:t.backgroundHover||l},[`&${n}-focused`]:{[i(`border-color`)]:s,[i(`background-color`)]:t.backgroundActive||l,boxShadow:`0 0 0 ${X(e.controlOutlineWidth)} ${c}`}},[`&${n}-disabled`]:{[i(`border-color`)]:t.borderDisabled||t.border,[i(`background-color`)]:t.backgroundDisabled||t.background}}},mb=(e,t,n,r={},i={},a)=>{let{componentCls:o}=e;return{[`&${o}-${t}`]:[pb(e,n),{[`&${o}-status-error`]:pb(e,{...n,color:r.color||e.colorError,...r}),[`&${o}-status-warning`]:pb(e,{...n,color:i.color||e.colorWarning,...i})},a]}},hb=e=>{let{componentCls:t,fontHeight:n,controlHeight:r,iconCls:i,antCls:a,calc:o}=e,[s,c]=Za(a,`select`);return{[t]:[{[s(`border-radius`)]:e.borderRadius,[s(`border-color`)]:`#000`,[s(`border-size`)]:e.lineWidth,[s(`background-color`)]:e.colorBgContainer,[s(`font-size`)]:e.fontSize,[s(`line-height`)]:e.lineHeight,[s(`font-height`)]:n,[s(`color`)]:e.colorText,[s(`height`)]:r,[s(`padding-horizontal`)]:o(e.paddingSM).sub(e.lineWidth).equal(),[s(`padding-vertical`)]:`calc((${c(`height`)} - ${c(`font-height`)}) / 2 - ${c(`border-size`)})`,...za(e,!0),display:`inline-flex`,flexWrap:`nowrap`,position:`relative`,transition:`all ${e.motionDurationSlow}`,alignItems:`flex-start`,outline:0,cursor:`pointer`,borderRadius:c(`border-radius`),borderWidth:c(`border-size`),borderStyle:e.lineType,borderColor:c(`border-color`),background:c(`background-color`),fontSize:c(`font-size`),lineHeight:c(`line-height`),color:c(`color`),paddingInline:c(`padding-horizontal`),paddingBlock:c(`padding-vertical`),[`${t}-prefix`]:{flex:`none`,lineHeight:1},[`${t}-placeholder`]:{...Ra,color:e.colorTextPlaceholder,pointerEvents:`none`,zIndex:1},[`${t}-content`]:{flex:`auto`,minWidth:0,position:`relative`,display:`flex`,marginInlineEnd:o(e.paddingXXS).mul(1.5).equal(),"&:before":{content:`"\\a0"`,width:0,overflow:`hidden`},"&-value":{visibility:`inherit`},"input[readonly]":{cursor:`inherit`,caretColor:`transparent`}},[`${t}-suffix`]:{flex:`none`,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,"> :not(:last-child)":{marginInlineEnd:e.marginXS}},[`${t}-prefix, ${t}-suffix`]:{alignSelf:`center`,[i]:{verticalAlign:`top`}},"&-disabled":{background:e.colorBgContainerDisabled,color:e.colorTextDisabled,cursor:`not-allowed`,input:{cursor:`not-allowed`}},"&-sm":{[s(`height`)]:e.controlHeightSM,[s(`padding-horizontal`)]:o(e.paddingXS).sub(e.lineWidth).equal(),[s(`border-radius`)]:e.borderRadiusSM,[`${t}-clear`]:{insetInlineEnd:c(`padding-horizontal`)}},"&-lg":{[s(`height`)]:e.controlHeightLG,[s(`font-size`)]:e.fontSizeLG,[s(`line-height`)]:e.lineHeightLG,[s(`font-height`)]:e.fontHeightLG,[s(`border-radius`)]:e.borderRadiusLG}},{[`&:not(${t}-customize)`]:{[`${t}-input`]:{outline:`none`,background:`transparent`,appearance:`none`,border:0,margin:0,padding:0,color:c(`color`),"&::-webkit-search-cancel-button":{display:`none`,appearance:`none`}}}},{[`&-single:not(${t}-customize)`]:{[`${t}-input`]:{position:`absolute`,inset:0,lineHeight:`calc(${c(`font-height`)} + ${c(`padding-vertical`)} * 2)`},[`${t}-content`]:{...Ra,alignSelf:`center`,"&-has-value":{display:`block`,"&:before":{display:`none`}},"&-has-search-value":{color:`transparent`},"&-value":{transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,zIndex:1}},[`&${t}-open ${t}-content`]:{color:e.colorTextPlaceholder,"&-has-search-value":{color:`transparent`}}}},{[`&-show-search:not(${t}-customize-input):not(${t}-disabled)`]:{cursor:`text`}},fb(e),mb(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}),mb(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}),mb(e,`borderless`,{border:`transparent`,borderHover:`transparent`,borderActive:`transparent`,borderOutline:`transparent`,background:`transparent`}),mb(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`,borderInlineColor:`transparent`}),ub(e)]}},gb=e=>{let{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:i,controlHeightSM:a,controlHeightLG:o,paddingXXS:s,controlPaddingHorizontal:c,zIndexPopupBase:l,colorText:u,fontWeightStrong:d,controlItemBgActive:f,controlItemBgHover:p,colorBgContainer:m,colorFillSecondary:h,colorBgContainerDisabled:g,colorTextDisabled:_,colorPrimaryHover:v,colorPrimary:y,controlOutline:b}=e,x=s*2,S=r*2,C=Math.min(i-x,i-S),w=Math.min(a-x,a-S),T=Math.min(o-x,o-S);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(s/2),zIndexPopup:l+50,optionSelectedColor:u,optionSelectedFontWeight:d,optionSelectedBg:f,optionActiveBg:p,optionPadding:`${(i-t*n)/2}px ${c}px`,optionFontSize:t,optionLineHeight:n,optionHeight:i,selectorBg:m,clearBg:m,singleItemHeightLG:o,multipleItemBg:h,multipleItemBorderColor:`transparent`,multipleItemHeight:C,multipleItemHeightSM:w,multipleItemHeightLG:T,multipleSelectorBgDisabled:g,multipleItemColorDisabled:_,multipleItemBorderColorDisabled:`transparent`,showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:v,activeBorderColor:y,activeOutlineColor:b,selectAffixPadding:s}},_b=e=>{let{antCls:t,componentCls:n,motionDurationMid:r,inputPaddingHorizontalBase:i}=e,a={[`${n}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:`50%`}};return{[n]:{...za(e),[`${n}-selection-item`]:{flex:1,fontWeight:`normal`,position:`relative`,userSelect:`none`,...Ra,[`> ${t}-typography`]:{display:`inline`}},[`${n}-prefix`]:{flex:`none`,marginInlineEnd:e.selectAffixPadding},[`${n}-clear`]:{position:`absolute`,top:`50%`,insetInlineStart:`auto`,insetInlineEnd:i,zIndex:1,display:`inline-block`,width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:`normal`,lineHeight:1,textAlign:`center`,textTransform:`none`,cursor:`pointer`,opacity:0,transition:[`color`,`opacity`].map(e=>`${e} ${r} ease`).join(`, `),textRendering:`auto`,transform:`translateZ(0)`,"&:before":{display:`block`},"&:hover":{color:e.colorIcon}},"@media(hover:none)":a,"&:hover":a},[`${n}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(i).add(e.fontSize).add(e.paddingXS).equal()}}}}}},vb=e=>{let{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:`100%`}}},_b(e),lb(e),{[`${t}-rtl`]:{direction:`rtl`}},up(e,{focusElCls:`${t}-focused`})]},yb=Ja(`Select`,(e,{rootPrefixCls:t})=>{let n=si(e,{rootPrefixCls:t,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(e.lineWidth).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[vb(n),hb(n)]},gb,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}}),bb={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 xb(){return xb=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},xb.apply(this,arguments)}var Sb=v.forwardRef((e,t)=>v.createElement(So,xb({},e,{ref:t,icon:bb}))),Cb={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 wb(){return wb=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},wb.apply(this,arguments)}var Tb=v.forwardRef((e,t)=>v.createElement(So,wb({},e,{ref:t,icon:Cb}))),Eb={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 Db(){return Db=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},Db.apply(this,arguments)}var Ob=v.forwardRef((e,t)=>v.createElement(So,Db({},e,{ref:t,icon:Eb})));function kb({suffixIcon:e,clearIcon:t,menuItemSelectedIcon:n,removeIcon:r,loading:i,loadingIcon:a,multiple:o,hasFeedback:s,showSuffixIcon:c,feedbackIcon:l,showArrow:u,componentName:d}){let f=t??v.createElement(Do,null),p=t=>e===null&&!s&&!u?null:v.createElement(v.Fragment,null,c!==!1&&t,s&&l),m=null;m=e===void 0?i?p(a??v.createElement(Yu,{spin:!0})):({open:e,showSearch:t})=>p(e&&t?v.createElement(Ob,null):v.createElement(Tb,null)):p(e);let h=null;h=n===void 0?o?v.createElement(Sb,null):null:n;let g=null;return g=r===void 0?v.createElement(Ao,null):r,{clearIcon:f,suffixIcon:m,itemIcon:h,removeIcon:g}}function Ab(e){return v.useMemo(()=>{if(e)return(...t)=>v.createElement(Hh,{space:!0},e.apply(void 0,t))},[e])}function jb(e,t){return t===void 0?e!==null:t}var Mb=`SECRET_COMBOBOX_MODE_DO_NOT_USE`,Nb=v.forwardRef((e,t)=>{let{prefixCls:n,bordered:r,className:i,rootClassName:a,getPopupContainer:o,popupClassName:s,dropdownClassName:c,listHeight:l=256,placement:u,listItemHeight:d,size:f,disabled:p,notFoundContent:m,status:h,builtinPlacements:g,dropdownMatchSelectWidth:_,popupMatchSelectWidth:y,direction:b,style:x,allowClear:S,variant:C,popupStyle:w,dropdownStyle:T,transitionName:E,tagRender:D,maxCount:O,prefix:k,dropdownRender:A,popupRender:j,onDropdownVisibleChange:M,onOpenChange:N,styles:P,classNames:F,...I}=e,{getPopupContainer:L,getPrefixCls:R,renderEmpty:z,direction:B,virtual:V,popupMatchSelectWidth:H,popupOverflow:U}=v.useContext(Je),{showSearch:W,style:ee,styles:te,className:G,classNames:ne}=Ze(`select`),[,re]=La(),ie=d??re?.controlHeight,K=R(`select`,n),q=R(),ae=b??B,{compactSize:oe,compactItemClassnames:se}=Pd(K,ae),[J,ce]=ab(`select`,C,r),le=Yc(K),[de,fe]=yb(K,le),pe=v.useMemo(()=>{let{mode:t}=e;if(t!==`combobox`)return t===Mb?`combobox`:t},[e.mode]),me=pe===`multiple`||pe===`tags`,he=jb(e.suffixIcon,e.showArrow),ge=y??_??H,_e=Ab(j||A),ve=N||M,{status:ye,hasFeedback:be,isFormItemInput:xe,feedbackIcon:Se}=v.useContext(zh),Ce=Xy(ye,h),we;we=m===void 0?pe===`combobox`?null:z?.(`Select`)||v.createElement(ib,{componentName:`Select`}):m;let{suffixIcon:Te,itemIcon:Ee,removeIcon:De,clearIcon:Oe}=kb({...I,multiple:me,hasFeedback:be,feedbackIcon:Se,showSuffixIcon:he,prefixCls:K,componentName:`Select`}),ke=S===!0?{clearIcon:Oe}:S,Ae=ue(I,[`suffixIcon`,`itemIcon`]),je=jd(e=>f??oe??e),Me=v.useContext(du),Ne=p??Me,Pe={...e,variant:J,status:Ce,disabled:Ne,size:je},[Fe,Ie]=Dc([ne,F],[te,P],{props:Pe},{popup:{_default:`root`}}),Le=Y(Fe.popup?.root,s,c,{[`${K}-dropdown-${ae}`]:ae===`rtl`},a,fe,le,de),Re={...Ie.popup?.root,...w??T},ze=Y({[`${K}-lg`]:je===`large`,[`${K}-sm`]:je===`small`,[`${K}-rtl`]:ae===`rtl`,[`${K}-${J}`]:ce,[`${K}-in-form-item`]:xe},Yy(K,Ce,be),se,G,i,Fe.root,a,fe,le,de),Be=v.useMemo(()=>u===void 0?ae===`rtl`?`bottomRight`:`bottomLeft`:u,[u,ae]),[Ve]=Lc(`SelectLike`,Ie.popup?.root?.zIndex??Re?.zIndex);return v.createElement(Jy,{ref:t,virtual:V,classNames:Fe,styles:Ie,showSearch:W,...Ae,style:{...Ie.root,...ee,...x},popupMatchSelectWidth:ge,transitionName:xd(q,`slide-up`,E),builtinPlacements:sb(g,U),listHeight:l,listItemHeight:ie,mode:pe,prefixCls:K,placement:Be,direction:ae,prefix:k,suffixIcon:Te,menuItemSelectedIcon:Ee,removeIcon:De,allowClear:ke,notFoundContent:we,className:ze,getPopupContainer:o||L,popupClassName:Le,disabled:Ne,popupStyle:{...Ie.popup?.root,...Re,zIndex:Ve},maxCount:me?O:void 0,tagRender:me?D:void 0,popupRender:_e,onPopupVisibleChange:ve})}),Pb=X_(Nb,`popupAlign`);Nb.SECRET_COMBOBOX_MODE_DO_NOT_USE=Mb,Nb.Option=iy,Nb.OptGroup=ry,Nb._InternalPanelDoNotUseOrYouWillBeFired=Pb;var Fb=[`xxxl`,`xxl`,`xl`,`lg`,`md`,`sm`,`xs`],Ib=[].concat(Fb).reverse(),Lb=e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`,xxxl:`(min-width: ${e.screenXXXL}px)`}),Rb=e=>{let t=e,n=[].concat(Fb).reverse();return n.forEach((e,r)=>{let i=e.toUpperCase(),a=`screen${i}Min`,o=`screen${i}`;if(!(t[a]<=t[o]))throw Error(`${a}<=${o} fails : !(${t[a]}<=${t[o]})`);if(r<n.length-1){let e=`screen${i}Max`;if(!(t[o]<=t[e]))throw Error(`${o}<=${e} fails : !(${t[o]}<=${t[e]})`);let a=`screen${n[r+1].toUpperCase()}Min`;if(!(t[e]<=t[a]))throw Error(`${e}<=${a} fails : !(${t[e]}<=${t[a]})`)}}),e},zb=()=>{let[,e]=La(),t=Lb(Rb(e));return v.useMemo(()=>{let e=new Map,n=-1,r={};return{responsiveMap:t,matchHandlers:{},dispatch(t){return r=t,e.forEach(e=>{e(r)}),e.size>=1},subscribe(t){return e.size||this.register(),n+=1,e.set(n,t),t(r),n},unsubscribe(t){e.delete(t),e.size||this.unregister()},register(){Object.entries(t).forEach(([e,t])=>{let n=({matches:t})=>{this.dispatch({...r,[e]:t})},i=window.matchMedia(t);typeof i?.addEventListener==`function`&&i.addEventListener(`change`,n),this.matchHandlers[t]={mql:i,listener:n},n(i)})},unregister(){Object.values(t).forEach(e=>{let t=this.matchHandlers[e];typeof t?.mql?.removeEventListener==`function`&&t.mql.removeEventListener(`change`,t?.listener)}),e.clear()}}},[t])};function Bb(e=!0,t={}){let n=(0,v.useRef)(t),[,r]=vc(),i=zb();return S(()=>{let t=i.subscribe(t=>{n.current=t,e&&r()});return()=>i.unsubscribe(t)},[]),n.current}var Vb=e=>e?typeof e==`function`?e():e:null,Hb=e=>{let{children:t,prefixCls:n,id:r,classNames:i,styles:a,className:o,style:s}=e;return v.createElement(`div`,{id:r,className:Y(`${n}-container`,i?.container,o),style:{...a?.container,...s},role:`tooltip`},typeof t==`function`?t():t)},Ub={shiftX:64,adjustY:1},Wb={adjustX:1,shiftY:!0},Gb=[0,0],Kb={left:{points:[`cr`,`cl`],overflow:Wb,offset:[-4,0],targetOffset:Gb},right:{points:[`cl`,`cr`],overflow:Wb,offset:[4,0],targetOffset:Gb},top:{points:[`bc`,`tc`],overflow:Ub,offset:[0,-4],targetOffset:Gb},bottom:{points:[`tc`,`bc`],overflow:Ub,offset:[0,4],targetOffset:Gb},topLeft:{points:[`bl`,`tl`],overflow:Ub,offset:[0,-4],targetOffset:Gb},leftTop:{points:[`tr`,`tl`],overflow:Wb,offset:[-4,0],targetOffset:Gb},topRight:{points:[`br`,`tr`],overflow:Ub,offset:[0,-4],targetOffset:Gb},rightTop:{points:[`tl`,`tr`],overflow:Wb,offset:[4,0],targetOffset:Gb},bottomRight:{points:[`tr`,`br`],overflow:Ub,offset:[0,4],targetOffset:Gb},rightBottom:{points:[`bl`,`br`],overflow:Wb,offset:[4,0],targetOffset:Gb},bottomLeft:{points:[`tl`,`bl`],overflow:Ub,offset:[0,4],targetOffset:Gb},leftBottom:{points:[`br`,`bl`],overflow:Wb,offset:[-4,0],targetOffset:Gb}};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)}var Jb=v.forwardRef((e,t)=>{let{trigger:n=[`hover`],mouseEnterDelay:r=0,mouseLeaveDelay:i=.1,prefixCls:a=`rc-tooltip`,children:o,onVisibleChange:s,afterVisibleChange:c,motion:l,placement:u=`right`,align:d={},destroyOnHidden:f=!1,defaultVisible:p,getTooltipContainer:m,arrowContent:h,overlay:g,id:_,showArrow:y=!0,classNames:b,styles:x,...S}=e,C=dl(_),w=(0,v.useRef)(null);(0,v.useImperativeHandle)(t,()=>w.current);let T={...S};`visible`in e&&(T.popupVisible=e.visible);let E=v.useMemo(()=>{if(!y)return!1;let e=y===!0?{}:y;return{...e,className:Y(e.className,b?.arrow),style:{...e.style,...x?.arrow},content:e.content??h}},[y,b?.arrow,x?.arrow,h]);return v.createElement(ru,qb({popupClassName:b?.root,prefixCls:a,popup:v.createElement(Hb,{key:`content`,prefixCls:a,id:C,classNames:b,styles:x},g),action:n,builtinPlacements:Kb,popupPlacement:u,ref:w,popupAlign:d,getPopupContainer:m,onOpenChange:s,afterOpenChange:c,popupMotion:l,defaultPopupVisible:p,autoDestroy:f,mouseLeaveDelay:i,popupStyle:x?.root,mouseEnterDelay:r,arrow:E,uniqueContainerClassName:b?.uniqueContainer,uniqueContainerStyle:x?.uniqueContainer},T),({open:e})=>{let t=v.Children.only(o),n={"aria-describedby":g&&e?C:void 0};return v.cloneElement(t,n)})});function Yb(e){let{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,i=t/2,a=i,o=r*1/Math.sqrt(2),s=i-r*(1-1/Math.sqrt(2)),c=i-1/Math.sqrt(2)*n,l=r*(Math.sqrt(2)-1)+1/Math.sqrt(2)*n,u=2*i-c,d=l,f=2*i-o,p=s,m=2*i-0,h=a,g=i*Math.sqrt(2)+r*(Math.sqrt(2)-2),_=r*(Math.sqrt(2)-1),v=`polygon(${_}px 100%, 50% ${_}px, ${2*i-_}px 100%, ${_}px 100%)`;return{arrowShadowWidth:g,arrowPath:`path('M 0 ${a} A ${r} ${r} 0 0 0 ${o} ${s} L ${c} ${l} A ${n} ${n} 0 0 1 ${u} ${d} L ${f} ${p} A ${r} ${r} 0 0 0 ${m} ${h} Z')`,arrowPolygon:v}}var Xb=(e,t,n)=>{let{sizePopupArrow:r,arrowPolygon:i,arrowPath:a,arrowShadowWidth:o,borderRadiusXS:s,calc:c}=e;return{pointerEvents:`none`,width:r,height:r,overflow:`hidden`,"&::before":{position:`absolute`,bottom:0,insetInlineStart:0,width:r,height:c(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[i,a]},content:`""`},"&::after":{content:`""`,position:`absolute`,width:o,height:o,bottom:0,insetInline:0,margin:`auto`,borderRadius:{_skip_check_:!0,value:`0 0 ${X(s)} 0`},transform:`translateY(50%) rotate(-135deg)`,boxShadow:n,zIndex:0,background:`transparent`}}};function Zb(e){let{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?8:r}}function Qb(e,t){return e?t:{}}var $b=(e,t,n)=>{let{componentCls:r,boxShadowPopoverArrow:i,arrowOffsetVertical:a,arrowOffsetHorizontal:o,antCls:s}=e,[c]=Za(s,`tooltip`),{arrowDistance:l=0,arrowPlacement:u={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[r]:{[`${r}-arrow`]:[{position:`absolute`,zIndex:1,display:`block`,...Xb(e,t,i),"&:before":{background:t}}],...Qb(!!u.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(`,`)]:{bottom:l,transform:`translateY(100%) rotate(180deg)`},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:`50%`},transform:`translateX(-50%) translateY(100%) rotate(180deg)`},"&-placement-topLeft":{[c(`arrow-offset-x`)]:o,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:o}}},"&-placement-topRight":{[c(`arrow-offset-x`)]:`calc(100% - ${X(o)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:o}}}}),...Qb(!!u.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(`,`)]:{top:l,transform:`translateY(-100%)`},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:`50%`},transform:`translateX(-50%) translateY(-100%)`},"&-placement-bottomLeft":{[c(`arrow-offset-x`)]:o,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:o}}},"&-placement-bottomRight":{[c(`arrow-offset-x`)]:`calc(100% - ${X(o)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:o}}}}),...Qb(!!u.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(`,`)]:{right:{_skip_check_:!0,value:l},transform:`translateX(100%) rotate(90deg)`},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:`50%`},transform:`translateY(-50%) translateX(100%) rotate(90deg)`},[`&-placement-leftTop > ${r}-arrow`]:{top:a},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:a}}),...Qb(!!u.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(`,`)]:{left:{_skip_check_:!0,value:l},transform:`translateX(-100%) rotate(-90deg)`},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:`50%`},transform:`translateY(-50%) translateX(-100%) rotate(-90deg)`},[`&-placement-rightTop > ${r}-arrow`]:{top:a},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:a}})}}};function ex(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};let i=sc(r)?r:{},a={};switch(e){case`top`:case`bottom`:a.shiftX=t.arrowOffsetHorizontal*2+n,a.shiftY=!0,a.adjustY=!0;break;case`left`:case`right`:a.shiftY=t.arrowOffsetVertical*2+n,a.shiftX=!0,a.adjustX=!0;break}let o={...a,...i};return o.shiftX||(o.adjustX=!0),o.shiftY||(o.adjustY=!0),o}var tx={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`]}},nx={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`]}},rx=new Set([`topLeft`,`topRight`,`bottomLeft`,`bottomRight`,`leftTop`,`leftBottom`,`rightTop`,`rightBottom`]);function ix(e){let{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:i,borderRadius:a,visibleFirst:o}=e,s=t/2,c={},l=Zb({contentRadius:a,limitVerticalRadius:!0});return Object.keys(tx).forEach(e=>{let a={...r&&nx[e]||tx[e],offset:[0,0],dynamicInset:!0};switch(c[e]=a,rx.has(e)&&(a.autoArrow=!1),e){case`top`:case`topLeft`:case`topRight`:a.offset[1]=-s-i;break;case`bottom`:case`bottomLeft`:case`bottomRight`:a.offset[1]=s+i;break;case`left`:case`leftTop`:case`leftBottom`:a.offset[0]=-s-i;break;case`right`:case`rightTop`:case`rightBottom`:a.offset[0]=s+i;break}if(r)switch(e){case`topLeft`:case`bottomLeft`:a.offset[0]=-l.arrowOffsetHorizontal-s;break;case`topRight`:case`bottomRight`:a.offset[0]=l.arrowOffsetHorizontal+s;break;case`leftTop`:case`rightTop`:a.offset[1]=-l.arrowOffsetHorizontal*2+s;break;case`leftBottom`:case`rightBottom`:a.offset[1]=l.arrowOffsetHorizontal*2-s;break}a.overflow=ex(e,l,t,n),o&&(a.htmlRegion=`visibleFirst`)}),c}var ax=v.createContext(!1),ox=(e,t)=>{let n=e=>typeof e==`boolean`?{show:e}:e||{};return v.useMemo(()=>{let r=n(e),i=n(t);return{...i,...r,show:r.show??i.show??!0}},[e,t])},sx=`50%`,cx=e=>{let{calc:t,componentCls:n,tooltipMaxWidth:r,tooltipColor:i,tooltipBg:a,tooltipBorderRadius:o,zIndexPopup:s,controlHeight:c,boxShadowSecondary:l,paddingSM:u,paddingXS:d,arrowOffsetHorizontal:f,sizePopupArrow:p,antCls:m}=e,[h,g]=Za(m,`tooltip`),_=t(o).add(p).add(f).equal(),v={minWidth:t(o).mul(2).add(p).equal(),minHeight:c,padding:`${X(e.calc(u).div(2).equal())} ${X(d)}`,color:g(`overlay-color`,i),textAlign:`start`,textDecoration:`none`,wordWrap:`break-word`,backgroundColor:a,borderRadius:o,boxShadow:l,boxSizing:`border-box`},y={[h(`valid-offset-x`)]:g(`arrow-offset-x`,`var(--arrow-x)`),transformOrigin:[g(`valid-offset-x`,sx),`var(--arrow-y, ${sx})`].join(` `)};return[{[n]:{...za(e),position:`absolute`,zIndex:s,display:`block`,width:`max-content`,maxWidth:r,visibility:`visible`,...y,"&-hidden":{display:`none`},[h(`arrow-background-color`)]:a,[`${n}-container`]:[v,nf(e,!0)],[`&:has(~ ${n}-unique-container)`]:{[`${n}-container`]:{border:`none`,background:`transparent`,boxShadow:`none`}},[[`&-placement-topLeft`,`&-placement-topRight`,`&-placement-bottomLeft`,`&-placement-bottomRight`].join(`,`)]:{minWidth:_},[[`&-placement-left`,`&-placement-leftTop`,`&-placement-leftBottom`,`&-placement-right`,`&-placement-rightTop`,`&-placement-rightBottom`].join(`,`)]:{[`${n}-inner`]:{borderRadius:e.min(o,8)}},[`${n}-content`]:{position:`relative`},...Qa(e,(e,{darkColor:t})=>({[`&${n}-${e}`]:{[`${n}-container`]:{backgroundColor:t},[`${n}-arrow`]:{[h(`arrow-background-color`)]:t}}})),"&-rtl":{direction:`rtl`}}},$b(e,g(`arrow-background-color`)),{[`${n}-pure`]:{position:`relative`,maxWidth:`none`,margin:e.sizePopupArrow}},{[`${n}-unique-container`]:{...v,...y,position:`absolute`,zIndex:t(s).sub(1).equal(),"&-hidden":{display:`none`},"&-visible":{transition:`all ${e.motionDurationSlow}`}}}]},lx=e=>({zIndexPopup:e.zIndexPopupBase+70,maxWidth:250,...Zb({contentRadius:e.borderRadius,limitVerticalRadius:!0}),...Yb(si(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))}),ux=(e,t,n=!0)=>Ja(`Tooltip`,e=>{let{borderRadius:t,colorTextLightSolid:n,colorBgSpotlight:r,maxWidth:i}=e;return[cx(si(e,{tooltipMaxWidth:i,tooltipColor:n,tooltipBorderRadius:t,tooltipBg:r})),If(e,`zoom-big-fast`)]},lx,{resetStyle:!1,injectStyle:n})(e,t),dx=vi.map(e=>`${e}-inverse`),fx=[`success`,`processing`,`error`,`default`,`warning`];function px(e,t=!0){return t?[].concat(ze(dx),ze(vi)).includes(e):vi.includes(e)}function mx(e){return fx.includes(e)}var hx=(e,t,n)=>{let r=px(n),[i]=Za(e,`tooltip`),a=Y({[`${t}-${n}`]:n&&r}),o={},s={},c=Yf(n).toRgb(),l=(.299*c.r+.587*c.g+.114*c.b)/255<.5?`#FFF`:`#000`;return n&&!r&&(o.background=n,o[i(`overlay-color`)]=l,s[i(`arrow-background-color`)]=n),{className:a,overlayStyle:o,arrowStyle:s}},gx=e=>{let{prefixCls:t,className:n,placement:r=`top`,title:i,color:a,overlayInnerStyle:o,classNames:s,styles:c}=e,{getPrefixCls:l}=v.useContext(Je),u=l(`tooltip`,t),d=l(),f=Yc(u),[p,m]=ux(u,f),h=hx(d,u,a),g=h.arrowStyle,_=v.useMemo(()=>({container:{...o,...h.overlayStyle}}),[o,h.overlayStyle]),y={...e,placement:r},[b,x]=Dc([s],[_,c],{props:y}),S=Y(f,p,m,u,`${u}-pure`,`${u}-placement-${r}`,n,h.className);return v.createElement(`div`,{className:S,style:g},v.createElement(`div`,{className:`${u}-arrow`}),v.createElement(Hb,{...e,className:p,prefixCls:u,classNames:b,styles:x},i))},_x=v.forwardRef((e,t)=>{let{prefixCls:n,openClassName:r,getTooltipContainer:i,color:a,children:o,afterOpenChange:s,arrow:c,destroyTooltipOnHide:l,destroyOnHidden:u,title:d,overlay:f,trigger:p,builtinPlacements:m,autoAdjustOverflow:h=!0,motion:g,getPopupContainer:_,placement:y=`top`,mouseEnterDelay:b=.1,mouseLeaveDelay:x=.1,rootClassName:S,styles:C,classNames:w,onOpenChange:E,overlayInnerStyle:D,overlayStyle:O,overlayClassName:k,...A}=e,[,j]=La(),M=e[`data-popover-inject`],{getPopupContainer:N,getPrefixCls:P,direction:F,...I}=Ze(`tooltip`),{className:L,style:R,classNames:z,styles:B,arrow:V,trigger:H}=M?{}:I,U=ox(c,V),W=U.show,ee=p||H||`hover`,te=_||N,G=u??!!l,ne=v.useContext(ax);he(`Tooltip`);let re=v.useRef(null),ie=()=>{re.current?.forceAlign()};v.useImperativeHandle(t,()=>({forceAlign:ie,nativeElement:re.current?.nativeElement,popupElement:re.current?.popupElement}));let[K,q]=T(e.defaultOpen??!1,e.open),ae=!d&&!f&&d!==0,oe=e=>{q(ae?!1:e),!ae&&E&&E(e)},se=v.useMemo(()=>m||ix({arrowPointAtCenter:U?.pointAtCenter??!1,autoAdjustOverflow:h,arrowWidth:W?j.sizePopupArrow:0,borderRadius:j.borderRadius,offset:j.marginXXS,visibleFirst:!0}),[U,m,j,W,h]),J=v.useMemo(()=>d===0?d:f||d||``,[f,d]),ce=v.createElement(Hh,{space:!0,form:!0},typeof J==`function`?J():J),le={...e,trigger:ee,builtinPlacements:se,getPopupContainer:te,destroyOnHidden:G},[ue,de]=Dc([z,w],[B,C],{props:le}),fe=P(`tooltip`,n),pe=P(),me=K;(!(`open`in e)&&ae||ne)&&(me=!1);let ge=v.isValidElement(o)&&!iu(o)?o:v.createElement(`span`,null,o),_e=ge.props,ve=!_e.className||typeof _e.className==`string`?Y(_e.className,r||`${fe}-open`):_e.className,ye=Yc(fe),[be,xe]=ux(fe,ye,!M),Se=hx(pe,fe,a),Ce=Se.arrowStyle,we=Y(ye,be,xe),Te=Y(k,{[`${fe}-rtl`]:F===`rtl`},Se.className,S,we,L,ue.root),[Ee,De]=Lc(`Tooltip`,A.zIndex),Oe={...de.container,...D,...Se.overlayStyle},ke=v.createElement(Jb,{unique:!0,...A,zIndex:Ee,showArrow:W,placement:y,mouseEnterDelay:b,mouseLeaveDelay:x,prefixCls:fe,classNames:{root:Te,container:ue.container,arrow:ue.arrow,uniqueContainer:Y(we,ue.container)},styles:{root:{...Ce,...de.root,...R,...O},container:Oe,uniqueContainer:Oe,arrow:de.arrow},ref:re,overlay:ce,visible:me,onVisibleChange:oe,afterVisibleChange:s,arrowContent:v.createElement(`span`,{className:`${fe}-arrow-content`}),motion:{motionName:xd(pe,`zoom-big-fast`,typeof g?.motionName==`string`?g?.motionName:void 0),motionDeadline:1e3},trigger:ee,builtinPlacements:se,getTooltipContainer:te,destroyOnHidden:G},me?ou(ge,{className:ve}):ge);return v.createElement(jc.Provider,{value:De},ke)});_x._InternalPanelDoNotUseOrYouWillBeFired=gx,_x.UniqueProvider=uu;var vx=`50%`,yx=e=>{let{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:i,innerPadding:a,boxShadowSecondary:o,colorTextHeading:s,borderRadiusLG:c,zIndexPopup:l,titleMarginBottom:u,colorBgElevated:d,popoverBg:f,titleBorderBottom:p,innerContentPadding:m,titlePadding:h,antCls:g}=e,[_,v]=Za(g,`tooltip`);return[{[t]:{...za(e),position:`absolute`,top:0,left:{_skip_check_:!0,value:0},zIndex:l,fontWeight:`normal`,whiteSpace:`normal`,textAlign:`start`,cursor:`auto`,userSelect:`text`,[_(`valid-offset-x`)]:v(`arrow-offset-x`,`var(--arrow-x)`),transformOrigin:[v(`valid-offset-x`,vx),`var(--arrow-y, ${vx})`].join(` `),[_(`arrow-background-color`)]:d,width:`max-content`,maxWidth:`100vw`,"&-rtl":{direction:`rtl`},"&-hidden":{display:`none`},[`${t}-content`]:{position:`relative`},[`${t}-container`]:{backgroundColor:f,backgroundClip:`padding-box`,borderRadius:c,boxShadow:o,padding:a},[`${t}-title`]:{minWidth:r,marginBottom:u,color:s,fontWeight:i,borderBottom:p,padding:h},[`${t}-content`]:{color:n,padding:m}}},$b(e,v(`arrow-background-color`)),{[`${t}-pure`]:{position:`relative`,maxWidth:`none`,margin:e.sizePopupArrow,display:`inline-block`}}]},bx=e=>{let{componentCls:t,antCls:n}=e,[r]=Za(n,`tooltip`);return{[t]:vi.map(n=>{let i=e[`${n}6`];return{[`&${t}-${n}`]:{[r(`arrow-background-color`)]:i,[`${t}-inner`]:{backgroundColor:i},[`${t}-arrow`]:{background:`transparent`}}}})}},xx=Ja(`Popover`,e=>{let{colorBgElevated:t,colorText:n}=e,r=si(e,{popoverBg:t,popoverColor:n});return[yx(r),bx(r),If(r,`zoom-big`)]},e=>{let{lineWidth:t,controlHeight:n,fontHeight:r,padding:i,wireframe:a,zIndexPopupBase:o,borderRadiusLG:s,marginXS:c,lineType:l,colorSplit:u,paddingSM:d}=e,f=n-r,p=f/2,m=f/2-t,h=i;return{titleMinWidth:177,zIndexPopup:o+30,...Yb(e),...Zb({contentRadius:s,limitVerticalRadius:!0}),innerPadding:a?0:12,titleMarginBottom:a?0:c,titlePadding:a?`${p}px ${h}px ${m}px`:0,titleBorderBottom:a?`${t}px ${l} ${u}`:`none`,innerContentPadding:a?`${d}px ${h}px`:0}},{resetStyle:!1,deprecatedTokens:[[`width`,`titleMinWidth`],[`minWidth`,`titleMinWidth`]]}),Sx=e=>{let{title:t,content:n,prefixCls:r,classNames:i,styles:a}=e;return!t&&!n?null:v.createElement(v.Fragment,null,t&&v.createElement(`div`,{className:Y(`${r}-title`,i?.title),style:a?.title},t),n&&v.createElement(`div`,{className:Y(`${r}-content`,i?.content),style:a?.content},n))},Cx=e=>{let{hashId:t,prefixCls:n,className:r,style:i,placement:a=`top`,title:o,content:s,children:c,classNames:l,styles:u}=e,d=Vb(o),f=Vb(s),p={...e,placement:a},[m,h]=Dc([l],[u],{props:p}),g=Y(t,n,`${n}-pure`,`${n}-placement-${a}`,r);return v.createElement(`div`,{className:g,style:i},v.createElement(`div`,{className:`${n}-arrow`}),v.createElement(Hb,{...e,className:t,prefixCls:n,classNames:m,styles:h},c||v.createElement(Sx,{prefixCls:n,title:d,content:f,classNames:m,styles:h})))},wx=e=>{let{prefixCls:t,className:n,...r}=e,{getPrefixCls:i}=v.useContext(Je),a=i(`popover`,t),[o,s]=xx(a);return v.createElement(Cx,{...r,prefixCls:a,hashId:o,className:Y(n,s)})},Tx=v.forwardRef((e,t)=>{let{prefixCls:n,title:r,content:i,overlayClassName:a,placement:o=`top`,trigger:s,children:c,mouseEnterDelay:l=.1,mouseLeaveDelay:u=.1,onOpenChange:d,overlayStyle:f={},styles:p,classNames:m,motion:h,arrow:g,..._}=e,{getPrefixCls:y,className:b,style:x,classNames:S,styles:C,arrow:w,trigger:E}=Ze(`popover`),D=y(`popover`,n),[O,k]=xx(D),A=y(),j=ox(g,w),M=s||E||`hover`,N={...e,placement:o,trigger:M,mouseEnterDelay:l,mouseLeaveDelay:u,overlayStyle:f,styles:p,classNames:m},[P,F]=Dc([S,m],[C,p],{props:N}),I=Y(a,O,k,b,P.root),[L,R]=T(e.defaultOpen??!1,e.open),z=e=>{R(e),d?.(e)},B=Vb(r),V=Vb(i);return v.createElement(_x,{unique:!1,arrow:j,placement:o,trigger:M,mouseEnterDelay:l,mouseLeaveDelay:u,..._,prefixCls:D,classNames:{root:I,container:P.container,arrow:P.arrow},styles:{root:{...F.root,...x,...f},container:F.container,arrow:F.arrow},ref:t,open:L,onOpenChange:z,overlay:B||V?v.createElement(Sx,{prefixCls:D,title:B,content:V,classNames:P,styles:F}):null,motion:{motionName:xd(A,`zoom-big`,typeof h?.motionName==`string`?h?.motionName:void 0)},"data-popover-inject":!0},c)});Tx._InternalPanelDoNotUseOrYouWillBeFired=wx;var Ex={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M859.9 168H164.1c-4.5 0-8.1 3.6-8.1 8v60c0 4.4 3.6 8 8.1 8h695.8c4.5 0 8.1-3.6 8.1-8v-60c0-4.4-3.6-8-8.1-8zM518.3 355a8 8 0 00-12.6 0l-112 141.7a7.98 7.98 0 006.3 12.9h73.9V848c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V509.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 355z`}}]},name:`vertical-align-top`,theme:`outlined`};function Dx(){return Dx=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},Dx.apply(this,arguments)}var Ox=v.forwardRef((e,t)=>v.createElement(So,Dx({},e,{ref:t,icon:Ex}))),kx={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 Ax(){return Ax=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},Ax.apply(this,arguments)}var jx=v.forwardRef((e,t)=>v.createElement(So,Ax({},e,{ref:t,icon:kx}))),{ESC:Mx,TAB:Nx}=Z;function Px({visible:e,triggerRef:t,onVisibleChange:n,autoFocus:r,overlayRef:i}){let a=v.useRef(!1),o=()=>{e&&(t.current?.focus?.(),n?.(!1))},s=()=>i.current?.focus?(i.current.focus(),a.current=!0,!0):!1,c=e=>{switch(e.keyCode){case Mx:o();break;case Nx:{let t=!1;a.current||(t=s()),t?e.preventDefault():o();break}}};v.useEffect(()=>e?(window.addEventListener(`keydown`,c),r&&Ge(s,3),()=>{window.removeEventListener(`keydown`,c),a.current=!1}):()=>{a.current=!1},[e])}var Fx=(0,v.forwardRef)((e,t)=>{let{overlay:n,arrow:r,prefixCls:i}=e,a=(0,v.useMemo)(()=>{let e;return e=typeof n==`function`?n():n,e},[n]),o=I(t,V(a));return v.createElement(v.Fragment,null,r&&v.createElement(`div`,{className:`${i}-arrow`}),v.cloneElement(a,{ref:R(a)?o:void 0}))}),Ix={adjustX:1,adjustY:1},Lx=[0,0],Rx={topLeft:{points:[`bl`,`tl`],overflow:Ix,offset:[0,-4],targetOffset:Lx},top:{points:[`bc`,`tc`],overflow:Ix,offset:[0,-4],targetOffset:Lx},topRight:{points:[`br`,`tr`],overflow:Ix,offset:[0,-4],targetOffset:Lx},bottomLeft:{points:[`tl`,`bl`],overflow:Ix,offset:[0,4],targetOffset:Lx},bottom:{points:[`tc`,`bc`],overflow:Ix,offset:[0,4],targetOffset:Lx},bottomRight:{points:[`tr`,`br`],overflow:Ix,offset:[0,4],targetOffset:Lx}};function zx(){return zx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zx.apply(this,arguments)}var Bx=v.forwardRef((e,t)=>{let{arrow:n=!1,prefixCls:r=`rc-dropdown`,transitionName:i,animation:a,align:o,placement:s=`bottomLeft`,placements:c=Rx,getPopupContainer:l,showAction:u,hideAction:d,overlayClassName:f,overlayStyle:p,visible:m,trigger:h=[`hover`],autoFocus:g,overlay:_,children:y,onVisibleChange:b,...x}=e,[S,C]=v.useState(),w=`visible`in e?m:S,T=a?`${r}-${a}`:i,E=v.useRef(null),D=v.useRef(null),O=v.useRef(null);v.useImperativeHandle(t,()=>E.current);let k=e=>{C(e),b?.(e)};Px({visible:w,triggerRef:O,onVisibleChange:k,autoFocus:g,overlayRef:D});let A=t=>{let{onOverlayClick:n}=e;C(!1),n&&n(t)},j=()=>v.createElement(Fx,{ref:D,overlay:_,prefixCls:r,arrow:n}),M=()=>typeof _==`function`?j:j(),N=()=>{let{minOverlayWidthMatchTrigger:t,alignPoint:n}=e;return`minOverlayWidthMatchTrigger`in e?t:!n},P=v.cloneElement(y,{className:Y(y.props?.className,w&&(()=>{let{openClassName:t}=e;return t===void 0?`${r}-open`:t})()),ref:R(y)?I(O,V(y)):void 0}),F=d;return!F&&h.indexOf(`contextMenu`)!==-1&&(F=[`click`]),v.createElement(ru,zx({builtinPlacements:c},x,{prefixCls:r,ref:E,popupClassName:Y(f,{[`${r}-show-arrow`]:n}),popupStyle:p,action:h,showAction:u,hideAction:F,popupPlacement:s,popupAlign:o,popupMotion:{motionName:T},popupVisible:w,stretch:N()?`minWidth`:``,popup:M(),onOpenChange:k,onPopupClick:A,getPopupContainer:l}),P)}),Vx=v.createContext(null);function Hx(e,t){return`${e}-${t}`}function Ux(e){return Hx(v.useContext(Vx),e)}var Wx=v.createContext(null);function Gx(e,t){let n={...e};return Object.keys(t).forEach(e=>{let r=t[e];r!==void 0&&(n[e]=r)}),n}function Kx({children:e,locked:t,...n}){let r=v.useContext(Wx),i=O(()=>Gx(r,n),[r,n],(e,n)=>!t&&(e[0]!==n[0]||!pt(e[1],n[1],!0)));return v.createElement(Wx.Provider,{value:i},e)}var qx=[],Jx=v.createContext(null);function Yx(){return v.useContext(Jx)}var Xx=v.createContext(qx);function Zx(e){let t=v.useContext(Xx);return v.useMemo(()=>e===void 0?t:[...t,e],[t,e])}var Qx=v.createContext(null),$x=v.createContext({}),{LEFT:eS,RIGHT:tS,UP:nS,DOWN:rS,ENTER:iS,ESC:aS,HOME:oS,END:sS}=Z,cS=[nS,rS,eS,tS];function lS(e,t,n,r){let i=`prev`,a=`next`,o=`children`,s=`parent`;if(e===`inline`&&r===iS)return{inlineTrigger:!0};let c={[nS]:i,[rS]:a},l={[eS]:n?a:i,[tS]:n?i:a,[rS]:o,[iS]:o},u={[nS]:i,[rS]:a,[iS]:o,[aS]:s,[eS]:n?o:s,[tS]:n?s:o};switch({inline:c,horizontal:l,vertical:u,inlineSub:c,horizontalSub:u,verticalSub:u}[`${e}${t?``:`Sub`}`]?.[r]){case i:return{offset:-1,sibling:!0};case a:return{offset:1,sibling:!0};case s:return{offset:-1,sibling:!1};case o:return{offset:1,sibling:!1};default:return null}}function uS(e){let t=e;for(;t;){if(t.getAttribute(`data-menu-list`))return t;t=t.parentElement}return null}function dS(e,t){let n=e||document.activeElement;for(;n;){if(t.has(n))return n;n=n.parentElement}return null}function fS(e,t){return kp(e,!0).filter(e=>t.has(e))}function pS(e,t,n,r=1){if(!e)return null;let i=fS(e,t),a=i.length,o=i.findIndex(e=>n===e);return r<0?o===-1?o=a-1:--o:r>0&&(o+=1),o=(o+a)%a,i[o]}var mS=(e,t)=>{let n=new Set,r=new Map,i=new Map;return e.forEach(e=>{let a=document.querySelector(`[data-menu-id='${Hx(t,e)}']`);a&&(n.add(a),i.set(a,e),r.set(e,a))}),{elements:n,key2element:r,element2key:i}};function hS(e,t,n,r,i,a,o,s,c,l){let u=v.useRef(),d=v.useRef();d.current=t;let f=()=>{Ge.cancel(u.current)};return v.useEffect(()=>()=>{f()},[]),p=>{let{which:m}=p;if([...cS,iS,aS,oS,sS].includes(m)){let l=a(),h=mS(l,r),{elements:g,key2element:_,element2key:v}=h,y=dS(_.get(t),g),b=v.get(y),x=lS(e,o(b,!0).length===1,n,m);if(!x&&m!==oS&&m!==sS)return;(cS.includes(m)||[oS,sS].includes(m))&&p.preventDefault();let S=e=>{if(e){let t=e,n=e.querySelector(`a`);n?.getAttribute(`href`)&&(t=n);let r=v.get(e);s(r),f(),u.current=Ge(()=>{d.current===r&&t.focus()})}};if([oS,sS].includes(m)||x.sibling||!y){let t;t=!y||e===`inline`?i.current:uS(y);let n,r=fS(t,g);n=m===oS?r[0]:m===sS?r[r.length-1]:pS(t,g,y,x.offset),S(n)}else if(x.inlineTrigger)c(b);else if(x.offset>0)c(b,!0),f(),u.current=Ge(()=>{h=mS(l,r);let e=y.getAttribute(`aria-controls`);S(pS(document.getElementById(e),h.elements))},5);else if(x.offset<0){let e=o(b,!0),t=e[e.length-2],n=_.get(t);c(t,!1),S(n)}}l?.(p)}}function gS(e){Promise.resolve().then(e)}var _S=`__RC_UTIL_PATH_SPLIT__`,vS=e=>e.join(_S),yS=e=>e.split(_S),bS=`rc-menu-more`;function xS(){let[,e]=v.useState({}),t=(0,v.useRef)(new Map),n=(0,v.useRef)(new Map),[r,i]=v.useState([]),a=(0,v.useRef)(0),o=(0,v.useRef)(!1),s=()=>{o.current||e({})},c=(0,v.useCallback)((e,r)=>{let i=vS(r);n.current.set(i,e),t.current.set(e,i),a.current+=1;let o=a.current;gS(()=>{o===a.current&&s()})},[]),l=(0,v.useCallback)((e,r)=>{let i=vS(r);n.current.delete(i),t.current.delete(e)},[]),u=(0,v.useCallback)(e=>{i(e)},[]),d=(0,v.useCallback)((e,n)=>{let i=yS(t.current.get(e)||``);return n&&r.includes(i[0])&&i.unshift(bS),i},[r]),f=(0,v.useCallback)((e,t)=>e.filter(e=>e!==void 0).some(e=>d(e,!0).includes(t)),[d]),p=()=>{let e=[...t.current.keys()];return r.length&&e.push(bS),e},m=(0,v.useCallback)(e=>{let r=`${t.current.get(e)}${_S}`,i=new Set;return[...n.current.keys()].forEach(e=>{e.startsWith(r)&&i.add(n.current.get(e))}),i},[]);return v.useEffect(()=>()=>{o.current=!0},[]),{registerPath:c,unregisterPath:l,refreshOverflowKeys:u,isSubPathKey:f,getKeyPath:d,getKeys:p,getSubPathKeys:m}}function SS(e){let t=v.useRef(e);t.current=e;let n=v.useCallback((...e)=>t.current?.(...e),[]);return e?n:void 0}function CS(e,t,n,r){let{activeKey:i,onActive:a,onInactive:o}=v.useContext(Wx),s={active:i===e};return t||(s.onMouseEnter=t=>{n?.({key:e,domEvent:t}),a(e)},s.onMouseLeave=t=>{r?.({key:e,domEvent:t}),o(e)}),s}function wS(e){let{mode:t,rtl:n,inlineIndent:r}=v.useContext(Wx);if(t!==`inline`)return null;let i=e;return n?{paddingRight:i*r}:{paddingLeft:i*r}}function TS({icon:e,props:t,children:n}){let r;return e===null||e===!1?null:(typeof e==`function`?r=v.createElement(e,{...t}):typeof e!=`boolean`&&(r=e),r||n||null)}function ES({item:e,...t}){return Object.defineProperty(t,`item`,{get:()=>(ce(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),e)}),t}function DS(){return DS=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},DS.apply(this,arguments)}var OS=class extends v.Component{render(){let{title:e,attribute:t,elementRef:n,...r}=this.props,i=ue(r,[`eventKey`,`popupClassName`,`popupOffset`,`onTitleClick`]);return ce(!t,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),v.createElement(Hv.Item,DS({},t,{title:typeof e==`string`?e:void 0},i,{ref:n}))}},kS=v.forwardRef((e,t)=>{let{style:n,className:r,eventKey:i,warnKey:a,disabled:o,itemIcon:s,children:c,role:l,onMouseEnter:u,onMouseLeave:d,onClick:f,onKeyDown:p,onFocus:m,...h}=e,g=Ux(i),{prefixCls:_,onItemClick:y,disabled:b,overflowDisabled:x,itemIcon:S,selectedKeys:C,onActive:w}=v.useContext(Wx),{_internalRenderMenuItem:T}=v.useContext($x),E=`${_}-item`,D=v.useRef(),O=v.useRef(),k=b||o,A=L(t,O),j=Zx(i),M=e=>({key:i,keyPath:[...j].reverse(),item:D.current,domEvent:e}),N=s||S,{active:P,...F}=CS(i,k,u,d),I=C.includes(i),R=wS(j.length),z=e=>{if(k)return;let t=M(e);f?.(ES(t)),y(t)},B=e=>{if(p?.(e),e.which===Z.ENTER){let t=M(e);f?.(ES(t)),y(t)}},V=e=>{w(i),m?.(e)},H={};e.role===`option`&&(H[`aria-selected`]=I);let U=v.createElement(OS,DS({ref:D,elementRef:A,role:l===null?`none`:l||`menuitem`,tabIndex:o?null:-1,"data-menu-id":x&&g?null:g},ue(h,[`extra`]),F,H,{component:`li`,"aria-disabled":o,style:{...R,...n},className:Y(E,{[`${E}-active`]:P,[`${E}-selected`]:I,[`${E}-disabled`]:k},r),onClick:z,onKeyDown:B,onFocus:V}),c,v.createElement(TS,{props:{...e,isSelected:I},icon:N}));return T&&(U=T(U,e,{selected:I})),U});function AS(e,t){let{eventKey:n}=e,r=Yx(),i=Zx(n);return v.useEffect(()=>{if(r)return r.registerPath(n,i),()=>{r.unregisterPath(n,i)}},[i]),r?null:v.createElement(kS,DS({},e,{ref:t}))}var jS=v.forwardRef(AS);function MS(){return MS=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},MS.apply(this,arguments)}var NS=v.forwardRef(({className:e,children:t,...n},r)=>{let{prefixCls:i,mode:a,rtl:o}=v.useContext(Wx);return v.createElement(`ul`,MS({className:Y(i,o&&`${i}-rtl`,`${i}-sub`,`${i}-${a===`inline`?`inline`:`vertical`}`,e),role:`menu`},n,{"data-menu-list":!0,ref:r}),t)});function PS(e,t){return de(e).map((e,n)=>{if(v.isValidElement(e)){let{key:r}=e,i=e.props?.eventKey??r;i??=`tmp_key-${[...t,n].join(`-`)}`;let a={key:i,eventKey:i};return v.cloneElement(e,a)}return e})}var FS={adjustX:1,adjustY:1},IS={topLeft:{points:[`bl`,`tl`],overflow:FS},topRight:{points:[`br`,`tr`],overflow:FS},bottomLeft:{points:[`tl`,`bl`],overflow:FS},bottomRight:{points:[`tr`,`br`],overflow:FS},leftTop:{points:[`tr`,`tl`],overflow:FS},leftBottom:{points:[`br`,`bl`],overflow:FS},rightTop:{points:[`tl`,`tr`],overflow:FS},rightBottom:{points:[`bl`,`br`],overflow:FS}},LS={topLeft:{points:[`bl`,`tl`],overflow:FS},topRight:{points:[`br`,`tr`],overflow:FS},bottomLeft:{points:[`tl`,`bl`],overflow:FS},bottomRight:{points:[`tr`,`br`],overflow:FS},rightTop:{points:[`tr`,`tl`],overflow:FS},rightBottom:{points:[`br`,`bl`],overflow:FS},leftTop:{points:[`tl`,`tr`],overflow:FS},leftBottom:{points:[`bl`,`br`],overflow:FS}};function RS(e,t,n){if(t)return t;if(n)return n[e]||n.other}var zS={horizontal:`bottomLeft`,vertical:`rightTop`,"vertical-left":`rightTop`,"vertical-right":`leftTop`};function BS({prefixCls:e,visible:t,children:n,popup:r,popupStyle:i,popupClassName:a,popupOffset:o,disabled:s,mode:c,onVisibleChange:l}){let{getPopupContainer:u,rtl:d,subMenuOpenDelay:f,subMenuCloseDelay:p,builtinPlacements:m,triggerSubMenuAction:h,forceSubMenuRender:g,rootClassName:_,motion:y,defaultMotions:b}=v.useContext(Wx),[x,S]=v.useState(!1),C=d?{...LS,...m}:{...IS,...m},w=zS[c],T=RS(c,y,b),E=v.useRef(T);c!==`inline`&&(E.current=T);let D={...E.current,leavedClassName:`${e}-hidden`,removeOnLeave:!1,motionAppear:!0},O=v.useRef();return v.useEffect(()=>(O.current=Ge(()=>{S(t)}),()=>{Ge.cancel(O.current)}),[t]),v.createElement(ru,{prefixCls:e,popupClassName:Y(`${e}-popup`,{[`${e}-rtl`]:d},a,_),stretch:c===`horizontal`?`minWidth`:null,getPopupContainer:u,builtinPlacements:C,popupPlacement:w,popupVisible:x,popup:r,popupStyle:i,popupAlign:o&&{offset:o},action:s?[]:[h],mouseEnterDelay:f,mouseLeaveDelay:p,onPopupVisibleChange:l,forceRender:g,popupMotion:D,fresh:!0},n)}function VS(){return VS=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},VS.apply(this,arguments)}function HS({id:e,open:t,keyPath:n,children:r}){let i=`inline`,{prefixCls:a,forceSubMenuRender:o,motion:s,defaultMotions:c,mode:l}=v.useContext(Wx),u=v.useRef(!1);u.current=l===i;let[d,f]=v.useState(!u.current),p=u.current?t:!1;v.useEffect(()=>{u.current&&f(!1)},[l]);let m={...RS(i,s,c)};n.length>1&&(m.motionAppear=!1);let h=m.onVisibleChanged;return m.onVisibleChanged=e=>(!u.current&&!e&&f(!0),h?.(e)),d?null:v.createElement(Kx,{mode:i,locked:!u.current},v.createElement(Os,VS({visible:p},m,{forceRender:o,removeOnLeave:!1,leavedClassName:`${a}-hidden`}),({className:t,style:n})=>v.createElement(NS,{id:e,className:t,style:n},r)))}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)}var WS=v.forwardRef((e,t)=>{let{style:n,className:r,styles:i,classNames:a,title:o,eventKey:s,warnKey:c,disabled:l,internalPopupClose:u,children:d,itemIcon:f,expandIcon:p,popupClassName:m,popupOffset:h,popupStyle:g,onClick:_,onMouseEnter:y,onMouseLeave:b,onTitleClick:x,onTitleMouseEnter:S,onTitleMouseLeave:C,popupRender:w,...T}=e,E=Ux(s),{prefixCls:D,mode:O,openKeys:k,disabled:A,overflowDisabled:j,activeKey:M,selectedKeys:N,itemIcon:P,expandIcon:F,onItemClick:I,onOpenChange:L,onActive:R,popupRender:z}=v.useContext(Wx),{_internalRenderSubMenuItem:B}=v.useContext($x),{isSubPathKey:V}=v.useContext(Qx),H=Zx(),U=`${D}-submenu`,W=A||l,ee=v.useRef(),te=v.useRef(),G=f??P,ne=p??F,re=k.includes(s),ie=!j&&re,K=V(N,s),{active:q,...ae}=CS(s,W,S,C),[oe,se]=v.useState(!1),J=e=>{W||se(e)},ce=e=>{J(!0),y?.({key:s,domEvent:e})},le=e=>{J(!1),b?.({key:s,domEvent:e})},ue=v.useMemo(()=>q||(O===`inline`?!1:oe||V([M],s)),[O,q,M,oe,s,V]),de=wS(H.length),fe=e=>{W||(x?.({key:s,domEvent:e}),O===`inline`&&L(s,!re))},pe=SS(e=>{_?.(ES(e)),I(e)}),me=e=>{O!==`inline`&&L(s,e)},he=()=>{R(s)},ge=E&&`${E}-popup`,_e=v.useMemo(()=>v.createElement(TS,{icon:O===`horizontal`?void 0:ne,props:{...e,isOpen:ie,isSubMenu:!0}},v.createElement(`i`,{className:`${U}-arrow`})),[O,ne,e,ie,U]),ve=v.createElement(`div`,US({role:`menuitem`,style:de,className:`${U}-title`,tabIndex:W?null:-1,ref:ee,title:typeof o==`string`?o:null,"data-menu-id":j&&E?null:E,"aria-expanded":ie,"aria-haspopup":!0,"aria-controls":ge,"aria-disabled":W,onClick:fe,onFocus:he},ae),o,_e),ye=v.useRef(O);O!==`inline`&&H.length>1?ye.current=`vertical`:ye.current=O;let be=ye.current,xe=v.useMemo(()=>{let t=v.createElement(Kx,{classNames:a,styles:i,mode:be===`horizontal`?`vertical`:be},v.createElement(NS,{id:ge,ref:te},d)),n=w||z;return n?n(t,{item:e,keys:H}):t},[w,z,H,ge,d,e,be]);if(!j){let e=ye.current;ve=v.createElement(BS,{mode:e,prefixCls:U,visible:!u&&ie&&O!==`inline`,popupClassName:m,popupOffset:h,popupStyle:g,popup:xe,disabled:W,onVisibleChange:me},ve)}let Se=v.createElement(Hv.Item,US({ref:t,role:`none`},T,{component:`li`,style:n,className:Y(U,`${U}-${O}`,r,{[`${U}-open`]:ie,[`${U}-active`]:ue,[`${U}-selected`]:K,[`${U}-disabled`]:W}),onMouseEnter:ce,onMouseLeave:le}),ve,!j&&v.createElement(HS,{id:ge,open:ie,keyPath:H},d));return B&&(Se=B(Se,e,{selected:K,active:ue,open:ie,disabled:W})),v.createElement(Kx,{classNames:a,styles:i,onItemClick:pe,mode:O===`horizontal`?`vertical`:O,itemIcon:G,expandIcon:ne},Se)}),GS=v.forwardRef((e,t)=>{let{eventKey:n,children:r}=e,i=Zx(n),a=PS(r,i),o=Yx();v.useEffect(()=>{if(o)return o.registerPath(n,i),()=>{o.unregisterPath(n,i)}},[i]);let s;return s=o?a:v.createElement(WS,US({ref:t},e),a),v.createElement(Xx.Provider,{value:i},s)});function KS({className:e,style:t}){let{prefixCls:n}=v.useContext(Wx);return Yx()?null:v.createElement(`li`,{role:`separator`,className:Y(`${n}-item-divider`,e),style:t})}function qS(){return qS=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},qS.apply(this,arguments)}var JS=v.forwardRef((e,t)=>{let{className:n,title:r,eventKey:i,children:a,...o}=e,{prefixCls:s,classNames:c,styles:l}=v.useContext(Wx),u=`${s}-item-group`;return v.createElement(`li`,qS({ref:t,role:`presentation`},o,{onClick:e=>e.stopPropagation(),className:Y(u,n)}),v.createElement(`div`,{role:`presentation`,className:Y(`${u}-title`,c?.listTitle),style:l?.listTitle,title:typeof r==`string`?r:void 0},r),v.createElement(`ul`,{role:`group`,className:Y(`${u}-list`,c?.list),style:l?.list},a))}),YS=v.forwardRef((e,t)=>{let{eventKey:n,children:r}=e,i=PS(r,Zx(n));return Yx()?i:v.createElement(JS,qS({ref:t},ue(e,[`warnKey`])),i)});function XS(){return XS=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},XS.apply(this,arguments)}function ZS(e,t,n){let{item:r,group:i,submenu:a,divider:o}=t;return(e||[]).map((e,s)=>{if(e&&typeof e==`object`){let{label:c,children:l,key:u,type:d,extra:f,...p}=e,m=u??`tmp-${s}`;return l||d===`group`?d===`group`?v.createElement(i,XS({key:m},p,{title:c}),ZS(l,t,n)):v.createElement(a,XS({key:m},p,{title:c}),ZS(l,t,n)):d===`divider`?v.createElement(o,XS({key:m},p)):v.createElement(r,XS({key:m},p,{extra:f}),c,(!!f||f===0)&&v.createElement(`span`,{className:`${n}-item-extra`},f))}return null}).filter(e=>e)}function QS(e,t,n,r,i){let a=e,o={divider:KS,item:jS,group:YS,submenu:GS,...r};return t&&(a=ZS(t,o,i)),PS(a,n)}function $S(){return $S=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},$S.apply(this,arguments)}var eC=[],tC=v.forwardRef((e,t)=>{let{prefixCls:n=`rc-menu`,rootClassName:r,style:i,className:a,styles:o,classNames:s,tabIndex:c=0,items:l,children:u,direction:d,id:f,mode:p=`vertical`,inlineCollapsed:m,disabled:h,disabledOverflow:g,subMenuOpenDelay:_=.1,subMenuCloseDelay:y=.1,forceSubMenuRender:b,defaultOpenKeys:x,openKeys:S,activeKey:C,defaultActiveFirst:w,selectable:E=!0,multiple:D=!1,defaultSelectedKeys:O,selectedKeys:k,onSelect:A,onDeselect:j,inlineIndent:M=24,motion:N,defaultMotions:P,triggerSubMenuAction:F=`hover`,builtinPlacements:I,itemIcon:L,expandIcon:R,overflowedIndicator:z=`...`,overflowedIndicatorPopupClassName:B,getPopupContainer:V,onClick:H,onOpenChange:U,onKeyDown:W,openAnimation:ee,openTransitionName:te,_internalRenderMenuItem:G,_internalRenderSubMenuItem:ne,_internalComponents:re,popupRender:ie,...K}=e,[q,ae]=v.useMemo(()=>[QS(u,l,eC,re,n),QS(u,l,eC,{},n)],[u,l,re]),[oe,se]=v.useState(!1),J=v.useRef(),ce=dl(f?`rc-menu-uuid-${f}`:`rc-menu-uuid`),le=d===`rtl`,[ue,de]=T(x,S),fe=ue||eC,pe=(e,t=!1)=>{function n(){de(e),U?.(e)}t?(0,bl.flushSync)(n):n()},[me,he]=v.useState(fe),ge=v.useRef(!1),[_e,ve]=v.useMemo(()=>(p===`inline`||p===`vertical`)&&m?[`vertical`,m]:[p,!1],[p,m]),ye=_e===`inline`,[be,xe]=v.useState(_e),[Se,Ce]=v.useState(ve);v.useEffect(()=>{xe(_e),Ce(ve),ge.current&&(ye?de(me):pe(eC))},[_e,ve]);let[we,Te]=v.useState(0),Ee=we>=q.length-1||be!==`horizontal`||g;v.useEffect(()=>{ye&&he(fe)},[fe]),v.useEffect(()=>(ge.current=!0,()=>{ge.current=!1}),[]);let{registerPath:De,unregisterPath:Oe,refreshOverflowKeys:ke,isSubPathKey:Ae,getKeyPath:je,getKeys:Me,getSubPathKeys:Ne}=xS(),Pe=v.useMemo(()=>({registerPath:De,unregisterPath:Oe}),[De,Oe]),Fe=v.useMemo(()=>({isSubPathKey:Ae}),[Ae]);v.useEffect(()=>{ke(Ee?eC:q.slice(we+1).map(e=>e.key))},[we,Ee]);let[Ie,Le]=T(C||w&&q[0]?.key,C),Re=SS(e=>{Le(e)}),ze=SS(()=>{Le(void 0)});(0,v.useImperativeHandle)(t,()=>({list:J.current,focus:e=>{let t=Me(),{elements:n,key2element:r,element2key:i}=mS(t,ce),a=fS(J.current,n),o;o=Ie&&t.includes(Ie)?Ie:a[0]?i.get(a[0]):q.find(e=>!e.props.disabled)?.key;let s=r.get(o);o&&s&&s?.focus?.(e)},findItem:({key:e})=>{let{key2element:t}=mS(Me(),ce);return t.get(e)||null}}));let[Be,Ve]=T(O||[],k),He=v.useMemo(()=>Array.isArray(Be)?Be:Be==null?eC:[Be],[Be]),Ue=e=>{if(E){let{key:t}=e,n=He.includes(t),r;r=D?n?He.filter(e=>e!==t):[...He,t]:[t],Ve(r);let i={...e,selectedKeys:r};n?j?.(i):A?.(i)}!D&&fe.length&&be!==`inline`&&pe(eC)},We=SS(e=>{H?.(ES(e)),Ue(e)}),Ge=SS((e,t)=>{let n=fe.filter(t=>t!==e);if(t)n.push(e);else if(be!==`inline`){let t=Ne(e);n=n.filter(e=>!t.has(e))}pt(fe,n,!0)||pe(n,!0)}),Ke=hS(be,Ie,le,ce,J,Me,je,Le,(e,t)=>{Ge(e,t??!fe.includes(e))},W);v.useEffect(()=>{se(!0)},[]);let qe=v.useMemo(()=>({_internalRenderMenuItem:G,_internalRenderSubMenuItem:ne}),[G,ne]),Je=be!==`horizontal`||g?q:q.map((e,t)=>v.createElement(Kx,{key:e.key,overflowDisabled:t>we,classNames:s,styles:o},e)),Ye=v.createElement(Hv,$S({id:f,ref:J,prefixCls:`${n}-overflow`,component:`ul`,itemComponent:jS,className:Y(n,`${n}-root`,`${n}-${be}`,a,{[`${n}-inline-collapsed`]:Se,[`${n}-rtl`]:le},r),dir:d,style:i,role:`menu`,tabIndex:c,data:Je,renderRawItem:e=>e,renderRawRest:e=>{let t=e.length,n=t?q.slice(-t):null;return v.createElement(GS,{eventKey:bS,title:z,disabled:Ee,internalPopupClose:t===0,popupClassName:B},n)},maxCount:be!==`horizontal`||g?Hv.INVALIDATE:Hv.RESPONSIVE,ssr:`full`,"data-menu-list":!0,onVisibleChange:e=>{Te(e)},onKeyDown:Ke},K));return v.createElement($x.Provider,{value:qe},v.createElement(Vx.Provider,{value:ce},v.createElement(Kx,{prefixCls:n,rootClassName:r,classNames:s,styles:o,mode:be,openKeys:fe,rtl:le,disabled:h,motion:oe?N:null,defaultMotions:oe?P:null,activeKey:Ie,onActive:Re,onInactive:ze,selectedKeys:He,inlineIndent:M,subMenuOpenDelay:_,subMenuCloseDelay:y,forceSubMenuRender:b,builtinPlacements:I,triggerSubMenuAction:F,getPopupContainer:V,itemIcon:L,expandIcon:R,onItemClick:We,onOpenChange:Ge,popupRender:ie},v.createElement(Qx.Provider,{value:Fe},Ye),v.createElement(`div`,{style:{display:`none`},"aria-hidden":!0},v.createElement(Jx.Provider,{value:Pe},ae)))))});tC.Item=jS,tC.SubMenu=GS,tC.ItemGroup=YS,tC.Divider=KS;var nC={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 rC(){return rC=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},rC.apply(this,arguments)}var iC=v.forwardRef((e,t)=>v.createElement(So,rC({},e,{ref:t,icon:nC}))),aC=v.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}}),oC=e=>{let{antCls:t,componentCls:n,colorText:r,footerBg:i,headerHeight:a,headerPadding:o,headerColor:s,footerPadding:c,fontSize:l,bodyBg:u,headerBg:d}=e;return{[n]:{display:`flex`,flex:`auto`,flexDirection:`column`,minHeight:0,background:u,"&, *":{boxSizing:`border-box`},[`&${n}-has-sider`]:{flexDirection:`row`,[`> ${n}, > ${n}-content`]:{width:0}},[`${n}-header, &${n}-footer`]:{flex:`0 0 auto`},"&-rtl":{direction:`rtl`}},[`${n}-header`]:{height:a,padding:o,color:s,lineHeight:X(a),background:d,[`${t}-menu`]:{lineHeight:`inherit`}},[`${n}-footer`]:{padding:c,color:r,fontSize:l,background:i},[`${n}-content`]:{flex:`auto`,color:r,minHeight:0}}},sC=e=>{let{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:i,controlHeightSM:a,marginXXS:o,colorTextLightSolid:s,colorBgContainer:c}=e,l=r*1.25;return{colorBgHeader:`#001529`,colorBgBody:t,colorBgTrigger:`#002140`,bodyBg:t,headerBg:`#001529`,headerHeight:n*2,headerPadding:`0 ${l}px`,headerColor:i,footerPadding:`${a}px ${l}px`,footerBg:t,siderBg:`#001529`,triggerHeight:r+o*2,triggerBg:`#002140`,triggerColor:s,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:c,lightTriggerBg:c,lightTriggerColor:i}},cC=[[`colorBgBody`,`bodyBg`],[`colorBgHeader`,`headerBg`],[`colorBgTrigger`,`triggerBg`]],lC=Ja(`Layout`,oC,sC,{deprecatedTokens:cC}),uC=Ja([`Layout`,`Sider`],e=>{let{componentCls:t,siderBg:n,motionDurationMid:r,motionDurationSlow:i,antCls:a,triggerHeight:o,triggerColor:s,triggerBg:c,headerHeight:l,zeroTriggerWidth:u,zeroTriggerHeight:d,borderRadiusLG:f,lightSiderBg:p,lightTriggerColor:m,lightTriggerBg:h,bodyBg:g}=e;return{[t]:{position:`relative`,minWidth:0,background:n,transition:`all ${r}, background 0s`,"&-has-trigger":{paddingBottom:o},"&-right":{order:1},[`${t}-children`]:{height:`100%`,marginTop:-.1,paddingTop:.1,[`${a}-menu${a}-menu-inline-collapsed`]:{width:`auto`}},[`&-zero-width ${t}-children`]:{overflow:`hidden`},[`${t}-trigger`]:{position:`fixed`,bottom:0,zIndex:1,height:o,color:s,lineHeight:X(o),textAlign:`center`,background:c,cursor:`pointer`,transition:`all ${r}`},[`${t}-zero-width-trigger`]:{position:`absolute`,top:l,insetInlineEnd:e.calc(u).mul(-1).equal(),zIndex:1,width:u,height:d,color:s,fontSize:e.fontSizeXL,display:`flex`,alignItems:`center`,justifyContent:`center`,background:n,borderRadius:`0 ${X(f)} ${X(f)} 0`,cursor:`pointer`,transition:`background-color ${i} ease`,"&::after":{position:`absolute`,inset:0,background:`transparent`,transition:`all ${i}`,content:`""`},"&:hover::after":{background:`rgba(255, 255, 255, 0.2)`},"&-right":{insetInlineStart:e.calc(u).mul(-1).equal(),borderRadius:`${X(f)} 0 0 ${X(f)}`}},"&-light":{background:p,[`${t}-trigger`]:{color:m,background:h},[`${t}-zero-width-trigger`]:{color:m,background:h,border:`1px solid ${g}`,borderInlineStart:0}}}}},sC,{deprecatedTokens:cC}),dC={xs:`479.98px`,sm:`575.98px`,md:`767.98px`,lg:`991.98px`,xl:`1199.98px`,xxl:`1599.98px`,xxxl:`1839.98px`},fC=e=>!Number.isNaN(Number.parseFloat(e))&&Number.isFinite(Number(e)),pC=v.createContext({}),mC=(()=>{let e=0;return(t=``)=>(e+=1,`${t}${e}`)})(),hC=v.forwardRef((e,t)=>{let{prefixCls:n,className:r,trigger:i,children:a,defaultCollapsed:o=!1,theme:s=`dark`,style:c={},collapsible:l=!1,reverseArrow:u=!1,width:d=200,collapsedWidth:f=80,zeroWidthTriggerStyle:p,breakpoint:m,onCollapse:h,onBreakpoint:g,..._}=e,{siderHook:y}=(0,v.useContext)(aC),[b,x]=(0,v.useState)(`collapsed`in e?e.collapsed:o),[S,C]=(0,v.useState)(!1);(0,v.useEffect)(()=>{`collapsed`in e&&x(e.collapsed)},[e.collapsed]);let w=(t,n)=>{`collapsed`in e||x(t),h?.(t,n)},{getPrefixCls:T,direction:E}=(0,v.useContext)(Je),D=T(`layout-sider`,n),[O,k]=uC(D),A=(0,v.useRef)(null);A.current=e=>{C(e.matches),g?.(e.matches),b!==e.matches&&w(e.matches,`responsive`)},(0,v.useEffect)(()=>{function e(e){return A.current?.(e)}let t;return window?.matchMedia!==void 0&&m&&m in dC&&(t=window.matchMedia(`screen and (max-width: ${dC[m]})`),typeof t?.addEventListener==`function`&&t.addEventListener(`change`,e),e(t)),()=>{typeof t?.removeEventListener==`function`&&t.removeEventListener(`change`,e)}},[m]),(0,v.useEffect)(()=>{let e=mC(`ant-sider-`);return y.addSider(e),()=>y.removeSider(e)},[]);let j=()=>{w(!b,`clickTrigger`)},M=ue(_,[`collapsed`]),N=b?f:d,P=fC(N)?`${N}px`:String(N),F=Number.parseFloat(String(f||0))===0?v.createElement(`span`,{onClick:j,className:Y(`${D}-zero-width-trigger`,`${D}-zero-width-trigger-${u?`right`:`left`}`),style:p},i||v.createElement(iC,null)):null,I=E===`rtl`==!u,L={expanded:I?v.createElement(qf,null):v.createElement(jx,null),collapsed:I?v.createElement(jx,null):v.createElement(qf,null)}[b?`collapsed`:`expanded`],R=i===null?null:F||v.createElement(`div`,{className:`${D}-trigger`,onClick:j,style:{width:P}},i||L),z={...c,flex:`0 0 ${P}`,maxWidth:P,minWidth:P,width:P},B=Y(D,`${D}-${s}`,{[`${D}-collapsed`]:!!b,[`${D}-has-trigger`]:l&&i!==null&&!F,[`${D}-below`]:!!S,[`${D}-zero-width`]:Number.parseFloat(P)===0},r,O,k),V=v.useMemo(()=>({siderCollapsed:b}),[b]);return v.createElement(pC.Provider,{value:V},v.createElement(`aside`,{className:B,...M,style:z,ref:t},v.createElement(`div`,{className:`${D}-children`},a),l||S&&F?R:null))}),gC={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 _C(){return _C=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},_C.apply(this,arguments)}var vC=v.forwardRef((e,t)=>v.createElement(So,_C({},e,{ref:t,icon:gC}))),yC=(0,v.createContext)({prefixCls:``,firstLevel:!0,inlineCollapsed:!1,styles:null,classNames:null}),bC=e=>{let{prefixCls:t,className:n,dashed:r,...i}=e,{getPrefixCls:a}=v.useContext(Je),o=Y({[`${a(`menu`,t)}-item-divider-dashed`]:!!r},n);return v.createElement(KS,{className:o,...i})},xC=e=>{let{className:t,children:n,icon:r,title:i,danger:a,extra:o}=e,{prefixCls:s,firstLevel:c,direction:l,disableMenuItemTitleTooltip:u,tooltip:d,inlineCollapsed:f,styles:p,classNames:m}=v.useContext(yC),h=e=>{let t=n?.[0],i=v.createElement(`span`,{className:Y(`${s}-title-content`,c?m?.itemContent:m?.subMenu?.itemContent,{[`${s}-title-content-with-extra`]:!!o||o===0}),style:c?p?.itemContent:p?.subMenu?.itemContent},n);return(!r||v.isValidElement(n)&&n.type===`span`)&&n&&e&&c&&typeof t==`string`?v.createElement(`div`,{className:`${s}-inline-collapsed-noicon`},t.charAt(0)):i},{siderCollapsed:g}=v.useContext(pC),_=i;i===void 0?_=c?n:``:i===!1&&(_=``);let y=d===!1?void 0:d,b=y&&y.title!==void 0?y.title:_,x={...y??null,title:b};!g&&!f&&(x.title=null,x.open=!1);let S=de(n).length,C=v.createElement(jS,{...ue(e,[`title`,`icon`,`danger`]),className:Y(c?m?.item:m?.subMenu?.item,{[`${s}-item-danger`]:a,[`${s}-item-only-child`]:(r?S+1:S)===1},t),style:{...c?p?.item:p?.subMenu?.item,...e.style},title:typeof i==`string`?i:void 0},ou(r,e=>({className:Y(`${s}-item-icon`,c?m?.itemIcon:m?.subMenu?.itemIcon,e.className),style:{...c?p?.itemIcon:p?.subMenu?.itemIcon,...e.style}})),h(f));if(!u&&d!==!1){let e=y&&y.placement?y.placement:l===`rtl`?`left`:`right`,t=`${s}-inline-collapsed-tooltip`,n=e=>({...e,root:Y(t,e?.root)}),r=y&&typeof y.classNames==`function`?e=>n(y.classNames(e)):n(y?.classNames);C=v.createElement(_x,{...x,placement:e,classNames:r},C)}return C},SC=v.createContext(null),CC=v.forwardRef((e,t)=>{let{children:n,...r}=e,i=v.useContext(SC),a=v.useMemo(()=>({...i,...r}),[i,r.prefixCls,r.mode,r.selectable,r.rootClassName]),o=B(n),s=L(t,o?V(n):null);return v.createElement(SC.Provider,{value:a},v.createElement(Hh,{space:!0},o?v.cloneElement(n,{ref:s}):n))}),wC=e=>{let{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:i,lineWidth:a,lineType:o,itemPaddingInline:s}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${X(a)} ${o} ${i}`,boxShadow:`none`,"&::after":{display:`block`,clear:`both`,height:0,content:`"\\20"`},[`${t}-item, ${t}-submenu`]:{position:`relative`,display:`inline-block`,verticalAlign:`bottom`,paddingInline:s},[`> ${t}-item:hover,
177
177
  > ${t}-item-active,
178
- > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:`transparent`},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color`,`background-color`].map(e=>`${e} ${n}`).join(`,`)},[`${t}-submenu-arrow`]:{display:`none`}}}},wC=({componentCls:e,menuArrowOffset:t,calc:n})=>({[`${e}-rtl`]:{direction:`rtl`},[`${e}-submenu-rtl`]:{transformOrigin:`100% 0`},[`${e}-rtl${e}-vertical,
179
- ${e}-submenu-rtl ${e}-vertical`]:{[`${e}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${X(n(t).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${X(t)})`}}}}),TC=e=>Ha(e),EC=(e,t)=>{let{componentCls:n,itemColor:r,itemSelectedColor:i,subMenuItemSelectedColor:a,groupTitleColor:o,itemBg:s,subMenuItemBg:c,itemSelectedBg:l,activeBarHeight:u,activeBarWidth:d,activeBarBorderWidth:f,motionDurationSlow:p,motionEaseInOut:m,motionEaseOut:h,itemPaddingInline:g,motionDurationMid:_,itemHoverColor:v,lineType:y,colorSplit:b,itemDisabledColor:x,dangerItemColor:S,dangerItemHoverColor:C,dangerItemSelectedColor:w,dangerItemActiveBg:T,dangerItemSelectedBg:E,popupBg:D,itemHoverBg:O,itemActiveBg:k,menuSubMenuBg:A,horizontalItemSelectedColor:j,horizontalItemSelectedBg:M,horizontalItemBorderRadius:N,horizontalItemHoverBg:P}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:s,[`&${n}-root:focus-visible`]:{...TC(e)},[`${n}-item`]:{"&-group-title, &-extra":{color:o}},[`${n}-submenu-selected > ${n}-submenu-title`]:{color:a},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:{...TC(e)}},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${x} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:v}},[`${n}-submenu:not(${n}-submenu-selected)`]:{[`> ${n}-submenu-title:hover`]:{color:v}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:O},"&:active":{backgroundColor:k}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:O},"&:active":{backgroundColor:k}}},[`${n}-item-danger`]:{color:S,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:C}},[`&${n}-item:active`]:{background:T}},[`${n}-item a`]:{"&, &:hover":{color:`inherit`}},[`${n}-item-selected`]:{color:i,[`&${n}-item-danger`]:{color:w},"a, a:hover":{color:`inherit`}},[`& ${n}-item-selected`]:{backgroundColor:l,[`&${n}-item-danger`]:{backgroundColor:E}},[`&${n}-submenu > ${n}`]:{backgroundColor:A},[`&${n}-popup > ${n}`]:{backgroundColor:D},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:D},[`&${n}-horizontal`]:{...t===`dark`?{borderBottom:0}:{},[`> ${n}-item, > ${n}-submenu`]:{top:f,marginTop:e.calc(f).mul(-1).equal(),marginBottom:0,borderRadius:N,"&::after":{position:`absolute`,insetInline:g,bottom:0,borderBottom:`${X(u)} solid transparent`,transition:`border-color ${p} ${m}`,content:`""`},"&:hover, &-active, &-open":{background:P,"&::after":{borderBottomWidth:u,borderBottomColor:j}},"&-selected":{color:j,backgroundColor:M,"&:hover":{backgroundColor:M},"&::after":{borderBottomWidth:u,borderBottomColor:j}}}},[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${X(f)} ${y} ${b}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:c},[`${n}-item`]:{position:`relative`,"&::after":{position:`absolute`,insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${X(d)} solid ${i}`,transform:`scaleY(0.0001)`,opacity:0,transition:[`transform`,`opacity`].map(e=>`${e} ${_} ${h}`).join(`,`),content:`""`},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:w}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:`scaleY(1)`,opacity:1,transition:[`transform`,`opacity`].map(e=>`${e} ${_} ${m}`).join(`,`)}}}}}},DC=e=>{let{componentCls:t,itemHeight:n,itemMarginInline:r,padding:i,menuArrowSize:a,marginXS:o,itemMarginBlock:s,itemWidth:c,itemPaddingInline:l}=e,u=e.calc(a).add(i).add(o).equal();return{[`${t}-item`]:{position:`relative`,overflow:`hidden`},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:X(n),paddingInline:l,overflow:`hidden`,textOverflow:`ellipsis`,marginInline:r,marginBlock:s,width:c},[`> ${t}-item,
178
+ > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:`transparent`},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color`,`background-color`].map(e=>`${e} ${n}`).join(`,`)},[`${t}-submenu-arrow`]:{display:`none`}}}},TC=({componentCls:e,menuArrowOffset:t,calc:n})=>({[`${e}-rtl`]:{direction:`rtl`},[`${e}-submenu-rtl`]:{transformOrigin:`100% 0`},[`${e}-rtl${e}-vertical,
179
+ ${e}-submenu-rtl ${e}-vertical`]:{[`${e}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${X(n(t).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${X(t)})`}}}}),EC=e=>Ha(e),DC=(e,t)=>{let{componentCls:n,itemColor:r,itemSelectedColor:i,subMenuItemSelectedColor:a,groupTitleColor:o,itemBg:s,subMenuItemBg:c,itemSelectedBg:l,activeBarHeight:u,activeBarWidth:d,activeBarBorderWidth:f,motionDurationSlow:p,motionEaseInOut:m,motionEaseOut:h,itemPaddingInline:g,motionDurationMid:_,itemHoverColor:v,lineType:y,colorSplit:b,itemDisabledColor:x,dangerItemColor:S,dangerItemHoverColor:C,dangerItemSelectedColor:w,dangerItemActiveBg:T,dangerItemSelectedBg:E,popupBg:D,itemHoverBg:O,itemActiveBg:k,menuSubMenuBg:A,horizontalItemSelectedColor:j,horizontalItemSelectedBg:M,horizontalItemBorderRadius:N,horizontalItemHoverBg:P}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:s,[`&${n}-root:focus-visible`]:{...EC(e)},[`${n}-item`]:{"&-group-title, &-extra":{color:o}},[`${n}-submenu-selected > ${n}-submenu-title`]:{color:a},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:{...EC(e)}},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${x} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:v}},[`${n}-submenu:not(${n}-submenu-selected)`]:{[`> ${n}-submenu-title:hover`]:{color:v}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:O},"&:active":{backgroundColor:k}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:O},"&:active":{backgroundColor:k}}},[`${n}-item-danger`]:{color:S,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:C}},[`&${n}-item:active`]:{background:T}},[`${n}-item a`]:{"&, &:hover":{color:`inherit`}},[`${n}-item-selected`]:{color:i,[`&${n}-item-danger`]:{color:w},"a, a:hover":{color:`inherit`}},[`& ${n}-item-selected`]:{backgroundColor:l,[`&${n}-item-danger`]:{backgroundColor:E}},[`&${n}-submenu > ${n}`]:{backgroundColor:A},[`&${n}-popup > ${n}`]:{backgroundColor:D},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:D},[`&${n}-horizontal`]:{...t===`dark`?{borderBottom:0}:{},[`> ${n}-item, > ${n}-submenu`]:{top:f,marginTop:e.calc(f).mul(-1).equal(),marginBottom:0,borderRadius:N,"&::after":{position:`absolute`,insetInline:g,bottom:0,borderBottom:`${X(u)} solid transparent`,transition:`border-color ${p} ${m}`,content:`""`},"&:hover, &-active, &-open":{background:P,"&::after":{borderBottomWidth:u,borderBottomColor:j}},"&-selected":{color:j,backgroundColor:M,"&:hover":{backgroundColor:M},"&::after":{borderBottomWidth:u,borderBottomColor:j}}}},[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${X(f)} ${y} ${b}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:c},[`${n}-item`]:{position:`relative`,"&::after":{position:`absolute`,insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${X(d)} solid ${i}`,transform:`scaleY(0.0001)`,opacity:0,transition:[`transform`,`opacity`].map(e=>`${e} ${_} ${h}`).join(`,`),content:`""`},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:w}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:`scaleY(1)`,opacity:1,transition:[`transform`,`opacity`].map(e=>`${e} ${_} ${m}`).join(`,`)}}}}}},OC=e=>{let{componentCls:t,itemHeight:n,itemMarginInline:r,padding:i,menuArrowSize:a,marginXS:o,itemMarginBlock:s,itemWidth:c,itemPaddingInline:l}=e,u=e.calc(a).add(i).add(o).equal();return{[`${t}-item`]:{position:`relative`,overflow:`hidden`},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:X(n),paddingInline:l,overflow:`hidden`,textOverflow:`ellipsis`,marginInline:r,marginBlock:s,width:c},[`> ${t}-item,
180
180
  > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:X(n)},[`${t}-item-group-list ${t}-submenu-title,
181
- ${t}-submenu-title`]:{paddingInlineEnd:u}}},OC=e=>{let{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:i,dropdownWidth:a,controlHeightLG:o,motionEaseOut:s,paddingXL:c,itemMarginInline:l,fontSizeLG:u,motionDurationFast:d,motionDurationSlow:f,paddingXS:p,boxShadowSecondary:m,collapsedWidth:h,collapsedIconSize:g}=e,_={height:r,lineHeight:X(r),listStylePosition:`inside`,listStyleType:`disc`};return[{[t]:{"&-inline, &-vertical":{[`&${t}-root`]:{boxShadow:`none`},...DC(e)}},[`${t}-submenu-popup`]:{[`${t}-vertical`]:{...DC(e),boxShadow:m}}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:a,maxHeight:`calc(100vh - ${X(e.calc(o).mul(2.5).equal())})`,padding:`0`,overflow:`hidden`,borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:`hidden`,overflowY:`auto`}}},{[`${t}-inline`]:{width:`100%`,[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:`flex`,alignItems:`center`,transition:[`border-color ${f}`,`background-color ${f}`,`padding ${d} ${s}`].join(`,`),[`> ${t}-title-content`]:{flex:`auto`,minWidth:0,overflow:`hidden`,textOverflow:`ellipsis`},"> *":{flex:`none`}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:`none`,[`& > ${t}-submenu > ${t}-submenu-title`]:_,[`& ${t}-item-group-title`]:{paddingInlineStart:c}},[`${t}-item`]:_}},{[`${t}-inline-collapsed`]:{width:h,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:u,textAlign:`center`}}},[`> ${t}-item,
181
+ ${t}-submenu-title`]:{paddingInlineEnd:u}}},kC=e=>{let{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:i,dropdownWidth:a,controlHeightLG:o,motionEaseOut:s,paddingXL:c,itemMarginInline:l,fontSizeLG:u,motionDurationFast:d,motionDurationSlow:f,paddingXS:p,boxShadowSecondary:m,collapsedWidth:h,collapsedIconSize:g}=e,_={height:r,lineHeight:X(r),listStylePosition:`inside`,listStyleType:`disc`};return[{[t]:{"&-inline, &-vertical":{[`&${t}-root`]:{boxShadow:`none`},...OC(e)}},[`${t}-submenu-popup`]:{[`${t}-vertical`]:{...OC(e),boxShadow:m}}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:a,maxHeight:`calc(100vh - ${X(e.calc(o).mul(2.5).equal())})`,padding:`0`,overflow:`hidden`,borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:`hidden`,overflowY:`auto`}}},{[`${t}-inline`]:{width:`100%`,[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:`flex`,alignItems:`center`,transition:[`border-color ${f}`,`background-color ${f}`,`padding ${d} ${s}`].join(`,`),[`> ${t}-title-content`]:{flex:`auto`,minWidth:0,overflow:`hidden`,textOverflow:`ellipsis`},"> *":{flex:`none`}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:`none`,[`& > ${t}-submenu > ${t}-submenu-title`]:_,[`& ${t}-item-group-title`]:{paddingInlineStart:c}},[`${t}-item`]:_}},{[`${t}-inline-collapsed`]:{width:h,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:u,textAlign:`center`}}},[`> ${t}-item,
182
182
  > ${t}-item-group > ${t}-item-group-list > ${t}-item,
183
183
  > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,
184
184
  > ${t}-submenu > ${t}-submenu-title`]:{display:`flex`,alignItems:`center`,justifyContent:`center`,insetInlineStart:0,paddingInline:`calc(50% - ${X(e.calc(g).div(2).equal())} - ${X(l)})`,textOverflow:`clip`,[`
185
185
  ${t}-submenu-arrow,
186
186
  ${t}-submenu-expand-icon
187
- `]:{opacity:0},[`> ${t}-title-content`]:{width:0,opacity:0,overflow:`hidden`},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:g,lineHeight:X(r),"+ span":{display:`inline-block`,width:0,opacity:0,overflow:`hidden`,marginInlineStart:0}}},[`${t}-item-icon, ${n}`]:{display:`inline-block`},"&-tooltip":{pointerEvents:`none`,[`${t}-item-icon, ${n}`]:{display:`none`},"a, a:hover":{color:i}},[`${t}-item-group-title`]:{...Ra,paddingInline:p}}}]},kC=e=>{let{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:i,motionEaseOut:a,iconCls:o,iconSize:s,iconMarginInlineEnd:c}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:`relative`,display:`block`,margin:0,whiteSpace:`nowrap`,cursor:`pointer`,transition:[`border-color ${n}`,`background-color ${n}`,`padding calc(${n} + 0.1s) ${i}`].join(`,`),[`${t}-item-icon, ${o}`]:{minWidth:s,fontSize:s,transition:[`font-size ${r} ${a}`,`margin ${n} ${i}`,`color ${n}`].join(`,`),"+ span":{marginInlineStart:c,opacity:1,transition:[`opacity ${n} ${i}`,`margin ${n}`,`color ${n}`].join(`,`)}},[`${t}-item-icon`]:{...Ba()},[`&${t}-item-only-child`]:{[`> ${o}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:`none !important`,cursor:`not-allowed`,"&::after":{borderColor:`transparent !important`},a:{color:`inherit !important`,cursor:`not-allowed`,pointerEvents:`none`},[`> ${t}-submenu-title`]:{color:`inherit !important`,cursor:`not-allowed`}}}},AC=e=>{let{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:i,menuArrowSize:a,menuArrowOffset:o}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:`absolute`,top:`50%`,insetInlineEnd:e.margin,width:a,color:`currentcolor`,transform:`translateY(-50%)`,transition:[`transform`,`opacity`].map(e=>`${e} ${n}`).join(`,`)},"&-arrow":{"&::before, &::after":{position:`absolute`,width:e.calc(a).mul(.6).equal(),height:e.calc(a).mul(.15).equal(),backgroundColor:`currentcolor`,borderRadius:i,transition:[`background-color`,`transform`,`top`,`color`].map(e=>`${e} ${n} ${r}`).join(`,`),content:`""`},"&::before":{transform:`rotate(45deg) translateY(${X(e.calc(o).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${X(o)})`}}}}},jC=e=>{let{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:i,motionDurationMid:a,motionEaseInOut:o,paddingXS:s,padding:c,colorSplit:l,lineWidth:u,zIndexPopup:d,borderRadiusLG:f,subMenuItemBorderRadius:p,menuArrowSize:m,menuArrowOffset:h,lineType:g,groupTitleLineHeight:_,groupTitleFontSize:v}=e;return[{"":{[n]:{...Va(),"&-hidden":{display:`none`}}},[`${n}-submenu-hidden`]:{display:`none`}},{[n]:{...za(e),...Va(),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:`${X(s)} ${X(c)}`,fontSize:v,lineHeight:_,transition:`all ${i}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color`,`background-color`].map(e=>`${e} ${i} ${o}`).join(`,`)},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${i}`,`background-color ${i}`,`padding ${a}`].map(e=>`${e} ${o}`).join(`,`)},[`${n}-submenu ${n}-sub`]:{cursor:`initial`,transition:[`background-color`,`padding`].map(e=>`${e} ${i} ${o}`).join(`,`)},[`${n}-title-content`]:{transition:`color ${i}`,"&-with-extra":{display:`inline-flex`,alignItems:`center`,width:`100%`},[`> ${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:l,borderStyle:g,borderWidth:0,borderTopWidth:u,marginBlock:u,padding:0,"&-dashed":{borderStyle:`dashed`}},...kC(e),[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${X(e.calc(r).mul(2).equal())} ${X(c)}`}}},"&-submenu":{"&-popup":{position:`absolute`,zIndex:d,borderRadius:f,boxShadow:`none`,transformOrigin:`0 0`,[`&${n}-submenu`]:{background:`transparent`},"&::before":{position:`absolute`,inset:0,zIndex:-1,width:`100%`,height:`100%`,opacity:0,content:`""`},[`> ${n}`]:{borderRadius:f,...kC(e),...AC(e),[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:p},[`${n}-submenu-title::after`]:{transition:`transform ${i} ${o}`}}},"&-placement-leftTop, &-placement-bottomRight":{transformOrigin:`100% 0`},"&-placement-leftBottom, &-placement-topRight":{transformOrigin:`100% 100%`},"&-placement-rightBottom, &-placement-topLeft":{transformOrigin:`0 100%`},"&-placement-bottomLeft, &-placement-rightTop":{transformOrigin:`0 0`},"&-placement-leftTop, &-placement-leftBottom":{paddingInlineEnd:e.paddingXS},"&-placement-rightTop, &-placement-rightBottom":{paddingInlineStart:e.paddingXS},"&-placement-topRight, &-placement-topLeft":{paddingBottom:e.paddingXS},"&-placement-bottomRight, &-placement-bottomLeft":{paddingTop:e.paddingXS}},...AC(e),[`&-inline-collapsed ${n}-submenu-arrow,
188
- &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${X(h)})`},"&::after":{transform:`rotate(45deg) translateX(${X(e.calc(h).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${X(e.calc(m).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${X(e.calc(h).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${X(h)})`}}}},{[`${t}-layout-header`]:{[n]:{lineHeight:`inherit`}}}]},MC=e=>{let{colorPrimary:t,colorError:n,colorTextDisabled:r,colorErrorBg:i,colorText:a,colorTextDescription:o,colorBgContainer:s,colorFillAlter:c,colorFillContent:l,lineWidth:u,lineWidthBold:d,controlItemBgActive:f,colorBgTextHover:p,controlHeightLG:m,lineHeight:h,colorBgElevated:g,marginXXS:_,padding:v,fontSize:y,controlHeightSM:b,fontSizeLG:x,colorTextLightSolid:S,colorErrorHover:C}=e,w=e.activeBarWidth??0,T=e.activeBarBorderWidth??u,E=e.itemMarginInline??e.marginXXS,D=new ki(S).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:a,itemColor:a,colorItemTextHover:a,itemHoverColor:a,colorItemTextHoverHorizontal:t,horizontalItemHoverColor:t,colorGroupTitle:o,groupTitleColor:o,colorItemTextSelected:t,itemSelectedColor:t,subMenuItemSelectedColor:t,colorItemTextSelectedHorizontal:t,horizontalItemSelectedColor:t,colorItemBg:s,itemBg:s,colorItemBgHover:p,itemHoverBg:p,colorItemBgActive:l,itemActiveBg:f,colorSubItemBg:c,subMenuItemBg:c,colorItemBgSelected:f,itemSelectedBg:f,colorItemBgSelectedHorizontal:`transparent`,horizontalItemSelectedBg:`transparent`,colorActiveBarWidth:0,activeBarWidth:w,colorActiveBarHeight:d,activeBarHeight:d,colorActiveBarBorderSize:u,activeBarBorderWidth:T,colorItemTextDisabled:r,itemDisabledColor:r,colorDangerItemText:n,dangerItemColor:n,colorDangerItemTextHover:n,dangerItemHoverColor:n,colorDangerItemTextSelected:n,dangerItemSelectedColor:n,colorDangerItemBgActive:i,dangerItemActiveBg:i,colorDangerItemBgSelected:i,dangerItemSelectedBg:i,itemMarginInline:E,horizontalItemBorderRadius:0,horizontalItemHoverBg:`transparent`,itemHeight:m,groupTitleLineHeight:h,collapsedWidth:m*2,popupBg:g,itemMarginBlock:_,itemPaddingInline:v,horizontalLineHeight:`${m*1.15}px`,iconSize:y,iconMarginInlineEnd:b-y,collapsedIconSize:x,groupTitleFontSize:y,darkItemDisabledColor:new ki(S).setA(.25).toRgbString(),darkItemColor:D,darkDangerItemColor:n,darkItemBg:`#001529`,darkPopupBg:`#001529`,darkSubMenuItemBg:`#000c17`,darkItemSelectedColor:S,darkItemSelectedBg:t,darkDangerItemSelectedBg:n,darkItemHoverBg:`transparent`,darkGroupTitleColor:D,darkItemHoverColor:S,darkDangerItemHoverColor:C,darkDangerItemSelectedColor:S,darkDangerItemActiveBg:n,itemWidth:w?`calc(100% + ${T}px)`:`calc(100% - ${E*2}px)`}},NC=(e,t=e,n=!0)=>Ja(`Menu`,e=>{let{colorBgElevated:t,controlHeightLG:n,fontSize:r,darkItemColor:i,darkDangerItemColor:a,darkItemBg:o,darkSubMenuItemBg:s,darkItemSelectedColor:c,darkItemSelectedBg:l,darkDangerItemSelectedBg:u,darkItemHoverBg:d,darkGroupTitleColor:f,darkItemHoverColor:p,darkItemDisabledColor:m,darkDangerItemHoverColor:h,darkDangerItemSelectedColor:g,darkDangerItemActiveBg:_,popupBg:v,darkPopupBg:y}=e,b=e.calc(r).div(7).mul(5).equal(),x=si(e,{menuArrowSize:b,menuHorizontalHeight:e.calc(n).mul(1.15).equal(),menuArrowOffset:e.calc(b).mul(.25).equal(),menuSubMenuBg:t,calc:e.calc,popupBg:v}),S=si(x,{itemColor:i,itemHoverColor:p,groupTitleColor:f,itemSelectedColor:c,subMenuItemSelectedColor:c,itemBg:o,popupBg:y,subMenuItemBg:s,itemActiveBg:`transparent`,itemSelectedBg:l,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:d,itemDisabledColor:m,dangerItemColor:a,dangerItemHoverColor:h,dangerItemSelectedColor:g,dangerItemActiveBg:_,dangerItemSelectedBg:u,menuSubMenuBg:s,horizontalItemSelectedColor:c,horizontalItemSelectedBg:l});return[jC(x),CC(x),OC(x),EC(x,`light`),EC(S,`dark`),wC(x),Xd(x),bf(x,`slide-up`),bf(x,`slide-down`),Ff(x,`zoom-big`)]},MC,{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),PC=e=>{let{popupClassName:t,icon:n,title:r,theme:i}=e,a=v.useContext(vC),{prefixCls:o,inlineCollapsed:s,theme:c,classNames:l,styles:u}=a,d=Xx(),f;if(!n)f=s&&!d.length&&r&&typeof r==`string`?v.createElement(`div`,{className:`${o}-inline-collapsed-noicon`},r.charAt(0)):v.createElement(`span`,{className:`${o}-title-content`},r);else{let e=v.isValidElement(r)&&r.type===`span`;f=v.createElement(v.Fragment,null,ou(n,e=>({className:Y(e.className,`${o}-item-icon`,l?.itemIcon),style:{...e.style,...u?.itemIcon}})),e?r:v.createElement(`span`,{className:`${o}-title-content`},r))}let p=v.useMemo(()=>({...a,firstLevel:!1}),[a]),[m]=Lc(`Menu`);return v.createElement(vC.Provider,{value:p},v.createElement(WS,{...ue(e,[`icon`]),title:f,classNames:{list:l?.subMenu?.list,listTitle:l?.subMenu?.itemTitle},styles:{list:u?.subMenu?.list,listTitle:u?.subMenu?.itemTitle},popupClassName:Y(o,t,l?.popup?.root,`${o}-${i||c}`),popupStyle:{zIndex:m,...e.popupStyle,...u?.popup?.root}}))};function FC(e){return e===null||e===!1}var IC={item:bC,submenu:PC,divider:yC},LC=(0,v.forwardRef)((e,t)=>{let n=v.useContext(xC),r=n||{},{prefixCls:i,className:a,style:o,theme:s=`light`,expandIcon:c,_internalDisableMenuItemTitleTooltip:l,tooltip:u,inlineCollapsed:d,siderCollapsed:f,rootClassName:p,mode:m,selectable:h,onClick:g,overflowedIndicatorPopupClassName:_,classNames:b,styles:x,...S}=e,{menu:C}=v.useContext(Je),{getPrefixCls:w,getPopupContainer:T,direction:E,className:D,style:O,classNames:k,styles:A}=Ze(`menu`),j=w(),M=ue(S,[`collapsedWidth`]);r.validator?.({mode:m});let N=y((...e)=>{g?.(...e),r.onClick?.()}),P=r.mode||m,F=h??r.selectable,I=d??f,L={...e,mode:P,inlineCollapsed:I,selectable:F,theme:s},[R,z]=Dc([k,b],[A,x],{props:L},{popup:{_default:`root`},subMenu:{_default:`item`}}),B={horizontal:{motionName:`${j}-slide-up`},inline:yd(j),other:{motionName:`${j}-zoom-big`}},V=w(`menu`,i||r.prefixCls),H=Yc(V),[U,W]=NC(V,H,!n),ee=Y(`${V}-${s}`,D,a),te=v.useMemo(()=>{if(typeof c==`function`||FC(c))return c||null;if(typeof r.expandIcon==`function`||FC(r.expandIcon))return r.expandIcon||null;if(typeof C?.expandIcon==`function`||FC(C?.expandIcon))return C?.expandIcon||null;let e=c??r?.expandIcon??C?.expandIcon;return ou(e,{className:Y(`${V}-submenu-expand-icon`,v.isValidElement(e)?e.props?.className:void 0)})},[c,r?.expandIcon,C?.expandIcon,V]),G=v.useMemo(()=>({prefixCls:V,inlineCollapsed:I||!1,direction:E,firstLevel:!0,theme:s,mode:P,disableMenuItemTitleTooltip:l,tooltip:u,classNames:R,styles:z}),[V,I,E,l,s,P,R,z,u]);return v.createElement(xC.Provider,{value:null},v.createElement(vC.Provider,{value:G},v.createElement(eC,{getPopupContainer:T,overflowedIndicator:v.createElement(_C,null),overflowedIndicatorPopupClassName:Y(V,`${V}-${s}`,_),classNames:{list:R.list,listTitle:R.itemTitle},styles:{list:z.list,listTitle:z.itemTitle},mode:P,selectable:F,onClick:N,...M,inlineCollapsed:I,style:{...z.root,...O,...o},className:ee,prefixCls:V,direction:E,defaultMotions:B,expandIcon:te,ref:t,rootClassName:Y(p,U,r.rootClassName,W,H,R.root),_internalComponents:IC})))}),RC=(0,v.forwardRef)((e,t)=>{let n=(0,v.useRef)(null),r=v.useContext(fC);return(0,v.useImperativeHandle)(t,()=>({menu:n.current,focus:e=>{n.current?.focus(e)}})),v.createElement(LC,{ref:n,...e,...r})});RC.Item=bC,RC.SubMenu=PC,RC.Divider=yC,RC.ItemGroup=JS;var zC=e=>{let{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:i}=e,a=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${a}`]:{[`&${a}-danger:not(${a}-disabled)`]:{color:r,"&:hover":{color:i,backgroundColor:r}}}}}},BC=e=>{let{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:i,sizePopupArrow:a,antCls:o,iconCls:s,motionDurationMid:c,paddingBlock:l,fontSize:u,dropdownEdgeChildPadding:d,colorTextDisabled:f,fontSizeIcon:p,controlPaddingHorizontal:m,colorBgElevated:h}=e;return[{[t]:{position:`absolute`,top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:`block`,"&::before":{position:`absolute`,insetBlock:e.calc(a).div(2).sub(i).equal(),zIndex:-9999,opacity:1e-4,content:`""`},"&-menu-vertical":{maxHeight:`100vh`,overflowY:`auto`},[`&-trigger${o}-btn`]:{[`& > ${s}-down, & > ${o}-btn-icon > ${s}-down`]:{fontSize:p}},[`${t}-wrap`]:{position:`relative`,[`${o}-btn > ${s}-down`]:{fontSize:p},[`${s}-down::before`]:{transition:`transform ${c}`}},[`${t}-wrap-open`]:{[`${s}-down::before`]:{transform:`rotate(180deg)`}},"&-hidden, &-menu-hidden, &-menu-submenu-hidden":{display:`none`},[`&${o}-slide-down-enter${o}-slide-down-enter-active${t}-placement-bottomLeft,
187
+ `]:{opacity:0},[`> ${t}-title-content`]:{width:0,opacity:0,overflow:`hidden`},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:g,lineHeight:X(r),"+ span":{display:`inline-block`,width:0,opacity:0,overflow:`hidden`,marginInlineStart:0}}},[`${t}-item-icon, ${n}`]:{display:`inline-block`},"&-tooltip":{pointerEvents:`none`,[`${t}-item-icon, ${n}`]:{display:`none`},"a, a:hover":{color:i}},[`${t}-item-group-title`]:{...Ra,paddingInline:p}}}]},AC=e=>{let{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:i,motionEaseOut:a,iconCls:o,iconSize:s,iconMarginInlineEnd:c}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:`relative`,display:`block`,margin:0,whiteSpace:`nowrap`,cursor:`pointer`,transition:[`border-color ${n}`,`background-color ${n}`,`padding calc(${n} + 0.1s) ${i}`].join(`,`),[`${t}-item-icon, ${o}`]:{minWidth:s,fontSize:s,transition:[`font-size ${r} ${a}`,`margin ${n} ${i}`,`color ${n}`].join(`,`),"+ span":{marginInlineStart:c,opacity:1,transition:[`opacity ${n} ${i}`,`margin ${n}`,`color ${n}`].join(`,`)}},[`${t}-item-icon`]:{...Ba()},[`&${t}-item-only-child`]:{[`> ${o}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:`none !important`,cursor:`not-allowed`,"&::after":{borderColor:`transparent !important`},a:{color:`inherit !important`,cursor:`not-allowed`,pointerEvents:`none`},[`> ${t}-submenu-title`]:{color:`inherit !important`,cursor:`not-allowed`}}}},jC=e=>{let{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:i,menuArrowSize:a,menuArrowOffset:o}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:`absolute`,top:`50%`,insetInlineEnd:e.margin,width:a,color:`currentcolor`,transform:`translateY(-50%)`,transition:[`transform`,`opacity`].map(e=>`${e} ${n}`).join(`,`)},"&-arrow":{"&::before, &::after":{position:`absolute`,width:e.calc(a).mul(.6).equal(),height:e.calc(a).mul(.15).equal(),backgroundColor:`currentcolor`,borderRadius:i,transition:[`background-color`,`transform`,`top`,`color`].map(e=>`${e} ${n} ${r}`).join(`,`),content:`""`},"&::before":{transform:`rotate(45deg) translateY(${X(e.calc(o).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${X(o)})`}}}}},MC=e=>{let{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:i,motionDurationMid:a,motionEaseInOut:o,paddingXS:s,padding:c,colorSplit:l,lineWidth:u,zIndexPopup:d,borderRadiusLG:f,subMenuItemBorderRadius:p,menuArrowSize:m,menuArrowOffset:h,lineType:g,groupTitleLineHeight:_,groupTitleFontSize:v}=e;return[{"":{[n]:{...Va(),"&-hidden":{display:`none`}}},[`${n}-submenu-hidden`]:{display:`none`}},{[n]:{...za(e),...Va(),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:`${X(s)} ${X(c)}`,fontSize:v,lineHeight:_,transition:`all ${i}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color`,`background-color`].map(e=>`${e} ${i} ${o}`).join(`,`)},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${i}`,`background-color ${i}`,`padding ${a}`].map(e=>`${e} ${o}`).join(`,`)},[`${n}-submenu ${n}-sub`]:{cursor:`initial`,transition:[`background-color`,`padding`].map(e=>`${e} ${i} ${o}`).join(`,`)},[`${n}-title-content`]:{transition:`color ${i}`,"&-with-extra":{display:`inline-flex`,alignItems:`center`,width:`100%`},[`> ${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:l,borderStyle:g,borderWidth:0,borderTopWidth:u,marginBlock:u,padding:0,"&-dashed":{borderStyle:`dashed`}},...AC(e),[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${X(e.calc(r).mul(2).equal())} ${X(c)}`}}},"&-submenu":{"&-popup":{position:`absolute`,zIndex:d,borderRadius:f,boxShadow:`none`,transformOrigin:`0 0`,[`&${n}-submenu`]:{background:`transparent`},"&::before":{position:`absolute`,inset:0,zIndex:-1,width:`100%`,height:`100%`,opacity:0,content:`""`},[`> ${n}`]:{borderRadius:f,...AC(e),...jC(e),[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:p},[`${n}-submenu-title::after`]:{transition:`transform ${i} ${o}`}}},"&-placement-leftTop, &-placement-bottomRight":{transformOrigin:`100% 0`},"&-placement-leftBottom, &-placement-topRight":{transformOrigin:`100% 100%`},"&-placement-rightBottom, &-placement-topLeft":{transformOrigin:`0 100%`},"&-placement-bottomLeft, &-placement-rightTop":{transformOrigin:`0 0`},"&-placement-leftTop, &-placement-leftBottom":{paddingInlineEnd:e.paddingXS},"&-placement-rightTop, &-placement-rightBottom":{paddingInlineStart:e.paddingXS},"&-placement-topRight, &-placement-topLeft":{paddingBottom:e.paddingXS},"&-placement-bottomRight, &-placement-bottomLeft":{paddingTop:e.paddingXS}},...jC(e),[`&-inline-collapsed ${n}-submenu-arrow,
188
+ &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${X(h)})`},"&::after":{transform:`rotate(45deg) translateX(${X(e.calc(h).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${X(e.calc(m).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${X(e.calc(h).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${X(h)})`}}}},{[`${t}-layout-header`]:{[n]:{lineHeight:`inherit`}}}]},NC=e=>{let{colorPrimary:t,colorError:n,colorTextDisabled:r,colorErrorBg:i,colorText:a,colorTextDescription:o,colorBgContainer:s,colorFillAlter:c,colorFillContent:l,lineWidth:u,lineWidthBold:d,controlItemBgActive:f,colorBgTextHover:p,controlHeightLG:m,lineHeight:h,colorBgElevated:g,marginXXS:_,padding:v,fontSize:y,controlHeightSM:b,fontSizeLG:x,colorTextLightSolid:S,colorErrorHover:C}=e,w=e.activeBarWidth??0,T=e.activeBarBorderWidth??u,E=e.itemMarginInline??e.marginXXS,D=new ki(S).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:a,itemColor:a,colorItemTextHover:a,itemHoverColor:a,colorItemTextHoverHorizontal:t,horizontalItemHoverColor:t,colorGroupTitle:o,groupTitleColor:o,colorItemTextSelected:t,itemSelectedColor:t,subMenuItemSelectedColor:t,colorItemTextSelectedHorizontal:t,horizontalItemSelectedColor:t,colorItemBg:s,itemBg:s,colorItemBgHover:p,itemHoverBg:p,colorItemBgActive:l,itemActiveBg:f,colorSubItemBg:c,subMenuItemBg:c,colorItemBgSelected:f,itemSelectedBg:f,colorItemBgSelectedHorizontal:`transparent`,horizontalItemSelectedBg:`transparent`,colorActiveBarWidth:0,activeBarWidth:w,colorActiveBarHeight:d,activeBarHeight:d,colorActiveBarBorderSize:u,activeBarBorderWidth:T,colorItemTextDisabled:r,itemDisabledColor:r,colorDangerItemText:n,dangerItemColor:n,colorDangerItemTextHover:n,dangerItemHoverColor:n,colorDangerItemTextSelected:n,dangerItemSelectedColor:n,colorDangerItemBgActive:i,dangerItemActiveBg:i,colorDangerItemBgSelected:i,dangerItemSelectedBg:i,itemMarginInline:E,horizontalItemBorderRadius:0,horizontalItemHoverBg:`transparent`,itemHeight:m,groupTitleLineHeight:h,collapsedWidth:m*2,popupBg:g,itemMarginBlock:_,itemPaddingInline:v,horizontalLineHeight:`${m*1.15}px`,iconSize:y,iconMarginInlineEnd:b-y,collapsedIconSize:x,groupTitleFontSize:y,darkItemDisabledColor:new ki(S).setA(.25).toRgbString(),darkItemColor:D,darkDangerItemColor:n,darkItemBg:`#001529`,darkPopupBg:`#001529`,darkSubMenuItemBg:`#000c17`,darkItemSelectedColor:S,darkItemSelectedBg:t,darkDangerItemSelectedBg:n,darkItemHoverBg:`transparent`,darkGroupTitleColor:D,darkItemHoverColor:S,darkDangerItemHoverColor:C,darkDangerItemSelectedColor:S,darkDangerItemActiveBg:n,itemWidth:w?`calc(100% + ${T}px)`:`calc(100% - ${E*2}px)`}},PC=(e,t=e,n=!0)=>Ja(`Menu`,e=>{let{colorBgElevated:t,controlHeightLG:n,fontSize:r,darkItemColor:i,darkDangerItemColor:a,darkItemBg:o,darkSubMenuItemBg:s,darkItemSelectedColor:c,darkItemSelectedBg:l,darkDangerItemSelectedBg:u,darkItemHoverBg:d,darkGroupTitleColor:f,darkItemHoverColor:p,darkItemDisabledColor:m,darkDangerItemHoverColor:h,darkDangerItemSelectedColor:g,darkDangerItemActiveBg:_,popupBg:v,darkPopupBg:y}=e,b=e.calc(r).div(7).mul(5).equal(),x=si(e,{menuArrowSize:b,menuHorizontalHeight:e.calc(n).mul(1.15).equal(),menuArrowOffset:e.calc(b).mul(.25).equal(),menuSubMenuBg:t,calc:e.calc,popupBg:v}),S=si(x,{itemColor:i,itemHoverColor:p,groupTitleColor:f,itemSelectedColor:c,subMenuItemSelectedColor:c,itemBg:o,popupBg:y,subMenuItemBg:s,itemActiveBg:`transparent`,itemSelectedBg:l,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:d,itemDisabledColor:m,dangerItemColor:a,dangerItemHoverColor:h,dangerItemSelectedColor:g,dangerItemActiveBg:_,dangerItemSelectedBg:u,menuSubMenuBg:s,horizontalItemSelectedColor:c,horizontalItemSelectedBg:l});return[MC(x),wC(x),kC(x),DC(x,`light`),DC(S,`dark`),TC(x),Zd(x),xf(x,`slide-up`),xf(x,`slide-down`),If(x,`zoom-big`)]},NC,{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),FC=e=>{let{popupClassName:t,icon:n,title:r,theme:i}=e,a=v.useContext(yC),{prefixCls:o,inlineCollapsed:s,theme:c,classNames:l,styles:u}=a,d=Zx(),f;if(!n)f=s&&!d.length&&r&&typeof r==`string`?v.createElement(`div`,{className:`${o}-inline-collapsed-noicon`},r.charAt(0)):v.createElement(`span`,{className:`${o}-title-content`},r);else{let e=v.isValidElement(r)&&r.type===`span`;f=v.createElement(v.Fragment,null,ou(n,e=>({className:Y(e.className,`${o}-item-icon`,l?.itemIcon),style:{...e.style,...u?.itemIcon}})),e?r:v.createElement(`span`,{className:`${o}-title-content`},r))}let p=v.useMemo(()=>({...a,firstLevel:!1}),[a]),[m]=Lc(`Menu`);return v.createElement(yC.Provider,{value:p},v.createElement(GS,{...ue(e,[`icon`]),title:f,classNames:{list:l?.subMenu?.list,listTitle:l?.subMenu?.itemTitle},styles:{list:u?.subMenu?.list,listTitle:u?.subMenu?.itemTitle},popupClassName:Y(o,t,l?.popup?.root,`${o}-${i||c}`),popupStyle:{zIndex:m,...e.popupStyle,...u?.popup?.root}}))};function IC(e){return e===null||e===!1}var LC={item:xC,submenu:FC,divider:bC},RC=(0,v.forwardRef)((e,t)=>{let n=v.useContext(SC),r=n||{},{prefixCls:i,className:a,style:o,theme:s=`light`,expandIcon:c,_internalDisableMenuItemTitleTooltip:l,tooltip:u,inlineCollapsed:d,siderCollapsed:f,rootClassName:p,mode:m,selectable:h,onClick:g,overflowedIndicatorPopupClassName:_,classNames:b,styles:x,...S}=e,{menu:C}=v.useContext(Je),{getPrefixCls:w,getPopupContainer:T,direction:E,className:D,style:O,classNames:k,styles:A}=Ze(`menu`),j=w(),M=ue(S,[`collapsedWidth`]);r.validator?.({mode:m});let N=y((...e)=>{g?.(...e),r.onClick?.()}),P=r.mode||m,F=h??r.selectable,I=d??f,L={...e,mode:P,inlineCollapsed:I,selectable:F,theme:s},[R,z]=Dc([k,b],[A,x],{props:L},{popup:{_default:`root`},subMenu:{_default:`item`}}),B={horizontal:{motionName:`${j}-slide-up`},inline:bd(j),other:{motionName:`${j}-zoom-big`}},V=w(`menu`,i||r.prefixCls),H=Yc(V),[U,W]=PC(V,H,!n),ee=Y(`${V}-${s}`,D,a),te=v.useMemo(()=>{if(typeof c==`function`||IC(c))return c||null;if(typeof r.expandIcon==`function`||IC(r.expandIcon))return r.expandIcon||null;if(typeof C?.expandIcon==`function`||IC(C?.expandIcon))return C?.expandIcon||null;let e=c??r?.expandIcon??C?.expandIcon;return ou(e,{className:Y(`${V}-submenu-expand-icon`,v.isValidElement(e)?e.props?.className:void 0)})},[c,r?.expandIcon,C?.expandIcon,V]),G=v.useMemo(()=>({prefixCls:V,inlineCollapsed:I||!1,direction:E,firstLevel:!0,theme:s,mode:P,disableMenuItemTitleTooltip:l,tooltip:u,classNames:R,styles:z}),[V,I,E,l,s,P,R,z,u]);return v.createElement(SC.Provider,{value:null},v.createElement(yC.Provider,{value:G},v.createElement(tC,{getPopupContainer:T,overflowedIndicator:v.createElement(vC,null),overflowedIndicatorPopupClassName:Y(V,`${V}-${s}`,_),classNames:{list:R.list,listTitle:R.itemTitle},styles:{list:z.list,listTitle:z.itemTitle},mode:P,selectable:F,onClick:N,...M,inlineCollapsed:I,style:{...z.root,...O,...o},className:ee,prefixCls:V,direction:E,defaultMotions:B,expandIcon:te,ref:t,rootClassName:Y(p,U,r.rootClassName,W,H,R.root),_internalComponents:LC})))}),zC=(0,v.forwardRef)((e,t)=>{let n=(0,v.useRef)(null),r=v.useContext(pC);return(0,v.useImperativeHandle)(t,()=>({menu:n.current,focus:e=>{n.current?.focus(e)}})),v.createElement(RC,{ref:n,...e,...r})});zC.Item=xC,zC.SubMenu=FC,zC.Divider=bC,zC.ItemGroup=YS;var BC=e=>{let{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:i}=e,a=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${a}`]:{[`&${a}-danger:not(${a}-disabled)`]:{color:r,"&:hover":{color:i,backgroundColor:r}}}}}},VC=e=>{let{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:i,sizePopupArrow:a,antCls:o,iconCls:s,motionDurationMid:c,paddingBlock:l,fontSize:u,dropdownEdgeChildPadding:d,colorTextDisabled:f,fontSizeIcon:p,controlPaddingHorizontal:m,colorBgElevated:h}=e;return[{[t]:{position:`absolute`,top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:`block`,"&::before":{position:`absolute`,insetBlock:e.calc(a).div(2).sub(i).equal(),zIndex:-9999,opacity:1e-4,content:`""`},"&-menu-vertical":{maxHeight:`100vh`,overflowY:`auto`},[`&-trigger${o}-btn`]:{[`& > ${s}-down, & > ${o}-btn-icon > ${s}-down`]:{fontSize:p}},[`${t}-wrap`]:{position:`relative`,[`${o}-btn > ${s}-down`]:{fontSize:p},[`${s}-down::before`]:{transition:`transform ${c}`}},[`${t}-wrap-open`]:{[`${s}-down::before`]:{transform:`rotate(180deg)`}},"&-hidden, &-menu-hidden, &-menu-submenu-hidden":{display:`none`},[`&${o}-slide-down-enter${o}-slide-down-enter-active${t}-placement-bottomLeft,
189
189
  &${o}-slide-down-appear${o}-slide-down-appear-active${t}-placement-bottomLeft,
190
190
  &${o}-slide-down-enter${o}-slide-down-enter-active${t}-placement-bottom,
191
191
  &${o}-slide-down-appear${o}-slide-down-appear-active${t}-placement-bottom,
192
192
  &${o}-slide-down-enter${o}-slide-down-enter-active${t}-placement-bottomRight,
193
- &${o}-slide-down-appear${o}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:df},[`&${o}-slide-up-enter${o}-slide-up-enter-active${t}-placement-topLeft,
193
+ &${o}-slide-down-appear${o}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:ff},[`&${o}-slide-up-enter${o}-slide-up-enter-active${t}-placement-topLeft,
194
194
  &${o}-slide-up-appear${o}-slide-up-appear-active${t}-placement-topLeft,
195
195
  &${o}-slide-up-enter${o}-slide-up-enter-active${t}-placement-top,
196
196
  &${o}-slide-up-appear${o}-slide-up-appear-active${t}-placement-top,
197
197
  &${o}-slide-up-enter${o}-slide-up-enter-active${t}-placement-topRight,
198
- &${o}-slide-up-appear${o}-slide-up-appear-active${t}-placement-topRight`]:{animationName:pf},[`&${o}-slide-down-leave${o}-slide-down-leave-active${t}-placement-bottomLeft,
198
+ &${o}-slide-up-appear${o}-slide-up-appear-active${t}-placement-topRight`]:{animationName:mf},[`&${o}-slide-down-leave${o}-slide-down-leave-active${t}-placement-bottomLeft,
199
199
  &${o}-slide-down-leave${o}-slide-down-leave-active${t}-placement-bottom,
200
- &${o}-slide-down-leave${o}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:ff},[`&${o}-slide-up-leave${o}-slide-up-leave-active${t}-placement-topLeft,
200
+ &${o}-slide-down-leave${o}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:pf},[`&${o}-slide-up-leave${o}-slide-up-leave-active${t}-placement-topLeft,
201
201
  &${o}-slide-up-leave${o}-slide-up-leave-active${t}-placement-top,
202
- &${o}-slide-up-leave${o}-slide-up-leave-active${t}-placement-topRight`]:{animationName:mf}}},Qb(e,h,{arrowPlacement:{top:!0,bottom:!0}}),{[`${t} ${n}`]:{position:`relative`,margin:0},[`${n}-submenu-popup`]:{position:`absolute`,zIndex:r,background:`transparent`,boxShadow:`none`,transformOrigin:`0 0`,"ul, li":{listStyle:`none`,margin:0}},[`${t}, ${t}-menu-submenu`]:{...za(e),[n]:{padding:d,listStyleType:`none`,backgroundColor:h,backgroundClip:`padding-box`,borderRadius:e.borderRadiusLG,outline:`none`,boxShadow:e.boxShadowSecondary,...Ua(e),"&:empty":{padding:0,boxShadow:`none`},[`${n}-item-group-title`]:{padding:`${X(l)} ${X(m)}`,color:e.colorTextDescription,transition:`all ${c}`},[`${n}-item`]:{position:`relative`,display:`flex`,alignItems:`center`},[`${n}-item-icon`]:{minWidth:u,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:`auto`,"&-with-extra":{display:`inline-flex`,alignItems:`center`,width:`100%`},"> a":{color:`inherit`,transition:`all ${c}`,"&:hover":{color:`inherit`},"&::after":{position:`absolute`,inset:0,content:`""`}},[`${n}-item-extra`]:{paddingInlineStart:e.padding,marginInlineStart:`auto`,fontSize:e.fontSizeSM,color:e.colorTextDescription}},[`${n}-item, ${n}-submenu-title`]:{display:`flex`,margin:0,padding:`${X(l)} ${X(m)}`,color:e.colorText,fontWeight:`normal`,fontSize:u,lineHeight:e.lineHeight,cursor:`pointer`,transition:`all ${c}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover},...Ua(e),"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:f,cursor:`not-allowed`,"&:hover":{color:f,backgroundColor:h,cursor:`not-allowed`},a:{pointerEvents:`none`}},"&-divider":{height:1,margin:`${X(e.marginXXS)} 0`,overflow:`hidden`,lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:`absolute`,insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:`0 !important`,color:e.colorIcon,fontSize:p,fontStyle:`normal`}}},[`${n}-item-group-list`]:{margin:`0 ${X(e.marginXS)}`,padding:0,listStyle:`none`},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(m).add(e.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:`relative`},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:f,backgroundColor:h,cursor:`not-allowed`}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}}}},[bf(e,`slide-up`),bf(e,`slide-down`),uf(e,`move-up`),uf(e,`move-down`),Ff(e,`zoom-big`)]]},VC=Ja(`Dropdown`,e=>{let{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:i}=e,a=si(e,{menuCls:`${i}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[BC(a),zC(a)]},e=>({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2,...Xb({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0}),...Jb(e)}),{resetStyle:!1}),HC=e=>{let{menu:t,arrow:n,prefixCls:r,children:i,trigger:a,disabled:o,dropdownRender:s,popupRender:c,getPopupContainer:l,overlayClassName:u,rootClassName:d,overlayStyle:f,open:p,onOpenChange:m,mouseEnterDelay:h=.15,mouseLeaveDelay:g=.1,autoAdjustOverflow:_=!0,placement:b=``,transitionName:x,classNames:S,styles:C,destroyPopupOnHide:w,destroyOnHidden:E}=e,{getPrefixCls:D,direction:O,getPopupContainer:k,className:A,style:j,classNames:M,styles:N}=Ze(`dropdown`),P={...e,mouseEnterDelay:h,mouseLeaveDelay:g,autoAdjustOverflow:_},[F,I]=Dc([M,S],[N,C],{props:P}),L={...j,...f,...I.root},R=c||s;he(`Dropdown`);let z=v.useMemo(()=>{let e=D();return x===void 0?b.includes(`top`)?`${e}-slide-down`:`${e}-slide-up`:x},[D,b,x]),B=v.useMemo(()=>b?b.includes(`Center`)?b.slice(0,b.indexOf(`Center`)):b:O===`rtl`?`bottomRight`:`bottomLeft`,[b,O]),V=D(`dropdown`,r),H=Yc(V),[U,W]=VC(V,H),[,ee]=La(),te=v.Children.only(uc(i)?v.createElement(`span`,null,i):i),G=ou(te,{className:Y(`${V}-trigger`,{[`${V}-rtl`]:O===`rtl`},te.props.className),disabled:te.props.disabled??o}),ne=o?[]:a,re=!!ne?.includes(`contextMenu`),[ie,K]=T(!1,p),q=y(e=>{m?.(e,{source:`trigger`}),K(e)}),ae=Y(u,d,U,W,H,A,F.root,{[`${V}-rtl`]:O===`rtl`}),oe=rx({arrowPointAtCenter:sc(n)&&n.pointAtCenter,autoAdjustOverflow:_,offset:ee.marginXXS,arrowWidth:n?ee.sizePopupArrow:0,borderRadius:ee.borderRadius}),se=y(()=>{t?.selectable&&t?.multiple||(m?.(!1,{source:`menu`}),K(!1))}),J=()=>{let e=ue(F,[`root`]),n=ue(I,[`root`]),r;return t?.items&&(r=v.createElement(RC,{...t,classNames:{...e,subMenu:{...e}},styles:{...n,subMenu:{...n}}})),R&&(r=R(r)),r=v.Children.only(typeof r==`string`?v.createElement(`span`,null,r):r),v.createElement(SC,{prefixCls:`${V}-menu`,rootClassName:Y(W,H),expandIcon:v.createElement(`span`,{className:`${V}-menu-submenu-arrow`},O===`rtl`?v.createElement(Ax,{className:`${V}-menu-submenu-arrow-icon`}):v.createElement(Kf,{className:`${V}-menu-submenu-arrow-icon`})),mode:`vertical`,selectable:!1,onClick:se,validator:({mode:e})=>{}},r)},[ce,le]=Lc(`Dropdown`,L.zIndex),de=v.createElement(zx,{alignPoint:re,...ue(e,[`rootClassName`,`onOpenChange`]),mouseEnterDelay:h,mouseLeaveDelay:g,visible:ie,builtinPlacements:oe,arrow:!!n,overlayClassName:ae,prefixCls:V,getPopupContainer:l||k,transitionName:z,trigger:ne,overlay:J,placement:B,onVisibleChange:q,overlayStyle:{...L,zIndex:ce},autoDestroy:E??w},G);return ce&&(de=v.createElement(jc.Provider,{value:le},de)),de},UC=Y_(HC,`align`,void 0,`dropdown`,e=>e);HC._InternalPanelDoNotUseOrYouWillBeFired=e=>v.createElement(UC,{...e},v.createElement(`span`,null));var WC=_p;function GC(e){return si(e,{inputAffixPadding:e.paddingXXS})}var KC=e=>{let{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:i,controlHeightSM:a,controlHeightLG:o,fontSizeLG:s,lineHeightLG:c,paddingSM:l,controlPaddingHorizontalSM:u,controlPaddingHorizontal:d,colorFillAlter:f,colorPrimaryHover:p,colorPrimary:m,controlOutlineWidth:h,controlOutline:g,colorErrorOutline:_,colorWarningOutline:v,colorBgContainer:y,inputFontSize:b,inputFontSizeLG:x,inputFontSizeSM:S}=e,C=b||n,w=S||C,T=x||s,E=Math.round((t-C*r)/2*10)/10-i,D=Math.round((a-w*r)/2*10)/10-i,O=Math.ceil((o-T*c)/2*10)/10-i;return{paddingBlock:Math.max(E,0),paddingBlockSM:Math.max(D,0),paddingBlockLG:Math.max(O,0),paddingInline:l-i,paddingInlineSM:u-i,paddingInlineLG:d-i,addonBg:f,activeBorderColor:m,hoverBorderColor:p,activeShadow:`0 0 0 ${h}px ${g}`,errorActiveShadow:`0 0 0 ${h}px ${_}`,warningActiveShadow:`0 0 0 ${h}px ${v}`,hoverBg:y,activeBg:y,inputFontSize:C,inputFontSizeLG:T,inputFontSizeSM:w}},qC=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),JC=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorderDisabled,boxShadow:`none`,cursor:`not-allowed`,opacity:1,"input[disabled], textarea[disabled]":{cursor:`not-allowed`},"&:hover:not([disabled])":{...qC(si(e,{hoverBorderColor:e.colorBorderDisabled,hoverBg:e.colorBgContainerDisabled}))}}),YC=(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}}),XC=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...YC(e,t),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}},[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),ZC=(e,t)=>({"&-outlined":{...YC(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow}),[`&${e.componentCls}-disabled, &[disabled]`]:{...JC(e)},...XC(e,{status:`error`,borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError}),...XC(e,{status:`warning`,borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning}),...t}}),QC=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),$C=e=>({"&-outlined":{[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${X(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},...QC(e,{status:`error`,addonBorderColor:e.colorError,addonColor:e.colorErrorText}),...QC(e,{status:`warning`,addonBorderColor:e.colorWarning,addonColor:e.colorWarningText}),[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:{...JC(e)}}}}),ew=(e,t)=>{let{componentCls:n}=e;return{"&-borderless":{background:`transparent`,border:`none`,paddingBlock:e.calc(e.paddingBlock).add(e.lineWidth).equal(),[`&${n}-sm, &${n}-affix-wrapper-sm`]:{paddingBlock:e.calc(e.paddingBlockSM).add(e.lineWidth).equal()},[`&${n}-lg, &${n}-affix-wrapper-lg`]:{paddingBlock:e.calc(e.paddingBlockLG).add(e.lineWidth).equal()},"&:focus, &:focus-within":{outline:`none`},[`&${n}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:`not-allowed`},[`&${n}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}},...t}}},tw=(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}}),nw=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...tw(e,t),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}}),rw=(e,t)=>({"&-filled":{...tw(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,inputColor:e.colorText}),[`&${e.componentCls}-disabled, &[disabled]`]:{...JC(e)},...nw(e,{status:`error`,bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError}),...nw(e,{status:`warning`,bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning}),...t}}),iw=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),aw=e=>({"&-filled":{[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:`static`}},...iw(e,{status:`error`,addonBg:e.colorErrorBg,addonColor:e.colorErrorText}),...iw(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:`${X(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${X(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${X(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${X(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${X(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${X(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}}}),ow=(e,t)=>({background:e.colorBgContainer,borderWidth:`${X(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}}),sw=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...ow(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`}}),cw=(e,t)=>({"&-underlined":{...ow(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`},...sw(e,{status:`error`,borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError}),...sw(e,{status:`warning`,borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning}),...t}}),lw=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:`none`},"&:placeholder-shown":{textOverflow:`ellipsis`}}),uw=e=>{let{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:i}=e;return{padding:`${X(t)} ${X(i)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},dw=e=>({padding:`${X(e.paddingBlockSM)} ${X(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),fw=(e,t={})=>({position:`relative`,display:`inline-block`,width:`100%`,minWidth:0,padding:`${X(e.paddingBlock)} ${X(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`,...lw(e.colorTextPlaceholder),"&-lg":{...uw(e),...t.largeStyle},"&-sm":{...dw(e),...t.smallStyle},"&-rtl, &-textarea-rtl":{direction:`rtl`}}),pw=e=>{let{componentCls:t,antCls:n}=e;return{position:`relative`,display:`table`,width:`100%`,borderCollapse:`separate`,borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:{...uw(e)},[`&-sm ${t}, &-sm > ${t}-group-addon`]:{...dw(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 ${X(e.paddingInline)}`,color:e.colorText,fontWeight:`normal`,fontSize:e.inputFontSize,textAlign:`center`,borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${X(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${X(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{backgroundColor:`inherit`,border:`${X(e.lineWidth)} ${e.lineType} transparent`,boxShadow:`none`}},[`${n}-cascader-picker`]:{margin:`-9px ${X(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`,...Va(),[`${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},[`
202
+ &${o}-slide-up-leave${o}-slide-up-leave-active${t}-placement-topRight`]:{animationName:hf}}},$b(e,h,{arrowPlacement:{top:!0,bottom:!0}}),{[`${t} ${n}`]:{position:`relative`,margin:0},[`${n}-submenu-popup`]:{position:`absolute`,zIndex:r,background:`transparent`,boxShadow:`none`,transformOrigin:`0 0`,"ul, li":{listStyle:`none`,margin:0}},[`${t}, ${t}-menu-submenu`]:{...za(e),[n]:{padding:d,listStyleType:`none`,backgroundColor:h,backgroundClip:`padding-box`,borderRadius:e.borderRadiusLG,outline:`none`,boxShadow:e.boxShadowSecondary,...Ua(e),"&:empty":{padding:0,boxShadow:`none`},[`${n}-item-group-title`]:{padding:`${X(l)} ${X(m)}`,color:e.colorTextDescription,transition:`all ${c}`},[`${n}-item`]:{position:`relative`,display:`flex`,alignItems:`center`},[`${n}-item-icon`]:{minWidth:u,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:`auto`,"&-with-extra":{display:`inline-flex`,alignItems:`center`,width:`100%`},"> a":{color:`inherit`,transition:`all ${c}`,"&:hover":{color:`inherit`},"&::after":{position:`absolute`,inset:0,content:`""`}},[`${n}-item-extra`]:{paddingInlineStart:e.padding,marginInlineStart:`auto`,fontSize:e.fontSizeSM,color:e.colorTextDescription}},[`${n}-item, ${n}-submenu-title`]:{display:`flex`,margin:0,padding:`${X(l)} ${X(m)}`,color:e.colorText,fontWeight:`normal`,fontSize:u,lineHeight:e.lineHeight,cursor:`pointer`,transition:`all ${c}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover},...Ua(e),"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:f,cursor:`not-allowed`,"&:hover":{color:f,backgroundColor:h,cursor:`not-allowed`},a:{pointerEvents:`none`}},"&-divider":{height:1,margin:`${X(e.marginXXS)} 0`,overflow:`hidden`,lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:`absolute`,insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:`0 !important`,color:e.colorIcon,fontSize:p,fontStyle:`normal`}}},[`${n}-item-group-list`]:{margin:`0 ${X(e.marginXS)}`,padding:0,listStyle:`none`},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(m).add(e.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:`relative`},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:f,backgroundColor:h,cursor:`not-allowed`}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}}}},[xf(e,`slide-up`),xf(e,`slide-down`),df(e,`move-up`),df(e,`move-down`),If(e,`zoom-big`)]]},HC=Ja(`Dropdown`,e=>{let{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:i}=e,a=si(e,{menuCls:`${i}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[VC(a),BC(a)]},e=>({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2,...Zb({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0}),...Yb(e)}),{resetStyle:!1}),UC=e=>{let{menu:t,arrow:n,prefixCls:r,children:i,trigger:a,disabled:o,dropdownRender:s,popupRender:c,getPopupContainer:l,overlayClassName:u,rootClassName:d,overlayStyle:f,open:p,onOpenChange:m,mouseEnterDelay:h=.15,mouseLeaveDelay:g=.1,autoAdjustOverflow:_=!0,placement:b=``,transitionName:x,classNames:S,styles:C,destroyPopupOnHide:w,destroyOnHidden:E}=e,{getPrefixCls:D,direction:O,getPopupContainer:k,className:A,style:j,classNames:M,styles:N}=Ze(`dropdown`),P={...e,mouseEnterDelay:h,mouseLeaveDelay:g,autoAdjustOverflow:_},[F,I]=Dc([M,S],[N,C],{props:P}),L={...j,...f,...I.root},R=c||s;he(`Dropdown`);let z=v.useMemo(()=>{let e=D();return x===void 0?b.includes(`top`)?`${e}-slide-down`:`${e}-slide-up`:x},[D,b,x]),B=v.useMemo(()=>b?b.includes(`Center`)?b.slice(0,b.indexOf(`Center`)):b:O===`rtl`?`bottomRight`:`bottomLeft`,[b,O]),V=D(`dropdown`,r),H=Yc(V),[U,W]=HC(V,H),[,ee]=La(),te=v.Children.only(uc(i)?v.createElement(`span`,null,i):i),G=ou(te,{className:Y(`${V}-trigger`,{[`${V}-rtl`]:O===`rtl`},te.props.className),disabled:te.props.disabled??o}),ne=o?[]:a,re=!!ne?.includes(`contextMenu`),[ie,K]=T(!1,p),q=y(e=>{m?.(e,{source:`trigger`}),K(e)}),ae=Y(u,d,U,W,H,A,F.root,{[`${V}-rtl`]:O===`rtl`}),oe=ix({arrowPointAtCenter:sc(n)&&n.pointAtCenter,autoAdjustOverflow:_,offset:ee.marginXXS,arrowWidth:n?ee.sizePopupArrow:0,borderRadius:ee.borderRadius}),se=y(()=>{t?.selectable&&t?.multiple||(m?.(!1,{source:`menu`}),K(!1))}),J=()=>{let e=ue(F,[`root`]),n=ue(I,[`root`]),r;return t?.items&&(r=v.createElement(zC,{...t,classNames:{...e,subMenu:{...e}},styles:{...n,subMenu:{...n}}})),R&&(r=R(r)),r=v.Children.only(typeof r==`string`?v.createElement(`span`,null,r):r),v.createElement(CC,{prefixCls:`${V}-menu`,rootClassName:Y(W,H),expandIcon:v.createElement(`span`,{className:`${V}-menu-submenu-arrow`},O===`rtl`?v.createElement(jx,{className:`${V}-menu-submenu-arrow-icon`}):v.createElement(qf,{className:`${V}-menu-submenu-arrow-icon`})),mode:`vertical`,selectable:!1,onClick:se,validator:({mode:e})=>{}},r)},[ce,le]=Lc(`Dropdown`,L.zIndex),de=v.createElement(Bx,{alignPoint:re,...ue(e,[`rootClassName`,`onOpenChange`]),mouseEnterDelay:h,mouseLeaveDelay:g,visible:ie,builtinPlacements:oe,arrow:!!n,overlayClassName:ae,prefixCls:V,getPopupContainer:l||k,transitionName:z,trigger:ne,overlay:J,placement:B,onVisibleChange:q,overlayStyle:{...L,zIndex:ce},autoDestroy:E??w},G);return ce&&(de=v.createElement(jc.Provider,{value:le},de)),de},WC=X_(UC,`align`,void 0,`dropdown`,e=>e);UC._InternalPanelDoNotUseOrYouWillBeFired=e=>v.createElement(WC,{...e},v.createElement(`span`,null));var GC=vp;function KC(e){return si(e,{inputAffixPadding:e.paddingXXS})}var qC=e=>{let{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:i,controlHeightSM:a,controlHeightLG:o,fontSizeLG:s,lineHeightLG:c,paddingSM:l,controlPaddingHorizontalSM:u,controlPaddingHorizontal:d,colorFillAlter:f,colorPrimaryHover:p,colorPrimary:m,controlOutlineWidth:h,controlOutline:g,colorErrorOutline:_,colorWarningOutline:v,colorBgContainer:y,inputFontSize:b,inputFontSizeLG:x,inputFontSizeSM:S}=e,C=b||n,w=S||C,T=x||s,E=Math.round((t-C*r)/2*10)/10-i,D=Math.round((a-w*r)/2*10)/10-i,O=Math.ceil((o-T*c)/2*10)/10-i;return{paddingBlock:Math.max(E,0),paddingBlockSM:Math.max(D,0),paddingBlockLG:Math.max(O,0),paddingInline:l-i,paddingInlineSM:u-i,paddingInlineLG:d-i,addonBg:f,activeBorderColor:m,hoverBorderColor:p,activeShadow:`0 0 0 ${h}px ${g}`,errorActiveShadow:`0 0 0 ${h}px ${_}`,warningActiveShadow:`0 0 0 ${h}px ${v}`,hoverBg:y,activeBg:y,inputFontSize:C,inputFontSizeLG:T,inputFontSizeSM:w}},JC=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),YC=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorderDisabled,boxShadow:`none`,cursor:`not-allowed`,opacity:1,"input[disabled], textarea[disabled]":{cursor:`not-allowed`},"&:hover:not([disabled])":{...JC(si(e,{hoverBorderColor:e.colorBorderDisabled,hoverBg:e.colorBgContainerDisabled}))}}),XC=(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}}),ZC=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...XC(e,t),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}},[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),QC=(e,t)=>({"&-outlined":{...XC(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow}),[`&${e.componentCls}-disabled, &[disabled]`]:{...YC(e)},...ZC(e,{status:`error`,borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError}),...ZC(e,{status:`warning`,borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning}),...t}}),$C=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),ew=e=>({"&-outlined":{[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${X(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},...$C(e,{status:`error`,addonBorderColor:e.colorError,addonColor:e.colorErrorText}),...$C(e,{status:`warning`,addonBorderColor:e.colorWarning,addonColor:e.colorWarningText}),[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:{...YC(e)}}}}),tw=(e,t)=>{let{componentCls:n}=e;return{"&-borderless":{background:`transparent`,border:`none`,paddingBlock:e.calc(e.paddingBlock).add(e.lineWidth).equal(),[`&${n}-sm, &${n}-affix-wrapper-sm`]:{paddingBlock:e.calc(e.paddingBlockSM).add(e.lineWidth).equal()},[`&${n}-lg, &${n}-affix-wrapper-lg`]:{paddingBlock:e.calc(e.paddingBlockLG).add(e.lineWidth).equal()},"&:focus, &:focus-within":{outline:`none`},[`&${n}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:`not-allowed`},[`&${n}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}},...t}}},nw=(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}}),rw=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...nw(e,t),[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}}),iw=(e,t)=>({"&-filled":{...nw(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,inputColor:e.colorText}),[`&${e.componentCls}-disabled, &[disabled]`]:{...YC(e)},...rw(e,{status:`error`,bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError}),...rw(e,{status:`warning`,bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning}),...t}}),aw=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),ow=e=>({"&-filled":{[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:`static`}},...aw(e,{status:`error`,addonBg:e.colorErrorBg,addonColor:e.colorErrorText}),...aw(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:`${X(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${X(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${X(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${X(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${X(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${X(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}}}),sw=(e,t)=>({background:e.colorBgContainer,borderWidth:`${X(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}}),cw=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:{...sw(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`}}),lw=(e,t)=>({"&-underlined":{...sw(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`},...cw(e,{status:`error`,borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError}),...cw(e,{status:`warning`,borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning}),...t}}),uw=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:`none`},"&:placeholder-shown":{textOverflow:`ellipsis`}}),dw=e=>{let{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:i}=e;return{padding:`${X(t)} ${X(i)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},fw=e=>({padding:`${X(e.paddingBlockSM)} ${X(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),pw=(e,t={})=>({position:`relative`,display:`inline-block`,width:`100%`,minWidth:0,padding:`${X(e.paddingBlock)} ${X(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`,...uw(e.colorTextPlaceholder),"&-lg":{...dw(e),...t.largeStyle},"&-sm":{...fw(e),...t.smallStyle},"&-rtl, &-textarea-rtl":{direction:`rtl`}}),mw=e=>{let{componentCls:t,antCls:n}=e;return{position:`relative`,display:`table`,width:`100%`,borderCollapse:`separate`,borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:{...dw(e)},[`&-sm ${t}, &-sm > ${t}-group-addon`]:{...fw(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 ${X(e.paddingInline)}`,color:e.colorText,fontWeight:`normal`,fontSize:e.inputFontSize,textAlign:`center`,borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${X(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${X(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{backgroundColor:`inherit`,border:`${X(e.lineWidth)} ${e.lineType} transparent`,boxShadow:`none`}},[`${n}-cascader-picker`]:{margin:`-9px ${X(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`,...Va(),[`${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},[`
203
203
  & > ${t}-affix-wrapper,
204
204
  & > ${t}-number-affix-wrapper,
205
205
  & > ${n}-picker-range
@@ -212,17 +212,17 @@ html body {
212
212
  & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
213
213
  & > ${n}-select:last-child,
214
214
  & > ${n}-cascader-picker:last-child ${t},
215
- & > ${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`]:{}}}}},mw=e=>{let{componentCls:t,controlHeightSM:n,lineWidth:r,calc:i}=e,a=i(n).sub(i(r).mul(2)).sub(16).div(2).equal();return{[t]:{...za(e),...fw(e),...ZC(e),...rw(e),...ew(e),...cw(e),'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:a,paddingBottom:a}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:`none`}}}},hw=e=>{let{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,padding:0,lineHeight:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:`pointer`,transition:`color ${e.motionDurationSlow}`,border:`none`,outline:`none`,backgroundColor:`transparent`,"&:hover":{color:e.colorIcon},"&:focus-visible":{color:e.colorIcon,borderRadius:e.borderRadiusSM,...Ha(e)},"&:active":{color:e.colorText},"&-hidden":{visibility:`hidden`},"&-has-suffix":{margin:`0 ${X(e.inputAffixPadding)}`}}}},gw=e=>{let{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:i,colorIcon:a,colorIconHover:o,iconCls:s}=e,c=`${t}-affix-wrapper`,l=`${t}-affix-wrapper-disabled`;return{[c]:{...fw(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}},...hw(e),[`${s}${t}-password-icon`]:{color:a,cursor:`pointer`,transition:`all ${i}`,"&:hover":{color:o}}},[`${t}-underlined`]:{borderRadius:0},[l]:{[`${s}${t}-password-icon`]:{color:a,cursor:`not-allowed`,"&:hover":{color:a}}}}},_w=e=>{let{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:{...za(e),...pw(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}},...$C(e),...aw(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}}}}}},vw=e=>{let{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},yw=Ja([`Input`,`Shared`],e=>{let t=si(e,GC(e));return[mw(t),gw(t)]},KC,{resetFont:!1}),bw=Ja([`Input`,`Component`],e=>{let t=si(e,GC(e));return[_w(t),vw(t),lp(t,{focus:!0,focusElCls:`${t.componentCls}-affix-wrapper-focused`})]},KC,{resetFont:!1}),xw={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 Sw(){return Sw=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},Sw.apply(this,arguments)}var Cw=v.forwardRef((e,t)=>v.createElement(So,Sw({},e,{ref:t,icon:xw}))),ww=l(o(((e,t)=>{t.exports=a,t.exports.isMobile=a,t.exports.default=a;var n=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|redmi|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,r=/CrOS/,i=/android|ipad|playbook|silk/i;function a(e){e||={};let t=e.ua;if(!t&&typeof navigator<`u`&&(t=navigator.userAgent),t&&t.headers&&typeof t.headers[`user-agent`]==`string`&&(t=t.headers[`user-agent`]),typeof t!=`string`)return!1;let a=n.test(t)&&!r.test(t)||!!e.tablet&&i.test(t);return!a&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&t.indexOf(`Macintosh`)!==-1&&t.indexOf(`Safari`)!==-1&&(a=!0),a}}))()),Tw,Ew=()=>(Tw===void 0&&(Tw=(0,ww.default)()),Tw),Dw=(0,v.createContext)(null),Ow=e=>{let{activeTabOffset:t,horizontal:n,rtl:r,indicator:i={}}=e,{size:a,align:o=`center`}=i,[s,c]=(0,v.useState)(),l=(0,v.useRef)(),u=v.useCallback(e=>typeof a==`function`?a(e):typeof a==`number`?a:e,[a]);function d(){Ge.cancel(l.current)}return(0,v.useEffect)(()=>{let e={};if(t)if(n){e.width=u(t.width);let n=r?`right`:`left`;o===`start`&&(e[n]=t[n]),o===`center`&&(e[n]=t[n]+t.width/2,e.transform=r?`translateX(50%)`:`translateX(-50%)`),o===`end`&&(e[n]=t[n]+t.width,e.transform=`translateX(-100%)`)}else e.height=u(t.height),o===`start`&&(e.top=t.top),o===`center`&&(e.top=t.top+t.height/2,e.transform=`translateY(-50%)`),o===`end`&&(e.top=t.top+t.height,e.transform=`translateY(-100%)`);return d(),l.current=Ge(()=>{s&&e&&Object.keys(e).every(t=>{let n=e[t],r=s[t];return typeof n==`number`&&typeof r==`number`?Math.round(n)===Math.round(r):n===r})||c(e)}),d},[JSON.stringify(t),n,r,o,u]),{style:s}},kw={width:0,height:0,left:0,top:0};function Aw(e,t,n){return(0,v.useMemo)(()=>{let n=new Map,r=t.get(e[0]?.key)||kw,i=r.left+r.width;for(let r=0;r<e.length;r+=1){let{key:a}=e[r],o=t.get(a);o||=t.get(e[r-1]?.key)||kw;let s=n.get(a)||{...o};s.right=i-s.left-s.width,n.set(a,s)}return n},[e.map(e=>e.key).join(`_`),t,n])}function jw(e,t){let n=v.useRef(e),[,r]=v.useState({});function i(e){let i=typeof e==`function`?e(n.current):e;i!==n.current&&t(i,n.current),n.current=i,r({})}return[n.current,i]}var Mw=.1,Nw=.01,Pw=20,Fw=.995**Pw;function Iw(e,t){let[n,r]=(0,v.useState)(),[i,a]=(0,v.useState)(0),[o,s]=(0,v.useState)(0),[c,l]=(0,v.useState)(),u=(0,v.useRef)();function d(e){let{screenX:t,screenY:n}=e.touches[0];r({x:t,y:n}),window.clearInterval(u.current)}function f(e){if(!n)return;let{screenX:o,screenY:c}=e.touches[0];r({x:o,y:c});let u=o-n.x,d=c-n.y;t(u,d);let f=Date.now();a(f),s(f-i),l({x:u,y:d})}function p(){if(n&&(r(null),l(null),c)){let e=c.x/o,n=c.y/o;if(Math.max(Math.abs(e),Math.abs(n))<Mw)return;let r=e,i=n;u.current=window.setInterval(()=>{if(Math.abs(r)<Nw&&Math.abs(i)<Nw){window.clearInterval(u.current);return}r*=Fw,i*=Fw,t(r*Pw,i*Pw)},Pw)}}let m=(0,v.useRef)();function h(e){let{deltaX:n,deltaY:r}=e,i=0,a=Math.abs(n),o=Math.abs(r);a===o?i=m.current===`x`?n:r:a>o?(i=n,m.current=`x`):(i=r,m.current=`y`),t(-i,-i)&&e.preventDefault()}let g=(0,v.useRef)(null);g.current={onTouchStart:d,onTouchMove:f,onTouchEnd:p,onWheel:h},v.useEffect(()=>{function t(e){g.current.onTouchStart(e)}function n(e){g.current.onTouchMove(e)}function r(e){g.current.onTouchEnd(e)}function i(e){g.current.onWheel(e)}return document.addEventListener(`touchmove`,n,{passive:!1}),document.addEventListener(`touchend`,r,{passive:!0}),e.current.addEventListener(`touchstart`,t,{passive:!0}),e.current.addEventListener(`wheel`,i,{passive:!1}),()=>{document.removeEventListener(`touchmove`,n),document.removeEventListener(`touchend`,r)}},[])}function Lw(e){let[t,n]=(0,v.useState)(0),r=(0,v.useRef)(0),i=(0,v.useRef)();return i.current=e,C(()=>{i.current?.()},[t]),()=>{r.current===t&&(r.current+=1,n(r.current))}}function Rw(e){let t=(0,v.useRef)([]),[,n]=(0,v.useState)({}),r=(0,v.useRef)(typeof e==`function`?e():e),i=Lw(()=>{let e=r.current;t.current.forEach(t=>{e=t(e)}),t.current=[],r.current=e,n({})});function a(e){t.current.push(e),i()}return[r.current,a]}var zw={width:0,height:0,left:0,top:0,right:0};function Bw(e,t,n,r,i,a,{tabs:o,tabPosition:s,rtl:c}){let l,u,d;return[`top`,`bottom`].includes(s)?(l=`width`,u=c?`right`:`left`,d=Math.abs(n)):(l=`height`,u=`top`,d=-n),(0,v.useMemo)(()=>{if(!o.length)return[0,0];let n=o.length,r=n;for(let i=0;i<n;i+=1){let n=e.get(o[i].key)||zw;if(Math.floor(n[u]+n[l])>Math.floor(d+t)){r=i-1;break}}let i=0;for(let t=n-1;t>=0;--t)if((e.get(o[t].key)||zw)[u]<d){i=t+1;break}return i>r?[0,-1]:[i,r]},[e,t,r,i,a,d,s,o.map(e=>e.key).join(`_`),c])}function Vw(e){let t;return e instanceof Map?(t={},e.forEach((e,n)=>{t[n]=e})):t=e,JSON.stringify(t)}var Hw=`TABS_DQ`;function Uw(e){return String(e).replace(/"/g,Hw)}function Ww(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}var Gw=v.forwardRef((e,t)=>{let{prefixCls:n,editable:r,locale:i,style:a}=e;return!r||r.showAdd===!1?null:v.createElement(`button`,{ref:t,type:`button`,className:`${n}-nav-add`,style:a,"aria-label":i?.addAriaLabel||`Add tab`,onClick:e=>{r.onEdit(`add`,{event:e})}},r.addIcon||`+`)}),Kw=v.forwardRef((e,t)=>{let{position:n,prefixCls:r,extra:i}=e;if(!i)return null;let a,o={};return typeof i==`object`&&!v.isValidElement(i)?o=i:o.right=i,n===`right`&&(a=o.right),n===`left`&&(a=o.left),a?v.createElement(`div`,{className:`${r}-extra-content`,ref:t},a):null});function qw(){return qw=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},qw.apply(this,arguments)}var Jw=v.forwardRef((e,t)=>{let{prefixCls:n,id:r,tabs:i,locale:a,mobile:o,more:s={},style:c,className:l,editable:u,tabBarGutter:d,rtl:f,removeAriaLabel:p,onTabClick:m,getPopupContainer:h,popupClassName:g,popupStyle:_}=e,[y,b]=(0,v.useState)(!1),[x,S]=(0,v.useState)(null),{icon:C=`More`}=s,w=`${r}-more-popup`,T=`${n}-dropdown`,E=x===null?null:`${w}-${x}`,D=a?.dropdownAriaLabel;function O(e,t){e.preventDefault(),e.stopPropagation(),u.onEdit(`remove`,{key:t,event:e})}let k=v.createElement(eC,{onClick:({key:e,domEvent:t})=>{m(e,t),b(!1)},prefixCls:`${T}-menu`,id:w,tabIndex:-1,role:`listbox`,"aria-activedescendant":E,selectedKeys:[x],"aria-label":D===void 0?`expanded dropdown`:D},i.map(e=>{let{closable:t,disabled:n,closeIcon:i,key:a,label:o}=e,s=Ww(t,i,u,n);return v.createElement(AS,{key:a,id:`${w}-${a}`,role:`option`,"aria-controls":r&&`${r}-panel-${a}`,disabled:n},v.createElement(`span`,null,o),s&&v.createElement(`button`,{type:`button`,"aria-label":p||`remove`,tabIndex:0,className:`${T}-menu-item-remove`,onClick:e=>{e.stopPropagation(),O(e,a)}},i||u.removeIcon||`×`))}));function A(e){let t=i.filter(e=>!e.disabled),n=t.findIndex(e=>e.key===x)||0,r=t.length;for(let i=0;i<r;i+=1){n=(n+e+r)%r;let i=t[n];if(!i.disabled){S(i.key);return}}}function j(e){let{which:t}=e;if(!y){[Z.DOWN,Z.SPACE,Z.ENTER].includes(t)&&(b(!0),e.preventDefault());return}switch(t){case Z.UP:A(-1),e.preventDefault();break;case Z.DOWN:A(1),e.preventDefault();break;case Z.ESC:b(!1);break;case Z.SPACE:case Z.ENTER:x!==null&&m(x,e);break}}(0,v.useEffect)(()=>{let e=document.getElementById(E);e?.scrollIntoView&&e.scrollIntoView(!1)},[E,x]),(0,v.useEffect)(()=>{y||S(null)},[y]);let M={marginInlineStart:d};i.length||(M.visibility=`hidden`,M.order=1);let N=Y(g,{[`${T}-rtl`]:f}),P=o?null:v.createElement(zx,qw({prefixCls:T,overlay:k,visible:i.length?y:!1,onVisibleChange:b,overlayClassName:N,overlayStyle:_,mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:h},s),v.createElement(`button`,{type:`button`,className:`${n}-nav-more`,style:M,"aria-haspopup":`listbox`,"aria-controls":w,id:`${r}-more`,"aria-expanded":y,onKeyDown:j},C));return v.createElement(`div`,{className:Y(`${n}-nav-operations`,l),style:c,ref:t},P,v.createElement(Gw,{prefixCls:n,locale:a,editable:u}))}),Yw=v.memo(Jw,(e,t)=>t.tabMoving),Xw=e=>{let{prefixCls:t,id:n,active:r,focus:i,tab:{key:a,label:o,disabled:s,closeIcon:c,icon:l},closable:u,renderWrapper:d,removeAriaLabel:f,editable:p,onClick:m,onFocus:h,onBlur:g,onKeyDown:_,onMouseDown:y,onMouseUp:b,style:x,className:S,tabCount:C,currentPosition:w}=e,T=`${t}-tab`,E=Ww(u,c,p,s);function D(e){s||m(e)}function O(e){e.preventDefault(),e.stopPropagation(),p.onEdit(`remove`,{key:a,event:e})}let k=v.useMemo(()=>l&&typeof o==`string`?v.createElement(`span`,null,o):o,[o,l]),A=v.useRef(null);v.useEffect(()=>{i&&A.current&&A.current.focus()},[i]);let j=v.createElement(`div`,{key:a,"data-node-key":Uw(a),className:Y(T,S,{[`${T}-with-remove`]:E,[`${T}-active`]:r,[`${T}-disabled`]:s,[`${T}-focus`]:i}),style:x,onClick:D},v.createElement(`div`,{ref:A,role:`tab`,"aria-selected":r,id:n&&`${n}-tab-${a}`,className:`${T}-btn`,"aria-controls":n&&`${n}-panel-${a}`,"aria-disabled":s,tabIndex:s?null:r?0:-1,onClick:e=>{e.stopPropagation(),D(e)},onKeyDown:_,onMouseDown:y,onMouseUp:b,onFocus:h,onBlur:g},i&&v.createElement(`div`,{"aria-live":`polite`,style:{width:0,height:0,position:`absolute`,overflow:`hidden`,opacity:0}},`Tab ${w} of ${C}`),l&&v.createElement(`span`,{className:`${T}-icon`},l),o&&k),E&&v.createElement(`button`,{type:`button`,"aria-label":f||`remove`,tabIndex:r?0:-1,className:`${T}-remove`,onClick:e=>{e.stopPropagation(),O(e)}},c||p.removeIcon||`×`));return d?d(j):j};function Zw(){return Zw=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},Zw.apply(this,arguments)}var Qw=(e,t)=>{let{offsetWidth:n,offsetHeight:r,offsetTop:i,offsetLeft:a}=e,{width:o,height:s,left:c,top:l}=e.getBoundingClientRect();return Math.abs(o-n)<1?[o,s,c-t.left,l-t.top]:[n,r,a,i]},$w=e=>{let{offsetWidth:t=0,offsetHeight:n=0}=e.current||{};if(e.current){let{width:n,height:r}=e.current.getBoundingClientRect();if(Math.abs(n-t)<1)return[n,r]}return[t,n]},eT=(e,t)=>e[+!t],tT=v.forwardRef((e,t)=>{let{className:n,style:r,id:i,animated:a,activeKey:o,rtl:s,extra:c,editable:l,locale:u,tabPosition:d,tabBarGutter:f,children:p,onTabClick:m,onTabScroll:h,indicator:g,classNames:_,styles:b}=e,{prefixCls:x,tabs:S}=v.useContext(Dw),C=(0,v.useRef)(null),w=(0,v.useRef)(null),T=(0,v.useRef)(null),E=(0,v.useRef)(null),D=(0,v.useRef)(null),O=(0,v.useRef)(null),k=(0,v.useRef)(null),A=d===`top`||d===`bottom`,[j,M]=jw(0,(e,t)=>{A&&h&&h({direction:e>t?`left`:`right`})}),[N,P]=jw(0,(e,t)=>{!A&&h&&h({direction:e>t?`top`:`bottom`})}),[F,I]=(0,v.useState)([0,0]),[R,z]=(0,v.useState)([0,0]),[B,V]=(0,v.useState)([0,0]),[H,U]=(0,v.useState)([0,0]),[W,ee]=Rw(new Map),te=Aw(S,W,R[0]),G=eT(F,A),ne=eT(R,A),re=eT(B,A),ie=eT(H,A),K=Math.floor(G)<Math.floor(ne+re),q=K?G-ie:G-re,ae=`${x}-nav-operations-hidden`,oe=0,se=0;A&&s?(oe=0,se=Math.max(0,ne-q)):(oe=Math.min(0,q-ne),se=0);function J(e){return e<oe?oe:e>se?se:e}let ce=(0,v.useRef)(null),[le,ue]=(0,v.useState)();function de(){ue(Date.now())}function fe(){ce.current&&clearTimeout(ce.current)}Iw(E,(e,t)=>{function n(e,t){e(e=>J(e+t))}return K?(A?n(M,e):n(P,t),fe(),de(),!0):!1}),(0,v.useEffect)(()=>(fe(),le&&(ce.current=setTimeout(()=>{ue(0)},100)),fe),[le]);let[pe,me]=Bw(te,q,A?j:N,ne,re,ie,{...e,tabs:S}),he=y((e=o)=>{let t=te.get(e)||{width:0,height:0,left:0,right:0,top:0};if(A){let e=j;s?t.right<j?e=t.right:t.right+t.width>j+q&&(e=t.right+t.width-q):t.left<-j?e=-t.left:t.left+t.width>-j+q&&(e=-(t.left+t.width-q)),P(0),M(J(e))}else{let e=N;t.top<-N?e=-t.top:t.top+t.height>-N+q&&(e=-(t.top+t.height-q)),M(0),P(J(e))}}),[ge,_e]=(0,v.useState)(),[ve,ye]=(0,v.useState)(!1),be=S.filter(e=>!e.disabled).map(e=>e.key),xe=e=>{let t=be.indexOf(ge||o),n=be.length,r=be[(t+e+n)%n];_e(r)},Se=(e,t)=>{let n=be.indexOf(e),r=S.find(t=>t.key===e);Ww(r?.closable,r?.closeIcon,l,r?.disabled)&&(t.preventDefault(),t.stopPropagation(),l.onEdit(`remove`,{key:e,event:t}),n===be.length-1?xe(-1):xe(1))},Ce=(e,t)=>{ye(!0),t.button===1&&Se(e,t)},we=e=>{let{code:t}=e,n=s&&A,r=be[0],i=be[be.length-1];switch(t){case`ArrowLeft`:A&&xe(n?1:-1);break;case`ArrowRight`:A&&xe(n?-1:1);break;case`ArrowUp`:e.preventDefault(),A||xe(-1);break;case`ArrowDown`:e.preventDefault(),A||xe(1);break;case`Home`:e.preventDefault(),_e(r);break;case`End`:e.preventDefault(),_e(i);break;case`Enter`:case`Space`:e.preventDefault(),m(ge??o,e);break;case`Backspace`:case`Delete`:Se(ge,e);break}},Te={};A?Te.marginInlineStart=f:Te.marginTop=f;let Ee=S.map((e,t)=>{let{key:n}=e;return v.createElement(Xw,{id:i,prefixCls:x,key:n,tab:e,className:_?.item,style:t===0?b?.item:{...Te,...b?.item},closable:e.closable,editable:l,active:n===o,focus:n===ge,renderWrapper:p,removeAriaLabel:u?.removeAriaLabel,tabCount:be.length,currentPosition:t+1,onClick:e=>{m(n,e)},onKeyDown:we,onFocus:()=>{ve||_e(n),he(n),de(),E.current&&(s||(E.current.scrollLeft=0),E.current.scrollTop=0)},onBlur:()=>{_e(void 0)},onMouseDown:e=>Ce(n,e),onMouseUp:()=>{ye(!1)}})}),De=()=>ee(()=>{let e=new Map,t=D.current?.getBoundingClientRect();return S.forEach(({key:n})=>{let r=D.current?.querySelector(`[data-node-key="${Uw(n)}"]`);if(r){let[i,a,o,s]=Qw(r,t);e.set(n,{width:i,height:a,left:o,top:s})}}),e});(0,v.useEffect)(()=>{De()},[S.map(e=>e.key).join(`_`)]);let Oe=Lw(()=>{let e=$w(C),t=$w(w),n=$w(T);I([e[0]-t[0]-n[0],e[1]-t[1]-n[1]]);let r=$w(k);V(r),U($w(O));let i=$w(D);z([i[0]-r[0],i[1]-r[1]]),De()}),ke=S.slice(0,pe),Ae=S.slice(me+1),je=[...ke,...Ae],Ne=te.get(o),{style:Pe}=Ow({activeTabOffset:Ne,horizontal:A,indicator:g,rtl:s});(0,v.useEffect)(()=>{he()},[o,oe,se,Vw(Ne),Vw(te),A]),(0,v.useEffect)(()=>{Oe()},[s]);let Fe=!!je.length,Ie=`${x}-nav-wrap`,Le,Re,ze,Be;return A?s?(Re=j>0,Le=j!==se):(Le=j<0,Re=j!==oe):(ze=N<0,Be=N!==oe),v.createElement(Me,{onResize:Oe},v.createElement(`div`,{ref:L(t,C),role:`tablist`,"aria-orientation":A?`horizontal`:`vertical`,className:Y(`${x}-nav`,n,_?.header),style:{...b?.header,...r},onKeyDown:()=>{de()}},v.createElement(Kw,{ref:w,position:`left`,extra:c,prefixCls:x}),v.createElement(Me,{onResize:Oe},v.createElement(`div`,{className:Y(Ie,{[`${Ie}-ping-left`]:Le,[`${Ie}-ping-right`]:Re,[`${Ie}-ping-top`]:ze,[`${Ie}-ping-bottom`]:Be}),ref:E},v.createElement(Me,{onResize:Oe},v.createElement(`div`,{ref:D,className:`${x}-nav-list`,style:{transform:`translate(${j}px, ${N}px)`,transition:le?`none`:void 0}},Ee,v.createElement(Gw,{ref:k,prefixCls:x,locale:u,editable:l,style:{...Ee.length===0?void 0:Te,visibility:Fe?`hidden`:null}}),v.createElement(`div`,{className:Y(`${x}-ink-bar`,_?.indicator,{[`${x}-ink-bar-animated`]:a.inkBar}),style:{...Pe,...b?.indicator}}))))),v.createElement(Yw,Zw({},e,{removeAriaLabel:u?.removeAriaLabel,ref:O,prefixCls:x,tabs:je,className:!Fe&&ae,popupStyle:b?.popup,tabMoving:!!le})),v.createElement(Kw,{ref:T,position:`right`,extra:c,prefixCls:x})))}),nT=({renderTabBar:e,...t})=>e?e(t,tT):v.createElement(tT,t),rT=v.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:i,id:a,active:o,tabKey:s,children:c}=e,l=v.Children.count(c)>0;return v.createElement(`div`,{id:a&&`${a}-panel-${s}`,role:`tabpanel`,tabIndex:o&&l?0:-1,"aria-labelledby":a&&`${a}-tab-${s}`,"aria-hidden":!o,style:i,className:Y(n,o&&`${n}-active`,r),ref:t},c)});function iT(){return iT=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},iT.apply(this,arguments)}var aT=e=>{let{id:t,activeKey:n,animated:r,tabPosition:i,destroyOnHidden:a,contentStyle:o,contentClassName:s}=e,{prefixCls:c,tabs:l}=v.useContext(Dw),u=r.tabPane,d=`${c}-tabpane`;return v.createElement(`div`,{className:Y(`${c}-content-holder`)},v.createElement(`div`,{className:Y(`${c}-content`,`${c}-content-${i}`,{[`${c}-content-animated`]:u})},l.map(e=>{let{key:i,forceRender:c,style:l,className:f,destroyOnHidden:p,...m}=e,h=i===n;return v.createElement(Os,iT({key:i,visible:h,forceRender:c,removeOnLeave:!!(a??p),leavedClassName:`${d}-hidden`},r.tabPaneMotion),({style:e,className:n},r)=>v.createElement(rT,iT({},m,{prefixCls:d,id:t,tabKey:i,animated:u,active:h,style:{...o,...l,...e},className:Y(s,f,n),ref:r})))})))};function oT(e={inkBar:!0,tabPane:!1}){let t;return t=e===!1?{inkBar:!1,tabPane:!1}:e===!0?{inkBar:!0,tabPane:!1}:{inkBar:!0,...typeof e==`object`?e:{}},t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}function sT(){return sT=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},sT.apply(this,arguments)}var cT=0,lT=v.forwardRef((e,t)=>{let{id:n,prefixCls:r=`rc-tabs`,className:i,items:a,direction:o,activeKey:s,defaultActiveKey:c,editable:l,animated:u,tabPosition:d=`top`,tabBarGutter:f,tabBarStyle:p,tabBarExtraContent:m,locale:h,more:g,destroyOnHidden:_,renderTabBar:y,onChange:b,onTabClick:x,onTabScroll:S,getPopupContainer:C,popupClassName:w,indicator:E,classNames:D,styles:O,...k}=e,A=v.useMemo(()=>(a||[]).filter(e=>e&&typeof e==`object`&&`key`in e),[a]),j=o===`rtl`,M=oT(u),[N,P]=(0,v.useState)(!1);(0,v.useEffect)(()=>{P(Ew())},[]);let[F,I]=T(c??A[0]?.key,s),[L,R]=(0,v.useState)(()=>A.findIndex(e=>e.key===F));(0,v.useEffect)(()=>{let e=A.findIndex(e=>e.key===F);e===-1&&(e=Math.max(0,Math.min(L,A.length-1)),I(A[e]?.key)),R(e)},[A.map(e=>e.key).join(`_`),F,L]);let[z,B]=T(null,n);(0,v.useEffect)(()=>{n||(B(`rc-tabs-${cT}`),cT+=1)},[]);function V(e,t){x?.(e,t);let n=e!==F;I(e),n&&b?.(e)}let H={id:z,activeKey:F,animated:M,tabPosition:d,rtl:j,mobile:N},U={...H,editable:l,locale:h,more:g,tabBarGutter:f,onTabClick:V,onTabScroll:S,extra:m,style:p,getPopupContainer:C,popupClassName:Y(w,D?.popup),indicator:E,styles:O,classNames:D},W=v.useMemo(()=>({tabs:A,prefixCls:r}),[A,r]);return v.createElement(Dw.Provider,{value:W},v.createElement(`div`,sT({ref:t,id:n,className:Y(r,`${r}-${d}`,{[`${r}-mobile`]:N,[`${r}-editable`]:l,[`${r}-rtl`]:j},i)},k),v.createElement(nT,sT({},U,{renderTabBar:y})),v.createElement(aT,sT({destroyOnHidden:_},H,{contentStyle:O?.content,contentClassName:D?.content,animated:M}))))}),uT={motionAppear:!1,motionEnter:!0,motionLeave:!0};function dT(e,t={inkBar:!0,tabPane:!1}){let n;return n=t===!1?{inkBar:!1,tabPane:!1}:t===!0?{inkBar:!0,tabPane:!0}:{inkBar:!0,...sc(t)?t:{}},n.tabPane&&(n.tabPaneMotion={...uT,motionName:bd(e,`switch`)}),n}function fT(e){return e.filter(e=>e)}function pT(e,t){return e?e.map(e=>({...e,destroyOnHidden:e.destroyOnHidden??e.destroyInactiveTabPane})):fT(de(t).map(e=>{if(v.isValidElement(e)){let{key:t,props:n}=e,{tab:r,...i}=n||{};return{key:String(t),...i,label:r}}return null}))}var mT=e=>{let{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:`none`,"&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:`absolute`,transition:`none`,inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[bf(e,`slide-up`),bf(e,`slide-down`)]]},hT=e=>{let{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:i,colorBorderSecondary:a,itemSelectedColor:o}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${X(e.lineWidth)} ${e.lineType} ${a}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:o,background:e.colorBgContainer},[`${t}-tab-focus:has(${t}-tab-btn:focus-visible)`]:Ha(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:X(i)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${X(e.borderRadiusLG)} ${X(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${X(e.borderRadiusLG)} ${X(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:X(i)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${X(e.borderRadiusLG)} 0 0 ${X(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 ${X(e.borderRadiusLG)} ${X(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},gT=e=>{let{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:{...za(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:`${X(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":{...Ra,display:`flex`,alignItems:`center`,minWidth:e.tabsDropdownWidth,margin:0,padding:`${X(e.paddingXXS)} ${X(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`}}}}}}},_T=e=>{let{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:i,verticalItemPadding:a,verticalItemMargin:o,motionDurationSlow:s,calc:c}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:`column`,[`> ${t}-nav, > div > ${t}-nav`]:{margin:i,"&::before":{position:`absolute`,right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${X(e.lineWidth)} ${e.lineType} ${r}`,content:`''`},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:[`width`,`left`,`right`].map(e=>`${e} ${s}`).join(`, `)}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav,
216
- > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:`column`,minWidth:c(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:a,textAlign:`center`},[`${t}-tab + ${t}-tab`]:{margin:o},[`${t}-nav-wrap`]:{flexDirection:`column`,"&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:[`height`,`top`].map(e=>`${e} ${s}`).join(`, `)}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:`1 0 auto`,flexDirection:`column`}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:X(c(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${X(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:c(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${X(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},vT=e=>{let{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,cardHeightSM:i,cardHeightLG:a,horizontalItemPaddingSM:o,horizontalItemPaddingLG:s}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:s,fontSize:e.titleFontSizeLG,lineHeight:e.lineHeightLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n},[`${t}-nav-add`]:{minWidth:i,minHeight:i}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${X(e.borderRadius)} ${X(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${X(e.borderRadius)} ${X(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${X(e.borderRadius)} ${X(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${X(e.borderRadius)} 0 0 ${X(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r},[`${t}-nav-add`]:{minWidth:a,minHeight:a}}}}}},yT=e=>{let{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:i,tabsHorizontalItemMargin:a,horizontalItemPadding:o,itemSelectedColor:s,itemColor:c}=e,l=`${t}-tab`;return{[l]:{position:`relative`,WebkitTouchCallout:`none`,WebkitTapHighlightColor:`transparent`,display:`inline-flex`,alignItems:`center`,padding:o,fontSize:e.titleFontSize,background:`transparent`,border:0,outline:`none`,cursor:`pointer`,color:c,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:n}},"&-btn":{outline:`none`,transition:`all ${e.motionDurationSlow}`,[`${l}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":{flex:`none`,lineHeight:1,marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorIcon,fontSize:e.fontSizeSM,background:`transparent`,border:`none`,outline:`none`,cursor:`pointer`,transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading},...Ua(e)},"&:hover":{color:r},[`&${l}-active ${l}-btn`]:{color:s},[`&${l}-focus ${l}-btn:focus-visible`]:Ha(e),[`&${l}-disabled`]:{color:e.colorTextDisabled,cursor:`not-allowed`},[`&${l}-disabled ${l}-btn, &${l}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${l}-remove ${i}`]:{margin:0,verticalAlign:`middle`},[`${i}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${l} + ${l}`]:{margin:{_skip_check_:!0,value:a}}}},bT=e=>{let{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:i,calc:a}=e;return{[`${t}-rtl`]:{direction:`rtl`,[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:e.marginSM}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:e.marginXS},marginLeft:{_skip_check_:!0,value:a(e.marginXXS).mul(-1).equal()},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:i},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:`rtl`},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:`right`}}}}},xT=e=>{let{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:i,itemHoverColor:a,itemActiveColor:o,colorBorderSecondary:s}=e;return{[t]:{...za(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:`${X(e.lineWidth)} ${e.lineType} ${s}`,borderRadius:`${X(e.borderRadiusLG)} ${X(e.borderRadiusLG)} 0 0`,outline:`none`,cursor:`pointer`,color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:a},"&:active, &:focus:not(:focus-visible)":{color:o},...Ua(e,-3)}},[`${t}-extra-content`]:{flex:`none`},[`${t}-ink-bar`]:{position:`absolute`,background:e.inkBarColor,pointerEvents:`none`},...yT(e),[`${t}-content`]:{position:`relative`,width:`100%`},[`${t}-content-holder`]:{flex:`auto`,minWidth:0,minHeight:0},[`${t}-tabpane`]:{...Ua(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`}}}}}},ST=Ja(`Tabs`,e=>{let t=si(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${X(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${X(e.horizontalItemGutter)}`});return[vT(t),bT(t),_T(t),gT(t),hT(t),xT(t),mT(t)]},e=>{let{cardHeight:t,cardHeightSM:n,cardHeightLG:r,controlHeight:i,controlHeightLG:a}=e,o=t||a,s=n||i,c=r||a+8;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:o,cardHeightSM:s,cardHeightLG:c,cardPadding:`${(o-e.fontHeight)/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${(s-e.fontHeight)/2-e.lineWidth}px ${e.paddingXS}px`,cardPaddingLG:`${(c-e.fontHeightLG)/2-e.lineWidth}px ${e.padding}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:``,horizontalItemMarginRTL:``,horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}}),CT=()=>null,wT=v.forwardRef((e,t)=>{let{type:n,className:r,rootClassName:i,size:a,onEdit:o,hideAdd:s,centered:c,addIcon:l,removeIcon:u,moreIcon:d,more:f,popupClassName:p,children:m,items:h,animated:g,style:_,indicatorSize:y,indicator:b,classNames:x,styles:S,destroyInactiveTabPane:C,destroyOnHidden:w,tabPlacement:T,tabPosition:E,...D}=e,{prefixCls:O}=D,{getPrefixCls:k,direction:A,getPopupContainer:j,className:M,style:N,classNames:P,styles:F}=Ze(`tabs`),{tabs:I}=v.useContext(Je),L=k(`tabs`,O),R=Yc(L),[z,B]=ST(L,R),V=v.useRef(null);v.useImperativeHandle(t,()=>({nativeElement:V.current}));let H;n===`editable-card`&&(H={onEdit:(e,{key:t,event:n})=>{o?.(e===`add`?n:t,e)},removeIcon:u??I?.removeIcon??v.createElement(Ao,null),addIcon:(l??I?.addIcon)||v.createElement(Cw,null),showAdd:s!==!0});let U=k(),W=Ad(a),ee=pT(h,m),te=dT(L,g),G={align:b?.align??I?.indicator?.align,size:b?.size??y??I?.indicator?.size??I?.indicatorSize},ne=v.useMemo(()=>{let e=T??E??void 0,t=A===`rtl`;switch(e){case`start`:return t?`right`:`left`;case`end`:return t?`left`:`right`;default:return e}},[T,E,A]),re={...e,size:W,tabPlacement:ne,items:ee},[ie,K]=Dc([P,x],[F,S],{props:re},{popup:{_default:`root`}});return v.createElement(lT,{ref:V,direction:A,getPopupContainer:j,...D,items:ee,className:Y({[`${L}-large`]:W===`large`,[`${L}-small`]:W===`small`,[`${L}-card`]:[`card`,`editable-card`].includes(n),[`${L}-editable-card`]:n===`editable-card`,[`${L}-centered`]:c},M,r,i,ie.root,z,B,R),classNames:{...ie,popup:Y(p,z,B,R,ie.popup?.root)},styles:K,style:{...K.root,...N,..._},editable:H,more:{icon:I?.more?.icon??I?.moreIcon??d??v.createElement(_C,null),transitionName:`${U}-slide-up`,...f},prefixCls:L,animated:te,indicator:G,destroyOnHidden:w??C,tabPosition:ne})});wT.TabPane=CT;var TT=({prefixCls:e,className:t,hoverable:n=!0,...r})=>{let{getPrefixCls:i}=v.useContext(Je),a=i(`card`,e),o=Y(`${a}-grid`,t,{[`${a}-grid-hoverable`]:n});return v.createElement(`div`,{...r,className:o})},ET=e=>{let{antCls:t,componentCls:n,headerHeight:r,headerPadding:i,tabsMarginBottom:a}=e;return{display:`flex`,justifyContent:`center`,flexDirection:`column`,minHeight:r,marginBottom:-1,padding:`0 ${X(i)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${X(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${X(e.borderRadiusLG)} ${X(e.borderRadiusLG)} 0 0`,...Va(),"&-wrapper":{width:`100%`,display:`flex`,alignItems:`center`},"&-title":{display:`inline-block`,flex:1,...Ra,[`
215
+ & > ${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`]:{}}}}},hw=e=>{let{componentCls:t,controlHeightSM:n,lineWidth:r,calc:i}=e,a=i(n).sub(i(r).mul(2)).sub(16).div(2).equal();return{[t]:{...za(e),...pw(e),...QC(e),...iw(e),...tw(e),...lw(e),'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:a,paddingBottom:a}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:`none`}}}},gw=e=>{let{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,padding:0,lineHeight:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:`pointer`,transition:`color ${e.motionDurationSlow}`,border:`none`,outline:`none`,backgroundColor:`transparent`,"&:hover":{color:e.colorIcon},"&:focus-visible":{color:e.colorIcon,borderRadius:e.borderRadiusSM,...Ha(e)},"&:active":{color:e.colorText},"&-hidden":{visibility:`hidden`},"&-has-suffix":{margin:`0 ${X(e.inputAffixPadding)}`}}}},_w=e=>{let{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:i,colorIcon:a,colorIconHover:o,iconCls:s}=e,c=`${t}-affix-wrapper`,l=`${t}-affix-wrapper-disabled`;return{[c]:{...pw(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}},...gw(e),[`${s}${t}-password-icon`]:{color:a,cursor:`pointer`,transition:`all ${i}`,"&:hover":{color:o}}},[`${t}-underlined`]:{borderRadius:0},[l]:{[`${s}${t}-password-icon`]:{color:a,cursor:`not-allowed`,"&:hover":{color:a}}}}},vw=e=>{let{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:{...za(e),...mw(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}},...ew(e),...ow(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}}}}}},yw=e=>{let{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},bw=Ja([`Input`,`Shared`],e=>{let t=si(e,KC(e));return[hw(t),_w(t)]},qC,{resetFont:!1}),xw=Ja([`Input`,`Component`],e=>{let t=si(e,KC(e));return[vw(t),yw(t),up(t,{focus:!0,focusElCls:`${t.componentCls}-affix-wrapper-focused`})]},qC,{resetFont:!1}),Sw={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 Cw(){return Cw=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},Cw.apply(this,arguments)}var ww=v.forwardRef((e,t)=>v.createElement(So,Cw({},e,{ref:t,icon:Sw}))),Tw=l(o(((e,t)=>{t.exports=a,t.exports.isMobile=a,t.exports.default=a;var n=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|redmi|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,r=/CrOS/,i=/android|ipad|playbook|silk/i;function a(e){e||={};let t=e.ua;if(!t&&typeof navigator<`u`&&(t=navigator.userAgent),t&&t.headers&&typeof t.headers[`user-agent`]==`string`&&(t=t.headers[`user-agent`]),typeof t!=`string`)return!1;let a=n.test(t)&&!r.test(t)||!!e.tablet&&i.test(t);return!a&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&t.indexOf(`Macintosh`)!==-1&&t.indexOf(`Safari`)!==-1&&(a=!0),a}}))()),Ew,Dw=()=>(Ew===void 0&&(Ew=(0,Tw.default)()),Ew),Ow=(0,v.createContext)(null),kw=e=>{let{activeTabOffset:t,horizontal:n,rtl:r,indicator:i={}}=e,{size:a,align:o=`center`}=i,[s,c]=(0,v.useState)(),l=(0,v.useRef)(),u=v.useCallback(e=>typeof a==`function`?a(e):typeof a==`number`?a:e,[a]);function d(){Ge.cancel(l.current)}return(0,v.useEffect)(()=>{let e={};if(t)if(n){e.width=u(t.width);let n=r?`right`:`left`;o===`start`&&(e[n]=t[n]),o===`center`&&(e[n]=t[n]+t.width/2,e.transform=r?`translateX(50%)`:`translateX(-50%)`),o===`end`&&(e[n]=t[n]+t.width,e.transform=`translateX(-100%)`)}else e.height=u(t.height),o===`start`&&(e.top=t.top),o===`center`&&(e.top=t.top+t.height/2,e.transform=`translateY(-50%)`),o===`end`&&(e.top=t.top+t.height,e.transform=`translateY(-100%)`);return d(),l.current=Ge(()=>{s&&e&&Object.keys(e).every(t=>{let n=e[t],r=s[t];return typeof n==`number`&&typeof r==`number`?Math.round(n)===Math.round(r):n===r})||c(e)}),d},[JSON.stringify(t),n,r,o,u]),{style:s}},Aw={width:0,height:0,left:0,top:0};function jw(e,t,n){return(0,v.useMemo)(()=>{let n=new Map,r=t.get(e[0]?.key)||Aw,i=r.left+r.width;for(let r=0;r<e.length;r+=1){let{key:a}=e[r],o=t.get(a);o||=t.get(e[r-1]?.key)||Aw;let s=n.get(a)||{...o};s.right=i-s.left-s.width,n.set(a,s)}return n},[e.map(e=>e.key).join(`_`),t,n])}function Mw(e,t){let n=v.useRef(e),[,r]=v.useState({});function i(e){let i=typeof e==`function`?e(n.current):e;i!==n.current&&t(i,n.current),n.current=i,r({})}return[n.current,i]}var Nw=.1,Pw=.01,Fw=20,Iw=.995**Fw;function Lw(e,t){let[n,r]=(0,v.useState)(),[i,a]=(0,v.useState)(0),[o,s]=(0,v.useState)(0),[c,l]=(0,v.useState)(),u=(0,v.useRef)();function d(e){let{screenX:t,screenY:n}=e.touches[0];r({x:t,y:n}),window.clearInterval(u.current)}function f(e){if(!n)return;let{screenX:o,screenY:c}=e.touches[0];r({x:o,y:c});let u=o-n.x,d=c-n.y;t(u,d);let f=Date.now();a(f),s(f-i),l({x:u,y:d})}function p(){if(n&&(r(null),l(null),c)){let e=c.x/o,n=c.y/o;if(Math.max(Math.abs(e),Math.abs(n))<Nw)return;let r=e,i=n;u.current=window.setInterval(()=>{if(Math.abs(r)<Pw&&Math.abs(i)<Pw){window.clearInterval(u.current);return}r*=Iw,i*=Iw,t(r*Fw,i*Fw)},Fw)}}let m=(0,v.useRef)();function h(e){let{deltaX:n,deltaY:r}=e,i=0,a=Math.abs(n),o=Math.abs(r);a===o?i=m.current===`x`?n:r:a>o?(i=n,m.current=`x`):(i=r,m.current=`y`),t(-i,-i)&&e.preventDefault()}let g=(0,v.useRef)(null);g.current={onTouchStart:d,onTouchMove:f,onTouchEnd:p,onWheel:h},v.useEffect(()=>{function t(e){g.current.onTouchStart(e)}function n(e){g.current.onTouchMove(e)}function r(e){g.current.onTouchEnd(e)}function i(e){g.current.onWheel(e)}return document.addEventListener(`touchmove`,n,{passive:!1}),document.addEventListener(`touchend`,r,{passive:!0}),e.current.addEventListener(`touchstart`,t,{passive:!0}),e.current.addEventListener(`wheel`,i,{passive:!1}),()=>{document.removeEventListener(`touchmove`,n),document.removeEventListener(`touchend`,r)}},[])}function Rw(e){let[t,n]=(0,v.useState)(0),r=(0,v.useRef)(0),i=(0,v.useRef)();return i.current=e,C(()=>{i.current?.()},[t]),()=>{r.current===t&&(r.current+=1,n(r.current))}}function zw(e){let t=(0,v.useRef)([]),[,n]=(0,v.useState)({}),r=(0,v.useRef)(typeof e==`function`?e():e),i=Rw(()=>{let e=r.current;t.current.forEach(t=>{e=t(e)}),t.current=[],r.current=e,n({})});function a(e){t.current.push(e),i()}return[r.current,a]}var Bw={width:0,height:0,left:0,top:0,right:0};function Vw(e,t,n,r,i,a,{tabs:o,tabPosition:s,rtl:c}){let l,u,d;return[`top`,`bottom`].includes(s)?(l=`width`,u=c?`right`:`left`,d=Math.abs(n)):(l=`height`,u=`top`,d=-n),(0,v.useMemo)(()=>{if(!o.length)return[0,0];let n=o.length,r=n;for(let i=0;i<n;i+=1){let n=e.get(o[i].key)||Bw;if(Math.floor(n[u]+n[l])>Math.floor(d+t)){r=i-1;break}}let i=0;for(let t=n-1;t>=0;--t)if((e.get(o[t].key)||Bw)[u]<d){i=t+1;break}return i>r?[0,-1]:[i,r]},[e,t,r,i,a,d,s,o.map(e=>e.key).join(`_`),c])}function Hw(e){let t;return e instanceof Map?(t={},e.forEach((e,n)=>{t[n]=e})):t=e,JSON.stringify(t)}var Uw=`TABS_DQ`;function Ww(e){return String(e).replace(/"/g,Uw)}function Gw(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}var Kw=v.forwardRef((e,t)=>{let{prefixCls:n,editable:r,locale:i,style:a}=e;return!r||r.showAdd===!1?null:v.createElement(`button`,{ref:t,type:`button`,className:`${n}-nav-add`,style:a,"aria-label":i?.addAriaLabel||`Add tab`,onClick:e=>{r.onEdit(`add`,{event:e})}},r.addIcon||`+`)}),qw=v.forwardRef((e,t)=>{let{position:n,prefixCls:r,extra:i}=e;if(!i)return null;let a,o={};return typeof i==`object`&&!v.isValidElement(i)?o=i:o.right=i,n===`right`&&(a=o.right),n===`left`&&(a=o.left),a?v.createElement(`div`,{className:`${r}-extra-content`,ref:t},a):null});function Jw(){return Jw=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},Jw.apply(this,arguments)}var Yw=v.forwardRef((e,t)=>{let{prefixCls:n,id:r,tabs:i,locale:a,mobile:o,more:s={},style:c,className:l,editable:u,tabBarGutter:d,rtl:f,removeAriaLabel:p,onTabClick:m,getPopupContainer:h,popupClassName:g,popupStyle:_}=e,[y,b]=(0,v.useState)(!1),[x,S]=(0,v.useState)(null),{icon:C=`More`}=s,w=`${r}-more-popup`,T=`${n}-dropdown`,E=x===null?null:`${w}-${x}`,D=a?.dropdownAriaLabel;function O(e,t){e.preventDefault(),e.stopPropagation(),u.onEdit(`remove`,{key:t,event:e})}let k=v.createElement(tC,{onClick:({key:e,domEvent:t})=>{m(e,t),b(!1)},prefixCls:`${T}-menu`,id:w,tabIndex:-1,role:`listbox`,"aria-activedescendant":E,selectedKeys:[x],"aria-label":D===void 0?`expanded dropdown`:D},i.map(e=>{let{closable:t,disabled:n,closeIcon:i,key:a,label:o}=e,s=Gw(t,i,u,n);return v.createElement(jS,{key:a,id:`${w}-${a}`,role:`option`,"aria-controls":r&&`${r}-panel-${a}`,disabled:n},v.createElement(`span`,null,o),s&&v.createElement(`button`,{type:`button`,"aria-label":p||`remove`,tabIndex:0,className:`${T}-menu-item-remove`,onClick:e=>{e.stopPropagation(),O(e,a)}},i||u.removeIcon||`×`))}));function A(e){let t=i.filter(e=>!e.disabled),n=t.findIndex(e=>e.key===x)||0,r=t.length;for(let i=0;i<r;i+=1){n=(n+e+r)%r;let i=t[n];if(!i.disabled){S(i.key);return}}}function j(e){let{which:t}=e;if(!y){[Z.DOWN,Z.SPACE,Z.ENTER].includes(t)&&(b(!0),e.preventDefault());return}switch(t){case Z.UP:A(-1),e.preventDefault();break;case Z.DOWN:A(1),e.preventDefault();break;case Z.ESC:b(!1);break;case Z.SPACE:case Z.ENTER:x!==null&&m(x,e);break}}(0,v.useEffect)(()=>{let e=document.getElementById(E);e?.scrollIntoView&&e.scrollIntoView(!1)},[E,x]),(0,v.useEffect)(()=>{y||S(null)},[y]);let M={marginInlineStart:d};i.length||(M.visibility=`hidden`,M.order=1);let N=Y(g,{[`${T}-rtl`]:f}),P=o?null:v.createElement(Bx,Jw({prefixCls:T,overlay:k,visible:i.length?y:!1,onVisibleChange:b,overlayClassName:N,overlayStyle:_,mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:h},s),v.createElement(`button`,{type:`button`,className:`${n}-nav-more`,style:M,"aria-haspopup":`listbox`,"aria-controls":w,id:`${r}-more`,"aria-expanded":y,onKeyDown:j},C));return v.createElement(`div`,{className:Y(`${n}-nav-operations`,l),style:c,ref:t},P,v.createElement(Kw,{prefixCls:n,locale:a,editable:u}))}),Xw=v.memo(Yw,(e,t)=>t.tabMoving),Zw=e=>{let{prefixCls:t,id:n,active:r,focus:i,tab:{key:a,label:o,disabled:s,closeIcon:c,icon:l},closable:u,renderWrapper:d,removeAriaLabel:f,editable:p,onClick:m,onFocus:h,onBlur:g,onKeyDown:_,onMouseDown:y,onMouseUp:b,style:x,className:S,tabCount:C,currentPosition:w}=e,T=`${t}-tab`,E=Gw(u,c,p,s);function D(e){s||m(e)}function O(e){e.preventDefault(),e.stopPropagation(),p.onEdit(`remove`,{key:a,event:e})}let k=v.useMemo(()=>l&&typeof o==`string`?v.createElement(`span`,null,o):o,[o,l]),A=v.useRef(null);v.useEffect(()=>{i&&A.current&&A.current.focus()},[i]);let j=v.createElement(`div`,{key:a,"data-node-key":Ww(a),className:Y(T,S,{[`${T}-with-remove`]:E,[`${T}-active`]:r,[`${T}-disabled`]:s,[`${T}-focus`]:i}),style:x,onClick:D},v.createElement(`div`,{ref:A,role:`tab`,"aria-selected":r,id:n&&`${n}-tab-${a}`,className:`${T}-btn`,"aria-controls":n&&`${n}-panel-${a}`,"aria-disabled":s,tabIndex:s?null:r?0:-1,onClick:e=>{e.stopPropagation(),D(e)},onKeyDown:_,onMouseDown:y,onMouseUp:b,onFocus:h,onBlur:g},i&&v.createElement(`div`,{"aria-live":`polite`,style:{width:0,height:0,position:`absolute`,overflow:`hidden`,opacity:0}},`Tab ${w} of ${C}`),l&&v.createElement(`span`,{className:`${T}-icon`},l),o&&k),E&&v.createElement(`button`,{type:`button`,"aria-label":f||`remove`,tabIndex:r?0:-1,className:`${T}-remove`,onClick:e=>{e.stopPropagation(),O(e)}},c||p.removeIcon||`×`));return d?d(j):j};function Qw(){return Qw=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},Qw.apply(this,arguments)}var $w=(e,t)=>{let{offsetWidth:n,offsetHeight:r,offsetTop:i,offsetLeft:a}=e,{width:o,height:s,left:c,top:l}=e.getBoundingClientRect();return Math.abs(o-n)<1?[o,s,c-t.left,l-t.top]:[n,r,a,i]},eT=e=>{let{offsetWidth:t=0,offsetHeight:n=0}=e.current||{};if(e.current){let{width:n,height:r}=e.current.getBoundingClientRect();if(Math.abs(n-t)<1)return[n,r]}return[t,n]},tT=(e,t)=>e[+!t],nT=v.forwardRef((e,t)=>{let{className:n,style:r,id:i,animated:a,activeKey:o,rtl:s,extra:c,editable:l,locale:u,tabPosition:d,tabBarGutter:f,children:p,onTabClick:m,onTabScroll:h,indicator:g,classNames:_,styles:b}=e,{prefixCls:x,tabs:S}=v.useContext(Ow),C=(0,v.useRef)(null),w=(0,v.useRef)(null),T=(0,v.useRef)(null),E=(0,v.useRef)(null),D=(0,v.useRef)(null),O=(0,v.useRef)(null),k=(0,v.useRef)(null),A=d===`top`||d===`bottom`,[j,M]=Mw(0,(e,t)=>{A&&h&&h({direction:e>t?`left`:`right`})}),[N,P]=Mw(0,(e,t)=>{!A&&h&&h({direction:e>t?`top`:`bottom`})}),[F,I]=(0,v.useState)([0,0]),[R,z]=(0,v.useState)([0,0]),[B,V]=(0,v.useState)([0,0]),[H,U]=(0,v.useState)([0,0]),[W,ee]=zw(new Map),te=jw(S,W,R[0]),G=tT(F,A),ne=tT(R,A),re=tT(B,A),ie=tT(H,A),K=Math.floor(G)<Math.floor(ne+re),q=K?G-ie:G-re,ae=`${x}-nav-operations-hidden`,oe=0,se=0;A&&s?(oe=0,se=Math.max(0,ne-q)):(oe=Math.min(0,q-ne),se=0);function J(e){return e<oe?oe:e>se?se:e}let ce=(0,v.useRef)(null),[le,ue]=(0,v.useState)();function de(){ue(Date.now())}function fe(){ce.current&&clearTimeout(ce.current)}Lw(E,(e,t)=>{function n(e,t){e(e=>J(e+t))}return K?(A?n(M,e):n(P,t),fe(),de(),!0):!1}),(0,v.useEffect)(()=>(fe(),le&&(ce.current=setTimeout(()=>{ue(0)},100)),fe),[le]);let[pe,me]=Vw(te,q,A?j:N,ne,re,ie,{...e,tabs:S}),he=y((e=o)=>{let t=te.get(e)||{width:0,height:0,left:0,right:0,top:0};if(A){let e=j;s?t.right<j?e=t.right:t.right+t.width>j+q&&(e=t.right+t.width-q):t.left<-j?e=-t.left:t.left+t.width>-j+q&&(e=-(t.left+t.width-q)),P(0),M(J(e))}else{let e=N;t.top<-N?e=-t.top:t.top+t.height>-N+q&&(e=-(t.top+t.height-q)),M(0),P(J(e))}}),[ge,_e]=(0,v.useState)(),[ve,ye]=(0,v.useState)(!1),be=S.filter(e=>!e.disabled).map(e=>e.key),xe=e=>{let t=be.indexOf(ge||o),n=be.length,r=be[(t+e+n)%n];_e(r)},Se=(e,t)=>{let n=be.indexOf(e),r=S.find(t=>t.key===e);Gw(r?.closable,r?.closeIcon,l,r?.disabled)&&(t.preventDefault(),t.stopPropagation(),l.onEdit(`remove`,{key:e,event:t}),n===be.length-1?xe(-1):xe(1))},Ce=(e,t)=>{ye(!0),t.button===1&&Se(e,t)},we=e=>{let{code:t}=e,n=s&&A,r=be[0],i=be[be.length-1];switch(t){case`ArrowLeft`:A&&xe(n?1:-1);break;case`ArrowRight`:A&&xe(n?-1:1);break;case`ArrowUp`:e.preventDefault(),A||xe(-1);break;case`ArrowDown`:e.preventDefault(),A||xe(1);break;case`Home`:e.preventDefault(),_e(r);break;case`End`:e.preventDefault(),_e(i);break;case`Enter`:case`Space`:e.preventDefault(),m(ge??o,e);break;case`Backspace`:case`Delete`:Se(ge,e);break}},Te={};A?Te.marginInlineStart=f:Te.marginTop=f;let Ee=S.map((e,t)=>{let{key:n}=e;return v.createElement(Zw,{id:i,prefixCls:x,key:n,tab:e,className:_?.item,style:t===0?b?.item:{...Te,...b?.item},closable:e.closable,editable:l,active:n===o,focus:n===ge,renderWrapper:p,removeAriaLabel:u?.removeAriaLabel,tabCount:be.length,currentPosition:t+1,onClick:e=>{m(n,e)},onKeyDown:we,onFocus:()=>{ve||_e(n),he(n),de(),E.current&&(s||(E.current.scrollLeft=0),E.current.scrollTop=0)},onBlur:()=>{_e(void 0)},onMouseDown:e=>Ce(n,e),onMouseUp:()=>{ye(!1)}})}),De=()=>ee(()=>{let e=new Map,t=D.current?.getBoundingClientRect();return S.forEach(({key:n})=>{let r=D.current?.querySelector(`[data-node-key="${Ww(n)}"]`);if(r){let[i,a,o,s]=$w(r,t);e.set(n,{width:i,height:a,left:o,top:s})}}),e});(0,v.useEffect)(()=>{De()},[S.map(e=>e.key).join(`_`)]);let Oe=Rw(()=>{let e=eT(C),t=eT(w),n=eT(T);I([e[0]-t[0]-n[0],e[1]-t[1]-n[1]]);let r=eT(k);V(r),U(eT(O));let i=eT(D);z([i[0]-r[0],i[1]-r[1]]),De()}),ke=S.slice(0,pe),Ae=S.slice(me+1),je=[...ke,...Ae],Ne=te.get(o),{style:Pe}=kw({activeTabOffset:Ne,horizontal:A,indicator:g,rtl:s});(0,v.useEffect)(()=>{he()},[o,oe,se,Hw(Ne),Hw(te),A]),(0,v.useEffect)(()=>{Oe()},[s]);let Fe=!!je.length,Ie=`${x}-nav-wrap`,Le,Re,ze,Be;return A?s?(Re=j>0,Le=j!==se):(Le=j<0,Re=j!==oe):(ze=N<0,Be=N!==oe),v.createElement(Me,{onResize:Oe},v.createElement(`div`,{ref:L(t,C),role:`tablist`,"aria-orientation":A?`horizontal`:`vertical`,className:Y(`${x}-nav`,n,_?.header),style:{...b?.header,...r},onKeyDown:()=>{de()}},v.createElement(qw,{ref:w,position:`left`,extra:c,prefixCls:x}),v.createElement(Me,{onResize:Oe},v.createElement(`div`,{className:Y(Ie,{[`${Ie}-ping-left`]:Le,[`${Ie}-ping-right`]:Re,[`${Ie}-ping-top`]:ze,[`${Ie}-ping-bottom`]:Be}),ref:E},v.createElement(Me,{onResize:Oe},v.createElement(`div`,{ref:D,className:`${x}-nav-list`,style:{transform:`translate(${j}px, ${N}px)`,transition:le?`none`:void 0}},Ee,v.createElement(Kw,{ref:k,prefixCls:x,locale:u,editable:l,style:{...Ee.length===0?void 0:Te,visibility:Fe?`hidden`:null}}),v.createElement(`div`,{className:Y(`${x}-ink-bar`,_?.indicator,{[`${x}-ink-bar-animated`]:a.inkBar}),style:{...Pe,...b?.indicator}}))))),v.createElement(Xw,Qw({},e,{removeAriaLabel:u?.removeAriaLabel,ref:O,prefixCls:x,tabs:je,className:!Fe&&ae,popupStyle:b?.popup,tabMoving:!!le})),v.createElement(qw,{ref:T,position:`right`,extra:c,prefixCls:x})))}),rT=({renderTabBar:e,...t})=>e?e(t,nT):v.createElement(nT,t),iT=v.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:i,id:a,active:o,tabKey:s,children:c}=e,l=v.Children.count(c)>0;return v.createElement(`div`,{id:a&&`${a}-panel-${s}`,role:`tabpanel`,tabIndex:o&&l?0:-1,"aria-labelledby":a&&`${a}-tab-${s}`,"aria-hidden":!o,style:i,className:Y(n,o&&`${n}-active`,r),ref:t},c)});function aT(){return aT=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},aT.apply(this,arguments)}var oT=e=>{let{id:t,activeKey:n,animated:r,tabPosition:i,destroyOnHidden:a,contentStyle:o,contentClassName:s}=e,{prefixCls:c,tabs:l}=v.useContext(Ow),u=r.tabPane,d=`${c}-tabpane`;return v.createElement(`div`,{className:Y(`${c}-content-holder`)},v.createElement(`div`,{className:Y(`${c}-content`,`${c}-content-${i}`,{[`${c}-content-animated`]:u})},l.map(e=>{let{key:i,forceRender:c,style:l,className:f,destroyOnHidden:p,...m}=e,h=i===n;return v.createElement(Os,aT({key:i,visible:h,forceRender:c,removeOnLeave:!!(a??p),leavedClassName:`${d}-hidden`},r.tabPaneMotion),({style:e,className:n},r)=>v.createElement(iT,aT({},m,{prefixCls:d,id:t,tabKey:i,animated:u,active:h,style:{...o,...l,...e},className:Y(s,f,n),ref:r})))})))};function sT(e={inkBar:!0,tabPane:!1}){let t;return t=e===!1?{inkBar:!1,tabPane:!1}:e===!0?{inkBar:!0,tabPane:!1}:{inkBar:!0,...typeof e==`object`?e:{}},t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}function cT(){return cT=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},cT.apply(this,arguments)}var lT=0,uT=v.forwardRef((e,t)=>{let{id:n,prefixCls:r=`rc-tabs`,className:i,items:a,direction:o,activeKey:s,defaultActiveKey:c,editable:l,animated:u,tabPosition:d=`top`,tabBarGutter:f,tabBarStyle:p,tabBarExtraContent:m,locale:h,more:g,destroyOnHidden:_,renderTabBar:y,onChange:b,onTabClick:x,onTabScroll:S,getPopupContainer:C,popupClassName:w,indicator:E,classNames:D,styles:O,...k}=e,A=v.useMemo(()=>(a||[]).filter(e=>e&&typeof e==`object`&&`key`in e),[a]),j=o===`rtl`,M=sT(u),[N,P]=(0,v.useState)(!1);(0,v.useEffect)(()=>{P(Dw())},[]);let[F,I]=T(c??A[0]?.key,s),[L,R]=(0,v.useState)(()=>A.findIndex(e=>e.key===F));(0,v.useEffect)(()=>{let e=A.findIndex(e=>e.key===F);e===-1&&(e=Math.max(0,Math.min(L,A.length-1)),I(A[e]?.key)),R(e)},[A.map(e=>e.key).join(`_`),F,L]);let[z,B]=T(null,n);(0,v.useEffect)(()=>{n||(B(`rc-tabs-${lT}`),lT+=1)},[]);function V(e,t){x?.(e,t);let n=e!==F;I(e),n&&b?.(e)}let H={id:z,activeKey:F,animated:M,tabPosition:d,rtl:j,mobile:N},U={...H,editable:l,locale:h,more:g,tabBarGutter:f,onTabClick:V,onTabScroll:S,extra:m,style:p,getPopupContainer:C,popupClassName:Y(w,D?.popup),indicator:E,styles:O,classNames:D},W=v.useMemo(()=>({tabs:A,prefixCls:r}),[A,r]);return v.createElement(Ow.Provider,{value:W},v.createElement(`div`,cT({ref:t,id:n,className:Y(r,`${r}-${d}`,{[`${r}-mobile`]:N,[`${r}-editable`]:l,[`${r}-rtl`]:j},i)},k),v.createElement(rT,cT({},U,{renderTabBar:y})),v.createElement(oT,cT({destroyOnHidden:_},H,{contentStyle:O?.content,contentClassName:D?.content,animated:M}))))}),dT={motionAppear:!1,motionEnter:!0,motionLeave:!0};function fT(e,t={inkBar:!0,tabPane:!1}){let n;return n=t===!1?{inkBar:!1,tabPane:!1}:t===!0?{inkBar:!0,tabPane:!0}:{inkBar:!0,...sc(t)?t:{}},n.tabPane&&(n.tabPaneMotion={...dT,motionName:xd(e,`switch`)}),n}function pT(e){return e.filter(e=>e)}function mT(e,t){return e?e.map(e=>({...e,destroyOnHidden:e.destroyOnHidden??e.destroyInactiveTabPane})):pT(de(t).map(e=>{if(v.isValidElement(e)){let{key:t,props:n}=e,{tab:r,...i}=n||{};return{key:String(t),...i,label:r}}return null}))}var hT=e=>{let{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:`none`,"&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:`absolute`,transition:`none`,inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[xf(e,`slide-up`),xf(e,`slide-down`)]]},gT=e=>{let{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:i,colorBorderSecondary:a,itemSelectedColor:o}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${X(e.lineWidth)} ${e.lineType} ${a}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:o,background:e.colorBgContainer},[`${t}-tab-focus:has(${t}-tab-btn:focus-visible)`]:Ha(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:X(i)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${X(e.borderRadiusLG)} ${X(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${X(e.borderRadiusLG)} ${X(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:X(i)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${X(e.borderRadiusLG)} 0 0 ${X(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 ${X(e.borderRadiusLG)} ${X(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},_T=e=>{let{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:{...za(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:`${X(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":{...Ra,display:`flex`,alignItems:`center`,minWidth:e.tabsDropdownWidth,margin:0,padding:`${X(e.paddingXXS)} ${X(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`}}}}}}},vT=e=>{let{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:i,verticalItemPadding:a,verticalItemMargin:o,motionDurationSlow:s,calc:c}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:`column`,[`> ${t}-nav, > div > ${t}-nav`]:{margin:i,"&::before":{position:`absolute`,right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${X(e.lineWidth)} ${e.lineType} ${r}`,content:`''`},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:[`width`,`left`,`right`].map(e=>`${e} ${s}`).join(`, `)}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav,
216
+ > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:`column`,minWidth:c(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:a,textAlign:`center`},[`${t}-tab + ${t}-tab`]:{margin:o},[`${t}-nav-wrap`]:{flexDirection:`column`,"&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:[`height`,`top`].map(e=>`${e} ${s}`).join(`, `)}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:`1 0 auto`,flexDirection:`column`}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:X(c(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${X(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:c(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${X(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},yT=e=>{let{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,cardHeightSM:i,cardHeightLG:a,horizontalItemPaddingSM:o,horizontalItemPaddingLG:s}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:s,fontSize:e.titleFontSizeLG,lineHeight:e.lineHeightLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n},[`${t}-nav-add`]:{minWidth:i,minHeight:i}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${X(e.borderRadius)} ${X(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${X(e.borderRadius)} ${X(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${X(e.borderRadius)} ${X(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${X(e.borderRadius)} 0 0 ${X(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r},[`${t}-nav-add`]:{minWidth:a,minHeight:a}}}}}},bT=e=>{let{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:i,tabsHorizontalItemMargin:a,horizontalItemPadding:o,itemSelectedColor:s,itemColor:c}=e,l=`${t}-tab`;return{[l]:{position:`relative`,WebkitTouchCallout:`none`,WebkitTapHighlightColor:`transparent`,display:`inline-flex`,alignItems:`center`,padding:o,fontSize:e.titleFontSize,background:`transparent`,border:0,outline:`none`,cursor:`pointer`,color:c,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:n}},"&-btn":{outline:`none`,transition:`all ${e.motionDurationSlow}`,[`${l}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":{flex:`none`,lineHeight:1,marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorIcon,fontSize:e.fontSizeSM,background:`transparent`,border:`none`,outline:`none`,cursor:`pointer`,transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading},...Ua(e)},"&:hover":{color:r},[`&${l}-active ${l}-btn`]:{color:s},[`&${l}-focus ${l}-btn:focus-visible`]:Ha(e),[`&${l}-disabled`]:{color:e.colorTextDisabled,cursor:`not-allowed`},[`&${l}-disabled ${l}-btn, &${l}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${l}-remove ${i}`]:{margin:0,verticalAlign:`middle`},[`${i}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${l} + ${l}`]:{margin:{_skip_check_:!0,value:a}}}},xT=e=>{let{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:i,calc:a}=e;return{[`${t}-rtl`]:{direction:`rtl`,[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:e.marginSM}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:e.marginXS},marginLeft:{_skip_check_:!0,value:a(e.marginXXS).mul(-1).equal()},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:i},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:`rtl`},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:`right`}}}}},ST=e=>{let{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:i,itemHoverColor:a,itemActiveColor:o,colorBorderSecondary:s}=e;return{[t]:{...za(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:`${X(e.lineWidth)} ${e.lineType} ${s}`,borderRadius:`${X(e.borderRadiusLG)} ${X(e.borderRadiusLG)} 0 0`,outline:`none`,cursor:`pointer`,color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:a},"&:active, &:focus:not(:focus-visible)":{color:o},...Ua(e,-3)}},[`${t}-extra-content`]:{flex:`none`},[`${t}-ink-bar`]:{position:`absolute`,background:e.inkBarColor,pointerEvents:`none`},...bT(e),[`${t}-content`]:{position:`relative`,width:`100%`},[`${t}-content-holder`]:{flex:`auto`,minWidth:0,minHeight:0},[`${t}-tabpane`]:{...Ua(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`}}}}}},CT=Ja(`Tabs`,e=>{let t=si(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${X(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${X(e.horizontalItemGutter)}`});return[yT(t),xT(t),vT(t),_T(t),gT(t),ST(t),hT(t)]},e=>{let{cardHeight:t,cardHeightSM:n,cardHeightLG:r,controlHeight:i,controlHeightLG:a}=e,o=t||a,s=n||i,c=r||a+8;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:o,cardHeightSM:s,cardHeightLG:c,cardPadding:`${(o-e.fontHeight)/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${(s-e.fontHeight)/2-e.lineWidth}px ${e.paddingXS}px`,cardPaddingLG:`${(c-e.fontHeightLG)/2-e.lineWidth}px ${e.padding}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:``,horizontalItemMarginRTL:``,horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}}),wT=()=>null,TT=v.forwardRef((e,t)=>{let{type:n,className:r,rootClassName:i,size:a,onEdit:o,hideAdd:s,centered:c,addIcon:l,removeIcon:u,moreIcon:d,more:f,popupClassName:p,children:m,items:h,animated:g,style:_,indicatorSize:y,indicator:b,classNames:x,styles:S,destroyInactiveTabPane:C,destroyOnHidden:w,tabPlacement:T,tabPosition:E,...D}=e,{prefixCls:O}=D,{getPrefixCls:k,direction:A,getPopupContainer:j,className:M,style:N,classNames:P,styles:F}=Ze(`tabs`),{tabs:I}=v.useContext(Je),L=k(`tabs`,O),R=Yc(L),[z,B]=CT(L,R),V=v.useRef(null);v.useImperativeHandle(t,()=>({nativeElement:V.current}));let H;n===`editable-card`&&(H={onEdit:(e,{key:t,event:n})=>{o?.(e===`add`?n:t,e)},removeIcon:u??I?.removeIcon??v.createElement(Ao,null),addIcon:(l??I?.addIcon)||v.createElement(ww,null),showAdd:s!==!0});let U=k(),W=jd(a),ee=mT(h,m),te=fT(L,g),G={align:b?.align??I?.indicator?.align,size:b?.size??y??I?.indicator?.size??I?.indicatorSize},ne=v.useMemo(()=>{let e=T??E??void 0,t=A===`rtl`;switch(e){case`start`:return t?`right`:`left`;case`end`:return t?`left`:`right`;default:return e}},[T,E,A]),re={...e,size:W,tabPlacement:ne,items:ee},[ie,K]=Dc([P,x],[F,S],{props:re},{popup:{_default:`root`}});return v.createElement(uT,{ref:V,direction:A,getPopupContainer:j,...D,items:ee,className:Y({[`${L}-large`]:W===`large`,[`${L}-small`]:W===`small`,[`${L}-card`]:[`card`,`editable-card`].includes(n),[`${L}-editable-card`]:n===`editable-card`,[`${L}-centered`]:c},M,r,i,ie.root,z,B,R),classNames:{...ie,popup:Y(p,z,B,R,ie.popup?.root)},styles:K,style:{...K.root,...N,..._},editable:H,more:{icon:I?.more?.icon??I?.moreIcon??d??v.createElement(vC,null),transitionName:`${U}-slide-up`,...f},prefixCls:L,animated:te,indicator:G,destroyOnHidden:w??C,tabPosition:ne})});TT.TabPane=wT;var ET=({prefixCls:e,className:t,hoverable:n=!0,...r})=>{let{getPrefixCls:i}=v.useContext(Je),a=i(`card`,e),o=Y(`${a}-grid`,t,{[`${a}-grid-hoverable`]:n});return v.createElement(`div`,{...r,className:o})},DT=e=>{let{antCls:t,componentCls:n,headerHeight:r,headerPadding:i,tabsMarginBottom:a}=e;return{display:`flex`,justifyContent:`center`,flexDirection:`column`,minHeight:r,marginBottom:-1,padding:`0 ${X(i)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${X(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${X(e.borderRadiusLG)} ${X(e.borderRadiusLG)} 0 0`,...Va(),"&-wrapper":{width:`100%`,display:`flex`,alignItems:`center`},"&-title":{display:`inline-block`,flex:1,...Ra,[`
217
217
  > ${n}-typography,
218
218
  > ${n}-typography-edit-content
219
- `]:{insetInlineStart:0,marginTop:0,marginBottom:0}},[`${t}-tabs-top`]:{clear:`both`,marginBottom:a,color:e.colorText,fontWeight:`normal`,fontSize:e.fontSize,"&-bar":{borderBottom:`${X(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}}},DT=e=>{let{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:i}=e;return{width:`33.33%`,padding:t,border:0,borderRadius:0,boxShadow:`
219
+ `]:{insetInlineStart:0,marginTop:0,marginBottom:0}},[`${t}-tabs-top`]:{clear:`both`,marginBottom:a,color:e.colorText,fontWeight:`normal`,fontSize:e.fontSize,"&-bar":{borderBottom:`${X(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}}},OT=e=>{let{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:i}=e;return{width:`33.33%`,padding:t,border:0,borderRadius:0,boxShadow:`
220
220
  ${X(i)} 0 0 0 ${n},
221
221
  0 ${X(i)} 0 0 ${n},
222
222
  ${X(i)} ${X(i)} 0 0 ${n},
223
223
  ${X(i)} 0 0 0 ${n} inset,
224
224
  0 ${X(i)} 0 0 ${n} inset;
225
- `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:`relative`,zIndex:1,boxShadow:r}}},OT=e=>{let{componentCls:t,iconCls:n,actionsLiMargin:r,cardActionsIconSize:i,colorBorderSecondary:a,actionsBg:o}=e;return{margin:0,padding:0,listStyle:`none`,background:o,borderTop:`${X(e.lineWidth)} ${e.lineType} ${a}`,display:`flex`,borderRadius:`0 0 ${X(e.borderRadiusLG)} ${X(e.borderRadiusLG)}`,...Va(),"& > 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:X(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:i,lineHeight:X(e.calc(i).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${X(e.lineWidth)} ${e.lineType} ${a}`}}}},kT=e=>({margin:`${X(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:`flex`,...Va(),"&-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,...Ra},"&-description":{color:e.colorTextDescription}}),AT=e=>{let{componentCls:t,colorFillAlter:n,headerPadding:r,bodyPadding:i}=e;return{[`${t}-head`]:{padding:`0 ${X(r)}`,background:n,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${X(e.padding)} ${X(i)}`}}},jT=e=>{let{componentCls:t}=e;return{overflow:`hidden`,[`${t}-body`]:{userSelect:`none`}}},MT=e=>{let{componentCls:t,cardShadow:n,cardHeadPadding:r,colorBorderSecondary:i,boxShadowTertiary:a,bodyPadding:o,extraColor:s,motionDurationMid:c}=e;return{[t]:{...za(e),position:`relative`,background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:a},[`${t}-head`]:ET(e),[`${t}-extra`]:{marginInlineStart:`auto`,color:s,fontWeight:`normal`,fontSize:e.fontSize},[`${t}-body`]:{padding:o,borderRadius:`0 0 ${X(e.borderRadiusLG)} ${X(e.borderRadiusLG)}`,"&:first-child":{borderStartStartRadius:e.borderRadiusLG,borderStartEndRadius:e.borderRadiusLG},"&:not(:last-child)":{borderEndStartRadius:0,borderEndEndRadius:0}},[`${t}-grid`]:DT(e),[`${t}-cover`]:{"> *":{display:`block`,width:`100%`,borderRadius:`${X(e.borderRadiusLG)} ${X(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:OT(e),[`${t}-meta`]:kT(e)},[`${t}-bordered`]:{border:`${X(e.lineWidth)} ${e.lineType} ${i}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:`pointer`,transition:[`box-shadow`,`border-color`].map(e=>`${e} ${c}`).join(`, `),"&:hover":{borderColor:`transparent`,boxShadow:n}},[`${t}-contain-grid`]:{borderRadius:`${X(e.borderRadiusLG)} ${X(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`]:AT(e),[`${t}-loading`]:jT(e),[`${t}-rtl`]:{direction:`rtl`}}},NT=e=>{let{componentCls:t,bodyPaddingSM:n,headerPaddingSM:r,headerHeightSM:i,headerFontSizeSM:a}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:i,padding:`0 ${X(r)}`,fontSize:a,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:`flex`,alignItems:`center`}}}}},PT=Ja(`Card`,e=>{let t=si(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize});return[MT(t),NT(t)]},e=>({headerBg:`transparent`,headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,headerHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText,bodyPaddingSM:12,headerPaddingSM:12,bodyPadding:e.bodyPadding??e.paddingLG,headerPadding:e.headerPadding??e.paddingLG})),FT=e=>{let{actionClasses:t,actions:n=[],actionStyle:r}=e;return v.createElement(`ul`,{className:t,style:r},n.map((e,t)=>{let r=`action-${t}`;return v.createElement(`li`,{style:{width:`${100/n.length}%`},key:r},v.createElement(`span`,null,e))}))},IT=v.forwardRef((e,t)=>{let{prefixCls:n,className:r,rootClassName:i,style:a,extra:o,headStyle:s={},bodyStyle:c={},title:l,loading:u,bordered:d,variant:f,size:p,type:m,cover:h,actions:g,tabList:_,children:y,activeTabKey:b,defaultActiveTabKey:x,tabBarExtraContent:S,hoverable:C,tabProps:w={},classNames:T,styles:E,...D}=e,{getPrefixCls:O,direction:k,className:A,style:j,classNames:M,styles:N}=Ze(`card`),[P]=ib(`card`,f,d),F=Ad(p),I={...e,size:F,variant:P},[L,R]=Dc([M,T],[N,E],{props:I}),z=t=>{e.onTabChange?.(t)},B=v.useMemo(()=>de(y),[y]),V=v.useMemo(()=>B.some(e=>v.isValidElement(e)&&e.type===TT),[B]),H=O(`card`,n),[U,W]=PT(H),ee=v.createElement(Sg,{loading:!0,active:!0,paragraph:{rows:4},title:!1},y),te=b!==void 0,G={...w,[te?`activeKey`:`defaultActiveKey`]:te?b:x,tabBarExtraContent:S},ne,re=F===`small`?F:`large`,ie=_?v.createElement(wT,{size:re,...G,className:`${H}-head-tabs`,onChange:z,items:_.map(({tab:e,...t})=>({label:e,...t}))}):null;if(l||o||ie){let e=Y(`${H}-head`,L.header),t=Y(`${H}-head-title`,L.title),n=Y(`${H}-extra`,L.extra),r={...s,...R.header};ne=v.createElement(`div`,{className:e,style:r},v.createElement(`div`,{className:`${H}-head-wrapper`},l&&v.createElement(`div`,{className:t,style:R.title},l),o&&v.createElement(`div`,{className:n,style:R.extra},o)),ie)}let K=Y(`${H}-cover`,L.cover),q=h?v.createElement(`div`,{className:K,style:R.cover},h):null,ae=Y(`${H}-body`,L.body),oe={...c,...R.body},se=u||B.length?v.createElement(`div`,{className:ae,style:oe},u?ee:y):null,J=Y(`${H}-actions`,L.actions),ce=g?.length?v.createElement(FT,{actionClasses:J,actionStyle:R.actions,actions:g}):null,le=ue(D,[`onTabChange`]),fe=Y(H,A,{[`${H}-loading`]:u,[`${H}-bordered`]:P!==`borderless`,[`${H}-hoverable`]:C,[`${H}-contain-grid`]:V,[`${H}-contain-tabs`]:_?.length,[`${H}-small`]:F===`small`,[`${H}-type-${m}`]:!!m,[`${H}-rtl`]:k===`rtl`},r,i,U,W,L.root),pe={...R.root,...j,...a};return v.createElement(`div`,{ref:t,...le,className:fe,style:pe},ne,q,se,ce)}),LT=e=>{let{prefixCls:t,className:n,avatar:r,title:i,description:a,style:o,classNames:s,styles:c,...l}=e,{getPrefixCls:u,className:d,style:f,classNames:p,styles:m}=Ze(`cardMeta`),h=`${u(`card`,t)}-meta`,[g,_]=Dc([p,s],[m,c],{props:e}),y=Y(h,n,d,g.root),b={...f,..._.root,...o},x=Y(`${h}-avatar`,g.avatar),S=Y(`${h}-title`,g.title),C=Y(`${h}-description`,g.description),w=Y(`${h}-section`,g.section),T=r?v.createElement(`div`,{className:x,style:_.avatar},r):null,E=i?v.createElement(`div`,{className:S,style:_.title},i):null,D=a?v.createElement(`div`,{className:C,style:_.description},a):null,O=E||D?v.createElement(`div`,{className:w,style:_.section},E,D):null;return v.createElement(`div`,{...l,className:y,style:b},T,O)},RT=IT;RT.Grid=TT,RT.Meta=LT;function zT(e,t,n){var r=n||{},i=r.noTrailing,a=i===void 0?!1:i,o=r.noLeading,s=o===void 0?!1:o,c=r.debounceMode,l=c===void 0?void 0:c,u,d=!1,f=0;function p(){u&&clearTimeout(u)}function m(e){var t=(e||{}).upcomingOnly,n=t===void 0?!1:t;p(),d=!n}function h(){var n=[...arguments],r=this,i=Date.now()-f;if(d)return;function o(){f=Date.now(),t.apply(r,n)}function c(){u=void 0}!s&&l&&!u&&o(),p(),l===void 0&&i>e?s?(f=Date.now(),a||(u=setTimeout(l?c:o,e))):o():a!==!0&&(u=setTimeout(l?c:o,l===void 0?e-i:e))}return h.cancel=m,h}function BT(e,t,n){var r=(n||{}).atBegin;return zT(e,t,{debounceMode:(r===void 0?!1:r)!==!1})}var VT=(0,v.createContext)({});function HT(e){return e===`auto`?`1 1 auto`:ac(e)?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}var UT=v.forwardRef((e,t)=>{let{getPrefixCls:n,direction:r}=v.useContext(Je),{gutter:i,wrap:a}=v.useContext(VT),{prefixCls:o,span:s,order:c,offset:l,push:u,pull:d,className:f,children:p,flex:m,style:h,...g}=e,_=n(`col`,o),y=n(),[b,x]=zg(_),[S]=Za(y,`col`),C={},w={};Fb.forEach(t=>{let n={},i=e[t];ac(i)?n.span=i:sc(i)&&(n=i||{}),delete g[t],w={...w,[`${_}-${t}-${n.span}`]:ic(n.span),[`${_}-${t}-order-${n.order}`]:n.order||n.order===0,[`${_}-${t}-offset-${n.offset}`]:n.offset||n.offset===0,[`${_}-${t}-push-${n.push}`]:n.push||n.push===0,[`${_}-${t}-pull-${n.pull}`]:n.pull||n.pull===0,[`${_}-rtl`]:r===`rtl`},n.flex&&(w[`${_}-${t}-flex`]=!0,C[S(`${t}-flex`)]=HT(n.flex))});let T=Y(_,{[`${_}-${s}`]:s!==void 0,[`${_}-order-${c}`]:c,[`${_}-offset-${l}`]:l,[`${_}-push-${u}`]:u,[`${_}-pull-${d}`]:d},f,w,b,x),E={};return i?.[0]&&(E.paddingInline=ac(i[0])?`${i[0]/2}px`:`calc(${i[0]} / 2)`),m&&(E.flex=HT(m),a===!1&&!E.minWidth&&(E.minWidth=0)),v.createElement(`div`,{...g,style:{...E,...h,...C},className:T,ref:t},p)});function WT(e,t){let n=[void 0,void 0],r=Array.isArray(e)?e:[e,void 0],i=t||{xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0,xxxl:!0};return r.forEach((e,t)=>{if(sc(e))for(let r=0;r<Pb.length;r++){let a=Pb[r];if(i[a]&&e[a]!==void 0){n[t]=e[a];break}}else n[t]=e}),n}var GT=(e,t)=>{let[n,r]=v.useState(()=>oc(e)?e:``),i=()=>{if(oc(e)&&r(e),sc(e))for(let n=0;n<Pb.length;n++){let i=Pb[n];if(!t||!t[i])continue;let a=e[i];if(a!==void 0){r(a);return}}};return v.useEffect(()=>{i()},[JSON.stringify(e),t]),n},KT=v.forwardRef((e,t)=>{let{prefixCls:n,justify:r,align:i,className:a,style:o,children:s,gutter:c=0,wrap:l,...u}=e,{getPrefixCls:d,direction:f}=v.useContext(Je),p=zb(!0,null),m=GT(i,p),h=GT(r,p),g=d(`row`,n),[_,y]=Lg(g),b=WT(c,p),x=Y(g,{[`${g}-no-wrap`]:l===!1,[`${g}-${h}`]:h,[`${g}-${m}`]:m,[`${g}-rtl`]:f===`rtl`},a,_,y),S={};b?.[0]&&(S.marginInline=ac(b[0])?`${b[0]/-2}px`:`calc(${b[0]} / -2)`);let[C,w]=b;S.rowGap=w;let T=v.useMemo(()=>({gutter:[C,w],wrap:l}),[C,w,l]);return v.createElement(VT.Provider,{value:T},v.createElement(`div`,{...u,className:x,style:{...S,...o},ref:t},s))}),qT=(e,t)=>{if(!e)return null;let n={left:e.offsetLeft,right:e.parentElement.clientWidth-e.clientWidth-e.offsetLeft,width:e.clientWidth,top:e.offsetTop,bottom:e.parentElement.clientHeight-e.clientHeight-e.offsetTop,height:e.clientHeight};return t?{left:0,right:0,width:0,top:n.top,bottom:n.bottom,height:n.height}:{left:n.left,right:n.right,width:n.width,top:0,bottom:0,height:0}},JT=e=>e===void 0?void 0:`${e}px`;function YT(e){let{prefixCls:t,containerRef:n,value:r,getValueIndex:i,motionName:a,onMotionStart:o,onMotionEnd:s,direction:c,vertical:l=!1}=e,u=v.useRef(null),[d,f]=v.useState(r),p=e=>{let r=i(e),a=n.current?.querySelectorAll(`.${t}-item`)[r];return a?.offsetParent&&a},[m,h]=v.useState(null),[g,_]=v.useState(null);S(()=>{if(d!==r){let e=p(d),t=p(r),n=qT(e,l),i=qT(t,l);f(r),h(n),_(i),e&&t?o():s()}},[r]);let y=v.useMemo(()=>JT(l?m?.top??0:c===`rtl`?-m?.right:m?.left),[l,c,m]),b=v.useMemo(()=>JT(l?g?.top??0:c===`rtl`?-g?.right:g?.left),[l,c,g]);return!m||!g?null:v.createElement(Os,{visible:!0,motionName:a,motionAppear:!0,onAppearStart:()=>l?{transform:`translateY(var(--thumb-start-top))`,height:`var(--thumb-start-height)`}:{transform:`translateX(var(--thumb-start-left))`,width:`var(--thumb-start-width)`},onAppearActive:()=>l?{transform:`translateY(var(--thumb-active-top))`,height:`var(--thumb-active-height)`}:{transform:`translateX(var(--thumb-active-left))`,width:`var(--thumb-active-width)`},onVisibleChanged:()=>{h(null),_(null),s()}},({className:e,style:n},r)=>{let i={...n,"--thumb-start-left":y,"--thumb-start-width":JT(m?.width),"--thumb-active-left":b,"--thumb-active-width":JT(g?.width),"--thumb-start-top":y,"--thumb-start-height":JT(m?.height),"--thumb-active-top":b,"--thumb-active-height":JT(g?.height)},a={ref:I(u,r),style:i,className:Y(`${t}-thumb`,e)};return v.createElement(`div`,a)})}function XT(e){if(e.title!==void 0)return e.title;if(typeof e.label!=`object`)return e.label?.toString()}function ZT(e){return e.map(e=>{if(typeof e==`object`&&e){let t=XT(e);return{...e,title:t}}return{label:e?.toString(),title:e?.toString(),value:e}})}var QT=({prefixCls:e,className:t,style:n,styles:r,classNames:i,data:a,disabled:o,checked:s,label:c,title:l,value:u,name:d,onChange:f,onFocus:p,onBlur:m,onKeyDown:h,onKeyUp:g,onMouseDown:_,itemRender:y=e=>e})=>{let b=e=>{o||f(e,u)};return y(v.createElement(`label`,{className:Y(t,{[`${e}-item-disabled`]:o}),style:n,onMouseDown:_},v.createElement(`input`,{name:d,className:`${e}-item-input`,type:`radio`,disabled:o,checked:s,onChange:b,onFocus:p,onBlur:m,onKeyDown:h,onKeyUp:g}),v.createElement(`div`,{className:Y(`${e}-item-label`,i?.label),title:l,style:r?.label},c)),{item:a})},$T=v.forwardRef((e,t)=>{let{prefixCls:n=`rc-segmented`,direction:r,vertical:i,options:a=[],disabled:o,defaultValue:s,value:c,name:l,onChange:u,className:d=``,style:f,styles:p,classNames:m,motionName:h=`thumb-motion`,itemRender:g,..._}=e,y=v.useRef(null),b=v.useMemo(()=>I(y,t),[y,t]),x=v.useMemo(()=>ZT(a),[a]),[S,C]=T(s??x[0]?.value,c),[w,E]=v.useState(!1),D=(e,t)=>{C(t),u?.(t)},O=ue(_,[`children`]),[k,A]=v.useState(!1),[j,M]=v.useState(!1),N=()=>{M(!0)},P=()=>{M(!1)},F=()=>{A(!1)},L=e=>{e.key===`Tab`&&A(!0)},R=e=>{let t=x.findIndex(e=>e.value===S),n=x.length,r=x[(t+e+n)%n];r&&(C(r.value),u?.(r.value))},z=e=>{switch(e.key){case`ArrowLeft`:case`ArrowUp`:R(-1);break;case`ArrowRight`:case`ArrowDown`:R(1);break}},B=e=>{let{value:t,disabled:r}=e;return v.createElement(QT,qf({},e,{name:l,data:e,itemRender:g,key:t,prefixCls:n,className:Y(e.className,`${n}-item`,m?.item,{[`${n}-item-selected`]:t===S&&!w,[`${n}-item-focused`]:j&&k&&t===S}),style:p?.item,classNames:m,styles:p,checked:t===S,onChange:D,onFocus:N,onBlur:P,onKeyDown:z,onKeyUp:L,onMouseDown:F,disabled:!!o||!!r}))};return v.createElement(`div`,qf({role:`radiogroup`,"aria-label":`segmented control`,tabIndex:o?void 0:0,"aria-orientation":i?`vertical`:`horizontal`,style:f},O,{className:Y(n,{[`${n}-rtl`]:r===`rtl`,[`${n}-disabled`]:o,[`${n}-vertical`]:i},d),ref:b}),v.createElement(`div`,{className:`${n}-group`},v.createElement(YT,{vertical:i,prefixCls:n,value:S,containerRef:y,motionName:`${n}-${h}`,direction:r,getValueIndex:e=>x.findIndex(t=>t.value===e),onMotionStart:()=>{E(!0)},onMotionEnd:()=>{E(!1)}}),x.map(B)))});function eE(e,t){return{[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:`not-allowed`}}}var tE=e=>({background:e.itemSelectedBg,boxShadow:e.boxShadowTertiary}),nE={overflow:`hidden`,...Ra},rE=e=>{let{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,motionDurationMid:i}=e,a=e.calc(e.controlHeight).sub(e.calc(e.trackPadding).mul(2)).equal(),o=e.calc(e.controlHeightLG).sub(e.calc(e.trackPadding).mul(2)).equal(),s=e.calc(e.controlHeightSM).sub(e.calc(e.trackPadding).mul(2)).equal();return{[t]:{...za(e),display:`inline-block`,padding:e.trackPadding,color:e.itemColor,background:e.trackBg,borderRadius:e.borderRadius,transition:`all ${i}`,...Ua(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 ${X(e.paddingXXS)}`}},[`&${t}-block`]:{display:`flex`},[`&${t}-block ${t}-item`]:{flex:1,minWidth:0},[`${t}-item`]:{position:`relative`,textAlign:`center`,cursor:`pointer`,transition:`color ${i}`,borderRadius:e.borderRadiusSM,transform:`translateZ(0)`,"&-selected":{...tE(e),color:e.itemSelectedColor},"&-focused":Ha(e),"&::after":{content:`""`,position:`absolute`,zIndex:-1,width:`100%`,height:`100%`,top:0,insetInlineStart:0,borderRadius:`inherit`,opacity:0,pointerEvents:`none`,transition:[`opacity`,`background-color`].map(e=>`${e} ${i}`).join(`, `)},[`&:not(${t}-item-selected):not(${t}-item-disabled)`]:{"&:hover, &:active":{color:e.itemHoverColor},"&:hover::after":{opacity:1,backgroundColor:e.itemHoverBg},"&:active::after":{opacity:1,backgroundColor:e.itemActiveBg}},"&-label":{minHeight:a,lineHeight:X(a),padding:`0 ${X(e.segmentedPaddingHorizontal)}`,...nE},"&-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`]:{...tE(e),position:`absolute`,insetBlockStart:0,insetInlineStart:0,width:0,height:`100%`,padding:`${X(e.paddingXXS)} 0`,borderRadius:e.borderRadiusSM,[`& ~ ${t}-item:not(${t}-item-selected):not(${t}-item-disabled)::after`]:{backgroundColor:`transparent`}},[`&${t}-lg`]:{borderRadius:e.borderRadiusLG,[`${t}-item-label`]:{minHeight:o,lineHeight:X(o),padding:`0 ${X(e.segmentedPaddingHorizontal)}`,fontSize:e.fontSizeLG},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadius}},[`&${t}-sm`]:{borderRadius:e.borderRadiusSM,[`${t}-item-label`]:{minHeight:s,lineHeight:X(s),padding:`0 ${X(e.segmentedPaddingHorizontalSM)}`},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadiusXS}},...eE(`&-disabled ${t}-item`,e),...eE(`${t}-item-disabled`,e),[`${t}-thumb-motion-appear-active`]:{willChange:`transform, width`,transition:[`transform`,`width`].map(e=>`${e} ${n} ${r}`).join(`, `)},[`&${t}-shape-round`]:{borderRadius:9999,[`${t}-item, ${t}-thumb`]:{borderRadius:9999}}}}},iE=Ja(`Segmented`,e=>{let{lineWidth:t,calc:n}=e;return rE(si(e,{segmentedPaddingHorizontal:n(e.controlPaddingHorizontal).sub(t).equal(),segmentedPaddingHorizontalSM:n(e.controlPaddingHorizontalSM).sub(t).equal()}))},e=>{let{colorTextLabel:t,colorText:n,colorFillSecondary:r,colorBgElevated:i,colorFill:a,lineWidthBold:o,colorBgLayout:s}=e;return{trackPadding:o,trackBg:s,itemColor:t,itemHoverColor:n,itemHoverBg:r,itemSelectedBg:i,itemActiveBg:a,itemSelectedColor:n}});function aE(e){return sc(e)&&!!e?.icon}var oE=v.forwardRef((e,t)=>{let n=dl(),{prefixCls:r,className:i,rootClassName:a,block:o,options:s=[],size:c,style:l,vertical:u,orientation:d,shape:f=`default`,name:p=n,styles:m,classNames:h,...g}=e,{getPrefixCls:_,direction:y,className:b,style:x,classNames:S,styles:C}=Ze(`segmented`),w={...e,options:s,size:c,shape:f},[T,E]=Dc([S,h],[C,m],{props:w}),D=_(`segmented`,r),[O,k]=iE(D),A=Ad(c),j=v.useMemo(()=>s.map(e=>{if(aE(e)){let{icon:t,label:n,...r}=e;return{...r,label:v.createElement(v.Fragment,null,v.createElement(`span`,{className:Y(`${D}-item-icon`,T.icon),style:E.icon},t),n&&v.createElement(`span`,null,n))}}return e}),[s,D,T.icon,E.icon]),[,M]=kc(d,u),N=Y(i,a,b,T.root,{[`${D}-block`]:o,[`${D}-sm`]:A===`small`,[`${D}-lg`]:A===`large`,[`${D}-vertical`]:M,[`${D}-shape-${f}`]:f===`round`},O,k),P={...E.root,...x,...l},F=(e,{item:t})=>{if(!t.tooltip)return e;let n=sc(t.tooltip)?t.tooltip:{title:t.tooltip};return v.createElement(gx,{...n},e)};return v.createElement($T,{...g,name:p,className:N,style:P,classNames:T,styles:E,itemRender:F,options:j,ref:t,prefixCls:D,direction:y,vertical:M})}),sE=e=>{let{componentCls:t,borderRadius:n,paddingSM:r,colorBorder:i,paddingXS:a,fontSizeLG:o,fontSizeSM:s,borderRadiusLG:c,borderRadiusSM:l,colorBgContainerDisabled:u,lineWidth:d,antCls:f}=e,[p,m]=Za(f,`space`);return{[t]:[{display:`inline-flex`,alignItems:`center`,gap:0,whiteSpace:`nowrap`,paddingInline:r,margin:0,borderWidth:d,borderStyle:`solid`,borderRadius:n,"&:hover":{zIndex:0},[`&${t}-disabled`]:{color:e.colorTextDisabled},"&-large":{fontSize:o,borderRadius:c},"&-small":{paddingInline:a,borderRadius:l,fontSize:s},"&-compact-last-item":{borderEndStartRadius:0,borderStartStartRadius:0},"&-compact-first-item":{borderEndEndRadius:0,borderStartEndRadius:0},"&-compact-item:not(:first-child):not(:last-child)":{borderRadius:0},"&-compact-item:not(:last-child)":{borderInlineEndWidth:0},"&-compact-item:not(:first-child)":{borderInlineStartWidth:0}},{[p(`addon-border-color`)]:i,[p(`addon-background`)]:u,[p(`addon-border-color-outlined`)]:i,[p(`addon-background-filled`)]:u,borderColor:m(`addon-border-color`),background:m(`addon-background`),"&-variant-outlined":{[p(`addon-border-color`)]:m(`addon-border-color-outlined`)},"&-variant-filled":{[p(`addon-border-color`)]:`transparent`,[p(`addon-background`)]:m(`addon-background-filled`),[`&${t}-disabled`]:{[p(`addon-border-color`)]:i,[p(`addon-background`)]:u}},"&-variant-borderless":{border:`none`,background:`transparent`},"&-variant-underlined":{border:`none`,background:`transparent`}},{"&-status-error":{[p(`addon-border-color-outlined`)]:e.colorError,[p(`addon-background-filled`)]:e.colorErrorBg,color:e.colorError},"&-status-warning":{[p(`addon-border-color-outlined`)]:e.colorWarning,[p(`addon-background-filled`)]:e.colorWarningBg,color:e.colorWarning}}]}},cE=Ja([`Space`,`Addon`],e=>[sE(e),lp(e,{focus:!1})]),lE=v.forwardRef((e,t)=>{let{className:n,children:r,style:i,prefixCls:a,variant:o=`outlined`,disabled:s,status:c,...l}=e,{getPrefixCls:u,direction:d}=v.useContext(Je),f=u(`space-addon`,a),[p,m]=cE(f),{compactItemClassnames:h,compactSize:g}=Nd(f,d),_=Jy(f,c),y=Y(f,p,h,m,`${f}-variant-${o}`,_,{[`${f}-${g}`]:g,[`${f}-disabled`]:s},n);return v.createElement(`div`,{ref:t,className:y,style:i,...l},r)});function uE(e){return!!(e.addonBefore||e.addonAfter)}function dE(e){return!!(e.prefix||e.suffix||e.allowClear)}function fE(e,t,n){let r=t.cloneNode(!0),i=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=n,typeof t.selectionStart==`number`&&typeof t.selectionEnd==`number`&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),r.setSelectionRange=(...e)=>{t.setSelectionRange(...e)},i}function pE(e,t,n,r){if(!n)return;let i=t;if(t.type===`click`){i=fE(t,e,``),n(i);return}if(e.type!==`file`&&r!==void 0){i=fE(t,e,r),n(i);return}n(i)}function mE(){return mE=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},mE.apply(this,arguments)}var hE=v.forwardRef((e,t)=>{let{inputElement:n,children:r,prefixCls:i,prefix:a,suffix:o,addonBefore:s,addonAfter:c,className:l,style:u,disabled:d,readOnly:f,focused:p,triggerFocus:m,allowClear:h,value:g,handleReset:_,hidden:y,classes:b,classNames:x,dataAttrs:S,styles:C,components:w,onClear:T}=e,E=r??n,D=w?.affixWrapper||`span`,O=w?.groupWrapper||`span`,k=w?.wrapper||`span`,A=w?.groupAddon||`span`,j=(0,v.useRef)(null),M=e=>{j.current?.contains(e.target)&&m?.()},N=dE(e),P=(0,v.cloneElement)(E,{value:g,className:Y(E.props?.className,!N&&x?.variant)||null}),F=(0,v.useRef)(null);if(v.useImperativeHandle(t,()=>({nativeElement:F.current||j.current})),N){let e=null;if(h){let t=!d&&!f&&g,n=`${i}-clear-icon`,r=typeof h==`object`&&h?.clearIcon?h.clearIcon:`✖`;e=v.createElement(`button`,{type:`button`,tabIndex:-1,onClick:e=>{_?.(e),T?.()},onMouseDown:e=>e.preventDefault(),className:Y(n,{[`${n}-hidden`]:!t,[`${n}-has-suffix`]:!!o})},r)}let t=`${i}-affix-wrapper`,n=Y(t,{[`${i}-disabled`]:d,[`${t}-disabled`]:d,[`${t}-focused`]:p,[`${t}-readonly`]:f,[`${t}-input-with-clear-btn`]:o&&h&&g},b?.affixWrapper,x?.affixWrapper,x?.variant),r=(o||h)&&v.createElement(`span`,{className:Y(`${i}-suffix`,x?.suffix),style:C?.suffix},e,o);P=v.createElement(D,mE({className:n,style:C?.affixWrapper,onClick:M},S?.affixWrapper,{ref:j}),a&&v.createElement(`span`,{className:Y(`${i}-prefix`,x?.prefix),style:C?.prefix},a),P,r)}if(uE(e)){let e=`${i}-group`,t=`${e}-addon`,n=`${e}-wrapper`,r=Y(`${i}-wrapper`,e,b?.wrapper,x?.wrapper),a=Y(n,{[`${n}-disabled`]:d},b?.group,x?.groupWrapper);P=v.createElement(O,{className:a,ref:F},v.createElement(k,{className:r},s&&v.createElement(A,{className:t},s),P,c&&v.createElement(A,{className:t},c)))}return v.cloneElement(P,{className:Y(P.props?.className,l)||null,style:{...P.props?.style,...u},hidden:y})});function gE(e,t){return v.useMemo(()=>{let n={};t&&(n.show=typeof t==`object`&&t.formatter?t.formatter:!!t),n={...n,...e};let{show:r,...i}=n;return{...i,show:!!r,showFormatter:typeof r==`function`?r:void 0,strategy:i.strategy||(e=>e.length)}},[e,t])}function _E(){return _E=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_E.apply(this,arguments)}var vE=(0,v.forwardRef)((e,t)=>{let{autoComplete:n,onChange:r,onFocus:i,onBlur:a,onPressEnter:o,onKeyDown:s,onKeyUp:c,prefixCls:l=`rc-input`,disabled:u,htmlSize:d,className:f,maxLength:p,suffix:m,showCount:h,count:g,type:_=`text`,classes:y,classNames:b,styles:x,onCompositionStart:S,onCompositionEnd:C,...w}=e,[E,D]=(0,v.useState)(!1),O=(0,v.useRef)(!1),k=(0,v.useRef)(!1),A=(0,v.useRef)(null),j=(0,v.useRef)(null),M=e=>{A.current&&kp(A.current,e)},[N,P]=T(e.defaultValue,e.value),F=N==null?``:String(N),[I,L]=(0,v.useState)(null),R=gE(g,h),z=R.max||p,B=R.strategy(F),V=!!z&&B>z;(0,v.useImperativeHandle)(t,()=>({focus:M,blur:()=>{A.current?.blur()},setSelectionRange:(e,t,n)=>{A.current?.setSelectionRange(e,t,n)},select:()=>{A.current?.select()},input:A.current,nativeElement:j.current?.nativeElement||A.current})),(0,v.useEffect)(()=>{k.current&&=!1,D(e=>e&&u?!1:e)},[u]);let H=(e,t,n)=>{let i=t;if(!O.current&&R.exceedFormatter&&R.max&&R.strategy(t)>R.max)i=R.exceedFormatter(t,{max:R.max}),t!==i&&L([A.current?.selectionStart||0,A.current?.selectionEnd||0]);else if(n.source===`compositionEnd`)return;P(i),A.current&&pE(A.current,e,r,i)};(0,v.useEffect)(()=>{I&&A.current?.setSelectionRange(...I)},[I]);let U=e=>{H(e,e.target.value,{source:`change`})},W=e=>{O.current=!1,H(e,e.currentTarget.value,{source:`compositionEnd`}),C?.(e)},ee=e=>{o&&e.key===`Enter`&&!k.current&&!e.nativeEvent.isComposing&&(k.current=!0,o(e)),s?.(e)},te=e=>{e.key===`Enter`&&(k.current=!1),c?.(e)},G=e=>{D(!0),i?.(e)},ne=e=>{k.current&&=!1,D(!1),a?.(e)},re=e=>{P(``),M(),A.current&&pE(A.current,e,r)},ie=V&&`${l}-out-of-range`;return v.createElement(hE,_E({},w,{prefixCls:l,className:Y(f,ie),handleReset:re,value:F,focused:E,triggerFocus:M,suffix:(()=>{let e=Number(z)>0;if(m||R.show){let t=R.showFormatter?R.showFormatter({value:F,count:B,maxLength:z}):`${B}${e?` / ${z}`:``}`;return v.createElement(v.Fragment,null,R.show&&v.createElement(`span`,{className:Y(`${l}-show-count-suffix`,{[`${l}-show-count-has-suffix`]:!!m},b?.count),style:{...x?.count}},t),m)}return null})(),disabled:u,classes:y,classNames:b,styles:x,ref:j}),(()=>{let t=ue(e,[`prefixCls`,`onPressEnter`,`addonBefore`,`addonAfter`,`prefix`,`suffix`,`allowClear`,`defaultValue`,`showCount`,`count`,`classes`,`htmlSize`,`styles`,`classNames`,`onClear`]);return v.createElement(`input`,_E({autoComplete:n},t,{onChange:U,onFocus:G,onBlur:ne,onKeyDown:ee,onKeyUp:te,className:Y(l,{[`${l}-disabled`]:u},b?.input),style:x?.input,ref:A,size:d,type:_,onCompositionStart:e=>{O.current=!0,S?.(e)},onCompositionEnd:W}))})())}),yE=e=>{let t;return sc(e)&&e?.clearIcon?t=e:e&&(t={clearIcon:v.createElement(Do,null)}),t};function bE(e,t){let n=(0,v.useRef)([]),r=()=>{n.current.push(setTimeout(()=>{e.current?.input&&e.current?.input.getAttribute(`type`)===`password`&&e.current?.input.hasAttribute(`value`)&&e.current?.input.removeAttribute(`value`)}))};return(0,v.useEffect)(()=>(t&&r(),()=>n.current.forEach(e=>{e&&clearTimeout(e)})),[]),r}function xE(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var SE=(0,v.forwardRef)((e,t)=>{let{prefixCls:n,bordered:r=!0,status:i,size:a,disabled:o,onBlur:s,onFocus:c,suffix:l,allowClear:u,addonAfter:d,addonBefore:f,className:p,style:m,styles:h,rootClassName:g,onChange:_,classNames:y,variant:b,...x}=e,{getPrefixCls:S,direction:C,allowClear:w,autoComplete:T,className:E,style:D,classNames:O,styles:k}=Ze(`input`),A=S(`input`,n),j=(0,v.useRef)(null),M=Yc(A),[N,P]=yw(A,g);bw(A,M);let{compactSize:F,compactItemClassnames:L}=Nd(A,C),R=Ad(e=>a??F??e),z=v.useContext(du),B=o??z,V={...e,size:R,disabled:B},[H,U]=Dc([O,y],[k,h],{props:V}),{status:W,hasFeedback:ee,feedbackIcon:te}=(0,v.useContext)(Rh),G=Yy(W,i);(0,v.useRef)(xE(e)||!!ee);let ne=bE(j,!0),re=e=>{ne(),s?.(e)},ie=e=>{ne(),c?.(e)},K=e=>{ne(),_?.(e)},q=(ee||l)&&v.createElement(v.Fragment,null,l,ee&&te),ae=yE(u??w),[oe,se]=ib(`input`,b,r);return v.createElement(vE,{ref:I(t,j),prefixCls:A,autoComplete:T,...x,disabled:B,onBlur:re,onFocus:ie,style:{...U.root,...D,...m},styles:U,suffix:q,allowClear:ae,className:Y(p,g,P,M,L,E,H.root),onChange:K,addonBefore:f&&v.createElement(Vh,{form:!0,space:!0},f),addonAfter:d&&v.createElement(Vh,{form:!0,space:!0},d),classNames:{...H,input:Y({[`${A}-sm`]:R===`small`,[`${A}-lg`]:R===`large`,[`${A}-rtl`]:C===`rtl`},H.input,N),variant:Y({[`${A}-${oe}`]:se},Jy(A,G)),affixWrapper:Y({[`${A}-affix-wrapper-sm`]:R===`small`,[`${A}-affix-wrapper-lg`]:R===`large`,[`${A}-affix-wrapper-rtl`]:C===`rtl`},N),wrapper:Y({[`${A}-group-rtl`]:C===`rtl`},N),groupWrapper:Y({[`${A}-group-wrapper-sm`]:R===`small`,[`${A}-group-wrapper-lg`]:R===`large`,[`${A}-group-wrapper-rtl`]:C===`rtl`,[`${A}-group-wrapper-${oe}`]:se},Jy(`${A}-group-wrapper`,G,ee),N)}})});function CE(e){return[`small`,`middle`,`medium`,`large`].includes(e)}function wE(e){return e?ac(e):!1}var TE=v.createContext({latestIndex:0}),EE=TE.Provider,DE=e=>{let{className:t,prefix:n,index:r,children:i,separator:a,style:o,classNames:s,styles:c}=e,{latestIndex:l}=v.useContext(TE);return ic(i)?v.createElement(v.Fragment,null,v.createElement(`div`,{className:t,style:o},i),r<l&&a&&v.createElement(`span`,{className:Y(`${n}-item-separator`,s?.separator),style:c?.separator},a)):null},OE=e=>{let{componentCls:t,antCls:n}=e;return{[t]:{display:`inline-flex`,"&-rtl":{direction:`rtl`},"&-vertical":{flexDirection:`column`},"&-align":{flexDirection:`column`,"&-center":{alignItems:`center`},"&-start":{alignItems:`flex-start`},"&-end":{alignItems:`flex-end`},"&-baseline":{alignItems:`baseline`}},[`${t}-item:empty`]:{display:`none`},[`${t}-item > ${n}-badge-not-a-wrapper:only-child`]:{display:`block`}}}},kE=e=>{let{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-medium, &-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-medium, &-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}},AE=Ja(`Space`,e=>{let t=si(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[OE(t),kE(t)]},()=>({}),{resetStyle:!1}),jE=v.forwardRef((e,t)=>{let{getPrefixCls:n,direction:r,size:i,className:a,style:o,classNames:s,styles:c}=Ze(`space`),{size:l=i??`small`,align:u,className:d,rootClassName:f,children:p,direction:m,orientation:h,prefixCls:g,split:_,separator:y,style:b,vertical:x,wrap:S=!1,classNames:C,styles:w,...T}=e,[E,D]=Array.isArray(l)?l:[l,l],O=CE(D),k=CE(E),A=wE(D),j=wE(E),M=de(p,{keepEmpty:!0}),[N,P]=kc(h,x,m),F=u===void 0&&!P?`center`:u,I=y??_,L=n(`space`,g),[R,z]=AE(L),B={...e,size:l,orientation:N,align:F},[V,H]=Dc([s,C],[c,w],{props:B}),U=Y(L,a,R,`${L}-${N}`,{[`${L}-rtl`]:r===`rtl`,[`${L}-align-${F}`]:F,[`${L}-gap-row-${D}`]:O,[`${L}-gap-col-${E}`]:k},d,f,z,V.root),W=Y(`${L}-item`,V.item),ee=M.map((e,t)=>{let n=e?.key||`${W}-${t}`;return v.createElement(DE,{prefix:L,classNames:V,styles:H,className:W,key:n,index:t,separator:I,style:H.item},e)}),te=v.useMemo(()=>({latestIndex:M.reduce((e,t,n)=>ic(t)?n:e,0)}),[M]);if(M.length===0)return null;let G={};return S&&(G.flexWrap=`wrap`),!k&&j&&(G.columnGap=E),!O&&A&&(G.rowGap=D),v.createElement(`div`,{ref:t,className:U,style:{...G,...H.root,...o,...b},...T},v.createElement(EE,{value:te},ee))});jE.Compact=Id,jE.Addon=lE;var ME=e=>{let{getPopupContainer:t,getPrefixCls:n,direction:r}=v.useContext(Je),{prefixCls:i,type:a=`default`,danger:o,disabled:s,loading:c,onClick:l,htmlType:u,children:d,className:f,menu:p,arrow:m,autoFocus:h,trigger:g,align:_,open:y,onOpenChange:b,placement:x,getPopupContainer:S,href:C,icon:w=v.createElement(_C,null),title:T,buttonsRender:E=e=>e,mouseEnterDelay:D,mouseLeaveDelay:O,overlayClassName:k,overlayStyle:A,destroyOnHidden:j,destroyPopupOnHide:M,dropdownRender:N,popupRender:P,...F}=e,I=n(`dropdown`,i),L=`${I}-button`,R={menu:p,arrow:m,autoFocus:h,align:_,disabled:s,trigger:s?[]:g,onOpenChange:b,getPopupContainer:S||t,mouseEnterDelay:D,mouseLeaveDelay:O,classNames:{root:k},styles:{root:A},destroyOnHidden:j,popupRender:P||N},{compactSize:z,compactItemClassnames:B}=Nd(I,r),V=Y(L,B,f);`destroyPopupOnHide`in e&&(R.destroyPopupOnHide=M),`open`in e&&(R.open=y),`placement`in e?R.placement=x:R.placement=r===`rtl`?`bottomLeft`:`bottomRight`;let[H,U]=E([v.createElement(WC,{type:a,danger:o,disabled:s,loading:c,onClick:l,htmlType:u,href:C,title:T},d),v.createElement(WC,{type:a,danger:o,icon:w})]);return v.createElement(jE.Compact,{className:V,size:z,block:!0,...F},H,v.createElement(HC,{...R},U))};ME.__ANT_BUTTON=!0;var NE=HC;NE.Button=ME;var PE=[`wrap`,`nowrap`,`wrap-reverse`],FE=[`flex-start`,`flex-end`,`start`,`end`,`center`,`space-between`,`space-around`,`space-evenly`,`stretch`,`normal`,`left`,`right`],IE=[`center`,`start`,`end`,`flex-start`,`flex-end`,`self-start`,`self-end`,`baseline`,`normal`,`stretch`],LE=(e,t)=>{let n=t.wrap===!0?`wrap`:t.wrap;return{[`${e}-wrap-${n}`]:n&&PE.includes(n)}},RE=(e,t)=>{let n={};return IE.forEach(r=>{n[`${e}-align-${r}`]=t.align===r}),n[`${e}-align-stretch`]=!t.align&&!!t.vertical,n},zE=(e,t)=>{let n={};return FE.forEach(r=>{n[`${e}-justify-${r}`]=t.justify===r}),n},BE=(e,t)=>Y({...LE(e,t),...RE(e,t),...zE(e,t)}),VE=e=>{let{componentCls:t}=e;return{[t]:{display:`flex`,margin:0,padding:0,"&-vertical":{flexDirection:`column`},"&-rtl":{direction:`rtl`},"&:empty":{display:`none`}}}},HE=e=>{let{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-medium, &-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},UE=e=>{let{componentCls:t}=e,n={};return PE.forEach(e=>{n[`${t}-wrap-${e}`]={flexWrap:e}}),n},WE=e=>{let{componentCls:t}=e,n={};return IE.forEach(e=>{n[`${t}-align-${e}`]={alignItems:e}}),n},GE=e=>{let{componentCls:t}=e,n={};return FE.forEach(e=>{n[`${t}-justify-${e}`]={justifyContent:e}}),n},KE=Ja(`Flex`,e=>{let{paddingXS:t,padding:n,paddingLG:r}=e,i=si(e,{flexGapSM:t,flexGap:n,flexGapLG:r});return[VE(i),HE(i),UE(i),WE(i),GE(i)]},()=>({}),{resetStyle:!1}),qE=v.forwardRef((e,t)=>{let{prefixCls:n,rootClassName:r,className:i,style:a,flex:o,gap:s,vertical:c,orientation:l,component:u=`div`,children:d,...f}=e,{flex:p,direction:m,getPrefixCls:h}=v.useContext(Je),g=h(`flex`,n),[_,y]=KE(g),[,b]=kc(l,c??p?.vertical),x=Y(i,r,p?.className,g,_,y,BE(g,{...e,vertical:b}),{[`${g}-rtl`]:m===`rtl`,[`${g}-gap-${s}`]:CE(s),[`${g}-vertical`]:b}),S={...p?.style,...a};return ic(o)&&(S.flex=o),ic(s)&&!CE(s)&&(S.gap=s),v.createElement(u,{ref:t,className:x,style:S,...ue(f,[`justify`,`wrap`,`align`])},d)}),JE=e=>{let{getPrefixCls:t,direction:n}=(0,v.useContext)(Je),{prefixCls:r,className:i}=e,a=t(`input-group`,r),[o,s]=bw(t(`input`)),c=Y(a,s,{[`${a}-lg`]:e.size===`large`,[`${a}-sm`]:e.size===`small`,[`${a}-compact`]:e.compact,[`${a}-rtl`]:n===`rtl`},o,i),l=(0,v.useContext)(Rh),u=(0,v.useMemo)(()=>({...l,isFormItemInput:!1}),[l]);return v.createElement(Rh.Provider,{value:u},v.createElement(jE.Compact,{className:c,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},e.children))},YE=e=>{let{componentCls:t,paddingXS:n}=e;return{[t]:{display:`inline-flex`,alignItems:`center`,flexWrap:`nowrap`,columnGap:n,[`${t}-input-wrapper`]:{position:`relative`,[`${t}-mask-icon`]:{position:`absolute`,zIndex:`1`,top:`50%`,right:`50%`,transform:`translate(50%, -50%)`,pointerEvents:`none`},[`${t}-mask-input`]:{color:`transparent`,caretColor:e.colorText,"&::selection":{color:`transparent`}},[`${t}-mask-input[type=number]::-webkit-inner-spin-button`]:{"-webkit-appearance":`none`,margin:0},[`${t}-mask-input[type=number]`]:{"-moz-appearance":`textfield`}},"&-rtl":{direction:`rtl`},[`${t}-input`]:{textAlign:`center`,paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}},XE=Ja([`Input`,`OTP`],e=>YE(si(e,GC(e))),KC),ZE=v.forwardRef((e,t)=>{let{className:n,value:r,onChange:i,onActiveChange:a,index:o,mask:s,onFocus:c,...l}=e,{getPrefixCls:u}=v.useContext(Je),d=u(`otp`),f=typeof s==`string`?s:r,p=v.useRef(null);v.useImperativeHandle(t,()=>p.current);let m=e=>{i(o,e.target.value)},h=()=>{Ge(()=>{let e=p.current?.input;document.activeElement===e&&e&&e.select()})},g=e=>{c?.(e),h()},_=e=>{let{key:t,ctrlKey:n,metaKey:i}=e;t===`ArrowLeft`?a(o-1):t===`ArrowRight`?a(o+1):t===`z`&&(n||i)?e.preventDefault():t===`Backspace`&&!r&&a(o-1),h()};return v.createElement(`span`,{className:`${d}-input-wrapper`,role:`presentation`},s&&r!==``&&r!==void 0&&v.createElement(`span`,{className:`${d}-mask-icon`,"aria-hidden":`true`},f),v.createElement(SE,{"aria-label":`OTP Input ${o+1}`,type:s===!0?`password`:`text`,...l,ref:p,value:r,onInput:m,onFocus:g,onKeyDown:_,onMouseDown:h,onMouseUp:h,className:Y(n,{[`${d}-mask-input`]:s})}))});function QE(e){return(e||``).split(``)}var $E=e=>{let{index:t,prefixCls:n,separator:r,className:i,style:a}=e,o=typeof r==`function`?r(t):r;return o?v.createElement(`span`,{className:Y(`${n}-separator`,i),style:a},o):null},eD=v.forwardRef((e,t)=>{let{prefixCls:n,length:r=6,size:i,defaultValue:a,value:o,onChange:s,formatter:c,separator:l,variant:u,disabled:d,status:f,autoFocus:p,mask:m,type:h,autoComplete:g,onInput:_,onFocus:b,inputMode:x,classNames:S,styles:C,className:w,style:T,...E}=e,{classNames:D,styles:O,getPrefixCls:k,direction:A,style:j,className:M}=Ze(`otp`),N=k(`otp`,n),P={...e,length:r},[F,I]=Dc([D,S],[O,C],{props:P}),L=Ns(E,{aria:!0,data:!0,attr:!0}),[R,z]=XE(N),B=Ad(e=>i??e),V=v.useContext(Rh),H=Yy(V.status,f),U=v.useMemo(()=>({...V,status:H,hasFeedback:!1,feedbackIcon:null}),[V,H]),W=v.useRef(null),ee=v.useRef({});v.useImperativeHandle(t,()=>({focus:()=>{ee.current[0]?.focus()},blur:()=>{for(let e=0;e<r;e+=1)ee.current[e]?.blur()},nativeElement:W.current}));let te=e=>c?c(e):e,[G,ne]=v.useState(()=>QE(te(a||``)));v.useEffect(()=>{o!==void 0&&ne(QE(o))},[o]);let re=y(e=>{ne(e),_&&_(e),s&&e.length===r&&e.every(e=>e)&&e.some((e,t)=>G[t]!==e)&&s(e.join(``))}),ie=y((e,t)=>{let n=ze(G);for(let t=0;t<e;t+=1)n[t]||(n[t]=``);t.length<=1?n[e]=t:n=n.slice(0,e).concat(QE(t)),n=n.slice(0,r);for(let e=n.length-1;e>=0&&!n[e];--e)n.pop();return n=QE(te(n.map(e=>e||` `).join(``))).map((e,t)=>e===` `&&!n[t]?n[t]:e),n}),K=(e,t)=>{let n=ie(e,t),i=Math.min(e+t.length,r-1);i!==e&&n[e]!==void 0&&ee.current[i]?.focus(),re(n)},q=e=>{ee.current[e]?.focus()},ae=(e,t)=>{for(let e=0;e<t;e+=1)if(!ee.current[e]?.input?.value){ee.current[e]?.focus();break}b?.(e)},oe={variant:u,disabled:d,status:H,mask:m,type:h,inputMode:x,autoComplete:g};return v.createElement(`div`,{...L,ref:W,className:Y(w,N,{[`${N}-sm`]:B===`small`,[`${N}-lg`]:B===`large`,[`${N}-rtl`]:A===`rtl`},z,R,M,F.root),style:{...I.root,...j,...T},role:`group`},v.createElement(Rh.Provider,{value:U},Array.from({length:r}).map((e,t)=>{let n=`otp-${t}`,i=G[t]||``;return v.createElement(v.Fragment,{key:n},v.createElement(ZE,{ref:e=>{ee.current[t]=e},index:t,size:B,htmlSize:1,className:Y(F.input,`${N}-input`),style:I.input,onChange:K,value:i,onActiveChange:q,autoFocus:t===0&&p,onFocus:e=>ae(e,t),...oe}),t<r-1&&v.createElement($E,{separator:l,index:t,prefixCls:N,className:Y(F.separator),style:I.separator}))})))}),tD={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 nD(){return nD=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},nD.apply(this,arguments)}var rD=v.forwardRef((e,t)=>v.createElement(So,nD({},e,{ref:t,icon:tD}))),iD={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 aD(){return aD=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},aD.apply(this,arguments)}var oD=v.forwardRef((e,t)=>v.createElement(So,aD({},e,{ref:t,icon:iD}))),sD=e=>e?v.createElement(oD,null):v.createElement(rD,null),cD={click:`onClick`,hover:`onMouseOver`},lD=v.forwardRef((e,t)=>{let{disabled:n,action:r=`click`,visibilityToggle:i=!0,iconRender:a=sD,suffix:o}=e,s=v.useContext(du),c=n??s,l=sc(i)&&i.visible!==void 0,[u,d]=(0,v.useState)(()=>l?i.visible:!1),f=(0,v.useRef)(null);v.useEffect(()=>{l&&d(i.visible)},[l,i]);let p=bE(f),m=()=>{if(c)return;u&&p();let e=!u;d(e),sc(i)&&i.onVisibleChange?.(e)},h=e=>{let t=cD[r]||``,n=a(u),i={[t]:m,className:`${e}-icon`,key:`passwordIcon`,onMouseDown:e=>{e.preventDefault()},onMouseUp:e=>{e.preventDefault()}};return v.cloneElement(v.isValidElement(n)?n:v.createElement(`span`,null,n),i)},{className:g,prefixCls:_,inputPrefixCls:y,size:b,...x}=e,{getPrefixCls:S}=v.useContext(Je),C=S(`input`,y),w=S(`input-password`,_),T=i&&h(w),E=Y(w,g,{[`${w}-${b}`]:!!b}),D={...ue(x,[`suffix`,`iconRender`,`visibilityToggle`]),type:u?`text`:`password`,className:E,prefixCls:C,suffix:v.createElement(v.Fragment,null,T,o)};return b&&(D.size=b),v.createElement(SE,{ref:I(t,f),...D})}),uD=Ja([`Input`,`Search`],e=>{let{componentCls:t}=e,n=`${t}-btn`;return{[t]:{width:`100%`,[n]:{"&-filled":{background:e.colorFillTertiary,"&:not(:disabled)":{"&:hover":{background:e.colorFillSecondary},"&:active":{background:e.colorFill}}}}}}}),dD=v.forwardRef((e,t)=>{let{prefixCls:n,inputPrefixCls:r,className:i,size:a,style:o,enterButton:s=!1,addonAfter:c,loading:l,disabled:u,onSearch:d,onChange:f,onCompositionStart:p,onCompositionEnd:m,variant:h,onPressEnter:g,classNames:_,styles:y,hidden:b,...x}=e,{direction:S,getPrefixCls:C,classNames:w,styles:T}=Ze(`inputSearch`),E={...e,enterButton:s},[D,O]=Dc([w,_],[T,y],{props:E},{button:{_default:`root`}}),k=v.useRef(!1),A=C(`input-search`,n),j=C(`input`,r),[M,N]=uD(A),{compactSize:P}=Nd(A,S),F=Ad(e=>a??P??e),L=v.useRef(null),R=e=>{e?.target&&e.type===`click`&&d&&d(e.target.value,e,{source:`clear`}),f?.(e)},z=e=>{document.activeElement===L.current?.input&&e.preventDefault()},B=e=>{d&&d(L.current?.input?.value,e,{source:`input`})},V=e=>{k.current||l||(g?.(e),B(e))},H=typeof s==`boolean`?v.createElement(Db,null):null,U=`${A}-btn`,W=Y(U,{[`${U}-${h}`]:h}),ee,te=s||{},G=te.type&&te.type.__ANT_BUTTON===!0;ee=G||te.type===`button`?ou(te,{onMouseDown:z,onClick:e=>{te?.props?.onClick?.(e),B(e)},key:`enterButton`,...G?{className:W,size:F}:{}}):v.createElement(_p,{classNames:D.button,styles:O.button,className:W,color:s?`primary`:`default`,size:F,disabled:u,key:`enterButton`,onMouseDown:z,onClick:B,loading:l,icon:H,variant:h===`borderless`||h===`filled`||h===`underlined`?`text`:s?`solid`:void 0},s),c&&(ee=[ee,ou(c,{key:`addonAfter`})]);let ne=Y(A,N,{[`${A}-rtl`]:S===`rtl`,[`${A}-${F}`]:!!F,[`${A}-with-button`]:!!s},i,M,D.root),re=e=>{k.current=!0,p?.(e)},ie=e=>{k.current=!1,m?.(e)},K=Ns(x,{data:!0}),q=ue({...x,classNames:ue(D,[`button`,`root`]),styles:ue(O,[`button`,`root`]),prefixCls:j,type:`search`,size:F,variant:h,onPressEnter:V,onCompositionStart:re,onCompositionEnd:ie,onChange:R,disabled:u},Object.keys(K));return v.createElement(Id,{className:ne,style:{...o,...O.root},...K,hidden:b},v.createElement(SE,{ref:I(L,t),...q}),ee)}),fD=`
225
+ `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:`relative`,zIndex:1,boxShadow:r}}},kT=e=>{let{componentCls:t,iconCls:n,actionsLiMargin:r,cardActionsIconSize:i,colorBorderSecondary:a,actionsBg:o}=e;return{margin:0,padding:0,listStyle:`none`,background:o,borderTop:`${X(e.lineWidth)} ${e.lineType} ${a}`,display:`flex`,borderRadius:`0 0 ${X(e.borderRadiusLG)} ${X(e.borderRadiusLG)}`,...Va(),"& > 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:X(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:i,lineHeight:X(e.calc(i).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${X(e.lineWidth)} ${e.lineType} ${a}`}}}},AT=e=>({margin:`${X(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:`flex`,...Va(),"&-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,...Ra},"&-description":{color:e.colorTextDescription}}),jT=e=>{let{componentCls:t,colorFillAlter:n,headerPadding:r,bodyPadding:i}=e;return{[`${t}-head`]:{padding:`0 ${X(r)}`,background:n,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${X(e.padding)} ${X(i)}`}}},MT=e=>{let{componentCls:t}=e;return{overflow:`hidden`,[`${t}-body`]:{userSelect:`none`}}},NT=e=>{let{componentCls:t,cardShadow:n,cardHeadPadding:r,colorBorderSecondary:i,boxShadowTertiary:a,bodyPadding:o,extraColor:s,motionDurationMid:c}=e;return{[t]:{...za(e),position:`relative`,background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:a},[`${t}-head`]:DT(e),[`${t}-extra`]:{marginInlineStart:`auto`,color:s,fontWeight:`normal`,fontSize:e.fontSize},[`${t}-body`]:{padding:o,borderRadius:`0 0 ${X(e.borderRadiusLG)} ${X(e.borderRadiusLG)}`,"&:first-child":{borderStartStartRadius:e.borderRadiusLG,borderStartEndRadius:e.borderRadiusLG},"&:not(:last-child)":{borderEndStartRadius:0,borderEndEndRadius:0}},[`${t}-grid`]:OT(e),[`${t}-cover`]:{"> *":{display:`block`,width:`100%`,borderRadius:`${X(e.borderRadiusLG)} ${X(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:kT(e),[`${t}-meta`]:AT(e)},[`${t}-bordered`]:{border:`${X(e.lineWidth)} ${e.lineType} ${i}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:`pointer`,transition:[`box-shadow`,`border-color`].map(e=>`${e} ${c}`).join(`, `),"&:hover":{borderColor:`transparent`,boxShadow:n}},[`${t}-contain-grid`]:{borderRadius:`${X(e.borderRadiusLG)} ${X(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`]:jT(e),[`${t}-loading`]:MT(e),[`${t}-rtl`]:{direction:`rtl`}}},PT=e=>{let{componentCls:t,bodyPaddingSM:n,headerPaddingSM:r,headerHeightSM:i,headerFontSizeSM:a}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:i,padding:`0 ${X(r)}`,fontSize:a,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:`flex`,alignItems:`center`}}}}},FT=Ja(`Card`,e=>{let t=si(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize});return[NT(t),PT(t)]},e=>({headerBg:`transparent`,headerFontSize:e.fontSizeLG,headerFontSizeSM:e.fontSize,headerHeight:e.fontSizeLG*e.lineHeightLG+e.padding*2,headerHeightSM:e.fontSize*e.lineHeight+e.paddingXS*2,actionsBg:e.colorBgContainer,actionsLiMargin:`${e.paddingSM}px 0`,tabsMarginBottom:-e.padding-e.lineWidth,extraColor:e.colorText,bodyPaddingSM:12,headerPaddingSM:12,bodyPadding:e.bodyPadding??e.paddingLG,headerPadding:e.headerPadding??e.paddingLG})),IT=e=>{let{actionClasses:t,actions:n=[],actionStyle:r}=e;return v.createElement(`ul`,{className:t,style:r},n.map((e,t)=>{let r=`action-${t}`;return v.createElement(`li`,{style:{width:`${100/n.length}%`},key:r},v.createElement(`span`,null,e))}))},LT=v.forwardRef((e,t)=>{let{prefixCls:n,className:r,rootClassName:i,style:a,extra:o,headStyle:s={},bodyStyle:c={},title:l,loading:u,bordered:d,variant:f,size:p,type:m,cover:h,actions:g,tabList:_,children:y,activeTabKey:b,defaultActiveTabKey:x,tabBarExtraContent:S,hoverable:C,tabProps:w={},classNames:T,styles:E,...D}=e,{getPrefixCls:O,direction:k,className:A,style:j,classNames:M,styles:N}=Ze(`card`),[P]=ab(`card`,f,d),F=jd(p),I={...e,size:F,variant:P},[L,R]=Dc([M,T],[N,E],{props:I}),z=t=>{e.onTabChange?.(t)},B=v.useMemo(()=>de(y),[y]),V=v.useMemo(()=>B.some(e=>v.isValidElement(e)&&e.type===ET),[B]),H=O(`card`,n),[U,W]=FT(H),ee=v.createElement(Cg,{loading:!0,active:!0,paragraph:{rows:4},title:!1},y),te=b!==void 0,G={...w,[te?`activeKey`:`defaultActiveKey`]:te?b:x,tabBarExtraContent:S},ne,re=F===`small`?F:`large`,ie=_?v.createElement(TT,{size:re,...G,className:`${H}-head-tabs`,onChange:z,items:_.map(({tab:e,...t})=>({label:e,...t}))}):null;if(l||o||ie){let e=Y(`${H}-head`,L.header),t=Y(`${H}-head-title`,L.title),n=Y(`${H}-extra`,L.extra),r={...s,...R.header};ne=v.createElement(`div`,{className:e,style:r},v.createElement(`div`,{className:`${H}-head-wrapper`},l&&v.createElement(`div`,{className:t,style:R.title},l),o&&v.createElement(`div`,{className:n,style:R.extra},o)),ie)}let K=Y(`${H}-cover`,L.cover),q=h?v.createElement(`div`,{className:K,style:R.cover},h):null,ae=Y(`${H}-body`,L.body),oe={...c,...R.body},se=u||B.length?v.createElement(`div`,{className:ae,style:oe},u?ee:y):null,J=Y(`${H}-actions`,L.actions),ce=g?.length?v.createElement(IT,{actionClasses:J,actionStyle:R.actions,actions:g}):null,le=ue(D,[`onTabChange`]),fe=Y(H,A,{[`${H}-loading`]:u,[`${H}-bordered`]:P!==`borderless`,[`${H}-hoverable`]:C,[`${H}-contain-grid`]:V,[`${H}-contain-tabs`]:_?.length,[`${H}-small`]:F===`small`,[`${H}-type-${m}`]:!!m,[`${H}-rtl`]:k===`rtl`},r,i,U,W,L.root),pe={...R.root,...j,...a};return v.createElement(`div`,{ref:t,...le,className:fe,style:pe},ne,q,se,ce)}),RT=e=>{let{prefixCls:t,className:n,avatar:r,title:i,description:a,style:o,classNames:s,styles:c,...l}=e,{getPrefixCls:u,className:d,style:f,classNames:p,styles:m}=Ze(`cardMeta`),h=`${u(`card`,t)}-meta`,[g,_]=Dc([p,s],[m,c],{props:e}),y=Y(h,n,d,g.root),b={...f,..._.root,...o},x=Y(`${h}-avatar`,g.avatar),S=Y(`${h}-title`,g.title),C=Y(`${h}-description`,g.description),w=Y(`${h}-section`,g.section),T=r?v.createElement(`div`,{className:x,style:_.avatar},r):null,E=i?v.createElement(`div`,{className:S,style:_.title},i):null,D=a?v.createElement(`div`,{className:C,style:_.description},a):null,O=E||D?v.createElement(`div`,{className:w,style:_.section},E,D):null;return v.createElement(`div`,{...l,className:y,style:b},T,O)},zT=LT;zT.Grid=ET,zT.Meta=RT;function BT(e,t,n){var r=n||{},i=r.noTrailing,a=i===void 0?!1:i,o=r.noLeading,s=o===void 0?!1:o,c=r.debounceMode,l=c===void 0?void 0:c,u,d=!1,f=0;function p(){u&&clearTimeout(u)}function m(e){var t=(e||{}).upcomingOnly,n=t===void 0?!1:t;p(),d=!n}function h(){var n=[...arguments],r=this,i=Date.now()-f;if(d)return;function o(){f=Date.now(),t.apply(r,n)}function c(){u=void 0}!s&&l&&!u&&o(),p(),l===void 0&&i>e?s?(f=Date.now(),a||(u=setTimeout(l?c:o,e))):o():a!==!0&&(u=setTimeout(l?c:o,l===void 0?e-i:e))}return h.cancel=m,h}function VT(e,t,n){var r=(n||{}).atBegin;return BT(e,t,{debounceMode:(r===void 0?!1:r)!==!1})}var HT=(0,v.createContext)({});function UT(e){return e===`auto`?`1 1 auto`:ac(e)?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}var WT=v.forwardRef((e,t)=>{let{getPrefixCls:n,direction:r}=v.useContext(Je),{gutter:i,wrap:a}=v.useContext(HT),{prefixCls:o,span:s,order:c,offset:l,push:u,pull:d,className:f,children:p,flex:m,style:h,...g}=e,_=n(`col`,o),y=n(),[b,x]=Bg(_),[S]=Za(y,`col`),C={},w={};Ib.forEach(t=>{let n={},i=e[t];ac(i)?n.span=i:sc(i)&&(n=i||{}),delete g[t],w={...w,[`${_}-${t}-${n.span}`]:ic(n.span),[`${_}-${t}-order-${n.order}`]:n.order||n.order===0,[`${_}-${t}-offset-${n.offset}`]:n.offset||n.offset===0,[`${_}-${t}-push-${n.push}`]:n.push||n.push===0,[`${_}-${t}-pull-${n.pull}`]:n.pull||n.pull===0,[`${_}-rtl`]:r===`rtl`},n.flex&&(w[`${_}-${t}-flex`]=!0,C[S(`${t}-flex`)]=UT(n.flex))});let T=Y(_,{[`${_}-${s}`]:s!==void 0,[`${_}-order-${c}`]:c,[`${_}-offset-${l}`]:l,[`${_}-push-${u}`]:u,[`${_}-pull-${d}`]:d},f,w,b,x),E={};return i?.[0]&&(E.paddingInline=ac(i[0])?`${i[0]/2}px`:`calc(${i[0]} / 2)`),m&&(E.flex=UT(m),a===!1&&!E.minWidth&&(E.minWidth=0)),v.createElement(`div`,{...g,style:{...E,...h,...C},className:T,ref:t},p)});function GT(e,t){let n=[void 0,void 0],r=Array.isArray(e)?e:[e,void 0],i=t||{xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0,xxxl:!0};return r.forEach((e,t)=>{if(sc(e))for(let r=0;r<Fb.length;r++){let a=Fb[r];if(i[a]&&e[a]!==void 0){n[t]=e[a];break}}else n[t]=e}),n}var KT=(e,t)=>{let[n,r]=v.useState(()=>oc(e)?e:``),i=()=>{if(oc(e)&&r(e),sc(e))for(let n=0;n<Fb.length;n++){let i=Fb[n];if(!t||!t[i])continue;let a=e[i];if(a!==void 0){r(a);return}}};return v.useEffect(()=>{i()},[JSON.stringify(e),t]),n},qT=v.forwardRef((e,t)=>{let{prefixCls:n,justify:r,align:i,className:a,style:o,children:s,gutter:c=0,wrap:l,...u}=e,{getPrefixCls:d,direction:f}=v.useContext(Je),p=Bb(!0,null),m=KT(i,p),h=KT(r,p),g=d(`row`,n),[_,y]=Rg(g),b=GT(c,p),x=Y(g,{[`${g}-no-wrap`]:l===!1,[`${g}-${h}`]:h,[`${g}-${m}`]:m,[`${g}-rtl`]:f===`rtl`},a,_,y),S={};b?.[0]&&(S.marginInline=ac(b[0])?`${b[0]/-2}px`:`calc(${b[0]} / -2)`);let[C,w]=b;S.rowGap=w;let T=v.useMemo(()=>({gutter:[C,w],wrap:l}),[C,w,l]);return v.createElement(HT.Provider,{value:T},v.createElement(`div`,{...u,className:x,style:{...S,...o},ref:t},s))}),JT=(e,t)=>{if(!e)return null;let n={left:e.offsetLeft,right:e.parentElement.clientWidth-e.clientWidth-e.offsetLeft,width:e.clientWidth,top:e.offsetTop,bottom:e.parentElement.clientHeight-e.clientHeight-e.offsetTop,height:e.clientHeight};return t?{left:0,right:0,width:0,top:n.top,bottom:n.bottom,height:n.height}:{left:n.left,right:n.right,width:n.width,top:0,bottom:0,height:0}},YT=e=>e===void 0?void 0:`${e}px`;function XT(e){let{prefixCls:t,containerRef:n,value:r,getValueIndex:i,motionName:a,onMotionStart:o,onMotionEnd:s,direction:c,vertical:l=!1}=e,u=v.useRef(null),[d,f]=v.useState(r),p=e=>{let r=i(e),a=n.current?.querySelectorAll(`.${t}-item`)[r];return a?.offsetParent&&a},[m,h]=v.useState(null),[g,_]=v.useState(null);S(()=>{if(d!==r){let e=p(d),t=p(r),n=JT(e,l),i=JT(t,l);f(r),h(n),_(i),e&&t?o():s()}},[r]);let y=v.useMemo(()=>YT(l?m?.top??0:c===`rtl`?-m?.right:m?.left),[l,c,m]),b=v.useMemo(()=>YT(l?g?.top??0:c===`rtl`?-g?.right:g?.left),[l,c,g]);return!m||!g?null:v.createElement(Os,{visible:!0,motionName:a,motionAppear:!0,onAppearStart:()=>l?{transform:`translateY(var(--thumb-start-top))`,height:`var(--thumb-start-height)`}:{transform:`translateX(var(--thumb-start-left))`,width:`var(--thumb-start-width)`},onAppearActive:()=>l?{transform:`translateY(var(--thumb-active-top))`,height:`var(--thumb-active-height)`}:{transform:`translateX(var(--thumb-active-left))`,width:`var(--thumb-active-width)`},onVisibleChanged:()=>{h(null),_(null),s()}},({className:e,style:n},r)=>{let i={...n,"--thumb-start-left":y,"--thumb-start-width":YT(m?.width),"--thumb-active-left":b,"--thumb-active-width":YT(g?.width),"--thumb-start-top":y,"--thumb-start-height":YT(m?.height),"--thumb-active-top":b,"--thumb-active-height":YT(g?.height)},a={ref:I(u,r),style:i,className:Y(`${t}-thumb`,e)};return v.createElement(`div`,a)})}function ZT(e){if(e.title!==void 0)return e.title;if(typeof e.label!=`object`)return e.label?.toString()}function QT(e){return e.map(e=>{if(typeof e==`object`&&e){let t=ZT(e);return{...e,title:t}}return{label:e?.toString(),title:e?.toString(),value:e}})}var $T=({prefixCls:e,className:t,style:n,styles:r,classNames:i,data:a,disabled:o,checked:s,label:c,title:l,value:u,name:d,onChange:f,onFocus:p,onBlur:m,onKeyDown:h,onKeyUp:g,onMouseDown:_,itemRender:y=e=>e})=>{let b=e=>{o||f(e,u)};return y(v.createElement(`label`,{className:Y(t,{[`${e}-item-disabled`]:o}),style:n,onMouseDown:_},v.createElement(`input`,{name:d,className:`${e}-item-input`,type:`radio`,disabled:o,checked:s,onChange:b,onFocus:p,onBlur:m,onKeyDown:h,onKeyUp:g}),v.createElement(`div`,{className:Y(`${e}-item-label`,i?.label),title:l,style:r?.label},c)),{item:a})},eE=v.forwardRef((e,t)=>{let{prefixCls:n=`rc-segmented`,direction:r,vertical:i,options:a=[],disabled:o,defaultValue:s,value:c,name:l,onChange:u,className:d=``,style:f,styles:p,classNames:m,motionName:h=`thumb-motion`,itemRender:g,..._}=e,y=v.useRef(null),b=v.useMemo(()=>I(y,t),[y,t]),x=v.useMemo(()=>QT(a),[a]),[S,C]=T(s??x[0]?.value,c),[w,E]=v.useState(!1),D=(e,t)=>{C(t),u?.(t)},O=ue(_,[`children`]),[k,A]=v.useState(!1),[j,M]=v.useState(!1),N=()=>{M(!0)},P=()=>{M(!1)},F=()=>{A(!1)},L=e=>{e.key===`Tab`&&A(!0)},R=e=>{let t=x.findIndex(e=>e.value===S),n=x.length,r=x[(t+e+n)%n];r&&(C(r.value),u?.(r.value))},z=e=>{switch(e.key){case`ArrowLeft`:case`ArrowUp`:R(-1);break;case`ArrowRight`:case`ArrowDown`:R(1);break}},B=e=>{let{value:t,disabled:r}=e;return v.createElement($T,Jf({},e,{name:l,data:e,itemRender:g,key:t,prefixCls:n,className:Y(e.className,`${n}-item`,m?.item,{[`${n}-item-selected`]:t===S&&!w,[`${n}-item-focused`]:j&&k&&t===S}),style:p?.item,classNames:m,styles:p,checked:t===S,onChange:D,onFocus:N,onBlur:P,onKeyDown:z,onKeyUp:L,onMouseDown:F,disabled:!!o||!!r}))};return v.createElement(`div`,Jf({role:`radiogroup`,"aria-label":`segmented control`,tabIndex:o?void 0:0,"aria-orientation":i?`vertical`:`horizontal`,style:f},O,{className:Y(n,{[`${n}-rtl`]:r===`rtl`,[`${n}-disabled`]:o,[`${n}-vertical`]:i},d),ref:b}),v.createElement(`div`,{className:`${n}-group`},v.createElement(XT,{vertical:i,prefixCls:n,value:S,containerRef:y,motionName:`${n}-${h}`,direction:r,getValueIndex:e=>x.findIndex(t=>t.value===e),onMotionStart:()=>{E(!0)},onMotionEnd:()=>{E(!1)}}),x.map(B)))});function tE(e,t){return{[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:`not-allowed`}}}var nE=e=>({background:e.itemSelectedBg,boxShadow:e.boxShadowTertiary}),rE={overflow:`hidden`,...Ra},iE=e=>{let{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,motionDurationMid:i}=e,a=e.calc(e.controlHeight).sub(e.calc(e.trackPadding).mul(2)).equal(),o=e.calc(e.controlHeightLG).sub(e.calc(e.trackPadding).mul(2)).equal(),s=e.calc(e.controlHeightSM).sub(e.calc(e.trackPadding).mul(2)).equal();return{[t]:{...za(e),display:`inline-block`,padding:e.trackPadding,color:e.itemColor,background:e.trackBg,borderRadius:e.borderRadius,transition:`all ${i}`,...Ua(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 ${X(e.paddingXXS)}`}},[`&${t}-block`]:{display:`flex`},[`&${t}-block ${t}-item`]:{flex:1,minWidth:0},[`${t}-item`]:{position:`relative`,textAlign:`center`,cursor:`pointer`,transition:`color ${i}`,borderRadius:e.borderRadiusSM,transform:`translateZ(0)`,"&-selected":{...nE(e),color:e.itemSelectedColor},"&-focused":Ha(e),"&::after":{content:`""`,position:`absolute`,zIndex:-1,width:`100%`,height:`100%`,top:0,insetInlineStart:0,borderRadius:`inherit`,opacity:0,pointerEvents:`none`,transition:[`opacity`,`background-color`].map(e=>`${e} ${i}`).join(`, `)},[`&:not(${t}-item-selected):not(${t}-item-disabled)`]:{"&:hover, &:active":{color:e.itemHoverColor},"&:hover::after":{opacity:1,backgroundColor:e.itemHoverBg},"&:active::after":{opacity:1,backgroundColor:e.itemActiveBg}},"&-label":{minHeight:a,lineHeight:X(a),padding:`0 ${X(e.segmentedPaddingHorizontal)}`,...rE},"&-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`]:{...nE(e),position:`absolute`,insetBlockStart:0,insetInlineStart:0,width:0,height:`100%`,padding:`${X(e.paddingXXS)} 0`,borderRadius:e.borderRadiusSM,[`& ~ ${t}-item:not(${t}-item-selected):not(${t}-item-disabled)::after`]:{backgroundColor:`transparent`}},[`&${t}-lg`]:{borderRadius:e.borderRadiusLG,[`${t}-item-label`]:{minHeight:o,lineHeight:X(o),padding:`0 ${X(e.segmentedPaddingHorizontal)}`,fontSize:e.fontSizeLG},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadius}},[`&${t}-sm`]:{borderRadius:e.borderRadiusSM,[`${t}-item-label`]:{minHeight:s,lineHeight:X(s),padding:`0 ${X(e.segmentedPaddingHorizontalSM)}`},[`${t}-item, ${t}-thumb`]:{borderRadius:e.borderRadiusXS}},...tE(`&-disabled ${t}-item`,e),...tE(`${t}-item-disabled`,e),[`${t}-thumb-motion-appear-active`]:{willChange:`transform, width`,transition:[`transform`,`width`].map(e=>`${e} ${n} ${r}`).join(`, `)},[`&${t}-shape-round`]:{borderRadius:9999,[`${t}-item, ${t}-thumb`]:{borderRadius:9999}}}}},aE=Ja(`Segmented`,e=>{let{lineWidth:t,calc:n}=e;return iE(si(e,{segmentedPaddingHorizontal:n(e.controlPaddingHorizontal).sub(t).equal(),segmentedPaddingHorizontalSM:n(e.controlPaddingHorizontalSM).sub(t).equal()}))},e=>{let{colorTextLabel:t,colorText:n,colorFillSecondary:r,colorBgElevated:i,colorFill:a,lineWidthBold:o,colorBgLayout:s}=e;return{trackPadding:o,trackBg:s,itemColor:t,itemHoverColor:n,itemHoverBg:r,itemSelectedBg:i,itemActiveBg:a,itemSelectedColor:n}});function oE(e){return sc(e)&&!!e?.icon}var sE=v.forwardRef((e,t)=>{let n=dl(),{prefixCls:r,className:i,rootClassName:a,block:o,options:s=[],size:c,style:l,vertical:u,orientation:d,shape:f=`default`,name:p=n,styles:m,classNames:h,...g}=e,{getPrefixCls:_,direction:y,className:b,style:x,classNames:S,styles:C}=Ze(`segmented`),w={...e,options:s,size:c,shape:f},[T,E]=Dc([S,h],[C,m],{props:w}),D=_(`segmented`,r),[O,k]=aE(D),A=jd(c),j=v.useMemo(()=>s.map(e=>{if(oE(e)){let{icon:t,label:n,...r}=e;return{...r,label:v.createElement(v.Fragment,null,v.createElement(`span`,{className:Y(`${D}-item-icon`,T.icon),style:E.icon},t),n&&v.createElement(`span`,null,n))}}return e}),[s,D,T.icon,E.icon]),[,M]=kc(d,u),N=Y(i,a,b,T.root,{[`${D}-block`]:o,[`${D}-sm`]:A===`small`,[`${D}-lg`]:A===`large`,[`${D}-vertical`]:M,[`${D}-shape-${f}`]:f===`round`},O,k),P={...E.root,...x,...l},F=(e,{item:t})=>{if(!t.tooltip)return e;let n=sc(t.tooltip)?t.tooltip:{title:t.tooltip};return v.createElement(_x,{...n},e)};return v.createElement(eE,{...g,name:p,className:N,style:P,classNames:T,styles:E,itemRender:F,options:j,ref:t,prefixCls:D,direction:y,vertical:M})}),cE=e=>{let{componentCls:t,borderRadius:n,paddingSM:r,colorBorder:i,paddingXS:a,fontSizeLG:o,fontSizeSM:s,borderRadiusLG:c,borderRadiusSM:l,colorBgContainerDisabled:u,lineWidth:d,antCls:f}=e,[p,m]=Za(f,`space`);return{[t]:[{display:`inline-flex`,alignItems:`center`,gap:0,whiteSpace:`nowrap`,paddingInline:r,margin:0,borderWidth:d,borderStyle:`solid`,borderRadius:n,"&:hover":{zIndex:0},[`&${t}-disabled`]:{color:e.colorTextDisabled},"&-large":{fontSize:o,borderRadius:c},"&-small":{paddingInline:a,borderRadius:l,fontSize:s},"&-compact-last-item":{borderEndStartRadius:0,borderStartStartRadius:0},"&-compact-first-item":{borderEndEndRadius:0,borderStartEndRadius:0},"&-compact-item:not(:first-child):not(:last-child)":{borderRadius:0},"&-compact-item:not(:last-child)":{borderInlineEndWidth:0},"&-compact-item:not(:first-child)":{borderInlineStartWidth:0}},{[p(`addon-border-color`)]:i,[p(`addon-background`)]:u,[p(`addon-border-color-outlined`)]:i,[p(`addon-background-filled`)]:u,borderColor:m(`addon-border-color`),background:m(`addon-background`),"&-variant-outlined":{[p(`addon-border-color`)]:m(`addon-border-color-outlined`)},"&-variant-filled":{[p(`addon-border-color`)]:`transparent`,[p(`addon-background`)]:m(`addon-background-filled`),[`&${t}-disabled`]:{[p(`addon-border-color`)]:i,[p(`addon-background`)]:u}},"&-variant-borderless":{border:`none`,background:`transparent`},"&-variant-underlined":{border:`none`,background:`transparent`}},{"&-status-error":{[p(`addon-border-color-outlined`)]:e.colorError,[p(`addon-background-filled`)]:e.colorErrorBg,color:e.colorError},"&-status-warning":{[p(`addon-border-color-outlined`)]:e.colorWarning,[p(`addon-background-filled`)]:e.colorWarningBg,color:e.colorWarning}}]}},lE=Ja([`Space`,`Addon`],e=>[cE(e),up(e,{focus:!1})]),uE=v.forwardRef((e,t)=>{let{className:n,children:r,style:i,prefixCls:a,variant:o=`outlined`,disabled:s,status:c,...l}=e,{getPrefixCls:u,direction:d}=v.useContext(Je),f=u(`space-addon`,a),[p,m]=lE(f),{compactItemClassnames:h,compactSize:g}=Pd(f,d),_=Yy(f,c),y=Y(f,p,h,m,`${f}-variant-${o}`,_,{[`${f}-${g}`]:g,[`${f}-disabled`]:s},n);return v.createElement(`div`,{ref:t,className:y,style:i,...l},r)});function dE(e){return!!(e.addonBefore||e.addonAfter)}function fE(e){return!!(e.prefix||e.suffix||e.allowClear)}function pE(e,t,n){let r=t.cloneNode(!0),i=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=n,typeof t.selectionStart==`number`&&typeof t.selectionEnd==`number`&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),r.setSelectionRange=(...e)=>{t.setSelectionRange(...e)},i}function mE(e,t,n,r){if(!n)return;let i=t;if(t.type===`click`){i=pE(t,e,``),n(i);return}if(e.type!==`file`&&r!==void 0){i=pE(t,e,r),n(i);return}n(i)}function hE(){return hE=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},hE.apply(this,arguments)}var gE=v.forwardRef((e,t)=>{let{inputElement:n,children:r,prefixCls:i,prefix:a,suffix:o,addonBefore:s,addonAfter:c,className:l,style:u,disabled:d,readOnly:f,focused:p,triggerFocus:m,allowClear:h,value:g,handleReset:_,hidden:y,classes:b,classNames:x,dataAttrs:S,styles:C,components:w,onClear:T}=e,E=r??n,D=w?.affixWrapper||`span`,O=w?.groupWrapper||`span`,k=w?.wrapper||`span`,A=w?.groupAddon||`span`,j=(0,v.useRef)(null),M=e=>{j.current?.contains(e.target)&&m?.()},N=fE(e),P=(0,v.cloneElement)(E,{value:g,className:Y(E.props?.className,!N&&x?.variant)||null}),F=(0,v.useRef)(null);if(v.useImperativeHandle(t,()=>({nativeElement:F.current||j.current})),N){let e=null;if(h){let t=!d&&!f&&g,n=`${i}-clear-icon`,r=typeof h==`object`&&h?.clearIcon?h.clearIcon:`✖`;e=v.createElement(`button`,{type:`button`,tabIndex:-1,onClick:e=>{_?.(e),T?.()},onMouseDown:e=>e.preventDefault(),className:Y(n,{[`${n}-hidden`]:!t,[`${n}-has-suffix`]:!!o})},r)}let t=`${i}-affix-wrapper`,n=Y(t,{[`${i}-disabled`]:d,[`${t}-disabled`]:d,[`${t}-focused`]:p,[`${t}-readonly`]:f,[`${t}-input-with-clear-btn`]:o&&h&&g},b?.affixWrapper,x?.affixWrapper,x?.variant),r=(o||h)&&v.createElement(`span`,{className:Y(`${i}-suffix`,x?.suffix),style:C?.suffix},e,o);P=v.createElement(D,hE({className:n,style:C?.affixWrapper,onClick:M},S?.affixWrapper,{ref:j}),a&&v.createElement(`span`,{className:Y(`${i}-prefix`,x?.prefix),style:C?.prefix},a),P,r)}if(dE(e)){let e=`${i}-group`,t=`${e}-addon`,n=`${e}-wrapper`,r=Y(`${i}-wrapper`,e,b?.wrapper,x?.wrapper),a=Y(n,{[`${n}-disabled`]:d},b?.group,x?.groupWrapper);P=v.createElement(O,{className:a,ref:F},v.createElement(k,{className:r},s&&v.createElement(A,{className:t},s),P,c&&v.createElement(A,{className:t},c)))}return v.cloneElement(P,{className:Y(P.props?.className,l)||null,style:{...P.props?.style,...u},hidden:y})});function _E(e,t){return v.useMemo(()=>{let n={};t&&(n.show=typeof t==`object`&&t.formatter?t.formatter:!!t),n={...n,...e};let{show:r,...i}=n;return{...i,show:!!r,showFormatter:typeof r==`function`?r:void 0,strategy:i.strategy||(e=>e.length)}},[e,t])}function vE(){return vE=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},vE.apply(this,arguments)}var yE=(0,v.forwardRef)((e,t)=>{let{autoComplete:n,onChange:r,onFocus:i,onBlur:a,onPressEnter:o,onKeyDown:s,onKeyUp:c,prefixCls:l=`rc-input`,disabled:u,htmlSize:d,className:f,maxLength:p,suffix:m,showCount:h,count:g,type:_=`text`,classes:y,classNames:b,styles:x,onCompositionStart:S,onCompositionEnd:C,...w}=e,[E,D]=(0,v.useState)(!1),O=(0,v.useRef)(!1),k=(0,v.useRef)(!1),A=(0,v.useRef)(null),j=(0,v.useRef)(null),M=e=>{A.current&&Ap(A.current,e)},[N,P]=T(e.defaultValue,e.value),F=N==null?``:String(N),[I,L]=(0,v.useState)(null),R=_E(g,h),z=R.max||p,B=R.strategy(F),V=!!z&&B>z;(0,v.useImperativeHandle)(t,()=>({focus:M,blur:()=>{A.current?.blur()},setSelectionRange:(e,t,n)=>{A.current?.setSelectionRange(e,t,n)},select:()=>{A.current?.select()},input:A.current,nativeElement:j.current?.nativeElement||A.current})),(0,v.useEffect)(()=>{k.current&&=!1,D(e=>e&&u?!1:e)},[u]);let H=(e,t,n)=>{let i=t;if(!O.current&&R.exceedFormatter&&R.max&&R.strategy(t)>R.max)i=R.exceedFormatter(t,{max:R.max}),t!==i&&L([A.current?.selectionStart||0,A.current?.selectionEnd||0]);else if(n.source===`compositionEnd`)return;P(i),A.current&&mE(A.current,e,r,i)};(0,v.useEffect)(()=>{I&&A.current?.setSelectionRange(...I)},[I]);let U=e=>{H(e,e.target.value,{source:`change`})},W=e=>{O.current=!1,H(e,e.currentTarget.value,{source:`compositionEnd`}),C?.(e)},ee=e=>{o&&e.key===`Enter`&&!k.current&&!e.nativeEvent.isComposing&&(k.current=!0,o(e)),s?.(e)},te=e=>{e.key===`Enter`&&(k.current=!1),c?.(e)},G=e=>{D(!0),i?.(e)},ne=e=>{k.current&&=!1,D(!1),a?.(e)},re=e=>{P(``),M(),A.current&&mE(A.current,e,r)},ie=V&&`${l}-out-of-range`;return v.createElement(gE,vE({},w,{prefixCls:l,className:Y(f,ie),handleReset:re,value:F,focused:E,triggerFocus:M,suffix:(()=>{let e=Number(z)>0;if(m||R.show){let t=R.showFormatter?R.showFormatter({value:F,count:B,maxLength:z}):`${B}${e?` / ${z}`:``}`;return v.createElement(v.Fragment,null,R.show&&v.createElement(`span`,{className:Y(`${l}-show-count-suffix`,{[`${l}-show-count-has-suffix`]:!!m},b?.count),style:{...x?.count}},t),m)}return null})(),disabled:u,classes:y,classNames:b,styles:x,ref:j}),(()=>{let t=ue(e,[`prefixCls`,`onPressEnter`,`addonBefore`,`addonAfter`,`prefix`,`suffix`,`allowClear`,`defaultValue`,`showCount`,`count`,`classes`,`htmlSize`,`styles`,`classNames`,`onClear`]);return v.createElement(`input`,vE({autoComplete:n},t,{onChange:U,onFocus:G,onBlur:ne,onKeyDown:ee,onKeyUp:te,className:Y(l,{[`${l}-disabled`]:u},b?.input),style:x?.input,ref:A,size:d,type:_,onCompositionStart:e=>{O.current=!0,S?.(e)},onCompositionEnd:W}))})())}),bE=e=>{let t;return sc(e)&&e?.clearIcon?t=e:e&&(t={clearIcon:v.createElement(Do,null)}),t};function xE(e,t){let n=(0,v.useRef)([]),r=()=>{n.current.push(setTimeout(()=>{e.current?.input&&e.current?.input.getAttribute(`type`)===`password`&&e.current?.input.hasAttribute(`value`)&&e.current?.input.removeAttribute(`value`)}))};return(0,v.useEffect)(()=>(t&&r(),()=>n.current.forEach(e=>{e&&clearTimeout(e)})),[]),r}function SE(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var CE=(0,v.forwardRef)((e,t)=>{let{prefixCls:n,bordered:r=!0,status:i,size:a,disabled:o,onBlur:s,onFocus:c,suffix:l,allowClear:u,addonAfter:d,addonBefore:f,className:p,style:m,styles:h,rootClassName:g,onChange:_,classNames:y,variant:b,...x}=e,{getPrefixCls:S,direction:C,allowClear:w,autoComplete:T,className:E,style:D,classNames:O,styles:k}=Ze(`input`),A=S(`input`,n),j=(0,v.useRef)(null),M=Yc(A),[N,P]=bw(A,g);xw(A,M);let{compactSize:F,compactItemClassnames:L}=Pd(A,C),R=jd(e=>a??F??e),z=v.useContext(du),B=o??z,V={...e,size:R,disabled:B},[H,U]=Dc([O,y],[k,h],{props:V}),{status:W,hasFeedback:ee,feedbackIcon:te}=(0,v.useContext)(zh),G=Xy(W,i);(0,v.useRef)(SE(e)||!!ee);let ne=xE(j,!0),re=e=>{ne(),s?.(e)},ie=e=>{ne(),c?.(e)},K=e=>{ne(),_?.(e)},q=(ee||l)&&v.createElement(v.Fragment,null,l,ee&&te),ae=bE(u??w),[oe,se]=ab(`input`,b,r);return v.createElement(yE,{ref:I(t,j),prefixCls:A,autoComplete:T,...x,disabled:B,onBlur:re,onFocus:ie,style:{...U.root,...D,...m},styles:U,suffix:q,allowClear:ae,className:Y(p,g,P,M,L,E,H.root),onChange:K,addonBefore:f&&v.createElement(Hh,{form:!0,space:!0},f),addonAfter:d&&v.createElement(Hh,{form:!0,space:!0},d),classNames:{...H,input:Y({[`${A}-sm`]:R===`small`,[`${A}-lg`]:R===`large`,[`${A}-rtl`]:C===`rtl`},H.input,N),variant:Y({[`${A}-${oe}`]:se},Yy(A,G)),affixWrapper:Y({[`${A}-affix-wrapper-sm`]:R===`small`,[`${A}-affix-wrapper-lg`]:R===`large`,[`${A}-affix-wrapper-rtl`]:C===`rtl`},N),wrapper:Y({[`${A}-group-rtl`]:C===`rtl`},N),groupWrapper:Y({[`${A}-group-wrapper-sm`]:R===`small`,[`${A}-group-wrapper-lg`]:R===`large`,[`${A}-group-wrapper-rtl`]:C===`rtl`,[`${A}-group-wrapper-${oe}`]:se},Yy(`${A}-group-wrapper`,G,ee),N)}})});function wE(e){return[`small`,`middle`,`medium`,`large`].includes(e)}function TE(e){return e?ac(e):!1}var EE=v.createContext({latestIndex:0}),DE=EE.Provider,OE=e=>{let{className:t,prefix:n,index:r,children:i,separator:a,style:o,classNames:s,styles:c}=e,{latestIndex:l}=v.useContext(EE);return ic(i)?v.createElement(v.Fragment,null,v.createElement(`div`,{className:t,style:o},i),r<l&&a&&v.createElement(`span`,{className:Y(`${n}-item-separator`,s?.separator),style:c?.separator},a)):null},kE=e=>{let{componentCls:t,antCls:n}=e;return{[t]:{display:`inline-flex`,"&-rtl":{direction:`rtl`},"&-vertical":{flexDirection:`column`},"&-align":{flexDirection:`column`,"&-center":{alignItems:`center`},"&-start":{alignItems:`flex-start`},"&-end":{alignItems:`flex-end`},"&-baseline":{alignItems:`baseline`}},[`${t}-item:empty`]:{display:`none`},[`${t}-item > ${n}-badge-not-a-wrapper:only-child`]:{display:`block`}}}},AE=e=>{let{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-medium, &-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-medium, &-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}},jE=Ja(`Space`,e=>{let t=si(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[kE(t),AE(t)]},()=>({}),{resetStyle:!1}),ME=v.forwardRef((e,t)=>{let{getPrefixCls:n,direction:r,size:i,className:a,style:o,classNames:s,styles:c}=Ze(`space`),{size:l=i??`small`,align:u,className:d,rootClassName:f,children:p,direction:m,orientation:h,prefixCls:g,split:_,separator:y,style:b,vertical:x,wrap:S=!1,classNames:C,styles:w,...T}=e,[E,D]=Array.isArray(l)?l:[l,l],O=wE(D),k=wE(E),A=TE(D),j=TE(E),M=de(p,{keepEmpty:!0}),[N,P]=kc(h,x,m),F=u===void 0&&!P?`center`:u,I=y??_,L=n(`space`,g),[R,z]=jE(L),B={...e,size:l,orientation:N,align:F},[V,H]=Dc([s,C],[c,w],{props:B}),U=Y(L,a,R,`${L}-${N}`,{[`${L}-rtl`]:r===`rtl`,[`${L}-align-${F}`]:F,[`${L}-gap-row-${D}`]:O,[`${L}-gap-col-${E}`]:k},d,f,z,V.root),W=Y(`${L}-item`,V.item),ee=M.map((e,t)=>{let n=e?.key||`${W}-${t}`;return v.createElement(OE,{prefix:L,classNames:V,styles:H,className:W,key:n,index:t,separator:I,style:H.item},e)}),te=v.useMemo(()=>({latestIndex:M.reduce((e,t,n)=>ic(t)?n:e,0)}),[M]);if(M.length===0)return null;let G={};return S&&(G.flexWrap=`wrap`),!k&&j&&(G.columnGap=E),!O&&A&&(G.rowGap=D),v.createElement(`div`,{ref:t,className:U,style:{...G,...H.root,...o,...b},...T},v.createElement(DE,{value:te},ee))});ME.Compact=Ld,ME.Addon=uE;var NE=e=>{let{getPopupContainer:t,getPrefixCls:n,direction:r}=v.useContext(Je),{prefixCls:i,type:a=`default`,danger:o,disabled:s,loading:c,onClick:l,htmlType:u,children:d,className:f,menu:p,arrow:m,autoFocus:h,trigger:g,align:_,open:y,onOpenChange:b,placement:x,getPopupContainer:S,href:C,icon:w=v.createElement(vC,null),title:T,buttonsRender:E=e=>e,mouseEnterDelay:D,mouseLeaveDelay:O,overlayClassName:k,overlayStyle:A,destroyOnHidden:j,destroyPopupOnHide:M,dropdownRender:N,popupRender:P,...F}=e,I=n(`dropdown`,i),L=`${I}-button`,R={menu:p,arrow:m,autoFocus:h,align:_,disabled:s,trigger:s?[]:g,onOpenChange:b,getPopupContainer:S||t,mouseEnterDelay:D,mouseLeaveDelay:O,classNames:{root:k},styles:{root:A},destroyOnHidden:j,popupRender:P||N},{compactSize:z,compactItemClassnames:B}=Pd(I,r),V=Y(L,B,f);`destroyPopupOnHide`in e&&(R.destroyPopupOnHide=M),`open`in e&&(R.open=y),`placement`in e?R.placement=x:R.placement=r===`rtl`?`bottomLeft`:`bottomRight`;let[H,U]=E([v.createElement(GC,{type:a,danger:o,disabled:s,loading:c,onClick:l,htmlType:u,href:C,title:T},d),v.createElement(GC,{type:a,danger:o,icon:w})]);return v.createElement(ME.Compact,{className:V,size:z,block:!0,...F},H,v.createElement(UC,{...R},U))};NE.__ANT_BUTTON=!0;var PE=UC;PE.Button=NE;var FE=[`wrap`,`nowrap`,`wrap-reverse`],IE=[`flex-start`,`flex-end`,`start`,`end`,`center`,`space-between`,`space-around`,`space-evenly`,`stretch`,`normal`,`left`,`right`],LE=[`center`,`start`,`end`,`flex-start`,`flex-end`,`self-start`,`self-end`,`baseline`,`normal`,`stretch`],RE=(e,t)=>{let n=t.wrap===!0?`wrap`:t.wrap;return{[`${e}-wrap-${n}`]:n&&FE.includes(n)}},zE=(e,t)=>{let n={};return LE.forEach(r=>{n[`${e}-align-${r}`]=t.align===r}),n[`${e}-align-stretch`]=!t.align&&!!t.vertical,n},BE=(e,t)=>{let n={};return IE.forEach(r=>{n[`${e}-justify-${r}`]=t.justify===r}),n},VE=(e,t)=>Y({...RE(e,t),...zE(e,t),...BE(e,t)}),HE=e=>{let{componentCls:t}=e;return{[t]:{display:`flex`,margin:0,padding:0,"&-vertical":{flexDirection:`column`},"&-rtl":{direction:`rtl`},"&:empty":{display:`none`}}}},UE=e=>{let{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-medium, &-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},WE=e=>{let{componentCls:t}=e,n={};return FE.forEach(e=>{n[`${t}-wrap-${e}`]={flexWrap:e}}),n},GE=e=>{let{componentCls:t}=e,n={};return LE.forEach(e=>{n[`${t}-align-${e}`]={alignItems:e}}),n},KE=e=>{let{componentCls:t}=e,n={};return IE.forEach(e=>{n[`${t}-justify-${e}`]={justifyContent:e}}),n},qE=Ja(`Flex`,e=>{let{paddingXS:t,padding:n,paddingLG:r}=e,i=si(e,{flexGapSM:t,flexGap:n,flexGapLG:r});return[HE(i),UE(i),WE(i),GE(i),KE(i)]},()=>({}),{resetStyle:!1}),JE=v.forwardRef((e,t)=>{let{prefixCls:n,rootClassName:r,className:i,style:a,flex:o,gap:s,vertical:c,orientation:l,component:u=`div`,children:d,...f}=e,{flex:p,direction:m,getPrefixCls:h}=v.useContext(Je),g=h(`flex`,n),[_,y]=qE(g),[,b]=kc(l,c??p?.vertical),x=Y(i,r,p?.className,g,_,y,VE(g,{...e,vertical:b}),{[`${g}-rtl`]:m===`rtl`,[`${g}-gap-${s}`]:wE(s),[`${g}-vertical`]:b}),S={...p?.style,...a};return ic(o)&&(S.flex=o),ic(s)&&!wE(s)&&(S.gap=s),v.createElement(u,{ref:t,className:x,style:S,...ue(f,[`justify`,`wrap`,`align`])},d)}),YE=e=>{let{getPrefixCls:t,direction:n}=(0,v.useContext)(Je),{prefixCls:r,className:i}=e,a=t(`input-group`,r),[o,s]=xw(t(`input`)),c=Y(a,s,{[`${a}-lg`]:e.size===`large`,[`${a}-sm`]:e.size===`small`,[`${a}-compact`]:e.compact,[`${a}-rtl`]:n===`rtl`},o,i),l=(0,v.useContext)(zh),u=(0,v.useMemo)(()=>({...l,isFormItemInput:!1}),[l]);return v.createElement(zh.Provider,{value:u},v.createElement(ME.Compact,{className:c,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},e.children))},XE=e=>{let{componentCls:t,paddingXS:n}=e;return{[t]:{display:`inline-flex`,alignItems:`center`,flexWrap:`nowrap`,columnGap:n,[`${t}-input-wrapper`]:{position:`relative`,[`${t}-mask-icon`]:{position:`absolute`,zIndex:`1`,top:`50%`,right:`50%`,transform:`translate(50%, -50%)`,pointerEvents:`none`},[`${t}-mask-input`]:{color:`transparent`,caretColor:e.colorText,"&::selection":{color:`transparent`}},[`${t}-mask-input[type=number]::-webkit-inner-spin-button`]:{"-webkit-appearance":`none`,margin:0},[`${t}-mask-input[type=number]`]:{"-moz-appearance":`textfield`}},"&-rtl":{direction:`rtl`},[`${t}-input`]:{textAlign:`center`,paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}},ZE=Ja([`Input`,`OTP`],e=>XE(si(e,KC(e))),qC),QE=v.forwardRef((e,t)=>{let{className:n,value:r,onChange:i,onActiveChange:a,index:o,mask:s,onFocus:c,...l}=e,{getPrefixCls:u}=v.useContext(Je),d=u(`otp`),f=typeof s==`string`?s:r,p=v.useRef(null);v.useImperativeHandle(t,()=>p.current);let m=e=>{i(o,e.target.value)},h=()=>{Ge(()=>{let e=p.current?.input;document.activeElement===e&&e&&e.select()})},g=e=>{c?.(e),h()},_=e=>{let{key:t,ctrlKey:n,metaKey:i}=e;t===`ArrowLeft`?a(o-1):t===`ArrowRight`?a(o+1):t===`z`&&(n||i)?e.preventDefault():t===`Backspace`&&!r&&a(o-1),h()};return v.createElement(`span`,{className:`${d}-input-wrapper`,role:`presentation`},s&&r!==``&&r!==void 0&&v.createElement(`span`,{className:`${d}-mask-icon`,"aria-hidden":`true`},f),v.createElement(CE,{"aria-label":`OTP Input ${o+1}`,type:s===!0?`password`:`text`,...l,ref:p,value:r,onInput:m,onFocus:g,onKeyDown:_,onMouseDown:h,onMouseUp:h,className:Y(n,{[`${d}-mask-input`]:s})}))});function $E(e){return(e||``).split(``)}var eD=e=>{let{index:t,prefixCls:n,separator:r,className:i,style:a}=e,o=typeof r==`function`?r(t):r;return o?v.createElement(`span`,{className:Y(`${n}-separator`,i),style:a},o):null},tD=v.forwardRef((e,t)=>{let{prefixCls:n,length:r=6,size:i,defaultValue:a,value:o,onChange:s,formatter:c,separator:l,variant:u,disabled:d,status:f,autoFocus:p,mask:m,type:h,autoComplete:g,onInput:_,onFocus:b,inputMode:x,classNames:S,styles:C,className:w,style:T,...E}=e,{classNames:D,styles:O,getPrefixCls:k,direction:A,style:j,className:M}=Ze(`otp`),N=k(`otp`,n),P={...e,length:r},[F,I]=Dc([D,S],[O,C],{props:P}),L=Ns(E,{aria:!0,data:!0,attr:!0}),[R,z]=ZE(N),B=jd(e=>i??e),V=v.useContext(zh),H=Xy(V.status,f),U=v.useMemo(()=>({...V,status:H,hasFeedback:!1,feedbackIcon:null}),[V,H]),W=v.useRef(null),ee=v.useRef({});v.useImperativeHandle(t,()=>({focus:()=>{ee.current[0]?.focus()},blur:()=>{for(let e=0;e<r;e+=1)ee.current[e]?.blur()},nativeElement:W.current}));let te=e=>c?c(e):e,[G,ne]=v.useState(()=>$E(te(a||``)));v.useEffect(()=>{o!==void 0&&ne($E(o))},[o]);let re=y(e=>{ne(e),_&&_(e),s&&e.length===r&&e.every(e=>e)&&e.some((e,t)=>G[t]!==e)&&s(e.join(``))}),ie=y((e,t)=>{let n=ze(G);for(let t=0;t<e;t+=1)n[t]||(n[t]=``);t.length<=1?n[e]=t:n=n.slice(0,e).concat($E(t)),n=n.slice(0,r);for(let e=n.length-1;e>=0&&!n[e];--e)n.pop();return n=$E(te(n.map(e=>e||` `).join(``))).map((e,t)=>e===` `&&!n[t]?n[t]:e),n}),K=(e,t)=>{let n=ie(e,t),i=Math.min(e+t.length,r-1);i!==e&&n[e]!==void 0&&ee.current[i]?.focus(),re(n)},q=e=>{ee.current[e]?.focus()},ae=(e,t)=>{for(let e=0;e<t;e+=1)if(!ee.current[e]?.input?.value){ee.current[e]?.focus();break}b?.(e)},oe={variant:u,disabled:d,status:H,mask:m,type:h,inputMode:x,autoComplete:g};return v.createElement(`div`,{...L,ref:W,className:Y(w,N,{[`${N}-sm`]:B===`small`,[`${N}-lg`]:B===`large`,[`${N}-rtl`]:A===`rtl`},z,R,M,F.root),style:{...I.root,...j,...T},role:`group`},v.createElement(zh.Provider,{value:U},Array.from({length:r}).map((e,t)=>{let n=`otp-${t}`,i=G[t]||``;return v.createElement(v.Fragment,{key:n},v.createElement(QE,{ref:e=>{ee.current[t]=e},index:t,size:B,htmlSize:1,className:Y(F.input,`${N}-input`),style:I.input,onChange:K,value:i,onActiveChange:q,autoFocus:t===0&&p,onFocus:e=>ae(e,t),...oe}),t<r-1&&v.createElement(eD,{separator:l,index:t,prefixCls:N,className:Y(F.separator),style:I.separator}))})))}),nD={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 rD(){return rD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rD.apply(this,arguments)}var iD=v.forwardRef((e,t)=>v.createElement(So,rD({},e,{ref:t,icon:nD}))),aD={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 oD(){return oD=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},oD.apply(this,arguments)}var sD=v.forwardRef((e,t)=>v.createElement(So,oD({},e,{ref:t,icon:aD}))),cD=e=>e?v.createElement(sD,null):v.createElement(iD,null),lD={click:`onClick`,hover:`onMouseOver`},uD=v.forwardRef((e,t)=>{let{disabled:n,action:r=`click`,visibilityToggle:i=!0,iconRender:a=cD,suffix:o}=e,s=v.useContext(du),c=n??s,l=sc(i)&&i.visible!==void 0,[u,d]=(0,v.useState)(()=>l?i.visible:!1),f=(0,v.useRef)(null);v.useEffect(()=>{l&&d(i.visible)},[l,i]);let p=xE(f),m=()=>{if(c)return;u&&p();let e=!u;d(e),sc(i)&&i.onVisibleChange?.(e)},h=e=>{let t=lD[r]||``,n=a(u),i={[t]:m,className:`${e}-icon`,key:`passwordIcon`,onMouseDown:e=>{e.preventDefault()},onMouseUp:e=>{e.preventDefault()}};return v.cloneElement(v.isValidElement(n)?n:v.createElement(`span`,null,n),i)},{className:g,prefixCls:_,inputPrefixCls:y,size:b,...x}=e,{getPrefixCls:S}=v.useContext(Je),C=S(`input`,y),w=S(`input-password`,_),T=i&&h(w),E=Y(w,g,{[`${w}-${b}`]:!!b}),D={...ue(x,[`suffix`,`iconRender`,`visibilityToggle`]),type:u?`text`:`password`,className:E,prefixCls:C,suffix:v.createElement(v.Fragment,null,T,o)};return b&&(D.size=b),v.createElement(CE,{ref:I(t,f),...D})}),dD=Ja([`Input`,`Search`],e=>{let{componentCls:t}=e,n=`${t}-btn`;return{[t]:{width:`100%`,[n]:{"&-filled":{background:e.colorFillTertiary,"&:not(:disabled)":{"&:hover":{background:e.colorFillSecondary},"&:active":{background:e.colorFill}}}}}}}),fD=v.forwardRef((e,t)=>{let{prefixCls:n,inputPrefixCls:r,className:i,size:a,style:o,enterButton:s=!1,addonAfter:c,loading:l,disabled:u,onSearch:d,onChange:f,onCompositionStart:p,onCompositionEnd:m,variant:h,onPressEnter:g,classNames:_,styles:y,hidden:b,...x}=e,{direction:S,getPrefixCls:C,classNames:w,styles:T}=Ze(`inputSearch`),E={...e,enterButton:s},[D,O]=Dc([w,_],[T,y],{props:E},{button:{_default:`root`}}),k=v.useRef(!1),A=C(`input-search`,n),j=C(`input`,r),[M,N]=dD(A),{compactSize:P}=Pd(A,S),F=jd(e=>a??P??e),L=v.useRef(null),R=e=>{e?.target&&e.type===`click`&&d&&d(e.target.value,e,{source:`clear`}),f?.(e)},z=e=>{document.activeElement===L.current?.input&&e.preventDefault()},B=e=>{d&&d(L.current?.input?.value,e,{source:`input`})},V=e=>{k.current||l||(g?.(e),B(e))},H=typeof s==`boolean`?v.createElement(Ob,null):null,U=`${A}-btn`,W=Y(U,{[`${U}-${h}`]:h}),ee,te=s||{},G=te.type&&te.type.__ANT_BUTTON===!0;ee=G||te.type===`button`?ou(te,{onMouseDown:z,onClick:e=>{te?.props?.onClick?.(e),B(e)},key:`enterButton`,...G?{className:W,size:F}:{}}):v.createElement(vp,{classNames:D.button,styles:O.button,className:W,color:s?`primary`:`default`,size:F,disabled:u,key:`enterButton`,onMouseDown:z,onClick:B,loading:l,icon:H,variant:h===`borderless`||h===`filled`||h===`underlined`?`text`:s?`solid`:void 0},s),c&&(ee=[ee,ou(c,{key:`addonAfter`})]);let ne=Y(A,N,{[`${A}-rtl`]:S===`rtl`,[`${A}-${F}`]:!!F,[`${A}-with-button`]:!!s},i,M,D.root),re=e=>{k.current=!0,p?.(e)},ie=e=>{k.current=!1,m?.(e)},K=Ns(x,{data:!0}),q=ue({...x,classNames:ue(D,[`button`,`root`]),styles:ue(O,[`button`,`root`]),prefixCls:j,type:`search`,size:F,variant:h,onPressEnter:V,onCompositionStart:re,onCompositionEnd:ie,onChange:R,disabled:u},Object.keys(K));return v.createElement(Ld,{className:ne,style:{...o,...O.root},...K,hidden:b},v.createElement(CE,{ref:I(L,t),...q}),ee)}),pD=`
226
226
  min-height:0 !important;
227
227
  max-height:none !important;
228
228
  height:0 !important;
@@ -233,10 +233,10 @@ html body {
233
233
  top:0 !important;
234
234
  right:0 !important;
235
235
  pointer-events: none !important;
236
- `,pD=[`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`],mD={},hD;function gD(e,t=!1){let n=e.getAttribute(`id`)||e.getAttribute(`data-reactid`)||e.getAttribute(`name`);if(t&&mD[n])return mD[n];let r=window.getComputedStyle(e),i=r.getPropertyValue(`box-sizing`)||r.getPropertyValue(`-moz-box-sizing`)||r.getPropertyValue(`-webkit-box-sizing`),a=parseFloat(r.getPropertyValue(`padding-bottom`))+parseFloat(r.getPropertyValue(`padding-top`)),o=parseFloat(r.getPropertyValue(`border-bottom-width`))+parseFloat(r.getPropertyValue(`border-top-width`)),s={sizingStyle:pD.map(e=>`${e}:${r.getPropertyValue(e)}`).join(`;`),paddingSize:a,borderSize:o,boxSizing:i};return t&&n&&(mD[n]=s),s}function _D(e,t=!1,n=null,r=null){hD||(hD=document.createElement(`textarea`),hD.setAttribute(`tab-index`,`-1`),hD.setAttribute(`aria-hidden`,`true`),hD.setAttribute(`name`,`hiddenTextarea`),document.body.appendChild(hD)),e.getAttribute(`wrap`)?hD.setAttribute(`wrap`,e.getAttribute(`wrap`)):hD.removeAttribute(`wrap`);let{paddingSize:i,borderSize:a,boxSizing:o,sizingStyle:s}=gD(e,t);hD.setAttribute(`style`,`${s};${fD}`),hD.value=e.value||e.placeholder||``;let c,l,u,d=hD.scrollHeight;if(o===`border-box`?d+=a:o===`content-box`&&(d-=i),n!==null||r!==null){hD.value=` `;let e=hD.scrollHeight-i;n!==null&&(c=e*n,o===`border-box`&&(c=c+i+a),d=Math.max(c,d)),r!==null&&(l=e*r,o===`border-box`&&(l=l+i+a),u=d>l?``:`hidden`,d=Math.min(l,d))}let f={height:d,overflowY:u,resize:`none`};return c&&(f.minHeight=c),l&&(f.maxHeight=l),f}function vD(){return vD=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},vD.apply(this,arguments)}var yD=0,bD=1,xD=2,SD=v.forwardRef((e,t)=>{let{prefixCls:n,defaultValue:r,value:i,autoSize:a,onResize:o,className:s,style:c,disabled:l,onChange:u,onInternalAutoSize:d,...f}=e,[p,m]=T(r,i),h=p??``,g=e=>{m(e.target.value),u?.(e)},_=v.useRef();v.useImperativeHandle(t,()=>({textArea:_.current}));let[y,b]=v.useMemo(()=>a&&typeof a==`object`?[a.minRows,a.maxRows]:[],[a]),x=!!a,[C,w]=v.useState(xD),[E,D]=v.useState(),O=()=>{w(yD)};S(()=>{x&&O()},[i,y,b,x]),S(()=>{if(C===yD)w(bD);else if(C===bD){let e=_D(_.current,!1,y,b);w(xD),D(e)}},[C]);let k=v.useRef(),A=()=>{Ge.cancel(k.current)},j=e=>{C===xD&&(o?.(e),a&&(A(),k.current=Ge(()=>{O()})))};v.useEffect(()=>A,[]);let M=x?E:null,N={...c,...M};return(C===yD||C===bD)&&(N.overflowY=`hidden`,N.overflowX=`hidden`),v.createElement(Me,{onResize:j,disabled:!(a||o)},v.createElement(`textarea`,vD({},f,{ref:_,style:N,className:Y(n,s,{[`${n}-disabled`]:l}),disabled:l,value:h,onChange:g})))});function CD(){return CD=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},CD.apply(this,arguments)}var wD=v.forwardRef(({defaultValue:e,value:t,onFocus:n,onBlur:r,onChange:i,allowClear:a,maxLength:o,onCompositionStart:s,onCompositionEnd:c,suffix:l,prefixCls:u=`rc-textarea`,showCount:d,count:f,className:p,style:m,disabled:h,hidden:g,classNames:_,styles:y,onResize:b,onClear:x,onPressEnter:S,readOnly:C,autoSize:w,onKeyDown:E,...D},O)=>{let[k,A]=T(e,t),j=k==null?``:String(k),[M,N]=v.useState(!1),P=v.useRef(!1),[F,I]=v.useState(null),L=(0,v.useRef)(null),R=(0,v.useRef)(null),z=()=>R.current?.textArea,B=()=>{z().focus()};(0,v.useImperativeHandle)(O,()=>({resizableTextArea:R.current,focus:B,blur:()=>{z().blur()},nativeElement:L.current?.nativeElement||z()})),(0,v.useEffect)(()=>{N(e=>!h&&e)},[h]);let[V,H]=v.useState(null);v.useEffect(()=>{V&&z().setSelectionRange(...V)},[V]);let U=gE(f,d),W=U.max??o,ee=Number(W)>0,te=U.strategy(j),G=!!W&&te>W,ne=(e,t)=>{let n=t;!P.current&&U.exceedFormatter&&U.max&&U.strategy(t)>U.max&&(n=U.exceedFormatter(t,{max:U.max}),t!==n&&H([z().selectionStart||0,z().selectionEnd||0])),A(n),pE(e.currentTarget,e,i,n)},re=e=>{P.current=!0,s?.(e)},ie=e=>{P.current=!1,ne(e,e.currentTarget.value),c?.(e)},K=e=>{ne(e,e.target.value)},q=e=>{e.key===`Enter`&&S&&!e.nativeEvent.isComposing&&S(e),E?.(e)},ae=e=>{N(!0),n?.(e)},oe=e=>{N(!1),r?.(e)},se=e=>{A(``),B(),pE(z(),e,i)},J=l,ce;U.show&&(ce=U.showFormatter?U.showFormatter({value:j,count:te,maxLength:W}):`${te}${ee?` / ${W}`:``}`,J=v.createElement(v.Fragment,null,J,v.createElement(`span`,{className:Y(`${u}-data-count`,_?.count),style:y?.count},ce)));let le=e=>{b?.(e),z()?.style.height&&I(!0)},ue=!w&&!d&&!a;return v.createElement(hE,{ref:L,value:j,allowClear:a,handleReset:se,suffix:J,prefixCls:u,classNames:{..._,affixWrapper:Y(_?.affixWrapper,{[`${u}-show-count`]:d,[`${u}-textarea-allow-clear`]:a})},disabled:h,focused:M,className:Y(p,G&&`${u}-out-of-range`),style:{...m,...F&&!ue?{height:`auto`}:{}},dataAttrs:{affixWrapper:{"data-count":typeof ce==`string`?ce:void 0}},hidden:g,readOnly:C,onClear:x},v.createElement(SD,CD({},D,{autoSize:w,maxLength:o,onKeyDown:q,onChange:K,onFocus:ae,onBlur:oe,onCompositionStart:re,onCompositionEnd:ie,className:Y(_?.textarea),style:{resize:m?.resize,...y?.textarea},disabled:h,prefixCls:u,onResize:le,ref:R,readOnly:C})))}),TD=e=>{let{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[`textarea${t}`]:{maxWidth:`100%`,height:`auto`,minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:`bottom`,transition:`all ${e.motionDurationSlow}`,resize:`vertical`,[`&${t}-mouse-active`]:{transition:`all ${e.motionDurationSlow}, height 0s, width 0s`}},[`${t}-textarea-affix-wrapper-resize-dirty`]:{width:`auto`},[r]:{position:`relative`,"&-show-count":{[`${t}-data-count`]:{position:`absolute`,bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:`nowrap`,pointerEvents:`none`}},[`
236
+ `,mD=[`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`],hD={},gD;function _D(e,t=!1){let n=e.getAttribute(`id`)||e.getAttribute(`data-reactid`)||e.getAttribute(`name`);if(t&&hD[n])return hD[n];let r=window.getComputedStyle(e),i=r.getPropertyValue(`box-sizing`)||r.getPropertyValue(`-moz-box-sizing`)||r.getPropertyValue(`-webkit-box-sizing`),a=parseFloat(r.getPropertyValue(`padding-bottom`))+parseFloat(r.getPropertyValue(`padding-top`)),o=parseFloat(r.getPropertyValue(`border-bottom-width`))+parseFloat(r.getPropertyValue(`border-top-width`)),s={sizingStyle:mD.map(e=>`${e}:${r.getPropertyValue(e)}`).join(`;`),paddingSize:a,borderSize:o,boxSizing:i};return t&&n&&(hD[n]=s),s}function vD(e,t=!1,n=null,r=null){gD||(gD=document.createElement(`textarea`),gD.setAttribute(`tab-index`,`-1`),gD.setAttribute(`aria-hidden`,`true`),gD.setAttribute(`name`,`hiddenTextarea`),document.body.appendChild(gD)),e.getAttribute(`wrap`)?gD.setAttribute(`wrap`,e.getAttribute(`wrap`)):gD.removeAttribute(`wrap`);let{paddingSize:i,borderSize:a,boxSizing:o,sizingStyle:s}=_D(e,t);gD.setAttribute(`style`,`${s};${pD}`),gD.value=e.value||e.placeholder||``;let c,l,u,d=gD.scrollHeight;if(o===`border-box`?d+=a:o===`content-box`&&(d-=i),n!==null||r!==null){gD.value=` `;let e=gD.scrollHeight-i;n!==null&&(c=e*n,o===`border-box`&&(c=c+i+a),d=Math.max(c,d)),r!==null&&(l=e*r,o===`border-box`&&(l=l+i+a),u=d>l?``:`hidden`,d=Math.min(l,d))}let f={height:d,overflowY:u,resize:`none`};return c&&(f.minHeight=c),l&&(f.maxHeight=l),f}function yD(){return yD=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},yD.apply(this,arguments)}var bD=0,xD=1,SD=2,CD=v.forwardRef((e,t)=>{let{prefixCls:n,defaultValue:r,value:i,autoSize:a,onResize:o,className:s,style:c,disabled:l,onChange:u,onInternalAutoSize:d,...f}=e,[p,m]=T(r,i),h=p??``,g=e=>{m(e.target.value),u?.(e)},_=v.useRef();v.useImperativeHandle(t,()=>({textArea:_.current}));let[y,b]=v.useMemo(()=>a&&typeof a==`object`?[a.minRows,a.maxRows]:[],[a]),x=!!a,[C,w]=v.useState(SD),[E,D]=v.useState(),O=()=>{w(bD)};S(()=>{x&&O()},[i,y,b,x]),S(()=>{if(C===bD)w(xD);else if(C===xD){let e=vD(_.current,!1,y,b);w(SD),D(e)}},[C]);let k=v.useRef(),A=()=>{Ge.cancel(k.current)},j=e=>{C===SD&&(o?.(e),a&&(A(),k.current=Ge(()=>{O()})))};v.useEffect(()=>A,[]);let M=x?E:null,N={...c,...M};return(C===bD||C===xD)&&(N.overflowY=`hidden`,N.overflowX=`hidden`),v.createElement(Me,{onResize:j,disabled:!(a||o)},v.createElement(`textarea`,yD({},f,{ref:_,style:N,className:Y(n,s,{[`${n}-disabled`]:l}),disabled:l,value:h,onChange:g})))});function wD(){return wD=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},wD.apply(this,arguments)}var TD=v.forwardRef(({defaultValue:e,value:t,onFocus:n,onBlur:r,onChange:i,allowClear:a,maxLength:o,onCompositionStart:s,onCompositionEnd:c,suffix:l,prefixCls:u=`rc-textarea`,showCount:d,count:f,className:p,style:m,disabled:h,hidden:g,classNames:_,styles:y,onResize:b,onClear:x,onPressEnter:S,readOnly:C,autoSize:w,onKeyDown:E,...D},O)=>{let[k,A]=T(e,t),j=k==null?``:String(k),[M,N]=v.useState(!1),P=v.useRef(!1),[F,I]=v.useState(null),L=(0,v.useRef)(null),R=(0,v.useRef)(null),z=()=>R.current?.textArea,B=()=>{z().focus()};(0,v.useImperativeHandle)(O,()=>({resizableTextArea:R.current,focus:B,blur:()=>{z().blur()},nativeElement:L.current?.nativeElement||z()})),(0,v.useEffect)(()=>{N(e=>!h&&e)},[h]);let[V,H]=v.useState(null);v.useEffect(()=>{V&&z().setSelectionRange(...V)},[V]);let U=_E(f,d),W=U.max??o,ee=Number(W)>0,te=U.strategy(j),G=!!W&&te>W,ne=(e,t)=>{let n=t;!P.current&&U.exceedFormatter&&U.max&&U.strategy(t)>U.max&&(n=U.exceedFormatter(t,{max:U.max}),t!==n&&H([z().selectionStart||0,z().selectionEnd||0])),A(n),mE(e.currentTarget,e,i,n)},re=e=>{P.current=!0,s?.(e)},ie=e=>{P.current=!1,ne(e,e.currentTarget.value),c?.(e)},K=e=>{ne(e,e.target.value)},q=e=>{e.key===`Enter`&&S&&!e.nativeEvent.isComposing&&S(e),E?.(e)},ae=e=>{N(!0),n?.(e)},oe=e=>{N(!1),r?.(e)},se=e=>{A(``),B(),mE(z(),e,i)},J=l,ce;U.show&&(ce=U.showFormatter?U.showFormatter({value:j,count:te,maxLength:W}):`${te}${ee?` / ${W}`:``}`,J=v.createElement(v.Fragment,null,J,v.createElement(`span`,{className:Y(`${u}-data-count`,_?.count),style:y?.count},ce)));let le=e=>{b?.(e),z()?.style.height&&I(!0)},ue=!w&&!d&&!a;return v.createElement(gE,{ref:L,value:j,allowClear:a,handleReset:se,suffix:J,prefixCls:u,classNames:{..._,affixWrapper:Y(_?.affixWrapper,{[`${u}-show-count`]:d,[`${u}-textarea-allow-clear`]:a})},disabled:h,focused:M,className:Y(p,G&&`${u}-out-of-range`),style:{...m,...F&&!ue?{height:`auto`}:{}},dataAttrs:{affixWrapper:{"data-count":typeof ce==`string`?ce:void 0}},hidden:g,readOnly:C,onClear:x},v.createElement(CD,wD({},D,{autoSize:w,maxLength:o,onKeyDown:q,onChange:K,onFocus:ae,onBlur:oe,onCompositionStart:re,onCompositionEnd:ie,className:Y(_?.textarea),style:{resize:m?.resize,...y?.textarea},disabled:h,prefixCls:u,onResize:le,ref:R,readOnly:C})))}),ED=e=>{let{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[`textarea${t}`]:{maxWidth:`100%`,height:`auto`,minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:`bottom`,transition:`all ${e.motionDurationSlow}`,resize:`vertical`,[`&${t}-mouse-active`]:{transition:`all ${e.motionDurationSlow}, height 0s, width 0s`}},[`${t}-textarea-affix-wrapper-resize-dirty`]:{width:`auto`},[r]:{position:`relative`,"&-show-count":{[`${t}-data-count`]:{position:`absolute`,bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:`nowrap`,pointerEvents:`none`}},[`
237
237
  &-allow-clear > ${t},
238
238
  &-affix-wrapper${r}-has-feedback ${t}
239
- `]:{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}}}}}},ED=Ja([`Input`,`TextArea`],e=>TD(si(e,GC(e))),KC,{resetFont:!1}),DD=(0,v.forwardRef)((e,t)=>{let{prefixCls:n,bordered:r=!0,size:i,disabled:a,status:o,allowClear:s,classNames:c,rootClassName:l,className:u,style:d,styles:f,variant:p,showCount:m,onMouseDown:h,onResize:g,..._}=e,{getPrefixCls:y,direction:b,allowClear:x,autoComplete:S,className:C,style:w,classNames:T,styles:E}=Ze(`textArea`),D=v.useContext(du),O=a??D,{status:k,hasFeedback:A,feedbackIcon:j}=v.useContext(Rh),M=Yy(k,o),[N,P]=Dc([T,c],[E,f],{props:e}),F=v.useRef(null);v.useImperativeHandle(t,()=>({resizableTextArea:F.current?.resizableTextArea,focus:e=>{kp(F.current?.resizableTextArea?.textArea,e)},blur:()=>F.current?.blur(),nativeElement:F.current?.nativeElement||null}));let I=y(`input`,n),L=Yc(I),[R,z]=yw(I,l);ED(I,L);let{compactSize:B,compactItemClassnames:V}=Nd(I,b),H=Ad(e=>i??B??e),[U,W]=ib(`textArea`,p,r),ee=yE(s??x),[te,G]=v.useState(!1),[ne,re]=v.useState(!1),ie=e=>{G(!0),h?.(e);let t=()=>{G(!1),document.removeEventListener(`mouseup`,t)};document.addEventListener(`mouseup`,t)},K=e=>{if(g?.(e),te&&typeof getComputedStyle==`function`){let e=F.current?.nativeElement?.querySelector(`textarea`);e&&getComputedStyle(e).resize===`both`&&re(!0)}};return v.createElement(wD,{autoComplete:S,..._,style:{...P.root,...w,...d},styles:P,disabled:O,allowClear:ee,className:Y(z,L,u,l,V,C,N.root,{[`${I}-textarea-affix-wrapper-resize-dirty`]:ne}),classNames:{...N,textarea:Y({[`${I}-sm`]:H===`small`,[`${I}-lg`]:H===`large`},R,N.textarea,te&&`${I}-mouse-active`),variant:Y({[`${I}-${U}`]:W},Jy(I,M)),affixWrapper:Y(`${I}-textarea-affix-wrapper`,{[`${I}-affix-wrapper-rtl`]:b===`rtl`,[`${I}-affix-wrapper-sm`]:H===`small`,[`${I}-affix-wrapper-lg`]:H===`large`,[`${I}-textarea-show-count`]:m||e.count?.show},R)},prefixCls:I,suffix:A&&v.createElement(`span`,{className:`${I}-textarea-suffix`},j),showCount:m,ref:F,onResize:K,onMouseDown:ie})}),OD=SE;OD.Group=JE,OD.Search=dD,OD.TextArea=DD,OD.Password=lD,OD.OTP=eD;function kD(e,t,n){return typeof n==`boolean`?n:e.length?!0:de(t).some(e=>e.type===mC)}var AD=({suffixCls:e,tagName:t,displayName:n})=>n=>v.forwardRef((r,i)=>v.createElement(n,{ref:i,suffixCls:e,tagName:t,...r})),jD=v.forwardRef((e,t)=>{let{prefixCls:n,suffixCls:r,className:i,tagName:a,...o}=e,{getPrefixCls:s}=v.useContext(Je),c=s(`layout`,n),[l]=cC(c),u=r?`${c}-${r}`:c;return v.createElement(a,{className:Y(n||u,i,l),ref:t,...o})}),MD=v.forwardRef((e,t)=>{let{direction:n}=v.useContext(Je),[r,i]=v.useState([]),{prefixCls:a,className:o,rootClassName:s,children:c,hasSider:l,tagName:u,style:d,...f}=e,p=ue(f,[`suffixCls`]),{getPrefixCls:m,className:h,style:g}=Ze(`layout`),_=m(`layout`,a),y=kD(r,c,l),[b,x]=cC(_),S=Y(_,{[`${_}-has-sider`]:y,[`${_}-rtl`]:n===`rtl`},h,o,s,b,x),C=v.useMemo(()=>({siderHook:{addSider:e=>{i(t=>[].concat(ze(t),[e]))},removeSider:e=>{i(t=>t.filter(t=>t!==e))}}}),[]);return v.createElement(iC.Provider,{value:C},v.createElement(u,{ref:t,className:S,style:{...g,...d},...p},c))}),ND=AD({tagName:`div`,displayName:`Layout`})(MD),PD=AD({suffixCls:`header`,tagName:`header`,displayName:`Header`})(jD),FD=AD({suffixCls:`footer`,tagName:`footer`,displayName:`Footer`})(jD),ID=AD({suffixCls:`content`,tagName:`main`,displayName:`Content`})(jD),LD=ND;LD.Header=PD,LD.Footer=FD,LD.Content=ID,LD.Sider=mC,LD._InternalSiderContext=fC;var RD={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 zD(){return zD=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},zD.apply(this,arguments)}var BD=v.forwardRef((e,t)=>v.createElement(So,zD({},e,{ref:t,icon:RD}))),VD={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 HD(){return HD=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},HD.apply(this,arguments)}var UD=v.forwardRef((e,t)=>v.createElement(So,HD({},e,{ref:t,icon:VD}))),WD={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:`页码`},GD=[10,20,50,100],KD=e=>{let{pageSizeOptions:t=GD,locale:n,changeSize:r,pageSize:i,goButton:a,quickGo:o,rootPrefixCls:s,disabled:c,buildOptionText:l,showSizeChanger:u,sizeChangerRender:d}=e,[f,p]=v.useState(``),m=v.useMemo(()=>!f||Number.isNaN(f)?void 0:Number(f),[f]),h=typeof l==`function`?l:e=>`${e} ${n.items_per_page}`,g=e=>{let t=e.target.value;/^\d*$/.test(t)&&p(t)},_=e=>{a||f===``||(p(``),!(e.relatedTarget&&(e.relatedTarget.className.includes(`${s}-item-link`)||e.relatedTarget.className.includes(`${s}-item`)))&&o?.(m))},y=e=>{f!==``&&(e.keyCode===Z.ENTER||e.type===`click`)&&(p(``),o?.(m))},b=()=>t.some(e=>e.toString()===i.toString())?t:t.concat([i]).sort((e,t)=>(Number.isNaN(Number(e))?0:Number(e))-(Number.isNaN(Number(t))?0:Number(t))),x=`${s}-options`;if(!u&&!o)return null;let S=null,C=null,w=null;return u&&d&&(S=d({disabled:c,size:i,onSizeChange:e=>{r?.(Number(e))},"aria-label":n.page_size,className:`${x}-size-changer`,options:b().map(e=>({label:h(e),value:e}))})),o&&(a&&(w=typeof a==`boolean`?v.createElement(`button`,{type:`button`,onClick:y,onKeyUp:y,disabled:c,className:`${x}-quick-jumper-button`},n.jump_to_confirm):v.createElement(`span`,{onClick:y,onKeyUp:y},a)),C=v.createElement(`div`,{className:`${x}-quick-jumper`},n.jump_to,v.createElement(`input`,{disabled:c,type:`text`,value:f,onChange:g,onKeyUp:y,onBlur:_,"aria-label":n.page}),n.page,w)),v.createElement(`li`,{className:x},S,C)},qD=e=>{let{rootPrefixCls:t,page:n,active:r,className:i,style:a,showTitle:o,onClick:s,onKeyPress:c,itemRender:l}=e,u=`${t}-item`,d=Y(u,`${u}-${n}`,{[`${u}-active`]:r,[`${u}-disabled`]:!n},i),f=()=>{s(n)},p=e=>{c(e,s,n)},m=l(n,`page`,v.createElement(`a`,{rel:`nofollow`},n));return m?v.createElement(`li`,{title:o?String(n):null,className:d,style:a,onClick:f,onKeyDown:p,tabIndex:0},m):null};function JD(){return JD=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},JD.apply(this,arguments)}var YD=(e,t,n)=>n;function XD(){}function ZD(e){let t=Number(e);return typeof t==`number`&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function QD(e,t,n){let r=e===void 0?t:e;return Math.floor((n-1)/r)+1}var $D=e=>{let{prefixCls:t=`rc-pagination`,selectPrefixCls:n=`rc-select`,className:r,classNames:i,styles:a,current:o,defaultCurrent:s=1,total:c=0,pageSize:l,defaultPageSize:u=10,onChange:d=XD,hideOnSinglePage:f,align:p,showPrevNextJumpers:m=!0,showQuickJumper:h,showLessItems:g,showTitle:_=!0,onShowSizeChange:y=XD,locale:b=WD,style:x,totalBoundaryShowSizeChanger:S=50,disabled:C,simple:w,showTotal:E,showSizeChanger:D=c>S,sizeChangerRender:O,pageSizeOptions:k,itemRender:A=YD,jumpPrevIcon:j,jumpNextIcon:M,prevIcon:N,nextIcon:P}=e,F=v.useRef(null),[I,L]=T(u,l),[R,z]=T(s,o),B=Math.max(1,Math.min(R,QD(void 0,I,c))),[V,H]=v.useState(B);(0,v.useEffect)(()=>{H(B)},[B]),`current`in e;let U=Math.max(1,B-(g?3:5)),W=Math.min(QD(void 0,I,c),B+(g?3:5));function ee(n,r){let i=n||v.createElement(`button`,{type:`button`,"aria-label":r,className:`${t}-item-link`});return typeof n==`function`&&(i=v.createElement(n,e)),i}function te(e){let t=e.target.value,n=QD(void 0,I,c),r;return r=t===``?t:Number.isNaN(Number(t))?V:t>=n?n:Number(t),r}function G(e){return ZD(e)&&e!==B&&ZD(c)&&c>0}let ne=c>I?h:!1;function re(e){(e.keyCode===Z.UP||e.keyCode===Z.DOWN)&&e.preventDefault()}function ie(e){let t=te(e);switch(t!==V&&H(t),e.keyCode){case Z.ENTER:ae(t);break;case Z.UP:ae(t-1);break;case Z.DOWN:ae(t+1);break;default:break}}function K(e){ae(te(e))}function q(e){let t=QD(e,I,c),n=B>t&&t!==0?t:B;L(e),H(n),y?.(B,e),z(n),d?.(n,e)}function ae(e){if(G(e)&&!C){let t=QD(void 0,I,c),n=e;return e>t?n=t:e<1&&(n=1),n!==V&&H(n),z(n),d?.(n,I),n}return B}let oe=B>1,se=B<QD(void 0,I,c);function J(){oe&&ae(B-1)}function ce(){se&&ae(B+1)}function le(){ae(U)}function ue(){ae(W)}function de(e,t,...n){(e.key===`Enter`||e.charCode===Z.ENTER||e.keyCode===Z.ENTER)&&t(...n)}function fe(e){de(e,J)}function pe(e){de(e,ce)}function me(e){de(e,le)}function he(e){de(e,ue)}function ge(e){let t=A(e,`prev`,ee(N,`prev page`));return v.isValidElement(t)?v.cloneElement(t,{disabled:!oe}):t}function _e(e){let t=A(e,`next`,ee(P,`next page`));return v.isValidElement(t)?v.cloneElement(t,{disabled:!se}):t}function ve(e){(e.type===`click`||e.keyCode===Z.ENTER)&&ae(V)}let ye=null,be=Ns(e,{aria:!0,data:!0}),xe=E&&v.createElement(`li`,{className:`${t}-total-text`},E(c,[c===0?0:(B-1)*I+1,B*I>c?c:B*I])),Se=null,Ce=QD(void 0,I,c);if(f&&c<=I)return null;let we=[],Te={rootPrefixCls:t,onClick:ae,onKeyPress:de,showTitle:_,itemRender:A,page:-1,className:i?.item,style:a?.item},Ee=B-1>0?B-1:0,De=B+1<Ce?B+1:Ce,Oe=h&&h.goButton,ke=typeof w==`object`?w.readOnly:!w,Ae=Oe,je=null;w&&(Oe&&(Ae=typeof Oe==`boolean`?v.createElement(`button`,{type:`button`,onClick:ve,onKeyUp:ve},b.jump_to_confirm):v.createElement(`span`,{onClick:ve,onKeyUp:ve},Oe),Ae=v.createElement(`li`,{title:_?`${b.jump_to}${B}/${Ce}`:null,className:`${t}-simple-pager`},Ae)),je=v.createElement(`li`,{title:_?`${B}/${Ce}`:null,className:Y(`${t}-simple-pager`,i?.item),style:a?.item},ke?V:v.createElement(`input`,{type:`text`,"aria-label":b.jump_to,value:V,disabled:C,onKeyDown:re,onKeyUp:ie,onChange:ie,onBlur:K,size:3}),v.createElement(`span`,{className:`${t}-slash`},`/`),Ce));let Me=g?1:2;if(Ce<=3+Me*2){Ce||we.push(v.createElement(qD,JD({},Te,{key:`noPager`,page:1,className:`${t}-item-disabled`})));for(let e=1;e<=Ce;e+=1)we.push(v.createElement(qD,JD({},Te,{key:e,page:e,active:B===e})))}else{let e=g?b.prev_3:b.prev_5,n=g?b.next_3:b.next_5,r=A(U,`jump-prev`,ee(j,`prev page`)),i=A(W,`jump-next`,ee(M,`next page`));m&&(ye=r?v.createElement(`li`,{title:_?e:null,key:`prev`,onClick:le,tabIndex:0,onKeyDown:me,className:Y(`${t}-jump-prev`,{[`${t}-jump-prev-custom-icon`]:!!j})},r):null,Se=i?v.createElement(`li`,{title:_?n:null,key:`next`,onClick:ue,tabIndex:0,onKeyDown:he,className:Y(`${t}-jump-next`,{[`${t}-jump-next-custom-icon`]:!!M})},i):null);let a=Math.max(1,B-Me),o=Math.min(B+Me,Ce);B-1<=Me&&(o=1+Me*2),Ce-B<=Me&&(a=Ce-Me*2);for(let e=a;e<=o;e+=1)we.push(v.createElement(qD,JD({},Te,{key:e,page:e,active:B===e})));if(B-1>=Me*2&&B!==3&&(we[0]=v.cloneElement(we[0],{className:Y(`${t}-item-after-jump-prev`,we[0].props.className)}),we.unshift(ye)),Ce-B>=Me*2&&B!==Ce-2){let e=we[we.length-1];we[we.length-1]=v.cloneElement(e,{className:Y(`${t}-item-before-jump-next`,e.props.className)}),we.push(Se)}a!==1&&we.unshift(v.createElement(qD,JD({},Te,{key:1,page:1}))),o!==Ce&&we.push(v.createElement(qD,JD({},Te,{key:Ce,page:Ce})))}let Ne=ge(Ee);if(Ne){let e=!oe||!Ce;Ne=v.createElement(`li`,{title:_?b.prev_page:null,onClick:J,tabIndex:e?null:0,onKeyDown:fe,className:Y(`${t}-prev`,i?.item,{[`${t}-disabled`]:e}),style:a?.item,"aria-disabled":e},Ne)}let Pe=_e(De);if(Pe){let e,n;w?(e=!se,n=oe?0:null):(e=!se||!Ce,n=e?null:0),Pe=v.createElement(`li`,{title:_?b.next_page:null,onClick:ce,tabIndex:n,onKeyDown:pe,className:Y(`${t}-next`,i?.item,{[`${t}-disabled`]:e}),style:a?.item,"aria-disabled":e},Pe)}let Fe=Y(t,r,{[`${t}-start`]:p===`start`,[`${t}-center`]:p===`center`,[`${t}-end`]:p===`end`,[`${t}-simple`]:w,[`${t}-disabled`]:C});return v.createElement(`ul`,JD({className:Fe,style:x,ref:F},be),xe,Ne,w?je:we,Pe,v.createElement(KD,{locale:b,rootPrefixCls:t,disabled:C,selectPrefixCls:n,changeSize:q,pageSize:I,pageSizeOptions:k,quickGo:ne?ae:null,goButton:Ae,showSizeChanger:D,sizeChangerRender:O}))},eO=e=>{let{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:`not-allowed`,[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:`not-allowed`}},"&:focus-visible":{cursor:`not-allowed`,[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:`not-allowed`}}},[`&${t}-disabled`]:{cursor:`not-allowed`,[`${t}-item`]:{cursor:`not-allowed`,backgroundColor:`transparent`,"&:hover, &:active":{backgroundColor:`transparent`},a:{color:e.colorTextDisabled,backgroundColor:`transparent`,border:`none`,cursor:`not-allowed`},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:`not-allowed`,"&:hover, &:active":{backgroundColor:`transparent`},[`${t}-simple&`]:{backgroundColor:`transparent`,"&:hover, &:active":{backgroundColor:`transparent`}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}}}},tO=e=>{let{componentCls:t}=e;return{[`&${t}-small ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-quick-jumper":{input:{...dw(e),width:e.paginationMiniQuickJumperInputWidth}}}}},nO=e=>{let{componentCls:t}=e;return{[`&${t}-large ${t}-options`]:{"&-quick-jumper":{input:{...uw(e)}}}}},rO=e=>{let{componentCls:t,antCls:n}=e,[,r]=Za(n,`pagination`);return{[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{height:r(`item-size-actual`),lineHeight:r(`item-size-actual`),verticalAlign:`top`,[`${t}-item-link`]:{height:r(`item-size-actual`),backgroundColor:`transparent`,border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:r(`item-size-actual`),lineHeight:r(`item-size-actual`)}}},[`${t}-simple-pager`]:{display:`inline-flex`,alignItems:`center`,height:r(`item-size-actual`),marginInlineEnd:r(`item-spacing-actual`),input:{boxSizing:`border-box`,height:`100%`,width:e.quickJumperInputWidth,padding:`0 ${X(e.paginationItemPaddingInline)}`,textAlign:`center`,backgroundColor:e.itemInputBg,border:`${X(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:`${X(e.inputOutlineOffset)} 0 ${X(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:`not-allowed`}}},[`&${t}-disabled`]:{[`${t}-prev, ${t}-next`]:{[`${t}-item-link`]:{"&:hover, &:active":{backgroundColor:`transparent`}}}},[`&${t}-small`]:{[`${t}-simple-pager`]:{input:{width:e.paginationMiniQuickJumperInputWidth}}}}}},iO=e=>{let{componentCls:t,antCls:n}=e,[,r]=Za(n,`pagination`);return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:`relative`,[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:`auto`}},[`${t}-item-ellipsis`]:{position:`absolute`,top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:`block`,margin:`auto`,color:e.colorTextDisabled,letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:`center`,textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[`
239
+ `]:{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}}}}}},DD=Ja([`Input`,`TextArea`],e=>ED(si(e,KC(e))),qC,{resetFont:!1}),OD=(0,v.forwardRef)((e,t)=>{let{prefixCls:n,bordered:r=!0,size:i,disabled:a,status:o,allowClear:s,classNames:c,rootClassName:l,className:u,style:d,styles:f,variant:p,showCount:m,onMouseDown:h,onResize:g,..._}=e,{getPrefixCls:y,direction:b,allowClear:x,autoComplete:S,className:C,style:w,classNames:T,styles:E}=Ze(`textArea`),D=v.useContext(du),O=a??D,{status:k,hasFeedback:A,feedbackIcon:j}=v.useContext(zh),M=Xy(k,o),[N,P]=Dc([T,c],[E,f],{props:e}),F=v.useRef(null);v.useImperativeHandle(t,()=>({resizableTextArea:F.current?.resizableTextArea,focus:e=>{Ap(F.current?.resizableTextArea?.textArea,e)},blur:()=>F.current?.blur(),nativeElement:F.current?.nativeElement||null}));let I=y(`input`,n),L=Yc(I),[R,z]=bw(I,l);DD(I,L);let{compactSize:B,compactItemClassnames:V}=Pd(I,b),H=jd(e=>i??B??e),[U,W]=ab(`textArea`,p,r),ee=bE(s??x),[te,G]=v.useState(!1),[ne,re]=v.useState(!1),ie=e=>{G(!0),h?.(e);let t=()=>{G(!1),document.removeEventListener(`mouseup`,t)};document.addEventListener(`mouseup`,t)},K=e=>{if(g?.(e),te&&typeof getComputedStyle==`function`){let e=F.current?.nativeElement?.querySelector(`textarea`);e&&getComputedStyle(e).resize===`both`&&re(!0)}};return v.createElement(TD,{autoComplete:S,..._,style:{...P.root,...w,...d},styles:P,disabled:O,allowClear:ee,className:Y(z,L,u,l,V,C,N.root,{[`${I}-textarea-affix-wrapper-resize-dirty`]:ne}),classNames:{...N,textarea:Y({[`${I}-sm`]:H===`small`,[`${I}-lg`]:H===`large`},R,N.textarea,te&&`${I}-mouse-active`),variant:Y({[`${I}-${U}`]:W},Yy(I,M)),affixWrapper:Y(`${I}-textarea-affix-wrapper`,{[`${I}-affix-wrapper-rtl`]:b===`rtl`,[`${I}-affix-wrapper-sm`]:H===`small`,[`${I}-affix-wrapper-lg`]:H===`large`,[`${I}-textarea-show-count`]:m||e.count?.show},R)},prefixCls:I,suffix:A&&v.createElement(`span`,{className:`${I}-textarea-suffix`},j),showCount:m,ref:F,onResize:K,onMouseDown:ie})}),kD=CE;kD.Group=YE,kD.Search=fD,kD.TextArea=OD,kD.Password=uD,kD.OTP=tD;function AD(e,t,n){return typeof n==`boolean`?n:e.length?!0:de(t).some(e=>e.type===hC)}var jD=({suffixCls:e,tagName:t,displayName:n})=>n=>v.forwardRef((r,i)=>v.createElement(n,{ref:i,suffixCls:e,tagName:t,...r})),MD=v.forwardRef((e,t)=>{let{prefixCls:n,suffixCls:r,className:i,tagName:a,...o}=e,{getPrefixCls:s}=v.useContext(Je),c=s(`layout`,n),[l]=lC(c),u=r?`${c}-${r}`:c;return v.createElement(a,{className:Y(n||u,i,l),ref:t,...o})}),ND=v.forwardRef((e,t)=>{let{direction:n}=v.useContext(Je),[r,i]=v.useState([]),{prefixCls:a,className:o,rootClassName:s,children:c,hasSider:l,tagName:u,style:d,...f}=e,p=ue(f,[`suffixCls`]),{getPrefixCls:m,className:h,style:g}=Ze(`layout`),_=m(`layout`,a),y=AD(r,c,l),[b,x]=lC(_),S=Y(_,{[`${_}-has-sider`]:y,[`${_}-rtl`]:n===`rtl`},h,o,s,b,x),C=v.useMemo(()=>({siderHook:{addSider:e=>{i(t=>[].concat(ze(t),[e]))},removeSider:e=>{i(t=>t.filter(t=>t!==e))}}}),[]);return v.createElement(aC.Provider,{value:C},v.createElement(u,{ref:t,className:S,style:{...g,...d},...p},c))}),PD=jD({tagName:`div`,displayName:`Layout`})(ND),FD=jD({suffixCls:`header`,tagName:`header`,displayName:`Header`})(MD),ID=jD({suffixCls:`footer`,tagName:`footer`,displayName:`Footer`})(MD),LD=jD({suffixCls:`content`,tagName:`main`,displayName:`Content`})(MD),RD=PD;RD.Header=FD,RD.Footer=ID,RD.Content=LD,RD.Sider=hC,RD._InternalSiderContext=pC;var zD={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 BD(){return BD=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},BD.apply(this,arguments)}var VD=v.forwardRef((e,t)=>v.createElement(So,BD({},e,{ref:t,icon:zD}))),HD={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 UD(){return UD=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},UD.apply(this,arguments)}var WD=v.forwardRef((e,t)=>v.createElement(So,UD({},e,{ref:t,icon:HD}))),GD={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:`页码`},KD=[10,20,50,100],qD=e=>{let{pageSizeOptions:t=KD,locale:n,changeSize:r,pageSize:i,goButton:a,quickGo:o,rootPrefixCls:s,disabled:c,buildOptionText:l,showSizeChanger:u,sizeChangerRender:d}=e,[f,p]=v.useState(``),m=v.useMemo(()=>!f||Number.isNaN(f)?void 0:Number(f),[f]),h=typeof l==`function`?l:e=>`${e} ${n.items_per_page}`,g=e=>{let t=e.target.value;/^\d*$/.test(t)&&p(t)},_=e=>{a||f===``||(p(``),!(e.relatedTarget&&(e.relatedTarget.className.includes(`${s}-item-link`)||e.relatedTarget.className.includes(`${s}-item`)))&&o?.(m))},y=e=>{f!==``&&(e.keyCode===Z.ENTER||e.type===`click`)&&(p(``),o?.(m))},b=()=>t.some(e=>e.toString()===i.toString())?t:t.concat([i]).sort((e,t)=>(Number.isNaN(Number(e))?0:Number(e))-(Number.isNaN(Number(t))?0:Number(t))),x=`${s}-options`;if(!u&&!o)return null;let S=null,C=null,w=null;return u&&d&&(S=d({disabled:c,size:i,onSizeChange:e=>{r?.(Number(e))},"aria-label":n.page_size,className:`${x}-size-changer`,options:b().map(e=>({label:h(e),value:e}))})),o&&(a&&(w=typeof a==`boolean`?v.createElement(`button`,{type:`button`,onClick:y,onKeyUp:y,disabled:c,className:`${x}-quick-jumper-button`},n.jump_to_confirm):v.createElement(`span`,{onClick:y,onKeyUp:y},a)),C=v.createElement(`div`,{className:`${x}-quick-jumper`},n.jump_to,v.createElement(`input`,{disabled:c,type:`text`,value:f,onChange:g,onKeyUp:y,onBlur:_,"aria-label":n.page}),n.page,w)),v.createElement(`li`,{className:x},S,C)},JD=e=>{let{rootPrefixCls:t,page:n,active:r,className:i,style:a,showTitle:o,onClick:s,onKeyPress:c,itemRender:l}=e,u=`${t}-item`,d=Y(u,`${u}-${n}`,{[`${u}-active`]:r,[`${u}-disabled`]:!n},i),f=()=>{s(n)},p=e=>{c(e,s,n)},m=l(n,`page`,v.createElement(`a`,{rel:`nofollow`},n));return m?v.createElement(`li`,{title:o?String(n):null,className:d,style:a,onClick:f,onKeyDown:p,tabIndex:0},m):null};function YD(){return YD=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},YD.apply(this,arguments)}var XD=(e,t,n)=>n;function ZD(){}function QD(e){let t=Number(e);return typeof t==`number`&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function $D(e,t,n){let r=e===void 0?t:e;return Math.floor((n-1)/r)+1}var eO=e=>{let{prefixCls:t=`rc-pagination`,selectPrefixCls:n=`rc-select`,className:r,classNames:i,styles:a,current:o,defaultCurrent:s=1,total:c=0,pageSize:l,defaultPageSize:u=10,onChange:d=ZD,hideOnSinglePage:f,align:p,showPrevNextJumpers:m=!0,showQuickJumper:h,showLessItems:g,showTitle:_=!0,onShowSizeChange:y=ZD,locale:b=GD,style:x,totalBoundaryShowSizeChanger:S=50,disabled:C,simple:w,showTotal:E,showSizeChanger:D=c>S,sizeChangerRender:O,pageSizeOptions:k,itemRender:A=XD,jumpPrevIcon:j,jumpNextIcon:M,prevIcon:N,nextIcon:P}=e,F=v.useRef(null),[I,L]=T(u,l),[R,z]=T(s,o),B=Math.max(1,Math.min(R,$D(void 0,I,c))),[V,H]=v.useState(B);(0,v.useEffect)(()=>{H(B)},[B]),`current`in e;let U=Math.max(1,B-(g?3:5)),W=Math.min($D(void 0,I,c),B+(g?3:5));function ee(n,r){let i=n||v.createElement(`button`,{type:`button`,"aria-label":r,className:`${t}-item-link`});return typeof n==`function`&&(i=v.createElement(n,e)),i}function te(e){let t=e.target.value,n=$D(void 0,I,c),r;return r=t===``?t:Number.isNaN(Number(t))?V:t>=n?n:Number(t),r}function G(e){return QD(e)&&e!==B&&QD(c)&&c>0}let ne=c>I?h:!1;function re(e){(e.keyCode===Z.UP||e.keyCode===Z.DOWN)&&e.preventDefault()}function ie(e){let t=te(e);switch(t!==V&&H(t),e.keyCode){case Z.ENTER:ae(t);break;case Z.UP:ae(t-1);break;case Z.DOWN:ae(t+1);break;default:break}}function K(e){ae(te(e))}function q(e){let t=$D(e,I,c),n=B>t&&t!==0?t:B;L(e),H(n),y?.(B,e),z(n),d?.(n,e)}function ae(e){if(G(e)&&!C){let t=$D(void 0,I,c),n=e;return e>t?n=t:e<1&&(n=1),n!==V&&H(n),z(n),d?.(n,I),n}return B}let oe=B>1,se=B<$D(void 0,I,c);function J(){oe&&ae(B-1)}function ce(){se&&ae(B+1)}function le(){ae(U)}function ue(){ae(W)}function de(e,t,...n){(e.key===`Enter`||e.charCode===Z.ENTER||e.keyCode===Z.ENTER)&&t(...n)}function fe(e){de(e,J)}function pe(e){de(e,ce)}function me(e){de(e,le)}function he(e){de(e,ue)}function ge(e){let t=A(e,`prev`,ee(N,`prev page`));return v.isValidElement(t)?v.cloneElement(t,{disabled:!oe}):t}function _e(e){let t=A(e,`next`,ee(P,`next page`));return v.isValidElement(t)?v.cloneElement(t,{disabled:!se}):t}function ve(e){(e.type===`click`||e.keyCode===Z.ENTER)&&ae(V)}let ye=null,be=Ns(e,{aria:!0,data:!0}),xe=E&&v.createElement(`li`,{className:`${t}-total-text`},E(c,[c===0?0:(B-1)*I+1,B*I>c?c:B*I])),Se=null,Ce=$D(void 0,I,c);if(f&&c<=I)return null;let we=[],Te={rootPrefixCls:t,onClick:ae,onKeyPress:de,showTitle:_,itemRender:A,page:-1,className:i?.item,style:a?.item},Ee=B-1>0?B-1:0,De=B+1<Ce?B+1:Ce,Oe=h&&h.goButton,ke=typeof w==`object`?w.readOnly:!w,Ae=Oe,je=null;w&&(Oe&&(Ae=typeof Oe==`boolean`?v.createElement(`button`,{type:`button`,onClick:ve,onKeyUp:ve},b.jump_to_confirm):v.createElement(`span`,{onClick:ve,onKeyUp:ve},Oe),Ae=v.createElement(`li`,{title:_?`${b.jump_to}${B}/${Ce}`:null,className:`${t}-simple-pager`},Ae)),je=v.createElement(`li`,{title:_?`${B}/${Ce}`:null,className:Y(`${t}-simple-pager`,i?.item),style:a?.item},ke?V:v.createElement(`input`,{type:`text`,"aria-label":b.jump_to,value:V,disabled:C,onKeyDown:re,onKeyUp:ie,onChange:ie,onBlur:K,size:3}),v.createElement(`span`,{className:`${t}-slash`},`/`),Ce));let Me=g?1:2;if(Ce<=3+Me*2){Ce||we.push(v.createElement(JD,YD({},Te,{key:`noPager`,page:1,className:`${t}-item-disabled`})));for(let e=1;e<=Ce;e+=1)we.push(v.createElement(JD,YD({},Te,{key:e,page:e,active:B===e})))}else{let e=g?b.prev_3:b.prev_5,n=g?b.next_3:b.next_5,r=A(U,`jump-prev`,ee(j,`prev page`)),i=A(W,`jump-next`,ee(M,`next page`));m&&(ye=r?v.createElement(`li`,{title:_?e:null,key:`prev`,onClick:le,tabIndex:0,onKeyDown:me,className:Y(`${t}-jump-prev`,{[`${t}-jump-prev-custom-icon`]:!!j})},r):null,Se=i?v.createElement(`li`,{title:_?n:null,key:`next`,onClick:ue,tabIndex:0,onKeyDown:he,className:Y(`${t}-jump-next`,{[`${t}-jump-next-custom-icon`]:!!M})},i):null);let a=Math.max(1,B-Me),o=Math.min(B+Me,Ce);B-1<=Me&&(o=1+Me*2),Ce-B<=Me&&(a=Ce-Me*2);for(let e=a;e<=o;e+=1)we.push(v.createElement(JD,YD({},Te,{key:e,page:e,active:B===e})));if(B-1>=Me*2&&B!==3&&(we[0]=v.cloneElement(we[0],{className:Y(`${t}-item-after-jump-prev`,we[0].props.className)}),we.unshift(ye)),Ce-B>=Me*2&&B!==Ce-2){let e=we[we.length-1];we[we.length-1]=v.cloneElement(e,{className:Y(`${t}-item-before-jump-next`,e.props.className)}),we.push(Se)}a!==1&&we.unshift(v.createElement(JD,YD({},Te,{key:1,page:1}))),o!==Ce&&we.push(v.createElement(JD,YD({},Te,{key:Ce,page:Ce})))}let Ne=ge(Ee);if(Ne){let e=!oe||!Ce;Ne=v.createElement(`li`,{title:_?b.prev_page:null,onClick:J,tabIndex:e?null:0,onKeyDown:fe,className:Y(`${t}-prev`,i?.item,{[`${t}-disabled`]:e}),style:a?.item,"aria-disabled":e},Ne)}let Pe=_e(De);if(Pe){let e,n;w?(e=!se,n=oe?0:null):(e=!se||!Ce,n=e?null:0),Pe=v.createElement(`li`,{title:_?b.next_page:null,onClick:ce,tabIndex:n,onKeyDown:pe,className:Y(`${t}-next`,i?.item,{[`${t}-disabled`]:e}),style:a?.item,"aria-disabled":e},Pe)}let Fe=Y(t,r,{[`${t}-start`]:p===`start`,[`${t}-center`]:p===`center`,[`${t}-end`]:p===`end`,[`${t}-simple`]:w,[`${t}-disabled`]:C});return v.createElement(`ul`,YD({className:Fe,style:x,ref:F},be),xe,Ne,w?je:we,Pe,v.createElement(qD,{locale:b,rootPrefixCls:t,disabled:C,selectPrefixCls:n,changeSize:q,pageSize:I,pageSizeOptions:k,quickGo:ne?ae:null,goButton:Ae,showSizeChanger:D,sizeChangerRender:O}))},tO=e=>{let{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:`not-allowed`,[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:`not-allowed`}},"&:focus-visible":{cursor:`not-allowed`,[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:`not-allowed`}}},[`&${t}-disabled`]:{cursor:`not-allowed`,[`${t}-item`]:{cursor:`not-allowed`,backgroundColor:`transparent`,"&:hover, &:active":{backgroundColor:`transparent`},a:{color:e.colorTextDisabled,backgroundColor:`transparent`,border:`none`,cursor:`not-allowed`},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:`not-allowed`,"&:hover, &:active":{backgroundColor:`transparent`},[`${t}-simple&`]:{backgroundColor:`transparent`,"&:hover, &:active":{backgroundColor:`transparent`}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}}}},nO=e=>{let{componentCls:t}=e;return{[`&${t}-small ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-quick-jumper":{input:{...fw(e),width:e.paginationMiniQuickJumperInputWidth}}}}},rO=e=>{let{componentCls:t}=e;return{[`&${t}-large ${t}-options`]:{"&-quick-jumper":{input:{...dw(e)}}}}},iO=e=>{let{componentCls:t,antCls:n}=e,[,r]=Za(n,`pagination`);return{[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{height:r(`item-size-actual`),lineHeight:r(`item-size-actual`),verticalAlign:`top`,[`${t}-item-link`]:{height:r(`item-size-actual`),backgroundColor:`transparent`,border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:r(`item-size-actual`),lineHeight:r(`item-size-actual`)}}},[`${t}-simple-pager`]:{display:`inline-flex`,alignItems:`center`,height:r(`item-size-actual`),marginInlineEnd:r(`item-spacing-actual`),input:{boxSizing:`border-box`,height:`100%`,width:e.quickJumperInputWidth,padding:`0 ${X(e.paginationItemPaddingInline)}`,textAlign:`center`,backgroundColor:e.itemInputBg,border:`${X(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:`${X(e.inputOutlineOffset)} 0 ${X(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:`not-allowed`}}},[`&${t}-disabled`]:{[`${t}-prev, ${t}-next`]:{[`${t}-item-link`]:{"&:hover, &:active":{backgroundColor:`transparent`}}}},[`&${t}-small`]:{[`${t}-simple-pager`]:{input:{width:e.paginationMiniQuickJumperInputWidth}}}}}},aO=e=>{let{componentCls:t,antCls:n}=e,[,r]=Za(n,`pagination`);return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:`relative`,[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:`auto`}},[`${t}-item-ellipsis`]:{position:`absolute`,top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:`block`,margin:`auto`,color:e.colorTextDisabled,letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:`center`,textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[`
240
240
  ${t}-prev,
241
241
  ${t}-jump-prev,
242
242
  ${t}-jump-next
@@ -245,44 +245,44 @@ html body {
245
245
  ${t}-next,
246
246
  ${t}-jump-prev,
247
247
  ${t}-jump-next
248
- `]:{display:`inline-block`,minWidth:r(`item-size-actual`),height:r(`item-size-actual`),color:e.colorText,fontFamily:e.fontFamily,lineHeight:r(`item-size-actual`),textAlign:`center`,verticalAlign:`middle`,listStyle:`none`,borderRadius:e.borderRadius,cursor:`pointer`,transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{outline:0,button:{color:e.colorText,cursor:`pointer`,userSelect:`none`},[`${t}-item-link`]:{display:`block`,width:`100%`,height:`100%`,padding:0,fontSize:e.fontSizeSM,textAlign:`center`,backgroundColor:`transparent`,border:`${X(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:`none`,transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:`transparent`}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:`inline-block`,marginInlineStart:e.margin,verticalAlign:`middle`,"&-size-changer":{width:`auto`},"&-quick-jumper":{display:`inline-block`,height:r(`item-size-actual`),marginInlineStart:e.marginXS,lineHeight:r(`item-size-actual`),verticalAlign:`baseline`,input:{...fw(e),...YC(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow}),"&[disabled]":{...JC(e)},width:e.quickJumperInputWidth,height:r(`item-size-actual`),boxSizing:`border-box`,margin:0,marginInlineStart:r(`item-spacing-actual`),marginInlineEnd:r(`item-spacing-actual`)}}}}},aO=e=>{let{componentCls:t,antCls:n}=e,[,r]=Za(n,`pagination`);return{[`${t}-item`]:{display:`inline-block`,minWidth:r(`item-size-actual`),height:r(`item-size-actual`),marginInlineEnd:r(`item-spacing-actual`),fontFamily:e.fontFamily,lineHeight:X(e.calc(r(`item-size-actual`)).sub(2).equal()),textAlign:`center`,verticalAlign:`middle`,listStyle:`none`,backgroundColor:e.itemBg,border:`${X(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:`pointer`,userSelect:`none`,a:{display:`block`,padding:`0 ${X(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}}}}},oO=e=>{let{componentCls:t,antCls:n}=e,[r,i]=Za(n,`pagination`);return{[t]:{[r(`item-size-actual`)]:X(e.itemSize),[r(`item-spacing-actual`)]:X(e.marginXS),"&-small":{[r(`item-size-actual`)]:X(e.itemSizeSM),[r(`item-spacing-actual`)]:X(e.marginXXS)},"&-large":{[r(`item-size-actual`)]:X(e.itemSizeLG),[r(`item-spacing-actual`)]:X(e.marginSM)},...za(e),display:`flex`,alignItems:`center`,"&-start":{justifyContent:`start`},"&-center":{justifyContent:`center`},"&-end":{justifyContent:`end`},"ul, ol":{margin:0,padding:0,listStyle:`none`},"&::after":{display:`block`,clear:`both`,height:0,overflow:`hidden`,visibility:`hidden`,content:`""`},[`${t}-total-text`]:{display:`inline-block`,height:i(`item-size-actual`),marginInlineEnd:i(`item-spacing-actual`),lineHeight:X(e.calc(i(`item-size-actual`)).sub(2).equal()),verticalAlign:`middle`},...aO(e),...iO(e),...rO(e),...tO(e),...nO(e),...eO(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`}}},sO=e=>{let{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:{...Ua(e)},[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0},...Ha(e)}},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Ha(e)}}}},cO=e=>({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemSizeLG:e.controlHeightLG,itemActiveBg:e.colorBgContainer,itemActiveColor:e.colorPrimary,itemActiveColorHover:e.colorPrimaryHover,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0,...KC(e)}),lO=e=>si(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`},GC(e)),uO=Ja(`Pagination`,e=>{let t=lO(e);return[oO(t),sO(t)]},cO),dO=e=>{let{componentCls:t}=e;return{[`${t}${t}-bordered${t}-disabled`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}${t}-bordered`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${X(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}}}}},fO=Xa([`Pagination`,`bordered`],e=>dO(lO(e)),cO);function pO(e){return(0,v.useMemo)(()=>typeof e==`boolean`?[e,{}]:sc(e)?[!0,e]:[void 0,void 0],[e])}var mO=e=>{let{align:t,prefixCls:n,selectPrefixCls:r,className:i,rootClassName:a,style:o,size:s,locale:c,responsive:l,showSizeChanger:u,selectComponentClass:d,pageSizeOptions:f,styles:p,classNames:m,...h}=e,{xs:g}=zb(l),[,_]=La(),{getPrefixCls:y,direction:b,showSizeChanger:x,className:S,style:C,classNames:w,styles:T,totalBoundaryShowSizeChanger:E}=Ze(`pagination`),D=y(`pagination`,n),[O,k]=uO(D),A=Ad(s),j=A===`small`||!!(g&&!A&&l),M={...e,size:A},[N,P]=Dc([w,m],[T,p],{props:M}),[F]=ec(`Pagination`,Ps),I={...F,...c},[L,R]=pO(u),[z,B]=pO(x),V=L??z,H=R??B,U=d||Mb,W=v.useMemo(()=>f?f.map(Number):void 0,[f]),ee=e=>{let{disabled:t,size:n,onSizeChange:r,"aria-label":i,className:a,options:o}=e,{className:s,onChange:c}=H||{},l=o.find(e=>String(e.value)===String(n))?.value;return v.createElement(U,{disabled:t,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:e=>e.parentNode,"aria-label":i,options:o,...H,value:l,onChange:(e,t)=>{r?.(e),c?.(e,t)},size:A,className:Y(a,s)})},te=v.useMemo(()=>{let e=v.createElement(`span`,{className:`${D}-item-ellipsis`},`•••`);return{prevIcon:v.createElement(`button`,{className:`${D}-item-link`,type:`button`,tabIndex:-1},b===`rtl`?v.createElement(Kf,null):v.createElement(Ax,null)),nextIcon:v.createElement(`button`,{className:`${D}-item-link`,type:`button`,tabIndex:-1},b===`rtl`?v.createElement(Ax,null):v.createElement(Kf,null)),jumpPrevIcon:v.createElement(`a`,{className:`${D}-item-link`},v.createElement(`div`,{className:`${D}-item-container`},b===`rtl`?v.createElement(UD,{className:`${D}-item-link-icon`}):v.createElement(BD,{className:`${D}-item-link-icon`}),e)),jumpNextIcon:v.createElement(`a`,{className:`${D}-item-link`},v.createElement(`div`,{className:`${D}-item-container`},b===`rtl`?v.createElement(BD,{className:`${D}-item-link-icon`}):v.createElement(UD,{className:`${D}-item-link-icon`}),e))}},[b,D]),G=y(`select`,r),ne=Y({[`${D}-${t}`]:!!t,[`${D}-${A}`]:A,[`${D}-mini`]:j,[`${D}-rtl`]:b===`rtl`,[`${D}-bordered`]:_.wireframe},S,i,a,N.root,O,k),re={...P.root,...C,...o};return v.createElement(v.Fragment,null,_.wireframe&&v.createElement(fO,{prefixCls:D}),v.createElement($D,{...te,...h,styles:P,classNames:N,style:re,prefixCls:D,selectPrefixCls:G,className:ne,locale:I,pageSizeOptions:W,showSizeChanger:V,totalBoundaryShowSizeChanger:h.totalBoundaryShowSizeChanger??E,sizeChangerRender:ee}))},hO=100,gO=hO/5,_O=hO/2-gO/2,vO=_O*2*Math.PI,yO=50,bO=e=>{let{dotClassName:t,style:n,hasCircleCls:r}=e;return v.createElement(`circle`,{className:Y(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:_O,cx:yO,cy:yO,strokeWidth:gO,style:n})},xO=({percent:e,prefixCls:t})=>{let n=`${t}-dot`,r=`${n}-holder`,i=`${r}-hidden`,[a,o]=v.useState(!1);S(()=>{e!==0&&o(!0)},[e!==0]);let s=Math.max(Math.min(e,100),0);if(!a)return null;let c={strokeDashoffset:`${vO/4}`,strokeDasharray:`${vO*s/100} ${vO*(100-s)/100}`};return v.createElement(`span`,{className:Y(r,`${n}-progress`,{[i]:s<=0})},v.createElement(`svg`,{viewBox:`0 0 ${hO} ${hO}`,role:`progressbar`,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":s},v.createElement(bO,{dotClassName:n,hasCircleCls:!0}),v.createElement(bO,{dotClassName:n,style:c})))};function SO(e){let{prefixCls:t,percent:n=0,className:r,style:i}=e,a=`${t}-dot`,o=`${a}-holder`,s=`${o}-hidden`;return v.createElement(v.Fragment,null,v.createElement(`span`,{className:Y(o,r,n>0&&s),style:i},v.createElement(`span`,{className:Y(a,`${t}-dot-spin`)},[1,2,3,4].map(e=>v.createElement(`i`,{className:`${t}-dot-item`,key:e})))),v.createElement(xO,{prefixCls:t,percent:n}))}function CO(e){let{prefixCls:t,indicator:n,percent:r,className:i,style:a}=e,o=`${t}-dot`;return n&&v.isValidElement(n)?ou(n,e=>({className:Y(e.className,o,i),style:{...e.style,...a},percent:r})):v.createElement(SO,{prefixCls:t,percent:r,className:i,style:a})}var wO=new Or(`antSpinMove`,{to:{opacity:1}}),TO=new Or(`antRotate`,{to:{transform:`rotate(405deg)`}}),EO=e=>{let{componentCls:t}=e,n=`${t}-section`;return{[t]:{...za(e),position:`relative`,"&-rtl":{direction:`rtl`},[`&${n}, ${n}`]:{display:`flex`,alignItems:`center`,flexDirection:`column`,gap:e.paddingSM,color:e.colorPrimary},[`&${n}`]:{display:`inline-flex`},[n]:{position:`absolute`,top:`50%`,left:{_skip_check_:!0,value:`50%`},transform:`translate(-50%, -50%)`,zIndex:1},[`${t}-description`]:{fontSize:e.fontSize,lineHeight:1},[`${t}-container`]:{position:`relative`,transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:`absolute`,top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:`100%`,height:`100%`,background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:`""`,pointerEvents:`none`}},"&-spinning":{[`${t}-description`]:{textShadow:`0 0px 5px ${e.colorBgContainer}`},[`${t}-container`]:{clear:`both`,opacity:.5,userSelect:`none`,pointerEvents:`none`,"&::after":{opacity:.4,pointerEvents:`auto`}}},"&-fullscreen":{position:`fixed`,inset:0,backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,opacity:0,pointerEvents:`none`,transition:`all ${e.motionDurationMid}`,[`&${t}-spinning`]:{opacity:1,pointerEvents:`auto`},[n]:{color:e.colorWhite,[`${t}-description`]:{color:e.colorTextLightSolid}}}}}},DO=e=>{let{componentCls:t,antCls:n,motionDurationSlow:r}=e,[i,a]=Za(n,`spin`);return{[t]:{[i(`dot-holder-size`)]:e.dotSize,[i(`dot-item-size`)]:`calc((${a(`dot-holder-size`)} - ${e.marginXXS} / 2) / 2)`,[`${t}-dot`]:{"&-holder":{width:`1em`,height:`1em`,fontSize:a(`dot-holder-size`),display:`inline-block`,transition:[`transform`,`opacity`].map(e=>`${e} ${r} ease`).join(`, `),transformOrigin:`50% 50%`,lineHeight:1,"&-hidden":{transform:`scale(0.3)`,opacity:0}},position:`relative`,display:`inline-block`,fontSize:a(`dot-holder-size`),width:`1em`,height:`1em`,"&-spin":{transform:`rotate(45deg)`,animationName:TO,animationDuration:`1.2s`,animationIterationCount:`infinite`,animationTimingFunction:`linear`},"&-item":{position:`absolute`,display:`block`,width:a(`dot-item-size`),height:a(`dot-item-size`),background:`currentColor`,borderRadius:`100%`,transform:`scale(0.75)`,transformOrigin:`50% 50%`,opacity:.3,animationName:wO,animationDuration:`1s`,animationIterationCount:`infinite`,animationTimingFunction:`linear`,animationDirection:`alternate`,"&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:`0s`},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:`0.4s`},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:`0.8s`},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:`1.2s`}},"&-progress":{position:`absolute`,left:`50%`,top:0,transform:`translateX(-50%)`},"&-circle":{strokeLinecap:`round`,transition:[`stroke-dashoffset`,`stroke-dasharray`,`stroke`,`stroke-width`,`opacity`].map(e=>`${e} ${r} ease`).join(`,`),fillOpacity:0,stroke:`currentcolor`},"&-circle-bg":{stroke:e.colorFillSecondary}}}}},OO=e=>{let{componentCls:t}=e,[n]=Za(e.antCls,`spin`);return{[t]:{"&-sm":{[n(`dot-holder-size`)]:e.dotSizeSM},"&-lg":{[n(`dot-holder-size`)]:e.dotSizeLG}}}},kO=Ja(`Spin`,e=>{let t=si(e,{spinDotDefault:e.colorTextDescription});return[EO(t),DO(t),OO(t)]},e=>{let{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:n}}),AO=200,jO=[[30,.05],[70,.03],[96,.01]];function MO(e,t){let[n,r]=v.useState(0),i=v.useRef(null),a=t===`auto`;return v.useEffect(()=>(a&&e&&(r(0),i.current=setInterval(()=>{r(e=>{let t=100-e;for(let n=0;n<jO.length;n+=1){let[r,i]=jO[n];if(e<=r)return e+t*i}return e})},AO)),()=>{i.current&&=(clearInterval(i.current),null)}),[a,e]),a?n:t}var NO;function PO(e,t){return!!e&&!!t&&!Number.isNaN(Number(t))}var FO=e=>{let{prefixCls:t,spinning:n=!0,delay:r=0,className:i,rootClassName:a,size:o,tip:s,description:c,wrapperClassName:l,style:u,children:d,fullscreen:f=!1,indicator:p,percent:m,classNames:h,styles:g,..._}=e,{getPrefixCls:y,direction:b,indicator:x,className:S,style:C,classNames:w,styles:T}=Ze(`spin`),E=y(`spin`,t),[D,O]=kO(E),[k,A]=v.useState(()=>n&&!PO(n,r)),j=MO(k,m);v.useEffect(()=>{if(n){let e=BT(r,()=>{A(!0)});return e(),()=>{e?.cancel?.()}}A(!1)},[r,n]);let M=Ad(e=>o??e),N=c??s,P={...e,size:M,spinning:k,tip:N,description:N,fullscreen:f,children:d,percent:j},[F,I]=Dc([w,h],[T,g],{props:P}),L=p??x??NO,R=d!==void 0,z=R||f,B=v.createElement(v.Fragment,null,v.createElement(CO,{className:Y(F.indicator),style:I.indicator,prefixCls:E,indicator:L,percent:j}),N&&v.createElement(`div`,{className:Y(`${E}-description`,F.tip,F.description),style:{...I.tip,...I.description}},N));return v.createElement(`div`,{className:Y(E,{[`${E}-sm`]:M===`small`,[`${E}-lg`]:M===`large`,[`${E}-spinning`]:k,[`${E}-rtl`]:b===`rtl`,[`${E}-fullscreen`]:f},a,F.root,f&&F.mask,z?l:[`${E}-section`,F.section],S,i,D,O),style:{...I.root,...z?{}:I.section,...f?I.mask:{},...C,...u},"aria-live":`polite`,"aria-busy":k,..._},k&&(z?v.createElement(`div`,{className:Y(`${E}-section`,F.section),style:I.section},B):B),R&&v.createElement(`div`,{className:Y(`${E}-container`,F.container),style:I.container},d))};FO.setDefaultIndicator=e=>{NO=e};var IO=v.createContext({});IO.Consumer;var LO=({prefixCls:e,className:t,avatar:n,title:r,description:i,...a})=>{let{getPrefixCls:o}=(0,v.useContext)(Je),s=o(`list`,e),c=Y(`${s}-item-meta`,t),l=v.createElement(`div`,{className:`${s}-item-meta-content`},r&&v.createElement(`h4`,{className:`${s}-item-meta-title`},r),i&&v.createElement(`div`,{className:`${s}-item-meta-description`},i));return v.createElement(`div`,{...a,className:c},n&&v.createElement(`div`,{className:`${s}-item-meta-avatar`},n),(r||i)&&l)},RO=v.forwardRef((e,t)=>{let{prefixCls:n,children:r,actions:i,extra:a,styles:o,className:s,classNames:c,colStyle:l,...u}=e,{grid:d,itemLayout:f}=(0,v.useContext)(IO),{getPrefixCls:p,list:m}=(0,v.useContext)(Je),h=e=>Y(m?.item?.classNames?.[e],c?.[e]),g=e=>({...m?.item?.styles?.[e],...o?.[e]}),_=()=>{let e=de(r);return e.some(e=>typeof e==`string`)&&e.length>1},y=()=>f===`vertical`?!!a:!_(),b=p(`list`,n),x=i&&i.length>0&&v.createElement(`ul`,{className:Y(`${b}-item-action`,h(`actions`)),key:`actions`,style:g(`actions`)},i.map((e,t)=>v.createElement(`li`,{key:`${b}-item-action-${t}`},e,t!==i.length-1&&v.createElement(`em`,{className:`${b}-item-action-split`})))),S=d?`div`:`li`,C=v.createElement(S,{...u,...d?{}:{ref:t},className:Y(`${b}-item`,{[`${b}-item-no-flex`]:!y()},s)},f===`vertical`&&a?[v.createElement(`div`,{className:`${b}-item-main`,key:`content`},r,x),v.createElement(`div`,{className:Y(`${b}-item-extra`,h(`extra`)),key:`extra`,style:g(`extra`)},a)]:[r,x,ou(a,{key:`extra`})]);return d?v.createElement(UT,{ref:t,flex:1,style:l},C):C});RO.Meta=LO;var zO=e=>{let{listBorderedCls:t,componentCls:n,paddingLG:r,margin:i,itemPaddingSM:a,itemPaddingLG:o,marginLG:s,borderRadiusLG:c}=e,l=X(e.calc(c).sub(e.lineWidth).equal());return{[t]:{border:`${X(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:c,[`${n}-header`]:{borderRadius:`${l} ${l} 0 0`},[`${n}-footer`]:{borderRadius:`0 0 ${l} ${l}`},[`${n}-header,${n}-footer,${n}-item`]:{paddingInline:r},[`${n}-pagination`]:{margin:`${X(i)} ${X(s)}`}},[`${t}${n}-sm`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:a}},[`${t}${n}-lg`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:o}}}},BO=e=>{let{componentCls:t,screenSM:n,screenMD:r,marginLG:i,marginSM:a,margin:o}=e;return{[`@media screen and (max-width:${r}px)`]:{[t]:{[`${t}-item`]:{[`${t}-item-action`]:{marginInlineStart:i}}},[`${t}-vertical`]:{[`${t}-item`]:{[`${t}-item-extra`]:{marginInlineStart:i}}}},[`@media screen and (max-width: ${n}px)`]:{[t]:{[`${t}-item`]:{flexWrap:`wrap`,[`${t}-action`]:{marginInlineStart:a}}},[`${t}-vertical`]:{[`${t}-item`]:{flexWrap:`wrap-reverse`,[`${t}-item-main`]:{minWidth:e.contentWidth},[`${t}-item-extra`]:{margin:`auto auto ${X(o)}`}}}}}},VO=e=>{let{componentCls:t,antCls:n,controlHeight:r,minHeight:i,paddingSM:a,marginLG:o,padding:s,itemPadding:c,colorPrimary:l,itemPaddingSM:u,itemPaddingLG:d,paddingXS:f,margin:p,colorText:m,colorTextDescription:h,motionDurationSlow:g,lineWidth:_,headerBg:v,footerBg:y,emptyTextPadding:b,metaMarginBottom:x,avatarMarginRight:S,titleMarginBottom:C,descriptionFontSize:w}=e;return{[t]:{...za(e),position:`relative`,"--rc-virtual-list-scrollbar-bg":e.colorSplit,"*":{outline:`none`},[`${t}-header`]:{background:v},[`${t}-footer`]:{background:y},[`${t}-header, ${t}-footer`]:{paddingBlock:a},[`${t}-pagination`]:{marginBlockStart:o,[`${n}-pagination-options`]:{textAlign:`start`}},[`${t}-spin`]:{minHeight:i,textAlign:`center`},[`${t}-items`]:{margin:0,padding:0,listStyle:`none`},[`${t}-item`]:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,padding:c,color:m,[`${t}-item-meta`]:{display:`flex`,flex:1,alignItems:`flex-start`,maxWidth:`100%`,[`${t}-item-meta-avatar`]:{marginInlineEnd:S},[`${t}-item-meta-content`]:{flex:`1 0`,width:0,color:m},[`${t}-item-meta-title`]:{margin:`0 0 ${X(e.marginXXS)} 0`,color:m,fontSize:e.fontSize,lineHeight:e.lineHeight,"> a":{color:m,transition:`all ${g}`,"&:hover":{color:l}}},[`${t}-item-meta-description`]:{color:h,fontSize:w,lineHeight:e.lineHeight}},[`${t}-item-action`]:{flex:`0 0 auto`,marginInlineStart:e.marginXXL,padding:0,fontSize:0,listStyle:`none`,"& > li":{position:`relative`,display:`inline-block`,padding:`0 ${X(f)}`,color:h,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:`center`,"&:first-child":{paddingInlineStart:0}},[`${t}-item-action-split`]:{position:`absolute`,insetBlockStart:`50%`,insetInlineEnd:0,width:_,height:e.calc(e.fontHeight).sub(e.calc(e.marginXXS).mul(2)).equal(),transform:`translateY(-50%)`,backgroundColor:e.colorSplit}}},[`${t}-empty`]:{padding:`${X(s)} 0`,color:h,fontSize:e.fontSizeSM,textAlign:`center`},[`${t}-empty-text`]:{padding:b,color:e.colorTextDisabled,fontSize:e.fontSize,textAlign:`center`},[`${t}-item-no-flex`]:{display:`block`}},[`${t}-grid ${n}-col > ${t}-item`]:{display:`block`,maxWidth:`100%`,marginBlockEnd:p,paddingBlock:0,borderBlockEnd:`none`},[`${t}-vertical ${t}-item`]:{alignItems:`initial`,[`${t}-item-main`]:{display:`block`,flex:1},[`${t}-item-extra`]:{marginInlineStart:o},[`${t}-item-meta`]:{marginBlockEnd:x,[`${t}-item-meta-title`]:{marginBlockStart:0,marginBlockEnd:C,color:m,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}},[`${t}-item-action`]:{marginBlockStart:s,marginInlineStart:`auto`,"> li":{padding:`0 ${X(s)}`,"&:first-child":{paddingInlineStart:0}}}},[`${t}-split ${t}-item`]:{borderBlockEnd:`${X(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBlockEnd:`none`}},[`${t}-split ${t}-header`]:{borderBlockEnd:`${X(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-split${t}-empty ${t}-footer`]:{borderTop:`${X(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:`${X(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-lg ${t}-item`]:{padding:d},[`${t}-sm ${t}-item`]:{padding:u},[`${t}:not(${t}-vertical)`]:{[`${t}-item-no-flex`]:{[`${t}-item-action`]:{float:`right`}}}}},HO=Ja(`List`,e=>{let t=si(e,{listBorderedCls:`${e.componentCls}-bordered`,minHeight:e.controlHeightLG});return[VO(t),zO(t),BO(t)]},e=>({contentWidth:220,itemPadding:`${X(e.paddingContentVertical)} 0`,itemPaddingSM:`${X(e.paddingContentVerticalSM)} ${X(e.paddingContentHorizontal)}`,itemPaddingLG:`${X(e.paddingContentVerticalLG)} ${X(e.paddingContentHorizontalLG)}`,headerBg:`transparent`,footerBg:`transparent`,emptyTextPadding:e.padding,metaMarginBottom:e.padding,avatarMarginRight:e.padding,titleMarginBottom:e.paddingSM,descriptionFontSize:e.fontSize}),{extraCssVarPrefixCls:({prefixCls:e})=>[`${e}-container`]}),UO=v.forwardRef((e,t)=>{let{pagination:n=!1,prefixCls:r,bordered:i=!1,split:a=!0,className:o,rootClassName:s,style:c,children:l,itemLayout:u,loadMore:d,grid:f,dataSource:p=[],size:m,header:h,footer:g,loading:_=!1,rowKey:y,renderItem:b,locale:x,...S}=e,C=sc(n)?n:{},[w,T]=v.useState(C.defaultCurrent||1),[E,D]=v.useState(C.defaultPageSize||10),{getPrefixCls:O,direction:k,className:A,style:j}=Ze(`list`),{renderEmpty:M}=v.useContext(Je),N={current:1,total:0,position:`bottom`},P=e=>(t,r)=>{T(t),D(r),n&&n?.[e]?.(t,r)},F=P(`onChange`),I=P(`onShowSizeChange`),L=(e,t)=>{if(!b)return null;let n;return n=typeof y==`function`?y(e):y?e[y]:e.key,n||=`list-item-${t}`,v.createElement(v.Fragment,{key:n},b(e,t))},R=!!(d||n||g),z=O(`list`,r),[B,V]=HO(z),H=_;typeof H==`boolean`&&(H={spinning:H});let U=!!H?.spinning,W=Ad(m),ee=``;switch(W){case`large`:ee=`lg`;break;case`small`:ee=`sm`;break;default:break}let te=Y(z,{[`${z}-vertical`]:u===`vertical`,[`${z}-${ee}`]:ee,[`${z}-split`]:a,[`${z}-bordered`]:i,[`${z}-loading`]:U,[`${z}-grid`]:!!f,[`${z}-something-after-last-item`]:R,[`${z}-rtl`]:k===`rtl`},A,o,s,B,V),G=`${z}-container`,ne=rc(N,{total:p.length,current:w,pageSize:E},n||{}),re=Math.ceil(ne.total/ne.pageSize);ne.current=Math.min(ne.current,re);let ie=n&&v.createElement(`div`,{className:Y(`${z}-pagination`)},v.createElement(mO,{align:`end`,...ne,onChange:F,onShowSizeChange:I})),K=ze(p);n&&p.length>(ne.current-1)*ne.pageSize&&(K=ze(p).splice((ne.current-1)*ne.pageSize,ne.pageSize));let q=zb(Object.keys(f||{}).some(e=>Pb.includes(e))),ae=v.useMemo(()=>{for(let e=0;e<Pb.length;e+=1){let t=Pb[e];if(q[t])return t}},[q]),oe=v.useMemo(()=>{if(!f)return;let e=ae&&f[ae]?f[ae]:f.column;if(e)return{width:`${100/e}%`,maxWidth:`${100/e}%`}},[JSON.stringify(f),ae]),se=U&&v.createElement(`div`,{style:{minHeight:53}});if(K.length>0){let e=K.map(L);se=f?v.createElement(KT,{className:Y(G,V),gutter:f.gutter},v.Children.map(e,e=>v.createElement(`div`,{key:e?.key,style:oe},e))):v.createElement(`ul`,{className:Y(`${z}-items`,G,V)},e)}else !l&&!U&&(se=v.createElement(`div`,{className:`${z}-empty-text`},x?.emptyText||M?.(`List`)||v.createElement(rb,{componentName:`List`})));let J=ne.position,ce=v.useMemo(()=>({grid:f,itemLayout:u}),[JSON.stringify(f),u]);return v.createElement(IO.Provider,{value:ce},v.createElement(`div`,{ref:t,style:{...j,...c},className:te,...S},(J===`top`||J===`both`)&&ie,h&&v.createElement(`div`,{className:`${z}-header`},h),v.createElement(FO,{...H},se,l),g&&v.createElement(`div`,{className:`${z}-footer`},g),d||(J===`bottom`||J===`both`)&&ie))});UO.Item=RO;var WO=(e,t={})=>!ic(e)&&t?.skipEmpty?[]:Array.isArray(e)?e:[e],GO=J_(e=>{let{prefixCls:t,className:n,closeIcon:r,closable:i,type:a,title:o,children:s,footer:c,classNames:l,styles:u,...d}=e,{getPrefixCls:f}=v.useContext(Je),{className:p,style:m,classNames:h,styles:g}=Ze(`modal`),_=f(),y=t||f(`modal`),b=Yc(_),[x,S]=qg(y,b),[C,w]=Dc([h,l],[g,u],{props:e}),T=`${y}-confirm`,E={};return E=a?{closable:i??!1,title:``,footer:``,children:v.createElement(Qg,{...e,prefixCls:y,confirmPrefixCls:T,rootPrefixCls:_,content:s})}:{closable:i??!0,title:o,footer:c!==null&&v.createElement(kg,{...e}),children:s},v.createElement(Wp,{prefixCls:y,className:Y(x,`${y}-pure-panel`,a&&T,a&&`${T}-${a}`,n,p,S,b,C.root),style:{...m,...w.root},...d,closeIcon:Og(y,r),closable:i,classNames:C,styles:w,...E})});function KO(e){return a_(o_(e))}var qO=Yg;qO.useModal=h_,qO.info=function(e){return a_(s_(e))},qO.success=function(e){return a_(c_(e))},qO.error=function(e){return a_(l_(e))},qO.warning=KO,qO.warn=KO,qO.confirm=function(e){return a_(u_(e))},qO.destroyAll=function(){for(;t_.length;){let e=t_.pop();e&&e()}},qO.config=d_,qO._InternalPanelDoNotUseOrYouWillBeFired=GO;var JO=Ja(`Popconfirm`,e=>{let{componentCls:t,iconCls:n,antCls:r,zIndexPopup:i,colorText:a,colorWarning:o,marginXXS:s,marginXS:c,fontSize:l,fontWeightStrong:u,colorTextHeading:d}=e;return{[t]:{zIndex:i,[`&${r}-popover`]:{fontSize:l},[`${t}-message`]:{marginBottom:c,display:`flex`,flexWrap:`nowrap`,alignItems:`start`,[`> ${t}-message-icon ${n}`]:{color:o,fontSize:l,lineHeight:1,marginInlineEnd:c},[`${t}-title`]:{fontWeight:u,color:d,"&:only-child":{fontWeight:`normal`}},[`${t}-description`]:{marginTop:s,color:a}},[`${t}-buttons`]:{textAlign:`end`,whiteSpace:`nowrap`,button:{marginInlineStart:c}}}}},e=>{let{zIndexPopupBase:t}=e;return{zIndexPopup:t+60}},{resetStyle:!1}),YO=e=>{let{prefixCls:t,okButtonProps:n,cancelButtonProps:r,title:i,description:a,cancelText:o,okText:s,okType:c=`primary`,icon:l=v.createElement(No,null),showCancel:u=!0,close:d,onConfirm:f,onCancel:p,onPopupClick:m,classNames:h,styles:g}=e,{getPrefixCls:_}=v.useContext(Je),[y]=ec(`Popconfirm`,qs.Popconfirm),b=Bb(i),x=Bb(a);return v.createElement(`div`,{className:`${t}-inner-content`,onClick:m},v.createElement(`div`,{className:`${t}-message`},l&&v.createElement(`span`,{className:`${t}-message-icon`},l),v.createElement(`div`,{className:`${t}-message-text`},b&&v.createElement(`div`,{className:Y(`${t}-title`,h?.title),style:g?.title},b),x&&v.createElement(`div`,{className:Y(`${t}-description`,h?.content),style:g?.content},x))),v.createElement(`div`,{className:`${t}-buttons`},u&&v.createElement(_p,{onClick:p,size:`small`,...r},o||y?.cancelText),v.createElement(vp,{buttonProps:{size:`small`,...Vd(c),...n},actionFn:f,close:d,prefixCls:_(`btn`),quitOnNullishReturnValue:!0,emitEvent:!0},s||y?.okText)))},XO=e=>{let{prefixCls:t,placement:n,className:r,style:i,...a}=e,{getPrefixCls:o}=v.useContext(Je),s=o(`popconfirm`,t);return JO(s),v.createElement(Cx,{placement:n,className:Y(s,r),style:i,content:v.createElement(YO,{prefixCls:s,...a})})},ZO=v.forwardRef((e,t)=>{let{prefixCls:n,placement:r=`top`,trigger:i,okType:a=`primary`,icon:o=v.createElement(No,null),children:s,overlayClassName:c,onOpenChange:l,overlayStyle:u,styles:d,arrow:f,classNames:p,...m}=e,{getPrefixCls:h,className:g,style:_,classNames:y,styles:b,arrow:x,trigger:S}=Ze(`popconfirm`),[C,w]=T(e.defaultOpen??!1,e.open),E=ax(f,x),D=i||S||`click`,O=e=>{w(e),l?.(e)},k=()=>{O(!1)},A=t=>e.onConfirm?.call(void 0,t),j=t=>{O(!1),e.onCancel?.call(void 0,t)},M=t=>{let{disabled:n=!1}=e;n||O(t)},N=h(`popconfirm`,n),P={...e,placement:r,trigger:D,okType:a,overlayStyle:u,styles:d,classNames:p},[F,I]=Dc([y,p],[b,d],{props:P}),L=Y(N,g,c,F.root);return JO(N),v.createElement(wx,{arrow:E,...ue(m,[`title`]),trigger:D,placement:r,onOpenChange:M,open:C,ref:t,classNames:{root:L,container:F.container,arrow:F.arrow},styles:{root:{..._,...I.root,...u},container:I.container,arrow:I.arrow},content:v.createElement(YO,{okType:a,icon:o,...e,prefixCls:N,close:k,onConfirm:A,onCancel:j,classNames:F,styles:I}),"data-popover-inject":!0},s)});ZO._InternalPanelDoNotUseOrYouWillBeFired=XO;var QO={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 $O(){return $O=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$O.apply(this,arguments)}var ek=v.forwardRef((e,t)=>v.createElement(So,$O({},e,{ref:t,icon:QO})));function tk(){return tk=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},tk.apply(this,arguments)}var nk=v.forwardRef(({prefixCls:e=`rc-switch`,className:t,checked:n,defaultChecked:r,disabled:i,loadingIcon:a,checkedChildren:o,unCheckedChildren:s,onClick:c,onChange:l,onKeyDown:u,styles:d,classNames:f,...p},m)=>{let[h,g]=T(r??!1,n);function _(e,t){let n=h;return i||(n=e,g(n),l?.(n,t)),n}function y(e){e.which===Z.LEFT?_(!1,e):e.which===Z.RIGHT&&_(!0,e),u?.(e)}function b(e){let t=_(!h,e);c?.(t,e)}let x=Y(e,t,{[`${e}-checked`]:h,[`${e}-disabled`]:i});return v.createElement(`button`,tk({},p,{type:`button`,role:`switch`,"aria-checked":h,disabled:i,className:x,ref:m,onKeyDown:y,onClick:b}),a,v.createElement(`span`,{className:`${e}-inner`},v.createElement(`span`,{className:Y(`${e}-inner-checked`,f?.content),style:d?.content},o),v.createElement(`span`,{className:Y(`${e}-inner-unchecked`,f?.content),style:d?.content},s)))});nk.displayName=`Switch`;var rk=e=>{let{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:i,innerMinMarginSM:a,innerMaxMarginSM:o,handleSizeSM:s,calc:c}=e,l=`${t}-inner`,u=X(c(s).add(c(r).mul(2)).equal()),d=X(c(o).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:i,height:n,lineHeight:X(n),[`${t}-inner`]:{paddingInlineStart:o,paddingInlineEnd:a,[`${l}-checked, ${l}-unchecked`]:{minHeight:n},[`${l}-checked`]:{marginInlineStart:`calc(-100% + ${u} - ${d})`,marginInlineEnd:`calc(100% - ${u} + ${d})`},[`${l}-unchecked`]:{marginTop:c(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:s,height:s},[`${t}-loading-icon`]:{top:c(c(s).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:a,paddingInlineEnd:o,[`${l}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${l}-unchecked`]:{marginInlineStart:`calc(100% - ${u} + ${d})`,marginInlineEnd:`calc(-100% + ${u} - ${d})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${X(c(s).add(r).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${l}`]:{[`${l}-unchecked`]:{marginInlineStart:c(e.marginXXS).div(2).equal(),marginInlineEnd:c(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${l}`]:{[`${l}-checked`]:{marginInlineStart:c(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:c(e.marginXXS).div(2).equal()}}}}}}},ik=e=>{let{componentCls:t,handleSize:n,calc:r}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:`relative`,top:r(r(n).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:`top`},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},ak=e=>{let{componentCls:t,trackPadding:n,handleBg:r,handleShadow:i,handleSize:a,calc:o}=e,s=`${t}-handle`;return{[t]:{[s]:{position:`absolute`,top:n,insetInlineStart:n,width:a,height:a,transition:`all ${e.switchDuration} ease-in-out`,...xf(),"&::before":{position:`absolute`,top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:r,borderRadius:o(a).div(2).equal(),boxShadow:i,transition:`all ${e.switchDuration} ease-in-out`,content:`""`,...xf()}},[`&${t}-checked ${s}`]:{insetInlineStart:`calc(100% - ${X(o(a).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${s}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${s}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},ok=e=>{let{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:i,innerMaxMargin:a,handleSize:o,switchDuration:s,calc:c}=e,l=`${t}-inner`,u=X(c(o).add(c(r).mul(2)).equal()),d=X(c(a).mul(2).equal());return{[t]:{[l]:{display:`block`,overflow:`hidden`,borderRadius:100,height:`100%`,paddingInlineStart:a,paddingInlineEnd:i,transition:[`padding-inline-start`,`padding-inline-end`].map(e=>`${e} ${s} ease-in-out`).join(`, `),...xf(),[`${l}-checked, ${l}-unchecked`]:{display:`block`,color:e.colorTextLightSolid,fontSize:e.fontSizeSM,pointerEvents:`none`,minHeight:n,transition:[`margin-inline-start`,`margin-inline-end`].map(e=>`${e} ${s} ease-in-out`).join(`, `),...xf()},[`${l}-checked`]:{marginInlineStart:`calc(-100% + ${u} - ${d})`,marginInlineEnd:`calc(100% - ${u} + ${d})`},[`${l}-unchecked`]:{marginTop:c(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${l}`]:{paddingInlineStart:i,paddingInlineEnd:a,[`${l}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${l}-unchecked`]:{marginInlineStart:`calc(100% - ${u} + ${d})`,marginInlineEnd:`calc(-100% + ${u} - ${d})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${l}`]:{[`${l}-unchecked`]:{marginInlineStart:c(r).mul(2).equal(),marginInlineEnd:c(r).mul(-1).mul(2).equal()}},[`&${t}-checked ${l}`]:{[`${l}-checked`]:{marginInlineStart:c(r).mul(-1).mul(2).equal(),marginInlineEnd:c(r).mul(2).equal()}}}}}},sk=e=>{let{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:{...za(e),position:`relative`,display:`inline-block`,boxSizing:`border-box`,minWidth:r,height:n,lineHeight:X(n),verticalAlign:`middle`,background:e.colorTextQuaternary,border:`0`,borderRadius:100,cursor:`pointer`,transition:`all ${e.motionDurationMid}`,userSelect:`none`,...xf(),[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary},...Ua(e),[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:`not-allowed`,opacity:e.switchDisabledOpacity,"*":{boxShadow:`none`,cursor:`not-allowed`}},[`&${t}-rtl`]:{direction:`rtl`}}}},ck=Ja(`Switch`,e=>{let t=si(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:`-30%`});return[sk(t),ok(t),ak(t),ik(t),rk(t)]},e=>{let{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:i}=e,a=t*n,o=r/2,s=a-4,c=o-4;return{trackHeight:a,trackHeightSM:o,trackMinWidth:s*2+8,trackMinWidthSM:c*2+4,trackPadding:2,handleBg:i,handleSize:s,handleSizeSM:c,handleShadow:`0 2px 4px 0 ${new ki(`#00230b`).setA(.2).toRgbString()}`,innerMinMargin:s/2,innerMaxMargin:s+2+4,innerMinMarginSM:c/2,innerMaxMarginSM:c+2+4}}),lk=v.forwardRef((e,t)=>{let{prefixCls:n,size:r,disabled:i,loading:a,className:o,rootClassName:s,style:c,checked:l,value:u,defaultChecked:d,defaultValue:f,onChange:p,styles:m,classNames:h,...g}=e,[_,y]=T(d??f??!1,l??u),{getPrefixCls:b,direction:x,className:S,style:C,classNames:w,styles:E}=Ze(`switch`),D=v.useContext(du),O=(i??D)||a,k=b(`switch`,n),[A,j]=ck(k),M=Ad(r),N={...e,size:M,disabled:O},[P,F]=Dc([w,h],[E,m],{props:N}),I=v.createElement(`div`,{className:Y(`${k}-handle`,P.indicator),style:F.indicator},a&&v.createElement(Yu,{className:`${k}-loading-icon`})),L=Y(S,{[`${k}-small`]:M===`small`,[`${k}-loading`]:a,[`${k}-rtl`]:x===`rtl`},o,s,P.root,A,j),R={...F.root,...C,...c},z=(...e)=>{y(e[0]),p?.(...e)};return v.createElement(kd,{component:`Switch`,disabled:O},v.createElement(nk,{...g,classNames:P,styles:F,checked:_,onChange:z,prefixCls:k,className:L,style:R,disabled:O,ref:t,loadingIcon:I}))});lk.__ANT_SWITCH=!0;var uk={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 dk(){return dk=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},dk.apply(this,arguments)}var fk=v.forwardRef((e,t)=>v.createElement(So,dk({},e,{ref:t,icon:uk}))),pk={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z`}}]},name:`folder-open`,theme:`outlined`};function mk(){return mk=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},mk.apply(this,arguments)}var hk=v.forwardRef((e,t)=>v.createElement(So,mk({},e,{ref:t,icon:pk}))),gk={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z`}}]},name:`folder`,theme:`outlined`};function _k(){return _k=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},_k.apply(this,arguments)}var vk=v.forwardRef((e,t)=>v.createElement(So,_k({},e,{ref:t,icon:gk}))),yk=e=>{let{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:i,calc:a}=e,o=a(r).sub(n).equal(),s=a(t).sub(n).equal();return{[i]:{...za(e),display:`inline-block`,height:`auto`,paddingInline:o,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:`nowrap`,backgroundColor:e.defaultBg,border:`${X(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:`start`,position:`relative`,[`&${i}-rtl`]:{direction:`rtl`},"&, a, a:hover":{color:e.defaultColor},[`${i}-close-icon`]:{marginInlineStart:s,fontSize:e.tagIconSize,color:e.colorIcon,cursor:`pointer`,transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},"&-checkable":{backgroundColor:`transparent`,borderColor:`transparent`,cursor:`pointer`,[`&:not(${i}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive},"&-disabled":{cursor:`not-allowed`,[`&:not(${i}-checkable-checked)`]:{color:e.colorTextDisabled,"&:hover":{backgroundColor:`transparent`}},[`&${i}-checkable-checked`]:{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled},"&:hover, &:active":{backgroundColor:e.colorBgContainerDisabled,color:e.colorTextDisabled},[`&:not(${i}-checkable-checked):hover`]:{color:e.colorTextDisabled}},"&-group":{display:`flex`,flexWrap:`wrap`,gap:e.paddingXS}},"&-hidden":{display:`none`},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:o}},[`&${e.componentCls}-solid`]:{borderColor:`transparent`,color:e.colorTextLightSolid,backgroundColor:e.colorBgSolid,[`&${i}-default`]:{color:e.solidTextColor}},[`${i}-filled`]:{borderColor:`transparent`,backgroundColor:e.tagBorderlessBg},[`&${i}-disabled`]:{color:e.colorTextDisabled,cursor:`not-allowed`,backgroundColor:e.colorBgContainerDisabled,a:{cursor:`not-allowed`,pointerEvents:`none`,color:e.colorTextDisabled,"&:hover":{color:e.colorTextDisabled}},"a&":{"&:hover, &:active":{color:e.colorTextDisabled}},[`&${i}-outlined`]:{borderColor:e.colorBorderDisabled},[`&${i}-solid, &${i}-filled`]:{color:e.colorTextDisabled,[`${i}-close-icon`]:{color:e.colorTextDisabled}},[`${i}-close-icon`]:{cursor:`not-allowed`,color:e.colorTextDisabled,"&:hover":{color:e.colorTextDisabled}}}}},bk=e=>{let{lineWidth:t,fontSizeIcon:n,calc:r}=e,i=e.fontSizeSM;return si(e,{tagFontSize:i,tagLineHeight:X(r(e.lineHeightSM).mul(i).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},xk=e=>{let t=Yf(new Uf(e.colorBgSolid),`#fff`)?`#000`:`#fff`;return{defaultBg:new ki(e.colorFillTertiary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText,solidTextColor:t}},Sk=Ja(`Tag`,e=>yk(bk(e)),xk),Ck=v.forwardRef((e,t)=>{let{prefixCls:n,style:r,className:i,checked:a,children:o,icon:s,onChange:c,onClick:l,disabled:u,...d}=e,{getPrefixCls:f,tag:p}=v.useContext(Je),m=v.useContext(du),h=u??m,g=e=>{h||(c?.(!a),l?.(e))},_=f(`tag`,n),[y,b]=Sk(_),x=Y(_,`${_}-checkable`,{[`${_}-checkable-checked`]:a,[`${_}-checkable-disabled`]:h},p?.className,i,y,b);return v.createElement(`span`,{...d,ref:t,style:{...r,...p?.style},className:x,onClick:g},s,v.createElement(`span`,null,o))}),wk=v.forwardRef((e,t)=>{let{id:n,prefixCls:r,rootClassName:i,className:a,style:o,classNames:s,styles:c,disabled:l,options:u,value:d,defaultValue:f,onChange:p,multiple:m,...h}=e,{getPrefixCls:g,direction:_,className:y,style:b,classNames:x,styles:S}=Ze(`tag`),C=g(`tag`,r),w=`${C}-checkable-group`,[E,D]=Sk(C,Yc(C)),[O,k]=Dc([x,s],[S,c],{props:e}),A=(0,v.useMemo)(()=>Array.isArray(u)?u.map(e=>sc(e)?e:{value:e,label:e}):[],[u]),[j,M]=T(f,d),N=(e,t)=>{let n=null;if(m){let r=j||[];n=e?[].concat(ze(r),[t.value]):r.filter(e=>e!==t.value)}else n=e?t.value:null;M(n),p?.(n)},P=v.useRef(null);(0,v.useImperativeHandle)(t,()=>({nativeElement:P.current}));let F=Ns(h,{aria:!0,data:!0});return v.createElement(`div`,{...F,className:Y(w,y,i,{[`${w}-disabled`]:l,[`${w}-rtl`]:_===`rtl`},E,D,a,O.root),style:{...b,...k.root,...o},id:n,ref:P},A.map(e=>v.createElement(Ck,{key:e.value,className:Y(`${w}-item`,O.item),style:k.item,checked:m?(j||[]).includes(e.value):j===e.value,onChange:t=>N(t,e),disabled:l},e.label)))});function Tk(e,t){let{color:n,variant:r,bordered:i}=e;return v.useMemo(()=>{let e=n?.endsWith(`-inverse`),a;a=r||(e?`solid`:i===!1?`filled`:t||`filled`);let o=e?n?.replace(`-inverse`,``):n,s=fx(n),c=px(n),l={};if(!s&&!c&&o)if(a===`solid`)l.backgroundColor=n;else{let e=new ki(o).toHsl();e.l=.95,l.backgroundColor=new ki(e).toHexString(),l.color=n,a===`outlined`&&(l.borderColor=n)}return[a,o,s,c,l]},[n,r,i,t])}var Ek=e=>Qa(e,(t,{textColor:n,lightBorderColor:r,lightColor:i,darkColor:a})=>({[`${e.componentCls}${e.componentCls}-${t}:not(${e.componentCls}-disabled)`]:{[`&${e.componentCls}-outlined`]:{backgroundColor:i,borderColor:r,color:n},[`&${e.componentCls}-solid`]:{backgroundColor:a,borderColor:a,color:e.colorTextLightSolid},[`&${e.componentCls}-filled`]:{backgroundColor:i,color:n}}})),Dk=Xa([`Tag`,`preset`],e=>Ek(bk(e)),xk);function Ok(e){return typeof e==`string`?e.charAt(0).toUpperCase()+e.slice(1):e}var kk=(e,t,n)=>{let r=Ok(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}`]}}}},Ak=Xa([`Tag`,`status`],e=>{let t=bk(e);return[kk(t,`success`,`Success`),kk(t,`processing`,`Info`),kk(t,`error`,`Error`),kk(t,`warning`,`Warning`)]},xk),jk=v.forwardRef((e,t)=>{let{prefixCls:n,className:r,rootClassName:i,style:a,children:o,icon:s,color:c,variant:l,onClose:u,bordered:d,disabled:f,href:p,target:m,styles:h,classNames:g,..._}=e,{getPrefixCls:y,direction:b,className:x,variant:S,style:C,classNames:w,styles:T}=Ze(`tag`),[E,D,O,k,A]=Tk(e,S),j=O||k,M=v.useContext(du),N=f??M,{tag:P}=v.useContext(Je),[F,I]=v.useState(!0),L=ue(_,[`closeIcon`,`closable`]),R={...e,color:D,variant:E,disabled:N},[z,B]=Dc([w,g],[T,h],{props:R}),V=v.useMemo(()=>{let e={...B.root,...C,...a};return N||(e={...A,...e}),e},[B.root,C,a,A,N]),H=y(`tag`,n),[U,W]=Sk(H),ee=Y(H,x,z.root,`${H}-${E}`,{[`${H}-${D}`]:j,[`${H}-hidden`]:!F,[`${H}-rtl`]:b===`rtl`,[`${H}-disabled`]:N},r,i,U,W),te=e=>{N||(e.stopPropagation(),u?.(e),!e.defaultPrevented&&I(!1))},[,G]=_c(dc(e),dc(P),{closable:!1,closeIconRender:e=>au(e,v.createElement(`span`,{className:`${H}-close-icon`,onClick:te},e),e=>({onClick:t=>{e?.onClick?.(t),te(t)},className:Y(e?.className,`${H}-close-icon`)}))}),ne=typeof _.onClick==`function`||o&&o.type===`a`,re=ou(s,{className:Y(v.isValidElement(s)?s.props?.className:void 0,z.icon),style:B.icon}),ie=re?v.createElement(v.Fragment,null,re,o&&v.createElement(`span`,{className:z.content,style:B.content},o)):o,K=p?`a`:`span`,q=v.createElement(K,{...L,ref:t,className:ee,style:V,href:N?void 0:p,target:m,onClick:N?void 0:L.onClick,...p&&N?{"aria-disabled":!0}:{}},ie,G,O&&v.createElement(Dk,{key:`preset`,prefixCls:H}),k&&v.createElement(Ak,{key:`status`,prefixCls:H}));return ne?v.createElement(kd,{component:`Tag`},q):q});jk.CheckableTag=Ck,jk.CheckableTagGroup=wk;var Mk={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 Nk(){return Nk=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Nk.apply(this,arguments)}var Pk=v.forwardRef((e,t)=>v.createElement(So,Nk({},e,{ref:t,icon:Mk}))),Fk={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 Ik(){return Ik=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},Ik.apply(this,arguments)}var Lk=v.forwardRef((e,t)=>v.createElement(So,Ik({},e,{ref:t,icon:Fk}))),Rk={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 zk(){return zk=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},zk.apply(this,arguments)}var Bk=v.forwardRef((e,t)=>v.createElement(So,zk({},e,{ref:t,icon:Rk}))),Vk=(e,t,n,r)=>{let{titleMarginBottom:i,fontWeightStrong:a}=r;return{marginBottom:i,color:n,fontWeight:a,fontSize:e,lineHeight:t}},Hk=e=>{let t=[1,2,3,4,5],n={};return t.forEach(t=>{n[`
248
+ `]:{display:`inline-block`,minWidth:r(`item-size-actual`),height:r(`item-size-actual`),color:e.colorText,fontFamily:e.fontFamily,lineHeight:r(`item-size-actual`),textAlign:`center`,verticalAlign:`middle`,listStyle:`none`,borderRadius:e.borderRadius,cursor:`pointer`,transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{outline:0,button:{color:e.colorText,cursor:`pointer`,userSelect:`none`},[`${t}-item-link`]:{display:`block`,width:`100%`,height:`100%`,padding:0,fontSize:e.fontSizeSM,textAlign:`center`,backgroundColor:`transparent`,border:`${X(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:`none`,transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:`transparent`}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:`inline-block`,marginInlineStart:e.margin,verticalAlign:`middle`,"&-size-changer":{width:`auto`},"&-quick-jumper":{display:`inline-block`,height:r(`item-size-actual`),marginInlineStart:e.marginXS,lineHeight:r(`item-size-actual`),verticalAlign:`baseline`,input:{...pw(e),...XC(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow}),"&[disabled]":{...YC(e)},width:e.quickJumperInputWidth,height:r(`item-size-actual`),boxSizing:`border-box`,margin:0,marginInlineStart:r(`item-spacing-actual`),marginInlineEnd:r(`item-spacing-actual`)}}}}},oO=e=>{let{componentCls:t,antCls:n}=e,[,r]=Za(n,`pagination`);return{[`${t}-item`]:{display:`inline-block`,minWidth:r(`item-size-actual`),height:r(`item-size-actual`),marginInlineEnd:r(`item-spacing-actual`),fontFamily:e.fontFamily,lineHeight:X(e.calc(r(`item-size-actual`)).sub(2).equal()),textAlign:`center`,verticalAlign:`middle`,listStyle:`none`,backgroundColor:e.itemBg,border:`${X(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:`pointer`,userSelect:`none`,a:{display:`block`,padding:`0 ${X(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}}}}},sO=e=>{let{componentCls:t,antCls:n}=e,[r,i]=Za(n,`pagination`);return{[t]:{[r(`item-size-actual`)]:X(e.itemSize),[r(`item-spacing-actual`)]:X(e.marginXS),"&-small":{[r(`item-size-actual`)]:X(e.itemSizeSM),[r(`item-spacing-actual`)]:X(e.marginXXS)},"&-large":{[r(`item-size-actual`)]:X(e.itemSizeLG),[r(`item-spacing-actual`)]:X(e.marginSM)},...za(e),display:`flex`,alignItems:`center`,"&-start":{justifyContent:`start`},"&-center":{justifyContent:`center`},"&-end":{justifyContent:`end`},"ul, ol":{margin:0,padding:0,listStyle:`none`},"&::after":{display:`block`,clear:`both`,height:0,overflow:`hidden`,visibility:`hidden`,content:`""`},[`${t}-total-text`]:{display:`inline-block`,height:i(`item-size-actual`),marginInlineEnd:i(`item-spacing-actual`),lineHeight:X(e.calc(i(`item-size-actual`)).sub(2).equal()),verticalAlign:`middle`},...oO(e),...aO(e),...iO(e),...nO(e),...rO(e),...tO(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`}}},cO=e=>{let{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:{...Ua(e)},[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0},...Ha(e)}},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Ha(e)}}}},lO=e=>({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemSizeLG:e.controlHeightLG,itemActiveBg:e.colorBgContainer,itemActiveColor:e.colorPrimary,itemActiveColorHover:e.colorPrimaryHover,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0,...qC(e)}),uO=e=>si(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`},KC(e)),dO=Ja(`Pagination`,e=>{let t=uO(e);return[sO(t),cO(t)]},lO),fO=e=>{let{componentCls:t}=e;return{[`${t}${t}-bordered${t}-disabled`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}${t}-bordered`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${X(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}}}}},pO=Xa([`Pagination`,`bordered`],e=>fO(uO(e)),lO);function mO(e){return(0,v.useMemo)(()=>typeof e==`boolean`?[e,{}]:sc(e)?[!0,e]:[void 0,void 0],[e])}var hO=e=>{let{align:t,prefixCls:n,selectPrefixCls:r,className:i,rootClassName:a,style:o,size:s,locale:c,responsive:l,showSizeChanger:u,selectComponentClass:d,pageSizeOptions:f,styles:p,classNames:m,...h}=e,{xs:g}=Bb(l),[,_]=La(),{getPrefixCls:y,direction:b,showSizeChanger:x,className:S,style:C,classNames:w,styles:T,totalBoundaryShowSizeChanger:E}=Ze(`pagination`),D=y(`pagination`,n),[O,k]=dO(D),A=jd(s),j=A===`small`||!!(g&&!A&&l),M={...e,size:A},[N,P]=Dc([w,m],[T,p],{props:M}),[F]=ec(`Pagination`,Ps),I={...F,...c},[L,R]=mO(u),[z,B]=mO(x),V=L??z,H=R??B,U=d||Nb,W=v.useMemo(()=>f?f.map(Number):void 0,[f]),ee=e=>{let{disabled:t,size:n,onSizeChange:r,"aria-label":i,className:a,options:o}=e,{className:s,onChange:c}=H||{},l=o.find(e=>String(e.value)===String(n))?.value;return v.createElement(U,{disabled:t,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:e=>e.parentNode,"aria-label":i,options:o,...H,value:l,onChange:(e,t)=>{r?.(e),c?.(e,t)},size:A,className:Y(a,s)})},te=v.useMemo(()=>{let e=v.createElement(`span`,{className:`${D}-item-ellipsis`},`•••`);return{prevIcon:v.createElement(`button`,{className:`${D}-item-link`,type:`button`,tabIndex:-1},b===`rtl`?v.createElement(qf,null):v.createElement(jx,null)),nextIcon:v.createElement(`button`,{className:`${D}-item-link`,type:`button`,tabIndex:-1},b===`rtl`?v.createElement(jx,null):v.createElement(qf,null)),jumpPrevIcon:v.createElement(`a`,{className:`${D}-item-link`},v.createElement(`div`,{className:`${D}-item-container`},b===`rtl`?v.createElement(WD,{className:`${D}-item-link-icon`}):v.createElement(VD,{className:`${D}-item-link-icon`}),e)),jumpNextIcon:v.createElement(`a`,{className:`${D}-item-link`},v.createElement(`div`,{className:`${D}-item-container`},b===`rtl`?v.createElement(VD,{className:`${D}-item-link-icon`}):v.createElement(WD,{className:`${D}-item-link-icon`}),e))}},[b,D]),G=y(`select`,r),ne=Y({[`${D}-${t}`]:!!t,[`${D}-${A}`]:A,[`${D}-mini`]:j,[`${D}-rtl`]:b===`rtl`,[`${D}-bordered`]:_.wireframe},S,i,a,N.root,O,k),re={...P.root,...C,...o};return v.createElement(v.Fragment,null,_.wireframe&&v.createElement(pO,{prefixCls:D}),v.createElement(eO,{...te,...h,styles:P,classNames:N,style:re,prefixCls:D,selectPrefixCls:G,className:ne,locale:I,pageSizeOptions:W,showSizeChanger:V,totalBoundaryShowSizeChanger:h.totalBoundaryShowSizeChanger??E,sizeChangerRender:ee}))},gO=100,_O=gO/5,vO=gO/2-_O/2,yO=vO*2*Math.PI,bO=50,xO=e=>{let{dotClassName:t,style:n,hasCircleCls:r}=e;return v.createElement(`circle`,{className:Y(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:vO,cx:bO,cy:bO,strokeWidth:_O,style:n})},SO=({percent:e,prefixCls:t})=>{let n=`${t}-dot`,r=`${n}-holder`,i=`${r}-hidden`,[a,o]=v.useState(!1);S(()=>{e!==0&&o(!0)},[e!==0]);let s=Math.max(Math.min(e,100),0);if(!a)return null;let c={strokeDashoffset:`${yO/4}`,strokeDasharray:`${yO*s/100} ${yO*(100-s)/100}`};return v.createElement(`span`,{className:Y(r,`${n}-progress`,{[i]:s<=0})},v.createElement(`svg`,{viewBox:`0 0 ${gO} ${gO}`,role:`progressbar`,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":s},v.createElement(xO,{dotClassName:n,hasCircleCls:!0}),v.createElement(xO,{dotClassName:n,style:c})))};function CO(e){let{prefixCls:t,percent:n=0,className:r,style:i}=e,a=`${t}-dot`,o=`${a}-holder`,s=`${o}-hidden`;return v.createElement(v.Fragment,null,v.createElement(`span`,{className:Y(o,r,n>0&&s),style:i},v.createElement(`span`,{className:Y(a,`${t}-dot-spin`)},[1,2,3,4].map(e=>v.createElement(`i`,{className:`${t}-dot-item`,key:e})))),v.createElement(SO,{prefixCls:t,percent:n}))}function wO(e){let{prefixCls:t,indicator:n,percent:r,className:i,style:a}=e,o=`${t}-dot`;return n&&v.isValidElement(n)?ou(n,e=>({className:Y(e.className,o,i),style:{...e.style,...a},percent:r})):v.createElement(CO,{prefixCls:t,percent:r,className:i,style:a})}var TO=new Or(`antSpinMove`,{to:{opacity:1}}),EO=new Or(`antRotate`,{to:{transform:`rotate(405deg)`}}),DO=e=>{let{componentCls:t}=e,n=`${t}-section`;return{[t]:{...za(e),position:`relative`,"&-rtl":{direction:`rtl`},[`&${n}, ${n}`]:{display:`flex`,alignItems:`center`,flexDirection:`column`,gap:e.paddingSM,color:e.colorPrimary},[`&${n}`]:{display:`inline-flex`},[n]:{position:`absolute`,top:`50%`,left:{_skip_check_:!0,value:`50%`},transform:`translate(-50%, -50%)`,zIndex:1},[`${t}-description`]:{fontSize:e.fontSize,lineHeight:1},[`${t}-container`]:{position:`relative`,transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:`absolute`,top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:`100%`,height:`100%`,background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:`""`,pointerEvents:`none`}},"&-spinning":{[`${t}-description`]:{textShadow:`0 0px 5px ${e.colorBgContainer}`},[`${t}-container`]:{clear:`both`,opacity:.5,userSelect:`none`,pointerEvents:`none`,"&::after":{opacity:.4,pointerEvents:`auto`}}},"&-fullscreen":{position:`fixed`,inset:0,backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,opacity:0,pointerEvents:`none`,transition:`all ${e.motionDurationMid}`,[`&${t}-spinning`]:{opacity:1,pointerEvents:`auto`},[n]:{color:e.colorWhite,[`${t}-description`]:{color:e.colorTextLightSolid}}}}}},OO=e=>{let{componentCls:t,antCls:n,motionDurationSlow:r}=e,[i,a]=Za(n,`spin`);return{[t]:{[i(`dot-holder-size`)]:e.dotSize,[i(`dot-item-size`)]:`calc((${a(`dot-holder-size`)} - ${e.marginXXS} / 2) / 2)`,[`${t}-dot`]:{"&-holder":{width:`1em`,height:`1em`,fontSize:a(`dot-holder-size`),display:`inline-block`,transition:[`transform`,`opacity`].map(e=>`${e} ${r} ease`).join(`, `),transformOrigin:`50% 50%`,lineHeight:1,"&-hidden":{transform:`scale(0.3)`,opacity:0}},position:`relative`,display:`inline-block`,fontSize:a(`dot-holder-size`),width:`1em`,height:`1em`,"&-spin":{transform:`rotate(45deg)`,animationName:EO,animationDuration:`1.2s`,animationIterationCount:`infinite`,animationTimingFunction:`linear`},"&-item":{position:`absolute`,display:`block`,width:a(`dot-item-size`),height:a(`dot-item-size`),background:`currentColor`,borderRadius:`100%`,transform:`scale(0.75)`,transformOrigin:`50% 50%`,opacity:.3,animationName:TO,animationDuration:`1s`,animationIterationCount:`infinite`,animationTimingFunction:`linear`,animationDirection:`alternate`,"&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:`0s`},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:`0.4s`},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:`0.8s`},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:`1.2s`}},"&-progress":{position:`absolute`,left:`50%`,top:0,transform:`translateX(-50%)`},"&-circle":{strokeLinecap:`round`,transition:[`stroke-dashoffset`,`stroke-dasharray`,`stroke`,`stroke-width`,`opacity`].map(e=>`${e} ${r} ease`).join(`,`),fillOpacity:0,stroke:`currentcolor`},"&-circle-bg":{stroke:e.colorFillSecondary}}}}},kO=e=>{let{componentCls:t}=e,[n]=Za(e.antCls,`spin`);return{[t]:{"&-sm":{[n(`dot-holder-size`)]:e.dotSizeSM},"&-lg":{[n(`dot-holder-size`)]:e.dotSizeLG}}}},AO=Ja(`Spin`,e=>{let t=si(e,{spinDotDefault:e.colorTextDescription});return[DO(t),OO(t),kO(t)]},e=>{let{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:n}}),jO=200,MO=[[30,.05],[70,.03],[96,.01]];function NO(e,t){let[n,r]=v.useState(0),i=v.useRef(null),a=t===`auto`;return v.useEffect(()=>(a&&e&&(r(0),i.current=setInterval(()=>{r(e=>{let t=100-e;for(let n=0;n<MO.length;n+=1){let[r,i]=MO[n];if(e<=r)return e+t*i}return e})},jO)),()=>{i.current&&=(clearInterval(i.current),null)}),[a,e]),a?n:t}var PO;function FO(e,t){return!!e&&!!t&&!Number.isNaN(Number(t))}var IO=e=>{let{prefixCls:t,spinning:n=!0,delay:r=0,className:i,rootClassName:a,size:o,tip:s,description:c,wrapperClassName:l,style:u,children:d,fullscreen:f=!1,indicator:p,percent:m,classNames:h,styles:g,..._}=e,{getPrefixCls:y,direction:b,indicator:x,className:S,style:C,classNames:w,styles:T}=Ze(`spin`),E=y(`spin`,t),[D,O]=AO(E),[k,A]=v.useState(()=>n&&!FO(n,r)),j=NO(k,m);v.useEffect(()=>{if(n){let e=VT(r,()=>{A(!0)});return e(),()=>{e?.cancel?.()}}A(!1)},[r,n]);let M=jd(e=>o??e),N=c??s,P={...e,size:M,spinning:k,tip:N,description:N,fullscreen:f,children:d,percent:j},[F,I]=Dc([w,h],[T,g],{props:P}),L=p??x??PO,R=d!==void 0,z=R||f,B=v.createElement(v.Fragment,null,v.createElement(wO,{className:Y(F.indicator),style:I.indicator,prefixCls:E,indicator:L,percent:j}),N&&v.createElement(`div`,{className:Y(`${E}-description`,F.tip,F.description),style:{...I.tip,...I.description}},N));return v.createElement(`div`,{className:Y(E,{[`${E}-sm`]:M===`small`,[`${E}-lg`]:M===`large`,[`${E}-spinning`]:k,[`${E}-rtl`]:b===`rtl`,[`${E}-fullscreen`]:f},a,F.root,f&&F.mask,z?l:[`${E}-section`,F.section],S,i,D,O),style:{...I.root,...z?{}:I.section,...f?I.mask:{},...C,...u},"aria-live":`polite`,"aria-busy":k,..._},k&&(z?v.createElement(`div`,{className:Y(`${E}-section`,F.section),style:I.section},B):B),R&&v.createElement(`div`,{className:Y(`${E}-container`,F.container),style:I.container},d))};IO.setDefaultIndicator=e=>{PO=e};var LO=v.createContext({});LO.Consumer;var RO=({prefixCls:e,className:t,avatar:n,title:r,description:i,...a})=>{let{getPrefixCls:o}=(0,v.useContext)(Je),s=o(`list`,e),c=Y(`${s}-item-meta`,t),l=v.createElement(`div`,{className:`${s}-item-meta-content`},r&&v.createElement(`h4`,{className:`${s}-item-meta-title`},r),i&&v.createElement(`div`,{className:`${s}-item-meta-description`},i));return v.createElement(`div`,{...a,className:c},n&&v.createElement(`div`,{className:`${s}-item-meta-avatar`},n),(r||i)&&l)},zO=v.forwardRef((e,t)=>{let{prefixCls:n,children:r,actions:i,extra:a,styles:o,className:s,classNames:c,colStyle:l,...u}=e,{grid:d,itemLayout:f}=(0,v.useContext)(LO),{getPrefixCls:p,list:m}=(0,v.useContext)(Je),h=e=>Y(m?.item?.classNames?.[e],c?.[e]),g=e=>({...m?.item?.styles?.[e],...o?.[e]}),_=()=>{let e=de(r);return e.some(e=>typeof e==`string`)&&e.length>1},y=()=>f===`vertical`?!!a:!_(),b=p(`list`,n),x=i&&i.length>0&&v.createElement(`ul`,{className:Y(`${b}-item-action`,h(`actions`)),key:`actions`,style:g(`actions`)},i.map((e,t)=>v.createElement(`li`,{key:`${b}-item-action-${t}`},e,t!==i.length-1&&v.createElement(`em`,{className:`${b}-item-action-split`})))),S=d?`div`:`li`,C=v.createElement(S,{...u,...d?{}:{ref:t},className:Y(`${b}-item`,{[`${b}-item-no-flex`]:!y()},s)},f===`vertical`&&a?[v.createElement(`div`,{className:`${b}-item-main`,key:`content`},r,x),v.createElement(`div`,{className:Y(`${b}-item-extra`,h(`extra`)),key:`extra`,style:g(`extra`)},a)]:[r,x,ou(a,{key:`extra`})]);return d?v.createElement(WT,{ref:t,flex:1,style:l},C):C});zO.Meta=RO;var BO=e=>{let{listBorderedCls:t,componentCls:n,paddingLG:r,margin:i,itemPaddingSM:a,itemPaddingLG:o,marginLG:s,borderRadiusLG:c}=e,l=X(e.calc(c).sub(e.lineWidth).equal());return{[t]:{border:`${X(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:c,[`${n}-header`]:{borderRadius:`${l} ${l} 0 0`},[`${n}-footer`]:{borderRadius:`0 0 ${l} ${l}`},[`${n}-header,${n}-footer,${n}-item`]:{paddingInline:r},[`${n}-pagination`]:{margin:`${X(i)} ${X(s)}`}},[`${t}${n}-sm`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:a}},[`${t}${n}-lg`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:o}}}},VO=e=>{let{componentCls:t,screenSM:n,screenMD:r,marginLG:i,marginSM:a,margin:o}=e;return{[`@media screen and (max-width:${r}px)`]:{[t]:{[`${t}-item`]:{[`${t}-item-action`]:{marginInlineStart:i}}},[`${t}-vertical`]:{[`${t}-item`]:{[`${t}-item-extra`]:{marginInlineStart:i}}}},[`@media screen and (max-width: ${n}px)`]:{[t]:{[`${t}-item`]:{flexWrap:`wrap`,[`${t}-action`]:{marginInlineStart:a}}},[`${t}-vertical`]:{[`${t}-item`]:{flexWrap:`wrap-reverse`,[`${t}-item-main`]:{minWidth:e.contentWidth},[`${t}-item-extra`]:{margin:`auto auto ${X(o)}`}}}}}},HO=e=>{let{componentCls:t,antCls:n,controlHeight:r,minHeight:i,paddingSM:a,marginLG:o,padding:s,itemPadding:c,colorPrimary:l,itemPaddingSM:u,itemPaddingLG:d,paddingXS:f,margin:p,colorText:m,colorTextDescription:h,motionDurationSlow:g,lineWidth:_,headerBg:v,footerBg:y,emptyTextPadding:b,metaMarginBottom:x,avatarMarginRight:S,titleMarginBottom:C,descriptionFontSize:w}=e;return{[t]:{...za(e),position:`relative`,"--rc-virtual-list-scrollbar-bg":e.colorSplit,"*":{outline:`none`},[`${t}-header`]:{background:v},[`${t}-footer`]:{background:y},[`${t}-header, ${t}-footer`]:{paddingBlock:a},[`${t}-pagination`]:{marginBlockStart:o,[`${n}-pagination-options`]:{textAlign:`start`}},[`${t}-spin`]:{minHeight:i,textAlign:`center`},[`${t}-items`]:{margin:0,padding:0,listStyle:`none`},[`${t}-item`]:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,padding:c,color:m,[`${t}-item-meta`]:{display:`flex`,flex:1,alignItems:`flex-start`,maxWidth:`100%`,[`${t}-item-meta-avatar`]:{marginInlineEnd:S},[`${t}-item-meta-content`]:{flex:`1 0`,width:0,color:m},[`${t}-item-meta-title`]:{margin:`0 0 ${X(e.marginXXS)} 0`,color:m,fontSize:e.fontSize,lineHeight:e.lineHeight,"> a":{color:m,transition:`all ${g}`,"&:hover":{color:l}}},[`${t}-item-meta-description`]:{color:h,fontSize:w,lineHeight:e.lineHeight}},[`${t}-item-action`]:{flex:`0 0 auto`,marginInlineStart:e.marginXXL,padding:0,fontSize:0,listStyle:`none`,"& > li":{position:`relative`,display:`inline-block`,padding:`0 ${X(f)}`,color:h,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:`center`,"&:first-child":{paddingInlineStart:0}},[`${t}-item-action-split`]:{position:`absolute`,insetBlockStart:`50%`,insetInlineEnd:0,width:_,height:e.calc(e.fontHeight).sub(e.calc(e.marginXXS).mul(2)).equal(),transform:`translateY(-50%)`,backgroundColor:e.colorSplit}}},[`${t}-empty`]:{padding:`${X(s)} 0`,color:h,fontSize:e.fontSizeSM,textAlign:`center`},[`${t}-empty-text`]:{padding:b,color:e.colorTextDisabled,fontSize:e.fontSize,textAlign:`center`},[`${t}-item-no-flex`]:{display:`block`}},[`${t}-grid ${n}-col > ${t}-item`]:{display:`block`,maxWidth:`100%`,marginBlockEnd:p,paddingBlock:0,borderBlockEnd:`none`},[`${t}-vertical ${t}-item`]:{alignItems:`initial`,[`${t}-item-main`]:{display:`block`,flex:1},[`${t}-item-extra`]:{marginInlineStart:o},[`${t}-item-meta`]:{marginBlockEnd:x,[`${t}-item-meta-title`]:{marginBlockStart:0,marginBlockEnd:C,color:m,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}},[`${t}-item-action`]:{marginBlockStart:s,marginInlineStart:`auto`,"> li":{padding:`0 ${X(s)}`,"&:first-child":{paddingInlineStart:0}}}},[`${t}-split ${t}-item`]:{borderBlockEnd:`${X(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBlockEnd:`none`}},[`${t}-split ${t}-header`]:{borderBlockEnd:`${X(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-split${t}-empty ${t}-footer`]:{borderTop:`${X(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:`${X(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-lg ${t}-item`]:{padding:d},[`${t}-sm ${t}-item`]:{padding:u},[`${t}:not(${t}-vertical)`]:{[`${t}-item-no-flex`]:{[`${t}-item-action`]:{float:`right`}}}}},UO=Ja(`List`,e=>{let t=si(e,{listBorderedCls:`${e.componentCls}-bordered`,minHeight:e.controlHeightLG});return[HO(t),BO(t),VO(t)]},e=>({contentWidth:220,itemPadding:`${X(e.paddingContentVertical)} 0`,itemPaddingSM:`${X(e.paddingContentVerticalSM)} ${X(e.paddingContentHorizontal)}`,itemPaddingLG:`${X(e.paddingContentVerticalLG)} ${X(e.paddingContentHorizontalLG)}`,headerBg:`transparent`,footerBg:`transparent`,emptyTextPadding:e.padding,metaMarginBottom:e.padding,avatarMarginRight:e.padding,titleMarginBottom:e.paddingSM,descriptionFontSize:e.fontSize}),{extraCssVarPrefixCls:({prefixCls:e})=>[`${e}-container`]}),WO=v.forwardRef((e,t)=>{let{pagination:n=!1,prefixCls:r,bordered:i=!1,split:a=!0,className:o,rootClassName:s,style:c,children:l,itemLayout:u,loadMore:d,grid:f,dataSource:p=[],size:m,header:h,footer:g,loading:_=!1,rowKey:y,renderItem:b,locale:x,...S}=e,C=sc(n)?n:{},[w,T]=v.useState(C.defaultCurrent||1),[E,D]=v.useState(C.defaultPageSize||10),{getPrefixCls:O,direction:k,className:A,style:j}=Ze(`list`),{renderEmpty:M}=v.useContext(Je),N={current:1,total:0,position:`bottom`},P=e=>(t,r)=>{T(t),D(r),n&&n?.[e]?.(t,r)},F=P(`onChange`),I=P(`onShowSizeChange`),L=(e,t)=>{if(!b)return null;let n;return n=typeof y==`function`?y(e):y?e[y]:e.key,n||=`list-item-${t}`,v.createElement(v.Fragment,{key:n},b(e,t))},R=!!(d||n||g),z=O(`list`,r),[B,V]=UO(z),H=_;typeof H==`boolean`&&(H={spinning:H});let U=!!H?.spinning,W=jd(m),ee=``;switch(W){case`large`:ee=`lg`;break;case`small`:ee=`sm`;break;default:break}let te=Y(z,{[`${z}-vertical`]:u===`vertical`,[`${z}-${ee}`]:ee,[`${z}-split`]:a,[`${z}-bordered`]:i,[`${z}-loading`]:U,[`${z}-grid`]:!!f,[`${z}-something-after-last-item`]:R,[`${z}-rtl`]:k===`rtl`},A,o,s,B,V),G=`${z}-container`,ne=rc(N,{total:p.length,current:w,pageSize:E},n||{}),re=Math.ceil(ne.total/ne.pageSize);ne.current=Math.min(ne.current,re);let ie=n&&v.createElement(`div`,{className:Y(`${z}-pagination`)},v.createElement(hO,{align:`end`,...ne,onChange:F,onShowSizeChange:I})),K=ze(p);n&&p.length>(ne.current-1)*ne.pageSize&&(K=ze(p).splice((ne.current-1)*ne.pageSize,ne.pageSize));let q=Bb(Object.keys(f||{}).some(e=>Fb.includes(e))),ae=v.useMemo(()=>{for(let e=0;e<Fb.length;e+=1){let t=Fb[e];if(q[t])return t}},[q]),oe=v.useMemo(()=>{if(!f)return;let e=ae&&f[ae]?f[ae]:f.column;if(e)return{width:`${100/e}%`,maxWidth:`${100/e}%`}},[JSON.stringify(f),ae]),se=U&&v.createElement(`div`,{style:{minHeight:53}});if(K.length>0){let e=K.map(L);se=f?v.createElement(qT,{className:Y(G,V),gutter:f.gutter},v.Children.map(e,e=>v.createElement(`div`,{key:e?.key,style:oe},e))):v.createElement(`ul`,{className:Y(`${z}-items`,G,V)},e)}else !l&&!U&&(se=v.createElement(`div`,{className:`${z}-empty-text`},x?.emptyText||M?.(`List`)||v.createElement(ib,{componentName:`List`})));let J=ne.position,ce=v.useMemo(()=>({grid:f,itemLayout:u}),[JSON.stringify(f),u]);return v.createElement(LO.Provider,{value:ce},v.createElement(`div`,{ref:t,style:{...j,...c},className:te,...S},(J===`top`||J===`both`)&&ie,h&&v.createElement(`div`,{className:`${z}-header`},h),v.createElement(IO,{...H},se,l),g&&v.createElement(`div`,{className:`${z}-footer`},g),d||(J===`bottom`||J===`both`)&&ie))});WO.Item=zO;var GO=(e,t={})=>!ic(e)&&t?.skipEmpty?[]:Array.isArray(e)?e:[e],KO=null,qO=e=>e(),JO=[],YO={};function XO(){let{getContainer:e,duration:t,rtl:n,maxCount:r,top:i}=YO,a=e?.()||document.body;return{getContainer:()=>a,duration:t,rtl:n,maxCount:r,top:i}}var ZO=v.forwardRef((e,t)=>{let{messageConfig:n,sync:r}=e,{getPrefixCls:i}=(0,v.useContext)(Je),a=YO.prefixCls||i(`message`),o=(0,v.useContext)(U_),[s,c]=ld({...n,prefixCls:a,...o.message});return v.useImperativeHandle(t,()=>{let e={...s};return Object.keys(e).forEach(t=>{e[t]=(...e)=>(r(),s[t].apply(s,e))}),{instance:e,sync:r}}),c}),QO=v.forwardRef((e,t)=>{let[n,r]=v.useState(XO),i=()=>{r(XO)};v.useEffect(i,[]);let a=ku(),o=a.getRootPrefixCls(),s=a.getIconPrefixCls(),c=a.getTheme(),l=v.createElement(ZO,{ref:t,sync:i,messageConfig:n});return v.createElement(ju,{prefixCls:o,iconPrefixCls:s,theme:c},a.holderRender?a.holderRender(l):l)}),$O=()=>{if(!KO){let e=document.createDocumentFragment(),t={fragment:e};KO=t,qO(()=>{pd(v.createElement(QO,{ref:e=>{let{instance:n,sync:r}=e||{};Promise.resolve().then(()=>{!t.instance&&n&&(t.instance=n,t.sync=r,$O())})}}),e)});return}KO.instance&&(JO.forEach(e=>{let{type:t,skipped:n}=e;if(!n)switch(t){case`open`:qO(()=>{let t=KO.instance.open({...YO,...e.config});t?.then(e.resolve),e.setCloseFn(t)});break;case`destroy`:qO(()=>{KO?.instance.destroy(e.key)});break;default:qO(()=>{var n;let r=(n=KO.instance)[t].apply(n,ze(e.args));r?.then(e.resolve),e.setCloseFn(r)})}}),JO=[])};function ek(e){YO={...YO,...e},qO(()=>{KO?.sync?.()})}function tk(e){let t=nd(t=>{let n,r={type:`open`,config:e,resolve:t,setCloseFn:e=>{n=e}};return JO.push(r),()=>{n?qO(()=>{n()}):r.skipped=!0}});return $O(),t}function nk(e,t){let n=nd(n=>{let r,i={type:e,args:t,resolve:n,setCloseFn:e=>{r=e}};return JO.push(i),()=>{r?qO(()=>{r()}):i.skipped=!0}});return $O(),n}var rk=e=>{JO.push({type:`destroy`,key:e}),$O()},ik=[`success`,`info`,`warning`,`error`,`loading`],ak={open:tk,destroy:rk,config:ek,useMessage:ud,_InternalPanelDoNotUseOrYouWillBeFired:ed};ik.forEach(e=>{ak[e]=(...t)=>nk(e,t)});var ok=Y_(e=>{let{prefixCls:t,className:n,closeIcon:r,closable:i,type:a,title:o,children:s,footer:c,classNames:l,styles:u,...d}=e,{getPrefixCls:f}=v.useContext(Je),{className:p,style:m,classNames:h,styles:g}=Ze(`modal`),_=f(),y=t||f(`modal`),b=Yc(_),[x,S]=Jg(y,b),[C,w]=Dc([h,l],[g,u],{props:e}),T=`${y}-confirm`,E={};return E=a?{closable:i??!1,title:``,footer:``,children:v.createElement($g,{...e,prefixCls:y,confirmPrefixCls:T,rootPrefixCls:_,content:s})}:{closable:i??!0,title:o,footer:c!==null&&v.createElement(Ag,{...e}),children:s},v.createElement(Gp,{prefixCls:y,className:Y(x,`${y}-pure-panel`,a&&T,a&&`${T}-${a}`,n,p,S,b,C.root),style:{...m,...w.root},...d,closeIcon:kg(y,r),closable:i,classNames:C,styles:w,...E})});function sk(e){return o_(s_(e))}var ck=Xg;ck.useModal=g_,ck.info=function(e){return o_(c_(e))},ck.success=function(e){return o_(l_(e))},ck.error=function(e){return o_(u_(e))},ck.warning=sk,ck.warn=sk,ck.confirm=function(e){return o_(d_(e))},ck.destroyAll=function(){for(;n_.length;){let e=n_.pop();e&&e()}},ck.config=f_,ck._InternalPanelDoNotUseOrYouWillBeFired=ok;var lk=Ja(`Popconfirm`,e=>{let{componentCls:t,iconCls:n,antCls:r,zIndexPopup:i,colorText:a,colorWarning:o,marginXXS:s,marginXS:c,fontSize:l,fontWeightStrong:u,colorTextHeading:d}=e;return{[t]:{zIndex:i,[`&${r}-popover`]:{fontSize:l},[`${t}-message`]:{marginBottom:c,display:`flex`,flexWrap:`nowrap`,alignItems:`start`,[`> ${t}-message-icon ${n}`]:{color:o,fontSize:l,lineHeight:1,marginInlineEnd:c},[`${t}-title`]:{fontWeight:u,color:d,"&:only-child":{fontWeight:`normal`}},[`${t}-description`]:{marginTop:s,color:a}},[`${t}-buttons`]:{textAlign:`end`,whiteSpace:`nowrap`,button:{marginInlineStart:c}}}}},e=>{let{zIndexPopupBase:t}=e;return{zIndexPopup:t+60}},{resetStyle:!1}),uk=e=>{let{prefixCls:t,okButtonProps:n,cancelButtonProps:r,title:i,description:a,cancelText:o,okText:s,okType:c=`primary`,icon:l=v.createElement(No,null),showCancel:u=!0,close:d,onConfirm:f,onCancel:p,onPopupClick:m,classNames:h,styles:g}=e,{getPrefixCls:_}=v.useContext(Je),[y]=ec(`Popconfirm`,qs.Popconfirm),b=Vb(i),x=Vb(a);return v.createElement(`div`,{className:`${t}-inner-content`,onClick:m},v.createElement(`div`,{className:`${t}-message`},l&&v.createElement(`span`,{className:`${t}-message-icon`},l),v.createElement(`div`,{className:`${t}-message-text`},b&&v.createElement(`div`,{className:Y(`${t}-title`,h?.title),style:g?.title},b),x&&v.createElement(`div`,{className:Y(`${t}-description`,h?.content),style:g?.content},x))),v.createElement(`div`,{className:`${t}-buttons`},u&&v.createElement(vp,{onClick:p,size:`small`,...r},o||y?.cancelText),v.createElement(yp,{buttonProps:{size:`small`,...Hd(c),...n},actionFn:f,close:d,prefixCls:_(`btn`),quitOnNullishReturnValue:!0,emitEvent:!0},s||y?.okText)))},dk=e=>{let{prefixCls:t,placement:n,className:r,style:i,...a}=e,{getPrefixCls:o}=v.useContext(Je),s=o(`popconfirm`,t);return lk(s),v.createElement(wx,{placement:n,className:Y(s,r),style:i,content:v.createElement(uk,{prefixCls:s,...a})})},fk=v.forwardRef((e,t)=>{let{prefixCls:n,placement:r=`top`,trigger:i,okType:a=`primary`,icon:o=v.createElement(No,null),children:s,overlayClassName:c,onOpenChange:l,overlayStyle:u,styles:d,arrow:f,classNames:p,...m}=e,{getPrefixCls:h,className:g,style:_,classNames:y,styles:b,arrow:x,trigger:S}=Ze(`popconfirm`),[C,w]=T(e.defaultOpen??!1,e.open),E=ox(f,x),D=i||S||`click`,O=e=>{w(e),l?.(e)},k=()=>{O(!1)},A=t=>e.onConfirm?.call(void 0,t),j=t=>{O(!1),e.onCancel?.call(void 0,t)},M=t=>{let{disabled:n=!1}=e;n||O(t)},N=h(`popconfirm`,n),P={...e,placement:r,trigger:D,okType:a,overlayStyle:u,styles:d,classNames:p},[F,I]=Dc([y,p],[b,d],{props:P}),L=Y(N,g,c,F.root);return lk(N),v.createElement(Tx,{arrow:E,...ue(m,[`title`]),trigger:D,placement:r,onOpenChange:M,open:C,ref:t,classNames:{root:L,container:F.container,arrow:F.arrow},styles:{root:{..._,...I.root,...u},container:I.container,arrow:I.arrow},content:v.createElement(uk,{okType:a,icon:o,...e,prefixCls:N,close:k,onConfirm:A,onCancel:j,classNames:F,styles:I}),"data-popover-inject":!0},s)});fk._InternalPanelDoNotUseOrYouWillBeFired=dk;var pk={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 mk(){return mk=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},mk.apply(this,arguments)}var hk=v.forwardRef((e,t)=>v.createElement(So,mk({},e,{ref:t,icon:pk})));function gk(){return gk=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gk.apply(this,arguments)}var _k=v.forwardRef(({prefixCls:e=`rc-switch`,className:t,checked:n,defaultChecked:r,disabled:i,loadingIcon:a,checkedChildren:o,unCheckedChildren:s,onClick:c,onChange:l,onKeyDown:u,styles:d,classNames:f,...p},m)=>{let[h,g]=T(r??!1,n);function _(e,t){let n=h;return i||(n=e,g(n),l?.(n,t)),n}function y(e){e.which===Z.LEFT?_(!1,e):e.which===Z.RIGHT&&_(!0,e),u?.(e)}function b(e){let t=_(!h,e);c?.(t,e)}let x=Y(e,t,{[`${e}-checked`]:h,[`${e}-disabled`]:i});return v.createElement(`button`,gk({},p,{type:`button`,role:`switch`,"aria-checked":h,disabled:i,className:x,ref:m,onKeyDown:y,onClick:b}),a,v.createElement(`span`,{className:`${e}-inner`},v.createElement(`span`,{className:Y(`${e}-inner-checked`,f?.content),style:d?.content},o),v.createElement(`span`,{className:Y(`${e}-inner-unchecked`,f?.content),style:d?.content},s)))});_k.displayName=`Switch`;var vk=e=>{let{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:i,innerMinMarginSM:a,innerMaxMarginSM:o,handleSizeSM:s,calc:c}=e,l=`${t}-inner`,u=X(c(s).add(c(r).mul(2)).equal()),d=X(c(o).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:i,height:n,lineHeight:X(n),[`${t}-inner`]:{paddingInlineStart:o,paddingInlineEnd:a,[`${l}-checked, ${l}-unchecked`]:{minHeight:n},[`${l}-checked`]:{marginInlineStart:`calc(-100% + ${u} - ${d})`,marginInlineEnd:`calc(100% - ${u} + ${d})`},[`${l}-unchecked`]:{marginTop:c(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:s,height:s},[`${t}-loading-icon`]:{top:c(c(s).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:a,paddingInlineEnd:o,[`${l}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${l}-unchecked`]:{marginInlineStart:`calc(100% - ${u} + ${d})`,marginInlineEnd:`calc(-100% + ${u} - ${d})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${X(c(s).add(r).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${l}`]:{[`${l}-unchecked`]:{marginInlineStart:c(e.marginXXS).div(2).equal(),marginInlineEnd:c(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${l}`]:{[`${l}-checked`]:{marginInlineStart:c(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:c(e.marginXXS).div(2).equal()}}}}}}},yk=e=>{let{componentCls:t,handleSize:n,calc:r}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:`relative`,top:r(r(n).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:`top`},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},bk=e=>{let{componentCls:t,trackPadding:n,handleBg:r,handleShadow:i,handleSize:a,calc:o}=e,s=`${t}-handle`;return{[t]:{[s]:{position:`absolute`,top:n,insetInlineStart:n,width:a,height:a,transition:`all ${e.switchDuration} ease-in-out`,...Sf(),"&::before":{position:`absolute`,top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:r,borderRadius:o(a).div(2).equal(),boxShadow:i,transition:`all ${e.switchDuration} ease-in-out`,content:`""`,...Sf()}},[`&${t}-checked ${s}`]:{insetInlineStart:`calc(100% - ${X(o(a).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${s}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${s}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},xk=e=>{let{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:i,innerMaxMargin:a,handleSize:o,switchDuration:s,calc:c}=e,l=`${t}-inner`,u=X(c(o).add(c(r).mul(2)).equal()),d=X(c(a).mul(2).equal());return{[t]:{[l]:{display:`block`,overflow:`hidden`,borderRadius:100,height:`100%`,paddingInlineStart:a,paddingInlineEnd:i,transition:[`padding-inline-start`,`padding-inline-end`].map(e=>`${e} ${s} ease-in-out`).join(`, `),...Sf(),[`${l}-checked, ${l}-unchecked`]:{display:`block`,color:e.colorTextLightSolid,fontSize:e.fontSizeSM,pointerEvents:`none`,minHeight:n,transition:[`margin-inline-start`,`margin-inline-end`].map(e=>`${e} ${s} ease-in-out`).join(`, `),...Sf()},[`${l}-checked`]:{marginInlineStart:`calc(-100% + ${u} - ${d})`,marginInlineEnd:`calc(100% - ${u} + ${d})`},[`${l}-unchecked`]:{marginTop:c(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${l}`]:{paddingInlineStart:i,paddingInlineEnd:a,[`${l}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${l}-unchecked`]:{marginInlineStart:`calc(100% - ${u} + ${d})`,marginInlineEnd:`calc(-100% + ${u} - ${d})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${l}`]:{[`${l}-unchecked`]:{marginInlineStart:c(r).mul(2).equal(),marginInlineEnd:c(r).mul(-1).mul(2).equal()}},[`&${t}-checked ${l}`]:{[`${l}-checked`]:{marginInlineStart:c(r).mul(-1).mul(2).equal(),marginInlineEnd:c(r).mul(2).equal()}}}}}},Sk=e=>{let{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:{...za(e),position:`relative`,display:`inline-block`,boxSizing:`border-box`,minWidth:r,height:n,lineHeight:X(n),verticalAlign:`middle`,background:e.colorTextQuaternary,border:`0`,borderRadius:100,cursor:`pointer`,transition:`all ${e.motionDurationMid}`,userSelect:`none`,...Sf(),[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary},...Ua(e),[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:`not-allowed`,opacity:e.switchDisabledOpacity,"*":{boxShadow:`none`,cursor:`not-allowed`}},[`&${t}-rtl`]:{direction:`rtl`}}}},Ck=Ja(`Switch`,e=>{let t=si(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:`-30%`});return[Sk(t),xk(t),bk(t),yk(t),vk(t)]},e=>{let{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:i}=e,a=t*n,o=r/2,s=a-4,c=o-4;return{trackHeight:a,trackHeightSM:o,trackMinWidth:s*2+8,trackMinWidthSM:c*2+4,trackPadding:2,handleBg:i,handleSize:s,handleSizeSM:c,handleShadow:`0 2px 4px 0 ${new ki(`#00230b`).setA(.2).toRgbString()}`,innerMinMargin:s/2,innerMaxMargin:s+2+4,innerMinMarginSM:c/2,innerMaxMarginSM:c+2+4}}),wk=v.forwardRef((e,t)=>{let{prefixCls:n,size:r,disabled:i,loading:a,className:o,rootClassName:s,style:c,checked:l,value:u,defaultChecked:d,defaultValue:f,onChange:p,styles:m,classNames:h,...g}=e,[_,y]=T(d??f??!1,l??u),{getPrefixCls:b,direction:x,className:S,style:C,classNames:w,styles:E}=Ze(`switch`),D=v.useContext(du),O=(i??D)||a,k=b(`switch`,n),[A,j]=Ck(k),M=jd(r),N={...e,size:M,disabled:O},[P,F]=Dc([w,h],[E,m],{props:N}),I=v.createElement(`div`,{className:Y(`${k}-handle`,P.indicator),style:F.indicator},a&&v.createElement(Yu,{className:`${k}-loading-icon`})),L=Y(S,{[`${k}-small`]:M===`small`,[`${k}-loading`]:a,[`${k}-rtl`]:x===`rtl`},o,s,P.root,A,j),R={...F.root,...C,...c},z=(...e)=>{y(e[0]),p?.(...e)};return v.createElement(Ad,{component:`Switch`,disabled:O},v.createElement(_k,{...g,classNames:P,styles:F,checked:_,onChange:z,prefixCls:k,className:L,style:R,disabled:O,ref:t,loadingIcon:I}))});wk.__ANT_SWITCH=!0;var Tk={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 Ek(){return Ek=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},Ek.apply(this,arguments)}var Dk=v.forwardRef((e,t)=>v.createElement(So,Ek({},e,{ref:t,icon:Tk}))),Ok={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z`}}]},name:`folder-open`,theme:`outlined`};function kk(){return kk=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},kk.apply(this,arguments)}var Ak=v.forwardRef((e,t)=>v.createElement(So,kk({},e,{ref:t,icon:Ok}))),jk={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z`}}]},name:`folder`,theme:`outlined`};function Mk(){return Mk=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},Mk.apply(this,arguments)}var Nk=v.forwardRef((e,t)=>v.createElement(So,Mk({},e,{ref:t,icon:jk}))),Pk=e=>{let{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:i,calc:a}=e,o=a(r).sub(n).equal(),s=a(t).sub(n).equal();return{[i]:{...za(e),display:`inline-block`,height:`auto`,paddingInline:o,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:`nowrap`,backgroundColor:e.defaultBg,border:`${X(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:`start`,position:`relative`,[`&${i}-rtl`]:{direction:`rtl`},"&, a, a:hover":{color:e.defaultColor},[`${i}-close-icon`]:{marginInlineStart:s,fontSize:e.tagIconSize,color:e.colorIcon,cursor:`pointer`,transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},"&-checkable":{backgroundColor:`transparent`,borderColor:`transparent`,cursor:`pointer`,[`&:not(${i}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive},"&-disabled":{cursor:`not-allowed`,[`&:not(${i}-checkable-checked)`]:{color:e.colorTextDisabled,"&:hover":{backgroundColor:`transparent`}},[`&${i}-checkable-checked`]:{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled},"&:hover, &:active":{backgroundColor:e.colorBgContainerDisabled,color:e.colorTextDisabled},[`&:not(${i}-checkable-checked):hover`]:{color:e.colorTextDisabled}},"&-group":{display:`flex`,flexWrap:`wrap`,gap:e.paddingXS}},"&-hidden":{display:`none`},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:o}},[`&${e.componentCls}-solid`]:{borderColor:`transparent`,color:e.colorTextLightSolid,backgroundColor:e.colorBgSolid,[`&${i}-default`]:{color:e.solidTextColor}},[`${i}-filled`]:{borderColor:`transparent`,backgroundColor:e.tagBorderlessBg},[`&${i}-disabled`]:{color:e.colorTextDisabled,cursor:`not-allowed`,backgroundColor:e.colorBgContainerDisabled,a:{cursor:`not-allowed`,pointerEvents:`none`,color:e.colorTextDisabled,"&:hover":{color:e.colorTextDisabled}},"a&":{"&:hover, &:active":{color:e.colorTextDisabled}},[`&${i}-outlined`]:{borderColor:e.colorBorderDisabled},[`&${i}-solid, &${i}-filled`]:{color:e.colorTextDisabled,[`${i}-close-icon`]:{color:e.colorTextDisabled}},[`${i}-close-icon`]:{cursor:`not-allowed`,color:e.colorTextDisabled,"&:hover":{color:e.colorTextDisabled}}}}},Fk=e=>{let{lineWidth:t,fontSizeIcon:n,calc:r}=e,i=e.fontSizeSM;return si(e,{tagFontSize:i,tagLineHeight:X(r(e.lineHeightSM).mul(i).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},Ik=e=>{let t=Xf(new Wf(e.colorBgSolid),`#fff`)?`#000`:`#fff`;return{defaultBg:new ki(e.colorFillTertiary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText,solidTextColor:t}},Lk=Ja(`Tag`,e=>Pk(Fk(e)),Ik),Rk=v.forwardRef((e,t)=>{let{prefixCls:n,style:r,className:i,checked:a,children:o,icon:s,onChange:c,onClick:l,disabled:u,...d}=e,{getPrefixCls:f,tag:p}=v.useContext(Je),m=v.useContext(du),h=u??m,g=e=>{h||(c?.(!a),l?.(e))},_=f(`tag`,n),[y,b]=Lk(_),x=Y(_,`${_}-checkable`,{[`${_}-checkable-checked`]:a,[`${_}-checkable-disabled`]:h},p?.className,i,y,b);return v.createElement(`span`,{...d,ref:t,style:{...r,...p?.style},className:x,onClick:g},s,v.createElement(`span`,null,o))}),zk=v.forwardRef((e,t)=>{let{id:n,prefixCls:r,rootClassName:i,className:a,style:o,classNames:s,styles:c,disabled:l,options:u,value:d,defaultValue:f,onChange:p,multiple:m,...h}=e,{getPrefixCls:g,direction:_,className:y,style:b,classNames:x,styles:S}=Ze(`tag`),C=g(`tag`,r),w=`${C}-checkable-group`,[E,D]=Lk(C,Yc(C)),[O,k]=Dc([x,s],[S,c],{props:e}),A=(0,v.useMemo)(()=>Array.isArray(u)?u.map(e=>sc(e)?e:{value:e,label:e}):[],[u]),[j,M]=T(f,d),N=(e,t)=>{let n=null;if(m){let r=j||[];n=e?[].concat(ze(r),[t.value]):r.filter(e=>e!==t.value)}else n=e?t.value:null;M(n),p?.(n)},P=v.useRef(null);(0,v.useImperativeHandle)(t,()=>({nativeElement:P.current}));let F=Ns(h,{aria:!0,data:!0});return v.createElement(`div`,{...F,className:Y(w,y,i,{[`${w}-disabled`]:l,[`${w}-rtl`]:_===`rtl`},E,D,a,O.root),style:{...b,...k.root,...o},id:n,ref:P},A.map(e=>v.createElement(Rk,{key:e.value,className:Y(`${w}-item`,O.item),style:k.item,checked:m?(j||[]).includes(e.value):j===e.value,onChange:t=>N(t,e),disabled:l},e.label)))});function Bk(e,t){let{color:n,variant:r,bordered:i}=e;return v.useMemo(()=>{let e=n?.endsWith(`-inverse`),a;a=r||(e?`solid`:i===!1?`filled`:t||`filled`);let o=e?n?.replace(`-inverse`,``):n,s=px(n),c=mx(n),l={};if(!s&&!c&&o)if(a===`solid`)l.backgroundColor=n;else{let e=new ki(o).toHsl();e.l=.95,l.backgroundColor=new ki(e).toHexString(),l.color=n,a===`outlined`&&(l.borderColor=n)}return[a,o,s,c,l]},[n,r,i,t])}var Vk=e=>Qa(e,(t,{textColor:n,lightBorderColor:r,lightColor:i,darkColor:a})=>({[`${e.componentCls}${e.componentCls}-${t}:not(${e.componentCls}-disabled)`]:{[`&${e.componentCls}-outlined`]:{backgroundColor:i,borderColor:r,color:n},[`&${e.componentCls}-solid`]:{backgroundColor:a,borderColor:a,color:e.colorTextLightSolid},[`&${e.componentCls}-filled`]:{backgroundColor:i,color:n}}})),Hk=Xa([`Tag`,`preset`],e=>Vk(Fk(e)),Ik);function Uk(e){return typeof e==`string`?e.charAt(0).toUpperCase()+e.slice(1):e}var Wk=(e,t,n)=>{let r=Uk(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}`]}}}},Gk=Xa([`Tag`,`status`],e=>{let t=Fk(e);return[Wk(t,`success`,`Success`),Wk(t,`processing`,`Info`),Wk(t,`error`,`Error`),Wk(t,`warning`,`Warning`)]},Ik),Kk=v.forwardRef((e,t)=>{let{prefixCls:n,className:r,rootClassName:i,style:a,children:o,icon:s,color:c,variant:l,onClose:u,bordered:d,disabled:f,href:p,target:m,styles:h,classNames:g,..._}=e,{getPrefixCls:y,direction:b,className:x,variant:S,style:C,classNames:w,styles:T}=Ze(`tag`),[E,D,O,k,A]=Bk(e,S),j=O||k,M=v.useContext(du),N=f??M,{tag:P}=v.useContext(Je),[F,I]=v.useState(!0),L=ue(_,[`closeIcon`,`closable`]),R={...e,color:D,variant:E,disabled:N},[z,B]=Dc([w,g],[T,h],{props:R}),V=v.useMemo(()=>{let e={...B.root,...C,...a};return N||(e={...A,...e}),e},[B.root,C,a,A,N]),H=y(`tag`,n),[U,W]=Lk(H),ee=Y(H,x,z.root,`${H}-${E}`,{[`${H}-${D}`]:j,[`${H}-hidden`]:!F,[`${H}-rtl`]:b===`rtl`,[`${H}-disabled`]:N},r,i,U,W),te=e=>{N||(e.stopPropagation(),u?.(e),!e.defaultPrevented&&I(!1))},[,G]=_c(dc(e),dc(P),{closable:!1,closeIconRender:e=>au(e,v.createElement(`span`,{className:`${H}-close-icon`,onClick:te},e),e=>({onClick:t=>{e?.onClick?.(t),te(t)},className:Y(e?.className,`${H}-close-icon`)}))}),ne=typeof _.onClick==`function`||o&&o.type===`a`,re=ou(s,{className:Y(v.isValidElement(s)?s.props?.className:void 0,z.icon),style:B.icon}),ie=re?v.createElement(v.Fragment,null,re,o&&v.createElement(`span`,{className:z.content,style:B.content},o)):o,K=p?`a`:`span`,q=v.createElement(K,{...L,ref:t,className:ee,style:V,href:N?void 0:p,target:m,onClick:N?void 0:L.onClick,...p&&N?{"aria-disabled":!0}:{}},ie,G,O&&v.createElement(Hk,{key:`preset`,prefixCls:H}),k&&v.createElement(Gk,{key:`status`,prefixCls:H}));return ne?v.createElement(Ad,{component:`Tag`},q):q});Kk.CheckableTag=Rk,Kk.CheckableTagGroup=zk;var qk={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 Jk(){return Jk=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},Jk.apply(this,arguments)}var Yk=v.forwardRef((e,t)=>v.createElement(So,Jk({},e,{ref:t,icon:qk}))),Xk={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 Zk(){return Zk=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},Zk.apply(this,arguments)}var Qk=v.forwardRef((e,t)=>v.createElement(So,Zk({},e,{ref:t,icon:Xk}))),$k={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 eA(){return eA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},eA.apply(this,arguments)}var tA=v.forwardRef((e,t)=>v.createElement(So,eA({},e,{ref:t,icon:$k}))),nA=(e,t,n,r)=>{let{titleMarginBottom:i,fontWeightStrong:a}=r;return{marginBottom:i,color:n,fontWeight:a,fontSize:e,lineHeight:t}},rA=e=>{let t=[1,2,3,4,5],n={};return t.forEach(t=>{n[`
249
249
  h${t}&,
250
250
  div&-h${t},
251
251
  div&-h${t} > textarea,
252
252
  h${t}
253
- `]=Vk(e[`fontSizeHeading${t}`],e[`lineHeightHeading${t}`],e.colorTextHeading,e)}),n},Uk=e=>{let{componentCls:t}=e;return{[`&${`${t}-link`}`]:{...qa(e),userSelect:`text`,[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:`not-allowed`,"&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:`none`,[`${t}-actions`]:{pointerEvents:`auto`}}}}}},Wk=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:Ki[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}}),Gk=e=>{let{componentCls:t,paddingSM:n}=e,r=n;return{"&-edit-content":{position:`relative`,"div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),insetBlockStart:e.calc(r).div(-2).add(1).equal(),marginBottom:e.calc(r).div(2).sub(2).equal()},[`${t}-edit-content-confirm`]:{position:`absolute`,insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorIcon,fontWeight:`normal`,fontSize:e.fontSize,fontStyle:`normal`,pointerEvents:`none`},textarea:{margin:`0!important`,MozTransition:`none`,height:`1em`}}}},Kk=e=>({[`${e.componentCls}-copy-success`]:{"&, &:hover, &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),qk=()=>({"a&-ellipsis, span&-ellipsis":{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`}}),Jk=Ja(`Typography`,e=>{let{componentCls:t,titleMarginTop:n}=e;return{[t]:{color:e.colorText,wordBreak:`break-word`,lineHeight:e.lineHeight,[`&${t}-secondary, &${t}-link${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success, &${t}-link${t}-success`]:{color:e.colorSuccessText},[`&${t}-warning, &${t}-link${t}-warning`]:{color:e.colorWarningText},[`&${t}-danger, &${t}-link${t}-danger`]:{color:e.colorErrorText,[`&${t}-link:active, &${t}-link:focus`]:{color:e.colorErrorTextActive},[`&${t}-link:hover`]:{color:e.colorErrorTextHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:`not-allowed`,userSelect:`none`},"div&, p":{marginBottom:`1em`},...Hk(e),[`& + h1${t}, & + h2${t}, & + h3${t}, & + h4${t}, & + h5${t}`]:{marginTop:n},"div, ul, li, p, h1, h2, h3, h4, h5":{"+ h1, + h2, + h3, + h4, + h5":{marginTop:n}},...Wk(e),...Uk(e),[`${t}-actions`]:{display:`inline`},[`
253
+ `]=nA(e[`fontSizeHeading${t}`],e[`lineHeightHeading${t}`],e.colorTextHeading,e)}),n},iA=e=>{let{componentCls:t}=e;return{[`&${`${t}-link`}`]:{...qa(e),userSelect:`text`,[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:`not-allowed`,"&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:`none`,[`${t}-actions`]:{pointerEvents:`auto`}}}}}},aA=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:Ki[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}}),oA=e=>{let{componentCls:t,paddingSM:n}=e,r=n;return{"&-edit-content":{position:`relative`,"div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),insetBlockStart:e.calc(r).div(-2).add(1).equal(),marginBottom:e.calc(r).div(2).sub(2).equal()},[`${t}-edit-content-confirm`]:{position:`absolute`,insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorIcon,fontWeight:`normal`,fontSize:e.fontSize,fontStyle:`normal`,pointerEvents:`none`},textarea:{margin:`0!important`,MozTransition:`none`,height:`1em`}}}},sA=e=>({[`${e.componentCls}-copy-success`]:{"&, &:hover, &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),cA=()=>({"a&-ellipsis, span&-ellipsis":{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`}}),lA=Ja(`Typography`,e=>{let{componentCls:t,titleMarginTop:n}=e;return{[t]:{color:e.colorText,wordBreak:`break-word`,lineHeight:e.lineHeight,[`&${t}-secondary, &${t}-link${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success, &${t}-link${t}-success`]:{color:e.colorSuccessText},[`&${t}-warning, &${t}-link${t}-warning`]:{color:e.colorWarningText},[`&${t}-danger, &${t}-link${t}-danger`]:{color:e.colorErrorText,[`&${t}-link:active, &${t}-link:focus`]:{color:e.colorErrorTextActive},[`&${t}-link:hover`]:{color:e.colorErrorTextHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:`not-allowed`,userSelect:`none`},"div&, p":{marginBottom:`1em`},...rA(e),[`& + h1${t}, & + h2${t}, & + h3${t}, & + h4${t}, & + h5${t}`]:{marginTop:n},"div, ul, li, p, h1, h2, h3, h4, h5":{"+ h1, + h2, + h3, + h4, + h5":{marginTop:n}},...aA(e),...iA(e),[`${t}-actions`]:{display:`inline`},[`
254
254
  ${t}-expand,
255
255
  ${t}-collapse,
256
256
  ${t}-edit,
257
257
  ${t}-copy
258
- `]:{...qa(e),marginInlineStart:e.marginXXS},...Gk(e),...Kk(e),...qk(),"&-rtl":{direction:`rtl`}}}},()=>({titleMarginTop:`1.2em`,titleMarginBottom:`0.5em`})),Yk=e=>{let{prefixCls:t,"aria-label":n,className:r,style:i,direction:a,maxLength:o,autoSize:s=!0,value:c,onSave:l,onCancel:u,onEnd:d,component:f,enterIcon:p=v.createElement(Bk,null)}=e,m=v.useRef(null),h=v.useRef(!1),g=v.useRef(null),[_,y]=v.useState(c);v.useEffect(()=>{y(c)},[c]),v.useEffect(()=>{if(m.current?.resizableTextArea){let{textArea:e}=m.current.resizableTextArea;e.focus();let{length:t}=e.value;e.setSelectionRange(t,t)}},[]);let b=({target:e})=>{y(e.value.replace(/[\n\r]/g,``))},x=()=>{h.current=!0},S=()=>{h.current=!1},C=({keyCode:e})=>{h.current||(g.current=e)},w=()=>{l(_.trim())},T=({keyCode:e,ctrlKey:t,altKey:n,metaKey:r,shiftKey:i})=>{g.current!==e||h.current||t||n||r||i||(e===Z.ENTER?(w(),d?.()):e===Z.ESC&&u())},E=()=>{w()},[D,O]=Jk(t),k=Y(t,`${t}-edit-content`,{[`${t}-rtl`]:a===`rtl`,[`${t}-${f}`]:!!f},r,D,O);return v.createElement(`div`,{className:k,style:i},v.createElement(DD,{ref:m,maxLength:o,value:_,onChange:b,onKeyDown:C,onKeyUp:T,onCompositionStart:x,onCompositionEnd:S,onBlur:E,"aria-label":n,rows:1,autoSize:s}),p===null?null:ou(p,{className:`${t}-edit-content-confirm`}))},Xk=(e,t)=>{let n=!1,r=r=>{r.stopPropagation(),r.preventDefault(),r.clipboardData?.clearData(),r.clipboardData?.setData(`text/plain`,e),t&&r.clipboardData?.setData(`text/html`,e),n=!0};try{return document.addEventListener(`copy`,r,{capture:!0}),document.execCommand(`copy`),n}catch{return!1}finally{document.removeEventListener(`copy`,r,{capture:!0})}},Zk=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 Qk(e,t){if(typeof e!=`string`)return!1;let n=t?.format===`text/html`;return!!(await Zk(e,n)||Xk(e,n))}var $k=({copyConfig:e,children:t})=>{let[n,r]=v.useState(!1),[i,a]=v.useState(!1),o=v.useRef(null),s=()=>{o.current&&clearTimeout(o.current)},c={};return e.format&&(c.format=e.format),v.useEffect(()=>s,[]),{copied:n,copyLoading:i,onClick:y(async n=>{n?.preventDefault(),n?.stopPropagation(),a(!0);try{await Qk((typeof e.text==`function`?await e.text():e.text)||WO(t,{skipEmpty:!0}).join(``)||``,c),a(!1),r(!0),s(),o.current=setTimeout(()=>{r(!1)},3e3),e.onCopy?.(n)}catch(e){throw a(!1),e}})}};function eA(e,t){return v.useMemo(()=>{let n=!!e;return[n,{...t,...n&&typeof e==`object`?e:null}]},[e])}var tA=e=>{let t=(0,v.useRef)(void 0);return(0,v.useEffect)(()=>{t.current=e}),t.current},nA=(e,t,n)=>(0,v.useMemo)(()=>e===!0?{title:t??n}:(0,v.isValidElement)(e)?{title:e}:sc(e)?{title:t??n,...e}:{title:e},[e,t,n]),rA=v.forwardRef((e,t)=>{let{prefixCls:n,component:r=`article`,className:i,rootClassName:a,children:o,direction:s,style:c,...l}=e,{getPrefixCls:u,direction:d,className:f,style:p}=Ze(`typography`),m=s??d,h=u(`typography`,n),[g,_]=Jk(h),y=Y(h,f,{[`${h}-rtl`]:m===`rtl`},i,a,g,_),b={...p,...c};return v.createElement(r,{className:y,style:b,ref:t,...l},o)}),iA={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 aA(){return aA=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},aA.apply(this,arguments)}var oA=v.forwardRef((e,t)=>v.createElement(So,aA({},e,{ref:t,icon:iA}))),sA=e=>e===!1?[!1,!1]:WO(e);function cA(e,t,n){return e===!0||e===void 0?t:e||n&&t}function lA(e){let t=document.createElement(`em`);e.appendChild(t);let n=e.getBoundingClientRect(),r=t.getBoundingClientRect();return e.removeChild(t),n.left>r.left||r.right>n.right||n.top>r.top||r.bottom>n.bottom}var uA=e=>[`string`,`number`].includes(typeof e),dA=e=>{let{prefixCls:t,copied:n,locale:r,iconOnly:i,tooltips:a,icon:o,tabIndex:s,onCopy:c,loading:l}=e,u=sA(a),d=sA(o),{copied:f,copy:p}=r??{},m=n?f:p,h=cA(u[+!!n],m),g=typeof h==`string`?h:m;return v.createElement(gx,{title:h},v.createElement(`button`,{type:`button`,className:Y(`${t}-copy`,{[`${t}-copy-success`]:n,[`${t}-copy-icon-only`]:i}),onClick:c,"aria-label":g,tabIndex:s},n?cA(d[1],v.createElement(xb,null),!0):cA(d[0],l?v.createElement(Yu,null):v.createElement(oA,null),!0)))},fA=v.forwardRef(({style:e,children:t},n)=>{let r=v.useRef(null);return v.useImperativeHandle(n,()=>({isExceed:()=>{let e=r.current;return e.scrollHeight>e.clientHeight},getHeight:()=>r.current.clientHeight})),v.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)}),pA=e=>e.reduce((e,t)=>e+(uA(t)?String(t).length:1),0);function mA(e,t){let n=0,r=[];for(let i=0;i<e.length;i+=1){if(n===t)return r;let a=e[i],o=uA(a)?String(a).length:1,s=n+o;if(s>t){let e=t-n;return r.push(String(a).slice(0,e)),r}r.push(a),n=s}return e}var hA=0,gA=1,_A=2,vA=3,yA=4,bA={display:`-webkit-box`,overflow:`hidden`,WebkitBoxOrient:`vertical`};function xA(e){let{enableMeasure:t,width:n,text:r,children:i,rows:a,expanded:o,miscDeps:s,onEllipsis:c}=e,l=v.useMemo(()=>de(r),[r]),u=v.useMemo(()=>pA(l),[r]),d=v.useMemo(()=>i(l,!1),[r]),[f,p]=v.useState(null),m=v.useRef(null),h=v.useRef(null),g=v.useRef(null),_=v.useRef(null),y=v.useRef(null),[b,x]=v.useState(!1),[C,w]=v.useState(hA),[T,E]=v.useState(0),[D,O]=v.useState(null);S(()=>{w(t&&n&&u?gA:hA)},[n,r,a,t,l]),S(()=>{if(C===gA)w(_A),O(h.current&&getComputedStyle(h.current).whiteSpace);else if(C===_A){let e=!!g.current?.isExceed();w(e?vA:yA),p(e?[0,u]:null),x(e);let t=g.current?.getHeight()||0,n=a===1?0:_.current?.getHeight()||0,r=y.current?.getHeight()||0;E(Math.max(t,n+r)+1),c(e)}},[C]);let k=f?Math.ceil((f[0]+f[1])/2):0;S(()=>{let[e,t]=f||[0,0];if(e!==t){let n=(m.current?.getHeight()||0)>T,r=k;t-e===1&&(r=n?e:t),p(n?[e,r]:[r,t])}},[f,k]);let A=v.useMemo(()=>{if(!t)return i(l,!1);if(C!==vA||!f||f[0]!==f[1]){let e=i(l,!1);return[yA,hA].includes(C)?e:v.createElement(`span`,{style:{...bA,WebkitLineClamp:a}},e)}return i(o?l:mA(l,f[0]),b)},[o,C,f,l].concat(ze(s))),j={width:n,margin:0,padding:0,whiteSpace:D===`nowrap`?`normal`:`inherit`};return v.createElement(v.Fragment,null,A,C===_A&&v.createElement(v.Fragment,null,v.createElement(fA,{style:{...j,...bA,WebkitLineClamp:a},ref:g},d),v.createElement(fA,{style:{...j,...bA,WebkitLineClamp:a-1},ref:_},d),v.createElement(fA,{style:{...j,...bA,WebkitLineClamp:1},ref:y},i([],!0))),C===vA&&f&&f[0]!==f[1]&&v.createElement(fA,{style:{...j,top:400},ref:m},i(mA(l,k),!0)),C===gA&&v.createElement(`span`,{style:{whiteSpace:`inherit`},ref:h}))}var SA=({enableEllipsis:e,isEllipsis:t,open:n,children:r,tooltipProps:i})=>{if(!i?.title||!e)return r;let a=n&&t;return v.createElement(gx,{open:a,...i},r)};function CA({mark:e,code:t,underline:n,delete:r,strong:i,keyboard:a,italic:o},s){let c=s;function l(e,t){t&&(c=v.createElement(e,{},c))}return l(`strong`,i),l(`u`,n),l(`del`,r),l(`code`,t),l(`mark`,e),l(`kbd`,a),l(`i`,o),c}var wA=`...`,TA=[`delete`,`mark`,`code`,`underline`,`strong`,`keyboard`,`italic`],EA=v.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:i,type:a,disabled:o,children:s,ellipsis:c,editable:l,copyable:u,component:d,title:f,onMouseEnter:p,onMouseLeave:m,...h}=e,{getPrefixCls:g,direction:_}=v.useContext(Je),[y]=ec(`Text`),b=v.useRef(null),x=v.useRef(null),C=g(`typography`,n),w=ue(h,TA),[E,D]=eA(l),[O,k]=T(!1,D.editing),{triggerType:A=[`icon`]}=D,j=e=>{e&&D.onStart?.(),k(e)},M=tA(O);S(()=>{!O&&M&&x.current?.focus()},[O]);let N=e=>{e?.preventDefault(),j(!0)},P=e=>{D.onChange?.(e),j(!1)},F=()=>{D.onCancel?.(),j(!1)},[L,R]=eA(u),{copied:z,copyLoading:B,onClick:V}=$k({copyConfig:R,children:s}),[H,U]=v.useState(!1),[W,ee]=v.useState(!1),[te,G]=v.useState(!1),[ne,re]=v.useState(!1),[ie,K]=v.useState(!0),[q,ae]=eA(c,{expandable:!1,symbol:e=>e?y?.collapse:y?.expand}),[oe,se]=T(ae.defaultExpanded||!1,ae.expanded),J=q&&(!oe||ae.expandable===`collapsible`),{rows:ce=1}=ae,le=v.useMemo(()=>J&&(ae.suffix!==void 0||ae.onEllipsis||ae.expandable||E||L),[J,ae,E,L]);S(()=>{q&&!le&&(U(Wh(`webkitLineClamp`)),ee(Wh(`textOverflow`)))},[le,q]);let[fe,pe]=v.useState(J),me=v.useMemo(()=>le?!1:ce===1?W:H,[le,W,H]);S(()=>{pe(me&&J)},[me,J]);let he=nA(ae.tooltip,D.text,s),ge=fe&&!!he.title,_e=J&&(fe?ge&&ne:te),ve=J&&ce===1&&fe,ye=J&&ce>1&&fe,be=(e,t)=>{se(t.expanded),ae.onExpand?.(e,t)},[xe,Se]=v.useState(0),[Ce,we]=v.useState(!1),[Te,Ee]=v.useState(!1),De=({offsetWidth:e})=>{Se(e)},Oe=e=>{G(e),te!==e&&ae.onEllipsis?.(e)};v.useEffect(()=>{let e=b.current;if(q&&ge&&e){let t=lA(e);ne!==t&&re(t)}},[q,ge,s,ye,ie,xe]),v.useEffect(()=>{let e=b.current;if(typeof IntersectionObserver>`u`||!e||!ge||!J)return;let t=new IntersectionObserver(()=>{K(!!e.offsetParent)});return t.observe(e),()=>{t.disconnect()}},[ge,J]);let ke=v.useMemo(()=>{if(!(!q||fe))return[D.text,s,f,he.title].find(uA)},[q,fe,f,he.title,_e]);if(O)return v.createElement(Yk,{value:D.text??(typeof s==`string`?s:``),onSave:P,onCancel:F,onEnd:D.onEnd,prefixCls:C,className:r,style:i,direction:_,component:d,maxLength:D.maxLength,autoSize:D.autoSize,enterIcon:D.enterIcon});let Ae=()=>{let{expandable:e,symbol:t}=ae;return e?v.createElement(`button`,{type:`button`,key:`expand`,className:`${C}-${oe?`collapse`:`expand`}`,onClick:e=>be(e,{expanded:!oe}),"aria-label":oe?y.collapse:y?.expand},typeof t==`function`?t(oe):t):null},je=()=>{if(!E)return;let{icon:e,tooltip:t,tabIndex:n}=D,r=de(t)[0]||y?.edit,i=typeof r==`string`?r:``;return A.includes(`icon`)?v.createElement(gx,{key:`edit`,title:t===!1?``:r},v.createElement(`button`,{type:`button`,ref:x,className:`${C}-edit`,onClick:N,"aria-label":i,tabIndex:n},e||v.createElement(Lk,{role:`button`}))):null},Ne=()=>L?v.createElement(dA,{key:`copy`,...R,prefixCls:C,copied:z,locale:y,onCopy:V,loading:B,iconOnly:!ic(s)}):null,Pe=e=>{let t=e&&Ae(),n=je(),r=Ne();return!t&&!n&&!r?null:v.createElement(`span`,{key:`operations`,className:`${C}-actions`,onMouseEnter:()=>we(!0),onMouseLeave:()=>we(!1)},t,n,r)},Fe=e=>[e&&!oe&&v.createElement(`span`,{"aria-hidden":!0,key:`ellipsis`},wA),ae.suffix,Pe(e)];return v.createElement(Me,{onResize:De,disabled:!J},c=>v.createElement(SA,{tooltipProps:he,enableEllipsis:J,isEllipsis:_e,open:Te&&!Ce},v.createElement(rA,{onMouseEnter:e=>{Ee(!0),p?.(e)},onMouseLeave:e=>{Ee(!1),m?.(e)},className:Y({[`${C}-${a}`]:a,[`${C}-disabled`]:o,[`${C}-ellipsis`]:q,[`${C}-ellipsis-single-line`]:ve,[`${C}-ellipsis-multiple-line`]:ye,[`${C}-link`]:d===`a`},r),prefixCls:n,style:{...i,WebkitLineClamp:ye?ce:void 0},component:d,ref:I(c,b,t),direction:_,onClick:A.includes(`text`)?N:void 0,"aria-label":ke?.toString(),title:f,...w},v.createElement(xA,{enableMeasure:J&&!fe,text:s,rows:ce,width:xe,onEllipsis:Oe,expanded:oe,miscDeps:[z,oe,B,E,L,y].concat(ze(TA.map(t=>e[t])))},(t,n)=>CA(e,v.createElement(v.Fragment,null,t.length>0&&n&&!oe&&ke?v.createElement(`span`,{key:`show-content`,"aria-hidden":!0},t):t,Fe(n)))))))}),DA=v.forwardRef((e,t)=>{let{ellipsis:n,rel:r,children:i,navigate:a,...o}=e,s={...o,rel:r===void 0&&o.target===`_blank`?`noopener noreferrer`:r};return v.createElement(EA,{...s,ref:t,ellipsis:!!n,component:`a`},i)}),OA=v.forwardRef((e,t)=>{let{children:n,...r}=e;return v.createElement(EA,{ref:t,...r,component:`div`},n)}),kA=v.forwardRef((e,t)=>{let{ellipsis:n,children:r,...i}=e,a=v.useMemo(()=>sc(n)?ue(n,[`expandable`,`rows`]):n,[n]);return v.createElement(EA,{ref:t,...i,ellipsis:a,component:`span`},r)}),AA=[1,2,3,4,5],jA=v.forwardRef((e,t)=>{let{level:n=1,children:r,...i}=e,a=AA.includes(n)?`h${n}`:`h1`;return v.createElement(EA,{ref:t,...i,component:a},r)}),MA=rA;MA.Text=kA,MA.Link=DA,MA.Title=jA,MA.Paragraph=OA;var NA={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M908 640H804V488c0-4.4-3.6-8-8-8H548v-96h108c8.8 0 16-7.2 16-16V80c0-8.8-7.2-16-16-16H368c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h108v96H228c-4.4 0-8 3.6-8 8v152H116c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h288c8.8 0 16-7.2 16-16V656c0-8.8-7.2-16-16-16H292v-88h440v88H620c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h288c8.8 0 16-7.2 16-16V656c0-8.8-7.2-16-16-16zm-564 76v168H176V716h168zm84-408V140h168v168H428zm420 576H680V716h168v168z`}}]},name:`apartment`,theme:`outlined`};function PA(){return PA=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},PA.apply(this,arguments)}var FA=v.forwardRef((e,t)=>v.createElement(So,PA({},e,{ref:t,icon:NA}))),IA={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M855 160.1l-189.2 23.5c-6.6.8-9.3 8.8-4.7 13.5l54.7 54.7-153.5 153.5a8.03 8.03 0 000 11.3l45.1 45.1c3.1 3.1 8.2 3.1 11.3 0l153.6-153.6 54.7 54.7a7.94 7.94 0 0013.5-4.7L863.9 169a7.9 7.9 0 00-8.9-8.9zM416.6 562.3a8.03 8.03 0 00-11.3 0L251.8 715.9l-54.7-54.7a7.94 7.94 0 00-13.5 4.7L160.1 855c-.6 5.2 3.7 9.5 8.9 8.9l189.2-23.5c6.6-.8 9.3-8.8 4.7-13.5l-54.7-54.7 153.6-153.6c3.1-3.1 3.1-8.2 0-11.3l-45.2-45z`}}]},name:`arrows-alt`,theme:`outlined`};function LA(){return LA=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},LA.apply(this,arguments)}var RA=v.forwardRef((e,t)=>v.createElement(So,LA({},e,{ref:t,icon:IA}))),zA={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M464 512a48 48 0 1096 0 48 48 0 10-96 0zm200 0a48 48 0 1096 0 48 48 0 10-96 0zm-400 0a48 48 0 1096 0 48 48 0 10-96 0zm661.2-173.6c-22.6-53.7-55-101.9-96.3-143.3a444.35 444.35 0 00-143.3-96.3C630.6 75.7 572.2 64 512 64h-2c-60.6.3-119.3 12.3-174.5 35.9a445.35 445.35 0 00-142 96.5c-40.9 41.3-73 89.3-95.2 142.8-23 55.4-34.6 114.3-34.3 174.9A449.4 449.4 0 00112 714v152a46 46 0 0046 46h152.1A449.4 449.4 0 00510 960h2.1c59.9 0 118-11.6 172.7-34.3a444.48 444.48 0 00142.8-95.2c41.3-40.9 73.8-88.7 96.5-142 23.6-55.2 35.6-113.9 35.9-174.5.3-60.9-11.5-120-34.8-175.6zm-151.1 438C704 845.8 611 884 512 884h-1.7c-60.3-.3-120.2-15.3-173.1-43.5l-8.4-4.5H188V695.2l-4.5-8.4C155.3 633.9 140.3 574 140 513.7c-.4-99.7 37.7-193.3 107.6-263.8 69.8-70.5 163.1-109.5 262.8-109.9h1.7c50 0 98.5 9.7 144.2 28.9 44.6 18.7 84.6 45.6 119 80 34.3 34.3 61.3 74.4 80 119 19.4 46.2 29.1 95.2 28.9 145.8-.6 99.6-39.7 192.9-110.1 262.7z`}}]},name:`message`,theme:`outlined`};function BA(){return BA=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},BA.apply(this,arguments)}var VA=v.forwardRef((e,t)=>v.createElement(So,BA({},e,{ref:t,icon:zA}))),HA={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`defs`,attrs:{},children:[{tag:`style`,attrs:{}}]},{tag:`path`,attrs:{d:`M640.6 429.8h257.1c7.9 0 14.3-6.4 14.3-14.3V158.3c0-7.9-6.4-14.3-14.3-14.3H640.6c-7.9 0-14.3 6.4-14.3 14.3v92.9H490.6c-3.9 0-7.1 3.2-7.1 7.1v221.5h-85.7v-96.5c0-7.9-6.4-14.3-14.3-14.3H126.3c-7.9 0-14.3 6.4-14.3 14.3v257.2c0 7.9 6.4 14.3 14.3 14.3h257.1c7.9 0 14.3-6.4 14.3-14.3V544h85.7v221.5c0 3.9 3.2 7.1 7.1 7.1h135.7v92.9c0 7.9 6.4 14.3 14.3 14.3h257.1c7.9 0 14.3-6.4 14.3-14.3v-257c0-7.9-6.4-14.3-14.3-14.3h-257c-7.9 0-14.3 6.4-14.3 14.3v100h-78.6v-393h78.6v100c0 7.9 6.4 14.3 14.3 14.3zm53.5-217.9h150V362h-150V211.9zM329.9 587h-150V437h150v150zm364.2 75.1h150v150.1h-150V662.1z`}}]},name:`partition`,theme:`outlined`};function UA(){return UA=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},UA.apply(this,arguments)}var WA=v.forwardRef((e,t)=>v.createElement(So,UA({},e,{ref:t,icon:HA}))),GA={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 KA(){return KA=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},KA.apply(this,arguments)}var qA=v.forwardRef((e,t)=>v.createElement(So,KA({},e,{ref:t,icon:GA}))),JA={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M881.7 187.4l-45.1-45.1a8.03 8.03 0 00-11.3 0L667.8 299.9l-54.7-54.7a7.94 7.94 0 00-13.5 4.7L576.1 439c-.6 5.2 3.7 9.5 8.9 8.9l189.2-23.5c6.6-.8 9.3-8.8 4.7-13.5l-54.7-54.7 157.6-157.6c3-3 3-8.1-.1-11.2zM439 576.1l-189.2 23.5c-6.6.8-9.3 8.9-4.7 13.5l54.7 54.7-157.5 157.5a8.03 8.03 0 000 11.3l45.1 45.1c3.1 3.1 8.2 3.1 11.3 0l157.6-157.6 54.7 54.7a7.94 7.94 0 0013.5-4.7L447.9 585a7.9 7.9 0 00-8.9-8.9z`}}]},name:`shrink`,theme:`outlined`};function YA(){return YA=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},YA.apply(this,arguments)}var XA=v.forwardRef((e,t)=>v.createElement(So,YA({},e,{ref:t,icon:JA}))),ZA={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,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:`unordered-list`,theme:`outlined`};function QA(){return QA=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},QA.apply(this,arguments)}var $A=v.forwardRef((e,t)=>v.createElement(So,QA({},e,{ref:t,icon:ZA}))),ej={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M859.9 780H164.1c-4.5 0-8.1 3.6-8.1 8v60c0 4.4 3.6 8 8.1 8h695.8c4.5 0 8.1-3.6 8.1-8v-60c0-4.4-3.6-8-8.1-8zM505.7 669a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V176c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8z`}}]},name:`vertical-align-bottom`,theme:`outlined`};function tj(){return tj=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},tj.apply(this,arguments)}var nj=v.forwardRef((e,t)=>v.createElement(So,tj({},e,{ref:t,icon:ej}))),rj={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M859.9 474H164.1c-4.5 0-8.1 3.6-8.1 8v60c0 4.4 3.6 8 8.1 8h695.8c4.5 0 8.1-3.6 8.1-8v-60c0-4.4-3.6-8-8.1-8zm-353.6-74.7c2.9 3.7 8.5 3.7 11.3 0l100.8-127.5c3.7-4.7.4-11.7-5.7-11.7H550V104c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v156h-62.8c-6 0-9.4 7-5.7 11.7l100.8 127.6zm11.4 225.4a7.14 7.14 0 00-11.3 0L405.6 752.3a7.23 7.23 0 005.7 11.7H474v156c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V764h62.8c6 0 9.4-7 5.7-11.7L517.7 624.7z`}}]},name:`vertical-align-middle`,theme:`outlined`};function ij(){return ij=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},ij.apply(this,arguments)}var aj=v.forwardRef((e,t)=>v.createElement(So,ij({},e,{ref:t,icon:rj})));function oj(e){return e.anchor.type===`file`?0:e.anchor.lineNumber}function sj(e,t){return t.filter(t=>t.filePath===e&&t.status!==`resolved`).sort((e,t)=>oj(e)-oj(t)||e.createdAt.localeCompare(t.createdAt))[0]}function cj(e){return e.anchor.type===`diff-line`?`${e.anchor.side}:${e.anchor.lineNumber}`:null}function lj(e,t){return t===`old`?e.oldLines>0?e.oldStart+e.oldLines-1:e.oldStart-1:e.newLines>0?e.newStart+e.newLines-1:e.newStart-1}function uj(e,t){if(!t||e.hunks.length===0)return[];let n=[],r=0,i=0;e.hunks.forEach((t,a)=>{let o=Math.max(0,t.oldStart-r-1),s=Math.max(0,t.newStart-i-1),c=e.status===`added`?`new`:e.status===`deleted`?`old`:`both`,l=c===`old`?o:c===`new`?s:Math.max(o,s);l>0&&n.push({key:`${e.path}-gap-${a}`,mode:c,hiddenCount:l,oldStart:r+1,oldEnd:t.oldStart-1,newStart:i+1,newEnd:t.newStart-1,direction:`up`,position:a}),r=lj(t,`old`),i=lj(t,`new`)});let a=Math.max(0,t.oldTotalLines-r),o=Math.max(0,t.newTotalLines-i),s=e.status===`added`?`new`:e.status===`deleted`?`old`:`both`,c=s===`old`?a:s===`new`?o:Math.max(a,o);return c>0&&n.push({key:`${e.path}-gap-tail`,mode:s,hiddenCount:c,oldStart:r+1,oldEnd:t.oldTotalLines,newStart:i+1,newEnd:t.newTotalLines,direction:`down`,position:`tail`}),n}function dj(e,t,n){if(!e||n<=0)return[];let r=[],i=t.oldStart>0?t.oldStart:1,a=t.oldEnd>0?t.oldEnd:0,o=t.newStart>0?t.newStart:1,s=t.newEnd>0?t.newEnd:0,c=t.direction,l=c===`down`?i:Math.max(i,a-n+1),u=c===`down`?o:Math.max(o,s-n+1);for(let i=0;i<n;i+=1){let n=t.mode===`new`?void 0:l+i,a=t.mode===`old`?void 0:u+i,o=t.mode===`old`?e.oldLines[n?n-1:0]??``:t.mode===`new`?e.newLines[a?a-1:0]??``:e.oldLines[n?n-1:0]??e.newLines[a?a-1:0]??``;r.push({key:`${t.key}-${i}`,line:{type:`context`,content:o,oldLineNumber:n,newLineNumber:a}})}return r}function fj(e,t){let n=[];e.hunks.forEach((e,r)=>{let i=t.get(r);i&&n.push({type:`gap`,key:i.key,gap:i,nextHunk:e,nextIndex:r}),n.push({type:`hunk`,key:`${e.header}-${r}`,hunk:e,index:r})});let r=t.get(`tail`);return r&&n.push({type:`gap`,key:r.key,gap:r}),n}function pj(e){e.scrollTop=0}function mj(e,t){let n=e.getBoundingClientRect(),r=t.getBoundingClientRect();e.scrollTop+=r.top-n.top}function hj(e){return e===`add`?`+`:e===`remove`?`-`:``}function gj(e){let t=[],n=0;for(;n<e.lines.length;){let r=e.lines[n];if(r.type===`context`){t.push({key:`${e.header}-context-${n}`,oldCell:{lineNumber:r.oldLineNumber,content:r.content,type:`context`,side:`old`},newCell:{lineNumber:r.newLineNumber,content:r.content,type:`context`,side:`new`}}),n+=1;continue}if(r.type===`remove`){let r=[],i=[];for(;n<e.lines.length&&e.lines[n].type===`remove`;)r.push(e.lines[n]),n+=1;for(;n<e.lines.length&&e.lines[n].type===`add`;)i.push(e.lines[n]),n+=1;let a=Math.max(r.length,i.length);for(let o=0;o<a;o+=1){let a=r[o],s=i[o];t.push({key:`${e.header}-change-${n}-${o}`,oldCell:a?{lineNumber:a.oldLineNumber,content:a.content,type:`remove`,side:`old`}:{content:``,type:`empty`,side:`old`},newCell:s?{lineNumber:s.newLineNumber,content:s.content,type:`add`,side:`new`}:{content:``,type:`empty`,side:`new`}})}continue}t.push({key:`${e.header}-add-${n}`,oldCell:{content:``,type:`empty`,side:`old`},newCell:{lineNumber:r.newLineNumber,content:r.content,type:`add`,side:`new`}}),n+=1}return t}function _j(e,t,n){return e.find(e=>{if(e.mode===`new`&&t===`old`||e.mode===`old`&&t===`new`)return!1;let r=t===`old`?e.oldStart:e.newStart,i=t===`old`?e.oldEnd:e.newEnd;return n>=r&&n<=i})??null}function vj(e){let[t,n]=v.useState(null);return v.useEffect(()=>{let t=new AbortController,r=!1;n(null);async function i(){try{let i=await fetch(`/api/diff-file-contents?path=${encodeURIComponent(e)}`,{signal:t.signal});if(!i.ok)return;let a=await i.json();r||n(a)}catch{r||n(null)}}return i(),()=>{r=!0,t.abort()}},[e]),t}function yj({filePath:e,viewMode:t,threads:n,fileContents:r,gapDescriptors:i,expandedGapLines:a,setExpandedGapLines:o,scrollRef:s,autoScrollKeyRef:c}){v.useLayoutEffect(()=>{let a=s.current;if(!a)return;let l=`${e}:${t}`;if(c.current===l)return;let u=sj(e,n);if(!u||u.anchor.type===`file`){pj(a),c.current=l;return}let d=cj(u),f=d?a.querySelector(`[data-review-anchor="${CSS.escape(d)}"]`):null;if(!f){if(!r)return;let e=u.anchor.type===`diff-line`?u.anchor.side:null,t=u.anchor.type===`diff-line`?u.anchor.lineNumber:null;if(e&&t!=null){let n=_j(i,e,t);if(n){o(e=>({...e,[n.key]:n.hiddenCount}));return}}pj(a),c.current=l;return}mj(a,f),c.current=l},[c,a,r,e,i,s,o,n,t])}function bj({filePath:e,locateTarget:t,viewMode:n,fileContents:r,gapDescriptors:i,expandedGapLines:a,setExpandedGapLines:o,scrollRef:s}){v.useLayoutEffect(()=>{let n=s.current;if(!n||!t||t.anchor.filePath!==e)return;if(t.anchor.type===`file`){pj(n);return}if(t.anchor.type!==`diff-line`)return;let{side:a,lineNumber:c}=t.anchor,l=n.querySelector(`[data-review-anchor="${CSS.escape(`${a}:${c}`)}"]`);if(l){mj(n,l);return}if(!r)return;let u=_j(i,a,c);if(u){o(e=>({...e,[u.key]:u.hiddenCount}));return}let d=[...n.querySelectorAll(`[data-review-anchor]`)].map(e=>{let[t,n]=(e.dataset.reviewAnchor??``).split(`:`),r=Number(n);return t!==`old`&&t!==`new`||!Number.isFinite(r)?null:{node:e,side:t,lineNumber:r}}).filter(e=>!!e).filter(e=>e.side===a).sort((e,t)=>Math.abs(e.lineNumber-c)-Math.abs(t.lineNumber-c));d[0]?mj(n,d[0].node):pj(n)},[a,r,e,i,t,s,o,n])}var xj={composer:`_composer_hhgmh_1`},Sj=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),Q=o(((e,t)=>{t.exports=Sj()}))();function Cj({style:e,placeholder:t,onSubmit:n,submitLabel:r=`添加评论`,onCancel:i}){let[a,o]=v.useState(``),[s,c]=v.useState(!1);return(0,Q.jsxs)(`form`,{className:xj.composer,style:e,onSubmit:e=>{e.preventDefault(),a.trim()&&(c(!0),n(a.trim()).then(()=>o(``)).finally(()=>c(!1)))},children:[(0,Q.jsx)(OD.TextArea,{placeholder:t,value:a,onChange:e=>o(e.target.value),autoSize:{minRows:3,maxRows:8}}),(0,Q.jsxs)(qE,{gap:`small`,justify:`end`,children:[(0,Q.jsx)(WC,{htmlType:`submit`,loading:s,type:`primary`,size:`small`,children:r}),i?(0,Q.jsx)(WC,{onClick:i,size:`small`,children:`取消`}):null]})]})}var wj={popover:`_popover_j0rpl_1`};function Tj({onCancel:e,onSubmit:t}){return(0,Q.jsx)(`div`,{className:wj.popover,children:(0,Q.jsx)(Cj,{placeholder:`请输入行内评论...`,submitLabel:`评论`,onSubmit:t,onCancel:e})})}var Ej={submit:`待提交`,replied:`已回复`,resolved:`已解决`};function Dj(e,t){return e.filePath===t.path&&e.fileSnapshotHash===t.snapshotHash}function Oj(e){return e.status===`resolved`?`resolved`:kj(e)}function kj(e){return e.comments.some(e=>e.author===`agent`)?`replied`:`submit`}function Aj(e){return e.length>0&&e.every(e=>Oj(e)===`resolved`)?`resolved`:e.some(e=>kj(e)===`replied`)?`replied`:`submit`}var jj={inlineThread:`_inlineThread_1qms3_1`,inlineThreadFileLevel:`_inlineThreadFileLevel_1qms3_8`,inlineThreadHeader:`_inlineThreadHeader_1qms3_8`,inlineThreadBody:`_inlineThreadBody_1qms3_11`,inlineThreadActions:`_inlineThreadActions_1qms3_15`,inlineThreadBorderless:`_inlineThreadBorderless_1qms3_18`,inlineThreadSubmit:`_inlineThreadSubmit_1qms3_30`,inlineThreadReplied:`_inlineThreadReplied_1qms3_35`,inlineThreadResolved:`_inlineThreadResolved_1qms3_40`,inlineThreadSection:`_inlineThreadSection_1qms3_52`,threadTag:`_threadTag_1qms3_58`,threadTagResolved:`_threadTagResolved_1qms3_67`,threadTagSubmit:`_threadTagSubmit_1qms3_72`,threadTagReplied:`_threadTagReplied_1qms3_77`,inlineThreadAgentLabel:`_inlineThreadAgentLabel_1qms3_82`,inlineThreadCommentItem:`_inlineThreadCommentItem_1qms3_89`,inlineThreadCommentItemAgent:`_inlineThreadCommentItemAgent_1qms3_97`,inlineThreadCommentActions:`_inlineThreadCommentActions_1qms3_105`,threadIconBtn:`_threadIconBtn_1qms3_111`,commentRow:`_commentRow_1qms3_118`,commentContent:`_commentContent_1qms3_124`,inlineThreadComposer:`_inlineThreadComposer_1qms3_135`,inlineThreadEdit:`_inlineThreadEdit_1qms3_138`,inlineThreadEditActions:`_inlineThreadEditActions_1qms3_144`,threadActionBtn:`_threadActionBtn_1qms3_157`};function Mj({threads:e,onFocus:t,onPatch:n,onDeleteThread:r,onReply:i,onPatchComment:a,onCopy:o,showStatusTag:s=!0,variant:c=`default`}){let[l,u]=v.useState(null),[d,f]=v.useState(null),[p,m]=v.useState(``),h=e[0],g=Aj(e),_=Fj(e),y=_?Oj(_):g,b=y===`resolved`,x=_?.comments.at(-1),S=Ij(y,x?.author);if(!h)return null;let C=c===`fileLevel`?jj.inlineThreadFileLevel:c===`borderless`?jj.inlineThreadBorderless:``;return(0,Q.jsxs)(`div`,{className:[jj.inlineThread,Nj(g),C].filter(Boolean).join(` `),onClick:()=>t(h.id),children:[(0,Q.jsx)(`div`,{className:jj.inlineThreadHeader,children:s&&g!==`replied`?(0,Q.jsx)(jk,{className:`${jj.threadTag} ${Pj(g)}`,children:Ej[g]}):null}),e.map(e=>{let n=Oj(e);return(0,Q.jsx)(`div`,{className:jj.inlineThreadSection,onClick:n=>{n.stopPropagation(),t(e.id)},children:e.comments.map(t=>{let r=t.author===`agent`,i=g===`submit`&&n===`submit`&&!r;return(0,Q.jsx)(`div`,{className:`${jj.inlineThreadCommentItem} ${r?jj.inlineThreadCommentItemAgent:``}`,children:(0,Q.jsxs)(`div`,{className:jj.commentRow,children:[(0,Q.jsxs)(`div`,{className:jj.commentContent,children:[r?(0,Q.jsx)(MA.Text,{className:jj.inlineThreadAgentLabel,strong:!0,children:`Agent`}):null,d===t.id?(0,Q.jsxs)(`div`,{className:jj.inlineThreadEdit,children:[(0,Q.jsx)(OD.TextArea,{value:p,autoSize:{minRows:3,maxRows:8},onClick:e=>e.stopPropagation(),onChange:e=>m(e.target.value)}),(0,Q.jsxs)(`div`,{className:jj.inlineThreadEditActions,children:[(0,Q.jsx)(WC,{size:`small`,onClick:e=>{e.stopPropagation(),f(null),m(``)},children:`取消`}),(0,Q.jsx)(WC,{size:`small`,type:`primary`,onClick:async n=>{n.stopPropagation(),await a(e.id,t.id,p),f(null),m(``)},children:`保存`})]})]}):(0,Q.jsx)(MA.Paragraph,{className:jj.inlineThreadBody,children:t.body})]}),i&&d!==t.id?(0,Q.jsx)(`div`,{className:jj.inlineThreadCommentActions,children:(0,Q.jsx)(WC,{className:jj.threadIconBtn,type:`text`,icon:(0,Q.jsx)(Lk,{}),onClick:e=>{e.stopPropagation(),f(t.id),m(t.body)}})}):null]})},t.id)})},e.id)}),_&&l===_.id?(0,Q.jsx)(`div`,{className:jj.inlineThreadComposer,children:(0,Q.jsx)(Cj,{placeholder:`继续评论...`,submitLabel:`回复`,onCancel:()=>{u(null)},onSubmit:async e=>{await i(_.id,e),u(null)}})}):null,_?(0,Q.jsxs)(`div`,{className:jj.inlineThreadActions,children:[S?(0,Q.jsx)(WC,{type:`primary`,className:jj.threadActionBtn,icon:(0,Q.jsx)(oA,{}),onClick:e=>{e.stopPropagation(),o({type:`thread`,threadId:_.id})},children:`复制`}):null,y===`replied`?(0,Q.jsx)(WC,{className:jj.threadActionBtn,icon:(0,Q.jsx)(qA,{}),onClick:e=>{e.stopPropagation(),u(_.id)},children:`要求再改`}):null,y===`replied`?null:(0,Q.jsx)(ZO,{title:e.length>1?`删除这组评论?`:`删除这条评论线程?`,okText:`删除`,cancelText:`取消`,onConfirm:async()=>{for(let t of e)await r(t.id)},children:(0,Q.jsx)(WC,{className:jj.threadActionBtn,icon:(0,Q.jsx)(Pk,{}),danger:!0,onClick:e=>e.stopPropagation(),children:`删除`})}),b?(0,Q.jsx)(WC,{className:jj.threadActionBtn,icon:(0,Q.jsx)(ek,{}),onClick:e=>{e.stopPropagation(),n(_.id,`submit`)},children:`重新打开`}):null,y===`replied`?(0,Q.jsx)(WC,{className:jj.threadActionBtn,icon:(0,Q.jsx)(xb,{}),onClick:e=>{e.stopPropagation(),n(_.id,`resolved`)},children:`确认完成`}):null]}):null]})}function Nj(e){return e===`submit`?jj.inlineThreadSubmit:e===`replied`?jj.inlineThreadReplied:jj.inlineThreadResolved}function Pj(e){return e===`submit`?jj.threadTagSubmit:e===`replied`?jj.threadTagReplied:jj.threadTagResolved}function Fj(e){return e.find(e=>Oj(e)===`replied`)??e.find(e=>Oj(e)===`submit`)??e[0]}function Ij(e,t){return e===`submit`?!0:e===`replied`&&t===`user`}var Lj={inlineThreadStack:`_inlineThreadStack_1qhr1_1`};function Rj({threads:e,onLocateThread:t,onPatchThread:n,onDeleteThread:r,onReplyThread:i,onPatchComment:a,onCopyThread:o}){return e.length===0?null:(0,Q.jsx)(`div`,{className:Lj.inlineThreadStack,children:(0,Q.jsx)(Mj,{threads:e,onFocus:t,onPatch:n,onDeleteThread:r,onReply:i,onPatchComment:a,onCopy:o})})}var zj={diffRow:`_diffRow_res6f_1`,add:`_add_res6f_8`,remove:`_remove_res6f_11`,lineNo:`_lineNo_res6f_14`,lineSign:`_lineSign_res6f_24`,signAdd:`_signAdd_res6f_34`,signRemove:`_signRemove_res6f_37`,codeLine:`_codeLine_res6f_40`,commentTrigger:`_commentTrigger_res6f_49`};function Bj({filePath:e,line:t,index:n,hunkKey:r,preferredSide:i,activeLine:a,setActiveLine:o,threads:s,onCreate:c,onLocateThread:l,onPatchThread:u,onDeleteThread:d,onReplyThread:f,onPatchComment:p,onCopyThread:m}){let h=i??(t.type===`remove`?`old`:`new`),g=h===`old`?t.oldLineNumber:t.newLineNumber,_=`${r}-${h}-${g}-${n}`,v=s.filter(t=>t.anchor.type===`diff-line`&&t.anchor.filePath===e&&t.anchor.side===h&&t.anchor.lineNumber===g);return(0,Q.jsxs)(`div`,{className:t.type===`add`?`${zj.diffRow} ${zj.add}`:t.type===`remove`?`${zj.diffRow} ${zj.remove}`:zj.diffRow,"data-review-anchor":`${h}:${g}`,children:[(0,Q.jsx)(`button`,{className:zj.lineNo,onClick:()=>t.oldLineNumber&&o(_),children:t.oldLineNumber??``}),(0,Q.jsx)(`button`,{className:zj.lineNo,onClick:()=>t.newLineNumber&&o(_),children:t.newLineNumber??``}),(0,Q.jsx)(`span`,{className:t.type===`add`?`${zj.lineSign} ${zj.signAdd}`:t.type===`remove`?`${zj.lineSign} ${zj.signRemove}`:zj.lineSign,children:hj(t.type)}),(0,Q.jsx)(`pre`,{className:zj.codeLine,children:t.content||` `}),g&&v.length===0?(0,Q.jsx)(`button`,{className:zj.commentTrigger,type:`button`,"aria-label":`添加行评论`,onClick:()=>o(_),children:(0,Q.jsx)(VA,{})}):null,a===_&&g?(0,Q.jsx)(Tj,{onCancel:()=>o(null),onSubmit:async t=>{await c({type:`diff-line`,filePath:e,side:h,lineNumber:g},t),o(null)}}):null,(0,Q.jsx)(Rj,{threads:v,onLocateThread:l,onPatchThread:u,onDeleteThread:d,onReplyThread:f,onPatchComment:p,onCopyThread:m})]})}var Vj={splitCell:`_splitCell_1mqa3_1`,add:`_add_1mqa3_11`,remove:`_remove_1mqa3_14`,emptyCell:`_emptyCell_1mqa3_17`,lineNo:`_lineNo_1mqa3_20`,lineSign:`_lineSign_1mqa3_30`,signAdd:`_signAdd_1mqa3_40`,signRemove:`_signRemove_1mqa3_43`,codeLine:`_codeLine_1mqa3_46`,commentTrigger:`_commentTrigger_1mqa3_55`};function Hj({cell:e,rowKey:t,filePath:n,activeLine:r,setActiveLine:i,threads:a,onCreate:o,onLocateThread:s,onPatchThread:c,onDeleteThread:l,onReplyThread:u,onPatchComment:d,onCopyThread:f}){let p=e.lineNumber?a.filter(t=>t.anchor.type===`diff-line`&&t.anchor.filePath===n&&t.anchor.side===e.side&&t.anchor.lineNumber===e.lineNumber):[],m=`${t}-${e.side}-${e.lineNumber??`empty`}`;return(0,Q.jsxs)(`div`,{className:e.type===`add`?`${Vj.splitCell} ${Vj.add}`:e.type===`remove`?`${Vj.splitCell} ${Vj.remove}`:e.type===`empty`?`${Vj.splitCell} ${Vj.emptyCell}`:Vj.splitCell,"data-review-anchor":e.lineNumber?`${e.side}:${e.lineNumber}`:void 0,children:[(0,Q.jsx)(`button`,{className:Vj.lineNo,onClick:()=>e.lineNumber&&i(m),children:e.lineNumber??``}),(0,Q.jsx)(`span`,{className:e.type===`add`?`${Vj.lineSign} ${Vj.signAdd}`:e.type===`remove`?`${Vj.lineSign} ${Vj.signRemove}`:Vj.lineSign,children:hj(e.type)}),(0,Q.jsx)(`pre`,{className:Vj.codeLine,children:e.content||` `}),e.lineNumber&&p.length===0?(0,Q.jsx)(`button`,{className:Vj.commentTrigger,type:`button`,"aria-label":`添加行评论`,onClick:()=>i(m),children:(0,Q.jsx)(VA,{})}):null,r===m&&e.lineNumber?(0,Q.jsx)(Tj,{onCancel:()=>i(null),onSubmit:async t=>{await o({type:`diff-line`,filePath:n,side:e.side,lineNumber:e.lineNumber},t),i(null)}}):null,(0,Q.jsx)(Rj,{threads:p,onLocateThread:s,onPatchThread:c,onDeleteThread:l,onReplyThread:u,onPatchComment:d,onCopyThread:f})]})}var Uj={splitRow:`_splitRow_w4xv1_1`,hunkHeader:`_hunkHeader_w4xv1_5`,hunkHeaderRail:`_hunkHeaderRail_w4xv1_11`,hunkHeaderExpand:`_hunkHeaderExpand_w4xv1_20`,hunkHeaderBody:`_hunkHeaderBody_w4xv1_43`,shell:`_shell_w4xv1_50`,sidebar:`_sidebar_w4xv1_72`,threadRail:`_threadRail_w4xv1_73`,reviewPane:`_reviewPane_w4xv1_87`,brand:`_brand_w4xv1_95`,brandMark:`_brandMark_w4xv1_101`,brandCopy:`_brandCopy_w4xv1_112`,repoName:`_repoName_w4xv1_117`,productName:`_productName_w4xv1_127`,sideCard:`_sideCard_w4xv1_131`,threadRailHeader:`_threadRailHeader_w4xv1_140`,topToolbar:`_topToolbar_w4xv1_141`,threadRailTitle:`_threadRailTitle_w4xv1_149`,viewModeSwitcher:`_viewModeSwitcher_w4xv1_158`,reviewSurface:`_reviewSurface_w4xv1_164`,threadRailBody:`_threadRailBody_w4xv1_175`,emptyStateCard:`_emptyStateCard_w4xv1_180`};function Wj({headerText:e,position:t,previousGap:n,nextGap:r,getGapVisibleCount:i,getGapHiddenCount:a,onExpandGap:o,onExpandGapWithAnchor:s}){function c(){let e=n?i(n)<n.hiddenCount:!1,c=r?i(r)<r.hiddenCount:!1;if(t===`top`&&n&&e){let e=a(n),t=e<=20?`展开全部 ${e} 行隐藏上下文`:`向上展开 20 行隐藏上下文`;return(0,Q.jsx)(`button`,{className:Uj.hunkHeaderExpand,type:`button`,onClick:t=>{s(n,t.currentTarget.closest(`[data-hunk-header="true"]`),{direction:e<=20?void 0:`up`,expandAll:e<=20,alignHeaderToTop:!0})},"aria-label":t,children:(0,Q.jsx)(Dx,{})})}if(t===`middle`&&n&&e){let e=a(n);if(e<=20){let t=`展开全部 ${e} 行隐藏上下文`;return(0,Q.jsx)(`button`,{className:Uj.hunkHeaderExpand,type:`button`,onClick:e=>{s(n,e.currentTarget.closest(`[data-hunk-header="true"]`),{expandAll:!0,alignHeaderToTop:!0})},"aria-label":t,children:(0,Q.jsx)(aj,{})})}return(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(`button`,{className:Uj.hunkHeaderExpand,type:`button`,onClick:()=>o(n,`down`),"aria-label":`向下展开 20 行隐藏上下文`,children:(0,Q.jsx)(nj,{})}),(0,Q.jsx)(`button`,{className:Uj.hunkHeaderExpand,type:`button`,onClick:e=>{s(n,e.currentTarget.closest(`[data-hunk-header="true"]`),{direction:`up`,alignHeaderToTop:!0})},"aria-label":`向上展开 20 行隐藏上下文`,children:(0,Q.jsx)(Dx,{})})]})}if(t===`bottom`&&r&&c){let e=a(r);if(e<=20){let t=`展开全部 ${e} 行隐藏上下文`;return(0,Q.jsx)(`button`,{className:Uj.hunkHeaderExpand,type:`button`,onClick:e=>{s(r,e.currentTarget.closest(`[data-hunk-header="true"]`),{expandAll:!0,alignHeaderToTop:!0})},"aria-label":t,children:(0,Q.jsx)(aj,{})})}return(0,Q.jsx)(`button`,{className:Uj.hunkHeaderExpand,type:`button`,onClick:e=>{s(r,e.currentTarget.closest(`[data-hunk-header="true"]`),{direction:`up`,alignHeaderToTop:!0})},"aria-label":`向上展开 20 行隐藏上下文`,children:(0,Q.jsx)(Dx,{})})}return null}return(0,Q.jsxs)(`div`,{className:Uj.hunkHeader,"data-hunk-header":`true`,children:[(0,Q.jsx)(`div`,{className:Uj.hunkHeaderRail,children:c()}),(0,Q.jsx)(`div`,{className:Uj.hunkHeaderBody,children:e})]})}function Gj({gap:e,filePath:t,viewMode:n,fileContents:r,activeLine:i,setActiveLine:a,threads:o,onCreate:s,onLocateThread:c,onPatchThread:l,onDeleteThread:u,onReplyThread:d,onPatchComment:f,onCopyThread:p,getGapDirection:m,getGapVisibleCount:h,onExpandGap:g,onExpandGapAll:_,leadingHunkHeader:y}){let b=Math.min(h(e),e.hiddenCount);e.hiddenCount-b;let x=m(e),S=dj(r,{...e,direction:x},b);return(0,Q.jsxs)(v.Fragment,{children:[y,n===`inline`?S.map(({key:n,line:r},m)=>(0,Q.jsx)(Bj,{filePath:t,line:r,index:m,hunkKey:n,preferredSide:e.mode===`old`?`old`:`new`,activeLine:i,setActiveLine:a,threads:o,onCreate:s,onLocateThread:c,onPatchThread:l,onDeleteThread:u,onReplyThread:d,onPatchComment:f,onCopyThread:p},`${n}-${m}`)):S.map(({key:e,line:n})=>(0,Q.jsxs)(`div`,{className:Uj.splitRow,children:[(0,Q.jsx)(Hj,{cell:n.oldLineNumber?{lineNumber:n.oldLineNumber,content:n.content,type:`context`,side:`old`}:{content:``,type:`empty`,side:`old`},rowKey:e,filePath:t,activeLine:i,setActiveLine:a,threads:o,onCreate:s,onLocateThread:c,onPatchThread:l,onDeleteThread:u,onReplyThread:d,onPatchComment:f,onCopyThread:p}),(0,Q.jsx)(Hj,{cell:n.newLineNumber?{lineNumber:n.newLineNumber,content:n.content,type:`context`,side:`new`}:{content:``,type:`empty`,side:`new`},rowKey:e,filePath:t,activeLine:i,setActiveLine:a,threads:o,onCreate:s,onLocateThread:c,onPatchThread:l,onDeleteThread:u,onReplyThread:d,onPatchComment:f,onCopyThread:p})]},e))]})}var Kj={diffCard:`_diffCard_b316o_1`,hunk:`_hunk_b316o_7`,splitTable:`_splitTable_b316o_14`,splitRow:`_splitRow_b316o_17`};function qj({file:e,threads:t,locateTarget:n,expandAllRequest:r,onExpandedContextChange:i,onCreate:a,onLocateThread:o,onPatchThread:s,onDeleteThread:c,onReplyThread:l,onPatchComment:u,onCopyThread:d,viewMode:f}){let[p,m]=v.useState(null),[h,g]=v.useState({}),[_,y]=v.useState({}),b=vj(e.path),x=v.useRef(null),S=v.useRef(``),C=v.useRef(``),w=v.useMemo(()=>uj(e,b),[e,b]),T=v.useMemo(()=>{let e=new Map;return w.forEach(t=>{e.set(t.position,t)}),e},[w]),E=v.useMemo(()=>fj(e,T),[e,T]),D=v.useMemo(()=>w.some(e=>Math.min(h[e.key]??0,e.hiddenCount)>0),[w,h]);v.useLayoutEffect(()=>{x.current&&pj(x.current),m(null),g({}),y({}),C.current=``},[e.path]),v.useEffect(()=>{if(!r||r.filePath!==e.path)return;let t=`${r.filePath}:${r.requestId}`;if(C.current!==t){if(C.current=t,D){g({}),y({});return}g(e=>{let t={...e};return w.forEach(e=>{t[e.key]=e.hiddenCount}),t})}},[r,e.path,w,D]),v.useEffect(()=>{i(e.path,D)},[e.path,D,i]),yj({filePath:e.path,viewMode:f,threads:t,fileContents:b,gapDescriptors:w,expandedGapLines:h,setExpandedGapLines:g,scrollRef:x,autoScrollKeyRef:S}),bj({filePath:e.path,locateTarget:n,viewMode:f,fileContents:b,gapDescriptors:w,expandedGapLines:h,setExpandedGapLines:g,scrollRef:x});let O={onLocateThread:o,onPatchThread:s,onDeleteThread:c,onReplyThread:l,onPatchComment:u,onCopyThread:d};function k(e){return Math.min(h[e.key]??0,e.hiddenCount)}function A(e){return _[e.key]??e.direction}function j(e,t,n){let r=x.current,i=n?.alignHeaderToTop??!1;n?.expandAll?N(e,n.direction):M(e,n?.direction),!(!i||!r||!t)&&window.requestAnimationFrame(()=>{let e=r.getBoundingClientRect().top,n=t.getBoundingClientRect().top;r.scrollTop+=n-e})}function M(e,t){t&&y(n=>({...n,[e.key]:t})),g(t=>{let n=Math.min(t[e.key]??0,e.hiddenCount),r=e.hiddenCount-n,i=Math.min(20,r||e.hiddenCount);return{...t,[e.key]:Math.min(e.hiddenCount,n+i)}})}function N(e,t){t&&y(n=>({...n,[e.key]:t})),g(t=>({...t,[e.key]:e.hiddenCount}))}function P(e){return Math.max(0,e.hiddenCount-k(e))}function F(e){let t=T.get(e);return t?P(t)>0:!1}function I(e){let t=T.get(e);return t?k(t)>0&&P(t)>0&&A(t)===`up`:!1}function L(e,t){let n=T.get(t);if(!n)return e.header;let r=k(n),i=P(n);return r<=0?`${e.header} · 已隐藏 ${i} 行上下文`:`${e.header} · 已展开 ${r}/${n.hiddenCount} 行上下文`}function R(t,n){let r=T.get(n),i=n===e.hunks.length-1?T.get(`tail`):T.get(n+1),a=n===0?`top`:`middle`;return(0,Q.jsx)(Wj,{headerText:L(t,n),position:a,previousGap:r,nextGap:i,getGapVisibleCount:k,getGapHiddenCount:P,onExpandGap:M,onExpandGapWithAnchor:j})}return(0,Q.jsx)(`div`,{className:Kj.diffCard,ref:x,children:E.map(n=>n.type===`gap`?(0,Q.jsx)(Gj,{gap:n.gap,filePath:e.path,viewMode:f,fileContents:b,activeLine:p,setActiveLine:m,threads:t,onCreate:a,onLocateThread:o,onPatchThread:s,onDeleteThread:c,onReplyThread:l,onPatchComment:u,onCopyThread:d,getGapDirection:A,getGapVisibleCount:k,onExpandGap:M,onExpandGapAll:N,leadingHunkHeader:n.nextHunk&&n.nextIndex!=null&&I(n.nextIndex)?R(n.nextHunk,n.nextIndex):null},n.key):(0,Q.jsx)(`div`,{className:Kj.hunk,children:(()=>{let r=F(n.index),i=I(n.index);return(0,Q.jsxs)(Q.Fragment,{children:[r&&!i?R(n.hunk,n.index):null,f===`inline`?n.hunk.lines.map((r,i)=>(0,Q.jsx)(Bj,{filePath:e.path,line:r,index:i,hunkKey:n.key,activeLine:p,setActiveLine:m,threads:t,onCreate:a,...O},`${n.key}-${i}`)):(0,Q.jsx)(`div`,{className:Kj.splitTable,children:gj(n.hunk).map(n=>(0,Q.jsxs)(`div`,{className:Kj.splitRow,children:[(0,Q.jsx)(Hj,{cell:n.oldCell,rowKey:n.key,filePath:e.path,activeLine:p,setActiveLine:m,threads:t,onCreate:a,...O}),(0,Q.jsx)(Hj,{cell:n.newCell,rowKey:n.key,filePath:e.path,activeLine:p,setActiveLine:m,threads:t,onCreate:a,...O})]},n.key))})]})})()},n.key))})}var Jj={fileRailHeader:`_fileRailHeader_wfmc7_1`,fileRailModeSwitcher:`_fileRailModeSwitcher_wfmc7_8`,fileList:`_fileList_wfmc7_15`,fileItem:`_fileItem_wfmc7_21`,fileItemActive:`_fileItemActive_wfmc7_31`,lineItemActive:`_lineItemActive_wfmc7_35`,fileTree:`_fileTree_wfmc7_39`,fileTreeDirectory:`_fileTreeDirectory_wfmc7_42`,fileTreeChevron:`_fileTreeChevron_wfmc7_59`,fileTreeFolderIcon:`_fileTreeFolderIcon_wfmc7_65`,fileIcon:`_fileIcon_wfmc7_70`,fileTreeDirectoryName:`_fileTreeDirectoryName_wfmc7_73`,fileMeta:`_fileMeta_wfmc7_81`,fileName:`_fileName_wfmc7_91`,fileStats:`_fileStats_wfmc7_100`,fileStatAdd:`_fileStatAdd_wfmc7_103`,fileStatDelete:`_fileStatDelete_wfmc7_107`,fileThreadCount:`_fileThreadCount_wfmc7_111`},Yj=36,Xj=18,Zj=18;function Qj(e,t,n){if(e.length<=t)return e;let r=Math.min(n,t-4),i=t-r-3;return`${e.slice(0,i)}...${e.slice(-r)}`}function $j(e){let t={name:``,path:``,isDirectory:!0,children:[]};e.forEach(e=>{let n=e.path.split(`/`).filter(Boolean),r=t;n.forEach((t,i)=>{let a=i===n.length-1,o=n.slice(0,i+1).join(`/`);r.children??=[];let s=r.children.find(e=>e.name===t);s||(s={name:t,path:o,isDirectory:!a,children:a?void 0:[],file:a?e:void 0},r.children.push(s)),r=s})});let n=e=>{if(!e.isDirectory||!e.children)return e;let t=e.children.map(n);if(e.name&&t.length===1&&t[0]?.isDirectory&&t[0].children){let n=t[0];return{...e,name:`${e.name}/${n.name}`,path:n.path,children:n.children}}return{...e,children:t}};return n(t)}function eM(e){return!e.isDirectory||!e.children?[]:[...e.path?[e.path]:[],...e.children.flatMap(e=>eM(e))]}function tM(e,t){return e.file?t.get(e.file.path)??0:e.children?.reduce((e,n)=>e+tM(n,t),0)??0}function nM({files:e,threads:t,selectedPath:n,onSelectFile:r}){let[i,a]=v.useState(`list`),[o,s]=v.useState(()=>new Set),c=v.useMemo(()=>$j(e),[e]),l=v.useMemo(()=>{let n=new Map;return e.forEach(e=>{n.set(e.path,t.filter(t=>Dj(t,e)&&t.status!==`resolved`).length)}),n},[e,t]);v.useEffect(()=>{s(new Set(eM(c)))},[c]);function u(e){s(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n})}function d(e,t=e.path,i=!1){let a=e.path===n,o=l.get(e.path)??0,s=[Jj.fileItem,a&&i?Jj.fileItemActive:``,a&&!i?Jj.lineItemActive:``].filter(Boolean).join(` `);return(0,Q.jsx)(UO.Item,{className:s,onClick:()=>r(e.path),children:(0,Q.jsxs)(`div`,{className:Jj.fileMeta,children:[i?(0,Q.jsx)(fk,{className:Jj.fileIcon}):null,(0,Q.jsx)(gx,{title:i?void 0:e.path,children:(0,Q.jsx)(MA.Text,{strong:!0,className:Jj.fileName,title:e.path,children:i?t:Qj(e.path,Yj,Xj)})}),(0,Q.jsxs)(MA.Text,{className:Jj.fileStats,type:`secondary`,children:[(0,Q.jsxs)(`span`,{className:Jj.fileStatAdd,children:[`+`,e.additions]}),` / `,(0,Q.jsxs)(`span`,{className:Jj.fileStatDelete,children:[`-`,e.deletions]})]}),o>0?(0,Q.jsx)(jk,{className:Jj.fileThreadCount,icon:(0,Q.jsx)(VA,{}),children:o}):null]})})}function f(e,t=0){if(e.file)return(0,Q.jsx)(`div`,{style:{paddingLeft:t*Zj},children:d(e.file,e.name,!0)},e.file.path);if(!e.children?.length)return null;if(!e.path)return e.children.map(e=>f(e,t));let n=o.has(e.path),r=tM(e,l);return(0,Q.jsxs)(`div`,{children:[(0,Q.jsxs)(`button`,{type:`button`,className:Jj.fileTreeDirectory,style:{paddingLeft:t*Zj+8},onClick:()=>u(e.path),children:[n?(0,Q.jsx)(wb,{className:Jj.fileTreeChevron}):(0,Q.jsx)(Kf,{className:Jj.fileTreeChevron}),n?(0,Q.jsx)(hk,{className:Jj.fileTreeFolderIcon}):(0,Q.jsx)(vk,{className:Jj.fileTreeFolderIcon}),(0,Q.jsx)(MA.Text,{strong:!0,className:Jj.fileTreeDirectoryName,title:e.path,children:e.name}),r>0?(0,Q.jsx)(jk,{className:Jj.fileThreadCount,icon:(0,Q.jsx)(VA,{}),children:r}):null]}),n?e.children.map(e=>f(e,t+1)):null]},e.path)}return(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsxs)(`div`,{className:Jj.fileRailHeader,children:[(0,Q.jsx)(MA.Text,{strong:!0,children:`文件列表`}),(0,Q.jsx)(oE,{className:Jj.fileRailModeSwitcher,size:`small`,options:[{value:`list`,icon:(0,Q.jsx)($A,{})},{value:`tree`,icon:(0,Q.jsx)(FA,{})}],value:i,onChange:e=>a(e)})]}),i===`list`?(0,Q.jsx)(UO,{className:Jj.fileList,dataSource:e,renderItem:e=>d(e)}):(0,Q.jsx)(`div`,{className:`${Jj.fileList} ${Jj.fileTree}`,role:`tree`,children:f(c)})]})}var rM={fileHeader:`_fileHeader_1jgg4_1`,headerTop:`_headerTop_1jgg4_9`,filePathBlock:`_filePathBlock_1jgg4_15`,filePathText:`_filePathText_1jgg4_21`,fileExpandBtn:`_fileExpandBtn_1jgg4_25`,headerActions:`_headerActions_1jgg4_36`,headerAction:`_headerAction_1jgg4_36`,threadCount:`_threadCount_1jgg4_48`,fileLevelInlineThreads:`_fileLevelInlineThreads_1jgg4_51`};function iM({file:e,threads:t,showToggleAllLines:n,hasExpandedContext:r,onCreate:i,onCopy:a,onToggleAllLines:o,onLocateThread:s,onPatchThread:c,onDeleteThread:l,onReplyThread:u,onPatchComment:d,onCopyThread:f}){let[p,m]=v.useState(!1),h=r?`隐藏当前文件未改动行`:`展开当前文件所有未改动行`,g=r?`隐藏当前文件未改动行`:`展开当前文件所有未改动行`,_=t.filter(t=>t.filePath===e.path&&t.status!==`resolved`),y=t.filter(t=>t.filePath===e.path&&t.anchor.type===`file`);return(0,Q.jsxs)(RT,{className:rM.fileHeader,children:[(0,Q.jsxs)(`div`,{className:rM.headerTop,children:[(0,Q.jsxs)(`div`,{className:rM.filePathBlock,children:[n?(0,Q.jsx)(gx,{title:h,children:(0,Q.jsx)(WC,{className:rM.fileExpandBtn,type:`text`,icon:r?(0,Q.jsx)(XA,{}):(0,Q.jsx)(RA,{}),"aria-label":g,onClick:()=>o(e.path)})}):null,(0,Q.jsx)(MA.Text,{strong:!0,className:rM.filePathText,children:e.path})]}),(0,Q.jsxs)(`div`,{className:rM.headerActions,children:[(0,Q.jsx)(WC,{disabled:_.length===0,type:`primary`,className:rM.headerAction,icon:(0,Q.jsx)(oA,{}),onClick:()=>void a({type:`file-unresolved`,filePath:e.path}),children:`批量提交当前文件的review`}),(0,Q.jsx)(WC,{className:rM.headerAction,icon:(0,Q.jsx)(VA,{}),type:p?`primary`:`default`,onClick:()=>m(e=>!e),children:`文件级评论`})]})]}),p?(0,Q.jsx)(Cj,{style:{marginTop:16},placeholder:`请输入文件级审查评论...`,onSubmit:async t=>{await i({type:`file`,filePath:e.path},t),m(!1)},onCancel:()=>m(!1)}):null,_.length>0?(0,Q.jsxs)(jk,{className:rM.threadCount,color:`gold`,children:[_.length,` 个评论线程`]}):null,y.length>0?(0,Q.jsx)(`div`,{className:rM.fileLevelInlineThreads,children:(0,Q.jsx)(Mj,{threads:y,variant:`fileLevel`,onFocus:s,onPatch:c,onDeleteThread:l,onReply:u,onPatchComment:d,onCopy:f})}):null]})}function aM(e,t){let n=t||{};return(e[e.length-1]===``?[...e,``]:e).join((n.padRight?` `:``)+`,`+(n.padLeft===!1?``:` `)).trim()}var oM=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,sM=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,cM={};function lM(e,t){return((t||cM).jsx?sM:oM).test(e)}var uM=/[ \t\n\f\r]/g;function dM(e){return typeof e==`object`?e.type===`text`?fM(e.value):!1:fM(e)}function fM(e){return e.replace(uM,``)===``}var pM=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};pM.prototype.normal={},pM.prototype.property={},pM.prototype.space=void 0;function mM(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new pM(n,r,t)}function hM(e){return e.toLowerCase()}var gM=class{constructor(e,t){this.attribute=t,this.property=e}};gM.prototype.attribute=``,gM.prototype.booleanish=!1,gM.prototype.boolean=!1,gM.prototype.commaOrSpaceSeparated=!1,gM.prototype.commaSeparated=!1,gM.prototype.defined=!1,gM.prototype.mustUseProperty=!1,gM.prototype.number=!1,gM.prototype.overloadedBoolean=!1,gM.prototype.property=``,gM.prototype.spaceSeparated=!1,gM.prototype.space=void 0;var _M=s({boolean:()=>yM,booleanish:()=>bM,commaOrSpaceSeparated:()=>wM,commaSeparated:()=>CM,number:()=>$,overloadedBoolean:()=>xM,spaceSeparated:()=>SM}),vM=0,yM=TM(),bM=TM(),xM=TM(),$=TM(),SM=TM(),CM=TM(),wM=TM();function TM(){return 2**++vM}var EM=Object.keys(_M),DM=class extends gM{constructor(e,t,n,r){let i=-1;if(super(e,t),OM(this,`space`,r),typeof n==`number`)for(;++i<EM.length;){let e=EM[i];OM(this,EM[i],(n&_M[e])===_M[e])}}};DM.prototype.defined=!0;function OM(e,t,n){n&&(e[t]=n)}function kM(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let a=new DM(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[hM(r)]=r,n[hM(a.attribute)]=r}return new pM(t,n,e.space)}var AM=kM({properties:{ariaActiveDescendant:null,ariaAtomic:bM,ariaAutoComplete:null,ariaBusy:bM,ariaChecked:bM,ariaColCount:$,ariaColIndex:$,ariaColSpan:$,ariaControls:SM,ariaCurrent:null,ariaDescribedBy:SM,ariaDetails:null,ariaDisabled:bM,ariaDropEffect:SM,ariaErrorMessage:null,ariaExpanded:bM,ariaFlowTo:SM,ariaGrabbed:bM,ariaHasPopup:null,ariaHidden:bM,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:SM,ariaLevel:$,ariaLive:null,ariaModal:bM,ariaMultiLine:bM,ariaMultiSelectable:bM,ariaOrientation:null,ariaOwns:SM,ariaPlaceholder:null,ariaPosInSet:$,ariaPressed:bM,ariaReadOnly:bM,ariaRelevant:null,ariaRequired:bM,ariaRoleDescription:SM,ariaRowCount:$,ariaRowIndex:$,ariaRowSpan:$,ariaSelected:bM,ariaSetSize:$,ariaSort:null,ariaValueMax:$,ariaValueMin:$,ariaValueNow:$,ariaValueText:null,role:null},transform(e,t){return t===`role`?t:`aria-`+t.slice(4).toLowerCase()}});function jM(e,t){return t in e?e[t]:t}function MM(e,t){return jM(e,t.toLowerCase())}var NM=kM({attributes:{acceptcharset:`accept-charset`,classname:`class`,htmlfor:`for`,httpequiv:`http-equiv`},mustUseProperty:[`checked`,`multiple`,`muted`,`selected`],properties:{abbr:null,accept:CM,acceptCharset:SM,accessKey:SM,action:null,allow:null,allowFullScreen:yM,allowPaymentRequest:yM,allowUserMedia:yM,alt:null,as:null,async:yM,autoCapitalize:null,autoComplete:SM,autoFocus:yM,autoPlay:yM,blocking:SM,capture:null,charSet:null,checked:yM,cite:null,className:SM,cols:$,colSpan:null,content:null,contentEditable:bM,controls:yM,controlsList:SM,coords:$|CM,crossOrigin:null,data:null,dateTime:null,decoding:null,default:yM,defer:yM,dir:null,dirName:null,disabled:yM,download:xM,draggable:bM,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:yM,formTarget:null,headers:SM,height:$,hidden:xM,high:$,href:null,hrefLang:null,htmlFor:SM,httpEquiv:SM,id:null,imageSizes:null,imageSrcSet:null,inert:yM,inputMode:null,integrity:null,is:null,isMap:yM,itemId:null,itemProp:SM,itemRef:SM,itemScope:yM,itemType:SM,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:yM,low:$,manifest:null,max:null,maxLength:$,media:null,method:null,min:null,minLength:$,multiple:yM,muted:yM,name:null,nonce:null,noModule:yM,noValidate:yM,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:yM,optimum:$,pattern:null,ping:SM,placeholder:null,playsInline:yM,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:yM,referrerPolicy:null,rel:SM,required:yM,reversed:yM,rows:$,rowSpan:$,sandbox:SM,scope:null,scoped:yM,seamless:yM,selected:yM,shadowRootClonable:yM,shadowRootDelegatesFocus:yM,shadowRootMode:null,shape:null,size:$,sizes:null,slot:null,span:$,spellCheck:bM,src:null,srcDoc:null,srcLang:null,srcSet:null,start:$,step:null,style:null,tabIndex:$,target:null,title:null,translate:null,type:null,typeMustMatch:yM,useMap:null,value:bM,width:$,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:SM,axis:null,background:null,bgColor:null,border:$,borderColor:null,bottomMargin:$,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:yM,declare:yM,event:null,face:null,frame:null,frameBorder:null,hSpace:$,leftMargin:$,link:null,longDesc:null,lowSrc:null,marginHeight:$,marginWidth:$,noResize:yM,noHref:yM,noShade:yM,noWrap:yM,object:null,profile:null,prompt:null,rev:null,rightMargin:$,rules:null,scheme:null,scrolling:bM,standby:null,summary:null,text:null,topMargin:$,valueType:null,version:null,vAlign:null,vLink:null,vSpace:$,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:yM,disableRemotePlayback:yM,prefix:null,property:null,results:$,security:null,unselectable:null},space:`html`,transform:MM}),PM=kM({attributes:{accentHeight:`accent-height`,alignmentBaseline:`alignment-baseline`,arabicForm:`arabic-form`,baselineShift:`baseline-shift`,capHeight:`cap-height`,className:`class`,clipPath:`clip-path`,clipRule:`clip-rule`,colorInterpolation:`color-interpolation`,colorInterpolationFilters:`color-interpolation-filters`,colorProfile:`color-profile`,colorRendering:`color-rendering`,crossOrigin:`crossorigin`,dataType:`datatype`,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`,hrefLang:`hreflang`,horizAdvX:`horiz-adv-x`,horizOriginX:`horiz-origin-x`,horizOriginY:`horiz-origin-y`,imageRendering:`image-rendering`,letterSpacing:`letter-spacing`,lightingColor:`lighting-color`,markerEnd:`marker-end`,markerMid:`marker-mid`,markerStart:`marker-start`,navDown:`nav-down`,navDownLeft:`nav-down-left`,navDownRight:`nav-down-right`,navLeft:`nav-left`,navNext:`nav-next`,navPrev:`nav-prev`,navRight:`nav-right`,navUp:`nav-up`,navUpLeft:`nav-up-left`,navUpRight:`nav-up-right`,onAbort:`onabort`,onActivate:`onactivate`,onAfterPrint:`onafterprint`,onBeforePrint:`onbeforeprint`,onBegin:`onbegin`,onCancel:`oncancel`,onCanPlay:`oncanplay`,onCanPlayThrough:`oncanplaythrough`,onChange:`onchange`,onClick:`onclick`,onClose:`onclose`,onCopy:`oncopy`,onCueChange:`oncuechange`,onCut:`oncut`,onDblClick:`ondblclick`,onDrag:`ondrag`,onDragEnd:`ondragend`,onDragEnter:`ondragenter`,onDragExit:`ondragexit`,onDragLeave:`ondragleave`,onDragOver:`ondragover`,onDragStart:`ondragstart`,onDrop:`ondrop`,onDurationChange:`ondurationchange`,onEmptied:`onemptied`,onEnd:`onend`,onEnded:`onended`,onError:`onerror`,onFocus:`onfocus`,onFocusIn:`onfocusin`,onFocusOut:`onfocusout`,onHashChange:`onhashchange`,onInput:`oninput`,onInvalid:`oninvalid`,onKeyDown:`onkeydown`,onKeyPress:`onkeypress`,onKeyUp:`onkeyup`,onLoad:`onload`,onLoadedData:`onloadeddata`,onLoadedMetadata:`onloadedmetadata`,onLoadStart:`onloadstart`,onMessage:`onmessage`,onMouseDown:`onmousedown`,onMouseEnter:`onmouseenter`,onMouseLeave:`onmouseleave`,onMouseMove:`onmousemove`,onMouseOut:`onmouseout`,onMouseOver:`onmouseover`,onMouseUp:`onmouseup`,onMouseWheel:`onmousewheel`,onOffline:`onoffline`,onOnline:`ononline`,onPageHide:`onpagehide`,onPageShow:`onpageshow`,onPaste:`onpaste`,onPause:`onpause`,onPlay:`onplay`,onPlaying:`onplaying`,onPopState:`onpopstate`,onProgress:`onprogress`,onRateChange:`onratechange`,onRepeat:`onrepeat`,onReset:`onreset`,onResize:`onresize`,onScroll:`onscroll`,onSeeked:`onseeked`,onSeeking:`onseeking`,onSelect:`onselect`,onShow:`onshow`,onStalled:`onstalled`,onStorage:`onstorage`,onSubmit:`onsubmit`,onSuspend:`onsuspend`,onTimeUpdate:`ontimeupdate`,onToggle:`ontoggle`,onUnload:`onunload`,onVolumeChange:`onvolumechange`,onWaiting:`onwaiting`,onZoom:`onzoom`,overlinePosition:`overline-position`,overlineThickness:`overline-thickness`,paintOrder:`paint-order`,panose1:`panose-1`,pointerEvents:`pointer-events`,referrerPolicy:`referrerpolicy`,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`,tabIndex:`tabindex`,textAnchor:`text-anchor`,textDecoration:`text-decoration`,textRendering:`text-rendering`,transformOrigin:`transform-origin`,typeOf:`typeof`,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`,xHeight:`x-height`,playbackOrder:`playbackorder`,timelineBegin:`timelinebegin`},properties:{about:wM,accentHeight:$,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:$,amplitude:$,arabicForm:null,ascent:$,attributeName:null,attributeType:null,azimuth:$,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:$,by:null,calcMode:null,capHeight:$,className:SM,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:$,diffuseConstant:$,direction:null,display:null,dur:null,divisor:$,dominantBaseline:null,download:yM,dx:null,dy:null,edgeMode:null,editable:null,elevation:$,enableBackground:null,end:null,event:null,exponent:$,externalResourcesRequired:null,fill:null,fillOpacity:$,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:CM,g2:CM,glyphName:CM,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:$,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:$,horizOriginX:$,horizOriginY:$,id:null,ideographic:$,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:$,k:$,k1:$,k2:$,k3:$,k4:$,kernelMatrix:wM,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:$,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:$,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:$,overlineThickness:$,paintOrder:null,panose1:null,path:null,pathLength:$,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:SM,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:$,pointsAtY:$,pointsAtZ:$,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:wM,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:wM,rev:wM,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:wM,requiredFeatures:wM,requiredFonts:wM,requiredFormats:wM,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:$,specularExponent:$,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:$,strikethroughThickness:$,string:null,stroke:null,strokeDashArray:wM,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:$,strokeOpacity:$,strokeWidth:null,style:null,surfaceScale:$,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:wM,tabIndex:$,tableValues:null,target:null,targetX:$,targetY:$,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:wM,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:$,underlineThickness:$,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:$,values:null,vAlphabetic:$,vMathematical:$,vectorEffect:null,vHanging:$,vIdeographic:$,version:null,vertAdvY:$,vertOriginX:$,vertOriginY:$,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:$,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:`svg`,transform:jM}),FM=kM({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:`xlink`,transform(e,t){return`xlink:`+t.slice(5).toLowerCase()}}),IM=kM({attributes:{xmlnsxlink:`xmlns:xlink`},properties:{xmlnsXLink:null,xmlns:null},space:`xmlns`,transform:MM}),LM=kM({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:`xml`,transform(e,t){return`xml:`+t.slice(3).toLowerCase()}}),RM={classId:`classID`,dataType:`datatype`,itemId:`itemID`,strokeDashArray:`strokeDasharray`,strokeDashOffset:`strokeDashoffset`,strokeLineCap:`strokeLinecap`,strokeLineJoin:`strokeLinejoin`,strokeMiterLimit:`strokeMiterlimit`,typeOf:`typeof`,xLinkActuate:`xlinkActuate`,xLinkArcRole:`xlinkArcrole`,xLinkHref:`xlinkHref`,xLinkRole:`xlinkRole`,xLinkShow:`xlinkShow`,xLinkTitle:`xlinkTitle`,xLinkType:`xlinkType`,xmlnsXLink:`xmlnsXlink`},zM=/[A-Z]/g,BM=/-[a-z]/g,VM=/^data[-\w.:]+$/i;function HM(e,t){let n=hM(t),r=t,i=gM;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)===`data`&&VM.test(t)){if(t.charAt(4)===`-`){let e=t.slice(5).replace(BM,WM);r=`data`+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!BM.test(e)){let n=e.replace(zM,UM);n.charAt(0)!==`-`&&(n=`-`+n),t=`data`+n}}i=DM}return new i(r,t)}function UM(e){return`-`+e.toLowerCase()}function WM(e){return e.charAt(1).toUpperCase()}var GM=mM([AM,NM,FM,IM,LM],`html`),KM=mM([AM,PM,FM,IM,LM],`svg`);function qM(e){return e.join(` `).trim()}var JM=o(((e,t)=>{var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,i=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,l=/^\s+|\s+$/g,u=`
259
- `,d=`/`,f=`*`,p=``,m=`comment`,h=`declaration`;function g(e,t){if(typeof e!=`string`)throw TypeError(`First argument must be a string`);if(!e)return[];t||={};var l=1,g=1;function v(e){var t=e.match(r);t&&(l+=t.length);var n=e.lastIndexOf(u);g=~n?e.length-n:g+e.length}function y(){var e={line:l,column:g};return function(t){return t.position=new b(e),C(),t}}function b(e){this.start=e,this.end={line:l,column:g},this.source=t.source}b.prototype.content=e;function x(n){var r=Error(t.source+`:`+l+`:`+g+`: `+n);if(r.reason=n,r.filename=t.source,r.line=l,r.column=g,r.source=e,!t.silent)throw r}function S(t){var n=t.exec(e);if(n){var r=n[0];return v(r),e=e.slice(r.length),n}}function C(){S(i)}function w(e){var t;for(e||=[];t=T();)t!==!1&&e.push(t);return e}function T(){var t=y();if(!(d!=e.charAt(0)||f!=e.charAt(1))){for(var n=2;p!=e.charAt(n)&&(f!=e.charAt(n)||d!=e.charAt(n+1));)++n;if(n+=2,p===e.charAt(n-1))return x(`End of comment missing`);var r=e.slice(2,n-2);return g+=2,v(r),e=e.slice(n),g+=2,t({type:m,comment:r})}}function E(){var e=y(),t=S(a);if(t){if(T(),!S(o))return x(`property missing ':'`);var r=S(s),i=e({type:h,property:_(t[0].replace(n,p)),value:r?_(r[0].replace(n,p)):p});return S(c),i}}function D(){var e=[];w(e);for(var t;t=E();)t!==!1&&(e.push(t),w(e));return e}return C(),D()}function _(e){return e?e.replace(l,p):p}t.exports=g})),YM=o((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.default=r;var n=t(JM());function r(e,t){let r=null;if(!e||typeof e!=`string`)return r;let i=(0,n.default)(e),a=typeof t==`function`;return i.forEach(e=>{if(e.type!==`declaration`)return;let{property:n,value:i}=e;a?t(n,i,e):i&&(r||={},r[n]=i)}),r}})),XM=o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.camelCase=void 0;var t=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,r=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,o=function(e){return!e||r.test(e)||t.test(e)},s=function(e,t){return t.toUpperCase()},c=function(e,t){return`${t}-`};e.camelCase=function(e,t){return t===void 0&&(t={}),o(e)?e:(e=e.toLowerCase(),e=t.reactCompat?e.replace(a,c):e.replace(i,c),e.replace(n,s))}})),ZM=o(((e,t)=>{var n=(e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(YM()),r=XM();function i(e,t){var i={};return!e||typeof e!=`string`||(0,n.default)(e,function(e,n){e&&n&&(i[(0,r.camelCase)(e,t)]=n)}),i}i.default=i,t.exports=i})),QM=eN(`end`),$M=eN(`start`);function eN(e){return t;function t(t){let n=t&&t.position&&t.position[e]||{};if(typeof n.line==`number`&&n.line>0&&typeof n.column==`number`&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset==`number`&&n.offset>-1?n.offset:void 0}}}function tN(e){let t=$M(e),n=QM(e);if(t&&n)return{start:t,end:n}}function nN(e){return!e||typeof e!=`object`?``:`position`in e||`type`in e?iN(e.position):`start`in e||`end`in e?iN(e):`line`in e||`column`in e?rN(e):``}function rN(e){return aN(e&&e.line)+`:`+aN(e&&e.column)}function iN(e){return rN(e&&e.start)+`-`+rN(e&&e.end)}function aN(e){return e&&typeof e==`number`?e:1}var oN=class extends Error{constructor(e,t,n){super(),typeof t==`string`&&(n=t,t=void 0);let r=``,i={},a=!1;if(t&&(i=`line`in t&&`column`in t||`start`in t&&`end`in t?{place:t}:`type`in t?{ancestors:[t],place:t.position}:{...t}),typeof e==`string`?r=e:!i.cause&&e&&(a=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&typeof n==`string`){let e=n.indexOf(`:`);e===-1?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){let e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}let o=i.place&&`start`in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file=``,this.message=r,this.line=o?o.line:void 0,this.name=nN(i.place)||`1:1`,this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=a&&i.cause&&typeof i.cause.stack==`string`?i.cause.stack:``,this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}};oN.prototype.file=``,oN.prototype.name=``,oN.prototype.reason=``,oN.prototype.message=``,oN.prototype.stack=``,oN.prototype.column=void 0,oN.prototype.line=void 0,oN.prototype.ancestors=void 0,oN.prototype.cause=void 0,oN.prototype.fatal=void 0,oN.prototype.place=void 0,oN.prototype.ruleId=void 0,oN.prototype.source=void 0;var sN=l(ZM(),1),cN={}.hasOwnProperty,lN=new Map,uN=/[A-Z]/g,dN=new Set([`table`,`tbody`,`thead`,`tfoot`,`tr`]),fN=new Set([`td`,`th`]),pN=`https://github.com/syntax-tree/hast-util-to-jsx-runtime`;function mN(e,t){if(!t||t.Fragment===void 0)throw TypeError("Expected `Fragment` in options");let n=t.filePath||void 0,r;if(t.development){if(typeof t.jsxDEV!=`function`)throw TypeError("Expected `jsxDEV` in options when `development: true`");r=TN(n,t.jsxDEV)}else{if(typeof t.jsx!=`function`)throw TypeError("Expected `jsx` in production options");if(typeof t.jsxs!=`function`)throw TypeError("Expected `jsxs` in production options");r=wN(n,t.jsx,t.jsxs)}let i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||`react`,evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space===`svg`?KM:GM,stylePropertyNameCase:t.stylePropertyNameCase||`dom`,tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=hN(i,e,void 0);return a&&typeof a!=`string`?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function hN(e,t,n){if(t.type===`element`)return gN(e,t,n);if(t.type===`mdxFlowExpression`||t.type===`mdxTextExpression`)return _N(e,t);if(t.type===`mdxJsxFlowElement`||t.type===`mdxJsxTextElement`)return yN(e,t,n);if(t.type===`mdxjsEsm`)return vN(e,t);if(t.type===`root`)return bN(e,t,n);if(t.type===`text`)return xN(e,t)}function gN(e,t,n){let r=e.schema,i=r;t.tagName.toLowerCase()===`svg`&&r.space===`html`&&(i=KM,e.schema=i),e.ancestors.push(t);let a=jN(e,t.tagName,!1),o=EN(e,t),s=ON(e,t);return dN.has(t.tagName)&&(s=s.filter(function(e){return typeof e==`string`?!dM(e):!0})),SN(e,o,a,t),CN(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function _N(e,t){if(t.data&&t.data.estree&&e.evaluater){let n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}MN(e,t.position)}function vN(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);MN(e,t.position)}function yN(e,t,n){let r=e.schema,i=r;t.name===`svg`&&r.space===`html`&&(i=KM,e.schema=i),e.ancestors.push(t);let a=t.name===null?e.Fragment:jN(e,t.name,!0),o=DN(e,t),s=ON(e,t);return SN(e,o,a,t),CN(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function bN(e,t,n){let r={};return CN(r,ON(e,t)),e.create(t,e.Fragment,r,n)}function xN(e,t){return t.value}function SN(e,t,n,r){typeof n!=`string`&&n!==e.Fragment&&e.passNode&&(t.node=r)}function CN(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function wN(e,t,n){return r;function r(e,r,i,a){let o=Array.isArray(i.children)?n:t;return a?o(r,i,a):o(r,i)}}function TN(e,t){return n;function n(n,r,i,a){let o=Array.isArray(i.children),s=$M(n);return t(r,i,a,o,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function EN(e,t){let n={},r,i;for(i in t.properties)if(i!==`children`&&cN.call(t.properties,i)){let a=kN(e,i,t.properties[i]);if(a){let[i,o]=a;e.tableCellAlignToStyle&&i===`align`&&typeof o==`string`&&fN.has(t.tagName)?r=o:n[i]=o}}if(r){let t=n.style||={};t[e.stylePropertyNameCase===`css`?`text-align`:`textAlign`]=r}return n}function DN(e,t){let n={};for(let r of t.attributes)if(r.type===`mdxJsxExpressionAttribute`)if(r.data&&r.data.estree&&e.evaluater){let t=r.data.estree.body[0];t.type;let i=t.expression;i.type;let a=i.properties[0];a.type,Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else MN(e,t.position);else{let i=r.name,a;if(r.value&&typeof r.value==`object`)if(r.value.data&&r.value.data.estree&&e.evaluater){let t=r.value.data.estree.body[0];t.type,a=e.evaluater.evaluateExpression(t.expression)}else MN(e,t.position);else a=r.value===null?!0:r.value;n[i]=a}return n}function ON(e,t){let n=[],r=-1,i=e.passKeys?new Map:lN;for(;++r<t.children.length;){let a=t.children[r],o;if(e.passKeys){let e=a.type===`element`?a.tagName:a.type===`mdxJsxFlowElement`||a.type===`mdxJsxTextElement`?a.name:void 0;if(e){let t=i.get(e)||0;o=e+`-`+t,i.set(e,t+1)}}let s=hN(e,a,o);s!==void 0&&n.push(s)}return n}function kN(e,t,n){let r=HM(e.schema,t);if(!(n==null||typeof n==`number`&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?aM(n):qM(n)),r.property===`style`){let t=typeof n==`object`?n:AN(e,String(n));return e.stylePropertyNameCase===`css`&&(t=NN(t)),[`style`,t]}return[e.elementAttributeNameCase===`react`&&r.space?RM[r.property]||r.property:r.attribute,n]}}function AN(e,t){try{return(0,sN.default)(t,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};let n=t,r=new oN("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:`style`,source:`hast-util-to-jsx-runtime`});throw r.file=e.filePath||void 0,r.url=pN+`#cannot-parse-style-attribute`,r}}function jN(e,t,n){let r;if(!n)r={type:`Literal`,value:t};else if(t.includes(`.`)){let e=t.split(`.`),n=-1,i;for(;++n<e.length;){let t=lM(e[n])?{type:`Identifier`,name:e[n]}:{type:`Literal`,value:e[n]};i=i?{type:`MemberExpression`,object:i,property:t,computed:!!(n&&t.type===`Literal`),optional:!1}:t}r=i}else r=lM(t)&&!/^[a-z]/.test(t)?{type:`Identifier`,name:t}:{type:`Literal`,value:t};if(r.type===`Literal`){let t=r.value;return cN.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);MN(e)}function MN(e,t){let n=new oN("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:`mdx-estree`,source:`hast-util-to-jsx-runtime`});throw n.file=e.filePath||void 0,n.url=pN+`#cannot-handle-mdx-estrees-without-createevaluater`,n}function NN(e){let t={},n;for(n in e)cN.call(e,n)&&(t[PN(n)]=e[n]);return t}function PN(e){let t=e.replace(uN,FN);return t.slice(0,3)===`ms-`&&(t=`-`+t),t}function FN(e){return`-`+e.toLowerCase()}var IN={action:[`form`],cite:[`blockquote`,`del`,`ins`,`q`],data:[`object`],formAction:[`button`,`input`],href:[`a`,`area`,`base`,`link`],icon:[`menuitem`],itemId:null,manifest:[`html`],ping:[`a`,`area`],poster:[`video`],src:[`audio`,`embed`,`iframe`,`img`,`input`,`script`,`source`,`track`,`video`]},LN={};function RN(e,t){let n=t||LN;return zN(e,typeof n.includeImageAlt==`boolean`?n.includeImageAlt:!0,typeof n.includeHtml==`boolean`?n.includeHtml:!0)}function zN(e,t,n){if(VN(e)){if(`value`in e)return e.type===`html`&&!n?``:e.value;if(t&&`alt`in e&&e.alt)return e.alt;if(`children`in e)return BN(e.children,t,n)}return Array.isArray(e)?BN(e,t,n):``}function BN(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=zN(e[i],t,n);return r.join(``)}function VN(e){return!!(e&&typeof e==`object`)}var HN=document.createElement(`i`);function UN(e){let t=`&`+e+`;`;HN.innerHTML=t;let n=HN.textContent;return n.charCodeAt(n.length-1)===59&&e!==`semi`||n===t?!1:n}function WN(e,t,n,r){let i=e.length,a=0,o;if(t=t<0?-t>i?0:i+t:t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a<r.length;)o=r.slice(a,a+1e4),o.unshift(t,0),e.splice(...o),a+=1e4,t+=1e4}function GN(e,t){return e.length>0?(WN(e,e.length,0,t),e):t}var KN={}.hasOwnProperty;function qN(e){let t={},n=-1;for(;++n<e.length;)JN(t,e[n]);return t}function JN(e,t){let n;for(n in t){let r=(KN.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n],a;if(i)for(a in i){KN.call(r,a)||(r[a]=[]);let e=i[a];YN(r[a],Array.isArray(e)?e:e?[e]:[])}}}function YN(e,t){let n=-1,r=[];for(;++n<t.length;)(t[n].add===`after`?e:r).push(t[n]);WN(e,0,0,r)}function XN(e,t){let n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)==65535||(n&65535)==65534||n>1114111?`�`:String.fromCodePoint(n)}function ZN(e){return e.replace(/[\t\n\r ]+/g,` `).replace(/^ | $/g,``).toLowerCase().toUpperCase()}var QN=uP(/[A-Za-z]/),$N=uP(/[\dA-Za-z]/),eP=uP(/[#-'*+\--9=?A-Z^-~]/);function tP(e){return e!==null&&(e<32||e===127)}var nP=uP(/\d/),rP=uP(/[\dA-Fa-f]/),iP=uP(/[!-/:-@[-`{-~]/);function aP(e){return e!==null&&e<-2}function oP(e){return e!==null&&(e<0||e===32)}function sP(e){return e===-2||e===-1||e===32}var cP=uP(/\p{P}|\p{S}/u),lP=uP(/\s/);function uP(e){return t;function t(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function dP(e){let t=[],n=-1,r=0,i=0;for(;++n<e.length;){let a=e.charCodeAt(n),o=``;if(a===37&&$N(e.charCodeAt(n+1))&&$N(e.charCodeAt(n+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(o=String.fromCharCode(a));else if(a>55295&&a<57344){let t=e.charCodeAt(n+1);a<56320&&t>56319&&t<57344?(o=String.fromCharCode(a,t),i=1):o=`�`}else o=String.fromCharCode(a);o&&=(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,``),i&&=(n+=i,0)}return t.join(``)+e.slice(r)}function fP(e,t,n,r){let i=r?r-1:1/0,a=0;return o;function o(r){return sP(r)?(e.enter(n),s(r)):t(r)}function s(r){return sP(r)&&a++<i?(e.consume(r),s):(e.exit(n),t(r))}}var pP={tokenize:mP};function mP(e){let t=e.attempt(this.parser.constructs.contentInitial,r,i),n;return t;function r(n){if(n===null){e.consume(n);return}return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),fP(e,t,`linePrefix`)}function i(t){return e.enter(`paragraph`),a(t)}function a(t){let r=e.enter(`chunkText`,{contentType:`text`,previous:n});return n&&(n.next=r),n=r,o(t)}function o(t){if(t===null){e.exit(`chunkText`),e.exit(`paragraph`),e.consume(t);return}return aP(t)?(e.consume(t),e.exit(`chunkText`),a):(e.consume(t),o)}}var hP={tokenize:_P},gP={tokenize:vP};function _P(e){let t=this,n=[],r=0,i,a,o;return s;function s(i){if(r<n.length){let a=n[r];return t.containerState=a[1],e.attempt(a[0].continuation,c,l)(i)}return l(i)}function c(e){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&v();let n=t.events.length,a=n,o;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===`chunkFlow`){o=t.events[a][1].end;break}_(r);let s=n;for(;s<t.events.length;)t.events[s][1].end={...o},s++;return WN(t.events,a+1,0,t.events.slice(n)),t.events.length=s,l(e)}return s(e)}function l(a){if(r===n.length){if(!i)return f(a);if(i.currentConstruct&&i.currentConstruct.concrete)return m(a);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(gP,u,d)(a)}function u(e){return i&&v(),_(r),f(e)}function d(e){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,m(e)}function f(n){return t.containerState={},e.attempt(gP,p,m)(n)}function p(e){return r++,n.push([t.currentConstruct,t.containerState]),f(e)}function m(n){if(n===null){i&&v(),_(0),e.consume(n);return}return i||=t.parser.flow(t.now()),e.enter(`chunkFlow`,{_tokenizer:i,contentType:`flow`,previous:a}),h(n)}function h(n){if(n===null){g(e.exit(`chunkFlow`),!0),_(0),e.consume(n);return}return aP(n)?(e.consume(n),g(e.exit(`chunkFlow`)),r=0,t.interrupt=void 0,s):(e.consume(n),h)}function g(e,n){let s=t.sliceStream(e);if(n&&s.push(null),e.previous=a,a&&(a.next=e),a=e,i.defineSkip(e.start),i.write(s),t.parser.lazy[e.start.line]){let e=i.events.length;for(;e--;)if(i.events[e][1].start.offset<o&&(!i.events[e][1].end||i.events[e][1].end.offset>o))return;let n=t.events.length,a=n,s,c;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===`chunkFlow`){if(s){c=t.events[a][1].end;break}s=!0}for(_(r),e=n;e<t.events.length;)t.events[e][1].end={...c},e++;WN(t.events,a+1,0,t.events.slice(n)),t.events.length=e}}function _(r){let i=n.length;for(;i-- >r;){let r=n[i];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function v(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function vP(e,t,n){return fP(e,e.attempt(this.parser.constructs.document,t,n),`linePrefix`,this.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)}function yP(e){if(e===null||oP(e)||lP(e))return 1;if(cP(e))return 2}function bP(e,t,n){let r=[],i=-1;for(;++i<e.length;){let a=e[i].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}var xP={name:`attention`,resolveAll:SP,tokenize:CP};function SP(e,t){let n=-1,r,i,a,o,s,c,l,u;for(;++n<e.length;)if(e[n][0]===`enter`&&e[n][1].type===`attentionSequence`&&e[n][1]._close){for(r=n;r--;)if(e[r][0]===`exit`&&e[r][1].type===`attentionSequence`&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;c=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;let d={...e[r][1].end},f={...e[n][1].start};wP(d,-c),wP(f,c),o={type:c>1?`strongSequence`:`emphasisSequence`,start:d,end:{...e[r][1].end}},s={type:c>1?`strongSequence`:`emphasisSequence`,start:{...e[n][1].start},end:f},a={type:c>1?`strongText`:`emphasisText`,start:{...e[r][1].end},end:{...e[n][1].start}},i={type:c>1?`strong`:`emphasis`,start:{...o.start},end:{...s.end}},e[r][1].end={...o.start},e[n][1].start={...s.end},l=[],e[r][1].end.offset-e[r][1].start.offset&&(l=GN(l,[[`enter`,e[r][1],t],[`exit`,e[r][1],t]])),l=GN(l,[[`enter`,i,t],[`enter`,o,t],[`exit`,o,t],[`enter`,a,t]]),l=GN(l,bP(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),l=GN(l,[[`exit`,a,t],[`enter`,s,t],[`exit`,s,t],[`exit`,i,t]]),e[n][1].end.offset-e[n][1].start.offset?(u=2,l=GN(l,[[`enter`,e[n][1],t],[`exit`,e[n][1],t]])):u=0,WN(e,r-1,n-r+3,l),n=r+l.length-u-2;break}}for(n=-1;++n<e.length;)e[n][1].type===`attentionSequence`&&(e[n][1].type=`data`);return e}function CP(e,t){let n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=yP(r),a;return o;function o(t){return a=t,e.enter(`attentionSequence`),s(t)}function s(o){if(o===a)return e.consume(o),s;let c=e.exit(`attentionSequence`),l=yP(o),u=!l||l===2&&i||n.includes(o),d=!i||i===2&&l||n.includes(r);return c._open=!!(a===42?u:u&&(i||!d)),c._close=!!(a===42?d:d&&(l||!u)),t(o)}}function wP(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}var TP={name:`autolink`,tokenize:EP};function EP(e,t,n){let r=0;return i;function i(t){return e.enter(`autolink`),e.enter(`autolinkMarker`),e.consume(t),e.exit(`autolinkMarker`),e.enter(`autolinkProtocol`),a}function a(t){return QN(t)?(e.consume(t),o):t===64?n(t):l(t)}function o(e){return e===43||e===45||e===46||$N(e)?(r=1,s(e)):l(e)}function s(t){return t===58?(e.consume(t),r=0,c):(t===43||t===45||t===46||$N(t))&&r++<32?(e.consume(t),s):(r=0,l(t))}function c(r){return r===62?(e.exit(`autolinkProtocol`),e.enter(`autolinkMarker`),e.consume(r),e.exit(`autolinkMarker`),e.exit(`autolink`),t):r===null||r===32||r===60||tP(r)?n(r):(e.consume(r),c)}function l(t){return t===64?(e.consume(t),u):eP(t)?(e.consume(t),l):n(t)}function u(e){return $N(e)?d(e):n(e)}function d(n){return n===46?(e.consume(n),r=0,u):n===62?(e.exit(`autolinkProtocol`).type=`autolinkEmail`,e.enter(`autolinkMarker`),e.consume(n),e.exit(`autolinkMarker`),e.exit(`autolink`),t):f(n)}function f(t){if((t===45||$N(t))&&r++<63){let n=t===45?f:d;return e.consume(t),n}return n(t)}}var DP={partial:!0,tokenize:OP};function OP(e,t,n){return r;function r(t){return sP(t)?fP(e,i,`linePrefix`)(t):i(t)}function i(e){return e===null||aP(e)?t(e):n(e)}}var kP={continuation:{tokenize:jP},exit:MP,name:`blockQuote`,tokenize:AP};function AP(e,t,n){let r=this;return i;function i(t){if(t===62){let n=r.containerState;return n.open||=(e.enter(`blockQuote`,{_container:!0}),!0),e.enter(`blockQuotePrefix`),e.enter(`blockQuoteMarker`),e.consume(t),e.exit(`blockQuoteMarker`),a}return n(t)}function a(n){return sP(n)?(e.enter(`blockQuotePrefixWhitespace`),e.consume(n),e.exit(`blockQuotePrefixWhitespace`),e.exit(`blockQuotePrefix`),t):(e.exit(`blockQuotePrefix`),t(n))}}function jP(e,t,n){let r=this;return i;function i(t){return sP(t)?fP(e,a,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):a(t)}function a(r){return e.attempt(kP,t,n)(r)}}function MP(e){e.exit(`blockQuote`)}var NP={name:`characterEscape`,tokenize:PP};function PP(e,t,n){return r;function r(t){return e.enter(`characterEscape`),e.enter(`escapeMarker`),e.consume(t),e.exit(`escapeMarker`),i}function i(r){return iP(r)?(e.enter(`characterEscapeValue`),e.consume(r),e.exit(`characterEscapeValue`),e.exit(`characterEscape`),t):n(r)}}var FP={name:`characterReference`,tokenize:IP};function IP(e,t,n){let r=this,i=0,a,o;return s;function s(t){return e.enter(`characterReference`),e.enter(`characterReferenceMarker`),e.consume(t),e.exit(`characterReferenceMarker`),c}function c(t){return t===35?(e.enter(`characterReferenceMarkerNumeric`),e.consume(t),e.exit(`characterReferenceMarkerNumeric`),l):(e.enter(`characterReferenceValue`),a=31,o=$N,u(t))}function l(t){return t===88||t===120?(e.enter(`characterReferenceMarkerHexadecimal`),e.consume(t),e.exit(`characterReferenceMarkerHexadecimal`),e.enter(`characterReferenceValue`),a=6,o=rP,u):(e.enter(`characterReferenceValue`),a=7,o=nP,u(t))}function u(s){if(s===59&&i){let i=e.exit(`characterReferenceValue`);return o===$N&&!UN(r.sliceSerialize(i))?n(s):(e.enter(`characterReferenceMarker`),e.consume(s),e.exit(`characterReferenceMarker`),e.exit(`characterReference`),t)}return o(s)&&i++<a?(e.consume(s),u):n(s)}}var LP={partial:!0,tokenize:BP},RP={concrete:!0,name:`codeFenced`,tokenize:zP};function zP(e,t,n){let r=this,i={partial:!0,tokenize:x},a=0,o=0,s;return c;function c(e){return l(e)}function l(t){let n=r.events[r.events.length-1];return a=n&&n[1].type===`linePrefix`?n[2].sliceSerialize(n[1],!0).length:0,s=t,e.enter(`codeFenced`),e.enter(`codeFencedFence`),e.enter(`codeFencedFenceSequence`),u(t)}function u(t){return t===s?(o++,e.consume(t),u):o<3?n(t):(e.exit(`codeFencedFenceSequence`),sP(t)?fP(e,d,`whitespace`)(t):d(t))}function d(n){return n===null||aP(n)?(e.exit(`codeFencedFence`),r.interrupt?t(n):e.check(LP,h,b)(n)):(e.enter(`codeFencedFenceInfo`),e.enter(`chunkString`,{contentType:`string`}),f(n))}function f(t){return t===null||aP(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),d(t)):sP(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),fP(e,p,`whitespace`)(t)):t===96&&t===s?n(t):(e.consume(t),f)}function p(t){return t===null||aP(t)?d(t):(e.enter(`codeFencedFenceMeta`),e.enter(`chunkString`,{contentType:`string`}),m(t))}function m(t){return t===null||aP(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceMeta`),d(t)):t===96&&t===s?n(t):(e.consume(t),m)}function h(t){return e.attempt(i,b,g)(t)}function g(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),_}function _(t){return a>0&&sP(t)?fP(e,v,`linePrefix`,a+1)(t):v(t)}function v(t){return t===null||aP(t)?e.check(LP,h,b)(t):(e.enter(`codeFlowValue`),y(t))}function y(t){return t===null||aP(t)?(e.exit(`codeFlowValue`),v(t)):(e.consume(t),y)}function b(n){return e.exit(`codeFenced`),t(n)}function x(e,t,n){let i=0;return a;function a(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),c}function c(t){return e.enter(`codeFencedFence`),sP(t)?fP(e,l,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):l(t)}function l(t){return t===s?(e.enter(`codeFencedFenceSequence`),u(t)):n(t)}function u(t){return t===s?(i++,e.consume(t),u):i>=o?(e.exit(`codeFencedFenceSequence`),sP(t)?fP(e,d,`whitespace`)(t):d(t)):n(t)}function d(r){return r===null||aP(r)?(e.exit(`codeFencedFence`),t(r)):n(r)}}}function BP(e,t,n){let r=this;return i;function i(t){return t===null?n(t):(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),a)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}var VP={name:`codeIndented`,tokenize:UP},HP={partial:!0,tokenize:WP};function UP(e,t,n){let r=this;return i;function i(t){return e.enter(`codeIndented`),fP(e,a,`linePrefix`,5)(t)}function a(e){let t=r.events[r.events.length-1];return t&&t[1].type===`linePrefix`&&t[2].sliceSerialize(t[1],!0).length>=4?o(e):n(e)}function o(t){return t===null?c(t):aP(t)?e.attempt(HP,o,c)(t):(e.enter(`codeFlowValue`),s(t))}function s(t){return t===null||aP(t)?(e.exit(`codeFlowValue`),o(t)):(e.consume(t),s)}function c(n){return e.exit(`codeIndented`),t(n)}}function WP(e,t,n){let r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):aP(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),i):fP(e,a,`linePrefix`,5)(t)}function a(e){let a=r.events[r.events.length-1];return a&&a[1].type===`linePrefix`&&a[2].sliceSerialize(a[1],!0).length>=4?t(e):aP(e)?i(e):n(e)}}var GP={name:`codeText`,previous:qP,resolve:KP,tokenize:JP};function KP(e){let t=e.length-4,n=3,r,i;if((e[n][1].type===`lineEnding`||e[n][1].type===`space`)&&(e[t][1].type===`lineEnding`||e[t][1].type===`space`)){for(r=n;++r<t;)if(e[r][1].type===`codeTextData`){e[n][1].type=`codeTextPadding`,e[t][1].type=`codeTextPadding`,n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!==`lineEnding`&&(i=r):(r===t||e[r][1].type===`lineEnding`)&&(e[i][1].type=`codeTextData`,r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function qP(e){return e!==96||this.events[this.events.length-1][1].type===`characterEscape`}function JP(e,t,n){let r=0,i,a;return o;function o(t){return e.enter(`codeText`),e.enter(`codeTextSequence`),s(t)}function s(t){return t===96?(e.consume(t),r++,s):(e.exit(`codeTextSequence`),c(t))}function c(t){return t===null?n(t):t===32?(e.enter(`space`),e.consume(t),e.exit(`space`),c):t===96?(a=e.enter(`codeTextSequence`),i=0,u(t)):aP(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),c):(e.enter(`codeTextData`),l(t))}function l(t){return t===null||t===32||t===96||aP(t)?(e.exit(`codeTextData`),c(t)):(e.consume(t),l)}function u(n){return n===96?(e.consume(n),i++,u):i===r?(e.exit(`codeTextSequence`),e.exit(`codeText`),t(n)):(a.type=`codeTextData`,l(n))}}var YP=class{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){let n=t??1/0;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){let r=t||0;this.setCursor(Math.trunc(e));let i=this.right.splice(this.right.length-r,1/0);return n&&XP(this.left,n),i.reverse()}pop(){return this.setCursor(1/0),this.left.pop()}push(e){this.setCursor(1/0),this.left.push(e)}pushMany(e){this.setCursor(1/0),XP(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),XP(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&this.right.length===0||e<0&&this.left.length===0))if(e<this.left.length){let t=this.left.splice(e,1/0);XP(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,1/0);XP(this.left,t.reverse())}}};function XP(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function ZP(e){let t={},n=-1,r,i,a,o,s,c,l,u=new YP(e);for(;++n<u.length;){for(;n in t;)n=t[n];if(r=u.get(n),n&&r[1].type===`chunkFlow`&&u.get(n-1)[1].type===`listItemPrefix`&&(c=r[1]._tokenizer.events,a=0,a<c.length&&c[a][1].type===`lineEndingBlank`&&(a+=2),a<c.length&&c[a][1].type===`content`))for(;++a<c.length&&c[a][1].type!==`content`;)c[a][1].type===`chunkText`&&(c[a][1]._isInFirstContentOfListItem=!0,a++);if(r[0]===`enter`)r[1].contentType&&(Object.assign(t,QP(u,n)),n=t[n],l=!0);else if(r[1]._container){for(a=n,i=void 0;a--;)if(o=u.get(a),o[1].type===`lineEnding`||o[1].type===`lineEndingBlank`)o[0]===`enter`&&(i&&(u.get(i)[1].type=`lineEndingBlank`),o[1].type=`lineEnding`,i=a);else if(!(o[1].type===`linePrefix`||o[1].type===`listItemIndent`))break;i&&(r[1].end={...u.get(i)[1].start},s=u.slice(i,n),s.unshift(r),u.splice(i,n-i+1,s))}}return WN(e,0,1/0,u.slice(0)),!l}function QP(e,t){let n=e.get(t)[1],r=e.get(t)[2],i=t-1,a=[],o=n._tokenizer;o||(o=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));let s=o.events,c=[],l={},u,d,f=-1,p=n,m=0,h=0,g=[h];for(;p;){for(;e.get(++i)[1]!==p;);a.push(i),p._tokenizer||(u=r.sliceStream(p),p.next||u.push(null),d&&o.defineSkip(p.start),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(u),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),d=p,p=p.next}for(p=n;++f<s.length;)s[f][0]===`exit`&&s[f-1][0]===`enter`&&s[f][1].type===s[f-1][1].type&&s[f][1].start.line!==s[f][1].end.line&&(h=f+1,g.push(h),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(o.events=[],p?(p._tokenizer=void 0,p.previous=void 0):g.pop(),f=g.length;f--;){let t=s.slice(g[f],g[f+1]),n=a.pop();c.push([n,n+t.length-1]),e.splice(n,2,t)}for(c.reverse(),f=-1;++f<c.length;)l[m+c[f][0]]=m+c[f][1],m+=c[f][1]-c[f][0]-1;return l}var $P={resolve:tF,tokenize:nF},eF={partial:!0,tokenize:rF};function tF(e){return ZP(e),e}function nF(e,t){let n;return r;function r(t){return e.enter(`content`),n=e.enter(`chunkContent`,{contentType:`content`}),i(t)}function i(t){return t===null?a(t):aP(t)?e.check(eF,o,a)(t):(e.consume(t),i)}function a(n){return e.exit(`chunkContent`),e.exit(`content`),t(n)}function o(t){return e.consume(t),e.exit(`chunkContent`),n.next=e.enter(`chunkContent`,{contentType:`content`,previous:n}),n=n.next,i}}function rF(e,t,n){let r=this;return i;function i(t){return e.exit(`chunkContent`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),fP(e,a,`linePrefix`)}function a(i){if(i===null||aP(i))return n(i);let a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes(`codeIndented`)&&a&&a[1].type===`linePrefix`&&a[2].sliceSerialize(a[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}function iF(e,t,n,r,i,a,o,s,c){let l=c||1/0,u=0;return d;function d(t){return t===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(t),e.exit(a),f):t===null||t===32||t===41||tP(t)?n(t):(e.enter(r),e.enter(o),e.enter(s),e.enter(`chunkString`,{contentType:`string`}),h(t))}function f(n){return n===62?(e.enter(a),e.consume(n),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(s),e.enter(`chunkString`,{contentType:`string`}),p(n))}function p(t){return t===62?(e.exit(`chunkString`),e.exit(s),f(t)):t===null||t===60||aP(t)?n(t):(e.consume(t),t===92?m:p)}function m(t){return t===60||t===62||t===92?(e.consume(t),p):p(t)}function h(i){return!u&&(i===null||i===41||oP(i))?(e.exit(`chunkString`),e.exit(s),e.exit(o),e.exit(r),t(i)):u<l&&i===40?(e.consume(i),u++,h):i===41?(e.consume(i),u--,h):i===null||i===32||i===40||tP(i)?n(i):(e.consume(i),i===92?g:h)}function g(t){return t===40||t===41||t===92?(e.consume(t),h):h(t)}}function aF(e,t,n,r,i,a){let o=this,s=0,c;return l;function l(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(a),u}function u(l){return s>999||l===null||l===91||l===93&&!c||l===94&&!s&&`_hiddenFootnoteSupport`in o.parser.constructs?n(l):l===93?(e.exit(a),e.enter(i),e.consume(l),e.exit(i),e.exit(r),t):aP(l)?(e.enter(`lineEnding`),e.consume(l),e.exit(`lineEnding`),u):(e.enter(`chunkString`,{contentType:`string`}),d(l))}function d(t){return t===null||t===91||t===93||aP(t)||s++>999?(e.exit(`chunkString`),u(t)):(e.consume(t),c||=!sP(t),t===92?f:d)}function f(t){return t===91||t===92||t===93?(e.consume(t),s++,d):d(t)}}function oF(e,t,n,r,i,a){let o;return s;function s(t){return t===34||t===39||t===40?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),o=t===40?41:t,c):n(t)}function c(n){return n===o?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(a),l(n))}function l(t){return t===o?(e.exit(a),c(o)):t===null?n(t):aP(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),fP(e,l,`linePrefix`)):(e.enter(`chunkString`,{contentType:`string`}),u(t))}function u(t){return t===o||t===null||aP(t)?(e.exit(`chunkString`),l(t)):(e.consume(t),t===92?d:u)}function d(t){return t===o||t===92?(e.consume(t),u):u(t)}}function sF(e,t){let n;return r;function r(i){return aP(i)?(e.enter(`lineEnding`),e.consume(i),e.exit(`lineEnding`),n=!0,r):sP(i)?fP(e,r,n?`linePrefix`:`lineSuffix`)(i):t(i)}}var cF={name:`definition`,tokenize:uF},lF={partial:!0,tokenize:dF};function uF(e,t,n){let r=this,i;return a;function a(t){return e.enter(`definition`),o(t)}function o(t){return aF.call(r,e,s,n,`definitionLabel`,`definitionLabelMarker`,`definitionLabelString`)(t)}function s(t){return i=ZN(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),t===58?(e.enter(`definitionMarker`),e.consume(t),e.exit(`definitionMarker`),c):n(t)}function c(t){return oP(t)?sF(e,l)(t):l(t)}function l(t){return iF(e,u,n,`definitionDestination`,`definitionDestinationLiteral`,`definitionDestinationLiteralMarker`,`definitionDestinationRaw`,`definitionDestinationString`)(t)}function u(t){return e.attempt(lF,d,d)(t)}function d(t){return sP(t)?fP(e,f,`whitespace`)(t):f(t)}function f(a){return a===null||aP(a)?(e.exit(`definition`),r.parser.defined.push(i),t(a)):n(a)}}function dF(e,t,n){return r;function r(t){return oP(t)?sF(e,i)(t):n(t)}function i(t){return oF(e,a,n,`definitionTitle`,`definitionTitleMarker`,`definitionTitleString`)(t)}function a(t){return sP(t)?fP(e,o,`whitespace`)(t):o(t)}function o(e){return e===null||aP(e)?t(e):n(e)}}var fF={name:`hardBreakEscape`,tokenize:pF};function pF(e,t,n){return r;function r(t){return e.enter(`hardBreakEscape`),e.consume(t),i}function i(r){return aP(r)?(e.exit(`hardBreakEscape`),t(r)):n(r)}}var mF={name:`headingAtx`,resolve:hF,tokenize:gF};function hF(e,t){let n=e.length-2,r=3,i,a;return e[r][1].type===`whitespace`&&(r+=2),n-2>r&&e[n][1].type===`whitespace`&&(n-=2),e[n][1].type===`atxHeadingSequence`&&(r===n-1||n-4>r&&e[n-2][1].type===`whitespace`)&&(n-=r+1===n?2:4),n>r&&(i={type:`atxHeadingText`,start:e[r][1].start,end:e[n][1].end},a={type:`chunkText`,start:e[r][1].start,end:e[n][1].end,contentType:`text`},WN(e,r,n-r+1,[[`enter`,i,t],[`enter`,a,t],[`exit`,a,t],[`exit`,i,t]])),e}function gF(e,t,n){let r=0;return i;function i(t){return e.enter(`atxHeading`),a(t)}function a(t){return e.enter(`atxHeadingSequence`),o(t)}function o(t){return t===35&&r++<6?(e.consume(t),o):t===null||oP(t)?(e.exit(`atxHeadingSequence`),s(t)):n(t)}function s(n){return n===35?(e.enter(`atxHeadingSequence`),c(n)):n===null||aP(n)?(e.exit(`atxHeading`),t(n)):sP(n)?fP(e,s,`whitespace`)(n):(e.enter(`atxHeadingText`),l(n))}function c(t){return t===35?(e.consume(t),c):(e.exit(`atxHeadingSequence`),s(t))}function l(t){return t===null||t===35||oP(t)?(e.exit(`atxHeadingText`),s(t)):(e.consume(t),l)}}var _F=`address.article.aside.base.basefont.blockquote.body.caption.center.col.colgroup.dd.details.dialog.dir.div.dl.dt.fieldset.figcaption.figure.footer.form.frame.frameset.h1.h2.h3.h4.h5.h6.head.header.hr.html.iframe.legend.li.link.main.menu.menuitem.nav.noframes.ol.optgroup.option.p.param.search.section.summary.table.tbody.td.tfoot.th.thead.title.tr.track.ul`.split(`.`),vF=[`pre`,`script`,`style`,`textarea`],yF={concrete:!0,name:`htmlFlow`,resolveTo:SF,tokenize:CF},bF={partial:!0,tokenize:TF},xF={partial:!0,tokenize:wF};function SF(e){let t=e.length;for(;t--&&!(e[t][0]===`enter`&&e[t][1].type===`htmlFlow`););return t>1&&e[t-2][1].type===`linePrefix`&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function CF(e,t,n){let r=this,i,a,o,s,c;return l;function l(e){return u(e)}function u(t){return e.enter(`htmlFlow`),e.enter(`htmlFlowData`),e.consume(t),d}function d(s){return s===33?(e.consume(s),f):s===47?(e.consume(s),a=!0,h):s===63?(e.consume(s),i=3,r.interrupt?t:I):QN(s)?(e.consume(s),o=String.fromCharCode(s),g):n(s)}function f(a){return a===45?(e.consume(a),i=2,p):a===91?(e.consume(a),i=5,s=0,m):QN(a)?(e.consume(a),i=4,r.interrupt?t:I):n(a)}function p(i){return i===45?(e.consume(i),r.interrupt?t:I):n(i)}function m(i){return i===`CDATA[`.charCodeAt(s++)?(e.consume(i),s===6?r.interrupt?t:O:m):n(i)}function h(t){return QN(t)?(e.consume(t),o=String.fromCharCode(t),g):n(t)}function g(s){if(s===null||s===47||s===62||oP(s)){let c=s===47,l=o.toLowerCase();return!c&&!a&&vF.includes(l)?(i=1,r.interrupt?t(s):O(s)):_F.includes(o.toLowerCase())?(i=6,c?(e.consume(s),_):r.interrupt?t(s):O(s)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(s):a?v(s):y(s))}return s===45||$N(s)?(e.consume(s),o+=String.fromCharCode(s),g):n(s)}function _(i){return i===62?(e.consume(i),r.interrupt?t:O):n(i)}function v(t){return sP(t)?(e.consume(t),v):E(t)}function y(t){return t===47?(e.consume(t),E):t===58||t===95||QN(t)?(e.consume(t),b):sP(t)?(e.consume(t),y):E(t)}function b(t){return t===45||t===46||t===58||t===95||$N(t)?(e.consume(t),b):x(t)}function x(t){return t===61?(e.consume(t),S):sP(t)?(e.consume(t),x):y(t)}function S(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),c=t,C):sP(t)?(e.consume(t),S):w(t)}function C(t){return t===c?(e.consume(t),c=null,T):t===null||aP(t)?n(t):(e.consume(t),C)}function w(t){return t===null||t===34||t===39||t===47||t===60||t===61||t===62||t===96||oP(t)?x(t):(e.consume(t),w)}function T(e){return e===47||e===62||sP(e)?y(e):n(e)}function E(t){return t===62?(e.consume(t),D):n(t)}function D(t){return t===null||aP(t)?O(t):sP(t)?(e.consume(t),D):n(t)}function O(t){return t===45&&i===2?(e.consume(t),M):t===60&&i===1?(e.consume(t),N):t===62&&i===4?(e.consume(t),L):t===63&&i===3?(e.consume(t),I):t===93&&i===5?(e.consume(t),F):aP(t)&&(i===6||i===7)?(e.exit(`htmlFlowData`),e.check(bF,R,k)(t)):t===null||aP(t)?(e.exit(`htmlFlowData`),k(t)):(e.consume(t),O)}function k(t){return e.check(xF,A,R)(t)}function A(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),j}function j(t){return t===null||aP(t)?k(t):(e.enter(`htmlFlowData`),O(t))}function M(t){return t===45?(e.consume(t),I):O(t)}function N(t){return t===47?(e.consume(t),o=``,P):O(t)}function P(t){if(t===62){let n=o.toLowerCase();return vF.includes(n)?(e.consume(t),L):O(t)}return QN(t)&&o.length<8?(e.consume(t),o+=String.fromCharCode(t),P):O(t)}function F(t){return t===93?(e.consume(t),I):O(t)}function I(t){return t===62?(e.consume(t),L):t===45&&i===2?(e.consume(t),I):O(t)}function L(t){return t===null||aP(t)?(e.exit(`htmlFlowData`),R(t)):(e.consume(t),L)}function R(n){return e.exit(`htmlFlow`),t(n)}}function wF(e,t,n){let r=this;return i;function i(t){return aP(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),a):n(t)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}function TF(e,t,n){return r;function r(r){return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),e.attempt(DP,t,n)}}var EF={name:`htmlText`,tokenize:DF};function DF(e,t,n){let r=this,i,a,o;return s;function s(t){return e.enter(`htmlText`),e.enter(`htmlTextData`),e.consume(t),c}function c(t){return t===33?(e.consume(t),l):t===47?(e.consume(t),x):t===63?(e.consume(t),y):QN(t)?(e.consume(t),w):n(t)}function l(t){return t===45?(e.consume(t),u):t===91?(e.consume(t),a=0,m):QN(t)?(e.consume(t),v):n(t)}function u(t){return t===45?(e.consume(t),p):n(t)}function d(t){return t===null?n(t):t===45?(e.consume(t),f):aP(t)?(o=d,N(t)):(e.consume(t),d)}function f(t){return t===45?(e.consume(t),p):d(t)}function p(e){return e===62?M(e):e===45?f(e):d(e)}function m(t){return t===`CDATA[`.charCodeAt(a++)?(e.consume(t),a===6?h:m):n(t)}function h(t){return t===null?n(t):t===93?(e.consume(t),g):aP(t)?(o=h,N(t)):(e.consume(t),h)}function g(t){return t===93?(e.consume(t),_):h(t)}function _(t){return t===62?M(t):t===93?(e.consume(t),_):h(t)}function v(t){return t===null||t===62?M(t):aP(t)?(o=v,N(t)):(e.consume(t),v)}function y(t){return t===null?n(t):t===63?(e.consume(t),b):aP(t)?(o=y,N(t)):(e.consume(t),y)}function b(e){return e===62?M(e):y(e)}function x(t){return QN(t)?(e.consume(t),S):n(t)}function S(t){return t===45||$N(t)?(e.consume(t),S):C(t)}function C(t){return aP(t)?(o=C,N(t)):sP(t)?(e.consume(t),C):M(t)}function w(t){return t===45||$N(t)?(e.consume(t),w):t===47||t===62||oP(t)?T(t):n(t)}function T(t){return t===47?(e.consume(t),M):t===58||t===95||QN(t)?(e.consume(t),E):aP(t)?(o=T,N(t)):sP(t)?(e.consume(t),T):M(t)}function E(t){return t===45||t===46||t===58||t===95||$N(t)?(e.consume(t),E):D(t)}function D(t){return t===61?(e.consume(t),O):aP(t)?(o=D,N(t)):sP(t)?(e.consume(t),D):T(t)}function O(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),i=t,k):aP(t)?(o=O,N(t)):sP(t)?(e.consume(t),O):(e.consume(t),A)}function k(t){return t===i?(e.consume(t),i=void 0,j):t===null?n(t):aP(t)?(o=k,N(t)):(e.consume(t),k)}function A(t){return t===null||t===34||t===39||t===60||t===61||t===96?n(t):t===47||t===62||oP(t)?T(t):(e.consume(t),A)}function j(e){return e===47||e===62||oP(e)?T(e):n(e)}function M(r){return r===62?(e.consume(r),e.exit(`htmlTextData`),e.exit(`htmlText`),t):n(r)}function N(t){return e.exit(`htmlTextData`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),P}function P(t){return sP(t)?fP(e,F,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):F(t)}function F(t){return e.enter(`htmlTextData`),o(t)}}var OF={name:`labelEnd`,resolveAll:MF,resolveTo:NF,tokenize:PF},kF={tokenize:FF},AF={tokenize:IF},jF={tokenize:LF};function MF(e){let t=-1,n=[];for(;++t<e.length;){let r=e[t][1];if(n.push(e[t]),r.type===`labelImage`||r.type===`labelLink`||r.type===`labelEnd`){let e=r.type===`labelImage`?4:2;r.type=`data`,t+=e}}return e.length!==n.length&&WN(e,0,e.length,n),e}function NF(e,t){let n=e.length,r=0,i,a,o,s;for(;n--;)if(i=e[n][1],a){if(i.type===`link`||i.type===`labelLink`&&i._inactive)break;e[n][0]===`enter`&&i.type===`labelLink`&&(i._inactive=!0)}else if(o){if(e[n][0]===`enter`&&(i.type===`labelImage`||i.type===`labelLink`)&&!i._balanced&&(a=n,i.type!==`labelLink`)){r=2;break}}else i.type===`labelEnd`&&(o=n);let c={type:e[a][1].type===`labelLink`?`link`:`image`,start:{...e[a][1].start},end:{...e[e.length-1][1].end}},l={type:`label`,start:{...e[a][1].start},end:{...e[o][1].end}},u={type:`labelText`,start:{...e[a+r+2][1].end},end:{...e[o-2][1].start}};return s=[[`enter`,c,t],[`enter`,l,t]],s=GN(s,e.slice(a+1,a+r+3)),s=GN(s,[[`enter`,u,t]]),s=GN(s,bP(t.parser.constructs.insideSpan.null,e.slice(a+r+4,o-3),t)),s=GN(s,[[`exit`,u,t],e[o-2],e[o-1],[`exit`,l,t]]),s=GN(s,e.slice(o+1)),s=GN(s,[[`exit`,c,t]]),WN(e,a,e.length,s),e}function PF(e,t,n){let r=this,i=r.events.length,a,o;for(;i--;)if((r.events[i][1].type===`labelImage`||r.events[i][1].type===`labelLink`)&&!r.events[i][1]._balanced){a=r.events[i][1];break}return s;function s(t){return a?a._inactive?d(t):(o=r.parser.defined.includes(ZN(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter(`labelEnd`),e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelEnd`),c):n(t)}function c(t){return t===40?e.attempt(kF,u,o?u:d)(t):t===91?e.attempt(AF,u,o?l:d)(t):o?u(t):d(t)}function l(t){return e.attempt(jF,u,d)(t)}function u(e){return t(e)}function d(e){return a._balanced=!0,n(e)}}function FF(e,t,n){return r;function r(t){return e.enter(`resource`),e.enter(`resourceMarker`),e.consume(t),e.exit(`resourceMarker`),i}function i(t){return oP(t)?sF(e,a)(t):a(t)}function a(t){return t===41?u(t):iF(e,o,s,`resourceDestination`,`resourceDestinationLiteral`,`resourceDestinationLiteralMarker`,`resourceDestinationRaw`,`resourceDestinationString`,32)(t)}function o(t){return oP(t)?sF(e,c)(t):u(t)}function s(e){return n(e)}function c(t){return t===34||t===39||t===40?oF(e,l,n,`resourceTitle`,`resourceTitleMarker`,`resourceTitleString`)(t):u(t)}function l(t){return oP(t)?sF(e,u)(t):u(t)}function u(r){return r===41?(e.enter(`resourceMarker`),e.consume(r),e.exit(`resourceMarker`),e.exit(`resource`),t):n(r)}}function IF(e,t,n){let r=this;return i;function i(t){return aF.call(r,e,a,o,`reference`,`referenceMarker`,`referenceString`)(t)}function a(e){return r.parser.defined.includes(ZN(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}function LF(e,t,n){return r;function r(t){return e.enter(`reference`),e.enter(`referenceMarker`),e.consume(t),e.exit(`referenceMarker`),i}function i(r){return r===93?(e.enter(`referenceMarker`),e.consume(r),e.exit(`referenceMarker`),e.exit(`reference`),t):n(r)}}var RF={name:`labelStartImage`,resolveAll:OF.resolveAll,tokenize:zF};function zF(e,t,n){let r=this;return i;function i(t){return e.enter(`labelImage`),e.enter(`labelImageMarker`),e.consume(t),e.exit(`labelImageMarker`),a}function a(t){return t===91?(e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelImage`),o):n(t)}function o(e){return e===94&&`_hiddenFootnoteSupport`in r.parser.constructs?n(e):t(e)}}var BF={name:`labelStartLink`,resolveAll:OF.resolveAll,tokenize:VF};function VF(e,t,n){let r=this;return i;function i(t){return e.enter(`labelLink`),e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelLink`),a}function a(e){return e===94&&`_hiddenFootnoteSupport`in r.parser.constructs?n(e):t(e)}}var HF={name:`lineEnding`,tokenize:UF};function UF(e,t){return n;function n(n){return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),fP(e,t,`linePrefix`)}}var WF={name:`thematicBreak`,tokenize:GF};function GF(e,t,n){let r=0,i;return a;function a(t){return e.enter(`thematicBreak`),o(t)}function o(e){return i=e,s(e)}function s(a){return a===i?(e.enter(`thematicBreakSequence`),c(a)):r>=3&&(a===null||aP(a))?(e.exit(`thematicBreak`),t(a)):n(a)}function c(t){return t===i?(e.consume(t),r++,c):(e.exit(`thematicBreakSequence`),sP(t)?fP(e,s,`whitespace`)(t):s(t))}}var KF={continuation:{tokenize:XF},exit:QF,name:`list`,tokenize:YF},qF={partial:!0,tokenize:$F},JF={partial:!0,tokenize:ZF};function YF(e,t,n){let r=this,i=r.events[r.events.length-1],a=i&&i[1].type===`linePrefix`?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(t){let i=r.containerState.type||(t===42||t===43||t===45?`listUnordered`:`listOrdered`);if(i===`listUnordered`?!r.containerState.marker||t===r.containerState.marker:nP(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),i===`listUnordered`)return e.enter(`listItemPrefix`),t===42||t===45?e.check(WF,n,l)(t):l(t);if(!r.interrupt||t===49)return e.enter(`listItemPrefix`),e.enter(`listItemValue`),c(t)}return n(t)}function c(t){return nP(t)&&++o<10?(e.consume(t),c):(!r.interrupt||o<2)&&(r.containerState.marker?t===r.containerState.marker:t===41||t===46)?(e.exit(`listItemValue`),l(t)):n(t)}function l(t){return e.enter(`listItemMarker`),e.consume(t),e.exit(`listItemMarker`),r.containerState.marker=r.containerState.marker||t,e.check(DP,r.interrupt?n:u,e.attempt(qF,f,d))}function u(e){return r.containerState.initialBlankLine=!0,a++,f(e)}function d(t){return sP(t)?(e.enter(`listItemPrefixWhitespace`),e.consume(t),e.exit(`listItemPrefixWhitespace`),f):n(t)}function f(n){return r.containerState.size=a+r.sliceSerialize(e.exit(`listItemPrefix`),!0).length,t(n)}}function XF(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(DP,i,a);function i(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,fP(e,t,`listItemIndent`,r.containerState.size+1)(n)}function a(n){return r.containerState.furtherBlankLines||!sP(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(JF,t,o)(n))}function o(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,fP(e,e.attempt(KF,t,n),`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(i)}}function ZF(e,t,n){let r=this;return fP(e,i,`listItemIndent`,r.containerState.size+1);function i(e){let i=r.events[r.events.length-1];return i&&i[1].type===`listItemIndent`&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)}}function QF(e){e.exit(this.containerState.type)}function $F(e,t,n){let r=this;return fP(e,i,`listItemPrefixWhitespace`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:5);function i(e){let i=r.events[r.events.length-1];return!sP(e)&&i&&i[1].type===`listItemPrefixWhitespace`?t(e):n(e)}}var eI={name:`setextUnderline`,resolveTo:tI,tokenize:nI};function tI(e,t){let n=e.length,r,i,a;for(;n--;)if(e[n][0]===`enter`){if(e[n][1].type===`content`){r=n;break}e[n][1].type===`paragraph`&&(i=n)}else e[n][1].type===`content`&&e.splice(n,1),!a&&e[n][1].type===`definition`&&(a=n);let o={type:`setextHeading`,start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type=`setextHeadingText`,a?(e.splice(i,0,[`enter`,o,t]),e.splice(a+1,0,[`exit`,e[r][1],t]),e[r][1].end={...e[a][1].end}):e[r][1]=o,e.push([`exit`,o,t]),e}function nI(e,t,n){let r=this,i;return a;function a(t){let a=r.events.length,s;for(;a--;)if(r.events[a][1].type!==`lineEnding`&&r.events[a][1].type!==`linePrefix`&&r.events[a][1].type!==`content`){s=r.events[a][1].type===`paragraph`;break}return!r.parser.lazy[r.now().line]&&(r.interrupt||s)?(e.enter(`setextHeadingLine`),i=t,o(t)):n(t)}function o(t){return e.enter(`setextHeadingLineSequence`),s(t)}function s(t){return t===i?(e.consume(t),s):(e.exit(`setextHeadingLineSequence`),sP(t)?fP(e,c,`lineSuffix`)(t):c(t))}function c(r){return r===null||aP(r)?(e.exit(`setextHeadingLine`),t(r)):n(r)}}var rI={tokenize:iI};function iI(e){let t=this,n=e.attempt(DP,r,e.attempt(this.parser.constructs.flowInitial,i,fP(e,e.attempt(this.parser.constructs.flow,i,e.attempt($P,i)),`linePrefix`)));return n;function r(r){if(r===null){e.consume(r);return}return e.enter(`lineEndingBlank`),e.consume(r),e.exit(`lineEndingBlank`),t.currentConstruct=void 0,n}function i(r){if(r===null){e.consume(r);return}return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),t.currentConstruct=void 0,n}}var aI={resolveAll:lI()},oI=cI(`string`),sI=cI(`text`);function cI(e){return{resolveAll:lI(e===`text`?uI:void 0),tokenize:t};function t(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,a,o);return a;function a(e){return c(e)?i(e):o(e)}function o(e){if(e===null){t.consume(e);return}return t.enter(`data`),t.consume(e),s}function s(e){return c(e)?(t.exit(`data`),i(e)):(t.consume(e),s)}function c(e){if(e===null)return!0;let t=r[e],i=-1;if(t)for(;++i<t.length;){let e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}function lI(e){return t;function t(t,n){let r=-1,i;for(;++r<=t.length;)i===void 0?t[r]&&t[r][1].type===`data`&&(i=r,r++):(!t[r]||t[r][1].type!==`data`)&&(r!==i+2&&(t[i][1].end=t[r-1][1].end,t.splice(i+2,r-i-2),r=i+2),i=void 0);return e?e(t,n):t}}function uI(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type===`lineEnding`)&&e[n-1][1].type===`data`){let r=e[n-1][1],i=t.sliceStream(r),a=i.length,o=-1,s=0,c;for(;a--;){let e=i[a];if(typeof e==`string`){for(o=e.length;e.charCodeAt(o-1)===32;)s++,o--;if(o)break;o=-1}else if(e===-2)c=!0,s++;else if(e!==-1){a++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(s=0),s){let i={type:n===e.length||c||s<2?`lineSuffix`:`hardBreakTrailing`,start:{_bufferIndex:a?o:r.start._bufferIndex+o,_index:r.start._index+a,line:r.end.line,column:r.end.column-s,offset:r.end.offset-s},end:{...r.end}};r.end={...i.start},r.start.offset===r.end.offset?Object.assign(r,i):(e.splice(n,0,[`enter`,i,t],[`exit`,i,t]),n+=2)}n++}return e}var dI=s({attentionMarkers:()=>yI,contentInitial:()=>pI,disable:()=>bI,document:()=>fI,flow:()=>hI,flowInitial:()=>mI,insideSpan:()=>vI,string:()=>gI,text:()=>_I}),fI={42:KF,43:KF,45:KF,48:KF,49:KF,50:KF,51:KF,52:KF,53:KF,54:KF,55:KF,56:KF,57:KF,62:kP},pI={91:cF},mI={[-2]:VP,[-1]:VP,32:VP},hI={35:mF,42:WF,45:[eI,WF],60:yF,61:eI,95:WF,96:RP,126:RP},gI={38:FP,92:NP},_I={[-5]:HF,[-4]:HF,[-3]:HF,33:RF,38:FP,42:xP,60:[TP,EF],91:BF,92:[fF,NP],93:OF,95:xP,96:GP},vI={null:[xP,aI]},yI={null:[42,95]},bI={null:[]};function xI(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0},i={},a=[],o=[],s=[],c={attempt:C(x),check:C(S),consume:v,enter:y,exit:b,interrupt:C(S,{interrupt:!0})},l={code:null,containerState:{},defineSkip:h,events:[],now:m,parser:e,previous:null,sliceSerialize:f,sliceStream:p,write:d},u=t.tokenize.call(l,c);return t.resolveAll&&a.push(t),l;function d(e){return o=GN(o,e),g(),o[o.length-1]===null?(w(t,0),l.events=bP(a,l.events,l),l.events):[]}function f(e,t){return CI(p(e),t)}function p(e){return SI(o,e)}function m(){let{_bufferIndex:e,_index:t,line:n,column:i,offset:a}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:a}}function h(e){i[e.line]=e.column,E()}function g(){let e;for(;r._index<o.length;){let t=o[r._index];if(typeof t==`string`)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<t.length;)_(t.charCodeAt(r._bufferIndex));else _(t)}}function _(e){u=u(e)}function v(e){aP(e)?(r.line++,r.column=1,r.offset+=e===-3?2:1,E()):e!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),l.previous=e}function y(e,t){let n=t||{};return n.type=e,n.start=m(),l.events.push([`enter`,n,l]),s.push(n),n}function b(e){let t=s.pop();return t.end=m(),l.events.push([`exit`,t,l]),t}function x(e,t){w(e,t.from)}function S(e,t){t.restore()}function C(e,t){return n;function n(n,r,i){let a,o,s,u;return Array.isArray(n)?f(n):`tokenize`in n?f([n]):d(n);function d(e){return t;function t(t){let n=t!==null&&e[t],r=t!==null&&e.null;return f([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}function f(e){return a=e,o=0,e.length===0?i:p(e[o])}function p(e){return n;function n(n){return u=T(),s=e,e.partial||(l.currentConstruct=e),e.name&&l.parser.constructs.disable.null.includes(e.name)?h(n):e.tokenize.call(t?Object.assign(Object.create(l),t):l,c,m,h)(n)}}function m(t){return e(s,u),r}function h(e){return u.restore(),++o<a.length?p(a[o]):i}}}function w(e,t){e.resolveAll&&!a.includes(e)&&a.push(e),e.resolve&&WN(l.events,t,l.events.length-t,e.resolve(l.events.slice(t),l)),e.resolveTo&&(l.events=e.resolveTo(l.events,l))}function T(){let e=m(),t=l.previous,n=l.currentConstruct,i=l.events.length,a=Array.from(s);return{from:i,restore:o};function o(){r=e,l.previous=t,l.currentConstruct=n,l.events.length=i,s=a,E()}}function E(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function SI(e,t){let n=t.start._index,r=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex,o;if(n===i)o=[e[n].slice(r,a)];else{if(o=e.slice(n,i),r>-1){let e=o[0];typeof e==`string`?o[0]=e.slice(r):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function CI(e,t){let n=-1,r=[],i;for(;++n<e.length;){let a=e[n],o;if(typeof a==`string`)o=a;else switch(a){case-5:o=`\r`;break;case-4:o=`
258
+ `]:{...qa(e),marginInlineStart:e.marginXXS},...oA(e),...sA(e),...cA(),"&-rtl":{direction:`rtl`}}}},()=>({titleMarginTop:`1.2em`,titleMarginBottom:`0.5em`})),uA=e=>{let{prefixCls:t,"aria-label":n,className:r,style:i,direction:a,maxLength:o,autoSize:s=!0,value:c,onSave:l,onCancel:u,onEnd:d,component:f,enterIcon:p=v.createElement(tA,null)}=e,m=v.useRef(null),h=v.useRef(!1),g=v.useRef(null),[_,y]=v.useState(c);v.useEffect(()=>{y(c)},[c]),v.useEffect(()=>{if(m.current?.resizableTextArea){let{textArea:e}=m.current.resizableTextArea;e.focus();let{length:t}=e.value;e.setSelectionRange(t,t)}},[]);let b=({target:e})=>{y(e.value.replace(/[\n\r]/g,``))},x=()=>{h.current=!0},S=()=>{h.current=!1},C=({keyCode:e})=>{h.current||(g.current=e)},w=()=>{l(_.trim())},T=({keyCode:e,ctrlKey:t,altKey:n,metaKey:r,shiftKey:i})=>{g.current!==e||h.current||t||n||r||i||(e===Z.ENTER?(w(),d?.()):e===Z.ESC&&u())},E=()=>{w()},[D,O]=lA(t),k=Y(t,`${t}-edit-content`,{[`${t}-rtl`]:a===`rtl`,[`${t}-${f}`]:!!f},r,D,O);return v.createElement(`div`,{className:k,style:i},v.createElement(OD,{ref:m,maxLength:o,value:_,onChange:b,onKeyDown:C,onKeyUp:T,onCompositionStart:x,onCompositionEnd:S,onBlur:E,"aria-label":n,rows:1,autoSize:s}),p===null?null:ou(p,{className:`${t}-edit-content-confirm`}))},dA=(e,t)=>{let n=!1,r=r=>{r.stopPropagation(),r.preventDefault(),r.clipboardData?.clearData(),r.clipboardData?.setData(`text/plain`,e),t&&r.clipboardData?.setData(`text/html`,e),n=!0};try{return document.addEventListener(`copy`,r,{capture:!0}),document.execCommand(`copy`),n}catch{return!1}finally{document.removeEventListener(`copy`,r,{capture:!0})}},fA=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 pA(e,t){if(typeof e!=`string`)return!1;let n=t?.format===`text/html`;return!!(await fA(e,n)||dA(e,n))}var mA=({copyConfig:e,children:t})=>{let[n,r]=v.useState(!1),[i,a]=v.useState(!1),o=v.useRef(null),s=()=>{o.current&&clearTimeout(o.current)},c={};return e.format&&(c.format=e.format),v.useEffect(()=>s,[]),{copied:n,copyLoading:i,onClick:y(async n=>{n?.preventDefault(),n?.stopPropagation(),a(!0);try{await pA((typeof e.text==`function`?await e.text():e.text)||GO(t,{skipEmpty:!0}).join(``)||``,c),a(!1),r(!0),s(),o.current=setTimeout(()=>{r(!1)},3e3),e.onCopy?.(n)}catch(e){throw a(!1),e}})}};function hA(e,t){return v.useMemo(()=>{let n=!!e;return[n,{...t,...n&&typeof e==`object`?e:null}]},[e])}var gA=e=>{let t=(0,v.useRef)(void 0);return(0,v.useEffect)(()=>{t.current=e}),t.current},_A=(e,t,n)=>(0,v.useMemo)(()=>e===!0?{title:t??n}:(0,v.isValidElement)(e)?{title:e}:sc(e)?{title:t??n,...e}:{title:e},[e,t,n]),vA=v.forwardRef((e,t)=>{let{prefixCls:n,component:r=`article`,className:i,rootClassName:a,children:o,direction:s,style:c,...l}=e,{getPrefixCls:u,direction:d,className:f,style:p}=Ze(`typography`),m=s??d,h=u(`typography`,n),[g,_]=lA(h),y=Y(h,f,{[`${h}-rtl`]:m===`rtl`},i,a,g,_),b={...p,...c};return v.createElement(r,{className:y,style:b,ref:t,...l},o)}),yA={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 bA(){return bA=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},bA.apply(this,arguments)}var xA=v.forwardRef((e,t)=>v.createElement(So,bA({},e,{ref:t,icon:yA}))),SA=e=>e===!1?[!1,!1]:GO(e);function CA(e,t,n){return e===!0||e===void 0?t:e||n&&t}function wA(e){let t=document.createElement(`em`);e.appendChild(t);let n=e.getBoundingClientRect(),r=t.getBoundingClientRect();return e.removeChild(t),n.left>r.left||r.right>n.right||n.top>r.top||r.bottom>n.bottom}var TA=e=>[`string`,`number`].includes(typeof e),EA=e=>{let{prefixCls:t,copied:n,locale:r,iconOnly:i,tooltips:a,icon:o,tabIndex:s,onCopy:c,loading:l}=e,u=SA(a),d=SA(o),{copied:f,copy:p}=r??{},m=n?f:p,h=CA(u[+!!n],m),g=typeof h==`string`?h:m;return v.createElement(_x,{title:h},v.createElement(`button`,{type:`button`,className:Y(`${t}-copy`,{[`${t}-copy-success`]:n,[`${t}-copy-icon-only`]:i}),onClick:c,"aria-label":g,tabIndex:s},n?CA(d[1],v.createElement(Sb,null),!0):CA(d[0],l?v.createElement(Yu,null):v.createElement(xA,null),!0)))},DA=v.forwardRef(({style:e,children:t},n)=>{let r=v.useRef(null);return v.useImperativeHandle(n,()=>({isExceed:()=>{let e=r.current;return e.scrollHeight>e.clientHeight},getHeight:()=>r.current.clientHeight})),v.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)}),OA=e=>e.reduce((e,t)=>e+(TA(t)?String(t).length:1),0);function kA(e,t){let n=0,r=[];for(let i=0;i<e.length;i+=1){if(n===t)return r;let a=e[i],o=TA(a)?String(a).length:1,s=n+o;if(s>t){let e=t-n;return r.push(String(a).slice(0,e)),r}r.push(a),n=s}return e}var AA=0,jA=1,MA=2,NA=3,PA=4,FA={display:`-webkit-box`,overflow:`hidden`,WebkitBoxOrient:`vertical`};function IA(e){let{enableMeasure:t,width:n,text:r,children:i,rows:a,expanded:o,miscDeps:s,onEllipsis:c}=e,l=v.useMemo(()=>de(r),[r]),u=v.useMemo(()=>OA(l),[r]),d=v.useMemo(()=>i(l,!1),[r]),[f,p]=v.useState(null),m=v.useRef(null),h=v.useRef(null),g=v.useRef(null),_=v.useRef(null),y=v.useRef(null),[b,x]=v.useState(!1),[C,w]=v.useState(AA),[T,E]=v.useState(0),[D,O]=v.useState(null);S(()=>{w(t&&n&&u?jA:AA)},[n,r,a,t,l]),S(()=>{if(C===jA)w(MA),O(h.current&&getComputedStyle(h.current).whiteSpace);else if(C===MA){let e=!!g.current?.isExceed();w(e?NA:PA),p(e?[0,u]:null),x(e);let t=g.current?.getHeight()||0,n=a===1?0:_.current?.getHeight()||0,r=y.current?.getHeight()||0;E(Math.max(t,n+r)+1),c(e)}},[C]);let k=f?Math.ceil((f[0]+f[1])/2):0;S(()=>{let[e,t]=f||[0,0];if(e!==t){let n=(m.current?.getHeight()||0)>T,r=k;t-e===1&&(r=n?e:t),p(n?[e,r]:[r,t])}},[f,k]);let A=v.useMemo(()=>{if(!t)return i(l,!1);if(C!==NA||!f||f[0]!==f[1]){let e=i(l,!1);return[PA,AA].includes(C)?e:v.createElement(`span`,{style:{...FA,WebkitLineClamp:a}},e)}return i(o?l:kA(l,f[0]),b)},[o,C,f,l].concat(ze(s))),j={width:n,margin:0,padding:0,whiteSpace:D===`nowrap`?`normal`:`inherit`};return v.createElement(v.Fragment,null,A,C===MA&&v.createElement(v.Fragment,null,v.createElement(DA,{style:{...j,...FA,WebkitLineClamp:a},ref:g},d),v.createElement(DA,{style:{...j,...FA,WebkitLineClamp:a-1},ref:_},d),v.createElement(DA,{style:{...j,...FA,WebkitLineClamp:1},ref:y},i([],!0))),C===NA&&f&&f[0]!==f[1]&&v.createElement(DA,{style:{...j,top:400},ref:m},i(kA(l,k),!0)),C===jA&&v.createElement(`span`,{style:{whiteSpace:`inherit`},ref:h}))}var LA=({enableEllipsis:e,isEllipsis:t,open:n,children:r,tooltipProps:i})=>{if(!i?.title||!e)return r;let a=n&&t;return v.createElement(_x,{open:a,...i},r)};function RA({mark:e,code:t,underline:n,delete:r,strong:i,keyboard:a,italic:o},s){let c=s;function l(e,t){t&&(c=v.createElement(e,{},c))}return l(`strong`,i),l(`u`,n),l(`del`,r),l(`code`,t),l(`mark`,e),l(`kbd`,a),l(`i`,o),c}var zA=`...`,BA=[`delete`,`mark`,`code`,`underline`,`strong`,`keyboard`,`italic`],VA=v.forwardRef((e,t)=>{let{prefixCls:n,className:r,style:i,type:a,disabled:o,children:s,ellipsis:c,editable:l,copyable:u,component:d,title:f,onMouseEnter:p,onMouseLeave:m,...h}=e,{getPrefixCls:g,direction:_}=v.useContext(Je),[y]=ec(`Text`),b=v.useRef(null),x=v.useRef(null),C=g(`typography`,n),w=ue(h,BA),[E,D]=hA(l),[O,k]=T(!1,D.editing),{triggerType:A=[`icon`]}=D,j=e=>{e&&D.onStart?.(),k(e)},M=gA(O);S(()=>{!O&&M&&x.current?.focus()},[O]);let N=e=>{e?.preventDefault(),j(!0)},P=e=>{D.onChange?.(e),j(!1)},F=()=>{D.onCancel?.(),j(!1)},[L,R]=hA(u),{copied:z,copyLoading:B,onClick:V}=mA({copyConfig:R,children:s}),[H,U]=v.useState(!1),[W,ee]=v.useState(!1),[te,G]=v.useState(!1),[ne,re]=v.useState(!1),[ie,K]=v.useState(!0),[q,ae]=hA(c,{expandable:!1,symbol:e=>e?y?.collapse:y?.expand}),[oe,se]=T(ae.defaultExpanded||!1,ae.expanded),J=q&&(!oe||ae.expandable===`collapsible`),{rows:ce=1}=ae,le=v.useMemo(()=>J&&(ae.suffix!==void 0||ae.onEllipsis||ae.expandable||E||L),[J,ae,E,L]);S(()=>{q&&!le&&(U(Gh(`webkitLineClamp`)),ee(Gh(`textOverflow`)))},[le,q]);let[fe,pe]=v.useState(J),me=v.useMemo(()=>le?!1:ce===1?W:H,[le,W,H]);S(()=>{pe(me&&J)},[me,J]);let he=_A(ae.tooltip,D.text,s),ge=fe&&!!he.title,_e=J&&(fe?ge&&ne:te),ve=J&&ce===1&&fe,ye=J&&ce>1&&fe,be=(e,t)=>{se(t.expanded),ae.onExpand?.(e,t)},[xe,Se]=v.useState(0),[Ce,we]=v.useState(!1),[Te,Ee]=v.useState(!1),De=({offsetWidth:e})=>{Se(e)},Oe=e=>{G(e),te!==e&&ae.onEllipsis?.(e)};v.useEffect(()=>{let e=b.current;if(q&&ge&&e){let t=wA(e);ne!==t&&re(t)}},[q,ge,s,ye,ie,xe]),v.useEffect(()=>{let e=b.current;if(typeof IntersectionObserver>`u`||!e||!ge||!J)return;let t=new IntersectionObserver(()=>{K(!!e.offsetParent)});return t.observe(e),()=>{t.disconnect()}},[ge,J]);let ke=v.useMemo(()=>{if(!(!q||fe))return[D.text,s,f,he.title].find(TA)},[q,fe,f,he.title,_e]);if(O)return v.createElement(uA,{value:D.text??(typeof s==`string`?s:``),onSave:P,onCancel:F,onEnd:D.onEnd,prefixCls:C,className:r,style:i,direction:_,component:d,maxLength:D.maxLength,autoSize:D.autoSize,enterIcon:D.enterIcon});let Ae=()=>{let{expandable:e,symbol:t}=ae;return e?v.createElement(`button`,{type:`button`,key:`expand`,className:`${C}-${oe?`collapse`:`expand`}`,onClick:e=>be(e,{expanded:!oe}),"aria-label":oe?y.collapse:y?.expand},typeof t==`function`?t(oe):t):null},je=()=>{if(!E)return;let{icon:e,tooltip:t,tabIndex:n}=D,r=de(t)[0]||y?.edit,i=typeof r==`string`?r:``;return A.includes(`icon`)?v.createElement(_x,{key:`edit`,title:t===!1?``:r},v.createElement(`button`,{type:`button`,ref:x,className:`${C}-edit`,onClick:N,"aria-label":i,tabIndex:n},e||v.createElement(Qk,{role:`button`}))):null},Ne=()=>L?v.createElement(EA,{key:`copy`,...R,prefixCls:C,copied:z,locale:y,onCopy:V,loading:B,iconOnly:!ic(s)}):null,Pe=e=>{let t=e&&Ae(),n=je(),r=Ne();return!t&&!n&&!r?null:v.createElement(`span`,{key:`operations`,className:`${C}-actions`,onMouseEnter:()=>we(!0),onMouseLeave:()=>we(!1)},t,n,r)},Fe=e=>[e&&!oe&&v.createElement(`span`,{"aria-hidden":!0,key:`ellipsis`},zA),ae.suffix,Pe(e)];return v.createElement(Me,{onResize:De,disabled:!J},c=>v.createElement(LA,{tooltipProps:he,enableEllipsis:J,isEllipsis:_e,open:Te&&!Ce},v.createElement(vA,{onMouseEnter:e=>{Ee(!0),p?.(e)},onMouseLeave:e=>{Ee(!1),m?.(e)},className:Y({[`${C}-${a}`]:a,[`${C}-disabled`]:o,[`${C}-ellipsis`]:q,[`${C}-ellipsis-single-line`]:ve,[`${C}-ellipsis-multiple-line`]:ye,[`${C}-link`]:d===`a`},r),prefixCls:n,style:{...i,WebkitLineClamp:ye?ce:void 0},component:d,ref:I(c,b,t),direction:_,onClick:A.includes(`text`)?N:void 0,"aria-label":ke?.toString(),title:f,...w},v.createElement(IA,{enableMeasure:J&&!fe,text:s,rows:ce,width:xe,onEllipsis:Oe,expanded:oe,miscDeps:[z,oe,B,E,L,y].concat(ze(BA.map(t=>e[t])))},(t,n)=>RA(e,v.createElement(v.Fragment,null,t.length>0&&n&&!oe&&ke?v.createElement(`span`,{key:`show-content`,"aria-hidden":!0},t):t,Fe(n)))))))}),HA=v.forwardRef((e,t)=>{let{ellipsis:n,rel:r,children:i,navigate:a,...o}=e,s={...o,rel:r===void 0&&o.target===`_blank`?`noopener noreferrer`:r};return v.createElement(VA,{...s,ref:t,ellipsis:!!n,component:`a`},i)}),UA=v.forwardRef((e,t)=>{let{children:n,...r}=e;return v.createElement(VA,{ref:t,...r,component:`div`},n)}),WA=v.forwardRef((e,t)=>{let{ellipsis:n,children:r,...i}=e,a=v.useMemo(()=>sc(n)?ue(n,[`expandable`,`rows`]):n,[n]);return v.createElement(VA,{ref:t,...i,ellipsis:a,component:`span`},r)}),GA=[1,2,3,4,5],KA=v.forwardRef((e,t)=>{let{level:n=1,children:r,...i}=e,a=GA.includes(n)?`h${n}`:`h1`;return v.createElement(VA,{ref:t,...i,component:a},r)}),qA=vA;qA.Text=WA,qA.Link=HA,qA.Title=KA,qA.Paragraph=UA;var JA={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M908 640H804V488c0-4.4-3.6-8-8-8H548v-96h108c8.8 0 16-7.2 16-16V80c0-8.8-7.2-16-16-16H368c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h108v96H228c-4.4 0-8 3.6-8 8v152H116c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h288c8.8 0 16-7.2 16-16V656c0-8.8-7.2-16-16-16H292v-88h440v88H620c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h288c8.8 0 16-7.2 16-16V656c0-8.8-7.2-16-16-16zm-564 76v168H176V716h168zm84-408V140h168v168H428zm420 576H680V716h168v168z`}}]},name:`apartment`,theme:`outlined`};function YA(){return YA=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},YA.apply(this,arguments)}var XA=v.forwardRef((e,t)=>v.createElement(So,YA({},e,{ref:t,icon:JA}))),ZA={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M855 160.1l-189.2 23.5c-6.6.8-9.3 8.8-4.7 13.5l54.7 54.7-153.5 153.5a8.03 8.03 0 000 11.3l45.1 45.1c3.1 3.1 8.2 3.1 11.3 0l153.6-153.6 54.7 54.7a7.94 7.94 0 0013.5-4.7L863.9 169a7.9 7.9 0 00-8.9-8.9zM416.6 562.3a8.03 8.03 0 00-11.3 0L251.8 715.9l-54.7-54.7a7.94 7.94 0 00-13.5 4.7L160.1 855c-.6 5.2 3.7 9.5 8.9 8.9l189.2-23.5c6.6-.8 9.3-8.8 4.7-13.5l-54.7-54.7 153.6-153.6c3.1-3.1 3.1-8.2 0-11.3l-45.2-45z`}}]},name:`arrows-alt`,theme:`outlined`};function QA(){return QA=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},QA.apply(this,arguments)}var $A=v.forwardRef((e,t)=>v.createElement(So,QA({},e,{ref:t,icon:ZA}))),ej={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M464 512a48 48 0 1096 0 48 48 0 10-96 0zm200 0a48 48 0 1096 0 48 48 0 10-96 0zm-400 0a48 48 0 1096 0 48 48 0 10-96 0zm661.2-173.6c-22.6-53.7-55-101.9-96.3-143.3a444.35 444.35 0 00-143.3-96.3C630.6 75.7 572.2 64 512 64h-2c-60.6.3-119.3 12.3-174.5 35.9a445.35 445.35 0 00-142 96.5c-40.9 41.3-73 89.3-95.2 142.8-23 55.4-34.6 114.3-34.3 174.9A449.4 449.4 0 00112 714v152a46 46 0 0046 46h152.1A449.4 449.4 0 00510 960h2.1c59.9 0 118-11.6 172.7-34.3a444.48 444.48 0 00142.8-95.2c41.3-40.9 73.8-88.7 96.5-142 23.6-55.2 35.6-113.9 35.9-174.5.3-60.9-11.5-120-34.8-175.6zm-151.1 438C704 845.8 611 884 512 884h-1.7c-60.3-.3-120.2-15.3-173.1-43.5l-8.4-4.5H188V695.2l-4.5-8.4C155.3 633.9 140.3 574 140 513.7c-.4-99.7 37.7-193.3 107.6-263.8 69.8-70.5 163.1-109.5 262.8-109.9h1.7c50 0 98.5 9.7 144.2 28.9 44.6 18.7 84.6 45.6 119 80 34.3 34.3 61.3 74.4 80 119 19.4 46.2 29.1 95.2 28.9 145.8-.6 99.6-39.7 192.9-110.1 262.7z`}}]},name:`message`,theme:`outlined`};function tj(){return tj=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},tj.apply(this,arguments)}var nj=v.forwardRef((e,t)=>v.createElement(So,tj({},e,{ref:t,icon:ej}))),rj={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`defs`,attrs:{},children:[{tag:`style`,attrs:{}}]},{tag:`path`,attrs:{d:`M640.6 429.8h257.1c7.9 0 14.3-6.4 14.3-14.3V158.3c0-7.9-6.4-14.3-14.3-14.3H640.6c-7.9 0-14.3 6.4-14.3 14.3v92.9H490.6c-3.9 0-7.1 3.2-7.1 7.1v221.5h-85.7v-96.5c0-7.9-6.4-14.3-14.3-14.3H126.3c-7.9 0-14.3 6.4-14.3 14.3v257.2c0 7.9 6.4 14.3 14.3 14.3h257.1c7.9 0 14.3-6.4 14.3-14.3V544h85.7v221.5c0 3.9 3.2 7.1 7.1 7.1h135.7v92.9c0 7.9 6.4 14.3 14.3 14.3h257.1c7.9 0 14.3-6.4 14.3-14.3v-257c0-7.9-6.4-14.3-14.3-14.3h-257c-7.9 0-14.3 6.4-14.3 14.3v100h-78.6v-393h78.6v100c0 7.9 6.4 14.3 14.3 14.3zm53.5-217.9h150V362h-150V211.9zM329.9 587h-150V437h150v150zm364.2 75.1h150v150.1h-150V662.1z`}}]},name:`partition`,theme:`outlined`};function ij(){return ij=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},ij.apply(this,arguments)}var aj=v.forwardRef((e,t)=>v.createElement(So,ij({},e,{ref:t,icon:rj}))),oj={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 sj(){return sj=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},sj.apply(this,arguments)}var cj=v.forwardRef((e,t)=>v.createElement(So,sj({},e,{ref:t,icon:oj}))),lj={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M881.7 187.4l-45.1-45.1a8.03 8.03 0 00-11.3 0L667.8 299.9l-54.7-54.7a7.94 7.94 0 00-13.5 4.7L576.1 439c-.6 5.2 3.7 9.5 8.9 8.9l189.2-23.5c6.6-.8 9.3-8.8 4.7-13.5l-54.7-54.7 157.6-157.6c3-3 3-8.1-.1-11.2zM439 576.1l-189.2 23.5c-6.6.8-9.3 8.9-4.7 13.5l54.7 54.7-157.5 157.5a8.03 8.03 0 000 11.3l45.1 45.1c3.1 3.1 8.2 3.1 11.3 0l157.6-157.6 54.7 54.7a7.94 7.94 0 0013.5-4.7L447.9 585a7.9 7.9 0 00-8.9-8.9z`}}]},name:`shrink`,theme:`outlined`};function uj(){return uj=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},uj.apply(this,arguments)}var dj=v.forwardRef((e,t)=>v.createElement(So,uj({},e,{ref:t,icon:lj}))),fj={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,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:`unordered-list`,theme:`outlined`};function pj(){return pj=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},pj.apply(this,arguments)}var mj=v.forwardRef((e,t)=>v.createElement(So,pj({},e,{ref:t,icon:fj}))),hj={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M859.9 780H164.1c-4.5 0-8.1 3.6-8.1 8v60c0 4.4 3.6 8 8.1 8h695.8c4.5 0 8.1-3.6 8.1-8v-60c0-4.4-3.6-8-8.1-8zM505.7 669a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V176c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8z`}}]},name:`vertical-align-bottom`,theme:`outlined`};function gj(){return gj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gj.apply(this,arguments)}var _j=v.forwardRef((e,t)=>v.createElement(So,gj({},e,{ref:t,icon:hj}))),vj={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M859.9 474H164.1c-4.5 0-8.1 3.6-8.1 8v60c0 4.4 3.6 8 8.1 8h695.8c4.5 0 8.1-3.6 8.1-8v-60c0-4.4-3.6-8-8.1-8zm-353.6-74.7c2.9 3.7 8.5 3.7 11.3 0l100.8-127.5c3.7-4.7.4-11.7-5.7-11.7H550V104c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v156h-62.8c-6 0-9.4 7-5.7 11.7l100.8 127.6zm11.4 225.4a7.14 7.14 0 00-11.3 0L405.6 752.3a7.23 7.23 0 005.7 11.7H474v156c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V764h62.8c6 0 9.4-7 5.7-11.7L517.7 624.7z`}}]},name:`vertical-align-middle`,theme:`outlined`};function yj(){return yj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yj.apply(this,arguments)}var bj=v.forwardRef((e,t)=>v.createElement(So,yj({},e,{ref:t,icon:vj})));function xj(e){return e.anchor.type===`file`?0:e.anchor.lineNumber}function Sj(e,t){return t.filter(t=>t.filePath===e&&t.status!==`resolved`).sort((e,t)=>xj(e)-xj(t)||e.createdAt.localeCompare(t.createdAt))[0]}function Cj(e){return e.anchor.type===`diff-line`?`${e.anchor.side}:${e.anchor.lineNumber}`:null}function wj(e,t){return t===`old`?e.oldLines>0?e.oldStart+e.oldLines-1:e.oldStart-1:e.newLines>0?e.newStart+e.newLines-1:e.newStart-1}function Tj(e,t){if(!t||e.hunks.length===0)return[];let n=[],r=0,i=0;e.hunks.forEach((t,a)=>{let o=Math.max(0,t.oldStart-r-1),s=Math.max(0,t.newStart-i-1),c=e.status===`added`?`new`:e.status===`deleted`?`old`:`both`,l=c===`old`?o:c===`new`?s:Math.max(o,s);l>0&&n.push({key:`${e.path}-gap-${a}`,mode:c,hiddenCount:l,oldStart:r+1,oldEnd:t.oldStart-1,newStart:i+1,newEnd:t.newStart-1,direction:`up`,position:a}),r=wj(t,`old`),i=wj(t,`new`)});let a=Math.max(0,t.oldTotalLines-r),o=Math.max(0,t.newTotalLines-i),s=e.status===`added`?`new`:e.status===`deleted`?`old`:`both`,c=s===`old`?a:s===`new`?o:Math.max(a,o);return c>0&&n.push({key:`${e.path}-gap-tail`,mode:s,hiddenCount:c,oldStart:r+1,oldEnd:t.oldTotalLines,newStart:i+1,newEnd:t.newTotalLines,direction:`down`,position:`tail`}),n}function Ej(e,t,n){if(!e||n<=0)return[];let r=[],i=t.oldStart>0?t.oldStart:1,a=t.oldEnd>0?t.oldEnd:0,o=t.newStart>0?t.newStart:1,s=t.newEnd>0?t.newEnd:0,c=t.direction,l=c===`down`?i:Math.max(i,a-n+1),u=c===`down`?o:Math.max(o,s-n+1);for(let i=0;i<n;i+=1){let n=t.mode===`new`?void 0:l+i,a=t.mode===`old`?void 0:u+i,o=t.mode===`old`?e.oldLines[n?n-1:0]??``:t.mode===`new`?e.newLines[a?a-1:0]??``:e.oldLines[n?n-1:0]??e.newLines[a?a-1:0]??``;r.push({key:`${t.key}-${i}`,line:{type:`context`,content:o,oldLineNumber:n,newLineNumber:a}})}return r}function Dj(e,t){let n=[];e.hunks.forEach((e,r)=>{let i=t.get(r);i&&n.push({type:`gap`,key:i.key,gap:i,nextHunk:e,nextIndex:r}),n.push({type:`hunk`,key:`${e.header}-${r}`,hunk:e,index:r})});let r=t.get(`tail`);return r&&n.push({type:`gap`,key:r.key,gap:r}),n}function Oj(e){e.scrollTop=0}function kj(e,t){let n=e.getBoundingClientRect(),r=t.getBoundingClientRect();e.scrollTop+=r.top-n.top}function Aj(e){return e===`add`?`+`:e===`remove`?`-`:``}function jj(e){let t=[],n=0;for(;n<e.lines.length;){let r=e.lines[n];if(r.type===`context`){t.push({key:`${e.header}-context-${n}`,oldCell:{lineNumber:r.oldLineNumber,content:r.content,type:`context`,side:`old`},newCell:{lineNumber:r.newLineNumber,content:r.content,type:`context`,side:`new`}}),n+=1;continue}if(r.type===`remove`){let r=[],i=[];for(;n<e.lines.length&&e.lines[n].type===`remove`;)r.push(e.lines[n]),n+=1;for(;n<e.lines.length&&e.lines[n].type===`add`;)i.push(e.lines[n]),n+=1;let a=Math.max(r.length,i.length);for(let o=0;o<a;o+=1){let a=r[o],s=i[o];t.push({key:`${e.header}-change-${n}-${o}`,oldCell:a?{lineNumber:a.oldLineNumber,content:a.content,type:`remove`,side:`old`}:{content:``,type:`empty`,side:`old`},newCell:s?{lineNumber:s.newLineNumber,content:s.content,type:`add`,side:`new`}:{content:``,type:`empty`,side:`new`}})}continue}t.push({key:`${e.header}-add-${n}`,oldCell:{content:``,type:`empty`,side:`old`},newCell:{lineNumber:r.newLineNumber,content:r.content,type:`add`,side:`new`}}),n+=1}return t}function Mj(e,t,n){return e.find(e=>{if(e.mode===`new`&&t===`old`||e.mode===`old`&&t===`new`)return!1;let r=t===`old`?e.oldStart:e.newStart,i=t===`old`?e.oldEnd:e.newEnd;return n>=r&&n<=i})??null}function Nj(e){let[t,n]=v.useState(null);return v.useEffect(()=>{let t=new AbortController,r=!1;n(null);async function i(){try{let i=await fetch(`/api/diff-file-contents?path=${encodeURIComponent(e)}`,{signal:t.signal});if(!i.ok)return;let a=await i.json();r||n(a)}catch{r||n(null)}}return i(),()=>{r=!0,t.abort()}},[e]),t}function Pj({filePath:e,viewMode:t,threads:n,fileContents:r,gapDescriptors:i,expandedGapLines:a,setExpandedGapLines:o,scrollRef:s,autoScrollKeyRef:c}){v.useLayoutEffect(()=>{let a=s.current;if(!a)return;let l=`${e}:${t}`;if(c.current===l)return;let u=Sj(e,n);if(!u||u.anchor.type===`file`){Oj(a),c.current=l;return}let d=Cj(u),f=d?a.querySelector(`[data-review-anchor="${CSS.escape(d)}"]`):null;if(!f){if(!r)return;let e=u.anchor.type===`diff-line`?u.anchor.side:null,t=u.anchor.type===`diff-line`?u.anchor.lineNumber:null;if(e&&t!=null){let n=Mj(i,e,t);if(n){o(e=>({...e,[n.key]:n.hiddenCount}));return}}Oj(a),c.current=l;return}kj(a,f),c.current=l},[c,a,r,e,i,s,o,n,t])}function Fj({filePath:e,locateTarget:t,viewMode:n,fileContents:r,gapDescriptors:i,expandedGapLines:a,setExpandedGapLines:o,scrollRef:s}){v.useLayoutEffect(()=>{let n=s.current;if(!n||!t||t.anchor.filePath!==e)return;if(t.anchor.type===`file`){Oj(n);return}if(t.anchor.type!==`diff-line`)return;let{side:a,lineNumber:c}=t.anchor,l=n.querySelector(`[data-review-anchor="${CSS.escape(`${a}:${c}`)}"]`);if(l){kj(n,l);return}if(!r)return;let u=Mj(i,a,c);if(u){o(e=>({...e,[u.key]:u.hiddenCount}));return}let d=[...n.querySelectorAll(`[data-review-anchor]`)].map(e=>{let[t,n]=(e.dataset.reviewAnchor??``).split(`:`),r=Number(n);return t!==`old`&&t!==`new`||!Number.isFinite(r)?null:{node:e,side:t,lineNumber:r}}).filter(e=>!!e).filter(e=>e.side===a).sort((e,t)=>Math.abs(e.lineNumber-c)-Math.abs(t.lineNumber-c));d[0]?kj(n,d[0].node):Oj(n)},[a,r,e,i,t,s,o,n])}var Ij={composer:`_composer_hhgmh_1`},Lj=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),Q=o(((e,t)=>{t.exports=Lj()}))();function Rj({style:e,placeholder:t,onSubmit:n,submitLabel:r=`添加评论`,onCancel:i}){let[a,o]=v.useState(``),[s,c]=v.useState(!1);return(0,Q.jsxs)(`form`,{className:Ij.composer,style:e,onSubmit:e=>{e.preventDefault(),a.trim()&&(c(!0),n(a.trim()).then(()=>o(``)).finally(()=>c(!1)))},children:[(0,Q.jsx)(kD.TextArea,{placeholder:t,value:a,onChange:e=>o(e.target.value),autoSize:{minRows:3,maxRows:8}}),(0,Q.jsxs)(JE,{gap:`small`,justify:`end`,children:[(0,Q.jsx)(GC,{htmlType:`submit`,loading:s,type:`primary`,size:`small`,children:r}),i?(0,Q.jsx)(GC,{onClick:i,size:`small`,children:`取消`}):null]})]})}var zj={popover:`_popover_j0rpl_1`};function Bj({onCancel:e,onSubmit:t}){return(0,Q.jsx)(`div`,{className:zj.popover,children:(0,Q.jsx)(Rj,{placeholder:`请输入行内评论...`,submitLabel:`评论`,onSubmit:t,onCancel:e})})}var Vj={submit:`待提交`,replied:`已回复`,resolved:`已解决`};function Hj(e,t){return e.filePath===t.path&&e.fileSnapshotHash===t.snapshotHash}function Uj(e){return e.status===`resolved`?`resolved`:Wj(e)}function Wj(e){return e.comments.some(e=>e.author===`agent`)?`replied`:`submit`}function Gj(e){return e.length>0&&e.every(e=>Uj(e)===`resolved`)?`resolved`:e.some(e=>Wj(e)===`replied`)?`replied`:`submit`}var Kj={inlineThread:`_inlineThread_1qms3_1`,inlineThreadFileLevel:`_inlineThreadFileLevel_1qms3_8`,inlineThreadHeader:`_inlineThreadHeader_1qms3_8`,inlineThreadBody:`_inlineThreadBody_1qms3_11`,inlineThreadActions:`_inlineThreadActions_1qms3_15`,inlineThreadBorderless:`_inlineThreadBorderless_1qms3_18`,inlineThreadSubmit:`_inlineThreadSubmit_1qms3_30`,inlineThreadReplied:`_inlineThreadReplied_1qms3_35`,inlineThreadResolved:`_inlineThreadResolved_1qms3_40`,inlineThreadSection:`_inlineThreadSection_1qms3_52`,threadTag:`_threadTag_1qms3_58`,threadTagResolved:`_threadTagResolved_1qms3_67`,threadTagSubmit:`_threadTagSubmit_1qms3_72`,threadTagReplied:`_threadTagReplied_1qms3_77`,inlineThreadAgentLabel:`_inlineThreadAgentLabel_1qms3_82`,inlineThreadCommentItem:`_inlineThreadCommentItem_1qms3_89`,inlineThreadCommentItemAgent:`_inlineThreadCommentItemAgent_1qms3_97`,inlineThreadCommentActions:`_inlineThreadCommentActions_1qms3_105`,threadIconBtn:`_threadIconBtn_1qms3_111`,commentRow:`_commentRow_1qms3_118`,commentContent:`_commentContent_1qms3_124`,inlineThreadComposer:`_inlineThreadComposer_1qms3_135`,inlineThreadEdit:`_inlineThreadEdit_1qms3_138`,inlineThreadEditActions:`_inlineThreadEditActions_1qms3_144`,threadActionBtn:`_threadActionBtn_1qms3_157`};function qj({threads:e,onFocus:t,onPatch:n,onDeleteThread:r,onReply:i,onPatchComment:a,onCopy:o,showStatusTag:s=!0,variant:c=`default`}){let[l,u]=v.useState(null),[d,f]=v.useState(null),[p,m]=v.useState(``),h=e[0],g=Gj(e),_=Xj(e),y=_?Uj(_):g,b=y===`resolved`,x=_?.comments.at(-1),S=Zj(y,x?.author);if(!h)return null;let C=c===`fileLevel`?Kj.inlineThreadFileLevel:c===`borderless`?Kj.inlineThreadBorderless:``;return(0,Q.jsxs)(`div`,{className:[Kj.inlineThread,Jj(g),C].filter(Boolean).join(` `),onClick:()=>t(h.id),children:[(0,Q.jsx)(`div`,{className:Kj.inlineThreadHeader,children:s&&g!==`replied`?(0,Q.jsx)(Kk,{className:`${Kj.threadTag} ${Yj(g)}`,children:Vj[g]}):null}),e.map(e=>{let n=Uj(e);return(0,Q.jsx)(`div`,{className:Kj.inlineThreadSection,onClick:n=>{n.stopPropagation(),t(e.id)},children:e.comments.map(t=>{let r=t.author===`agent`,i=g===`submit`&&n===`submit`&&!r;return(0,Q.jsx)(`div`,{className:`${Kj.inlineThreadCommentItem} ${r?Kj.inlineThreadCommentItemAgent:``}`,children:(0,Q.jsxs)(`div`,{className:Kj.commentRow,children:[(0,Q.jsxs)(`div`,{className:Kj.commentContent,children:[r?(0,Q.jsx)(qA.Text,{className:Kj.inlineThreadAgentLabel,strong:!0,children:`Agent`}):null,d===t.id?(0,Q.jsxs)(`div`,{className:Kj.inlineThreadEdit,children:[(0,Q.jsx)(kD.TextArea,{value:p,autoSize:{minRows:3,maxRows:8},onClick:e=>e.stopPropagation(),onChange:e=>m(e.target.value)}),(0,Q.jsxs)(`div`,{className:Kj.inlineThreadEditActions,children:[(0,Q.jsx)(GC,{size:`small`,onClick:e=>{e.stopPropagation(),f(null),m(``)},children:`取消`}),(0,Q.jsx)(GC,{size:`small`,type:`primary`,onClick:async n=>{n.stopPropagation(),await a(e.id,t.id,p),f(null),m(``)},children:`保存`})]})]}):(0,Q.jsx)(qA.Paragraph,{className:Kj.inlineThreadBody,children:t.body})]}),i&&d!==t.id?(0,Q.jsx)(`div`,{className:Kj.inlineThreadCommentActions,children:(0,Q.jsx)(GC,{className:Kj.threadIconBtn,type:`text`,icon:(0,Q.jsx)(Qk,{}),onClick:e=>{e.stopPropagation(),f(t.id),m(t.body)}})}):null]})},t.id)})},e.id)}),_&&l===_.id?(0,Q.jsx)(`div`,{className:Kj.inlineThreadComposer,children:(0,Q.jsx)(Rj,{placeholder:`继续评论...`,submitLabel:`回复`,onCancel:()=>{u(null)},onSubmit:async e=>{await i(_.id,e),u(null)}})}):null,_?(0,Q.jsxs)(`div`,{className:Kj.inlineThreadActions,children:[S?(0,Q.jsx)(GC,{type:`primary`,className:Kj.threadActionBtn,icon:(0,Q.jsx)(xA,{}),onClick:e=>{e.stopPropagation(),o({type:`thread`,threadId:_.id})},children:`复制`}):null,y===`replied`?(0,Q.jsx)(GC,{className:Kj.threadActionBtn,icon:(0,Q.jsx)(cj,{}),onClick:e=>{e.stopPropagation(),u(_.id)},children:`要求再改`}):null,y===`replied`?null:(0,Q.jsx)(fk,{title:e.length>1?`删除这组评论?`:`删除这条评论线程?`,okText:`删除`,cancelText:`取消`,onConfirm:async()=>{for(let t of e)await r(t.id)},children:(0,Q.jsx)(GC,{className:Kj.threadActionBtn,icon:(0,Q.jsx)(Yk,{}),danger:!0,onClick:e=>e.stopPropagation(),children:`删除`})}),b?(0,Q.jsx)(GC,{className:Kj.threadActionBtn,icon:(0,Q.jsx)(hk,{}),onClick:e=>{e.stopPropagation(),n(_.id,`submit`)},children:`重新打开`}):null,y===`replied`?(0,Q.jsx)(GC,{className:Kj.threadActionBtn,icon:(0,Q.jsx)(Sb,{}),onClick:e=>{e.stopPropagation(),n(_.id,`resolved`)},children:`确认完成`}):null]}):null]})}function Jj(e){return e===`submit`?Kj.inlineThreadSubmit:e===`replied`?Kj.inlineThreadReplied:Kj.inlineThreadResolved}function Yj(e){return e===`submit`?Kj.threadTagSubmit:e===`replied`?Kj.threadTagReplied:Kj.threadTagResolved}function Xj(e){return e.find(e=>Uj(e)===`replied`)??e.find(e=>Uj(e)===`submit`)??e[0]}function Zj(e,t){return e===`submit`?!0:e===`replied`&&t===`user`}var Qj={inlineThreadStack:`_inlineThreadStack_1qhr1_1`};function $j({threads:e,onLocateThread:t,onPatchThread:n,onDeleteThread:r,onReplyThread:i,onPatchComment:a,onCopyThread:o}){return e.length===0?null:(0,Q.jsx)(`div`,{className:Qj.inlineThreadStack,children:(0,Q.jsx)(qj,{threads:e,onFocus:t,onPatch:n,onDeleteThread:r,onReply:i,onPatchComment:a,onCopy:o})})}var eM={diffRow:`_diffRow_res6f_1`,add:`_add_res6f_8`,remove:`_remove_res6f_11`,lineNo:`_lineNo_res6f_14`,lineSign:`_lineSign_res6f_24`,signAdd:`_signAdd_res6f_34`,signRemove:`_signRemove_res6f_37`,codeLine:`_codeLine_res6f_40`,commentTrigger:`_commentTrigger_res6f_49`};function tM({filePath:e,line:t,index:n,hunkKey:r,preferredSide:i,activeLine:a,setActiveLine:o,threads:s,onCreate:c,onLocateThread:l,onPatchThread:u,onDeleteThread:d,onReplyThread:f,onPatchComment:p,onCopyThread:m}){let h=i??(t.type===`remove`?`old`:`new`),g=h===`old`?t.oldLineNumber:t.newLineNumber,_=`${r}-${h}-${g}-${n}`,v=s.filter(t=>t.anchor.type===`diff-line`&&t.anchor.filePath===e&&t.anchor.side===h&&t.anchor.lineNumber===g);return(0,Q.jsxs)(`div`,{className:t.type===`add`?`${eM.diffRow} ${eM.add}`:t.type===`remove`?`${eM.diffRow} ${eM.remove}`:eM.diffRow,"data-review-anchor":`${h}:${g}`,children:[(0,Q.jsx)(`button`,{className:eM.lineNo,onClick:()=>t.oldLineNumber&&o(_),children:t.oldLineNumber??``}),(0,Q.jsx)(`button`,{className:eM.lineNo,onClick:()=>t.newLineNumber&&o(_),children:t.newLineNumber??``}),(0,Q.jsx)(`span`,{className:t.type===`add`?`${eM.lineSign} ${eM.signAdd}`:t.type===`remove`?`${eM.lineSign} ${eM.signRemove}`:eM.lineSign,children:Aj(t.type)}),(0,Q.jsx)(`pre`,{className:eM.codeLine,children:t.content||` `}),g&&v.length===0?(0,Q.jsx)(`button`,{className:eM.commentTrigger,type:`button`,"aria-label":`添加行评论`,onClick:()=>o(_),children:(0,Q.jsx)(nj,{})}):null,a===_&&g?(0,Q.jsx)(Bj,{onCancel:()=>o(null),onSubmit:async t=>{await c({type:`diff-line`,filePath:e,side:h,lineNumber:g},t),o(null)}}):null,(0,Q.jsx)($j,{threads:v,onLocateThread:l,onPatchThread:u,onDeleteThread:d,onReplyThread:f,onPatchComment:p,onCopyThread:m})]})}var nM={splitCell:`_splitCell_1mqa3_1`,add:`_add_1mqa3_11`,remove:`_remove_1mqa3_14`,emptyCell:`_emptyCell_1mqa3_17`,lineNo:`_lineNo_1mqa3_20`,lineSign:`_lineSign_1mqa3_30`,signAdd:`_signAdd_1mqa3_40`,signRemove:`_signRemove_1mqa3_43`,codeLine:`_codeLine_1mqa3_46`,commentTrigger:`_commentTrigger_1mqa3_55`};function rM({cell:e,rowKey:t,filePath:n,activeLine:r,setActiveLine:i,threads:a,onCreate:o,onLocateThread:s,onPatchThread:c,onDeleteThread:l,onReplyThread:u,onPatchComment:d,onCopyThread:f}){let p=e.lineNumber?a.filter(t=>t.anchor.type===`diff-line`&&t.anchor.filePath===n&&t.anchor.side===e.side&&t.anchor.lineNumber===e.lineNumber):[],m=`${t}-${e.side}-${e.lineNumber??`empty`}`;return(0,Q.jsxs)(`div`,{className:e.type===`add`?`${nM.splitCell} ${nM.add}`:e.type===`remove`?`${nM.splitCell} ${nM.remove}`:e.type===`empty`?`${nM.splitCell} ${nM.emptyCell}`:nM.splitCell,"data-review-anchor":e.lineNumber?`${e.side}:${e.lineNumber}`:void 0,children:[(0,Q.jsx)(`button`,{className:nM.lineNo,onClick:()=>e.lineNumber&&i(m),children:e.lineNumber??``}),(0,Q.jsx)(`span`,{className:e.type===`add`?`${nM.lineSign} ${nM.signAdd}`:e.type===`remove`?`${nM.lineSign} ${nM.signRemove}`:nM.lineSign,children:Aj(e.type)}),(0,Q.jsx)(`pre`,{className:nM.codeLine,children:e.content||` `}),e.lineNumber&&p.length===0?(0,Q.jsx)(`button`,{className:nM.commentTrigger,type:`button`,"aria-label":`添加行评论`,onClick:()=>i(m),children:(0,Q.jsx)(nj,{})}):null,r===m&&e.lineNumber?(0,Q.jsx)(Bj,{onCancel:()=>i(null),onSubmit:async t=>{await o({type:`diff-line`,filePath:n,side:e.side,lineNumber:e.lineNumber},t),i(null)}}):null,(0,Q.jsx)($j,{threads:p,onLocateThread:s,onPatchThread:c,onDeleteThread:l,onReplyThread:u,onPatchComment:d,onCopyThread:f})]})}var iM={splitRow:`_splitRow_w4xv1_1`,hunkHeader:`_hunkHeader_w4xv1_5`,hunkHeaderRail:`_hunkHeaderRail_w4xv1_11`,hunkHeaderExpand:`_hunkHeaderExpand_w4xv1_20`,hunkHeaderBody:`_hunkHeaderBody_w4xv1_43`,shell:`_shell_w4xv1_50`,sidebar:`_sidebar_w4xv1_72`,threadRail:`_threadRail_w4xv1_73`,reviewPane:`_reviewPane_w4xv1_87`,brand:`_brand_w4xv1_95`,brandMark:`_brandMark_w4xv1_101`,brandCopy:`_brandCopy_w4xv1_112`,repoName:`_repoName_w4xv1_117`,productName:`_productName_w4xv1_127`,sideCard:`_sideCard_w4xv1_131`,threadRailHeader:`_threadRailHeader_w4xv1_140`,topToolbar:`_topToolbar_w4xv1_141`,threadRailTitle:`_threadRailTitle_w4xv1_149`,viewModeSwitcher:`_viewModeSwitcher_w4xv1_158`,reviewSurface:`_reviewSurface_w4xv1_164`,threadRailBody:`_threadRailBody_w4xv1_175`,emptyStateCard:`_emptyStateCard_w4xv1_180`};function aM({headerText:e,position:t,previousGap:n,nextGap:r,getGapVisibleCount:i,getGapHiddenCount:a,onExpandGap:o,onExpandGapWithAnchor:s}){function c(){let e=n?i(n)<n.hiddenCount:!1,c=r?i(r)<r.hiddenCount:!1;if(t===`top`&&n&&e){let e=a(n),t=e<=20?`展开全部 ${e} 行隐藏上下文`:`向上展开 20 行隐藏上下文`;return(0,Q.jsx)(`button`,{className:iM.hunkHeaderExpand,type:`button`,onClick:t=>{s(n,t.currentTarget.closest(`[data-hunk-header="true"]`),{direction:e<=20?void 0:`up`,expandAll:e<=20,alignHeaderToTop:!0})},"aria-label":t,children:(0,Q.jsx)(Ox,{})})}if(t===`middle`&&n&&e){let e=a(n);if(e<=20){let t=`展开全部 ${e} 行隐藏上下文`;return(0,Q.jsx)(`button`,{className:iM.hunkHeaderExpand,type:`button`,onClick:e=>{s(n,e.currentTarget.closest(`[data-hunk-header="true"]`),{expandAll:!0,alignHeaderToTop:!0})},"aria-label":t,children:(0,Q.jsx)(bj,{})})}return(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(`button`,{className:iM.hunkHeaderExpand,type:`button`,onClick:()=>o(n,`down`),"aria-label":`向下展开 20 行隐藏上下文`,children:(0,Q.jsx)(_j,{})}),(0,Q.jsx)(`button`,{className:iM.hunkHeaderExpand,type:`button`,onClick:e=>{s(n,e.currentTarget.closest(`[data-hunk-header="true"]`),{direction:`up`,alignHeaderToTop:!0})},"aria-label":`向上展开 20 行隐藏上下文`,children:(0,Q.jsx)(Ox,{})})]})}if(t===`bottom`&&r&&c){let e=a(r);if(e<=20){let t=`展开全部 ${e} 行隐藏上下文`;return(0,Q.jsx)(`button`,{className:iM.hunkHeaderExpand,type:`button`,onClick:e=>{s(r,e.currentTarget.closest(`[data-hunk-header="true"]`),{expandAll:!0,alignHeaderToTop:!0})},"aria-label":t,children:(0,Q.jsx)(bj,{})})}return(0,Q.jsx)(`button`,{className:iM.hunkHeaderExpand,type:`button`,onClick:e=>{s(r,e.currentTarget.closest(`[data-hunk-header="true"]`),{direction:`up`,alignHeaderToTop:!0})},"aria-label":`向上展开 20 行隐藏上下文`,children:(0,Q.jsx)(Ox,{})})}return null}return(0,Q.jsxs)(`div`,{className:iM.hunkHeader,"data-hunk-header":`true`,children:[(0,Q.jsx)(`div`,{className:iM.hunkHeaderRail,children:c()}),(0,Q.jsx)(`div`,{className:iM.hunkHeaderBody,children:e})]})}function oM({gap:e,filePath:t,viewMode:n,fileContents:r,activeLine:i,setActiveLine:a,threads:o,onCreate:s,onLocateThread:c,onPatchThread:l,onDeleteThread:u,onReplyThread:d,onPatchComment:f,onCopyThread:p,getGapDirection:m,getGapVisibleCount:h,onExpandGap:g,onExpandGapAll:_,leadingHunkHeader:y}){let b=Math.min(h(e),e.hiddenCount);e.hiddenCount-b;let x=m(e),S=Ej(r,{...e,direction:x},b);return(0,Q.jsxs)(v.Fragment,{children:[y,n===`inline`?S.map(({key:n,line:r},m)=>(0,Q.jsx)(tM,{filePath:t,line:r,index:m,hunkKey:n,preferredSide:e.mode===`old`?`old`:`new`,activeLine:i,setActiveLine:a,threads:o,onCreate:s,onLocateThread:c,onPatchThread:l,onDeleteThread:u,onReplyThread:d,onPatchComment:f,onCopyThread:p},`${n}-${m}`)):S.map(({key:e,line:n})=>(0,Q.jsxs)(`div`,{className:iM.splitRow,children:[(0,Q.jsx)(rM,{cell:n.oldLineNumber?{lineNumber:n.oldLineNumber,content:n.content,type:`context`,side:`old`}:{content:``,type:`empty`,side:`old`},rowKey:e,filePath:t,activeLine:i,setActiveLine:a,threads:o,onCreate:s,onLocateThread:c,onPatchThread:l,onDeleteThread:u,onReplyThread:d,onPatchComment:f,onCopyThread:p}),(0,Q.jsx)(rM,{cell:n.newLineNumber?{lineNumber:n.newLineNumber,content:n.content,type:`context`,side:`new`}:{content:``,type:`empty`,side:`new`},rowKey:e,filePath:t,activeLine:i,setActiveLine:a,threads:o,onCreate:s,onLocateThread:c,onPatchThread:l,onDeleteThread:u,onReplyThread:d,onPatchComment:f,onCopyThread:p})]},e))]})}var sM={diffCard:`_diffCard_b316o_1`,hunk:`_hunk_b316o_7`,splitTable:`_splitTable_b316o_14`,splitRow:`_splitRow_b316o_17`};function cM({file:e,threads:t,locateTarget:n,expandAllRequest:r,onExpandedContextChange:i,onCreate:a,onLocateThread:o,onPatchThread:s,onDeleteThread:c,onReplyThread:l,onPatchComment:u,onCopyThread:d,viewMode:f}){let[p,m]=v.useState(null),[h,g]=v.useState({}),[_,y]=v.useState({}),b=Nj(e.path),x=v.useRef(null),S=v.useRef(``),C=v.useRef(``),w=v.useMemo(()=>Tj(e,b),[e,b]),T=v.useMemo(()=>{let e=new Map;return w.forEach(t=>{e.set(t.position,t)}),e},[w]),E=v.useMemo(()=>Dj(e,T),[e,T]),D=v.useMemo(()=>w.some(e=>Math.min(h[e.key]??0,e.hiddenCount)>0),[w,h]);v.useLayoutEffect(()=>{x.current&&Oj(x.current),m(null),g({}),y({}),C.current=``},[e.path]),v.useEffect(()=>{if(!r||r.filePath!==e.path)return;let t=`${r.filePath}:${r.requestId}`;if(C.current!==t){if(C.current=t,D){g({}),y({});return}g(e=>{let t={...e};return w.forEach(e=>{t[e.key]=e.hiddenCount}),t})}},[r,e.path,w,D]),v.useEffect(()=>{i(e.path,D)},[e.path,D,i]),Pj({filePath:e.path,viewMode:f,threads:t,fileContents:b,gapDescriptors:w,expandedGapLines:h,setExpandedGapLines:g,scrollRef:x,autoScrollKeyRef:S}),Fj({filePath:e.path,locateTarget:n,viewMode:f,fileContents:b,gapDescriptors:w,expandedGapLines:h,setExpandedGapLines:g,scrollRef:x});let O={onLocateThread:o,onPatchThread:s,onDeleteThread:c,onReplyThread:l,onPatchComment:u,onCopyThread:d};function k(e){return Math.min(h[e.key]??0,e.hiddenCount)}function A(e){return _[e.key]??e.direction}function j(e,t,n){let r=x.current,i=n?.alignHeaderToTop??!1;n?.expandAll?N(e,n.direction):M(e,n?.direction),!(!i||!r||!t)&&window.requestAnimationFrame(()=>{let e=r.getBoundingClientRect().top,n=t.getBoundingClientRect().top;r.scrollTop+=n-e})}function M(e,t){t&&y(n=>({...n,[e.key]:t})),g(t=>{let n=Math.min(t[e.key]??0,e.hiddenCount),r=e.hiddenCount-n,i=Math.min(20,r||e.hiddenCount);return{...t,[e.key]:Math.min(e.hiddenCount,n+i)}})}function N(e,t){t&&y(n=>({...n,[e.key]:t})),g(t=>({...t,[e.key]:e.hiddenCount}))}function P(e){return Math.max(0,e.hiddenCount-k(e))}function F(e){let t=T.get(e);return t?P(t)>0:!1}function I(e){let t=T.get(e);return t?k(t)>0&&P(t)>0&&A(t)===`up`:!1}function L(e,t){let n=T.get(t);if(!n)return e.header;let r=k(n),i=P(n);return r<=0?`${e.header} · 已隐藏 ${i} 行上下文`:`${e.header} · 已展开 ${r}/${n.hiddenCount} 行上下文`}function R(t,n){let r=T.get(n),i=n===e.hunks.length-1?T.get(`tail`):T.get(n+1),a=n===0?`top`:`middle`;return(0,Q.jsx)(aM,{headerText:L(t,n),position:a,previousGap:r,nextGap:i,getGapVisibleCount:k,getGapHiddenCount:P,onExpandGap:M,onExpandGapWithAnchor:j})}return(0,Q.jsx)(`div`,{className:sM.diffCard,ref:x,children:E.map(n=>n.type===`gap`?(0,Q.jsx)(oM,{gap:n.gap,filePath:e.path,viewMode:f,fileContents:b,activeLine:p,setActiveLine:m,threads:t,onCreate:a,onLocateThread:o,onPatchThread:s,onDeleteThread:c,onReplyThread:l,onPatchComment:u,onCopyThread:d,getGapDirection:A,getGapVisibleCount:k,onExpandGap:M,onExpandGapAll:N,leadingHunkHeader:n.nextHunk&&n.nextIndex!=null&&I(n.nextIndex)?R(n.nextHunk,n.nextIndex):null},n.key):(0,Q.jsx)(`div`,{className:sM.hunk,children:(()=>{let r=F(n.index),i=I(n.index);return(0,Q.jsxs)(Q.Fragment,{children:[r&&!i?R(n.hunk,n.index):null,f===`inline`?n.hunk.lines.map((r,i)=>(0,Q.jsx)(tM,{filePath:e.path,line:r,index:i,hunkKey:n.key,activeLine:p,setActiveLine:m,threads:t,onCreate:a,...O},`${n.key}-${i}`)):(0,Q.jsx)(`div`,{className:sM.splitTable,children:jj(n.hunk).map(n=>(0,Q.jsxs)(`div`,{className:sM.splitRow,children:[(0,Q.jsx)(rM,{cell:n.oldCell,rowKey:n.key,filePath:e.path,activeLine:p,setActiveLine:m,threads:t,onCreate:a,...O}),(0,Q.jsx)(rM,{cell:n.newCell,rowKey:n.key,filePath:e.path,activeLine:p,setActiveLine:m,threads:t,onCreate:a,...O})]},n.key))})]})})()},n.key))})}var lM={fileRailHeader:`_fileRailHeader_wfmc7_1`,fileRailModeSwitcher:`_fileRailModeSwitcher_wfmc7_8`,fileList:`_fileList_wfmc7_15`,fileItem:`_fileItem_wfmc7_21`,fileItemActive:`_fileItemActive_wfmc7_31`,lineItemActive:`_lineItemActive_wfmc7_35`,fileTree:`_fileTree_wfmc7_39`,fileTreeDirectory:`_fileTreeDirectory_wfmc7_42`,fileTreeChevron:`_fileTreeChevron_wfmc7_59`,fileTreeFolderIcon:`_fileTreeFolderIcon_wfmc7_65`,fileIcon:`_fileIcon_wfmc7_70`,fileTreeDirectoryName:`_fileTreeDirectoryName_wfmc7_73`,fileMeta:`_fileMeta_wfmc7_81`,fileName:`_fileName_wfmc7_91`,fileStats:`_fileStats_wfmc7_100`,fileStatAdd:`_fileStatAdd_wfmc7_103`,fileStatDelete:`_fileStatDelete_wfmc7_107`,fileThreadCount:`_fileThreadCount_wfmc7_111`},uM=36,dM=18,fM=18;function pM(e,t,n){if(e.length<=t)return e;let r=Math.min(n,t-4),i=t-r-3;return`${e.slice(0,i)}...${e.slice(-r)}`}function mM(e){let t={name:``,path:``,isDirectory:!0,children:[]};e.forEach(e=>{let n=e.path.split(`/`).filter(Boolean),r=t;n.forEach((t,i)=>{let a=i===n.length-1,o=n.slice(0,i+1).join(`/`);r.children??=[];let s=r.children.find(e=>e.name===t);s||(s={name:t,path:o,isDirectory:!a,children:a?void 0:[],file:a?e:void 0},r.children.push(s)),r=s})});let n=e=>{if(!e.isDirectory||!e.children)return e;let t=e.children.map(n);if(e.name&&t.length===1&&t[0]?.isDirectory&&t[0].children){let n=t[0];return{...e,name:`${e.name}/${n.name}`,path:n.path,children:n.children}}return{...e,children:t}};return n(t)}function hM(e){return!e.isDirectory||!e.children?[]:[...e.path?[e.path]:[],...e.children.flatMap(e=>hM(e))]}function gM(e,t){return e.file?t.get(e.file.path)??0:e.children?.reduce((e,n)=>e+gM(n,t),0)??0}function _M({files:e,threads:t,selectedPath:n,onSelectFile:r}){let[i,a]=v.useState(`list`),[o,s]=v.useState(()=>new Set),c=v.useMemo(()=>mM(e),[e]),l=v.useMemo(()=>{let n=new Map;return e.forEach(e=>{n.set(e.path,t.filter(t=>Hj(t,e)&&t.status!==`resolved`).length)}),n},[e,t]);v.useEffect(()=>{s(new Set(hM(c)))},[c]);function u(e){s(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n})}function d(e,t=e.path,i=!1){let a=e.path===n,o=l.get(e.path)??0,s=[lM.fileItem,a&&i?lM.fileItemActive:``,a&&!i?lM.lineItemActive:``].filter(Boolean).join(` `);return(0,Q.jsx)(WO.Item,{className:s,onClick:()=>r(e.path),children:(0,Q.jsxs)(`div`,{className:lM.fileMeta,children:[i?(0,Q.jsx)(Dk,{className:lM.fileIcon}):null,(0,Q.jsx)(_x,{title:i?void 0:e.path,children:(0,Q.jsx)(qA.Text,{strong:!0,className:lM.fileName,title:e.path,children:i?t:pM(e.path,uM,dM)})}),(0,Q.jsxs)(qA.Text,{className:lM.fileStats,type:`secondary`,children:[(0,Q.jsxs)(`span`,{className:lM.fileStatAdd,children:[`+`,e.additions]}),` / `,(0,Q.jsxs)(`span`,{className:lM.fileStatDelete,children:[`-`,e.deletions]})]}),o>0?(0,Q.jsx)(Kk,{className:lM.fileThreadCount,icon:(0,Q.jsx)(nj,{}),children:o}):null]})})}function f(e,t=0){if(e.file)return(0,Q.jsx)(`div`,{style:{paddingLeft:t*fM},children:d(e.file,e.name,!0)},e.file.path);if(!e.children?.length)return null;if(!e.path)return e.children.map(e=>f(e,t));let n=o.has(e.path),r=gM(e,l);return(0,Q.jsxs)(`div`,{children:[(0,Q.jsxs)(`button`,{type:`button`,className:lM.fileTreeDirectory,style:{paddingLeft:t*fM+8},onClick:()=>u(e.path),children:[n?(0,Q.jsx)(Tb,{className:lM.fileTreeChevron}):(0,Q.jsx)(qf,{className:lM.fileTreeChevron}),n?(0,Q.jsx)(Ak,{className:lM.fileTreeFolderIcon}):(0,Q.jsx)(Nk,{className:lM.fileTreeFolderIcon}),(0,Q.jsx)(qA.Text,{strong:!0,className:lM.fileTreeDirectoryName,title:e.path,children:e.name}),r>0?(0,Q.jsx)(Kk,{className:lM.fileThreadCount,icon:(0,Q.jsx)(nj,{}),children:r}):null]}),n?e.children.map(e=>f(e,t+1)):null]},e.path)}return(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsxs)(`div`,{className:lM.fileRailHeader,children:[(0,Q.jsx)(qA.Text,{strong:!0,children:`文件列表`}),(0,Q.jsx)(sE,{className:lM.fileRailModeSwitcher,size:`small`,options:[{value:`list`,icon:(0,Q.jsx)(mj,{})},{value:`tree`,icon:(0,Q.jsx)(XA,{})}],value:i,onChange:e=>a(e)})]}),i===`list`?(0,Q.jsx)(WO,{className:lM.fileList,dataSource:e,renderItem:e=>d(e)}):(0,Q.jsx)(`div`,{className:`${lM.fileList} ${lM.fileTree}`,role:`tree`,children:f(c)})]})}var vM={fileHeader:`_fileHeader_yun72_1`,headerTop:`_headerTop_yun72_9`,filePathBlock:`_filePathBlock_yun72_15`,filePathText:`_filePathText_yun72_21`,fileExpandBtn:`_fileExpandBtn_yun72_25`,filePathCopyBtn:`_filePathCopyBtn_yun72_33`,headerActions:`_headerActions_yun72_40`,headerAction:`_headerAction_yun72_40`,threadCount:`_threadCount_yun72_52`,fileLevelInlineThreads:`_fileLevelInlineThreads_yun72_55`};function yM({file:e,threads:t,showToggleAllLines:n,hasExpandedContext:r,onCreate:i,onCopy:a,onToggleAllLines:o,onLocateThread:s,onPatchThread:c,onDeleteThread:l,onReplyThread:u,onPatchComment:d,onCopyThread:f}){let[p,m]=v.useState(!1),[h,g]=ak.useMessage(),_=r?`隐藏当前文件未改动行`:`展开当前文件所有未改动行`,y=r?`隐藏当前文件未改动行`:`展开当前文件所有未改动行`,b=t.filter(t=>t.filePath===e.path&&t.status!==`resolved`),x=t.filter(t=>t.filePath===e.path&&t.anchor.type===`file`);async function S(){await navigator.clipboard.writeText(e.path),h.success(`完整文件路径已复制到剪贴板`)}return(0,Q.jsxs)(zT,{className:vM.fileHeader,children:[g,(0,Q.jsxs)(`div`,{className:vM.headerTop,children:[(0,Q.jsxs)(`div`,{className:vM.filePathBlock,children:[n?(0,Q.jsx)(_x,{title:_,children:(0,Q.jsx)(GC,{className:vM.fileExpandBtn,type:`text`,icon:r?(0,Q.jsx)(dj,{}):(0,Q.jsx)($A,{}),"aria-label":y,onClick:()=>o(e.path)})}):null,(0,Q.jsx)(qA.Text,{strong:!0,className:vM.filePathText,children:e.path}),(0,Q.jsx)(GC,{className:vM.filePathCopyBtn,type:`text`,icon:(0,Q.jsx)(xA,{}),"aria-label":`复制完整文件路径`,onClick:()=>void S()})]}),(0,Q.jsxs)(`div`,{className:vM.headerActions,children:[(0,Q.jsx)(GC,{disabled:b.length===0,type:`primary`,className:vM.headerAction,icon:(0,Q.jsx)(xA,{}),onClick:()=>void a({type:`file-unresolved`,filePath:e.path}),children:`批量提交当前文件的review`}),(0,Q.jsx)(GC,{className:vM.headerAction,icon:(0,Q.jsx)(nj,{}),type:p?`primary`:`default`,onClick:()=>m(e=>!e),children:`文件级评论`})]})]}),p?(0,Q.jsx)(Rj,{style:{marginTop:16},placeholder:`请输入文件级审查评论...`,onSubmit:async t=>{await i({type:`file`,filePath:e.path},t),m(!1)},onCancel:()=>m(!1)}):null,b.length>0?(0,Q.jsxs)(Kk,{className:vM.threadCount,color:`gold`,children:[b.length,` 个评论线程`]}):null,x.length>0?(0,Q.jsx)(`div`,{className:vM.fileLevelInlineThreads,children:(0,Q.jsx)(qj,{threads:x,variant:`fileLevel`,onFocus:s,onPatch:c,onDeleteThread:l,onReply:u,onPatchComment:d,onCopy:f})}):null]})}function bM(e,t){let n=t||{};return(e[e.length-1]===``?[...e,``]:e).join((n.padRight?` `:``)+`,`+(n.padLeft===!1?``:` `)).trim()}var xM=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,SM=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,CM={};function wM(e,t){return((t||CM).jsx?SM:xM).test(e)}var TM=/[ \t\n\f\r]/g;function EM(e){return typeof e==`object`?e.type===`text`?DM(e.value):!1:DM(e)}function DM(e){return e.replace(TM,``)===``}var OM=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};OM.prototype.normal={},OM.prototype.property={},OM.prototype.space=void 0;function kM(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new OM(n,r,t)}function AM(e){return e.toLowerCase()}var jM=class{constructor(e,t){this.attribute=t,this.property=e}};jM.prototype.attribute=``,jM.prototype.booleanish=!1,jM.prototype.boolean=!1,jM.prototype.commaOrSpaceSeparated=!1,jM.prototype.commaSeparated=!1,jM.prototype.defined=!1,jM.prototype.mustUseProperty=!1,jM.prototype.number=!1,jM.prototype.overloadedBoolean=!1,jM.prototype.property=``,jM.prototype.spaceSeparated=!1,jM.prototype.space=void 0;var MM=s({boolean:()=>PM,booleanish:()=>FM,commaOrSpaceSeparated:()=>zM,commaSeparated:()=>RM,number:()=>$,overloadedBoolean:()=>IM,spaceSeparated:()=>LM}),NM=0,PM=BM(),FM=BM(),IM=BM(),$=BM(),LM=BM(),RM=BM(),zM=BM();function BM(){return 2**++NM}var VM=Object.keys(MM),HM=class extends jM{constructor(e,t,n,r){let i=-1;if(super(e,t),UM(this,`space`,r),typeof n==`number`)for(;++i<VM.length;){let e=VM[i];UM(this,VM[i],(n&MM[e])===MM[e])}}};HM.prototype.defined=!0;function UM(e,t,n){n&&(e[t]=n)}function WM(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let a=new HM(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[AM(r)]=r,n[AM(a.attribute)]=r}return new OM(t,n,e.space)}var GM=WM({properties:{ariaActiveDescendant:null,ariaAtomic:FM,ariaAutoComplete:null,ariaBusy:FM,ariaChecked:FM,ariaColCount:$,ariaColIndex:$,ariaColSpan:$,ariaControls:LM,ariaCurrent:null,ariaDescribedBy:LM,ariaDetails:null,ariaDisabled:FM,ariaDropEffect:LM,ariaErrorMessage:null,ariaExpanded:FM,ariaFlowTo:LM,ariaGrabbed:FM,ariaHasPopup:null,ariaHidden:FM,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:LM,ariaLevel:$,ariaLive:null,ariaModal:FM,ariaMultiLine:FM,ariaMultiSelectable:FM,ariaOrientation:null,ariaOwns:LM,ariaPlaceholder:null,ariaPosInSet:$,ariaPressed:FM,ariaReadOnly:FM,ariaRelevant:null,ariaRequired:FM,ariaRoleDescription:LM,ariaRowCount:$,ariaRowIndex:$,ariaRowSpan:$,ariaSelected:FM,ariaSetSize:$,ariaSort:null,ariaValueMax:$,ariaValueMin:$,ariaValueNow:$,ariaValueText:null,role:null},transform(e,t){return t===`role`?t:`aria-`+t.slice(4).toLowerCase()}});function KM(e,t){return t in e?e[t]:t}function qM(e,t){return KM(e,t.toLowerCase())}var JM=WM({attributes:{acceptcharset:`accept-charset`,classname:`class`,htmlfor:`for`,httpequiv:`http-equiv`},mustUseProperty:[`checked`,`multiple`,`muted`,`selected`],properties:{abbr:null,accept:RM,acceptCharset:LM,accessKey:LM,action:null,allow:null,allowFullScreen:PM,allowPaymentRequest:PM,allowUserMedia:PM,alt:null,as:null,async:PM,autoCapitalize:null,autoComplete:LM,autoFocus:PM,autoPlay:PM,blocking:LM,capture:null,charSet:null,checked:PM,cite:null,className:LM,cols:$,colSpan:null,content:null,contentEditable:FM,controls:PM,controlsList:LM,coords:$|RM,crossOrigin:null,data:null,dateTime:null,decoding:null,default:PM,defer:PM,dir:null,dirName:null,disabled:PM,download:IM,draggable:FM,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:PM,formTarget:null,headers:LM,height:$,hidden:IM,high:$,href:null,hrefLang:null,htmlFor:LM,httpEquiv:LM,id:null,imageSizes:null,imageSrcSet:null,inert:PM,inputMode:null,integrity:null,is:null,isMap:PM,itemId:null,itemProp:LM,itemRef:LM,itemScope:PM,itemType:LM,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:PM,low:$,manifest:null,max:null,maxLength:$,media:null,method:null,min:null,minLength:$,multiple:PM,muted:PM,name:null,nonce:null,noModule:PM,noValidate:PM,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:PM,optimum:$,pattern:null,ping:LM,placeholder:null,playsInline:PM,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:PM,referrerPolicy:null,rel:LM,required:PM,reversed:PM,rows:$,rowSpan:$,sandbox:LM,scope:null,scoped:PM,seamless:PM,selected:PM,shadowRootClonable:PM,shadowRootDelegatesFocus:PM,shadowRootMode:null,shape:null,size:$,sizes:null,slot:null,span:$,spellCheck:FM,src:null,srcDoc:null,srcLang:null,srcSet:null,start:$,step:null,style:null,tabIndex:$,target:null,title:null,translate:null,type:null,typeMustMatch:PM,useMap:null,value:FM,width:$,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:LM,axis:null,background:null,bgColor:null,border:$,borderColor:null,bottomMargin:$,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:PM,declare:PM,event:null,face:null,frame:null,frameBorder:null,hSpace:$,leftMargin:$,link:null,longDesc:null,lowSrc:null,marginHeight:$,marginWidth:$,noResize:PM,noHref:PM,noShade:PM,noWrap:PM,object:null,profile:null,prompt:null,rev:null,rightMargin:$,rules:null,scheme:null,scrolling:FM,standby:null,summary:null,text:null,topMargin:$,valueType:null,version:null,vAlign:null,vLink:null,vSpace:$,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:PM,disableRemotePlayback:PM,prefix:null,property:null,results:$,security:null,unselectable:null},space:`html`,transform:qM}),YM=WM({attributes:{accentHeight:`accent-height`,alignmentBaseline:`alignment-baseline`,arabicForm:`arabic-form`,baselineShift:`baseline-shift`,capHeight:`cap-height`,className:`class`,clipPath:`clip-path`,clipRule:`clip-rule`,colorInterpolation:`color-interpolation`,colorInterpolationFilters:`color-interpolation-filters`,colorProfile:`color-profile`,colorRendering:`color-rendering`,crossOrigin:`crossorigin`,dataType:`datatype`,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`,hrefLang:`hreflang`,horizAdvX:`horiz-adv-x`,horizOriginX:`horiz-origin-x`,horizOriginY:`horiz-origin-y`,imageRendering:`image-rendering`,letterSpacing:`letter-spacing`,lightingColor:`lighting-color`,markerEnd:`marker-end`,markerMid:`marker-mid`,markerStart:`marker-start`,navDown:`nav-down`,navDownLeft:`nav-down-left`,navDownRight:`nav-down-right`,navLeft:`nav-left`,navNext:`nav-next`,navPrev:`nav-prev`,navRight:`nav-right`,navUp:`nav-up`,navUpLeft:`nav-up-left`,navUpRight:`nav-up-right`,onAbort:`onabort`,onActivate:`onactivate`,onAfterPrint:`onafterprint`,onBeforePrint:`onbeforeprint`,onBegin:`onbegin`,onCancel:`oncancel`,onCanPlay:`oncanplay`,onCanPlayThrough:`oncanplaythrough`,onChange:`onchange`,onClick:`onclick`,onClose:`onclose`,onCopy:`oncopy`,onCueChange:`oncuechange`,onCut:`oncut`,onDblClick:`ondblclick`,onDrag:`ondrag`,onDragEnd:`ondragend`,onDragEnter:`ondragenter`,onDragExit:`ondragexit`,onDragLeave:`ondragleave`,onDragOver:`ondragover`,onDragStart:`ondragstart`,onDrop:`ondrop`,onDurationChange:`ondurationchange`,onEmptied:`onemptied`,onEnd:`onend`,onEnded:`onended`,onError:`onerror`,onFocus:`onfocus`,onFocusIn:`onfocusin`,onFocusOut:`onfocusout`,onHashChange:`onhashchange`,onInput:`oninput`,onInvalid:`oninvalid`,onKeyDown:`onkeydown`,onKeyPress:`onkeypress`,onKeyUp:`onkeyup`,onLoad:`onload`,onLoadedData:`onloadeddata`,onLoadedMetadata:`onloadedmetadata`,onLoadStart:`onloadstart`,onMessage:`onmessage`,onMouseDown:`onmousedown`,onMouseEnter:`onmouseenter`,onMouseLeave:`onmouseleave`,onMouseMove:`onmousemove`,onMouseOut:`onmouseout`,onMouseOver:`onmouseover`,onMouseUp:`onmouseup`,onMouseWheel:`onmousewheel`,onOffline:`onoffline`,onOnline:`ononline`,onPageHide:`onpagehide`,onPageShow:`onpageshow`,onPaste:`onpaste`,onPause:`onpause`,onPlay:`onplay`,onPlaying:`onplaying`,onPopState:`onpopstate`,onProgress:`onprogress`,onRateChange:`onratechange`,onRepeat:`onrepeat`,onReset:`onreset`,onResize:`onresize`,onScroll:`onscroll`,onSeeked:`onseeked`,onSeeking:`onseeking`,onSelect:`onselect`,onShow:`onshow`,onStalled:`onstalled`,onStorage:`onstorage`,onSubmit:`onsubmit`,onSuspend:`onsuspend`,onTimeUpdate:`ontimeupdate`,onToggle:`ontoggle`,onUnload:`onunload`,onVolumeChange:`onvolumechange`,onWaiting:`onwaiting`,onZoom:`onzoom`,overlinePosition:`overline-position`,overlineThickness:`overline-thickness`,paintOrder:`paint-order`,panose1:`panose-1`,pointerEvents:`pointer-events`,referrerPolicy:`referrerpolicy`,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`,tabIndex:`tabindex`,textAnchor:`text-anchor`,textDecoration:`text-decoration`,textRendering:`text-rendering`,transformOrigin:`transform-origin`,typeOf:`typeof`,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`,xHeight:`x-height`,playbackOrder:`playbackorder`,timelineBegin:`timelinebegin`},properties:{about:zM,accentHeight:$,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:$,amplitude:$,arabicForm:null,ascent:$,attributeName:null,attributeType:null,azimuth:$,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:$,by:null,calcMode:null,capHeight:$,className:LM,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:$,diffuseConstant:$,direction:null,display:null,dur:null,divisor:$,dominantBaseline:null,download:PM,dx:null,dy:null,edgeMode:null,editable:null,elevation:$,enableBackground:null,end:null,event:null,exponent:$,externalResourcesRequired:null,fill:null,fillOpacity:$,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:RM,g2:RM,glyphName:RM,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:$,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:$,horizOriginX:$,horizOriginY:$,id:null,ideographic:$,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:$,k:$,k1:$,k2:$,k3:$,k4:$,kernelMatrix:zM,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:$,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:$,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:$,overlineThickness:$,paintOrder:null,panose1:null,path:null,pathLength:$,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:LM,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:$,pointsAtY:$,pointsAtZ:$,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:zM,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:zM,rev:zM,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:zM,requiredFeatures:zM,requiredFonts:zM,requiredFormats:zM,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:$,specularExponent:$,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:$,strikethroughThickness:$,string:null,stroke:null,strokeDashArray:zM,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:$,strokeOpacity:$,strokeWidth:null,style:null,surfaceScale:$,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:zM,tabIndex:$,tableValues:null,target:null,targetX:$,targetY:$,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:zM,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:$,underlineThickness:$,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:$,values:null,vAlphabetic:$,vMathematical:$,vectorEffect:null,vHanging:$,vIdeographic:$,version:null,vertAdvY:$,vertOriginX:$,vertOriginY:$,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:$,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:`svg`,transform:KM}),XM=WM({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:`xlink`,transform(e,t){return`xlink:`+t.slice(5).toLowerCase()}}),ZM=WM({attributes:{xmlnsxlink:`xmlns:xlink`},properties:{xmlnsXLink:null,xmlns:null},space:`xmlns`,transform:qM}),QM=WM({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:`xml`,transform(e,t){return`xml:`+t.slice(3).toLowerCase()}}),$M={classId:`classID`,dataType:`datatype`,itemId:`itemID`,strokeDashArray:`strokeDasharray`,strokeDashOffset:`strokeDashoffset`,strokeLineCap:`strokeLinecap`,strokeLineJoin:`strokeLinejoin`,strokeMiterLimit:`strokeMiterlimit`,typeOf:`typeof`,xLinkActuate:`xlinkActuate`,xLinkArcRole:`xlinkArcrole`,xLinkHref:`xlinkHref`,xLinkRole:`xlinkRole`,xLinkShow:`xlinkShow`,xLinkTitle:`xlinkTitle`,xLinkType:`xlinkType`,xmlnsXLink:`xmlnsXlink`},eN=/[A-Z]/g,tN=/-[a-z]/g,nN=/^data[-\w.:]+$/i;function rN(e,t){let n=AM(t),r=t,i=jM;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)===`data`&&nN.test(t)){if(t.charAt(4)===`-`){let e=t.slice(5).replace(tN,aN);r=`data`+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!tN.test(e)){let n=e.replace(eN,iN);n.charAt(0)!==`-`&&(n=`-`+n),t=`data`+n}}i=HM}return new i(r,t)}function iN(e){return`-`+e.toLowerCase()}function aN(e){return e.charAt(1).toUpperCase()}var oN=kM([GM,JM,XM,ZM,QM],`html`),sN=kM([GM,YM,XM,ZM,QM],`svg`);function cN(e){return e.join(` `).trim()}var lN=o(((e,t)=>{var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,i=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,l=/^\s+|\s+$/g,u=`
259
+ `,d=`/`,f=`*`,p=``,m=`comment`,h=`declaration`;function g(e,t){if(typeof e!=`string`)throw TypeError(`First argument must be a string`);if(!e)return[];t||={};var l=1,g=1;function v(e){var t=e.match(r);t&&(l+=t.length);var n=e.lastIndexOf(u);g=~n?e.length-n:g+e.length}function y(){var e={line:l,column:g};return function(t){return t.position=new b(e),C(),t}}function b(e){this.start=e,this.end={line:l,column:g},this.source=t.source}b.prototype.content=e;function x(n){var r=Error(t.source+`:`+l+`:`+g+`: `+n);if(r.reason=n,r.filename=t.source,r.line=l,r.column=g,r.source=e,!t.silent)throw r}function S(t){var n=t.exec(e);if(n){var r=n[0];return v(r),e=e.slice(r.length),n}}function C(){S(i)}function w(e){var t;for(e||=[];t=T();)t!==!1&&e.push(t);return e}function T(){var t=y();if(!(d!=e.charAt(0)||f!=e.charAt(1))){for(var n=2;p!=e.charAt(n)&&(f!=e.charAt(n)||d!=e.charAt(n+1));)++n;if(n+=2,p===e.charAt(n-1))return x(`End of comment missing`);var r=e.slice(2,n-2);return g+=2,v(r),e=e.slice(n),g+=2,t({type:m,comment:r})}}function E(){var e=y(),t=S(a);if(t){if(T(),!S(o))return x(`property missing ':'`);var r=S(s),i=e({type:h,property:_(t[0].replace(n,p)),value:r?_(r[0].replace(n,p)):p});return S(c),i}}function D(){var e=[];w(e);for(var t;t=E();)t!==!1&&(e.push(t),w(e));return e}return C(),D()}function _(e){return e?e.replace(l,p):p}t.exports=g})),uN=o((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.default=r;var n=t(lN());function r(e,t){let r=null;if(!e||typeof e!=`string`)return r;let i=(0,n.default)(e),a=typeof t==`function`;return i.forEach(e=>{if(e.type!==`declaration`)return;let{property:n,value:i}=e;a?t(n,i,e):i&&(r||={},r[n]=i)}),r}})),dN=o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.camelCase=void 0;var t=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,r=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,o=function(e){return!e||r.test(e)||t.test(e)},s=function(e,t){return t.toUpperCase()},c=function(e,t){return`${t}-`};e.camelCase=function(e,t){return t===void 0&&(t={}),o(e)?e:(e=e.toLowerCase(),e=t.reactCompat?e.replace(a,c):e.replace(i,c),e.replace(n,s))}})),fN=o(((e,t)=>{var n=(e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(uN()),r=dN();function i(e,t){var i={};return!e||typeof e!=`string`||(0,n.default)(e,function(e,n){e&&n&&(i[(0,r.camelCase)(e,t)]=n)}),i}i.default=i,t.exports=i})),pN=hN(`end`),mN=hN(`start`);function hN(e){return t;function t(t){let n=t&&t.position&&t.position[e]||{};if(typeof n.line==`number`&&n.line>0&&typeof n.column==`number`&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset==`number`&&n.offset>-1?n.offset:void 0}}}function gN(e){let t=mN(e),n=pN(e);if(t&&n)return{start:t,end:n}}function _N(e){return!e||typeof e!=`object`?``:`position`in e||`type`in e?yN(e.position):`start`in e||`end`in e?yN(e):`line`in e||`column`in e?vN(e):``}function vN(e){return bN(e&&e.line)+`:`+bN(e&&e.column)}function yN(e){return vN(e&&e.start)+`-`+vN(e&&e.end)}function bN(e){return e&&typeof e==`number`?e:1}var xN=class extends Error{constructor(e,t,n){super(),typeof t==`string`&&(n=t,t=void 0);let r=``,i={},a=!1;if(t&&(i=`line`in t&&`column`in t||`start`in t&&`end`in t?{place:t}:`type`in t?{ancestors:[t],place:t.position}:{...t}),typeof e==`string`?r=e:!i.cause&&e&&(a=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&typeof n==`string`){let e=n.indexOf(`:`);e===-1?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){let e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}let o=i.place&&`start`in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file=``,this.message=r,this.line=o?o.line:void 0,this.name=_N(i.place)||`1:1`,this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=a&&i.cause&&typeof i.cause.stack==`string`?i.cause.stack:``,this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}};xN.prototype.file=``,xN.prototype.name=``,xN.prototype.reason=``,xN.prototype.message=``,xN.prototype.stack=``,xN.prototype.column=void 0,xN.prototype.line=void 0,xN.prototype.ancestors=void 0,xN.prototype.cause=void 0,xN.prototype.fatal=void 0,xN.prototype.place=void 0,xN.prototype.ruleId=void 0,xN.prototype.source=void 0;var SN=l(fN(),1),CN={}.hasOwnProperty,wN=new Map,TN=/[A-Z]/g,EN=new Set([`table`,`tbody`,`thead`,`tfoot`,`tr`]),DN=new Set([`td`,`th`]),ON=`https://github.com/syntax-tree/hast-util-to-jsx-runtime`;function kN(e,t){if(!t||t.Fragment===void 0)throw TypeError("Expected `Fragment` in options");let n=t.filePath||void 0,r;if(t.development){if(typeof t.jsxDEV!=`function`)throw TypeError("Expected `jsxDEV` in options when `development: true`");r=BN(n,t.jsxDEV)}else{if(typeof t.jsx!=`function`)throw TypeError("Expected `jsx` in production options");if(typeof t.jsxs!=`function`)throw TypeError("Expected `jsxs` in production options");r=zN(n,t.jsx,t.jsxs)}let i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||`react`,evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space===`svg`?sN:oN,stylePropertyNameCase:t.stylePropertyNameCase||`dom`,tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=AN(i,e,void 0);return a&&typeof a!=`string`?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function AN(e,t,n){if(t.type===`element`)return jN(e,t,n);if(t.type===`mdxFlowExpression`||t.type===`mdxTextExpression`)return MN(e,t);if(t.type===`mdxJsxFlowElement`||t.type===`mdxJsxTextElement`)return PN(e,t,n);if(t.type===`mdxjsEsm`)return NN(e,t);if(t.type===`root`)return FN(e,t,n);if(t.type===`text`)return IN(e,t)}function jN(e,t,n){let r=e.schema,i=r;t.tagName.toLowerCase()===`svg`&&r.space===`html`&&(i=sN,e.schema=i),e.ancestors.push(t);let a=KN(e,t.tagName,!1),o=VN(e,t),s=UN(e,t);return EN.has(t.tagName)&&(s=s.filter(function(e){return typeof e==`string`?!EM(e):!0})),LN(e,o,a,t),RN(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function MN(e,t){if(t.data&&t.data.estree&&e.evaluater){let n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}qN(e,t.position)}function NN(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);qN(e,t.position)}function PN(e,t,n){let r=e.schema,i=r;t.name===`svg`&&r.space===`html`&&(i=sN,e.schema=i),e.ancestors.push(t);let a=t.name===null?e.Fragment:KN(e,t.name,!0),o=HN(e,t),s=UN(e,t);return LN(e,o,a,t),RN(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function FN(e,t,n){let r={};return RN(r,UN(e,t)),e.create(t,e.Fragment,r,n)}function IN(e,t){return t.value}function LN(e,t,n,r){typeof n!=`string`&&n!==e.Fragment&&e.passNode&&(t.node=r)}function RN(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function zN(e,t,n){return r;function r(e,r,i,a){let o=Array.isArray(i.children)?n:t;return a?o(r,i,a):o(r,i)}}function BN(e,t){return n;function n(n,r,i,a){let o=Array.isArray(i.children),s=mN(n);return t(r,i,a,o,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function VN(e,t){let n={},r,i;for(i in t.properties)if(i!==`children`&&CN.call(t.properties,i)){let a=WN(e,i,t.properties[i]);if(a){let[i,o]=a;e.tableCellAlignToStyle&&i===`align`&&typeof o==`string`&&DN.has(t.tagName)?r=o:n[i]=o}}if(r){let t=n.style||={};t[e.stylePropertyNameCase===`css`?`text-align`:`textAlign`]=r}return n}function HN(e,t){let n={};for(let r of t.attributes)if(r.type===`mdxJsxExpressionAttribute`)if(r.data&&r.data.estree&&e.evaluater){let t=r.data.estree.body[0];t.type;let i=t.expression;i.type;let a=i.properties[0];a.type,Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else qN(e,t.position);else{let i=r.name,a;if(r.value&&typeof r.value==`object`)if(r.value.data&&r.value.data.estree&&e.evaluater){let t=r.value.data.estree.body[0];t.type,a=e.evaluater.evaluateExpression(t.expression)}else qN(e,t.position);else a=r.value===null?!0:r.value;n[i]=a}return n}function UN(e,t){let n=[],r=-1,i=e.passKeys?new Map:wN;for(;++r<t.children.length;){let a=t.children[r],o;if(e.passKeys){let e=a.type===`element`?a.tagName:a.type===`mdxJsxFlowElement`||a.type===`mdxJsxTextElement`?a.name:void 0;if(e){let t=i.get(e)||0;o=e+`-`+t,i.set(e,t+1)}}let s=AN(e,a,o);s!==void 0&&n.push(s)}return n}function WN(e,t,n){let r=rN(e.schema,t);if(!(n==null||typeof n==`number`&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?bM(n):cN(n)),r.property===`style`){let t=typeof n==`object`?n:GN(e,String(n));return e.stylePropertyNameCase===`css`&&(t=JN(t)),[`style`,t]}return[e.elementAttributeNameCase===`react`&&r.space?$M[r.property]||r.property:r.attribute,n]}}function GN(e,t){try{return(0,SN.default)(t,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};let n=t,r=new xN("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:`style`,source:`hast-util-to-jsx-runtime`});throw r.file=e.filePath||void 0,r.url=ON+`#cannot-parse-style-attribute`,r}}function KN(e,t,n){let r;if(!n)r={type:`Literal`,value:t};else if(t.includes(`.`)){let e=t.split(`.`),n=-1,i;for(;++n<e.length;){let t=wM(e[n])?{type:`Identifier`,name:e[n]}:{type:`Literal`,value:e[n]};i=i?{type:`MemberExpression`,object:i,property:t,computed:!!(n&&t.type===`Literal`),optional:!1}:t}r=i}else r=wM(t)&&!/^[a-z]/.test(t)?{type:`Identifier`,name:t}:{type:`Literal`,value:t};if(r.type===`Literal`){let t=r.value;return CN.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);qN(e)}function qN(e,t){let n=new xN("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:`mdx-estree`,source:`hast-util-to-jsx-runtime`});throw n.file=e.filePath||void 0,n.url=ON+`#cannot-handle-mdx-estrees-without-createevaluater`,n}function JN(e){let t={},n;for(n in e)CN.call(e,n)&&(t[YN(n)]=e[n]);return t}function YN(e){let t=e.replace(TN,XN);return t.slice(0,3)===`ms-`&&(t=`-`+t),t}function XN(e){return`-`+e.toLowerCase()}var ZN={action:[`form`],cite:[`blockquote`,`del`,`ins`,`q`],data:[`object`],formAction:[`button`,`input`],href:[`a`,`area`,`base`,`link`],icon:[`menuitem`],itemId:null,manifest:[`html`],ping:[`a`,`area`],poster:[`video`],src:[`audio`,`embed`,`iframe`,`img`,`input`,`script`,`source`,`track`,`video`]},QN={};function $N(e,t){let n=t||QN;return eP(e,typeof n.includeImageAlt==`boolean`?n.includeImageAlt:!0,typeof n.includeHtml==`boolean`?n.includeHtml:!0)}function eP(e,t,n){if(nP(e)){if(`value`in e)return e.type===`html`&&!n?``:e.value;if(t&&`alt`in e&&e.alt)return e.alt;if(`children`in e)return tP(e.children,t,n)}return Array.isArray(e)?tP(e,t,n):``}function tP(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=eP(e[i],t,n);return r.join(``)}function nP(e){return!!(e&&typeof e==`object`)}var rP=document.createElement(`i`);function iP(e){let t=`&`+e+`;`;rP.innerHTML=t;let n=rP.textContent;return n.charCodeAt(n.length-1)===59&&e!==`semi`||n===t?!1:n}function aP(e,t,n,r){let i=e.length,a=0,o;if(t=t<0?-t>i?0:i+t:t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a<r.length;)o=r.slice(a,a+1e4),o.unshift(t,0),e.splice(...o),a+=1e4,t+=1e4}function oP(e,t){return e.length>0?(aP(e,e.length,0,t),e):t}var sP={}.hasOwnProperty;function cP(e){let t={},n=-1;for(;++n<e.length;)lP(t,e[n]);return t}function lP(e,t){let n;for(n in t){let r=(sP.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n],a;if(i)for(a in i){sP.call(r,a)||(r[a]=[]);let e=i[a];uP(r[a],Array.isArray(e)?e:e?[e]:[])}}}function uP(e,t){let n=-1,r=[];for(;++n<t.length;)(t[n].add===`after`?e:r).push(t[n]);aP(e,0,0,r)}function dP(e,t){let n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)==65535||(n&65535)==65534||n>1114111?`�`:String.fromCodePoint(n)}function fP(e){return e.replace(/[\t\n\r ]+/g,` `).replace(/^ | $/g,``).toLowerCase().toUpperCase()}var pP=TP(/[A-Za-z]/),mP=TP(/[\dA-Za-z]/),hP=TP(/[#-'*+\--9=?A-Z^-~]/);function gP(e){return e!==null&&(e<32||e===127)}var _P=TP(/\d/),vP=TP(/[\dA-Fa-f]/),yP=TP(/[!-/:-@[-`{-~]/);function bP(e){return e!==null&&e<-2}function xP(e){return e!==null&&(e<0||e===32)}function SP(e){return e===-2||e===-1||e===32}var CP=TP(/\p{P}|\p{S}/u),wP=TP(/\s/);function TP(e){return t;function t(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function EP(e){let t=[],n=-1,r=0,i=0;for(;++n<e.length;){let a=e.charCodeAt(n),o=``;if(a===37&&mP(e.charCodeAt(n+1))&&mP(e.charCodeAt(n+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(o=String.fromCharCode(a));else if(a>55295&&a<57344){let t=e.charCodeAt(n+1);a<56320&&t>56319&&t<57344?(o=String.fromCharCode(a,t),i=1):o=`�`}else o=String.fromCharCode(a);o&&=(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,``),i&&=(n+=i,0)}return t.join(``)+e.slice(r)}function DP(e,t,n,r){let i=r?r-1:1/0,a=0;return o;function o(r){return SP(r)?(e.enter(n),s(r)):t(r)}function s(r){return SP(r)&&a++<i?(e.consume(r),s):(e.exit(n),t(r))}}var OP={tokenize:kP};function kP(e){let t=e.attempt(this.parser.constructs.contentInitial,r,i),n;return t;function r(n){if(n===null){e.consume(n);return}return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),DP(e,t,`linePrefix`)}function i(t){return e.enter(`paragraph`),a(t)}function a(t){let r=e.enter(`chunkText`,{contentType:`text`,previous:n});return n&&(n.next=r),n=r,o(t)}function o(t){if(t===null){e.exit(`chunkText`),e.exit(`paragraph`),e.consume(t);return}return bP(t)?(e.consume(t),e.exit(`chunkText`),a):(e.consume(t),o)}}var AP={tokenize:MP},jP={tokenize:NP};function MP(e){let t=this,n=[],r=0,i,a,o;return s;function s(i){if(r<n.length){let a=n[r];return t.containerState=a[1],e.attempt(a[0].continuation,c,l)(i)}return l(i)}function c(e){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&v();let n=t.events.length,a=n,o;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===`chunkFlow`){o=t.events[a][1].end;break}_(r);let s=n;for(;s<t.events.length;)t.events[s][1].end={...o},s++;return aP(t.events,a+1,0,t.events.slice(n)),t.events.length=s,l(e)}return s(e)}function l(a){if(r===n.length){if(!i)return f(a);if(i.currentConstruct&&i.currentConstruct.concrete)return m(a);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(jP,u,d)(a)}function u(e){return i&&v(),_(r),f(e)}function d(e){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,m(e)}function f(n){return t.containerState={},e.attempt(jP,p,m)(n)}function p(e){return r++,n.push([t.currentConstruct,t.containerState]),f(e)}function m(n){if(n===null){i&&v(),_(0),e.consume(n);return}return i||=t.parser.flow(t.now()),e.enter(`chunkFlow`,{_tokenizer:i,contentType:`flow`,previous:a}),h(n)}function h(n){if(n===null){g(e.exit(`chunkFlow`),!0),_(0),e.consume(n);return}return bP(n)?(e.consume(n),g(e.exit(`chunkFlow`)),r=0,t.interrupt=void 0,s):(e.consume(n),h)}function g(e,n){let s=t.sliceStream(e);if(n&&s.push(null),e.previous=a,a&&(a.next=e),a=e,i.defineSkip(e.start),i.write(s),t.parser.lazy[e.start.line]){let e=i.events.length;for(;e--;)if(i.events[e][1].start.offset<o&&(!i.events[e][1].end||i.events[e][1].end.offset>o))return;let n=t.events.length,a=n,s,c;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===`chunkFlow`){if(s){c=t.events[a][1].end;break}s=!0}for(_(r),e=n;e<t.events.length;)t.events[e][1].end={...c},e++;aP(t.events,a+1,0,t.events.slice(n)),t.events.length=e}}function _(r){let i=n.length;for(;i-- >r;){let r=n[i];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function v(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function NP(e,t,n){return DP(e,e.attempt(this.parser.constructs.document,t,n),`linePrefix`,this.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)}function PP(e){if(e===null||xP(e)||wP(e))return 1;if(CP(e))return 2}function FP(e,t,n){let r=[],i=-1;for(;++i<e.length;){let a=e[i].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}var IP={name:`attention`,resolveAll:LP,tokenize:RP};function LP(e,t){let n=-1,r,i,a,o,s,c,l,u;for(;++n<e.length;)if(e[n][0]===`enter`&&e[n][1].type===`attentionSequence`&&e[n][1]._close){for(r=n;r--;)if(e[r][0]===`exit`&&e[r][1].type===`attentionSequence`&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;c=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;let d={...e[r][1].end},f={...e[n][1].start};zP(d,-c),zP(f,c),o={type:c>1?`strongSequence`:`emphasisSequence`,start:d,end:{...e[r][1].end}},s={type:c>1?`strongSequence`:`emphasisSequence`,start:{...e[n][1].start},end:f},a={type:c>1?`strongText`:`emphasisText`,start:{...e[r][1].end},end:{...e[n][1].start}},i={type:c>1?`strong`:`emphasis`,start:{...o.start},end:{...s.end}},e[r][1].end={...o.start},e[n][1].start={...s.end},l=[],e[r][1].end.offset-e[r][1].start.offset&&(l=oP(l,[[`enter`,e[r][1],t],[`exit`,e[r][1],t]])),l=oP(l,[[`enter`,i,t],[`enter`,o,t],[`exit`,o,t],[`enter`,a,t]]),l=oP(l,FP(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),l=oP(l,[[`exit`,a,t],[`enter`,s,t],[`exit`,s,t],[`exit`,i,t]]),e[n][1].end.offset-e[n][1].start.offset?(u=2,l=oP(l,[[`enter`,e[n][1],t],[`exit`,e[n][1],t]])):u=0,aP(e,r-1,n-r+3,l),n=r+l.length-u-2;break}}for(n=-1;++n<e.length;)e[n][1].type===`attentionSequence`&&(e[n][1].type=`data`);return e}function RP(e,t){let n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=PP(r),a;return o;function o(t){return a=t,e.enter(`attentionSequence`),s(t)}function s(o){if(o===a)return e.consume(o),s;let c=e.exit(`attentionSequence`),l=PP(o),u=!l||l===2&&i||n.includes(o),d=!i||i===2&&l||n.includes(r);return c._open=!!(a===42?u:u&&(i||!d)),c._close=!!(a===42?d:d&&(l||!u)),t(o)}}function zP(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}var BP={name:`autolink`,tokenize:VP};function VP(e,t,n){let r=0;return i;function i(t){return e.enter(`autolink`),e.enter(`autolinkMarker`),e.consume(t),e.exit(`autolinkMarker`),e.enter(`autolinkProtocol`),a}function a(t){return pP(t)?(e.consume(t),o):t===64?n(t):l(t)}function o(e){return e===43||e===45||e===46||mP(e)?(r=1,s(e)):l(e)}function s(t){return t===58?(e.consume(t),r=0,c):(t===43||t===45||t===46||mP(t))&&r++<32?(e.consume(t),s):(r=0,l(t))}function c(r){return r===62?(e.exit(`autolinkProtocol`),e.enter(`autolinkMarker`),e.consume(r),e.exit(`autolinkMarker`),e.exit(`autolink`),t):r===null||r===32||r===60||gP(r)?n(r):(e.consume(r),c)}function l(t){return t===64?(e.consume(t),u):hP(t)?(e.consume(t),l):n(t)}function u(e){return mP(e)?d(e):n(e)}function d(n){return n===46?(e.consume(n),r=0,u):n===62?(e.exit(`autolinkProtocol`).type=`autolinkEmail`,e.enter(`autolinkMarker`),e.consume(n),e.exit(`autolinkMarker`),e.exit(`autolink`),t):f(n)}function f(t){if((t===45||mP(t))&&r++<63){let n=t===45?f:d;return e.consume(t),n}return n(t)}}var HP={partial:!0,tokenize:UP};function UP(e,t,n){return r;function r(t){return SP(t)?DP(e,i,`linePrefix`)(t):i(t)}function i(e){return e===null||bP(e)?t(e):n(e)}}var WP={continuation:{tokenize:KP},exit:qP,name:`blockQuote`,tokenize:GP};function GP(e,t,n){let r=this;return i;function i(t){if(t===62){let n=r.containerState;return n.open||=(e.enter(`blockQuote`,{_container:!0}),!0),e.enter(`blockQuotePrefix`),e.enter(`blockQuoteMarker`),e.consume(t),e.exit(`blockQuoteMarker`),a}return n(t)}function a(n){return SP(n)?(e.enter(`blockQuotePrefixWhitespace`),e.consume(n),e.exit(`blockQuotePrefixWhitespace`),e.exit(`blockQuotePrefix`),t):(e.exit(`blockQuotePrefix`),t(n))}}function KP(e,t,n){let r=this;return i;function i(t){return SP(t)?DP(e,a,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):a(t)}function a(r){return e.attempt(WP,t,n)(r)}}function qP(e){e.exit(`blockQuote`)}var JP={name:`characterEscape`,tokenize:YP};function YP(e,t,n){return r;function r(t){return e.enter(`characterEscape`),e.enter(`escapeMarker`),e.consume(t),e.exit(`escapeMarker`),i}function i(r){return yP(r)?(e.enter(`characterEscapeValue`),e.consume(r),e.exit(`characterEscapeValue`),e.exit(`characterEscape`),t):n(r)}}var XP={name:`characterReference`,tokenize:ZP};function ZP(e,t,n){let r=this,i=0,a,o;return s;function s(t){return e.enter(`characterReference`),e.enter(`characterReferenceMarker`),e.consume(t),e.exit(`characterReferenceMarker`),c}function c(t){return t===35?(e.enter(`characterReferenceMarkerNumeric`),e.consume(t),e.exit(`characterReferenceMarkerNumeric`),l):(e.enter(`characterReferenceValue`),a=31,o=mP,u(t))}function l(t){return t===88||t===120?(e.enter(`characterReferenceMarkerHexadecimal`),e.consume(t),e.exit(`characterReferenceMarkerHexadecimal`),e.enter(`characterReferenceValue`),a=6,o=vP,u):(e.enter(`characterReferenceValue`),a=7,o=_P,u(t))}function u(s){if(s===59&&i){let i=e.exit(`characterReferenceValue`);return o===mP&&!iP(r.sliceSerialize(i))?n(s):(e.enter(`characterReferenceMarker`),e.consume(s),e.exit(`characterReferenceMarker`),e.exit(`characterReference`),t)}return o(s)&&i++<a?(e.consume(s),u):n(s)}}var QP={partial:!0,tokenize:tF},$P={concrete:!0,name:`codeFenced`,tokenize:eF};function eF(e,t,n){let r=this,i={partial:!0,tokenize:x},a=0,o=0,s;return c;function c(e){return l(e)}function l(t){let n=r.events[r.events.length-1];return a=n&&n[1].type===`linePrefix`?n[2].sliceSerialize(n[1],!0).length:0,s=t,e.enter(`codeFenced`),e.enter(`codeFencedFence`),e.enter(`codeFencedFenceSequence`),u(t)}function u(t){return t===s?(o++,e.consume(t),u):o<3?n(t):(e.exit(`codeFencedFenceSequence`),SP(t)?DP(e,d,`whitespace`)(t):d(t))}function d(n){return n===null||bP(n)?(e.exit(`codeFencedFence`),r.interrupt?t(n):e.check(QP,h,b)(n)):(e.enter(`codeFencedFenceInfo`),e.enter(`chunkString`,{contentType:`string`}),f(n))}function f(t){return t===null||bP(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),d(t)):SP(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),DP(e,p,`whitespace`)(t)):t===96&&t===s?n(t):(e.consume(t),f)}function p(t){return t===null||bP(t)?d(t):(e.enter(`codeFencedFenceMeta`),e.enter(`chunkString`,{contentType:`string`}),m(t))}function m(t){return t===null||bP(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceMeta`),d(t)):t===96&&t===s?n(t):(e.consume(t),m)}function h(t){return e.attempt(i,b,g)(t)}function g(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),_}function _(t){return a>0&&SP(t)?DP(e,v,`linePrefix`,a+1)(t):v(t)}function v(t){return t===null||bP(t)?e.check(QP,h,b)(t):(e.enter(`codeFlowValue`),y(t))}function y(t){return t===null||bP(t)?(e.exit(`codeFlowValue`),v(t)):(e.consume(t),y)}function b(n){return e.exit(`codeFenced`),t(n)}function x(e,t,n){let i=0;return a;function a(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),c}function c(t){return e.enter(`codeFencedFence`),SP(t)?DP(e,l,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):l(t)}function l(t){return t===s?(e.enter(`codeFencedFenceSequence`),u(t)):n(t)}function u(t){return t===s?(i++,e.consume(t),u):i>=o?(e.exit(`codeFencedFenceSequence`),SP(t)?DP(e,d,`whitespace`)(t):d(t)):n(t)}function d(r){return r===null||bP(r)?(e.exit(`codeFencedFence`),t(r)):n(r)}}}function tF(e,t,n){let r=this;return i;function i(t){return t===null?n(t):(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),a)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}var nF={name:`codeIndented`,tokenize:iF},rF={partial:!0,tokenize:aF};function iF(e,t,n){let r=this;return i;function i(t){return e.enter(`codeIndented`),DP(e,a,`linePrefix`,5)(t)}function a(e){let t=r.events[r.events.length-1];return t&&t[1].type===`linePrefix`&&t[2].sliceSerialize(t[1],!0).length>=4?o(e):n(e)}function o(t){return t===null?c(t):bP(t)?e.attempt(rF,o,c)(t):(e.enter(`codeFlowValue`),s(t))}function s(t){return t===null||bP(t)?(e.exit(`codeFlowValue`),o(t)):(e.consume(t),s)}function c(n){return e.exit(`codeIndented`),t(n)}}function aF(e,t,n){let r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):bP(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),i):DP(e,a,`linePrefix`,5)(t)}function a(e){let a=r.events[r.events.length-1];return a&&a[1].type===`linePrefix`&&a[2].sliceSerialize(a[1],!0).length>=4?t(e):bP(e)?i(e):n(e)}}var oF={name:`codeText`,previous:cF,resolve:sF,tokenize:lF};function sF(e){let t=e.length-4,n=3,r,i;if((e[n][1].type===`lineEnding`||e[n][1].type===`space`)&&(e[t][1].type===`lineEnding`||e[t][1].type===`space`)){for(r=n;++r<t;)if(e[r][1].type===`codeTextData`){e[n][1].type=`codeTextPadding`,e[t][1].type=`codeTextPadding`,n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!==`lineEnding`&&(i=r):(r===t||e[r][1].type===`lineEnding`)&&(e[i][1].type=`codeTextData`,r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function cF(e){return e!==96||this.events[this.events.length-1][1].type===`characterEscape`}function lF(e,t,n){let r=0,i,a;return o;function o(t){return e.enter(`codeText`),e.enter(`codeTextSequence`),s(t)}function s(t){return t===96?(e.consume(t),r++,s):(e.exit(`codeTextSequence`),c(t))}function c(t){return t===null?n(t):t===32?(e.enter(`space`),e.consume(t),e.exit(`space`),c):t===96?(a=e.enter(`codeTextSequence`),i=0,u(t)):bP(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),c):(e.enter(`codeTextData`),l(t))}function l(t){return t===null||t===32||t===96||bP(t)?(e.exit(`codeTextData`),c(t)):(e.consume(t),l)}function u(n){return n===96?(e.consume(n),i++,u):i===r?(e.exit(`codeTextSequence`),e.exit(`codeText`),t(n)):(a.type=`codeTextData`,l(n))}}var uF=class{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){let n=t??1/0;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){let r=t||0;this.setCursor(Math.trunc(e));let i=this.right.splice(this.right.length-r,1/0);return n&&dF(this.left,n),i.reverse()}pop(){return this.setCursor(1/0),this.left.pop()}push(e){this.setCursor(1/0),this.left.push(e)}pushMany(e){this.setCursor(1/0),dF(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),dF(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&this.right.length===0||e<0&&this.left.length===0))if(e<this.left.length){let t=this.left.splice(e,1/0);dF(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,1/0);dF(this.left,t.reverse())}}};function dF(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function fF(e){let t={},n=-1,r,i,a,o,s,c,l,u=new uF(e);for(;++n<u.length;){for(;n in t;)n=t[n];if(r=u.get(n),n&&r[1].type===`chunkFlow`&&u.get(n-1)[1].type===`listItemPrefix`&&(c=r[1]._tokenizer.events,a=0,a<c.length&&c[a][1].type===`lineEndingBlank`&&(a+=2),a<c.length&&c[a][1].type===`content`))for(;++a<c.length&&c[a][1].type!==`content`;)c[a][1].type===`chunkText`&&(c[a][1]._isInFirstContentOfListItem=!0,a++);if(r[0]===`enter`)r[1].contentType&&(Object.assign(t,pF(u,n)),n=t[n],l=!0);else if(r[1]._container){for(a=n,i=void 0;a--;)if(o=u.get(a),o[1].type===`lineEnding`||o[1].type===`lineEndingBlank`)o[0]===`enter`&&(i&&(u.get(i)[1].type=`lineEndingBlank`),o[1].type=`lineEnding`,i=a);else if(!(o[1].type===`linePrefix`||o[1].type===`listItemIndent`))break;i&&(r[1].end={...u.get(i)[1].start},s=u.slice(i,n),s.unshift(r),u.splice(i,n-i+1,s))}}return aP(e,0,1/0,u.slice(0)),!l}function pF(e,t){let n=e.get(t)[1],r=e.get(t)[2],i=t-1,a=[],o=n._tokenizer;o||(o=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));let s=o.events,c=[],l={},u,d,f=-1,p=n,m=0,h=0,g=[h];for(;p;){for(;e.get(++i)[1]!==p;);a.push(i),p._tokenizer||(u=r.sliceStream(p),p.next||u.push(null),d&&o.defineSkip(p.start),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(u),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),d=p,p=p.next}for(p=n;++f<s.length;)s[f][0]===`exit`&&s[f-1][0]===`enter`&&s[f][1].type===s[f-1][1].type&&s[f][1].start.line!==s[f][1].end.line&&(h=f+1,g.push(h),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(o.events=[],p?(p._tokenizer=void 0,p.previous=void 0):g.pop(),f=g.length;f--;){let t=s.slice(g[f],g[f+1]),n=a.pop();c.push([n,n+t.length-1]),e.splice(n,2,t)}for(c.reverse(),f=-1;++f<c.length;)l[m+c[f][0]]=m+c[f][1],m+=c[f][1]-c[f][0]-1;return l}var mF={resolve:gF,tokenize:_F},hF={partial:!0,tokenize:vF};function gF(e){return fF(e),e}function _F(e,t){let n;return r;function r(t){return e.enter(`content`),n=e.enter(`chunkContent`,{contentType:`content`}),i(t)}function i(t){return t===null?a(t):bP(t)?e.check(hF,o,a)(t):(e.consume(t),i)}function a(n){return e.exit(`chunkContent`),e.exit(`content`),t(n)}function o(t){return e.consume(t),e.exit(`chunkContent`),n.next=e.enter(`chunkContent`,{contentType:`content`,previous:n}),n=n.next,i}}function vF(e,t,n){let r=this;return i;function i(t){return e.exit(`chunkContent`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),DP(e,a,`linePrefix`)}function a(i){if(i===null||bP(i))return n(i);let a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes(`codeIndented`)&&a&&a[1].type===`linePrefix`&&a[2].sliceSerialize(a[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}function yF(e,t,n,r,i,a,o,s,c){let l=c||1/0,u=0;return d;function d(t){return t===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(t),e.exit(a),f):t===null||t===32||t===41||gP(t)?n(t):(e.enter(r),e.enter(o),e.enter(s),e.enter(`chunkString`,{contentType:`string`}),h(t))}function f(n){return n===62?(e.enter(a),e.consume(n),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(s),e.enter(`chunkString`,{contentType:`string`}),p(n))}function p(t){return t===62?(e.exit(`chunkString`),e.exit(s),f(t)):t===null||t===60||bP(t)?n(t):(e.consume(t),t===92?m:p)}function m(t){return t===60||t===62||t===92?(e.consume(t),p):p(t)}function h(i){return!u&&(i===null||i===41||xP(i))?(e.exit(`chunkString`),e.exit(s),e.exit(o),e.exit(r),t(i)):u<l&&i===40?(e.consume(i),u++,h):i===41?(e.consume(i),u--,h):i===null||i===32||i===40||gP(i)?n(i):(e.consume(i),i===92?g:h)}function g(t){return t===40||t===41||t===92?(e.consume(t),h):h(t)}}function bF(e,t,n,r,i,a){let o=this,s=0,c;return l;function l(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(a),u}function u(l){return s>999||l===null||l===91||l===93&&!c||l===94&&!s&&`_hiddenFootnoteSupport`in o.parser.constructs?n(l):l===93?(e.exit(a),e.enter(i),e.consume(l),e.exit(i),e.exit(r),t):bP(l)?(e.enter(`lineEnding`),e.consume(l),e.exit(`lineEnding`),u):(e.enter(`chunkString`,{contentType:`string`}),d(l))}function d(t){return t===null||t===91||t===93||bP(t)||s++>999?(e.exit(`chunkString`),u(t)):(e.consume(t),c||=!SP(t),t===92?f:d)}function f(t){return t===91||t===92||t===93?(e.consume(t),s++,d):d(t)}}function xF(e,t,n,r,i,a){let o;return s;function s(t){return t===34||t===39||t===40?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),o=t===40?41:t,c):n(t)}function c(n){return n===o?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(a),l(n))}function l(t){return t===o?(e.exit(a),c(o)):t===null?n(t):bP(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),DP(e,l,`linePrefix`)):(e.enter(`chunkString`,{contentType:`string`}),u(t))}function u(t){return t===o||t===null||bP(t)?(e.exit(`chunkString`),l(t)):(e.consume(t),t===92?d:u)}function d(t){return t===o||t===92?(e.consume(t),u):u(t)}}function SF(e,t){let n;return r;function r(i){return bP(i)?(e.enter(`lineEnding`),e.consume(i),e.exit(`lineEnding`),n=!0,r):SP(i)?DP(e,r,n?`linePrefix`:`lineSuffix`)(i):t(i)}}var CF={name:`definition`,tokenize:TF},wF={partial:!0,tokenize:EF};function TF(e,t,n){let r=this,i;return a;function a(t){return e.enter(`definition`),o(t)}function o(t){return bF.call(r,e,s,n,`definitionLabel`,`definitionLabelMarker`,`definitionLabelString`)(t)}function s(t){return i=fP(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),t===58?(e.enter(`definitionMarker`),e.consume(t),e.exit(`definitionMarker`),c):n(t)}function c(t){return xP(t)?SF(e,l)(t):l(t)}function l(t){return yF(e,u,n,`definitionDestination`,`definitionDestinationLiteral`,`definitionDestinationLiteralMarker`,`definitionDestinationRaw`,`definitionDestinationString`)(t)}function u(t){return e.attempt(wF,d,d)(t)}function d(t){return SP(t)?DP(e,f,`whitespace`)(t):f(t)}function f(a){return a===null||bP(a)?(e.exit(`definition`),r.parser.defined.push(i),t(a)):n(a)}}function EF(e,t,n){return r;function r(t){return xP(t)?SF(e,i)(t):n(t)}function i(t){return xF(e,a,n,`definitionTitle`,`definitionTitleMarker`,`definitionTitleString`)(t)}function a(t){return SP(t)?DP(e,o,`whitespace`)(t):o(t)}function o(e){return e===null||bP(e)?t(e):n(e)}}var DF={name:`hardBreakEscape`,tokenize:OF};function OF(e,t,n){return r;function r(t){return e.enter(`hardBreakEscape`),e.consume(t),i}function i(r){return bP(r)?(e.exit(`hardBreakEscape`),t(r)):n(r)}}var kF={name:`headingAtx`,resolve:AF,tokenize:jF};function AF(e,t){let n=e.length-2,r=3,i,a;return e[r][1].type===`whitespace`&&(r+=2),n-2>r&&e[n][1].type===`whitespace`&&(n-=2),e[n][1].type===`atxHeadingSequence`&&(r===n-1||n-4>r&&e[n-2][1].type===`whitespace`)&&(n-=r+1===n?2:4),n>r&&(i={type:`atxHeadingText`,start:e[r][1].start,end:e[n][1].end},a={type:`chunkText`,start:e[r][1].start,end:e[n][1].end,contentType:`text`},aP(e,r,n-r+1,[[`enter`,i,t],[`enter`,a,t],[`exit`,a,t],[`exit`,i,t]])),e}function jF(e,t,n){let r=0;return i;function i(t){return e.enter(`atxHeading`),a(t)}function a(t){return e.enter(`atxHeadingSequence`),o(t)}function o(t){return t===35&&r++<6?(e.consume(t),o):t===null||xP(t)?(e.exit(`atxHeadingSequence`),s(t)):n(t)}function s(n){return n===35?(e.enter(`atxHeadingSequence`),c(n)):n===null||bP(n)?(e.exit(`atxHeading`),t(n)):SP(n)?DP(e,s,`whitespace`)(n):(e.enter(`atxHeadingText`),l(n))}function c(t){return t===35?(e.consume(t),c):(e.exit(`atxHeadingSequence`),s(t))}function l(t){return t===null||t===35||xP(t)?(e.exit(`atxHeadingText`),s(t)):(e.consume(t),l)}}var MF=`address.article.aside.base.basefont.blockquote.body.caption.center.col.colgroup.dd.details.dialog.dir.div.dl.dt.fieldset.figcaption.figure.footer.form.frame.frameset.h1.h2.h3.h4.h5.h6.head.header.hr.html.iframe.legend.li.link.main.menu.menuitem.nav.noframes.ol.optgroup.option.p.param.search.section.summary.table.tbody.td.tfoot.th.thead.title.tr.track.ul`.split(`.`),NF=[`pre`,`script`,`style`,`textarea`],PF={concrete:!0,name:`htmlFlow`,resolveTo:LF,tokenize:RF},FF={partial:!0,tokenize:BF},IF={partial:!0,tokenize:zF};function LF(e){let t=e.length;for(;t--&&!(e[t][0]===`enter`&&e[t][1].type===`htmlFlow`););return t>1&&e[t-2][1].type===`linePrefix`&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function RF(e,t,n){let r=this,i,a,o,s,c;return l;function l(e){return u(e)}function u(t){return e.enter(`htmlFlow`),e.enter(`htmlFlowData`),e.consume(t),d}function d(s){return s===33?(e.consume(s),f):s===47?(e.consume(s),a=!0,h):s===63?(e.consume(s),i=3,r.interrupt?t:I):pP(s)?(e.consume(s),o=String.fromCharCode(s),g):n(s)}function f(a){return a===45?(e.consume(a),i=2,p):a===91?(e.consume(a),i=5,s=0,m):pP(a)?(e.consume(a),i=4,r.interrupt?t:I):n(a)}function p(i){return i===45?(e.consume(i),r.interrupt?t:I):n(i)}function m(i){return i===`CDATA[`.charCodeAt(s++)?(e.consume(i),s===6?r.interrupt?t:O:m):n(i)}function h(t){return pP(t)?(e.consume(t),o=String.fromCharCode(t),g):n(t)}function g(s){if(s===null||s===47||s===62||xP(s)){let c=s===47,l=o.toLowerCase();return!c&&!a&&NF.includes(l)?(i=1,r.interrupt?t(s):O(s)):MF.includes(o.toLowerCase())?(i=6,c?(e.consume(s),_):r.interrupt?t(s):O(s)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(s):a?v(s):y(s))}return s===45||mP(s)?(e.consume(s),o+=String.fromCharCode(s),g):n(s)}function _(i){return i===62?(e.consume(i),r.interrupt?t:O):n(i)}function v(t){return SP(t)?(e.consume(t),v):E(t)}function y(t){return t===47?(e.consume(t),E):t===58||t===95||pP(t)?(e.consume(t),b):SP(t)?(e.consume(t),y):E(t)}function b(t){return t===45||t===46||t===58||t===95||mP(t)?(e.consume(t),b):x(t)}function x(t){return t===61?(e.consume(t),S):SP(t)?(e.consume(t),x):y(t)}function S(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),c=t,C):SP(t)?(e.consume(t),S):w(t)}function C(t){return t===c?(e.consume(t),c=null,T):t===null||bP(t)?n(t):(e.consume(t),C)}function w(t){return t===null||t===34||t===39||t===47||t===60||t===61||t===62||t===96||xP(t)?x(t):(e.consume(t),w)}function T(e){return e===47||e===62||SP(e)?y(e):n(e)}function E(t){return t===62?(e.consume(t),D):n(t)}function D(t){return t===null||bP(t)?O(t):SP(t)?(e.consume(t),D):n(t)}function O(t){return t===45&&i===2?(e.consume(t),M):t===60&&i===1?(e.consume(t),N):t===62&&i===4?(e.consume(t),L):t===63&&i===3?(e.consume(t),I):t===93&&i===5?(e.consume(t),F):bP(t)&&(i===6||i===7)?(e.exit(`htmlFlowData`),e.check(FF,R,k)(t)):t===null||bP(t)?(e.exit(`htmlFlowData`),k(t)):(e.consume(t),O)}function k(t){return e.check(IF,A,R)(t)}function A(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),j}function j(t){return t===null||bP(t)?k(t):(e.enter(`htmlFlowData`),O(t))}function M(t){return t===45?(e.consume(t),I):O(t)}function N(t){return t===47?(e.consume(t),o=``,P):O(t)}function P(t){if(t===62){let n=o.toLowerCase();return NF.includes(n)?(e.consume(t),L):O(t)}return pP(t)&&o.length<8?(e.consume(t),o+=String.fromCharCode(t),P):O(t)}function F(t){return t===93?(e.consume(t),I):O(t)}function I(t){return t===62?(e.consume(t),L):t===45&&i===2?(e.consume(t),I):O(t)}function L(t){return t===null||bP(t)?(e.exit(`htmlFlowData`),R(t)):(e.consume(t),L)}function R(n){return e.exit(`htmlFlow`),t(n)}}function zF(e,t,n){let r=this;return i;function i(t){return bP(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),a):n(t)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}function BF(e,t,n){return r;function r(r){return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),e.attempt(HP,t,n)}}var VF={name:`htmlText`,tokenize:HF};function HF(e,t,n){let r=this,i,a,o;return s;function s(t){return e.enter(`htmlText`),e.enter(`htmlTextData`),e.consume(t),c}function c(t){return t===33?(e.consume(t),l):t===47?(e.consume(t),x):t===63?(e.consume(t),y):pP(t)?(e.consume(t),w):n(t)}function l(t){return t===45?(e.consume(t),u):t===91?(e.consume(t),a=0,m):pP(t)?(e.consume(t),v):n(t)}function u(t){return t===45?(e.consume(t),p):n(t)}function d(t){return t===null?n(t):t===45?(e.consume(t),f):bP(t)?(o=d,N(t)):(e.consume(t),d)}function f(t){return t===45?(e.consume(t),p):d(t)}function p(e){return e===62?M(e):e===45?f(e):d(e)}function m(t){return t===`CDATA[`.charCodeAt(a++)?(e.consume(t),a===6?h:m):n(t)}function h(t){return t===null?n(t):t===93?(e.consume(t),g):bP(t)?(o=h,N(t)):(e.consume(t),h)}function g(t){return t===93?(e.consume(t),_):h(t)}function _(t){return t===62?M(t):t===93?(e.consume(t),_):h(t)}function v(t){return t===null||t===62?M(t):bP(t)?(o=v,N(t)):(e.consume(t),v)}function y(t){return t===null?n(t):t===63?(e.consume(t),b):bP(t)?(o=y,N(t)):(e.consume(t),y)}function b(e){return e===62?M(e):y(e)}function x(t){return pP(t)?(e.consume(t),S):n(t)}function S(t){return t===45||mP(t)?(e.consume(t),S):C(t)}function C(t){return bP(t)?(o=C,N(t)):SP(t)?(e.consume(t),C):M(t)}function w(t){return t===45||mP(t)?(e.consume(t),w):t===47||t===62||xP(t)?T(t):n(t)}function T(t){return t===47?(e.consume(t),M):t===58||t===95||pP(t)?(e.consume(t),E):bP(t)?(o=T,N(t)):SP(t)?(e.consume(t),T):M(t)}function E(t){return t===45||t===46||t===58||t===95||mP(t)?(e.consume(t),E):D(t)}function D(t){return t===61?(e.consume(t),O):bP(t)?(o=D,N(t)):SP(t)?(e.consume(t),D):T(t)}function O(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),i=t,k):bP(t)?(o=O,N(t)):SP(t)?(e.consume(t),O):(e.consume(t),A)}function k(t){return t===i?(e.consume(t),i=void 0,j):t===null?n(t):bP(t)?(o=k,N(t)):(e.consume(t),k)}function A(t){return t===null||t===34||t===39||t===60||t===61||t===96?n(t):t===47||t===62||xP(t)?T(t):(e.consume(t),A)}function j(e){return e===47||e===62||xP(e)?T(e):n(e)}function M(r){return r===62?(e.consume(r),e.exit(`htmlTextData`),e.exit(`htmlText`),t):n(r)}function N(t){return e.exit(`htmlTextData`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),P}function P(t){return SP(t)?DP(e,F,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):F(t)}function F(t){return e.enter(`htmlTextData`),o(t)}}var UF={name:`labelEnd`,resolveAll:qF,resolveTo:JF,tokenize:YF},WF={tokenize:XF},GF={tokenize:ZF},KF={tokenize:QF};function qF(e){let t=-1,n=[];for(;++t<e.length;){let r=e[t][1];if(n.push(e[t]),r.type===`labelImage`||r.type===`labelLink`||r.type===`labelEnd`){let e=r.type===`labelImage`?4:2;r.type=`data`,t+=e}}return e.length!==n.length&&aP(e,0,e.length,n),e}function JF(e,t){let n=e.length,r=0,i,a,o,s;for(;n--;)if(i=e[n][1],a){if(i.type===`link`||i.type===`labelLink`&&i._inactive)break;e[n][0]===`enter`&&i.type===`labelLink`&&(i._inactive=!0)}else if(o){if(e[n][0]===`enter`&&(i.type===`labelImage`||i.type===`labelLink`)&&!i._balanced&&(a=n,i.type!==`labelLink`)){r=2;break}}else i.type===`labelEnd`&&(o=n);let c={type:e[a][1].type===`labelLink`?`link`:`image`,start:{...e[a][1].start},end:{...e[e.length-1][1].end}},l={type:`label`,start:{...e[a][1].start},end:{...e[o][1].end}},u={type:`labelText`,start:{...e[a+r+2][1].end},end:{...e[o-2][1].start}};return s=[[`enter`,c,t],[`enter`,l,t]],s=oP(s,e.slice(a+1,a+r+3)),s=oP(s,[[`enter`,u,t]]),s=oP(s,FP(t.parser.constructs.insideSpan.null,e.slice(a+r+4,o-3),t)),s=oP(s,[[`exit`,u,t],e[o-2],e[o-1],[`exit`,l,t]]),s=oP(s,e.slice(o+1)),s=oP(s,[[`exit`,c,t]]),aP(e,a,e.length,s),e}function YF(e,t,n){let r=this,i=r.events.length,a,o;for(;i--;)if((r.events[i][1].type===`labelImage`||r.events[i][1].type===`labelLink`)&&!r.events[i][1]._balanced){a=r.events[i][1];break}return s;function s(t){return a?a._inactive?d(t):(o=r.parser.defined.includes(fP(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter(`labelEnd`),e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelEnd`),c):n(t)}function c(t){return t===40?e.attempt(WF,u,o?u:d)(t):t===91?e.attempt(GF,u,o?l:d)(t):o?u(t):d(t)}function l(t){return e.attempt(KF,u,d)(t)}function u(e){return t(e)}function d(e){return a._balanced=!0,n(e)}}function XF(e,t,n){return r;function r(t){return e.enter(`resource`),e.enter(`resourceMarker`),e.consume(t),e.exit(`resourceMarker`),i}function i(t){return xP(t)?SF(e,a)(t):a(t)}function a(t){return t===41?u(t):yF(e,o,s,`resourceDestination`,`resourceDestinationLiteral`,`resourceDestinationLiteralMarker`,`resourceDestinationRaw`,`resourceDestinationString`,32)(t)}function o(t){return xP(t)?SF(e,c)(t):u(t)}function s(e){return n(e)}function c(t){return t===34||t===39||t===40?xF(e,l,n,`resourceTitle`,`resourceTitleMarker`,`resourceTitleString`)(t):u(t)}function l(t){return xP(t)?SF(e,u)(t):u(t)}function u(r){return r===41?(e.enter(`resourceMarker`),e.consume(r),e.exit(`resourceMarker`),e.exit(`resource`),t):n(r)}}function ZF(e,t,n){let r=this;return i;function i(t){return bF.call(r,e,a,o,`reference`,`referenceMarker`,`referenceString`)(t)}function a(e){return r.parser.defined.includes(fP(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}function QF(e,t,n){return r;function r(t){return e.enter(`reference`),e.enter(`referenceMarker`),e.consume(t),e.exit(`referenceMarker`),i}function i(r){return r===93?(e.enter(`referenceMarker`),e.consume(r),e.exit(`referenceMarker`),e.exit(`reference`),t):n(r)}}var $F={name:`labelStartImage`,resolveAll:UF.resolveAll,tokenize:eI};function eI(e,t,n){let r=this;return i;function i(t){return e.enter(`labelImage`),e.enter(`labelImageMarker`),e.consume(t),e.exit(`labelImageMarker`),a}function a(t){return t===91?(e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelImage`),o):n(t)}function o(e){return e===94&&`_hiddenFootnoteSupport`in r.parser.constructs?n(e):t(e)}}var tI={name:`labelStartLink`,resolveAll:UF.resolveAll,tokenize:nI};function nI(e,t,n){let r=this;return i;function i(t){return e.enter(`labelLink`),e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelLink`),a}function a(e){return e===94&&`_hiddenFootnoteSupport`in r.parser.constructs?n(e):t(e)}}var rI={name:`lineEnding`,tokenize:iI};function iI(e,t){return n;function n(n){return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),DP(e,t,`linePrefix`)}}var aI={name:`thematicBreak`,tokenize:oI};function oI(e,t,n){let r=0,i;return a;function a(t){return e.enter(`thematicBreak`),o(t)}function o(e){return i=e,s(e)}function s(a){return a===i?(e.enter(`thematicBreakSequence`),c(a)):r>=3&&(a===null||bP(a))?(e.exit(`thematicBreak`),t(a)):n(a)}function c(t){return t===i?(e.consume(t),r++,c):(e.exit(`thematicBreakSequence`),SP(t)?DP(e,s,`whitespace`)(t):s(t))}}var sI={continuation:{tokenize:dI},exit:pI,name:`list`,tokenize:uI},cI={partial:!0,tokenize:mI},lI={partial:!0,tokenize:fI};function uI(e,t,n){let r=this,i=r.events[r.events.length-1],a=i&&i[1].type===`linePrefix`?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(t){let i=r.containerState.type||(t===42||t===43||t===45?`listUnordered`:`listOrdered`);if(i===`listUnordered`?!r.containerState.marker||t===r.containerState.marker:_P(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),i===`listUnordered`)return e.enter(`listItemPrefix`),t===42||t===45?e.check(aI,n,l)(t):l(t);if(!r.interrupt||t===49)return e.enter(`listItemPrefix`),e.enter(`listItemValue`),c(t)}return n(t)}function c(t){return _P(t)&&++o<10?(e.consume(t),c):(!r.interrupt||o<2)&&(r.containerState.marker?t===r.containerState.marker:t===41||t===46)?(e.exit(`listItemValue`),l(t)):n(t)}function l(t){return e.enter(`listItemMarker`),e.consume(t),e.exit(`listItemMarker`),r.containerState.marker=r.containerState.marker||t,e.check(HP,r.interrupt?n:u,e.attempt(cI,f,d))}function u(e){return r.containerState.initialBlankLine=!0,a++,f(e)}function d(t){return SP(t)?(e.enter(`listItemPrefixWhitespace`),e.consume(t),e.exit(`listItemPrefixWhitespace`),f):n(t)}function f(n){return r.containerState.size=a+r.sliceSerialize(e.exit(`listItemPrefix`),!0).length,t(n)}}function dI(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(HP,i,a);function i(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,DP(e,t,`listItemIndent`,r.containerState.size+1)(n)}function a(n){return r.containerState.furtherBlankLines||!SP(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(lI,t,o)(n))}function o(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,DP(e,e.attempt(sI,t,n),`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(i)}}function fI(e,t,n){let r=this;return DP(e,i,`listItemIndent`,r.containerState.size+1);function i(e){let i=r.events[r.events.length-1];return i&&i[1].type===`listItemIndent`&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)}}function pI(e){e.exit(this.containerState.type)}function mI(e,t,n){let r=this;return DP(e,i,`listItemPrefixWhitespace`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:5);function i(e){let i=r.events[r.events.length-1];return!SP(e)&&i&&i[1].type===`listItemPrefixWhitespace`?t(e):n(e)}}var hI={name:`setextUnderline`,resolveTo:gI,tokenize:_I};function gI(e,t){let n=e.length,r,i,a;for(;n--;)if(e[n][0]===`enter`){if(e[n][1].type===`content`){r=n;break}e[n][1].type===`paragraph`&&(i=n)}else e[n][1].type===`content`&&e.splice(n,1),!a&&e[n][1].type===`definition`&&(a=n);let o={type:`setextHeading`,start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type=`setextHeadingText`,a?(e.splice(i,0,[`enter`,o,t]),e.splice(a+1,0,[`exit`,e[r][1],t]),e[r][1].end={...e[a][1].end}):e[r][1]=o,e.push([`exit`,o,t]),e}function _I(e,t,n){let r=this,i;return a;function a(t){let a=r.events.length,s;for(;a--;)if(r.events[a][1].type!==`lineEnding`&&r.events[a][1].type!==`linePrefix`&&r.events[a][1].type!==`content`){s=r.events[a][1].type===`paragraph`;break}return!r.parser.lazy[r.now().line]&&(r.interrupt||s)?(e.enter(`setextHeadingLine`),i=t,o(t)):n(t)}function o(t){return e.enter(`setextHeadingLineSequence`),s(t)}function s(t){return t===i?(e.consume(t),s):(e.exit(`setextHeadingLineSequence`),SP(t)?DP(e,c,`lineSuffix`)(t):c(t))}function c(r){return r===null||bP(r)?(e.exit(`setextHeadingLine`),t(r)):n(r)}}var vI={tokenize:yI};function yI(e){let t=this,n=e.attempt(HP,r,e.attempt(this.parser.constructs.flowInitial,i,DP(e,e.attempt(this.parser.constructs.flow,i,e.attempt(mF,i)),`linePrefix`)));return n;function r(r){if(r===null){e.consume(r);return}return e.enter(`lineEndingBlank`),e.consume(r),e.exit(`lineEndingBlank`),t.currentConstruct=void 0,n}function i(r){if(r===null){e.consume(r);return}return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),t.currentConstruct=void 0,n}}var bI={resolveAll:wI()},xI=CI(`string`),SI=CI(`text`);function CI(e){return{resolveAll:wI(e===`text`?TI:void 0),tokenize:t};function t(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,a,o);return a;function a(e){return c(e)?i(e):o(e)}function o(e){if(e===null){t.consume(e);return}return t.enter(`data`),t.consume(e),s}function s(e){return c(e)?(t.exit(`data`),i(e)):(t.consume(e),s)}function c(e){if(e===null)return!0;let t=r[e],i=-1;if(t)for(;++i<t.length;){let e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}function wI(e){return t;function t(t,n){let r=-1,i;for(;++r<=t.length;)i===void 0?t[r]&&t[r][1].type===`data`&&(i=r,r++):(!t[r]||t[r][1].type!==`data`)&&(r!==i+2&&(t[i][1].end=t[r-1][1].end,t.splice(i+2,r-i-2),r=i+2),i=void 0);return e?e(t,n):t}}function TI(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type===`lineEnding`)&&e[n-1][1].type===`data`){let r=e[n-1][1],i=t.sliceStream(r),a=i.length,o=-1,s=0,c;for(;a--;){let e=i[a];if(typeof e==`string`){for(o=e.length;e.charCodeAt(o-1)===32;)s++,o--;if(o)break;o=-1}else if(e===-2)c=!0,s++;else if(e!==-1){a++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(s=0),s){let i={type:n===e.length||c||s<2?`lineSuffix`:`hardBreakTrailing`,start:{_bufferIndex:a?o:r.start._bufferIndex+o,_index:r.start._index+a,line:r.end.line,column:r.end.column-s,offset:r.end.offset-s},end:{...r.end}};r.end={...i.start},r.start.offset===r.end.offset?Object.assign(r,i):(e.splice(n,0,[`enter`,i,t],[`exit`,i,t]),n+=2)}n++}return e}var EI=s({attentionMarkers:()=>PI,contentInitial:()=>OI,disable:()=>FI,document:()=>DI,flow:()=>AI,flowInitial:()=>kI,insideSpan:()=>NI,string:()=>jI,text:()=>MI}),DI={42:sI,43:sI,45:sI,48:sI,49:sI,50:sI,51:sI,52:sI,53:sI,54:sI,55:sI,56:sI,57:sI,62:WP},OI={91:CF},kI={[-2]:nF,[-1]:nF,32:nF},AI={35:kF,42:aI,45:[hI,aI],60:PF,61:hI,95:aI,96:$P,126:$P},jI={38:XP,92:JP},MI={[-5]:rI,[-4]:rI,[-3]:rI,33:$F,38:XP,42:IP,60:[BP,VF],91:tI,92:[DF,JP],93:UF,95:IP,96:oF},NI={null:[IP,bI]},PI={null:[42,95]},FI={null:[]};function II(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0},i={},a=[],o=[],s=[],c={attempt:C(x),check:C(S),consume:v,enter:y,exit:b,interrupt:C(S,{interrupt:!0})},l={code:null,containerState:{},defineSkip:h,events:[],now:m,parser:e,previous:null,sliceSerialize:f,sliceStream:p,write:d},u=t.tokenize.call(l,c);return t.resolveAll&&a.push(t),l;function d(e){return o=oP(o,e),g(),o[o.length-1]===null?(w(t,0),l.events=FP(a,l.events,l),l.events):[]}function f(e,t){return RI(p(e),t)}function p(e){return LI(o,e)}function m(){let{_bufferIndex:e,_index:t,line:n,column:i,offset:a}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:a}}function h(e){i[e.line]=e.column,E()}function g(){let e;for(;r._index<o.length;){let t=o[r._index];if(typeof t==`string`)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<t.length;)_(t.charCodeAt(r._bufferIndex));else _(t)}}function _(e){u=u(e)}function v(e){bP(e)?(r.line++,r.column=1,r.offset+=e===-3?2:1,E()):e!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),l.previous=e}function y(e,t){let n=t||{};return n.type=e,n.start=m(),l.events.push([`enter`,n,l]),s.push(n),n}function b(e){let t=s.pop();return t.end=m(),l.events.push([`exit`,t,l]),t}function x(e,t){w(e,t.from)}function S(e,t){t.restore()}function C(e,t){return n;function n(n,r,i){let a,o,s,u;return Array.isArray(n)?f(n):`tokenize`in n?f([n]):d(n);function d(e){return t;function t(t){let n=t!==null&&e[t],r=t!==null&&e.null;return f([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}function f(e){return a=e,o=0,e.length===0?i:p(e[o])}function p(e){return n;function n(n){return u=T(),s=e,e.partial||(l.currentConstruct=e),e.name&&l.parser.constructs.disable.null.includes(e.name)?h(n):e.tokenize.call(t?Object.assign(Object.create(l),t):l,c,m,h)(n)}}function m(t){return e(s,u),r}function h(e){return u.restore(),++o<a.length?p(a[o]):i}}}function w(e,t){e.resolveAll&&!a.includes(e)&&a.push(e),e.resolve&&aP(l.events,t,l.events.length-t,e.resolve(l.events.slice(t),l)),e.resolveTo&&(l.events=e.resolveTo(l.events,l))}function T(){let e=m(),t=l.previous,n=l.currentConstruct,i=l.events.length,a=Array.from(s);return{from:i,restore:o};function o(){r=e,l.previous=t,l.currentConstruct=n,l.events.length=i,s=a,E()}}function E(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function LI(e,t){let n=t.start._index,r=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex,o;if(n===i)o=[e[n].slice(r,a)];else{if(o=e.slice(n,i),r>-1){let e=o[0];typeof e==`string`?o[0]=e.slice(r):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function RI(e,t){let n=-1,r=[],i;for(;++n<e.length;){let a=e[n],o;if(typeof a==`string`)o=a;else switch(a){case-5:o=`\r`;break;case-4:o=`
260
260
  `;break;case-3:o=`\r
261
- `;break;case-2:o=t?` `:` `;break;case-1:if(!t&&i)continue;o=` `;break;default:o=String.fromCharCode(a)}i=a===-2,r.push(o)}return r.join(``)}function wI(e){let t={constructs:qN([dI,...(e||{}).extensions||[]]),content:n(pP),defined:[],document:n(hP),flow:n(rI),lazy:{},string:n(oI),text:n(sI)};return t;function n(e){return n;function n(n){return xI(t,e,n)}}}function TI(e){for(;!ZP(e););return e}var EI=/[\0\t\n\r]/g;function DI(){let e=1,t=``,n=!0,r;return i;function i(i,a,o){let s=[],c,l,u,d,f;for(i=t+(typeof i==`string`?i.toString():new TextDecoder(a||void 0).decode(i)),u=0,t=``,n&&=(i.charCodeAt(0)===65279&&u++,void 0);u<i.length;){if(EI.lastIndex=u,c=EI.exec(i),d=c&&c.index!==void 0?c.index:i.length,f=i.charCodeAt(d),!c){t=i.slice(u);break}if(f===10&&u===d&&r)s.push(-3),r=void 0;else switch(r&&=(s.push(-5),void 0),u<d&&(s.push(i.slice(u,d)),e+=d-u),f){case 0:s.push(65533),e++;break;case 9:for(l=Math.ceil(e/4)*4,s.push(-2);e++<l;)s.push(-1);break;case 10:s.push(-4),e=1;break;default:r=!0,e=1}u=d+1}return o&&(r&&s.push(-5),t&&s.push(t),s.push(null)),s}}var OI=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function kI(e){return e.replace(OI,AI)}function AI(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){let e=n.charCodeAt(1),t=e===120||e===88;return XN(n.slice(t?2:1),t?16:10)}return UN(n)||e}var jI={}.hasOwnProperty;function MI(e,t,n){return t&&typeof t==`object`&&(n=t,t=void 0),NI(n)(TI(wI(n).document().write(DI()(e,t,!0))))}function NI(e){let t={transforms:[],canContainEols:[`emphasis`,`fragment`,`heading`,`paragraph`,`strong`],enter:{autolink:a(se),autolinkProtocol:T,autolinkEmail:T,atxHeading:a(K),blockQuote:a(te),characterEscape:T,characterReference:T,codeFenced:a(G),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:a(G,o),codeText:a(ne,o),codeTextData:T,data:T,codeFlowValue:T,definition:a(re),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:a(ie),hardBreakEscape:a(q),hardBreakTrailing:a(q),htmlFlow:a(ae,o),htmlFlowData:T,htmlText:a(ae,o),htmlTextData:T,image:a(oe),label:o,link:a(se),listItem:a(ce),listItemValue:f,listOrdered:a(J,d),listUnordered:a(J),paragraph:a(le),reference:z,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:a(K),strong:a(ue),thematicBreak:a(fe)},exit:{atxHeading:c(),atxHeadingSequence:x,autolink:c(),autolinkEmail:ee,autolinkProtocol:W,blockQuote:c(),characterEscapeValue:E,characterReferenceMarkerHexadecimal:V,characterReferenceMarkerNumeric:V,characterReferenceValue:H,characterReference:U,codeFenced:c(g),codeFencedFence:h,codeFencedFenceInfo:p,codeFencedFenceMeta:m,codeFlowValue:E,codeIndented:c(_),codeText:c(j),codeTextData:E,data:E,definition:c(),definitionDestinationString:b,definitionLabelString:v,definitionTitleString:y,emphasis:c(),hardBreakEscape:c(O),hardBreakTrailing:c(O),htmlFlow:c(k),htmlFlowData:E,htmlText:c(A),htmlTextData:E,image:c(N),label:F,labelText:P,lineEnding:D,link:c(M),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:B,resourceDestinationString:I,resourceTitleString:L,resource:R,setextHeading:c(w),setextHeadingLineSequence:C,setextHeadingText:S,strong:c(),thematicBreak:c()}};FI(t,(e||{}).mdastExtensions||[]);let n={};return r;function r(e){let r={type:`root`,children:[]},a={stack:[r],tokenStack:[],config:t,enter:s,exit:l,buffer:o,resume:u,data:n},c=[],d=-1;for(;++d<e.length;)(e[d][1].type===`listOrdered`||e[d][1].type===`listUnordered`)&&(e[d][0]===`enter`?c.push(d):d=i(e,c.pop(),d));for(d=-1;++d<e.length;){let n=t[e[d][0]];jI.call(n,e[d][1].type)&&n[e[d][1].type].call(Object.assign({sliceSerialize:e[d][2].sliceSerialize},a),e[d][1])}if(a.tokenStack.length>0){let e=a.tokenStack[a.tokenStack.length-1];(e[1]||LI).call(a,void 0,e[0])}for(r.position={start:PI(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:PI(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},d=-1;++d<t.transforms.length;)r=t.transforms[d](r)||r;return r}function i(e,t,n){let r=t-1,i=-1,a=!1,o,s,c,l;for(;++r<=n;){let t=e[r];switch(t[1].type){case`listUnordered`:case`listOrdered`:case`blockQuote`:t[0]===`enter`?i++:i--,l=void 0;break;case`lineEndingBlank`:t[0]===`enter`&&(o&&!l&&!i&&!c&&(c=r),l=void 0);break;case`linePrefix`:case`listItemValue`:case`listItemMarker`:case`listItemPrefix`:case`listItemPrefixWhitespace`:break;default:l=void 0}if(!i&&t[0]===`enter`&&t[1].type===`listItemPrefix`||i===-1&&t[0]===`exit`&&(t[1].type===`listUnordered`||t[1].type===`listOrdered`)){if(o){let i=r;for(s=void 0;i--;){let t=e[i];if(t[1].type===`lineEnding`||t[1].type===`lineEndingBlank`){if(t[0]===`exit`)continue;s&&(e[s][1].type=`lineEndingBlank`,a=!0),t[1].type=`lineEnding`,s=i}else if(!(t[1].type===`linePrefix`||t[1].type===`blockQuotePrefix`||t[1].type===`blockQuotePrefixWhitespace`||t[1].type===`blockQuoteMarker`||t[1].type===`listItemIndent`))break}c&&(!s||c<s)&&(o._spread=!0),o.end=Object.assign({},s?e[s][1].start:t[1].end),e.splice(s||r,0,[`exit`,o,t[2]]),r++,n++}if(t[1].type===`listItemPrefix`){let i={type:`listItem`,_spread:!1,start:Object.assign({},t[1].start),end:void 0};o=i,e.splice(r,0,[`enter`,i,t[2]]),r++,n++,c=void 0,l=!0}}}return e[t][1]._spread=a,n}function a(e,t){return n;function n(n){s.call(this,e(n),n),t&&t.call(this,n)}}function o(){this.stack.push({type:`fragment`,children:[]})}function s(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:PI(t.start),end:void 0}}function c(e){return t;function t(t){e&&e.call(this,t),l.call(this,t)}}function l(e,t){let n=this.stack.pop(),r=this.tokenStack.pop();if(r)r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||LI).call(this,e,r[0]));else throw Error("Cannot close `"+e.type+"` ("+nN({start:e.start,end:e.end})+`): it’s not open`);n.position.end=PI(e.end)}function u(){return RN(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function f(e){if(this.data.expectingFirstListItemValue){let t=this.stack[this.stack.length-2];t.start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0}}function p(){let e=this.resume(),t=this.stack[this.stack.length-1];t.lang=e}function m(){let e=this.resume(),t=this.stack[this.stack.length-1];t.meta=e}function h(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function g(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,``),this.data.flowCodeInside=void 0}function _(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/(\r?\n|\r)$/g,``)}function v(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=ZN(this.sliceSerialize(e)).toLowerCase()}function y(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function b(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function x(e){let t=this.stack[this.stack.length-1];t.depth||=this.sliceSerialize(e).length}function S(){this.data.setextHeadingSlurpLineEnding=!0}function C(e){let t=this.stack[this.stack.length-1];t.depth=this.sliceSerialize(e).codePointAt(0)===61?1:2}function w(){this.data.setextHeadingSlurpLineEnding=void 0}function T(e){let t=this.stack[this.stack.length-1].children,n=t[t.length-1];(!n||n.type!==`text`)&&(n=de(),n.position={start:PI(e.start),end:void 0},t.push(n)),this.stack.push(n)}function E(e){let t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=PI(e.end)}function D(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){let t=n.children[n.children.length-1];t.position.end=PI(e.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(T.call(this,e),E.call(this,e))}function O(){this.data.atHardBreak=!0}function k(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function A(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function j(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function M(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||`shortcut`;e.type+=`Reference`,e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function N(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||`shortcut`;e.type+=`Reference`,e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function P(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=kI(t),n.identifier=ZN(t).toLowerCase()}function F(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];this.data.inReference=!0,n.type===`link`?n.children=e.children:n.alt=t}function I(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function L(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function R(){this.data.inReference=void 0}function z(){this.data.referenceType=`collapsed`}function B(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=ZN(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType=`full`}function V(e){this.data.characterReferenceType=e.type}function H(e){let t=this.sliceSerialize(e),n=this.data.characterReferenceType,r;n?(r=XN(t,n===`characterReferenceMarkerNumeric`?10:16),this.data.characterReferenceType=void 0):r=UN(t);let i=this.stack[this.stack.length-1];i.value+=r}function U(e){let t=this.stack.pop();t.position.end=PI(e.end)}function W(e){E.call(this,e);let t=this.stack[this.stack.length-1];t.url=this.sliceSerialize(e)}function ee(e){E.call(this,e);let t=this.stack[this.stack.length-1];t.url=`mailto:`+this.sliceSerialize(e)}function te(){return{type:`blockquote`,children:[]}}function G(){return{type:`code`,lang:null,meta:null,value:``}}function ne(){return{type:`inlineCode`,value:``}}function re(){return{type:`definition`,identifier:``,label:null,title:null,url:``}}function ie(){return{type:`emphasis`,children:[]}}function K(){return{type:`heading`,depth:0,children:[]}}function q(){return{type:`break`}}function ae(){return{type:`html`,value:``}}function oe(){return{type:`image`,title:null,url:``,alt:null}}function se(){return{type:`link`,title:null,url:``,children:[]}}function J(e){return{type:`list`,ordered:e.type===`listOrdered`,start:null,spread:e._spread,children:[]}}function ce(e){return{type:`listItem`,spread:e._spread,checked:null,children:[]}}function le(){return{type:`paragraph`,children:[]}}function ue(){return{type:`strong`,children:[]}}function de(){return{type:`text`,value:``}}function fe(){return{type:`thematicBreak`}}}function PI(e){return{line:e.line,column:e.column,offset:e.offset}}function FI(e,t){let n=-1;for(;++n<t.length;){let r=t[n];Array.isArray(r)?FI(e,r):II(e,r)}}function II(e,t){let n;for(n in t)if(jI.call(t,n))switch(n){case`canContainEols`:{let r=t[n];r&&e[n].push(...r);break}case`transforms`:{let r=t[n];r&&e[n].push(...r);break}case`enter`:case`exit`:{let r=t[n];r&&Object.assign(e[n],r);break}}}function LI(e,t){throw Error(e?"Cannot close `"+e.type+"` ("+nN({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+nN({start:t.start,end:t.end})+`) is open`:"Cannot close document, a token (`"+t.type+"`, "+nN({start:t.start,end:t.end})+`) is still open`)}function RI(e){let t=this;t.parser=n;function n(n){return MI(n,{...t.data(`settings`),...e,extensions:t.data(`micromarkExtensions`)||[],mdastExtensions:t.data(`fromMarkdownExtensions`)||[]})}}function zI(e,t){let n={type:`element`,tagName:`blockquote`,properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function BI(e,t){let n={type:`element`,tagName:`br`,properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:`text`,value:`
262
- `}]}function VI(e,t){let n=t.value?t.value+`
263
- `:``,r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=[`language-`+i[0]]);let a={type:`element`,tagName:`code`,properties:r,children:[{type:`text`,value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:`element`,tagName:`pre`,properties:{},children:[a]},e.patch(t,a),a}function HI(e,t){let n={type:`element`,tagName:`del`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function UI(e,t){let n={type:`element`,tagName:`em`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function WI(e,t){let n=typeof e.options.clobberPrefix==`string`?e.options.clobberPrefix:`user-content-`,r=String(t.identifier).toUpperCase(),i=dP(r.toLowerCase()),a=e.footnoteOrder.indexOf(r),o,s=e.footnoteCounts.get(r);s===void 0?(s=0,e.footnoteOrder.push(r),o=e.footnoteOrder.length):o=a+1,s+=1,e.footnoteCounts.set(r,s);let c={type:`element`,tagName:`a`,properties:{href:`#`+n+`fn-`+i,id:n+`fnref-`+i+(s>1?`-`+s:``),dataFootnoteRef:!0,ariaDescribedBy:[`footnote-label`]},children:[{type:`text`,value:String(o)}]};e.patch(t,c);let l={type:`element`,tagName:`sup`,properties:{},children:[c]};return e.patch(t,l),e.applyData(t,l)}function GI(e,t){let n={type:`element`,tagName:`h`+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function KI(e,t){if(e.options.allowDangerousHtml){let n={type:`raw`,value:t.value};return e.patch(t,n),e.applyData(t,n)}}function qI(e,t){let n=t.referenceType,r=`]`;if(n===`collapsed`?r+=`[]`:n===`full`&&(r+=`[`+(t.label||t.identifier)+`]`),t.type===`imageReference`)return[{type:`text`,value:`![`+t.alt+r}];let i=e.all(t),a=i[0];a&&a.type===`text`?a.value=`[`+a.value:i.unshift({type:`text`,value:`[`});let o=i[i.length-1];return o&&o.type===`text`?o.value+=r:i.push({type:`text`,value:r}),i}function JI(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return qI(e,t);let i={src:dP(r.url||``),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);let a={type:`element`,tagName:`img`,properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function YI(e,t){let n={src:dP(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);let r={type:`element`,tagName:`img`,properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function XI(e,t){let n={type:`text`,value:t.value.replace(/\r?\n|\r/g,` `)};e.patch(t,n);let r={type:`element`,tagName:`code`,properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function ZI(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return qI(e,t);let i={href:dP(r.url||``)};r.title!==null&&r.title!==void 0&&(i.title=r.title);let a={type:`element`,tagName:`a`,properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function QI(e,t){let n={href:dP(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);let r={type:`element`,tagName:`a`,properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function $I(e,t,n){let r=e.all(t),i=n?eL(n):tL(t),a={},o=[];if(typeof t.checked==`boolean`){let e=r[0],n;e&&e.type===`element`&&e.tagName===`p`?n=e:(n={type:`element`,tagName:`p`,properties:{},children:[]},r.unshift(n)),n.children.length>0&&n.children.unshift({type:`text`,value:` `}),n.children.unshift({type:`element`,tagName:`input`,properties:{type:`checkbox`,checked:t.checked,disabled:!0},children:[]}),a.className=[`task-list-item`]}let s=-1;for(;++s<r.length;){let e=r[s];(i||s!==0||e.type!==`element`||e.tagName!==`p`)&&o.push({type:`text`,value:`
261
+ `;break;case-2:o=t?` `:` `;break;case-1:if(!t&&i)continue;o=` `;break;default:o=String.fromCharCode(a)}i=a===-2,r.push(o)}return r.join(``)}function zI(e){let t={constructs:cP([EI,...(e||{}).extensions||[]]),content:n(OP),defined:[],document:n(AP),flow:n(vI),lazy:{},string:n(xI),text:n(SI)};return t;function n(e){return n;function n(n){return II(t,e,n)}}}function BI(e){for(;!fF(e););return e}var VI=/[\0\t\n\r]/g;function HI(){let e=1,t=``,n=!0,r;return i;function i(i,a,o){let s=[],c,l,u,d,f;for(i=t+(typeof i==`string`?i.toString():new TextDecoder(a||void 0).decode(i)),u=0,t=``,n&&=(i.charCodeAt(0)===65279&&u++,void 0);u<i.length;){if(VI.lastIndex=u,c=VI.exec(i),d=c&&c.index!==void 0?c.index:i.length,f=i.charCodeAt(d),!c){t=i.slice(u);break}if(f===10&&u===d&&r)s.push(-3),r=void 0;else switch(r&&=(s.push(-5),void 0),u<d&&(s.push(i.slice(u,d)),e+=d-u),f){case 0:s.push(65533),e++;break;case 9:for(l=Math.ceil(e/4)*4,s.push(-2);e++<l;)s.push(-1);break;case 10:s.push(-4),e=1;break;default:r=!0,e=1}u=d+1}return o&&(r&&s.push(-5),t&&s.push(t),s.push(null)),s}}var UI=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function WI(e){return e.replace(UI,GI)}function GI(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){let e=n.charCodeAt(1),t=e===120||e===88;return dP(n.slice(t?2:1),t?16:10)}return iP(n)||e}var KI={}.hasOwnProperty;function qI(e,t,n){return t&&typeof t==`object`&&(n=t,t=void 0),JI(n)(BI(zI(n).document().write(HI()(e,t,!0))))}function JI(e){let t={transforms:[],canContainEols:[`emphasis`,`fragment`,`heading`,`paragraph`,`strong`],enter:{autolink:a(se),autolinkProtocol:T,autolinkEmail:T,atxHeading:a(K),blockQuote:a(te),characterEscape:T,characterReference:T,codeFenced:a(G),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:a(G,o),codeText:a(ne,o),codeTextData:T,data:T,codeFlowValue:T,definition:a(re),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:a(ie),hardBreakEscape:a(q),hardBreakTrailing:a(q),htmlFlow:a(ae,o),htmlFlowData:T,htmlText:a(ae,o),htmlTextData:T,image:a(oe),label:o,link:a(se),listItem:a(ce),listItemValue:f,listOrdered:a(J,d),listUnordered:a(J),paragraph:a(le),reference:z,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:a(K),strong:a(ue),thematicBreak:a(fe)},exit:{atxHeading:c(),atxHeadingSequence:x,autolink:c(),autolinkEmail:ee,autolinkProtocol:W,blockQuote:c(),characterEscapeValue:E,characterReferenceMarkerHexadecimal:V,characterReferenceMarkerNumeric:V,characterReferenceValue:H,characterReference:U,codeFenced:c(g),codeFencedFence:h,codeFencedFenceInfo:p,codeFencedFenceMeta:m,codeFlowValue:E,codeIndented:c(_),codeText:c(j),codeTextData:E,data:E,definition:c(),definitionDestinationString:b,definitionLabelString:v,definitionTitleString:y,emphasis:c(),hardBreakEscape:c(O),hardBreakTrailing:c(O),htmlFlow:c(k),htmlFlowData:E,htmlText:c(A),htmlTextData:E,image:c(N),label:F,labelText:P,lineEnding:D,link:c(M),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:B,resourceDestinationString:I,resourceTitleString:L,resource:R,setextHeading:c(w),setextHeadingLineSequence:C,setextHeadingText:S,strong:c(),thematicBreak:c()}};XI(t,(e||{}).mdastExtensions||[]);let n={};return r;function r(e){let r={type:`root`,children:[]},a={stack:[r],tokenStack:[],config:t,enter:s,exit:l,buffer:o,resume:u,data:n},c=[],d=-1;for(;++d<e.length;)(e[d][1].type===`listOrdered`||e[d][1].type===`listUnordered`)&&(e[d][0]===`enter`?c.push(d):d=i(e,c.pop(),d));for(d=-1;++d<e.length;){let n=t[e[d][0]];KI.call(n,e[d][1].type)&&n[e[d][1].type].call(Object.assign({sliceSerialize:e[d][2].sliceSerialize},a),e[d][1])}if(a.tokenStack.length>0){let e=a.tokenStack[a.tokenStack.length-1];(e[1]||QI).call(a,void 0,e[0])}for(r.position={start:YI(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:YI(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},d=-1;++d<t.transforms.length;)r=t.transforms[d](r)||r;return r}function i(e,t,n){let r=t-1,i=-1,a=!1,o,s,c,l;for(;++r<=n;){let t=e[r];switch(t[1].type){case`listUnordered`:case`listOrdered`:case`blockQuote`:t[0]===`enter`?i++:i--,l=void 0;break;case`lineEndingBlank`:t[0]===`enter`&&(o&&!l&&!i&&!c&&(c=r),l=void 0);break;case`linePrefix`:case`listItemValue`:case`listItemMarker`:case`listItemPrefix`:case`listItemPrefixWhitespace`:break;default:l=void 0}if(!i&&t[0]===`enter`&&t[1].type===`listItemPrefix`||i===-1&&t[0]===`exit`&&(t[1].type===`listUnordered`||t[1].type===`listOrdered`)){if(o){let i=r;for(s=void 0;i--;){let t=e[i];if(t[1].type===`lineEnding`||t[1].type===`lineEndingBlank`){if(t[0]===`exit`)continue;s&&(e[s][1].type=`lineEndingBlank`,a=!0),t[1].type=`lineEnding`,s=i}else if(!(t[1].type===`linePrefix`||t[1].type===`blockQuotePrefix`||t[1].type===`blockQuotePrefixWhitespace`||t[1].type===`blockQuoteMarker`||t[1].type===`listItemIndent`))break}c&&(!s||c<s)&&(o._spread=!0),o.end=Object.assign({},s?e[s][1].start:t[1].end),e.splice(s||r,0,[`exit`,o,t[2]]),r++,n++}if(t[1].type===`listItemPrefix`){let i={type:`listItem`,_spread:!1,start:Object.assign({},t[1].start),end:void 0};o=i,e.splice(r,0,[`enter`,i,t[2]]),r++,n++,c=void 0,l=!0}}}return e[t][1]._spread=a,n}function a(e,t){return n;function n(n){s.call(this,e(n),n),t&&t.call(this,n)}}function o(){this.stack.push({type:`fragment`,children:[]})}function s(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:YI(t.start),end:void 0}}function c(e){return t;function t(t){e&&e.call(this,t),l.call(this,t)}}function l(e,t){let n=this.stack.pop(),r=this.tokenStack.pop();if(r)r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||QI).call(this,e,r[0]));else throw Error("Cannot close `"+e.type+"` ("+_N({start:e.start,end:e.end})+`): it’s not open`);n.position.end=YI(e.end)}function u(){return $N(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function f(e){if(this.data.expectingFirstListItemValue){let t=this.stack[this.stack.length-2];t.start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0}}function p(){let e=this.resume(),t=this.stack[this.stack.length-1];t.lang=e}function m(){let e=this.resume(),t=this.stack[this.stack.length-1];t.meta=e}function h(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function g(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,``),this.data.flowCodeInside=void 0}function _(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/(\r?\n|\r)$/g,``)}function v(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=fP(this.sliceSerialize(e)).toLowerCase()}function y(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function b(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function x(e){let t=this.stack[this.stack.length-1];t.depth||=this.sliceSerialize(e).length}function S(){this.data.setextHeadingSlurpLineEnding=!0}function C(e){let t=this.stack[this.stack.length-1];t.depth=this.sliceSerialize(e).codePointAt(0)===61?1:2}function w(){this.data.setextHeadingSlurpLineEnding=void 0}function T(e){let t=this.stack[this.stack.length-1].children,n=t[t.length-1];(!n||n.type!==`text`)&&(n=de(),n.position={start:YI(e.start),end:void 0},t.push(n)),this.stack.push(n)}function E(e){let t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=YI(e.end)}function D(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){let t=n.children[n.children.length-1];t.position.end=YI(e.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(T.call(this,e),E.call(this,e))}function O(){this.data.atHardBreak=!0}function k(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function A(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function j(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function M(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||`shortcut`;e.type+=`Reference`,e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function N(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||`shortcut`;e.type+=`Reference`,e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function P(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=WI(t),n.identifier=fP(t).toLowerCase()}function F(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];this.data.inReference=!0,n.type===`link`?n.children=e.children:n.alt=t}function I(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function L(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function R(){this.data.inReference=void 0}function z(){this.data.referenceType=`collapsed`}function B(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=fP(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType=`full`}function V(e){this.data.characterReferenceType=e.type}function H(e){let t=this.sliceSerialize(e),n=this.data.characterReferenceType,r;n?(r=dP(t,n===`characterReferenceMarkerNumeric`?10:16),this.data.characterReferenceType=void 0):r=iP(t);let i=this.stack[this.stack.length-1];i.value+=r}function U(e){let t=this.stack.pop();t.position.end=YI(e.end)}function W(e){E.call(this,e);let t=this.stack[this.stack.length-1];t.url=this.sliceSerialize(e)}function ee(e){E.call(this,e);let t=this.stack[this.stack.length-1];t.url=`mailto:`+this.sliceSerialize(e)}function te(){return{type:`blockquote`,children:[]}}function G(){return{type:`code`,lang:null,meta:null,value:``}}function ne(){return{type:`inlineCode`,value:``}}function re(){return{type:`definition`,identifier:``,label:null,title:null,url:``}}function ie(){return{type:`emphasis`,children:[]}}function K(){return{type:`heading`,depth:0,children:[]}}function q(){return{type:`break`}}function ae(){return{type:`html`,value:``}}function oe(){return{type:`image`,title:null,url:``,alt:null}}function se(){return{type:`link`,title:null,url:``,children:[]}}function J(e){return{type:`list`,ordered:e.type===`listOrdered`,start:null,spread:e._spread,children:[]}}function ce(e){return{type:`listItem`,spread:e._spread,checked:null,children:[]}}function le(){return{type:`paragraph`,children:[]}}function ue(){return{type:`strong`,children:[]}}function de(){return{type:`text`,value:``}}function fe(){return{type:`thematicBreak`}}}function YI(e){return{line:e.line,column:e.column,offset:e.offset}}function XI(e,t){let n=-1;for(;++n<t.length;){let r=t[n];Array.isArray(r)?XI(e,r):ZI(e,r)}}function ZI(e,t){let n;for(n in t)if(KI.call(t,n))switch(n){case`canContainEols`:{let r=t[n];r&&e[n].push(...r);break}case`transforms`:{let r=t[n];r&&e[n].push(...r);break}case`enter`:case`exit`:{let r=t[n];r&&Object.assign(e[n],r);break}}}function QI(e,t){throw Error(e?"Cannot close `"+e.type+"` ("+_N({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+_N({start:t.start,end:t.end})+`) is open`:"Cannot close document, a token (`"+t.type+"`, "+_N({start:t.start,end:t.end})+`) is still open`)}function $I(e){let t=this;t.parser=n;function n(n){return qI(n,{...t.data(`settings`),...e,extensions:t.data(`micromarkExtensions`)||[],mdastExtensions:t.data(`fromMarkdownExtensions`)||[]})}}function eL(e,t){let n={type:`element`,tagName:`blockquote`,properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function tL(e,t){let n={type:`element`,tagName:`br`,properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:`text`,value:`
262
+ `}]}function nL(e,t){let n=t.value?t.value+`
263
+ `:``,r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=[`language-`+i[0]]);let a={type:`element`,tagName:`code`,properties:r,children:[{type:`text`,value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:`element`,tagName:`pre`,properties:{},children:[a]},e.patch(t,a),a}function rL(e,t){let n={type:`element`,tagName:`del`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function iL(e,t){let n={type:`element`,tagName:`em`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function aL(e,t){let n=typeof e.options.clobberPrefix==`string`?e.options.clobberPrefix:`user-content-`,r=String(t.identifier).toUpperCase(),i=EP(r.toLowerCase()),a=e.footnoteOrder.indexOf(r),o,s=e.footnoteCounts.get(r);s===void 0?(s=0,e.footnoteOrder.push(r),o=e.footnoteOrder.length):o=a+1,s+=1,e.footnoteCounts.set(r,s);let c={type:`element`,tagName:`a`,properties:{href:`#`+n+`fn-`+i,id:n+`fnref-`+i+(s>1?`-`+s:``),dataFootnoteRef:!0,ariaDescribedBy:[`footnote-label`]},children:[{type:`text`,value:String(o)}]};e.patch(t,c);let l={type:`element`,tagName:`sup`,properties:{},children:[c]};return e.patch(t,l),e.applyData(t,l)}function oL(e,t){let n={type:`element`,tagName:`h`+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function sL(e,t){if(e.options.allowDangerousHtml){let n={type:`raw`,value:t.value};return e.patch(t,n),e.applyData(t,n)}}function cL(e,t){let n=t.referenceType,r=`]`;if(n===`collapsed`?r+=`[]`:n===`full`&&(r+=`[`+(t.label||t.identifier)+`]`),t.type===`imageReference`)return[{type:`text`,value:`![`+t.alt+r}];let i=e.all(t),a=i[0];a&&a.type===`text`?a.value=`[`+a.value:i.unshift({type:`text`,value:`[`});let o=i[i.length-1];return o&&o.type===`text`?o.value+=r:i.push({type:`text`,value:r}),i}function lL(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return cL(e,t);let i={src:EP(r.url||``),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);let a={type:`element`,tagName:`img`,properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function uL(e,t){let n={src:EP(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);let r={type:`element`,tagName:`img`,properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function dL(e,t){let n={type:`text`,value:t.value.replace(/\r?\n|\r/g,` `)};e.patch(t,n);let r={type:`element`,tagName:`code`,properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function fL(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return cL(e,t);let i={href:EP(r.url||``)};r.title!==null&&r.title!==void 0&&(i.title=r.title);let a={type:`element`,tagName:`a`,properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function pL(e,t){let n={href:EP(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);let r={type:`element`,tagName:`a`,properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function mL(e,t,n){let r=e.all(t),i=n?hL(n):gL(t),a={},o=[];if(typeof t.checked==`boolean`){let e=r[0],n;e&&e.type===`element`&&e.tagName===`p`?n=e:(n={type:`element`,tagName:`p`,properties:{},children:[]},r.unshift(n)),n.children.length>0&&n.children.unshift({type:`text`,value:` `}),n.children.unshift({type:`element`,tagName:`input`,properties:{type:`checkbox`,checked:t.checked,disabled:!0},children:[]}),a.className=[`task-list-item`]}let s=-1;for(;++s<r.length;){let e=r[s];(i||s!==0||e.type!==`element`||e.tagName!==`p`)&&o.push({type:`text`,value:`
264
264
  `}),e.type===`element`&&e.tagName===`p`&&!i?o.push(...e.children):o.push(e)}let c=r[r.length-1];c&&(i||c.type!==`element`||c.tagName!==`p`)&&o.push({type:`text`,value:`
265
- `});let l={type:`element`,tagName:`li`,properties:a,children:o};return e.patch(t,l),e.applyData(t,l)}function eL(e){let t=!1;if(e.type===`list`){t=e.spread||!1;let n=e.children,r=-1;for(;!t&&++r<n.length;)t=tL(n[r])}return t}function tL(e){return e.spread??e.children.length>1}function nL(e,t){let n={},r=e.all(t),i=-1;for(typeof t.start==`number`&&t.start!==1&&(n.start=t.start);++i<r.length;){let e=r[i];if(e.type===`element`&&e.tagName===`li`&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes(`task-list-item`)){n.className=[`contains-task-list`];break}}let a={type:`element`,tagName:t.ordered?`ol`:`ul`,properties:n,children:e.wrap(r,!0)};return e.patch(t,a),e.applyData(t,a)}function rL(e,t){let n={type:`element`,tagName:`p`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function iL(e,t){let n={type:`root`,children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function aL(e,t){let n={type:`element`,tagName:`strong`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function oL(e,t){let n=e.all(t),r=n.shift(),i=[];if(r){let n={type:`element`,tagName:`thead`,properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),i.push(n)}if(n.length>0){let r={type:`element`,tagName:`tbody`,properties:{},children:e.wrap(n,!0)},a=$M(t.children[1]),o=QM(t.children[t.children.length-1]);a&&o&&(r.position={start:a,end:o}),i.push(r)}let a={type:`element`,tagName:`table`,properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function sL(e,t,n){let r=n?n.children:void 0,i=(r?r.indexOf(t):1)===0?`th`:`td`,a=n&&n.type===`table`?n.align:void 0,o=a?a.length:t.children.length,s=-1,c=[];for(;++s<o;){let n=t.children[s],r={},o=a?a[s]:void 0;o&&(r.align=o);let l={type:`element`,tagName:i,properties:r,children:[]};n&&(l.children=e.all(n),e.patch(n,l),l=e.applyData(n,l)),c.push(l)}let l={type:`element`,tagName:`tr`,properties:{},children:e.wrap(c,!0)};return e.patch(t,l),e.applyData(t,l)}function cL(e,t){let n={type:`element`,tagName:`td`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}var lL=9,uL=32;function dL(e){let t=String(e),n=/\r?\n|\r/g,r=n.exec(t),i=0,a=[];for(;r;)a.push(fL(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(fL(t.slice(i),i>0,!1)),a.join(``)}function fL(e,t,n){let r=0,i=e.length;if(t){let t=e.codePointAt(r);for(;t===lL||t===uL;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(i-1);for(;t===lL||t===uL;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):``}function pL(e,t){let n={type:`text`,value:dL(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function mL(e,t){let n={type:`element`,tagName:`hr`,properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}var hL={blockquote:zI,break:BI,code:VI,delete:HI,emphasis:UI,footnoteReference:WI,heading:GI,html:KI,imageReference:JI,image:YI,inlineCode:XI,linkReference:ZI,link:QI,listItem:$I,list:nL,paragraph:rL,root:iL,strong:aL,table:oL,tableCell:cL,tableRow:sL,text:pL,thematicBreak:mL,toml:gL,yaml:gL,definition:gL,footnoteDefinition:gL};function gL(){}var _L=typeof self==`object`?self:globalThis,vL=(e,t)=>{switch(e){case`Function`:case`SharedWorker`:case`Worker`:case`eval`:case`setInterval`:case`setTimeout`:throw TypeError(`unable to deserialize `+e)}return new _L[e](t)},yL=(e,t)=>{let n=(t,n)=>(e.set(n,t),t),r=i=>{if(e.has(i))return e.get(i);let[a,o]=t[i];switch(a){case 0:case-1:return n(o,i);case 1:{let e=n([],i);for(let t of o)e.push(r(t));return e}case 2:{let e=n({},i);for(let[t,n]of o)e[r(t)]=r(n);return e}case 3:return n(new Date(o),i);case 4:{let{source:e,flags:t}=o;return n(new RegExp(e,t),i)}case 5:{let e=n(new Map,i);for(let[t,n]of o)e.set(r(t),r(n));return e}case 6:{let e=n(new Set,i);for(let t of o)e.add(r(t));return e}case 7:{let{name:e,message:t}=o;return n(vL(e,t),i)}case 8:return n(BigInt(o),i);case`BigInt`:return n(Object(BigInt(o)),i);case`ArrayBuffer`:return n(new Uint8Array(o).buffer,o);case`DataView`:{let{buffer:e}=new Uint8Array(o);return n(new DataView(e),o)}}return n(vL(a,o),i)};return r},bL=e=>yL(new Map,e)(0),xL=``,{toString:SL}={},{keys:CL}=Object,wL=e=>{let t=typeof e;if(t!==`object`||!e)return[0,t];let n=SL.call(e).slice(8,-1);switch(n){case`Array`:return[1,xL];case`Object`:return[2,xL];case`Date`:return[3,xL];case`RegExp`:return[4,xL];case`Map`:return[5,xL];case`Set`:return[6,xL];case`DataView`:return[1,n]}return n.includes(`Array`)?[1,n]:n.includes(`Error`)?[7,n]:[2,n]},TL=([e,t])=>e===0&&(t===`function`||t===`symbol`),EL=(e,t,n,r)=>{let i=(e,t)=>{let i=r.push(e)-1;return n.set(t,i),i},a=r=>{if(n.has(r))return n.get(r);let[o,s]=wL(r);switch(o){case 0:{let t=r;switch(s){case`bigint`:o=8,t=r.toString();break;case`function`:case`symbol`:if(e)throw TypeError(`unable to serialize `+s);t=null;break;case`undefined`:return i([-1],r)}return i([o,t],r)}case 1:{if(s){let e=r;return s===`DataView`?e=new Uint8Array(r.buffer):s===`ArrayBuffer`&&(e=new Uint8Array(r)),i([s,[...e]],r)}let e=[],t=i([o,e],r);for(let t of r)e.push(a(t));return t}case 2:{if(s)switch(s){case`BigInt`:return i([s,r.toString()],r);case`Boolean`:case`Number`:case`String`:return i([s,r.valueOf()],r)}if(t&&`toJSON`in r)return a(r.toJSON());let n=[],c=i([o,n],r);for(let t of CL(r))(e||!TL(wL(r[t])))&&n.push([a(t),a(r[t])]);return c}case 3:return i([o,r.toISOString()],r);case 4:{let{source:e,flags:t}=r;return i([o,{source:e,flags:t}],r)}case 5:{let t=[],n=i([o,t],r);for(let[n,i]of r)(e||!(TL(wL(n))||TL(wL(i))))&&t.push([a(n),a(i)]);return n}case 6:{let t=[],n=i([o,t],r);for(let n of r)(e||!TL(wL(n)))&&t.push(a(n));return n}}let{message:c}=r;return i([o,{name:s,message:c}],r)};return a},DL=(e,{json:t,lossy:n}={})=>{let r=[];return EL(!(t||n),!!t,new Map,r)(e),r},OL=typeof structuredClone==`function`?(e,t)=>t&&(`json`in t||`lossy`in t)?bL(DL(e,t)):structuredClone(e):(e,t)=>bL(DL(e,t));function kL(e,t){let n=[{type:`text`,value:`↩`}];return t>1&&n.push({type:`element`,tagName:`sup`,properties:{},children:[{type:`text`,value:String(t)}]}),n}function AL(e,t){return`Back to reference `+(e+1)+(t>1?`-`+t:``)}function jL(e){let t=typeof e.options.clobberPrefix==`string`?e.options.clobberPrefix:`user-content-`,n=e.options.footnoteBackContent||kL,r=e.options.footnoteBackLabel||AL,i=e.options.footnoteLabel||`Footnotes`,a=e.options.footnoteLabelTagName||`h2`,o=e.options.footnoteLabelProperties||{className:[`sr-only`]},s=[],c=-1;for(;++c<e.footnoteOrder.length;){let i=e.footnoteById.get(e.footnoteOrder[c]);if(!i)continue;let a=e.all(i),o=String(i.identifier).toUpperCase(),l=dP(o.toLowerCase()),u=0,d=[],f=e.footnoteCounts.get(o);for(;f!==void 0&&++u<=f;){d.length>0&&d.push({type:`text`,value:` `});let e=typeof n==`string`?n:n(c,u);typeof e==`string`&&(e={type:`text`,value:e}),d.push({type:`element`,tagName:`a`,properties:{href:`#`+t+`fnref-`+l+(u>1?`-`+u:``),dataFootnoteBackref:``,ariaLabel:typeof r==`string`?r:r(c,u),className:[`data-footnote-backref`]},children:Array.isArray(e)?e:[e]})}let p=a[a.length-1];if(p&&p.type===`element`&&p.tagName===`p`){let e=p.children[p.children.length-1];e&&e.type===`text`?e.value+=` `:p.children.push({type:`text`,value:` `}),p.children.push(...d)}else a.push(...d);let m={type:`element`,tagName:`li`,properties:{id:t+`fn-`+l},children:e.wrap(a,!0)};e.patch(i,m),s.push(m)}if(s.length!==0)return{type:`element`,tagName:`section`,properties:{dataFootnotes:!0,className:[`footnotes`]},children:[{type:`element`,tagName:a,properties:{...OL(o),id:`footnote-label`},children:[{type:`text`,value:i}]},{type:`text`,value:`
265
+ `});let l={type:`element`,tagName:`li`,properties:a,children:o};return e.patch(t,l),e.applyData(t,l)}function hL(e){let t=!1;if(e.type===`list`){t=e.spread||!1;let n=e.children,r=-1;for(;!t&&++r<n.length;)t=gL(n[r])}return t}function gL(e){return e.spread??e.children.length>1}function _L(e,t){let n={},r=e.all(t),i=-1;for(typeof t.start==`number`&&t.start!==1&&(n.start=t.start);++i<r.length;){let e=r[i];if(e.type===`element`&&e.tagName===`li`&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes(`task-list-item`)){n.className=[`contains-task-list`];break}}let a={type:`element`,tagName:t.ordered?`ol`:`ul`,properties:n,children:e.wrap(r,!0)};return e.patch(t,a),e.applyData(t,a)}function vL(e,t){let n={type:`element`,tagName:`p`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function yL(e,t){let n={type:`root`,children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function bL(e,t){let n={type:`element`,tagName:`strong`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function xL(e,t){let n=e.all(t),r=n.shift(),i=[];if(r){let n={type:`element`,tagName:`thead`,properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),i.push(n)}if(n.length>0){let r={type:`element`,tagName:`tbody`,properties:{},children:e.wrap(n,!0)},a=mN(t.children[1]),o=pN(t.children[t.children.length-1]);a&&o&&(r.position={start:a,end:o}),i.push(r)}let a={type:`element`,tagName:`table`,properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function SL(e,t,n){let r=n?n.children:void 0,i=(r?r.indexOf(t):1)===0?`th`:`td`,a=n&&n.type===`table`?n.align:void 0,o=a?a.length:t.children.length,s=-1,c=[];for(;++s<o;){let n=t.children[s],r={},o=a?a[s]:void 0;o&&(r.align=o);let l={type:`element`,tagName:i,properties:r,children:[]};n&&(l.children=e.all(n),e.patch(n,l),l=e.applyData(n,l)),c.push(l)}let l={type:`element`,tagName:`tr`,properties:{},children:e.wrap(c,!0)};return e.patch(t,l),e.applyData(t,l)}function CL(e,t){let n={type:`element`,tagName:`td`,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}var wL=9,TL=32;function EL(e){let t=String(e),n=/\r?\n|\r/g,r=n.exec(t),i=0,a=[];for(;r;)a.push(DL(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(DL(t.slice(i),i>0,!1)),a.join(``)}function DL(e,t,n){let r=0,i=e.length;if(t){let t=e.codePointAt(r);for(;t===wL||t===TL;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(i-1);for(;t===wL||t===TL;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):``}function OL(e,t){let n={type:`text`,value:EL(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function kL(e,t){let n={type:`element`,tagName:`hr`,properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}var AL={blockquote:eL,break:tL,code:nL,delete:rL,emphasis:iL,footnoteReference:aL,heading:oL,html:sL,imageReference:lL,image:uL,inlineCode:dL,linkReference:fL,link:pL,listItem:mL,list:_L,paragraph:vL,root:yL,strong:bL,table:xL,tableCell:CL,tableRow:SL,text:OL,thematicBreak:kL,toml:jL,yaml:jL,definition:jL,footnoteDefinition:jL};function jL(){}var ML=typeof self==`object`?self:globalThis,NL=(e,t)=>{switch(e){case`Function`:case`SharedWorker`:case`Worker`:case`eval`:case`setInterval`:case`setTimeout`:throw TypeError(`unable to deserialize `+e)}return new ML[e](t)},PL=(e,t)=>{let n=(t,n)=>(e.set(n,t),t),r=i=>{if(e.has(i))return e.get(i);let[a,o]=t[i];switch(a){case 0:case-1:return n(o,i);case 1:{let e=n([],i);for(let t of o)e.push(r(t));return e}case 2:{let e=n({},i);for(let[t,n]of o)e[r(t)]=r(n);return e}case 3:return n(new Date(o),i);case 4:{let{source:e,flags:t}=o;return n(new RegExp(e,t),i)}case 5:{let e=n(new Map,i);for(let[t,n]of o)e.set(r(t),r(n));return e}case 6:{let e=n(new Set,i);for(let t of o)e.add(r(t));return e}case 7:{let{name:e,message:t}=o;return n(NL(e,t),i)}case 8:return n(BigInt(o),i);case`BigInt`:return n(Object(BigInt(o)),i);case`ArrayBuffer`:return n(new Uint8Array(o).buffer,o);case`DataView`:{let{buffer:e}=new Uint8Array(o);return n(new DataView(e),o)}}return n(NL(a,o),i)};return r},FL=e=>PL(new Map,e)(0),IL=``,{toString:LL}={},{keys:RL}=Object,zL=e=>{let t=typeof e;if(t!==`object`||!e)return[0,t];let n=LL.call(e).slice(8,-1);switch(n){case`Array`:return[1,IL];case`Object`:return[2,IL];case`Date`:return[3,IL];case`RegExp`:return[4,IL];case`Map`:return[5,IL];case`Set`:return[6,IL];case`DataView`:return[1,n]}return n.includes(`Array`)?[1,n]:n.includes(`Error`)?[7,n]:[2,n]},BL=([e,t])=>e===0&&(t===`function`||t===`symbol`),VL=(e,t,n,r)=>{let i=(e,t)=>{let i=r.push(e)-1;return n.set(t,i),i},a=r=>{if(n.has(r))return n.get(r);let[o,s]=zL(r);switch(o){case 0:{let t=r;switch(s){case`bigint`:o=8,t=r.toString();break;case`function`:case`symbol`:if(e)throw TypeError(`unable to serialize `+s);t=null;break;case`undefined`:return i([-1],r)}return i([o,t],r)}case 1:{if(s){let e=r;return s===`DataView`?e=new Uint8Array(r.buffer):s===`ArrayBuffer`&&(e=new Uint8Array(r)),i([s,[...e]],r)}let e=[],t=i([o,e],r);for(let t of r)e.push(a(t));return t}case 2:{if(s)switch(s){case`BigInt`:return i([s,r.toString()],r);case`Boolean`:case`Number`:case`String`:return i([s,r.valueOf()],r)}if(t&&`toJSON`in r)return a(r.toJSON());let n=[],c=i([o,n],r);for(let t of RL(r))(e||!BL(zL(r[t])))&&n.push([a(t),a(r[t])]);return c}case 3:return i([o,r.toISOString()],r);case 4:{let{source:e,flags:t}=r;return i([o,{source:e,flags:t}],r)}case 5:{let t=[],n=i([o,t],r);for(let[n,i]of r)(e||!(BL(zL(n))||BL(zL(i))))&&t.push([a(n),a(i)]);return n}case 6:{let t=[],n=i([o,t],r);for(let n of r)(e||!BL(zL(n)))&&t.push(a(n));return n}}let{message:c}=r;return i([o,{name:s,message:c}],r)};return a},HL=(e,{json:t,lossy:n}={})=>{let r=[];return VL(!(t||n),!!t,new Map,r)(e),r},UL=typeof structuredClone==`function`?(e,t)=>t&&(`json`in t||`lossy`in t)?FL(HL(e,t)):structuredClone(e):(e,t)=>FL(HL(e,t));function WL(e,t){let n=[{type:`text`,value:`↩`}];return t>1&&n.push({type:`element`,tagName:`sup`,properties:{},children:[{type:`text`,value:String(t)}]}),n}function GL(e,t){return`Back to reference `+(e+1)+(t>1?`-`+t:``)}function KL(e){let t=typeof e.options.clobberPrefix==`string`?e.options.clobberPrefix:`user-content-`,n=e.options.footnoteBackContent||WL,r=e.options.footnoteBackLabel||GL,i=e.options.footnoteLabel||`Footnotes`,a=e.options.footnoteLabelTagName||`h2`,o=e.options.footnoteLabelProperties||{className:[`sr-only`]},s=[],c=-1;for(;++c<e.footnoteOrder.length;){let i=e.footnoteById.get(e.footnoteOrder[c]);if(!i)continue;let a=e.all(i),o=String(i.identifier).toUpperCase(),l=EP(o.toLowerCase()),u=0,d=[],f=e.footnoteCounts.get(o);for(;f!==void 0&&++u<=f;){d.length>0&&d.push({type:`text`,value:` `});let e=typeof n==`string`?n:n(c,u);typeof e==`string`&&(e={type:`text`,value:e}),d.push({type:`element`,tagName:`a`,properties:{href:`#`+t+`fnref-`+l+(u>1?`-`+u:``),dataFootnoteBackref:``,ariaLabel:typeof r==`string`?r:r(c,u),className:[`data-footnote-backref`]},children:Array.isArray(e)?e:[e]})}let p=a[a.length-1];if(p&&p.type===`element`&&p.tagName===`p`){let e=p.children[p.children.length-1];e&&e.type===`text`?e.value+=` `:p.children.push({type:`text`,value:` `}),p.children.push(...d)}else a.push(...d);let m={type:`element`,tagName:`li`,properties:{id:t+`fn-`+l},children:e.wrap(a,!0)};e.patch(i,m),s.push(m)}if(s.length!==0)return{type:`element`,tagName:`section`,properties:{dataFootnotes:!0,className:[`footnotes`]},children:[{type:`element`,tagName:a,properties:{...UL(o),id:`footnote-label`},children:[{type:`text`,value:i}]},{type:`text`,value:`
266
266
  `},{type:`element`,tagName:`ol`,properties:{},children:e.wrap(s,!0)},{type:`text`,value:`
267
- `}]}}var ML=(function(e){if(e==null)return LL;if(typeof e==`function`)return IL(e);if(typeof e==`object`)return Array.isArray(e)?NL(e):PL(e);if(typeof e==`string`)return FL(e);throw Error(`Expected function, string, or object as test`)});function NL(e){let t=[],n=-1;for(;++n<e.length;)t[n]=ML(e[n]);return IL(r);function r(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1}}function PL(e){let t=e;return IL(n);function n(n){let r=n,i;for(i in e)if(r[i]!==t[i])return!1;return!0}}function FL(e){return IL(t);function t(t){return t&&t.type===e}}function IL(e){return t;function t(t,n,r){return!!(RL(t)&&e.call(this,t,typeof n==`number`?n:void 0,r||void 0))}}function LL(){return!0}function RL(e){return typeof e==`object`&&!!e&&`type`in e}function zL(e){return e}var BL=[];function VL(e,t,n,r){let i;typeof t==`function`&&typeof n!=`function`?(r=n,n=t):i=t;let a=ML(i),o=r?-1:1;s(e,void 0,[])();function s(e,i,c){let l=e&&typeof e==`object`?e:{};if(typeof l.type==`string`){let t=typeof l.tagName==`string`?l.tagName:typeof l.name==`string`?l.name:void 0;Object.defineProperty(u,`name`,{value:`node (`+zL(e.type+(t?`<`+t+`>`:``))+`)`})}return u;function u(){let l=BL,u,d,f;if((!t||a(e,i,c[c.length-1]||void 0))&&(l=HL(n(e,c)),l[0]===!1))return l;if(`children`in e&&e.children){let t=e;if(t.children&&l[0]!==`skip`)for(d=(r?t.children.length:-1)+o,f=c.concat(t);d>-1&&d<t.children.length;){let e=t.children[d];if(u=s(e,d,f)(),u[0]===!1)return u;d=typeof u[1]==`number`?u[1]:d+o}}return l}}}function HL(e){return Array.isArray(e)?e:typeof e==`number`?[!0,e]:e==null?BL:[e]}function UL(e,t,n,r){let i,a,o;typeof t==`function`&&typeof n!=`function`?(a=void 0,o=t,i=n):(a=t,o=n,i=r),VL(e,a,s,i);function s(e,t){let n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return o(e,r,n)}}var WL={}.hasOwnProperty,GL={};function KL(e,t){let n=t||GL,r=new Map,i=new Map,a={all:s,applyData:JL,definitionById:r,footnoteById:i,footnoteCounts:new Map,footnoteOrder:[],handlers:{...hL,...n.handlers},one:o,options:n,patch:qL,wrap:XL};return UL(e,function(e){if(e.type===`definition`||e.type===`footnoteDefinition`){let t=e.type===`definition`?r:i,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}),a;function o(e,t){let n=e.type,r=a.handlers[n];if(WL.call(a.handlers,n)&&r)return r(a,e,t);if(a.options.passThrough&&a.options.passThrough.includes(n)){if(`children`in e){let{children:t,...n}=e,r=OL(n);return r.children=a.all(e),r}return OL(e)}return(a.options.unknownHandler||YL)(a,e,t)}function s(e){let t=[];if(`children`in e){let n=e.children,r=-1;for(;++r<n.length;){let i=a.one(n[r],e);if(i){if(r&&n[r-1].type===`break`&&(!Array.isArray(i)&&i.type===`text`&&(i.value=ZL(i.value)),!Array.isArray(i)&&i.type===`element`)){let e=i.children[0];e&&e.type===`text`&&(e.value=ZL(e.value))}Array.isArray(i)?t.push(...i):t.push(i)}}}return t}}function qL(e,t){e.position&&(t.position=tN(e))}function JL(e,t){let n=t;if(e&&e.data){let t=e.data.hName,r=e.data.hChildren,i=e.data.hProperties;typeof t==`string`&&(n.type===`element`?n.tagName=t:n={type:`element`,tagName:t,properties:{},children:`children`in n?n.children:[n]}),n.type===`element`&&i&&Object.assign(n.properties,OL(i)),`children`in n&&n.children&&r!=null&&(n.children=r)}return n}function YL(e,t){let n=t.data||{},r=`value`in t&&!(WL.call(n,`hProperties`)||WL.call(n,`hChildren`))?{type:`text`,value:t.value}:{type:`element`,tagName:`div`,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function XL(e,t){let n=[],r=-1;for(t&&n.push({type:`text`,value:`
267
+ `}]}}var qL=(function(e){if(e==null)return QL;if(typeof e==`function`)return ZL(e);if(typeof e==`object`)return Array.isArray(e)?JL(e):YL(e);if(typeof e==`string`)return XL(e);throw Error(`Expected function, string, or object as test`)});function JL(e){let t=[],n=-1;for(;++n<e.length;)t[n]=qL(e[n]);return ZL(r);function r(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1}}function YL(e){let t=e;return ZL(n);function n(n){let r=n,i;for(i in e)if(r[i]!==t[i])return!1;return!0}}function XL(e){return ZL(t);function t(t){return t&&t.type===e}}function ZL(e){return t;function t(t,n,r){return!!($L(t)&&e.call(this,t,typeof n==`number`?n:void 0,r||void 0))}}function QL(){return!0}function $L(e){return typeof e==`object`&&!!e&&`type`in e}function eR(e){return e}var tR=[];function nR(e,t,n,r){let i;typeof t==`function`&&typeof n!=`function`?(r=n,n=t):i=t;let a=qL(i),o=r?-1:1;s(e,void 0,[])();function s(e,i,c){let l=e&&typeof e==`object`?e:{};if(typeof l.type==`string`){let t=typeof l.tagName==`string`?l.tagName:typeof l.name==`string`?l.name:void 0;Object.defineProperty(u,`name`,{value:`node (`+eR(e.type+(t?`<`+t+`>`:``))+`)`})}return u;function u(){let l=tR,u,d,f;if((!t||a(e,i,c[c.length-1]||void 0))&&(l=rR(n(e,c)),l[0]===!1))return l;if(`children`in e&&e.children){let t=e;if(t.children&&l[0]!==`skip`)for(d=(r?t.children.length:-1)+o,f=c.concat(t);d>-1&&d<t.children.length;){let e=t.children[d];if(u=s(e,d,f)(),u[0]===!1)return u;d=typeof u[1]==`number`?u[1]:d+o}}return l}}}function rR(e){return Array.isArray(e)?e:typeof e==`number`?[!0,e]:e==null?tR:[e]}function iR(e,t,n,r){let i,a,o;typeof t==`function`&&typeof n!=`function`?(a=void 0,o=t,i=n):(a=t,o=n,i=r),nR(e,a,s,i);function s(e,t){let n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return o(e,r,n)}}var aR={}.hasOwnProperty,oR={};function sR(e,t){let n=t||oR,r=new Map,i=new Map,a={all:s,applyData:lR,definitionById:r,footnoteById:i,footnoteCounts:new Map,footnoteOrder:[],handlers:{...AL,...n.handlers},one:o,options:n,patch:cR,wrap:dR};return iR(e,function(e){if(e.type===`definition`||e.type===`footnoteDefinition`){let t=e.type===`definition`?r:i,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}),a;function o(e,t){let n=e.type,r=a.handlers[n];if(aR.call(a.handlers,n)&&r)return r(a,e,t);if(a.options.passThrough&&a.options.passThrough.includes(n)){if(`children`in e){let{children:t,...n}=e,r=UL(n);return r.children=a.all(e),r}return UL(e)}return(a.options.unknownHandler||uR)(a,e,t)}function s(e){let t=[];if(`children`in e){let n=e.children,r=-1;for(;++r<n.length;){let i=a.one(n[r],e);if(i){if(r&&n[r-1].type===`break`&&(!Array.isArray(i)&&i.type===`text`&&(i.value=fR(i.value)),!Array.isArray(i)&&i.type===`element`)){let e=i.children[0];e&&e.type===`text`&&(e.value=fR(e.value))}Array.isArray(i)?t.push(...i):t.push(i)}}}return t}}function cR(e,t){e.position&&(t.position=gN(e))}function lR(e,t){let n=t;if(e&&e.data){let t=e.data.hName,r=e.data.hChildren,i=e.data.hProperties;typeof t==`string`&&(n.type===`element`?n.tagName=t:n={type:`element`,tagName:t,properties:{},children:`children`in n?n.children:[n]}),n.type===`element`&&i&&Object.assign(n.properties,UL(i)),`children`in n&&n.children&&r!=null&&(n.children=r)}return n}function uR(e,t){let n=t.data||{},r=`value`in t&&!(aR.call(n,`hProperties`)||aR.call(n,`hChildren`))?{type:`text`,value:t.value}:{type:`element`,tagName:`div`,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function dR(e,t){let n=[],r=-1;for(t&&n.push({type:`text`,value:`
268
268
  `});++r<e.length;)r&&n.push({type:`text`,value:`
269
269
  `}),n.push(e[r]);return t&&e.length>0&&n.push({type:`text`,value:`
270
- `}),n}function ZL(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function QL(e,t){let n=KL(e,t),r=n.one(e,void 0),i=jL(n),a=Array.isArray(r)?{type:`root`,children:r}:r||{type:`root`,children:[]};return i&&(`children`in a,a.children.push({type:`text`,value:`
271
- `},i)),a}function $L(e,t){return e&&`run`in e?async function(n,r){let i=QL(n,{file:r,...t});await e.run(i,r)}:function(n,r){return QL(n,{file:r,...e||t})}}function eR(e){if(e)throw e}var tR=o(((e,t)=>{var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=function(e){return typeof Array.isArray==`function`?Array.isArray(e):r.call(e)===`[object Array]`},s=function(e){if(!e||r.call(e)!==`[object Object]`)return!1;var t=n.call(e,`constructor`),i=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,`isPrototypeOf`);if(e.constructor&&!t&&!i)return!1;for(var a in e);return a===void 0||n.call(e,a)},c=function(e,t){i&&t.name===`__proto__`?i(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,t){if(t===`__proto__`){if(!n.call(e,t))return;if(a)return a(e,t).value}return e[t]};t.exports=function e(){var t,n,r,i,a,u,d=arguments[0],f=1,p=arguments.length,m=!1;for(typeof d==`boolean`&&(m=d,d=arguments[1]||{},f=2),(d==null||typeof d!=`object`&&typeof d!=`function`)&&(d={});f<p;++f)if(t=arguments[f],t!=null)for(n in t)r=l(d,n),i=l(t,n),d!==i&&(m&&i&&(s(i)||(a=o(i)))?(a?(a=!1,u=r&&o(r)?r:[]):u=r&&s(r)?r:{},c(d,{name:n,newValue:e(m,u,i)})):i!==void 0&&c(d,{name:n,newValue:i}));return d}}));function nR(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function rR(){let e=[],t={run:n,use:r};return t;function n(...t){let n=-1,r=t.pop();if(typeof r!=`function`)throw TypeError(`Expected function as last argument, not `+r);i(null,...t);function i(a,...o){let s=e[++n],c=-1;if(a){r(a);return}for(;++c<t.length;)(o[c]===null||o[c]===void 0)&&(o[c]=t[c]);t=o,s?iR(s,i)(...o):r(null,...o)}}function r(n){if(typeof n!=`function`)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}}function iR(e,t){let n;return r;function r(...t){let r=e.length>t.length,o;r&&t.push(i);try{o=e.apply(this,t)}catch(e){let t=e;if(r&&n)throw t;return i(t)}r||(o&&o.then&&typeof o.then==`function`?o.then(a,i):o instanceof Error?i(o):a(o))}function i(e,...r){n||(n=!0,t(e,...r))}function a(e){i(null,e)}}var aR={basename:oR,dirname:sR,extname:cR,join:lR,sep:`/`};function oR(e,t){if(t!==void 0&&typeof t!=`string`)throw TypeError(`"ext" argument must be a string`);fR(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?``:e.slice(n,r)}if(t===e)return``;let o=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else o<0&&(a=!0,o=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(r=i):(s=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function sR(e){if(fR(e),e.length===0)return`.`;let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||=!0;return t<0?e.codePointAt(0)===47?`/`:`.`:t===1&&e.codePointAt(0)===47?`//`:e.slice(0,t)}function cR(e){fR(e);let t=e.length,n=-1,r=0,i=-1,a=0,o;for(;t--;){let s=e.codePointAt(t);if(s===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),s===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?``:e.slice(i,n)}function lR(...e){let t=-1,n;for(;++t<e.length;)fR(e[t]),e[t]&&(n=n===void 0?e[t]:n+`/`+e[t]);return n===void 0?`.`:uR(n)}function uR(e){fR(e);let t=e.codePointAt(0)===47,n=dR(e,!t);return n.length===0&&!t&&(n=`.`),n.length>0&&e.codePointAt(e.length-1)===47&&(n+=`/`),t?`/`+n:n}function dR(e,t){let n=``,r=0,i=-1,a=0,o=-1,s,c;for(;++o<=e.length;){if(o<e.length)s=e.codePointAt(o);else if(s===47)break;else s=47;if(s===47){if(!(i===o-1||a===1))if(i!==o-1&&a===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(c=n.lastIndexOf(`/`),c!==n.length-1){c<0?(n=``,r=0):(n=n.slice(0,c),r=n.length-1-n.lastIndexOf(`/`)),i=o,a=0;continue}}else if(n.length>0){n=``,r=0,i=o,a=0;continue}}t&&(n=n.length>0?n+`/..`:`..`,r=2)}else n.length>0?n+=`/`+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1;i=o,a=0}else s===46&&a>-1?a++:a=-1}return n}function fR(e){if(typeof e!=`string`)throw TypeError(`Path must be a string. Received `+JSON.stringify(e))}var pR={cwd:mR};function mR(){return`/`}function hR(e){return!!(typeof e==`object`&&e&&`href`in e&&e.href&&`protocol`in e&&e.protocol&&e.auth===void 0)}function gR(e){if(typeof e==`string`)e=new URL(e);else if(!hR(e)){let t=TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code=`ERR_INVALID_ARG_TYPE`,t}if(e.protocol!==`file:`){let e=TypeError(`The URL must be of scheme file`);throw e.code=`ERR_INVALID_URL_SCHEME`,e}return _R(e)}function _R(e){if(e.hostname!==``){let e=TypeError(`File URL host must be "localhost" or empty on darwin`);throw e.code=`ERR_INVALID_FILE_URL_HOST`,e}let t=e.pathname,n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){let e=t.codePointAt(n+2);if(e===70||e===102){let e=TypeError(`File URL path must not include encoded / characters`);throw e.code=`ERR_INVALID_FILE_URL_PATH`,e}}return decodeURIComponent(t)}var vR=[`history`,`path`,`basename`,`stem`,`extname`,`dirname`],yR=class{constructor(e){let t;t=e?hR(e)?{path:e}:typeof e==`string`||CR(e)?{value:e}:e:{},this.cwd=`cwd`in t?``:pR.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<vR.length;){let e=vR[n];e in t&&t[e]!==void 0&&t[e]!==null&&(this[e]=e===`history`?[...t[e]]:t[e])}let r;for(r in t)vR.includes(r)||(this[r]=t[r])}get basename(){return typeof this.path==`string`?aR.basename(this.path):void 0}set basename(e){xR(e,`basename`),bR(e,`basename`),this.path=aR.join(this.dirname||``,e)}get dirname(){return typeof this.path==`string`?aR.dirname(this.path):void 0}set dirname(e){SR(this.basename,`dirname`),this.path=aR.join(e||``,this.basename)}get extname(){return typeof this.path==`string`?aR.extname(this.path):void 0}set extname(e){if(bR(e,`extname`),SR(this.dirname,`extname`),e){if(e.codePointAt(0)!==46)throw Error("`extname` must start with `.`");if(e.includes(`.`,1))throw Error("`extname` cannot contain multiple dots")}this.path=aR.join(this.dirname,this.stem+(e||``))}get path(){return this.history[this.history.length-1]}set path(e){hR(e)&&(e=gR(e)),xR(e,`path`),this.path!==e&&this.history.push(e)}get stem(){return typeof this.path==`string`?aR.basename(this.path,this.extname):void 0}set stem(e){xR(e,`stem`),bR(e,`stem`),this.path=aR.join(this.dirname||``,e+(this.extname||``))}fail(e,t,n){let r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){let r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){let r=new oN(e,t,n);return this.path&&(r.name=this.path+`:`+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){return this.value===void 0?``:typeof this.value==`string`?this.value:new TextDecoder(e||void 0).decode(this.value)}};function bR(e,t){if(e&&e.includes(aR.sep))throw Error("`"+t+"` cannot be a path: did not expect `"+aR.sep+"`")}function xR(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function SR(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}function CR(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}var wR=(function(e){let t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r}),TR=l(tR(),1),ER={}.hasOwnProperty,DR=new class e extends wR{constructor(){super(`copy`),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=rR()}copy(){let t=new e,n=-1;for(;++n<this.attachers.length;){let e=this.attachers[n];t.use(...e)}return t.data((0,TR.default)(!0,{},this.namespace)),t}data(e,t){return typeof e==`string`?arguments.length===2?(AR(`data`,this.frozen),this.namespace[e]=t,this):ER.call(this.namespace,e)&&this.namespace[e]||void 0:e?(AR(`data`,this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;let e=this;for(;++this.freezeIndex<this.attachers.length;){let[t,...n]=this.attachers[this.freezeIndex];if(n[0]===!1)continue;n[0]===!0&&(n[0]=void 0);let r=t.call(e,...n);typeof r==`function`&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=1/0,this}parse(e){this.freeze();let t=NR(e),n=this.parser||this.Parser;return OR(`parse`,n),n(String(t),t)}process(e,t){let n=this;return this.freeze(),OR(`process`,this.parser||this.Parser),kR(`process`,this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,i){let a=NR(e),o=n.parse(a);n.run(o,a,function(e,t,r){if(e||!t||!r)return s(e);let i=t,a=n.stringify(i,r);FR(a)?r.value=a:r.result=a,s(e,r)});function s(e,n){e||!n?i(e):r?r(n):t(void 0,n)}}}processSync(e){let t=!1,n;return this.freeze(),OR(`processSync`,this.parser||this.Parser),kR(`processSync`,this.compiler||this.Compiler),this.process(e,r),MR(`processSync`,`process`,t),n;function r(e,r){t=!0,eR(e),n=r}}run(e,t,n){jR(e),this.freeze();let r=this.transformers;return!n&&typeof t==`function`&&(n=t,t=void 0),n?i(void 0,n):new Promise(i);function i(i,a){let o=NR(t);r.run(e,o,s);function s(t,r,o){let s=r||e;t?a(t):i?i(s):n(void 0,s,o)}}}runSync(e,t){let n=!1,r;return this.run(e,t,i),MR(`runSync`,`run`,n),r;function i(e,t){eR(e),r=t,n=!0}}stringify(e,t){this.freeze();let n=NR(t),r=this.compiler||this.Compiler;return kR(`stringify`,r),jR(e),r(e,n)}use(e,...t){let n=this.attachers,r=this.namespace;if(AR(`use`,this.frozen),e!=null)if(typeof e==`function`)s(e,t);else if(typeof e==`object`)Array.isArray(e)?o(e):a(e);else throw TypeError("Expected usable value, not `"+e+"`");return this;function i(e){if(typeof e==`function`)s(e,[]);else if(typeof e==`object`)if(Array.isArray(e)){let[t,...n]=e;s(t,n)}else a(e);else throw TypeError("Expected usable value, not `"+e+"`")}function a(e){if(!(`plugins`in e)&&!(`settings`in e))throw Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");o(e.plugins),e.settings&&(r.settings=(0,TR.default)(!0,r.settings,e.settings))}function o(e){let t=-1;if(e!=null)if(Array.isArray(e))for(;++t<e.length;){let n=e[t];i(n)}else throw TypeError("Expected a list of plugins, not `"+e+"`")}function s(e,t){let r=-1,i=-1;for(;++r<n.length;)if(n[r][0]===e){i=r;break}if(i===-1)n.push([e,...t]);else if(t.length>0){let[r,...a]=t,o=n[i][1];nR(o)&&nR(r)&&(r=(0,TR.default)(!0,o,r)),n[i]=[e,r,...a]}}}}().freeze();function OR(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `parser`")}function kR(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `compiler`")}function AR(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function jR(e){if(!nR(e)||typeof e.type!=`string`)throw TypeError("Expected node, got `"+e+"`")}function MR(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function NR(e){return PR(e)?e:new yR(e)}function PR(e){return!!(e&&typeof e==`object`&&`message`in e&&`messages`in e)}function FR(e){return typeof e==`string`||IR(e)}function IR(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}var LR=[],RR={allowDangerousHtml:!0},zR=/^(https?|ircs?|mailto|xmpp)$/i,BR=[{from:`astPlugins`,id:`remove-buggy-html-in-markdown-parser`},{from:`allowDangerousHtml`,id:`remove-buggy-html-in-markdown-parser`},{from:`allowNode`,id:`replace-allownode-allowedtypes-and-disallowedtypes`,to:`allowElement`},{from:`allowedTypes`,id:`replace-allownode-allowedtypes-and-disallowedtypes`,to:`allowedElements`},{from:`className`,id:`remove-classname`},{from:`disallowedTypes`,id:`replace-allownode-allowedtypes-and-disallowedtypes`,to:`disallowedElements`},{from:`escapeHtml`,id:`remove-buggy-html-in-markdown-parser`},{from:`includeElementIndex`,id:`#remove-includeelementindex`},{from:`includeNodeIndex`,id:`change-includenodeindex-to-includeelementindex`},{from:`linkTarget`,id:`remove-linktarget`},{from:`plugins`,id:`change-plugins-to-remarkplugins`,to:`remarkPlugins`},{from:`rawSourcePos`,id:`#remove-rawsourcepos`},{from:`renderers`,id:`change-renderers-to-components`,to:`components`},{from:`source`,id:`change-source-to-children`,to:`children`},{from:`sourcePos`,id:`#remove-sourcepos`},{from:`transformImageUri`,id:`#add-urltransform`,to:`urlTransform`},{from:`transformLinkUri`,id:`#add-urltransform`,to:`urlTransform`}];function VR(e){let t=HR(e),n=UR(e);return WR(t.runSync(t.parse(n),n),e)}function HR(e){let t=e.rehypePlugins||LR,n=e.remarkPlugins||LR,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...RR}:RR;return DR().use(RI).use(n).use($L,r).use(t)}function UR(e){let t=e.children||``,n=new yR;return typeof t==`string`?n.value=t:``+t,n}function WR(e,t){let n=t.allowedElements,r=t.allowElement,i=t.components,a=t.disallowedElements,o=t.skipHtml,s=t.unwrapDisallowed,c=t.urlTransform||GR;for(let e of BR)Object.hasOwn(t,e.from)&&``+e.from+(e.to?"use `"+e.to+"` instead":`remove it`)+e.id;return UL(e,l),mN(e,{Fragment:Q.Fragment,components:i,ignoreInvalidStyle:!0,jsx:Q.jsx,jsxs:Q.jsxs,passKeys:!0,passNode:!0});function l(e,t,i){if(e.type===`raw`&&i&&typeof t==`number`)return o?i.children.splice(t,1):i.children[t]={type:`text`,value:e.value},t;if(e.type===`element`){let t;for(t in IN)if(Object.hasOwn(IN,t)&&Object.hasOwn(e.properties,t)){let n=e.properties[t],r=IN[t];(r===null||r.includes(e.tagName))&&(e.properties[t]=c(String(n||``),t,e))}}if(e.type===`element`){let o=n?!n.includes(e.tagName):a?a.includes(e.tagName):!1;if(!o&&r&&typeof t==`number`&&(o=!r(e,t,i)),o&&i&&typeof t==`number`)return s&&e.children?i.children.splice(t,1,...e.children):i.children.splice(t,1),t}}}function GR(e){let t=e.indexOf(`:`),n=e.indexOf(`?`),r=e.indexOf(`#`),i=e.indexOf(`/`);return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||zR.test(e.slice(0,t))?e:``}var KR=l(o(((e,t)=>{(function(){var e=t===void 0?function(){return this||(0,eval)(`this`)}():t.exports=i;e.format=i,e.vsprintf=r,typeof console<`u`&&typeof console.log==`function`&&(e.printf=n);function n(){console.log(i.apply(null,arguments))}function r(e,t){return i.apply(null,[e].concat(t))}function i(e){for(var t=1,n=[].slice.call(arguments),r=0,i=e.length,a=``,o,s=!1,c,l,u=!1,d,f=function(){return n[t++]},p=function(){for(var t=``;/\d/.test(e[r]);)t+=e[r++],o=e[r];return t.length>0?parseInt(t):null};r<i;++r)if(o=e[r],s)switch(s=!1,o==`.`?(u=!1,o=e[++r]):o==`0`&&e[r+1]==`.`?(u=!0,r+=2,o=e[r]):u=!0,d=p(),o){case`b`:a+=parseInt(f(),10).toString(2);break;case`c`:c=f(),typeof c==`string`||c instanceof String?a+=c:a+=String.fromCharCode(parseInt(c,10));break;case`d`:a+=parseInt(f(),10);break;case`f`:l=String(parseFloat(f()).toFixed(d||6)),a+=u?l:l.replace(/^0/,``);break;case`j`:a+=JSON.stringify(f());break;case`o`:a+=`0`+parseInt(f(),10).toString(8);break;case`s`:a+=f();break;case`x`:a+=`0x`+parseInt(f(),10).toString(16);break;case`X`:a+=`0x`+parseInt(f(),10).toString(16).toUpperCase();break;default:a+=o;break}else o===`%`?s=!0:a+=o;return a}})()}))(),1),qR=Object.assign(JR(Error),{eval:JR(EvalError),range:JR(RangeError),reference:JR(ReferenceError),syntax:JR(SyntaxError),type:JR(TypeError),uri:JR(URIError)});function JR(e){return t.displayName=e.displayName||e.name,t;function t(t,...n){return new e(t&&(0,KR.default)(t,...n))}}var YR={}.hasOwnProperty,XR={yaml:`-`,toml:`+`};function ZR(e){let t=[],n=-1,r=Array.isArray(e)?e:e?[e]:[`yaml`];for(;++n<r.length;)t[n]=QR(r[n]);return t}function QR(e){let t=e;if(typeof t==`string`){if(!YR.call(XR,t))throw qR("Missing matter definition for `%s`",t);t={type:t,marker:XR[t]}}else if(typeof t!=`object`)throw qR("Expected matter to be an object, not `%j`",t);if(!YR.call(t,`type`))throw qR("Missing `type` in matter `%j`",t);if(!YR.call(t,`fence`)&&!YR.call(t,`marker`))throw qR("Missing `marker` or `fence` in matter `%j`",t);return t}function $R(e){let t=ZR(e),n={},r=-1;for(;++r<t.length;){let e=t[r],i=tz(e,`open`).charCodeAt(0),a=ez(e),o=n[i];Array.isArray(o)?o.push(a):n[i]=[a]}return{flow:n}}function ez(e){let t=e.anywhere,n=e.type,r=n+`Fence`,i=r+`Sequence`,a=n+`Value`,o={tokenize:u,partial:!0},s,c=0;return{tokenize:l,concrete:!0};function l(l,u,d){let f=this;return p;function p(a){let o=f.now();return o.column===1&&(o.line===1||t)&&(s=tz(e,`open`),c=0,a===s.charCodeAt(c))?(l.enter(n),l.enter(r),l.enter(i),m(a)):d(a)}function m(e){return c===s.length?(l.exit(i),sP(e)?(l.enter(`whitespace`),h(e)):g(e)):e===s.charCodeAt(c++)?(l.consume(e),m):d(e)}function h(e){return sP(e)?(l.consume(e),h):(l.exit(`whitespace`),g(e))}function g(t){return aP(t)?(l.exit(r),l.enter(`lineEnding`),l.consume(t),l.exit(`lineEnding`),s=tz(e,`close`),c=0,l.attempt(o,b,_)):d(t)}function _(e){return e===null||aP(e)?y(e):(l.enter(a),v(e))}function v(e){return e===null||aP(e)?(l.exit(a),y(e)):(l.consume(e),v)}function y(e){return e===null?d(e):(l.enter(`lineEnding`),l.consume(e),l.exit(`lineEnding`),l.attempt(o,b,_))}function b(e){return l.exit(n),u(e)}}function u(e,t,n){let a=0;return o;function o(t){return t===s.charCodeAt(a)?(e.enter(r),e.enter(i),c(t)):n(t)}function c(t){return a===s.length?(e.exit(i),sP(t)?(e.enter(`whitespace`),l(t)):u(t)):t===s.charCodeAt(a++)?(e.consume(t),c):n(t)}function l(t){return sP(t)?(e.consume(t),l):(e.exit(`whitespace`),u(t))}function u(i){return i===null||aP(i)?(e.exit(r),t(i)):n(i)}}}function tz(e,t){return e.marker?nz(e.marker,t).repeat(3):nz(e.fence,t)}function nz(e,t){return typeof e==`string`?e:e[t]}function rz(e){if(typeof e!=`string`)throw TypeError(`Expected a string`);return e.replace(/[|\\{}()[\]^$+*?.]/g,`\\$&`).replace(/-/g,`\\x2d`)}function iz(e){let t=ZR(e),n={},r={},i=-1;for(;++i<t.length;){let e=t[i];n[e.type]=az(e),r[e.type]=oz,r[e.type+`Value`]=sz}return{enter:n,exit:r}}function az(e){return t;function t(t){this.enter({type:e.type,value:``},t),this.buffer()}}function oz(e){let t=this.resume(),n=this.stack[this.stack.length-1];`value`in n,this.exit(e),n.value=t.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,``)}function sz(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}function cz(e){let t=[],n={},r=ZR(e),i=-1;for(;++i<r.length;){let e=r[i];n[e.type]=lz(e);let a=uz(e,`open`);t.push({atBreak:!0,character:a.charAt(0),after:rz(a.charAt(1))})}return{unsafe:t,handlers:n}}function lz(e){let t=uz(e,`open`),n=uz(e,`close`);return r;function r(e){return t+(e.value?`
270
+ `}),n}function fR(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function pR(e,t){let n=sR(e,t),r=n.one(e,void 0),i=KL(n),a=Array.isArray(r)?{type:`root`,children:r}:r||{type:`root`,children:[]};return i&&(`children`in a,a.children.push({type:`text`,value:`
271
+ `},i)),a}function mR(e,t){return e&&`run`in e?async function(n,r){let i=pR(n,{file:r,...t});await e.run(i,r)}:function(n,r){return pR(n,{file:r,...e||t})}}function hR(e){if(e)throw e}var gR=o(((e,t)=>{var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=function(e){return typeof Array.isArray==`function`?Array.isArray(e):r.call(e)===`[object Array]`},s=function(e){if(!e||r.call(e)!==`[object Object]`)return!1;var t=n.call(e,`constructor`),i=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,`isPrototypeOf`);if(e.constructor&&!t&&!i)return!1;for(var a in e);return a===void 0||n.call(e,a)},c=function(e,t){i&&t.name===`__proto__`?i(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,t){if(t===`__proto__`){if(!n.call(e,t))return;if(a)return a(e,t).value}return e[t]};t.exports=function e(){var t,n,r,i,a,u,d=arguments[0],f=1,p=arguments.length,m=!1;for(typeof d==`boolean`&&(m=d,d=arguments[1]||{},f=2),(d==null||typeof d!=`object`&&typeof d!=`function`)&&(d={});f<p;++f)if(t=arguments[f],t!=null)for(n in t)r=l(d,n),i=l(t,n),d!==i&&(m&&i&&(s(i)||(a=o(i)))?(a?(a=!1,u=r&&o(r)?r:[]):u=r&&s(r)?r:{},c(d,{name:n,newValue:e(m,u,i)})):i!==void 0&&c(d,{name:n,newValue:i}));return d}}));function _R(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function vR(){let e=[],t={run:n,use:r};return t;function n(...t){let n=-1,r=t.pop();if(typeof r!=`function`)throw TypeError(`Expected function as last argument, not `+r);i(null,...t);function i(a,...o){let s=e[++n],c=-1;if(a){r(a);return}for(;++c<t.length;)(o[c]===null||o[c]===void 0)&&(o[c]=t[c]);t=o,s?yR(s,i)(...o):r(null,...o)}}function r(n){if(typeof n!=`function`)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}}function yR(e,t){let n;return r;function r(...t){let r=e.length>t.length,o;r&&t.push(i);try{o=e.apply(this,t)}catch(e){let t=e;if(r&&n)throw t;return i(t)}r||(o&&o.then&&typeof o.then==`function`?o.then(a,i):o instanceof Error?i(o):a(o))}function i(e,...r){n||(n=!0,t(e,...r))}function a(e){i(null,e)}}var bR={basename:xR,dirname:SR,extname:CR,join:wR,sep:`/`};function xR(e,t){if(t!==void 0&&typeof t!=`string`)throw TypeError(`"ext" argument must be a string`);DR(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?``:e.slice(n,r)}if(t===e)return``;let o=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else o<0&&(a=!0,o=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(r=i):(s=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function SR(e){if(DR(e),e.length===0)return`.`;let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||=!0;return t<0?e.codePointAt(0)===47?`/`:`.`:t===1&&e.codePointAt(0)===47?`//`:e.slice(0,t)}function CR(e){DR(e);let t=e.length,n=-1,r=0,i=-1,a=0,o;for(;t--;){let s=e.codePointAt(t);if(s===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),s===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?``:e.slice(i,n)}function wR(...e){let t=-1,n;for(;++t<e.length;)DR(e[t]),e[t]&&(n=n===void 0?e[t]:n+`/`+e[t]);return n===void 0?`.`:TR(n)}function TR(e){DR(e);let t=e.codePointAt(0)===47,n=ER(e,!t);return n.length===0&&!t&&(n=`.`),n.length>0&&e.codePointAt(e.length-1)===47&&(n+=`/`),t?`/`+n:n}function ER(e,t){let n=``,r=0,i=-1,a=0,o=-1,s,c;for(;++o<=e.length;){if(o<e.length)s=e.codePointAt(o);else if(s===47)break;else s=47;if(s===47){if(!(i===o-1||a===1))if(i!==o-1&&a===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(c=n.lastIndexOf(`/`),c!==n.length-1){c<0?(n=``,r=0):(n=n.slice(0,c),r=n.length-1-n.lastIndexOf(`/`)),i=o,a=0;continue}}else if(n.length>0){n=``,r=0,i=o,a=0;continue}}t&&(n=n.length>0?n+`/..`:`..`,r=2)}else n.length>0?n+=`/`+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1;i=o,a=0}else s===46&&a>-1?a++:a=-1}return n}function DR(e){if(typeof e!=`string`)throw TypeError(`Path must be a string. Received `+JSON.stringify(e))}var OR={cwd:kR};function kR(){return`/`}function AR(e){return!!(typeof e==`object`&&e&&`href`in e&&e.href&&`protocol`in e&&e.protocol&&e.auth===void 0)}function jR(e){if(typeof e==`string`)e=new URL(e);else if(!AR(e)){let t=TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code=`ERR_INVALID_ARG_TYPE`,t}if(e.protocol!==`file:`){let e=TypeError(`The URL must be of scheme file`);throw e.code=`ERR_INVALID_URL_SCHEME`,e}return MR(e)}function MR(e){if(e.hostname!==``){let e=TypeError(`File URL host must be "localhost" or empty on darwin`);throw e.code=`ERR_INVALID_FILE_URL_HOST`,e}let t=e.pathname,n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){let e=t.codePointAt(n+2);if(e===70||e===102){let e=TypeError(`File URL path must not include encoded / characters`);throw e.code=`ERR_INVALID_FILE_URL_PATH`,e}}return decodeURIComponent(t)}var NR=[`history`,`path`,`basename`,`stem`,`extname`,`dirname`],PR=class{constructor(e){let t;t=e?AR(e)?{path:e}:typeof e==`string`||RR(e)?{value:e}:e:{},this.cwd=`cwd`in t?``:OR.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<NR.length;){let e=NR[n];e in t&&t[e]!==void 0&&t[e]!==null&&(this[e]=e===`history`?[...t[e]]:t[e])}let r;for(r in t)NR.includes(r)||(this[r]=t[r])}get basename(){return typeof this.path==`string`?bR.basename(this.path):void 0}set basename(e){IR(e,`basename`),FR(e,`basename`),this.path=bR.join(this.dirname||``,e)}get dirname(){return typeof this.path==`string`?bR.dirname(this.path):void 0}set dirname(e){LR(this.basename,`dirname`),this.path=bR.join(e||``,this.basename)}get extname(){return typeof this.path==`string`?bR.extname(this.path):void 0}set extname(e){if(FR(e,`extname`),LR(this.dirname,`extname`),e){if(e.codePointAt(0)!==46)throw Error("`extname` must start with `.`");if(e.includes(`.`,1))throw Error("`extname` cannot contain multiple dots")}this.path=bR.join(this.dirname,this.stem+(e||``))}get path(){return this.history[this.history.length-1]}set path(e){AR(e)&&(e=jR(e)),IR(e,`path`),this.path!==e&&this.history.push(e)}get stem(){return typeof this.path==`string`?bR.basename(this.path,this.extname):void 0}set stem(e){IR(e,`stem`),FR(e,`stem`),this.path=bR.join(this.dirname||``,e+(this.extname||``))}fail(e,t,n){let r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){let r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){let r=new xN(e,t,n);return this.path&&(r.name=this.path+`:`+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){return this.value===void 0?``:typeof this.value==`string`?this.value:new TextDecoder(e||void 0).decode(this.value)}};function FR(e,t){if(e&&e.includes(bR.sep))throw Error("`"+t+"` cannot be a path: did not expect `"+bR.sep+"`")}function IR(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function LR(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}function RR(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}var zR=(function(e){let t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r}),BR=l(gR(),1),VR={}.hasOwnProperty,HR=new class e extends zR{constructor(){super(`copy`),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=vR()}copy(){let t=new e,n=-1;for(;++n<this.attachers.length;){let e=this.attachers[n];t.use(...e)}return t.data((0,BR.default)(!0,{},this.namespace)),t}data(e,t){return typeof e==`string`?arguments.length===2?(GR(`data`,this.frozen),this.namespace[e]=t,this):VR.call(this.namespace,e)&&this.namespace[e]||void 0:e?(GR(`data`,this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;let e=this;for(;++this.freezeIndex<this.attachers.length;){let[t,...n]=this.attachers[this.freezeIndex];if(n[0]===!1)continue;n[0]===!0&&(n[0]=void 0);let r=t.call(e,...n);typeof r==`function`&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=1/0,this}parse(e){this.freeze();let t=JR(e),n=this.parser||this.Parser;return UR(`parse`,n),n(String(t),t)}process(e,t){let n=this;return this.freeze(),UR(`process`,this.parser||this.Parser),WR(`process`,this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,i){let a=JR(e),o=n.parse(a);n.run(o,a,function(e,t,r){if(e||!t||!r)return s(e);let i=t,a=n.stringify(i,r);XR(a)?r.value=a:r.result=a,s(e,r)});function s(e,n){e||!n?i(e):r?r(n):t(void 0,n)}}}processSync(e){let t=!1,n;return this.freeze(),UR(`processSync`,this.parser||this.Parser),WR(`processSync`,this.compiler||this.Compiler),this.process(e,r),qR(`processSync`,`process`,t),n;function r(e,r){t=!0,hR(e),n=r}}run(e,t,n){KR(e),this.freeze();let r=this.transformers;return!n&&typeof t==`function`&&(n=t,t=void 0),n?i(void 0,n):new Promise(i);function i(i,a){let o=JR(t);r.run(e,o,s);function s(t,r,o){let s=r||e;t?a(t):i?i(s):n(void 0,s,o)}}}runSync(e,t){let n=!1,r;return this.run(e,t,i),qR(`runSync`,`run`,n),r;function i(e,t){hR(e),r=t,n=!0}}stringify(e,t){this.freeze();let n=JR(t),r=this.compiler||this.Compiler;return WR(`stringify`,r),KR(e),r(e,n)}use(e,...t){let n=this.attachers,r=this.namespace;if(GR(`use`,this.frozen),e!=null)if(typeof e==`function`)s(e,t);else if(typeof e==`object`)Array.isArray(e)?o(e):a(e);else throw TypeError("Expected usable value, not `"+e+"`");return this;function i(e){if(typeof e==`function`)s(e,[]);else if(typeof e==`object`)if(Array.isArray(e)){let[t,...n]=e;s(t,n)}else a(e);else throw TypeError("Expected usable value, not `"+e+"`")}function a(e){if(!(`plugins`in e)&&!(`settings`in e))throw Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");o(e.plugins),e.settings&&(r.settings=(0,BR.default)(!0,r.settings,e.settings))}function o(e){let t=-1;if(e!=null)if(Array.isArray(e))for(;++t<e.length;){let n=e[t];i(n)}else throw TypeError("Expected a list of plugins, not `"+e+"`")}function s(e,t){let r=-1,i=-1;for(;++r<n.length;)if(n[r][0]===e){i=r;break}if(i===-1)n.push([e,...t]);else if(t.length>0){let[r,...a]=t,o=n[i][1];_R(o)&&_R(r)&&(r=(0,BR.default)(!0,o,r)),n[i]=[e,r,...a]}}}}().freeze();function UR(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `parser`")}function WR(e,t){if(typeof t!=`function`)throw TypeError("Cannot `"+e+"` without `compiler`")}function GR(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function KR(e){if(!_R(e)||typeof e.type!=`string`)throw TypeError("Expected node, got `"+e+"`")}function qR(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function JR(e){return YR(e)?e:new PR(e)}function YR(e){return!!(e&&typeof e==`object`&&`message`in e&&`messages`in e)}function XR(e){return typeof e==`string`||ZR(e)}function ZR(e){return!!(e&&typeof e==`object`&&`byteLength`in e&&`byteOffset`in e)}var QR=[],$R={allowDangerousHtml:!0},ez=/^(https?|ircs?|mailto|xmpp)$/i,tz=[{from:`astPlugins`,id:`remove-buggy-html-in-markdown-parser`},{from:`allowDangerousHtml`,id:`remove-buggy-html-in-markdown-parser`},{from:`allowNode`,id:`replace-allownode-allowedtypes-and-disallowedtypes`,to:`allowElement`},{from:`allowedTypes`,id:`replace-allownode-allowedtypes-and-disallowedtypes`,to:`allowedElements`},{from:`className`,id:`remove-classname`},{from:`disallowedTypes`,id:`replace-allownode-allowedtypes-and-disallowedtypes`,to:`disallowedElements`},{from:`escapeHtml`,id:`remove-buggy-html-in-markdown-parser`},{from:`includeElementIndex`,id:`#remove-includeelementindex`},{from:`includeNodeIndex`,id:`change-includenodeindex-to-includeelementindex`},{from:`linkTarget`,id:`remove-linktarget`},{from:`plugins`,id:`change-plugins-to-remarkplugins`,to:`remarkPlugins`},{from:`rawSourcePos`,id:`#remove-rawsourcepos`},{from:`renderers`,id:`change-renderers-to-components`,to:`components`},{from:`source`,id:`change-source-to-children`,to:`children`},{from:`sourcePos`,id:`#remove-sourcepos`},{from:`transformImageUri`,id:`#add-urltransform`,to:`urlTransform`},{from:`transformLinkUri`,id:`#add-urltransform`,to:`urlTransform`}];function nz(e){let t=rz(e),n=iz(e);return az(t.runSync(t.parse(n),n),e)}function rz(e){let t=e.rehypePlugins||QR,n=e.remarkPlugins||QR,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...$R}:$R;return HR().use($I).use(n).use(mR,r).use(t)}function iz(e){let t=e.children||``,n=new PR;return typeof t==`string`?n.value=t:``+t,n}function az(e,t){let n=t.allowedElements,r=t.allowElement,i=t.components,a=t.disallowedElements,o=t.skipHtml,s=t.unwrapDisallowed,c=t.urlTransform||oz;for(let e of tz)Object.hasOwn(t,e.from)&&``+e.from+(e.to?"use `"+e.to+"` instead":`remove it`)+e.id;return iR(e,l),kN(e,{Fragment:Q.Fragment,components:i,ignoreInvalidStyle:!0,jsx:Q.jsx,jsxs:Q.jsxs,passKeys:!0,passNode:!0});function l(e,t,i){if(e.type===`raw`&&i&&typeof t==`number`)return o?i.children.splice(t,1):i.children[t]={type:`text`,value:e.value},t;if(e.type===`element`){let t;for(t in ZN)if(Object.hasOwn(ZN,t)&&Object.hasOwn(e.properties,t)){let n=e.properties[t],r=ZN[t];(r===null||r.includes(e.tagName))&&(e.properties[t]=c(String(n||``),t,e))}}if(e.type===`element`){let o=n?!n.includes(e.tagName):a?a.includes(e.tagName):!1;if(!o&&r&&typeof t==`number`&&(o=!r(e,t,i)),o&&i&&typeof t==`number`)return s&&e.children?i.children.splice(t,1,...e.children):i.children.splice(t,1),t}}}function oz(e){let t=e.indexOf(`:`),n=e.indexOf(`?`),r=e.indexOf(`#`),i=e.indexOf(`/`);return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||ez.test(e.slice(0,t))?e:``}var sz=l(o(((e,t)=>{(function(){var e=t===void 0?function(){return this||(0,eval)(`this`)}():t.exports=i;e.format=i,e.vsprintf=r,typeof console<`u`&&typeof console.log==`function`&&(e.printf=n);function n(){console.log(i.apply(null,arguments))}function r(e,t){return i.apply(null,[e].concat(t))}function i(e){for(var t=1,n=[].slice.call(arguments),r=0,i=e.length,a=``,o,s=!1,c,l,u=!1,d,f=function(){return n[t++]},p=function(){for(var t=``;/\d/.test(e[r]);)t+=e[r++],o=e[r];return t.length>0?parseInt(t):null};r<i;++r)if(o=e[r],s)switch(s=!1,o==`.`?(u=!1,o=e[++r]):o==`0`&&e[r+1]==`.`?(u=!0,r+=2,o=e[r]):u=!0,d=p(),o){case`b`:a+=parseInt(f(),10).toString(2);break;case`c`:c=f(),typeof c==`string`||c instanceof String?a+=c:a+=String.fromCharCode(parseInt(c,10));break;case`d`:a+=parseInt(f(),10);break;case`f`:l=String(parseFloat(f()).toFixed(d||6)),a+=u?l:l.replace(/^0/,``);break;case`j`:a+=JSON.stringify(f());break;case`o`:a+=`0`+parseInt(f(),10).toString(8);break;case`s`:a+=f();break;case`x`:a+=`0x`+parseInt(f(),10).toString(16);break;case`X`:a+=`0x`+parseInt(f(),10).toString(16).toUpperCase();break;default:a+=o;break}else o===`%`?s=!0:a+=o;return a}})()}))(),1),cz=Object.assign(lz(Error),{eval:lz(EvalError),range:lz(RangeError),reference:lz(ReferenceError),syntax:lz(SyntaxError),type:lz(TypeError),uri:lz(URIError)});function lz(e){return t.displayName=e.displayName||e.name,t;function t(t,...n){return new e(t&&(0,sz.default)(t,...n))}}var uz={}.hasOwnProperty,dz={yaml:`-`,toml:`+`};function fz(e){let t=[],n=-1,r=Array.isArray(e)?e:e?[e]:[`yaml`];for(;++n<r.length;)t[n]=pz(r[n]);return t}function pz(e){let t=e;if(typeof t==`string`){if(!uz.call(dz,t))throw cz("Missing matter definition for `%s`",t);t={type:t,marker:dz[t]}}else if(typeof t!=`object`)throw cz("Expected matter to be an object, not `%j`",t);if(!uz.call(t,`type`))throw cz("Missing `type` in matter `%j`",t);if(!uz.call(t,`fence`)&&!uz.call(t,`marker`))throw cz("Missing `marker` or `fence` in matter `%j`",t);return t}function mz(e){let t=fz(e),n={},r=-1;for(;++r<t.length;){let e=t[r],i=gz(e,`open`).charCodeAt(0),a=hz(e),o=n[i];Array.isArray(o)?o.push(a):n[i]=[a]}return{flow:n}}function hz(e){let t=e.anywhere,n=e.type,r=n+`Fence`,i=r+`Sequence`,a=n+`Value`,o={tokenize:u,partial:!0},s,c=0;return{tokenize:l,concrete:!0};function l(l,u,d){let f=this;return p;function p(a){let o=f.now();return o.column===1&&(o.line===1||t)&&(s=gz(e,`open`),c=0,a===s.charCodeAt(c))?(l.enter(n),l.enter(r),l.enter(i),m(a)):d(a)}function m(e){return c===s.length?(l.exit(i),SP(e)?(l.enter(`whitespace`),h(e)):g(e)):e===s.charCodeAt(c++)?(l.consume(e),m):d(e)}function h(e){return SP(e)?(l.consume(e),h):(l.exit(`whitespace`),g(e))}function g(t){return bP(t)?(l.exit(r),l.enter(`lineEnding`),l.consume(t),l.exit(`lineEnding`),s=gz(e,`close`),c=0,l.attempt(o,b,_)):d(t)}function _(e){return e===null||bP(e)?y(e):(l.enter(a),v(e))}function v(e){return e===null||bP(e)?(l.exit(a),y(e)):(l.consume(e),v)}function y(e){return e===null?d(e):(l.enter(`lineEnding`),l.consume(e),l.exit(`lineEnding`),l.attempt(o,b,_))}function b(e){return l.exit(n),u(e)}}function u(e,t,n){let a=0;return o;function o(t){return t===s.charCodeAt(a)?(e.enter(r),e.enter(i),c(t)):n(t)}function c(t){return a===s.length?(e.exit(i),SP(t)?(e.enter(`whitespace`),l(t)):u(t)):t===s.charCodeAt(a++)?(e.consume(t),c):n(t)}function l(t){return SP(t)?(e.consume(t),l):(e.exit(`whitespace`),u(t))}function u(i){return i===null||bP(i)?(e.exit(r),t(i)):n(i)}}}function gz(e,t){return e.marker?_z(e.marker,t).repeat(3):_z(e.fence,t)}function _z(e,t){return typeof e==`string`?e:e[t]}function vz(e){if(typeof e!=`string`)throw TypeError(`Expected a string`);return e.replace(/[|\\{}()[\]^$+*?.]/g,`\\$&`).replace(/-/g,`\\x2d`)}function yz(e){let t=fz(e),n={},r={},i=-1;for(;++i<t.length;){let e=t[i];n[e.type]=bz(e),r[e.type]=xz,r[e.type+`Value`]=Sz}return{enter:n,exit:r}}function bz(e){return t;function t(t){this.enter({type:e.type,value:``},t),this.buffer()}}function xz(e){let t=this.resume(),n=this.stack[this.stack.length-1];`value`in n,this.exit(e),n.value=t.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,``)}function Sz(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}function Cz(e){let t=[],n={},r=fz(e),i=-1;for(;++i<r.length;){let e=r[i];n[e.type]=wz(e);let a=Tz(e,`open`);t.push({atBreak:!0,character:a.charAt(0),after:vz(a.charAt(1))})}return{unsafe:t,handlers:n}}function wz(e){let t=Tz(e,`open`),n=Tz(e,`close`);return r;function r(e){return t+(e.value?`
272
272
  `+e.value:``)+`
273
- `+n}}function uz(e,t){return e.marker?dz(e.marker,t).repeat(3):dz(e.fence,t)}function dz(e,t){return typeof e==`string`?e:e[t]}var fz=`yaml`;function pz(e){let t=this,n=e||fz,r=t.data(),i=r.micromarkExtensions||=[],a=r.fromMarkdownExtensions||=[],o=r.toMarkdownExtensions||=[];i.push($R(n)),a.push(iz(n)),o.push(cz(n))}function mz(e,t){let n=String(e);if(typeof t!=`string`)throw TypeError(`Expected character`);let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function hz(e,t,n){let r=ML((n||{}).ignore||[]),i=gz(t),a=-1;for(;++a<i.length;)VL(e,`text`,o);function o(e,t){let n=-1,i;for(;++n<t.length;){let e=t[n],a=i?i.children:void 0;if(r(e,a?a.indexOf(e):void 0,i))return;i=e}if(i)return s(e,t)}function s(e,t){let n=t[t.length-1],r=i[a][0],o=i[a][1],s=0,c=n.children.indexOf(e),l=!1,u=[];r.lastIndex=0;let d=r.exec(e.value);for(;d;){let n=d.index,i={index:d.index,input:d.input,stack:[...t,e]},a=o(...d,i);if(typeof a==`string`&&(a=a.length>0?{type:`text`,value:a}:void 0),a===!1?r.lastIndex=n+1:(s!==n&&u.push({type:`text`,value:e.value.slice(s,n)}),Array.isArray(a)?u.push(...a):a&&u.push(a),s=n+d[0].length,l=!0),!r.global)break;d=r.exec(e.value)}return l?(s<e.value.length&&u.push({type:`text`,value:e.value.slice(s)}),n.children.splice(c,1,...u)):u=[e],c+u.length}}function gz(e){let t=[];if(!Array.isArray(e))throw TypeError(`Expected find and replace tuple or list of tuples`);let n=!e[0]||Array.isArray(e[0])?e:[e],r=-1;for(;++r<n.length;){let e=n[r];t.push([_z(e[0]),vz(e[1])])}return t}function _z(e){return typeof e==`string`?new RegExp(rz(e),`g`):e}function vz(e){return typeof e==`function`?e:function(){return e}}var yz=`phrasing`,bz=[`autolink`,`link`,`image`,`label`];function xz(){return{transforms:[kz],enter:{literalAutolink:Cz,literalAutolinkEmail:wz,literalAutolinkHttp:wz,literalAutolinkWww:wz},exit:{literalAutolink:Oz,literalAutolinkEmail:Dz,literalAutolinkHttp:Tz,literalAutolinkWww:Ez}}}function Sz(){return{unsafe:[{character:`@`,before:`[+\\-.\\w]`,after:`[\\-.\\w]`,inConstruct:yz,notInConstruct:bz},{character:`.`,before:`[Ww]`,after:`[\\-.\\w]`,inConstruct:yz,notInConstruct:bz},{character:`:`,before:`[ps]`,after:`\\/`,inConstruct:yz,notInConstruct:bz}]}}function Cz(e){this.enter({type:`link`,title:null,url:``,children:[]},e)}function wz(e){this.config.enter.autolinkProtocol.call(this,e)}function Tz(e){this.config.exit.autolinkProtocol.call(this,e)}function Ez(e){this.config.exit.data.call(this,e);let t=this.stack[this.stack.length-1];t.type,t.url=`http://`+this.sliceSerialize(e)}function Dz(e){this.config.exit.autolinkEmail.call(this,e)}function Oz(e){this.exit(e)}function kz(e){hz(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Az],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,jz]],{ignore:[`link`,`linkReference`]})}function Az(e,t,n,r,i){let a=``;if(!Pz(i)||(/^w/i.test(t)&&(n=t+n,t=``,a=`http://`),!Mz(n)))return!1;let o=Nz(n+r);if(!o[0])return!1;let s={type:`link`,title:null,url:a+t+o[0],children:[{type:`text`,value:t+o[0]}]};return o[1]?[s,{type:`text`,value:o[1]}]:s}function jz(e,t,n,r){return!Pz(r,!0)||/[-\d_]$/.test(n)?!1:{type:`link`,title:null,url:`mailto:`+t+`@`+n,children:[{type:`text`,value:t+`@`+n}]}}function Mz(e){let t=e.split(`.`);return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function Nz(e){let t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(`)`),i=mz(e,`(`),a=mz(e,`)`);for(;r!==-1&&i>a;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(`)`),a++;return[e,n]}function Pz(e,t){let n=e.input.charCodeAt(e.index-1);return(e.index===0||lP(n)||cP(n))&&(!t||n!==47)}Wz.peek=Uz;function Fz(){this.buffer()}function Iz(e){this.enter({type:`footnoteReference`,identifier:``,label:``},e)}function Lz(){this.buffer()}function Rz(e){this.enter({type:`footnoteDefinition`,identifier:``,label:``,children:[]},e)}function zz(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=ZN(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Bz(e){this.exit(e)}function Vz(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=ZN(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Hz(e){this.exit(e)}function Uz(){return`[`}function Wz(e,t,n,r){let i=n.createTracker(r),a=i.move(`[^`),o=n.enter(`footnoteReference`),s=n.enter(`reference`);return a+=i.move(n.safe(n.associationId(e),{after:`]`,before:a})),s(),o(),a+=i.move(`]`),a}function Gz(){return{enter:{gfmFootnoteCallString:Fz,gfmFootnoteCall:Iz,gfmFootnoteDefinitionLabelString:Lz,gfmFootnoteDefinition:Rz},exit:{gfmFootnoteCallString:zz,gfmFootnoteCall:Bz,gfmFootnoteDefinitionLabelString:Vz,gfmFootnoteDefinition:Hz}}}function Kz(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:Wz},unsafe:[{character:`[`,inConstruct:[`label`,`phrasing`,`reference`]}]};function n(e,n,r,i){let a=r.createTracker(i),o=a.move(`[^`),s=r.enter(`footnoteDefinition`),c=r.enter(`label`);return o+=a.move(r.safe(r.associationId(e),{before:o,after:`]`})),c(),o+=a.move(`]:`),e.children&&e.children.length>0&&(a.shift(4),o+=a.move((t?`
274
- `:` `)+r.indentLines(r.containerFlow(e,a.current()),t?Jz:qz))),s(),o}}function qz(e,t,n){return t===0?e:Jz(e,t,n)}function Jz(e,t,n){return(n?``:` `)+e}var Yz=[`autolink`,`destinationLiteral`,`destinationRaw`,`reference`,`titleQuote`,`titleApostrophe`];eB.peek=tB;function Xz(){return{canContainEols:[`delete`],enter:{strikethrough:Qz},exit:{strikethrough:$z}}}function Zz(){return{unsafe:[{character:`~`,inConstruct:`phrasing`,notInConstruct:Yz}],handlers:{delete:eB}}}function Qz(e){this.enter({type:`delete`,children:[]},e)}function $z(e){this.exit(e)}function eB(e,t,n,r){let i=n.createTracker(r),a=n.enter(`strikethrough`),o=i.move(`~~`);return o+=n.containerPhrasing(e,{...i.current(),before:o,after:`~`}),o+=i.move(`~~`),a(),o}function tB(){return`~`}function nB(e){return e.length}function rB(e,t){let n=t||{},r=(n.align||[]).concat(),i=n.stringLength||nB,a=[],o=[],s=[],c=[],l=0,u=-1;for(;++u<e.length;){let t=[],r=[],a=-1;for(e[u].length>l&&(l=e[u].length);++a<e[u].length;){let o=iB(e[u][a]);if(n.alignDelimiters!==!1){let e=i(o);r[a]=e,(c[a]===void 0||e>c[a])&&(c[a]=e)}t.push(o)}o[u]=t,s[u]=r}let d=-1;if(typeof r==`object`&&`length`in r)for(;++d<l;)a[d]=aB(r[d]);else{let e=aB(r);for(;++d<l;)a[d]=e}d=-1;let f=[],p=[];for(;++d<l;){let e=a[d],t=``,r=``;e===99?(t=`:`,r=`:`):e===108?t=`:`:e===114&&(r=`:`);let i=n.alignDelimiters===!1?1:Math.max(1,c[d]-t.length-r.length),o=t+`-`.repeat(i)+r;n.alignDelimiters!==!1&&(i=t.length+i+r.length,i>c[d]&&(c[d]=i),p[d]=i),f[d]=o}o.splice(1,0,f),s.splice(1,0,p),u=-1;let m=[];for(;++u<o.length;){let e=o[u],t=s[u];d=-1;let r=[];for(;++d<l;){let i=e[d]||``,o=``,s=``;if(n.alignDelimiters!==!1){let e=c[d]-(t[d]||0),n=a[d];n===114?o=` `.repeat(e):n===99?e%2?(o=` `.repeat(e/2+.5),s=` `.repeat(e/2-.5)):(o=` `.repeat(e/2),s=o):s=` `.repeat(e)}n.delimiterStart!==!1&&!d&&r.push(`|`),n.padding!==!1&&!(n.alignDelimiters===!1&&i===``)&&(n.delimiterStart!==!1||d)&&r.push(` `),n.alignDelimiters!==!1&&r.push(o),r.push(i),n.alignDelimiters!==!1&&r.push(s),n.padding!==!1&&r.push(` `),(n.delimiterEnd!==!1||d!==l-1)&&r.push(`|`)}m.push(n.delimiterEnd===!1?r.join(``).replace(/ +$/,``):r.join(``))}return m.join(`
275
- `)}function iB(e){return e==null?``:String(e)}function aB(e){let t=typeof e==`string`?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function oB(e,t,n,r){let i=n.enter(`blockquote`),a=n.createTracker(r);a.move(`> `),a.shift(2);let o=n.indentLines(n.containerFlow(e,a.current()),sB);return i(),o}function sB(e,t,n){return`>`+(n?``:` `)+e}function cB(e,t){return lB(e,t.inConstruct,!0)&&!lB(e,t.notInConstruct,!1)}function lB(e,t,n){if(typeof t==`string`&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function uB(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if(n.unsafe[i].character===`
276
- `&&cB(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?``:` `;return`\\
277
- `}function dB(e,t){let n=String(e),r=n.indexOf(t),i=r,a=0,o=0;if(typeof t!=`string`)throw TypeError(`Expected substring`);for(;r!==-1;)r===i?++a>o&&(o=a):a=1,i=r+t.length,r=n.indexOf(t,i);return o}function fB(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function pB(e){let t=e.options.fence||"`";if(t!=="`"&&t!==`~`)throw Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function mB(e,t,n,r){let i=pB(n),a=e.value||``,o=i==="`"?`GraveAccent`:`Tilde`;if(fB(e,n)){let e=n.enter(`codeIndented`),t=n.indentLines(a,hB);return e(),t}let s=n.createTracker(r),c=i.repeat(Math.max(dB(a,i)+1,3)),l=n.enter(`codeFenced`),u=s.move(c);if(e.lang){let t=n.enter(`codeFencedLang${o}`);u+=s.move(n.safe(e.lang,{before:u,after:` `,encode:["`"],...s.current()})),t()}if(e.lang&&e.meta){let t=n.enter(`codeFencedMeta${o}`);u+=s.move(` `),u+=s.move(n.safe(e.meta,{before:u,after:`
273
+ `+n}}function Tz(e,t){return e.marker?Ez(e.marker,t).repeat(3):Ez(e.fence,t)}function Ez(e,t){return typeof e==`string`?e:e[t]}var Dz=`yaml`;function Oz(e){let t=this,n=e||Dz,r=t.data(),i=r.micromarkExtensions||=[],a=r.fromMarkdownExtensions||=[],o=r.toMarkdownExtensions||=[];i.push(mz(n)),a.push(yz(n)),o.push(Cz(n))}function kz(e,t){let n=String(e);if(typeof t!=`string`)throw TypeError(`Expected character`);let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function Az(e,t,n){let r=qL((n||{}).ignore||[]),i=jz(t),a=-1;for(;++a<i.length;)nR(e,`text`,o);function o(e,t){let n=-1,i;for(;++n<t.length;){let e=t[n],a=i?i.children:void 0;if(r(e,a?a.indexOf(e):void 0,i))return;i=e}if(i)return s(e,t)}function s(e,t){let n=t[t.length-1],r=i[a][0],o=i[a][1],s=0,c=n.children.indexOf(e),l=!1,u=[];r.lastIndex=0;let d=r.exec(e.value);for(;d;){let n=d.index,i={index:d.index,input:d.input,stack:[...t,e]},a=o(...d,i);if(typeof a==`string`&&(a=a.length>0?{type:`text`,value:a}:void 0),a===!1?r.lastIndex=n+1:(s!==n&&u.push({type:`text`,value:e.value.slice(s,n)}),Array.isArray(a)?u.push(...a):a&&u.push(a),s=n+d[0].length,l=!0),!r.global)break;d=r.exec(e.value)}return l?(s<e.value.length&&u.push({type:`text`,value:e.value.slice(s)}),n.children.splice(c,1,...u)):u=[e],c+u.length}}function jz(e){let t=[];if(!Array.isArray(e))throw TypeError(`Expected find and replace tuple or list of tuples`);let n=!e[0]||Array.isArray(e[0])?e:[e],r=-1;for(;++r<n.length;){let e=n[r];t.push([Mz(e[0]),Nz(e[1])])}return t}function Mz(e){return typeof e==`string`?new RegExp(vz(e),`g`):e}function Nz(e){return typeof e==`function`?e:function(){return e}}var Pz=`phrasing`,Fz=[`autolink`,`link`,`image`,`label`];function Iz(){return{transforms:[Wz],enter:{literalAutolink:Rz,literalAutolinkEmail:zz,literalAutolinkHttp:zz,literalAutolinkWww:zz},exit:{literalAutolink:Uz,literalAutolinkEmail:Hz,literalAutolinkHttp:Bz,literalAutolinkWww:Vz}}}function Lz(){return{unsafe:[{character:`@`,before:`[+\\-.\\w]`,after:`[\\-.\\w]`,inConstruct:Pz,notInConstruct:Fz},{character:`.`,before:`[Ww]`,after:`[\\-.\\w]`,inConstruct:Pz,notInConstruct:Fz},{character:`:`,before:`[ps]`,after:`\\/`,inConstruct:Pz,notInConstruct:Fz}]}}function Rz(e){this.enter({type:`link`,title:null,url:``,children:[]},e)}function zz(e){this.config.enter.autolinkProtocol.call(this,e)}function Bz(e){this.config.exit.autolinkProtocol.call(this,e)}function Vz(e){this.config.exit.data.call(this,e);let t=this.stack[this.stack.length-1];t.type,t.url=`http://`+this.sliceSerialize(e)}function Hz(e){this.config.exit.autolinkEmail.call(this,e)}function Uz(e){this.exit(e)}function Wz(e){Az(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Gz],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,Kz]],{ignore:[`link`,`linkReference`]})}function Gz(e,t,n,r,i){let a=``;if(!Yz(i)||(/^w/i.test(t)&&(n=t+n,t=``,a=`http://`),!qz(n)))return!1;let o=Jz(n+r);if(!o[0])return!1;let s={type:`link`,title:null,url:a+t+o[0],children:[{type:`text`,value:t+o[0]}]};return o[1]?[s,{type:`text`,value:o[1]}]:s}function Kz(e,t,n,r){return!Yz(r,!0)||/[-\d_]$/.test(n)?!1:{type:`link`,title:null,url:`mailto:`+t+`@`+n,children:[{type:`text`,value:t+`@`+n}]}}function qz(e){let t=e.split(`.`);return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function Jz(e){let t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(`)`),i=kz(e,`(`),a=kz(e,`)`);for(;r!==-1&&i>a;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(`)`),a++;return[e,n]}function Yz(e,t){let n=e.input.charCodeAt(e.index-1);return(e.index===0||wP(n)||CP(n))&&(!t||n!==47)}aB.peek=iB;function Xz(){this.buffer()}function Zz(e){this.enter({type:`footnoteReference`,identifier:``,label:``},e)}function Qz(){this.buffer()}function $z(e){this.enter({type:`footnoteDefinition`,identifier:``,label:``,children:[]},e)}function eB(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=fP(this.sliceSerialize(e)).toLowerCase(),n.label=t}function tB(e){this.exit(e)}function nB(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=fP(this.sliceSerialize(e)).toLowerCase(),n.label=t}function rB(e){this.exit(e)}function iB(){return`[`}function aB(e,t,n,r){let i=n.createTracker(r),a=i.move(`[^`),o=n.enter(`footnoteReference`),s=n.enter(`reference`);return a+=i.move(n.safe(n.associationId(e),{after:`]`,before:a})),s(),o(),a+=i.move(`]`),a}function oB(){return{enter:{gfmFootnoteCallString:Xz,gfmFootnoteCall:Zz,gfmFootnoteDefinitionLabelString:Qz,gfmFootnoteDefinition:$z},exit:{gfmFootnoteCallString:eB,gfmFootnoteCall:tB,gfmFootnoteDefinitionLabelString:nB,gfmFootnoteDefinition:rB}}}function sB(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:aB},unsafe:[{character:`[`,inConstruct:[`label`,`phrasing`,`reference`]}]};function n(e,n,r,i){let a=r.createTracker(i),o=a.move(`[^`),s=r.enter(`footnoteDefinition`),c=r.enter(`label`);return o+=a.move(r.safe(r.associationId(e),{before:o,after:`]`})),c(),o+=a.move(`]:`),e.children&&e.children.length>0&&(a.shift(4),o+=a.move((t?`
274
+ `:` `)+r.indentLines(r.containerFlow(e,a.current()),t?lB:cB))),s(),o}}function cB(e,t,n){return t===0?e:lB(e,t,n)}function lB(e,t,n){return(n?``:` `)+e}var uB=[`autolink`,`destinationLiteral`,`destinationRaw`,`reference`,`titleQuote`,`titleApostrophe`];hB.peek=gB;function dB(){return{canContainEols:[`delete`],enter:{strikethrough:pB},exit:{strikethrough:mB}}}function fB(){return{unsafe:[{character:`~`,inConstruct:`phrasing`,notInConstruct:uB}],handlers:{delete:hB}}}function pB(e){this.enter({type:`delete`,children:[]},e)}function mB(e){this.exit(e)}function hB(e,t,n,r){let i=n.createTracker(r),a=n.enter(`strikethrough`),o=i.move(`~~`);return o+=n.containerPhrasing(e,{...i.current(),before:o,after:`~`}),o+=i.move(`~~`),a(),o}function gB(){return`~`}function _B(e){return e.length}function vB(e,t){let n=t||{},r=(n.align||[]).concat(),i=n.stringLength||_B,a=[],o=[],s=[],c=[],l=0,u=-1;for(;++u<e.length;){let t=[],r=[],a=-1;for(e[u].length>l&&(l=e[u].length);++a<e[u].length;){let o=yB(e[u][a]);if(n.alignDelimiters!==!1){let e=i(o);r[a]=e,(c[a]===void 0||e>c[a])&&(c[a]=e)}t.push(o)}o[u]=t,s[u]=r}let d=-1;if(typeof r==`object`&&`length`in r)for(;++d<l;)a[d]=bB(r[d]);else{let e=bB(r);for(;++d<l;)a[d]=e}d=-1;let f=[],p=[];for(;++d<l;){let e=a[d],t=``,r=``;e===99?(t=`:`,r=`:`):e===108?t=`:`:e===114&&(r=`:`);let i=n.alignDelimiters===!1?1:Math.max(1,c[d]-t.length-r.length),o=t+`-`.repeat(i)+r;n.alignDelimiters!==!1&&(i=t.length+i+r.length,i>c[d]&&(c[d]=i),p[d]=i),f[d]=o}o.splice(1,0,f),s.splice(1,0,p),u=-1;let m=[];for(;++u<o.length;){let e=o[u],t=s[u];d=-1;let r=[];for(;++d<l;){let i=e[d]||``,o=``,s=``;if(n.alignDelimiters!==!1){let e=c[d]-(t[d]||0),n=a[d];n===114?o=` `.repeat(e):n===99?e%2?(o=` `.repeat(e/2+.5),s=` `.repeat(e/2-.5)):(o=` `.repeat(e/2),s=o):s=` `.repeat(e)}n.delimiterStart!==!1&&!d&&r.push(`|`),n.padding!==!1&&!(n.alignDelimiters===!1&&i===``)&&(n.delimiterStart!==!1||d)&&r.push(` `),n.alignDelimiters!==!1&&r.push(o),r.push(i),n.alignDelimiters!==!1&&r.push(s),n.padding!==!1&&r.push(` `),(n.delimiterEnd!==!1||d!==l-1)&&r.push(`|`)}m.push(n.delimiterEnd===!1?r.join(``).replace(/ +$/,``):r.join(``))}return m.join(`
275
+ `)}function yB(e){return e==null?``:String(e)}function bB(e){let t=typeof e==`string`?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function xB(e,t,n,r){let i=n.enter(`blockquote`),a=n.createTracker(r);a.move(`> `),a.shift(2);let o=n.indentLines(n.containerFlow(e,a.current()),SB);return i(),o}function SB(e,t,n){return`>`+(n?``:` `)+e}function CB(e,t){return wB(e,t.inConstruct,!0)&&!wB(e,t.notInConstruct,!1)}function wB(e,t,n){if(typeof t==`string`&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function TB(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if(n.unsafe[i].character===`
276
+ `&&CB(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?``:` `;return`\\
277
+ `}function EB(e,t){let n=String(e),r=n.indexOf(t),i=r,a=0,o=0;if(typeof t!=`string`)throw TypeError(`Expected substring`);for(;r!==-1;)r===i?++a>o&&(o=a):a=1,i=r+t.length,r=n.indexOf(t,i);return o}function DB(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function OB(e){let t=e.options.fence||"`";if(t!=="`"&&t!==`~`)throw Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function kB(e,t,n,r){let i=OB(n),a=e.value||``,o=i==="`"?`GraveAccent`:`Tilde`;if(DB(e,n)){let e=n.enter(`codeIndented`),t=n.indentLines(a,AB);return e(),t}let s=n.createTracker(r),c=i.repeat(Math.max(EB(a,i)+1,3)),l=n.enter(`codeFenced`),u=s.move(c);if(e.lang){let t=n.enter(`codeFencedLang${o}`);u+=s.move(n.safe(e.lang,{before:u,after:` `,encode:["`"],...s.current()})),t()}if(e.lang&&e.meta){let t=n.enter(`codeFencedMeta${o}`);u+=s.move(` `),u+=s.move(n.safe(e.meta,{before:u,after:`
278
278
  `,encode:["`"],...s.current()})),t()}return u+=s.move(`
279
279
  `),a&&(u+=s.move(a+`
280
- `)),u+=s.move(c),l(),u}function hB(e,t,n){return(n?``:` `)+e}function gB(e){let t=e.options.quote||`"`;if(t!==`"`&&t!==`'`)throw Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function _B(e,t,n,r){let i=gB(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.enter(`definition`),s=n.enter(`label`),c=n.createTracker(r),l=c.move(`[`);return l+=c.move(n.safe(n.associationId(e),{before:l,after:`]`,...c.current()})),l+=c.move(`]: `),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=n.enter(`destinationLiteral`),l+=c.move(`<`),l+=c.move(n.safe(e.url,{before:l,after:`>`,...c.current()})),l+=c.move(`>`)):(s=n.enter(`destinationRaw`),l+=c.move(n.safe(e.url,{before:l,after:e.title?` `:`
281
- `,...c.current()}))),s(),e.title&&(s=n.enter(`title${a}`),l+=c.move(` `+i),l+=c.move(n.safe(e.title,{before:l,after:i,...c.current()})),l+=c.move(i),s()),o(),l}function vB(e){let t=e.options.emphasis||`*`;if(t!==`*`&&t!==`_`)throw Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function yB(e){return`&#x`+e.toString(16).toUpperCase()+`;`}function bB(e,t,n){let r=yP(e),i=yP(t);return r===void 0?i===void 0?n===`_`?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}xB.peek=SB;function xB(e,t,n,r){let i=vB(n),a=n.enter(`emphasis`),o=n.createTracker(r),s=o.move(i),c=o.move(n.containerPhrasing(e,{after:i,before:s,...o.current()})),l=c.charCodeAt(0),u=bB(r.before.charCodeAt(r.before.length-1),l,i);u.inside&&(c=yB(l)+c.slice(1));let d=c.charCodeAt(c.length-1),f=bB(r.after.charCodeAt(0),d,i);f.inside&&(c=c.slice(0,-1)+yB(d));let p=o.move(i);return a(),n.attentionEncodeSurroundingInfo={after:f.outside,before:u.outside},s+c+p}function SB(e,t,n){return n.options.emphasis||`*`}function CB(e,t){let n=!1;return UL(e,function(e){if(`value`in e&&/\r?\n|\r/.test(e.value)||e.type===`break`)return n=!0,!1}),!!((!e.depth||e.depth<3)&&RN(e)&&(t.options.setext||n))}function wB(e,t,n,r){let i=Math.max(Math.min(6,e.depth||1),1),a=n.createTracker(r);if(CB(e,n)){let t=n.enter(`headingSetext`),r=n.enter(`phrasing`),o=n.containerPhrasing(e,{...a.current(),before:`
280
+ `)),u+=s.move(c),l(),u}function AB(e,t,n){return(n?``:` `)+e}function jB(e){let t=e.options.quote||`"`;if(t!==`"`&&t!==`'`)throw Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function MB(e,t,n,r){let i=jB(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.enter(`definition`),s=n.enter(`label`),c=n.createTracker(r),l=c.move(`[`);return l+=c.move(n.safe(n.associationId(e),{before:l,after:`]`,...c.current()})),l+=c.move(`]: `),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=n.enter(`destinationLiteral`),l+=c.move(`<`),l+=c.move(n.safe(e.url,{before:l,after:`>`,...c.current()})),l+=c.move(`>`)):(s=n.enter(`destinationRaw`),l+=c.move(n.safe(e.url,{before:l,after:e.title?` `:`
281
+ `,...c.current()}))),s(),e.title&&(s=n.enter(`title${a}`),l+=c.move(` `+i),l+=c.move(n.safe(e.title,{before:l,after:i,...c.current()})),l+=c.move(i),s()),o(),l}function NB(e){let t=e.options.emphasis||`*`;if(t!==`*`&&t!==`_`)throw Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function PB(e){return`&#x`+e.toString(16).toUpperCase()+`;`}function FB(e,t,n){let r=PP(e),i=PP(t);return r===void 0?i===void 0?n===`_`?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}IB.peek=LB;function IB(e,t,n,r){let i=NB(n),a=n.enter(`emphasis`),o=n.createTracker(r),s=o.move(i),c=o.move(n.containerPhrasing(e,{after:i,before:s,...o.current()})),l=c.charCodeAt(0),u=FB(r.before.charCodeAt(r.before.length-1),l,i);u.inside&&(c=PB(l)+c.slice(1));let d=c.charCodeAt(c.length-1),f=FB(r.after.charCodeAt(0),d,i);f.inside&&(c=c.slice(0,-1)+PB(d));let p=o.move(i);return a(),n.attentionEncodeSurroundingInfo={after:f.outside,before:u.outside},s+c+p}function LB(e,t,n){return n.options.emphasis||`*`}function RB(e,t){let n=!1;return iR(e,function(e){if(`value`in e&&/\r?\n|\r/.test(e.value)||e.type===`break`)return n=!0,!1}),!!((!e.depth||e.depth<3)&&$N(e)&&(t.options.setext||n))}function zB(e,t,n,r){let i=Math.max(Math.min(6,e.depth||1),1),a=n.createTracker(r);if(RB(e,n)){let t=n.enter(`headingSetext`),r=n.enter(`phrasing`),o=n.containerPhrasing(e,{...a.current(),before:`
282
282
  `,after:`
283
283
  `});return r(),t(),o+`
284
284
  `+(i===1?`=`:`-`).repeat(o.length-(Math.max(o.lastIndexOf(`\r`),o.lastIndexOf(`
285
285
  `))+1))}let o=`#`.repeat(i),s=n.enter(`headingAtx`),c=n.enter(`phrasing`);a.move(o+` `);let l=n.containerPhrasing(e,{before:`# `,after:`
286
- `,...a.current()});return/^[\t ]/.test(l)&&(l=yB(l.charCodeAt(0))+l.slice(1)),l=l?o+` `+l:o,n.options.closeAtx&&(l+=` `+o),c(),s(),l}TB.peek=EB;function TB(e){return e.value||``}function EB(){return`<`}DB.peek=OB;function DB(e,t,n,r){let i=gB(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.enter(`image`),s=n.enter(`label`),c=n.createTracker(r),l=c.move(`![`);return l+=c.move(n.safe(e.alt,{before:l,after:`]`,...c.current()})),l+=c.move(`](`),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter(`destinationLiteral`),l+=c.move(`<`),l+=c.move(n.safe(e.url,{before:l,after:`>`,...c.current()})),l+=c.move(`>`)):(s=n.enter(`destinationRaw`),l+=c.move(n.safe(e.url,{before:l,after:e.title?` `:`)`,...c.current()}))),s(),e.title&&(s=n.enter(`title${a}`),l+=c.move(` `+i),l+=c.move(n.safe(e.title,{before:l,after:i,...c.current()})),l+=c.move(i),s()),l+=c.move(`)`),o(),l}function OB(){return`!`}kB.peek=AB;function kB(e,t,n,r){let i=e.referenceType,a=n.enter(`imageReference`),o=n.enter(`label`),s=n.createTracker(r),c=s.move(`![`),l=n.safe(e.alt,{before:c,after:`]`,...s.current()});c+=s.move(l+`][`),o();let u=n.stack;n.stack=[],o=n.enter(`reference`);let d=n.safe(n.associationId(e),{before:c,after:`]`,...s.current()});return o(),n.stack=u,a(),i===`full`||!l||l!==d?c+=s.move(d+`]`):i===`shortcut`?c=c.slice(0,-1):c+=s.move(`]`),c}function AB(){return`!`}jB.peek=MB;function jB(e,t,n){let r=e.value||``,i="`",a=-1;for(;RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=` `+r+` `);++a<n.unsafe.length;){let e=n.unsafe[a],t=n.compilePattern(e),i;if(e.atBreak)for(;i=t.exec(r);){let e=i.index;r.charCodeAt(e)===10&&r.charCodeAt(e-1)===13&&e--,r=r.slice(0,e)+` `+r.slice(i.index+1)}}return i+r+i}function MB(){return"`"}function NB(e,t){let n=RN(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type===`text`&&(n===e.url||`mailto:`+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}PB.peek=FB;function PB(e,t,n,r){let i=gB(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.createTracker(r),s,c;if(NB(e,n)){let t=n.stack;n.stack=[],s=n.enter(`autolink`);let r=o.move(`<`);return r+=o.move(n.containerPhrasing(e,{before:r,after:`>`,...o.current()})),r+=o.move(`>`),s(),n.stack=t,r}s=n.enter(`link`),c=n.enter(`label`);let l=o.move(`[`);return l+=o.move(n.containerPhrasing(e,{before:l,after:`](`,...o.current()})),l+=o.move(`](`),c(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(c=n.enter(`destinationLiteral`),l+=o.move(`<`),l+=o.move(n.safe(e.url,{before:l,after:`>`,...o.current()})),l+=o.move(`>`)):(c=n.enter(`destinationRaw`),l+=o.move(n.safe(e.url,{before:l,after:e.title?` `:`)`,...o.current()}))),c(),e.title&&(c=n.enter(`title${a}`),l+=o.move(` `+i),l+=o.move(n.safe(e.title,{before:l,after:i,...o.current()})),l+=o.move(i),c()),l+=o.move(`)`),s(),l}function FB(e,t,n){return NB(e,n)?`<`:`[`}IB.peek=LB;function IB(e,t,n,r){let i=e.referenceType,a=n.enter(`linkReference`),o=n.enter(`label`),s=n.createTracker(r),c=s.move(`[`),l=n.containerPhrasing(e,{before:c,after:`]`,...s.current()});c+=s.move(l+`][`),o();let u=n.stack;n.stack=[],o=n.enter(`reference`);let d=n.safe(n.associationId(e),{before:c,after:`]`,...s.current()});return o(),n.stack=u,a(),i===`full`||!l||l!==d?c+=s.move(d+`]`):i===`shortcut`?c=c.slice(0,-1):c+=s.move(`]`),c}function LB(){return`[`}function RB(e){let t=e.options.bullet||`*`;if(t!==`*`&&t!==`+`&&t!==`-`)throw Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function zB(e){let t=RB(e),n=e.options.bulletOther;if(!n)return t===`*`?`-`:`*`;if(n!==`*`&&n!==`+`&&n!==`-`)throw Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function BB(e){let t=e.options.bulletOrdered||`.`;if(t!==`.`&&t!==`)`)throw Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function VB(e){let t=e.options.rule||`*`;if(t!==`*`&&t!==`-`&&t!==`_`)throw Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function HB(e,t,n,r){let i=n.enter(`list`),a=n.bulletCurrent,o=e.ordered?BB(n):RB(n),s=e.ordered?o===`.`?`)`:`.`:zB(n),c=t&&n.bulletLastUsed?o===n.bulletLastUsed:!1;if(!e.ordered){let t=e.children?e.children[0]:void 0;if((o===`*`||o===`-`)&&t&&(!t.children||!t.children[0])&&n.stack[n.stack.length-1]===`list`&&n.stack[n.stack.length-2]===`listItem`&&n.stack[n.stack.length-3]===`list`&&n.stack[n.stack.length-4]===`listItem`&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(c=!0),VB(n)===o&&t){let t=-1;for(;++t<e.children.length;){let n=e.children[t];if(n&&n.type===`listItem`&&n.children&&n.children[0]&&n.children[0].type===`thematicBreak`){c=!0;break}}}}c&&(o=s),n.bulletCurrent=o;let l=n.containerFlow(e,r);return n.bulletLastUsed=o,n.bulletCurrent=a,i(),l}function UB(e){let t=e.options.listItemIndent||`one`;if(t!==`tab`&&t!==`one`&&t!==`mixed`)throw Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function WB(e,t,n,r){let i=UB(n),a=n.bulletCurrent||RB(n);t&&t.type===`list`&&t.ordered&&(a=(typeof t.start==`number`&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let o=a.length+1;(i===`tab`||i===`mixed`&&(t&&t.type===`list`&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);let s=n.createTracker(r);s.move(a+` `.repeat(o-a.length)),s.shift(o);let c=n.enter(`listItem`),l=n.indentLines(n.containerFlow(e,s.current()),u);return c(),l;function u(e,t,n){return t?(n?``:` `.repeat(o))+e:(n?a:a+` `.repeat(o-a.length))+e}}function GB(e,t,n,r){let i=n.enter(`paragraph`),a=n.enter(`phrasing`),o=n.containerPhrasing(e,r);return a(),i(),o}var KB=ML([`break`,`delete`,`emphasis`,`footnote`,`footnoteReference`,`image`,`imageReference`,`inlineCode`,`inlineMath`,`link`,`linkReference`,`mdxJsxTextElement`,`mdxTextExpression`,`strong`,`text`,`textDirective`]);function qB(e,t,n,r){return(e.children.some(function(e){return KB(e)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function JB(e){let t=e.options.strong||`*`;if(t!==`*`&&t!==`_`)throw Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}YB.peek=XB;function YB(e,t,n,r){let i=JB(n),a=n.enter(`strong`),o=n.createTracker(r),s=o.move(i+i),c=o.move(n.containerPhrasing(e,{after:i,before:s,...o.current()})),l=c.charCodeAt(0),u=bB(r.before.charCodeAt(r.before.length-1),l,i);u.inside&&(c=yB(l)+c.slice(1));let d=c.charCodeAt(c.length-1),f=bB(r.after.charCodeAt(0),d,i);f.inside&&(c=c.slice(0,-1)+yB(d));let p=o.move(i+i);return a(),n.attentionEncodeSurroundingInfo={after:f.outside,before:u.outside},s+c+p}function XB(e,t,n){return n.options.strong||`*`}function ZB(e,t,n,r){return n.safe(e.value,r)}function QB(e){let t=e.options.ruleRepetition||3;if(t<3)throw Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function $B(e,t,n){let r=(VB(n)+(n.options.ruleSpaces?` `:``)).repeat(QB(n));return n.options.ruleSpaces?r.slice(0,-1):r}var eV={blockquote:oB,break:uB,code:mB,definition:_B,emphasis:xB,hardBreak:uB,heading:wB,html:TB,image:DB,imageReference:kB,inlineCode:jB,link:PB,linkReference:IB,list:HB,listItem:WB,paragraph:GB,root:qB,strong:YB,text:ZB,thematicBreak:$B};function tV(){return{enter:{table:nV,tableData:oV,tableHeader:oV,tableRow:iV},exit:{codeText:sV,table:rV,tableData:aV,tableHeader:aV,tableRow:aV}}}function nV(e){let t=e._align;this.enter({type:`table`,align:t.map(function(e){return e===`none`?null:e}),children:[]},e),this.data.inTable=!0}function rV(e){this.exit(e),this.data.inTable=void 0}function iV(e){this.enter({type:`tableRow`,children:[]},e)}function aV(e){this.exit(e)}function oV(e){this.enter({type:`tableCell`,children:[]},e)}function sV(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,cV));let n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function cV(e,t){return t===`|`?t:e}function lV(e){let t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,a=n?` `:`|`;return{unsafe:[{character:`\r`,inConstruct:`tableCell`},{character:`
286
+ `,...a.current()});return/^[\t ]/.test(l)&&(l=PB(l.charCodeAt(0))+l.slice(1)),l=l?o+` `+l:o,n.options.closeAtx&&(l+=` `+o),c(),s(),l}BB.peek=VB;function BB(e){return e.value||``}function VB(){return`<`}HB.peek=UB;function HB(e,t,n,r){let i=jB(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.enter(`image`),s=n.enter(`label`),c=n.createTracker(r),l=c.move(`![`);return l+=c.move(n.safe(e.alt,{before:l,after:`]`,...c.current()})),l+=c.move(`](`),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter(`destinationLiteral`),l+=c.move(`<`),l+=c.move(n.safe(e.url,{before:l,after:`>`,...c.current()})),l+=c.move(`>`)):(s=n.enter(`destinationRaw`),l+=c.move(n.safe(e.url,{before:l,after:e.title?` `:`)`,...c.current()}))),s(),e.title&&(s=n.enter(`title${a}`),l+=c.move(` `+i),l+=c.move(n.safe(e.title,{before:l,after:i,...c.current()})),l+=c.move(i),s()),l+=c.move(`)`),o(),l}function UB(){return`!`}WB.peek=GB;function WB(e,t,n,r){let i=e.referenceType,a=n.enter(`imageReference`),o=n.enter(`label`),s=n.createTracker(r),c=s.move(`![`),l=n.safe(e.alt,{before:c,after:`]`,...s.current()});c+=s.move(l+`][`),o();let u=n.stack;n.stack=[],o=n.enter(`reference`);let d=n.safe(n.associationId(e),{before:c,after:`]`,...s.current()});return o(),n.stack=u,a(),i===`full`||!l||l!==d?c+=s.move(d+`]`):i===`shortcut`?c=c.slice(0,-1):c+=s.move(`]`),c}function GB(){return`!`}KB.peek=qB;function KB(e,t,n){let r=e.value||``,i="`",a=-1;for(;RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=` `+r+` `);++a<n.unsafe.length;){let e=n.unsafe[a],t=n.compilePattern(e),i;if(e.atBreak)for(;i=t.exec(r);){let e=i.index;r.charCodeAt(e)===10&&r.charCodeAt(e-1)===13&&e--,r=r.slice(0,e)+` `+r.slice(i.index+1)}}return i+r+i}function qB(){return"`"}function JB(e,t){let n=$N(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type===`text`&&(n===e.url||`mailto:`+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}YB.peek=XB;function YB(e,t,n,r){let i=jB(n),a=i===`"`?`Quote`:`Apostrophe`,o=n.createTracker(r),s,c;if(JB(e,n)){let t=n.stack;n.stack=[],s=n.enter(`autolink`);let r=o.move(`<`);return r+=o.move(n.containerPhrasing(e,{before:r,after:`>`,...o.current()})),r+=o.move(`>`),s(),n.stack=t,r}s=n.enter(`link`),c=n.enter(`label`);let l=o.move(`[`);return l+=o.move(n.containerPhrasing(e,{before:l,after:`](`,...o.current()})),l+=o.move(`](`),c(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(c=n.enter(`destinationLiteral`),l+=o.move(`<`),l+=o.move(n.safe(e.url,{before:l,after:`>`,...o.current()})),l+=o.move(`>`)):(c=n.enter(`destinationRaw`),l+=o.move(n.safe(e.url,{before:l,after:e.title?` `:`)`,...o.current()}))),c(),e.title&&(c=n.enter(`title${a}`),l+=o.move(` `+i),l+=o.move(n.safe(e.title,{before:l,after:i,...o.current()})),l+=o.move(i),c()),l+=o.move(`)`),s(),l}function XB(e,t,n){return JB(e,n)?`<`:`[`}ZB.peek=QB;function ZB(e,t,n,r){let i=e.referenceType,a=n.enter(`linkReference`),o=n.enter(`label`),s=n.createTracker(r),c=s.move(`[`),l=n.containerPhrasing(e,{before:c,after:`]`,...s.current()});c+=s.move(l+`][`),o();let u=n.stack;n.stack=[],o=n.enter(`reference`);let d=n.safe(n.associationId(e),{before:c,after:`]`,...s.current()});return o(),n.stack=u,a(),i===`full`||!l||l!==d?c+=s.move(d+`]`):i===`shortcut`?c=c.slice(0,-1):c+=s.move(`]`),c}function QB(){return`[`}function $B(e){let t=e.options.bullet||`*`;if(t!==`*`&&t!==`+`&&t!==`-`)throw Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function eV(e){let t=$B(e),n=e.options.bulletOther;if(!n)return t===`*`?`-`:`*`;if(n!==`*`&&n!==`+`&&n!==`-`)throw Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function tV(e){let t=e.options.bulletOrdered||`.`;if(t!==`.`&&t!==`)`)throw Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function nV(e){let t=e.options.rule||`*`;if(t!==`*`&&t!==`-`&&t!==`_`)throw Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function rV(e,t,n,r){let i=n.enter(`list`),a=n.bulletCurrent,o=e.ordered?tV(n):$B(n),s=e.ordered?o===`.`?`)`:`.`:eV(n),c=t&&n.bulletLastUsed?o===n.bulletLastUsed:!1;if(!e.ordered){let t=e.children?e.children[0]:void 0;if((o===`*`||o===`-`)&&t&&(!t.children||!t.children[0])&&n.stack[n.stack.length-1]===`list`&&n.stack[n.stack.length-2]===`listItem`&&n.stack[n.stack.length-3]===`list`&&n.stack[n.stack.length-4]===`listItem`&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(c=!0),nV(n)===o&&t){let t=-1;for(;++t<e.children.length;){let n=e.children[t];if(n&&n.type===`listItem`&&n.children&&n.children[0]&&n.children[0].type===`thematicBreak`){c=!0;break}}}}c&&(o=s),n.bulletCurrent=o;let l=n.containerFlow(e,r);return n.bulletLastUsed=o,n.bulletCurrent=a,i(),l}function iV(e){let t=e.options.listItemIndent||`one`;if(t!==`tab`&&t!==`one`&&t!==`mixed`)throw Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function aV(e,t,n,r){let i=iV(n),a=n.bulletCurrent||$B(n);t&&t.type===`list`&&t.ordered&&(a=(typeof t.start==`number`&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let o=a.length+1;(i===`tab`||i===`mixed`&&(t&&t.type===`list`&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);let s=n.createTracker(r);s.move(a+` `.repeat(o-a.length)),s.shift(o);let c=n.enter(`listItem`),l=n.indentLines(n.containerFlow(e,s.current()),u);return c(),l;function u(e,t,n){return t?(n?``:` `.repeat(o))+e:(n?a:a+` `.repeat(o-a.length))+e}}function oV(e,t,n,r){let i=n.enter(`paragraph`),a=n.enter(`phrasing`),o=n.containerPhrasing(e,r);return a(),i(),o}var sV=qL([`break`,`delete`,`emphasis`,`footnote`,`footnoteReference`,`image`,`imageReference`,`inlineCode`,`inlineMath`,`link`,`linkReference`,`mdxJsxTextElement`,`mdxTextExpression`,`strong`,`text`,`textDirective`]);function cV(e,t,n,r){return(e.children.some(function(e){return sV(e)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function lV(e){let t=e.options.strong||`*`;if(t!==`*`&&t!==`_`)throw Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}uV.peek=dV;function uV(e,t,n,r){let i=lV(n),a=n.enter(`strong`),o=n.createTracker(r),s=o.move(i+i),c=o.move(n.containerPhrasing(e,{after:i,before:s,...o.current()})),l=c.charCodeAt(0),u=FB(r.before.charCodeAt(r.before.length-1),l,i);u.inside&&(c=PB(l)+c.slice(1));let d=c.charCodeAt(c.length-1),f=FB(r.after.charCodeAt(0),d,i);f.inside&&(c=c.slice(0,-1)+PB(d));let p=o.move(i+i);return a(),n.attentionEncodeSurroundingInfo={after:f.outside,before:u.outside},s+c+p}function dV(e,t,n){return n.options.strong||`*`}function fV(e,t,n,r){return n.safe(e.value,r)}function pV(e){let t=e.options.ruleRepetition||3;if(t<3)throw Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function mV(e,t,n){let r=(nV(n)+(n.options.ruleSpaces?` `:``)).repeat(pV(n));return n.options.ruleSpaces?r.slice(0,-1):r}var hV={blockquote:xB,break:TB,code:kB,definition:MB,emphasis:IB,hardBreak:TB,heading:zB,html:BB,image:HB,imageReference:WB,inlineCode:KB,link:YB,linkReference:ZB,list:rV,listItem:aV,paragraph:oV,root:cV,strong:uV,text:fV,thematicBreak:mV};function gV(){return{enter:{table:_V,tableData:xV,tableHeader:xV,tableRow:yV},exit:{codeText:SV,table:vV,tableData:bV,tableHeader:bV,tableRow:bV}}}function _V(e){let t=e._align;this.enter({type:`table`,align:t.map(function(e){return e===`none`?null:e}),children:[]},e),this.data.inTable=!0}function vV(e){this.exit(e),this.data.inTable=void 0}function yV(e){this.enter({type:`tableRow`,children:[]},e)}function bV(e){this.exit(e)}function xV(e){this.enter({type:`tableCell`,children:[]},e)}function SV(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,CV));let n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function CV(e,t){return t===`|`?t:e}function wV(e){let t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,a=n?` `:`|`;return{unsafe:[{character:`\r`,inConstruct:`tableCell`},{character:`
287
287
  `,inConstruct:`tableCell`},{atBreak:!0,character:`|`,after:`[ :-]`},{character:`|`,inConstruct:`tableCell`},{atBreak:!0,character:`:`,after:`-`},{atBreak:!0,character:`-`,after:`[:|-]`}],handlers:{inlineCode:f,table:o,tableCell:c,tableRow:s}};function o(e,t,n,r){return l(u(e,n,r),e.align)}function s(e,t,n,r){let i=l([d(e,n,r)]);return i.slice(0,i.indexOf(`
288
- `))}function c(e,t,n,r){let i=n.enter(`tableCell`),o=n.enter(`phrasing`),s=n.containerPhrasing(e,{...r,before:a,after:a});return o(),i(),s}function l(e,t){return rB(e,{align:t,alignDelimiters:r,padding:n,stringLength:i})}function u(e,t,n){let r=e.children,i=-1,a=[],o=t.enter(`table`);for(;++i<r.length;)a[i]=d(r[i],t,n);return o(),a}function d(e,t,n){let r=e.children,i=-1,a=[],o=t.enter(`tableRow`);for(;++i<r.length;)a[i]=c(r[i],e,t,n);return o(),a}function f(e,t,n){let r=eV.inlineCode(e,t,n);return n.stack.includes(`tableCell`)&&(r=r.replace(/\|/g,`\\$&`)),r}}function uV(){return{exit:{taskListCheckValueChecked:fV,taskListCheckValueUnchecked:fV,paragraph:pV}}}function dV(){return{unsafe:[{atBreak:!0,character:`-`,after:`[:|-]`}],handlers:{listItem:mV}}}function fV(e){let t=this.stack[this.stack.length-2];t.type,t.checked=e.type===`taskListCheckValueChecked`}function pV(e){let t=this.stack[this.stack.length-2];if(t&&t.type===`listItem`&&typeof t.checked==`boolean`){let e=this.stack[this.stack.length-1];e.type;let n=e.children[0];if(n&&n.type===`text`){let r=t.children,i=-1,a;for(;++i<r.length;){let e=r[i];if(e.type===`paragraph`){a=e;break}}a===e&&(n.value=n.value.slice(1),n.value.length===0?e.children.shift():e.position&&n.position&&typeof n.position.start.offset==`number`&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function mV(e,t,n,r){let i=e.children[0],a=typeof e.checked==`boolean`&&i&&i.type===`paragraph`,o=`[`+(e.checked?`x`:` `)+`] `,s=n.createTracker(r);a&&s.move(o);let c=eV.listItem(e,t,n,{...r,...s.current()});return a&&(c=c.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,l)),c;function l(e){return e+o}}function hV(){return[xz(),Gz(),Xz(),tV(),uV()]}function gV(e){return{extensions:[Sz(),Kz(e),Zz(),lV(e),dV()]}}var _V={tokenize:jV,partial:!0},vV={tokenize:MV,partial:!0},yV={tokenize:NV,partial:!0},bV={tokenize:PV,partial:!0},xV={tokenize:FV,partial:!0},SV={name:`wwwAutolink`,tokenize:kV,previous:IV},CV={name:`protocolAutolink`,tokenize:AV,previous:LV},wV={name:`emailAutolink`,tokenize:OV,previous:RV},TV={};function EV(){return{text:TV}}for(var DV=48;DV<123;)TV[DV]=wV,DV++,DV===58?DV=65:DV===91&&(DV=97);TV[43]=wV,TV[45]=wV,TV[46]=wV,TV[95]=wV,TV[72]=[wV,CV],TV[104]=[wV,CV],TV[87]=[wV,SV],TV[119]=[wV,SV];function OV(e,t,n){let r=this,i,a;return o;function o(t){return!zV(t)||!RV.call(r,r.previous)||BV(r.events)?n(t):(e.enter(`literalAutolink`),e.enter(`literalAutolinkEmail`),s(t))}function s(t){return zV(t)?(e.consume(t),s):t===64?(e.consume(t),c):n(t)}function c(t){return t===46?e.check(xV,u,l)(t):t===45||t===95||$N(t)?(a=!0,e.consume(t),c):u(t)}function l(t){return e.consume(t),i=!0,c}function u(o){return a&&i&&QN(r.previous)?(e.exit(`literalAutolinkEmail`),e.exit(`literalAutolink`),t(o)):n(o)}}function kV(e,t,n){let r=this;return i;function i(t){return t!==87&&t!==119||!IV.call(r,r.previous)||BV(r.events)?n(t):(e.enter(`literalAutolink`),e.enter(`literalAutolinkWww`),e.check(_V,e.attempt(vV,e.attempt(yV,a),n),n)(t))}function a(n){return e.exit(`literalAutolinkWww`),e.exit(`literalAutolink`),t(n)}}function AV(e,t,n){let r=this,i=``,a=!1;return o;function o(t){return(t===72||t===104)&&LV.call(r,r.previous)&&!BV(r.events)?(e.enter(`literalAutolink`),e.enter(`literalAutolinkHttp`),i+=String.fromCodePoint(t),e.consume(t),s):n(t)}function s(t){if(QN(t)&&i.length<5)return i+=String.fromCodePoint(t),e.consume(t),s;if(t===58){let n=i.toLowerCase();if(n===`http`||n===`https`)return e.consume(t),c}return n(t)}function c(t){return t===47?(e.consume(t),a?l:(a=!0,c)):n(t)}function l(t){return t===null||tP(t)||oP(t)||lP(t)||cP(t)?n(t):e.attempt(vV,e.attempt(yV,u),n)(t)}function u(n){return e.exit(`literalAutolinkHttp`),e.exit(`literalAutolink`),t(n)}}function jV(e,t,n){let r=0;return i;function i(t){return(t===87||t===119)&&r<3?(r++,e.consume(t),i):t===46&&r===3?(e.consume(t),a):n(t)}function a(e){return e===null?n(e):t(e)}}function MV(e,t,n){let r,i,a;return o;function o(t){return t===46||t===95?e.check(bV,c,s)(t):t===null||oP(t)||lP(t)||t!==45&&cP(t)?c(t):(a=!0,e.consume(t),o)}function s(t){return t===95?r=!0:(i=r,r=void 0),e.consume(t),o}function c(e){return i||r||!a?n(e):t(e)}}function NV(e,t){let n=0,r=0;return i;function i(o){return o===40?(n++,e.consume(o),i):o===41&&r<n?a(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?e.check(bV,t,a)(o):o===null||oP(o)||lP(o)?t(o):(e.consume(o),i)}function a(t){return t===41&&r++,e.consume(t),i}}function PV(e,t,n){return r;function r(o){return o===33||o===34||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===63||o===95||o===126?(e.consume(o),r):o===38?(e.consume(o),a):o===93?(e.consume(o),i):o===60||o===null||oP(o)||lP(o)?t(o):n(o)}function i(e){return e===null||e===40||e===91||oP(e)||lP(e)?t(e):r(e)}function a(e){return QN(e)?o(e):n(e)}function o(t){return t===59?(e.consume(t),r):QN(t)?(e.consume(t),o):n(t)}}function FV(e,t,n){return r;function r(t){return e.consume(t),i}function i(e){return $N(e)?n(e):t(e)}}function IV(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||oP(e)}function LV(e){return!QN(e)}function RV(e){return!(e===47||zV(e))}function zV(e){return e===43||e===45||e===46||e===95||$N(e)}function BV(e){let t=e.length,n=!1;for(;t--;){let r=e[t][1];if((r.type===`labelLink`||r.type===`labelImage`)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}var VV={tokenize:YV,partial:!0};function HV(){return{document:{91:{name:`gfmFootnoteDefinition`,tokenize:KV,continuation:{tokenize:qV},exit:JV}},text:{91:{name:`gfmFootnoteCall`,tokenize:GV},93:{name:`gfmPotentialFootnoteCall`,add:`after`,tokenize:UV,resolveTo:WV}}}}function UV(e,t,n){let r=this,i=r.events.length,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),o;for(;i--;){let e=r.events[i][1];if(e.type===`labelImage`){o=e;break}if(e.type===`gfmFootnoteCall`||e.type===`labelLink`||e.type===`label`||e.type===`image`||e.type===`link`)break}return s;function s(i){if(!o||!o._balanced)return n(i);let s=ZN(r.sliceSerialize({start:o.end,end:r.now()}));return s.codePointAt(0)!==94||!a.includes(s.slice(1))?n(i):(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(i),e.exit(`gfmFootnoteCallLabelMarker`),t(i))}}function WV(e,t){let n=e.length;for(;n--;)if(e[n][1].type===`labelImage`&&e[n][0]===`enter`){e[n][1];break}e[n+1][1].type=`data`,e[n+3][1].type=`gfmFootnoteCallLabelMarker`;let r={type:`gfmFootnoteCall`,start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:`gfmFootnoteCallMarker`,start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;let a={type:`gfmFootnoteCallString`,start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:`chunkString`,contentType:`string`,start:Object.assign({},a.start),end:Object.assign({},a.end)},s=[e[n+1],e[n+2],[`enter`,r,t],e[n+3],e[n+4],[`enter`,i,t],[`exit`,i,t],[`enter`,a,t],[`enter`,o,t],[`exit`,o,t],[`exit`,a,t],e[e.length-2],e[e.length-1],[`exit`,r,t]];return e.splice(n,e.length-n+1,...s),e}function GV(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a=0,o;return s;function s(t){return e.enter(`gfmFootnoteCall`),e.enter(`gfmFootnoteCallLabelMarker`),e.consume(t),e.exit(`gfmFootnoteCallLabelMarker`),c}function c(t){return t===94?(e.enter(`gfmFootnoteCallMarker`),e.consume(t),e.exit(`gfmFootnoteCallMarker`),e.enter(`gfmFootnoteCallString`),e.enter(`chunkString`).contentType=`string`,l):n(t)}function l(s){if(a>999||s===93&&!o||s===null||s===91||oP(s))return n(s);if(s===93){e.exit(`chunkString`);let a=e.exit(`gfmFootnoteCallString`);return i.includes(ZN(r.sliceSerialize(a)))?(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(s),e.exit(`gfmFootnoteCallLabelMarker`),e.exit(`gfmFootnoteCall`),t):n(s)}return oP(s)||(o=!0),a++,e.consume(s),s===92?u:l}function u(t){return t===91||t===92||t===93?(e.consume(t),a++,l):l(t)}}function KV(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a,o=0,s;return c;function c(t){return e.enter(`gfmFootnoteDefinition`)._container=!0,e.enter(`gfmFootnoteDefinitionLabel`),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),l}function l(t){return t===94?(e.enter(`gfmFootnoteDefinitionMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionMarker`),e.enter(`gfmFootnoteDefinitionLabelString`),e.enter(`chunkString`).contentType=`string`,u):n(t)}function u(t){if(o>999||t===93&&!s||t===null||t===91||oP(t))return n(t);if(t===93){e.exit(`chunkString`);let n=e.exit(`gfmFootnoteDefinitionLabelString`);return a=ZN(r.sliceSerialize(n)),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),e.exit(`gfmFootnoteDefinitionLabel`),f}return oP(t)||(s=!0),o++,e.consume(t),t===92?d:u}function d(t){return t===91||t===92||t===93?(e.consume(t),o++,u):u(t)}function f(t){return t===58?(e.enter(`definitionMarker`),e.consume(t),e.exit(`definitionMarker`),i.includes(a)||i.push(a),fP(e,p,`gfmFootnoteDefinitionWhitespace`)):n(t)}function p(e){return t(e)}}function qV(e,t,n){return e.check(DP,t,e.attempt(VV,t,n))}function JV(e){e.exit(`gfmFootnoteDefinition`)}function YV(e,t,n){let r=this;return fP(e,i,`gfmFootnoteDefinitionIndent`,5);function i(e){let i=r.events[r.events.length-1];return i&&i[1].type===`gfmFootnoteDefinitionIndent`&&i[2].sliceSerialize(i[1],!0).length===4?t(e):n(e)}}function XV(e){let t=(e||{}).singleTilde,n={name:`strikethrough`,tokenize:i,resolveAll:r};return t??=!0,{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}};function r(e,t){let n=-1;for(;++n<e.length;)if(e[n][0]===`enter`&&e[n][1].type===`strikethroughSequenceTemporary`&&e[n][1]._close){let r=n;for(;r--;)if(e[r][0]===`exit`&&e[r][1].type===`strikethroughSequenceTemporary`&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset===e[r][1].end.offset-e[r][1].start.offset){e[n][1].type=`strikethroughSequence`,e[r][1].type=`strikethroughSequence`;let i={type:`strikethrough`,start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},a={type:`strikethroughText`,start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},o=[[`enter`,i,t],[`enter`,e[r][1],t],[`exit`,e[r][1],t],[`enter`,a,t]],s=t.parser.constructs.insideSpan.null;s&&WN(o,o.length,0,bP(s,e.slice(r+1,n),t)),WN(o,o.length,0,[[`exit`,a,t],[`enter`,e[n][1],t],[`exit`,e[n][1],t],[`exit`,i,t]]),WN(e,r-1,n-r+3,o),n=r+o.length-2;break}}for(n=-1;++n<e.length;)e[n][1].type===`strikethroughSequenceTemporary`&&(e[n][1].type=`data`);return e}function i(e,n,r){let i=this.previous,a=this.events,o=0;return s;function s(t){return i===126&&a[a.length-1][1].type!==`characterEscape`?r(t):(e.enter(`strikethroughSequenceTemporary`),c(t))}function c(a){let s=yP(i);if(a===126)return o>1?r(a):(e.consume(a),o++,c);if(o<2&&!t)return r(a);let l=e.exit(`strikethroughSequenceTemporary`),u=yP(a);return l._open=!u||u===2&&!!s,l._close=!s||s===2&&!!u,n(a)}}}var ZV=class{constructor(){this.map=[]}add(e,t,n){QV(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),this.map.length===0)return;let t=this.map.length,n=[];for(;t>0;)--t,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(let t of r)e.push(t);r=n.pop()}this.map.length=0}};function QV(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}function $V(e,t){let n=!1,r=[];for(;t<e.length;){let i=e[t];if(n){if(i[0]===`enter`)i[1].type===`tableContent`&&r.push(e[t+1][1].type===`tableDelimiterMarker`?`left`:`none`);else if(i[1].type===`tableContent`){if(e[t-1][1].type===`tableDelimiterMarker`){let e=r.length-1;r[e]=r[e]===`left`?`center`:`right`}}else if(i[1].type===`tableDelimiterRow`)break}else i[0]===`enter`&&i[1].type===`tableDelimiterRow`&&(n=!0);t+=1}return r}function eH(){return{flow:{null:{name:`table`,tokenize:tH,resolveAll:nH}}}}function tH(e,t,n){let r=this,i=0,a=0,o;return s;function s(e){let t=r.events.length-1;for(;t>-1;){let e=r.events[t][1].type;if(e===`lineEnding`||e===`linePrefix`)t--;else break}let i=t>-1?r.events[t][1].type:null,a=i===`tableHead`||i===`tableRow`?S:c;return a===S&&r.parser.lazy[r.now().line]?n(e):a(e)}function c(t){return e.enter(`tableHead`),e.enter(`tableRow`),l(t)}function l(e){return e===124?u(e):(o=!0,a+=1,u(e))}function u(t){return t===null?n(t):aP(t)?a>1?(a=0,r.interrupt=!0,e.exit(`tableRow`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),p):n(t):sP(t)?fP(e,u,`whitespace`)(t):(a+=1,o&&(o=!1,i+=1),t===124?(e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),o=!0,u):(e.enter(`data`),d(t)))}function d(t){return t===null||t===124||oP(t)?(e.exit(`data`),u(t)):(e.consume(t),t===92?f:d)}function f(t){return t===92||t===124?(e.consume(t),d):d(t)}function p(t){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter(`tableDelimiterRow`),o=!1,sP(t)?fP(e,m,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):m(t))}function m(t){return t===45||t===58?g(t):t===124?(o=!0,e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),h):x(t)}function h(t){return sP(t)?fP(e,g,`whitespace`)(t):g(t)}function g(t){return t===58?(a+=1,o=!0,e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),_):t===45?(a+=1,_(t)):t===null||aP(t)?b(t):x(t)}function _(t){return t===45?(e.enter(`tableDelimiterFiller`),v(t)):x(t)}function v(t){return t===45?(e.consume(t),v):t===58?(o=!0,e.exit(`tableDelimiterFiller`),e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),y):(e.exit(`tableDelimiterFiller`),y(t))}function y(t){return sP(t)?fP(e,b,`whitespace`)(t):b(t)}function b(n){return n===124?m(n):n===null||aP(n)?!o||i!==a?x(n):(e.exit(`tableDelimiterRow`),e.exit(`tableHead`),t(n)):x(n)}function x(e){return n(e)}function S(t){return e.enter(`tableRow`),C(t)}function C(n){return n===124?(e.enter(`tableCellDivider`),e.consume(n),e.exit(`tableCellDivider`),C):n===null||aP(n)?(e.exit(`tableRow`),t(n)):sP(n)?fP(e,C,`whitespace`)(n):(e.enter(`data`),w(n))}function w(t){return t===null||t===124||oP(t)?(e.exit(`data`),C(t)):(e.consume(t),t===92?T:w)}function T(t){return t===92||t===124?(e.consume(t),w):w(t)}}function nH(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],o=[0,0,0,0],s=!1,c=0,l,u,d,f=new ZV;for(;++n<e.length;){let p=e[n],m=p[1];p[0]===`enter`?m.type===`tableHead`?(s=!1,c!==0&&(iH(f,t,c,l,u),u=void 0,c=0),l={type:`table`,start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[[`enter`,l,t]])):m.type===`tableRow`||m.type===`tableDelimiterRow`?(r=!0,d=void 0,a=[0,0,0,0],o=[0,n+1,0,0],s&&(s=!1,u={type:`tableBody`,start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[[`enter`,u,t]])),i=m.type===`tableDelimiterRow`?2:u?3:1):i&&(m.type===`data`||m.type===`tableDelimiterMarker`||m.type===`tableDelimiterFiller`)?(r=!1,o[2]===0&&(a[1]!==0&&(o[0]=o[1],d=rH(f,t,a,i,void 0,d),a=[0,0,0,0]),o[2]=n)):m.type===`tableCellDivider`&&(r?r=!1:(a[1]!==0&&(o[0]=o[1],d=rH(f,t,a,i,void 0,d)),a=o,o=[a[1],n,0,0])):m.type===`tableHead`?(s=!0,c=n):m.type===`tableRow`||m.type===`tableDelimiterRow`?(c=n,a[1]===0?o[1]!==0&&(d=rH(f,t,o,i,n,d)):(o[0]=o[1],d=rH(f,t,a,i,n,d)),i=0):i&&(m.type===`data`||m.type===`tableDelimiterMarker`||m.type===`tableDelimiterFiller`)&&(o[3]=n)}for(c!==0&&iH(f,t,c,l,u),f.consume(t.events),n=-1;++n<t.events.length;){let e=t.events[n];e[0]===`enter`&&e[1].type===`table`&&(e[1]._align=$V(t.events,n))}return e}function rH(e,t,n,r,i,a){let o=r===1?`tableHeader`:r===2?`tableDelimiter`:`tableData`;n[0]!==0&&(a.end=Object.assign({},aH(t.events,n[0])),e.add(n[0],0,[[`exit`,a,t]]));let s=aH(t.events,n[1]);if(a={type:o,start:Object.assign({},s),end:Object.assign({},s)},e.add(n[1],0,[[`enter`,a,t]]),n[2]!==0){let i=aH(t.events,n[2]),a=aH(t.events,n[3]),o={type:`tableContent`,start:Object.assign({},i),end:Object.assign({},a)};if(e.add(n[2],0,[[`enter`,o,t]]),r!==2){let r=t.events[n[2]],i=t.events[n[3]];if(r[1].end=Object.assign({},i[1].end),r[1].type=`chunkText`,r[1].contentType=`text`,n[3]>n[2]+1){let t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[[`exit`,o,t]])}return i!==void 0&&(a.end=Object.assign({},aH(t.events,i)),e.add(i,0,[[`exit`,a,t]]),a=void 0),a}function iH(e,t,n,r,i){let a=[],o=aH(t.events,n);i&&(i.end=Object.assign({},o),a.push([`exit`,i,t])),r.end=Object.assign({},o),a.push([`exit`,r,t]),e.add(n+1,0,a)}function aH(e,t){let n=e[t],r=n[0]===`enter`?`start`:`end`;return n[1][r]}var oH={name:`tasklistCheck`,tokenize:cH};function sH(){return{text:{91:oH}}}function cH(e,t,n){let r=this;return i;function i(t){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(t):(e.enter(`taskListCheck`),e.enter(`taskListCheckMarker`),e.consume(t),e.exit(`taskListCheckMarker`),a)}function a(t){return oP(t)?(e.enter(`taskListCheckValueUnchecked`),e.consume(t),e.exit(`taskListCheckValueUnchecked`),o):t===88||t===120?(e.enter(`taskListCheckValueChecked`),e.consume(t),e.exit(`taskListCheckValueChecked`),o):n(t)}function o(t){return t===93?(e.enter(`taskListCheckMarker`),e.consume(t),e.exit(`taskListCheckMarker`),e.exit(`taskListCheck`),s):n(t)}function s(r){return aP(r)?t(r):sP(r)?e.check({tokenize:lH},t,n)(r):n(r)}}function lH(e,t,n){return fP(e,r,`whitespace`);function r(e){return e===null?n(e):t(e)}}function uH(e){return qN([EV(),HV(),XV(e),eH(),sH()])}var dH={};function fH(e){let t=this,n=e||dH,r=t.data(),i=r.micromarkExtensions||=[],a=r.fromMarkdownExtensions||=[],o=r.toMarkdownExtensions||=[];i.push(uH(n)),a.push(hV()),o.push(gV(n))}var pH={markdownLoading:`_markdownLoading_1owo7_1`,markdownShell:`_markdownShell_1owo7_6`,deletedBanner:`_deletedBanner_1owo7_12`,markdownArticle:`_markdownArticle_1owo7_15`,markdownBody:`_markdownBody_1owo7_21`,markdownInlineCode:`_markdownInlineCode_1owo7_43`,markdownPre:`_markdownPre_1owo7_53`,markdownTableScroll:`_markdownTableScroll_1owo7_95`},mH={markdownCommentBlock:`_markdownCommentBlock_dpohk_1`,markdownCommentContent:`_markdownCommentContent_dpohk_7`,commentTrigger:`_commentTrigger_dpohk_11`,inlineThreadStack:`_inlineThreadStack_dpohk_37`},hH=v.memo(function({lineNumber:e,filePath:t,lineThreads:n,children:r,onCreate:i,onLocateThread:a,onPatchThread:o,onDeleteThread:s,onReplyThread:c,onPatchComment:l,onCopyThread:u}){let[d,f]=v.useState(!1);return(0,Q.jsxs)(`div`,{className:mH.markdownCommentBlock,"data-review-anchor":`line:${e}`,"data-review-line":e,children:[(0,Q.jsx)(`div`,{className:mH.markdownCommentContent,children:r}),n.length===0?(0,Q.jsx)(`button`,{className:mH.commentTrigger,type:`button`,"aria-label":`添加行评论`,onClick:()=>f(!0),children:(0,Q.jsx)(VA,{})}):null,d?(0,Q.jsx)(Tj,{onCancel:()=>f(!1),onSubmit:async n=>{await i({type:`markdown-line`,filePath:t,lineNumber:e,blockId:`line-${e}`},n),f(!1)}}):null,n.length>0?(0,Q.jsx)(`div`,{className:mH.inlineThreadStack,children:(0,Q.jsx)(Mj,{threads:n,onFocus:a,onPatch:o,onDeleteThread:s,onReply:c,onPatchComment:l,onCopy:u})}):null]})}),gH={mermaidDiagram:`_mermaidDiagram_3tdz3_1`,mermaidLoading:`_mermaidLoading_3tdz3_2`,mermaidFallback:`_mermaidFallback_3tdz3_3`,mermaidError:`_mermaidError_3tdz3_29`},_H=`modulepreload`,vH=function(e){return`/`+e},yH={},bH=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}r=o(t.map(t=>{if(t=vH(t,n),t in yH)return;yH[t]=!0;let r=t.endsWith(`.css`),i=r?`[rel="stylesheet"]`:``;if(n)for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}else if(document.querySelector(`link[href="${t}"]${i}`))return;let o=document.createElement(`link`);if(o.rel=r?`stylesheet`:_H,r||(o.as=`script`),o.crossOrigin=``,o.href=t,a&&o.setAttribute(`nonce`,a),document.head.appendChild(o),r)return new Promise((e,n)=>{o.addEventListener(`load`,e),o.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})};function xH({chart:e}){let t=v.useId(),n=v.useMemo(()=>`mermaid-${t.replace(/[^a-zA-Z0-9_-]/g,``)}`,[t]),[r,i]=v.useState(``),[a,o]=v.useState(``);return v.useEffect(()=>{let t=!0;async function r(){try{let r=(await bH(async()=>{let{default:e}=await import(`./mermaid.core-KWVajzzH.js`);return{default:e}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]))).default;r.initialize({startOnLoad:!1,securityLevel:`strict`,theme:`default`});let a=await r.render(n,e);if(!t)return;i(a.svg),o(``)}catch(e){if(!t)return;i(``),o(e instanceof Error?e.message:`Mermaid 图表渲染失败`)}}return r(),()=>{t=!1}},[e,n]),a?(0,Q.jsxs)(`div`,{className:gH.mermaidFallback,children:[(0,Q.jsxs)(`div`,{className:gH.mermaidError,children:[`Mermaid 渲染失败:`,a]}),(0,Q.jsx)(`pre`,{children:(0,Q.jsx)(`code`,{children:e})})]}):r?(0,Q.jsx)(`div`,{className:gH.mermaidDiagram,dangerouslySetInnerHTML:{__html:r}}):(0,Q.jsx)(`div`,{className:gH.mermaidLoading,children:`正在渲染图表...`})}var SH=[pz,fH];function CH(e){return e.anchor.type===`file`?0:e.anchor.type===`markdown-line`?e.anchor.lineNumber:2**53-1}function wH(e,t){return t.filter(t=>t.filePath===e&&t.status!==`resolved`).sort((e,t)=>CH(e)-CH(t)||e.createdAt.localeCompare(t.createdAt))[0]}function TH(e){e.scrollTop=0}function EH(e,t){let n=e.getBoundingClientRect(),r=t.getBoundingClientRect();e.scrollTop+=r.top-n.top}function DH(e,t){let n=[...e.querySelectorAll(`[data-review-line]`)];return n.filter(e=>Number(e.dataset.reviewLine)<=t).at(-1)??n.find(e=>Number(e.dataset.reviewLine)>=t)??null}function OH(e,t){let n=e.blocks.find(e=>t>=e.startLine&&t<=e.endLine);return n?n.startLine:e.blocks.find(e=>e.startLine>=t)?.startLine??e.blocks.at(-1)?.startLine??t}function kH(e){return/^(https?:|mailto:|#|\.{0,2}\/|\/)/i.test(e.trim())}function AH(e){let t=e.split(`/`).filter(e=>e.length>0&&e!==`.`),n=[];for(let e of t){if(e===`..`){n.pop();continue}n.push(e)}return n}function jH(e,t){if(!t||/^https?:|^mailto:|^#/i.test(t)||t.startsWith(`/`))return t;let n=t.split(`#`)[0]?.split(`?`)[0]??t,r=AH(e);r.pop();let i=AH(n),a=[...r,...i].join(`/`);return a?`/api/markdown-asset?path=${encodeURIComponent(a)}`:t}function MH(e){return typeof e==`string`||typeof e==`number`?String(e):Array.isArray(e)?e.map(MH).join(``):v.isValidElement(e)?MH(e.props.children):``}function NH(e){return Array.isArray(e)?e.filter(e=>typeof e==`string`).join(` `):typeof e==`string`?e:``}function PH(e){return v.isValidElement(e)&&!!(e.props.className||e.props.children)}function FH(e){let t=e?.position?.start?.line;return typeof t==`number`?t:void 0}function IH(e){let t=e?.children?.find(e=>e.tagName===`code`);return NH(t?.properties?.className)}function LH(e){return e?e.type===`text`?e.value??``:e.children?.map(LH).join(``)??``:``}function RH(e){let t=e?.children?.find(e=>e.tagName===`code`);return LH(t)}function zH({file:e,threads:t,locateTarget:n,onCreate:r,onLocateThread:i,onPatchThread:a,onDeleteThread:o,onReplyThread:s,onPatchComment:c,onCopyThread:l}){let[u,d]=v.useState(null),f=v.useRef(null),p=v.useRef(``);v.useEffect(()=>{d(null),fetch(`/api/markdown-preview?path=${encodeURIComponent(e.path)}`).then(e=>e.json()).then(e=>d(e)).catch(()=>d(null))},[e.path]),v.useEffect(()=>{let n=f.current;if(!n||!u||u.filePath!==e.path||p.current===e.path)return;p.current=e.path;let r=wH(e.path,t);window.requestAnimationFrame(()=>{if(!r||r.anchor.type===`file`||r.anchor.type!==`markdown-line`){TH(n);return}let e=OH(u,r.anchor.lineNumber),t=n.querySelector(`[data-review-line="${e}"]`)??DH(n,e);if(!t){TH(n);return}EH(n,t)})},[e.path,u,t]),v.useEffect(()=>{let t=f.current;if(!t||!u||!n||n.anchor.filePath!==e.path)return;if(n.anchor.type===`file`){TH(t);return}if(n.anchor.type!==`markdown-line`)return;let r=OH(u,n.anchor.lineNumber),i=t.querySelector(`[data-review-line="${r}"]`)??DH(t,r);i?EH(t,i):TH(t)},[e.path,n,u]);let m=v.useMemo(()=>{let n=new Map;for(let r of t){if(r.anchor.type!==`markdown-line`||r.anchor.filePath!==e.path)continue;let t=u?.blocks.find(e=>r.anchor.type===`markdown-line`&&r.anchor.lineNumber>=e.startLine&&r.anchor.lineNumber<=e.endLine)?.startLine??r.anchor.lineNumber,i=n.get(t)??[];i.push(r),n.set(t,i)}return n},[e.path,u?.blocks,t]),h=v.useCallback((t,n)=>t?(0,Q.jsx)(hH,{lineNumber:t,filePath:e.path,lineThreads:m.get(t)??[],onCreate:r,onLocateThread:i,onPatchThread:a,onDeleteThread:o,onReplyThread:s,onPatchComment:c,onCopyThread:l,children:n}):n,[e.path,l,r,o,i,c,a,s,m]),g=v.useMemo(()=>({h1({children:e,node:t,...n}){return h(FH(t),(0,Q.jsx)(`h1`,{...n,children:e}))},h2({children:e,node:t,...n}){return h(FH(t),(0,Q.jsx)(`h2`,{...n,children:e}))},h3({children:e,node:t,...n}){return h(FH(t),(0,Q.jsx)(`h3`,{...n,children:e}))},h4({children:e,node:t,...n}){return h(FH(t),(0,Q.jsx)(`h4`,{...n,children:e}))},h5({children:e,node:t,...n}){return h(FH(t),(0,Q.jsx)(`h5`,{...n,children:e}))},h6({children:e,node:t,...n}){return h(FH(t),(0,Q.jsx)(`h6`,{...n,children:e}))},p({children:e,node:t,...n}){return h(FH(t),(0,Q.jsx)(`p`,{...n,children:e}))},blockquote({children:e,node:t,...n}){return h(FH(t),(0,Q.jsx)(`blockquote`,{...n,children:e}))},pre({children:e,node:t,...n}){let r=v.Children.toArray(e).find(PH),i=MH(r??e)||RH(t),a=r?.props.className??IH(t),o=/language-(\S+)/.exec(a)?.[1],s=i.replace(/\n$/,``),c=FH(t);return o===`mermaid`&&s.trim()?h(c,(0,Q.jsx)(xH,{chart:s})):h(c,(0,Q.jsx)(`pre`,{className:pH.markdownPre,...n,children:e}))},code({className:e,children:t,node:n,...r}){return e?(0,Q.jsx)(`code`,{className:e,...r,children:t}):(0,Q.jsx)(`code`,{className:pH.markdownInlineCode,...r,children:t})},table({children:e,node:t,...n}){return h(FH(t),(0,Q.jsx)(`div`,{className:pH.markdownTableScroll,children:(0,Q.jsx)(`table`,{...n,children:e})}))},a({href:e,children:t,node:n,...r}){let i=e??``;if(!i||!kH(i))return(0,Q.jsx)(`span`,{children:t});let a=/^https?:/i.test(i);return(0,Q.jsx)(`a`,{href:i,target:a?`_blank`:void 0,rel:a?`noreferrer`:void 0,...r,children:t})},img({src:t,alt:n,node:r,...i}){let a=t??``;return!a||!kH(a)?null:(0,Q.jsx)(`img`,{src:jH(e.path,a),alt:n??``,loading:`lazy`,...i})}}),[e.path,h]);return u?(0,Q.jsxs)(`div`,{className:pH.markdownShell,ref:f,children:[u.deleted?(0,Q.jsx)(Jc,{className:pH.deletedBanner,message:`该文件已删除,仅展示删除前预览`,type:`warning`,showIcon:!0}):null,(0,Q.jsx)(`article`,{className:pH.markdownArticle,children:(0,Q.jsx)(`div`,{className:pH.markdownBody,children:(0,Q.jsx)(VR,{remarkPlugins:SH,urlTransform:e=>kH(e)?e:``,components:g,children:u.content})})})]}):(0,Q.jsx)(`div`,{className:pH.markdownLoading,children:(0,Q.jsx)(FO,{})})}function BH(e){return e.mode.kind===`revision`?`范围:${e.mode.base}..${e.mode.target}`:e.mode.kind===`staged`?`范围:暂存区`:e.mode.kind===`working`?`范围:工作区`:`范围:未知`}function VH(e){return e.anchor.type===`file`?e.filePath:`${e.filePath}:${e.anchor.lineNumber}`}var HH={threads:`_threads_1i06v_1`,threadScopeBar:`_threadScopeBar_1i06v_5`,threadScopeLabel:`_threadScopeLabel_1i06v_15`,threadScopeSwitchRow:`_threadScopeSwitchRow_1i06v_22`,threadScopeSwitchRowDisabled:`_threadScopeSwitchRowDisabled_1i06v_32`,threadScopeOption:`_threadScopeOption_1i06v_35`,threadScopeOptionActive:`_threadScopeOptionActive_1i06v_57`,threadScopeSwitch:`_threadScopeSwitch_1i06v_22`,threadListToolbar:`_threadListToolbar_1i06v_69`,threadFilterWrap:`_threadFilterWrap_1i06v_78`,threadBatchButton:`_threadBatchButton_1i06v_89`,thread:`_thread_1i06v_1`,threadFocused:`_threadFocused_1i06v_133`,submit:`_submit_1i06v_138`,replied:`_replied_1i06v_142`,resolved:`_resolved_1i06v_146`,threadLocateFlash:`_threadLocateFlash_1i06v_150`,threadTopButton:`_threadTopButton_1i06v_156`,threadTop:`_threadTop_1i06v_156`,threadAnchor:`_threadAnchor_1i06v_178`,threadTag:`_threadTag_1i06v_185`,threadTagResolved:`_threadTagResolved_1i06v_194`,threadTagSubmit:`_threadTagSubmit_1i06v_199`,threadTagReplied:`_threadTagReplied_1i06v_204`,threadEmpty:`_threadEmpty_1i06v_209`},UH={submit:0,replied:1,resolved:2};function WH({threads:e,currentFiles:t,currentFilePath:n,focusedThreadId:r,onLocateThread:i,onPatch:a,onDeleteThread:o,onReply:s,onPatchComment:c,onCopy:l}){let[u,d]=v.useState(`all`),[f,p]=v.useState(`current-file`),[m,h]=v.useState(null),g=v.useRef({}),_=v.useMemo(()=>n?e.filter(e=>e.filePath===n).length:0,[n,e]),y=v.useMemo(()=>f===`all-diff`?e:n?e.filter(e=>e.filePath===n):[],[n,f,e]),b=v.useMemo(()=>y.map(e=>({key:e.id,thread:e})),[y]),x=v.useMemo(()=>b.filter(e=>{let t=Oj(e.thread);return u===`resolved`?t===`resolved`:u===`pending`?t!==`resolved`:!0}).sort((e,t)=>{let n=Oj(e.thread),r=Oj(t.thread);return UH[n]-UH[r]}),[u,b]),S=v.useMemo(()=>({resolved:y.filter(e=>Oj(e)===`resolved`),submit:y.filter(e=>Oj(e)===`submit`)}),[y]),C=v.useCallback(async e=>{let t=[];e===`delete-resolved`&&(t=S.resolved),e===`delete-submit`&&(t=S.submit),e===`delete-all`&&(t=y);for(let e of t)await o(e.id)},[S.resolved,S.submit,o,y]),w=v.useCallback(e=>{let t=e===`delete-resolved`?S.resolved.length:e===`delete-submit`?S.submit.length:y.length,n=e===`delete-resolved`?`删除全部已解决评论(${t})?`:e===`delete-submit`?`删除全部 submit 评论(${t})?`:`清空全部评论(${t})?`,r=e===`delete-all`?`清空`:`删除`;qO.confirm({title:n,okText:r,cancelText:`取消`,okButtonProps:e===`delete-all`?{danger:!0}:void 0,onOk:async()=>C(e)})},[S.resolved.length,S.submit.length,C,y.length]);return v.useEffect(()=>{n||p(`all-diff`)},[n]),v.useEffect(()=>{if(!r)return;let e=x.find(e=>e.thread.id===r);e&&g.current[e.key]?.scrollIntoView({block:`start`,behavior:`smooth`})},[r,x]),v.useEffect(()=>{if(!r)return;h(r);let e=window.setTimeout(()=>{h(e=>e===r?null:e)},1400);return()=>window.clearTimeout(e)},[r]),(0,Q.jsxs)(`div`,{children:[(0,Q.jsxs)(`div`,{className:HH.threadScopeBar,children:[(0,Q.jsx)(MA.Text,{className:HH.threadScopeLabel,children:`查看范围`}),(0,Q.jsxs)(`div`,{className:n?HH.threadScopeSwitchRow:`${HH.threadScopeSwitchRow} ${HH.threadScopeSwitchRowDisabled}`,children:[(0,Q.jsxs)(`button`,{type:`button`,className:f===`current-file`?`${HH.threadScopeOption} ${HH.threadScopeOptionActive}`:HH.threadScopeOption,onClick:()=>p(`current-file`),disabled:!n,children:[`当前文件 (`,_,`)`]}),(0,Q.jsx)(lk,{className:HH.threadScopeSwitch,checked:f===`all-diff`,onChange:e=>p(e?`all-diff`:`current-file`),disabled:!n,size:`small`}),(0,Q.jsxs)(`button`,{type:`button`,className:f===`all-diff`?`${HH.threadScopeOption} ${HH.threadScopeOptionActive}`:HH.threadScopeOption,onClick:()=>p(`all-diff`),disabled:!n,children:[`全部评论 (`,e.length,`)`]})]})]}),(0,Q.jsxs)(`div`,{className:HH.threadListToolbar,children:[(0,Q.jsx)(`div`,{className:HH.threadFilterWrap,children:(0,Q.jsx)(oE,{value:u,onChange:e=>d(e),options:[{label:`全部 (${b.length})`,value:`all`},{label:`未解决 (${b.filter(e=>Oj(e.thread)!==`resolved`).length})`,value:`pending`},{label:`已解决 (${b.filter(e=>Oj(e.thread)===`resolved`).length})`,value:`resolved`}],size:`small`})}),(0,Q.jsx)(NE,{menu:{items:[{key:`delete-resolved`,label:`删除已解决(${S.resolved.length})`,disabled:S.resolved.length===0},{key:`delete-submit`,label:`删除待提交(${S.submit.length})`,disabled:S.submit.length===0},{type:`divider`},{key:`delete-all`,label:`清空全部(${y.length})`,danger:!0,disabled:y.length===0}],onClick:({key:e})=>{(e===`delete-resolved`||e===`delete-submit`||e===`delete-all`)&&w(e)}},trigger:[`click`],children:(0,Q.jsxs)(WC,{size:`small`,className:HH.threadBatchButton,children:[`批量操作 `,(0,Q.jsx)(wb,{})]})})]}),x.length===0?(0,Q.jsx)(nb,{className:HH.threadEmpty,description:`暂无评论,悬停到行右侧或添加文件级评论即可开始。`}):(0,Q.jsx)(`div`,{className:HH.threads,children:x.map(e=>{let n=e.thread,u=Oj(n),d=r===n.id,f=!t.some(e=>Dj(n,e));return(0,Q.jsxs)(RT,{className:[HH.thread,KH(u),d?HH.threadFocused:``,m===n.id?HH.threadLocateFlash:``].filter(Boolean).join(` `),ref:t=>{g.current[e.key]=t},children:[(0,Q.jsx)(`button`,{type:`button`,className:HH.threadTopButton,onClick:()=>i(n.id),children:(0,Q.jsxs)(jE,{className:HH.threadTop,align:`start`,size:8,children:[(0,Q.jsx)(MA.Text,{className:HH.threadAnchor,strong:!0,children:VH(n)}),(0,Q.jsxs)(qE,{gap:`small`,children:[u===`replied`?null:(0,Q.jsx)(jk,{className:`${HH.threadTag} ${GH(u)}`,children:Ej[u]}),f?(0,Q.jsx)(jk,{className:HH.threadTag,children:`历史快照`}):null]})]})}),(0,Q.jsx)(`div`,{children:(0,Q.jsx)(Mj,{threads:[n],variant:`borderless`,showStatusTag:!1,onFocus:i,onPatch:a,onDeleteThread:o,onReply:s,onPatchComment:c,onCopy:l})})]},e.key)})})]})}function GH(e){return e===`submit`?HH.threadTagSubmit:e===`replied`?HH.threadTagReplied:HH.threadTagResolved}function KH(e){return e===`submit`?HH.submit:e===`replied`?HH.replied:HH.resolved}function qH(e){return/\.(avif|bmp|gif|heic|heif|ico|jpe?g|png|svg|tiff?|webp)$/i.test(e)}function JH(e){return e?e.repoName||e.repoRoot.split(/[\\/]/).filter(Boolean).at(-1)||e.repoRoot:`正在加载仓库`}function YH(e,t){return e===t?!0:e.length===t.length?JSON.stringify(e)===JSON.stringify(t):!1}function XH(){let{message:e}=q_.useApp(),[t,n]=v.useState(null),[r,i]=v.useState([]),[a,o]=v.useState([]),[s,c]=v.useState(``),[l,u]=v.useState(`split`),[d,f]=v.useState(null),[p,m]=v.useState(null),[h,g]=v.useState(null),[_,y]=v.useState({}),b=r.find(e=>e.path===s)??r[0],x=v.useMemo(()=>a.filter(e=>r.some(t=>Dj(e,t))),[r,a]),S=v.useMemo(()=>b?x.filter(e=>Dj(e,b)):[],[x,b]),C=x.filter(e=>e.status!==`resolved`).length;v.useEffect(()=>{w()},[]),v.useEffect(()=>{let e=()=>{document.visibilityState===`visible`&&T()},t=window.setInterval(e,2500);return window.addEventListener(`focus`,e),document.addEventListener(`visibilitychange`,e),()=>{window.clearInterval(t),window.removeEventListener(`focus`,e),document.removeEventListener(`visibilitychange`,e)}},[d,t?.id]);async function w(){await T(!0)}async function T(e=!1){let r=await(await fetch(`/api/review-state`)).json();(e||t?.id!==r.session.id)&&(n(r.session),i(r.files),c(e=>r.files.some(t=>t.path===e)?e:r.files[0]?.path??``)),o(e=>YH(e,r.threads)?e:r.threads),d&&!r.threads.some(e=>e.id===d)&&f(null)}async function E(e,t){await fetch(`/api/threads`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({filePath:e.filePath,anchor:e,body:t})}),await T()}async function D(e,t){let n=await fetch(`/api/threads/${e}`,{method:`PATCH`,headers:{"Content-Type":`application/json`},body:JSON.stringify({status:t})});if(!n.ok){let e=await n.json().catch(()=>({error:`更新评论状态失败`}));throw Error(e.error??`更新评论状态失败`)}await T()}async function O(e){await fetch(`/api/threads/${e}`,{method:`DELETE`}),await T()}async function k(e,t){await fetch(`/api/threads/${e}/comments`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({body:t,author:`user`})}),await T()}async function A(e,t,n){if(!t)throw Error(`Comment id is required`);let r=await fetch(`/api/threads/${e}/comments/${t}`,{method:`PATCH`,headers:{"Content-Type":`application/json`},body:JSON.stringify({body:n})});if(!r.ok){let e=await r.json().catch(()=>({error:`编辑评论失败`}));throw Error(e.error??`编辑评论失败`)}await T()}async function j(t){let n=await(await fetch(`/api/prompt`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify(t)})).json();await navigator.clipboard.writeText(n.prompt),e.success(`提示词已复制到剪贴板`)}function M(e){let t=a.find(t=>t.id===e);t&&(r.some(e=>e.path===t.filePath)&&c(t.filePath),m({threadId:e,anchor:t.anchor})),f(e)}function N(e){g(t=>({filePath:e,requestId:(t?.requestId??0)+1}))}function P(e,t){y(n=>(n[e]??!1)===t?n:{...n,[e]:t})}return v.useEffect(()=>{f(null)},[s]),(0,Q.jsxs)(LD,{className:Uj.shell,children:[(0,Q.jsxs)(`aside`,{className:Uj.sidebar,children:[(0,Q.jsxs)(`div`,{className:Uj.brand,children:[(0,Q.jsx)(`div`,{className:Uj.brandMark,children:`DR`}),(0,Q.jsxs)(`div`,{className:Uj.brandCopy,children:[(0,Q.jsx)(MA.Text,{className:Uj.repoName,title:t?.repoRoot,children:JH(t)}),(0,Q.jsx)(MA.Text,{className:Uj.productName,children:`Diff 审查台`}),(0,Q.jsx)(MA.Text,{type:`secondary`,children:t?BH(t):`正在加载会话`})]})]}),(0,Q.jsx)(RT,{className:Uj.sideCard,children:(0,Q.jsxs)(jE,{size:8,wrap:!0,children:[(0,Q.jsx)(jk,{color:`blue`,children:t?.mode.kind===`revision`?`混合模式`:`本地模式`}),(0,Q.jsxs)(jk,{color:`gold`,children:[r.length,` files`]})]})}),(0,Q.jsx)(nM,{files:r,threads:x,selectedPath:b?.path??``,onSelectFile:c})]}),(0,Q.jsx)(`section`,{className:Uj.reviewPane,children:b?(0,Q.jsxs)(Q.Fragment,{children:[b.isMarkdown?null:(0,Q.jsx)(`div`,{className:Uj.topToolbar,children:(0,Q.jsx)(oE,{className:Uj.viewModeSwitcher,options:[{label:`Side by side`,value:`split`,icon:(0,Q.jsx)(WA,{})},{label:`Inline`,value:`inline`,icon:(0,Q.jsx)(oD,{})}],value:l,onChange:e=>u(e)})}),(0,Q.jsxs)(`div`,{className:Uj.reviewSurface,children:[(0,Q.jsx)(iM,{file:b,threads:S,showToggleAllLines:!b.isMarkdown&&!qH(b.path),hasExpandedContext:b?_[b.path]??!1:!1,onCreate:E,onCopy:j,onToggleAllLines:N,onLocateThread:M,onPatchThread:D,onDeleteThread:O,onReplyThread:k,onPatchComment:A,onCopyThread:j}),b.isMarkdown?(0,Q.jsx)(zH,{file:b,threads:S,locateTarget:p,onCreate:E,onLocateThread:M,onPatchThread:D,onDeleteThread:O,onReplyThread:k,onPatchComment:A,onCopyThread:j},t?.id):(0,Q.jsx)(qj,{file:b,threads:S,locateTarget:p,expandAllRequest:h,onExpandedContextChange:P,onCreate:E,onLocateThread:M,onPatchThread:D,onDeleteThread:O,onReplyThread:k,onPatchComment:A,onCopyThread:j,viewMode:l},t?.id)]})]}):(0,Q.jsx)(RT,{className:Uj.emptyStateCard,bordered:!1,children:(0,Q.jsx)(MA.Text,{type:`secondary`,children:`未发现变更,当前工作区很安静。`})})}),(0,Q.jsxs)(`aside`,{className:Uj.threadRail,children:[(0,Q.jsxs)(`div`,{className:Uj.threadRailHeader,children:[(0,Q.jsxs)(MA.Title,{className:Uj.threadRailTitle,level:4,children:[`评论 (`,C,`)`]}),(0,Q.jsx)(WC,{disabled:C===0,icon:(0,Q.jsx)(oA,{}),type:`primary`,onClick:()=>void j({type:`all-unresolved`}),children:`批量提交给 Agent`})]}),(0,Q.jsx)(`div`,{className:Uj.threadRailBody,children:(0,Q.jsx)(WH,{threads:a,currentFiles:r,currentFilePath:b?.path??``,focusedThreadId:d,onLocateThread:M,onPatch:D,onDeleteThread:O,onReply:k,onPatchComment:A,onCopy:j})})]})]})}(0,ud.createRoot)(document.getElementById(`root`)).render((0,Q.jsx)(v.StrictMode,{children:(0,Q.jsx)(ju,{theme:{token:{colorPrimary:`#2f6fed`,colorSuccess:`#2f8f63`,colorWarning:`#d59b2a`,colorTextBase:`#16181d`,colorBgBase:`#f4f6fa`,fontFamily:`"SF Pro Text", "PingFang SC", "Helvetica Neue", sans-serif`,borderRadius:14}},children:(0,Q.jsx)(q_,{children:(0,Q.jsx)(XH,{})})})}));export{er as a,pn as c,un as d,o as f,sr as i,cn as l,cr as n,an as o,l as p,or as r,fn as s,bH as t,mn as u};
288
+ `))}function c(e,t,n,r){let i=n.enter(`tableCell`),o=n.enter(`phrasing`),s=n.containerPhrasing(e,{...r,before:a,after:a});return o(),i(),s}function l(e,t){return vB(e,{align:t,alignDelimiters:r,padding:n,stringLength:i})}function u(e,t,n){let r=e.children,i=-1,a=[],o=t.enter(`table`);for(;++i<r.length;)a[i]=d(r[i],t,n);return o(),a}function d(e,t,n){let r=e.children,i=-1,a=[],o=t.enter(`tableRow`);for(;++i<r.length;)a[i]=c(r[i],e,t,n);return o(),a}function f(e,t,n){let r=hV.inlineCode(e,t,n);return n.stack.includes(`tableCell`)&&(r=r.replace(/\|/g,`\\$&`)),r}}function TV(){return{exit:{taskListCheckValueChecked:DV,taskListCheckValueUnchecked:DV,paragraph:OV}}}function EV(){return{unsafe:[{atBreak:!0,character:`-`,after:`[:|-]`}],handlers:{listItem:kV}}}function DV(e){let t=this.stack[this.stack.length-2];t.type,t.checked=e.type===`taskListCheckValueChecked`}function OV(e){let t=this.stack[this.stack.length-2];if(t&&t.type===`listItem`&&typeof t.checked==`boolean`){let e=this.stack[this.stack.length-1];e.type;let n=e.children[0];if(n&&n.type===`text`){let r=t.children,i=-1,a;for(;++i<r.length;){let e=r[i];if(e.type===`paragraph`){a=e;break}}a===e&&(n.value=n.value.slice(1),n.value.length===0?e.children.shift():e.position&&n.position&&typeof n.position.start.offset==`number`&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function kV(e,t,n,r){let i=e.children[0],a=typeof e.checked==`boolean`&&i&&i.type===`paragraph`,o=`[`+(e.checked?`x`:` `)+`] `,s=n.createTracker(r);a&&s.move(o);let c=hV.listItem(e,t,n,{...r,...s.current()});return a&&(c=c.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,l)),c;function l(e){return e+o}}function AV(){return[Iz(),oB(),dB(),gV(),TV()]}function jV(e){return{extensions:[Lz(),sB(e),fB(),wV(e),EV()]}}var MV={tokenize:KV,partial:!0},NV={tokenize:qV,partial:!0},PV={tokenize:JV,partial:!0},FV={tokenize:YV,partial:!0},IV={tokenize:XV,partial:!0},LV={name:`wwwAutolink`,tokenize:WV,previous:ZV},RV={name:`protocolAutolink`,tokenize:GV,previous:QV},zV={name:`emailAutolink`,tokenize:UV,previous:$V},BV={};function VV(){return{text:BV}}for(var HV=48;HV<123;)BV[HV]=zV,HV++,HV===58?HV=65:HV===91&&(HV=97);BV[43]=zV,BV[45]=zV,BV[46]=zV,BV[95]=zV,BV[72]=[zV,RV],BV[104]=[zV,RV],BV[87]=[zV,LV],BV[119]=[zV,LV];function UV(e,t,n){let r=this,i,a;return o;function o(t){return!eH(t)||!$V.call(r,r.previous)||tH(r.events)?n(t):(e.enter(`literalAutolink`),e.enter(`literalAutolinkEmail`),s(t))}function s(t){return eH(t)?(e.consume(t),s):t===64?(e.consume(t),c):n(t)}function c(t){return t===46?e.check(IV,u,l)(t):t===45||t===95||mP(t)?(a=!0,e.consume(t),c):u(t)}function l(t){return e.consume(t),i=!0,c}function u(o){return a&&i&&pP(r.previous)?(e.exit(`literalAutolinkEmail`),e.exit(`literalAutolink`),t(o)):n(o)}}function WV(e,t,n){let r=this;return i;function i(t){return t!==87&&t!==119||!ZV.call(r,r.previous)||tH(r.events)?n(t):(e.enter(`literalAutolink`),e.enter(`literalAutolinkWww`),e.check(MV,e.attempt(NV,e.attempt(PV,a),n),n)(t))}function a(n){return e.exit(`literalAutolinkWww`),e.exit(`literalAutolink`),t(n)}}function GV(e,t,n){let r=this,i=``,a=!1;return o;function o(t){return(t===72||t===104)&&QV.call(r,r.previous)&&!tH(r.events)?(e.enter(`literalAutolink`),e.enter(`literalAutolinkHttp`),i+=String.fromCodePoint(t),e.consume(t),s):n(t)}function s(t){if(pP(t)&&i.length<5)return i+=String.fromCodePoint(t),e.consume(t),s;if(t===58){let n=i.toLowerCase();if(n===`http`||n===`https`)return e.consume(t),c}return n(t)}function c(t){return t===47?(e.consume(t),a?l:(a=!0,c)):n(t)}function l(t){return t===null||gP(t)||xP(t)||wP(t)||CP(t)?n(t):e.attempt(NV,e.attempt(PV,u),n)(t)}function u(n){return e.exit(`literalAutolinkHttp`),e.exit(`literalAutolink`),t(n)}}function KV(e,t,n){let r=0;return i;function i(t){return(t===87||t===119)&&r<3?(r++,e.consume(t),i):t===46&&r===3?(e.consume(t),a):n(t)}function a(e){return e===null?n(e):t(e)}}function qV(e,t,n){let r,i,a;return o;function o(t){return t===46||t===95?e.check(FV,c,s)(t):t===null||xP(t)||wP(t)||t!==45&&CP(t)?c(t):(a=!0,e.consume(t),o)}function s(t){return t===95?r=!0:(i=r,r=void 0),e.consume(t),o}function c(e){return i||r||!a?n(e):t(e)}}function JV(e,t){let n=0,r=0;return i;function i(o){return o===40?(n++,e.consume(o),i):o===41&&r<n?a(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?e.check(FV,t,a)(o):o===null||xP(o)||wP(o)?t(o):(e.consume(o),i)}function a(t){return t===41&&r++,e.consume(t),i}}function YV(e,t,n){return r;function r(o){return o===33||o===34||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===63||o===95||o===126?(e.consume(o),r):o===38?(e.consume(o),a):o===93?(e.consume(o),i):o===60||o===null||xP(o)||wP(o)?t(o):n(o)}function i(e){return e===null||e===40||e===91||xP(e)||wP(e)?t(e):r(e)}function a(e){return pP(e)?o(e):n(e)}function o(t){return t===59?(e.consume(t),r):pP(t)?(e.consume(t),o):n(t)}}function XV(e,t,n){return r;function r(t){return e.consume(t),i}function i(e){return mP(e)?n(e):t(e)}}function ZV(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||xP(e)}function QV(e){return!pP(e)}function $V(e){return!(e===47||eH(e))}function eH(e){return e===43||e===45||e===46||e===95||mP(e)}function tH(e){let t=e.length,n=!1;for(;t--;){let r=e[t][1];if((r.type===`labelLink`||r.type===`labelImage`)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}var nH={tokenize:uH,partial:!0};function rH(){return{document:{91:{name:`gfmFootnoteDefinition`,tokenize:sH,continuation:{tokenize:cH},exit:lH}},text:{91:{name:`gfmFootnoteCall`,tokenize:oH},93:{name:`gfmPotentialFootnoteCall`,add:`after`,tokenize:iH,resolveTo:aH}}}}function iH(e,t,n){let r=this,i=r.events.length,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),o;for(;i--;){let e=r.events[i][1];if(e.type===`labelImage`){o=e;break}if(e.type===`gfmFootnoteCall`||e.type===`labelLink`||e.type===`label`||e.type===`image`||e.type===`link`)break}return s;function s(i){if(!o||!o._balanced)return n(i);let s=fP(r.sliceSerialize({start:o.end,end:r.now()}));return s.codePointAt(0)!==94||!a.includes(s.slice(1))?n(i):(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(i),e.exit(`gfmFootnoteCallLabelMarker`),t(i))}}function aH(e,t){let n=e.length;for(;n--;)if(e[n][1].type===`labelImage`&&e[n][0]===`enter`){e[n][1];break}e[n+1][1].type=`data`,e[n+3][1].type=`gfmFootnoteCallLabelMarker`;let r={type:`gfmFootnoteCall`,start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:`gfmFootnoteCallMarker`,start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;let a={type:`gfmFootnoteCallString`,start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:`chunkString`,contentType:`string`,start:Object.assign({},a.start),end:Object.assign({},a.end)},s=[e[n+1],e[n+2],[`enter`,r,t],e[n+3],e[n+4],[`enter`,i,t],[`exit`,i,t],[`enter`,a,t],[`enter`,o,t],[`exit`,o,t],[`exit`,a,t],e[e.length-2],e[e.length-1],[`exit`,r,t]];return e.splice(n,e.length-n+1,...s),e}function oH(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a=0,o;return s;function s(t){return e.enter(`gfmFootnoteCall`),e.enter(`gfmFootnoteCallLabelMarker`),e.consume(t),e.exit(`gfmFootnoteCallLabelMarker`),c}function c(t){return t===94?(e.enter(`gfmFootnoteCallMarker`),e.consume(t),e.exit(`gfmFootnoteCallMarker`),e.enter(`gfmFootnoteCallString`),e.enter(`chunkString`).contentType=`string`,l):n(t)}function l(s){if(a>999||s===93&&!o||s===null||s===91||xP(s))return n(s);if(s===93){e.exit(`chunkString`);let a=e.exit(`gfmFootnoteCallString`);return i.includes(fP(r.sliceSerialize(a)))?(e.enter(`gfmFootnoteCallLabelMarker`),e.consume(s),e.exit(`gfmFootnoteCallLabelMarker`),e.exit(`gfmFootnoteCall`),t):n(s)}return xP(s)||(o=!0),a++,e.consume(s),s===92?u:l}function u(t){return t===91||t===92||t===93?(e.consume(t),a++,l):l(t)}}function sH(e,t,n){let r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]),a,o=0,s;return c;function c(t){return e.enter(`gfmFootnoteDefinition`)._container=!0,e.enter(`gfmFootnoteDefinitionLabel`),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),l}function l(t){return t===94?(e.enter(`gfmFootnoteDefinitionMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionMarker`),e.enter(`gfmFootnoteDefinitionLabelString`),e.enter(`chunkString`).contentType=`string`,u):n(t)}function u(t){if(o>999||t===93&&!s||t===null||t===91||xP(t))return n(t);if(t===93){e.exit(`chunkString`);let n=e.exit(`gfmFootnoteDefinitionLabelString`);return a=fP(r.sliceSerialize(n)),e.enter(`gfmFootnoteDefinitionLabelMarker`),e.consume(t),e.exit(`gfmFootnoteDefinitionLabelMarker`),e.exit(`gfmFootnoteDefinitionLabel`),f}return xP(t)||(s=!0),o++,e.consume(t),t===92?d:u}function d(t){return t===91||t===92||t===93?(e.consume(t),o++,u):u(t)}function f(t){return t===58?(e.enter(`definitionMarker`),e.consume(t),e.exit(`definitionMarker`),i.includes(a)||i.push(a),DP(e,p,`gfmFootnoteDefinitionWhitespace`)):n(t)}function p(e){return t(e)}}function cH(e,t,n){return e.check(HP,t,e.attempt(nH,t,n))}function lH(e){e.exit(`gfmFootnoteDefinition`)}function uH(e,t,n){let r=this;return DP(e,i,`gfmFootnoteDefinitionIndent`,5);function i(e){let i=r.events[r.events.length-1];return i&&i[1].type===`gfmFootnoteDefinitionIndent`&&i[2].sliceSerialize(i[1],!0).length===4?t(e):n(e)}}function dH(e){let t=(e||{}).singleTilde,n={name:`strikethrough`,tokenize:i,resolveAll:r};return t??=!0,{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}};function r(e,t){let n=-1;for(;++n<e.length;)if(e[n][0]===`enter`&&e[n][1].type===`strikethroughSequenceTemporary`&&e[n][1]._close){let r=n;for(;r--;)if(e[r][0]===`exit`&&e[r][1].type===`strikethroughSequenceTemporary`&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset===e[r][1].end.offset-e[r][1].start.offset){e[n][1].type=`strikethroughSequence`,e[r][1].type=`strikethroughSequence`;let i={type:`strikethrough`,start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},a={type:`strikethroughText`,start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},o=[[`enter`,i,t],[`enter`,e[r][1],t],[`exit`,e[r][1],t],[`enter`,a,t]],s=t.parser.constructs.insideSpan.null;s&&aP(o,o.length,0,FP(s,e.slice(r+1,n),t)),aP(o,o.length,0,[[`exit`,a,t],[`enter`,e[n][1],t],[`exit`,e[n][1],t],[`exit`,i,t]]),aP(e,r-1,n-r+3,o),n=r+o.length-2;break}}for(n=-1;++n<e.length;)e[n][1].type===`strikethroughSequenceTemporary`&&(e[n][1].type=`data`);return e}function i(e,n,r){let i=this.previous,a=this.events,o=0;return s;function s(t){return i===126&&a[a.length-1][1].type!==`characterEscape`?r(t):(e.enter(`strikethroughSequenceTemporary`),c(t))}function c(a){let s=PP(i);if(a===126)return o>1?r(a):(e.consume(a),o++,c);if(o<2&&!t)return r(a);let l=e.exit(`strikethroughSequenceTemporary`),u=PP(a);return l._open=!u||u===2&&!!s,l._close=!s||s===2&&!!u,n(a)}}}var fH=class{constructor(){this.map=[]}add(e,t,n){pH(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),this.map.length===0)return;let t=this.map.length,n=[];for(;t>0;)--t,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(let t of r)e.push(t);r=n.pop()}this.map.length=0}};function pH(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}function mH(e,t){let n=!1,r=[];for(;t<e.length;){let i=e[t];if(n){if(i[0]===`enter`)i[1].type===`tableContent`&&r.push(e[t+1][1].type===`tableDelimiterMarker`?`left`:`none`);else if(i[1].type===`tableContent`){if(e[t-1][1].type===`tableDelimiterMarker`){let e=r.length-1;r[e]=r[e]===`left`?`center`:`right`}}else if(i[1].type===`tableDelimiterRow`)break}else i[0]===`enter`&&i[1].type===`tableDelimiterRow`&&(n=!0);t+=1}return r}function hH(){return{flow:{null:{name:`table`,tokenize:gH,resolveAll:_H}}}}function gH(e,t,n){let r=this,i=0,a=0,o;return s;function s(e){let t=r.events.length-1;for(;t>-1;){let e=r.events[t][1].type;if(e===`lineEnding`||e===`linePrefix`)t--;else break}let i=t>-1?r.events[t][1].type:null,a=i===`tableHead`||i===`tableRow`?S:c;return a===S&&r.parser.lazy[r.now().line]?n(e):a(e)}function c(t){return e.enter(`tableHead`),e.enter(`tableRow`),l(t)}function l(e){return e===124?u(e):(o=!0,a+=1,u(e))}function u(t){return t===null?n(t):bP(t)?a>1?(a=0,r.interrupt=!0,e.exit(`tableRow`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),p):n(t):SP(t)?DP(e,u,`whitespace`)(t):(a+=1,o&&(o=!1,i+=1),t===124?(e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),o=!0,u):(e.enter(`data`),d(t)))}function d(t){return t===null||t===124||xP(t)?(e.exit(`data`),u(t)):(e.consume(t),t===92?f:d)}function f(t){return t===92||t===124?(e.consume(t),d):d(t)}function p(t){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter(`tableDelimiterRow`),o=!1,SP(t)?DP(e,m,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):m(t))}function m(t){return t===45||t===58?g(t):t===124?(o=!0,e.enter(`tableCellDivider`),e.consume(t),e.exit(`tableCellDivider`),h):x(t)}function h(t){return SP(t)?DP(e,g,`whitespace`)(t):g(t)}function g(t){return t===58?(a+=1,o=!0,e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),_):t===45?(a+=1,_(t)):t===null||bP(t)?b(t):x(t)}function _(t){return t===45?(e.enter(`tableDelimiterFiller`),v(t)):x(t)}function v(t){return t===45?(e.consume(t),v):t===58?(o=!0,e.exit(`tableDelimiterFiller`),e.enter(`tableDelimiterMarker`),e.consume(t),e.exit(`tableDelimiterMarker`),y):(e.exit(`tableDelimiterFiller`),y(t))}function y(t){return SP(t)?DP(e,b,`whitespace`)(t):b(t)}function b(n){return n===124?m(n):n===null||bP(n)?!o||i!==a?x(n):(e.exit(`tableDelimiterRow`),e.exit(`tableHead`),t(n)):x(n)}function x(e){return n(e)}function S(t){return e.enter(`tableRow`),C(t)}function C(n){return n===124?(e.enter(`tableCellDivider`),e.consume(n),e.exit(`tableCellDivider`),C):n===null||bP(n)?(e.exit(`tableRow`),t(n)):SP(n)?DP(e,C,`whitespace`)(n):(e.enter(`data`),w(n))}function w(t){return t===null||t===124||xP(t)?(e.exit(`data`),C(t)):(e.consume(t),t===92?T:w)}function T(t){return t===92||t===124?(e.consume(t),w):w(t)}}function _H(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],o=[0,0,0,0],s=!1,c=0,l,u,d,f=new fH;for(;++n<e.length;){let p=e[n],m=p[1];p[0]===`enter`?m.type===`tableHead`?(s=!1,c!==0&&(yH(f,t,c,l,u),u=void 0,c=0),l={type:`table`,start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[[`enter`,l,t]])):m.type===`tableRow`||m.type===`tableDelimiterRow`?(r=!0,d=void 0,a=[0,0,0,0],o=[0,n+1,0,0],s&&(s=!1,u={type:`tableBody`,start:Object.assign({},m.start),end:Object.assign({},m.end)},f.add(n,0,[[`enter`,u,t]])),i=m.type===`tableDelimiterRow`?2:u?3:1):i&&(m.type===`data`||m.type===`tableDelimiterMarker`||m.type===`tableDelimiterFiller`)?(r=!1,o[2]===0&&(a[1]!==0&&(o[0]=o[1],d=vH(f,t,a,i,void 0,d),a=[0,0,0,0]),o[2]=n)):m.type===`tableCellDivider`&&(r?r=!1:(a[1]!==0&&(o[0]=o[1],d=vH(f,t,a,i,void 0,d)),a=o,o=[a[1],n,0,0])):m.type===`tableHead`?(s=!0,c=n):m.type===`tableRow`||m.type===`tableDelimiterRow`?(c=n,a[1]===0?o[1]!==0&&(d=vH(f,t,o,i,n,d)):(o[0]=o[1],d=vH(f,t,a,i,n,d)),i=0):i&&(m.type===`data`||m.type===`tableDelimiterMarker`||m.type===`tableDelimiterFiller`)&&(o[3]=n)}for(c!==0&&yH(f,t,c,l,u),f.consume(t.events),n=-1;++n<t.events.length;){let e=t.events[n];e[0]===`enter`&&e[1].type===`table`&&(e[1]._align=mH(t.events,n))}return e}function vH(e,t,n,r,i,a){let o=r===1?`tableHeader`:r===2?`tableDelimiter`:`tableData`;n[0]!==0&&(a.end=Object.assign({},bH(t.events,n[0])),e.add(n[0],0,[[`exit`,a,t]]));let s=bH(t.events,n[1]);if(a={type:o,start:Object.assign({},s),end:Object.assign({},s)},e.add(n[1],0,[[`enter`,a,t]]),n[2]!==0){let i=bH(t.events,n[2]),a=bH(t.events,n[3]),o={type:`tableContent`,start:Object.assign({},i),end:Object.assign({},a)};if(e.add(n[2],0,[[`enter`,o,t]]),r!==2){let r=t.events[n[2]],i=t.events[n[3]];if(r[1].end=Object.assign({},i[1].end),r[1].type=`chunkText`,r[1].contentType=`text`,n[3]>n[2]+1){let t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[[`exit`,o,t]])}return i!==void 0&&(a.end=Object.assign({},bH(t.events,i)),e.add(i,0,[[`exit`,a,t]]),a=void 0),a}function yH(e,t,n,r,i){let a=[],o=bH(t.events,n);i&&(i.end=Object.assign({},o),a.push([`exit`,i,t])),r.end=Object.assign({},o),a.push([`exit`,r,t]),e.add(n+1,0,a)}function bH(e,t){let n=e[t],r=n[0]===`enter`?`start`:`end`;return n[1][r]}var xH={name:`tasklistCheck`,tokenize:CH};function SH(){return{text:{91:xH}}}function CH(e,t,n){let r=this;return i;function i(t){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(t):(e.enter(`taskListCheck`),e.enter(`taskListCheckMarker`),e.consume(t),e.exit(`taskListCheckMarker`),a)}function a(t){return xP(t)?(e.enter(`taskListCheckValueUnchecked`),e.consume(t),e.exit(`taskListCheckValueUnchecked`),o):t===88||t===120?(e.enter(`taskListCheckValueChecked`),e.consume(t),e.exit(`taskListCheckValueChecked`),o):n(t)}function o(t){return t===93?(e.enter(`taskListCheckMarker`),e.consume(t),e.exit(`taskListCheckMarker`),e.exit(`taskListCheck`),s):n(t)}function s(r){return bP(r)?t(r):SP(r)?e.check({tokenize:wH},t,n)(r):n(r)}}function wH(e,t,n){return DP(e,r,`whitespace`);function r(e){return e===null?n(e):t(e)}}function TH(e){return cP([VV(),rH(),dH(e),hH(),SH()])}var EH={};function DH(e){let t=this,n=e||EH,r=t.data(),i=r.micromarkExtensions||=[],a=r.fromMarkdownExtensions||=[],o=r.toMarkdownExtensions||=[];i.push(TH(n)),a.push(AV()),o.push(jV(n))}var OH={markdownLoading:`_markdownLoading_13hdt_1`,markdownShell:`_markdownShell_13hdt_6`,deletedBanner:`_deletedBanner_13hdt_12`,markdownArticle:`_markdownArticle_13hdt_15`,markdownBody:`_markdownBody_13hdt_21`,markdownHeading:`_markdownHeading_13hdt_39`,markdownInlineCode:`_markdownInlineCode_13hdt_46`,markdownPre:`_markdownPre_13hdt_56`,markdownBlockquote:`_markdownBlockquote_13hdt_86`,markdownTableScroll:`_markdownTableScroll_13hdt_101`,commentBlockSpacingSm:`_commentBlockSpacingSm_13hdt_109`,commentBlockSpacingMd:`_commentBlockSpacingMd_13hdt_112`,commentBlockSpacingLg:`_commentBlockSpacingLg_13hdt_115`},kH={markdownCommentBlock:`_markdownCommentBlock_15y2w_1`,markdownCommentContent:`_markdownCommentContent_15y2w_7`,commentTrigger:`_commentTrigger_15y2w_11`,inlineThreadStack:`_inlineThreadStack_15y2w_38`},AH=v.memo(function({lineNumber:e,filePath:t,lineThreads:n,children:r,className:i,onCreate:a,onLocateThread:o,onPatchThread:s,onDeleteThread:c,onReplyThread:l,onPatchComment:u,onCopyThread:d}){let[f,p]=v.useState(!1);return(0,Q.jsxs)(`div`,{className:[kH.markdownCommentBlock,i].filter(Boolean).join(` `),"data-review-anchor":`line:${e}`,"data-review-line":e,children:[(0,Q.jsx)(`div`,{className:kH.markdownCommentContent,children:r}),n.length===0?(0,Q.jsx)(`button`,{className:kH.commentTrigger,type:`button`,"aria-label":`添加行评论`,onClick:()=>p(!0),children:(0,Q.jsx)(nj,{})}):null,f?(0,Q.jsx)(Bj,{onCancel:()=>p(!1),onSubmit:async n=>{await a({type:`markdown-line`,filePath:t,lineNumber:e,blockId:`line-${e}`},n),p(!1)}}):null,n.length>0?(0,Q.jsx)(`div`,{className:kH.inlineThreadStack,children:(0,Q.jsx)(qj,{threads:n,onFocus:o,onPatch:s,onDeleteThread:c,onReply:l,onPatchComment:u,onCopy:d})}):null]})}),jH={mermaidDiagram:`_mermaidDiagram_1g6lk_1`,mermaidLoading:`_mermaidLoading_1g6lk_2`,mermaidFallback:`_mermaidFallback_1g6lk_3`,mermaidError:`_mermaidError_1g6lk_29`},MH=`modulepreload`,NH=function(e){return`/`+e},PH={},FH=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}r=o(t.map(t=>{if(t=NH(t,n),t in PH)return;PH[t]=!0;let r=t.endsWith(`.css`),i=r?`[rel="stylesheet"]`:``;if(n)for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}else if(document.querySelector(`link[href="${t}"]${i}`))return;let o=document.createElement(`link`);if(o.rel=r?`stylesheet`:MH,r||(o.as=`script`),o.crossOrigin=``,o.href=t,a&&o.setAttribute(`nonce`,a),document.head.appendChild(o),r)return new Promise((e,n)=>{o.addEventListener(`load`,e),o.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})};function IH({chart:e}){let t=v.useId(),n=v.useMemo(()=>`mermaid-${t.replace(/[^a-zA-Z0-9_-]/g,``)}`,[t]),[r,i]=v.useState(``),[a,o]=v.useState(``);return v.useEffect(()=>{let t=!0;async function r(){try{let r=(await FH(async()=>{let{default:e}=await import(`./mermaid.core-C0NTkxP5.js`);return{default:e}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]))).default;r.initialize({startOnLoad:!1,securityLevel:`strict`,theme:`default`});let a=await r.render(n,e);if(!t)return;i(a.svg),o(``)}catch(e){if(!t)return;i(``),o(e instanceof Error?e.message:`Mermaid 图表渲染失败`)}}return r(),()=>{t=!1}},[e,n]),a?(0,Q.jsxs)(`div`,{className:jH.mermaidFallback,children:[(0,Q.jsxs)(`div`,{className:jH.mermaidError,children:[`Mermaid 渲染失败:`,a]}),(0,Q.jsx)(`pre`,{children:(0,Q.jsx)(`code`,{children:e})})]}):r?(0,Q.jsx)(`div`,{className:jH.mermaidDiagram,dangerouslySetInnerHTML:{__html:r}}):(0,Q.jsx)(`div`,{className:jH.mermaidLoading,children:`正在渲染图表...`})}var LH=[Oz,DH];function RH(e){return e.anchor.type===`file`?0:e.anchor.type===`markdown-line`?e.anchor.lineNumber:2**53-1}function zH(e,t){return t.filter(t=>t.filePath===e&&t.status!==`resolved`).sort((e,t)=>RH(e)-RH(t)||e.createdAt.localeCompare(t.createdAt))[0]}function BH(e){e.scrollTop=0}function VH(e,t){let n=e.getBoundingClientRect(),r=t.getBoundingClientRect();e.scrollTop+=r.top-n.top}function HH(e,t){let n=[...e.querySelectorAll(`[data-review-line]`)];return n.filter(e=>Number(e.dataset.reviewLine)<=t).at(-1)??n.find(e=>Number(e.dataset.reviewLine)>=t)??null}function UH(e,t){let n=e.blocks.find(e=>t>=e.startLine&&t<=e.endLine);return n?n.startLine:e.blocks.find(e=>e.startLine>=t)?.startLine??e.blocks.at(-1)?.startLine??t}function WH(e){return/^(https?:|mailto:|#|\.{0,2}\/|\/)/i.test(e.trim())}function GH(e){let t=e.split(`/`).filter(e=>e.length>0&&e!==`.`),n=[];for(let e of t){if(e===`..`){n.pop();continue}n.push(e)}return n}function KH(e,t){if(!t||/^https?:|^mailto:|^#/i.test(t)||t.startsWith(`/`))return t;let n=t.split(`#`)[0]?.split(`?`)[0]??t,r=GH(e);r.pop();let i=GH(n),a=[...r,...i].join(`/`);return a?`/api/markdown-asset?path=${encodeURIComponent(a)}`:t}function qH(e){return typeof e==`string`||typeof e==`number`?String(e):Array.isArray(e)?e.map(qH).join(``):v.isValidElement(e)?qH(e.props.children):``}function JH(e){return Array.isArray(e)?e.filter(e=>typeof e==`string`).join(` `):typeof e==`string`?e:``}function YH(e){return v.isValidElement(e)&&!!(e.props.className||e.props.children)}function XH(e){let t=e?.position?.start?.line;return typeof t==`number`?t:void 0}function ZH(e){let t=e?.children?.find(e=>e.tagName===`code`);return JH(t?.properties?.className)}function QH(e){return e?e.type===`text`?e.value??``:e.children?.map(QH).join(``)??``:``}function $H(e){let t=e?.children?.find(e=>e.tagName===`code`);return QH(t)}function eU(e,t){return t?e.split(/\r?\n/)[t-1]??``:``}function tU(...e){return e.filter(Boolean).join(` `)}function nU(e){if(e!==1)return e===2?OH.commentBlockSpacingLg:OH.commentBlockSpacingMd}function rU({file:e,threads:t,locateTarget:n,onCreate:r,onLocateThread:i,onPatchThread:a,onDeleteThread:o,onReplyThread:s,onPatchComment:c,onCopyThread:l}){let[u,d]=v.useState(null),f=v.useRef(null),p=v.useRef(``);v.useEffect(()=>{d(null),fetch(`/api/markdown-preview?path=${encodeURIComponent(e.path)}`).then(e=>e.json()).then(e=>d(e)).catch(()=>d(null))},[e.path]),v.useEffect(()=>{let n=f.current;if(!n||!u||u.filePath!==e.path||p.current===e.path)return;p.current=e.path;let r=zH(e.path,t);window.requestAnimationFrame(()=>{if(!r||r.anchor.type===`file`||r.anchor.type!==`markdown-line`){BH(n);return}let e=UH(u,r.anchor.lineNumber),t=n.querySelector(`[data-review-line="${e}"]`)??HH(n,e);if(!t){BH(n);return}VH(n,t)})},[e.path,u,t]),v.useEffect(()=>{let t=f.current;if(!t||!u||!n||n.anchor.filePath!==e.path)return;if(n.anchor.type===`file`){BH(t);return}if(n.anchor.type!==`markdown-line`)return;let r=UH(u,n.anchor.lineNumber),i=t.querySelector(`[data-review-line="${r}"]`)??HH(t,r);i?VH(t,i):BH(t)},[e.path,n,u]);let m=v.useMemo(()=>{let n=new Map;for(let r of t){if(r.anchor.type!==`markdown-line`||r.anchor.filePath!==e.path)continue;let t=u?.blocks.find(e=>r.anchor.type===`markdown-line`&&r.anchor.lineNumber>=e.startLine&&r.anchor.lineNumber<=e.endLine)?.startLine??r.anchor.lineNumber,i=n.get(t)??[];i.push(r),n.set(t,i)}return n},[e.path,u?.blocks,t]),h=v.useCallback((t,n,u)=>t?(0,Q.jsx)(AH,{lineNumber:t,filePath:e.path,lineThreads:m.get(t)??[],className:u?.className,onCreate:r,onLocateThread:i,onPatchThread:a,onDeleteThread:o,onReplyThread:s,onPatchComment:c,onCopyThread:l,children:n}):n,[e.path,l,r,o,i,c,a,s,m]),g=v.useCallback((e,t,n,r,i)=>{let a=`h${e}`;return h(t,v.createElement(a,{...n,className:tU(n.className,OH.markdownHeading),style:{...n.style,...i,marginTop:0}},r),{className:nU(e)})},[h]),_=v.useMemo(()=>({h1({children:e,node:t,...n}){return g(1,XH(t),n,e)},h2({children:e,node:t,style:n,...r}){return g(2,XH(t),{...r,style:n},e,{marginBottom:12})},h3({children:e,node:t,...n}){return g(3,XH(t),n,e)},h4({children:e,node:t,...n}){return g(4,XH(t),n,e)},h5({children:e,node:t,...n}){return g(5,XH(t),n,e)},h6({children:e,node:t,...n}){return g(6,XH(t),n,e)},p({children:e,node:t,...n}){return u&&/^\s*>/.test(eU(u.content,XH(t)))?(0,Q.jsx)(`p`,{...n,children:e}):h(XH(t),(0,Q.jsx)(`p`,{...n,children:e}))},blockquote({children:e,node:t,...n}){return h(XH(t),(0,Q.jsx)(`blockquote`,{...n,className:tU(n.className,OH.markdownBlockquote),children:e}),{className:OH.commentBlockSpacingSm})},pre({children:e,node:t,...n}){let r=v.Children.toArray(e).find(YH),i=qH(r??e)||$H(t),a=r?.props.className??ZH(t),o=/language-(\S+)/.exec(a)?.[1],s=i.replace(/\n$/,``),c=XH(t);return o===`mermaid`&&s.trim()?h(c,(0,Q.jsx)(IH,{chart:s}),{className:OH.commentBlockSpacingMd}):h(c,(0,Q.jsx)(`pre`,{className:OH.markdownPre,...n,children:e}))},code({className:e,children:t,node:n,...r}){return e?(0,Q.jsx)(`code`,{className:e,...r,children:t}):(0,Q.jsx)(`code`,{className:OH.markdownInlineCode,...r,children:t})},table({children:e,node:t,...n}){return h(XH(t),(0,Q.jsx)(`div`,{className:OH.markdownTableScroll,children:(0,Q.jsx)(`table`,{...n,children:e})}),{className:OH.commentBlockSpacingMd})},a({href:e,children:t,node:n,...r}){let i=e??``;if(!i||!WH(i))return(0,Q.jsx)(`span`,{children:t});let a=/^https?:/i.test(i);return(0,Q.jsx)(`a`,{href:i,target:a?`_blank`:void 0,rel:a?`noreferrer`:void 0,...r,children:t})},img({src:t,alt:n,node:r,...i}){let a=t??``;return!a||!WH(a)?null:(0,Q.jsx)(`img`,{src:KH(e.path,a),alt:n??``,loading:`lazy`,...i})}}),[e.path,u,h,g]);return u?(0,Q.jsxs)(`div`,{className:OH.markdownShell,ref:f,children:[u.deleted?(0,Q.jsx)(Jc,{className:OH.deletedBanner,message:`该文件已删除,仅展示删除前预览`,type:`warning`,showIcon:!0}):null,(0,Q.jsx)(`article`,{className:OH.markdownArticle,children:(0,Q.jsx)(`div`,{className:OH.markdownBody,children:(0,Q.jsx)(nz,{remarkPlugins:LH,urlTransform:e=>WH(e)?e:``,components:_,children:u.content})})})]}):(0,Q.jsx)(`div`,{className:OH.markdownLoading,children:(0,Q.jsx)(IO,{})})}function iU(e){return e.mode.kind===`revision`?`范围:${e.mode.base}..${e.mode.target}`:e.mode.kind===`staged`?`范围:暂存区`:e.mode.kind===`working`?`范围:工作区`:`范围:未知`}function aU(e){return e.anchor.type===`file`?e.filePath:`${e.filePath}:${e.anchor.lineNumber}`}var oU={threads:`_threads_1i06v_1`,threadScopeBar:`_threadScopeBar_1i06v_5`,threadScopeLabel:`_threadScopeLabel_1i06v_15`,threadScopeSwitchRow:`_threadScopeSwitchRow_1i06v_22`,threadScopeSwitchRowDisabled:`_threadScopeSwitchRowDisabled_1i06v_32`,threadScopeOption:`_threadScopeOption_1i06v_35`,threadScopeOptionActive:`_threadScopeOptionActive_1i06v_57`,threadScopeSwitch:`_threadScopeSwitch_1i06v_22`,threadListToolbar:`_threadListToolbar_1i06v_69`,threadFilterWrap:`_threadFilterWrap_1i06v_78`,threadBatchButton:`_threadBatchButton_1i06v_89`,thread:`_thread_1i06v_1`,threadFocused:`_threadFocused_1i06v_133`,submit:`_submit_1i06v_138`,replied:`_replied_1i06v_142`,resolved:`_resolved_1i06v_146`,threadLocateFlash:`_threadLocateFlash_1i06v_150`,threadTopButton:`_threadTopButton_1i06v_156`,threadTop:`_threadTop_1i06v_156`,threadAnchor:`_threadAnchor_1i06v_178`,threadTag:`_threadTag_1i06v_185`,threadTagResolved:`_threadTagResolved_1i06v_194`,threadTagSubmit:`_threadTagSubmit_1i06v_199`,threadTagReplied:`_threadTagReplied_1i06v_204`,threadEmpty:`_threadEmpty_1i06v_209`},sU={submit:0,replied:1,resolved:2};function cU({threads:e,currentFiles:t,currentFilePath:n,focusedThreadId:r,onLocateThread:i,onPatch:a,onDeleteThread:o,onReply:s,onPatchComment:c,onCopy:l}){let[u,d]=v.useState(`all`),[f,p]=v.useState(`current-file`),[m,h]=v.useState(null),g=v.useRef({}),_=v.useMemo(()=>n?e.filter(e=>e.filePath===n).length:0,[n,e]),y=v.useMemo(()=>f===`all-diff`?e:n?e.filter(e=>e.filePath===n):[],[n,f,e]),b=v.useMemo(()=>y.map(e=>({key:e.id,thread:e})),[y]),x=v.useMemo(()=>b.filter(e=>{let t=Uj(e.thread);return u===`resolved`?t===`resolved`:u===`pending`?t!==`resolved`:!0}).sort((e,t)=>{let n=Uj(e.thread),r=Uj(t.thread);return sU[n]-sU[r]}),[u,b]),S=v.useMemo(()=>({resolved:y.filter(e=>Uj(e)===`resolved`),submit:y.filter(e=>Uj(e)===`submit`)}),[y]),C=v.useCallback(async e=>{let t=[];e===`delete-resolved`&&(t=S.resolved),e===`delete-submit`&&(t=S.submit),e===`delete-all`&&(t=y);for(let e of t)await o(e.id)},[S.resolved,S.submit,o,y]),w=v.useCallback(e=>{let t=e===`delete-resolved`?S.resolved.length:e===`delete-submit`?S.submit.length:y.length,n=e===`delete-resolved`?`删除全部已解决评论(${t})?`:e===`delete-submit`?`删除全部 submit 评论(${t})?`:`清空全部评论(${t})?`,r=e===`delete-all`?`清空`:`删除`;ck.confirm({title:n,okText:r,cancelText:`取消`,okButtonProps:e===`delete-all`?{danger:!0}:void 0,onOk:async()=>C(e)})},[S.resolved.length,S.submit.length,C,y.length]);return v.useEffect(()=>{n||p(`all-diff`)},[n]),v.useEffect(()=>{if(!r)return;let e=x.find(e=>e.thread.id===r);e&&g.current[e.key]?.scrollIntoView({block:`start`,behavior:`smooth`})},[r,x]),v.useEffect(()=>{if(!r)return;h(r);let e=window.setTimeout(()=>{h(e=>e===r?null:e)},1400);return()=>window.clearTimeout(e)},[r]),(0,Q.jsxs)(`div`,{children:[(0,Q.jsxs)(`div`,{className:oU.threadScopeBar,children:[(0,Q.jsx)(qA.Text,{className:oU.threadScopeLabel,children:`查看范围`}),(0,Q.jsxs)(`div`,{className:n?oU.threadScopeSwitchRow:`${oU.threadScopeSwitchRow} ${oU.threadScopeSwitchRowDisabled}`,children:[(0,Q.jsxs)(`button`,{type:`button`,className:f===`current-file`?`${oU.threadScopeOption} ${oU.threadScopeOptionActive}`:oU.threadScopeOption,onClick:()=>p(`current-file`),disabled:!n,children:[`当前文件 (`,_,`)`]}),(0,Q.jsx)(wk,{className:oU.threadScopeSwitch,checked:f===`all-diff`,onChange:e=>p(e?`all-diff`:`current-file`),disabled:!n,size:`small`}),(0,Q.jsxs)(`button`,{type:`button`,className:f===`all-diff`?`${oU.threadScopeOption} ${oU.threadScopeOptionActive}`:oU.threadScopeOption,onClick:()=>p(`all-diff`),disabled:!n,children:[`全部评论 (`,e.length,`)`]})]})]}),(0,Q.jsxs)(`div`,{className:oU.threadListToolbar,children:[(0,Q.jsx)(`div`,{className:oU.threadFilterWrap,children:(0,Q.jsx)(sE,{value:u,onChange:e=>d(e),options:[{label:`全部 (${b.length})`,value:`all`},{label:`未解决 (${b.filter(e=>Uj(e.thread)!==`resolved`).length})`,value:`pending`},{label:`已解决 (${b.filter(e=>Uj(e.thread)===`resolved`).length})`,value:`resolved`}],size:`small`})}),(0,Q.jsx)(PE,{menu:{items:[{key:`delete-resolved`,label:`删除已解决(${S.resolved.length})`,disabled:S.resolved.length===0},{key:`delete-submit`,label:`删除待提交(${S.submit.length})`,disabled:S.submit.length===0},{type:`divider`},{key:`delete-all`,label:`清空全部(${y.length})`,danger:!0,disabled:y.length===0}],onClick:({key:e})=>{(e===`delete-resolved`||e===`delete-submit`||e===`delete-all`)&&w(e)}},trigger:[`click`],children:(0,Q.jsxs)(GC,{size:`small`,className:oU.threadBatchButton,children:[`批量操作 `,(0,Q.jsx)(Tb,{})]})})]}),x.length===0?(0,Q.jsx)(rb,{className:oU.threadEmpty,description:`暂无评论,悬停到行右侧或添加文件级评论即可开始。`}):(0,Q.jsx)(`div`,{className:oU.threads,children:x.map(e=>{let n=e.thread,u=Uj(n),d=r===n.id,f=!t.some(e=>Hj(n,e));return(0,Q.jsxs)(zT,{className:[oU.thread,uU(u),d?oU.threadFocused:``,m===n.id?oU.threadLocateFlash:``].filter(Boolean).join(` `),ref:t=>{g.current[e.key]=t},children:[(0,Q.jsx)(`button`,{type:`button`,className:oU.threadTopButton,onClick:()=>i(n.id),children:(0,Q.jsxs)(ME,{className:oU.threadTop,align:`start`,size:8,children:[(0,Q.jsx)(qA.Text,{className:oU.threadAnchor,strong:!0,children:aU(n)}),(0,Q.jsxs)(JE,{gap:`small`,children:[u===`replied`?null:(0,Q.jsx)(Kk,{className:`${oU.threadTag} ${lU(u)}`,children:Vj[u]}),f?(0,Q.jsx)(Kk,{className:oU.threadTag,children:`历史快照`}):null]})]})}),(0,Q.jsx)(`div`,{children:(0,Q.jsx)(qj,{threads:[n],variant:`borderless`,showStatusTag:!1,onFocus:i,onPatch:a,onDeleteThread:o,onReply:s,onPatchComment:c,onCopy:l})})]},e.key)})})]})}function lU(e){return e===`submit`?oU.threadTagSubmit:e===`replied`?oU.threadTagReplied:oU.threadTagResolved}function uU(e){return e===`submit`?oU.submit:e===`replied`?oU.replied:oU.resolved}function dU(e){return/\.(avif|bmp|gif|heic|heif|ico|jpe?g|png|svg|tiff?|webp)$/i.test(e)}function fU(e){return e?e.repoName||e.repoRoot.split(/[\\/]/).filter(Boolean).at(-1)||e.repoRoot:`正在加载仓库`}function pU(e,t){return e===t?!0:e.length===t.length?JSON.stringify(e)===JSON.stringify(t):!1}function mU(){let{message:e}=J_.useApp(),[t,n]=v.useState(null),[r,i]=v.useState([]),[a,o]=v.useState([]),[s,c]=v.useState(``),[l,u]=v.useState(`split`),[d,f]=v.useState(null),[p,m]=v.useState(null),[h,g]=v.useState(null),[_,y]=v.useState({}),b=r.find(e=>e.path===s)??r[0],x=v.useMemo(()=>a.filter(e=>r.some(t=>Hj(e,t))),[r,a]),S=v.useMemo(()=>b?x.filter(e=>Hj(e,b)):[],[x,b]),C=x.filter(e=>e.status!==`resolved`).length;v.useEffect(()=>{w()},[]),v.useEffect(()=>{let e=()=>{document.visibilityState===`visible`&&T()},t=window.setInterval(e,2500);return window.addEventListener(`focus`,e),document.addEventListener(`visibilitychange`,e),()=>{window.clearInterval(t),window.removeEventListener(`focus`,e),document.removeEventListener(`visibilitychange`,e)}},[d,t?.id]);async function w(){await T(!0)}async function T(e=!1){let r=await(await fetch(`/api/review-state`)).json();(e||t?.id!==r.session.id)&&(n(r.session),i(r.files),c(e=>r.files.some(t=>t.path===e)?e:r.files[0]?.path??``)),o(e=>pU(e,r.threads)?e:r.threads),d&&!r.threads.some(e=>e.id===d)&&f(null)}async function E(e,t){await fetch(`/api/threads`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({filePath:e.filePath,anchor:e,body:t})}),await T()}async function D(e,t){let n=await fetch(`/api/threads/${e}`,{method:`PATCH`,headers:{"Content-Type":`application/json`},body:JSON.stringify({status:t})});if(!n.ok){let e=await n.json().catch(()=>({error:`更新评论状态失败`}));throw Error(e.error??`更新评论状态失败`)}await T()}async function O(e){await fetch(`/api/threads/${e}`,{method:`DELETE`}),await T()}async function k(e,t){await fetch(`/api/threads/${e}/comments`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({body:t,author:`user`})}),await T()}async function A(e,t,n){if(!t)throw Error(`Comment id is required`);let r=await fetch(`/api/threads/${e}/comments/${t}`,{method:`PATCH`,headers:{"Content-Type":`application/json`},body:JSON.stringify({body:n})});if(!r.ok){let e=await r.json().catch(()=>({error:`编辑评论失败`}));throw Error(e.error??`编辑评论失败`)}await T()}async function j(t){let n=await(await fetch(`/api/prompt`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify(t)})).json();await navigator.clipboard.writeText(n.prompt),e.success(`提示词已复制到剪贴板`)}function M(e){let t=a.find(t=>t.id===e);t&&(r.some(e=>e.path===t.filePath)&&c(t.filePath),m({threadId:e,anchor:t.anchor})),f(e)}function N(e){g(t=>({filePath:e,requestId:(t?.requestId??0)+1}))}function P(e,t){y(n=>(n[e]??!1)===t?n:{...n,[e]:t})}return v.useEffect(()=>{f(null)},[s]),(0,Q.jsxs)(RD,{className:iM.shell,children:[(0,Q.jsxs)(`aside`,{className:iM.sidebar,children:[(0,Q.jsxs)(`div`,{className:iM.brand,children:[(0,Q.jsx)(`div`,{className:iM.brandMark,children:`DR`}),(0,Q.jsxs)(`div`,{className:iM.brandCopy,children:[(0,Q.jsx)(qA.Text,{className:iM.repoName,title:t?.repoRoot,children:fU(t)}),(0,Q.jsx)(qA.Text,{className:iM.productName,children:`Diff 审查台`}),(0,Q.jsx)(qA.Text,{type:`secondary`,children:t?iU(t):`正在加载会话`})]})]}),(0,Q.jsx)(zT,{className:iM.sideCard,children:(0,Q.jsxs)(ME,{size:8,wrap:!0,children:[(0,Q.jsx)(Kk,{color:`blue`,children:t?.mode.kind===`revision`?`混合模式`:`本地模式`}),(0,Q.jsxs)(Kk,{color:`gold`,children:[r.length,` files`]})]})}),(0,Q.jsx)(_M,{files:r,threads:x,selectedPath:b?.path??``,onSelectFile:c})]}),(0,Q.jsx)(`section`,{className:iM.reviewPane,children:b?(0,Q.jsxs)(Q.Fragment,{children:[b.isMarkdown?null:(0,Q.jsx)(`div`,{className:iM.topToolbar,children:(0,Q.jsx)(sE,{className:iM.viewModeSwitcher,options:[{label:`Side by side`,value:`split`,icon:(0,Q.jsx)(aj,{})},{label:`Inline`,value:`inline`,icon:(0,Q.jsx)(sD,{})}],value:l,onChange:e=>u(e)})}),(0,Q.jsxs)(`div`,{className:iM.reviewSurface,children:[(0,Q.jsx)(yM,{file:b,threads:S,showToggleAllLines:!b.isMarkdown&&!dU(b.path),hasExpandedContext:b?_[b.path]??!1:!1,onCreate:E,onCopy:j,onToggleAllLines:N,onLocateThread:M,onPatchThread:D,onDeleteThread:O,onReplyThread:k,onPatchComment:A,onCopyThread:j}),b.isMarkdown?(0,Q.jsx)(rU,{file:b,threads:S,locateTarget:p,onCreate:E,onLocateThread:M,onPatchThread:D,onDeleteThread:O,onReplyThread:k,onPatchComment:A,onCopyThread:j},t?.id):(0,Q.jsx)(cM,{file:b,threads:S,locateTarget:p,expandAllRequest:h,onExpandedContextChange:P,onCreate:E,onLocateThread:M,onPatchThread:D,onDeleteThread:O,onReplyThread:k,onPatchComment:A,onCopyThread:j,viewMode:l},t?.id)]})]}):(0,Q.jsx)(zT,{className:iM.emptyStateCard,bordered:!1,children:(0,Q.jsx)(qA.Text,{type:`secondary`,children:`未发现变更,当前工作区很安静。`})})}),(0,Q.jsxs)(`aside`,{className:iM.threadRail,children:[(0,Q.jsxs)(`div`,{className:iM.threadRailHeader,children:[(0,Q.jsxs)(qA.Title,{className:iM.threadRailTitle,level:4,children:[`评论 (`,C,`)`]}),(0,Q.jsx)(GC,{disabled:C===0,icon:(0,Q.jsx)(xA,{}),type:`primary`,onClick:()=>void j({type:`all-unresolved`}),children:`批量提交给 Agent`})]}),(0,Q.jsx)(`div`,{className:iM.threadRailBody,children:(0,Q.jsx)(cU,{threads:a,currentFiles:r,currentFilePath:b?.path??``,focusedThreadId:d,onLocateThread:M,onPatch:D,onDeleteThread:O,onReply:k,onPatchComment:A,onCopy:j})})]})]})}(0,dd.createRoot)(document.getElementById(`root`)).render((0,Q.jsx)(v.StrictMode,{children:(0,Q.jsx)(ju,{theme:{token:{colorPrimary:`#2f6fed`,colorSuccess:`#2f8f63`,colorWarning:`#d59b2a`,colorTextBase:`#16181d`,colorBgBase:`#f4f6fa`,fontFamily:`"SF Pro Text", "PingFang SC", "Helvetica Neue", sans-serif`,borderRadius:14}},children:(0,Q.jsx)(J_,{children:(0,Q.jsx)(mU,{})})})}));export{er as a,pn as c,un as d,o as f,sr as i,cn as l,cr as n,an as o,l as p,or as r,fn as s,FH as t,mn as u};