create-fullstack-scaffold 0.4.3 → 0.4.5
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.
- package/dist/cli/index.js +5 -0
- package/dist/cli/index.js.map +1 -1
- package/package.json +1 -1
- package/template/dist/cli/index.js +237 -94
- package/template/dist/cli/index.js.map +1 -1
- package/template/dist/client/admin.html +15 -10
- package/template/dist/client/assets/App-BpFUIC-5.js +114 -0
- package/template/dist/client/assets/{CartPage-DESSHkaG.js → CartPage-DgDZP-R5.js} +2 -2
- package/template/dist/client/assets/{CategoriesPage-DqLZ_Mom.js → CategoriesPage-fuYNiSmE.js} +2 -2
- package/template/dist/client/assets/ContentDetailPage-BvvFU1Mr.js +1 -0
- package/template/dist/client/assets/ContentListPage-ShPxo6WG.js +1 -0
- package/template/dist/client/assets/DashboardPage-C1rZzZo4.js +11 -0
- package/template/dist/client/assets/{DeveloperDashboardPage-Cum7zFwO.js → DeveloperDashboardPage-_WtmbVoA.js} +2 -2
- package/template/dist/client/assets/{EmptyState-BK7ttK8D.js → EmptyState-DEyOQjbY.js} +1 -1
- package/template/dist/client/assets/LoadingSpinner-BcHjaM1m.js +6 -0
- package/template/dist/client/assets/LoginPage-CjeQqDdO.js +1 -0
- package/template/dist/client/assets/LogoutOutlined-ColFAHdd.js +1 -0
- package/template/dist/client/assets/NotificationPage-DRkEv02s.js +1 -0
- package/template/dist/client/assets/OrdersPage-7I3vPWLP.js +11 -0
- package/template/dist/client/assets/{PluginDetailPage-Br24YS4P.js → PluginDetailPage-CWyxdVCg.js} +3 -13
- package/template/dist/client/assets/PluginsPage-DRgWLeJT.js +6 -0
- package/template/dist/client/assets/ProfilePage-2FFkaii8.js +16 -0
- package/template/dist/client/assets/PublishPage-DW7yvROx.js +1 -0
- package/template/dist/client/assets/{RegisterPage-rPFG4Sry.js → RegisterPage-Dvaf9b0e.js} +2 -2
- package/template/dist/client/assets/SaveOutlined-CLQ2tsSY.js +2 -0
- package/template/dist/client/assets/{SearchPage-DQl1U5Uy.js → SearchPage-DvnEyswS.js} +2 -2
- package/template/dist/client/assets/{SettingsPage-DaYE80wj.js → SettingsPage-IrU-L9Zr.js} +2 -2
- package/template/dist/client/assets/{StatusBadge-BJ3W2Zc7.js → StatusBadge-CG7wVqpu.js} +1 -1
- package/template/dist/client/assets/{TodoPage-zC5wWNBa.js → TodoPage-B7D-bl65.js} +3 -3
- package/template/dist/client/assets/TopicsPage-CYCNr-mn.js +6 -0
- package/template/dist/client/assets/{WebSocketPage-B4NLdz1w.js → WebSocketPage-CGEg6QJE.js} +2 -2
- package/template/dist/client/assets/{activity-B94BUAsD.js → activity-CgTz9Mrd.js} +1 -1
- package/template/dist/client/assets/admin-D2iHWNOg.js +1 -0
- package/template/dist/client/assets/api-request-DIJocPxr.js +356 -0
- package/template/dist/client/assets/{arrow-left-H5JH0iU1.js → arrow-left-DtLQ3tTk.js} +1 -1
- package/template/dist/client/assets/{chevron-down-DwRh_wjD.js → chevron-down-CpIAV_yr.js} +1 -1
- package/template/dist/client/assets/{chevron-right-CpIWaqAL.js → chevron-right-CnU7oPQs.js} +1 -1
- package/template/dist/client/assets/{circle-check-big-CSElLscG.js → circle-check-big-CrZdwS75.js} +1 -1
- package/template/dist/client/assets/{circle-x-CYxr4RAw.js → circle-x-CvN9r3fW.js} +1 -1
- package/template/dist/client/assets/{clock-BseUJ7ex.js → clock-CTeSZBiH.js} +1 -1
- package/template/dist/client/assets/{download-BsGC_Xhq.js → download-OSVfVuNV.js} +1 -1
- package/template/dist/client/assets/{external-link-UTDzdjq8.js → external-link-fBsuHMby.js} +1 -1
- package/template/dist/client/assets/{eye-nR10ui7i.js → eye-CwlZZEsj.js} +1 -1
- package/template/dist/client/assets/index-09IqiOaE.css +1 -0
- package/template/dist/client/assets/index-B3CRby6r.js +51 -0
- package/template/dist/client/assets/index-CC_zy73y.js +17 -0
- package/template/dist/client/assets/main-Cn4IDo2I.js +92 -0
- package/template/dist/client/assets/merchant-DDDN9bMu.js +40 -0
- package/template/dist/client/assets/{message-square-CwWGL-Bh.js → message-square-BRaZfgbJ.js} +1 -1
- package/template/dist/client/assets/pluginStore-DDsWJPe6.js +1 -0
- package/template/dist/client/assets/{plus-pZld_nUL.js → plus-DDZfPiDJ.js} +1 -1
- package/template/dist/client/assets/sse-client-DGQ072hl.js +64 -0
- package/template/dist/client/assets/star-C7tO6w4H.js +11 -0
- package/template/dist/client/assets/{tag-DsiUPF90.js → tag-DBfpQDuJ.js} +1 -1
- package/template/dist/client/assets/tenant-CizbLaLJ.js +1 -0
- package/template/dist/client/assets/{trash-2-DRblNbnA.js → trash-2-BP7fkd5b.js} +1 -1
- package/template/dist/client/assets/{triangle-alert-D1CLh-Vd.js → triangle-alert-CrOQEdJ2.js} +1 -1
- package/template/dist/client/assets/{wifi-BwXjnCqI.js → wifi-CwYSE0J4.js} +1 -1
- package/template/dist/client/assets/{x-BH2rJdFq.js → x-t615pnNR.js} +1 -1
- package/template/dist/client/content/index.html +5 -4
- package/template/dist/client/index.html +4 -3
- package/template/dist/client/merchant.html +18 -0
- package/template/dist/client/notifications/index.html +6 -5
- package/template/dist/client/tenant.html +18 -0
- package/template/dist/client/todos/index.html +6 -5
- package/template/dist/client/websocket/index.html +6 -5
- package/template/dist/cloudflare/chunk-HX7DVRDX.js +1 -0
- package/template/dist/cloudflare/{chunk-QBHAPWIA.js → chunk-IXJL2LE4.js} +1 -1
- package/template/dist/cloudflare/chunk-Q34AN3RF.js +14 -0
- package/template/dist/cloudflare/{chunk-BHPTQ4K2.js → chunk-ZAMVL4EG.js} +2 -2
- package/template/dist/cloudflare/cloudflare.js +35 -29
- package/template/dist/cloudflare/db-4AQOSFAX.js +1 -0
- package/template/dist/cloudflare/{migrator-2ZYYKNI5.js → migrator-TEPBVUFO.js} +1 -1
- package/template/dist/cloudflare/permission-service-impl-RE7NPW3Q.js +1 -0
- package/template/dist/cloudflare/schema-DVEMT3X2.js +1 -0
- package/template/dist/cloudflare/test-setup-Z2RYE5B4.js +265 -0
- package/template/dist/server/chunk-27SIJSPF.js +1 -0
- package/template/dist/server/chunk-37QNGBQU.js +1 -0
- package/template/dist/server/chunk-FIY4CGJJ.js +1 -0
- package/template/dist/server/chunk-HZUDBIT4.js +1 -0
- package/template/dist/server/chunk-I6OBDFDU.js +1 -0
- package/template/dist/server/chunk-JHNYLNG7.js +1 -0
- package/template/dist/server/chunk-MDOVVKKD.js +1 -0
- package/template/dist/server/chunk-NSOCT7E5.js +1 -0
- package/template/dist/server/chunk-OU5IGVVO.js +1 -0
- package/template/dist/server/chunk-OYCBNRMK.js +1 -0
- package/template/dist/server/chunk-P2RJNNGD.js +1 -0
- package/template/dist/server/chunk-UMAQLNPE.js +1 -0
- package/template/dist/server/chunk-XZZTSRSN.js +1 -0
- package/template/dist/server/content-service-5QVHDR5X.js +1 -0
- package/template/dist/server/db-FLI5L5DD.js +1 -0
- package/template/dist/server/dispute-service-E2FCYUEM.js +1 -0
- package/template/dist/server/init-72JXJV3I.js +46 -0
- package/template/dist/server/init-FWYXSKPX.js +46 -0
- package/template/dist/server/node.js +34 -28
- package/template/dist/server/order-service-TKGG5S5K.js +1 -0
- package/template/dist/server/permission-service-impl-M3AKEYNY.js +1 -0
- package/template/dist/server/schema-V4UG7HMU.js +1 -0
- package/template/dist/server/tenant-service-JG6UUWXQ.js +1 -0
- package/template/dist/server/tenant-service-XJWZSEDX.js +1 -0
- package/template/dist/{cloudflare/test-setup-NMZJZLRV.js → server/test-setup-VFOPBGYM.js} +83 -2
- package/template/dist/server/ticket-service-3RSW7V2Z.js +1 -0
- package/template/dist/server/todo-service-S6BGIO7D.js +1 -0
- package/template/src/merchant/pages/DisputesPage.tsx +11 -11
- package/template/src/merchant/pages/OrdersPage.tsx +4 -3
- package/template/src/merchant/pages/ProductsPage.tsx +2 -2
- package/template/src/merchant/stores/merchantStore.ts +11 -6
- package/template/src/server/db/init.ts +5 -642
- package/template/src/server/module-plugin/services/plugin-seed-service.ts +623 -0
- package/template/src/server/module-tenant/routes/tenant-routes.ts +2 -2
- package/template/src/server/module-tenant/services/tenant-service.ts +63 -17
- package/template/src/shared/modules/merchant/index.ts +9 -0
- package/template/src/shared/modules/merchant/schemas.ts +37 -0
- package/template/src/shared/modules/tenant/index.ts +2 -0
- package/template/src/shared/schemas/index.ts +27 -0
- package/template/src/tenant/layouts/Header.tsx +1 -1
- package/template/src/tenant/layouts/Sidebar.tsx +1 -1
- package/template/src/tenant/pages/SettingsPage.tsx +4 -8
- package/template/src/tenant/stores/tenantStore.ts +41 -302
- package/template/tsconfig.json +1 -0
- package/template/tsup.config.ts +11 -3
- package/template/dist/client/assets/ContentDetailPage-DdltMANL.js +0 -1
- package/template/dist/client/assets/ContentListPage-B63sUB6N.js +0 -1
- package/template/dist/client/assets/DashboardPage-tUMilc7Z.js +0 -11
- package/template/dist/client/assets/LoadingSpinner-DVYOLSRM.js +0 -6
- package/template/dist/client/assets/LoginPage-g9mSLIMC.js +0 -6
- package/template/dist/client/assets/NotificationPage-COTzp-HD.js +0 -1
- package/template/dist/client/assets/OrdersPage-BsPh4oEI.js +0 -11
- package/template/dist/client/assets/PluginsPage-BNtAe_yo.js +0 -6
- package/template/dist/client/assets/ProfilePage-dL_iSuZN.js +0 -16
- package/template/dist/client/assets/PublishPage-D96FnbLA.js +0 -1
- package/template/dist/client/assets/TopicsPage-DyLjZa4D.js +0 -6
- package/template/dist/client/assets/admin-Bh1vfz_L.js +0 -486
- package/template/dist/client/assets/index-1bA-ixFv.js +0 -114
- package/template/dist/client/assets/index-CWh3vXC_.css +0 -1
- package/template/dist/client/assets/main-DHnArIp_.js +0 -82
- package/template/dist/client/assets/pluginStore-XQfsm3iR.js +0 -1
- package/template/dist/client/content/content-1/index.html +0 -18
- package/template/dist/client/content/content-13/index.html +0 -18
- package/template/dist/client/content/content-14/index.html +0 -18
- package/template/dist/client/content/content-15/index.html +0 -18
- package/template/dist/client/content/content-19/index.html +0 -18
- package/template/dist/client/content/content-2/index.html +0 -18
- package/template/dist/client/content/content-20/index.html +0 -18
- package/template/dist/cloudflare/chunk-YY6FRMAQ.js +0 -14
- package/template/dist/cloudflare/db-7J42RQ3T.js +0 -1
- package/template/dist/cloudflare/permission-service-impl-TGXVSSSA.js +0 -1
|
@@ -0,0 +1,356 @@
|
|
|
1
|
+
var Zb=Object.defineProperty;var Jb=(e,t,n)=>t in e?Zb(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Fr=(e,t,n)=>Jb(e,typeof t!="symbol"?t+"":t,n);import{h as e0,g as Mv,R as te,r as i,i as Xi}from"./index-B3CRby6r.js";function t0(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const a=Object.getOwnPropertyDescriptor(r,o);a&&Object.defineProperty(e,o,a.get?a:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var br=e0();const ua=Mv(br),n0=t0({__proto__:null,default:ua},[br]);var Hl={exports:{}};/*!
|
|
2
|
+
Copyright (c) 2018 Jed Watson.
|
|
3
|
+
Licensed under the MIT License (MIT), see
|
|
4
|
+
http://jedwatson.github.io/classnames
|
|
5
|
+
*/var ud;function r0(){return ud||(ud=1,(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var a="",l=0;l<arguments.length;l++){var s=arguments[l];s&&(a=o(a,r(s)))}return a}function r(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return n.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var l="";for(var s in a)t.call(a,s)&&a[s]&&(l=o(l,s));return l}function o(a,l){return l?a?a+" "+l:a+l:a}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(Hl)),Hl.exports}var o0=r0();const k=Mv(o0);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)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},me.apply(null,arguments)}function Ue(e){"@babel/helpers - typeof";return Ue=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ue(e)}var a0=Symbol.for("react.element"),i0=Symbol.for("react.transitional.element"),l0=Symbol.for("react.fragment");function Tv(e){return e&&Ue(e)==="object"&&(e.$$typeof===a0||e.$$typeof===i0)&&e.type===l0}function _n(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return te.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(_n(r)):Tv(r)&&r.props?n=n.concat(_n(r.props.children,t)):n.push(r))}),n}var zs={},s0=function(t){};function c0(e,t){}function u0(e,t){}function d0(){zs={}}function _v(e,t,n){!t&&!zs[n]&&(e(!1,n),zs[n]=!0)}function Ut(e,t){_v(c0,e,t)}function f0(e,t){_v(u0,e,t)}Ut.preMessage=s0;Ut.resetWarned=d0;Ut.noteOnce=f0;function m0(e,t){if(Ue(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ue(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function zv(e){var t=m0(e,"string");return Ue(t)=="symbol"?t:t+""}function j(e,t,n){return(t=zv(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function D(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?dd(Object(n),!0).forEach(function(r){j(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dd(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function da(e){return e instanceof HTMLElement||e instanceof SVGElement}function Ta(e){return e&&Ue(e)==="object"&&da(e.nativeElement)?e.nativeElement:da(e)?e:null}function gi(e){var t=Ta(e);if(t)return t;if(e instanceof te.Component){var n;return(n=ua.findDOMNode)===null||n===void 0?void 0:n.call(ua,e)}return null}var kl={exports:{}},Ft={};/**
|
|
6
|
+
* @license React
|
|
7
|
+
* react-is.production.min.js
|
|
8
|
+
*
|
|
9
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
10
|
+
*
|
|
11
|
+
* This source code is licensed under the MIT license found in the
|
|
12
|
+
* LICENSE file in the root directory of this source tree.
|
|
13
|
+
*/var fd;function v0(){if(fd)return Ft;fd=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),s=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen"),p;p=Symbol.for("react.module.reference");function h(g){if(typeof g=="object"&&g!==null){var b=g.$$typeof;switch(b){case e:switch(g=g.type,g){case n:case o:case r:case u:case d:return g;default:switch(g=g&&g.$$typeof,g){case s:case l:case c:case m:case f:case a:return g;default:return b}}case t:return b}}}return Ft.ContextConsumer=l,Ft.ContextProvider=a,Ft.Element=e,Ft.ForwardRef=c,Ft.Fragment=n,Ft.Lazy=m,Ft.Memo=f,Ft.Portal=t,Ft.Profiler=o,Ft.StrictMode=r,Ft.Suspense=u,Ft.SuspenseList=d,Ft.isAsyncMode=function(){return!1},Ft.isConcurrentMode=function(){return!1},Ft.isContextConsumer=function(g){return h(g)===l},Ft.isContextProvider=function(g){return h(g)===a},Ft.isElement=function(g){return typeof g=="object"&&g!==null&&g.$$typeof===e},Ft.isForwardRef=function(g){return h(g)===c},Ft.isFragment=function(g){return h(g)===n},Ft.isLazy=function(g){return h(g)===m},Ft.isMemo=function(g){return h(g)===f},Ft.isPortal=function(g){return h(g)===t},Ft.isProfiler=function(g){return h(g)===o},Ft.isStrictMode=function(g){return h(g)===r},Ft.isSuspense=function(g){return h(g)===u},Ft.isSuspenseList=function(g){return h(g)===d},Ft.isValidElementType=function(g){return typeof g=="string"||typeof g=="function"||g===n||g===o||g===r||g===u||g===d||g===v||typeof g=="object"&&g!==null&&(g.$$typeof===m||g.$$typeof===f||g.$$typeof===a||g.$$typeof===l||g.$$typeof===c||g.$$typeof===p||g.getModuleId!==void 0)},Ft.typeOf=h,Ft}var md;function g0(){return md||(md=1,kl.exports=v0()),kl.exports}var Vl=g0();function no(e,t,n){var r=i.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}var p0=Number(i.version.split(".")[0]),fa=function(t,n){typeof t=="function"?t(n):Ue(t)==="object"&&t&&"current"in t&&(t.current=n)},Vn=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=n.filter(Boolean);return o.length<=1?o[0]:function(a){n.forEach(function(l){fa(l,a)})}},$r=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return no(function(){return Vn.apply(void 0,n)},n,function(o,a){return o.length!==a.length||o.every(function(l,s){return l!==a[s]})})},or=function(t){var n,r;if(!t)return!1;if(Jc(t)&&p0>=19)return!0;var o=Vl.isMemo(t)?t.type.type:t.type;return!(typeof o=="function"&&!((n=o.prototype)!==null&&n!==void 0&&n.render)&&o.$$typeof!==Vl.ForwardRef||typeof t=="function"&&!((r=t.prototype)!==null&&r!==void 0&&r.render)&&t.$$typeof!==Vl.ForwardRef)};function Jc(e){return i.isValidElement(e)&&!Tv(e)}var h0=function(t){return Jc(t)&&or(t)},jr=function(t){if(t&&Jc(t)){var n=t;return n.props.propertyIsEnumerable("ref")?n.props.ref:n.ref}return null},js=i.createContext(null);function b0(e){var t=e.children,n=e.onBatchResize,r=i.useRef(0),o=i.useRef([]),a=i.useContext(js),l=i.useCallback(function(s,c,u){r.current+=1;var d=r.current;o.current.push({size:s,element:c,data:u}),Promise.resolve().then(function(){d===r.current&&(n==null||n(o.current),o.current=[])}),a==null||a(s,c,u)},[n,a]);return i.createElement(js.Provider,{value:l},t)}var jv=(function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(o,a){return o[0]===n?(r=a,!0):!1}),r}return(function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(n){var r=e(this.__entries__,n),o=this.__entries__[r];return o&&o[1]},t.prototype.set=function(n,r){var o=e(this.__entries__,n);~o?this.__entries__[o][1]=r:this.__entries__.push([n,r])},t.prototype.delete=function(n){var r=this.__entries__,o=e(r,n);~o&&r.splice(o,1)},t.prototype.has=function(n){return!!~e(this.__entries__,n)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var o=0,a=this.__entries__;o<a.length;o++){var l=a[o];n.call(r,l[1],l[0])}},t})()})(),Bs=typeof window<"u"&&typeof document<"u"&&window.document===document,Ri=(function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()})(),y0=(function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(Ri):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}})(),C0=2;function S0(e,t){var n=!1,r=!1,o=0;function a(){n&&(n=!1,e()),r&&s()}function l(){y0(a)}function s(){var c=Date.now();if(n){if(c-o<C0)return;r=!0}else n=!0,r=!1,setTimeout(l,t);o=c}return s}var x0=20,$0=["top","right","bottom","left","width","height","size","weight"],w0=typeof MutationObserver<"u",E0=(function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=S0(this.refresh.bind(this),x0)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var n=this.observers_,r=n.indexOf(t);~r&&n.splice(r,1),!n.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(n){return n.gatherActive(),n.hasActive()});return t.forEach(function(n){return n.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!Bs||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),w0?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!Bs||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,r=n===void 0?"":n,o=$0.some(function(a){return!!~r.indexOf(a)});o&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e})(),Bv=(function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e}),Oo=(function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||Ri}),Dv=Yi(0,0,0,0);function Pi(e){return parseFloat(e)||0}function vd(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(r,o){var a=e["border-"+o+"-width"];return r+Pi(a)},0)}function O0(e){for(var t=["top","right","bottom","left"],n={},r=0,o=t;r<o.length;r++){var a=o[r],l=e["padding-"+a];n[a]=Pi(l)}return n}function I0(e){var t=e.getBBox();return Yi(0,0,t.width,t.height)}function R0(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return Dv;var r=Oo(e).getComputedStyle(e),o=O0(r),a=o.left+o.right,l=o.top+o.bottom,s=Pi(r.width),c=Pi(r.height);if(r.boxSizing==="border-box"&&(Math.round(s+a)!==t&&(s-=vd(r,"left","right")+a),Math.round(c+l)!==n&&(c-=vd(r,"top","bottom")+l)),!N0(e)){var u=Math.round(s+a)-t,d=Math.round(c+l)-n;Math.abs(u)!==1&&(s-=u),Math.abs(d)!==1&&(c-=d)}return Yi(o.left,o.top,s,c)}var P0=(function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof Oo(e).SVGGraphicsElement}:function(e){return e instanceof Oo(e).SVGElement&&typeof e.getBBox=="function"}})();function N0(e){return e===Oo(e).document.documentElement}function M0(e){return Bs?P0(e)?I0(e):R0(e):Dv}function T0(e){var t=e.x,n=e.y,r=e.width,o=e.height,a=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,l=Object.create(a.prototype);return Bv(l,{x:t,y:n,width:r,height:o,top:n,right:t+r,bottom:o+n,left:t}),l}function Yi(e,t,n,r){return{x:e,y:t,width:n,height:r}}var _0=(function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Yi(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=M0(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e})(),z0=(function(){function e(t,n){var r=T0(n);Bv(this,{target:t,contentRect:r})}return e})(),j0=(function(){function e(t,n,r){if(this.activeObservations_=[],this.observations_=new jv,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=n,this.callbackCtx_=r}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Oo(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new _0(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Oo(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new z0(r.target,r.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e})(),Lv=typeof WeakMap<"u"?new WeakMap:new jv,Av=(function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=E0.getInstance(),r=new j0(t,n,this);Lv.set(this,r)}return e})();["observe","unobserve","disconnect"].forEach(function(e){Av.prototype[e]=function(){var t;return(t=Lv.get(this))[e].apply(t,arguments)}});var B0=(function(){return typeof Ri.ResizeObserver<"u"?Ri.ResizeObserver:Av})(),Nr=new Map;function D0(e){e.forEach(function(t){var n,r=t.target;(n=Nr.get(r))===null||n===void 0||n.forEach(function(o){return o(r)})})}var Fv=new B0(D0);function L0(e,t){Nr.has(e)||(Nr.set(e,new Set),Fv.observe(e)),Nr.get(e).add(t)}function A0(e,t){Nr.has(e)&&(Nr.get(e).delete(t),Nr.get(e).size||(Fv.unobserve(e),Nr.delete(e)))}function tn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gd(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,zv(r.key),r)}}function nn(e,t,n){return t&&gd(e.prototype,t),n&&gd(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ma(e,t){return ma=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},ma(e,t)}function mr(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ma(e,t)}function va(e){return va=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},va(e)}function eu(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(eu=function(){return!!e})()}function Ae(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function F0(e,t){if(t&&(Ue(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ae(e)}function vr(e){var t=eu();return function(){var n,r=va(e);if(t){var o=va(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return F0(this,n)}}var H0=(function(e){mr(n,e);var t=vr(n);function n(){return tn(this,n),t.apply(this,arguments)}return nn(n,[{key:"render",value:function(){return this.props.children}}]),n})(i.Component);function k0(e,t){var n=e.children,r=e.disabled,o=i.useRef(null),a=i.useRef(null),l=i.useContext(js),s=typeof n=="function",c=s?n(o):n,u=i.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),d=!s&&i.isValidElement(c)&&or(c),f=d?jr(c):null,m=$r(f,o),v=function(){var b;return gi(o.current)||(o.current&&Ue(o.current)==="object"?gi((b=o.current)===null||b===void 0?void 0:b.nativeElement):null)||gi(a.current)};i.useImperativeHandle(t,function(){return v()});var p=i.useRef(e);p.current=e;var h=i.useCallback(function(g){var b=p.current,C=b.onResize,y=b.data,$=g.getBoundingClientRect(),S=$.width,E=$.height,O=g.offsetWidth,w=g.offsetHeight,x=Math.floor(S),I=Math.floor(E);if(u.current.width!==x||u.current.height!==I||u.current.offsetWidth!==O||u.current.offsetHeight!==w){var P={width:x,height:I,offsetWidth:O,offsetHeight:w};u.current=P;var N=O===Math.round(S)?S:O,M=w===Math.round(E)?E:w,R=D(D({},P),{},{offsetWidth:N,offsetHeight:M});l==null||l(R,g,y),C&&Promise.resolve().then(function(){C(R,g)})}},[]);return i.useEffect(function(){var g=v();return g&&!r&&L0(g,h),function(){return A0(g,h)}},[o.current,r]),i.createElement(H0,{ref:a},d?i.cloneElement(c,{ref:m}):c)}var V0=i.forwardRef(k0),K0="rc-observer-key";function W0(e,t){var n=e.children,r=typeof n=="function"?[n]:_n(n);return r.map(function(o,a){var l=(o==null?void 0:o.key)||"".concat(K0,"-").concat(a);return i.createElement(V0,me({},e,{key:l,ref:a===0?t:void 0}),o)})}var Bn=i.forwardRef(W0);Bn.Collection=b0;function Ds(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function G0(e){if(Array.isArray(e))return Ds(e)}function Hv(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function tu(e,t){if(e){if(typeof e=="string")return Ds(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ds(e,t):void 0}}function q0(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
14
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ge(e){return G0(e)||Hv(e)||tu(e)||q0()}var kv=function(t){return+setTimeout(t,16)},Vv=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(kv=function(t){return window.requestAnimationFrame(t)},Vv=function(t){return window.cancelAnimationFrame(t)});var pd=0,nu=new Map;function Kv(e){nu.delete(e)}var Et=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;pd+=1;var r=pd;function o(a){if(a===0)Kv(r),t();else{var l=kv(function(){o(a-1)});nu.set(r,l)}}return o(n),r};Et.cancel=function(e){var t=nu.get(e);return Kv(e),Vv(t)};function Wv(e){if(Array.isArray(e))return e}function U0(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,a,l,s=[],c=!0,u=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(d){u=!0,o=d}finally{try{if(!c&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(u)throw o}}return s}}function Gv(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
15
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ee(e,t){return Wv(e)||U0(e,t)||tu(e,t)||Gv()}function ga(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function En(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Ls(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}var hd="data-rc-order",bd="data-rc-priority",X0="rc-util-key",As=new Map;function qv(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):X0}function Qi(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function Y0(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function ru(e){return Array.from((As.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function Uv(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!En())return null;var n=t.csp,r=t.prepend,o=t.priority,a=o===void 0?0:o,l=Y0(r),s=l==="prependQueue",c=document.createElement("style");c.setAttribute(hd,l),s&&a&&c.setAttribute(bd,"".concat(a)),n!=null&&n.nonce&&(c.nonce=n==null?void 0:n.nonce),c.innerHTML=e;var u=Qi(t),d=u.firstChild;if(r){if(s){var f=(t.styles||ru(u)).filter(function(m){if(!["prepend","prependQueue"].includes(m.getAttribute(hd)))return!1;var v=Number(m.getAttribute(bd)||0);return a>=v});if(f.length)return u.insertBefore(c,f[f.length-1].nextSibling),c}u.insertBefore(c,d)}else u.appendChild(c);return c}function Xv(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Qi(t);return(t.styles||ru(n)).find(function(r){return r.getAttribute(qv(t))===e})}function pa(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=Xv(e,t);if(n){var r=Qi(t);r.removeChild(n)}}function Q0(e,t){var n=As.get(e);if(!n||!Ls(document,n)){var r=Uv("",t),o=r.parentNode;As.set(e,o),e.removeChild(r)}}function hr(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=Qi(n),o=ru(r),a=D(D({},n),{},{styles:o});Q0(r,a);var l=Xv(t,a);if(l){var s,c;if((s=a.csp)!==null&&s!==void 0&&s.nonce&&l.nonce!==((c=a.csp)===null||c===void 0?void 0:c.nonce)){var u;l.nonce=(u=a.csp)===null||u===void 0?void 0:u.nonce}return l.innerHTML!==e&&(l.innerHTML=e),l}var d=Uv(e,a);return d.setAttribute(qv(a),t),d}function Z0(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function at(e,t){if(e==null)return{};var n,r,o=Z0(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function ur(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function o(a,l){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,c=r.has(a);if(Ut(!c,"Warning: There may be circular references"),c)return!1;if(a===l)return!0;if(n&&s>1)return!1;r.add(a);var u=s+1;if(Array.isArray(a)){if(!Array.isArray(l)||a.length!==l.length)return!1;for(var d=0;d<a.length;d++)if(!o(a[d],l[d],u))return!1;return!0}if(a&&l&&Ue(a)==="object"&&Ue(l)==="object"){var f=Object.keys(a);return f.length!==Object.keys(l).length?!1:f.every(function(m){return o(a[m],l[m],u)})}return!1}return o(e,t)}var J0="%";function Fs(e){return e.join(J0)}var ey=(function(){function e(t){tn(this,e),j(this,"instanceId",void 0),j(this,"cache",new Map),j(this,"extracted",new Set),this.instanceId=t}return nn(e,[{key:"get",value:function(n){return this.opGet(Fs(n))}},{key:"opGet",value:function(n){return this.cache.get(n)||null}},{key:"update",value:function(n,r){return this.opUpdate(Fs(n),r)}},{key:"opUpdate",value:function(n,r){var o=this.cache.get(n),a=r(o);a===null?this.cache.delete(n):this.cache.set(n,a)}}]),e})(),Io="data-token-hash",nr="data-css-hash",Mr="__cssinjs_instance__";function ty(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(nr,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(o){o[Mr]=o[Mr]||e,o[Mr]===e&&document.head.insertBefore(o,n)});var r={};Array.from(document.querySelectorAll("style[".concat(nr,"]"))).forEach(function(o){var a=o.getAttribute(nr);if(r[a]){if(o[Mr]===e){var l;(l=o.parentNode)===null||l===void 0||l.removeChild(o)}}else r[a]=!0})}return new ey(e)}var _a=i.createContext({hashPriority:"low",cache:ty(),defaultCache:!0});function ny(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}var ou=(function(){function e(){tn(this,e),j(this,"cache",void 0),j(this,"keys",void 0),j(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return nn(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(n){var r,o,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,l={map:this.cache};return n.forEach(function(s){if(!l)l=void 0;else{var c;l=(c=l)===null||c===void 0||(c=c.map)===null||c===void 0?void 0:c.get(s)}}),(r=l)!==null&&r!==void 0&&r.value&&a&&(l.value[1]=this.cacheCallTimes++),(o=l)===null||o===void 0?void 0:o.value}},{key:"get",value:function(n){var r;return(r=this.internalGet(n,!0))===null||r===void 0?void 0:r[0]}},{key:"has",value:function(n){return!!this.internalGet(n)}},{key:"set",value:function(n,r){var o=this;if(!this.has(n)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var a=this.keys.reduce(function(u,d){var f=ee(u,2),m=f[1];return o.internalGet(d)[1]<m?[d,o.internalGet(d)[1]]:u},[this.keys[0],this.cacheCallTimes]),l=ee(a,1),s=l[0];this.delete(s)}this.keys.push(n)}var c=this.cache;n.forEach(function(u,d){if(d===n.length-1)c.set(u,{value:[r,o.cacheCallTimes++]});else{var f=c.get(u);f?f.map||(f.map=new Map):c.set(u,{map:new Map}),c=c.get(u).map}})}},{key:"deleteByPath",value:function(n,r){var o=n.get(r[0]);if(r.length===1){var a;return o.map?n.set(r[0],{map:o.map}):n.delete(r[0]),(a=o.value)===null||a===void 0?void 0:a[0]}var l=this.deleteByPath(o.map,r.slice(1));return(!o.map||o.map.size===0)&&!o.value&&n.delete(r[0]),l}},{key:"delete",value:function(n){if(this.has(n))return this.keys=this.keys.filter(function(r){return!ny(r,n)}),this.deleteByPath(this.cache,n)}}]),e})();j(ou,"MAX_CACHE_SIZE",20);j(ou,"MAX_CACHE_OFFSET",5);var yd=0,Yv=(function(){function e(t){tn(this,e),j(this,"derivatives",void 0),j(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=yd,t.length===0&&(t.length>0,void 0),yd+=1}return nn(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,o){return o(n,r)},void 0)}}]),e})(),Kl=new ou;function Hs(e){var t=Array.isArray(e)?e:[e];return Kl.has(t)||Kl.set(t,new Yv(t)),Kl.get(t)}var ry=new WeakMap,Wl={};function oy(e,t){for(var n=ry,r=0;r<t.length;r+=1){var o=t[r];n.has(o)||n.set(o,new WeakMap),n=n.get(o)}return n.has(Wl)||n.set(Wl,e()),n.get(Wl)}var Cd=new WeakMap;function ra(e){var t=Cd.get(e)||"";return t||(Object.keys(e).forEach(function(n){var r=e[n];t+=n,r instanceof Yv?t+=r.id:r&&Ue(r)==="object"?t+=ra(r):t+=r}),t=ga(t),Cd.set(e,t)),t}function Sd(e,t){return ga("".concat(t,"_").concat(ra(e)))}var ks=En();function H(e){return typeof e=="number"?"".concat(e,"px"):e}function Ni(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(o)return e;var a=D(D({},r),{},j(j({},Io,t),nr,n)),l=Object.keys(a).map(function(s){var c=a[s];return c?"".concat(s,'="').concat(c,'"'):null}).filter(function(s){return s}).join(" ");return"<style ".concat(l,">").concat(e,"</style>")}var pi=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(n?"".concat(n,"-"):"").concat(t).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},ay=function(t,n,r){return Object.keys(t).length?".".concat(n).concat(r!=null&&r.scope?".".concat(r.scope):"","{").concat(Object.entries(t).map(function(o){var a=ee(o,2),l=a[0],s=a[1];return"".concat(l,":").concat(s,";")}).join(""),"}"):""},Qv=function(t,n,r){var o={},a={};return Object.entries(t).forEach(function(l){var s,c,u=ee(l,2),d=u[0],f=u[1];if(r!=null&&(s=r.preserve)!==null&&s!==void 0&&s[d])a[d]=f;else if((typeof f=="string"||typeof f=="number")&&!(r!=null&&(c=r.ignore)!==null&&c!==void 0&&c[d])){var m,v=pi(d,r==null?void 0:r.prefix);o[v]=typeof f=="number"&&!(r!=null&&(m=r.unitless)!==null&&m!==void 0&&m[d])?"".concat(f,"px"):String(f),a[d]="var(".concat(v,")")}}),[a,ay(o,n,{scope:r==null?void 0:r.scope})]},xd=En()?i.useLayoutEffect:i.useEffect,Rt=function(t,n){var r=i.useRef(!0);xd(function(){return t(r.current)},n),xd(function(){return r.current=!1,function(){r.current=!0}},[])},Vs=function(t,n){Rt(function(r){if(!r)return t()},n)},iy=D({},Xi),$d=iy.useInsertionEffect,ly=function(t,n,r){i.useMemo(t,r),Rt(function(){return n(!0)},r)},sy=$d?function(e,t,n){return $d(function(){return e(),t()},n)}:ly,cy=D({},Xi),uy=cy.useInsertionEffect,dy=function(t){var n=[],r=!1;function o(a){r||n.push(a)}return i.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(a){return a()})}},t),o},fy=function(){return function(t){t()}},my=typeof uy<"u"?dy:fy;function au(e,t,n,r,o){var a=i.useContext(_a),l=a.cache,s=[e].concat(ge(t)),c=Fs(s),u=my([c]),d=function(p){l.opUpdate(c,function(h){var g=h||[void 0,void 0],b=ee(g,2),C=b[0],y=C===void 0?0:C,$=b[1],S=$,E=S||n(),O=[y,E];return p?p(O):O})};i.useMemo(function(){d()},[c]);var f=l.opGet(c),m=f[1];return sy(function(){o==null||o(m)},function(v){return d(function(p){var h=ee(p,2),g=h[0],b=h[1];return v&&g===0&&(o==null||o(m)),[g+1,b]}),function(){l.opUpdate(c,function(p){var h=p||[],g=ee(h,2),b=g[0],C=b===void 0?0:b,y=g[1],$=C-1;return $===0?(u(function(){(v||!l.opGet(c))&&(r==null||r(y,!1))}),null):[C-1,y]})}},[c]),m}var vy={},gy="css",Wr=new Map;function py(e){Wr.set(e,(Wr.get(e)||0)+1)}function hy(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(Io,'="').concat(e,'"]'));n.forEach(function(r){if(r[Mr]===t){var o;(o=r.parentNode)===null||o===void 0||o.removeChild(r)}})}}var by=0;function yy(e,t){Wr.set(e,(Wr.get(e)||0)-1);var n=new Set;Wr.forEach(function(r,o){r<=0&&n.add(o)}),Wr.size-n.size>by&&n.forEach(function(r){hy(r,t),Wr.delete(r)})}var Cy=function(t,n,r,o){var a=r.getDerivativeToken(t),l=D(D({},a),n);return o&&(l=o(l)),l},Zv="token";function Sy(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=i.useContext(_a),o=r.cache.instanceId,a=r.container,l=n.salt,s=l===void 0?"":l,c=n.override,u=c===void 0?vy:c,d=n.formatToken,f=n.getComputedToken,m=n.cssVar,v=oy(function(){return Object.assign.apply(Object,[{}].concat(ge(t)))},t),p=ra(v),h=ra(u),g=m?ra(m):"",b=au(Zv,[s,e.id,p,h,g],function(){var C,y=f?f(v,u,e):Cy(v,u,e,d),$=D({},y),S="";if(m){var E=Qv(y,m.key,{prefix:m.prefix,ignore:m.ignore,unitless:m.unitless,preserve:m.preserve}),O=ee(E,2);y=O[0],S=O[1]}var w=Sd(y,s);y._tokenKey=w,$._tokenKey=Sd($,s);var x=(C=m==null?void 0:m.key)!==null&&C!==void 0?C:w;y._themeKey=x,py(x);var I="".concat(gy,"-").concat(ga(w));return y._hashId=I,[y,I,$,S,(m==null?void 0:m.key)||""]},function(C){yy(C[0]._themeKey,o)},function(C){var y=ee(C,4),$=y[0],S=y[3];if(m&&S){var E=hr(S,ga("css-variables-".concat($._themeKey)),{mark:nr,prepend:"queue",attachTo:a,priority:-999});E[Mr]=o,E.setAttribute(Io,$._themeKey)}});return b}var xy=function(t,n,r){var o=ee(t,5),a=o[2],l=o[3],s=o[4],c=r||{},u=c.plain;if(!l)return null;var d=a._tokenKey,f=-999,m={"data-rc-order":"prependQueue","data-rc-priority":"".concat(f)},v=Ni(l,s,d,m,u);return[f,d,v]},$y={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Jv="comm",eg="rule",tg="decl",wy="@import",Ey="@namespace",Oy="@keyframes",Iy="@layer",Ry=Math.abs,oa=String.fromCharCode;function ng(e){return e.trim()}function Ks(e,t,n){return e.replace(t,n)}function So(e,t){return e.charCodeAt(t)|0}function Ro(e,t,n){return e.slice(t,n)}function sr(e){return e.length}function Py(e){return e.length}function Za(e,t){return t.push(e),e}var Zi=1,Po=1,rg=0,Zn=0,an=0,zo="";function iu(e,t,n,r,o,a,l,s){return{value:e,root:t,parent:n,type:r,props:o,children:a,line:Zi,column:Po,length:l,return:"",siblings:s}}function Ny(){return an}function My(){return an=Zn>0?So(zo,--Zn):0,Po--,an===10&&(Po=1,Zi--),an}function rr(){return an=Zn<rg?So(zo,Zn++):0,Po++,an===10&&(Po=1,Zi++),an}function Tr(){return So(zo,Zn)}function hi(){return Zn}function Ji(e,t){return Ro(zo,e,t)}function ha(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Ty(e){return Zi=Po=1,rg=sr(zo=e),Zn=0,[]}function _y(e){return zo="",e}function Gl(e){return ng(Ji(Zn-1,Ws(e===91?e+2:e===40?e+1:e)))}function zy(e){for(;(an=Tr())&&an<33;)rr();return ha(e)>2||ha(an)>3?"":" "}function jy(e,t){for(;--t&&rr()&&!(an<48||an>102||an>57&&an<65||an>70&&an<97););return Ji(e,hi()+(t<6&&Tr()==32&&rr()==32))}function Ws(e){for(;rr();)switch(an){case e:return Zn;case 34:case 39:e!==34&&e!==39&&Ws(an);break;case 40:e===41&&Ws(e);break;case 92:rr();break}return Zn}function By(e,t){for(;rr()&&e+an!==57;)if(e+an===84&&Tr()===47)break;return"/*"+Ji(t,Zn-1)+"*"+oa(e===47?e:rr())}function Dy(e){for(;!ha(Tr());)rr();return Ji(e,Zn)}function Ly(e){return _y(bi("",null,null,null,[""],e=Ty(e),0,[0],e))}function bi(e,t,n,r,o,a,l,s,c){for(var u=0,d=0,f=l,m=0,v=0,p=0,h=1,g=1,b=1,C=0,y=0,$="",S=o,E=a,O=r,w=$;g;)switch(p=y,y=rr()){case 40:p!=108&&So(w,f-1)==58?(C++,w+="("):w+=Gl(y);break;case 41:C--,w+=")";break;case 34:case 39:case 91:w+=Gl(y);break;case 9:case 10:case 13:case 32:if(C>0){w+=oa(y);break}w+=zy(p);break;case 92:w+=jy(hi()-1,7);continue;case 47:switch(Tr()){case 42:case 47:Za(Ay(By(rr(),hi()),t,n,c),c),(ha(p||1)==5||ha(Tr()||1)==5)&&sr(w)&&Ro(w,-1,void 0)!==" "&&(w+=" ");break;default:w+="/"}break;case 123*h:s[u++]=sr(w)*b;case 125*h:case 59:case 0:if(C>0&&y){w+=oa(y);break}switch(y){case 0:case 125:g=0;case 59+d:b==-1&&(w=Ks(w,/\f/g,"")),v>0&&(sr(w)-f||h===0)&&Za(v>32?Ed(w+";",r,n,f-1,c):Ed(Ks(w," ","")+";",r,n,f-2,c),c);break;case 59:w+=";";default:if(Za(O=wd(w,t,n,u,d,o,s,$,S=[],E=[],f,a),a),y===123)if(d===0)bi(w,t,O,O,S,a,f,s,E);else{switch(m){case 99:if(So(w,3)===110)break;case 108:if(So(w,2)===97)break;default:d=0;case 100:case 109:case 115:}d?bi(e,O,O,r&&Za(wd(e,O,O,0,0,o,s,$,o,S=[],f,E),E),o,E,f,s,r?S:E):bi(w,O,O,O,[""],E,0,s,E)}}u=d=v=0,h=b=1,$=w="",f=l;break;case 58:f=1+sr(w),v=p;default:if(h<1){if(y==123)--h;else if(y==125&&h++==0&&My()==125)continue}switch(w+=oa(y),y*h){case 38:b=d>0?1:(w+="\f",-1);break;case 44:if(C>0)break;s[u++]=(sr(w)-1)*b,b=1;break;case 64:Tr()===45&&(w+=Gl(rr())),m=Tr(),d=f=sr($=w+=Dy(hi())),y++;break;case 45:p===45&&sr(w)==2&&(h=0)}}return a}function wd(e,t,n,r,o,a,l,s,c,u,d,f){for(var m=o-1,v=o===0?a:[""],p=Py(v),h=0,g=0,b=0;h<r;++h)for(var C=0,y=Ro(e,m+1,m=Ry(g=l[h])),$=e;C<p;++C)($=ng(g>0?v[C]+" "+y:Ks(y,/&\f/g,v[C])))&&(c[b++]=$);return iu(e,t,n,o===0?eg:s,c,u,d,f)}function Ay(e,t,n,r){return iu(e,t,n,Jv,oa(Ny()),Ro(e,2,-2),0,r)}function Ed(e,t,n,r,o){return iu(e,t,n,tg,Ro(e,0,r),Ro(e,r+1,-1),r,o)}function Gs(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function Fy(e,t,n,r){switch(e.type){case Iy:if(e.children.length)break;case wy:case Ey:case tg:return e.return=e.return||e.value;case Jv:return"";case Oy:return e.return=e.value+"{"+Gs(e.children,r)+"}";case eg:if(!sr(e.value=e.props.join(",")))return""}return sr(n=Gs(e.children,r))?e.return=e.value+"{"+n+"}":""}var Od="data-ant-cssinjs-cache-path",og="_FILE_STYLE__",Xr,ag=!0;function Hy(){if(!Xr&&(Xr={},En())){var e=document.createElement("div");e.className=Od,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);var t=getComputedStyle(e).content||"";t=t.replace(/^"/,"").replace(/"$/,""),t.split(";").forEach(function(o){var a=o.split(":"),l=ee(a,2),s=l[0],c=l[1];Xr[s]=c});var n=document.querySelector("style[".concat(Od,"]"));if(n){var r;ag=!1,(r=n.parentNode)===null||r===void 0||r.removeChild(n)}document.body.removeChild(e)}}function ky(e){return Hy(),!!Xr[e]}function Vy(e){var t=Xr[e],n=null;if(t&&En())if(ag)n=og;else{var r=document.querySelector("style[".concat(nr,'="').concat(Xr[e],'"]'));r?n=r.innerHTML:delete Xr[e]}return[n,t]}var Ky="_skip_check_",ig="_multi_value_";function yi(e){var t=Gs(Ly(e),Fy);return t.replace(/\{%%%\:[^;];}/g,";")}function Wy(e){return Ue(e)==="object"&&e&&(Ky in e||ig in e)}function Id(e,t,n){if(!t)return e;var r=".".concat(t),o=n==="low"?":where(".concat(r,")"):r,a=e.split(",").map(function(l){var s,c=l.trim().split(/\s+/),u=c[0]||"",d=((s=u.match(/^\w+/))===null||s===void 0?void 0:s[0])||"";return u="".concat(d).concat(o).concat(u.slice(d.length)),[u].concat(ge(c.slice(1))).join(" ")});return a.join(",")}var Gy=function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},o=r.root,a=r.injectHash,l=r.parentSelectors,s=n.hashId,c=n.layer;n.path;var u=n.hashPriority,d=n.transformers,f=d===void 0?[]:d;n.linters;var m="",v={};function p(b){var C=b.getName(s);if(!v[C]){var y=e(b.style,n,{root:!1,parentSelectors:l}),$=ee(y,1),S=$[0];v[C]="@keyframes ".concat(b.getName(s)).concat(S)}}function h(b){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return b.forEach(function(y){Array.isArray(y)?h(y,C):y&&C.push(y)}),C}var g=h(Array.isArray(t)?t:[t]);return g.forEach(function(b){var C=typeof b=="string"&&!o?{}:b;if(typeof C=="string")m+="".concat(C,`
|
|
16
|
+
`);else if(C._keyframe)p(C);else{var y=f.reduce(function($,S){var E;return(S==null||(E=S.visit)===null||E===void 0?void 0:E.call(S,$))||$},C);Object.keys(y).forEach(function($){var S=y[$];if(Ue(S)==="object"&&S&&($!=="animationName"||!S._keyframe)&&!Wy(S)){var E=!1,O=$.trim(),w=!1;(o||a)&&s?O.startsWith("@")?E=!0:O==="&"?O=Id("",s,u):O=Id($,s,u):o&&!s&&(O==="&"||O==="")&&(O="",w=!0);var x=e(S,n,{root:w,injectHash:E,parentSelectors:[].concat(ge(l),[O])}),I=ee(x,2),P=I[0],N=I[1];v=D(D({},v),N),m+="".concat(O).concat(P)}else{let _=function(T,z){var B=T.replace(/[A-Z]/g,function(F){return"-".concat(F.toLowerCase())}),L=z;!$y[T]&&typeof L=="number"&&L!==0&&(L="".concat(L,"px")),T==="animationName"&&z!==null&&z!==void 0&&z._keyframe&&(p(z),L=z.getName(s)),m+="".concat(B,":").concat(L,";")};var M,R=(M=S==null?void 0:S.value)!==null&&M!==void 0?M:S;Ue(S)==="object"&&S!==null&&S!==void 0&&S[ig]&&Array.isArray(R)?R.forEach(function(T){_($,T)}):_($,R)}})}}),o?c&&(m&&(m="@layer ".concat(c.name," {").concat(m,"}")),c.dependencies&&(v["@layer ".concat(c.name)]=c.dependencies.map(function(b){return"@layer ".concat(b,", ").concat(c.name,";")}).join(`
|
|
17
|
+
`))):m="{".concat(m,"}"),[m,v]};function lg(e,t){return ga("".concat(e.join("%")).concat(t))}function qy(){return null}var sg="style";function qs(e,t){var n=e.token,r=e.path,o=e.hashId,a=e.layer,l=e.nonce,s=e.clientOnly,c=e.order,u=c===void 0?0:c,d=i.useContext(_a),f=d.autoClear;d.mock;var m=d.defaultCache,v=d.hashPriority,p=d.container,h=d.ssrInline,g=d.transformers,b=d.linters,C=d.cache,y=d.layer,$=n._tokenKey,S=[$];y&&S.push("layer"),S.push.apply(S,ge(r));var E=ks,O=au(sg,S,function(){var N=S.join("|");if(ky(N)){var M=Vy(N),R=ee(M,2),_=R[0],T=R[1];if(_)return[_,$,T,{},s,u]}var z=t(),B=Gy(z,{hashId:o,hashPriority:v,layer:y?a:void 0,path:r.join("-"),transformers:g,linters:b}),L=ee(B,2),F=L[0],K=L[1],W=yi(F),A=lg(S,W);return[W,$,A,K,s,u]},function(N,M){var R=ee(N,3),_=R[2];(M||f)&&ks&&pa(_,{mark:nr,attachTo:p})},function(N){var M=ee(N,4),R=M[0];M[1];var _=M[2],T=M[3];if(E&&R!==og){var z={mark:nr,prepend:y?!1:"queue",attachTo:p,priority:u},B=typeof l=="function"?l():l;B&&(z.csp={nonce:B});var L=[],F=[];Object.keys(T).forEach(function(W){W.startsWith("@layer")?L.push(W):F.push(W)}),L.forEach(function(W){hr(yi(T[W]),"_layer-".concat(W),D(D({},z),{},{prepend:!0}))});var K=hr(R,_,z);K[Mr]=C.instanceId,K.setAttribute(Io,$),F.forEach(function(W){hr(yi(T[W]),"_effect-".concat(W),z)})}}),w=ee(O,3),x=w[0],I=w[1],P=w[2];return function(N){var M;return!h||E||!m?M=i.createElement(qy,null):M=i.createElement("style",me({},j(j({},Io,I),nr,P),{dangerouslySetInnerHTML:{__html:x}})),i.createElement(i.Fragment,null,M,N)}}var Uy=function(t,n,r){var o=ee(t,6),a=o[0],l=o[1],s=o[2],c=o[3],u=o[4],d=o[5],f=r||{},m=f.plain;if(u)return null;var v=a,p={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)};return v=Ni(a,l,s,p,m),c&&Object.keys(c).forEach(function(h){if(!n[h]){n[h]=!0;var g=yi(c[h]),b=Ni(g,l,"_effect-".concat(h),p,m);h.startsWith("@layer")?v=b+v:v+=b}}),[d,s,v]},cg="cssVar",Xy=function(t,n){var r=t.key,o=t.prefix,a=t.unitless,l=t.ignore,s=t.token,c=t.scope,u=c===void 0?"":c,d=i.useContext(_a),f=d.cache.instanceId,m=d.container,v=s._tokenKey,p=[].concat(ge(t.path),[r,u,v]),h=au(cg,p,function(){var g=n(),b=Qv(g,r,{prefix:o,unitless:a,ignore:l,scope:u}),C=ee(b,2),y=C[0],$=C[1],S=lg(p,$);return[y,$,S,r]},function(g){var b=ee(g,3),C=b[2];ks&&pa(C,{mark:nr,attachTo:m})},function(g){var b=ee(g,3),C=b[1],y=b[2];if(C){var $=hr(C,y,{mark:nr,prepend:"queue",attachTo:m,priority:-999});$[Mr]=f,$.setAttribute(Io,r)}});return h},Yy=function(t,n,r){var o=ee(t,4),a=o[1],l=o[2],s=o[3],c=r||{},u=c.plain;if(!a)return null;var d=-999,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)},m=Ni(a,s,l,f,u);return[d,l,m]};j(j(j({},sg,Uy),Zv,xy),cg,Yy);var Tt=(function(){function e(t,n){tn(this,e),j(this,"name",void 0),j(this,"style",void 0),j(this,"_keyframe",!0),this.name=t,this.style=n}return nn(e,[{key:"getName",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return n?"".concat(n,"-").concat(this.name):this.name}}]),e})();function ao(e){return e.notSplit=!0,e}ao(["borderTop","borderBottom"]),ao(["borderTop"]),ao(["borderBottom"]),ao(["borderLeft","borderRight"]),ao(["borderLeft"]),ao(["borderRight"]);var lu=i.createContext({});function ug(e){return Wv(e)||Hv(e)||tu(e)||Gv()}function Tn(e,t){for(var n=e,r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]]}return n}function dg(e,t,n,r){if(!t.length)return n;var o=ug(t),a=o[0],l=o.slice(1),s;return!e&&typeof a=="number"?s=[]:Array.isArray(e)?s=ge(e):s=D({},e),r&&n===void 0&&l.length===1?delete s[a][l[0]]:s[a]=dg(s[a],l,n,r),s}function Qn(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!Tn(e,t.slice(0,-1))?e:dg(e,t,n,r)}function Qy(e){return Ue(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function Rd(e){return Array.isArray(e)?[]:{}}var Zy=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function ho(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Rd(t[0]);return t.forEach(function(o){function a(l,s){var c=new Set(s),u=Tn(o,l),d=Array.isArray(u);if(d||Qy(u)){if(!c.has(u)){c.add(u);var f=Tn(r,l);d?r=Qn(r,l,[]):(!f||Ue(f)!=="object")&&(r=Qn(r,l,Rd(u))),Zy(u).forEach(function(m){a([].concat(ge(l),[m]),c)})}}else r=Qn(r,l,u)}a([])}),r}function Jy(){}const eC=i.createContext({}),Br=()=>{const e=()=>{};return e.deprecated=Jy,e},fg=i.createContext(void 0);var mg={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"},tC={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},nC=D(D({},tC),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",week:"Week",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"});const vg={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Pd={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},nC),timePickerLocale:Object.assign({},vg)},Ln="${label} is not a valid ${type}",yr={locale:"en",Pagination:mg,DatePicker:Pd,TimePicker:vg,Calendar:Pd,global:{placeholder:"Please select",close:"Close"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckAll:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:Ln,method:Ln,array:Ln,object:Ln,number:Ln,date:Ln,boolean:Ln,integer:Ln,float:Ln,regexp:Ln,email:Ln,url:Ln,hex:Ln},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}};let Ci=Object.assign({},yr.Modal),Si=[];const Nd=()=>Si.reduce((e,t)=>Object.assign(Object.assign({},e),t),yr.Modal);function rC(e){if(e){const t=Object.assign({},e);return Si.push(t),Ci=Nd(),()=>{Si=Si.filter(n=>n!==t),Ci=Nd()}}Ci=Object.assign({},yr.Modal)}function M4(){return Ci}const su=i.createContext(void 0),jo=(e,t)=>{const n=i.useContext(su),r=i.useMemo(()=>{var a;const l=t||yr[e],s=(a=n==null?void 0:n[e])!==null&&a!==void 0?a:{};return Object.assign(Object.assign({},typeof l=="function"?l():l),s||{})},[e,t,n]),o=i.useMemo(()=>{const a=n==null?void 0:n.locale;return n!=null&&n.exist&&!a?yr.locale:a},[n]);return[r,o]},oC="internalMark",aC=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;i.useEffect(()=>rC(t==null?void 0:t.Modal),[t]);const o=i.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return i.createElement(su.Provider,{value:o},n)},gg={blue:"#1677FF",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#EB2F96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},ba=Object.assign(Object.assign({},gg),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
|
18
|
+
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
|
19
|
+
'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0}),vn=Math.round;function ql(e,t){const n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(o=>parseFloat(o));for(let o=0;o<3;o+=1)r[o]=t(r[o]||0,n[o]||"",o);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const Md=(e,t,n)=>n===0?e:e/100;function Uo(e,t){const n=t||255;return e>n?n:e<0?0:e}class zt{constructor(t){j(this,"isValid",!0),j(this,"r",0),j(this,"g",0),j(this,"b",0),j(this,"a",1),j(this,"_h",void 0),j(this,"_s",void 0),j(this,"_l",void 0),j(this,"_v",void 0),j(this,"_max",void 0),j(this,"_min",void 0),j(this,"_brightness",void 0);function n(r){return r[0]in t&&r[1]in t&&r[2]in t}if(t)if(typeof t=="string"){let o=function(a){return r.startsWith(a)};const r=t.trim();/^#?[A-F\d]{3,8}$/i.test(r)?this.fromHexString(r):o("rgb")?this.fromRgbString(r):o("hsl")?this.fromHslString(r):(o("hsv")||o("hsb"))&&this.fromHsvString(r)}else if(t instanceof zt)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._s=t._s,this._l=t._l,this._v=t._v;else if(n("rgb"))this.r=Uo(t.r),this.g=Uo(t.g),this.b=Uo(t.b),this.a=typeof t.a=="number"?Uo(t.a,1):1;else if(n("hsl"))this.fromHsl(t);else if(n("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){const n=this.toHsv();return n.h=t,this._c(n)}getLuminance(){function t(a){const l=a/255;return l<=.03928?l/12.92:Math.pow((l+.055)/1.055,2.4)}const n=t(this.r),r=t(this.g),o=t(this.b);return .2126*n+.7152*r+.0722*o}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=vn(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/t+2:(this.r-this.g)/t+4))}return this._h}getSaturation(){if(typeof this._s>"u"){const t=this.getMax()-this.getMin();t===0?this._s=0:this._s=t/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){const n=this.getHue(),r=this.getSaturation();let o=this.getLightness()-t/100;return o<0&&(o=0),this._c({h:n,s:r,l:o,a:this.a})}lighten(t=10){const n=this.getHue(),r=this.getSaturation();let o=this.getLightness()+t/100;return o>1&&(o=1),this._c({h:n,s:r,l:o,a:this.a})}mix(t,n=50){const r=this._c(t),o=n/100,a=s=>(r[s]-this[s])*o+this[s],l={r:vn(a("r")),g:vn(a("g")),b:vn(a("b")),a:vn(a("a")*100)/100};return this._c(l)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){const n=this._c(t),r=this.a+n.a*(1-this.a),o=a=>vn((this[a]*this.a+n[a]*n.a*(1-this.a))/r);return this._c({r:o("r"),g:o("g"),b:o("b"),a:r})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#";const n=(this.r||0).toString(16);t+=n.length===2?n:"0"+n;const r=(this.g||0).toString(16);t+=r.length===2?r:"0"+r;const o=(this.b||0).toString(16);if(t+=o.length===2?o:"0"+o,typeof this.a=="number"&&this.a>=0&&this.a<1){const a=vn(this.a*255).toString(16);t+=a.length===2?a:"0"+a}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),n=vn(this.getSaturation()*100),r=vn(this.getLightness()*100);return this.a!==1?`hsla(${t},${n}%,${r}%,${this.a})`:`hsl(${t},${n}%,${r}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,n,r){const o=this.clone();return o[t]=Uo(n,r),o}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){const n=t.replace("#","");function r(o,a){return parseInt(n[o]+n[a||o],16)}n.length<6?(this.r=r(0),this.g=r(1),this.b=r(2),this.a=n[3]?r(3)/255:1):(this.r=r(0,1),this.g=r(2,3),this.b=r(4,5),this.a=n[6]?r(6,7)/255:1)}fromHsl({h:t,s:n,l:r,a:o}){if(this._h=t%360,this._s=n,this._l=r,this.a=typeof o=="number"?o:1,n<=0){const m=vn(r*255);this.r=m,this.g=m,this.b=m}let a=0,l=0,s=0;const c=t/60,u=(1-Math.abs(2*r-1))*n,d=u*(1-Math.abs(c%2-1));c>=0&&c<1?(a=u,l=d):c>=1&&c<2?(a=d,l=u):c>=2&&c<3?(l=u,s=d):c>=3&&c<4?(l=d,s=u):c>=4&&c<5?(a=d,s=u):c>=5&&c<6&&(a=u,s=d);const f=r-u/2;this.r=vn((a+f)*255),this.g=vn((l+f)*255),this.b=vn((s+f)*255)}fromHsv({h:t,s:n,v:r,a:o}){this._h=t%360,this._s=n,this._v=r,this.a=typeof o=="number"?o:1;const a=vn(r*255);if(this.r=a,this.g=a,this.b=a,n<=0)return;const l=t/60,s=Math.floor(l),c=l-s,u=vn(r*(1-n)*255),d=vn(r*(1-n*c)*255),f=vn(r*(1-n*(1-c))*255);switch(s){case 0:this.g=f,this.b=u;break;case 1:this.r=d,this.b=u;break;case 2:this.r=u,this.b=f;break;case 3:this.r=u,this.g=d;break;case 4:this.r=f,this.g=u;break;case 5:default:this.g=u,this.b=d;break}}fromHsvString(t){const n=ql(t,Md);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=ql(t,Md);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=ql(t,(r,o)=>o.includes("%")?vn(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}var Ja=2,Td=.16,iC=.05,lC=.05,sC=.15,pg=5,hg=4,cC=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function _d(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-Ja*t:Math.round(e.h)+Ja*t:r=n?Math.round(e.h)+Ja*t:Math.round(e.h)-Ja*t,r<0?r+=360:r>=360&&(r-=360),r}function zd(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-Td*t:t===hg?r=e.s+Td:r=e.s+iC*t,r>1&&(r=1),n&&t===pg&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function jd(e,t,n){var r;return n?r=e.v+lC*t:r=e.v-sC*t,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function ya(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=new zt(e),o=r.toHsv(),a=pg;a>0;a-=1){var l=new zt({h:_d(o,a,!0),s:zd(o,a,!0),v:jd(o,a,!0)});n.push(l)}n.push(r);for(var s=1;s<=hg;s+=1){var c=new zt({h:_d(o,s),s:zd(o,s),v:jd(o,s)});n.push(c)}return t.theme==="dark"?cC.map(function(u){var d=u.index,f=u.amount;return new zt(t.backgroundColor||"#141414").mix(n[d],f).toHexString()}):n.map(function(u){return u.toHexString()})}var Ul={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},Us=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];Us.primary=Us[5];var Xs=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];Xs.primary=Xs[5];var Ys=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];Ys.primary=Ys[5];var Qs=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];Qs.primary=Qs[5];var Zs=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];Zs.primary=Zs[5];var Js=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];Js.primary=Js[5];var ec=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];ec.primary=ec[5];var tc=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];tc.primary=tc[5];var Mi=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Mi.primary=Mi[5];var nc=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];nc.primary=nc[5];var rc=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];rc.primary=rc[5];var oc=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];oc.primary=oc[5];var ac=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];ac.primary=ac[5];var Xl={red:Us,volcano:Xs,orange:Ys,gold:Qs,yellow:Zs,lime:Js,green:ec,cyan:tc,blue:Mi,geekblue:nc,purple:rc,magenta:oc,grey:ac};function uC(e,{generateColorPalettes:t,generateNeutralColorPalettes:n}){const{colorSuccess:r,colorWarning:o,colorError:a,colorInfo:l,colorPrimary:s,colorBgBase:c,colorTextBase:u}=e,d=t(s),f=t(r),m=t(o),v=t(a),p=t(l),h=n(c,u),g=e.colorLink||e.colorInfo,b=t(g),C=new zt(v[1]).mix(new zt(v[3]),50).toHexString();return Object.assign(Object.assign({},h),{colorPrimaryBg:d[1],colorPrimaryBgHover:d[2],colorPrimaryBorder:d[3],colorPrimaryBorderHover:d[4],colorPrimaryHover:d[5],colorPrimary:d[6],colorPrimaryActive:d[7],colorPrimaryTextHover:d[8],colorPrimaryText:d[9],colorPrimaryTextActive:d[10],colorSuccessBg:f[1],colorSuccessBgHover:f[2],colorSuccessBorder:f[3],colorSuccessBorderHover:f[4],colorSuccessHover:f[4],colorSuccess:f[6],colorSuccessActive:f[7],colorSuccessTextHover:f[8],colorSuccessText:f[9],colorSuccessTextActive:f[10],colorErrorBg:v[1],colorErrorBgHover:v[2],colorErrorBgFilledHover:C,colorErrorBgActive:v[3],colorErrorBorder:v[3],colorErrorBorderHover:v[4],colorErrorHover:v[5],colorError:v[6],colorErrorActive:v[7],colorErrorTextHover:v[8],colorErrorText:v[9],colorErrorTextActive:v[10],colorWarningBg:m[1],colorWarningBgHover:m[2],colorWarningBorder:m[3],colorWarningBorderHover:m[4],colorWarningHover:m[4],colorWarning:m[6],colorWarningActive:m[7],colorWarningTextHover:m[8],colorWarningText:m[9],colorWarningTextActive:m[10],colorInfoBg:p[1],colorInfoBgHover:p[2],colorInfoBorder:p[3],colorInfoBorderHover:p[4],colorInfoHover:p[4],colorInfo:p[6],colorInfoActive:p[7],colorInfoTextHover:p[8],colorInfoText:p[9],colorInfoTextActive:p[10],colorLinkHover:b[4],colorLink:b[6],colorLinkActive:b[7],colorBgMask:new zt("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}const dC=e=>{let t=e,n=e,r=e,o=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?n=4:e<8&&e>=7?n=5:e<14&&e>=8?n=6:e<16&&e>=14?n=7:e>=16&&(n=8),e<6&&e>=2?r=1:e>=6&&(r=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}};function fC(e){const{motionUnit:t,motionBase:n,borderRadius:r,lineWidth:o}=e;return Object.assign({motionDurationFast:`${(n+t).toFixed(1)}s`,motionDurationMid:`${(n+t*2).toFixed(1)}s`,motionDurationSlow:`${(n+t*3).toFixed(1)}s`,lineWidthBold:o+1},dC(r))}const mC=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function xi(e){return(e+8)/e}function vC(e){const t=Array.from({length:10}).map((n,r)=>{const o=r-1,a=e*Math.pow(Math.E,o/5),l=r>1?Math.floor(a):Math.ceil(a);return Math.floor(l/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:xi(n)}))}const gC=e=>{const t=vC(e),n=t.map(d=>d.size),r=t.map(d=>d.lineHeight),o=n[1],a=n[0],l=n[2],s=r[1],c=r[0],u=r[2];return{fontSizeSM:a,fontSize:o,fontSizeLG:l,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:s,lineHeightLG:u,lineHeightSM:c,fontHeight:Math.round(s*o),fontHeightLG:Math.round(u*l),fontHeightSM:Math.round(c*a),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function pC(e){const{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}const qn=(e,t)=>new zt(e).setA(t).toRgbString(),Xo=(e,t)=>new zt(e).darken(t).toHexString(),hC=e=>{const t=ya(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},bC=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:qn(r,.88),colorTextSecondary:qn(r,.65),colorTextTertiary:qn(r,.45),colorTextQuaternary:qn(r,.25),colorFill:qn(r,.15),colorFillSecondary:qn(r,.06),colorFillTertiary:qn(r,.04),colorFillQuaternary:qn(r,.02),colorBgSolid:qn(r,1),colorBgSolidHover:qn(r,.75),colorBgSolidActive:qn(r,.95),colorBgLayout:Xo(n,4),colorBgContainer:Xo(n,0),colorBgElevated:Xo(n,0),colorBgSpotlight:qn(r,.85),colorBgBlur:"transparent",colorBorder:Xo(n,15),colorBorderSecondary:Xo(n,6)}};function yC(e){Ul.pink=Ul.magenta,Xl.pink=Xl.magenta;const t=Object.keys(gg).map(n=>{const r=e[n]===Ul[n]?Xl[n]:ya(e[n]);return Array.from({length:10},()=>1).reduce((o,a,l)=>(o[`${n}-${l+1}`]=r[l],o[`${n}${l+1}`]=r[l],o),{})}).reduce((n,r)=>(n=Object.assign(Object.assign({},n),r),n),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),uC(e,{generateColorPalettes:hC,generateNeutralColorPalettes:bC})),gC(e.fontSize)),pC(e)),mC(e)),fC(e))}const bg=Hs(yC),ic={token:ba,override:{override:ba},hashed:!0},yg=te.createContext(ic),Ca="ant",el="anticon",CC=["outlined","borderless","filled","underlined"],SC=(e,t)=>t||(e?`${Ca}-${e}`:Ca),it=i.createContext({getPrefixCls:SC,iconPrefixCls:el}),{Consumer:T4}=it,Bd={};function Kn(e){const t=i.useContext(it),{getPrefixCls:n,direction:r,getPopupContainer:o}=t,a=t[e];return Object.assign(Object.assign({classNames:Bd,styles:Bd},a),{getPrefixCls:n,direction:r,getPopupContainer:o})}const xC=`-ant-${Date.now()}-${Math.random()}`;function $C(e,t){const n={},r=(l,s)=>{let c=l.clone();return c=(s==null?void 0:s(c))||c,c.toRgbString()},o=(l,s)=>{const c=new zt(l),u=ya(c.toRgbString());n[`${s}-color`]=r(c),n[`${s}-color-disabled`]=u[1],n[`${s}-color-hover`]=u[4],n[`${s}-color-active`]=u[6],n[`${s}-color-outline`]=c.clone().setA(.2).toRgbString(),n[`${s}-color-deprecated-bg`]=u[0],n[`${s}-color-deprecated-border`]=u[2]};if(t.primaryColor){o(t.primaryColor,"primary");const l=new zt(t.primaryColor),s=ya(l.toRgbString());s.forEach((u,d)=>{n[`primary-${d+1}`]=u}),n["primary-color-deprecated-l-35"]=r(l,u=>u.lighten(35)),n["primary-color-deprecated-l-20"]=r(l,u=>u.lighten(20)),n["primary-color-deprecated-t-20"]=r(l,u=>u.tint(20)),n["primary-color-deprecated-t-50"]=r(l,u=>u.tint(50)),n["primary-color-deprecated-f-12"]=r(l,u=>u.setA(u.a*.12));const c=new zt(s[0]);n["primary-color-active-deprecated-f-30"]=r(c,u=>u.setA(u.a*.3)),n["primary-color-active-deprecated-d-02"]=r(c,u=>u.darken(2))}return t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info"),`
|
|
20
|
+
:root {
|
|
21
|
+
${Object.keys(n).map(l=>`--${e}-${l}: ${n[l]};`).join(`
|
|
22
|
+
`)}
|
|
23
|
+
}
|
|
24
|
+
`.trim()}function wC(e,t){const n=$C(e,t);En()&&hr(n,`${xC}-dynamic-theme`)}const Jn=i.createContext(!1),Cg=({children:e,disabled:t})=>{const n=i.useContext(Jn);return i.createElement(Jn.Provider,{value:t??n},e)},Yr=i.createContext(void 0),EC=({children:e,size:t})=>{const n=i.useContext(Yr);return i.createElement(Yr.Provider,{value:t||n},e)};function OC(){const e=i.useContext(Jn),t=i.useContext(Yr);return{componentDisabled:e,componentSize:t}}var Sg=nn(function e(){tn(this,e)}),xg="CALC_UNIT",IC=new RegExp(xg,"g");function Yl(e){return typeof e=="number"?"".concat(e).concat(xg):e}var RC=(function(e){mr(n,e);var t=vr(n);function n(r,o){var a;tn(this,n),a=t.call(this),j(Ae(a),"result",""),j(Ae(a),"unitlessCssVar",void 0),j(Ae(a),"lowPriority",void 0);var l=Ue(r);return a.unitlessCssVar=o,r instanceof n?a.result="(".concat(r.result,")"):l==="number"?a.result=Yl(r):l==="string"&&(a.result=r),a}return nn(n,[{key:"add",value:function(o){return o instanceof n?this.result="".concat(this.result," + ").concat(o.getResult()):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," + ").concat(Yl(o))),this.lowPriority=!0,this}},{key:"sub",value:function(o){return o instanceof n?this.result="".concat(this.result," - ").concat(o.getResult()):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," - ").concat(Yl(o))),this.lowPriority=!0,this}},{key:"mul",value:function(o){return this.lowPriority&&(this.result="(".concat(this.result,")")),o instanceof n?this.result="".concat(this.result," * ").concat(o.getResult(!0)):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," * ").concat(o)),this.lowPriority=!1,this}},{key:"div",value:function(o){return this.lowPriority&&(this.result="(".concat(this.result,")")),o instanceof n?this.result="".concat(this.result," / ").concat(o.getResult(!0)):(typeof o=="number"||typeof o=="string")&&(this.result="".concat(this.result," / ").concat(o)),this.lowPriority=!1,this}},{key:"getResult",value:function(o){return this.lowPriority||o?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(o){var a=this,l=o||{},s=l.unit,c=!0;return typeof s=="boolean"?c=s:Array.from(this.unitlessCssVar).some(function(u){return a.result.includes(u)})&&(c=!1),this.result=this.result.replace(IC,c?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),n})(Sg),PC=(function(e){mr(n,e);var t=vr(n);function n(r){var o;return tn(this,n),o=t.call(this),j(Ae(o),"result",0),r instanceof n?o.result=r.result:typeof r=="number"&&(o.result=r),o}return nn(n,[{key:"add",value:function(o){return o instanceof n?this.result+=o.result:typeof o=="number"&&(this.result+=o),this}},{key:"sub",value:function(o){return o instanceof n?this.result-=o.result:typeof o=="number"&&(this.result-=o),this}},{key:"mul",value:function(o){return o instanceof n?this.result*=o.result:typeof o=="number"&&(this.result*=o),this}},{key:"div",value:function(o){return o instanceof n?this.result/=o.result:typeof o=="number"&&(this.result/=o),this}},{key:"equal",value:function(){return this.result}}]),n})(Sg),NC=function(t,n){var r=t==="css"?RC:PC;return function(o){return new r(o,n)}},Dd=function(t,n){return"".concat([n,t.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function Lt(e){var t=i.useRef();t.current=e;var n=i.useCallback(function(){for(var r,o=arguments.length,a=new Array(o),l=0;l<o;l++)a[l]=arguments[l];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(a))},[]);return n}function No(e){var t=i.useRef(!1),n=i.useState(e),r=ee(n,2),o=r[0],a=r[1];i.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function l(s,c){c&&t.current||a(s)}return[o,l]}function Ql(e){return e!==void 0}function ln(e,t){var n=t||{},r=n.defaultValue,o=n.value,a=n.onChange,l=n.postState,s=No(function(){return Ql(o)?o:Ql(r)?typeof r=="function"?r():r:typeof e=="function"?e():e}),c=ee(s,2),u=c[0],d=c[1],f=o!==void 0?o:u,m=l?l(f):f,v=Lt(a),p=No([f]),h=ee(p,2),g=h[0],b=h[1];Vs(function(){var y=g[0];u!==y&&v(u,y)},[g]),Vs(function(){Ql(o)||d(o)},[o]);var C=Lt(function(y,$){d(y,$),b([f],$)});return[m,C]}function Ld(e,t,n,r){var o=D({},t[e]);if(r!=null&&r.deprecatedTokens){var a=r.deprecatedTokens;a.forEach(function(s){var c=ee(s,2),u=c[0],d=c[1];if(o!=null&&o[u]||o!=null&&o[d]){var f;(f=o[d])!==null&&f!==void 0||(o[d]=o==null?void 0:o[u])}})}var l=D(D({},n),o);return Object.keys(l).forEach(function(s){l[s]===t[s]&&delete l[s]}),l}var $g=typeof CSSINJS_STATISTIC<"u",lc=!0;function wt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!$g)return Object.assign.apply(Object,[{}].concat(t));lc=!1;var r={};return t.forEach(function(o){if(Ue(o)==="object"){var a=Object.keys(o);a.forEach(function(l){Object.defineProperty(r,l,{configurable:!0,enumerable:!0,get:function(){return o[l]}})})}}),lc=!0,r}var Ad={};function MC(){}var TC=function(t){var n,r=t,o=MC;return $g&&typeof Proxy<"u"&&(n=new Set,r=new Proxy(t,{get:function(l,s){if(lc){var c;(c=n)===null||c===void 0||c.add(s)}return l[s]}}),o=function(l,s){var c;Ad[l]={global:Array.from(n),component:D(D({},(c=Ad[l])===null||c===void 0?void 0:c.component),s)}}),{token:r,keys:n,flush:o}};function Fd(e,t,n){if(typeof n=="function"){var r;return n(wt(t,(r=t[e])!==null&&r!==void 0?r:{}))}return n??{}}function _C(e){return e==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return"max(".concat(r.map(function(a){return H(a)}).join(","),")")},min:function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return"min(".concat(r.map(function(a){return H(a)}).join(","),")")}}}var zC=1e3*60*10,jC=(function(){function e(){tn(this,e),j(this,"map",new Map),j(this,"objectIDMap",new WeakMap),j(this,"nextID",0),j(this,"lastAccessBeat",new Map),j(this,"accessBeat",0)}return nn(e,[{key:"set",value:function(n,r){this.clear();var o=this.getCompositeKey(n);this.map.set(o,r),this.lastAccessBeat.set(o,Date.now())}},{key:"get",value:function(n){var r=this.getCompositeKey(n),o=this.map.get(r);return this.lastAccessBeat.set(r,Date.now()),this.accessBeat+=1,o}},{key:"getCompositeKey",value:function(n){var r=this,o=n.map(function(a){return a&&Ue(a)==="object"?"obj_".concat(r.getObjectID(a)):"".concat(Ue(a),"_").concat(a)});return o.join("|")}},{key:"getObjectID",value:function(n){if(this.objectIDMap.has(n))return this.objectIDMap.get(n);var r=this.nextID;return this.objectIDMap.set(n,r),this.nextID+=1,r}},{key:"clear",value:function(){var n=this;if(this.accessBeat>1e4){var r=Date.now();this.lastAccessBeat.forEach(function(o,a){r-o>zC&&(n.map.delete(a),n.lastAccessBeat.delete(a))}),this.accessBeat=0}}}]),e})(),Hd=new jC;function BC(e,t){return te.useMemo(function(){var n=Hd.get(t);if(n)return n;var r=e();return Hd.set(t,r),r},t)}var DC=function(){return{}};function LC(e){var t=e.useCSP,n=t===void 0?DC:t,r=e.useToken,o=e.usePrefix,a=e.getResetStyles,l=e.getCommonStyle,s=e.getCompUnitless;function c(m,v,p,h){var g=Array.isArray(m)?m[0]:m;function b(w){return"".concat(String(g)).concat(w.slice(0,1).toUpperCase()).concat(w.slice(1))}var C=(h==null?void 0:h.unitless)||{},y=typeof s=="function"?s(m):{},$=D(D({},y),{},j({},b("zIndexPopup"),!0));Object.keys(C).forEach(function(w){$[b(w)]=C[w]});var S=D(D({},h),{},{unitless:$,prefixToken:b}),E=d(m,v,p,S),O=u(g,p,S);return function(w){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:w,I=E(w,x),P=ee(I,2),N=P[1],M=O(x),R=ee(M,2),_=R[0],T=R[1];return[_,N,T]}}function u(m,v,p){var h=p.unitless,g=p.injectStyle,b=g===void 0?!0:g,C=p.prefixToken,y=p.ignore,$=function(O){var w=O.rootCls,x=O.cssVar,I=x===void 0?{}:x,P=r(),N=P.realToken;return Xy({path:[m],prefix:I.prefix,key:I.key,unitless:h,ignore:y,token:N,scope:w},function(){var M=Fd(m,N,v),R=Ld(m,N,M,{deprecatedTokens:p==null?void 0:p.deprecatedTokens});return Object.keys(M).forEach(function(_){R[C(_)]=R[_],delete R[_]}),R}),null},S=function(O){var w=r(),x=w.cssVar;return[function(I){return b&&x?te.createElement(te.Fragment,null,te.createElement($,{rootCls:O,cssVar:x,component:m}),I):I},x==null?void 0:x.key]};return S}function d(m,v,p){var h=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},g=Array.isArray(m)?m:[m,m],b=ee(g,1),C=b[0],y=g.join("-"),$=e.layer||{name:"antd"};return function(S){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:S,O=r(),w=O.theme,x=O.realToken,I=O.hashId,P=O.token,N=O.cssVar,M=o(),R=M.rootPrefixCls,_=M.iconPrefixCls,T=n(),z=N?"css":"js",B=BC(function(){var V=new Set;return N&&Object.keys(h.unitless||{}).forEach(function(G){V.add(pi(G,N.prefix)),V.add(pi(G,Dd(C,N.prefix)))}),NC(z,V)},[z,C,N==null?void 0:N.prefix]),L=_C(z),F=L.max,K=L.min,W={theme:w,token:P,hashId:I,nonce:function(){return T.nonce},clientOnly:h.clientOnly,layer:$,order:h.order||-999};typeof a=="function"&&qs(D(D({},W),{},{clientOnly:!1,path:["Shared",R]}),function(){return a(P,{prefix:{rootPrefixCls:R,iconPrefixCls:_},csp:T})});var A=qs(D(D({},W),{},{path:[y,S,_]}),function(){if(h.injectStyle===!1)return[];var V=TC(P),G=V.token,U=V.flush,ne=Fd(C,x,p),J=".".concat(S),Q=Ld(C,x,ne,{deprecatedTokens:h.deprecatedTokens});N&&ne&&Ue(ne)==="object"&&Object.keys(ne).forEach(function(oe){ne[oe]="var(".concat(pi(oe,Dd(C,N.prefix)),")")});var le=wt(G,{componentCls:J,prefixCls:S,iconCls:".".concat(_),antCls:".".concat(R),calc:B,max:F,min:K},N?ne:Q),re=v(le,{hashId:I,prefixCls:S,rootPrefixCls:R,iconPrefixCls:_});U(C,Q);var X=typeof l=="function"?l(le,S,E,h.resetFont):null;return[h.resetStyle===!1?null:X,re]});return[A,I]}}function f(m,v,p){var h=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},g=d(m,v,p,D({resetStyle:!1,order:-998},h)),b=function(y){var $=y.prefixCls,S=y.rootCls,E=S===void 0?$:S;return g($,E),null};return b}return{genStyleHooks:c,genSubStyleComponent:f,genComponentStyleHook:d}}const Qr=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],AC="5.29.3";function Zl(e){return e>=0&&e<=255}function ea(e,t){const{r:n,g:r,b:o,a}=new zt(e).toRgb();if(a<1)return e;const{r:l,g:s,b:c}=new zt(t).toRgb();for(let u=.01;u<=1;u+=.01){const d=Math.round((n-l*(1-u))/u),f=Math.round((r-s*(1-u))/u),m=Math.round((o-c*(1-u))/u);if(Zl(d)&&Zl(f)&&Zl(m))return new zt({r:d,g:f,b:m,a:Math.round(u*100)/100}).toRgbString()}return new zt({r:n,g:r,b:o,a:1}).toRgbString()}var FC=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function wg(e){const{override:t}=e,n=FC(e,["override"]),r=Object.assign({},t);Object.keys(ba).forEach(m=>{delete r[m]});const o=Object.assign(Object.assign({},n),r),a=480,l=576,s=768,c=992,u=1200,d=1600;return o.motion===!1&&(o.motionDurationFast="0s",o.motionDurationMid="0s",o.motionDurationSlow="0s"),Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:ea(o.colorBorderSecondary,o.colorBgContainer),colorTextPlaceholder:o.colorTextQuaternary,colorTextDisabled:o.colorTextQuaternary,colorTextHeading:o.colorText,colorTextLabel:o.colorTextSecondary,colorTextDescription:o.colorTextTertiary,colorTextLightSolid:o.colorWhite,colorHighlight:o.colorError,colorBgTextHover:o.colorFillSecondary,colorBgTextActive:o.colorFill,colorIcon:o.colorTextTertiary,colorIconHover:o.colorText,colorErrorOutline:ea(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:ea(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:o.lineWidth*3,lineWidth:o.lineWidth,controlOutlineWidth:o.lineWidth*2,controlInteractiveSize:o.controlHeight/2,controlItemBgHover:o.colorFillTertiary,controlItemBgActive:o.colorPrimaryBg,controlItemBgActiveHover:o.colorPrimaryBgHover,controlItemBgActiveDisabled:o.colorFill,controlTmpOutline:o.colorFillQuaternary,controlOutline:ea(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:`
|
|
25
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
26
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
27
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
28
|
+
`,boxShadowSecondary:`
|
|
29
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
30
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
31
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
32
|
+
`,boxShadowTertiary:`
|
|
33
|
+
0 1px 2px 0 rgba(0, 0, 0, 0.03),
|
|
34
|
+
0 1px 6px -1px rgba(0, 0, 0, 0.02),
|
|
35
|
+
0 2px 4px 0 rgba(0, 0, 0, 0.02)
|
|
36
|
+
`,screenXS:a,screenXSMin:a,screenXSMax:l-1,screenSM:l,screenSMMin:l,screenSMMax:s-1,screenMD:s,screenMDMin:s,screenMDMax:c-1,screenLG:c,screenLGMin:c,screenLGMax:u-1,screenXL:u,screenXLMin:u,screenXLMax:d-1,screenXXL:d,screenXXLMin:d,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
|
|
37
|
+
0 1px 2px -2px ${new zt("rgba(0, 0, 0, 0.16)").toRgbString()},
|
|
38
|
+
0 3px 6px 0 ${new zt("rgba(0, 0, 0, 0.12)").toRgbString()},
|
|
39
|
+
0 5px 12px 4px ${new zt("rgba(0, 0, 0, 0.09)").toRgbString()}
|
|
40
|
+
`,boxShadowDrawerRight:`
|
|
41
|
+
-6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
42
|
+
-3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
43
|
+
-9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
44
|
+
`,boxShadowDrawerLeft:`
|
|
45
|
+
6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
46
|
+
3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
47
|
+
9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
48
|
+
`,boxShadowDrawerUp:`
|
|
49
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
50
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
51
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
52
|
+
`,boxShadowDrawerDown:`
|
|
53
|
+
0 -6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
54
|
+
0 -3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
55
|
+
0 -9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
56
|
+
`,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var kd=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Eg={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0},HC={motionBase:!0,motionUnit:!0},kC={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},Og=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o}=t,a=kd(t,["override"]);let l=Object.assign(Object.assign({},r),{override:o});return l=wg(l),a&&Object.entries(a).forEach(([s,c])=>{const{theme:u}=c,d=kd(c,["theme"]);let f=d;u&&(f=Og(Object.assign(Object.assign({},l),d),{override:d},u)),l[s]=f}),l};function Rn(){const{token:e,hashed:t,theme:n,override:r,cssVar:o}=te.useContext(yg),a=`${AC}-${t||""}`,l=n||bg,[s,c,u]=Sy(l,[ba,e],{salt:a,override:r,getComputedToken:Og,formatToken:wg,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:Eg,ignore:HC,preserve:kC}});return[l,u,t?c:"",s,o]}const Cr={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},kt=(e,t=!1)=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}),za=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),Zr=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),VC=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),KC=(e,t,n,r)=>{const o=`[class^="${t}"], [class*=" ${t}"]`,a=n?`.${n}`:o,l={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return r!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[a]:Object.assign(Object.assign(Object.assign({},s),l),{[o]:l})}},dr=(e,t)=>({outline:`${H(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:"outline-offset 0s, outline 0s"}),Sr=(e,t)=>({"&:focus-visible":dr(e,t)}),Ig=e=>({[`.${e}`]:Object.assign(Object.assign({},za()),{[`.${e} .${e}-icon`]:{display:"block"}})}),WC=e=>Object.assign(Object.assign({color:e.colorLink,textDecoration:e.linkDecoration,outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,border:0,padding:0,background:"none",userSelect:"none"},Sr(e)),{"&:hover":{color:e.colorLinkHover,textDecoration:e.linkHoverDecoration},"&:focus":{color:e.colorLinkHover,textDecoration:e.linkFocusDecoration},"&:active":{color:e.colorLinkActive,textDecoration:e.linkHoverDecoration}}),{genStyleHooks:At,genComponentStyleHook:GC,genSubStyleComponent:ja}=LC({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=i.useContext(it);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,o]=Rn();return{theme:e,realToken:t,hashId:n,token:r,cssVar:o}},useCSP:()=>{const{csp:e}=i.useContext(it);return e??{}},getResetStyles:(e,t)=>{var n;const r=VC(e);return[r,{"&":r},Ig((n=t==null?void 0:t.prefix.iconPrefixCls)!==null&&n!==void 0?n:el)]},getCommonStyle:KC,getCompUnitless:()=>Eg});function Rg(e,t){return Qr.reduce((n,r)=>{const o=e[`${r}1`],a=e[`${r}3`],l=e[`${r}6`],s=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:a,darkColor:l,textColor:s}))},{})}const qC=(e,t)=>{const[n,r]=Rn();return qs({token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>Ig(e))},UC=Object.assign({},Xi),{useId:Vd}=UC,XC=()=>"",YC=typeof Vd>"u"?XC:Vd;function QC(e,t,n){var r;Br();const o=e||{},a=o.inherit===!1||!t?Object.assign(Object.assign({},ic),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:ic.hashed,cssVar:t==null?void 0:t.cssVar}):t,l=YC();return no(()=>{var s,c;if(!e)return t;const u=Object.assign({},a.components);Object.keys(e.components||{}).forEach(m=>{u[m]=Object.assign(Object.assign({},u[m]),e.components[m])});const d=`css-var-${l.replace(/:/g,"")}`,f=((s=o.cssVar)!==null&&s!==void 0?s:a.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:n==null?void 0:n.prefixCls},typeof a.cssVar=="object"?a.cssVar:{}),typeof o.cssVar=="object"?o.cssVar:{}),{key:typeof o.cssVar=="object"&&((c=o.cssVar)===null||c===void 0?void 0:c.key)||d});return Object.assign(Object.assign(Object.assign({},a),o),{token:Object.assign(Object.assign({},a.token),o.token),components:u,cssVar:f})},[o,a],(s,c)=>s.some((u,d)=>{const f=c[d];return!ur(u,f,!0)}))}var ZC=["children"],Pg=i.createContext({});function JC(e){var t=e.children,n=at(e,ZC);return i.createElement(Pg.Provider,{value:n},t)}var eS=(function(e){mr(n,e);var t=vr(n);function n(){return tn(this,n),t.apply(this,arguments)}return nn(n,[{key:"render",value:function(){return this.props.children}}]),n})(i.Component);function tS(e){var t=i.useReducer(function(s){return s+1},0),n=ee(t,2),r=n[1],o=i.useRef(e),a=Lt(function(){return o.current}),l=Lt(function(s){o.current=typeof s=="function"?s(o.current):s,r()});return[a,l]}var Or="none",ei="appear",ti="enter",ni="leave",Kd="none",tr="prepare",bo="start",yo="active",cu="end",Ng="prepared";function Wd(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}function nS(e,t){var n={animationend:Wd("Animation","AnimationEnd"),transitionend:Wd("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var rS=nS(En(),typeof window<"u"?window:{}),Mg={};if(En()){var oS=document.createElement("div");Mg=oS.style}var ri={};function Tg(e){if(ri[e])return ri[e];var t=rS[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var a=n[o];if(Object.prototype.hasOwnProperty.call(t,a)&&a in Mg)return ri[e]=t[a],ri[e]}return""}var _g=Tg("animationend"),zg=Tg("transitionend"),jg=!!(_g&&zg),Gd=_g||"animationend",qd=zg||"transitionend";function Ud(e,t){if(!e)return null;if(Ue(e)==="object"){var n=t.replace(/-\w/g,function(r){return r[1].toUpperCase()});return e[n]}return"".concat(e,"-").concat(t)}const aS=(function(e){var t=i.useRef();function n(o){o&&(o.removeEventListener(qd,e),o.removeEventListener(Gd,e))}function r(o){t.current&&t.current!==o&&n(t.current),o&&o!==t.current&&(o.addEventListener(qd,e),o.addEventListener(Gd,e),t.current=o)}return i.useEffect(function(){return function(){n(t.current)}},[]),[r,n]});var Bg=En()?i.useLayoutEffect:i.useEffect;const iS=(function(){var e=i.useRef(null);function t(){Et.cancel(e.current)}function n(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var a=Et(function(){o<=1?r({isCanceled:function(){return a!==e.current}}):n(r,o-1)});e.current=a}return i.useEffect(function(){return function(){t()}},[]),[n,t]});var lS=[tr,bo,yo,cu],sS=[tr,Ng],Dg=!1,cS=!0;function Lg(e){return e===yo||e===cu}const uS=(function(e,t,n){var r=No(Kd),o=ee(r,2),a=o[0],l=o[1],s=iS(),c=ee(s,2),u=c[0],d=c[1];function f(){l(tr,!0)}var m=t?sS:lS;return Bg(function(){if(a!==Kd&&a!==cu){var v=m.indexOf(a),p=m[v+1],h=n(a);h===Dg?l(p,!0):p&&u(function(g){function b(){g.isCanceled()||l(p,!0)}h===!0?b():Promise.resolve(h).then(b)})}},[e,a]),i.useEffect(function(){return function(){d()}},[]),[f,a]});function dS(e,t,n,r){var o=r.motionEnter,a=o===void 0?!0:o,l=r.motionAppear,s=l===void 0?!0:l,c=r.motionLeave,u=c===void 0?!0:c,d=r.motionDeadline,f=r.motionLeaveImmediately,m=r.onAppearPrepare,v=r.onEnterPrepare,p=r.onLeavePrepare,h=r.onAppearStart,g=r.onEnterStart,b=r.onLeaveStart,C=r.onAppearActive,y=r.onEnterActive,$=r.onLeaveActive,S=r.onAppearEnd,E=r.onEnterEnd,O=r.onLeaveEnd,w=r.onVisibleChanged,x=No(),I=ee(x,2),P=I[0],N=I[1],M=tS(Or),R=ee(M,2),_=R[0],T=R[1],z=No(null),B=ee(z,2),L=B[0],F=B[1],K=_(),W=i.useRef(!1),A=i.useRef(null);function V(){return n()}var G=i.useRef(!1);function U(){T(Or),F(null,!0)}var ne=Lt(function(ae){var fe=_();if(fe!==Or){var se=V();if(!(ae&&!ae.deadline&&ae.target!==se)){var ce=G.current,Se;fe===ei&&ce?Se=S==null?void 0:S(se,ae):fe===ti&&ce?Se=E==null?void 0:E(se,ae):fe===ni&&ce&&(Se=O==null?void 0:O(se,ae)),ce&&Se!==!1&&U()}}}),J=aS(ne),Q=ee(J,1),le=Q[0],re=function(fe){switch(fe){case ei:return j(j(j({},tr,m),bo,h),yo,C);case ti:return j(j(j({},tr,v),bo,g),yo,y);case ni:return j(j(j({},tr,p),bo,b),yo,$);default:return{}}},X=i.useMemo(function(){return re(K)},[K]),oe=uS(K,!e,function(ae){if(ae===tr){var fe=X[tr];return fe?fe(V()):Dg}if(Y in X){var se;F(((se=X[Y])===null||se===void 0?void 0:se.call(X,V(),null))||null)}return Y===yo&&K!==Or&&(le(V()),d>0&&(clearTimeout(A.current),A.current=setTimeout(function(){ne({deadline:!0})},d))),Y===Ng&&U(),cS}),Z=ee(oe,2),q=Z[0],Y=Z[1],ie=Lg(Y);G.current=ie;var ue=i.useRef(null);Bg(function(){if(!(W.current&&ue.current===t)){N(t);var ae=W.current;W.current=!0;var fe;!ae&&t&&s&&(fe=ei),ae&&t&&a&&(fe=ti),(ae&&!t&&u||!ae&&f&&!t&&u)&&(fe=ni);var se=re(fe);fe&&(e||se[tr])?(T(fe),q()):T(Or),ue.current=t}},[t]),i.useEffect(function(){(K===ei&&!s||K===ti&&!a||K===ni&&!u)&&T(Or)},[s,a,u]),i.useEffect(function(){return function(){W.current=!1,clearTimeout(A.current)}},[]);var he=i.useRef(!1);i.useEffect(function(){P&&(he.current=!0),P!==void 0&&K===Or&&((he.current||P)&&(w==null||w(P)),he.current=!0)},[P,K]);var be=L;return X[tr]&&Y===bo&&(be=D({transition:"none"},be)),[K,Y,be,P??t]}function fS(e){var t=e;Ue(e)==="object"&&(t=e.transitionSupport);function n(o,a){return!!(o.motionName&&t&&a!==!1)}var r=i.forwardRef(function(o,a){var l=o.visible,s=l===void 0?!0:l,c=o.removeOnLeave,u=c===void 0?!0:c,d=o.forceRender,f=o.children,m=o.motionName,v=o.leavedClassName,p=o.eventProps,h=i.useContext(Pg),g=h.motion,b=n(o,g),C=i.useRef(),y=i.useRef();function $(){try{return C.current instanceof HTMLElement?C.current:gi(y.current)}catch{return null}}var S=dS(b,s,$,o),E=ee(S,4),O=E[0],w=E[1],x=E[2],I=E[3],P=i.useRef(I);I&&(P.current=!0);var N=i.useCallback(function(B){C.current=B,fa(a,B)},[a]),M,R=D(D({},p),{},{visible:s});if(!f)M=null;else if(O===Or)I?M=f(D({},R),N):!u&&P.current&&v?M=f(D(D({},R),{},{className:v}),N):d||!u&&!v?M=f(D(D({},R),{},{style:{display:"none"}}),N):M=null;else{var _;w===tr?_="prepare":Lg(w)?_="active":w===bo&&(_="start");var T=Ud(m,"".concat(O,"-").concat(_));M=f(D(D({},R),{},{className:k(Ud(m,O),j(j({},T,T&&_),m,typeof m=="string")),style:x}),N)}if(i.isValidElement(M)&&or(M)){var z=jr(M);z||(M=i.cloneElement(M,{ref:N}))}return i.createElement(eS,{ref:y},M)});return r.displayName="CSSMotion",r}const ir=fS(jg);var sc="add",cc="keep",uc="remove",Jl="removed";function mS(e){var t;return e&&Ue(e)==="object"&&"key"in e?t=e:t={key:e},D(D({},t),{},{key:String(t.key)})}function dc(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(mS)}function vS(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=0,o=t.length,a=dc(e),l=dc(t);a.forEach(function(u){for(var d=!1,f=r;f<o;f+=1){var m=l[f];if(m.key===u.key){r<f&&(n=n.concat(l.slice(r,f).map(function(v){return D(D({},v),{},{status:sc})})),r=f),n.push(D(D({},m),{},{status:cc})),r+=1,d=!0;break}}d||n.push(D(D({},u),{},{status:uc}))}),r<o&&(n=n.concat(l.slice(r).map(function(u){return D(D({},u),{},{status:sc})})));var s={};n.forEach(function(u){var d=u.key;s[d]=(s[d]||0)+1});var c=Object.keys(s).filter(function(u){return s[u]>1});return c.forEach(function(u){n=n.filter(function(d){var f=d.key,m=d.status;return f!==u||m!==uc}),n.forEach(function(d){d.key===u&&(d.status=cc)})}),n}var gS=["component","children","onVisibleChanged","onAllRemoved"],pS=["status"],hS=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function bS(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ir,n=(function(r){mr(a,r);var o=vr(a);function a(){var l;tn(this,a);for(var s=arguments.length,c=new Array(s),u=0;u<s;u++)c[u]=arguments[u];return l=o.call.apply(o,[this].concat(c)),j(Ae(l),"state",{keyEntities:[]}),j(Ae(l),"removeKey",function(d){l.setState(function(f){var m=f.keyEntities.map(function(v){return v.key!==d?v:D(D({},v),{},{status:Jl})});return{keyEntities:m}},function(){var f=l.state.keyEntities,m=f.filter(function(v){var p=v.status;return p!==Jl}).length;m===0&&l.props.onAllRemoved&&l.props.onAllRemoved()})}),l}return nn(a,[{key:"render",value:function(){var s=this,c=this.state.keyEntities,u=this.props,d=u.component,f=u.children,m=u.onVisibleChanged;u.onAllRemoved;var v=at(u,gS),p=d||i.Fragment,h={};return hS.forEach(function(g){h[g]=v[g],delete v[g]}),delete v.keys,i.createElement(p,v,c.map(function(g,b){var C=g.status,y=at(g,pS),$=C===sc||C===cc;return i.createElement(t,me({},h,{key:y.key,visible:$,eventProps:y,onVisibleChanged:function(E){m==null||m(E,{key:y.key}),E||s.removeKey(y.key)}}),function(S,E){return f(D(D({},S),{},{index:b}),E)})}))}}],[{key:"getDerivedStateFromProps",value:function(s,c){var u=s.keys,d=c.keyEntities,f=dc(u),m=vS(d,f);return{keyEntities:m.filter(function(v){var p=d.find(function(h){var g=h.key;return v.key===g});return!(p&&p.status===Jl&&v.status===uc)})}}}]),a})(i.Component);return j(n,"defaultProps",{component:"div"}),n}const Ag=bS(jg),Xd=i.createContext(!0);function yS(e){const t=i.useContext(Xd),{children:n}=e,[,r]=Rn(),{motion:o}=r,a=i.useRef(!1);return a.current||(a.current=t!==o),a.current?i.createElement(Xd.Provider,{value:o},i.createElement(JC,{motion:o},n)):n}const CS=()=>null;var SS=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const xS=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let Ti,Fg,Hg,kg;function $i(){return Ti||Ca}function $S(){return Fg||el}function wS(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const ES=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:o}=e;t!==void 0&&(Ti=t),n!==void 0&&(Fg=n),"holderRender"in e&&(kg=o),r&&(wS(r)?wC($i(),r):Hg=r)},OS=()=>({getPrefixCls:(e,t)=>t||(e?`${$i()}-${e}`:$i()),getIconPrefixCls:$S,getRootPrefixCls:()=>Ti||$i(),getTheme:()=>Hg,holderRender:kg}),IS=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:o,anchor:a,form:l,locale:s,componentSize:c,direction:u,space:d,splitter:f,virtual:m,dropdownMatchSelectWidth:v,popupMatchSelectWidth:p,popupOverflow:h,legacyLocale:g,parentContext:b,iconPrefixCls:C,theme:y,componentDisabled:$,segmented:S,statistic:E,spin:O,calendar:w,carousel:x,cascader:I,collapse:P,typography:N,checkbox:M,descriptions:R,divider:_,drawer:T,skeleton:z,steps:B,image:L,layout:F,list:K,mentions:W,modal:A,progress:V,result:G,slider:U,breadcrumb:ne,menu:J,pagination:Q,input:le,textArea:re,empty:X,badge:oe,radio:Z,rate:q,switch:Y,transfer:ie,avatar:ue,message:he,tag:be,table:ae,card:fe,tabs:se,timeline:ce,timePicker:Se,upload:we,notification:je,tree:Ne,colorPicker:Oe,datePicker:Te,rangePicker:ve,flex:de,wave:xe,dropdown:Ce,warning:Ee,tour:Me,tooltip:Qe,popover:Ve,popconfirm:Fe,floatButton:ft,floatButtonGroup:mt,variant:ot,inputNumber:Bt,treeSelect:bt}=e,ct=i.useCallback((We,vt)=>{const{prefixCls:Be}=e;if(vt)return vt;const Pe=Be||b.getPrefixCls("");return We?`${Pe}-${We}`:Pe},[b.getPrefixCls,e.prefixCls]),et=C||b.iconPrefixCls||el,gt=n||b.csp;qC(et,gt);const dt=QC(y,b.theme,{prefixCls:ct("")}),_e={csp:gt,autoInsertSpaceInButton:r,alert:o,anchor:a,locale:s||g,direction:u,space:d,splitter:f,virtual:m,popupMatchSelectWidth:p??v,popupOverflow:h,getPrefixCls:ct,iconPrefixCls:et,theme:dt,segmented:S,statistic:E,spin:O,calendar:w,carousel:x,cascader:I,collapse:P,typography:N,checkbox:M,descriptions:R,divider:_,drawer:T,skeleton:z,steps:B,image:L,input:le,textArea:re,layout:F,list:K,mentions:W,modal:A,progress:V,result:G,slider:U,breadcrumb:ne,menu:J,pagination:Q,empty:X,badge:oe,radio:Z,rate:q,switch:Y,transfer:ie,avatar:ue,message:he,tag:be,table:ae,card:fe,tabs:se,timeline:ce,timePicker:Se,upload:we,notification:je,tree:Ne,colorPicker:Oe,datePicker:Te,rangePicker:ve,flex:de,wave:xe,dropdown:Ce,warning:Ee,tour:Me,tooltip:Qe,popover:Ve,popconfirm:Fe,floatButton:ft,floatButtonGroup:mt,variant:ot,inputNumber:Bt,treeSelect:bt},Ge=Object.assign({},b);Object.keys(_e).forEach(We=>{_e[We]!==void 0&&(Ge[We]=_e[We])}),xS.forEach(We=>{const vt=e[We];vt&&(Ge[We]=vt)}),typeof r<"u"&&(Ge.button=Object.assign({autoInsertSpace:r},Ge.button));const He=no(()=>Ge,Ge,(We,vt)=>{const Be=Object.keys(We),Pe=Object.keys(vt);return Be.length!==Pe.length||Be.some(Ze=>We[Ze]!==vt[Ze])}),{layer:$e}=i.useContext(_a),ye=i.useMemo(()=>({prefixCls:et,csp:gt,layer:$e?"antd":void 0}),[et,gt,$e]);let pe=i.createElement(i.Fragment,null,i.createElement(CS,{dropdownMatchSelectWidth:v}),t);const Ie=i.useMemo(()=>{var We,vt,Be,Pe;return ho(((We=yr.Form)===null||We===void 0?void 0:We.defaultValidateMessages)||{},((Be=(vt=He.locale)===null||vt===void 0?void 0:vt.Form)===null||Be===void 0?void 0:Be.defaultValidateMessages)||{},((Pe=He.form)===null||Pe===void 0?void 0:Pe.validateMessages)||{},(l==null?void 0:l.validateMessages)||{})},[He,l==null?void 0:l.validateMessages]);Object.keys(Ie).length>0&&(pe=i.createElement(fg.Provider,{value:Ie},pe)),s&&(pe=i.createElement(aC,{locale:s,_ANT_MARK__:oC},pe)),pe=i.createElement(lu.Provider,{value:ye},pe),c&&(pe=i.createElement(EC,{size:c},pe)),pe=i.createElement(yS,null,pe);const Ke=i.useMemo(()=>{const We=dt||{},{algorithm:vt,token:Be,components:Pe,cssVar:Ze}=We,yt=SS(We,["algorithm","token","components","cssVar"]),St=vt&&(!Array.isArray(vt)||vt.length>0)?Hs(vt):bg,$t={};Object.entries(Pe||{}).forEach(([ht,Ot])=>{const Re=Object.assign({},Ot);"algorithm"in Re&&(Re.algorithm===!0?Re.theme=St:(Array.isArray(Re.algorithm)||typeof Re.algorithm=="function")&&(Re.theme=Hs(Re.algorithm)),delete Re.algorithm),$t[ht]=Re});const _t=Object.assign(Object.assign({},ba),Be);return Object.assign(Object.assign({},yt),{theme:St,token:_t,components:$t,override:Object.assign({override:_t},$t),cssVar:Ze})},[dt]);return y&&(pe=i.createElement(yg.Provider,{value:Ke},pe)),He.warning&&(pe=i.createElement(eC.Provider,{value:He.warning},pe)),$!==void 0&&(pe=i.createElement(Cg,{disabled:$},pe)),i.createElement(it.Provider,{value:He},pe)},Dr=e=>{const t=i.useContext(it),n=i.useContext(su);return i.createElement(IS,Object.assign({parentContext:t,legacyLocale:n},e))};Dr.ConfigContext=it;Dr.SizeContext=Yr;Dr.config=ES;Dr.useConfig=OC;Object.defineProperty(Dr,"SizeContext",{get:()=>Yr});var RS={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};function Vg(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function PS(e){return Vg(e)instanceof ShadowRoot}function _i(e){return PS(e)?Vg(e):null}function NS(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function MS(e,t){Ut(e,"[@ant-design/icons] ".concat(t))}function Yd(e){return Ue(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(Ue(e.icon)==="object"||typeof e.icon=="function")}function Qd(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r=e[n];switch(n){case"class":t.className=r,delete t.class;break;default:delete t[n],t[NS(n)]=r}return t},{})}function fc(e,t,n){return n?te.createElement(e.tag,D(D({key:t},Qd(e.attrs)),n),(e.children||[]).map(function(r,o){return fc(r,"".concat(t,"-").concat(e.tag,"-").concat(o))})):te.createElement(e.tag,D({key:t},Qd(e.attrs)),(e.children||[]).map(function(r,o){return fc(r,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function Kg(e){return ya(e)[0]}function Wg(e){return e?Array.isArray(e)?e:[e]:[]}var TS=`
|
|
57
|
+
.anticon {
|
|
58
|
+
display: inline-flex;
|
|
59
|
+
align-items: center;
|
|
60
|
+
color: inherit;
|
|
61
|
+
font-style: normal;
|
|
62
|
+
line-height: 0;
|
|
63
|
+
text-align: center;
|
|
64
|
+
text-transform: none;
|
|
65
|
+
vertical-align: -0.125em;
|
|
66
|
+
text-rendering: optimizeLegibility;
|
|
67
|
+
-webkit-font-smoothing: antialiased;
|
|
68
|
+
-moz-osx-font-smoothing: grayscale;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.anticon > * {
|
|
72
|
+
line-height: 1;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.anticon svg {
|
|
76
|
+
display: inline-block;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.anticon::before {
|
|
80
|
+
display: none;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.anticon .anticon-icon {
|
|
84
|
+
display: block;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.anticon[tabindex] {
|
|
88
|
+
cursor: pointer;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.anticon-spin::before,
|
|
92
|
+
.anticon-spin {
|
|
93
|
+
display: inline-block;
|
|
94
|
+
-webkit-animation: loadingCircle 1s infinite linear;
|
|
95
|
+
animation: loadingCircle 1s infinite linear;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
@-webkit-keyframes loadingCircle {
|
|
99
|
+
100% {
|
|
100
|
+
-webkit-transform: rotate(360deg);
|
|
101
|
+
transform: rotate(360deg);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
@keyframes loadingCircle {
|
|
106
|
+
100% {
|
|
107
|
+
-webkit-transform: rotate(360deg);
|
|
108
|
+
transform: rotate(360deg);
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
`,_S=function(t){var n=i.useContext(lu),r=n.csp,o=n.prefixCls,a=n.layer,l=TS;o&&(l=l.replace(/anticon/g,o)),a&&(l="@layer ".concat(a,` {
|
|
112
|
+
`).concat(l,`
|
|
113
|
+
}`)),i.useEffect(function(){var s=t.current,c=_i(s);hr(l,"@ant-design-icons",{prepend:!a,csp:r,attachTo:c})},[])},zS=["icon","className","onClick","style","primaryColor","secondaryColor"],aa={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function jS(e){var t=e.primaryColor,n=e.secondaryColor;aa.primaryColor=t,aa.secondaryColor=n||Kg(t),aa.calculated=!!n}function BS(){return D({},aa)}var Bo=function(t){var n=t.icon,r=t.className,o=t.onClick,a=t.style,l=t.primaryColor,s=t.secondaryColor,c=at(t,zS),u=i.useRef(),d=aa;if(l&&(d={primaryColor:l,secondaryColor:s||Kg(l)}),_S(u),MS(Yd(n),"icon should be icon definiton, but got ".concat(n)),!Yd(n))return null;var f=n;return f&&typeof f.icon=="function"&&(f=D(D({},f),{},{icon:f.icon(d.primaryColor,d.secondaryColor)})),fc(f.icon,"svg-".concat(f.name),D(D({className:r,onClick:o,style:a,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},c),{},{ref:u}))};Bo.displayName="IconReact";Bo.getTwoToneColors=BS;Bo.setTwoToneColors=jS;function Gg(e){var t=Wg(e),n=ee(t,2),r=n[0],o=n[1];return Bo.setTwoToneColors({primaryColor:r,secondaryColor:o})}function DS(){var e=Bo.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var LS=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Gg(Mi.primary);var Pt=i.forwardRef(function(e,t){var n=e.className,r=e.icon,o=e.spin,a=e.rotate,l=e.tabIndex,s=e.onClick,c=e.twoToneColor,u=at(e,LS),d=i.useContext(lu),f=d.prefixCls,m=f===void 0?"anticon":f,v=d.rootClassName,p=k(v,m,j(j({},"".concat(m,"-").concat(r.name),!!r.name),"".concat(m,"-spin"),!!o||r.name==="loading"),n),h=l;h===void 0&&s&&(h=-1);var g=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,b=Wg(c),C=ee(b,2),y=C[0],$=C[1];return i.createElement("span",me({role:"img","aria-label":r.name},u,{ref:t,tabIndex:h,onClick:s,className:p}),i.createElement(Bo,{icon:r,primaryColor:y,secondaryColor:$,style:g}))});Pt.displayName="AntdIcon";Pt.getTwoToneColor=DS;Pt.setTwoToneColor=Gg;var AS=function(t,n){return i.createElement(Pt,me({},t,{ref:n,icon:RS}))},qg=i.forwardRef(AS),FS={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"},HS=function(t,n){return i.createElement(Pt,me({},t,{ref:n,icon:FS}))},tl=i.forwardRef(HS),kS={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"},VS=function(t,n){return i.createElement(Pt,me({},t,{ref:n,icon:kS}))},nl=i.forwardRef(VS),KS={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"},WS=function(t,n){return i.createElement(Pt,me({},t,{ref:n,icon:KS}))},Ug=i.forwardRef(WS),GS={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"},qS=function(t,n){return i.createElement(Pt,me({},t,{ref:n,icon:GS}))},US=i.forwardRef(qS),XS=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
114
|
+
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
115
|
+
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
116
|
+
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
117
|
+
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
|
118
|
+
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
|
119
|
+
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
|
120
|
+
mediaGroup method min minLength multiple muted name noValidate nonce open
|
|
121
|
+
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
|
122
|
+
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
|
123
|
+
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
|
124
|
+
summary tabIndex target title type useMap value width wmode wrap`,YS=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
|
125
|
+
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
|
126
|
+
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
|
127
|
+
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
128
|
+
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
|
129
|
+
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
|
130
|
+
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,QS="".concat(XS," ").concat(YS).split(/[\s\n]+/),ZS="aria-",JS="data-";function Zd(e,t){return e.indexOf(t)===0}function zn(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n;t===!1?n={aria:!0,data:!0,attr:!0}:t===!0?n={aria:!0}:n=D({},t);var r={};return Object.keys(e).forEach(function(o){(n.aria&&(o==="role"||Zd(o,ZS))||n.data&&Zd(o,JS)||n.attr&&QS.includes(o))&&(r[o]=e[o])}),r}function Xg(e){return e&&te.isValidElement(e)&&e.type===te.Fragment}const Yg=(e,t,n)=>te.isValidElement(e)?te.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t;function kn(e,t){return Yg(e,e,t)}const Jd=e=>typeof e=="object"&&e!=null&&e.nodeType===1,ef=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",oi=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return ef(n.overflowY,t)||ef(n.overflowX,t)||(r=>{const o=(a=>{if(!a.ownerDocument||!a.ownerDocument.defaultView)return null;try{return a.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!o&&(o.clientHeight<r.scrollHeight||o.clientWidth<r.scrollWidth)})(e)}return!1},ai=(e,t,n,r,o,a,l,s)=>a<e&&l>t||a>e&&l<t?0:a<=e&&s<=n||l>=t&&s>=n?a-e-r:l>t&&s<n||a<e&&s>n?l-t+o:0,ex=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},tf=(e,t)=>{var n,r,o,a;if(typeof document>"u")return[];const{scrollMode:l,block:s,inline:c,boundary:u,skipOverflowHiddenElements:d}=t,f=typeof u=="function"?u:T=>T!==u;if(!Jd(e))throw new TypeError("Invalid target");const m=document.scrollingElement||document.documentElement,v=[];let p=e;for(;Jd(p)&&f(p);){if(p=ex(p),p===m){v.push(p);break}p!=null&&p===document.body&&oi(p)&&!oi(document.documentElement)||p!=null&&oi(p,d)&&v.push(p)}const h=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,g=(a=(o=window.visualViewport)==null?void 0:o.height)!=null?a:innerHeight,{scrollX:b,scrollY:C}=window,{height:y,width:$,top:S,right:E,bottom:O,left:w}=e.getBoundingClientRect(),{top:x,right:I,bottom:P,left:N}=(T=>{const z=window.getComputedStyle(T);return{top:parseFloat(z.scrollMarginTop)||0,right:parseFloat(z.scrollMarginRight)||0,bottom:parseFloat(z.scrollMarginBottom)||0,left:parseFloat(z.scrollMarginLeft)||0}})(e);let M=s==="start"||s==="nearest"?S-x:s==="end"?O+P:S+y/2-x+P,R=c==="center"?w+$/2-N+I:c==="end"?E+I:w-N;const _=[];for(let T=0;T<v.length;T++){const z=v[T],{height:B,width:L,top:F,right:K,bottom:W,left:A}=z.getBoundingClientRect();if(l==="if-needed"&&S>=0&&w>=0&&O<=g&&E<=h&&(z===m&&!oi(z)||S>=F&&O<=W&&w>=A&&E<=K))return _;const V=getComputedStyle(z),G=parseInt(V.borderLeftWidth,10),U=parseInt(V.borderTopWidth,10),ne=parseInt(V.borderRightWidth,10),J=parseInt(V.borderBottomWidth,10);let Q=0,le=0;const re="offsetWidth"in z?z.offsetWidth-z.clientWidth-G-ne:0,X="offsetHeight"in z?z.offsetHeight-z.clientHeight-U-J:0,oe="offsetWidth"in z?z.offsetWidth===0?0:L/z.offsetWidth:0,Z="offsetHeight"in z?z.offsetHeight===0?0:B/z.offsetHeight:0;if(m===z)Q=s==="start"?M:s==="end"?M-g:s==="nearest"?ai(C,C+g,g,U,J,C+M,C+M+y,y):M-g/2,le=c==="start"?R:c==="center"?R-h/2:c==="end"?R-h:ai(b,b+h,h,G,ne,b+R,b+R+$,$),Q=Math.max(0,Q+C),le=Math.max(0,le+b);else{Q=s==="start"?M-F-U:s==="end"?M-W+J+X:s==="nearest"?ai(F,W,B,U,J+X,M,M+y,y):M-(F+B/2)+X/2,le=c==="start"?R-A-G:c==="center"?R-(A+L/2)+re/2:c==="end"?R-K+ne+re:ai(A,K,L,G,ne+re,R,R+$,$);const{scrollLeft:q,scrollTop:Y}=z;Q=Z===0?0:Math.max(0,Math.min(Y+Q/Z,z.scrollHeight-B/Z+X)),le=oe===0?0:Math.max(0,Math.min(q+le/oe,z.scrollWidth-L/oe+re)),M+=Y-Q,R+=q-le}_.push({el:z,top:Q,left:le})}return _},tx=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function nx(e,t){if(!e.isConnected||!(o=>{let a=o;for(;a&&a.parentNode;){if(a.parentNode===document)return!0;a=a.parentNode instanceof ShadowRoot?a.parentNode.host:a.parentNode}return!1})(e))return;const n=(o=>{const a=window.getComputedStyle(o);return{top:parseFloat(a.scrollMarginTop)||0,right:parseFloat(a.scrollMarginRight)||0,bottom:parseFloat(a.scrollMarginBottom)||0,left:parseFloat(a.scrollMarginLeft)||0}})(e);if((o=>typeof o=="object"&&typeof o.behavior=="function")(t))return t.behavior(tf(e,t));const r=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:o,top:a,left:l}of tf(e,tx(t))){const s=a-n.top+n.bottom,c=l-n.left+n.right;o.scroll({top:s,left:c,behavior:r})}}function mc(e){return e!=null&&e===e.window}const rx=e=>{var t,n;if(typeof window>"u")return 0;let r=0;return mc(e)?r=e.pageYOffset:e instanceof Document?r=e.documentElement.scrollTop:(e instanceof HTMLElement||e)&&(r=e.scrollTop),e&&!mc(e)&&typeof r!="number"&&(r=(n=((t=e.ownerDocument)!==null&&t!==void 0?t:e).documentElement)===null||n===void 0?void 0:n.scrollTop),r};function ox(e,t,n,r){const o=n-t;return e/=r/2,e<1?o/2*e*e*e+t:o/2*((e-=2)*e*e+2)+t}function ax(e,t={}){const{getContainer:n=()=>window,callback:r,duration:o=450}=t,a=n(),l=rx(a),s=Date.now(),c=()=>{const d=Date.now()-s,f=ox(d>o?o:d,l,e,o);mc(a)?a.scrollTo(window.pageXOffset,f):a instanceof Document||a.constructor.name==="HTMLDocument"?a.documentElement.scrollTop=f:a.scrollTop=f,d<o?Et(c):typeof r=="function"&&r()};Et(c)}const Pn=e=>{const[,,,,t]=Rn();return t?`${e}-css-var`:""};var Le={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,CAPS_LOCK:20,ESC:27,SPACE:32,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,N:78,P:80,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,SEMICOLON:186,EQUALS:187,WIN_KEY:224},Qg=i.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,o=e.className,a=e.duration,l=a===void 0?4.5:a,s=e.showProgress,c=e.pauseOnHover,u=c===void 0?!0:c,d=e.eventKey,f=e.content,m=e.closable,v=e.closeIcon,p=v===void 0?"x":v,h=e.props,g=e.onClick,b=e.onNoticeClose,C=e.times,y=e.hovering,$=i.useState(!1),S=ee($,2),E=S[0],O=S[1],w=i.useState(0),x=ee(w,2),I=x[0],P=x[1],N=i.useState(0),M=ee(N,2),R=M[0],_=M[1],T=y||E,z=l>0&&s,B=function(){b(d)},L=function(G){(G.key==="Enter"||G.code==="Enter"||G.keyCode===Le.ENTER)&&B()};i.useEffect(function(){if(!T&&l>0){var V=Date.now()-R,G=setTimeout(function(){B()},l*1e3-R);return function(){u&&clearTimeout(G),_(Date.now()-V)}}},[l,T,C]),i.useEffect(function(){if(!T&&z&&(u||R===0)){var V=performance.now(),G,U=function ne(){cancelAnimationFrame(G),G=requestAnimationFrame(function(J){var Q=J+R-V,le=Math.min(Q/(l*1e3),1);P(le*100),le<1&&ne()})};return U(),function(){u&&cancelAnimationFrame(G)}}},[l,R,T,z,C]);var F=i.useMemo(function(){return Ue(m)==="object"&&m!==null?m:m?{closeIcon:p}:{}},[m,p]),K=zn(F,!0),W=100-(!I||I<0?0:I>100?100:I),A="".concat(n,"-notice");return i.createElement("div",me({},h,{ref:t,className:k(A,o,j({},"".concat(A,"-closable"),m)),style:r,onMouseEnter:function(G){var U;O(!0),h==null||(U=h.onMouseEnter)===null||U===void 0||U.call(h,G)},onMouseLeave:function(G){var U;O(!1),h==null||(U=h.onMouseLeave)===null||U===void 0||U.call(h,G)},onClick:g}),i.createElement("div",{className:"".concat(A,"-content")},f),m&&i.createElement("a",me({tabIndex:0,className:"".concat(A,"-close"),onKeyDown:L,"aria-label":"Close"},K,{onClick:function(G){G.preventDefault(),G.stopPropagation(),B()}}),F.closeIcon),z&&i.createElement("progress",{className:"".concat(A,"-progress"),max:"100",value:W},W+"%"))}),Zg=te.createContext({}),ix=function(t){var n=t.children,r=t.classNames;return te.createElement(Zg.Provider,{value:{classNames:r}},n)},nf=8,rf=3,of=16,lx=function(t){var n={offset:nf,threshold:rf,gap:of};if(t&&Ue(t)==="object"){var r,o,a;n.offset=(r=t.offset)!==null&&r!==void 0?r:nf,n.threshold=(o=t.threshold)!==null&&o!==void 0?o:rf,n.gap=(a=t.gap)!==null&&a!==void 0?a:of}return[!!t,n]},sx=["className","style","classNames","styles"],cx=function(t){var n=t.configList,r=t.placement,o=t.prefixCls,a=t.className,l=t.style,s=t.motion,c=t.onAllNoticeRemoved,u=t.onNoticeClose,d=t.stack,f=i.useContext(Zg),m=f.classNames,v=i.useRef({}),p=i.useState(null),h=ee(p,2),g=h[0],b=h[1],C=i.useState([]),y=ee(C,2),$=y[0],S=y[1],E=n.map(function(T){return{config:T,key:String(T.key)}}),O=lx(d),w=ee(O,2),x=w[0],I=w[1],P=I.offset,N=I.threshold,M=I.gap,R=x&&($.length>0||E.length<=N),_=typeof s=="function"?s(r):s;return i.useEffect(function(){x&&$.length>1&&S(function(T){return T.filter(function(z){return E.some(function(B){var L=B.key;return z===L})})})},[$,E,x]),i.useEffect(function(){var T;if(x&&v.current[(T=E[E.length-1])===null||T===void 0?void 0:T.key]){var z;b(v.current[(z=E[E.length-1])===null||z===void 0?void 0:z.key])}},[E,x]),te.createElement(Ag,me({key:r,className:k(o,"".concat(o,"-").concat(r),m==null?void 0:m.list,a,j(j({},"".concat(o,"-stack"),!!x),"".concat(o,"-stack-expanded"),R)),style:l,keys:E,motionAppear:!0},_,{onAllRemoved:function(){c(r)}}),function(T,z){var B=T.config,L=T.className,F=T.style,K=T.index,W=B,A=W.key,V=W.times,G=String(A),U=B,ne=U.className,J=U.style,Q=U.classNames,le=U.styles,re=at(U,sx),X=E.findIndex(function(ce){return ce.key===G}),oe={};if(x){var Z=E.length-1-(X>-1?X:K-1),q=r==="top"||r==="bottom"?"-50%":"0";if(Z>0){var Y,ie,ue;oe.height=R?(Y=v.current[G])===null||Y===void 0?void 0:Y.offsetHeight:g==null?void 0:g.offsetHeight;for(var he=0,be=0;be<Z;be++){var ae;he+=((ae=v.current[E[E.length-1-be].key])===null||ae===void 0?void 0:ae.offsetHeight)+M}var fe=(R?he:Z*P)*(r.startsWith("top")?1:-1),se=!R&&g!==null&&g!==void 0&&g.offsetWidth&&(ie=v.current[G])!==null&&ie!==void 0&&ie.offsetWidth?((g==null?void 0:g.offsetWidth)-P*2*(Z<3?Z:3))/((ue=v.current[G])===null||ue===void 0?void 0:ue.offsetWidth):1;oe.transform="translate3d(".concat(q,", ").concat(fe,"px, 0) scaleX(").concat(se,")")}else oe.transform="translate3d(".concat(q,", 0, 0)")}return te.createElement("div",{ref:z,className:k("".concat(o,"-notice-wrapper"),L,Q==null?void 0:Q.wrapper),style:D(D(D({},F),oe),le==null?void 0:le.wrapper),onMouseEnter:function(){return S(function(Se){return Se.includes(G)?Se:[].concat(ge(Se),[G])})},onMouseLeave:function(){return S(function(Se){return Se.filter(function(we){return we!==G})})}},te.createElement(Qg,me({},re,{ref:function(Se){X>-1?v.current[G]=Se:delete v.current[G]},prefixCls:o,classNames:Q,styles:le,className:k(ne,m==null?void 0:m.notice),style:J,times:V,key:A,eventKey:A,onNoticeClose:u,hovering:x&&$.length>0})))})},ux=i.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-notification":n,o=e.container,a=e.motion,l=e.maxCount,s=e.className,c=e.style,u=e.onAllRemoved,d=e.stack,f=e.renderNotifications,m=i.useState([]),v=ee(m,2),p=v[0],h=v[1],g=function(x){var I,P=p.find(function(N){return N.key===x});P==null||(I=P.onClose)===null||I===void 0||I.call(P),h(function(N){return N.filter(function(M){return M.key!==x})})};i.useImperativeHandle(t,function(){return{open:function(x){h(function(I){var P=ge(I),N=P.findIndex(function(_){return _.key===x.key}),M=D({},x);if(N>=0){var R;M.times=(((R=I[N])===null||R===void 0?void 0:R.times)||0)+1,P[N]=M}else M.times=0,P.push(M);return l>0&&P.length>l&&(P=P.slice(-l)),P})},close:function(x){g(x)},destroy:function(){h([])}}});var b=i.useState({}),C=ee(b,2),y=C[0],$=C[1];i.useEffect(function(){var w={};p.forEach(function(x){var I=x.placement,P=I===void 0?"topRight":I;P&&(w[P]=w[P]||[],w[P].push(x))}),Object.keys(y).forEach(function(x){w[x]=w[x]||[]}),$(w)},[p]);var S=function(x){$(function(I){var P=D({},I),N=P[x]||[];return N.length||delete P[x],P})},E=i.useRef(!1);if(i.useEffect(function(){Object.keys(y).length>0?E.current=!0:E.current&&(u==null||u(),E.current=!1)},[y]),!o)return null;var O=Object.keys(y);return br.createPortal(i.createElement(i.Fragment,null,O.map(function(w){var x=y[w],I=i.createElement(cx,{key:w,configList:x,placement:w,prefixCls:r,className:s==null?void 0:s(w),style:c==null?void 0:c(w),motion:a,onNoticeClose:g,onAllNoticeRemoved:S,stack:d});return f?f(I,{prefixCls:r,key:w}):I})),o)}),dx=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],fx=function(){return document.body},af=0;function mx(){for(var e={},t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(function(o){o&&Object.keys(o).forEach(function(a){var l=o[a];l!==void 0&&(e[a]=l)})}),e}function vx(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.getContainer,n=t===void 0?fx:t,r=e.motion,o=e.prefixCls,a=e.maxCount,l=e.className,s=e.style,c=e.onAllRemoved,u=e.stack,d=e.renderNotifications,f=at(e,dx),m=i.useState(),v=ee(m,2),p=v[0],h=v[1],g=i.useRef(),b=i.createElement(ux,{container:p,ref:g,prefixCls:o,motion:r,maxCount:a,className:l,style:s,onAllRemoved:c,stack:u,renderNotifications:d}),C=i.useState([]),y=ee(C,2),$=y[0],S=y[1],E=Lt(function(w){var x=mx(f,w);(x.key===null||x.key===void 0)&&(x.key="rc-notification-".concat(af),af+=1),S(function(I){return[].concat(ge(I),[{type:"open",config:x}])})}),O=i.useMemo(function(){return{open:E,close:function(x){S(function(I){return[].concat(ge(I),[{type:"close",key:x}])})},destroy:function(){S(function(x){return[].concat(ge(x),[{type:"destroy"}])})}}},[]);return i.useEffect(function(){h(n())}),i.useEffect(function(){if(g.current&&$.length){$.forEach(function(I){switch(I.type){case"open":g.current.open(I.config);break;case"close":g.current.close(I.key);break;case"destroy":g.current.destroy();break}});var w,x;S(function(I){return(w!==I||!x)&&(w=I,x=I.filter(function(P){return!$.includes(P)})),x})}},[$]),[O,b]}var gx={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"},px=function(t,n){return i.createElement(Pt,me({},t,{ref:n,icon:gx}))},Ba=i.forwardRef(px);function zi(...e){const t={};return e.forEach(n=>{n&&Object.keys(n).forEach(r=>{n[r]!==void 0&&(t[r]=n[r])})}),t}function lf(e){if(!e)return;const{closable:t,closeIcon:n}=e;return{closable:t,closeIcon:n}}function sf(e){const{closable:t,closeIcon:n}=e||{};return te.useMemo(()=>{if(!t&&(t===!1||n===!1||n===null))return!1;if(t===void 0&&n===void 0)return null;let r={closeIcon:typeof n!="boolean"&&n!==null?n:void 0};return t&&typeof t=="object"&&(r=Object.assign(Object.assign({},r),t)),r},[t,n])}const hx={},bx=(e,t,n=hx)=>{const r=sf(e),o=sf(t),[a]=jo("global",yr.global),l=typeof r!="boolean"?!!(r!=null&&r.disabled):!1,s=te.useMemo(()=>Object.assign({closeIcon:te.createElement(nl,null)},n),[n]),c=te.useMemo(()=>r===!1?!1:r?zi(s,o,r):o===!1?!1:o?zi(s,o):s.closable?s:!1,[r,o,s]);return te.useMemo(()=>{var u,d;if(c===!1)return[!1,null,l,{}];const{closeIconRender:f}=s,{closeIcon:m}=c;let v=m;const p=zn(c,!0);return v!=null&&(f&&(v=f(m)),v=te.isValidElement(v)?te.cloneElement(v,Object.assign(Object.assign(Object.assign({},v.props),{"aria-label":(d=(u=v.props)===null||u===void 0?void 0:u["aria-label"])!==null&&d!==void 0?d:a.close}),p)):te.createElement("span",Object.assign({"aria-label":a.close},p),v)),[!0,v,l,p]},[l,a.close,c,s])},Jg=()=>te.useReducer(e=>e+1,0),yx=e=>{const[t,n]=i.useState(null);return[i.useCallback((o,a,l)=>{const s=t??o,c=Math.min(s||0,o),u=Math.max(s||0,o),d=a.slice(c,u+1).map(e),f=d.some(v=>!l.has(v)),m=[];return d.forEach(v=>{f?(l.has(v)||m.push(v),l.add(v)):(l.delete(v),m.push(v))}),n(f?u:null),m},[t]),n]};function Cx(e,t){return e._antProxy=e._antProxy||{},Object.keys(t).forEach(n=>{if(!(n in e._antProxy)){const r=e[n];e._antProxy[n]=r,e[n]=t[n]}}),e}const Sx=(e,t)=>i.useImperativeHandle(e,()=>{const n=t(),{nativeElement:r}=n;return typeof Proxy<"u"?new Proxy(r,{get(o,a){return n[a]?n[a]:Reflect.get(o,a)}}):Cx(r,n)}),xx=e=>{const t=i.useRef(e),[,n]=Jg();return[()=>t.current,r=>{t.current=r,n()}]},uu=te.createContext(void 0),Ir=100,$x=10,wx=Ir*$x,ep={Modal:Ir,Drawer:Ir,Popover:Ir,Popconfirm:Ir,Tooltip:Ir,Tour:Ir,FloatButton:Ir},Ex={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function Ox(e){return e in ep}const rl=(e,t)=>{const[,n]=Rn(),r=te.useContext(uu),o=Ox(e);let a;if(t!==void 0)a=[t,t];else{let l=r??0;o?l+=(r?0:n.zIndexPopupBase)+ep[e]:l+=Ex[e],a=[r===void 0?t:l,l]}return a},Ix=e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:o,colorSuccess:a,colorError:l,colorWarning:s,colorInfo:c,fontSizeLG:u,motionEaseInOutCirc:d,motionDurationSlow:f,marginXS:m,paddingXS:v,borderRadiusLG:p,zIndexPopup:h,contentPadding:g,contentBg:b}=e,C=`${t}-notice`,y=new Tt("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:v,transform:"translateY(0)",opacity:1}}),$=new Tt("MessageMoveOut",{"0%":{maxHeight:e.height,padding:v,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),S={padding:v,textAlign:"center",[`${t}-custom-content`]:{display:"flex",alignItems:"center"},[`${t}-custom-content > ${n}`]:{marginInlineEnd:m,fontSize:u},[`${C}-content`]:{display:"inline-block",padding:g,background:b,borderRadius:p,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:a},[`${t}-error > ${n}`]:{color:l},[`${t}-warning > ${n}`]:{color:s},[`${t}-info > ${n},
|
|
131
|
+
${t}-loading > ${n}`]:{color:c}};return[{[t]:Object.assign(Object.assign({},kt(e)),{color:o,position:"fixed",top:m,width:"100%",pointerEvents:"none",zIndex:h,[`${t}-move-up`]:{animationFillMode:"forwards"},[`
|
|
132
|
+
${t}-move-up-appear,
|
|
133
|
+
${t}-move-up-enter
|
|
134
|
+
`]:{animationName:y,animationDuration:f,animationPlayState:"paused",animationTimingFunction:d},[`
|
|
135
|
+
${t}-move-up-appear${t}-move-up-appear-active,
|
|
136
|
+
${t}-move-up-enter${t}-move-up-enter-active
|
|
137
|
+
`]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:$,animationDuration:f,animationPlayState:"paused",animationTimingFunction:d},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${C}-wrapper`]:Object.assign({},S)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},S),{padding:0,textAlign:"start"})}]},Rx=e=>({zIndexPopup:e.zIndexPopupBase+wx+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),tp=At("Message",e=>{const t=wt(e,{height:150});return Ix(t)},Rx);var Px=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Nx={info:i.createElement(US,null),success:i.createElement(qg,null),error:i.createElement(tl,null),warning:i.createElement(Ug,null),loading:i.createElement(Ba,null)},np=({prefixCls:e,type:t,icon:n,children:r})=>i.createElement("div",{className:k(`${e}-custom-content`,`${e}-${t}`)},n||Nx[t],i.createElement("span",null,r)),Mx=e=>{const{prefixCls:t,className:n,type:r,icon:o,content:a}=e,l=Px(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:s}=i.useContext(it),c=t||s("message"),u=Pn(c),[d,f,m]=tp(c,u);return d(i.createElement(Qg,Object.assign({},l,{prefixCls:c,className:k(n,f,`${c}-notice-pure-panel`,m,u),eventKey:"pure",duration:null,content:i.createElement(np,{prefixCls:c,type:r,icon:o},a)})))};function Tx(e,t){return{motionName:t??`${e}-move-up`}}function du(e){let t;const n=new Promise(o=>{t=e(()=>{o(!0)})}),r=()=>{t==null||t()};return r.then=(o,a)=>n.then(o,a),r.promise=n,r}var _x=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const zx=8,jx=3,Bx=({children:e,prefixCls:t})=>{const n=Pn(t),[r,o,a]=tp(t,n);return r(i.createElement(ix,{classNames:{list:k(o,a,n)}},e))},Dx=(e,{prefixCls:t,key:n})=>i.createElement(Bx,{prefixCls:t,key:n},e),Lx=i.forwardRef((e,t)=>{const{top:n,prefixCls:r,getContainer:o,maxCount:a,duration:l=jx,rtl:s,transitionName:c,onAllRemoved:u}=e,{getPrefixCls:d,getPopupContainer:f,message:m,direction:v}=i.useContext(it),p=r||d("message"),h=()=>({left:"50%",transform:"translateX(-50%)",top:n??zx}),g=()=>k({[`${p}-rtl`]:s??v==="rtl"}),b=()=>Tx(p,c),C=i.createElement("span",{className:`${p}-close-x`},i.createElement(nl,{className:`${p}-close-icon`})),[y,$]=vx({prefixCls:p,style:h,className:g,motion:b,closable:!1,closeIcon:C,duration:l,getContainer:()=>(o==null?void 0:o())||(f==null?void 0:f())||document.body,maxCount:a,onAllRemoved:u,renderNotifications:Dx});return i.useImperativeHandle(t,()=>Object.assign(Object.assign({},y),{prefixCls:p,message:m})),$});let cf=0;function rp(e){const t=i.useRef(null);return Br(),[i.useMemo(()=>{const r=c=>{var u;(u=t.current)===null||u===void 0||u.close(c)},o=c=>{if(!t.current){const E=()=>{};return E.then=()=>{},E}const{open:u,prefixCls:d,message:f}=t.current,m=`${d}-notice`,{content:v,icon:p,type:h,key:g,className:b,style:C,onClose:y}=c,$=_x(c,["content","icon","type","key","className","style","onClose"]);let S=g;return S==null&&(cf+=1,S=`antd-message-${cf}`),du(E=>(u(Object.assign(Object.assign({},$),{key:S,content:i.createElement(np,{prefixCls:d,type:h,icon:p},v),placement:"top",className:k(h&&`${m}-${h}`,b,f==null?void 0:f.className),style:Object.assign(Object.assign({},f==null?void 0:f.style),C),onClose:()=>{y==null||y(),E()}})),()=>{r(S)}))},l={open:o,destroy:c=>{var u;c!==void 0?r(c):(u=t.current)===null||u===void 0||u.destroy()}};return["info","success","warning","error","loading"].forEach(c=>{const u=(d,f,m)=>{let v;d&&typeof d=="object"&&"content"in d?v=d:v={content:d};let p,h;typeof f=="function"?h=f:(p=f,h=m);const g=Object.assign(Object.assign({onClose:h,duration:p},v),{type:c});return o(g)};l[c]=u}),l},[]),i.createElement(Lx,Object.assign({key:"message-holder"},e,{ref:t}))]}function Ax(e){return rp(e)}function op(e,t){this.v=e,this.k=t}function $n(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch{o=0}$n=function(l,s,c,u){function d(f,m){$n(l,f,function(v){return this._invoke(f,m,v)})}s?o?o(l,s,{value:c,enumerable:!u,configurable:!u,writable:!u}):l[s]=c:(d("next",0),d("throw",1),d("return",2))},$n(e,t,n,r)}function fu(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,n=typeof Symbol=="function"?Symbol:{},r=n.iterator||"@@iterator",o=n.toStringTag||"@@toStringTag";function a(v,p,h,g){var b=p&&p.prototype instanceof s?p:s,C=Object.create(b.prototype);return $n(C,"_invoke",(function(y,$,S){var E,O,w,x=0,I=S||[],P=!1,N={p:0,n:0,v:e,a:M,f:M.bind(e,4),d:function(_,T){return E=_,O=0,w=e,N.n=T,l}};function M(R,_){for(O=R,w=_,t=0;!P&&x&&!T&&t<I.length;t++){var T,z=I[t],B=N.p,L=z[2];R>3?(T=L===_)&&(w=z[(O=z[4])?5:(O=3,3)],z[4]=z[5]=e):z[0]<=B&&((T=R<2&&B<z[1])?(O=0,N.v=_,N.n=z[1]):B<L&&(T=R<3||z[0]>_||_>L)&&(z[4]=R,z[5]=_,N.n=L,O=0))}if(T||R>1)return l;throw P=!0,_}return function(R,_,T){if(x>1)throw TypeError("Generator is already running");for(P&&_===1&&M(_,T),O=_,w=T;(t=O<2?e:w)||!P;){E||(O?O<3?(O>1&&(N.n=-1),M(O,w)):N.n=w:N.v=w);try{if(x=2,E){if(O||(R="next"),t=E[R]){if(!(t=t.call(E,w)))throw TypeError("iterator result is not an object");if(!t.done)return t;w=t.value,O<2&&(O=0)}else O===1&&(t=E.return)&&t.call(E),O<2&&(w=TypeError("The iterator does not provide a '"+R+"' method"),O=1);E=e}else if((t=(P=N.n<0)?w:y.call($,N))!==l)break}catch(z){E=e,O=1,w=z}finally{x=1}}return{value:t,done:P}}})(v,h,g),!0),C}var l={};function s(){}function c(){}function u(){}t=Object.getPrototypeOf;var d=[][r]?t(t([][r]())):($n(t={},r,function(){return this}),t),f=u.prototype=s.prototype=Object.create(d);function m(v){return Object.setPrototypeOf?Object.setPrototypeOf(v,u):(v.__proto__=u,$n(v,o,"GeneratorFunction")),v.prototype=Object.create(f),v}return c.prototype=u,$n(f,"constructor",u),$n(u,"constructor",c),c.displayName="GeneratorFunction",$n(u,o,"GeneratorFunction"),$n(f),$n(f,o,"Generator"),$n(f,r,function(){return this}),$n(f,"toString",function(){return"[object Generator]"}),(fu=function(){return{w:a,m}})()}function ji(e,t){function n(o,a,l,s){try{var c=e[o](a),u=c.value;return u instanceof op?t.resolve(u.v).then(function(d){n("next",d,l,s)},function(d){n("throw",d,l,s)}):t.resolve(u).then(function(d){c.value=d,l(c)},function(d){return n("throw",d,l,s)})}catch(d){s(d)}}var r;this.next||($n(ji.prototype),$n(ji.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),$n(this,"_invoke",function(o,a,l){function s(){return new t(function(c,u){n(o,l,c,u)})}return r=r?r.then(s,s):s()},!0)}function ap(e,t,n,r,o){return new ji(fu().w(e,t,n,r),o||Promise)}function Fx(e,t,n,r,o){var a=ap(e,t,n,r,o);return a.next().then(function(l){return l.done?l.value:a.next()})}function Hx(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function o(){for(;n.length;)if((r=n.pop())in t)return o.value=r,o.done=!1,o;return o.done=!0,o}}function uf(e){if(e!=null){var t=e[typeof Symbol=="function"&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if(typeof e.next=="function")return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw new TypeError(Ue(e)+" is not iterable")}function On(){var e=fu(),t=e.m(On),n=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function r(l){var s=typeof l=="function"&&l.constructor;return!!s&&(s===n||(s.displayName||s.name)==="GeneratorFunction")}var o={throw:1,return:2,break:3,continue:3};function a(l){var s,c;return function(u){s||(s={stop:function(){return c(u.a,2)},catch:function(){return u.v},abrupt:function(f,m){return c(u.a,o[f],m)},delegateYield:function(f,m,v){return s.resultName=m,c(u.d,uf(f),v)},finish:function(f){return c(u.f,f)}},c=function(f,m,v){u.p=s.prev,u.n=s.next;try{return f(m,v)}finally{s.next=u.n}}),s.resultName&&(s[s.resultName]=u.v,s.resultName=void 0),s.sent=u.v,s.next=u.n;try{return l.call(this,s)}finally{u.p=s.prev,u.n=s.next}}}return(On=function(){return{wrap:function(c,u,d,f){return e.w(a(c),u,d,f&&f.reverse())},isGeneratorFunction:r,mark:e.m,awrap:function(c,u){return new op(c,u)},AsyncIterator:ji,async:function(c,u,d,f,m){return(r(u)?ap:Fx)(a(c),u,d,f,m)},keys:Hx,values:uf}})()}function df(e,t,n,r,o,a,l){try{var s=e[a](l),c=s.value}catch(u){return void n(u)}s.done?t(c):Promise.resolve(c).then(r,o)}function ro(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var a=e.apply(t,n);function l(c){df(a,r,o,l,s,"next",c)}function s(c){df(a,r,o,l,s,"throw",c)}l(void 0)})}}var Da=D({},n0),kx=Da.version,es=Da.render,Vx=Da.unmountComponentAtNode,ol;try{var Kx=Number((kx||"").split(".")[0]);Kx>=18&&(ol=Da.createRoot)}catch{}function ff(e){var t=Da.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&Ue(t)==="object"&&(t.usingClientEntryPoint=e)}var Bi="__rc_react_root__";function Wx(e,t){ff(!0);var n=t[Bi]||ol(t);ff(!1),n.render(e),t[Bi]=n}function Gx(e,t){es==null||es(e,t)}function qx(e,t){if(ol){Wx(e,t);return}Gx(e,t)}function Ux(e){return vc.apply(this,arguments)}function vc(){return vc=ro(On().mark(function e(t){return On().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var o;(o=t[Bi])===null||o===void 0||o.unmount(),delete t[Bi]}));case 1:case"end":return r.stop()}},e)})),vc.apply(this,arguments)}function Xx(e){Vx(e)}function Yx(e){return gc.apply(this,arguments)}function gc(){return gc=ro(On().mark(function e(t){return On().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(ol===void 0){r.next=2;break}return r.abrupt("return",Ux(t));case 2:Xx(t);case 3:case"end":return r.stop()}},e)})),gc.apply(this,arguments)}const Qx=(e,t)=>(qx(e,t),()=>Yx(t));let Zx=Qx;function ip(e){return Zx}const ts=()=>({height:0,opacity:0}),mf=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},Jx=e=>({height:e?e.offsetHeight:0}),ns=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",Di=(e=Ca)=>({motionName:`${e}-motion-collapse`,onAppearStart:ts,onEnterStart:ts,onAppearActive:mf,onEnterActive:mf,onLeaveStart:Jx,onLeaveActive:ts,onAppearEnd:ns,onEnterEnd:ns,onLeaveEnd:ns,motionDeadline:500}),mu=(e,t,n)=>n!==void 0?n:`${e}-${t}`;function Xt(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r]}),n}const La=(function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),a=o.width,l=o.height;if(a||l)return!0}}return!1}),e$=e=>{const{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`,`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")}}}}},t$=GC("Wave",e$),al=`${Ca}-wave-target`;function n$(e){return e&&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 r$(e){var t;const{borderTopColor:n,borderColor:r,backgroundColor:o}=getComputedStyle(e);return(t=[n,r,o].find(n$))!==null&&t!==void 0?t:null}function rs(e){return Number.isNaN(e)?0:e}const o$=e=>{const{className:t,target:n,component:r,registerUnmount:o}=e,a=i.useRef(null),l=i.useRef(null);i.useEffect(()=>{l.current=o()},[]);const[s,c]=i.useState(null),[u,d]=i.useState([]),[f,m]=i.useState(0),[v,p]=i.useState(0),[h,g]=i.useState(0),[b,C]=i.useState(0),[y,$]=i.useState(!1),S={left:f,top:v,width:h,height:b,borderRadius:u.map(w=>`${w}px`).join(" ")};s&&(S["--wave-color"]=s);function E(){const w=getComputedStyle(n);c(r$(n));const x=w.position==="static",{borderLeftWidth:I,borderTopWidth:P}=w;m(x?n.offsetLeft:rs(-Number.parseFloat(I))),p(x?n.offsetTop:rs(-Number.parseFloat(P))),g(n.offsetWidth),C(n.offsetHeight);const{borderTopLeftRadius:N,borderTopRightRadius:M,borderBottomLeftRadius:R,borderBottomRightRadius:_}=w;d([N,M,_,R].map(T=>rs(Number.parseFloat(T))))}if(i.useEffect(()=>{if(n){const w=Et(()=>{E(),$(!0)});let x;return typeof ResizeObserver<"u"&&(x=new ResizeObserver(E),x.observe(n)),()=>{Et.cancel(w),x==null||x.disconnect()}}},[n]),!y)return null;const O=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(al));return i.createElement(ir,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(w,x)=>{var I,P;if(x.deadline||x.propertyName==="opacity"){const N=(I=a.current)===null||I===void 0?void 0:I.parentElement;(P=l.current)===null||P===void 0||P.call(l).then(()=>{N==null||N.remove()})}return!1}},({className:w},x)=>i.createElement("div",{ref:Vn(a,x),className:k(t,w,{"wave-quick":O}),style:S}))},a$=(e,t)=>{var n;const{component:r}=t;if(r==="Checkbox"&&!(!((n=e.querySelector("input"))===null||n===void 0)&&n.checked))return;const o=document.createElement("div");o.style.position="absolute",o.style.left="0px",o.style.top="0px",e==null||e.insertBefore(o,e==null?void 0:e.firstChild);const a=ip();let l=null;function s(){return l}l=a(i.createElement(o$,Object.assign({},t,{target:e,registerUnmount:s})),o)},i$=(e,t,n)=>{const{wave:r}=i.useContext(it),[,o,a]=Rn(),l=Lt(u=>{const d=e.current;if(r!=null&&r.disabled||!d)return;const f=d.querySelector(`.${al}`)||d,{showEffect:m}=r||{};(m||a$)(f,{className:t,token:o,component:n,event:u,hashId:a})}),s=i.useRef(null);return u=>{Et.cancel(s.current),s.current=Et(()=>{l(u)})}},il=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:o}=i.useContext(it),a=i.useRef(null),l=o("wave"),[,s]=t$(l),c=i$(a,k(l,s),r);if(te.useEffect(()=>{const d=a.current;if(!d||d.nodeType!==window.Node.ELEMENT_NODE||n)return;const f=m=>{!La(m.target)||!d.getAttribute||d.getAttribute("disabled")||d.disabled||d.className.includes("disabled")&&!d.className.includes("disabled:")||d.getAttribute("aria-disabled")==="true"||d.className.includes("-leave")||c(m)};return d.addEventListener("click",f,!0),()=>{d.removeEventListener("click",f,!0)}},[n]),!te.isValidElement(t))return t??null;const u=or(t)?Vn(jr(t),a):a;return kn(t,{ref:u})},Dn=e=>{const t=te.useContext(Yr);return te.useMemo(()=>e?typeof e=="string"?e??t:typeof e=="function"?e(t):t:t,[e,t])},l$=e=>{const{componentCls:t}=e;return{[t]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"}}}},s$=At(["Space","Compact"],e=>[l$(e)],()=>({}),{resetStyle:!1});var lp=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const ll=i.createContext(null),oo=(e,t)=>{const n=i.useContext(ll),r=i.useMemo(()=>{if(!n)return"";const{compactDirection:o,isFirstItem:a,isLastItem:l}=n,s=o==="vertical"?"-vertical-":"-";return k(`${e}-compact${s}item`,{[`${e}-compact${s}first-item`]:a,[`${e}-compact${s}last-item`]:l,[`${e}-compact${s}item-rtl`]:t==="rtl"})},[e,t,n]);return{compactSize:n==null?void 0:n.compactSize,compactDirection:n==null?void 0:n.compactDirection,compactItemClassnames:r}},c$=e=>{const{children:t}=e;return i.createElement(ll.Provider,{value:null},t)},u$=e=>{const{children:t}=e,n=lp(e,["children"]);return i.createElement(ll.Provider,{value:i.useMemo(()=>n,[n])},t)},d$=e=>{const{getPrefixCls:t,direction:n}=i.useContext(it),{size:r,direction:o,block:a,prefixCls:l,className:s,rootClassName:c,children:u}=e,d=lp(e,["size","direction","block","prefixCls","className","rootClassName","children"]),f=Dn(y=>r??y),m=t("space-compact",l),[v,p]=s$(m),h=k(m,p,{[`${m}-rtl`]:n==="rtl",[`${m}-block`]:a,[`${m}-vertical`]:o==="vertical"},s,c),g=i.useContext(ll),b=_n(u),C=i.useMemo(()=>b.map((y,$)=>{const S=(y==null?void 0:y.key)||`${m}-item-${$}`;return i.createElement(u$,{key:S,compactSize:f,compactDirection:o,isFirstItem:$===0&&(!g||(g==null?void 0:g.isFirstItem)),isLastItem:$===b.length-1&&(!g||(g==null?void 0:g.isLastItem))},y)}),[b,g,o,f,m]);return b.length===0?null:v(i.createElement("div",Object.assign({className:h},d),C))};var f$=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const sp=i.createContext(void 0),m$=e=>{const{getPrefixCls:t,direction:n}=i.useContext(it),{prefixCls:r,size:o,className:a}=e,l=f$(e,["prefixCls","size","className"]),s=t("btn-group",r),[,,c]=Rn(),u=i.useMemo(()=>{switch(o){case"large":return"lg";case"small":return"sm";default:return""}},[o]),d=k(s,{[`${s}-${u}`]:u,[`${s}-rtl`]:n==="rtl"},a,c);return i.createElement(sp.Provider,{value:o},i.createElement("div",Object.assign({},l,{className:d})))},vf=/^[\u4E00-\u9FA5]{2}$/,pc=vf.test.bind(vf);function _4(e){return e==="danger"?{danger:!0}:{type:e}}function gf(e){return typeof e=="string"}function os(e){return e==="text"||e==="link"}function v$(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&gf(e.type)&&pc(e.props.children)?kn(e,{children:e.props.children.split("").join(n)}):gf(e)?pc(e)?te.createElement("span",null,e.split("").join(n)):te.createElement("span",null,e):Xg(e)?te.createElement("span",null,e):e}function g$(e,t){let n=!1;const r=[];return te.Children.forEach(e,o=>{const a=typeof o,l=a==="string"||a==="number";if(n&&l){const s=r.length-1,c=r[s];r[s]=`${c}${o}`}else r.push(o);n=l}),te.Children.map(r,o=>v$(o,t))}["default","primary","danger"].concat(ge(Qr));const cp=i.forwardRef((e,t)=>{const{className:n,style:r,children:o,prefixCls:a}=e,l=k(`${a}-icon`,n);return te.createElement("span",{ref:t,className:l,style:r},o)}),pf=i.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:o,iconClassName:a}=e,l=k(`${n}-loading-icon`,r);return te.createElement(cp,{prefixCls:n,className:l,style:o,ref:t},te.createElement(Ba,{className:a}))}),as=()=>({width:0,opacity:0,transform:"scale(0)"}),is=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),p$=e=>{const{prefixCls:t,loading:n,existIcon:r,className:o,style:a,mount:l}=e,s=!!n;return r?te.createElement(pf,{prefixCls:t,className:o,style:a}):te.createElement(ir,{visible:s,motionName:`${t}-loading-icon-motion`,motionAppear:!l,motionEnter:!l,motionLeave:!l,removeOnLeave:!0,onAppearStart:as,onAppearActive:is,onEnterStart:as,onEnterActive:is,onLeaveStart:is,onLeaveActive:as},({className:c,style:u},d)=>{const f=Object.assign(Object.assign({},a),u);return te.createElement(pf,{prefixCls:t,className:k(o,c),style:f,ref:d})})},hf=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),h$=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:o,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}},hf(`${t}-primary`,o),hf(`${t}-danger`,a)]}};var b$=["b"],y$=["v"],ls=function(t){return Math.round(Number(t||0))},C$=function(t){if(t instanceof zt)return t;if(t&&Ue(t)==="object"&&"h"in t&&"b"in t){var n=t,r=n.b,o=at(n,b$);return D(D({},o),{},{v:r})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},Sa=(function(e){mr(n,e);var t=vr(n);function n(r){return tn(this,n),t.call(this,C$(r))}return nn(n,[{key:"toHsbString",value:function(){var o=this.toHsb(),a=ls(o.s*100),l=ls(o.b*100),s=ls(o.h),c=o.a,u="hsb(".concat(s,", ").concat(a,"%, ").concat(l,"%)"),d="hsba(".concat(s,", ").concat(a,"%, ").concat(l,"%, ").concat(c.toFixed(c===0?0:2),")");return c===1?u:d}},{key:"toHsb",value:function(){var o=this.toHsv(),a=o.v,l=at(o,y$);return D(D({},l),{},{b:a,a:this.a})}}]),n})(zt),S$=function(t){return t instanceof Sa?t:new Sa(t)};S$("#1677ff");const x$=(e,t)=>(e==null?void 0:e.replace(/[^\w/]/g,"").slice(0,t?8:6))||"",$$=(e,t)=>e?x$(e,t):"";let hc=(function(){function e(t){tn(this,e);var n;if(this.cleared=!1,t instanceof e){this.metaColor=t.metaColor.clone(),this.colors=(n=t.colors)===null||n===void 0?void 0:n.map(o=>({color:new e(o.color),percent:o.percent})),this.cleared=t.cleared;return}const r=Array.isArray(t);r&&t.length?(this.colors=t.map(({color:o,percent:a})=>({color:new e(o),percent:a})),this.metaColor=new Sa(this.colors[0].color.metaColor)):this.metaColor=new Sa(r?"":t),(!t||r&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return nn(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return $$(this.toHexString(),this.metaColor.a<1)}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){const{colors:n}=this;return n?`linear-gradient(90deg, ${n.map(o=>`${o.color.toRgbString()} ${o.percent}%`).join(", ")})`:this.metaColor.toRgbString()}},{key:"equals",value:function(n){return!n||this.isGradient()!==n.isGradient()?!1:this.isGradient()?this.colors.length===n.colors.length&&this.colors.every((r,o)=>{const a=n.colors[o];return r.percent===a.percent&&r.color.equals(a.color)}):this.toHexString()===n.toHexString()}}])})();var w$={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"},E$=function(t,n){return i.createElement(Pt,me({},t,{ref:n,icon:w$}))},xa=i.forwardRef(E$);const vu=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
|
|
138
|
+
opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
|
|
139
|
+
opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),O$=e=>({animationDuration:e,animationFillMode:"both"}),I$=e=>({animationDuration:e,animationFillMode:"both"}),sl=(e,t,n,r,o=!1)=>{const a=o?"&":"";return{[`
|
|
140
|
+
${a}${e}-enter,
|
|
141
|
+
${a}${e}-appear
|
|
142
|
+
`]:Object.assign(Object.assign({},O$(r)),{animationPlayState:"paused"}),[`${a}${e}-leave`]:Object.assign(Object.assign({},I$(r)),{animationPlayState:"paused"}),[`
|
|
143
|
+
${a}${e}-enter${e}-enter-active,
|
|
144
|
+
${a}${e}-appear${e}-appear-active
|
|
145
|
+
`]:{animationName:t,animationPlayState:"running"},[`${a}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},R$=new Tt("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),P$=new Tt("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),N$=(e,t=!1)=>{const{antCls:n}=e,r=`${n}-fade`,o=t?"&":"";return[sl(r,R$,P$,e.motionDurationMid,t),{[`
|
|
146
|
+
${o}${r}-enter,
|
|
147
|
+
${o}${r}-appear
|
|
148
|
+
`]:{opacity:0,animationTimingFunction:"linear"},[`${o}${r}-leave`]:{animationTimingFunction:"linear"}}]},M$=new Tt("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),T$=new Tt("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),_$=new Tt("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),z$=new Tt("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),j$=new Tt("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),B$=new Tt("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),D$=new Tt("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),L$=new Tt("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),A$={"move-up":{inKeyframes:D$,outKeyframes:L$},"move-down":{inKeyframes:M$,outKeyframes:T$},"move-left":{inKeyframes:_$,outKeyframes:z$},"move-right":{inKeyframes:j$,outKeyframes:B$}},Li=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=A$[t];return[sl(r,o,a,e.motionDurationMid),{[`
|
|
149
|
+
${r}-enter,
|
|
150
|
+
${r}-appear
|
|
151
|
+
`]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},gu=new Tt("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),pu=new Tt("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),hu=new Tt("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),bu=new Tt("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),F$=new Tt("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),H$=new Tt("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),k$=new Tt("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),V$=new Tt("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),K$={"slide-up":{inKeyframes:gu,outKeyframes:pu},"slide-down":{inKeyframes:hu,outKeyframes:bu},"slide-left":{inKeyframes:F$,outKeyframes:H$},"slide-right":{inKeyframes:k$,outKeyframes:V$}},_r=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=K$[t];return[sl(r,o,a,e.motionDurationMid),{[`
|
|
152
|
+
${r}-enter,
|
|
153
|
+
${r}-appear
|
|
154
|
+
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},yu=new Tt("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),W$=new Tt("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),bf=new Tt("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),yf=new Tt("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),G$=new Tt("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),q$=new Tt("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),U$=new Tt("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),X$=new Tt("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),Y$=new Tt("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),Q$=new Tt("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),Z$=new Tt("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),J$=new Tt("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),e1={zoom:{inKeyframes:yu,outKeyframes:W$},"zoom-big":{inKeyframes:bf,outKeyframes:yf},"zoom-big-fast":{inKeyframes:bf,outKeyframes:yf},"zoom-left":{inKeyframes:U$,outKeyframes:X$},"zoom-right":{inKeyframes:Y$,outKeyframes:Q$},"zoom-up":{inKeyframes:G$,outKeyframes:q$},"zoom-down":{inKeyframes:Z$,outKeyframes:J$}},cl=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:a}=e1[t];return[sl(r,o,a,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[`
|
|
155
|
+
${r}-enter,
|
|
156
|
+
${r}-appear
|
|
157
|
+
`]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},t1=e=>e instanceof hc?e:new hc(e),n1=(e,t)=>{const{r:n,g:r,b:o,a}=e.toRgb(),l=new Sa(e.toRgbString()).onBackground(t).toHsv();return a<=.5?l.v>.5:n*.299+r*.587+o*.114>192},up=e=>{const{paddingInline:t,onlyIconSize:n}=e;return wt(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n})},dp=e=>{var t,n,r,o,a,l;const s=(t=e.contentFontSize)!==null&&t!==void 0?t:e.fontSize,c=(n=e.contentFontSizeSM)!==null&&n!==void 0?n:e.fontSize,u=(r=e.contentFontSizeLG)!==null&&r!==void 0?r:e.fontSizeLG,d=(o=e.contentLineHeight)!==null&&o!==void 0?o:xi(s),f=(a=e.contentLineHeightSM)!==null&&a!==void 0?a:xi(c),m=(l=e.contentLineHeightLG)!==null&&l!==void 0?l:xi(u),v=n1(new hc(e.colorBgSolid),"#fff")?"#000":"#fff",p=Qr.reduce((h,g)=>Object.assign(Object.assign({},h),{[`${g}ShadowColor`]:`0 ${H(e.controlOutlineWidth)} 0 ${ea(e[`${g}1`],e.colorBgContainer)}`}),{});return Object.assign(Object.assign({},p),{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.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:"inherit",onlyIconSizeSM:"inherit",onlyIconSizeLG:"inherit",groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,solidTextColor:v,contentFontSize:s,contentFontSizeSM:c,contentFontSizeLG:u,contentLineHeight:d,contentLineHeightSM:f,contentLineHeightLG:m,paddingBlock:Math.max((e.controlHeight-s*d)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-c*f)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-u*m)/2-e.lineWidth,0)})},r1=e=>{const{componentCls:t,iconCls:n,fontWeight:r,opacityLoading:o,motionDurationSlow:a,motionEaseInOut:l,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",background:"transparent",border:`${H(e.lineWidth)} ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},[`${t}-icon > svg`]:za(),"> a":{color:"currentColor"},"&:not(:disabled)":Sr(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:o,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map(u=>`${u} ${a} ${l}`).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()}}}}}},fp=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),o1=e=>({minWidth:e.controlHeight,paddingInline:0,borderRadius:"50%"}),a1=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),ul=(e,t,n,r,o,a,l,s)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},fp(e,Object.assign({background:t},l),Object.assign({background:t},s))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:a||void 0}})}),i1=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},a1(e))}),l1=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),dl=(e,t,n,r)=>{const a=r&&["link","text"].includes(r)?l1:i1;return Object.assign(Object.assign({},a(e)),fp(e.componentCls,t,n))},fl=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:n},dl(e,r,o))}),ml=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:n},dl(e,r,o))}),vl=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),gl=(e,t,n,r)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},dl(e,n,r))}),fr=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-${n}`]:Object.assign({color:t,boxShadow:"none"},dl(e,r,o,n))}),s1=e=>{const{componentCls:t}=e;return Qr.reduce((n,r)=>{const o=e[`${r}6`],a=e[`${r}1`],l=e[`${r}5`],s=e[`${r}2`],c=e[`${r}3`],u=e[`${r}7`];return Object.assign(Object.assign({},n),{[`&${t}-color-${r}`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:o,boxShadow:e[`${r}ShadowColor`]},fl(e,e.colorTextLightSolid,o,{background:l},{background:u})),ml(e,o,e.colorBgContainer,{color:l,borderColor:l,background:e.colorBgContainer},{color:u,borderColor:u,background:e.colorBgContainer})),vl(e)),gl(e,a,{color:o,background:s},{color:o,background:c})),fr(e,o,"link",{color:l},{color:u})),fr(e,o,"text",{color:l,background:a},{color:u,background:c}))})},{})},c1=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},fl(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive})),vl(e)),gl(e,e.colorFillTertiary,{color:e.defaultColor,background:e.colorFillSecondary},{color:e.defaultColor,background:e.colorFill})),ul(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),fr(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),u1=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},ml(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),vl(e)),gl(e,e.colorPrimaryBg,{color:e.colorPrimary,background:e.colorPrimaryBgHover},{color:e.colorPrimary,background:e.colorPrimaryBorder})),fr(e,e.colorPrimaryText,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),fr(e,e.colorPrimaryText,"link",{color:e.colorPrimaryTextHover,background:e.linkHoverBg},{color:e.colorPrimaryTextActive})),ul(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),d1=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},fl(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),ml(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),vl(e)),gl(e,e.colorErrorBg,{color:e.colorError,background:e.colorErrorBgFilledHover},{color:e.colorError,background:e.colorErrorBgActive})),fr(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),fr(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),ul(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),f1=e=>Object.assign(Object.assign({},fr(e,e.colorLink,"link",{color:e.colorLinkHover},{color:e.colorLinkActive})),ul(e.componentCls,e.ghostBg,e.colorInfo,e.colorInfo,e.colorTextDisabled,e.colorBorder,{color:e.colorInfoHover,borderColor:e.colorInfoHover},{color:e.colorInfoActive,borderColor:e.colorInfoActive})),m1=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-color-default`]:c1(e),[`${t}-color-primary`]:u1(e),[`${t}-color-dangerous`]:d1(e),[`${t}-color-link`]:f1(e)},s1(e))},v1=e=>Object.assign(Object.assign(Object.assign(Object.assign({},ml(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),fr(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),fl(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),fr(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),Cu=(e,t="")=>{const{componentCls:n,controlHeight:r,fontSize:o,borderRadius:a,buttonPaddingHorizontal:l,iconCls:s,buttonPaddingVertical:c,buttonIconOnlyFontSize:u}=e;return[{[t]:{fontSize:o,height:r,padding:`${H(c)} ${H(l)}`,borderRadius:a,[`&${n}-icon-only`]:{width:r,[s]:{fontSize:u}}}},{[`${n}${n}-circle${t}`]:o1(e)},{[`${n}${n}-round${t}`]:{borderRadius:e.controlHeight,[`&:not(${n}-icon-only)`]:{paddingInline:e.buttonPaddingHorizontal}}}]},g1=e=>{const t=wt(e,{fontSize:e.contentFontSize});return Cu(t,e.componentCls)},p1=e=>{const t=wt(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return Cu(t,`${e.componentCls}-sm`)},h1=e=>{const t=wt(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return Cu(t,`${e.componentCls}-lg`)},b1=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},y1=At("Button",e=>{const t=up(e);return[r1(t),g1(t),p1(t),h1(t),b1(t),m1(t),v1(t),h$(t)]},dp,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function C1(e,t,n,r){const{focusElCls:o,focus:a,borderElCls:l}=n,s=l?"> *":"",c=["hover",a?"focus":null,"active"].filter(Boolean).map(u=>`&:${u} ${s}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},[`&-item:not(${r}-status-success)`]:{zIndex:2},"&-item":Object.assign(Object.assign({[c]:{zIndex:3}},o?{[`&${o}`]:{zIndex:3}}:{}),{[`&[disabled] ${s}`]:{zIndex:0}})}}function S1(e,t,n){const{borderElCls:r}=n,o=r?`> ${r}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${o}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${o}, &${e}-sm ${o}, &${e}-lg ${o}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function pl(e,t={focus:!0}){const{componentCls:n}=e,{componentCls:r}=t,o=r||n,a=`${o}-compact`;return{[a]:Object.assign(Object.assign({},C1(e,a,t,o)),S1(o,a,t))}}function x1(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 $1(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 w1(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},x1(e,t,e.componentCls)),$1(e.componentCls,t))}}const E1=e=>{const{componentCls:t,colorPrimaryHover:n,lineWidth:r,calc:o}=e,a=o(r).mul(-1).equal(),l=s=>{const c=`${t}-compact${s?"-vertical":""}-item${t}-primary:not([disabled])`;return{[`${c} + ${c}::before`]:{position:"absolute",top:s?a:0,insetInlineStart:s?0:a,backgroundColor:n,content:'""',width:s?"100%":r,height:s?r:"100%"}}};return Object.assign(Object.assign({},l()),l(!0))},O1=ja(["Button","compact"],e=>{const t=up(e);return[pl(t),w1(t),E1(t)]},dp);var I1=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function R1(e){if(typeof e=="object"&&e){let t=e==null?void 0:e.delay;return t=!Number.isNaN(t)&&typeof t=="number"?t:0,{loading:t<=0,delay:t}}return{loading:!!e,delay:0}}const P1={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]},N1=te.forwardRef((e,t)=>{var n,r;const{loading:o=!1,prefixCls:a,color:l,variant:s,type:c,danger:u=!1,shape:d,size:f,styles:m,disabled:v,className:p,rootClassName:h,children:g,icon:b,iconPosition:C="start",ghost:y=!1,block:$=!1,htmlType:S="button",classNames:E,style:O={},autoInsertSpace:w,autoFocus:x}=e,I=I1(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace","autoFocus"]),P=c||"default",{button:N}=te.useContext(it),M=d||(N==null?void 0:N.shape)||"default",[R,_]=i.useMemo(()=>{if(l&&s)return[l,s];if(c||u){const Fe=P1[P]||[];return u?["danger",Fe[1]]:Fe}return N!=null&&N.color&&(N!=null&&N.variant)?[N.color,N.variant]:["default","outlined"]},[l,s,c,u,N==null?void 0:N.color,N==null?void 0:N.variant,P]),z=R==="danger"?"dangerous":R,{getPrefixCls:B,direction:L,autoInsertSpace:F,className:K,style:W,classNames:A,styles:V}=Kn("button"),G=(n=w??F)!==null&&n!==void 0?n:!0,U=B("btn",a),[ne,J,Q]=y1(U),le=i.useContext(Jn),re=v??le,X=i.useContext(sp),oe=i.useMemo(()=>R1(o),[o]),[Z,q]=i.useState(oe.loading),[Y,ie]=i.useState(!1),ue=i.useRef(null),he=$r(t,ue),be=i.Children.count(g)===1&&!b&&!os(_),ae=i.useRef(!0);te.useEffect(()=>(ae.current=!1,()=>{ae.current=!0}),[]),Rt(()=>{let Fe=null;oe.delay>0?Fe=setTimeout(()=>{Fe=null,q(!0)},oe.delay):q(oe.loading);function ft(){Fe&&(clearTimeout(Fe),Fe=null)}return ft},[oe.delay,oe.loading]),i.useEffect(()=>{if(!ue.current||!G)return;const Fe=ue.current.textContent||"";be&&pc(Fe)?Y||ie(!0):Y&&ie(!1)}),i.useEffect(()=>{x&&ue.current&&ue.current.focus()},[]);const fe=te.useCallback(Fe=>{var ft;if(Z||re){Fe.preventDefault();return}(ft=e.onClick)===null||ft===void 0||ft.call(e,("href"in e,Fe))},[e.onClick,Z,re]),{compactSize:se,compactItemClassnames:ce}=oo(U,L),Se={large:"lg",small:"sm",middle:void 0},we=Dn(Fe=>{var ft,mt;return(mt=(ft=f??se)!==null&&ft!==void 0?ft:X)!==null&&mt!==void 0?mt:Fe}),je=we&&(r=Se[we])!==null&&r!==void 0?r:"",Ne=Z?"loading":b,Oe=Xt(I,["navigate"]),Te=k(U,J,Q,{[`${U}-${M}`]:M!=="default"&&M,[`${U}-${P}`]:P,[`${U}-dangerous`]:u,[`${U}-color-${z}`]:z,[`${U}-variant-${_}`]:_,[`${U}-${je}`]:je,[`${U}-icon-only`]:!g&&g!==0&&!!Ne,[`${U}-background-ghost`]:y&&!os(_),[`${U}-loading`]:Z,[`${U}-two-chinese-chars`]:Y&&G&&!Z,[`${U}-block`]:$,[`${U}-rtl`]:L==="rtl",[`${U}-icon-end`]:C==="end"},ce,p,h,K),ve=Object.assign(Object.assign({},W),O),de=k(E==null?void 0:E.icon,A.icon),xe=Object.assign(Object.assign({},(m==null?void 0:m.icon)||{}),V.icon||{}),Ce=Fe=>te.createElement(cp,{prefixCls:U,className:de,style:xe},Fe),Ee=()=>te.createElement(p$,{existIcon:!!b,prefixCls:U,loading:Z,mount:ae.current});let Me;b&&!Z?Me=Ce(b):o&&typeof o=="object"&&o.icon?Me=Ce(o.icon):Me=Ee();const Qe=g||g===0?g$(g,be&&G):null;if(Oe.href!==void 0)return ne(te.createElement("a",Object.assign({},Oe,{className:k(Te,{[`${U}-disabled`]:re}),href:re?void 0:Oe.href,style:ve,onClick:fe,ref:he,tabIndex:re?-1:0,"aria-disabled":re}),Me,Qe));let Ve=te.createElement("button",Object.assign({},I,{type:S,className:Te,style:ve,onClick:fe,disabled:re,ref:he}),Me,Qe,ce&&te.createElement(O1,{prefixCls:U}));return os(_)||(Ve=te.createElement(il,{component:"Button",disabled:Z},Ve)),ne(Ve)}),Jr=N1;Jr.Group=m$;Jr.__ANT_BUTTON=!0;var mp=i.createContext(null),Cf=[];function M1(e,t){var n=i.useState(function(){if(!En())return null;var p=document.createElement("div");return p}),r=ee(n,1),o=r[0],a=i.useRef(!1),l=i.useContext(mp),s=i.useState(Cf),c=ee(s,2),u=c[0],d=c[1],f=l||(a.current?void 0:function(p){d(function(h){var g=[p].concat(ge(h));return g})});function m(){o.parentElement||document.body.appendChild(o),a.current=!0}function v(){var p;(p=o.parentElement)===null||p===void 0||p.removeChild(o),a.current=!1}return Rt(function(){return e?l?l(m):m():v(),v},[e]),Rt(function(){u.length&&(u.forEach(function(p){return p()}),d(Cf))},[u]),[o,f]}var ss;function vp(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=t;var r=n.style;r.position="absolute",r.left="0",r.top="0",r.width="100px",r.height="100px",r.overflow="scroll";var o,a;if(e){var l=getComputedStyle(e);r.scrollbarColor=l.scrollbarColor,r.scrollbarWidth=l.scrollbarWidth;var s=getComputedStyle(e,"::-webkit-scrollbar"),c=parseInt(s.width,10),u=parseInt(s.height,10);try{var d=c?"width: ".concat(s.width,";"):"",f=u?"height: ".concat(s.height,";"):"";hr(`
|
|
158
|
+
#`.concat(t,`::-webkit-scrollbar {
|
|
159
|
+
`).concat(d,`
|
|
160
|
+
`).concat(f,`
|
|
161
|
+
}`),t)}catch(p){console.error(p),o=c,a=u}}document.body.appendChild(n);var m=e&&o&&!isNaN(o)?o:n.offsetWidth-n.clientWidth,v=e&&a&&!isNaN(a)?a:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),pa(t),{width:m,height:v}}function Sf(e){return typeof document>"u"?0:(ss===void 0&&(ss=vp()),ss.width)}function bc(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:vp(e)}function T1(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var _1="rc-util-locker-".concat(Date.now()),xf=0;function z1(e){var t=!!e,n=i.useState(function(){return xf+=1,"".concat(_1,"_").concat(xf)}),r=ee(n,1),o=r[0];Rt(function(){if(t){var a=bc(document.body).width,l=T1();hr(`
|
|
162
|
+
html body {
|
|
163
|
+
overflow-y: hidden;
|
|
164
|
+
`.concat(l?"width: calc(100% - ".concat(a,"px);"):"",`
|
|
165
|
+
}`),o)}else pa(o);return function(){pa(o)}},[t,o])}var j1=!1;function B1(e){return j1}var $f=function(t){return t===!1?!1:!En()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},Su=i.forwardRef(function(e,t){var n=e.open,r=e.autoLock,o=e.getContainer;e.debug;var a=e.autoDestroy,l=a===void 0?!0:a,s=e.children,c=i.useState(n),u=ee(c,2),d=u[0],f=u[1],m=d||n;i.useEffect(function(){(l||n)&&f(n)},[n,l]);var v=i.useState(function(){return $f(o)}),p=ee(v,2),h=p[0],g=p[1];i.useEffect(function(){var P=$f(o);g(P??null)});var b=M1(m&&!h),C=ee(b,2),y=C[0],$=C[1],S=h??y;z1(r&&n&&En()&&(S===y||S===document.body));var E=null;if(s&&or(s)&&t){var O=s;E=O.ref}var w=$r(E,t);if(!m||!En()||h===void 0)return null;var x=S===!1||B1(),I=s;return t&&(I=i.cloneElement(s,{ref:w})),i.createElement(mp.Provider,{value:$},x?I:br.createPortal(I,S))}),gp=i.createContext({});function D1(){var e=D({},Xi);return e.useId}var wf=0,Ef=D1();const hl=Ef?(function(t){var n=Ef();return t||n}):(function(t){var n=i.useState("ssr-id"),r=ee(n,2),o=r[0],a=r[1];return i.useEffect(function(){var l=wf;wf+=1,a("rc_unique_".concat(l))},[]),t||o});function Of(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function If(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if(typeof n!="number"){var o=e.document;n=o.documentElement[r],typeof n!="number"&&(n=o.body[r])}return n}function L1(e){var t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,o=r.defaultView||r.parentWindow;return n.left+=If(o),n.top+=If(o,!0),n}const A1=i.memo(function(e){var t=e.children;return t},function(e,t){var n=t.shouldUpdate;return!n});var F1={width:0,height:0,overflow:"hidden",outline:"none"},H1={outline:"none"},k1=te.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,a=e.title,l=e.ariaId,s=e.footer,c=e.closable,u=e.closeIcon,d=e.onClose,f=e.children,m=e.bodyStyle,v=e.bodyProps,p=e.modalRender,h=e.onMouseDown,g=e.onMouseUp,b=e.holderRef,C=e.visible,y=e.forceRender,$=e.width,S=e.height,E=e.classNames,O=e.styles,w=te.useContext(gp),x=w.panel,I=$r(b,x),P=i.useRef(),N=i.useRef();te.useImperativeHandle(t,function(){return{focus:function(){var W;(W=P.current)===null||W===void 0||W.focus({preventScroll:!0})},changeActive:function(W){var A=document,V=A.activeElement;W&&V===N.current?P.current.focus({preventScroll:!0}):!W&&V===P.current&&N.current.focus({preventScroll:!0})}}});var M={};$!==void 0&&(M.width=$),S!==void 0&&(M.height=S);var R=s?te.createElement("div",{className:k("".concat(n,"-footer"),E==null?void 0:E.footer),style:D({},O==null?void 0:O.footer)},s):null,_=a?te.createElement("div",{className:k("".concat(n,"-header"),E==null?void 0:E.header),style:D({},O==null?void 0:O.header)},te.createElement("div",{className:"".concat(n,"-title"),id:l},a)):null,T=i.useMemo(function(){return Ue(c)==="object"&&c!==null?c:c?{closeIcon:u??te.createElement("span",{className:"".concat(n,"-close-x")})}:{}},[c,u,n]),z=zn(T,!0),B=Ue(c)==="object"&&c.disabled,L=c?te.createElement("button",me({type:"button",onClick:d,"aria-label":"Close"},z,{className:"".concat(n,"-close"),disabled:B}),T.closeIcon):null,F=te.createElement("div",{className:k("".concat(n,"-content"),E==null?void 0:E.content),style:O==null?void 0:O.content},L,_,te.createElement("div",me({className:k("".concat(n,"-body"),E==null?void 0:E.body),style:D(D({},m),O==null?void 0:O.body)},v),f),R);return te.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":a?l:null,"aria-modal":"true",ref:I,style:D(D({},o),M),className:k(n,r),onMouseDown:h,onMouseUp:g},te.createElement("div",{ref:P,tabIndex:0,style:H1},te.createElement(A1,{shouldUpdate:C||y},p?p(F):F)),te.createElement("div",{tabIndex:0,ref:N,style:F1}))}),pp=i.forwardRef(function(e,t){var n=e.prefixCls,r=e.title,o=e.style,a=e.className,l=e.visible,s=e.forceRender,c=e.destroyOnClose,u=e.motionName,d=e.ariaId,f=e.onVisibleChanged,m=e.mousePosition,v=i.useRef(),p=i.useState(),h=ee(p,2),g=h[0],b=h[1],C={};g&&(C.transformOrigin=g);function y(){var $=L1(v.current);b(m&&(m.x||m.y)?"".concat(m.x-$.left,"px ").concat(m.y-$.top,"px"):"")}return i.createElement(ir,{visible:l,onVisibleChanged:f,onAppearPrepare:y,onEnterPrepare:y,forceRender:s,motionName:u,removeOnLeave:c,ref:v},function($,S){var E=$.className,O=$.style;return i.createElement(k1,me({},e,{ref:t,title:r,ariaId:d,prefixCls:n,holderRef:S,style:D(D(D({},O),o),C),className:k(a,E)}))})});pp.displayName="Content";var V1=function(t){var n=t.prefixCls,r=t.style,o=t.visible,a=t.maskProps,l=t.motionName,s=t.className;return i.createElement(ir,{key:"mask",visible:o,motionName:l,leavedClassName:"".concat(n,"-mask-hidden")},function(c,u){var d=c.className,f=c.style;return i.createElement("div",me({ref:u,style:D(D({},f),r),className:k("".concat(n,"-mask"),d,s)},a))})},K1=function(t){var n=t.prefixCls,r=n===void 0?"rc-dialog":n,o=t.zIndex,a=t.visible,l=a===void 0?!1:a,s=t.keyboard,c=s===void 0?!0:s,u=t.focusTriggerAfterClose,d=u===void 0?!0:u,f=t.wrapStyle,m=t.wrapClassName,v=t.wrapProps,p=t.onClose,h=t.afterOpenChange,g=t.afterClose,b=t.transitionName,C=t.animation,y=t.closable,$=y===void 0?!0:y,S=t.mask,E=S===void 0?!0:S,O=t.maskTransitionName,w=t.maskAnimation,x=t.maskClosable,I=x===void 0?!0:x,P=t.maskStyle,N=t.maskProps,M=t.rootClassName,R=t.classNames,_=t.styles,T=i.useRef(),z=i.useRef(),B=i.useRef(),L=i.useState(l),F=ee(L,2),K=F[0],W=F[1],A=hl();function V(){Ls(z.current,document.activeElement)||(T.current=document.activeElement)}function G(){if(!Ls(z.current,document.activeElement)){var q;(q=B.current)===null||q===void 0||q.focus()}}function U(q){if(q)G();else{if(W(!1),E&&T.current&&d){try{T.current.focus({preventScroll:!0})}catch{}T.current=null}K&&(g==null||g())}h==null||h(q)}function ne(q){p==null||p(q)}var J=i.useRef(!1),Q=i.useRef(),le=function(){clearTimeout(Q.current),J.current=!0},re=function(){Q.current=setTimeout(function(){J.current=!1})},X=null;I&&(X=function(Y){J.current?J.current=!1:z.current===Y.target&&ne(Y)});function oe(q){if(c&&q.keyCode===Le.ESC){q.stopPropagation(),ne(q);return}l&&q.keyCode===Le.TAB&&B.current.changeActive(!q.shiftKey)}i.useEffect(function(){l&&(W(!0),V())},[l]),i.useEffect(function(){return function(){clearTimeout(Q.current)}},[]);var Z=D(D(D({zIndex:o},f),_==null?void 0:_.wrapper),{},{display:K?null:"none"});return i.createElement("div",me({className:k("".concat(r,"-root"),M)},zn(t,{data:!0})),i.createElement(V1,{prefixCls:r,visible:E&&l,motionName:Of(r,O,w),style:D(D({zIndex:o},P),_==null?void 0:_.mask),maskProps:N,className:R==null?void 0:R.mask}),i.createElement("div",me({tabIndex:-1,onKeyDown:oe,className:k("".concat(r,"-wrap"),m,R==null?void 0:R.wrapper),ref:z,onClick:X,style:Z},v),i.createElement(pp,me({},t,{onMouseDown:le,onMouseUp:re,ref:B,closable:$,ariaId:A,prefixCls:r,visible:l&&K,onClose:ne,onVisibleChanged:U,motionName:Of(r,b,C)}))))},W1=function(t){var n=t.visible,r=t.getContainer,o=t.forceRender,a=t.destroyOnClose,l=a===void 0?!1:a,s=t.afterClose,c=t.panelRef,u=i.useState(n),d=ee(u,2),f=d[0],m=d[1],v=i.useMemo(function(){return{panel:c}},[c]);return i.useEffect(function(){n&&m(!0)},[n]),!o&&l&&!f?null:i.createElement(gp.Provider,{value:v},i.createElement(Su,{open:n||o||f,autoDestroy:!1,getContainer:r,autoLock:n||f},i.createElement(K1,me({},t,{destroyOnClose:l,afterClose:function(){s==null||s(),m(!1)}}))))};W1.displayName="Dialog";var qr="RC_FORM_INTERNAL_HOOKS",Ht=function(){Ut(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},eo=i.createContext({getFieldValue:Ht,getFieldsValue:Ht,getFieldError:Ht,getFieldWarning:Ht,getFieldsError:Ht,isFieldsTouched:Ht,isFieldTouched:Ht,isFieldValidating:Ht,isFieldsValidating:Ht,resetFields:Ht,setFields:Ht,setFieldValue:Ht,setFieldsValue:Ht,validateFields:Ht,submit:Ht,getInternalHooks:function(){return Ht(),{dispatch:Ht,initEntityValue:Ht,registerField:Ht,useSubscribe:Ht,setInitialValues:Ht,destroyForm:Ht,setCallbacks:Ht,registerWatch:Ht,getFields:Ht,setValidateMessages:Ht,setPreserve:Ht,getInitialValue:Ht}}}),$a=i.createContext(null);function yc(e){return e==null?[]:Array.isArray(e)?e:[e]}function G1(e){return e&&!!e._init}function Cc(){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 t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var Sc=Cc();function q1(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function U1(e,t,n){if(eu())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&ma(o,n.prototype),o}function xc(e){var t=typeof Map=="function"?new Map:void 0;return xc=function(r){if(r===null||!q1(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,o)}function o(){return U1(r,arguments,va(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),ma(o,r)},xc(e)}var X1=/%[sdj%]/g,Y1=function(){};function $c(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function Hn(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,a=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var l=e.replace(X1,function(s){if(s==="%%")return"%";if(o>=a)return s;switch(s){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch{return"[Circular]"}break;default:return s}});return l}return e}function Q1(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"||e==="tel"}function un(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||Q1(t)&&typeof e=="string"&&!e)}function Z1(e,t,n){var r=[],o=0,a=e.length;function l(s){r.push.apply(r,ge(s||[])),o++,o===a&&n(r)}e.forEach(function(s){t(s,l)})}function Rf(e,t,n){var r=0,o=e.length;function a(l){if(l&&l.length){n(l);return}var s=r;r=r+1,s<o?t(e[s],a):n([])}a([])}function J1(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,ge(e[n]||[]))}),t}var Pf=(function(e){mr(n,e);var t=vr(n);function n(r,o){var a;return tn(this,n),a=t.call(this,"Async Validation Error"),j(Ae(a),"errors",void 0),j(Ae(a),"fields",void 0),a.errors=r,a.fields=o,a}return nn(n)})(xc(Error));function ew(e,t,n,r,o){if(t.first){var a=new Promise(function(m,v){var p=function(b){return r(b),b.length?v(new Pf(b,$c(b))):m(o)},h=J1(e);Rf(h,n,p)});return a.catch(function(m){return m}),a}var l=t.firstFields===!0?Object.keys(e):t.firstFields||[],s=Object.keys(e),c=s.length,u=0,d=[],f=new Promise(function(m,v){var p=function(g){if(d.push.apply(d,g),u++,u===c)return r(d),d.length?v(new Pf(d,$c(d))):m(o)};s.length||(r(d),m(o)),s.forEach(function(h){var g=e[h];l.indexOf(h)!==-1?Rf(g,n,p):Z1(g,n,p)})});return f.catch(function(m){return m}),f}function tw(e){return!!(e&&e.message!==void 0)}function nw(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function Nf(e,t){return function(n){var r;return e.fullFields?r=nw(t,e.fullFields):r=t[n.field||e.fullField],tw(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 Mf(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];Ue(r)==="object"&&Ue(e[n])==="object"?e[n]=D(D({},e[n]),r):e[n]=r}}return e}var io="enum",rw=function(t,n,r,o,a){t[io]=Array.isArray(t[io])?t[io]:[],t[io].indexOf(n)===-1&&o.push(Hn(a.messages[io],t.fullField,t[io].join(", ")))},ow=function(t,n,r,o,a){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||o.push(Hn(a.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var l=new RegExp(t.pattern);l.test(n)||o.push(Hn(a.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},aw=function(t,n,r,o,a){var l=typeof t.len=="number",s=typeof t.min=="number",c=typeof t.max=="number",u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,d=n,f=null,m=typeof n=="number",v=typeof n=="string",p=Array.isArray(n);if(m?f="number":v?f="string":p&&(f="array"),!f)return!1;p&&(d=n.length),v&&(d=n.replace(u,"_").length),l?d!==t.len&&o.push(Hn(a.messages[f].len,t.fullField,t.len)):s&&!c&&d<t.min?o.push(Hn(a.messages[f].min,t.fullField,t.min)):c&&!s&&d>t.max?o.push(Hn(a.messages[f].max,t.fullField,t.max)):s&&c&&(d<t.min||d>t.max)&&o.push(Hn(a.messages[f].range,t.fullField,t.min,t.max))},hp=function(t,n,r,o,a,l){t.required&&(!r.hasOwnProperty(t.field)||un(n,l||t.type))&&o.push(Hn(a.messages.required,t.fullField))},ii;const iw=(function(){if(ii)return ii;var e="[a-fA-F\\d:]",t=function(E){return E&&E.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(e,")|(?<=").concat(e,")(?=\\s|$))"):""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",o=["(?:".concat(r,":){7}(?:").concat(r,"|:)"),"(?:".concat(r,":){6}(?:").concat(n,"|:").concat(r,"|:)"),"(?:".concat(r,":){5}(?::").concat(n,"|(?::").concat(r,"){1,2}|:)"),"(?:".concat(r,":){4}(?:(?::").concat(r,"){0,1}:").concat(n,"|(?::").concat(r,"){1,3}|:)"),"(?:".concat(r,":){3}(?:(?::").concat(r,"){0,2}:").concat(n,"|(?::").concat(r,"){1,4}|:)"),"(?:".concat(r,":){2}(?:(?::").concat(r,"){0,3}:").concat(n,"|(?::").concat(r,"){1,5}|:)"),"(?:".concat(r,":){1}(?:(?::").concat(r,"){0,4}:").concat(n,"|(?::").concat(r,"){1,6}|:)"),"(?::(?:(?::".concat(r,"){0,5}:").concat(n,"|(?::").concat(r,"){1,7}|:))")],a="(?:%[0-9a-zA-Z]{1,})?",l="(?:".concat(o.join("|"),")").concat(a),s=new RegExp("(?:^".concat(n,"$)|(?:^").concat(l,"$)")),c=new RegExp("^".concat(n,"$")),u=new RegExp("^".concat(l,"$")),d=function(E){return E&&E.exact?s:new RegExp("(?:".concat(t(E)).concat(n).concat(t(E),")|(?:").concat(t(E)).concat(l).concat(t(E),")"),"g")};d.v4=function(S){return S&&S.exact?c:new RegExp("".concat(t(S)).concat(n).concat(t(S)),"g")},d.v6=function(S){return S&&S.exact?u:new RegExp("".concat(t(S)).concat(l).concat(t(S)),"g")};var f="(?:(?:[a-z]+:)?//)",m="(?:\\S+(?::\\S*)?@)?",v=d.v4().source,p=d.v6().source,h="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",g="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",b="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",C="(?::\\d{2,5})?",y='(?:[/?#][^\\s"]*)?',$="(?:".concat(f,"|www\\.)").concat(m,"(?:localhost|").concat(v,"|").concat(p,"|").concat(h).concat(g).concat(b,")").concat(C).concat(y);return ii=new RegExp("(?:^".concat($,"$)"),"i"),ii});var cs={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},ta={integer:function(t){return ta.number(t)&&parseInt(t,10)===t},float:function(t){return ta.number(t)&&!ta.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return Ue(t)==="object"&&!ta.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(cs.email)},tel:function(t){return typeof t=="string"&&t.length<=32&&!!t.match(cs.tel)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(iw())},hex:function(t){return typeof t=="string"&&!!t.match(cs.hex)}},lw=function(t,n,r,o,a){if(t.required&&n===void 0){hp(t,n,r,o,a);return}var l=["integer","float","array","regexp","object","method","email","tel","number","date","url","hex"],s=t.type;l.indexOf(s)>-1?ta[s](n)||o.push(Hn(a.messages.types[s],t.fullField,t.type)):s&&Ue(n)!==t.type&&o.push(Hn(a.messages.types[s],t.fullField,t.type))},sw=function(t,n,r,o,a){(/^\s+$/.test(n)||n==="")&&o.push(Hn(a.messages.whitespace,t.fullField))};const Mt={required:hp,whitespace:sw,type:lw,range:aw,enum:rw,pattern:ow};var cw=function(t,n,r,o,a){var l=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(un(n)&&!t.required)return r();Mt.required(t,n,o,l,a)}r(l)},uw=function(t,n,r,o,a){var l=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(n==null&&!t.required)return r();Mt.required(t,n,o,l,a,"array"),n!=null&&(Mt.type(t,n,o,l,a),Mt.range(t,n,o,l,a))}r(l)},dw=function(t,n,r,o,a){var l=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(un(n)&&!t.required)return r();Mt.required(t,n,o,l,a),n!==void 0&&Mt.type(t,n,o,l,a)}r(l)},fw=function(t,n,r,o,a){var l=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(un(n,"date")&&!t.required)return r();if(Mt.required(t,n,o,l,a),!un(n,"date")){var c;n instanceof Date?c=n:c=new Date(n),Mt.type(t,c,o,l,a),c&&Mt.range(t,c.getTime(),o,l,a)}}r(l)},mw="enum",vw=function(t,n,r,o,a){var l=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(un(n)&&!t.required)return r();Mt.required(t,n,o,l,a),n!==void 0&&Mt[mw](t,n,o,l,a)}r(l)},gw=function(t,n,r,o,a){var l=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(un(n)&&!t.required)return r();Mt.required(t,n,o,l,a),n!==void 0&&(Mt.type(t,n,o,l,a),Mt.range(t,n,o,l,a))}r(l)},pw=function(t,n,r,o,a){var l=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(un(n)&&!t.required)return r();Mt.required(t,n,o,l,a),n!==void 0&&(Mt.type(t,n,o,l,a),Mt.range(t,n,o,l,a))}r(l)},hw=function(t,n,r,o,a){var l=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(un(n)&&!t.required)return r();Mt.required(t,n,o,l,a),n!==void 0&&Mt.type(t,n,o,l,a)}r(l)},bw=function(t,n,r,o,a){var l=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(n===""&&(n=void 0),un(n)&&!t.required)return r();Mt.required(t,n,o,l,a),n!==void 0&&(Mt.type(t,n,o,l,a),Mt.range(t,n,o,l,a))}r(l)},yw=function(t,n,r,o,a){var l=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(un(n)&&!t.required)return r();Mt.required(t,n,o,l,a),n!==void 0&&Mt.type(t,n,o,l,a)}r(l)},Cw=function(t,n,r,o,a){var l=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(un(n,"string")&&!t.required)return r();Mt.required(t,n,o,l,a),un(n,"string")||Mt.pattern(t,n,o,l,a)}r(l)},Sw=function(t,n,r,o,a){var l=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(un(n)&&!t.required)return r();Mt.required(t,n,o,l,a),un(n)||Mt.type(t,n,o,l,a)}r(l)},xw=function(t,n,r,o,a){var l=[],s=Array.isArray(n)?"array":Ue(n);Mt.required(t,n,o,l,a,s),r(l)},$w=function(t,n,r,o,a){var l=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(un(n,"string")&&!t.required)return r();Mt.required(t,n,o,l,a,"string"),un(n,"string")||(Mt.type(t,n,o,l,a),Mt.range(t,n,o,l,a),Mt.pattern(t,n,o,l,a),t.whitespace===!0&&Mt.whitespace(t,n,o,l,a))}r(l)},li=function(t,n,r,o,a){var l=t.type,s=[],c=t.required||!t.required&&o.hasOwnProperty(t.field);if(c){if(un(n,l)&&!t.required)return r();Mt.required(t,n,o,s,a,l),un(n,l)||Mt.type(t,n,o,s,a)}r(s)};const ia={string:$w,method:hw,number:bw,boolean:dw,regexp:Sw,integer:pw,float:gw,array:uw,object:yw,enum:vw,pattern:Cw,date:fw,url:li,hex:li,email:li,tel:li,required:xw,any:cw};var Aa=(function(){function e(t){tn(this,e),j(this,"rules",null),j(this,"_messages",Sc),this.define(t)}return nn(e,[{key:"define",value:function(n){var r=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(Ue(n)!=="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(o){var a=n[o];r.rules[o]=Array.isArray(a)?a:[a]})}},{key:"messages",value:function(n){return n&&(this._messages=Mf(Cc(),n)),this._messages}},{key:"validate",value:function(n){var r=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},l=n,s=o,c=a;if(typeof s=="function"&&(c=s,s={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(null,l),Promise.resolve(l);function u(p){var h=[],g={};function b(y){if(Array.isArray(y)){var $;h=($=h).concat.apply($,ge(y))}else h.push(y)}for(var C=0;C<p.length;C++)b(p[C]);h.length?(g=$c(h),c(h,g)):c(null,l)}if(s.messages){var d=this.messages();d===Sc&&(d=Cc()),Mf(d,s.messages),s.messages=d}else s.messages=this.messages();var f={},m=s.keys||Object.keys(this.rules);m.forEach(function(p){var h=r.rules[p],g=l[p];h.forEach(function(b){var C=b;typeof C.transform=="function"&&(l===n&&(l=D({},l)),g=l[p]=C.transform(g),g!=null&&(C.type=C.type||(Array.isArray(g)?"array":Ue(g)))),typeof C=="function"?C={validator:C}:C=D({},C),C.validator=r.getValidationMethod(C),C.validator&&(C.field=p,C.fullField=C.fullField||p,C.type=r.getType(C),f[p]=f[p]||[],f[p].push({rule:C,value:g,source:l,field:p}))})});var v={};return ew(f,s,function(p,h){var g=p.rule,b=(g.type==="object"||g.type==="array")&&(Ue(g.fields)==="object"||Ue(g.defaultField)==="object");b=b&&(g.required||!g.required&&p.value),g.field=p.field;function C(O,w){return D(D({},w),{},{fullField:"".concat(g.fullField,".").concat(O),fullFields:g.fullFields?[].concat(ge(g.fullFields),[O]):[O]})}function y(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],w=Array.isArray(O)?O:[O];!s.suppressWarning&&w.length&&e.warning("async-validator:",w),w.length&&g.message!==void 0&&g.message!==null&&(w=[].concat(g.message));var x=w.map(Nf(g,l));if(s.first&&x.length)return v[g.field]=1,h(x);if(!b)h(x);else{if(g.required&&!p.value)return g.message!==void 0?x=[].concat(g.message).map(Nf(g,l)):s.error&&(x=[s.error(g,Hn(s.messages.required,g.field))]),h(x);var I={};g.defaultField&&Object.keys(p.value).map(function(M){I[M]=g.defaultField}),I=D(D({},I),p.rule.fields);var P={};Object.keys(I).forEach(function(M){var R=I[M],_=Array.isArray(R)?R:[R];P[M]=_.map(C.bind(null,M))});var N=new e(P);N.messages(s.messages),p.rule.options&&(p.rule.options.messages=s.messages,p.rule.options.error=s.error),N.validate(p.value,p.rule.options||s,function(M){var R=[];x&&x.length&&R.push.apply(R,ge(x)),M&&M.length&&R.push.apply(R,ge(M)),h(R.length?R:null)})}}var $;if(g.asyncValidator)$=g.asyncValidator(g,p.value,y,p.source,s);else if(g.validator){try{$=g.validator(g,p.value,y,p.source,s)}catch(O){var S,E;(S=(E=console).error)===null||S===void 0||S.call(E,O),s.suppressValidatorError||setTimeout(function(){throw O},0),y(O.message)}$===!0?y():$===!1?y(typeof g.message=="function"?g.message(g.fullField||g.field):g.message||"".concat(g.fullField||g.field," fails")):$ instanceof Array?y($):$ instanceof Error&&y($.message)}$&&$.then&&$.then(function(){return y()},function(O){return y(O)})},function(p){u(p)},l)}},{key:"getType",value:function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!ia.hasOwnProperty(n.type))throw new Error(Hn("Unknown rule type %s",n.type));return n.type||"string"}},{key:"getValidationMethod",value:function(n){if(typeof n.validator=="function")return n.validator;var r=Object.keys(n),o=r.indexOf("message");return o!==-1&&r.splice(o,1),r.length===1&&r[0]==="required"?ia.required:ia[this.getType(n)]||void 0}}]),e})();j(Aa,"register",function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");ia[t]=n});j(Aa,"warning",Y1);j(Aa,"messages",Sc);j(Aa,"validators",ia);var An="'${name}' is not a valid ${type}",bp={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:An,method:An,array:An,object:An,number:An,date:An,boolean:An,integer:An,float:An,regexp:An,email:An,url:An,hex:An},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}"}},Tf=Aa;function ww(e,t){return e.replace(/\\?\$\{\w+\}/g,function(n){if(n.startsWith("\\"))return n.slice(1);var r=n.slice(2,-1);return t[r]})}var _f="CODE_LOGIC_ERROR";function wc(e,t,n,r,o){return Ec.apply(this,arguments)}function Ec(){return Ec=ro(On().mark(function e(t,n,r,o,a){var l,s,c,u,d,f,m,v,p;return On().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:return l=D({},r),delete l.ruleIndex,Tf.warning=function(){},l.validator&&(s=l.validator,l.validator=function(){try{return s.apply(void 0,arguments)}catch(b){return console.error(b),Promise.reject(_f)}}),c=null,l&&l.type==="array"&&l.defaultField&&(c=l.defaultField,delete l.defaultField),u=new Tf(j({},t,[l])),d=ho(bp,o.validateMessages),u.messages(d),f=[],g.prev=10,g.next=13,Promise.resolve(u.validate(j({},t,n),D({},o)));case 13:g.next=18;break;case 15:g.prev=15,g.t0=g.catch(10),g.t0.errors&&(f=g.t0.errors.map(function(b,C){var y=b.message,$=y===_f?d.default:y;return i.isValidElement($)?i.cloneElement($,{key:"error_".concat(C)}):$}));case 18:if(!(!f.length&&c&&Array.isArray(n)&&n.length>0)){g.next=23;break}return g.next=21,Promise.all(n.map(function(b,C){return wc("".concat(t,".").concat(C),b,c,o,a)}));case 21:return m=g.sent,g.abrupt("return",m.reduce(function(b,C){return[].concat(ge(b),ge(C))},[]));case 23:return v=D(D({},r),{},{name:t,enum:(r.enum||[]).join(", ")},a),p=f.map(function(b){return typeof b=="string"?ww(b,v):b}),g.abrupt("return",p);case 26:case"end":return g.stop()}},e,null,[[10,15]])})),Ec.apply(this,arguments)}function Ew(e,t,n,r,o,a){var l=e.join("."),s=n.map(function(d,f){var m=d.validator,v=D(D({},d),{},{ruleIndex:f});return m&&(v.validator=function(p,h,g){var b=!1,C=function(){for(var S=arguments.length,E=new Array(S),O=0;O<S;O++)E[O]=arguments[O];Promise.resolve().then(function(){Ut(!b,"Your validator function has already return a promise. `callback` will be ignored."),b||g.apply(void 0,E)})},y=m(p,h,C);b=y&&typeof y.then=="function"&&typeof y.catch=="function",Ut(b,"`callback` is deprecated. Please return a promise instead."),b&&y.then(function(){g()}).catch(function($){g($||" ")})}),v}).sort(function(d,f){var m=d.warningOnly,v=d.ruleIndex,p=f.warningOnly,h=f.ruleIndex;return!!m==!!p?v-h:m?1:-1}),c;if(o===!0)c=new Promise((function(){var d=ro(On().mark(function f(m,v){var p,h,g;return On().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:p=0;case 1:if(!(p<s.length)){C.next=12;break}return h=s[p],C.next=5,wc(l,t,h,r,a);case 5:if(g=C.sent,!g.length){C.next=9;break}return v([{errors:g,rule:h}]),C.abrupt("return");case 9:p+=1,C.next=1;break;case 12:m([]);case 13:case"end":return C.stop()}},f)}));return function(f,m){return d.apply(this,arguments)}})());else{var u=s.map(function(d){return wc(l,t,d,r,a).then(function(f){return{errors:f,rule:d}})});c=(o?Iw(u):Ow(u)).then(function(d){return Promise.reject(d)})}return c.catch(function(d){return d}),c}function Ow(e){return Oc.apply(this,arguments)}function Oc(){return Oc=ro(On().mark(function e(t){return On().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.all(t).then(function(o){var a,l=(a=[]).concat.apply(a,ge(o));return l}));case 1:case"end":return r.stop()}},e)})),Oc.apply(this,arguments)}function Iw(e){return Ic.apply(this,arguments)}function Ic(){return Ic=ro(On().mark(function e(t){var n;return On().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return n=0,o.abrupt("return",new Promise(function(a){t.forEach(function(l){l.then(function(s){s.errors.length&&a([s]),n+=1,n===t.length&&a([])})})}));case 2:case"end":return o.stop()}},e)})),Ic.apply(this,arguments)}function en(e){return yc(e)}function zf(e,t){var n={};return t.forEach(function(r){var o=Tn(e,r);n=Qn(n,r,o)}),n}function xo(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return yp(t,r,n)})}function yp(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!t||!n&&e.length!==t.length?!1:t.every(function(r,o){return e[o]===r})}function Rw(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||Ue(e)!=="object"||Ue(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),o=new Set([].concat(n,r));return ge(o).every(function(a){var l=e[a],s=t[a];return typeof l=="function"&&typeof s=="function"?!0:l===s})}function Pw(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&Ue(t.target)==="object"&&e in t.target?t.target[e]:t}function jf(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var o=e[t],a=t-n;return a>0?[].concat(ge(e.slice(0,n)),[o],ge(e.slice(n,t)),ge(e.slice(t+1,r))):a<0?[].concat(ge(e.slice(0,t)),ge(e.slice(t+1,n+1)),[o],ge(e.slice(n+1,r))):e}var Nw=["name"],Un=[];function us(e,t,n,r,o,a){return typeof e=="function"?e(t,n,"source"in a?{source:a.source}:{}):r!==o}var xu=(function(e){mr(n,e);var t=vr(n);function n(r){var o;if(tn(this,n),o=t.call(this,r),j(Ae(o),"state",{resetCount:0}),j(Ae(o),"cancelRegisterFunc",null),j(Ae(o),"mounted",!1),j(Ae(o),"touched",!1),j(Ae(o),"dirty",!1),j(Ae(o),"validatePromise",void 0),j(Ae(o),"prevValidating",void 0),j(Ae(o),"errors",Un),j(Ae(o),"warnings",Un),j(Ae(o),"cancelRegister",function(){var c=o.props,u=c.preserve,d=c.isListField,f=c.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(d,u,en(f)),o.cancelRegisterFunc=null}),j(Ae(o),"getNamePath",function(){var c=o.props,u=c.name,d=c.fieldContext,f=d.prefixName,m=f===void 0?[]:f;return u!==void 0?[].concat(ge(m),ge(u)):[]}),j(Ae(o),"getRules",function(){var c=o.props,u=c.rules,d=u===void 0?[]:u,f=c.fieldContext;return d.map(function(m){return typeof m=="function"?m(f):m})}),j(Ae(o),"refresh",function(){o.mounted&&o.setState(function(c){var u=c.resetCount;return{resetCount:u+1}})}),j(Ae(o),"metaCache",null),j(Ae(o),"triggerMetaEvent",function(c){var u=o.props.onMetaChange;if(u){var d=D(D({},o.getMeta()),{},{destroy:c});ur(o.metaCache,d)||u(d),o.metaCache=d}else o.metaCache=null}),j(Ae(o),"onStoreChange",function(c,u,d){var f=o.props,m=f.shouldUpdate,v=f.dependencies,p=v===void 0?[]:v,h=f.onReset,g=d.store,b=o.getNamePath(),C=o.getValue(c),y=o.getValue(g),$=u&&xo(u,b);switch(d.type==="valueUpdate"&&d.source==="external"&&!ur(C,y)&&(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=Un,o.warnings=Un,o.triggerMetaEvent()),d.type){case"reset":if(!u||$){o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=Un,o.warnings=Un,o.triggerMetaEvent(),h==null||h(),o.refresh();return}break;case"remove":{if(m&&us(m,c,g,C,y,d)){o.reRender();return}break}case"setField":{var S=d.data;if($){"touched"in S&&(o.touched=S.touched),"validating"in S&&!("originRCField"in S)&&(o.validatePromise=S.validating?Promise.resolve([]):null),"errors"in S&&(o.errors=S.errors||Un),"warnings"in S&&(o.warnings=S.warnings||Un),o.dirty=!0,o.triggerMetaEvent(),o.reRender();return}else if("value"in S&&xo(u,b,!0)){o.reRender();return}if(m&&!b.length&&us(m,c,g,C,y,d)){o.reRender();return}break}case"dependenciesUpdate":{var E=p.map(en);if(E.some(function(O){return xo(d.relatedFields,O)})){o.reRender();return}break}default:if($||(!p.length||b.length||m)&&us(m,c,g,C,y,d)){o.reRender();return}break}m===!0&&o.reRender()}),j(Ae(o),"validateRules",function(c){var u=o.getNamePath(),d=o.getValue(),f=c||{},m=f.triggerName,v=f.validateOnly,p=v===void 0?!1:v,h=Promise.resolve().then(ro(On().mark(function g(){var b,C,y,$,S,E,O;return On().wrap(function(x){for(;;)switch(x.prev=x.next){case 0:if(o.mounted){x.next=2;break}return x.abrupt("return",[]);case 2:if(b=o.props,C=b.validateFirst,y=C===void 0?!1:C,$=b.messageVariables,S=b.validateDebounce,E=o.getRules(),m&&(E=E.filter(function(I){return I}).filter(function(I){var P=I.validateTrigger;if(!P)return!0;var N=yc(P);return N.includes(m)})),!(S&&m)){x.next=10;break}return x.next=8,new Promise(function(I){setTimeout(I,S)});case 8:if(o.validatePromise===h){x.next=10;break}return x.abrupt("return",[]);case 10:return O=Ew(u,d,E,c,y,$),O.catch(function(I){return I}).then(function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Un;if(o.validatePromise===h){var P;o.validatePromise=null;var N=[],M=[];(P=I.forEach)===null||P===void 0||P.call(I,function(R){var _=R.rule.warningOnly,T=R.errors,z=T===void 0?Un:T;_?M.push.apply(M,ge(z)):N.push.apply(N,ge(z))}),o.errors=N,o.warnings=M,o.triggerMetaEvent(),o.reRender()}}),x.abrupt("return",O);case 13:case"end":return x.stop()}},g)})));return p||(o.validatePromise=h,o.dirty=!0,o.errors=Un,o.warnings=Un,o.triggerMetaEvent(),o.reRender()),h}),j(Ae(o),"isFieldValidating",function(){return!!o.validatePromise}),j(Ae(o),"isFieldTouched",function(){return o.touched}),j(Ae(o),"isFieldDirty",function(){if(o.dirty||o.props.initialValue!==void 0)return!0;var c=o.props.fieldContext,u=c.getInternalHooks(qr),d=u.getInitialValue;return d(o.getNamePath())!==void 0}),j(Ae(o),"getErrors",function(){return o.errors}),j(Ae(o),"getWarnings",function(){return o.warnings}),j(Ae(o),"isListField",function(){return o.props.isListField}),j(Ae(o),"isList",function(){return o.props.isList}),j(Ae(o),"isPreserve",function(){return o.props.preserve}),j(Ae(o),"getMeta",function(){o.prevValidating=o.isFieldValidating();var c={touched:o.isFieldTouched(),validating:o.prevValidating,errors:o.errors,warnings:o.warnings,name:o.getNamePath(),validated:o.validatePromise===null};return c}),j(Ae(o),"getOnlyChild",function(c){if(typeof c=="function"){var u=o.getMeta();return D(D({},o.getOnlyChild(c(o.getControlled(),u,o.props.fieldContext))),{},{isFunction:!0})}var d=_n(c);return d.length!==1||!i.isValidElement(d[0])?{child:d,isFunction:!1}:{child:d[0],isFunction:!1}}),j(Ae(o),"getValue",function(c){var u=o.props.fieldContext.getFieldsValue,d=o.getNamePath();return Tn(c||u(!0),d)}),j(Ae(o),"getControlled",function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=o.props,d=u.name,f=u.trigger,m=u.validateTrigger,v=u.getValueFromEvent,p=u.normalize,h=u.valuePropName,g=u.getValueProps,b=u.fieldContext,C=m!==void 0?m:b.validateTrigger,y=o.getNamePath(),$=b.getInternalHooks,S=b.getFieldsValue,E=$(qr),O=E.dispatch,w=o.getValue(),x=g||function(R){return j({},h,R)},I=c[f],P=d!==void 0?x(w):{},N=D(D({},c),P);N[f]=function(){o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var R,_=arguments.length,T=new Array(_),z=0;z<_;z++)T[z]=arguments[z];v?R=v.apply(void 0,T):R=Pw.apply(void 0,[h].concat(T)),p&&(R=p(R,w,S(!0))),R!==w&&O({type:"updateValue",namePath:y,value:R}),I&&I.apply(void 0,T)};var M=yc(C||[]);return M.forEach(function(R){var _=N[R];N[R]=function(){_&&_.apply(void 0,arguments);var T=o.props.rules;T&&T.length&&O({type:"validateField",namePath:y,triggerName:R})}}),N}),r.fieldContext){var a=r.fieldContext.getInternalHooks,l=a(qr),s=l.initEntityValue;s(Ae(o))}return o}return nn(n,[{key:"componentDidMount",value:function(){var o=this.props,a=o.shouldUpdate,l=o.fieldContext;if(this.mounted=!0,l){var s=l.getInternalHooks,c=s(qr),u=c.registerField;this.cancelRegisterFunc=u(this)}a===!0&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var o=this.state.resetCount,a=this.props.children,l=this.getOnlyChild(a),s=l.child,c=l.isFunction,u;return c?u=s:i.isValidElement(s)?u=i.cloneElement(s,this.getControlled(s.props)):(Ut(!s,"`children` of Field is not validate ReactElement."),u=s),i.createElement(i.Fragment,{key:o},u)}}]),n})(i.Component);j(xu,"contextType",eo);j(xu,"defaultProps",{trigger:"onChange",valuePropName:"value"});function $u(e){var t,n=e.name,r=at(e,Nw),o=i.useContext(eo),a=i.useContext($a),l=n!==void 0?en(n):void 0,s=(t=r.isListField)!==null&&t!==void 0?t:!!a,c="keep";return s||(c="_".concat((l||[]).join("_"))),i.createElement(xu,me({key:c,name:l,isListField:s},r,{fieldContext:o}))}function Cp(e){var t=e.name,n=e.initialValue,r=e.children,o=e.rules,a=e.validateTrigger,l=e.isListField,s=i.useContext(eo),c=i.useContext($a),u=i.useRef({keys:[],id:0}),d=u.current,f=i.useMemo(function(){var h=en(s.prefixName)||[];return[].concat(ge(h),ge(en(t)))},[s.prefixName,t]),m=i.useMemo(function(){return D(D({},s),{},{prefixName:f})},[s,f]),v=i.useMemo(function(){return{getKey:function(g){var b=f.length,C=g[b];return[d.keys[C],g.slice(b+1)]}}},[f]);if(typeof r!="function")return Ut(!1,"Form.List only accepts function as children."),null;var p=function(g,b,C){var y=C.source;return y==="internal"?!1:g!==b};return i.createElement($a.Provider,{value:v},i.createElement(eo.Provider,{value:m},i.createElement($u,{name:[],shouldUpdate:p,rules:o,validateTrigger:a,initialValue:n,isList:!0,isListField:l??!!c},function(h,g){var b=h.value,C=b===void 0?[]:b,y=h.onChange,$=s.getFieldValue,S=function(){var x=$(f||[]);return x||[]},E={add:function(x,I){var P=S();I>=0&&I<=P.length?(d.keys=[].concat(ge(d.keys.slice(0,I)),[d.id],ge(d.keys.slice(I))),y([].concat(ge(P.slice(0,I)),[x],ge(P.slice(I))))):(d.keys=[].concat(ge(d.keys),[d.id]),y([].concat(ge(P),[x]))),d.id+=1},remove:function(x){var I=S(),P=new Set(Array.isArray(x)?x:[x]);P.size<=0||(d.keys=d.keys.filter(function(N,M){return!P.has(M)}),y(I.filter(function(N,M){return!P.has(M)})))},move:function(x,I){if(x!==I){var P=S();x<0||x>=P.length||I<0||I>=P.length||(d.keys=jf(d.keys,x,I),y(jf(P,x,I)))}}},O=C||[];return Array.isArray(O)||(O=[]),r(O.map(function(w,x){var I=d.keys[x];return I===void 0&&(d.keys[x]=d.id,I=d.keys[x],d.id+=1),{name:x,key:I,isListField:!0}}),E,g)})))}function Mw(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(o,a){e.forEach(function(l,s){l.catch(function(c){return t=!0,c}).then(function(c){n-=1,r[s]=c,!(n>0)&&(t&&a(r),o(r))})})}):Promise.resolve([])}var Sp="__@field_split__";function ds(e){return e.map(function(t){return"".concat(Ue(t),":").concat(t)}).join(Sp)}var lo=(function(){function e(){tn(this,e),j(this,"kvs",new Map)}return nn(e,[{key:"set",value:function(n,r){this.kvs.set(ds(n),r)}},{key:"get",value:function(n){return this.kvs.get(ds(n))}},{key:"update",value:function(n,r){var o=this.get(n),a=r(o);a?this.set(n,a):this.delete(n)}},{key:"delete",value:function(n){this.kvs.delete(ds(n))}},{key:"map",value:function(n){return ge(this.kvs.entries()).map(function(r){var o=ee(r,2),a=o[0],l=o[1],s=a.split(Sp);return n({key:s.map(function(c){var u=c.match(/^([^:]*):(.*)$/),d=ee(u,3),f=d[1],m=d[2];return f==="number"?Number(m):m}),value:l})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var o=r.key,a=r.value;return n[o.join(".")]=a,null}),n}}]),e})(),Tw=["name"],_w=nn(function e(t){var n=this;tn(this,e),j(this,"formHooked",!1),j(this,"forceRootUpdate",void 0),j(this,"subscribable",!0),j(this,"store",{}),j(this,"fieldEntities",[]),j(this,"initialValues",{}),j(this,"callbacks",{}),j(this,"validateMessages",null),j(this,"preserve",null),j(this,"lastValidatePromise",null),j(this,"getForm",function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}}),j(this,"getInternalHooks",function(r){return r===qr?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):(Ut(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),j(this,"useSubscribe",function(r){n.subscribable=r}),j(this,"prevWithoutPreserves",null),j(this,"setInitialValues",function(r,o){if(n.initialValues=r||{},o){var a,l=ho(r,n.store);(a=n.prevWithoutPreserves)===null||a===void 0||a.map(function(s){var c=s.key;l=Qn(l,c,Tn(r,c))}),n.prevWithoutPreserves=null,n.updateStore(l)}}),j(this,"destroyForm",function(r){if(r)n.updateStore({});else{var o=new lo;n.getFieldEntities(!0).forEach(function(a){n.isMergedPreserve(a.isPreserve())||o.set(a.getNamePath(),!0)}),n.prevWithoutPreserves=o}}),j(this,"getInitialValue",function(r){var o=Tn(n.initialValues,r);return r.length?ho(o):o}),j(this,"setCallbacks",function(r){n.callbacks=r}),j(this,"setValidateMessages",function(r){n.validateMessages=r}),j(this,"setPreserve",function(r){n.preserve=r}),j(this,"watchList",[]),j(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(o){return o!==r})}}),j(this,"notifyWatch",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var o=n.getFieldsValue(),a=n.getFieldsValue(!0);n.watchList.forEach(function(l){l(o,a,r)})}}),j(this,"timeoutId",null),j(this,"warningUnhooked",function(){}),j(this,"updateStore",function(r){n.store=r}),j(this,"getFieldEntities",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return r?n.fieldEntities.filter(function(o){return o.getNamePath().length}):n.fieldEntities}),j(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,o=new lo;return n.getFieldEntities(r).forEach(function(a){var l=a.getNamePath();o.set(l,a)}),o}),j(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var o=n.getFieldsMap(!0);return r.map(function(a){var l=en(a);return o.get(l)||{INVALIDATE_NAME_PATH:en(a)}})}),j(this,"getFieldsValue",function(r,o){n.warningUnhooked();var a,l,s;if(r===!0||Array.isArray(r)?(a=r,l=o):r&&Ue(r)==="object"&&(s=r.strict,l=r.filter),a===!0&&!l)return n.store;var c=n.getFieldEntitiesForNamePathList(Array.isArray(a)?a:null),u=[];return c.forEach(function(d){var f,m,v="INVALIDATE_NAME_PATH"in d?d.INVALIDATE_NAME_PATH:d.getNamePath();if(s){var p,h;if((p=(h=d).isList)!==null&&p!==void 0&&p.call(h))return}else if(!a&&(f=(m=d).isListField)!==null&&f!==void 0&&f.call(m))return;if(!l)u.push(v);else{var g="getMeta"in d?d.getMeta():null;l(g)&&u.push(v)}}),zf(n.store,u.map(en))}),j(this,"getFieldValue",function(r){n.warningUnhooked();var o=en(r);return Tn(n.store,o)}),j(this,"getFieldsError",function(r){n.warningUnhooked();var o=n.getFieldEntitiesForNamePathList(r);return o.map(function(a,l){return a&&!("INVALIDATE_NAME_PATH"in a)?{name:a.getNamePath(),errors:a.getErrors(),warnings:a.getWarnings()}:{name:en(r[l]),errors:[],warnings:[]}})}),j(this,"getFieldError",function(r){n.warningUnhooked();var o=en(r),a=n.getFieldsError([o])[0];return a.errors}),j(this,"getFieldWarning",function(r){n.warningUnhooked();var o=en(r),a=n.getFieldsError([o])[0];return a.warnings}),j(this,"isFieldsTouched",function(){n.warningUnhooked();for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];var l=o[0],s=o[1],c,u=!1;o.length===0?c=null:o.length===1?Array.isArray(l)?(c=l.map(en),u=!1):(c=null,u=l):(c=l.map(en),u=s);var d=n.getFieldEntities(!0),f=function(g){return g.isFieldTouched()};if(!c)return u?d.every(function(h){return f(h)||h.isList()}):d.some(f);var m=new lo;c.forEach(function(h){m.set(h,[])}),d.forEach(function(h){var g=h.getNamePath();c.forEach(function(b){b.every(function(C,y){return g[y]===C})&&m.update(b,function(C){return[].concat(ge(C),[h])})})});var v=function(g){return g.some(f)},p=m.map(function(h){var g=h.value;return g});return u?p.every(v):p.some(v)}),j(this,"isFieldTouched",function(r){return n.warningUnhooked(),n.isFieldsTouched([r])}),j(this,"isFieldsValidating",function(r){n.warningUnhooked();var o=n.getFieldEntities();if(!r)return o.some(function(l){return l.isFieldValidating()});var a=r.map(en);return o.some(function(l){var s=l.getNamePath();return xo(a,s)&&l.isFieldValidating()})}),j(this,"isFieldValidating",function(r){return n.warningUnhooked(),n.isFieldsValidating([r])}),j(this,"resetWithFieldInitialValue",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=new lo,a=n.getFieldEntities(!0);a.forEach(function(c){var u=c.props.initialValue,d=c.getNamePath();if(u!==void 0){var f=o.get(d)||new Set;f.add({entity:c,value:u}),o.set(d,f)}});var l=function(u){u.forEach(function(d){var f=d.props.initialValue;if(f!==void 0){var m=d.getNamePath(),v=n.getInitialValue(m);if(v!==void 0)Ut(!1,"Form already set 'initialValues' with path '".concat(m.join("."),"'. Field can not overwrite it."));else{var p=o.get(m);if(p&&p.size>1)Ut(!1,"Multiple Field with path '".concat(m.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(p){var h=n.getFieldValue(m),g=d.isListField();!g&&(!r.skipExist||h===void 0)&&n.updateStore(Qn(n.store,m,ge(p)[0].value))}}}})},s;r.entities?s=r.entities:r.namePathList?(s=[],r.namePathList.forEach(function(c){var u=o.get(c);if(u){var d;(d=s).push.apply(d,ge(ge(u).map(function(f){return f.entity})))}})):s=a,l(s)}),j(this,"resetFields",function(r){n.warningUnhooked();var o=n.store;if(!r){n.updateStore(ho(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(o,null,{type:"reset"}),n.notifyWatch();return}var a=r.map(en);a.forEach(function(l){var s=n.getInitialValue(l);n.updateStore(Qn(n.store,l,s))}),n.resetWithFieldInitialValue({namePathList:a}),n.notifyObservers(o,a,{type:"reset"}),n.notifyWatch(a)}),j(this,"setFields",function(r){n.warningUnhooked();var o=n.store,a=[];r.forEach(function(l){var s=l.name,c=at(l,Tw),u=en(s);a.push(u),"value"in c&&n.updateStore(Qn(n.store,u,c.value)),n.notifyObservers(o,[u],{type:"setField",data:l})}),n.notifyWatch(a)}),j(this,"getFields",function(){var r=n.getFieldEntities(!0),o=r.map(function(a){var l=a.getNamePath(),s=a.getMeta(),c=D(D({},s),{},{name:l,value:n.getFieldValue(l)});return Object.defineProperty(c,"originRCField",{value:!0}),c});return o}),j(this,"initEntityValue",function(r){var o=r.props.initialValue;if(o!==void 0){var a=r.getNamePath(),l=Tn(n.store,a);l===void 0&&n.updateStore(Qn(n.store,a,o))}}),j(this,"isMergedPreserve",function(r){var o=r!==void 0?r:n.preserve;return o??!0}),j(this,"registerField",function(r){n.fieldEntities.push(r);var o=r.getNamePath();if(n.notifyWatch([o]),r.props.initialValue!==void 0){var a=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(a,[r.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(l,s){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(f){return f!==r}),!n.isMergedPreserve(s)&&(!l||c.length>1)){var u=l?void 0:n.getInitialValue(o);if(o.length&&n.getFieldValue(o)!==u&&n.fieldEntities.every(function(f){return!yp(f.getNamePath(),o)})){var d=n.store;n.updateStore(Qn(d,o,u,!0)),n.notifyObservers(d,[o],{type:"remove"}),n.triggerDependenciesUpdate(d,o)}}n.notifyWatch([o])}}),j(this,"dispatch",function(r){switch(r.type){case"updateValue":{var o=r.namePath,a=r.value;n.updateValue(o,a);break}case"validateField":{var l=r.namePath,s=r.triggerName;n.validateFields([l],{triggerName:s});break}}}),j(this,"notifyObservers",function(r,o,a){if(n.subscribable){var l=D(D({},a),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(s){var c=s.onStoreChange;c(r,o,l)})}else n.forceRootUpdate()}),j(this,"triggerDependenciesUpdate",function(r,o){var a=n.getDependencyChildrenFields(o);return a.length&&n.validateFields(a),n.notifyObservers(r,a,{type:"dependenciesUpdate",relatedFields:[o].concat(ge(a))}),a}),j(this,"updateValue",function(r,o){var a=en(r),l=n.store;n.updateStore(Qn(n.store,a,o)),n.notifyObservers(l,[a],{type:"valueUpdate",source:"internal"}),n.notifyWatch([a]);var s=n.triggerDependenciesUpdate(l,a),c=n.callbacks.onValuesChange;if(c){var u=zf(n.store,[a]);c(u,n.getFieldsValue())}n.triggerOnFieldsChange([a].concat(ge(s)))}),j(this,"setFieldsValue",function(r){n.warningUnhooked();var o=n.store;if(r){var a=ho(n.store,r);n.updateStore(a)}n.notifyObservers(o,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),j(this,"setFieldValue",function(r,o){n.setFields([{name:r,value:o,errors:[],warnings:[]}])}),j(this,"getDependencyChildrenFields",function(r){var o=new Set,a=[],l=new lo;n.getFieldEntities().forEach(function(c){var u=c.props.dependencies;(u||[]).forEach(function(d){var f=en(d);l.update(f,function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return m.add(c),m})})});var s=function c(u){var d=l.get(u)||new Set;d.forEach(function(f){if(!o.has(f)){o.add(f);var m=f.getNamePath();f.isFieldDirty()&&m.length&&(a.push(m),c(m))}})};return s(r),a}),j(this,"triggerOnFieldsChange",function(r,o){var a=n.callbacks.onFieldsChange;if(a){var l=n.getFields();if(o){var s=new lo;o.forEach(function(u){var d=u.name,f=u.errors;s.set(d,f)}),l.forEach(function(u){u.errors=s.get(u.name)||u.errors})}var c=l.filter(function(u){var d=u.name;return xo(r,d)});c.length&&a(c,l)}}),j(this,"validateFields",function(r,o){n.warningUnhooked();var a,l;Array.isArray(r)||typeof r=="string"||typeof o=="string"?(a=r,l=o):l=r;var s=!!a,c=s?a.map(en):[],u=[],d=String(Date.now()),f=new Set,m=l||{},v=m.recursive,p=m.dirty;n.getFieldEntities(!0).forEach(function(C){if(s||c.push(C.getNamePath()),!(!C.props.rules||!C.props.rules.length)&&!(p&&!C.isFieldDirty())){var y=C.getNamePath();if(f.add(y.join(d)),!s||xo(c,y,v)){var $=C.validateRules(D({validateMessages:D(D({},bp),n.validateMessages)},l));u.push($.then(function(){return{name:y,errors:[],warnings:[]}}).catch(function(S){var E,O=[],w=[];return(E=S.forEach)===null||E===void 0||E.call(S,function(x){var I=x.rule.warningOnly,P=x.errors;I?w.push.apply(w,ge(P)):O.push.apply(O,ge(P))}),O.length?Promise.reject({name:y,errors:O,warnings:w}):{name:y,errors:O,warnings:w}}))}}});var h=Mw(u);n.lastValidatePromise=h,h.catch(function(C){return C}).then(function(C){var y=C.map(function($){var S=$.name;return S});n.notifyObservers(n.store,y,{type:"validateFinish"}),n.triggerOnFieldsChange(y,C)});var g=h.then(function(){return n.lastValidatePromise===h?Promise.resolve(n.getFieldsValue(c)):Promise.reject([])}).catch(function(C){var y=C.filter(function($){return $&&$.errors.length});return Promise.reject({values:n.getFieldsValue(c),errorFields:y,outOfDate:n.lastValidatePromise!==h})});g.catch(function(C){return C});var b=c.filter(function(C){return f.has(C.join(d))});return n.triggerOnFieldsChange(b),g}),j(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(r){var o=n.callbacks.onFinish;if(o)try{o(r)}catch(a){console.error(a)}}).catch(function(r){var o=n.callbacks.onFinishFailed;o&&o(r)})}),this.forceRootUpdate=t});function wu(e){var t=i.useRef(),n=i.useState({}),r=ee(n,2),o=r[1];if(!t.current)if(e)t.current=e;else{var a=function(){o({})},l=new _w(a);t.current=l.getForm()}return[t.current]}var Rc=i.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),xp=function(t){var n=t.validateMessages,r=t.onFormChange,o=t.onFormFinish,a=t.children,l=i.useContext(Rc),s=i.useRef({});return i.createElement(Rc.Provider,{value:D(D({},l),{},{validateMessages:D(D({},l.validateMessages),n),triggerFormChange:function(u,d){r&&r(u,{changedFields:d,forms:s.current}),l.triggerFormChange(u,d)},triggerFormFinish:function(u,d){o&&o(u,{values:d,forms:s.current}),l.triggerFormFinish(u,d)},registerForm:function(u,d){u&&(s.current=D(D({},s.current),{},j({},u,d))),l.registerForm(u,d)},unregisterForm:function(u){var d=D({},s.current);delete d[u],s.current=d,l.unregisterForm(u)}})},a)},zw=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],jw=function(t,n){var r=t.name,o=t.initialValues,a=t.fields,l=t.form,s=t.preserve,c=t.children,u=t.component,d=u===void 0?"form":u,f=t.validateMessages,m=t.validateTrigger,v=m===void 0?"onChange":m,p=t.onValuesChange,h=t.onFieldsChange,g=t.onFinish,b=t.onFinishFailed,C=t.clearOnDestroy,y=at(t,zw),$=i.useRef(null),S=i.useContext(Rc),E=wu(l),O=ee(E,1),w=O[0],x=w.getInternalHooks(qr),I=x.useSubscribe,P=x.setInitialValues,N=x.setCallbacks,M=x.setValidateMessages,R=x.setPreserve,_=x.destroyForm;i.useImperativeHandle(n,function(){return D(D({},w),{},{nativeElement:$.current})}),i.useEffect(function(){return S.registerForm(r,w),function(){S.unregisterForm(r)}},[S,w,r]),M(D(D({},S.validateMessages),f)),N({onValuesChange:p,onFieldsChange:function(V){if(S.triggerFormChange(r,V),h){for(var G=arguments.length,U=new Array(G>1?G-1:0),ne=1;ne<G;ne++)U[ne-1]=arguments[ne];h.apply(void 0,[V].concat(U))}},onFinish:function(V){S.triggerFormFinish(r,V),g&&g(V)},onFinishFailed:b}),R(s);var T=i.useRef(null);P(o,!T.current),T.current||(T.current=!0),i.useEffect(function(){return function(){return _(C)}},[]);var z,B=typeof c=="function";if(B){var L=w.getFieldsValue(!0);z=c(L,w)}else z=c;I(!B);var F=i.useRef();i.useEffect(function(){Rw(F.current||[],a||[])||w.setFields(a||[]),F.current=a},[a,w]);var K=i.useMemo(function(){return D(D({},w),{},{validateTrigger:v})},[w,v]),W=i.createElement($a.Provider,{value:null},i.createElement(eo.Provider,{value:K},z));return d===!1?W:i.createElement(d,me({},y,{ref:$,onSubmit:function(V){V.preventDefault(),V.stopPropagation(),w.submit()},onReset:function(V){var G;V.preventDefault(),w.resetFields(),(G=y.onReset)===null||G===void 0||G.call(y,V)}}),W)};function Bf(e){try{return JSON.stringify(e)}catch{return Math.random()}}function $p(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],o=t[1],a=o===void 0?{}:o,l=G1(a)?{form:a}:a,s=l.form,c=i.useState(),u=ee(c,2),d=u[0],f=u[1],m=i.useMemo(function(){return Bf(d)},[d]),v=i.useRef(m);v.current=m;var p=i.useContext(eo),h=s||p,g=h&&h._init,b=en(r),C=i.useRef(b);return C.current=b,i.useEffect(function(){if(g){var y=h.getFieldsValue,$=h.getInternalHooks,S=$(qr),E=S.registerWatch,O=function(P,N){var M=l.preserve?N:P;return typeof r=="function"?r(M):Tn(M,C.current)},w=E(function(I,P){var N=O(I,P),M=Bf(N);v.current!==M&&(v.current=M,f(N))}),x=O(y(),y(!0));return d!==x&&f(x),w}},[g]),d}var Bw=i.forwardRef(jw),Do=Bw;Do.FormProvider=xp;Do.Field=$u;Do.List=Cp;Do.useForm=wu;Do.useWatch=$p;const xr=i.createContext({labelAlign:"right",layout:"horizontal",itemRef:()=>{}}),wp=i.createContext(null),Ep=e=>{const t=Xt(e,["prefixCls"]);return i.createElement(xp,Object.assign({},t))},Eu=i.createContext({prefixCls:""}),In=i.createContext({}),Op=({children:e,status:t,override:n})=>{const r=i.useContext(In),o=i.useMemo(()=>{const a=Object.assign({},r);return n&&delete a.isFormItemInput,t&&(delete a.status,delete a.hasFeedback,delete a.feedbackIcon),a},[t,n,r]);return i.createElement(In.Provider,{value:o},e)},Ip=i.createContext(void 0),wa=e=>{const{space:t,form:n,children:r}=e;if(r==null)return null;let o=r;return n&&(o=te.createElement(Op,{override:!0,status:!0},o)),t&&(o=te.createElement(c$,null,o)),o};var Rp=function(t){if(En()&&window.document.documentElement){var n=Array.isArray(t)?t:[t],r=window.document.documentElement;return n.some(function(o){return o in r.style})}return!1},Dw=function(t,n){if(!Rp(t))return!1;var r=document.createElement("div"),o=r.style[t];return r.style[t]=n,r.style[t]!==o};function Lw(e,t){return!Array.isArray(e)&&t!==void 0?Dw(e,t):Rp(e)}const bl=e=>{const{prefixCls:t,className:n,style:r,size:o,shape:a}=e,l=k({[`${t}-lg`]:o==="large",[`${t}-sm`]:o==="small"}),s=k({[`${t}-circle`]:a==="circle",[`${t}-square`]:a==="square",[`${t}-round`]:a==="round"}),c=i.useMemo(()=>typeof o=="number"?{width:o,height:o,lineHeight:`${o}px`}:{},[o]);return i.createElement("span",{className:k(t,l,s,n),style:Object.assign(Object.assign({},c),r)})},Aw=new Tt("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),yl=e=>({height:e,lineHeight:H(e)}),$o=e=>Object.assign({width:e},yl(e)),Fw=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:Aw,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),fs=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},yl(e)),Hw=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:o,controlHeightSM:a}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},$o(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},$o(o)),[`${t}${t}-sm`]:Object.assign({},$o(a))}},kw=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:o,controlHeightSM:a,gradientFromColor:l,calc:s}=e;return{[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:l,borderRadius:n},fs(t,s)),[`${r}-lg`]:Object.assign({},fs(o,s)),[`${r}-sm`]:Object.assign({},fs(a,s))}},Df=e=>Object.assign({width:e},yl(e)),Vw=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:o,calc:a}=e;return{[t]:Object.assign(Object.assign({display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:r,borderRadius:o},Df(a(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},Df(n)),{maxWidth:a(n).mul(4).equal(),maxHeight:a(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},ms=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},vs=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},yl(e)),Kw=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:o,controlHeightSM:a,gradientFromColor:l,calc:s}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:l,borderRadius:t,width:s(r).mul(2).equal(),minWidth:s(r).mul(2).equal()},vs(r,s))},ms(e,r,n)),{[`${n}-lg`]:Object.assign({},vs(o,s))}),ms(e,o,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},vs(a,s))}),ms(e,a,`${n}-sm`))},Ww=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:o,skeletonButtonCls:a,skeletonInputCls:l,skeletonImageCls:s,controlHeight:c,controlHeightLG:u,controlHeightSM:d,gradientFromColor:f,padding:m,marginSM:v,borderRadius:p,titleHeight:h,blockRadius:g,paragraphLiHeight:b,controlHeightXS:C,paragraphMarginTop:y}=e;return{[t]:{display:"table",width:"100%",[`${t}-header`]:{display:"table-cell",paddingInlineEnd:m,verticalAlign:"top",[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:f},$o(c)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},$o(u)),[`${n}-sm`]:Object.assign({},$o(d))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:h,background:f,borderRadius:g,[`+ ${o}`]:{marginBlockStart:d}},[o]:{padding:0,"> li":{width:"100%",height:b,listStyle:"none",background:f,borderRadius:g,"+ li":{marginBlockStart:C}}},[`${o}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${o} > li`]:{borderRadius:p}}},[`${t}-with-avatar ${t}-content`]:{[r]:{marginBlockStart:v,[`+ ${o}`]:{marginBlockStart:y}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},Kw(e)),Hw(e)),kw(e)),Vw(e)),[`${t}${t}-block`]:{width:"100%",[a]:{width:"100%"},[l]:{width:"100%"}},[`${t}${t}-active`]:{[`
|
|
166
|
+
${r},
|
|
167
|
+
${o} > li,
|
|
168
|
+
${n},
|
|
169
|
+
${a},
|
|
170
|
+
${l},
|
|
171
|
+
${s}
|
|
172
|
+
`]:Object.assign({},Fw(e))}}},Gw=e=>{const{colorFillContent:t,colorFill:n}=e,r=t,o=n;return{color:r,colorGradientEnd:o,gradientFromColor:r,gradientToColor:o,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},Lo=At("Skeleton",e=>{const{componentCls:t,calc:n}=e,r=wt(e,{skeletonAvatarCls:`${t}-avatar`,skeletonTitleCls:`${t}-title`,skeletonParagraphCls:`${t}-paragraph`,skeletonButtonCls:`${t}-button`,skeletonInputCls:`${t}-input`,skeletonImageCls:`${t}-image`,imageSizeBase:n(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return Ww(r)},Gw,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),qw=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,shape:a="circle",size:l="default"}=e,{getPrefixCls:s}=i.useContext(it),c=s("skeleton",t),[u,d,f]=Lo(c),m=Xt(e,["prefixCls","className"]),v=k(c,`${c}-element`,{[`${c}-active`]:o},n,r,d,f);return u(i.createElement("div",{className:v},i.createElement(bl,Object.assign({prefixCls:`${c}-avatar`,shape:a,size:l},m))))},Uw=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:a=!1,size:l="default"}=e,{getPrefixCls:s}=i.useContext(it),c=s("skeleton",t),[u,d,f]=Lo(c),m=Xt(e,["prefixCls"]),v=k(c,`${c}-element`,{[`${c}-active`]:o,[`${c}-block`]:a},n,r,d,f);return u(i.createElement("div",{className:v},i.createElement(bl,Object.assign({prefixCls:`${c}-button`,size:l},m))))},Xw="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",Yw=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:a}=e,{getPrefixCls:l}=i.useContext(it),s=l("skeleton",t),[c,u,d]=Lo(s),f=k(s,`${s}-element`,{[`${s}-active`]:a},n,r,u,d);return c(i.createElement("div",{className:f},i.createElement("div",{className:k(`${s}-image`,n),style:o},i.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${s}-image-svg`},i.createElement("title",null,"Image placeholder"),i.createElement("path",{d:Xw,className:`${s}-image-path`})))))},Qw=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:a,size:l="default"}=e,{getPrefixCls:s}=i.useContext(it),c=s("skeleton",t),[u,d,f]=Lo(c),m=Xt(e,["prefixCls"]),v=k(c,`${c}-element`,{[`${c}-active`]:o,[`${c}-block`]:a},n,r,d,f);return u(i.createElement("div",{className:v},i.createElement(bl,Object.assign({prefixCls:`${c}-input`,size:l},m))))},Zw=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:a,children:l}=e,{getPrefixCls:s}=i.useContext(it),c=s("skeleton",t),[u,d,f]=Lo(c),m=k(c,`${c}-element`,{[`${c}-active`]:a},d,n,r,f);return u(i.createElement("div",{className:m},i.createElement("div",{className:k(`${c}-image`,n),style:o},l)))},Jw=(e,t)=>{const{width:n,rows:r=2}=t;if(Array.isArray(n))return n[e];if(r-1===e)return n},eE=e=>{const{prefixCls:t,className:n,style:r,rows:o=0}=e,a=Array.from({length:o}).map((l,s)=>i.createElement("li",{key:s,style:{width:Jw(s,e)}}));return i.createElement("ul",{className:k(t,n),style:r},a)},tE=({prefixCls:e,className:t,width:n,style:r})=>i.createElement("h3",{className:k(e,t),style:Object.assign({width:n},r)});function gs(e){return e&&typeof e=="object"?e:{}}function nE(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function rE(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function oE(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const Ao=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:o,style:a,children:l,avatar:s=!1,title:c=!0,paragraph:u=!0,active:d,round:f}=e,{getPrefixCls:m,direction:v,className:p,style:h}=Kn("skeleton"),g=m("skeleton",t),[b,C,y]=Lo(g);if(n||!("loading"in e)){const $=!!s,S=!!c,E=!!u;let O;if($){const I=Object.assign(Object.assign({prefixCls:`${g}-avatar`},nE(S,E)),gs(s));O=i.createElement("div",{className:`${g}-header`},i.createElement(bl,Object.assign({},I)))}let w;if(S||E){let I;if(S){const N=Object.assign(Object.assign({prefixCls:`${g}-title`},rE($,E)),gs(c));I=i.createElement(tE,Object.assign({},N))}let P;if(E){const N=Object.assign(Object.assign({prefixCls:`${g}-paragraph`},oE($,S)),gs(u));P=i.createElement(eE,Object.assign({},N))}w=i.createElement("div",{className:`${g}-content`},I,P)}const x=k(g,{[`${g}-with-avatar`]:$,[`${g}-active`]:d,[`${g}-rtl`]:v==="rtl",[`${g}-round`]:f},p,r,o,C,y);return b(i.createElement("div",{className:x,style:Object.assign(Object.assign({},h),a)},O,w))}return l??null};Ao.Button=Uw;Ao.Avatar=qw;Ao.Input=Qw;Ao.Image=Yw;Ao.Node=Zw;const aE=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},iE=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},lE=(e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:o}=e,a={};for(let l=o;l>=0;l--)l===0?(a[`${r}${t}-${l}`]={display:"none"},a[`${r}-push-${l}`]={insetInlineStart:"auto"},a[`${r}-pull-${l}`]={insetInlineEnd:"auto"},a[`${r}${t}-push-${l}`]={insetInlineStart:"auto"},a[`${r}${t}-pull-${l}`]={insetInlineEnd:"auto"},a[`${r}${t}-offset-${l}`]={marginInlineStart:0},a[`${r}${t}-order-${l}`]={order:0}):(a[`${r}${t}-${l}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${l/o*100}%`,maxWidth:`${l/o*100}%`}],a[`${r}${t}-push-${l}`]={insetInlineStart:`${l/o*100}%`},a[`${r}${t}-pull-${l}`]={insetInlineEnd:`${l/o*100}%`},a[`${r}${t}-offset-${l}`]={marginInlineStart:`${l/o*100}%`},a[`${r}${t}-order-${l}`]={order:l});return a[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},a},Pc=(e,t)=>lE(e,t),sE=(e,t,n)=>({[`@media (min-width: ${H(t)})`]:Object.assign({},Pc(e,n))}),cE=()=>({}),uE=()=>({}),dE=At("Grid",aE,cE),Pp=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin}),fE=At("Grid",e=>{const t=wt(e,{gridColumns:24}),n=Pp(t);return delete n.xs,[iE(t),Pc(t,""),Pc(t,"-xs"),Object.keys(n).map(r=>sE(t,n[r],`-${r}`)).reduce((r,o)=>Object.assign(Object.assign({},r),o),{})]},uE);function Lf(e){return{position:e,inset:0}}const mE=e=>{const{componentCls:t,antCls:n}=e;return[{[`${t}-root`]:{[`${t}${n}-zoom-enter, ${t}${n}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${n}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:Object.assign(Object.assign({},Lf("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},Lf("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:N$(e)}]},vE=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${H(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},kt(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${H(e.calc(e.margin).mul(2).equal())})`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},[`${t}-close`]:Object.assign({position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:H(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},Sr(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${H(e.borderRadiusLG)} ${H(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:`${H(e.margin)} auto`}},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content,
|
|
173
|
+
${t}-body,
|
|
174
|
+
${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},gE=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},pE=e=>{const{componentCls:t}=e,n=Pp(e),r=Object.assign({},n);delete r.xs;const o=`--${t.replace(".","")}-`,a=Object.keys(r).map(l=>({[`@media (min-width: ${H(r[l])})`]:{width:`var(${o}${l}-width)`}}));return{[`${t}-root`]:{[t]:[].concat(ge(Object.keys(n).map((l,s)=>{const c=Object.keys(n)[s-1];return c?{[`${o}${l}-width`]:`var(${o}${c}-width)`}:null})),[{width:`var(${o}xs-width)`}],ge(a))}}},hE=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return wt(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()})},bE=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${H(e.paddingMD)} ${H(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${H(e.padding)} ${H(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${H(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${H(e.paddingXS)} ${H(e.padding)}`:0,footerBorderTop:e.wireframe?`${H(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${H(e.borderRadiusLG)} ${H(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${H(e.padding*2)} ${H(e.padding*2)} ${H(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM}),z4=At("Modal",e=>{const t=hE(e);return[vE(t),gE(t),mE(t),cl(t,"zoom"),pE(t)]},bE,{unitless:{titleLineHeight:!0}}),yE=te.createContext({});function CE(e){return t=>i.createElement(Dr,{theme:{token:{motion:!1,zIndexPopupBase:0}}},i.createElement(e,Object.assign({},t)))}const Np=(e,t,n,r,o)=>CE(l=>{const{prefixCls:s,style:c}=l,u=i.useRef(null),[d,f]=i.useState(0),[m,v]=i.useState(0),[p,h]=ln(!1,{value:l.open}),{getPrefixCls:g}=i.useContext(it),b=g(r||"select",s);i.useEffect(()=>{if(h(!0),typeof ResizeObserver<"u"){const $=new ResizeObserver(E=>{const O=E[0].target;f(O.offsetHeight+8),v(O.offsetWidth)}),S=setInterval(()=>{var E;const O=o?`.${o(b)}`:`.${b}-dropdown`,w=(E=u.current)===null||E===void 0?void 0:E.querySelector(O);w&&(clearInterval(S),$.observe(w))},10);return()=>{clearInterval(S),$.disconnect()}}},[b]);let C=Object.assign(Object.assign({},l),{style:Object.assign(Object.assign({},c),{margin:0}),open:p,visible:p,getPopupContainer:()=>u.current});t&&Object.assign(C,{[t]:{overflow:{adjustX:!1,adjustY:!1}}});const y={paddingBottom:d,position:"relative",minWidth:m};return i.createElement("div",{ref:u,style:y},i.createElement(e,Object.assign({},C)))}),Ou=(function(){if(typeof navigator>"u"||typeof window>"u")return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e==null?void 0:e.substr(0,4))});var Cl=function(t){var n=t.className,r=t.customizeIcon,o=t.customizeIconProps,a=t.children,l=t.onMouseDown,s=t.onClick,c=typeof r=="function"?r(o):r;return i.createElement("span",{className:n,onMouseDown:function(d){d.preventDefault(),l==null||l(d)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:s,"aria-hidden":!0},c!==void 0?c:i.createElement("span",{className:k(n.split(/\s+/).map(function(u){return"".concat(u,"-icon")}))},a))},SE=function(t,n,r,o,a){var l=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,s=arguments.length>6?arguments[6]:void 0,c=arguments.length>7?arguments[7]:void 0,u=te.useMemo(function(){if(Ue(o)==="object")return o.clearIcon;if(a)return a},[o,a]),d=te.useMemo(function(){return!!(!l&&o&&(r.length||s)&&!(c==="combobox"&&s===""))},[o,l,r.length,s,c]);return{allowClear:d,clearIcon:te.createElement(Cl,{className:"".concat(t,"-clear"),onMouseDown:n,customizeIcon:u},"×")}},Mp=i.createContext(null);function xE(){return i.useContext(Mp)}function $E(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=i.useState(!1),n=ee(t,2),r=n[0],o=n[1],a=i.useRef(null),l=function(){window.clearTimeout(a.current)};i.useEffect(function(){return l},[]);var s=function(u,d){l(),a.current=window.setTimeout(function(){o(u),d&&d()},e)};return[r,s,l]}function Tp(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=i.useRef(null),n=i.useRef(null);i.useEffect(function(){return function(){window.clearTimeout(n.current)}},[]);function r(o){(o||t.current===null)&&(t.current=o),window.clearTimeout(n.current),n.current=window.setTimeout(function(){t.current=null},e)}return[function(){return t.current},r]}function wE(e,t,n,r){var o=i.useRef(null);o.current={open:t,triggerOpen:n,customizedTrigger:r},i.useEffect(function(){function a(l){var s;if(!((s=o.current)!==null&&s!==void 0&&s.customizedTrigger)){var c=l.target;c.shadowRoot&&l.composed&&(c=l.composedPath()[0]||c),o.current.open&&e().filter(function(u){return u}).every(function(u){return!u.contains(c)&&u!==c})&&o.current.triggerOpen(!1)}}return window.addEventListener("mousedown",a),function(){return window.removeEventListener("mousedown",a)}},[])}function EE(e){return e&&![Le.ESC,Le.SHIFT,Le.BACKSPACE,Le.TAB,Le.WIN_KEY,Le.ALT,Le.META,Le.WIN_KEY_RIGHT,Le.CTRL,Le.SEMICOLON,Le.EQUALS,Le.CAPS_LOCK,Le.CONTEXT_MENU,Le.F1,Le.F2,Le.F3,Le.F4,Le.F5,Le.F6,Le.F7,Le.F8,Le.F9,Le.F10,Le.F11,Le.F12].includes(e)}var OE=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],so=void 0;function IE(e,t){var n=e.prefixCls,r=e.invalidate,o=e.item,a=e.renderItem,l=e.responsive,s=e.responsiveDisabled,c=e.registerSize,u=e.itemKey,d=e.className,f=e.style,m=e.children,v=e.display,p=e.order,h=e.component,g=h===void 0?"div":h,b=at(e,OE),C=l&&!v;function y(w){c(u,w)}i.useEffect(function(){return function(){y(null)}},[]);var $=a&&o!==so?a(o,{index:p}):m,S;r||(S={opacity:C?0:1,height:C?0:so,overflowY:C?"hidden":so,order:l?p:so,pointerEvents:C?"none":so,position:C?"absolute":so});var E={};C&&(E["aria-hidden"]=!0);var O=i.createElement(g,me({className:k(!r&&n,d),style:D(D({},S),f)},E,b,{ref:t}),$);return l&&(O=i.createElement(Bn,{onResize:function(x){var I=x.offsetWidth;y(I)},disabled:s},O)),O}var Co=i.forwardRef(IE);Co.displayName="Item";function RE(e){if(typeof MessageChannel>"u")Et(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function PE(){var e=i.useRef(null),t=function(r){e.current||(e.current=[],RE(function(){br.unstable_batchedUpdates(function(){e.current.forEach(function(o){o()}),e.current=null})})),e.current.push(r)};return t}function co(e,t){var n=i.useState(t),r=ee(n,2),o=r[0],a=r[1],l=Lt(function(s){e(function(){a(s)})});return[o,l]}var Ai=te.createContext(null),NE=["component"],ME=["className"],TE=["className"],_E=function(t,n){var r=i.useContext(Ai);if(!r){var o=t.component,a=o===void 0?"div":o,l=at(t,NE);return i.createElement(a,me({},l,{ref:n}))}var s=r.className,c=at(r,ME),u=t.className,d=at(t,TE);return i.createElement(Ai.Provider,{value:null},i.createElement(Co,me({ref:n,className:k(s,u)},c,d)))},_p=i.forwardRef(_E);_p.displayName="RawItem";var zE=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","prefix","suffix","component","itemComponent","onVisibleChange"],zp="responsive",jp="invalidate";function jE(e){return"+ ".concat(e.length," ...")}function BE(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,o=e.data,a=o===void 0?[]:o,l=e.renderItem,s=e.renderRawItem,c=e.itemKey,u=e.itemWidth,d=u===void 0?10:u,f=e.ssr,m=e.style,v=e.className,p=e.maxCount,h=e.renderRest,g=e.renderRawRest,b=e.prefix,C=e.suffix,y=e.component,$=y===void 0?"div":y,S=e.itemComponent,E=e.onVisibleChange,O=at(e,zE),w=f==="full",x=PE(),I=co(x,null),P=ee(I,2),N=P[0],M=P[1],R=N||0,_=co(x,new Map),T=ee(_,2),z=T[0],B=T[1],L=co(x,0),F=ee(L,2),K=F[0],W=F[1],A=co(x,0),V=ee(A,2),G=V[0],U=V[1],ne=co(x,0),J=ee(ne,2),Q=J[0],le=J[1],re=co(x,0),X=ee(re,2),oe=X[0],Z=X[1],q=i.useState(null),Y=ee(q,2),ie=Y[0],ue=Y[1],he=i.useState(null),be=ee(he,2),ae=be[0],fe=be[1],se=i.useMemo(function(){return ae===null&&w?Number.MAX_SAFE_INTEGER:ae||0},[ae,N]),ce=i.useState(!1),Se=ee(ce,2),we=Se[0],je=Se[1],Ne="".concat(r,"-item"),Oe=Math.max(K,G),Te=p===zp,ve=a.length&&Te,de=p===jp,xe=ve||typeof p=="number"&&a.length>p,Ce=i.useMemo(function(){var ye=a;return ve?N===null&&w?ye=a:ye=a.slice(0,Math.min(a.length,R/d)):typeof p=="number"&&(ye=a.slice(0,p)),ye},[a,d,N,p,ve]),Ee=i.useMemo(function(){return ve?a.slice(se+1):a.slice(Ce.length)},[a,Ce,ve,se]),Me=i.useCallback(function(ye,pe){var Ie;return typeof c=="function"?c(ye):(Ie=c&&(ye==null?void 0:ye[c]))!==null&&Ie!==void 0?Ie:pe},[c]),Qe=i.useCallback(l||function(ye){return ye},[l]);function Ve(ye,pe,Ie){ae===ye&&(pe===void 0||pe===ie)||(fe(ye),Ie||(je(ye<a.length-1),E==null||E(ye)),pe!==void 0&&ue(pe))}function Fe(ye,pe){M(pe.clientWidth)}function ft(ye,pe){B(function(Ie){var Ke=new Map(Ie);return pe===null?Ke.delete(ye):Ke.set(ye,pe),Ke})}function mt(ye,pe){U(pe),W(G)}function ot(ye,pe){le(pe)}function Bt(ye,pe){Z(pe)}function bt(ye){return z.get(Me(Ce[ye],ye))}Rt(function(){if(R&&typeof Oe=="number"&&Ce){var ye=Q+oe,pe=Ce.length,Ie=pe-1;if(!pe){Ve(0,null);return}for(var Ke=0;Ke<pe;Ke+=1){var We=bt(Ke);if(w&&(We=We||0),We===void 0){Ve(Ke-1,void 0,!0);break}if(ye+=We,Ie===0&&ye<=R||Ke===Ie-1&&ye+bt(Ie)<=R){Ve(Ie,null);break}else if(ye+Oe>R){Ve(Ke-1,ye-We-oe+G);break}}C&&bt(0)+oe>R&&ue(null)}},[R,z,G,Q,oe,Me,Ce]);var ct=we&&!!Ee.length,et={};ie!==null&&ve&&(et={position:"absolute",left:ie,top:0});var gt={prefixCls:Ne,responsive:ve,component:S,invalidate:de},dt=s?function(ye,pe){var Ie=Me(ye,pe);return i.createElement(Ai.Provider,{key:Ie,value:D(D({},gt),{},{order:pe,item:ye,itemKey:Ie,registerSize:ft,display:pe<=se})},s(ye,pe))}:function(ye,pe){var Ie=Me(ye,pe);return i.createElement(Co,me({},gt,{order:pe,key:Ie,item:ye,renderItem:Qe,itemKey:Ie,registerSize:ft,display:pe<=se}))},_e={order:ct?se:Number.MAX_SAFE_INTEGER,className:"".concat(Ne,"-rest"),registerSize:mt,display:ct},Ge=h||jE,He=g?i.createElement(Ai.Provider,{value:D(D({},gt),_e)},g(Ee)):i.createElement(Co,me({},gt,_e),typeof Ge=="function"?Ge(Ee):Ge),$e=i.createElement($,me({className:k(!de&&r,v),style:m,ref:t},O),b&&i.createElement(Co,me({},gt,{responsive:Te,responsiveDisabled:!ve,order:-1,className:"".concat(Ne,"-prefix"),registerSize:ot,display:!0}),b),Ce.map(dt),xe?He:null,C&&i.createElement(Co,me({},gt,{responsive:Te,responsiveDisabled:!ve,order:se,className:"".concat(Ne,"-suffix"),registerSize:Bt,display:!0,style:et}),C));return Te?i.createElement(Bn,{onResize:Fe,disabled:!ve},$e):$e}var cr=i.forwardRef(BE);cr.displayName="Overflow";cr.Item=_p;cr.RESPONSIVE=zp;cr.INVALIDATE=jp;function DE(e,t,n){var r=D(D({},e),t);return Object.keys(t).forEach(function(o){var a=t[o];typeof a=="function"&&(r[o]=function(){for(var l,s=arguments.length,c=new Array(s),u=0;u<s;u++)c[u]=arguments[u];return a.apply(void 0,c),(l=e[o])===null||l===void 0?void 0:l.call.apply(l,[e].concat(c))})}),r}var LE=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],AE=function(t,n){var r=t.prefixCls,o=t.id,a=t.inputElement,l=t.autoFocus,s=t.autoComplete,c=t.editable,u=t.activeDescendantId,d=t.value,f=t.open,m=t.attrs,v=at(t,LE),p=a||i.createElement("input",null),h=p,g=h.ref,b=h.props;return"maxLength"in p.props,p=i.cloneElement(p,D(D(D({type:"search"},DE(v,b)),{},{id:o,ref:Vn(n,g),autoComplete:s||"off",autoFocus:l,className:k("".concat(r,"-selection-search-input"),b==null?void 0:b.className),role:"combobox","aria-expanded":f||!1,"aria-haspopup":"listbox","aria-owns":"".concat(o,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(o,"_list"),"aria-activedescendant":f?u:void 0},m),{},{value:c?d:"",readOnly:!c,unselectable:c?null:"on",style:D(D({},b.style),{},{opacity:c?null:0})})),p},Bp=i.forwardRef(AE);function Dp(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var FE=typeof window<"u"&&window.document&&window.document.documentElement,HE=FE;function kE(e){return e!=null}function VE(e){return!e&&e!==0}function Af(e){return["string","number"].includes(Ue(e))}function Lp(e){var t=void 0;return e&&(Af(e.title)?t=e.title.toString():Af(e.label)&&(t=e.label.toString())),t}function KE(e,t){HE?i.useLayoutEffect(e,t):i.useEffect(e,t)}function WE(e){var t;return(t=e.key)!==null&&t!==void 0?t:e.value}var Ff=function(t){t.preventDefault(),t.stopPropagation()},GE=function(t){var n=t.id,r=t.prefixCls,o=t.values,a=t.open,l=t.searchValue,s=t.autoClearSearchValue,c=t.inputRef,u=t.placeholder,d=t.disabled,f=t.mode,m=t.showSearch,v=t.autoFocus,p=t.autoComplete,h=t.activeDescendantId,g=t.tabIndex,b=t.removeIcon,C=t.maxTagCount,y=t.maxTagTextLength,$=t.maxTagPlaceholder,S=$===void 0?function(Z){return"+ ".concat(Z.length," ...")}:$,E=t.tagRender,O=t.onToggleOpen,w=t.onRemove,x=t.onInputChange,I=t.onInputPaste,P=t.onInputKeyDown,N=t.onInputMouseDown,M=t.onInputCompositionStart,R=t.onInputCompositionEnd,_=t.onInputBlur,T=i.useRef(null),z=i.useState(0),B=ee(z,2),L=B[0],F=B[1],K=i.useState(!1),W=ee(K,2),A=W[0],V=W[1],G="".concat(r,"-selection"),U=a||f==="multiple"&&s===!1||f==="tags"?l:"",ne=f==="tags"||f==="multiple"&&s===!1||m&&(a||A);KE(function(){F(T.current.scrollWidth)},[U]);var J=function(q,Y,ie,ue,he){return i.createElement("span",{title:Lp(q),className:k("".concat(G,"-item"),j({},"".concat(G,"-item-disabled"),ie))},i.createElement("span",{className:"".concat(G,"-item-content")},Y),ue&&i.createElement(Cl,{className:"".concat(G,"-item-remove"),onMouseDown:Ff,onClick:he,customizeIcon:b},"×"))},Q=function(q,Y,ie,ue,he,be){var ae=function(se){Ff(se),O(!a)};return i.createElement("span",{onMouseDown:ae},E({label:Y,value:q,disabled:ie,closable:ue,onClose:he,isMaxTag:!!be}))},le=function(q){var Y=q.disabled,ie=q.label,ue=q.value,he=!d&&!Y,be=ie;if(typeof y=="number"&&(typeof ie=="string"||typeof ie=="number")){var ae=String(be);ae.length>y&&(be="".concat(ae.slice(0,y),"..."))}var fe=function(ce){ce&&ce.stopPropagation(),w(q)};return typeof E=="function"?Q(ue,be,Y,he,fe):J(q,be,Y,he,fe)},re=function(q){if(!o.length)return null;var Y=typeof S=="function"?S(q):S;return typeof E=="function"?Q(void 0,Y,!1,!1,void 0,!0):J({title:Y},Y,!1)},X=i.createElement("div",{className:"".concat(G,"-search"),style:{width:L},onFocus:function(){V(!0)},onBlur:function(){V(!1)}},i.createElement(Bp,{ref:c,open:a,prefixCls:r,id:n,inputElement:null,disabled:d,autoFocus:v,autoComplete:p,editable:ne,activeDescendantId:h,value:U,onKeyDown:P,onMouseDown:N,onChange:x,onPaste:I,onCompositionStart:M,onCompositionEnd:R,onBlur:_,tabIndex:g,attrs:zn(t,!0)}),i.createElement("span",{ref:T,className:"".concat(G,"-search-mirror"),"aria-hidden":!0},U," ")),oe=i.createElement(cr,{prefixCls:"".concat(G,"-overflow"),data:o,renderItem:le,renderRest:re,suffix:X,itemKey:WE,maxCount:C});return i.createElement("span",{className:"".concat(G,"-wrap")},oe,!o.length&&!U&&i.createElement("span",{className:"".concat(G,"-placeholder")},u))},qE=function(t){var n=t.inputElement,r=t.prefixCls,o=t.id,a=t.inputRef,l=t.disabled,s=t.autoFocus,c=t.autoComplete,u=t.activeDescendantId,d=t.mode,f=t.open,m=t.values,v=t.placeholder,p=t.tabIndex,h=t.showSearch,g=t.searchValue,b=t.activeValue,C=t.maxLength,y=t.onInputKeyDown,$=t.onInputMouseDown,S=t.onInputChange,E=t.onInputPaste,O=t.onInputCompositionStart,w=t.onInputCompositionEnd,x=t.onInputBlur,I=t.title,P=i.useState(!1),N=ee(P,2),M=N[0],R=N[1],_=d==="combobox",T=_||h,z=m[0],B=g||"";_&&b&&!M&&(B=b),i.useEffect(function(){_&&R(!1)},[_,b]);var L=d!=="combobox"&&!f&&!h?!1:!!B,F=I===void 0?Lp(z):I,K=i.useMemo(function(){return z?null:i.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:L?{visibility:"hidden"}:void 0},v)},[z,L,v,r]);return i.createElement("span",{className:"".concat(r,"-selection-wrap")},i.createElement("span",{className:"".concat(r,"-selection-search")},i.createElement(Bp,{ref:a,prefixCls:r,id:o,open:f,inputElement:n,disabled:l,autoFocus:s,autoComplete:c,editable:T,activeDescendantId:u,value:B,onKeyDown:y,onMouseDown:$,onChange:function(A){R(!0),S(A)},onPaste:E,onCompositionStart:O,onCompositionEnd:w,onBlur:x,tabIndex:p,attrs:zn(t,!0),maxLength:_?C:void 0})),!_&&z?i.createElement("span",{className:"".concat(r,"-selection-item"),title:F,style:L?{visibility:"hidden"}:void 0},z.label):null,K)},UE=function(t,n){var r=i.useRef(null),o=i.useRef(!1),a=t.prefixCls,l=t.open,s=t.mode,c=t.showSearch,u=t.tokenWithEnter,d=t.disabled,f=t.prefix,m=t.autoClearSearchValue,v=t.onSearch,p=t.onSearchSubmit,h=t.onToggleOpen,g=t.onInputKeyDown,b=t.onInputBlur,C=t.domRef;i.useImperativeHandle(n,function(){return{focus:function(F){r.current.focus(F)},blur:function(){r.current.blur()}}});var y=Tp(0),$=ee(y,2),S=$[0],E=$[1],O=function(F){var K=F.which,W=r.current instanceof HTMLTextAreaElement;!W&&l&&(K===Le.UP||K===Le.DOWN)&&F.preventDefault(),g&&g(F),K===Le.ENTER&&s==="tags"&&!o.current&&!l&&(p==null||p(F.target.value)),!(W&&!l&&~[Le.UP,Le.DOWN,Le.LEFT,Le.RIGHT].indexOf(K))&&EE(K)&&h(!0)},w=function(){E(!0)},x=i.useRef(null),I=function(F){v(F,!0,o.current)!==!1&&h(!0)},P=function(){o.current=!0},N=function(F){o.current=!1,s!=="combobox"&&I(F.target.value)},M=function(F){var K=F.target.value;if(u&&x.current&&/[\r\n]/.test(x.current)){var W=x.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");K=K.replace(W,x.current)}x.current=null,I(K)},R=function(F){var K=F.clipboardData,W=K==null?void 0:K.getData("text");x.current=W||""},_=function(F){var K=F.target;if(K!==r.current){var W=document.body.style.msTouchAction!==void 0;W?setTimeout(function(){r.current.focus()}):r.current.focus()}},T=function(F){var K=S();F.target!==r.current&&!K&&!(s==="combobox"&&d)&&F.preventDefault(),(s!=="combobox"&&(!c||!K)||!l)&&(l&&m!==!1&&v("",!0,!1),h())},z={inputRef:r,onInputKeyDown:O,onInputMouseDown:w,onInputChange:M,onInputPaste:R,onInputCompositionStart:P,onInputCompositionEnd:N,onInputBlur:b},B=s==="multiple"||s==="tags"?i.createElement(GE,me({},t,z)):i.createElement(qE,me({},t,z));return i.createElement("div",{ref:C,className:"".concat(a,"-selector"),onClick:_,onMouseDown:T},f&&i.createElement("div",{className:"".concat(a,"-prefix")},f),B)},XE=i.forwardRef(UE);function YE(e){var t=e.prefixCls,n=e.align,r=e.arrow,o=e.arrowPos,a=r||{},l=a.className,s=a.content,c=o.x,u=c===void 0?0:c,d=o.y,f=d===void 0?0:d,m=i.useRef();if(!n||!n.points)return null;var v={position:"absolute"};if(n.autoArrow!==!1){var p=n.points[0],h=n.points[1],g=p[0],b=p[1],C=h[0],y=h[1];g===C||!["t","b"].includes(g)?v.top=f:g==="t"?v.top=0:v.bottom=0,b===y||!["l","r"].includes(b)?v.left=u:b==="l"?v.left=0:v.right=0}return i.createElement("div",{ref:m,className:k("".concat(t,"-arrow"),l),style:v},s)}function QE(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,a=e.motion;return o?i.createElement(ir,me({},a,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(l){var s=l.className;return i.createElement("div",{style:{zIndex:r},className:k("".concat(t,"-mask"),s)})}):null}var ZE=i.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),JE=i.forwardRef(function(e,t){var n=e.popup,r=e.className,o=e.prefixCls,a=e.style,l=e.target,s=e.onVisibleChanged,c=e.open,u=e.keepDom,d=e.fresh,f=e.onClick,m=e.mask,v=e.arrow,p=e.arrowPos,h=e.align,g=e.motion,b=e.maskMotion,C=e.forceRender,y=e.getPopupContainer,$=e.autoDestroy,S=e.portal,E=e.zIndex,O=e.onMouseEnter,w=e.onMouseLeave,x=e.onPointerEnter,I=e.onPointerDownCapture,P=e.ready,N=e.offsetX,M=e.offsetY,R=e.offsetR,_=e.offsetB,T=e.onAlign,z=e.onPrepare,B=e.stretch,L=e.targetWidth,F=e.targetHeight,K=typeof n=="function"?n():n,W=c||u,A=(y==null?void 0:y.length)>0,V=i.useState(!y||!A),G=ee(V,2),U=G[0],ne=G[1];if(Rt(function(){!U&&A&&l&&ne(!0)},[U,A,l]),!U)return null;var J="auto",Q={left:"-1000vw",top:"-1000vh",right:J,bottom:J};if(P||!c){var le,re=h.points,X=h.dynamicInset||((le=h._experimental)===null||le===void 0?void 0:le.dynamicInset),oe=X&&re[0][1]==="r",Z=X&&re[0][0]==="b";oe?(Q.right=R,Q.left=J):(Q.left=N,Q.right=J),Z?(Q.bottom=_,Q.top=J):(Q.top=M,Q.bottom=J)}var q={};return B&&(B.includes("height")&&F?q.height=F:B.includes("minHeight")&&F&&(q.minHeight=F),B.includes("width")&&L?q.width=L:B.includes("minWidth")&&L&&(q.minWidth=L)),c||(q.pointerEvents="none"),i.createElement(S,{open:C||W,getContainer:y&&function(){return y(l)},autoDestroy:$},i.createElement(QE,{prefixCls:o,open:c,zIndex:E,mask:m,motion:b}),i.createElement(Bn,{onResize:T,disabled:!c},function(Y){return i.createElement(ir,me({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:C,leavedClassName:"".concat(o,"-hidden")},g,{onAppearPrepare:z,onEnterPrepare:z,visible:c,onVisibleChanged:function(ue){var he;g==null||(he=g.onVisibleChanged)===null||he===void 0||he.call(g,ue),s(ue)}}),function(ie,ue){var he=ie.className,be=ie.style,ae=k(o,he,r);return i.createElement("div",{ref:Vn(Y,t,ue),className:ae,style:D(D(D(D({"--arrow-x":"".concat(p.x||0,"px"),"--arrow-y":"".concat(p.y||0,"px")},Q),q),be),{},{boxSizing:"border-box",zIndex:E},a),onMouseEnter:O,onMouseLeave:w,onPointerEnter:x,onClick:f,onPointerDownCapture:I},v&&i.createElement(YE,{prefixCls:o,arrow:v,arrowPos:p,align:h}),i.createElement(ZE,{cache:!c&&!d},K))})}))}),eO=i.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=or(n),a=i.useCallback(function(s){fa(t,r?r(s):s)},[r]),l=$r(a,jr(n));return o?i.cloneElement(n,{ref:l}):n}),Hf=i.createContext(null);function kf(e){return e?Array.isArray(e)?e:[e]:[]}function tO(e,t,n,r){return i.useMemo(function(){var o=kf(n??t),a=kf(r??t),l=new Set(o),s=new Set(a);return e&&(l.has("hover")&&(l.delete("hover"),l.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[l,s]},[e,t,n,r])}function nO(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function rO(e,t,n,r){for(var o=n.points,a=Object.keys(e),l=0;l<a.length;l+=1){var s,c=a[l];if(nO((s=e[c])===null||s===void 0?void 0:s.points,o,r))return"".concat(t,"-placement-").concat(c)}return""}function Vf(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function Fa(e){return e.ownerDocument.defaultView}function Nc(e){for(var t=[],n=e==null?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=Fa(n).getComputedStyle(n),a=o.overflowX,l=o.overflowY,s=o.overflow;[a,l,s].some(function(c){return r.includes(c)})&&t.push(n),n=n.parentElement}return t}function Ea(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function Yo(e){return Ea(parseFloat(e),0)}function Kf(e,t){var n=D({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var o=Fa(r).getComputedStyle(r),a=o.overflow,l=o.overflowClipMargin,s=o.borderTopWidth,c=o.borderBottomWidth,u=o.borderLeftWidth,d=o.borderRightWidth,f=r.getBoundingClientRect(),m=r.offsetHeight,v=r.clientHeight,p=r.offsetWidth,h=r.clientWidth,g=Yo(s),b=Yo(c),C=Yo(u),y=Yo(d),$=Ea(Math.round(f.width/p*1e3)/1e3),S=Ea(Math.round(f.height/m*1e3)/1e3),E=(p-h-C-y)*$,O=(m-v-g-b)*S,w=g*S,x=b*S,I=C*$,P=y*$,N=0,M=0;if(a==="clip"){var R=Yo(l);N=R*$,M=R*S}var _=f.x+I-N,T=f.y+w-M,z=_+f.width+2*N-I-P-E,B=T+f.height+2*M-w-x-O;n.left=Math.max(n.left,_),n.top=Math.max(n.top,T),n.right=Math.min(n.right,z),n.bottom=Math.min(n.bottom,B)}}),n}function Wf(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n="".concat(t),r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function Gf(e,t){var n=t||[],r=ee(n,2),o=r[0],a=r[1];return[Wf(e.width,o),Wf(e.height,a)]}function qf(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function uo(e,t){var n=t[0],r=t[1],o,a;return n==="t"?a=e.y:n==="b"?a=e.y+e.height:a=e.y+e.height/2,r==="l"?o=e.x:r==="r"?o=e.x+e.width:o=e.x+e.width/2,{x:o,y:a}}function Er(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(r,o){return o===t?n[r]||"c":r}).join("")}function oO(e,t,n,r,o,a,l){var s=i.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[r]||{}}),c=ee(s,2),u=c[0],d=c[1],f=i.useRef(0),m=i.useMemo(function(){return t?Nc(t):[]},[t]),v=i.useRef({}),p=function(){v.current={}};e||p();var h=Lt(function(){if(t&&n&&e){let Wt=function(Gn,bn){var xn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Se,er=W.x+Gn,wr=W.y+bn,Dl=er+Z,Ll=wr+oe,Al=Math.max(er,xn.left),nt=Math.max(wr,xn.top),pt=Math.min(Dl,xn.right),qt=Math.min(Ll,xn.bottom);return Math.max(0,(pt-Al)*(qt-nt))},Gt=function(){St=W.y+Ge,$t=St+oe,_t=W.x+_e,ht=_t+Z};var C,y,$,S,E=t,O=E.ownerDocument,w=Fa(E),x=w.getComputedStyle(E),I=x.position,P=E.style.left,N=E.style.top,M=E.style.right,R=E.style.bottom,_=E.style.overflow,T=D(D({},o[r]),a),z=O.createElement("div");(C=E.parentElement)===null||C===void 0||C.appendChild(z),z.style.left="".concat(E.offsetLeft,"px"),z.style.top="".concat(E.offsetTop,"px"),z.style.position=I,z.style.height="".concat(E.offsetHeight,"px"),z.style.width="".concat(E.offsetWidth,"px"),E.style.left="0",E.style.top="0",E.style.right="auto",E.style.bottom="auto",E.style.overflow="hidden";var B;if(Array.isArray(n))B={x:n[0],y:n[1],width:0,height:0};else{var L,F,K=n.getBoundingClientRect();K.x=(L=K.x)!==null&&L!==void 0?L:K.left,K.y=(F=K.y)!==null&&F!==void 0?F:K.top,B={x:K.x,y:K.y,width:K.width,height:K.height}}var W=E.getBoundingClientRect(),A=w.getComputedStyle(E),V=A.height,G=A.width;W.x=(y=W.x)!==null&&y!==void 0?y:W.left,W.y=($=W.y)!==null&&$!==void 0?$:W.top;var U=O.documentElement,ne=U.clientWidth,J=U.clientHeight,Q=U.scrollWidth,le=U.scrollHeight,re=U.scrollTop,X=U.scrollLeft,oe=W.height,Z=W.width,q=B.height,Y=B.width,ie={left:0,top:0,right:ne,bottom:J},ue={left:-X,top:-re,right:Q-X,bottom:le-re},he=T.htmlRegion,be="visible",ae="visibleFirst";he!=="scroll"&&he!==ae&&(he=be);var fe=he===ae,se=Kf(ue,m),ce=Kf(ie,m),Se=he===be?ce:se,we=fe?ce:Se;E.style.left="auto",E.style.top="auto",E.style.right="0",E.style.bottom="0";var je=E.getBoundingClientRect();E.style.left=P,E.style.top=N,E.style.right=M,E.style.bottom=R,E.style.overflow=_,(S=E.parentElement)===null||S===void 0||S.removeChild(z);var Ne=Ea(Math.round(Z/parseFloat(G)*1e3)/1e3),Oe=Ea(Math.round(oe/parseFloat(V)*1e3)/1e3);if(Ne===0||Oe===0||da(n)&&!La(n))return;var Te=T.offset,ve=T.targetOffset,de=Gf(W,Te),xe=ee(de,2),Ce=xe[0],Ee=xe[1],Me=Gf(B,ve),Qe=ee(Me,2),Ve=Qe[0],Fe=Qe[1];B.x-=Ve,B.y-=Fe;var ft=T.points||[],mt=ee(ft,2),ot=mt[0],Bt=mt[1],bt=qf(Bt),ct=qf(ot),et=uo(B,bt),gt=uo(W,ct),dt=D({},T),_e=et.x-gt.x+Ce,Ge=et.y-gt.y+Ee,He=Wt(_e,Ge),$e=Wt(_e,Ge,ce),ye=uo(B,["t","l"]),pe=uo(W,["t","l"]),Ie=uo(B,["b","r"]),Ke=uo(W,["b","r"]),We=T.overflow||{},vt=We.adjustX,Be=We.adjustY,Pe=We.shiftX,Ze=We.shiftY,yt=function(bn){return typeof bn=="boolean"?bn:bn>=0},St,$t,_t,ht;Gt();var Ot=yt(Be),Re=ct[0]===bt[0];if(Ot&&ct[0]==="t"&&($t>we.bottom||v.current.bt)){var De=Ge;Re?De-=oe-q:De=ye.y-Ke.y-Ee;var rt=Wt(_e,De),tt=Wt(_e,De,ce);rt>He||rt===He&&(!fe||tt>=$e)?(v.current.bt=!0,Ge=De,Ee=-Ee,dt.points=[Er(ct,0),Er(bt,0)]):v.current.bt=!1}if(Ot&&ct[0]==="b"&&(St<we.top||v.current.tb)){var Xe=Ge;Re?Xe+=oe-q:Xe=Ie.y-pe.y-Ee;var ke=Wt(_e,Xe),lt=Wt(_e,Xe,ce);ke>He||ke===He&&(!fe||lt>=$e)?(v.current.tb=!0,Ge=Xe,Ee=-Ee,dt.points=[Er(ct,0),Er(bt,0)]):v.current.tb=!1}var xt=yt(vt),ze=ct[1]===bt[1];if(xt&&ct[1]==="l"&&(ht>we.right||v.current.rl)){var Je=_e;ze?Je-=Z-Y:Je=ye.x-Ke.x-Ce;var ut=Wt(Je,Ge),Kt=Wt(Je,Ge,ce);ut>He||ut===He&&(!fe||Kt>=$e)?(v.current.rl=!0,_e=Je,Ce=-Ce,dt.points=[Er(ct,1),Er(bt,1)]):v.current.rl=!1}if(xt&&ct[1]==="r"&&(_t<we.left||v.current.lr)){var Qt=_e;ze?Qt+=Z-Y:Qt=Ie.x-pe.x-Ce;var pn=Wt(Qt,Ge),hn=Wt(Qt,Ge,ce);pn>He||pn===He&&(!fe||hn>=$e)?(v.current.lr=!0,_e=Qt,Ce=-Ce,dt.points=[Er(ct,1),Er(bt,1)]):v.current.lr=!1}Gt();var sn=Pe===!0?0:Pe;typeof sn=="number"&&(_t<ce.left&&(_e-=_t-ce.left-Ce,B.x+Y<ce.left+sn&&(_e+=B.x-ce.left+Y-sn)),ht>ce.right&&(_e-=ht-ce.right-Ce,B.x>ce.right-sn&&(_e+=B.x-ce.right+sn)));var yn=Ze===!0?0:Ze;typeof yn=="number"&&(St<ce.top&&(Ge-=St-ce.top-Ee,B.y+q<ce.top+yn&&(Ge+=B.y-ce.top+q-yn)),$t>ce.bottom&&(Ge-=$t-ce.bottom-Ee,B.y>ce.bottom-yn&&(Ge+=B.y-ce.bottom+yn)));var Cn=W.x+_e,Mn=Cn+Z,Sn=W.y+Ge,jt=Sn+oe,Ye=B.x,qe=Ye+Y,Nt=B.y,It=Nt+q,Dt=Math.max(Cn,Ye),Vt=Math.min(Mn,qe),dn=(Dt+Vt)/2,Zt=dn-Cn,fn=Math.max(Sn,Nt),rn=Math.min(jt,It),mn=(fn+rn)/2,Wn=mn-Sn;l==null||l(t,dt);var st=je.right-W.x-(_e+W.width),Ct=je.bottom-W.y-(Ge+W.height);Ne===1&&(_e=Math.floor(_e),st=Math.floor(st)),Oe===1&&(Ge=Math.floor(Ge),Ct=Math.floor(Ct));var Jt={ready:!0,offsetX:_e/Ne,offsetY:Ge/Oe,offsetR:st/Ne,offsetB:Ct/Oe,arrowX:Zt/Ne,arrowY:Wn/Oe,scaleX:Ne,scaleY:Oe,align:dt};d(Jt)}}),g=function(){f.current+=1;var y=f.current;Promise.resolve().then(function(){f.current===y&&h()})},b=function(){d(function(y){return D(D({},y),{},{ready:!1})})};return Rt(b,[r]),Rt(function(){e||b()},[e]),[u.ready,u.offsetX,u.offsetY,u.offsetR,u.offsetB,u.arrowX,u.arrowY,u.scaleX,u.scaleY,u.align,g]}function aO(e,t,n,r,o){Rt(function(){if(e&&t&&n){let f=function(){r(),o()};var a=t,l=n,s=Nc(a),c=Nc(l),u=Fa(l),d=new Set([u].concat(ge(s),ge(c)));return d.forEach(function(m){m.addEventListener("scroll",f,{passive:!0})}),u.addEventListener("resize",f,{passive:!0}),r(),function(){d.forEach(function(m){m.removeEventListener("scroll",f),u.removeEventListener("resize",f)})}}},[e,t,n])}function iO(e,t,n,r,o,a,l,s){var c=i.useRef(e);c.current=e;var u=i.useRef(!1);i.useEffect(function(){if(t&&r&&(!o||a)){var f=function(){u.current=!1},m=function(g){var b;c.current&&!l(((b=g.composedPath)===null||b===void 0||(b=b.call(g))===null||b===void 0?void 0:b[0])||g.target)&&!u.current&&s(!1)},v=Fa(r);v.addEventListener("pointerdown",f,!0),v.addEventListener("mousedown",m,!0),v.addEventListener("contextmenu",m,!0);var p=_i(n);return p&&(p.addEventListener("mousedown",m,!0),p.addEventListener("contextmenu",m,!0)),function(){v.removeEventListener("pointerdown",f,!0),v.removeEventListener("mousedown",m,!0),v.removeEventListener("contextmenu",m,!0),p&&(p.removeEventListener("mousedown",m,!0),p.removeEventListener("contextmenu",m,!0))}}},[t,n,r,o,a]);function d(){u.current=!0}return d}var lO=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function sO(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Su,t=i.forwardRef(function(n,r){var o=n.prefixCls,a=o===void 0?"rc-trigger-popup":o,l=n.children,s=n.action,c=s===void 0?"hover":s,u=n.showAction,d=n.hideAction,f=n.popupVisible,m=n.defaultPopupVisible,v=n.onPopupVisibleChange,p=n.afterPopupVisibleChange,h=n.mouseEnterDelay,g=n.mouseLeaveDelay,b=g===void 0?.1:g,C=n.focusDelay,y=n.blurDelay,$=n.mask,S=n.maskClosable,E=S===void 0?!0:S,O=n.getPopupContainer,w=n.forceRender,x=n.autoDestroy,I=n.destroyPopupOnHide,P=n.popup,N=n.popupClassName,M=n.popupStyle,R=n.popupPlacement,_=n.builtinPlacements,T=_===void 0?{}:_,z=n.popupAlign,B=n.zIndex,L=n.stretch,F=n.getPopupClassNameFromAlign,K=n.fresh,W=n.alignPoint,A=n.onPopupClick,V=n.onPopupAlign,G=n.arrow,U=n.popupMotion,ne=n.maskMotion,J=n.popupTransitionName,Q=n.popupAnimation,le=n.maskTransitionName,re=n.maskAnimation,X=n.className,oe=n.getTriggerDOMNode,Z=at(n,lO),q=x||I||!1,Y=i.useState(!1),ie=ee(Y,2),ue=ie[0],he=ie[1];Rt(function(){he(Ou())},[]);var be=i.useRef({}),ae=i.useContext(Hf),fe=i.useMemo(function(){return{registerSubPopup:function(pt,qt){be.current[pt]=qt,ae==null||ae.registerSubPopup(pt,qt)}}},[ae]),se=hl(),ce=i.useState(null),Se=ee(ce,2),we=Se[0],je=Se[1],Ne=i.useRef(null),Oe=Lt(function(nt){Ne.current=nt,da(nt)&&we!==nt&&je(nt),ae==null||ae.registerSubPopup(se,nt)}),Te=i.useState(null),ve=ee(Te,2),de=ve[0],xe=ve[1],Ce=i.useRef(null),Ee=Lt(function(nt){da(nt)&&de!==nt&&(xe(nt),Ce.current=nt)}),Me=i.Children.only(l),Qe=(Me==null?void 0:Me.props)||{},Ve={},Fe=Lt(function(nt){var pt,qt,cn=de;return(cn==null?void 0:cn.contains(nt))||((pt=_i(cn))===null||pt===void 0?void 0:pt.host)===nt||nt===cn||(we==null?void 0:we.contains(nt))||((qt=_i(we))===null||qt===void 0?void 0:qt.host)===nt||nt===we||Object.values(be.current).some(function(Yt){return(Yt==null?void 0:Yt.contains(nt))||nt===Yt})}),ft=Vf(a,U,Q,J),mt=Vf(a,ne,re,le),ot=i.useState(m||!1),Bt=ee(ot,2),bt=Bt[0],ct=Bt[1],et=f??bt,gt=Lt(function(nt){f===void 0&&ct(nt)});Rt(function(){ct(f||!1)},[f]);var dt=i.useRef(et);dt.current=et;var _e=i.useRef([]);_e.current=[];var Ge=Lt(function(nt){var pt;gt(nt),((pt=_e.current[_e.current.length-1])!==null&&pt!==void 0?pt:et)!==nt&&(_e.current.push(nt),v==null||v(nt))}),He=i.useRef(),$e=function(){clearTimeout(He.current)},ye=function(pt){var qt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;$e(),qt===0?Ge(pt):He.current=setTimeout(function(){Ge(pt)},qt*1e3)};i.useEffect(function(){return $e},[]);var pe=i.useState(!1),Ie=ee(pe,2),Ke=Ie[0],We=Ie[1];Rt(function(nt){(!nt||et)&&We(!0)},[et]);var vt=i.useState(null),Be=ee(vt,2),Pe=Be[0],Ze=Be[1],yt=i.useState(null),St=ee(yt,2),$t=St[0],_t=St[1],ht=function(pt){_t([pt.clientX,pt.clientY])},Ot=oO(et,we,W&&$t!==null?$t:de,R,T,z,V),Re=ee(Ot,11),De=Re[0],rt=Re[1],tt=Re[2],Xe=Re[3],ke=Re[4],lt=Re[5],xt=Re[6],ze=Re[7],Je=Re[8],ut=Re[9],Kt=Re[10],Qt=tO(ue,c,u,d),pn=ee(Qt,2),hn=pn[0],sn=pn[1],yn=hn.has("click"),Cn=sn.has("click")||sn.has("contextMenu"),Mn=Lt(function(){Ke||Kt()}),Sn=function(){dt.current&&W&&Cn&&ye(!1)};aO(et,de,we,Mn,Sn),Rt(function(){Mn()},[$t,R]),Rt(function(){et&&!(T!=null&&T[R])&&Mn()},[JSON.stringify(z)]);var jt=i.useMemo(function(){var nt=rO(T,a,ut,W);return k(nt,F==null?void 0:F(ut))},[ut,F,T,a,W]);i.useImperativeHandle(r,function(){return{nativeElement:Ce.current,popupElement:Ne.current,forceAlign:Mn}});var Ye=i.useState(0),qe=ee(Ye,2),Nt=qe[0],It=qe[1],Dt=i.useState(0),Vt=ee(Dt,2),dn=Vt[0],Zt=Vt[1],fn=function(){if(L&&de){var pt=de.getBoundingClientRect();It(pt.width),Zt(pt.height)}},rn=function(){fn(),Mn()},mn=function(pt){We(!1),Kt(),p==null||p(pt)},Wn=function(){return new Promise(function(pt){fn(),Ze(function(){return pt})})};Rt(function(){Pe&&(Kt(),Pe(),Ze(null))},[Pe]);function st(nt,pt,qt,cn){Ve[nt]=function(Yt){var Ya;cn==null||cn(Yt),ye(pt,qt);for(var Fl=arguments.length,cd=new Array(Fl>1?Fl-1:0),Qa=1;Qa<Fl;Qa++)cd[Qa-1]=arguments[Qa];(Ya=Qe[nt])===null||Ya===void 0||Ya.call.apply(Ya,[Qe,Yt].concat(cd))}}(yn||Cn)&&(Ve.onClick=function(nt){var pt;dt.current&&Cn?ye(!1):!dt.current&&yn&&(ht(nt),ye(!0));for(var qt=arguments.length,cn=new Array(qt>1?qt-1:0),Yt=1;Yt<qt;Yt++)cn[Yt-1]=arguments[Yt];(pt=Qe.onClick)===null||pt===void 0||pt.call.apply(pt,[Qe,nt].concat(cn))});var Ct=iO(et,Cn,de,we,$,E,Fe,ye),Jt=hn.has("hover"),Wt=sn.has("hover"),Gt,Gn;Jt&&(st("onMouseEnter",!0,h,function(nt){ht(nt)}),st("onPointerEnter",!0,h,function(nt){ht(nt)}),Gt=function(pt){(et||Ke)&&we!==null&&we!==void 0&&we.contains(pt.target)&&ye(!0,h)},W&&(Ve.onMouseMove=function(nt){var pt;(pt=Qe.onMouseMove)===null||pt===void 0||pt.call(Qe,nt)})),Wt&&(st("onMouseLeave",!1,b),st("onPointerLeave",!1,b),Gn=function(){ye(!1,b)}),hn.has("focus")&&st("onFocus",!0,C),sn.has("focus")&&st("onBlur",!1,y),hn.has("contextMenu")&&(Ve.onContextMenu=function(nt){var pt;dt.current&&sn.has("contextMenu")?ye(!1):(ht(nt),ye(!0)),nt.preventDefault();for(var qt=arguments.length,cn=new Array(qt>1?qt-1:0),Yt=1;Yt<qt;Yt++)cn[Yt-1]=arguments[Yt];(pt=Qe.onContextMenu)===null||pt===void 0||pt.call.apply(pt,[Qe,nt].concat(cn))}),X&&(Ve.className=k(Qe.className,X));var bn=i.useRef(!1);bn.current||(bn.current=w||et||Ke);var xn=D(D({},Qe),Ve),er={},wr=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];wr.forEach(function(nt){Z[nt]&&(er[nt]=function(){for(var pt,qt=arguments.length,cn=new Array(qt),Yt=0;Yt<qt;Yt++)cn[Yt]=arguments[Yt];(pt=xn[nt])===null||pt===void 0||pt.call.apply(pt,[xn].concat(cn)),Z[nt].apply(Z,cn)})});var Dl=i.cloneElement(Me,D(D({},xn),er)),Ll={x:lt,y:xt},Al=G?D({},G!==!0?G:{}):null;return i.createElement(i.Fragment,null,i.createElement(Bn,{disabled:!et,ref:Ee,onResize:rn},i.createElement(eO,{getTriggerDOMNode:oe},Dl)),bn.current&&i.createElement(Hf.Provider,{value:fe},i.createElement(JE,{portal:e,ref:Oe,prefixCls:a,popup:P,className:k(N,jt),style:M,target:de,onMouseEnter:Gt,onMouseLeave:Gn,onPointerEnter:Gt,zIndex:B,open:et,keepDom:Ke,fresh:K,onClick:A,onPointerDownCapture:Ct,mask:$,motion:ft,maskMotion:mt,onVisibleChanged:mn,onPrepare:Wn,forceRender:w,autoDestroy:q,getPopupContainer:O,align:ut,arrow:Al,arrowPos:Ll,ready:De,offsetX:rt,offsetY:tt,offsetR:Xe,offsetB:ke,onAlign:Mn,stretch:L,targetWidth:Nt/ze,targetHeight:dn/Je})))});return t}const Sl=sO(Su);var cO=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],uO=function(t){var n=t===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"}}},dO=function(t,n){var r=t.prefixCls;t.disabled;var o=t.visible,a=t.children,l=t.popupElement,s=t.animation,c=t.transitionName,u=t.dropdownStyle,d=t.dropdownClassName,f=t.direction,m=f===void 0?"ltr":f,v=t.placement,p=t.builtinPlacements,h=t.dropdownMatchSelectWidth,g=t.dropdownRender,b=t.dropdownAlign,C=t.getPopupContainer,y=t.empty,$=t.getTriggerDOMNode,S=t.onPopupVisibleChange,E=t.onPopupMouseEnter,O=at(t,cO),w="".concat(r,"-dropdown"),x=l;g&&(x=g(l));var I=i.useMemo(function(){return p||uO(h)},[p,h]),P=s?"".concat(w,"-").concat(s):c,N=typeof h=="number",M=i.useMemo(function(){return N?null:h===!1?"minWidth":"width"},[h,N]),R=u;N&&(R=D(D({},R),{},{width:h}));var _=i.useRef(null);return i.useImperativeHandle(n,function(){return{getPopupElement:function(){var z;return(z=_.current)===null||z===void 0?void 0:z.popupElement}}}),i.createElement(Sl,me({},O,{showAction:S?["click"]:[],hideAction:S?["click"]:[],popupPlacement:v||(m==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:I,prefixCls:w,popupTransitionName:P,popup:i.createElement("div",{onMouseEnter:E},x),ref:_,stretch:M,popupAlign:b,popupVisible:o,getPopupContainer:C,popupClassName:k(d,j({},"".concat(w,"-empty"),y)),popupStyle:R,getTriggerDOMNode:$,onPopupVisibleChange:S}),a)},fO=i.forwardRef(dO);function Uf(e,t){var n=e.key,r;return"value"in e&&(r=e.value),n??(r!==void 0?r:"rc-index-key-".concat(t))}function Mc(e){return typeof e<"u"&&!Number.isNaN(e)}function Ap(e,t){var n=e||{},r=n.label,o=n.value,a=n.options,l=n.groupLabel,s=r||(t?"children":"label");return{label:s,value:o||"value",options:a||"options",groupLabel:l||s}}function mO(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],a=Ap(n,!1),l=a.label,s=a.value,c=a.options,u=a.groupLabel;function d(f,m){Array.isArray(f)&&f.forEach(function(v){if(m||!(c in v)){var p=v[s];o.push({key:Uf(v,o.length),groupOption:m,data:v,label:v[l],value:p})}else{var h=v[u];h===void 0&&r&&(h=v.label),o.push({key:Uf(v,o.length),group:!0,data:v,label:h}),d(v[c],!0)}})}return d(e,!1),o}function Tc(e){var t=D({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return Ut(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var vO=function(t,n,r){if(!n||!n.length)return null;var o=!1,a=function s(c,u){var d=ug(u),f=d[0],m=d.slice(1);if(!f)return[c];var v=c.split(f);return o=o||v.length>1,v.reduce(function(p,h){return[].concat(ge(p),ge(s(h,m)))},[]).filter(Boolean)},l=a(t,n);return o?typeof r<"u"?l.slice(0,r):l:null},Iu=i.createContext(null);function gO(e){var t=e.visible,n=e.values;if(!t)return null;var r=50;return i.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(n.slice(0,r).map(function(o){var a=o.label,l=o.value;return["number","string"].includes(Ue(a))?a:l}).join(", ")),n.length>r?", ...":null)}var pO=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],hO=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],_c=function(t){return t==="tags"||t==="multiple"},bO=i.forwardRef(function(e,t){var n,r=e.id,o=e.prefixCls,a=e.className,l=e.showSearch,s=e.tagRender,c=e.direction,u=e.omitDomProps,d=e.displayValues,f=e.onDisplayValuesChange,m=e.emptyOptions,v=e.notFoundContent,p=v===void 0?"Not Found":v,h=e.onClear,g=e.mode,b=e.disabled,C=e.loading,y=e.getInputElement,$=e.getRawInputElement,S=e.open,E=e.defaultOpen,O=e.onDropdownVisibleChange,w=e.activeValue,x=e.onActiveValueChange,I=e.activeDescendantId,P=e.searchValue,N=e.autoClearSearchValue,M=e.onSearch,R=e.onSearchSplit,_=e.tokenSeparators,T=e.allowClear,z=e.prefix,B=e.suffixIcon,L=e.clearIcon,F=e.OptionList,K=e.animation,W=e.transitionName,A=e.dropdownStyle,V=e.dropdownClassName,G=e.dropdownMatchSelectWidth,U=e.dropdownRender,ne=e.dropdownAlign,J=e.placement,Q=e.builtinPlacements,le=e.getPopupContainer,re=e.showAction,X=re===void 0?[]:re,oe=e.onFocus,Z=e.onBlur,q=e.onKeyUp,Y=e.onKeyDown,ie=e.onMouseDown,ue=at(e,pO),he=_c(g),be=(l!==void 0?l:he)||g==="combobox",ae=D({},ue);hO.forEach(function(Ye){delete ae[Ye]}),u==null||u.forEach(function(Ye){delete ae[Ye]});var fe=i.useState(!1),se=ee(fe,2),ce=se[0],Se=se[1];i.useEffect(function(){Se(Ou())},[]);var we=i.useRef(null),je=i.useRef(null),Ne=i.useRef(null),Oe=i.useRef(null),Te=i.useRef(null),ve=i.useRef(!1),de=$E(),xe=ee(de,3),Ce=xe[0],Ee=xe[1],Me=xe[2];i.useImperativeHandle(t,function(){var Ye,qe;return{focus:(Ye=Oe.current)===null||Ye===void 0?void 0:Ye.focus,blur:(qe=Oe.current)===null||qe===void 0?void 0:qe.blur,scrollTo:function(It){var Dt;return(Dt=Te.current)===null||Dt===void 0?void 0:Dt.scrollTo(It)},nativeElement:we.current||je.current}});var Qe=i.useMemo(function(){var Ye;if(g!=="combobox")return P;var qe=(Ye=d[0])===null||Ye===void 0?void 0:Ye.value;return typeof qe=="string"||typeof qe=="number"?String(qe):""},[P,g,d]),Ve=g==="combobox"&&typeof y=="function"&&y()||null,Fe=typeof $=="function"&&$(),ft=$r(je,Fe==null||(n=Fe.props)===null||n===void 0?void 0:n.ref),mt=i.useState(!1),ot=ee(mt,2),Bt=ot[0],bt=ot[1];Rt(function(){bt(!0)},[]);var ct=ln(!1,{defaultValue:E,value:S}),et=ee(ct,2),gt=et[0],dt=et[1],_e=Bt?gt:!1,Ge=!p&&m;(b||Ge&&_e&&g==="combobox")&&(_e=!1);var He=Ge?!1:_e,$e=i.useCallback(function(Ye){var qe=Ye!==void 0?Ye:!_e;b||(dt(qe),_e!==qe&&(O==null||O(qe)))},[b,_e,dt,O]),ye=i.useMemo(function(){return(_||[]).some(function(Ye){return[`
|
|
175
|
+
`,`\r
|
|
176
|
+
`].includes(Ye)})},[_]),pe=i.useContext(Iu)||{},Ie=pe.maxCount,Ke=pe.rawValues,We=function(qe,Nt,It){if(!(he&&Mc(Ie)&&(Ke==null?void 0:Ke.size)>=Ie)){var Dt=!0,Vt=qe;x==null||x(null);var dn=vO(qe,_,Mc(Ie)?Ie-Ke.size:void 0),Zt=It?null:dn;return g!=="combobox"&&Zt&&(Vt="",R==null||R(Zt),$e(!1),Dt=!1),M&&Qe!==Vt&&M(Vt,{source:Nt?"typing":"effect"}),Dt}},vt=function(qe){!qe||!qe.trim()||M(qe,{source:"submit"})};i.useEffect(function(){!_e&&!he&&g!=="combobox"&&We("",!1,!1)},[_e]),i.useEffect(function(){gt&&b&&dt(!1),b&&!ve.current&&Ee(!1)},[b]);var Be=Tp(),Pe=ee(Be,2),Ze=Pe[0],yt=Pe[1],St=i.useRef(!1),$t=function(qe){var Nt=Ze(),It=qe.key,Dt=It==="Enter";if(Dt&&(g!=="combobox"&&qe.preventDefault(),_e||$e(!0)),yt(!!Qe),It==="Backspace"&&!Nt&&he&&!Qe&&d.length){for(var Vt=ge(d),dn=null,Zt=Vt.length-1;Zt>=0;Zt-=1){var fn=Vt[Zt];if(!fn.disabled){Vt.splice(Zt,1),dn=fn;break}}dn&&f(Vt,{type:"remove",values:[dn]})}for(var rn=arguments.length,mn=new Array(rn>1?rn-1:0),Wn=1;Wn<rn;Wn++)mn[Wn-1]=arguments[Wn];if(_e&&(!Dt||!St.current)){var st;Dt&&(St.current=!0),(st=Te.current)===null||st===void 0||st.onKeyDown.apply(st,[qe].concat(mn))}Y==null||Y.apply(void 0,[qe].concat(mn))},_t=function(qe){for(var Nt=arguments.length,It=new Array(Nt>1?Nt-1:0),Dt=1;Dt<Nt;Dt++)It[Dt-1]=arguments[Dt];if(_e){var Vt;(Vt=Te.current)===null||Vt===void 0||Vt.onKeyUp.apply(Vt,[qe].concat(It))}qe.key==="Enter"&&(St.current=!1),q==null||q.apply(void 0,[qe].concat(It))},ht=function(qe){var Nt=d.filter(function(It){return It!==qe});f(Nt,{type:"remove",values:[qe]})},Ot=function(){St.current=!1},Re=i.useRef(!1),De=function(){Ee(!0),b||(oe&&!Re.current&&oe.apply(void 0,arguments),X.includes("focus")&&$e(!0)),Re.current=!0},rt=function(){ve.current=!0,Ee(!1,function(){Re.current=!1,ve.current=!1,$e(!1)}),!b&&(Qe&&(g==="tags"?M(Qe,{source:"submit"}):g==="multiple"&&M("",{source:"blur"})),Z&&Z.apply(void 0,arguments))},tt=[];i.useEffect(function(){return function(){tt.forEach(function(Ye){return clearTimeout(Ye)}),tt.splice(0,tt.length)}},[]);var Xe=function(qe){var Nt,It=qe.target,Dt=(Nt=Ne.current)===null||Nt===void 0?void 0:Nt.getPopupElement();if(Dt&&Dt.contains(It)){var Vt=setTimeout(function(){var rn=tt.indexOf(Vt);if(rn!==-1&&tt.splice(rn,1),Me(),!ce&&!Dt.contains(document.activeElement)){var mn;(mn=Oe.current)===null||mn===void 0||mn.focus()}});tt.push(Vt)}for(var dn=arguments.length,Zt=new Array(dn>1?dn-1:0),fn=1;fn<dn;fn++)Zt[fn-1]=arguments[fn];ie==null||ie.apply(void 0,[qe].concat(Zt))},ke=i.useState({}),lt=ee(ke,2),xt=lt[1];function ze(){xt({})}var Je;Fe&&(Je=function(qe){$e(qe)}),wE(function(){var Ye;return[we.current,(Ye=Ne.current)===null||Ye===void 0?void 0:Ye.getPopupElement()]},He,$e,!!Fe);var ut=i.useMemo(function(){return D(D({},e),{},{notFoundContent:p,open:_e,triggerOpen:He,id:r,showSearch:be,multiple:he,toggleOpen:$e})},[e,p,He,_e,r,be,he,$e]),Kt=!!B||C,Qt;Kt&&(Qt=i.createElement(Cl,{className:k("".concat(o,"-arrow"),j({},"".concat(o,"-arrow-loading"),C)),customizeIcon:B,customizeIconProps:{loading:C,searchValue:Qe,open:_e,focused:Ce,showSearch:be}}));var pn=function(){var qe;h==null||h(),(qe=Oe.current)===null||qe===void 0||qe.focus(),f([],{type:"clear",values:d}),We("",!1,!1)},hn=SE(o,pn,d,T,L,b,Qe,g),sn=hn.allowClear,yn=hn.clearIcon,Cn=i.createElement(F,{ref:Te}),Mn=k(o,a,j(j(j(j(j(j(j(j(j(j({},"".concat(o,"-focused"),Ce),"".concat(o,"-multiple"),he),"".concat(o,"-single"),!he),"".concat(o,"-allow-clear"),T),"".concat(o,"-show-arrow"),Kt),"".concat(o,"-disabled"),b),"".concat(o,"-loading"),C),"".concat(o,"-open"),_e),"".concat(o,"-customize-input"),Ve),"".concat(o,"-show-search"),be)),Sn=i.createElement(fO,{ref:Ne,disabled:b,prefixCls:o,visible:He,popupElement:Cn,animation:K,transitionName:W,dropdownStyle:A,dropdownClassName:V,direction:c,dropdownMatchSelectWidth:G,dropdownRender:U,dropdownAlign:ne,placement:J,builtinPlacements:Q,getPopupContainer:le,empty:m,getTriggerDOMNode:function(qe){return je.current||qe},onPopupVisibleChange:Je,onPopupMouseEnter:ze},Fe?i.cloneElement(Fe,{ref:ft}):i.createElement(XE,me({},e,{domRef:je,prefixCls:o,inputElement:Ve,ref:Oe,id:r,prefix:z,showSearch:be,autoClearSearchValue:N,mode:g,activeDescendantId:I,tagRender:s,values:d,open:_e,onToggleOpen:$e,activeValue:w,searchValue:Qe,onSearch:We,onSearchSubmit:vt,onRemove:ht,tokenWithEnter:ye,onInputBlur:Ot}))),jt;return Fe?jt=Sn:jt=i.createElement("div",me({className:Mn},ae,{ref:we,onMouseDown:Xe,onKeyDown:$t,onKeyUp:_t,onFocus:De,onBlur:rt}),i.createElement(gO,{visible:Ce&&!_e,values:d}),Sn,Qt,sn&&yn),i.createElement(Mp.Provider,{value:ut},jt)}),Ru=function(){return null};Ru.isSelectOptGroup=!0;var Pu=function(){return null};Pu.isSelectOption=!0;var Fp=i.forwardRef(function(e,t){var n=e.height,r=e.offsetY,o=e.offsetX,a=e.children,l=e.prefixCls,s=e.onInnerResize,c=e.innerProps,u=e.rtl,d=e.extra,f={},m={display:"flex",flexDirection:"column"};return r!==void 0&&(f={height:n,position:"relative",overflow:"hidden"},m=D(D({},m),{},j(j(j(j(j({transform:"translateY(".concat(r,"px)")},u?"marginRight":"marginLeft",-o),"position","absolute"),"left",0),"right",0),"top",0))),i.createElement("div",{style:f},i.createElement(Bn,{onResize:function(p){var h=p.offsetHeight;h&&s&&s()}},i.createElement("div",me({style:m,className:k(j({},"".concat(l,"-holder-inner"),l)),ref:t},c),a,d)))});Fp.displayName="Filler";function yO(e){var t=e.children,n=e.setRef,r=i.useCallback(function(o){n(o)},[]);return i.cloneElement(t,{ref:r})}function CO(e,t,n,r,o,a,l,s){var c=s.getKey;return e.slice(t,n+1).map(function(u,d){var f=t+d,m=l(u,f,{style:{width:r},offsetX:o}),v=c(u);return i.createElement(yO,{key:v,setRef:function(h){return a(u,h)}},m)})}function SO(e,t,n){var r=e.length,o=t.length,a,l;if(r===0&&o===0)return null;r<o?(a=e,l=t):(a=t,l=e);var s={__EMPTY_ITEM__:!0};function c(p){return p!==void 0?n(p):s}for(var u=null,d=Math.abs(r-o)!==1,f=0;f<l.length;f+=1){var m=c(a[f]),v=c(l[f]);if(m!==v){u=f,d=d||m!==c(l[f+1]);break}}return u===null?null:{index:u,multiple:d}}function xO(e,t,n){var r=i.useState(e),o=ee(r,2),a=o[0],l=o[1],s=i.useState(null),c=ee(s,2),u=c[0],d=c[1];return i.useEffect(function(){var f=SO(a||[],e||[],t);(f==null?void 0:f.index)!==void 0&&d(e[f.index]),l(e)},[e]),[u]}var Xf=(typeof navigator>"u"?"undefined":Ue(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const Hp=(function(e,t,n,r){var o=i.useRef(!1),a=i.useRef(null);function l(){clearTimeout(a.current),o.current=!0,a.current=setTimeout(function(){o.current=!1},50)}var s=i.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,function(c,u){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,f=c?u<0&&s.current.left||u>0&&s.current.right:u<0&&s.current.top||u>0&&s.current.bottom;return d&&f?(clearTimeout(a.current),o.current=!1):(!f||o.current)&&l(),!o.current&&f}});function $O(e,t,n,r,o,a,l){var s=i.useRef(0),c=i.useRef(null),u=i.useRef(null),d=i.useRef(!1),f=Hp(t,n,r,o);function m(C,y){if(Et.cancel(c.current),!f(!1,y)){var $=C;if(!$._virtualHandled)$._virtualHandled=!0;else return;s.current+=y,u.current=y,Xf||$.preventDefault(),c.current=Et(function(){var S=d.current?10:1;l(s.current*S,!1),s.current=0})}}function v(C,y){l(y,!0),Xf||C.preventDefault()}var p=i.useRef(null),h=i.useRef(null);function g(C){if(e){Et.cancel(h.current),h.current=Et(function(){p.current=null},2);var y=C.deltaX,$=C.deltaY,S=C.shiftKey,E=y,O=$;(p.current==="sx"||!p.current&&S&&$&&!y)&&(E=$,O=0,p.current="sx");var w=Math.abs(E),x=Math.abs(O);p.current===null&&(p.current=a&&w>x?"x":"y"),p.current==="y"?m(C,O):v(C,E)}}function b(C){e&&(d.current=C.detail===u.current)}return[g,b]}function wO(e,t,n,r){var o=i.useMemo(function(){return[new Map,[]]},[e,n.id,r]),a=ee(o,2),l=a[0],s=a[1],c=function(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:d,m=l.get(d),v=l.get(f);if(m===void 0||v===void 0)for(var p=e.length,h=s.length;h<p;h+=1){var g,b=e[h],C=t(b);l.set(C,h);var y=(g=n.get(C))!==null&&g!==void 0?g:r;if(s[h]=(s[h-1]||0)+y,C===d&&(m=h),C===f&&(v=h),m!==void 0&&v!==void 0)break}return{top:s[m-1]||0,bottom:s[v]}};return c}var EO=(function(){function e(){tn(this,e),j(this,"maps",void 0),j(this,"id",0),j(this,"diffRecords",new Map),this.maps=Object.create(null)}return nn(e,[{key:"set",value:function(n,r){this.diffRecords.set(n,this.maps[n]),this.maps[n]=r,this.id+=1}},{key:"get",value:function(n){return this.maps[n]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),e})();function Yf(e){var t=parseFloat(e);return isNaN(t)?0:t}function OO(e,t,n){var r=i.useState(0),o=ee(r,2),a=o[0],l=o[1],s=i.useRef(new Map),c=i.useRef(new EO),u=i.useRef(0);function d(){u.current+=1}function f(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;d();var p=function(){var b=!1;s.current.forEach(function(C,y){if(C&&C.offsetParent){var $=C.offsetHeight,S=getComputedStyle(C),E=S.marginTop,O=S.marginBottom,w=Yf(E),x=Yf(O),I=$+w+x;c.current.get(y)!==I&&(c.current.set(y,I),b=!0)}}),b&&l(function(C){return C+1})};if(v)p();else{u.current+=1;var h=u.current;Promise.resolve().then(function(){h===u.current&&p()})}}function m(v,p){var h=e(v);s.current.get(h),p?(s.current.set(h,p),f()):s.current.delete(h)}return i.useEffect(function(){return d},[]),[m,f,c.current,a]}var Qf=14/15;function IO(e,t,n){var r=i.useRef(!1),o=i.useRef(0),a=i.useRef(0),l=i.useRef(null),s=i.useRef(null),c,u=function(v){if(r.current){var p=Math.ceil(v.touches[0].pageX),h=Math.ceil(v.touches[0].pageY),g=o.current-p,b=a.current-h,C=Math.abs(g)>Math.abs(b);C?o.current=p:a.current=h;var y=n(C,C?g:b,!1,v);y&&v.preventDefault(),clearInterval(s.current),y&&(s.current=setInterval(function(){C?g*=Qf:b*=Qf;var $=Math.floor(C?g:b);(!n(C,$,!0)||Math.abs($)<=.1)&&clearInterval(s.current)},16))}},d=function(){r.current=!1,c()},f=function(v){c(),v.touches.length===1&&!r.current&&(r.current=!0,o.current=Math.ceil(v.touches[0].pageX),a.current=Math.ceil(v.touches[0].pageY),l.current=v.target,l.current.addEventListener("touchmove",u,{passive:!1}),l.current.addEventListener("touchend",d,{passive:!0}))};c=function(){l.current&&(l.current.removeEventListener("touchmove",u),l.current.removeEventListener("touchend",d))},Rt(function(){return e&&t.current.addEventListener("touchstart",f,{passive:!0}),function(){var m;(m=t.current)===null||m===void 0||m.removeEventListener("touchstart",f),c(),clearInterval(s.current)}},[e])}function Zf(e){return Math.floor(Math.pow(e,.5))}function zc(e,t){var n="touches"in e?e.touches[0]:e;return n[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}function RO(e,t,n){i.useEffect(function(){var r=t.current;if(e&&r){var o=!1,a,l,s=function(){Et.cancel(a)},c=function m(){s(),a=Et(function(){n(l),m()})},u=function(){o=!1,s()},d=function(v){if(!(v.target.draggable||v.button!==0)){var p=v;p._virtualHandled||(p._virtualHandled=!0,o=!0)}},f=function(v){if(o){var p=zc(v,!1),h=r.getBoundingClientRect(),g=h.top,b=h.bottom;if(p<=g){var C=g-p;l=-Zf(C),c()}else if(p>=b){var y=p-b;l=Zf(y),c()}else s()}};return r.addEventListener("mousedown",d),r.ownerDocument.addEventListener("mouseup",u),r.ownerDocument.addEventListener("mousemove",f),r.ownerDocument.addEventListener("dragend",u),function(){r.removeEventListener("mousedown",d),r.ownerDocument.removeEventListener("mouseup",u),r.ownerDocument.removeEventListener("mousemove",f),r.ownerDocument.removeEventListener("dragend",u),s()}}},[e])}var PO=10;function NO(e,t,n,r,o,a,l,s){var c=i.useRef(),u=i.useState(null),d=ee(u,2),f=d[0],m=d[1];return Rt(function(){if(f&&f.times<PO){if(!e.current){m(function(L){return D({},L)});return}a();var v=f.targetAlign,p=f.originAlign,h=f.index,g=f.offset,b=e.current.clientHeight,C=!1,y=v,$=null;if(b){for(var S=v||p,E=0,O=0,w=0,x=Math.min(t.length-1,h),I=0;I<=x;I+=1){var P=o(t[I]);O=E;var N=n.get(P);w=O+(N===void 0?r:N),E=w}for(var M=S==="top"?g:b-g,R=x;R>=0;R-=1){var _=o(t[R]),T=n.get(_);if(T===void 0){C=!0;break}if(M-=T,M<=0)break}switch(S){case"top":$=O-g;break;case"bottom":$=w-b+g;break;default:{var z=e.current.scrollTop,B=z+b;O<z?y="top":w>B&&(y="bottom")}}$!==null&&l($),$!==f.lastTop&&(C=!0)}C&&m(D(D({},f),{},{times:f.times+1,targetAlign:y,lastTop:$}))}},[f,e.current]),function(v){if(v==null){s();return}if(Et.cancel(c.current),typeof v=="number")l(v);else if(v&&Ue(v)==="object"){var p,h=v.align;"index"in v?p=v.index:p=t.findIndex(function(C){return o(C)===v.key});var g=v.offset,b=g===void 0?0:g;m({times:0,index:p,offset:b,originAlign:h})}}}var Jf=i.forwardRef(function(e,t){var n=e.prefixCls,r=e.rtl,o=e.scrollOffset,a=e.scrollRange,l=e.onStartMove,s=e.onStopMove,c=e.onScroll,u=e.horizontal,d=e.spinSize,f=e.containerSize,m=e.style,v=e.thumbStyle,p=e.showScrollBar,h=i.useState(!1),g=ee(h,2),b=g[0],C=g[1],y=i.useState(null),$=ee(y,2),S=$[0],E=$[1],O=i.useState(null),w=ee(O,2),x=w[0],I=w[1],P=!r,N=i.useRef(),M=i.useRef(),R=i.useState(p),_=ee(R,2),T=_[0],z=_[1],B=i.useRef(),L=function(){p===!0||p===!1||(clearTimeout(B.current),z(!0),B.current=setTimeout(function(){z(!1)},3e3))},F=a-f||0,K=f-d||0,W=i.useMemo(function(){if(o===0||F===0)return 0;var re=o/F;return re*K},[o,F,K]),A=function(X){X.stopPropagation(),X.preventDefault()},V=i.useRef({top:W,dragging:b,pageY:S,startTop:x});V.current={top:W,dragging:b,pageY:S,startTop:x};var G=function(X){C(!0),E(zc(X,u)),I(V.current.top),l(),X.stopPropagation(),X.preventDefault()};i.useEffect(function(){var re=function(q){q.preventDefault()},X=N.current,oe=M.current;return X.addEventListener("touchstart",re,{passive:!1}),oe.addEventListener("touchstart",G,{passive:!1}),function(){X.removeEventListener("touchstart",re),oe.removeEventListener("touchstart",G)}},[]);var U=i.useRef();U.current=F;var ne=i.useRef();ne.current=K,i.useEffect(function(){if(b){var re,X=function(q){var Y=V.current,ie=Y.dragging,ue=Y.pageY,he=Y.startTop;Et.cancel(re);var be=N.current.getBoundingClientRect(),ae=f/(u?be.width:be.height);if(ie){var fe=(zc(q,u)-ue)*ae,se=he;!P&&u?se-=fe:se+=fe;var ce=U.current,Se=ne.current,we=Se?se/Se:0,je=Math.ceil(we*ce);je=Math.max(je,0),je=Math.min(je,ce),re=Et(function(){c(je,u)})}},oe=function(){C(!1),s()};return window.addEventListener("mousemove",X,{passive:!0}),window.addEventListener("touchmove",X,{passive:!0}),window.addEventListener("mouseup",oe,{passive:!0}),window.addEventListener("touchend",oe,{passive:!0}),function(){window.removeEventListener("mousemove",X),window.removeEventListener("touchmove",X),window.removeEventListener("mouseup",oe),window.removeEventListener("touchend",oe),Et.cancel(re)}}},[b]),i.useEffect(function(){return L(),function(){clearTimeout(B.current)}},[o]),i.useImperativeHandle(t,function(){return{delayHidden:L}});var J="".concat(n,"-scrollbar"),Q={position:"absolute",visibility:T?null:"hidden"},le={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return u?(Object.assign(Q,{height:8,left:0,right:0,bottom:0}),Object.assign(le,j({height:"100%",width:d},P?"left":"right",W))):(Object.assign(Q,j({width:8,top:0,bottom:0},P?"right":"left",0)),Object.assign(le,{width:"100%",height:d,top:W})),i.createElement("div",{ref:N,className:k(J,j(j(j({},"".concat(J,"-horizontal"),u),"".concat(J,"-vertical"),!u),"".concat(J,"-visible"),T)),style:D(D({},Q),m),onMouseDown:A,onMouseMove:L},i.createElement("div",{ref:M,className:k("".concat(J,"-thumb"),j({},"".concat(J,"-thumb-moving"),b)),style:D(D({},le),v),onMouseDown:G}))}),MO=20;function em(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=e/t*e;return isNaN(n)&&(n=0),n=Math.max(n,MO),Math.floor(n)}var TO=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],_O=[],zO={overflowY:"auto",overflowAnchor:"none"};function jO(e,t){var n=e.prefixCls,r=n===void 0?"rc-virtual-list":n,o=e.className,a=e.height,l=e.itemHeight,s=e.fullHeight,c=s===void 0?!0:s,u=e.style,d=e.data,f=e.children,m=e.itemKey,v=e.virtual,p=e.direction,h=e.scrollWidth,g=e.component,b=g===void 0?"div":g,C=e.onScroll,y=e.onVirtualScroll,$=e.onVisibleChange,S=e.innerProps,E=e.extraRender,O=e.styles,w=e.showScrollBar,x=w===void 0?"optional":w,I=at(e,TO),P=i.useCallback(function(Re){return typeof m=="function"?m(Re):Re==null?void 0:Re[m]},[m]),N=OO(P),M=ee(N,4),R=M[0],_=M[1],T=M[2],z=M[3],B=!!(v!==!1&&a&&l),L=i.useMemo(function(){return Object.values(T.maps).reduce(function(Re,De){return Re+De},0)},[T.id,T.maps]),F=B&&d&&(Math.max(l*d.length,L)>a||!!h),K=p==="rtl",W=k(r,j({},"".concat(r,"-rtl"),K),o),A=d||_O,V=i.useRef(),G=i.useRef(),U=i.useRef(),ne=i.useState(0),J=ee(ne,2),Q=J[0],le=J[1],re=i.useState(0),X=ee(re,2),oe=X[0],Z=X[1],q=i.useState(!1),Y=ee(q,2),ie=Y[0],ue=Y[1],he=function(){ue(!0)},be=function(){ue(!1)},ae={getKey:P};function fe(Re){le(function(De){var rt;typeof Re=="function"?rt=Re(De):rt=Re;var tt=bt(rt);return V.current.scrollTop=tt,tt})}var se=i.useRef({start:0,end:A.length}),ce=i.useRef(),Se=xO(A,P),we=ee(Se,1),je=we[0];ce.current=je;var Ne=i.useMemo(function(){if(!B)return{scrollHeight:void 0,start:0,end:A.length-1,offset:void 0};if(!F){var Re;return{scrollHeight:((Re=G.current)===null||Re===void 0?void 0:Re.offsetHeight)||0,start:0,end:A.length-1,offset:void 0}}for(var De=0,rt,tt,Xe,ke=A.length,lt=0;lt<ke;lt+=1){var xt=A[lt],ze=P(xt),Je=T.get(ze),ut=De+(Je===void 0?l:Je);ut>=Q&&rt===void 0&&(rt=lt,tt=De),ut>Q+a&&Xe===void 0&&(Xe=lt),De=ut}return rt===void 0&&(rt=0,tt=0,Xe=Math.ceil(a/l)),Xe===void 0&&(Xe=A.length-1),Xe=Math.min(Xe+1,A.length-1),{scrollHeight:De,start:rt,end:Xe,offset:tt}},[F,B,Q,A,z,a]),Oe=Ne.scrollHeight,Te=Ne.start,ve=Ne.end,de=Ne.offset;se.current.start=Te,se.current.end=ve,i.useLayoutEffect(function(){var Re=T.getRecord();if(Re.size===1){var De=Array.from(Re.keys())[0],rt=Re.get(De),tt=A[Te];if(tt&&rt===void 0){var Xe=P(tt);if(Xe===De){var ke=T.get(De),lt=ke-l;fe(function(xt){return xt+lt})}}}T.resetRecord()},[Oe]);var xe=i.useState({width:0,height:a}),Ce=ee(xe,2),Ee=Ce[0],Me=Ce[1],Qe=function(De){Me({width:De.offsetWidth,height:De.offsetHeight})},Ve=i.useRef(),Fe=i.useRef(),ft=i.useMemo(function(){return em(Ee.width,h)},[Ee.width,h]),mt=i.useMemo(function(){return em(Ee.height,Oe)},[Ee.height,Oe]),ot=Oe-a,Bt=i.useRef(ot);Bt.current=ot;function bt(Re){var De=Re;return Number.isNaN(Bt.current)||(De=Math.min(De,Bt.current)),De=Math.max(De,0),De}var ct=Q<=0,et=Q>=ot,gt=oe<=0,dt=oe>=h,_e=Hp(ct,et,gt,dt),Ge=function(){return{x:K?-oe:oe,y:Q}},He=i.useRef(Ge()),$e=Lt(function(Re){if(y){var De=D(D({},Ge()),Re);(He.current.x!==De.x||He.current.y!==De.y)&&(y(De),He.current=De)}});function ye(Re,De){var rt=Re;De?(br.flushSync(function(){Z(rt)}),$e()):fe(rt)}function pe(Re){var De=Re.currentTarget.scrollTop;De!==Q&&fe(De),C==null||C(Re),$e()}var Ie=function(De){var rt=De,tt=h?h-Ee.width:0;return rt=Math.max(rt,0),rt=Math.min(rt,tt),rt},Ke=Lt(function(Re,De){De?(br.flushSync(function(){Z(function(rt){var tt=rt+(K?-Re:Re);return Ie(tt)})}),$e()):fe(function(rt){var tt=rt+Re;return tt})}),We=$O(B,ct,et,gt,dt,!!h,Ke),vt=ee(We,2),Be=vt[0],Pe=vt[1];IO(B,V,function(Re,De,rt,tt){var Xe=tt;return _e(Re,De,rt)?!1:!Xe||!Xe._virtualHandled?(Xe&&(Xe._virtualHandled=!0),Be({preventDefault:function(){},deltaX:Re?De:0,deltaY:Re?0:De}),!0):!1}),RO(F,V,function(Re){fe(function(De){return De+Re})}),Rt(function(){function Re(rt){var tt=ct&&rt.detail<0,Xe=et&&rt.detail>0;B&&!tt&&!Xe&&rt.preventDefault()}var De=V.current;return De.addEventListener("wheel",Be,{passive:!1}),De.addEventListener("DOMMouseScroll",Pe,{passive:!0}),De.addEventListener("MozMousePixelScroll",Re,{passive:!1}),function(){De.removeEventListener("wheel",Be),De.removeEventListener("DOMMouseScroll",Pe),De.removeEventListener("MozMousePixelScroll",Re)}},[B,ct,et]),Rt(function(){if(h){var Re=Ie(oe);Z(Re),$e({x:Re})}},[Ee.width,h]);var Ze=function(){var De,rt;(De=Ve.current)===null||De===void 0||De.delayHidden(),(rt=Fe.current)===null||rt===void 0||rt.delayHidden()},yt=NO(V,A,T,l,P,function(){return _(!0)},fe,Ze);i.useImperativeHandle(t,function(){return{nativeElement:U.current,getScrollInfo:Ge,scrollTo:function(De){function rt(tt){return tt&&Ue(tt)==="object"&&("left"in tt||"top"in tt)}rt(De)?(De.left!==void 0&&Z(Ie(De.left)),yt(De.top)):yt(De)}}}),Rt(function(){if($){var Re=A.slice(Te,ve+1);$(Re,A)}},[Te,ve,A]);var St=wO(A,P,T,l),$t=E==null?void 0:E({start:Te,end:ve,virtual:F,offsetX:oe,offsetY:de,rtl:K,getSize:St}),_t=CO(A,Te,ve,h,oe,R,f,ae),ht=null;a&&(ht=D(j({},c?"height":"maxHeight",a),zO),B&&(ht.overflowY="hidden",h&&(ht.overflowX="hidden"),ie&&(ht.pointerEvents="none")));var Ot={};return K&&(Ot.dir="rtl"),i.createElement("div",me({ref:U,style:D(D({},u),{},{position:"relative"}),className:W},Ot,I),i.createElement(Bn,{onResize:Qe},i.createElement(b,{className:"".concat(r,"-holder"),style:ht,ref:V,onScroll:pe,onMouseEnter:Ze},i.createElement(Fp,{prefixCls:r,height:Oe,offsetX:oe,offsetY:de,scrollWidth:h,onInnerResize:_,ref:G,innerProps:S,rtl:K,extra:$t},_t))),F&&Oe>a&&i.createElement(Jf,{ref:Ve,prefixCls:r,scrollOffset:Q,scrollRange:Oe,rtl:K,onScroll:ye,onStartMove:he,onStopMove:be,spinSize:mt,containerSize:Ee.height,style:O==null?void 0:O.verticalScrollBar,thumbStyle:O==null?void 0:O.verticalScrollBarThumb,showScrollBar:x}),F&&h>Ee.width&&i.createElement(Jf,{ref:Fe,prefixCls:r,scrollOffset:oe,scrollRange:h,rtl:K,onScroll:ye,onStartMove:he,onStopMove:be,spinSize:ft,containerSize:Ee.width,horizontal:!0,style:O==null?void 0:O.horizontalScrollBar,thumbStyle:O==null?void 0:O.horizontalScrollBarThumb,showScrollBar:x}))}var xl=i.forwardRef(jO);xl.displayName="List";function BO(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var DO=["disabled","title","children","style","className"];function tm(e){return typeof e=="string"||typeof e=="number"}var LO=function(t,n){var r=xE(),o=r.prefixCls,a=r.id,l=r.open,s=r.multiple,c=r.mode,u=r.searchValue,d=r.toggleOpen,f=r.notFoundContent,m=r.onPopupScroll,v=i.useContext(Iu),p=v.maxCount,h=v.flattenOptions,g=v.onActiveValue,b=v.defaultActiveFirstOption,C=v.onSelect,y=v.menuItemSelectedIcon,$=v.rawValues,S=v.fieldNames,E=v.virtual,O=v.direction,w=v.listHeight,x=v.listItemHeight,I=v.optionRender,P="".concat(o,"-item"),N=no(function(){return h},[l,h],function(re,X){return X[0]&&re[1]!==X[1]}),M=i.useRef(null),R=i.useMemo(function(){return s&&Mc(p)&&($==null?void 0:$.size)>=p},[s,p,$==null?void 0:$.size]),_=function(X){X.preventDefault()},T=function(X){var oe;(oe=M.current)===null||oe===void 0||oe.scrollTo(typeof X=="number"?{index:X}:X)},z=i.useCallback(function(re){return c==="combobox"?!1:$.has(re)},[c,ge($).toString(),$.size]),B=function(X){for(var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Z=N.length,q=0;q<Z;q+=1){var Y=(X+q*oe+Z)%Z,ie=N[Y]||{},ue=ie.group,he=ie.data;if(!ue&&!(he!=null&&he.disabled)&&(z(he.value)||!R))return Y}return-1},L=i.useState(function(){return B(0)}),F=ee(L,2),K=F[0],W=F[1],A=function(X){var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;W(X);var Z={source:oe?"keyboard":"mouse"},q=N[X];if(!q){g(null,-1,Z);return}g(q.value,X,Z)};i.useEffect(function(){A(b!==!1?B(0):-1)},[N.length,u]);var V=i.useCallback(function(re){return c==="combobox"?String(re).toLowerCase()===u.toLowerCase():$.has(re)},[c,u,ge($).toString(),$.size]);i.useEffect(function(){var re=setTimeout(function(){if(!s&&l&&$.size===1){var oe=Array.from($)[0],Z=N.findIndex(function(q){var Y=q.data;return u?String(Y.value).startsWith(u):Y.value===oe});Z!==-1&&(A(Z),T(Z))}});if(l){var X;(X=M.current)===null||X===void 0||X.scrollTo(void 0)}return function(){return clearTimeout(re)}},[l,u]);var G=function(X){X!==void 0&&C(X,{selected:!$.has(X)}),s||d(!1)};if(i.useImperativeHandle(n,function(){return{onKeyDown:function(X){var oe=X.which,Z=X.ctrlKey;switch(oe){case Le.N:case Le.P:case Le.UP:case Le.DOWN:{var q=0;if(oe===Le.UP?q=-1:oe===Le.DOWN?q=1:BO()&&Z&&(oe===Le.N?q=1:oe===Le.P&&(q=-1)),q!==0){var Y=B(K+q,q);T(Y),A(Y,!0)}break}case Le.TAB:case Le.ENTER:{var ie,ue=N[K];ue&&!(ue!=null&&(ie=ue.data)!==null&&ie!==void 0&&ie.disabled)&&!R?G(ue.value):G(void 0),l&&X.preventDefault();break}case Le.ESC:d(!1),l&&X.stopPropagation()}},onKeyUp:function(){},scrollTo:function(X){T(X)}}}),N.length===0)return i.createElement("div",{role:"listbox",id:"".concat(a,"_list"),className:"".concat(P,"-empty"),onMouseDown:_},f);var U=Object.keys(S).map(function(re){return S[re]}),ne=function(X){return X.label};function J(re,X){var oe=re.group;return{role:oe?"presentation":"option",id:"".concat(a,"_list_").concat(X)}}var Q=function(X){var oe=N[X];if(!oe)return null;var Z=oe.data||{},q=Z.value,Y=oe.group,ie=zn(Z,!0),ue=ne(oe);return oe?i.createElement("div",me({"aria-label":typeof ue=="string"&&!Y?ue:null},ie,{key:X},J(oe,X),{"aria-selected":V(q)}),q):null},le={role:"listbox",id:"".concat(a,"_list")};return i.createElement(i.Fragment,null,E&&i.createElement("div",me({},le,{style:{height:0,width:0,overflow:"hidden"}}),Q(K-1),Q(K),Q(K+1)),i.createElement(xl,{itemKey:"key",ref:M,data:N,height:w,itemHeight:x,fullHeight:!1,onMouseDown:_,onScroll:m,virtual:E,direction:O,innerProps:E?null:le},function(re,X){var oe=re.group,Z=re.groupOption,q=re.data,Y=re.label,ie=re.value,ue=q.key;if(oe){var he,be=(he=q.title)!==null&&he!==void 0?he:tm(Y)?Y.toString():void 0;return i.createElement("div",{className:k(P,"".concat(P,"-group"),q.className),title:be},Y!==void 0?Y:ue)}var ae=q.disabled,fe=q.title;q.children;var se=q.style,ce=q.className,Se=at(q,DO),we=Xt(Se,U),je=z(ie),Ne=ae||!je&&R,Oe="".concat(P,"-option"),Te=k(P,Oe,ce,j(j(j(j({},"".concat(Oe,"-grouped"),Z),"".concat(Oe,"-active"),K===X&&!Ne),"".concat(Oe,"-disabled"),Ne),"".concat(Oe,"-selected"),je)),ve=ne(re),de=!y||typeof y=="function"||je,xe=typeof ve=="number"?ve:ve||ie,Ce=tm(xe)?xe.toString():void 0;return fe!==void 0&&(Ce=fe),i.createElement("div",me({},zn(we),E?{}:J(re,X),{"aria-selected":V(ie),className:Te,title:Ce,onMouseMove:function(){K===X||Ne||A(X)},onClick:function(){Ne||G(ie)},style:se}),i.createElement("div",{className:"".concat(Oe,"-content")},typeof I=="function"?I(re,{index:X}):xe),i.isValidElement(y)||je,de&&i.createElement(Cl,{className:"".concat(P,"-option-state"),customizeIcon:y,customizeIconProps:{value:ie,disabled:Ne,isSelected:je}},je?"✓":null))}))},AO=i.forwardRef(LO);const FO=(function(e,t){var n=i.useRef({values:new Map,options:new Map}),r=i.useMemo(function(){var a=n.current,l=a.values,s=a.options,c=e.map(function(f){if(f.label===void 0){var m;return D(D({},f),{},{label:(m=l.get(f.value))===null||m===void 0?void 0:m.label})}return f}),u=new Map,d=new Map;return c.forEach(function(f){u.set(f.value,f),d.set(f.value,t.get(f.value)||s.get(f.value))}),n.current.values=u,n.current.options=d,c},[e,t]),o=i.useCallback(function(a){return t.get(a)||n.current.options.get(a)},[t]);return[r,o]});function ps(e,t){return Dp(e).join("").toUpperCase().includes(t)}const HO=(function(e,t,n,r,o){return i.useMemo(function(){if(!n||r===!1)return e;var a=t.options,l=t.label,s=t.value,c=[],u=typeof r=="function",d=n.toUpperCase(),f=u?r:function(v,p){return o?ps(p[o],d):p[a]?ps(p[l!=="children"?l:"label"],d):ps(p[s],d)},m=u?function(v){return Tc(v)}:function(v){return v};return e.forEach(function(v){if(v[a]){var p=f(n,m(v));if(p)c.push(v);else{var h=v[a].filter(function(g){return f(n,m(g))});h.length&&c.push(D(D({},v),{},j({},a,h)))}return}f(n,m(v))&&c.push(v)}),c},[e,r,o,n,t])});var nm=0,kO=En();function VO(){var e;return kO?(e=nm,nm+=1):e="TEST_OR_SSR",e}function KO(e){var t=i.useState(),n=ee(t,2),r=n[0],o=n[1];return i.useEffect(function(){o("rc_select_".concat(VO()))},[]),e||r}var WO=["children","value"],GO=["children"];function qO(e){var t=e,n=t.key,r=t.props,o=r.children,a=r.value,l=at(r,WO);return D({key:n,value:a!==void 0?a:n,children:o},l)}function kp(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return _n(e).map(function(n,r){if(!i.isValidElement(n)||!n.type)return null;var o=n,a=o.type.isSelectOptGroup,l=o.key,s=o.props,c=s.children,u=at(s,GO);return t||!a?qO(n):D(D({key:"__RC_SELECT_GRP__".concat(l===null?r:l,"__"),label:l},u),{},{options:kp(c)})}).filter(function(n){return n})}var UO=function(t,n,r,o,a){return i.useMemo(function(){var l=t,s=!t;s&&(l=kp(n));var c=new Map,u=new Map,d=function(v,p,h){h&&typeof h=="string"&&v.set(p[h],p)},f=function m(v){for(var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,h=0;h<v.length;h+=1){var g=v[h];!g[r.options]||p?(c.set(g[r.value],g),d(u,g,r.label),d(u,g,o),d(u,g,a)):m(g[r.options],!0)}};return f(l),{options:l,valueOptions:c,labelOptions:u}},[t,n,r,o,a])};function rm(e){var t=i.useRef();t.current=e;var n=i.useCallback(function(){return t.current.apply(t,arguments)},[]);return n}var XO=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],YO=["inputValue"];function QO(e){return!e||Ue(e)!=="object"}var ZO=i.forwardRef(function(e,t){var n=e.id,r=e.mode,o=e.prefixCls,a=o===void 0?"rc-select":o,l=e.backfill,s=e.fieldNames,c=e.inputValue,u=e.searchValue,d=e.onSearch,f=e.autoClearSearchValue,m=f===void 0?!0:f,v=e.onSelect,p=e.onDeselect,h=e.dropdownMatchSelectWidth,g=h===void 0?!0:h,b=e.filterOption,C=e.filterSort,y=e.optionFilterProp,$=e.optionLabelProp,S=e.options,E=e.optionRender,O=e.children,w=e.defaultActiveFirstOption,x=e.menuItemSelectedIcon,I=e.virtual,P=e.direction,N=e.listHeight,M=N===void 0?200:N,R=e.listItemHeight,_=R===void 0?20:R,T=e.labelRender,z=e.value,B=e.defaultValue,L=e.labelInValue,F=e.onChange,K=e.maxCount,W=at(e,XO),A=KO(n),V=_c(r),G=!!(!S&&O),U=i.useMemo(function(){return b===void 0&&r==="combobox"?!1:b},[b,r]),ne=i.useMemo(function(){return Ap(s,G)},[JSON.stringify(s),G]),J=ln("",{value:u!==void 0?u:c,postState:function(ye){return ye||""}}),Q=ee(J,2),le=Q[0],re=Q[1],X=UO(S,O,ne,y,$),oe=X.valueOptions,Z=X.labelOptions,q=X.options,Y=i.useCallback(function($e){var ye=Dp($e);return ye.map(function(pe){var Ie,Ke,We,vt,Be;if(QO(pe))Ie=pe;else{var Pe;We=pe.key,Ke=pe.label,Ie=(Pe=pe.value)!==null&&Pe!==void 0?Pe:We}var Ze=oe.get(Ie);if(Ze){var yt;Ke===void 0&&(Ke=Ze==null?void 0:Ze[$||ne.label]),We===void 0&&(We=(yt=Ze==null?void 0:Ze.key)!==null&&yt!==void 0?yt:Ie),vt=Ze==null?void 0:Ze.disabled,Be=Ze==null?void 0:Ze.title}return{label:Ke,value:Ie,key:We,disabled:vt,title:Be}})},[ne,$,oe]),ie=ln(B,{value:z}),ue=ee(ie,2),he=ue[0],be=ue[1],ae=i.useMemo(function(){var $e,ye=V&&he===null?[]:he,pe=Y(ye);return r==="combobox"&&VE(($e=pe[0])===null||$e===void 0?void 0:$e.value)?[]:pe},[he,Y,r,V]),fe=FO(ae,oe),se=ee(fe,2),ce=se[0],Se=se[1],we=i.useMemo(function(){if(!r&&ce.length===1){var $e=ce[0];if($e.value===null&&($e.label===null||$e.label===void 0))return[]}return ce.map(function(ye){var pe;return D(D({},ye),{},{label:(pe=typeof T=="function"?T(ye):ye.label)!==null&&pe!==void 0?pe:ye.value})})},[r,ce,T]),je=i.useMemo(function(){return new Set(ce.map(function($e){return $e.value}))},[ce]);i.useEffect(function(){if(r==="combobox"){var $e,ye=($e=ce[0])===null||$e===void 0?void 0:$e.value;re(kE(ye)?String(ye):"")}},[ce]);var Ne=rm(function($e,ye){var pe=ye??$e;return j(j({},ne.value,$e),ne.label,pe)}),Oe=i.useMemo(function(){if(r!=="tags")return q;var $e=ge(q),ye=function(Ie){return oe.has(Ie)};return ge(ce).sort(function(pe,Ie){return pe.value<Ie.value?-1:1}).forEach(function(pe){var Ie=pe.value;ye(Ie)||$e.push(Ne(Ie,pe.label))}),$e},[Ne,q,oe,ce,r]),Te=HO(Oe,ne,le,U,y),ve=i.useMemo(function(){return r!=="tags"||!le||Te.some(function($e){return $e[y||"value"]===le})||Te.some(function($e){return $e[ne.value]===le})?Te:[Ne(le)].concat(ge(Te))},[Ne,y,r,Te,le,ne]),de=function $e(ye){var pe=ge(ye).sort(function(Ie,Ke){return C(Ie,Ke,{searchValue:le})});return pe.map(function(Ie){return Array.isArray(Ie.options)?D(D({},Ie),{},{options:Ie.options.length>0?$e(Ie.options):Ie.options}):Ie})},xe=i.useMemo(function(){return C?de(ve):ve},[ve,C,le]),Ce=i.useMemo(function(){return mO(xe,{fieldNames:ne,childrenAsData:G})},[xe,ne,G]),Ee=function(ye){var pe=Y(ye);if(be(pe),F&&(pe.length!==ce.length||pe.some(function(We,vt){var Be;return((Be=ce[vt])===null||Be===void 0?void 0:Be.value)!==(We==null?void 0:We.value)}))){var Ie=L?pe:pe.map(function(We){return We.value}),Ke=pe.map(function(We){return Tc(Se(We.value))});F(V?Ie:Ie[0],V?Ke:Ke[0])}},Me=i.useState(null),Qe=ee(Me,2),Ve=Qe[0],Fe=Qe[1],ft=i.useState(0),mt=ee(ft,2),ot=mt[0],Bt=mt[1],bt=w!==void 0?w:r!=="combobox",ct=i.useCallback(function($e,ye){var pe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Ie=pe.source,Ke=Ie===void 0?"keyboard":Ie;Bt(ye),l&&r==="combobox"&&$e!==null&&Ke==="keyboard"&&Fe(String($e))},[l,r]),et=function(ye,pe,Ie){var Ke=function(){var ht,Ot=Se(ye);return[L?{label:Ot==null?void 0:Ot[ne.label],value:ye,key:(ht=Ot==null?void 0:Ot.key)!==null&&ht!==void 0?ht:ye}:ye,Tc(Ot)]};if(pe&&v){var We=Ke(),vt=ee(We,2),Be=vt[0],Pe=vt[1];v(Be,Pe)}else if(!pe&&p&&Ie!=="clear"){var Ze=Ke(),yt=ee(Ze,2),St=yt[0],$t=yt[1];p(St,$t)}},gt=rm(function($e,ye){var pe,Ie=V?ye.selected:!0;Ie?pe=V?[].concat(ge(ce),[$e]):[$e]:pe=ce.filter(function(Ke){return Ke.value!==$e}),Ee(pe),et($e,Ie),r==="combobox"?Fe(""):(!_c||m)&&(re(""),Fe(""))}),dt=function(ye,pe){Ee(ye);var Ie=pe.type,Ke=pe.values;(Ie==="remove"||Ie==="clear")&&Ke.forEach(function(We){et(We.value,!1,Ie)})},_e=function(ye,pe){if(re(ye),Fe(null),pe.source==="submit"){var Ie=(ye||"").trim();if(Ie){var Ke=Array.from(new Set([].concat(ge(je),[Ie])));Ee(Ke),et(Ie,!0),re("")}return}pe.source!=="blur"&&(r==="combobox"&&Ee(ye),d==null||d(ye))},Ge=function(ye){var pe=ye;r!=="tags"&&(pe=ye.map(function(Ke){var We=Z.get(Ke);return We==null?void 0:We.value}).filter(function(Ke){return Ke!==void 0}));var Ie=Array.from(new Set([].concat(ge(je),ge(pe))));Ee(Ie),Ie.forEach(function(Ke){et(Ke,!0)})},He=i.useMemo(function(){var $e=I!==!1&&g!==!1;return D(D({},X),{},{flattenOptions:Ce,onActiveValue:ct,defaultActiveFirstOption:bt,onSelect:gt,menuItemSelectedIcon:x,rawValues:je,fieldNames:ne,virtual:$e,direction:P,listHeight:M,listItemHeight:_,childrenAsData:G,maxCount:K,optionRender:E})},[K,X,Ce,ct,bt,gt,x,je,ne,I,g,P,M,_,G,E]);return i.createElement(Iu.Provider,{value:He},i.createElement(bO,me({},W,{id:A,prefixCls:a,ref:t,omitDomProps:YO,mode:r,displayValues:we,onDisplayValuesChange:dt,direction:P,searchValue:le,onSearch:_e,autoClearSearchValue:m,onSearchSplit:Ge,dropdownMatchSelectWidth:g,OptionList:AO,emptyOptions:!Ce.length,activeValue:Ve,activeDescendantId:"".concat(A,"_list_").concat(ot)})))}),Nu=ZO;Nu.Option=Pu;Nu.OptGroup=Ru;function Fi(e,t,n){return k({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:n})}const $l=(e,t)=>t||e,JO=()=>{const[,e]=Rn(),[t]=jo("Empty"),r=new zt(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return i.createElement("svg",{style:r,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},i.createElement("title",null,(t==null?void 0:t.description)||"Empty"),i.createElement("g",{fill:"none",fillRule:"evenodd"},i.createElement("g",{transform:"translate(24 31.67)"},i.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),i.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),i.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),i.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),i.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),i.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),i.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},i.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),i.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},e2=()=>{const[,e]=Rn(),[t]=jo("Empty"),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:o,colorBgContainer:a}=e,{borderColor:l,shadowColor:s,contentColor:c}=i.useMemo(()=>({borderColor:new zt(n).onBackground(a).toHexString(),shadowColor:new zt(r).onBackground(a).toHexString(),contentColor:new zt(o).onBackground(a).toHexString()}),[n,r,o,a]);return i.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},i.createElement("title",null,(t==null?void 0:t.description)||"Empty"),i.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},i.createElement("ellipse",{fill:s,cx:"32",cy:"33",rx:"32",ry:"7"}),i.createElement("g",{fillRule:"nonzero",stroke:l},i.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),i.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:c}))))},t2=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:o,fontSize:a,lineHeight:l}=e;return{[t]:{marginInline:r,fontSize:a,lineHeight:l,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:r,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${t}-description`]:{color:e.colorTextDescription},[`${t}-footer`]:{marginTop:n},"&-normal":{marginBlock:o,color:e.colorTextDescription,[`${t}-description`]:{color:e.colorTextDescription},[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:r,color:e.colorTextDescription,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},n2=At("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,o=wt(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return t2(o)});var r2=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Vp=i.createElement(JO,null),Kp=i.createElement(e2,null),pr=e=>{var t;const{className:n,rootClassName:r,prefixCls:o,image:a,description:l,children:s,imageStyle:c,style:u,classNames:d,styles:f}=e,m=r2(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:v,direction:p,className:h,style:g,classNames:b,styles:C,image:y}=Kn("empty"),$=v("empty",o),[S,E,O]=n2($),[w]=jo("Empty"),x=typeof l<"u"?l:w==null?void 0:w.description,I=typeof x=="string"?x:"empty",P=(t=a??y)!==null&&t!==void 0?t:Vp;let N=null;return typeof P=="string"?N=i.createElement("img",{draggable:!1,alt:I,src:P}):N=P,S(i.createElement("div",Object.assign({className:k(E,O,$,h,{[`${$}-normal`]:P===Kp,[`${$}-rtl`]:p==="rtl"},n,r,b.root,d==null?void 0:d.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},C.root),g),f==null?void 0:f.root),u)},m),i.createElement("div",{className:k(`${$}-image`,b.image,d==null?void 0:d.image),style:Object.assign(Object.assign(Object.assign({},c),C.image),f==null?void 0:f.image)},N),x&&i.createElement("div",{className:k(`${$}-description`,b.description,d==null?void 0:d.description),style:Object.assign(Object.assign({},C.description),f==null?void 0:f.description)},x),s&&i.createElement("div",{className:k(`${$}-footer`,b.footer,d==null?void 0:d.footer),style:Object.assign(Object.assign({},C.footer),f==null?void 0:f.footer)},s)))};pr.PRESENTED_IMAGE_DEFAULT=Vp;pr.PRESENTED_IMAGE_SIMPLE=Kp;const Wp=e=>{const{componentName:t}=e,{getPrefixCls:n}=i.useContext(it),r=n("empty");switch(t){case"Table":case"List":return te.createElement(pr,{image:pr.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return te.createElement(pr,{image:pr.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case"Table.filter":return null;default:return te.createElement(pr,null)}},wl=(e,t,n)=>{var r,o;const{variant:a,[e]:l}=i.useContext(it),s=i.useContext(Ip),c=l==null?void 0:l.variant;let u;typeof t<"u"?u=t:n===!1?u="borderless":u=(o=(r=s??c)!==null&&r!==void 0?r:a)!==null&&o!==void 0?o:"outlined";const d=CC.includes(u);return[u,d]},o2=e=>{const n={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:e==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},n),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},n),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},n),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},n),{points:["br","tr"],offset:[0,-4]})}};function a2(e,t){return e||o2(t)}const om=e=>{const{optionHeight:t,optionFontSize:n,optionLineHeight:r,optionPadding:o}=e;return{position:"relative",display:"block",minHeight:t,padding:o,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:r,boxSizing:"border-box"}},i2=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,o=`&${t}-slide-up-enter${t}-slide-up-enter-active`,a=`&${t}-slide-up-appear${t}-slide-up-appear-active`,l=`&${t}-slide-up-leave${t}-slide-up-leave-active`,s=`${n}-dropdown-placement-`,c=`${r}-option-selected`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},kt(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,[`
|
|
177
|
+
${o}${s}bottomLeft,
|
|
178
|
+
${a}${s}bottomLeft
|
|
179
|
+
`]:{animationName:gu},[`
|
|
180
|
+
${o}${s}topLeft,
|
|
181
|
+
${a}${s}topLeft,
|
|
182
|
+
${o}${s}topRight,
|
|
183
|
+
${a}${s}topRight
|
|
184
|
+
`]:{animationName:hu},[`${l}${s}bottomLeft`]:{animationName:pu},[`
|
|
185
|
+
${l}${s}topLeft,
|
|
186
|
+
${l}${s}topRight
|
|
187
|
+
`]:{animationName:bu},"&-hidden":{display:"none"},[r]:Object.assign(Object.assign({},om(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},Cr),"&-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":Object.assign(Object.assign({},om(e)),{color:e.colorTextDisabled})}),[`${c}:has(+ ${c})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${c}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},_r(e,"slide-up"),_r(e,"slide-down"),Li(e,"move-up"),Li(e,"move-down")]},l2=e=>{const{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:o}=e,a=e.max(e.calc(n).sub(r).equal(),0),l=e.max(e.calc(a).sub(o).equal(),0);return{basePadding:a,containerPadding:l,itemHeight:H(t),itemLineHeight:H(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},s2=e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()},c2=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:o,paddingXS:a,multipleItemColorDisabled:l,multipleItemBorderColorDisabled:s,colorIcon:c,colorIconHover:u,INTERNAL_FIXED_ITEM_MARGIN:d}=e;return{[`${t}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"calc(100% - 4px)",display:"inline-flex"},[`${t}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:d,borderRadius:r,cursor:"default",transition:`font-size ${o}, line-height ${o}, height ${o}`,marginInlineEnd:e.calc(d).mul(2).equal(),paddingInlineStart:a,paddingInlineEnd:e.calc(a).div(2).equal(),[`${t}-disabled&`]:{color:l,borderColor:s,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(a).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},za()),{display:"inline-flex",alignItems:"center",color:c,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:u}})}}}},u2=(e,t)=>{const{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:r}=e,o=`${n}-selection-overflow`,a=e.multipleSelectItemHeight,l=s2(e),s=t?`${n}-${t}`:"",c=l2(e);return{[`${n}-multiple${s}`]:Object.assign(Object.assign({},c2(e)),{[`${n}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:c.basePadding,paddingBlock:c.containerPadding,borderRadius:e.borderRadius,[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${H(r)} 0`,lineHeight:H(a),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:c.itemHeight,lineHeight:H(c.itemLineHeight)},[`${n}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:H(a),marginBlock:r}},[`${n}-prefix`]:{marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(c.basePadding).equal()},[`${o}-item + ${o}-item,
|
|
188
|
+
${n}-prefix + ${n}-selection-wrap
|
|
189
|
+
`]:{[`${n}-selection-search`]:{marginInlineStart:0},[`${n}-selection-placeholder`]:{insetInlineStart:0}},[`${o}-item-suffix`]:{minHeight:c.itemHeight,marginBlock:r},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(l).equal(),"\n &-input,\n &-mirror\n ":{height:a,fontFamily:e.fontFamily,lineHeight:H(a),transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(c.basePadding).equal(),insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}})}};function hs(e,t){const{componentCls:n}=e,r=t?`${n}-${t}`:"",o={[`${n}-multiple${r}`]:{fontSize:e.fontSize,[`${n}-selector`]:{[`${n}-show-search&`]:{cursor:"text"}},[`
|
|
190
|
+
&${n}-show-arrow ${n}-selector,
|
|
191
|
+
&${n}-allow-clear ${n}-selector
|
|
192
|
+
`]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[u2(e,t),o]}const d2=e=>{const{componentCls:t}=e,n=wt(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=wt(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[hs(e),hs(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},hs(r,"lg")]};function bs(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:o}=e,a=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),l=t?`${n}-${t}`:"";return{[`${n}-single${l}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},kt(e,!0)),{display:"flex",borderRadius:o,flex:"1 1 auto",[`${n}-selection-wrap:after`]:{lineHeight:H(a)},[`${n}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[`
|
|
193
|
+
${n}-selection-item,
|
|
194
|
+
${n}-selection-placeholder
|
|
195
|
+
`]:{display:"block",padding:0,lineHeight:H(a),transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:empty:after`,`${n}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
|
|
196
|
+
&${n}-show-arrow ${n}-selection-item,
|
|
197
|
+
&${n}-show-arrow ${n}-selection-search,
|
|
198
|
+
&${n}-show-arrow ${n}-selection-placeholder
|
|
199
|
+
`]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${H(r)}`,[`${n}-selection-search-input`]:{height:a,fontSize:e.fontSize},"&:after":{lineHeight:H(a)}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${H(r)}`,"&:after":{display:"none"}}}}}}}function f2(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[bs(e),bs(wt(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selector`]:{padding:`0 ${H(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},[`
|
|
200
|
+
&${t}-show-arrow ${t}-selection-item,
|
|
201
|
+
&${t}-show-arrow ${t}-selection-placeholder
|
|
202
|
+
`]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},bs(wt(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const m2=e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:o,controlHeightSM:a,controlHeightLG:l,paddingXXS:s,controlPaddingHorizontal:c,zIndexPopupBase:u,colorText:d,fontWeightStrong:f,controlItemBgActive:m,controlItemBgHover:v,colorBgContainer:p,colorFillSecondary:h,colorBgContainerDisabled:g,colorTextDisabled:b,colorPrimaryHover:C,colorPrimary:y,controlOutline:$}=e,S=s*2,E=r*2,O=Math.min(o-S,o-E),w=Math.min(a-S,a-E),x=Math.min(l-S,l-E);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(s/2),zIndexPopup:u+50,optionSelectedColor:d,optionSelectedFontWeight:f,optionSelectedBg:m,optionActiveBg:v,optionPadding:`${(o-t*n)/2}px ${c}px`,optionFontSize:t,optionLineHeight:n,optionHeight:o,selectorBg:p,clearBg:p,singleItemHeightLG:l,multipleItemBg:h,multipleItemBorderColor:"transparent",multipleItemHeight:O,multipleItemHeightSM:w,multipleItemHeightLG:x,multipleSelectorBgDisabled:g,multipleItemColorDisabled:b,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:C,activeBorderColor:y,activeOutlineColor:$,selectAffixPadding:s}},Gp=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:o}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${H(e.lineWidth)} ${e.lineType} ${t.borderColor}`,background:e.selectorBg},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,boxShadow:`0 0 0 ${H(o)} ${t.activeOutlineColor}`,outline:0},[`${n}-prefix`]:{color:t.color}}}},am=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},Gp(e,t))}),v2=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},Gp(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),am(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),am(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${H(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),qp=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${H(e.lineWidth)} ${e.lineType} transparent`,color:t.color},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{background:t.hoverBg},[`${n}-focused& ${n}-selector`]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},im=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},qp(e,t))}),g2=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},qp(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),im(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),im(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.colorBgContainer,border:`${H(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),p2=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",border:`${H(e.lineWidth)} ${e.lineType} transparent`},[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${H(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`},[`&${e.componentCls}-status-error`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorError}},[`&${e.componentCls}-status-warning`]:{[`${e.componentCls}-prefix, ${e.componentCls}-selection-item`]:{color:e.colorWarning}}}}),Up=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{borderWidth:`${H(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.borderColor} transparent`,background:e.selectorBg,borderRadius:0},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:`transparent transparent ${t.hoverBorderHover} transparent`},[`${n}-focused& ${n}-selector`]:{borderColor:`transparent transparent ${t.activeBorderColor} transparent`,outline:0},[`${n}-prefix`]:{color:t.color}}}},lm=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},Up(e,t))}),h2=e=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},Up(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),lm(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),lm(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${H(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),b2=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},v2(e)),g2(e)),p2(e)),h2(e))}),y2=e=>{const{componentCls:t}=e;return{position:"relative",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${t}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},C2=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none",appearance:"none"}}}},S2=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:o}=e,a={[`${n}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}};return{[n]:Object.assign(Object.assign({},kt(e)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},y2(e)),C2(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},Cr),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},Cr),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},za()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${e.motionDurationSlow} ease`,[o]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${n}-suffix)`]:{pointerEvents:"auto"}},[`${n}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${n}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${n}-prefix`]:{flex:"none",marginInlineEnd:e.selectAffixPadding},[`${n}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto",transform:"translateZ(0)","&:before":{display:"block"},"&:hover":{color:e.colorIcon}},"@media(hover:none)":a,"&:hover":a}),[`${n}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}}}},x2=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},S2(e),f2(e),d2(e),i2(e),{[`${t}-rtl`]:{direction:"rtl"}},pl(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},$2=At("Select",(e,{rootPrefixCls:t})=>{const n=wt(e,{rootPrefixCls:t,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[x2(n),b2(n)]},m2,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var w2={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"},E2=function(t,n){return i.createElement(Pt,me({},t,{ref:n,icon:w2}))},O2=i.forwardRef(E2),I2={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"},R2=function(t,n){return i.createElement(Pt,me({},t,{ref:n,icon:I2}))},Xp=i.forwardRef(R2),P2={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"},N2=function(t,n){return i.createElement(Pt,me({},t,{ref:n,icon:P2}))},Mu=i.forwardRef(N2);function M2({suffixIcon:e,clearIcon:t,menuItemSelectedIcon:n,removeIcon:r,loading:o,multiple:a,hasFeedback:l,prefixCls:s,showSuffixIcon:c,feedbackIcon:u,showArrow:d,componentName:f}){const m=t??i.createElement(tl,null),v=b=>e===null&&!l&&!d?null:i.createElement(i.Fragment,null,c!==!1&&b,l&&u);let p=null;if(e!==void 0)p=v(e);else if(o)p=v(i.createElement(Ba,{spin:!0}));else{const b=`${s}-suffix`;p=({open:C,showSearch:y})=>v(C&&y?i.createElement(Mu,{className:b}):i.createElement(Xp,{className:b}))}let h=null;n!==void 0?h=n:a?h=i.createElement(O2,null):h=null;let g=null;return r!==void 0?g=r:g=i.createElement(nl,null),{clearIcon:m,suffixIcon:p,itemIcon:h,removeIcon:g}}function T2(e){return te.useMemo(()=>{if(e)return(...t)=>te.createElement(wa,{space:!0},e.apply(void 0,t))},[e])}function _2(e,t){return t!==void 0?t:e!==null}var z2=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Yp="SECRET_COMBOBOX_MODE_DO_NOT_USE",j2=(e,t)=>{var n,r,o,a,l;const{prefixCls:s,bordered:c,className:u,rootClassName:d,getPopupContainer:f,popupClassName:m,dropdownClassName:v,listHeight:p=256,placement:h,listItemHeight:g,size:b,disabled:C,notFoundContent:y,status:$,builtinPlacements:S,dropdownMatchSelectWidth:E,popupMatchSelectWidth:O,direction:w,style:x,allowClear:I,variant:P,dropdownStyle:N,transitionName:M,tagRender:R,maxCount:_,prefix:T,dropdownRender:z,popupRender:B,onDropdownVisibleChange:L,onOpenChange:F,styles:K,classNames:W}=e,A=z2(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount","prefix","dropdownRender","popupRender","onDropdownVisibleChange","onOpenChange","styles","classNames"]),{getPopupContainer:V,getPrefixCls:G,renderEmpty:U,direction:ne,virtual:J,popupMatchSelectWidth:Q,popupOverflow:le}=i.useContext(it),{showSearch:re,style:X,styles:oe,className:Z,classNames:q}=Kn("select"),[,Y]=Rn(),ie=g??(Y==null?void 0:Y.controlHeight),ue=G("select",s),he=G(),be=w??ne,{compactSize:ae,compactItemClassnames:fe}=oo(ue,be),[se,ce]=wl("select",P,c),Se=Pn(ue),[we,je,Ne]=$2(ue,Se),Oe=i.useMemo(()=>{const{mode:Ie}=e;if(Ie!=="combobox")return Ie===Yp?"combobox":Ie},[e.mode]),Te=Oe==="multiple"||Oe==="tags",ve=_2(e.suffixIcon,e.showArrow),de=(n=O??E)!==null&&n!==void 0?n:Q,xe=((r=K==null?void 0:K.popup)===null||r===void 0?void 0:r.root)||((o=oe.popup)===null||o===void 0?void 0:o.root)||N,Ce=T2(B||z),Ee=F||L,{status:Me,hasFeedback:Qe,isFormItemInput:Ve,feedbackIcon:Fe}=i.useContext(In),ft=$l(Me,$);let mt;y!==void 0?mt=y:Oe==="combobox"?mt=null:mt=(U==null?void 0:U("Select"))||i.createElement(Wp,{componentName:"Select"});const{suffixIcon:ot,itemIcon:Bt,removeIcon:bt,clearIcon:ct}=M2(Object.assign(Object.assign({},A),{multiple:Te,hasFeedback:Qe,feedbackIcon:Fe,showSuffixIcon:ve,prefixCls:ue,componentName:"Select"})),et=I===!0?{clearIcon:ct}:I,gt=Xt(A,["suffixIcon","itemIcon"]),dt=k(((a=W==null?void 0:W.popup)===null||a===void 0?void 0:a.root)||((l=q==null?void 0:q.popup)===null||l===void 0?void 0:l.root)||m||v,{[`${ue}-dropdown-${be}`]:be==="rtl"},d,q.root,W==null?void 0:W.root,Ne,Se,je),_e=Dn(Ie=>{var Ke;return(Ke=b??ae)!==null&&Ke!==void 0?Ke:Ie}),Ge=i.useContext(Jn),He=C??Ge,$e=k({[`${ue}-lg`]:_e==="large",[`${ue}-sm`]:_e==="small",[`${ue}-rtl`]:be==="rtl",[`${ue}-${se}`]:ce,[`${ue}-in-form-item`]:Ve},Fi(ue,ft,Qe),fe,Z,u,q.root,W==null?void 0:W.root,d,Ne,Se,je),ye=i.useMemo(()=>h!==void 0?h:be==="rtl"?"bottomRight":"bottomLeft",[h,be]),[pe]=rl("SelectLike",xe==null?void 0:xe.zIndex);return we(i.createElement(Nu,Object.assign({ref:t,virtual:J,showSearch:re},gt,{style:Object.assign(Object.assign(Object.assign(Object.assign({},oe.root),K==null?void 0:K.root),X),x),dropdownMatchSelectWidth:de,transitionName:mu(he,"slide-up",M),builtinPlacements:a2(S,le),listHeight:p,listItemHeight:ie,mode:Oe,prefixCls:ue,placement:ye,direction:be,prefix:T,suffixIcon:ot,menuItemSelectedIcon:Bt,removeIcon:bt,allowClear:et,notFoundContent:mt,className:$e,getPopupContainer:f||V,dropdownClassName:dt,disabled:He,dropdownStyle:Object.assign(Object.assign({},xe),{zIndex:pe}),maxCount:Te?_:void 0,tagRender:Te?R:void 0,dropdownRender:Ce,onDropdownVisibleChange:Ee})))},Fo=i.forwardRef(j2),B2=Np(Fo,"dropdownAlign");Fo.SECRET_COMBOBOX_MODE_DO_NOT_USE=Yp;Fo.Option=Pu;Fo.OptGroup=Ru;Fo._InternalPanelDoNotUseOrYouWillBeFired=B2;const Qp=(e,t)=>{typeof(e==null?void 0:e.addEventListener)<"u"?e.addEventListener("change",t):typeof(e==null?void 0:e.addListener)<"u"&&e.addListener(t)},Zp=(e,t)=>{typeof(e==null?void 0:e.removeEventListener)<"u"?e.removeEventListener("change",t):typeof(e==null?void 0:e.removeListener)<"u"&&e.removeListener(t)},Mo=["xxl","xl","lg","md","sm","xs"],D2=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)`}),L2=e=>{const t=e,n=[].concat(Mo).reverse();return n.forEach((r,o)=>{const a=r.toUpperCase(),l=`screen${a}Min`,s=`screen${a}`;if(!(t[l]<=t[s]))throw new Error(`${l}<=${s} fails : !(${t[l]}<=${t[s]})`);if(o<n.length-1){const c=`screen${a}Max`;if(!(t[s]<=t[c]))throw new Error(`${s}<=${c} fails : !(${t[s]}<=${t[c]})`);const d=`screen${n[o+1].toUpperCase()}Min`;if(!(t[c]<=t[d]))throw new Error(`${c}<=${d} fails : !(${t[c]}<=${t[d]})`)}}),e},Jp=(e,t)=>{if(t){for(const n of Mo)if(e[n]&&(t==null?void 0:t[n])!==void 0)return t[n]}},A2=()=>{const[,e]=Rn(),t=D2(L2(e));return te.useMemo(()=>{const n=new Map;let r=-1,o={};return{responsiveMap:t,matchHandlers:{},dispatch(a){return o=a,n.forEach(l=>l(o)),n.size>=1},subscribe(a){return n.size||this.register(),r+=1,n.set(r,a),a(o),r},unsubscribe(a){n.delete(a),n.size||this.unregister()},register(){Object.entries(t).forEach(([a,l])=>{const s=({matches:u})=>{this.dispatch(Object.assign(Object.assign({},o),{[a]:u}))},c=window.matchMedia(l);Qp(c,s),this.matchHandlers[l]={mql:c,listener:s},s(c)})},unregister(){Object.values(t).forEach(a=>{const l=this.matchHandlers[a];Zp(l==null?void 0:l.mql,l==null?void 0:l.listener)}),n.clear()}}},[t])};function El(e=!0,t={}){const n=i.useRef(t),[,r]=Jg(),o=A2();return Rt(()=>{const a=o.subscribe(l=>{n.current=l,e&&r()});return()=>o.unsubscribe(a)},[]),n.current}function eh(e){var t=e.children,n=e.prefixCls,r=e.id,o=e.overlayInnerStyle,a=e.bodyClassName,l=e.className,s=e.style;return i.createElement("div",{className:k("".concat(n,"-content"),l),style:s},i.createElement("div",{className:k("".concat(n,"-inner"),a),id:r,role:"tooltip",style:o},typeof t=="function"?t():t))}var fo={shiftX:64,adjustY:1},mo={adjustX:1,shiftY:!0},Xn=[0,0],F2={left:{points:["cr","cl"],overflow:mo,offset:[-4,0],targetOffset:Xn},right:{points:["cl","cr"],overflow:mo,offset:[4,0],targetOffset:Xn},top:{points:["bc","tc"],overflow:fo,offset:[0,-4],targetOffset:Xn},bottom:{points:["tc","bc"],overflow:fo,offset:[0,4],targetOffset:Xn},topLeft:{points:["bl","tl"],overflow:fo,offset:[0,-4],targetOffset:Xn},leftTop:{points:["tr","tl"],overflow:mo,offset:[-4,0],targetOffset:Xn},topRight:{points:["br","tr"],overflow:fo,offset:[0,-4],targetOffset:Xn},rightTop:{points:["tl","tr"],overflow:mo,offset:[4,0],targetOffset:Xn},bottomRight:{points:["tr","br"],overflow:fo,offset:[0,4],targetOffset:Xn},rightBottom:{points:["bl","br"],overflow:mo,offset:[4,0],targetOffset:Xn},bottomLeft:{points:["tl","bl"],overflow:fo,offset:[0,4],targetOffset:Xn},leftBottom:{points:["br","bl"],overflow:mo,offset:[-4,0],targetOffset:Xn}},H2=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],k2=function(t,n){var r=t.overlayClassName,o=t.trigger,a=o===void 0?["hover"]:o,l=t.mouseEnterDelay,s=l===void 0?0:l,c=t.mouseLeaveDelay,u=c===void 0?.1:c,d=t.overlayStyle,f=t.prefixCls,m=f===void 0?"rc-tooltip":f,v=t.children,p=t.onVisibleChange,h=t.afterVisibleChange,g=t.transitionName,b=t.animation,C=t.motion,y=t.placement,$=y===void 0?"right":y,S=t.align,E=S===void 0?{}:S,O=t.destroyTooltipOnHide,w=O===void 0?!1:O,x=t.defaultVisible,I=t.getTooltipContainer,P=t.overlayInnerStyle;t.arrowContent;var N=t.overlay,M=t.id,R=t.showArrow,_=R===void 0?!0:R,T=t.classNames,z=t.styles,B=at(t,H2),L=hl(M),F=i.useRef(null);i.useImperativeHandle(n,function(){return F.current});var K=D({},B);"visible"in t&&(K.popupVisible=t.visible);var W=function(){return i.createElement(eh,{key:"content",prefixCls:m,id:L,bodyClassName:T==null?void 0:T.body,overlayInnerStyle:D(D({},P),z==null?void 0:z.body)},N)},A=function(){var G=i.Children.only(v),U=(G==null?void 0:G.props)||{},ne=D(D({},U),{},{"aria-describedby":N?L:null});return i.cloneElement(v,ne)};return i.createElement(Sl,me({popupClassName:k(r,T==null?void 0:T.root),prefixCls:m,popup:W,action:a,builtinPlacements:F2,popupPlacement:$,ref:F,popupAlign:E,getPopupContainer:I,onPopupVisibleChange:p,afterPopupVisibleChange:h,popupTransitionName:g,popupAnimation:b,popupMotion:C,defaultPopupVisible:x,autoDestroy:w,mouseLeaveDelay:u,popupStyle:D(D({},d),z==null?void 0:z.root),mouseEnterDelay:s,arrow:_},K),A())};const V2=i.forwardRef(k2);function th(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,o=t/2,a=0,l=o,s=r*1/Math.sqrt(2),c=o-r*(1-1/Math.sqrt(2)),u=o-n*(1/Math.sqrt(2)),d=r*(Math.sqrt(2)-1)+n*(1/Math.sqrt(2)),f=2*o-u,m=d,v=2*o-s,p=c,h=2*o-a,g=l,b=o*Math.sqrt(2)+r*(Math.sqrt(2)-2),C=r*(Math.sqrt(2)-1),y=`polygon(${C}px 100%, 50% ${C}px, ${2*o-C}px 100%, ${C}px 100%)`,$=`path('M ${a} ${l} A ${r} ${r} 0 0 0 ${s} ${c} L ${u} ${d} A ${n} ${n} 0 0 1 ${f} ${m} L ${v} ${p} A ${r} ${r} 0 0 0 ${h} ${g} Z')`;return{arrowShadowWidth:b,arrowPath:$,arrowPolygon:y}}const K2=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:o,arrowPath:a,arrowShadowWidth:l,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:[o,a]},content:'""'},"&::after":{content:'""',position:"absolute",width:l,height:l,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${H(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},nh=8;function Tu(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?nh:r}}function si(e,t){return e?t:{}}function rh(e,t,n){const{componentCls:r,boxShadowPopoverArrow:o,arrowOffsetVertical:a,arrowOffsetHorizontal:l}=e,{arrowDistance:s=0,arrowPlacement:c={left:!0,right:!0,top:!0,bottom:!0}}=n||{};return{[r]:Object.assign(Object.assign(Object.assign(Object.assign({[`${r}-arrow`]:[Object.assign(Object.assign({position:"absolute",zIndex:1,display:"block"},K2(e,t,o)),{"&:before":{background:t}})]},si(!!c.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:s,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":l,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:l}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${H(l)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:l}}}})),si(!!c.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:s,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":l,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:l}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${H(l)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:l}}}})),si(!!c.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:s},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}})),si(!!c.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:s},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 W2(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const o=r&&typeof r=="object"?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}const l=Object.assign(Object.assign({},a),o);return l.shiftX||(l.adjustX=!0),l.shiftY||(l.adjustY=!0),l}const sm={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"]}},G2={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"]}},q2=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function oh(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:a,visibleFirst:l}=e,s=t/2,c={},u=Tu({contentRadius:a,limitVerticalRadius:!0});return Object.keys(sm).forEach(d=>{const f=r&&G2[d]||sm[d],m=Object.assign(Object.assign({},f),{offset:[0,0],dynamicInset:!0});switch(c[d]=m,q2.has(d)&&(m.autoArrow=!1),d){case"top":case"topLeft":case"topRight":m.offset[1]=-s-o;break;case"bottom":case"bottomLeft":case"bottomRight":m.offset[1]=s+o;break;case"left":case"leftTop":case"leftBottom":m.offset[0]=-s-o;break;case"right":case"rightTop":case"rightBottom":m.offset[0]=s+o;break}if(r)switch(d){case"topLeft":case"bottomLeft":m.offset[0]=-u.arrowOffsetHorizontal-s;break;case"topRight":case"bottomRight":m.offset[0]=u.arrowOffsetHorizontal+s;break;case"leftTop":case"rightTop":m.offset[1]=-u.arrowOffsetHorizontal*2+s;break;case"leftBottom":case"rightBottom":m.offset[1]=u.arrowOffsetHorizontal*2-s;break}m.overflow=W2(d,u,t,n),l&&(m.htmlRegion="visibleFirst")}),c}const U2=e=>{const{calc:t,componentCls:n,tooltipMaxWidth:r,tooltipColor:o,tooltipBg:a,tooltipBorderRadius:l,zIndexPopup:s,controlHeight:c,boxShadowSecondary:u,paddingSM:d,paddingXS:f,arrowOffsetHorizontal:m,sizePopupArrow:v}=e,p=t(l).add(v).add(m).equal(),h=t(l).mul(2).add(v).equal();return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},kt(e)),{position:"absolute",zIndex:s,display:"block",width:"max-content",maxWidth:r,visibility:"visible","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"&-hidden":{display:"none"},"--antd-arrow-background-color":a,[`${n}-inner`]:{minWidth:h,minHeight:c,padding:`${H(e.calc(d).div(2).equal())} ${H(f)}`,color:`var(--ant-tooltip-color, ${o})`,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:a,borderRadius:l,boxShadow:u,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:p},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${n}-inner`]:{borderRadius:e.min(l,nh)}},[`${n}-content`]:{position:"relative"}}),Rg(e,(g,{darkColor:b})=>({[`&${n}-${g}`]:{[`${n}-inner`]:{backgroundColor:b},[`${n}-arrow`]:{"--antd-arrow-background-color":b}}}))),{"&-rtl":{direction:"rtl"}})},rh(e,"var(--antd-arrow-background-color)"),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},X2=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},Tu({contentRadius:e.borderRadius,limitVerticalRadius:!0})),th(wt(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),ah=(e,t=!0)=>At("Tooltip",r=>{const{borderRadius:o,colorTextLightSolid:a,colorBgSpotlight:l}=r,s=wt(r,{tooltipMaxWidth:250,tooltipColor:a,tooltipBorderRadius:o,tooltipBg:l});return[U2(s),cl(r,"zoom-big-fast")]},X2,{resetStyle:!1,injectStyle:t})(e),Y2=Qr.map(e=>`${e}-inverse`),Q2=["success","processing","error","default","warning"];function ih(e,t=!0){return t?[].concat(ge(Y2),ge(Qr)).includes(e):Qr.includes(e)}function Z2(e){return Q2.includes(e)}function lh(e,t){const n=ih(t),r=k({[`${e}-${t}`]:t&&n}),o={},a={},l=t1(t).toRgb(),c=(.299*l.r+.587*l.g+.114*l.b)/255<.5?"#FFF":"#000";return t&&!n&&(o.background=t,o["--ant-tooltip-color"]=c,a["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:a}}const J2=e=>{const{prefixCls:t,className:n,placement:r="top",title:o,color:a,overlayInnerStyle:l}=e,{getPrefixCls:s}=i.useContext(it),c=s("tooltip",t),[u,d,f]=ah(c),m=lh(c,a),v=m.arrowStyle,p=Object.assign(Object.assign({},l),m.overlayStyle),h=k(d,f,c,`${c}-pure`,`${c}-placement-${r}`,n,m.className);return u(i.createElement("div",{className:h,style:v},i.createElement("div",{className:`${c}-arrow`}),i.createElement(eh,Object.assign({},e,{className:d,prefixCls:c,overlayInnerStyle:p}),o)))};var eI=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const tI=i.forwardRef((e,t)=>{var n,r;const{prefixCls:o,openClassName:a,getTooltipContainer:l,color:s,overlayInnerStyle:c,children:u,afterOpenChange:d,afterVisibleChange:f,destroyTooltipOnHide:m,destroyOnHidden:v,arrow:p=!0,title:h,overlay:g,builtinPlacements:b,arrowPointAtCenter:C=!1,autoAdjustOverflow:y=!0,motion:$,getPopupContainer:S,placement:E="top",mouseEnterDelay:O=.1,mouseLeaveDelay:w=.1,overlayStyle:x,rootClassName:I,overlayClassName:P,styles:N,classNames:M}=e,R=eI(e,["prefixCls","openClassName","getTooltipContainer","color","overlayInnerStyle","children","afterOpenChange","afterVisibleChange","destroyTooltipOnHide","destroyOnHidden","arrow","title","overlay","builtinPlacements","arrowPointAtCenter","autoAdjustOverflow","motion","getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName","overlayClassName","styles","classNames"]),_=!!p,[,T]=Rn(),{getPopupContainer:z,getPrefixCls:B,direction:L,className:F,style:K,classNames:W,styles:A}=Kn("tooltip"),V=Br(),G=i.useRef(null),U=()=>{var ve;(ve=G.current)===null||ve===void 0||ve.forceAlign()};i.useImperativeHandle(t,()=>{var ve,de;return{forceAlign:U,forcePopupAlign:()=>{V.deprecated(!1,"forcePopupAlign","forceAlign"),U()},nativeElement:(ve=G.current)===null||ve===void 0?void 0:ve.nativeElement,popupElement:(de=G.current)===null||de===void 0?void 0:de.popupElement}});const[ne,J]=ln(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),Q=!h&&!g&&h!==0,le=ve=>{var de,xe;J(Q?!1:ve),Q||((de=e.onOpenChange)===null||de===void 0||de.call(e,ve),(xe=e.onVisibleChange)===null||xe===void 0||xe.call(e,ve))},re=i.useMemo(()=>{var ve,de;let xe=C;return typeof p=="object"&&(xe=(de=(ve=p.pointAtCenter)!==null&&ve!==void 0?ve:p.arrowPointAtCenter)!==null&&de!==void 0?de:C),b||oh({arrowPointAtCenter:xe,autoAdjustOverflow:y,arrowWidth:_?T.sizePopupArrow:0,borderRadius:T.borderRadius,offset:T.marginXXS,visibleFirst:!0})},[C,p,b,T]),X=i.useMemo(()=>h===0?h:g||h||"",[g,h]),oe=i.createElement(wa,{space:!0},typeof X=="function"?X():X),Z=B("tooltip",o),q=B(),Y=e["data-popover-inject"];let ie=ne;!("open"in e)&&!("visible"in e)&&Q&&(ie=!1);const ue=i.isValidElement(u)&&!Xg(u)?u:i.createElement("span",null,u),he=ue.props,be=!he.className||typeof he.className=="string"?k(he.className,a||`${Z}-open`):he.className,[ae,fe,se]=ah(Z,!Y),ce=lh(Z,s),Se=ce.arrowStyle,we=k(P,{[`${Z}-rtl`]:L==="rtl"},ce.className,I,fe,se,F,W.root,M==null?void 0:M.root),je=k(W.body,M==null?void 0:M.body),[Ne,Oe]=rl("Tooltip",R.zIndex),Te=i.createElement(V2,Object.assign({},R,{zIndex:Ne,showArrow:_,placement:E,mouseEnterDelay:O,mouseLeaveDelay:w,prefixCls:Z,classNames:{root:we,body:je},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Se),A.root),K),x),N==null?void 0:N.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},A.body),c),N==null?void 0:N.body),ce.overlayStyle)},getTooltipContainer:S||l||z,ref:G,builtinPlacements:re,overlay:oe,visible:ie,onVisibleChange:le,afterVisibleChange:d??f,arrowContent:i.createElement("span",{className:`${Z}-arrow-content`}),motion:{motionName:mu(q,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:v??!!m}),ie?kn(ue,{className:be}):ue);return ae(i.createElement(uu.Provider,{value:Oe},Te))}),Oa=tI;Oa._InternalPanelDoNotUseOrYouWillBeFired=J2;var nI={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"},rI=function(t,n){return i.createElement(Pt,me({},t,{ref:n,icon:nI}))},Ia=i.forwardRef(rI),oI=Le.ESC,aI=Le.TAB;function iI(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,o=e.autoFocus,a=e.overlayRef,l=i.useRef(!1),s=function(){if(t){var f,m;(f=n.current)===null||f===void 0||(m=f.focus)===null||m===void 0||m.call(f),r==null||r(!1)}},c=function(){var f;return(f=a.current)!==null&&f!==void 0&&f.focus?(a.current.focus(),l.current=!0,!0):!1},u=function(f){switch(f.keyCode){case oI:s();break;case aI:{var m=!1;l.current||(m=c()),m?f.preventDefault():s();break}}};i.useEffect(function(){return t?(window.addEventListener("keydown",u),o&&Et(c,3),function(){window.removeEventListener("keydown",u),l.current=!1}):function(){l.current=!1}},[t])}var lI=i.forwardRef(function(e,t){var n=e.overlay,r=e.arrow,o=e.prefixCls,a=i.useMemo(function(){var s;return typeof n=="function"?s=n():s=n,s},[n]),l=Vn(t,jr(a));return te.createElement(te.Fragment,null,r&&te.createElement("div",{className:"".concat(o,"-arrow")}),te.cloneElement(a,{ref:or(a)?l:void 0}))}),vo={adjustX:1,adjustY:1},go=[0,0],sI={topLeft:{points:["bl","tl"],overflow:vo,offset:[0,-4],targetOffset:go},top:{points:["bc","tc"],overflow:vo,offset:[0,-4],targetOffset:go},topRight:{points:["br","tr"],overflow:vo,offset:[0,-4],targetOffset:go},bottomLeft:{points:["tl","bl"],overflow:vo,offset:[0,4],targetOffset:go},bottom:{points:["tc","bc"],overflow:vo,offset:[0,4],targetOffset:go},bottomRight:{points:["tr","br"],overflow:vo,offset:[0,4],targetOffset:go}},cI=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function uI(e,t){var n,r=e.arrow,o=r===void 0?!1:r,a=e.prefixCls,l=a===void 0?"rc-dropdown":a,s=e.transitionName,c=e.animation,u=e.align,d=e.placement,f=d===void 0?"bottomLeft":d,m=e.placements,v=m===void 0?sI:m,p=e.getPopupContainer,h=e.showAction,g=e.hideAction,b=e.overlayClassName,C=e.overlayStyle,y=e.visible,$=e.trigger,S=$===void 0?["hover"]:$,E=e.autoFocus,O=e.overlay,w=e.children,x=e.onVisibleChange,I=at(e,cI),P=te.useState(),N=ee(P,2),M=N[0],R=N[1],_="visible"in e?y:M,T=te.useRef(null),z=te.useRef(null),B=te.useRef(null);te.useImperativeHandle(t,function(){return T.current});var L=function(J){R(J),x==null||x(J)};iI({visible:_,triggerRef:B,onVisibleChange:L,autoFocus:E,overlayRef:z});var F=function(J){var Q=e.onOverlayClick;R(!1),Q&&Q(J)},K=function(){return te.createElement(lI,{ref:z,overlay:O,prefixCls:l,arrow:o})},W=function(){return typeof O=="function"?K:K()},A=function(){var J=e.minOverlayWidthMatchTrigger,Q=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?J:!Q},V=function(){var J=e.openClassName;return J!==void 0?J:"".concat(l,"-open")},G=te.cloneElement(w,{className:k((n=w.props)===null||n===void 0?void 0:n.className,_&&V()),ref:or(w)?Vn(B,jr(w)):void 0}),U=g;return!U&&S.indexOf("contextMenu")!==-1&&(U=["click"]),te.createElement(Sl,me({builtinPlacements:v},I,{prefixCls:l,ref:T,popupClassName:k(b,j({},"".concat(l,"-show-arrow"),o)),popupStyle:C,action:S,showAction:h,hideAction:U,popupPlacement:f,popupAlign:u,popupTransitionName:s,popupAnimation:c,popupVisible:_,stretch:A()?"minWidth":"",popup:W(),onPopupVisibleChange:L,onPopupClick:F,getPopupContainer:p}),G)}const sh=te.forwardRef(uI),dI=e=>typeof e!="object"&&typeof e!="function"||e===null;var ch=i.createContext(null);function uh(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function dh(e){var t=i.useContext(ch);return uh(t,e)}var fI=["children","locked"],ar=i.createContext(null);function mI(e,t){var n=D({},e);return Object.keys(t).forEach(function(r){var o=t[r];o!==void 0&&(n[r]=o)}),n}function Ra(e){var t=e.children,n=e.locked,r=at(e,fI),o=i.useContext(ar),a=no(function(){return mI(o,r)},[o,r],function(l,s){return!n&&(l[0]!==s[0]||!ur(l[1],s[1],!0))});return i.createElement(ar.Provider,{value:a},t)}var vI=[],fh=i.createContext(null);function Ol(){return i.useContext(fh)}var mh=i.createContext(vI);function Ho(e){var t=i.useContext(mh);return i.useMemo(function(){return e!==void 0?[].concat(ge(t),[e]):t},[t,e])}var vh=i.createContext(null),_u=i.createContext({});function cm(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(La(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),a=Number(o),l=null;return o&&!Number.isNaN(a)?l=a:r&&l===null&&(l=0),r&&e.disabled&&(l=null),l!==null&&(l>=0||t&&l<0)}return!1}function gI(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=ge(e.querySelectorAll("*")).filter(function(r){return cm(r,t)});return cm(e,t)&&n.unshift(e),n}var jc=Le.LEFT,Bc=Le.RIGHT,Dc=Le.UP,wi=Le.DOWN,Ei=Le.ENTER,gh=Le.ESC,Qo=Le.HOME,Zo=Le.END,um=[Dc,wi,jc,Bc];function pI(e,t,n,r){var o,a="prev",l="next",s="children",c="parent";if(e==="inline"&&r===Ei)return{inlineTrigger:!0};var u=j(j({},Dc,a),wi,l),d=j(j(j(j({},jc,n?l:a),Bc,n?a:l),wi,s),Ei,s),f=j(j(j(j(j(j({},Dc,a),wi,l),Ei,s),gh,c),jc,n?s:c),Bc,n?c:s),m={inline:u,horizontal:d,vertical:f,inlineSub:u,horizontalSub:f,verticalSub:f},v=(o=m["".concat(e).concat(t?"":"Sub")])===null||o===void 0?void 0:o[r];switch(v){case a:return{offset:-1,sibling:!0};case l:return{offset:1,sibling:!0};case c:return{offset:-1,sibling:!1};case s:return{offset:1,sibling:!1};default:return null}}function hI(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function bI(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}function zu(e,t){var n=gI(e,!0);return n.filter(function(r){return t.has(r)})}function dm(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var o=zu(e,t),a=o.length,l=o.findIndex(function(s){return n===s});return r<0?l===-1?l=a-1:l-=1:r>0&&(l+=1),l=(l+a)%a,o[l]}var Lc=function(t,n){var r=new Set,o=new Map,a=new Map;return t.forEach(function(l){var s=document.querySelector("[data-menu-id='".concat(uh(n,l),"']"));s&&(r.add(s),a.set(s,l),o.set(l,s))}),{elements:r,key2element:o,element2key:a}};function yI(e,t,n,r,o,a,l,s,c,u){var d=i.useRef(),f=i.useRef();f.current=t;var m=function(){Et.cancel(d.current)};return i.useEffect(function(){return function(){m()}},[]),function(v){var p=v.which;if([].concat(um,[Ei,gh,Qo,Zo]).includes(p)){var h=a(),g=Lc(h,r),b=g,C=b.elements,y=b.key2element,$=b.element2key,S=y.get(t),E=bI(S,C),O=$.get(E),w=pI(e,l(O,!0).length===1,n,p);if(!w&&p!==Qo&&p!==Zo)return;(um.includes(p)||[Qo,Zo].includes(p))&&v.preventDefault();var x=function(z){if(z){var B=z,L=z.querySelector("a");L!=null&&L.getAttribute("href")&&(B=L);var F=$.get(z);s(F),m(),d.current=Et(function(){f.current===F&&B.focus()})}};if([Qo,Zo].includes(p)||w.sibling||!E){var I;!E||e==="inline"?I=o.current:I=hI(E);var P,N=zu(I,C);p===Qo?P=N[0]:p===Zo?P=N[N.length-1]:P=dm(I,C,E,w.offset),x(P)}else if(w.inlineTrigger)c(O);else if(w.offset>0)c(O,!0),m(),d.current=Et(function(){g=Lc(h,r);var T=E.getAttribute("aria-controls"),z=document.getElementById(T),B=dm(z,g.elements);x(B)},5);else if(w.offset<0){var M=l(O,!0),R=M[M.length-2],_=y.get(R);c(R,!1),x(_)}}u==null||u(v)}}function CI(e){Promise.resolve().then(e)}var ju="__RC_UTIL_PATH_SPLIT__",fm=function(t){return t.join(ju)},SI=function(t){return t.split(ju)},Ac="rc-menu-more";function xI(){var e=i.useState({}),t=ee(e,2),n=t[1],r=i.useRef(new Map),o=i.useRef(new Map),a=i.useState([]),l=ee(a,2),s=l[0],c=l[1],u=i.useRef(0),d=i.useRef(!1),f=function(){d.current||n({})},m=i.useCallback(function(y,$){var S=fm($);o.current.set(S,y),r.current.set(y,S),u.current+=1;var E=u.current;CI(function(){E===u.current&&f()})},[]),v=i.useCallback(function(y,$){var S=fm($);o.current.delete(S),r.current.delete(y)},[]),p=i.useCallback(function(y){c(y)},[]),h=i.useCallback(function(y,$){var S=r.current.get(y)||"",E=SI(S);return $&&s.includes(E[0])&&E.unshift(Ac),E},[s]),g=i.useCallback(function(y,$){return y.filter(function(S){return S!==void 0}).some(function(S){var E=h(S,!0);return E.includes($)})},[h]),b=function(){var $=ge(r.current.keys());return s.length&&$.push(Ac),$},C=i.useCallback(function(y){var $="".concat(r.current.get(y)).concat(ju),S=new Set;return ge(o.current.keys()).forEach(function(E){E.startsWith($)&&S.add(o.current.get(E))}),S},[]);return i.useEffect(function(){return function(){d.current=!0}},[]),{registerPath:m,unregisterPath:v,refreshOverflowKeys:p,isSubPathKey:g,getKeyPath:h,getKeys:b,getSubPathKeys:C}}function na(e){var t=i.useRef(e);t.current=e;var n=i.useCallback(function(){for(var r,o=arguments.length,a=new Array(o),l=0;l<o;l++)a[l]=arguments[l];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(a))},[]);return e?n:void 0}var $I=Math.random().toFixed(5).toString().slice(2),mm=0;function wI(e){var t=ln(e,{value:e}),n=ee(t,2),r=n[0],o=n[1];return i.useEffect(function(){mm+=1;var a="".concat($I,"-").concat(mm);o("rc-menu-uuid-".concat(a))},[]),r}function ph(e,t,n,r){var o=i.useContext(ar),a=o.activeKey,l=o.onActive,s=o.onInactive,c={active:a===e};return t||(c.onMouseEnter=function(u){n==null||n({key:e,domEvent:u}),l(e)},c.onMouseLeave=function(u){r==null||r({key:e,domEvent:u}),s(e)}),c}function hh(e){var t=i.useContext(ar),n=t.mode,r=t.rtl,o=t.inlineIndent;if(n!=="inline")return null;var a=e;return r?{paddingRight:a*o}:{paddingLeft:a*o}}function bh(e){var t=e.icon,n=e.props,r=e.children,o;return t===null||t===!1?null:(typeof t=="function"?o=i.createElement(t,D({},n)):typeof t!="boolean"&&(o=t),o||r||null)}var EI=["item"];function Hi(e){var t=e.item,n=at(e,EI);return Object.defineProperty(n,"item",{get:function(){return Ut(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var OI=["title","attribute","elementRef"],II=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],RI=["active"],PI=(function(e){mr(n,e);var t=vr(n);function n(){return tn(this,n),t.apply(this,arguments)}return nn(n,[{key:"render",value:function(){var o=this.props,a=o.title,l=o.attribute,s=o.elementRef,c=at(o,OI),u=Xt(c,["eventKey","popupClassName","popupOffset","onTitleClick"]);return Ut(!l,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),i.createElement(cr.Item,me({},l,{title:typeof a=="string"?a:void 0},u,{ref:s}))}}]),n})(i.Component),NI=i.forwardRef(function(e,t){var n=e.style,r=e.className,o=e.eventKey;e.warnKey;var a=e.disabled,l=e.itemIcon,s=e.children,c=e.role,u=e.onMouseEnter,d=e.onMouseLeave,f=e.onClick,m=e.onKeyDown,v=e.onFocus,p=at(e,II),h=dh(o),g=i.useContext(ar),b=g.prefixCls,C=g.onItemClick,y=g.disabled,$=g.overflowDisabled,S=g.itemIcon,E=g.selectedKeys,O=g.onActive,w=i.useContext(_u),x=w._internalRenderMenuItem,I="".concat(b,"-item"),P=i.useRef(),N=i.useRef(),M=y||a,R=$r(t,N),_=Ho(o),T=function(Q){return{key:o,keyPath:ge(_).reverse(),item:P.current,domEvent:Q}},z=l||S,B=ph(o,M,u,d),L=B.active,F=at(B,RI),K=E.includes(o),W=hh(_.length),A=function(Q){if(!M){var le=T(Q);f==null||f(Hi(le)),C(le)}},V=function(Q){if(m==null||m(Q),Q.which===Le.ENTER){var le=T(Q);f==null||f(Hi(le)),C(le)}},G=function(Q){O(o),v==null||v(Q)},U={};e.role==="option"&&(U["aria-selected"]=K);var ne=i.createElement(PI,me({ref:P,elementRef:R,role:c===null?"none":c||"menuitem",tabIndex:a?null:-1,"data-menu-id":$&&h?null:h},Xt(p,["extra"]),F,U,{component:"li","aria-disabled":a,style:D(D({},W),n),className:k(I,j(j(j({},"".concat(I,"-active"),L),"".concat(I,"-selected"),K),"".concat(I,"-disabled"),M),r),onClick:A,onKeyDown:V,onFocus:G}),s,i.createElement(bh,{props:D(D({},e),{},{isSelected:K}),icon:z}));return x&&(ne=x(ne,e,{selected:K})),ne});function MI(e,t){var n=e.eventKey,r=Ol(),o=Ho(n);return i.useEffect(function(){if(r)return r.registerPath(n,o),function(){r.unregisterPath(n,o)}},[o]),r?null:i.createElement(NI,me({},e,{ref:t}))}const Ha=i.forwardRef(MI);var TI=["className","children"],_I=function(t,n){var r=t.className,o=t.children,a=at(t,TI),l=i.useContext(ar),s=l.prefixCls,c=l.mode,u=l.rtl;return i.createElement("ul",me({className:k(s,u&&"".concat(s,"-rtl"),"".concat(s,"-sub"),"".concat(s,"-").concat(c==="inline"?"inline":"vertical"),r),role:"menu"},a,{"data-menu-list":!0,ref:n}),o)},Bu=i.forwardRef(_I);Bu.displayName="SubMenuList";function Du(e,t){return _n(e).map(function(n,r){if(i.isValidElement(n)){var o,a,l=n.key,s=(o=(a=n.props)===null||a===void 0?void 0:a.eventKey)!==null&&o!==void 0?o:l,c=s==null;c&&(s="tmp_key-".concat([].concat(ge(t),[r]).join("-")));var u={key:s,eventKey:s};return i.cloneElement(n,u)}return n})}var wn={adjustX:1,adjustY:1},zI={topLeft:{points:["bl","tl"],overflow:wn},topRight:{points:["br","tr"],overflow:wn},bottomLeft:{points:["tl","bl"],overflow:wn},bottomRight:{points:["tr","br"],overflow:wn},leftTop:{points:["tr","tl"],overflow:wn},leftBottom:{points:["br","bl"],overflow:wn},rightTop:{points:["tl","tr"],overflow:wn},rightBottom:{points:["bl","br"],overflow:wn}},jI={topLeft:{points:["bl","tl"],overflow:wn},topRight:{points:["br","tr"],overflow:wn},bottomLeft:{points:["tl","bl"],overflow:wn},bottomRight:{points:["tr","br"],overflow:wn},rightTop:{points:["tr","tl"],overflow:wn},rightBottom:{points:["br","bl"],overflow:wn},leftTop:{points:["tl","tr"],overflow:wn},leftBottom:{points:["bl","br"],overflow:wn}};function yh(e,t,n){if(t)return t;if(n)return n[e]||n.other}var BI={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function DI(e){var t=e.prefixCls,n=e.visible,r=e.children,o=e.popup,a=e.popupStyle,l=e.popupClassName,s=e.popupOffset,c=e.disabled,u=e.mode,d=e.onVisibleChange,f=i.useContext(ar),m=f.getPopupContainer,v=f.rtl,p=f.subMenuOpenDelay,h=f.subMenuCloseDelay,g=f.builtinPlacements,b=f.triggerSubMenuAction,C=f.forceSubMenuRender,y=f.rootClassName,$=f.motion,S=f.defaultMotions,E=i.useState(!1),O=ee(E,2),w=O[0],x=O[1],I=D(v?D({},jI):D({},zI),g),P=BI[u],N=yh(u,$,S),M=i.useRef(N);u!=="inline"&&(M.current=N);var R=D(D({},M.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),_=i.useRef();return i.useEffect(function(){return _.current=Et(function(){x(n)}),function(){Et.cancel(_.current)}},[n]),i.createElement(Sl,{prefixCls:t,popupClassName:k("".concat(t,"-popup"),j({},"".concat(t,"-rtl"),v),l,y),stretch:u==="horizontal"?"minWidth":null,getPopupContainer:m,builtinPlacements:I,popupPlacement:P,popupVisible:w,popup:o,popupStyle:a,popupAlign:s&&{offset:s},action:c?[]:[b],mouseEnterDelay:p,mouseLeaveDelay:h,onPopupVisibleChange:d,forceRender:C,popupMotion:R,fresh:!0},r)}function LI(e){var t=e.id,n=e.open,r=e.keyPath,o=e.children,a="inline",l=i.useContext(ar),s=l.prefixCls,c=l.forceSubMenuRender,u=l.motion,d=l.defaultMotions,f=l.mode,m=i.useRef(!1);m.current=f===a;var v=i.useState(!m.current),p=ee(v,2),h=p[0],g=p[1],b=m.current?n:!1;i.useEffect(function(){m.current&&g(!1)},[f]);var C=D({},yh(a,u,d));r.length>1&&(C.motionAppear=!1);var y=C.onVisibleChanged;return C.onVisibleChanged=function($){return!m.current&&!$&&g(!0),y==null?void 0:y($)},h?null:i.createElement(Ra,{mode:a,locked:!m.current},i.createElement(ir,me({visible:b},C,{forceRender:c,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),function($){var S=$.className,E=$.style;return i.createElement(Bu,{id:t,className:S,style:E},o)}))}var AI=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],FI=["active"],HI=i.forwardRef(function(e,t){var n=e.style,r=e.className,o=e.title,a=e.eventKey;e.warnKey;var l=e.disabled,s=e.internalPopupClose,c=e.children,u=e.itemIcon,d=e.expandIcon,f=e.popupClassName,m=e.popupOffset,v=e.popupStyle,p=e.onClick,h=e.onMouseEnter,g=e.onMouseLeave,b=e.onTitleClick,C=e.onTitleMouseEnter,y=e.onTitleMouseLeave,$=at(e,AI),S=dh(a),E=i.useContext(ar),O=E.prefixCls,w=E.mode,x=E.openKeys,I=E.disabled,P=E.overflowDisabled,N=E.activeKey,M=E.selectedKeys,R=E.itemIcon,_=E.expandIcon,T=E.onItemClick,z=E.onOpenChange,B=E.onActive,L=i.useContext(_u),F=L._internalRenderSubMenuItem,K=i.useContext(vh),W=K.isSubPathKey,A=Ho(),V="".concat(O,"-submenu"),G=I||l,U=i.useRef(),ne=i.useRef(),J=u??R,Q=d??_,le=x.includes(a),re=!P&&le,X=W(M,a),oe=ph(a,G,C,y),Z=oe.active,q=at(oe,FI),Y=i.useState(!1),ie=ee(Y,2),ue=ie[0],he=ie[1],be=function(Me){G||he(Me)},ae=function(Me){be(!0),h==null||h({key:a,domEvent:Me})},fe=function(Me){be(!1),g==null||g({key:a,domEvent:Me})},se=i.useMemo(function(){return Z||(w!=="inline"?ue||W([N],a):!1)},[w,Z,N,ue,a,W]),ce=hh(A.length),Se=function(Me){G||(b==null||b({key:a,domEvent:Me}),w==="inline"&&z(a,!le))},we=na(function(Ee){p==null||p(Hi(Ee)),T(Ee)}),je=function(Me){w!=="inline"&&z(a,Me)},Ne=function(){B(a)},Oe=S&&"".concat(S,"-popup"),Te=i.useMemo(function(){return i.createElement(bh,{icon:w!=="horizontal"?Q:void 0,props:D(D({},e),{},{isOpen:re,isSubMenu:!0})},i.createElement("i",{className:"".concat(V,"-arrow")}))},[w,Q,e,re,V]),ve=i.createElement("div",me({role:"menuitem",style:ce,className:"".concat(V,"-title"),tabIndex:G?null:-1,ref:U,title:typeof o=="string"?o:null,"data-menu-id":P&&S?null:S,"aria-expanded":re,"aria-haspopup":!0,"aria-controls":Oe,"aria-disabled":G,onClick:Se,onFocus:Ne},q),o,Te),de=i.useRef(w);if(w!=="inline"&&A.length>1?de.current="vertical":de.current=w,!P){var xe=de.current;ve=i.createElement(DI,{mode:xe,prefixCls:V,visible:!s&&re&&w!=="inline",popupClassName:f,popupOffset:m,popupStyle:v,popup:i.createElement(Ra,{mode:xe==="horizontal"?"vertical":xe},i.createElement(Bu,{id:Oe,ref:ne},c)),disabled:G,onVisibleChange:je},ve)}var Ce=i.createElement(cr.Item,me({ref:t,role:"none"},$,{component:"li",style:n,className:k(V,"".concat(V,"-").concat(w),r,j(j(j(j({},"".concat(V,"-open"),re),"".concat(V,"-active"),se),"".concat(V,"-selected"),X),"".concat(V,"-disabled"),G)),onMouseEnter:ae,onMouseLeave:fe}),ve,!P&&i.createElement(LI,{id:Oe,open:re,keyPath:A},c));return F&&(Ce=F(Ce,e,{selected:X,active:se,open:re,disabled:G})),i.createElement(Ra,{onItemClick:we,mode:w==="horizontal"?"vertical":w,itemIcon:J,expandIcon:Q},Ce)}),Il=i.forwardRef(function(e,t){var n=e.eventKey,r=e.children,o=Ho(n),a=Du(r,o),l=Ol();i.useEffect(function(){if(l)return l.registerPath(n,o),function(){l.unregisterPath(n,o)}},[o]);var s;return l?s=a:s=i.createElement(HI,me({ref:t},e),a),i.createElement(mh.Provider,{value:o},s)});function Lu(e){var t=e.className,n=e.style,r=i.useContext(ar),o=r.prefixCls,a=Ol();return a?null:i.createElement("li",{role:"separator",className:k("".concat(o,"-item-divider"),t),style:n})}var kI=["className","title","eventKey","children"],VI=i.forwardRef(function(e,t){var n=e.className,r=e.title;e.eventKey;var o=e.children,a=at(e,kI),l=i.useContext(ar),s=l.prefixCls,c="".concat(s,"-item-group");return i.createElement("li",me({ref:t,role:"presentation"},a,{onClick:function(d){return d.stopPropagation()},className:k(c,n)}),i.createElement("div",{role:"presentation",className:"".concat(c,"-title"),title:typeof r=="string"?r:void 0},r),i.createElement("ul",{role:"group",className:"".concat(c,"-list")},o))}),Au=i.forwardRef(function(e,t){var n=e.eventKey,r=e.children,o=Ho(n),a=Du(r,o),l=Ol();return l?a:i.createElement(VI,me({ref:t},Xt(e,["warnKey"])),a)}),KI=["label","children","key","type","extra"];function Fc(e,t,n){var r=t.item,o=t.group,a=t.submenu,l=t.divider;return(e||[]).map(function(s,c){if(s&&Ue(s)==="object"){var u=s,d=u.label,f=u.children,m=u.key,v=u.type,p=u.extra,h=at(u,KI),g=m??"tmp-".concat(c);return f||v==="group"?v==="group"?i.createElement(o,me({key:g},h,{title:d}),Fc(f,t,n)):i.createElement(a,me({key:g},h,{title:d}),Fc(f,t,n)):v==="divider"?i.createElement(l,me({key:g},h)):i.createElement(r,me({key:g},h,{extra:p}),d,(!!p||p===0)&&i.createElement("span",{className:"".concat(n,"-item-extra")},p))}return null}).filter(function(s){return s})}function vm(e,t,n,r,o){var a=e,l=D({divider:Lu,item:Ha,group:Au,submenu:Il},r);return t&&(a=Fc(t,l,o)),Du(a,n)}var WI=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem","_internalComponents"],Hr=[],GI=i.forwardRef(function(e,t){var n,r=e,o=r.prefixCls,a=o===void 0?"rc-menu":o,l=r.rootClassName,s=r.style,c=r.className,u=r.tabIndex,d=u===void 0?0:u,f=r.items,m=r.children,v=r.direction,p=r.id,h=r.mode,g=h===void 0?"vertical":h,b=r.inlineCollapsed,C=r.disabled,y=r.disabledOverflow,$=r.subMenuOpenDelay,S=$===void 0?.1:$,E=r.subMenuCloseDelay,O=E===void 0?.1:E,w=r.forceSubMenuRender,x=r.defaultOpenKeys,I=r.openKeys,P=r.activeKey,N=r.defaultActiveFirst,M=r.selectable,R=M===void 0?!0:M,_=r.multiple,T=_===void 0?!1:_,z=r.defaultSelectedKeys,B=r.selectedKeys,L=r.onSelect,F=r.onDeselect,K=r.inlineIndent,W=K===void 0?24:K,A=r.motion,V=r.defaultMotions,G=r.triggerSubMenuAction,U=G===void 0?"hover":G,ne=r.builtinPlacements,J=r.itemIcon,Q=r.expandIcon,le=r.overflowedIndicator,re=le===void 0?"...":le,X=r.overflowedIndicatorPopupClassName,oe=r.getPopupContainer,Z=r.onClick,q=r.onOpenChange,Y=r.onKeyDown;r.openAnimation,r.openTransitionName;var ie=r._internalRenderMenuItem,ue=r._internalRenderSubMenuItem,he=r._internalComponents,be=at(r,WI),ae=i.useMemo(function(){return[vm(m,f,Hr,he,a),vm(m,f,Hr,{},a)]},[m,f,he]),fe=ee(ae,2),se=fe[0],ce=fe[1],Se=i.useState(!1),we=ee(Se,2),je=we[0],Ne=we[1],Oe=i.useRef(),Te=wI(p),ve=v==="rtl",de=ln(x,{value:I,postState:function(Ye){return Ye||Hr}}),xe=ee(de,2),Ce=xe[0],Ee=xe[1],Me=function(Ye){var qe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function Nt(){Ee(Ye),q==null||q(Ye)}qe?br.flushSync(Nt):Nt()},Qe=i.useState(Ce),Ve=ee(Qe,2),Fe=Ve[0],ft=Ve[1],mt=i.useRef(!1),ot=i.useMemo(function(){return(g==="inline"||g==="vertical")&&b?["vertical",b]:[g,!1]},[g,b]),Bt=ee(ot,2),bt=Bt[0],ct=Bt[1],et=bt==="inline",gt=i.useState(bt),dt=ee(gt,2),_e=dt[0],Ge=dt[1],He=i.useState(ct),$e=ee(He,2),ye=$e[0],pe=$e[1];i.useEffect(function(){Ge(bt),pe(ct),mt.current&&(et?Ee(Fe):Me(Hr))},[bt,ct]);var Ie=i.useState(0),Ke=ee(Ie,2),We=Ke[0],vt=Ke[1],Be=We>=se.length-1||_e!=="horizontal"||y;i.useEffect(function(){et&&ft(Ce)},[Ce]),i.useEffect(function(){return mt.current=!0,function(){mt.current=!1}},[]);var Pe=xI(),Ze=Pe.registerPath,yt=Pe.unregisterPath,St=Pe.refreshOverflowKeys,$t=Pe.isSubPathKey,_t=Pe.getKeyPath,ht=Pe.getKeys,Ot=Pe.getSubPathKeys,Re=i.useMemo(function(){return{registerPath:Ze,unregisterPath:yt}},[Ze,yt]),De=i.useMemo(function(){return{isSubPathKey:$t}},[$t]);i.useEffect(function(){St(Be?Hr:se.slice(We+1).map(function(jt){return jt.key}))},[We,Be]);var rt=ln(P||N&&((n=se[0])===null||n===void 0?void 0:n.key),{value:P}),tt=ee(rt,2),Xe=tt[0],ke=tt[1],lt=na(function(jt){ke(jt)}),xt=na(function(){ke(void 0)});i.useImperativeHandle(t,function(){return{list:Oe.current,focus:function(Ye){var qe,Nt=ht(),It=Lc(Nt,Te),Dt=It.elements,Vt=It.key2element,dn=It.element2key,Zt=zu(Oe.current,Dt),fn=Xe??(Zt[0]?dn.get(Zt[0]):(qe=se.find(function(Wn){return!Wn.props.disabled}))===null||qe===void 0?void 0:qe.key),rn=Vt.get(fn);if(fn&&rn){var mn;rn==null||(mn=rn.focus)===null||mn===void 0||mn.call(rn,Ye)}}}});var ze=ln(z||[],{value:B,postState:function(Ye){return Array.isArray(Ye)?Ye:Ye==null?Hr:[Ye]}}),Je=ee(ze,2),ut=Je[0],Kt=Je[1],Qt=function(Ye){if(R){var qe=Ye.key,Nt=ut.includes(qe),It;T?Nt?It=ut.filter(function(Vt){return Vt!==qe}):It=[].concat(ge(ut),[qe]):It=[qe],Kt(It);var Dt=D(D({},Ye),{},{selectedKeys:It});Nt?F==null||F(Dt):L==null||L(Dt)}!T&&Ce.length&&_e!=="inline"&&Me(Hr)},pn=na(function(jt){Z==null||Z(Hi(jt)),Qt(jt)}),hn=na(function(jt,Ye){var qe=Ce.filter(function(It){return It!==jt});if(Ye)qe.push(jt);else if(_e!=="inline"){var Nt=Ot(jt);qe=qe.filter(function(It){return!Nt.has(It)})}ur(Ce,qe,!0)||Me(qe,!0)}),sn=function(Ye,qe){var Nt=qe??!Ce.includes(Ye);hn(Ye,Nt)},yn=yI(_e,Xe,ve,Te,Oe,ht,_t,ke,sn,Y);i.useEffect(function(){Ne(!0)},[]);var Cn=i.useMemo(function(){return{_internalRenderMenuItem:ie,_internalRenderSubMenuItem:ue}},[ie,ue]),Mn=_e!=="horizontal"||y?se:se.map(function(jt,Ye){return i.createElement(Ra,{key:jt.key,overflowDisabled:Ye>We},jt)}),Sn=i.createElement(cr,me({id:p,ref:Oe,prefixCls:"".concat(a,"-overflow"),component:"ul",itemComponent:Ha,className:k(a,"".concat(a,"-root"),"".concat(a,"-").concat(_e),c,j(j({},"".concat(a,"-inline-collapsed"),ye),"".concat(a,"-rtl"),ve),l),dir:v,style:s,role:"menu",tabIndex:d,data:Mn,renderRawItem:function(Ye){return Ye},renderRawRest:function(Ye){var qe=Ye.length,Nt=qe?se.slice(-qe):null;return i.createElement(Il,{eventKey:Ac,title:re,disabled:Be,internalPopupClose:qe===0,popupClassName:X},Nt)},maxCount:_e!=="horizontal"||y?cr.INVALIDATE:cr.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(Ye){vt(Ye)},onKeyDown:yn},be));return i.createElement(_u.Provider,{value:Cn},i.createElement(ch.Provider,{value:Te},i.createElement(Ra,{prefixCls:a,rootClassName:l,mode:_e,openKeys:Ce,rtl:ve,disabled:C,motion:je?A:null,defaultMotions:je?V:null,activeKey:Xe,onActive:lt,onInactive:xt,selectedKeys:ut,inlineIndent:W,subMenuOpenDelay:S,subMenuCloseDelay:O,forceSubMenuRender:w,builtinPlacements:ne,triggerSubMenuAction:U,getPopupContainer:oe,itemIcon:J,expandIcon:Q,onItemClick:pn,onOpenChange:hn},i.createElement(vh.Provider,{value:De},Sn),i.createElement("div",{style:{display:"none"},"aria-hidden":!0},i.createElement(fh.Provider,{value:Re},ce)))))}),ko=GI;ko.Item=Ha;ko.SubMenu=Il;ko.ItemGroup=Au;ko.Divider=Lu;var qI={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"},UI=function(t,n){return i.createElement(Pt,me({},t,{ref:n,icon:qI}))},XI=i.forwardRef(UI);const Ch=i.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}}),YI=e=>{const{antCls:t,componentCls:n,colorText:r,footerBg:o,headerHeight:a,headerPadding:l,headerColor:s,footerPadding:c,fontSize:u,bodyBg:d,headerBg:f}=e;return{[n]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:d,"&, *":{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:l,color:s,lineHeight:H(a),background:f,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:c,color:r,fontSize:u,background:o},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}},Sh=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:o,controlHeightSM:a,marginXXS:l,colorTextLightSolid:s,colorBgContainer:c}=e,u=r*1.25;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:n*2,headerPadding:`0 ${u}px`,headerColor:o,footerPadding:`${a}px ${u}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+l*2,triggerBg:"#002140",triggerColor:s,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:c,lightTriggerBg:c,lightTriggerColor:o}},xh=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]],$h=At("Layout",YI,Sh,{deprecatedTokens:xh}),QI=e=>{const{componentCls:t,siderBg:n,motionDurationMid:r,motionDurationSlow:o,antCls:a,triggerHeight:l,triggerColor:s,triggerBg:c,headerHeight:u,zeroTriggerWidth:d,zeroTriggerHeight:f,borderRadiusLG:m,lightSiderBg:v,lightTriggerColor:p,lightTriggerBg:h,bodyBg:g}=e;return{[t]:{position:"relative",minWidth:0,background:n,transition:`all ${r}, background 0s`,"&-has-trigger":{paddingBottom:l},"&-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:l,color:s,lineHeight:H(l),textAlign:"center",background:c,cursor:"pointer",transition:`all ${r}`},[`${t}-zero-width-trigger`]:{position:"absolute",top:u,insetInlineEnd:e.calc(d).mul(-1).equal(),zIndex:1,width:d,height:f,color:s,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:n,borderRadius:`0 ${H(m)} ${H(m)} 0`,cursor:"pointer",transition:`background ${o} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${o}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(d).mul(-1).equal(),borderRadius:`${H(m)} 0 0 ${H(m)}`}},"&-light":{background:v,[`${t}-trigger`]:{color:p,background:h},[`${t}-zero-width-trigger`]:{color:p,background:h,border:`1px solid ${g}`,borderInlineStart:0}}}}},ZI=At(["Layout","Sider"],QI,Sh,{deprecatedTokens:xh});var JI=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const gm={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},eR=e=>!Number.isNaN(Number.parseFloat(e))&&Number.isFinite(Number(e)),Rl=i.createContext({}),tR=(()=>{let e=0;return(t="")=>(e+=1,`${t}${e}`)})(),wh=i.forwardRef((e,t)=>{const{prefixCls:n,className:r,trigger:o,children:a,defaultCollapsed:l=!1,theme:s="dark",style:c={},collapsible:u=!1,reverseArrow:d=!1,width:f=200,collapsedWidth:m=80,zeroWidthTriggerStyle:v,breakpoint:p,onCollapse:h,onBreakpoint:g}=e,b=JI(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:C}=i.useContext(Ch),[y,$]=i.useState("collapsed"in e?e.collapsed:l),[S,E]=i.useState(!1);i.useEffect(()=>{"collapsed"in e&&$(e.collapsed)},[e.collapsed]);const O=(J,Q)=>{"collapsed"in e||$(J),h==null||h(J,Q)},{getPrefixCls:w,direction:x}=i.useContext(it),I=w("layout-sider",n),[P,N,M]=ZI(I),R=i.useRef(null);R.current=J=>{E(J.matches),g==null||g(J.matches),y!==J.matches&&O(J.matches,"responsive")},i.useEffect(()=>{function J(le){var re;return(re=R.current)===null||re===void 0?void 0:re.call(R,le)}let Q;return typeof(window==null?void 0:window.matchMedia)<"u"&&p&&p in gm&&(Q=window.matchMedia(`screen and (max-width: ${gm[p]})`),Qp(Q,J),J(Q)),()=>{Zp(Q,J)}},[p]),i.useEffect(()=>{const J=tR("ant-sider-");return C.addSider(J),()=>C.removeSider(J)},[]);const _=()=>{O(!y,"clickTrigger")},T=Xt(b,["collapsed"]),z=y?m:f,B=eR(z)?`${z}px`:String(z),L=Number.parseFloat(String(m||0))===0?i.createElement("span",{onClick:_,className:k(`${I}-zero-width-trigger`,`${I}-zero-width-trigger-${d?"right":"left"}`),style:v},o||i.createElement(XI,null)):null,F=x==="rtl"==!d,A={expanded:F?i.createElement(xa,null):i.createElement(Ia,null),collapsed:F?i.createElement(Ia,null):i.createElement(xa,null)}[y?"collapsed":"expanded"],V=o!==null?L||i.createElement("div",{className:`${I}-trigger`,onClick:_,style:{width:B}},o||A):null,G=Object.assign(Object.assign({},c),{flex:`0 0 ${B}`,maxWidth:B,minWidth:B,width:B}),U=k(I,`${I}-${s}`,{[`${I}-collapsed`]:!!y,[`${I}-has-trigger`]:u&&o!==null&&!L,[`${I}-below`]:!!S,[`${I}-zero-width`]:Number.parseFloat(B)===0},r,N,M),ne=i.useMemo(()=>({siderCollapsed:y}),[y]);return P(i.createElement(Rl.Provider,{value:ne},i.createElement("aside",Object.assign({className:U},T,{style:G,ref:t}),i.createElement("div",{className:`${I}-children`},a),u||S&&L?V:null)))});var nR={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"},rR=function(t,n){return i.createElement(Pt,me({},t,{ref:n,icon:nR}))},Fu=i.forwardRef(rR);const ki=i.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var oR=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Eh=e=>{const{prefixCls:t,className:n,dashed:r}=e,o=oR(e,["prefixCls","className","dashed"]),{getPrefixCls:a}=i.useContext(it),l=a("menu",t),s=k({[`${l}-item-divider-dashed`]:!!r},n);return i.createElement(Lu,Object.assign({className:s},o))},Oh=e=>{var t;const{className:n,children:r,icon:o,title:a,danger:l,extra:s}=e,{prefixCls:c,firstLevel:u,direction:d,disableMenuItemTitleTooltip:f,inlineCollapsed:m}=i.useContext(ki),v=y=>{const $=r==null?void 0:r[0],S=i.createElement("span",{className:k(`${c}-title-content`,{[`${c}-title-content-with-extra`]:!!s||s===0})},r);return(!o||i.isValidElement(r)&&r.type==="span")&&r&&y&&u&&typeof $=="string"?i.createElement("div",{className:`${c}-inline-collapsed-noicon`},$.charAt(0)):S},{siderCollapsed:p}=i.useContext(Rl);let h=a;typeof a>"u"?h=u?r:"":a===!1&&(h="");const g={title:h};!p&&!m&&(g.title=null,g.open=!1);const b=_n(r).length;let C=i.createElement(Ha,Object.assign({},Xt(e,["title","icon","danger"]),{className:k({[`${c}-item-danger`]:l,[`${c}-item-only-child`]:(o?b+1:b)===1},n),title:typeof a=="string"?a:void 0}),kn(o,{className:k(i.isValidElement(o)?(t=o.props)===null||t===void 0?void 0:t.className:void 0,`${c}-item-icon`)}),v(m));return f||(C=i.createElement(Oa,Object.assign({},g,{placement:d==="rtl"?"left":"right",classNames:{root:`${c}-inline-collapsed-tooltip`}}),C)),C};var aR=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Vi=i.createContext(null),Ih=i.forwardRef((e,t)=>{const{children:n}=e,r=aR(e,["children"]),o=i.useContext(Vi),a=i.useMemo(()=>Object.assign(Object.assign({},o),r),[o,r.prefixCls,r.mode,r.selectable,r.rootClassName]),l=h0(n),s=$r(t,l?jr(n):null);return i.createElement(Vi.Provider,{value:a},i.createElement(wa,{space:!0},l?i.cloneElement(n,{ref:s}):n))}),iR=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:o,lineWidth:a,lineType:l,itemPaddingInline:s}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${H(a)} ${l} ${o}`,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,
|
|
203
|
+
> ${t}-item-active,
|
|
204
|
+
> ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},lR=({componentCls:e,menuArrowOffset:t,calc:n})=>({[`${e}-rtl`]:{direction:"rtl"},[`${e}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${e}-rtl${e}-vertical,
|
|
205
|
+
${e}-submenu-rtl ${e}-vertical`]:{[`${e}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${H(n(t).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${H(t)})`}}}}),pm=e=>dr(e),hm=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:o,subMenuItemSelectedColor:a,groupTitleColor:l,itemBg:s,subMenuItemBg:c,itemSelectedBg:u,activeBarHeight:d,activeBarWidth:f,activeBarBorderWidth:m,motionDurationSlow:v,motionEaseInOut:p,motionEaseOut:h,itemPaddingInline:g,motionDurationMid:b,itemHoverColor:C,lineType:y,colorSplit:$,itemDisabledColor:S,dangerItemColor:E,dangerItemHoverColor:O,dangerItemSelectedColor:w,dangerItemActiveBg:x,dangerItemSelectedBg:I,popupBg:P,itemHoverBg:N,itemActiveBg:M,menuSubMenuBg:R,horizontalItemSelectedColor:_,horizontalItemSelectedBg:T,horizontalItemBorderRadius:z,horizontalItemHoverBg:B}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:s,[`&${n}-root:focus-visible`]:Object.assign({},pm(e)),[`${n}-item`]:{"&-group-title, &-extra":{color:l}},[`${n}-submenu-selected > ${n}-submenu-title`]:{color:a},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},pm(e))},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${S} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:C}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:N},"&:active":{backgroundColor:M}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:N},"&:active":{backgroundColor:M}}},[`${n}-item-danger`]:{color:E,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:O}},[`&${n}-item:active`]:{background:x}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:o,[`&${n}-item-danger`]:{color:w},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:u,[`&${n}-item-danger`]:{backgroundColor:I}},[`&${n}-submenu > ${n}`]:{backgroundColor:R},[`&${n}-popup > ${n}`]:{backgroundColor:P},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:P},[`&${n}-horizontal`]:Object.assign(Object.assign({},t==="dark"?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:m,marginTop:e.calc(m).mul(-1).equal(),marginBottom:0,borderRadius:z,"&::after":{position:"absolute",insetInline:g,bottom:0,borderBottom:`${H(d)} solid transparent`,transition:`border-color ${v} ${p}`,content:'""'},"&:hover, &-active, &-open":{background:B,"&::after":{borderBottomWidth:d,borderBottomColor:_}},"&-selected":{color:_,backgroundColor:T,"&:hover":{backgroundColor:T},"&::after":{borderBottomWidth:d,borderBottomColor:_}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${H(m)} ${y} ${$}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:c},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${H(f)} solid ${o}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${b} ${h}`,`opacity ${b} ${h}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:w}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${b} ${p}`,`opacity ${b} ${p}`].join(",")}}}}}},bm=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:o,menuArrowSize:a,marginXS:l,itemMarginBlock:s,itemWidth:c,itemPaddingInline:u}=e,d=e.calc(a).add(o).add(l).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:H(n),paddingInline:u,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:s,width:c},[`> ${t}-item,
|
|
206
|
+
> ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:H(n)},[`${t}-item-group-list ${t}-submenu-title,
|
|
207
|
+
${t}-submenu-title`]:{paddingInlineEnd:d}}},sR=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:o,dropdownWidth:a,controlHeightLG:l,motionEaseOut:s,paddingXL:c,itemMarginInline:u,fontSizeLG:d,motionDurationFast:f,motionDurationSlow:m,paddingXS:v,boxShadowSecondary:p,collapsedWidth:h,collapsedIconSize:g}=e,b={height:r,lineHeight:H(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},bm(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},bm(e)),{boxShadow:p})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:a,maxHeight:`calc(100vh - ${H(e.calc(l).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 ${m}`,`background ${m}`,`padding ${f} ${s}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:b,[`& ${t}-item-group-title`]:{paddingInlineStart:c}},[`${t}-item`]:b}},{[`${t}-inline-collapsed`]:{width:h,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:d,textAlign:"center"}}},[`> ${t}-item,
|
|
208
|
+
> ${t}-item-group > ${t}-item-group-list > ${t}-item,
|
|
209
|
+
> ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,
|
|
210
|
+
> ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${H(e.calc(g).div(2).equal())} - ${H(u)})`,textOverflow:"clip",[`
|
|
211
|
+
${t}-submenu-arrow,
|
|
212
|
+
${t}-submenu-expand-icon
|
|
213
|
+
`]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:g,lineHeight:H(r),"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:o}},[`${t}-item-group-title`]:Object.assign(Object.assign({},Cr),{paddingInline:v})}}]},ym=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:o,motionEaseOut:a,iconCls:l,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 ${n}`,`padding calc(${n} + 0.1s) ${o}`].join(","),[`${t}-item-icon, ${l}`]:{minWidth:s,fontSize:s,transition:[`font-size ${r} ${a}`,`margin ${n} ${o}`,`color ${n}`].join(","),"+ span":{marginInlineStart:c,opacity:1,transition:[`opacity ${n} ${o}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:Object.assign({},za()),[`&${t}-item-only-child`]:{[`> ${l}, > ${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"}}}},Cm=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:o,menuArrowSize:a,menuArrowOffset:l}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:a,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(a).mul(.6).equal(),height:e.calc(a).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:o,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${H(e.calc(l).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${H(l)})`}}}}},cR=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:o,motionDurationMid:a,motionEaseInOut:l,paddingXS:s,padding:c,colorSplit:u,lineWidth:d,zIndexPopup:f,borderRadiusLG:m,subMenuItemBorderRadius:v,menuArrowSize:p,menuArrowOffset:h,lineType:g,groupTitleLineHeight:b,groupTitleFontSize:C}=e;return[{"":{[n]:Object.assign(Object.assign({},Zr()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},kt(e)),Zr()),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${o} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:e.itemBorderRadius},[`${n}-item-group-title`]:{padding:`${H(s)} ${H(c)}`,fontSize:C,lineHeight:b,transition:`all ${o}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${o} ${l}`,`background ${o} ${l}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${o} ${l}`,`background ${o} ${l}`,`padding ${a} ${l}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${o} ${l}`,`padding ${o} ${l}`].join(",")},[`${n}-title-content`]:{transition:`color ${o}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${t}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${n}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:e.padding}},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:u,borderStyle:g,borderWidth:0,borderTopWidth:d,marginBlock:d,padding:0,"&-dashed":{borderStyle:"dashed"}}}),ym(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${H(e.calc(r).mul(2).equal())} ${H(c)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:f,borderRadius:m,boxShadow:"none",transformOrigin:"0 0",[`&${n}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${n}`]:Object.assign(Object.assign(Object.assign({borderRadius:m},ym(e)),Cm(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:v},[`${n}-submenu-title::after`]:{transition:`transform ${o} ${l}`}})},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS}}}),Cm(e)),{[`&-inline-collapsed ${n}-submenu-arrow,
|
|
214
|
+
&-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${H(h)})`},"&::after":{transform:`rotate(45deg) translateX(${H(e.calc(h).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${H(e.calc(p).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${H(e.calc(h).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${H(h)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},uR=e=>{var t,n,r;const{colorPrimary:o,colorError:a,colorTextDisabled:l,colorErrorBg:s,colorText:c,colorTextDescription:u,colorBgContainer:d,colorFillAlter:f,colorFillContent:m,lineWidth:v,lineWidthBold:p,controlItemBgActive:h,colorBgTextHover:g,controlHeightLG:b,lineHeight:C,colorBgElevated:y,marginXXS:$,padding:S,fontSize:E,controlHeightSM:O,fontSizeLG:w,colorTextLightSolid:x,colorErrorHover:I}=e,P=(t=e.activeBarWidth)!==null&&t!==void 0?t:0,N=(n=e.activeBarBorderWidth)!==null&&n!==void 0?n:v,M=(r=e.itemMarginInline)!==null&&r!==void 0?r:e.marginXXS,R=new zt(x).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:c,itemColor:c,colorItemTextHover:c,itemHoverColor:c,colorItemTextHoverHorizontal:o,horizontalItemHoverColor:o,colorGroupTitle:u,groupTitleColor:u,colorItemTextSelected:o,itemSelectedColor:o,subMenuItemSelectedColor:o,colorItemTextSelectedHorizontal:o,horizontalItemSelectedColor:o,colorItemBg:d,itemBg:d,colorItemBgHover:g,itemHoverBg:g,colorItemBgActive:m,itemActiveBg:h,colorSubItemBg:f,subMenuItemBg:f,colorItemBgSelected:h,itemSelectedBg:h,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:P,colorActiveBarHeight:p,activeBarHeight:p,colorActiveBarBorderSize:v,activeBarBorderWidth:N,colorItemTextDisabled:l,itemDisabledColor:l,colorDangerItemText:a,dangerItemColor:a,colorDangerItemTextHover:a,dangerItemHoverColor:a,colorDangerItemTextSelected:a,dangerItemSelectedColor:a,colorDangerItemBgActive:s,dangerItemActiveBg:s,colorDangerItemBgSelected:s,dangerItemSelectedBg:s,itemMarginInline:M,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:b,groupTitleLineHeight:C,collapsedWidth:b*2,popupBg:y,itemMarginBlock:$,itemPaddingInline:S,horizontalLineHeight:`${b*1.15}px`,iconSize:E,iconMarginInlineEnd:O-E,collapsedIconSize:w,groupTitleFontSize:E,darkItemDisabledColor:new zt(x).setA(.25).toRgbString(),darkItemColor:R,darkDangerItemColor:a,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:x,darkItemSelectedBg:o,darkDangerItemSelectedBg:a,darkItemHoverBg:"transparent",darkGroupTitleColor:R,darkItemHoverColor:x,darkDangerItemHoverColor:I,darkDangerItemSelectedColor:x,darkDangerItemActiveBg:a,itemWidth:P?`calc(100% + ${N}px)`:`calc(100% - ${M*2}px)`}},dR=(e,t=e,n=!0)=>At("Menu",o=>{const{colorBgElevated:a,controlHeightLG:l,fontSize:s,darkItemColor:c,darkDangerItemColor:u,darkItemBg:d,darkSubMenuItemBg:f,darkItemSelectedColor:m,darkItemSelectedBg:v,darkDangerItemSelectedBg:p,darkItemHoverBg:h,darkGroupTitleColor:g,darkItemHoverColor:b,darkItemDisabledColor:C,darkDangerItemHoverColor:y,darkDangerItemSelectedColor:$,darkDangerItemActiveBg:S,popupBg:E,darkPopupBg:O}=o,w=o.calc(s).div(7).mul(5).equal(),x=wt(o,{menuArrowSize:w,menuHorizontalHeight:o.calc(l).mul(1.15).equal(),menuArrowOffset:o.calc(w).mul(.25).equal(),menuSubMenuBg:a,calc:o.calc,popupBg:E}),I=wt(x,{itemColor:c,itemHoverColor:b,groupTitleColor:g,itemSelectedColor:m,subMenuItemSelectedColor:m,itemBg:d,popupBg:O,subMenuItemBg:f,itemActiveBg:"transparent",itemSelectedBg:v,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:h,itemDisabledColor:C,dangerItemColor:u,dangerItemHoverColor:y,dangerItemSelectedColor:$,dangerItemActiveBg:S,dangerItemSelectedBg:p,menuSubMenuBg:f,horizontalItemSelectedColor:m,horizontalItemSelectedBg:v});return[cR(x),iR(x),sR(x),hm(x,"light"),hm(I,"dark"),lR(x),vu(x),_r(x,"slide-up"),_r(x,"slide-down"),cl(x,"zoom-big")]},uR,{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),Rh=e=>{var t;const{popupClassName:n,icon:r,title:o,theme:a}=e,l=i.useContext(ki),{prefixCls:s,inlineCollapsed:c,theme:u}=l,d=Ho();let f;if(!r)f=c&&!d.length&&o&&typeof o=="string"?i.createElement("div",{className:`${s}-inline-collapsed-noicon`},o.charAt(0)):i.createElement("span",{className:`${s}-title-content`},o);else{const p=i.isValidElement(o)&&o.type==="span";f=i.createElement(i.Fragment,null,kn(r,{className:k(i.isValidElement(r)?(t=r.props)===null||t===void 0?void 0:t.className:void 0,`${s}-item-icon`)}),p?o:i.createElement("span",{className:`${s}-title-content`},o))}const m=i.useMemo(()=>Object.assign(Object.assign({},l),{firstLevel:!1}),[l]),[v]=rl("Menu");return i.createElement(ki.Provider,{value:m},i.createElement(Il,Object.assign({},Xt(e,["icon"]),{title:f,popupClassName:k(s,n,`${s}-${a||u}`),popupStyle:Object.assign({zIndex:v},e.popupStyle)})))};var fR=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function ys(e){return e===null||e===!1}const mR={item:Oh,submenu:Rh,divider:Eh},vR=i.forwardRef((e,t)=>{var n;const r=i.useContext(Vi),o=r||{},{getPrefixCls:a,getPopupContainer:l,direction:s,menu:c}=i.useContext(it),u=a(),{prefixCls:d,className:f,style:m,theme:v="light",expandIcon:p,_internalDisableMenuItemTitleTooltip:h,inlineCollapsed:g,siderCollapsed:b,rootClassName:C,mode:y,selectable:$,onClick:S,overflowedIndicatorPopupClassName:E}=e,O=fR(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),w=Xt(O,["collapsedWidth"]);(n=o.validator)===null||n===void 0||n.call(o,{mode:y});const x=Lt((...W)=>{var A;S==null||S.apply(void 0,W),(A=o.onClick)===null||A===void 0||A.call(o)}),I=o.mode||y,P=$??o.selectable,N=g??b,M={horizontal:{motionName:`${u}-slide-up`},inline:Di(u),other:{motionName:`${u}-zoom-big`}},R=a("menu",d||o.prefixCls),_=Pn(R),[T,z,B]=dR(R,_,!r),L=k(`${R}-${v}`,c==null?void 0:c.className,f),F=i.useMemo(()=>{var W,A;if(typeof p=="function"||ys(p))return p||null;if(typeof o.expandIcon=="function"||ys(o.expandIcon))return o.expandIcon||null;if(typeof(c==null?void 0:c.expandIcon)=="function"||ys(c==null?void 0:c.expandIcon))return(c==null?void 0:c.expandIcon)||null;const V=(W=p??(o==null?void 0:o.expandIcon))!==null&&W!==void 0?W:c==null?void 0:c.expandIcon;return kn(V,{className:k(`${R}-submenu-expand-icon`,i.isValidElement(V)?(A=V.props)===null||A===void 0?void 0:A.className:void 0)})},[p,o==null?void 0:o.expandIcon,c==null?void 0:c.expandIcon,R]),K=i.useMemo(()=>({prefixCls:R,inlineCollapsed:N||!1,direction:s,firstLevel:!0,theme:v,mode:I,disableMenuItemTitleTooltip:h}),[R,N,s,h,v]);return T(i.createElement(Vi.Provider,{value:null},i.createElement(ki.Provider,{value:K},i.createElement(ko,Object.assign({getPopupContainer:l,overflowedIndicator:i.createElement(Fu,null),overflowedIndicatorPopupClassName:k(R,`${R}-${v}`,E),mode:I,selectable:P,onClick:x},w,{inlineCollapsed:N,style:Object.assign(Object.assign({},c==null?void 0:c.style),m),className:L,prefixCls:R,direction:s,defaultMotions:M,expandIcon:F,ref:t,rootClassName:k(C,z,o.rootClassName,B,_),_internalComponents:mR})))))}),Vo=i.forwardRef((e,t)=>{const n=i.useRef(null),r=i.useContext(Rl);return i.useImperativeHandle(t,()=>({menu:n.current,focus:o=>{var a;(a=n.current)===null||a===void 0||a.focus(o)}})),i.createElement(vR,Object.assign({ref:n},e,r))});Vo.Item=Oh;Vo.SubMenu=Rh;Vo.Divider=Eh;Vo.ItemGroup=Au;const gR=e=>{const{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:o}=e,a=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${a}`]:{[`&${a}-danger:not(${a}-disabled)`]:{color:r,"&:hover":{color:o,backgroundColor:r}}}}}},pR=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:o,sizePopupArrow:a,antCls:l,iconCls:s,motionDurationMid:c,paddingBlock:u,fontSize:d,dropdownEdgeChildPadding:f,colorTextDisabled:m,fontSizeIcon:v,controlPaddingHorizontal:p,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(o).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${l}-btn`]:{[`& > ${s}-down, & > ${l}-btn-icon > ${s}-down`]:{fontSize:v}},[`${t}-wrap`]:{position:"relative",[`${l}-btn > ${s}-down`]:{fontSize:v},[`${s}-down::before`]:{transition:`transform ${c}`}},[`${t}-wrap-open`]:{[`${s}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${l}-slide-down-enter${l}-slide-down-enter-active${t}-placement-bottomLeft,
|
|
215
|
+
&${l}-slide-down-appear${l}-slide-down-appear-active${t}-placement-bottomLeft,
|
|
216
|
+
&${l}-slide-down-enter${l}-slide-down-enter-active${t}-placement-bottom,
|
|
217
|
+
&${l}-slide-down-appear${l}-slide-down-appear-active${t}-placement-bottom,
|
|
218
|
+
&${l}-slide-down-enter${l}-slide-down-enter-active${t}-placement-bottomRight,
|
|
219
|
+
&${l}-slide-down-appear${l}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:gu},[`&${l}-slide-up-enter${l}-slide-up-enter-active${t}-placement-topLeft,
|
|
220
|
+
&${l}-slide-up-appear${l}-slide-up-appear-active${t}-placement-topLeft,
|
|
221
|
+
&${l}-slide-up-enter${l}-slide-up-enter-active${t}-placement-top,
|
|
222
|
+
&${l}-slide-up-appear${l}-slide-up-appear-active${t}-placement-top,
|
|
223
|
+
&${l}-slide-up-enter${l}-slide-up-enter-active${t}-placement-topRight,
|
|
224
|
+
&${l}-slide-up-appear${l}-slide-up-appear-active${t}-placement-topRight`]:{animationName:hu},[`&${l}-slide-down-leave${l}-slide-down-leave-active${t}-placement-bottomLeft,
|
|
225
|
+
&${l}-slide-down-leave${l}-slide-down-leave-active${t}-placement-bottom,
|
|
226
|
+
&${l}-slide-down-leave${l}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:pu},[`&${l}-slide-up-leave${l}-slide-up-leave-active${t}-placement-topLeft,
|
|
227
|
+
&${l}-slide-up-leave${l}-slide-up-leave-active${t}-placement-top,
|
|
228
|
+
&${l}-slide-up-leave${l}-slide-up-leave-active${t}-placement-topRight`]:{animationName:bu}}},rh(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`]:Object.assign(Object.assign({},kt(e)),{[n]:Object.assign(Object.assign({padding:f,listStyleType:"none",backgroundColor:h,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},Sr(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${H(u)} ${H(p)}`,color:e.colorTextDescription,transition:`all ${c}`},[`${n}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${n}-item-icon`]:{minWidth:d,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${n}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${c}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${n}-item-extra`]:{paddingInlineStart:e.padding,marginInlineStart:"auto",fontSize:e.fontSizeSM,color:e.colorTextDescription}},[`${n}-item, ${n}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${H(u)} ${H(p)}`,color:e.colorText,fontWeight:"normal",fontSize:d,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${c}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},Sr(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:m,cursor:"not-allowed","&:hover":{color:m,backgroundColor:h,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${H(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:v,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${H(e.marginXS)}`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(p).add(e.fontSizeSM).equal()},[`${n}-submenu-vertical`]:{position:"relative"},[`${n}-submenu${n}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:m,backgroundColor:h,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})})},[_r(e,"slide-up"),_r(e,"slide-down"),Li(e,"move-up"),Li(e,"move-down"),cl(e,"zoom-big")]]},hR=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},Tu({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),th(e)),bR=At("Dropdown",e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:o}=e,a=wt(e,{menuCls:`${o}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[pR(a),gR(a)]},hR,{resetStyle:!1}),Pl=e=>{var t;const{menu:n,arrow:r,prefixCls:o,children:a,trigger:l,disabled:s,dropdownRender:c,popupRender:u,getPopupContainer:d,overlayClassName:f,rootClassName:m,overlayStyle:v,open:p,onOpenChange:h,visible:g,onVisibleChange:b,mouseEnterDelay:C=.15,mouseLeaveDelay:y=.1,autoAdjustOverflow:$=!0,placement:S="",overlay:E,transitionName:O,destroyOnHidden:w,destroyPopupOnHide:x}=e,{getPopupContainer:I,getPrefixCls:P,direction:N,dropdown:M}=i.useContext(it),R=u||c;Br();const _=i.useMemo(()=>{const ie=P();return O!==void 0?O:S.includes("top")?`${ie}-slide-down`:`${ie}-slide-up`},[P,S,O]),T=i.useMemo(()=>S?S.includes("Center")?S.slice(0,S.indexOf("Center")):S:N==="rtl"?"bottomRight":"bottomLeft",[S,N]),z=P("dropdown",o),B=Pn(z),[L,F,K]=bR(z,B),[,W]=Rn(),A=i.Children.only(dI(a)?i.createElement("span",null,a):a),V=kn(A,{className:k(`${z}-trigger`,{[`${z}-rtl`]:N==="rtl"},A.props.className),disabled:(t=A.props.disabled)!==null&&t!==void 0?t:s}),G=s?[]:l,U=!!(G!=null&&G.includes("contextMenu")),[ne,J]=ln(!1,{value:p??g}),Q=Lt(ie=>{h==null||h(ie,{source:"trigger"}),b==null||b(ie),J(ie)}),le=k(f,m,F,K,B,M==null?void 0:M.className,{[`${z}-rtl`]:N==="rtl"}),re=oh({arrowPointAtCenter:typeof r=="object"&&r.pointAtCenter,autoAdjustOverflow:$,offset:W.marginXXS,arrowWidth:r?W.sizePopupArrow:0,borderRadius:W.borderRadius}),X=Lt(()=>{n!=null&&n.selectable&&(n!=null&&n.multiple)||(h==null||h(!1,{source:"menu"}),J(!1))}),oe=()=>{let ie;return n!=null&&n.items?ie=i.createElement(Vo,Object.assign({},n)):typeof E=="function"?ie=E():ie=E,R&&(ie=R(ie)),ie=i.Children.only(typeof ie=="string"?i.createElement("span",null,ie):ie),i.createElement(Ih,{prefixCls:`${z}-menu`,rootClassName:k(K,B),expandIcon:i.createElement("span",{className:`${z}-menu-submenu-arrow`},N==="rtl"?i.createElement(Ia,{className:`${z}-menu-submenu-arrow-icon`}):i.createElement(xa,{className:`${z}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:X,validator:({mode:ue})=>{}},ie)},[Z,q]=rl("Dropdown",v==null?void 0:v.zIndex);let Y=i.createElement(sh,Object.assign({alignPoint:U},Xt(e,["rootClassName"]),{mouseEnterDelay:C,mouseLeaveDelay:y,visible:ne,builtinPlacements:re,arrow:!!r,overlayClassName:le,prefixCls:z,getPopupContainer:d||I,transitionName:_,trigger:G,overlay:oe,placement:T,onVisibleChange:Q,overlayStyle:Object.assign(Object.assign(Object.assign({},M==null?void 0:M.style),v),{zIndex:Z}),autoDestroy:w??x}),V);return Z&&(Y=i.createElement(uu.Provider,{value:q},Y)),L(Y)},yR=Np(Pl,"align",void 0,"dropdown",e=>e),CR=e=>i.createElement(yR,Object.assign({},e),i.createElement("span",null));Pl._InternalPanelDoNotUseOrYouWillBeFired=CR;const Ph=i.createContext(null),SR=Ph.Provider,Nh=i.createContext(null),xR=Nh.Provider;var $R=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],Mh=i.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-checkbox":n,o=e.className,a=e.style,l=e.checked,s=e.disabled,c=e.defaultChecked,u=c===void 0?!1:c,d=e.type,f=d===void 0?"checkbox":d,m=e.title,v=e.onChange,p=at(e,$R),h=i.useRef(null),g=i.useRef(null),b=ln(u,{value:l}),C=ee(b,2),y=C[0],$=C[1];i.useImperativeHandle(t,function(){return{focus:function(w){var x;(x=h.current)===null||x===void 0||x.focus(w)},blur:function(){var w;(w=h.current)===null||w===void 0||w.blur()},input:h.current,nativeElement:g.current}});var S=k(r,o,j(j({},"".concat(r,"-checked"),y),"".concat(r,"-disabled"),s)),E=function(w){s||("checked"in e||$(w.target.checked),v==null||v({target:D(D({},e),{},{type:f,checked:w.target.checked}),stopPropagation:function(){w.stopPropagation()},preventDefault:function(){w.preventDefault()},nativeEvent:w.nativeEvent}))};return i.createElement("span",{className:S,title:m,style:a,ref:g},i.createElement("input",me({},p,{className:"".concat(r,"-input"),ref:h,onChange:E,disabled:s,checked:!!y,type:f})),i.createElement("span",{className:"".concat(r,"-inner")}))});function Th(e){const t=te.useRef(null),n=()=>{Et.cancel(t.current),t.current=null};return[()=>{n(),t.current=Et(()=>{t.current=null})},a=>{t.current&&(a.stopPropagation(),n()),e==null||e(a)}]}const wR=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return{[r]:Object.assign(Object.assign({},kt(e)),{display:"inline-block",fontSize:0,[`&${r}-rtl`]:{direction:"rtl"},[`&${r}-block`]:{display:"flex"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}},ER=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,radioSize:o,motionDurationSlow:a,motionDurationMid:l,motionEaseInOutCirc:s,colorBgContainer:c,colorBorder:u,lineWidth:d,colorBgContainerDisabled:f,colorTextDisabled:m,paddingXS:v,dotColorDisabled:p,lineType:h,radioColor:g,radioBgColor:b,calc:C}=e,y=`${t}-inner`,S=C(o).sub(C(4).mul(2)),E=C(1).mul(o).equal({unit:!0});return{[`${t}-wrapper`]:Object.assign(Object.assign({},kt(e)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer","&:last-child":{marginInlineEnd:0},[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},"&-block":{flex:1,justifyContent:"center"},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${H(d)} ${h} ${r}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[t]:Object.assign(Object.assign({},kt(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &,
|
|
229
|
+
&:hover ${y}`]:{borderColor:r},[`${t}-input:focus-visible + ${y}`]:dr(e),[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:"visible"},[`${t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:E,height:E,marginBlockStart:C(1).mul(o).div(-2).equal({unit:!0}),marginInlineStart:C(1).mul(o).div(-2).equal({unit:!0}),backgroundColor:g,borderBlockStart:0,borderInlineStart:0,borderRadius:E,transform:"scale(0)",opacity:0,transition:`all ${a} ${s}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:E,height:E,backgroundColor:c,borderColor:u,borderStyle:"solid",borderWidth:d,borderRadius:"50%",transition:`all ${l}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[y]:{borderColor:r,backgroundColor:b,"&::after":{transform:`scale(${e.calc(e.dotSize).div(o).equal()})`,opacity:1,transition:`all ${a} ${s}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[y]:{backgroundColor:f,borderColor:u,cursor:"not-allowed","&::after":{backgroundColor:p}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:m,cursor:"not-allowed"},[`&${t}-checked`]:{[y]:{"&::after":{transform:`scale(${C(S).div(o).equal()})`}}}},[`span${t} + *`]:{paddingInlineStart:v,paddingInlineEnd:v}})}},OR=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:o,lineType:a,colorBorder:l,motionDurationMid:s,buttonPaddingInline:c,fontSize:u,buttonBg:d,fontSizeLG:f,controlHeightLG:m,controlHeightSM:v,paddingXS:p,borderRadius:h,borderRadiusSM:g,borderRadiusLG:b,buttonCheckedBg:C,buttonSolidCheckedColor:y,colorTextDisabled:$,colorBgContainerDisabled:S,buttonCheckedBgDisabled:E,buttonCheckedColorDisabled:O,colorPrimary:w,colorPrimaryHover:x,colorPrimaryActive:I,buttonSolidCheckedBg:P,buttonSolidCheckedHoverBg:N,buttonSolidCheckedActiveBg:M,calc:R}=e;return{[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:c,paddingBlock:0,color:t,fontSize:u,lineHeight:H(R(n).sub(R(o).mul(2)).equal()),background:d,border:`${H(o)} ${a} ${l}`,borderBlockStartWidth:R(o).add(.02).equal(),borderInlineEndWidth:o,cursor:"pointer",transition:[`color ${s}`,`background ${s}`,`box-shadow ${s}`].join(","),a:{color:t},[`> ${r}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:last-child)":{marginInlineEnd:R(o).mul(-1).equal()},"&:first-child":{borderInlineStart:`${H(o)} ${a} ${l}`,borderStartStartRadius:h,borderEndStartRadius:h},"&:last-child":{borderStartEndRadius:h,borderEndEndRadius:h},"&:first-child:last-child":{borderRadius:h},[`${r}-group-large &`]:{height:m,fontSize:f,lineHeight:H(R(m).sub(R(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:b,borderEndStartRadius:b},"&:last-child":{borderStartEndRadius:b,borderEndEndRadius:b}},[`${r}-group-small &`]:{height:v,paddingInline:R(p).sub(o).equal(),paddingBlock:0,lineHeight:H(R(v).sub(R(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:g,borderEndStartRadius:g},"&:last-child":{borderStartEndRadius:g,borderEndEndRadius:g}},"&:hover":{position:"relative",color:w},"&:has(:focus-visible)":dr(e),[`${r}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${r}-button-wrapper-disabled)`]:{zIndex:1,color:w,background:C,borderColor:w,"&::before":{backgroundColor:w},"&:first-child":{borderColor:w},"&:hover":{color:x,borderColor:x,"&::before":{backgroundColor:x}},"&:active":{color:I,borderColor:I,"&::before":{backgroundColor:I}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:y,background:P,borderColor:P,"&:hover":{color:y,background:N,borderColor:N},"&:active":{color:y,background:M,borderColor:M}},"&-disabled":{color:$,backgroundColor:S,borderColor:l,cursor:"not-allowed","&:first-child, &:hover":{color:$,backgroundColor:S,borderColor:l}},[`&-disabled${r}-button-wrapper-checked`]:{color:O,backgroundColor:E,borderColor:l,boxShadow:"none"},"&-block":{flex:1,textAlign:"center"}}}},IR=e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:o,fontSizeLG:a,colorText:l,colorBgContainer:s,colorTextDisabled:c,controlItemBgActiveDisabled:u,colorTextLightSolid:d,colorPrimary:f,colorPrimaryHover:m,colorPrimaryActive:v,colorWhite:p}=e,h=4,g=a,b=t?g-h*2:g-(h+o)*2;return{radioSize:g,dotSize:b,dotColorDisabled:c,buttonSolidCheckedColor:d,buttonSolidCheckedBg:f,buttonSolidCheckedHoverBg:m,buttonSolidCheckedActiveBg:v,buttonBg:s,buttonCheckedBg:s,buttonColor:l,buttonCheckedBgDisabled:u,buttonCheckedColorDisabled:c,buttonPaddingInline:n-o,wrapperMarginInlineEnd:r,radioColor:t?f:p,radioBgColor:t?s:f}},_h=At("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${H(n)} ${t}`,a=wt(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return[wR(a),ER(a),OR(a)]},IR,{unitless:{radioSize:!0,dotSize:!0}});var RR=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const PR=(e,t)=>{var n,r;const o=i.useContext(Ph),a=i.useContext(Nh),{getPrefixCls:l,direction:s,radio:c}=i.useContext(it),u=i.useRef(null),d=Vn(t,u),{isFormItemInput:f}=i.useContext(In),m=T=>{var z,B;(z=e.onChange)===null||z===void 0||z.call(e,T),(B=o==null?void 0:o.onChange)===null||B===void 0||B.call(o,T)},{prefixCls:v,className:p,rootClassName:h,children:g,style:b,title:C}=e,y=RR(e,["prefixCls","className","rootClassName","children","style","title"]),$=l("radio",v),S=((o==null?void 0:o.optionType)||a)==="button",E=S?`${$}-button`:$,O=Pn($),[w,x,I]=_h($,O),P=Object.assign({},y),N=i.useContext(Jn);o&&(P.name=o.name,P.onChange=m,P.checked=e.value===o.value,P.disabled=(n=P.disabled)!==null&&n!==void 0?n:o.disabled),P.disabled=(r=P.disabled)!==null&&r!==void 0?r:N;const M=k(`${E}-wrapper`,{[`${E}-wrapper-checked`]:P.checked,[`${E}-wrapper-disabled`]:P.disabled,[`${E}-wrapper-rtl`]:s==="rtl",[`${E}-wrapper-in-form-item`]:f,[`${E}-wrapper-block`]:!!(o!=null&&o.block)},c==null?void 0:c.className,p,h,x,I,O),[R,_]=Th(P.onClick);return w(i.createElement(il,{component:"Radio",disabled:P.disabled},i.createElement("label",{className:M,style:Object.assign(Object.assign({},c==null?void 0:c.style),b),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:C,onClick:R},i.createElement(Mh,Object.assign({},P,{className:k(P.className,{[al]:!S}),type:"radio",prefixCls:E,ref:d,onClick:_})),g!==void 0?i.createElement("span",{className:`${E}-label`},g):null)))},Ki=i.forwardRef(PR),NR=["parentNode"],MR="form_item";function la(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function zh(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:NR.includes(n)?`${MR}_${n}`:n}function jh(e,t,n,r,o,a){let l=r;return a!==void 0?l=a:n.validating?l="validating":e.length?l="error":t.length?l="warning":(n.touched||o&&n.validated)&&(l="success"),l}var TR=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function Hc(e){return la(e).join("_")}function Sm(e,t){const n=t.getFieldInstance(e),r=Ta(n);if(r)return r;const o=zh(la(e),t.__INTERNAL__.name);if(o)return document.getElementById(o)}function Bh(e){const[t]=wu(),n=i.useRef({}),r=i.useMemo(()=>e??Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:o=>a=>{const l=Hc(o);a?n.current[l]=a:delete n.current[l]}},scrollToField:(o,a={})=>{const{focus:l}=a,s=TR(a,["focus"]),c=Sm(o,r);c&&(nx(c,Object.assign({scrollMode:"if-needed",block:"nearest"},s)),l&&r.focusField(o))},focusField:o=>{var a,l;const s=r.getFieldInstance(o);typeof(s==null?void 0:s.focus)=="function"?s.focus():(l=(a=Sm(o,r))===null||a===void 0?void 0:a.focus)===null||l===void 0||l.call(a)},getFieldInstance:o=>{const a=Hc(o);return n.current[a]}}),[e,t]);return[r]}const _R=i.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=i.useContext(it),{name:o}=i.useContext(In),a=hl(Hc(o)),{prefixCls:l,className:s,rootClassName:c,options:u,buttonStyle:d="outline",disabled:f,children:m,size:v,style:p,id:h,optionType:g,name:b=a,defaultValue:C,value:y,block:$=!1,onChange:S,onMouseEnter:E,onMouseLeave:O,onFocus:w,onBlur:x}=e,[I,P]=ln(C,{value:y}),N=i.useCallback(A=>{const V=I,G=A.target.value;"value"in e||P(G),G!==V&&(S==null||S(A))},[I,P,S]),M=n("radio",l),R=`${M}-group`,_=Pn(M),[T,z,B]=_h(M,_);let L=m;u&&u.length>0&&(L=u.map(A=>typeof A=="string"||typeof A=="number"?i.createElement(Ki,{key:A.toString(),prefixCls:M,disabled:f,value:A,checked:I===A},A):i.createElement(Ki,{key:`radio-group-value-options-${A.value}`,prefixCls:M,disabled:A.disabled||f,value:A.value,checked:I===A.value,title:A.title,style:A.style,className:A.className,id:A.id,required:A.required},A.label)));const F=Dn(v),K=k(R,`${R}-${d}`,{[`${R}-${F}`]:F,[`${R}-rtl`]:r==="rtl",[`${R}-block`]:$},s,c,z,B,_),W=i.useMemo(()=>({onChange:N,value:I,disabled:f,name:b,optionType:g,block:$}),[N,I,f,b,g,$]);return T(i.createElement("div",Object.assign({},zn(e,{aria:!0,data:!0}),{className:K,style:p,onMouseEnter:E,onMouseLeave:O,onFocus:w,onBlur:x,id:h,ref:t}),i.createElement(SR,{value:W},L)))}),zR=i.memo(_R);var jR=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const BR=(e,t)=>{const{getPrefixCls:n}=i.useContext(it),{prefixCls:r}=e,o=jR(e,["prefixCls"]),a=n("radio",r);return i.createElement(xR,{value:"button"},i.createElement(Ki,Object.assign({prefixCls:a},o,{type:"radio",ref:t})))},DR=i.forwardRef(BR),ka=Ki;ka.Button=DR;ka.Group=zR;ka.__ANT_RADIO=!0;function Va(e){return wt(e,{inputAffixPadding:e.paddingXXS})}const Ka=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:a,controlHeightLG:l,fontSizeLG:s,lineHeightLG:c,paddingSM:u,controlPaddingHorizontalSM:d,controlPaddingHorizontal:f,colorFillAlter:m,colorPrimaryHover:v,colorPrimary:p,controlOutlineWidth:h,controlOutline:g,colorErrorOutline:b,colorWarningOutline:C,colorBgContainer:y,inputFontSize:$,inputFontSizeLG:S,inputFontSizeSM:E}=e,O=$||n,w=E||O,x=S||s,I=Math.round((t-O*r)/2*10)/10-o,P=Math.round((a-w*r)/2*10)/10-o,N=Math.ceil((l-x*c)/2*10)/10-o;return{paddingBlock:Math.max(I,0),paddingBlockSM:Math.max(P,0),paddingBlockLG:Math.max(N,0),paddingInline:u-o,paddingInlineSM:d-o,paddingInlineLG:f-o,addonBg:m,activeBorderColor:p,hoverBorderColor:v,activeShadow:`0 0 0 ${h}px ${g}`,errorActiveShadow:`0 0 0 ${h}px ${b}`,warningActiveShadow:`0 0 0 ${h}px ${C}`,hoverBg:y,activeBg:y,inputFontSize:O,inputFontSizeLG:x,inputFontSizeSM:w}},LR=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),Nl=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},LR(wt(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),Hu=(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}}),xm=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Hu(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),AR=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Hu(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Nl(e))}),xm(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),xm(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),$m=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),FR=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${H(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},$m(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),$m(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},Nl(e))}})}),HR=(e,t)=>{const{componentCls:n}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${n}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${n}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},Dh=(e,t)=>{var n;return{background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:(n=t==null?void 0:t.inputColor)!==null&&n!==void 0?n:"unset"},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}},wm=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Dh(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),kR=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Dh(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},Nl(e))}),wm(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),wm(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),Em=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),VR=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:"static"}}},Em(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),Em(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:`${H(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${H(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${H(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${H(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${H(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${H(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),Lh=(e,t)=>({background:e.colorBgContainer,borderWidth:`${H(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}}),Om=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Lh(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`}}),KR=(e,t)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Lh(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"}}),Om(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),Om(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),WR=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),Ah=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:o}=e;return{padding:`${H(t)} ${H(o)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},ku=e=>({padding:`${H(e.paddingBlockSM)} ${H(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),Vu=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${H(e.paddingBlock)} ${H(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},WR(e.colorTextPlaceholder)),{"&-lg":Object.assign({},Ah(e)),"&-sm":Object.assign({},ku(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),GR=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},Ah(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},ku(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${H(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${H(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${H(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${H(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${n}-cascader-picker`]:{margin:`-9px ${H(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[t]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},Zr()),{[`${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},[`
|
|
230
|
+
& > ${t}-affix-wrapper,
|
|
231
|
+
& > ${t}-number-affix-wrapper,
|
|
232
|
+
& > ${n}-picker-range
|
|
233
|
+
`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:"none"},[`& > ${n}-select > ${n}-select-selector,
|
|
234
|
+
& > ${n}-select-auto-complete ${t},
|
|
235
|
+
& > ${n}-cascader-picker ${t},
|
|
236
|
+
& > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child,
|
|
237
|
+
& > ${n}-select:first-child > ${n}-select-selector,
|
|
238
|
+
& > ${n}-select-auto-complete:first-child ${t},
|
|
239
|
+
& > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
|
|
240
|
+
& > ${n}-select:last-child > ${n}-select-selector,
|
|
241
|
+
& > ${n}-cascader-picker:last-child ${t},
|
|
242
|
+
& > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},qR=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:o}=e,l=o(n).sub(o(r).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},kt(e)),Vu(e)),AR(e)),kR(e)),HR(e)),KR(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:l,paddingBottom:l}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:"none"}})}},UR=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,padding:0,lineHeight:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,border:"none",outline:"none",backgroundColor:"transparent","&:hover":{color:e.colorIcon},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${H(e.inputAffixPadding)}`}}}},XR=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:a,colorIconHover:l,iconCls:s}=e,c=`${t}-affix-wrapper`,u=`${t}-affix-wrapper-disabled`;return{[c]:Object.assign(Object.assign(Object.assign(Object.assign({},Vu(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r,direction:"ltr"},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),UR(e)),{[`${s}${t}-password-icon`]:{color:a,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:l}}}),[`${t}-underlined`]:{borderRadius:0},[u]:{[`${s}${t}-password-icon`]:{color:a,cursor:"not-allowed","&:hover":{color:a}}}}},YR=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},kt(e)),GR(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:n,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:r}}},FR(e)),VR(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}}})})}},QR=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[t]:{"&:not([disabled]):hover, &:not([disabled]):focus":{[`+ ${t}-group-addon ${r}-button:not(${n}-btn-color-primary):not(${n}-btn-variant-text)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{height:e.controlHeight,borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal()},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{marginInlineEnd:-1,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${r}-button:not(${n}-btn-color-primary)`]:{color:e.colorTextDescription,"&:not([disabled]):hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{inset:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},"&-large":{[`${t}-affix-wrapper, ${r}-button`]:{height:e.controlHeightLG}},"&-small":{[`${t}-affix-wrapper, ${r}-button`]:{height:e.controlHeightSM}},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button,
|
|
243
|
+
> ${t},
|
|
244
|
+
${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},ZR=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},Fh=At(["Input","Shared"],e=>{const t=wt(e,Va(e));return[qR(t),XR(t)]},Ka,{resetFont:!1}),Hh=At(["Input","Component"],e=>{const t=wt(e,Va(e));return[YR(t),QR(t),ZR(t),pl(t)]},Ka,{resetFont:!1});var JR={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"},eP=function(t,n){return i.createElement(Pt,me({},t,{ref:n,icon:JR}))},tP=i.forwardRef(eP);const Ml=i.createContext(null);var nP=function(t){var n=t.activeTabOffset,r=t.horizontal,o=t.rtl,a=t.indicator,l=a===void 0?{}:a,s=l.size,c=l.align,u=c===void 0?"center":c,d=i.useState(),f=ee(d,2),m=f[0],v=f[1],p=i.useRef(),h=te.useCallback(function(b){return typeof s=="function"?s(b):typeof s=="number"?s:b},[s]);function g(){Et.cancel(p.current)}return i.useEffect(function(){var b={};if(n)if(r){b.width=h(n.width);var C=o?"right":"left";u==="start"&&(b[C]=n[C]),u==="center"&&(b[C]=n[C]+n.width/2,b.transform=o?"translateX(50%)":"translateX(-50%)"),u==="end"&&(b[C]=n[C]+n.width,b.transform="translateX(-100%)")}else b.height=h(n.height),u==="start"&&(b.top=n.top),u==="center"&&(b.top=n.top+n.height/2,b.transform="translateY(-50%)"),u==="end"&&(b.top=n.top+n.height,b.transform="translateY(-100%)");return g(),p.current=Et(function(){var y=m&&b&&Object.keys(b).every(function($){var S=b[$],E=m[$];return typeof S=="number"&&typeof E=="number"?Math.round(S)===Math.round(E):S===E});y||v(b)}),g},[JSON.stringify(n),r,o,u,h]),{style:m}},Im={width:0,height:0,left:0,top:0};function rP(e,t,n){return i.useMemo(function(){for(var r,o=new Map,a=t.get((r=e[0])===null||r===void 0?void 0:r.key)||Im,l=a.left+a.width,s=0;s<e.length;s+=1){var c=e[s].key,u=t.get(c);if(!u){var d;u=t.get((d=e[s-1])===null||d===void 0?void 0:d.key)||Im}var f=o.get(c)||D({},u);f.right=l-f.left-f.width,o.set(c,f)}return o},[e.map(function(r){return r.key}).join("_"),t,n])}function Rm(e,t){var n=i.useRef(e),r=i.useState({}),o=ee(r,2),a=o[1];function l(s){var c=typeof s=="function"?s(n.current):s;c!==n.current&&t(c,n.current),n.current=c,a({})}return[n.current,l]}var oP=.1,Pm=.01,Oi=20,Nm=Math.pow(.995,Oi);function aP(e,t){var n=i.useState(),r=ee(n,2),o=r[0],a=r[1],l=i.useState(0),s=ee(l,2),c=s[0],u=s[1],d=i.useState(0),f=ee(d,2),m=f[0],v=f[1],p=i.useState(),h=ee(p,2),g=h[0],b=h[1],C=i.useRef();function y(x){var I=x.touches[0],P=I.screenX,N=I.screenY;a({x:P,y:N}),window.clearInterval(C.current)}function $(x){if(o){var I=x.touches[0],P=I.screenX,N=I.screenY;a({x:P,y:N});var M=P-o.x,R=N-o.y;t(M,R);var _=Date.now();u(_),v(_-c),b({x:M,y:R})}}function S(){if(o&&(a(null),b(null),g)){var x=g.x/m,I=g.y/m,P=Math.abs(x),N=Math.abs(I);if(Math.max(P,N)<oP)return;var M=x,R=I;C.current=window.setInterval(function(){if(Math.abs(M)<Pm&&Math.abs(R)<Pm){window.clearInterval(C.current);return}M*=Nm,R*=Nm,t(M*Oi,R*Oi)},Oi)}}var E=i.useRef();function O(x){var I=x.deltaX,P=x.deltaY,N=0,M=Math.abs(I),R=Math.abs(P);M===R?N=E.current==="x"?I:P:M>R?(N=I,E.current="x"):(N=P,E.current="y"),t(-N,-N)&&x.preventDefault()}var w=i.useRef(null);w.current={onTouchStart:y,onTouchMove:$,onTouchEnd:S,onWheel:O},i.useEffect(function(){function x(M){w.current.onTouchStart(M)}function I(M){w.current.onTouchMove(M)}function P(M){w.current.onTouchEnd(M)}function N(M){w.current.onWheel(M)}return document.addEventListener("touchmove",I,{passive:!1}),document.addEventListener("touchend",P,{passive:!0}),e.current.addEventListener("touchstart",x,{passive:!0}),e.current.addEventListener("wheel",N,{passive:!1}),function(){document.removeEventListener("touchmove",I),document.removeEventListener("touchend",P)}},[])}function kh(e){var t=i.useState(0),n=ee(t,2),r=n[0],o=n[1],a=i.useRef(0),l=i.useRef();return l.current=e,Vs(function(){var s;(s=l.current)===null||s===void 0||s.call(l)},[r]),function(){a.current===r&&(a.current+=1,o(a.current))}}function iP(e){var t=i.useRef([]),n=i.useState({}),r=ee(n,2),o=r[1],a=i.useRef(typeof e=="function"?e():e),l=kh(function(){var c=a.current;t.current.forEach(function(u){c=u(c)}),t.current=[],a.current=c,o({})});function s(c){t.current.push(c),l()}return[a.current,s]}var Mm={width:0,height:0,left:0,top:0,right:0};function lP(e,t,n,r,o,a,l){var s=l.tabs,c=l.tabPosition,u=l.rtl,d,f,m;return["top","bottom"].includes(c)?(d="width",f=u?"right":"left",m=Math.abs(n)):(d="height",f="top",m=-n),i.useMemo(function(){if(!s.length)return[0,0];for(var v=s.length,p=v,h=0;h<v;h+=1){var g=e.get(s[h].key)||Mm;if(Math.floor(g[f]+g[d])>Math.floor(m+t)){p=h-1;break}}for(var b=0,C=v-1;C>=0;C-=1){var y=e.get(s[C].key)||Mm;if(y[f]<m){b=C+1;break}}return b>p?[0,-1]:[b,p]},[e,t,r,o,a,m,c,s.map(function(v){return v.key}).join("_"),u])}function Tm(e){var t;return e instanceof Map?(t={},e.forEach(function(n,r){t[r]=n})):t=e,JSON.stringify(t)}var sP="TABS_DQ";function Vh(e){return String(e).replace(/"/g,sP)}function Ku(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}var Kh=i.forwardRef(function(e,t){var n=e.prefixCls,r=e.editable,o=e.locale,a=e.style;return!r||r.showAdd===!1?null:i.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:a,"aria-label":(o==null?void 0:o.addAriaLabel)||"Add tab",onClick:function(s){r.onEdit("add",{event:s})}},r.addIcon||"+")}),_m=i.forwardRef(function(e,t){var n=e.position,r=e.prefixCls,o=e.extra;if(!o)return null;var a,l={};return Ue(o)==="object"&&!i.isValidElement(o)?l=o:l.right=o,n==="right"&&(a=l.right),n==="left"&&(a=l.left),a?i.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},a):null}),cP=i.forwardRef(function(e,t){var n=e.prefixCls,r=e.id,o=e.tabs,a=e.locale,l=e.mobile,s=e.more,c=s===void 0?{}:s,u=e.style,d=e.className,f=e.editable,m=e.tabBarGutter,v=e.rtl,p=e.removeAriaLabel,h=e.onTabClick,g=e.getPopupContainer,b=e.popupClassName,C=i.useState(!1),y=ee(C,2),$=y[0],S=y[1],E=i.useState(null),O=ee(E,2),w=O[0],x=O[1],I=c.icon,P=I===void 0?"More":I,N="".concat(r,"-more-popup"),M="".concat(n,"-dropdown"),R=w!==null?"".concat(N,"-").concat(w):null,_=a==null?void 0:a.dropdownAriaLabel;function T(A,V){A.preventDefault(),A.stopPropagation(),f.onEdit("remove",{key:V,event:A})}var z=i.createElement(ko,{onClick:function(V){var G=V.key,U=V.domEvent;h(G,U),S(!1)},prefixCls:"".concat(M,"-menu"),id:N,tabIndex:-1,role:"listbox","aria-activedescendant":R,selectedKeys:[w],"aria-label":_!==void 0?_:"expanded dropdown"},o.map(function(A){var V=A.closable,G=A.disabled,U=A.closeIcon,ne=A.key,J=A.label,Q=Ku(V,U,f,G);return i.createElement(Ha,{key:ne,id:"".concat(N,"-").concat(ne),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(ne),disabled:G},i.createElement("span",null,J),Q&&i.createElement("button",{type:"button","aria-label":p||"remove",tabIndex:0,className:"".concat(M,"-menu-item-remove"),onClick:function(re){re.stopPropagation(),T(re,ne)}},U||f.removeIcon||"×"))}));function B(A){for(var V=o.filter(function(Q){return!Q.disabled}),G=V.findIndex(function(Q){return Q.key===w})||0,U=V.length,ne=0;ne<U;ne+=1){G=(G+A+U)%U;var J=V[G];if(!J.disabled){x(J.key);return}}}function L(A){var V=A.which;if(!$){[Le.DOWN,Le.SPACE,Le.ENTER].includes(V)&&(S(!0),A.preventDefault());return}switch(V){case Le.UP:B(-1),A.preventDefault();break;case Le.DOWN:B(1),A.preventDefault();break;case Le.ESC:S(!1);break;case Le.SPACE:case Le.ENTER:w!==null&&h(w,A);break}}i.useEffect(function(){var A=document.getElementById(R);A&&A.scrollIntoView&&A.scrollIntoView(!1)},[w]),i.useEffect(function(){$||x(null)},[$]);var F=j({},v?"marginRight":"marginLeft",m);o.length||(F.visibility="hidden",F.order=1);var K=k(j({},"".concat(M,"-rtl"),v)),W=l?null:i.createElement(sh,me({prefixCls:M,overlay:z,visible:o.length?$:!1,onVisibleChange:S,overlayClassName:k(K,b),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:g},c),i.createElement("button",{type:"button",className:"".concat(n,"-nav-more"),style:F,"aria-haspopup":"listbox","aria-controls":N,id:"".concat(r,"-more"),"aria-expanded":$,onKeyDown:L},P));return i.createElement("div",{className:k("".concat(n,"-nav-operations"),d),style:u,ref:t},W,i.createElement(Kh,{prefixCls:n,locale:a,editable:f}))});const uP=i.memo(cP,function(e,t){return t.tabMoving});var dP=function(t){var n=t.prefixCls,r=t.id,o=t.active,a=t.focus,l=t.tab,s=l.key,c=l.label,u=l.disabled,d=l.closeIcon,f=l.icon,m=t.closable,v=t.renderWrapper,p=t.removeAriaLabel,h=t.editable,g=t.onClick,b=t.onFocus,C=t.onBlur,y=t.onKeyDown,$=t.onMouseDown,S=t.onMouseUp,E=t.style,O=t.tabCount,w=t.currentPosition,x="".concat(n,"-tab"),I=Ku(m,d,h,u);function P(T){u||g(T)}function N(T){T.preventDefault(),T.stopPropagation(),h.onEdit("remove",{key:s,event:T})}var M=i.useMemo(function(){return f&&typeof c=="string"?i.createElement("span",null,c):c},[c,f]),R=i.useRef(null);i.useEffect(function(){a&&R.current&&R.current.focus()},[a]);var _=i.createElement("div",{key:s,"data-node-key":Vh(s),className:k(x,j(j(j(j({},"".concat(x,"-with-remove"),I),"".concat(x,"-active"),o),"".concat(x,"-disabled"),u),"".concat(x,"-focus"),a)),style:E,onClick:P},i.createElement("div",{ref:R,role:"tab","aria-selected":o,id:r&&"".concat(r,"-tab-").concat(s),className:"".concat(x,"-btn"),"aria-controls":r&&"".concat(r,"-panel-").concat(s),"aria-disabled":u,tabIndex:u?null:o?0:-1,onClick:function(z){z.stopPropagation(),P(z)},onKeyDown:y,onMouseDown:$,onMouseUp:S,onFocus:b,onBlur:C},a&&i.createElement("div",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"Tab ".concat(w," of ").concat(O)),f&&i.createElement("span",{className:"".concat(x,"-icon")},f),c&&M),I&&i.createElement("button",{type:"button",role:"tab","aria-label":p||"remove",tabIndex:o?0:-1,className:"".concat(x,"-remove"),onClick:function(z){z.stopPropagation(),N(z)}},d||h.removeIcon||"×"));return v?v(_):_},fP=function(t,n){var r=t.offsetWidth,o=t.offsetHeight,a=t.offsetTop,l=t.offsetLeft,s=t.getBoundingClientRect(),c=s.width,u=s.height,d=s.left,f=s.top;return Math.abs(c-r)<1?[c,u,d-n.left,f-n.top]:[r,o,l,a]},po=function(t){var n=t.current||{},r=n.offsetWidth,o=r===void 0?0:r,a=n.offsetHeight,l=a===void 0?0:a;if(t.current){var s=t.current.getBoundingClientRect(),c=s.width,u=s.height;if(Math.abs(c-o)<1)return[c,u]}return[o,l]},ci=function(t,n){return t[n?0:1]},zm=i.forwardRef(function(e,t){var n=e.className,r=e.style,o=e.id,a=e.animated,l=e.activeKey,s=e.rtl,c=e.extra,u=e.editable,d=e.locale,f=e.tabPosition,m=e.tabBarGutter,v=e.children,p=e.onTabClick,h=e.onTabScroll,g=e.indicator,b=i.useContext(Ml),C=b.prefixCls,y=b.tabs,$=i.useRef(null),S=i.useRef(null),E=i.useRef(null),O=i.useRef(null),w=i.useRef(null),x=i.useRef(null),I=i.useRef(null),P=f==="top"||f==="bottom",N=Rm(0,function(Xe,ke){P&&h&&h({direction:Xe>ke?"left":"right"})}),M=ee(N,2),R=M[0],_=M[1],T=Rm(0,function(Xe,ke){!P&&h&&h({direction:Xe>ke?"top":"bottom"})}),z=ee(T,2),B=z[0],L=z[1],F=i.useState([0,0]),K=ee(F,2),W=K[0],A=K[1],V=i.useState([0,0]),G=ee(V,2),U=G[0],ne=G[1],J=i.useState([0,0]),Q=ee(J,2),le=Q[0],re=Q[1],X=i.useState([0,0]),oe=ee(X,2),Z=oe[0],q=oe[1],Y=iP(new Map),ie=ee(Y,2),ue=ie[0],he=ie[1],be=rP(y,ue,U[0]),ae=ci(W,P),fe=ci(U,P),se=ci(le,P),ce=ci(Z,P),Se=Math.floor(ae)<Math.floor(fe+se),we=Se?ae-ce:ae-se,je="".concat(C,"-nav-operations-hidden"),Ne=0,Oe=0;P&&s?(Ne=0,Oe=Math.max(0,fe-we)):(Ne=Math.min(0,we-fe),Oe=0);function Te(Xe){return Xe<Ne?Ne:Xe>Oe?Oe:Xe}var ve=i.useRef(null),de=i.useState(),xe=ee(de,2),Ce=xe[0],Ee=xe[1];function Me(){Ee(Date.now())}function Qe(){ve.current&&clearTimeout(ve.current)}aP(O,function(Xe,ke){function lt(xt,ze){xt(function(Je){var ut=Te(Je+ze);return ut})}return Se?(P?lt(_,Xe):lt(L,ke),Qe(),Me(),!0):!1}),i.useEffect(function(){return Qe(),Ce&&(ve.current=setTimeout(function(){Ee(0)},100)),Qe},[Ce]);var Ve=lP(be,we,P?R:B,fe,se,ce,D(D({},e),{},{tabs:y})),Fe=ee(Ve,2),ft=Fe[0],mt=Fe[1],ot=Lt(function(){var Xe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:l,ke=be.get(Xe)||{width:0,height:0,left:0,right:0,top:0};if(P){var lt=R;s?ke.right<R?lt=ke.right:ke.right+ke.width>R+we&&(lt=ke.right+ke.width-we):ke.left<-R?lt=-ke.left:ke.left+ke.width>-R+we&&(lt=-(ke.left+ke.width-we)),L(0),_(Te(lt))}else{var xt=B;ke.top<-B?xt=-ke.top:ke.top+ke.height>-B+we&&(xt=-(ke.top+ke.height-we)),_(0),L(Te(xt))}}),Bt=i.useState(),bt=ee(Bt,2),ct=bt[0],et=bt[1],gt=i.useState(!1),dt=ee(gt,2),_e=dt[0],Ge=dt[1],He=y.filter(function(Xe){return!Xe.disabled}).map(function(Xe){return Xe.key}),$e=function(ke){var lt=He.indexOf(ct||l),xt=He.length,ze=(lt+ke+xt)%xt,Je=He[ze];et(Je)},ye=function(ke,lt){var xt=He.indexOf(ke),ze=y.find(function(ut){return ut.key===ke}),Je=Ku(ze==null?void 0:ze.closable,ze==null?void 0:ze.closeIcon,u,ze==null?void 0:ze.disabled);Je&&(lt.preventDefault(),lt.stopPropagation(),u.onEdit("remove",{key:ke,event:lt}),xt===He.length-1?$e(-1):$e(1))},pe=function(ke,lt){Ge(!0),lt.button===1&&ye(ke,lt)},Ie=function(ke){var lt=ke.code,xt=s&&P,ze=He[0],Je=He[He.length-1];switch(lt){case"ArrowLeft":{P&&$e(xt?1:-1);break}case"ArrowRight":{P&&$e(xt?-1:1);break}case"ArrowUp":{ke.preventDefault(),P||$e(-1);break}case"ArrowDown":{ke.preventDefault(),P||$e(1);break}case"Home":{ke.preventDefault(),et(ze);break}case"End":{ke.preventDefault(),et(Je);break}case"Enter":case"Space":{ke.preventDefault(),p(ct??l,ke);break}case"Backspace":case"Delete":{ye(ct,ke);break}}},Ke={};P?Ke[s?"marginRight":"marginLeft"]=m:Ke.marginTop=m;var We=y.map(function(Xe,ke){var lt=Xe.key;return i.createElement(dP,{id:o,prefixCls:C,key:lt,tab:Xe,style:ke===0?void 0:Ke,closable:Xe.closable,editable:u,active:lt===l,focus:lt===ct,renderWrapper:v,removeAriaLabel:d==null?void 0:d.removeAriaLabel,tabCount:He.length,currentPosition:ke+1,onClick:function(ze){p(lt,ze)},onKeyDown:Ie,onFocus:function(){_e||et(lt),ot(lt),Me(),O.current&&(s||(O.current.scrollLeft=0),O.current.scrollTop=0)},onBlur:function(){et(void 0)},onMouseDown:function(ze){return pe(lt,ze)},onMouseUp:function(){Ge(!1)}})}),vt=function(){return he(function(){var ke,lt=new Map,xt=(ke=w.current)===null||ke===void 0?void 0:ke.getBoundingClientRect();return y.forEach(function(ze){var Je,ut=ze.key,Kt=(Je=w.current)===null||Je===void 0?void 0:Je.querySelector('[data-node-key="'.concat(Vh(ut),'"]'));if(Kt){var Qt=fP(Kt,xt),pn=ee(Qt,4),hn=pn[0],sn=pn[1],yn=pn[2],Cn=pn[3];lt.set(ut,{width:hn,height:sn,left:yn,top:Cn})}}),lt})};i.useEffect(function(){vt()},[y.map(function(Xe){return Xe.key}).join("_")]);var Be=kh(function(){var Xe=po($),ke=po(S),lt=po(E);A([Xe[0]-ke[0]-lt[0],Xe[1]-ke[1]-lt[1]]);var xt=po(I);re(xt);var ze=po(x);q(ze);var Je=po(w);ne([Je[0]-xt[0],Je[1]-xt[1]]),vt()}),Pe=y.slice(0,ft),Ze=y.slice(mt+1),yt=[].concat(ge(Pe),ge(Ze)),St=be.get(l),$t=nP({activeTabOffset:St,horizontal:P,indicator:g,rtl:s}),_t=$t.style;i.useEffect(function(){ot()},[l,Ne,Oe,Tm(St),Tm(be),P]),i.useEffect(function(){Be()},[s]);var ht=!!yt.length,Ot="".concat(C,"-nav-wrap"),Re,De,rt,tt;return P?s?(De=R>0,Re=R!==Oe):(Re=R<0,De=R!==Ne):(rt=B<0,tt=B!==Ne),i.createElement(Bn,{onResize:Be},i.createElement("div",{ref:$r(t,$),role:"tablist","aria-orientation":P?"horizontal":"vertical",className:k("".concat(C,"-nav"),n),style:r,onKeyDown:function(){Me()}},i.createElement(_m,{ref:S,position:"left",extra:c,prefixCls:C}),i.createElement(Bn,{onResize:Be},i.createElement("div",{className:k(Ot,j(j(j(j({},"".concat(Ot,"-ping-left"),Re),"".concat(Ot,"-ping-right"),De),"".concat(Ot,"-ping-top"),rt),"".concat(Ot,"-ping-bottom"),tt)),ref:O},i.createElement(Bn,{onResize:Be},i.createElement("div",{ref:w,className:"".concat(C,"-nav-list"),style:{transform:"translate(".concat(R,"px, ").concat(B,"px)"),transition:Ce?"none":void 0}},We,i.createElement(Kh,{ref:I,prefixCls:C,locale:d,editable:u,style:D(D({},We.length===0?void 0:Ke),{},{visibility:ht?"hidden":null})}),i.createElement("div",{className:k("".concat(C,"-ink-bar"),j({},"".concat(C,"-ink-bar-animated"),a.inkBar)),style:_t}))))),i.createElement(uP,me({},e,{removeAriaLabel:d==null?void 0:d.removeAriaLabel,ref:x,prefixCls:C,tabs:yt,className:!ht&&je,tabMoving:!!Ce})),i.createElement(_m,{ref:E,position:"right",extra:c,prefixCls:C})))}),Wh=i.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,a=e.id,l=e.active,s=e.tabKey,c=e.children;return i.createElement("div",{id:a&&"".concat(a,"-panel-").concat(s),role:"tabpanel",tabIndex:l?0:-1,"aria-labelledby":a&&"".concat(a,"-tab-").concat(s),"aria-hidden":!l,style:o,className:k(n,l&&"".concat(n,"-active"),r),ref:t},c)}),mP=["renderTabBar"],vP=["label","key"],gP=function(t){var n=t.renderTabBar,r=at(t,mP),o=i.useContext(Ml),a=o.tabs;if(n){var l=D(D({},r),{},{panes:a.map(function(s){var c=s.label,u=s.key,d=at(s,vP);return i.createElement(Wh,me({tab:c,key:u,tabKey:u},d))})});return n(l,zm)}return i.createElement(zm,r)},pP=["key","forceRender","style","className","destroyInactiveTabPane"],hP=function(t){var n=t.id,r=t.activeKey,o=t.animated,a=t.tabPosition,l=t.destroyInactiveTabPane,s=i.useContext(Ml),c=s.prefixCls,u=s.tabs,d=o.tabPane,f="".concat(c,"-tabpane");return i.createElement("div",{className:k("".concat(c,"-content-holder"))},i.createElement("div",{className:k("".concat(c,"-content"),"".concat(c,"-content-").concat(a),j({},"".concat(c,"-content-animated"),d))},u.map(function(m){var v=m.key,p=m.forceRender,h=m.style,g=m.className,b=m.destroyInactiveTabPane,C=at(m,pP),y=v===r;return i.createElement(ir,me({key:v,visible:y,forceRender:p,removeOnLeave:!!(l||b),leavedClassName:"".concat(f,"-hidden")},o.tabPaneMotion),function($,S){var E=$.style,O=$.className;return i.createElement(Wh,me({},C,{prefixCls:f,id:n,tabKey:v,animated:d,active:y,style:D(D({},h),E),className:k(g,O),ref:S}))})})))};function bP(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},t;return e===!1?t={inkBar:!1,tabPane:!1}:e===!0?t={inkBar:!0,tabPane:!1}:t=D({inkBar:!0},Ue(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var yP=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],jm=0,CP=i.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,o=r===void 0?"rc-tabs":r,a=e.className,l=e.items,s=e.direction,c=e.activeKey,u=e.defaultActiveKey,d=e.editable,f=e.animated,m=e.tabPosition,v=m===void 0?"top":m,p=e.tabBarGutter,h=e.tabBarStyle,g=e.tabBarExtraContent,b=e.locale,C=e.more,y=e.destroyInactiveTabPane,$=e.renderTabBar,S=e.onChange,E=e.onTabClick,O=e.onTabScroll,w=e.getPopupContainer,x=e.popupClassName,I=e.indicator,P=at(e,yP),N=i.useMemo(function(){return(l||[]).filter(function(Z){return Z&&Ue(Z)==="object"&&"key"in Z})},[l]),M=s==="rtl",R=bP(f),_=i.useState(!1),T=ee(_,2),z=T[0],B=T[1];i.useEffect(function(){B(Ou())},[]);var L=ln(function(){var Z;return(Z=N[0])===null||Z===void 0?void 0:Z.key},{value:c,defaultValue:u}),F=ee(L,2),K=F[0],W=F[1],A=i.useState(function(){return N.findIndex(function(Z){return Z.key===K})}),V=ee(A,2),G=V[0],U=V[1];i.useEffect(function(){var Z=N.findIndex(function(Y){return Y.key===K});if(Z===-1){var q;Z=Math.max(0,Math.min(G,N.length-1)),W((q=N[Z])===null||q===void 0?void 0:q.key)}U(Z)},[N.map(function(Z){return Z.key}).join("_"),K,G]);var ne=ln(null,{value:n}),J=ee(ne,2),Q=J[0],le=J[1];i.useEffect(function(){n||(le("rc-tabs-".concat(jm)),jm+=1)},[]);function re(Z,q){E==null||E(Z,q);var Y=Z!==K;W(Z),Y&&(S==null||S(Z))}var X={id:Q,activeKey:K,animated:R,tabPosition:v,rtl:M,mobile:z},oe=D(D({},X),{},{editable:d,locale:b,more:C,tabBarGutter:p,onTabClick:re,onTabScroll:O,extra:g,style:h,panes:null,getPopupContainer:w,popupClassName:x,indicator:I});return i.createElement(Ml.Provider,{value:{tabs:N,prefixCls:o}},i.createElement("div",me({ref:t,id:n,className:k(o,"".concat(o,"-").concat(v),j(j(j({},"".concat(o,"-mobile"),z),"".concat(o,"-editable"),d),"".concat(o,"-rtl"),M),a)},P),i.createElement(gP,me({},oe,{renderTabBar:$})),i.createElement(hP,me({destroyInactiveTabPane:y},X,{animated:R}))))});const SP={motionAppear:!1,motionEnter:!0,motionLeave:!0};function xP(e,t={inkBar:!0,tabPane:!1}){let n;return t===!1?n={inkBar:!1,tabPane:!1}:t===!0?n={inkBar:!0,tabPane:!0}:n=Object.assign({inkBar:!0},typeof t=="object"?t:{}),n.tabPane&&(n.tabPaneMotion=Object.assign(Object.assign({},SP),{motionName:mu(e,"switch")})),n}var $P=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function wP(e){return e.filter(t=>t)}function EP(e,t){if(e)return e.map(r=>{var o;const a=(o=r.destroyOnHidden)!==null&&o!==void 0?o:r.destroyInactiveTabPane;return Object.assign(Object.assign({},r),{destroyInactiveTabPane:a})});const n=_n(t).map(r=>{if(i.isValidElement(r)){const{key:o,props:a}=r,l=a||{},{tab:s}=l,c=$P(l,["tab"]);return Object.assign(Object.assign({key:String(o)},c),{label:s})}return null});return wP(n)}const OP=e=>{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[_r(e,"slide-up"),_r(e,"slide-down")]]},IP=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:o,colorBorderSecondary:a,itemSelectedColor:l}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${H(e.lineWidth)} ${e.lineType} ${a}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:l,background:e.colorBgContainer},[`${t}-tab-focus:has(${t}-tab-btn:focus-visible)`]:dr(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:H(o)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${H(e.borderRadiusLG)} ${H(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${H(e.borderRadiusLG)} ${H(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:H(o)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${H(e.borderRadiusLG)} 0 0 ${H(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 ${H(e.borderRadiusLG)} ${H(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},RP=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},kt(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:`${H(r)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},Cr),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${H(e.paddingXXS)} ${H(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"}}})}})}},PP=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:o,verticalItemPadding:a,verticalItemMargin:l,calc:s}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:o,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${H(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},
|
|
245
|
+
right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav,
|
|
246
|
+
> 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:s(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:a,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:l},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:H(s(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${H(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:s(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${H(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},NP=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,cardHeightSM:o,cardHeightLG:a,horizontalItemPaddingSM:l,horizontalItemPaddingLG:s}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:l,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:o,minHeight:o}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${H(e.borderRadius)} ${H(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${H(e.borderRadius)} ${H(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${H(e.borderRadius)} ${H(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${H(e.borderRadius)} 0 0 ${H(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r},[`${t}-nav-add`]:{minWidth:a,minHeight:a}}}}}},MP=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:o,tabsHorizontalItemMargin:a,horizontalItemPadding:l,itemSelectedColor:s,itemColor:c}=e,u=`${t}-tab`;return{[u]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:l,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}`,[`${u}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":Object.assign({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}},Sr(e)),"&:hover":{color:r},[`&${u}-active ${u}-btn`]:{color:s,textShadow:e.tabsActiveTextShadow},[`&${u}-focus ${u}-btn:focus-visible`]:dr(e),[`&${u}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${u}-disabled ${u}-btn, &${u}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${u}-remove ${o}`]:{margin:0,verticalAlign:"middle"},[`${o}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${u} + ${u}`]:{margin:{_skip_check_:!0,value:a}}}},TP=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:o,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:H(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:H(e.marginXS)},marginLeft:{_skip_check_:!0,value:H(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:o},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},_P=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:o,itemHoverColor:a,itemActiveColor:l,colorBorderSecondary:s}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},kt(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:r,minHeight:r,marginLeft:{_skip_check_:!0,value:o},background:"transparent",border:`${H(e.lineWidth)} ${e.lineType} ${s}`,borderRadius:`${H(e.borderRadiusLG)} ${H(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:l}},Sr(e,-3))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),MP(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:Object.assign(Object.assign({},Sr(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"}}}}}},zP=e=>{const{cardHeight:t,cardHeightSM:n,cardHeightLG:r,controlHeight:o,controlHeightLG:a}=e,l=t||a,s=n||o,c=r||a+8;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:l,cardHeightSM:s,cardHeightLG:c,cardPadding:`${(l-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}},jP=At("Tabs",e=>{const t=wt(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${H(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${H(e.horizontalItemGutter)}`});return[NP(t),TP(t),PP(t),RP(t),IP(t),_P(t),OP(t)]},zP),BP=()=>null;var DP=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const LP=i.forwardRef((e,t)=>{var n,r,o,a,l,s,c,u,d,f,m;const{type:v,className:p,rootClassName:h,size:g,onEdit:b,hideAdd:C,centered:y,addIcon:$,removeIcon:S,moreIcon:E,more:O,popupClassName:w,children:x,items:I,animated:P,style:N,indicatorSize:M,indicator:R,destroyInactiveTabPane:_,destroyOnHidden:T}=e,z=DP(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator","destroyInactiveTabPane","destroyOnHidden"]),{prefixCls:B}=z,{direction:L,tabs:F,getPrefixCls:K,getPopupContainer:W}=i.useContext(it),A=K("tabs",B),V=Pn(A),[G,U,ne]=jP(A,V),J=i.useRef(null);i.useImperativeHandle(t,()=>({nativeElement:J.current}));let Q;v==="editable-card"&&(Q={onEdit:(Y,{key:ie,event:ue})=>{b==null||b(Y==="add"?ue:ie,Y)},removeIcon:(n=S??(F==null?void 0:F.removeIcon))!==null&&n!==void 0?n:i.createElement(nl,null),addIcon:($??(F==null?void 0:F.addIcon))||i.createElement(tP,null),showAdd:C!==!0});const le=K(),re=Dn(g),X=EP(I,x),oe=xP(A,P),Z=Object.assign(Object.assign({},F==null?void 0:F.style),N),q={align:(r=R==null?void 0:R.align)!==null&&r!==void 0?r:(o=F==null?void 0:F.indicator)===null||o===void 0?void 0:o.align,size:(c=(l=(a=R==null?void 0:R.size)!==null&&a!==void 0?a:M)!==null&&l!==void 0?l:(s=F==null?void 0:F.indicator)===null||s===void 0?void 0:s.size)!==null&&c!==void 0?c:F==null?void 0:F.indicatorSize};return G(i.createElement(CP,Object.assign({ref:J,direction:L,getPopupContainer:W},z,{items:X,className:k({[`${A}-${re}`]:re,[`${A}-card`]:["card","editable-card"].includes(v),[`${A}-editable-card`]:v==="editable-card",[`${A}-centered`]:y},F==null?void 0:F.className,p,h,U,ne,V),popupClassName:k(w,U,ne,V),style:Z,editable:Q,more:Object.assign({icon:(m=(f=(d=(u=F==null?void 0:F.more)===null||u===void 0?void 0:u.icon)!==null&&d!==void 0?d:F==null?void 0:F.moreIcon)!==null&&f!==void 0?f:E)!==null&&m!==void 0?m:i.createElement(Fu,null),transitionName:`${le}-slide-up`},O),prefixCls:A,animated:oe,indicator:q,destroyInactiveTabPane:T??_})))}),Gh=LP;Gh.TabPane=BP;var AP=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const qh=e=>{var{prefixCls:t,className:n,hoverable:r=!0}=e,o=AP(e,["prefixCls","className","hoverable"]);const{getPrefixCls:a}=i.useContext(it),l=a("card",t),s=k(`${l}-grid`,n,{[`${l}-grid-hoverable`]:r});return i.createElement("div",Object.assign({},o,{className:s}))},FP=e=>{const{antCls:t,componentCls:n,headerHeight:r,headerPadding:o,tabsMarginBottom:a}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:r,marginBottom:-1,padding:`0 ${H(o)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${H(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${H(e.borderRadiusLG)} ${H(e.borderRadiusLG)} 0 0`},Zr()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},Cr),{[`
|
|
247
|
+
> ${n}-typography,
|
|
248
|
+
> ${n}-typography-edit-content
|
|
249
|
+
`]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:a,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${H(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},HP=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:o}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:`
|
|
250
|
+
${H(o)} 0 0 0 ${n},
|
|
251
|
+
0 ${H(o)} 0 0 ${n},
|
|
252
|
+
${H(o)} ${H(o)} 0 0 ${n},
|
|
253
|
+
${H(o)} 0 0 0 ${n} inset,
|
|
254
|
+
0 ${H(o)} 0 0 ${n} inset;
|
|
255
|
+
`,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},kP=e=>{const{componentCls:t,iconCls:n,actionsLiMargin:r,cardActionsIconSize:o,colorBorderSecondary:a,actionsBg:l}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:l,borderTop:`${H(e.lineWidth)} ${e.lineType} ${a}`,display:"flex",borderRadius:`0 0 ${H(e.borderRadiusLG)} ${H(e.borderRadiusLG)}`},Zr()),{"& > 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:H(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:o,lineHeight:H(e.calc(o).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${H(e.lineWidth)} ${e.lineType} ${a}`}}})},VP=e=>Object.assign(Object.assign({margin:`${H(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},Zr()),{"&-avatar":{paddingInlineEnd:e.padding},"&-detail":{overflow:"hidden",flex:1,"> div:not(:last-child)":{marginBottom:e.marginXS}},"&-title":Object.assign({color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG},Cr),"&-description":{color:e.colorTextDescription}}),KP=e=>{const{componentCls:t,colorFillAlter:n,headerPadding:r,bodyPadding:o}=e;return{[`${t}-head`]:{padding:`0 ${H(r)}`,background:n,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${H(e.padding)} ${H(o)}`}}},WP=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},GP=e=>{const{componentCls:t,cardShadow:n,cardHeadPadding:r,colorBorderSecondary:o,boxShadowTertiary:a,bodyPadding:l,extraColor:s}=e;return{[t]:Object.assign(Object.assign({},kt(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:a},[`${t}-head`]:FP(e),[`${t}-extra`]:{marginInlineStart:"auto",color:s,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:{padding:l,borderRadius:`0 0 ${H(e.borderRadiusLG)} ${H(e.borderRadiusLG)}`},[`${t}-grid`]:HP(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${H(e.borderRadiusLG)} ${H(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:kP(e),[`${t}-meta`]:VP(e)}),[`${t}-bordered`]:{border:`${H(e.lineWidth)} ${e.lineType} ${o}`,[`${t}-cover`]:{marginTop:-1,marginInlineStart:-1,marginInlineEnd:-1}},[`${t}-hoverable`]:{cursor:"pointer",transition:`box-shadow ${e.motionDurationMid}, border-color ${e.motionDurationMid}`,"&:hover":{borderColor:"transparent",boxShadow:n}},[`${t}-contain-grid`]:{borderRadius:`${H(e.borderRadiusLG)} ${H(e.borderRadiusLG)} 0 0 `,[`${t}-body`]:{display:"flex",flexWrap:"wrap"},[`&:not(${t}-loading) ${t}-body`]:{marginBlockStart:e.calc(e.lineWidth).mul(-1).equal(),marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),padding:0}},[`${t}-contain-tabs`]:{[`> div${t}-head`]:{minHeight:0,[`${t}-head-title, ${t}-extra`]:{paddingTop:r}}},[`${t}-type-inner`]:KP(e),[`${t}-loading`]:WP(e),[`${t}-rtl`]:{direction:"rtl"}}},qP=e=>{const{componentCls:t,bodyPaddingSM:n,headerPaddingSM:r,headerHeightSM:o,headerFontSizeSM:a}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:o,padding:`0 ${H(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"}}}}},UP=e=>{var t,n;return{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:(t=e.bodyPadding)!==null&&t!==void 0?t:e.paddingLG,headerPadding:(n=e.headerPadding)!==null&&n!==void 0?n:e.paddingLG}},XP=At("Card",e=>{const t=wt(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize});return[GP(t),qP(t)]},UP);var Bm=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const YP=e=>{const{actionClasses:t,actions:n=[],actionStyle:r}=e;return i.createElement("ul",{className:t,style:r},n.map((o,a)=>{const l=`action-${a}`;return i.createElement("li",{style:{width:`${100/n.length}%`},key:l},i.createElement("span",null,o))}))},QP=i.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:o,style:a,extra:l,headStyle:s={},bodyStyle:c={},title:u,loading:d,bordered:f,variant:m,size:v,type:p,cover:h,actions:g,tabList:b,children:C,activeTabKey:y,defaultActiveTabKey:$,tabBarExtraContent:S,hoverable:E,tabProps:O={},classNames:w,styles:x}=e,I=Bm(e,["prefixCls","className","rootClassName","style","extra","headStyle","bodyStyle","title","loading","bordered","variant","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps","classNames","styles"]),{getPrefixCls:P,direction:N,card:M}=i.useContext(it),[R]=wl("card",m,f),_=be=>{var ae;(ae=e.onTabChange)===null||ae===void 0||ae.call(e,be)},T=be=>{var ae;return k((ae=M==null?void 0:M.classNames)===null||ae===void 0?void 0:ae[be],w==null?void 0:w[be])},z=be=>{var ae;return Object.assign(Object.assign({},(ae=M==null?void 0:M.styles)===null||ae===void 0?void 0:ae[be]),x==null?void 0:x[be])},B=i.useMemo(()=>{let be=!1;return i.Children.forEach(C,ae=>{(ae==null?void 0:ae.type)===qh&&(be=!0)}),be},[C]),L=P("card",n),[F,K,W]=XP(L),A=i.createElement(Ao,{loading:!0,active:!0,paragraph:{rows:4},title:!1},C),V=y!==void 0,G=Object.assign(Object.assign({},O),{[V?"activeKey":"defaultActiveKey"]:V?y:$,tabBarExtraContent:S});let U;const ne=Dn(v),J=!ne||ne==="default"?"large":ne,Q=b?i.createElement(Gh,Object.assign({size:J},G,{className:`${L}-head-tabs`,onChange:_,items:b.map(be=>{var{tab:ae}=be,fe=Bm(be,["tab"]);return Object.assign({label:ae},fe)})})):null;if(u||l||Q){const be=k(`${L}-head`,T("header")),ae=k(`${L}-head-title`,T("title")),fe=k(`${L}-extra`,T("extra")),se=Object.assign(Object.assign({},s),z("header"));U=i.createElement("div",{className:be,style:se},i.createElement("div",{className:`${L}-head-wrapper`},u&&i.createElement("div",{className:ae,style:z("title")},u),l&&i.createElement("div",{className:fe,style:z("extra")},l)),Q)}const le=k(`${L}-cover`,T("cover")),re=h?i.createElement("div",{className:le,style:z("cover")},h):null,X=k(`${L}-body`,T("body")),oe=Object.assign(Object.assign({},c),z("body")),Z=i.createElement("div",{className:X,style:oe},d?A:C),q=k(`${L}-actions`,T("actions")),Y=g!=null&&g.length?i.createElement(YP,{actionClasses:q,actionStyle:z("actions"),actions:g}):null,ie=Xt(I,["onTabChange"]),ue=k(L,M==null?void 0:M.className,{[`${L}-loading`]:d,[`${L}-bordered`]:R!=="borderless",[`${L}-hoverable`]:E,[`${L}-contain-grid`]:B,[`${L}-contain-tabs`]:b==null?void 0:b.length,[`${L}-${ne}`]:ne,[`${L}-type-${p}`]:!!p,[`${L}-rtl`]:N==="rtl"},r,o,K,W),he=Object.assign(Object.assign({},M==null?void 0:M.style),a);return F(i.createElement("div",Object.assign({ref:t},ie,{className:ue,style:he}),U,re,Z,Y))});var ZP=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const JP=e=>{const{prefixCls:t,className:n,avatar:r,title:o,description:a}=e,l=ZP(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:s}=i.useContext(it),c=s("card",t),u=k(`${c}-meta`,n),d=r?i.createElement("div",{className:`${c}-meta-avatar`},r):null,f=o?i.createElement("div",{className:`${c}-meta-title`},o):null,m=a?i.createElement("div",{className:`${c}-meta-description`},a):null,v=f||m?i.createElement("div",{className:`${c}-meta-detail`},f,m):null;return i.createElement("div",Object.assign({},l,{className:u}),d,v)},Uh=QP;Uh.Grid=qh;Uh.Meta=JP;function eN(e,t,n){var r=n||{},o=r.noTrailing,a=o===void 0?!1:o,l=r.noLeading,s=l===void 0?!1:l,c=r.debounceMode,u=c===void 0?void 0:c,d,f=!1,m=0;function v(){d&&clearTimeout(d)}function p(g){var b=g||{},C=b.upcomingOnly,y=C===void 0?!1:C;v(),f=!y}function h(){for(var g=arguments.length,b=new Array(g),C=0;C<g;C++)b[C]=arguments[C];var y=this,$=Date.now()-m;if(f)return;function S(){m=Date.now(),t.apply(y,b)}function E(){d=void 0}!s&&u&&!d&&S(),v(),u===void 0&&$>e?s?(m=Date.now(),a||(d=setTimeout(u?E:S,e))):S():a!==!0&&(d=setTimeout(u?E:S,u===void 0?e-$:e))}return h.cancel=p,h}function tN(e,t,n){var r={},o=r.atBegin,a=o===void 0?!1:o;return eN(e,t,{debounceMode:a!==!1})}function jn(e,t){return e[t]}var nN=["children"];function Xh(e,t){return"".concat(e,"-").concat(t)}function rN(e){return e&&e.type&&e.type.isTreeNode}function Wa(e,t){return e??t}function To(e){var t=e||{},n=t.title,r=t._title,o=t.key,a=t.children,l=n||"title";return{title:l,_title:r||[l],key:o||"key",children:a||"children"}}function Yh(e){function t(n){var r=_n(n);return r.map(function(o){if(!rN(o))return Ut(!o,"Tree/TreeNode can only accept TreeNode as children."),null;var a=o.key,l=o.props,s=l.children,c=at(l,nN),u=D({key:a},c),d=t(s);return d.length&&(u.children=d),u}).filter(function(o){return o})}return t(e)}function Cs(e,t,n){var r=To(n),o=r._title,a=r.key,l=r.children,s=new Set(t===!0?[]:t),c=[];function u(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return d.map(function(m,v){for(var p=Xh(f?f.pos:"0",v),h=Wa(m[a],p),g,b=0;b<o.length;b+=1){var C=o[b];if(m[C]!==void 0){g=m[C];break}}var y=Object.assign(Xt(m,[].concat(ge(o),[a,l])),{title:g,key:h,parent:f,pos:p,children:null,data:m,isStart:[].concat(ge(f?f.isStart:[]),[v===0]),isEnd:[].concat(ge(f?f.isEnd:[]),[v===d.length-1])});return c.push(y),t===!0||s.has(h)?y.children=u(m[l]||[],y):y.children=[],y})}return u(e),c}function oN(e,t,n){var r={};Ue(n)==="object"?r=n:r={externalGetKey:n},r=r||{};var o=r,a=o.childrenPropName,l=o.externalGetKey,s=o.fieldNames,c=To(s),u=c.key,d=c.children,f=a||d,m;l?typeof l=="string"?m=function(h){return h[l]}:typeof l=="function"&&(m=function(h){return l(h)}):m=function(h,g){return Wa(h[u],g)};function v(p,h,g,b){var C=p?p[f]:e,y=p?Xh(g.pos,h):"0",$=p?[].concat(ge(b),[p]):[];if(p){var S=m(p,y),E={node:p,index:h,pos:y,key:S,parentPos:g.node?g.pos:null,level:g.level+1,nodes:$};t(E)}C&&C.forEach(function(O,w){v(O,w,{node:p,pos:y,level:g?g.level+1:-1},$)})}v(null)}function Wu(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.initWrapper,r=t.processEntity,o=t.onProcessFinished,a=t.externalGetKey,l=t.childrenPropName,s=t.fieldNames,c=arguments.length>2?arguments[2]:void 0,u=a||c,d={},f={},m={posEntities:d,keyEntities:f};return n&&(m=n(m)||m),oN(e,function(v){var p=v.node,h=v.index,g=v.pos,b=v.key,C=v.parentPos,y=v.level,$=v.nodes,S={node:p,nodes:$,index:h,key:b,pos:g,level:y},E=Wa(b,g);d[g]=S,f[E]=S,S.parent=d[C],S.parent&&(S.parent.children=S.parent.children||[],S.parent.children.push(S)),r&&r(S,m)},{externalGetKey:u,childrenPropName:l,fieldNames:s}),o&&o(m),m}function sa(e,t){var n=t.expandedKeys,r=t.selectedKeys,o=t.loadedKeys,a=t.loadingKeys,l=t.checkedKeys,s=t.halfCheckedKeys,c=t.dragOverNodeKey,u=t.dropPosition,d=t.keyEntities,f=jn(d,e),m={eventKey:e,expanded:n.indexOf(e)!==-1,selected:r.indexOf(e)!==-1,loaded:o.indexOf(e)!==-1,loading:a.indexOf(e)!==-1,checked:l.indexOf(e)!==-1,halfChecked:s.indexOf(e)!==-1,pos:String(f?f.pos:""),dragOver:c===e&&u===0,dragOverGapTop:c===e&&u===-1,dragOverGapBottom:c===e&&u===1};return m}function on(e){var t=e.data,n=e.expanded,r=e.selected,o=e.checked,a=e.loaded,l=e.loading,s=e.halfChecked,c=e.dragOver,u=e.dragOverGapTop,d=e.dragOverGapBottom,f=e.pos,m=e.active,v=e.eventKey,p=D(D({},t),{},{expanded:n,selected:r,checked:o,loaded:a,loading:l,halfChecked:s,dragOver:c,dragOverGapTop:u,dragOverGapBottom:d,pos:f,active:m,key:v});return"props"in p||Object.defineProperty(p,"props",{get:function(){return Ut(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),p}function Qh(e,t){var n=new Set;return e.forEach(function(r){t.has(r)||n.add(r)}),n}function aN(e){var t=e||{},n=t.disabled,r=t.disableCheckbox,o=t.checkable;return!!(n||r)||o===!1}function iN(e,t,n,r){for(var o=new Set(e),a=new Set,l=0;l<=n;l+=1){var s=t.get(l)||new Set;s.forEach(function(f){var m=f.key,v=f.node,p=f.children,h=p===void 0?[]:p;o.has(m)&&!r(v)&&h.filter(function(g){return!r(g.node)}).forEach(function(g){o.add(g.key)})})}for(var c=new Set,u=n;u>=0;u-=1){var d=t.get(u)||new Set;d.forEach(function(f){var m=f.parent,v=f.node;if(!(r(v)||!f.parent||c.has(f.parent.key))){if(r(f.parent.node)){c.add(m.key);return}var p=!0,h=!1;(m.children||[]).filter(function(g){return!r(g.node)}).forEach(function(g){var b=g.key,C=o.has(b);p&&!C&&(p=!1),!h&&(C||a.has(b))&&(h=!0)}),p&&o.add(m.key),h&&a.add(m.key),c.add(m.key)}})}return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(Qh(a,o))}}function lN(e,t,n,r,o){for(var a=new Set(e),l=new Set(t),s=0;s<=r;s+=1){var c=n.get(s)||new Set;c.forEach(function(m){var v=m.key,p=m.node,h=m.children,g=h===void 0?[]:h;!a.has(v)&&!l.has(v)&&!o(p)&&g.filter(function(b){return!o(b.node)}).forEach(function(b){a.delete(b.key)})})}l=new Set;for(var u=new Set,d=r;d>=0;d-=1){var f=n.get(d)||new Set;f.forEach(function(m){var v=m.parent,p=m.node;if(!(o(p)||!m.parent||u.has(m.parent.key))){if(o(m.parent.node)){u.add(v.key);return}var h=!0,g=!1;(v.children||[]).filter(function(b){return!o(b.node)}).forEach(function(b){var C=b.key,y=a.has(C);h&&!y&&(h=!1),!g&&(y||l.has(C))&&(g=!0)}),h||a.delete(v.key),g&&l.add(v.key),u.add(v.key)}})}return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(Qh(l,a))}}function wo(e,t,n,r){var o=[],a;r?a=r:a=aN;var l=new Set(e.filter(function(d){var f=!!jn(n,d);return f||o.push(d),f})),s=new Map,c=0;Object.keys(n).forEach(function(d){var f=n[d],m=f.level,v=s.get(m);v||(v=new Set,s.set(m,v)),v.add(f),c=Math.max(c,m)}),Ut(!o.length,"Tree missing follow keys: ".concat(o.slice(0,100).map(function(d){return"'".concat(d,"'")}).join(", ")));var u;return t===!0?u=iN(l,s,c,a):u=lN(l,t.halfCheckedKeys,s,c,a),u}const sN=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},kt(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},kt(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${n}`]:{marginInlineStart:0},[`&${n}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:Object.assign(Object.assign({},kt(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:dr(e)},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${H(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"25%",display:"table",width:e.calc(e.checkboxSize).div(14).mul(5).equal(),height:e.calc(e.checkboxSize).div(14).mul(8).equal(),border:`${H(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[`
|
|
256
|
+
${n}:not(${n}-disabled),
|
|
257
|
+
${t}:not(${t}-disabled)
|
|
258
|
+
`]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${n}:not(${n}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}}},[`
|
|
259
|
+
${n}-checked:not(${n}-disabled),
|
|
260
|
+
${t}-checked:not(${t}-disabled)
|
|
261
|
+
`]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{"&":{[`${t}-inner`]:{backgroundColor:`${e.colorBgContainer}`,borderColor:`${e.colorBorder}`,"&:after":{top:"50%",insetInlineStart:"50%",width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${t}-inner`]:{backgroundColor:`${e.colorBgContainer}`,borderColor:`${e.colorPrimary}`}}}}},{[`${n}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function Zh(e,t){const n=wt(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return sN(n)}const Jh=At("Checkbox",(e,{prefixCls:t})=>[Zh(t,e)]),eb=te.createContext(null);var cN=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const uN=(e,t)=>{var n;const{prefixCls:r,className:o,rootClassName:a,children:l,indeterminate:s=!1,style:c,onMouseEnter:u,onMouseLeave:d,skipGroup:f=!1,disabled:m}=e,v=cN(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:p,direction:h,checkbox:g}=i.useContext(it),b=i.useContext(eb),{isFormItemInput:C}=i.useContext(In),y=i.useContext(Jn),$=(n=(b==null?void 0:b.disabled)||m)!==null&&n!==void 0?n:y,S=i.useRef(v.value),E=i.useRef(null),O=Vn(t,E);i.useEffect(()=>{b==null||b.registerValue(v.value)},[]),i.useEffect(()=>{if(!f)return v.value!==S.current&&(b==null||b.cancelValue(S.current),b==null||b.registerValue(v.value),S.current=v.value),()=>b==null?void 0:b.cancelValue(v.value)},[v.value]),i.useEffect(()=>{var B;!((B=E.current)===null||B===void 0)&&B.input&&(E.current.input.indeterminate=s)},[s]);const w=p("checkbox",r),x=Pn(w),[I,P,N]=Jh(w,x),M=Object.assign({},v);b&&!f&&(M.onChange=(...B)=>{v.onChange&&v.onChange.apply(v,B),b.toggleOption&&b.toggleOption({label:l,value:v.value})},M.name=b.name,M.checked=b.value.includes(v.value));const R=k(`${w}-wrapper`,{[`${w}-rtl`]:h==="rtl",[`${w}-wrapper-checked`]:M.checked,[`${w}-wrapper-disabled`]:$,[`${w}-wrapper-in-form-item`]:C},g==null?void 0:g.className,o,a,N,x,P),_=k({[`${w}-indeterminate`]:s},al,P),[T,z]=Th(M.onClick);return I(i.createElement(il,{component:"Checkbox",disabled:$},i.createElement("label",{className:R,style:Object.assign(Object.assign({},g==null?void 0:g.style),c),onMouseEnter:u,onMouseLeave:d,onClick:T},i.createElement(Mh,Object.assign({},M,{onClick:z,prefixCls:w,className:_,disabled:$,ref:O})),l!=null&&i.createElement("span",{className:`${w}-label`},l))))},tb=i.forwardRef(uN);var dN=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const fN=i.forwardRef((e,t)=>{const{defaultValue:n,children:r,options:o=[],prefixCls:a,className:l,rootClassName:s,style:c,onChange:u}=e,d=dN(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:f,direction:m}=i.useContext(it),[v,p]=i.useState(d.value||n||[]),[h,g]=i.useState([]);i.useEffect(()=>{"value"in d&&p(d.value||[])},[d.value]);const b=i.useMemo(()=>o.map(_=>typeof _=="string"||typeof _=="number"?{label:_,value:_}:_),[o]),C=_=>{g(T=>T.filter(z=>z!==_))},y=_=>{g(T=>[].concat(ge(T),[_]))},$=_=>{const T=v.indexOf(_.value),z=ge(v);T===-1?z.push(_.value):z.splice(T,1),"value"in d||p(z),u==null||u(z.filter(B=>h.includes(B)).sort((B,L)=>{const F=b.findIndex(W=>W.value===B),K=b.findIndex(W=>W.value===L);return F-K}))},S=f("checkbox",a),E=`${S}-group`,O=Pn(S),[w,x,I]=Jh(S,O),P=Xt(d,["value","disabled"]),N=o.length?b.map(_=>i.createElement(tb,{prefixCls:S,key:_.value.toString(),disabled:"disabled"in _?_.disabled:d.disabled,value:_.value,checked:v.includes(_.value),onChange:_.onChange,className:k(`${E}-item`,_.className),style:_.style,title:_.title,id:_.id,required:_.required},_.label)):r,M=i.useMemo(()=>({toggleOption:$,value:v,disabled:d.disabled,name:d.name,registerValue:y,cancelValue:C}),[$,v,d.disabled,d.name,y,C]),R=k(E,{[`${E}-rtl`]:m==="rtl"},l,s,I,O,x);return w(i.createElement("div",Object.assign({className:R,style:c},P,{ref:t}),i.createElement(eb.Provider,{value:M},N)))}),_o=tb;_o.Group=fN;_o.__ANT_CHECKBOX=!0;const nb=i.createContext({});var mN=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function Dm(e){return e==="auto"?"1 1 auto":typeof e=="number"?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const vN=["xs","sm","md","lg","xl","xxl"],rb=i.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=i.useContext(it),{gutter:o,wrap:a}=i.useContext(nb),{prefixCls:l,span:s,order:c,offset:u,push:d,pull:f,className:m,children:v,flex:p,style:h}=e,g=mN(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),b=n("col",l),[C,y,$]=fE(b),S={};let E={};vN.forEach(x=>{let I={};const P=e[x];typeof P=="number"?I.span=P:typeof P=="object"&&(I=P||{}),delete g[x],E=Object.assign(Object.assign({},E),{[`${b}-${x}-${I.span}`]:I.span!==void 0,[`${b}-${x}-order-${I.order}`]:I.order||I.order===0,[`${b}-${x}-offset-${I.offset}`]:I.offset||I.offset===0,[`${b}-${x}-push-${I.push}`]:I.push||I.push===0,[`${b}-${x}-pull-${I.pull}`]:I.pull||I.pull===0,[`${b}-rtl`]:r==="rtl"}),I.flex&&(E[`${b}-${x}-flex`]=!0,S[`--${b}-${x}-flex`]=Dm(I.flex))});const O=k(b,{[`${b}-${s}`]:s!==void 0,[`${b}-order-${c}`]:c,[`${b}-offset-${u}`]:u,[`${b}-push-${d}`]:d,[`${b}-pull-${f}`]:f},m,E,y,$),w={};if(o!=null&&o[0]){const x=typeof o[0]=="number"?`${o[0]/2}px`:`calc(${o[0]} / 2)`;w.paddingLeft=x,w.paddingRight=x}return p&&(w.flex=Dm(p),a===!1&&!w.minWidth&&(w.minWidth=0)),C(i.createElement("div",Object.assign({},g,{style:Object.assign(Object.assign(Object.assign({},w),h),S),className:O,ref:t}),v))});function gN(e,t){const n=[void 0,void 0],r=Array.isArray(e)?e:[e,void 0],o=t||{xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0};return r.forEach((a,l)=>{if(typeof a=="object"&&a!==null)for(let s=0;s<Mo.length;s++){const c=Mo[s];if(o[c]&&a[c]!==void 0){n[l]=a[c];break}}else n[l]=a}),n}var pN=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function Lm(e,t){const[n,r]=i.useState(typeof e=="string"?e:""),o=()=>{if(typeof e=="string"&&r(e),typeof e=="object")for(let a=0;a<Mo.length;a++){const l=Mo[a];if(!t||!t[l])continue;const s=e[l];if(s!==void 0){r(s);return}}};return i.useEffect(()=>{o()},[JSON.stringify(e),t]),n}const hN=i.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:o,className:a,style:l,children:s,gutter:c=0,wrap:u}=e,d=pN(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:f,direction:m}=i.useContext(it),v=El(!0,null),p=Lm(o,v),h=Lm(r,v),g=f("row",n),[b,C,y]=dE(g),$=gN(c,v),S=k(g,{[`${g}-no-wrap`]:u===!1,[`${g}-${h}`]:h,[`${g}-${p}`]:p,[`${g}-rtl`]:m==="rtl"},a,C,y),E={};if($!=null&&$[0]){const I=typeof $[0]=="number"?`${$[0]/-2}px`:`calc(${$[0]} / -2)`;E.marginLeft=I,E.marginRight=I}const[O,w]=$;E.rowGap=w;const x=i.useMemo(()=>({gutter:[O,w],wrap:u}),[O,w,u]);return b(i.createElement(nb.Provider,{value:x},i.createElement("div",Object.assign({},d,{className:S,style:Object.assign(Object.assign({},E),l),ref:t}),s)))});function bN(e){return!!(e.addonBefore||e.addonAfter)}function yN(e){return!!(e.prefix||e.suffix||e.allowClear)}function Am(e,t,n){var r=t.cloneNode(!0),o=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=function(){t.setSelectionRange.apply(t,arguments)},o}function Wi(e,t,n,r){if(n){var o=t;if(t.type==="click"){o=Am(t,e,""),n(o);return}if(e.type!=="file"&&r!==void 0){o=Am(t,e,r),n(o);return}n(o)}}function ob(e,t){if(e){e.focus(t);var n=t||{},r=n.cursor;if(r){var o=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(o,o);break;default:e.setSelectionRange(0,o)}}}}var ab=te.forwardRef(function(e,t){var n,r,o,a=e.inputElement,l=e.children,s=e.prefixCls,c=e.prefix,u=e.suffix,d=e.addonBefore,f=e.addonAfter,m=e.className,v=e.style,p=e.disabled,h=e.readOnly,g=e.focused,b=e.triggerFocus,C=e.allowClear,y=e.value,$=e.handleReset,S=e.hidden,E=e.classes,O=e.classNames,w=e.dataAttrs,x=e.styles,I=e.components,P=e.onClear,N=l??a,M=(I==null?void 0:I.affixWrapper)||"span",R=(I==null?void 0:I.groupWrapper)||"span",_=(I==null?void 0:I.wrapper)||"span",T=(I==null?void 0:I.groupAddon)||"span",z=i.useRef(null),B=function(q){var Y;(Y=z.current)!==null&&Y!==void 0&&Y.contains(q.target)&&(b==null||b())},L=yN(e),F=i.cloneElement(N,{value:y,className:k((n=N.props)===null||n===void 0?void 0:n.className,!L&&(O==null?void 0:O.variant))||null}),K=i.useRef(null);if(te.useImperativeHandle(t,function(){return{nativeElement:K.current||z.current}}),L){var W=null;if(C){var A=!p&&!h&&y,V="".concat(s,"-clear-icon"),G=Ue(C)==="object"&&C!==null&&C!==void 0&&C.clearIcon?C.clearIcon:"✖";W=te.createElement("button",{type:"button",tabIndex:-1,onClick:function(q){$==null||$(q),P==null||P()},onMouseDown:function(q){return q.preventDefault()},className:k(V,j(j({},"".concat(V,"-hidden"),!A),"".concat(V,"-has-suffix"),!!u))},G)}var U="".concat(s,"-affix-wrapper"),ne=k(U,j(j(j(j(j({},"".concat(s,"-disabled"),p),"".concat(U,"-disabled"),p),"".concat(U,"-focused"),g),"".concat(U,"-readonly"),h),"".concat(U,"-input-with-clear-btn"),u&&C&&y),E==null?void 0:E.affixWrapper,O==null?void 0:O.affixWrapper,O==null?void 0:O.variant),J=(u||C)&&te.createElement("span",{className:k("".concat(s,"-suffix"),O==null?void 0:O.suffix),style:x==null?void 0:x.suffix},W,u);F=te.createElement(M,me({className:ne,style:x==null?void 0:x.affixWrapper,onClick:B},w==null?void 0:w.affixWrapper,{ref:z}),c&&te.createElement("span",{className:k("".concat(s,"-prefix"),O==null?void 0:O.prefix),style:x==null?void 0:x.prefix},c),F,J)}if(bN(e)){var Q="".concat(s,"-group"),le="".concat(Q,"-addon"),re="".concat(Q,"-wrapper"),X=k("".concat(s,"-wrapper"),Q,E==null?void 0:E.wrapper,O==null?void 0:O.wrapper),oe=k(re,j({},"".concat(re,"-disabled"),p),E==null?void 0:E.group,O==null?void 0:O.groupWrapper);F=te.createElement(R,{className:oe,ref:K},te.createElement(_,{className:X},d&&te.createElement(T,{className:le},d),F,f&&te.createElement(T,{className:le},f)))}return te.cloneElement(F,{className:k((r=F.props)===null||r===void 0?void 0:r.className,m)||null,style:D(D({},(o=F.props)===null||o===void 0?void 0:o.style),v),hidden:S})}),CN=["show"];function ib(e,t){return i.useMemo(function(){var n={};t&&(n.show=Ue(t)==="object"&&t.formatter?t.formatter:!!t),n=D(D({},n),e);var r=n,o=r.show,a=at(r,CN);return D(D({},a),{},{show:!!o,showFormatter:typeof o=="function"?o:void 0,strategy:a.strategy||function(l){return l.length}})},[e,t])}var SN=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],xN=i.forwardRef(function(e,t){var n=e.autoComplete,r=e.onChange,o=e.onFocus,a=e.onBlur,l=e.onPressEnter,s=e.onKeyDown,c=e.onKeyUp,u=e.prefixCls,d=u===void 0?"rc-input":u,f=e.disabled,m=e.htmlSize,v=e.className,p=e.maxLength,h=e.suffix,g=e.showCount,b=e.count,C=e.type,y=C===void 0?"text":C,$=e.classes,S=e.classNames,E=e.styles,O=e.onCompositionStart,w=e.onCompositionEnd,x=at(e,SN),I=i.useState(!1),P=ee(I,2),N=P[0],M=P[1],R=i.useRef(!1),_=i.useRef(!1),T=i.useRef(null),z=i.useRef(null),B=function(ce){T.current&&ob(T.current,ce)},L=ln(e.defaultValue,{value:e.value}),F=ee(L,2),K=F[0],W=F[1],A=K==null?"":String(K),V=i.useState(null),G=ee(V,2),U=G[0],ne=G[1],J=ib(b,g),Q=J.max||p,le=J.strategy(A),re=!!Q&&le>Q;i.useImperativeHandle(t,function(){var se;return{focus:B,blur:function(){var Se;(Se=T.current)===null||Se===void 0||Se.blur()},setSelectionRange:function(Se,we,je){var Ne;(Ne=T.current)===null||Ne===void 0||Ne.setSelectionRange(Se,we,je)},select:function(){var Se;(Se=T.current)===null||Se===void 0||Se.select()},input:T.current,nativeElement:((se=z.current)===null||se===void 0?void 0:se.nativeElement)||T.current}}),i.useEffect(function(){_.current&&(_.current=!1),M(function(se){return se&&f?!1:se})},[f]);var X=function(ce,Se,we){var je=Se;if(!R.current&&J.exceedFormatter&&J.max&&J.strategy(Se)>J.max){if(je=J.exceedFormatter(Se,{max:J.max}),Se!==je){var Ne,Oe;ne([((Ne=T.current)===null||Ne===void 0?void 0:Ne.selectionStart)||0,((Oe=T.current)===null||Oe===void 0?void 0:Oe.selectionEnd)||0])}}else if(we.source==="compositionEnd")return;W(je),T.current&&Wi(T.current,ce,r,je)};i.useEffect(function(){if(U){var se;(se=T.current)===null||se===void 0||se.setSelectionRange.apply(se,ge(U))}},[U]);var oe=function(ce){X(ce,ce.target.value,{source:"change"})},Z=function(ce){R.current=!1,X(ce,ce.currentTarget.value,{source:"compositionEnd"}),w==null||w(ce)},q=function(ce){l&&ce.key==="Enter"&&!_.current&&(_.current=!0,l(ce)),s==null||s(ce)},Y=function(ce){ce.key==="Enter"&&(_.current=!1),c==null||c(ce)},ie=function(ce){M(!0),o==null||o(ce)},ue=function(ce){_.current&&(_.current=!1),M(!1),a==null||a(ce)},he=function(ce){W(""),B(),T.current&&Wi(T.current,ce,r)},be=re&&"".concat(d,"-out-of-range"),ae=function(){var ce=Xt(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return te.createElement("input",me({autoComplete:n},ce,{onChange:oe,onFocus:ie,onBlur:ue,onKeyDown:q,onKeyUp:Y,className:k(d,j({},"".concat(d,"-disabled"),f),S==null?void 0:S.input),style:E==null?void 0:E.input,ref:T,size:m,type:y,onCompositionStart:function(we){R.current=!0,O==null||O(we)},onCompositionEnd:Z}))},fe=function(){var ce=Number(Q)>0;if(h||J.show){var Se=J.showFormatter?J.showFormatter({value:A,count:le,maxLength:Q}):"".concat(le).concat(ce?" / ".concat(Q):"");return te.createElement(te.Fragment,null,J.show&&te.createElement("span",{className:k("".concat(d,"-show-count-suffix"),j({},"".concat(d,"-show-count-has-suffix"),!!h),S==null?void 0:S.count),style:D({},E==null?void 0:E.count)},Se),h)}return null};return te.createElement(ab,me({},x,{prefixCls:d,className:k(v,be),handleReset:he,value:A,focused:N,triggerFocus:B,suffix:fe(),disabled:f,classes:$,classNames:S,styles:E,ref:z}),ae())});const lb=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:te.createElement(tl,null)}),t};function sb(e,t){const n=i.useRef([]),r=()=>{n.current.push(setTimeout(()=>{var o,a,l,s;!((o=e.current)===null||o===void 0)&&o.input&&((a=e.current)===null||a===void 0?void 0:a.input.getAttribute("type"))==="password"&&(!((l=e.current)===null||l===void 0)&&l.input.hasAttribute("value"))&&((s=e.current)===null||s===void 0||s.input.removeAttribute("value"))}))};return i.useEffect(()=>(t&&r(),()=>n.current.forEach(o=>{o&&clearTimeout(o)})),[]),r}function $N(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var wN=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Ga=i.forwardRef((e,t)=>{const{prefixCls:n,bordered:r=!0,status:o,size:a,disabled:l,onBlur:s,onFocus:c,suffix:u,allowClear:d,addonAfter:f,addonBefore:m,className:v,style:p,styles:h,rootClassName:g,onChange:b,classNames:C,variant:y,_skipAddonWarning:$}=e,S=wN(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant","_skipAddonWarning"]),{getPrefixCls:E,direction:O,allowClear:w,autoComplete:x,className:I,style:P,classNames:N,styles:M}=Kn("input"),R=E("input",n),_=i.useRef(null),T=Pn(R),[z,B,L]=Fh(R,g),[F]=Hh(R,T),{compactSize:K,compactItemClassnames:W}=oo(R,O),A=Dn(he=>{var be;return(be=a??K)!==null&&be!==void 0?be:he}),V=te.useContext(Jn),G=l??V,{status:U,hasFeedback:ne,feedbackIcon:J}=i.useContext(In),Q=$l(U,o),le=$N(e)||!!ne;i.useRef(le);const re=sb(_,!0),X=he=>{re(),s==null||s(he)},oe=he=>{re(),c==null||c(he)},Z=he=>{re(),b==null||b(he)},q=(ne||u)&&te.createElement(te.Fragment,null,u,ne&&J),Y=lb(d??w),[ie,ue]=wl("input",y,r);return z(F(te.createElement(xN,Object.assign({ref:Vn(t,_),prefixCls:R,autoComplete:x},S,{disabled:G,onBlur:X,onFocus:oe,style:Object.assign(Object.assign({},P),p),styles:Object.assign(Object.assign({},M),h),suffix:q,allowClear:Y,className:k(v,g,L,T,W,I),onChange:Z,addonBefore:m&&te.createElement(wa,{form:!0,space:!0},m),addonAfter:f&&te.createElement(wa,{form:!0,space:!0},f),classNames:Object.assign(Object.assign(Object.assign({},C),N),{input:k({[`${R}-sm`]:A==="small",[`${R}-lg`]:A==="large",[`${R}-rtl`]:O==="rtl"},C==null?void 0:C.input,N.input,B),variant:k({[`${R}-${ie}`]:ue},Fi(R,Q)),affixWrapper:k({[`${R}-affix-wrapper-sm`]:A==="small",[`${R}-affix-wrapper-lg`]:A==="large",[`${R}-affix-wrapper-rtl`]:O==="rtl"},B),wrapper:k({[`${R}-group-rtl`]:O==="rtl"},B),groupWrapper:k({[`${R}-group-wrapper-sm`]:A==="small",[`${R}-group-wrapper-lg`]:A==="large",[`${R}-group-wrapper-rtl`]:O==="rtl",[`${R}-group-wrapper-${ie}`]:ue},Fi(`${R}-group-wrapper`,Q,ne),B)})}))))}),EN={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1},Gu=te.createContext({});var ON=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const IN=e=>_n(e).map(t=>Object.assign(Object.assign({},t==null?void 0:t.props),{key:t.key}));function RN(e,t,n){const r=i.useMemo(()=>t||IN(n),[t,n]);return i.useMemo(()=>r.map(a=>{var{span:l}=a,s=ON(a,["span"]);return l==="filled"?Object.assign(Object.assign({},s),{filled:!0}):Object.assign(Object.assign({},s),{span:typeof l=="number"?l:Jp(e,l)})}),[r,e])}var PN=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function NN(e,t){let n=[],r=[],o=!1,a=0;return e.filter(l=>l).forEach(l=>{const{filled:s}=l,c=PN(l,["filled"]);if(s){r.push(c),n.push(r),r=[],a=0;return}const u=t-a;a+=l.span||1,a>=t?(a>t?(o=!0,r.push(Object.assign(Object.assign({},c),{span:u}))):r.push(c),n.push(r),r=[],a=0):r.push(c)}),r.length>0&&n.push(r),n=n.map(l=>{const s=l.reduce((c,u)=>c+(u.span||1),0);if(s<t){const c=l[l.length-1];return c.span=t-(s-(c.span||1)),l}return l}),[n,o]}const MN=(e,t)=>{const[n,r]=i.useMemo(()=>NN(t,e),[t,e]);return n},TN=({children:e})=>e,ui=e=>e!=null,Ss=e=>{const{itemPrefixCls:t,component:n,span:r,className:o,style:a,labelStyle:l,contentStyle:s,bordered:c,label:u,content:d,colon:f,type:m,styles:v}=e,p=n,{classNames:h}=i.useContext(Gu),g=Object.assign(Object.assign({},l),v==null?void 0:v.label),b=Object.assign(Object.assign({},s),v==null?void 0:v.content);return c?i.createElement(p,{colSpan:r,style:a,className:k(o,{[`${t}-item-${m}`]:m==="label"||m==="content",[h==null?void 0:h.label]:(h==null?void 0:h.label)&&m==="label",[h==null?void 0:h.content]:(h==null?void 0:h.content)&&m==="content"})},ui(u)&&i.createElement("span",{style:g},u),ui(d)&&i.createElement("span",{style:b},d)):i.createElement(p,{colSpan:r,style:a,className:k(`${t}-item`,o)},i.createElement("div",{className:`${t}-item-container`},ui(u)&&i.createElement("span",{style:g,className:k(`${t}-item-label`,h==null?void 0:h.label,{[`${t}-item-no-colon`]:!f})},u),ui(d)&&i.createElement("span",{style:b,className:k(`${t}-item-content`,h==null?void 0:h.content)},d)))};function xs(e,{colon:t,prefixCls:n,bordered:r},{component:o,type:a,showLabel:l,showContent:s,labelStyle:c,contentStyle:u,styles:d}){return e.map(({label:f,children:m,prefixCls:v=n,className:p,style:h,labelStyle:g,contentStyle:b,span:C=1,key:y,styles:$},S)=>typeof o=="string"?i.createElement(Ss,{key:`${a}-${y||S}`,className:p,style:h,styles:{label:Object.assign(Object.assign(Object.assign(Object.assign({},c),d==null?void 0:d.label),g),$==null?void 0:$.label),content:Object.assign(Object.assign(Object.assign(Object.assign({},u),d==null?void 0:d.content),b),$==null?void 0:$.content)},span:C,colon:t,component:o,itemPrefixCls:v,bordered:r,label:l?f:null,content:s?m:null,type:a}):[i.createElement(Ss,{key:`label-${y||S}`,className:p,style:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},c),d==null?void 0:d.label),h),g),$==null?void 0:$.label),span:1,colon:t,component:o[0],itemPrefixCls:v,bordered:r,label:f,type:"label"}),i.createElement(Ss,{key:`content-${y||S}`,className:p,style:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},u),d==null?void 0:d.content),h),b),$==null?void 0:$.content),span:C*2-1,component:o[1],itemPrefixCls:v,bordered:r,content:m,type:"content"})])}const _N=e=>{const t=i.useContext(Gu),{prefixCls:n,vertical:r,row:o,index:a,bordered:l}=e;return r?i.createElement(i.Fragment,null,i.createElement("tr",{key:`label-${a}`,className:`${n}-row`},xs(o,e,Object.assign({component:"th",type:"label",showLabel:!0},t))),i.createElement("tr",{key:`content-${a}`,className:`${n}-row`},xs(o,e,Object.assign({component:"td",type:"content",showContent:!0},t)))):i.createElement("tr",{key:a,className:`${n}-row`},xs(o,e,Object.assign({component:l?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0},t)))},zN=e=>{const{componentCls:t,labelBg:n}=e;return{[`&${t}-bordered`]:{[`> ${t}-view`]:{border:`${H(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"> table":{tableLayout:"auto"},[`${t}-row`]:{borderBottom:`${H(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:first-child":{"> th:first-child, > td:first-child":{borderStartStartRadius:e.borderRadiusLG}},"&:last-child":{borderBottom:"none","> th:first-child, > td:first-child":{borderEndStartRadius:e.borderRadiusLG}},[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${H(e.padding)} ${H(e.paddingLG)}`,borderInlineEnd:`${H(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderInlineEnd:"none"}},[`> ${t}-item-label`]:{color:e.colorTextSecondary,backgroundColor:n,"&::after":{display:"none"}}}},[`&${t}-middle`]:{[`${t}-row`]:{[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${H(e.paddingSM)} ${H(e.paddingLG)}`}}},[`&${t}-small`]:{[`${t}-row`]:{[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${H(e.paddingXS)} ${H(e.padding)}`}}}}}},jN=e=>{const{componentCls:t,extraColor:n,itemPaddingBottom:r,itemPaddingEnd:o,colonMarginRight:a,colonMarginLeft:l,titleMarginBottom:s}=e;return{[t]:Object.assign(Object.assign(Object.assign({},kt(e)),zN(e)),{"&-rtl":{direction:"rtl"},[`${t}-header`]:{display:"flex",alignItems:"center",marginBottom:s},[`${t}-title`]:Object.assign(Object.assign({},Cr),{flex:"auto",color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}),[`${t}-extra`]:{marginInlineStart:"auto",color:n,fontSize:e.fontSize},[`${t}-view`]:{width:"100%",borderRadius:e.borderRadiusLG,table:{width:"100%",tableLayout:"fixed",borderCollapse:"collapse"}},[`${t}-row`]:{"> th, > td":{paddingBottom:r,paddingInlineEnd:o},"> th:last-child, > td:last-child":{paddingInlineEnd:0},"&:last-child":{borderBottom:"none","> th, > td":{paddingBottom:0}}},[`${t}-item-label`]:{color:e.labelColor,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"start","&::after":{content:'":"',position:"relative",top:-.5,marginInline:`${H(l)} ${H(a)}`},[`&${t}-item-no-colon::after`]:{content:'""'}},[`${t}-item-no-label`]:{"&::after":{margin:0,content:'""'}},[`${t}-item-content`]:{display:"table-cell",flex:1,color:e.contentColor,fontSize:e.fontSize,lineHeight:e.lineHeight,wordBreak:"break-word",overflowWrap:"break-word"},[`${t}-item`]:{paddingBottom:0,verticalAlign:"top","&-container":{display:"flex",[`${t}-item-label`]:{display:"inline-flex",alignItems:"baseline"},[`${t}-item-content`]:{display:"inline-flex",alignItems:"baseline",minWidth:"1em"}}},"&-middle":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingSM}}},"&-small":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingXS}}}})}},BN=e=>({labelBg:e.colorFillAlter,labelColor:e.colorTextTertiary,titleColor:e.colorText,titleMarginBottom:e.fontSizeSM*e.lineHeightSM,itemPaddingBottom:e.padding,itemPaddingEnd:e.padding,colonMarginRight:e.marginXS,colonMarginLeft:e.marginXXS/2,contentColor:e.colorText,extraColor:e.colorText}),DN=At("Descriptions",e=>{const t=wt(e,{});return jN(t)},BN);var LN=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const AN=e=>{const{prefixCls:t,title:n,extra:r,column:o,colon:a=!0,bordered:l,layout:s,children:c,className:u,rootClassName:d,style:f,size:m,labelStyle:v,contentStyle:p,styles:h,items:g,classNames:b}=e,C=LN(e,["prefixCls","title","extra","column","colon","bordered","layout","children","className","rootClassName","style","size","labelStyle","contentStyle","styles","items","classNames"]),{getPrefixCls:y,direction:$,className:S,style:E,classNames:O,styles:w}=Kn("descriptions"),x=y("descriptions",t),I=El(),P=i.useMemo(()=>{var L;return typeof o=="number"?o:(L=Jp(I,Object.assign(Object.assign({},EN),o)))!==null&&L!==void 0?L:3},[I,o]),N=RN(I,g,c),M=Dn(m),R=MN(P,N),[_,T,z]=DN(x),B=i.useMemo(()=>({labelStyle:v,contentStyle:p,styles:{content:Object.assign(Object.assign({},w.content),h==null?void 0:h.content),label:Object.assign(Object.assign({},w.label),h==null?void 0:h.label)},classNames:{label:k(O.label,b==null?void 0:b.label),content:k(O.content,b==null?void 0:b.content)}}),[v,p,h,b,O,w]);return _(i.createElement(Gu.Provider,{value:B},i.createElement("div",Object.assign({className:k(x,S,O.root,b==null?void 0:b.root,{[`${x}-${M}`]:M&&M!=="default",[`${x}-bordered`]:!!l,[`${x}-rtl`]:$==="rtl"},u,d,T,z),style:Object.assign(Object.assign(Object.assign(Object.assign({},E),w.root),h==null?void 0:h.root),f)},C),(n||r)&&i.createElement("div",{className:k(`${x}-header`,O.header,b==null?void 0:b.header),style:Object.assign(Object.assign({},w.header),h==null?void 0:h.header)},n&&i.createElement("div",{className:k(`${x}-title`,O.title,b==null?void 0:b.title),style:Object.assign(Object.assign({},w.title),h==null?void 0:h.title)},n),r&&i.createElement("div",{className:k(`${x}-extra`,O.extra,b==null?void 0:b.extra),style:Object.assign(Object.assign({},w.extra),h==null?void 0:h.extra)},r)),i.createElement("div",{className:`${x}-view`},i.createElement("table",null,i.createElement("tbody",null,R.map((L,F)=>i.createElement(_N,{key:F,index:F,colon:a,prefixCls:x,vertical:s==="vertical",bordered:l,row:L}))))))))};AN.Item=TN;function Fm(e){return["small","middle","large"].includes(e)}function Hm(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const FN=e=>{const{componentCls:t,borderRadius:n,paddingSM:r,colorBorder:o,paddingXS:a,fontSizeLG:l,fontSizeSM:s,borderRadiusLG:c,borderRadiusSM:u,colorBgContainerDisabled:d,lineWidth:f}=e;return{[t]:[{display:"inline-flex",alignItems:"center",gap:0,paddingInline:r,margin:0,background:d,borderWidth:f,borderStyle:"solid",borderColor:o,borderRadius:n,"&-large":{fontSize:l,borderRadius:c},"&-small":{paddingInline:a,borderRadius:u,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}},pl(e,{focus:!1})]}},HN=At(["Space","Addon"],e=>[FN(e)]);var kN=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const VN=te.forwardRef((e,t)=>{const{className:n,children:r,style:o,prefixCls:a}=e,l=kN(e,["className","children","style","prefixCls"]),{getPrefixCls:s,direction:c}=te.useContext(it),u=s("space-addon",a),[d,f,m]=HN(u),{compactItemClassnames:v,compactSize:p}=oo(u,c),h=k(u,f,v,m,{[`${u}-${p}`]:p},n);return d(te.createElement("div",Object.assign({ref:t,className:h,style:o},l),r))}),cb=te.createContext({latestIndex:0}),KN=cb.Provider,WN=({className:e,index:t,children:n,split:r,style:o})=>{const{latestIndex:a}=i.useContext(cb);return n==null?null:i.createElement(i.Fragment,null,i.createElement("div",{className:e,style:o},n),t<a&&r&&i.createElement("span",{className:`${e}-split`},r))},GN=e=>{const{componentCls:t,antCls:n}=e;return{[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${t}-item:empty`]:{display:"none"},[`${t}-item > ${n}-badge-not-a-wrapper:only-child`]:{display:"block"}}}},qN=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}},UN=At("Space",e=>{const t=wt(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[GN(t),qN(t)]},()=>({}),{resetStyle:!1});var XN=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const YN=i.forwardRef((e,t)=>{var n;const{getPrefixCls:r,direction:o,size:a,className:l,style:s,classNames:c,styles:u}=Kn("space"),{size:d=a??"small",align:f,className:m,rootClassName:v,children:p,direction:h="horizontal",prefixCls:g,split:b,style:C,wrap:y=!1,classNames:$,styles:S}=e,E=XN(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[O,w]=Array.isArray(d)?d:[d,d],x=Fm(w),I=Fm(O),P=Hm(w),N=Hm(O),M=_n(p,{keepEmpty:!0}),R=f===void 0&&h==="horizontal"?"center":f,_=r("space",g),[T,z,B]=UN(_),L=k(_,l,z,`${_}-${h}`,{[`${_}-rtl`]:o==="rtl",[`${_}-align-${R}`]:R,[`${_}-gap-row-${w}`]:x,[`${_}-gap-col-${O}`]:I},m,v,B),F=k(`${_}-item`,(n=$==null?void 0:$.item)!==null&&n!==void 0?n:c.item),K=Object.assign(Object.assign({},u.item),S==null?void 0:S.item),W=M.map((G,U)=>{const ne=(G==null?void 0:G.key)||`${F}-${U}`;return i.createElement(WN,{className:F,key:ne,index:U,split:b,style:K},G)}),A=i.useMemo(()=>({latestIndex:M.reduce((U,ne,J)=>ne!=null?J:U,0)}),[M]);if(M.length===0)return null;const V={};return y&&(V.flexWrap="wrap"),!I&&N&&(V.columnGap=O),!x&&P&&(V.rowGap=w),T(i.createElement("div",Object.assign({ref:t,className:L,style:Object.assign(Object.assign(Object.assign({},V),s),C)},E),i.createElement(KN,{value:A},W)))}),qu=YN;qu.Compact=d$;qu.Addon=VN;var QN=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const ub=e=>{const{getPopupContainer:t,getPrefixCls:n,direction:r}=i.useContext(it),{prefixCls:o,type:a="default",danger:l,disabled:s,loading:c,onClick:u,htmlType:d,children:f,className:m,menu:v,arrow:p,autoFocus:h,overlay:g,trigger:b,align:C,open:y,onOpenChange:$,placement:S,getPopupContainer:E,href:O,icon:w=i.createElement(Fu,null),title:x,buttonsRender:I=re=>re,mouseEnterDelay:P,mouseLeaveDelay:N,overlayClassName:M,overlayStyle:R,destroyOnHidden:_,destroyPopupOnHide:T,dropdownRender:z,popupRender:B}=e,L=QN(e,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyOnHidden","destroyPopupOnHide","dropdownRender","popupRender"]),F=n("dropdown",o),K=`${F}-button`,A={menu:v,arrow:p,autoFocus:h,align:C,disabled:s,trigger:s?[]:b,onOpenChange:$,getPopupContainer:E||t,mouseEnterDelay:P,mouseLeaveDelay:N,overlayClassName:M,overlayStyle:R,destroyOnHidden:_,popupRender:B||z},{compactSize:V,compactItemClassnames:G}=oo(F,r),U=k(K,G,m);"destroyPopupOnHide"in e&&(A.destroyPopupOnHide=T),"overlay"in e&&(A.overlay=g),"open"in e&&(A.open=y),"placement"in e?A.placement=S:A.placement=r==="rtl"?"bottomLeft":"bottomRight";const ne=i.createElement(Jr,{type:a,danger:l,disabled:s,loading:c,onClick:u,htmlType:d,href:O,title:x},f),J=i.createElement(Jr,{type:a,danger:l,icon:w}),[Q,le]=I([ne,J]);return i.createElement(qu.Compact,Object.assign({className:U,size:V,block:!0},L),Q,i.createElement(Pl,Object.assign({},A),le))};ub.__ANT_BUTTON=!0;const Uu=Pl;Uu.Button=ub;function ZN(e){return e==null?null:typeof e=="object"&&!i.isValidElement(e)?e:{title:e}}function Gi(e){const[t,n]=i.useState(e);return i.useEffect(()=>{const r=setTimeout(()=>{n(e)},e.length?0:10);return()=>{clearTimeout(r)}},[e]),t}const JN=e=>{const{componentCls:t}=e,n=`${t}-show-help`,r=`${t}-show-help-item`;return{[n]:{transition:`opacity ${e.motionDurationFast} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[r]:{overflow:"hidden",transition:`height ${e.motionDurationFast} ${e.motionEaseInOut},
|
|
262
|
+
opacity ${e.motionDurationFast} ${e.motionEaseInOut},
|
|
263
|
+
transform ${e.motionDurationFast} ${e.motionEaseInOut} !important`,[`&${r}-appear, &${r}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${r}-leave-active`]:{transform:"translateY(-5px)"}}}}},eM=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${H(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${H(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),km=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},tM=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},kt(e)),eM(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},km(e,e.controlHeightSM)),"&-large":Object.assign({},km(e,e.controlHeightLG))})}},nM=e=>{const{formItemCls:t,iconCls:n,rootPrefixCls:r,antCls:o,labelRequiredMarkColor:a,labelColor:l,labelFontSize:s,labelHeight:c,labelColonMarginInlineStart:u,labelColonMarginInlineEnd:d,itemMarginBottom:f}=e;return{[t]:Object.assign(Object.assign({},kt(e)),{marginBottom:f,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
|
|
264
|
+
&-hidden${o}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:e.lineHeight,whiteSpace:"unset","> label":{verticalAlign:"middle",textWrap:"balance"}},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:c,color:l,fontSize:s,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:e.marginXXS,color:a,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"'},[`&${t}-required-mark-hidden, &${t}-required-mark-optional`]:{"&::before":{display:"none"}}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`&${t}-required-mark-hidden`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:u,marginInlineEnd:d},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${r}-col-'"]):not([class*="' ${r}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%",[`&:has(> ${o}-switch:only-child, > ${o}-rate:only-child)`]:{display:"flex",alignItems:"center"}}}},[t]:{"&-additional":{display:"flex",flexDirection:"column"},"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:"auto",opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:yu,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},Gr=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),rM=e=>{const{antCls:t,formItemCls:n}=e;return{[`${n}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:"1 1 0",minWidth:0},[`${n}-label[class$='-24'], ${n}-label[class*='-24 ']`]:{[`& + ${n}-control`]:{minWidth:"unset"}},[`${t}-col-24${n}-label,
|
|
265
|
+
${t}-col-xl-24${n}-label`]:Gr(e)}}},oM=e=>{const{componentCls:t,formItemCls:n,inlineItemMarginBottom:r}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[`${n}-inline`]:{flex:"none",marginInlineEnd:e.margin,marginBottom:r,"&-row":{flexWrap:"nowrap"},[`> ${n}-label,
|
|
266
|
+
> ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},aM=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:Gr(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},iM=e=>{const{componentCls:t,formItemCls:n,antCls:r}=e;return{[`${n}-vertical`]:{[`${n}-row`]:{flexDirection:"column"},[`${n}-label > label`]:{height:"auto"},[`${n}-control`]:{width:"100%"},[`${n}-label,
|
|
267
|
+
${r}-col-24${n}-label,
|
|
268
|
+
${r}-col-xl-24${n}-label`]:Gr(e)},[`@media (max-width: ${H(e.screenXSMax)})`]:[aM(e),{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-xs-24${n}-label`]:Gr(e)}}}],[`@media (max-width: ${H(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-sm-24${n}-label`]:Gr(e)}}},[`@media (max-width: ${H(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-md-24${n}-label`]:Gr(e)}}},[`@media (max-width: ${H(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-lg-24${n}-label`]:Gr(e)}}}}},lM=e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),db=(e,t)=>wt(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),Xu=At("Form",(e,{rootPrefixCls:t})=>{const n=db(e,t);return[tM(n),nM(n),JN(n),rM(n),oM(n),iM(n),vu(n),yu]},lM,{order:-1e3}),Vm=[];function $s(e,t,n,r=0){return{key:typeof e=="string"?e:`${t}-${r}`,error:e,errorStatus:n}}const fb=({help:e,helpStatus:t,errors:n=Vm,warnings:r=Vm,className:o,fieldId:a,onVisibleChanged:l})=>{const{prefixCls:s}=i.useContext(Eu),c=`${s}-item-explain`,u=Pn(s),[d,f,m]=Xu(s,u),v=i.useMemo(()=>Di(s),[s]),p=Gi(n),h=Gi(r),g=i.useMemo(()=>e!=null?[$s(e,"help",t)]:[].concat(ge(p.map((y,$)=>$s(y,"error","error",$))),ge(h.map((y,$)=>$s(y,"warning","warning",$)))),[e,t,p,h]),b=i.useMemo(()=>{const y={};return g.forEach(({key:$})=>{y[$]=(y[$]||0)+1}),g.map(($,S)=>Object.assign(Object.assign({},$),{key:y[$.key]>1?`${$.key}-fallback-${S}`:$.key}))},[g]),C={};return a&&(C.id=`${a}_help`),d(i.createElement(ir,{motionDeadline:v.motionDeadline,motionName:`${s}-show-help`,visible:!!b.length,onVisibleChanged:l},y=>{const{className:$,style:S}=y;return i.createElement("div",Object.assign({},C,{className:k(c,$,m,u,o,f),style:S}),i.createElement(Ag,Object.assign({keys:b},Di(s),{motionName:`${s}-show-help-item`,component:!1}),E=>{const{key:O,error:w,errorStatus:x,className:I,style:P}=E;return i.createElement("div",{key:O,className:k(I,{[`${c}-${x}`]:x}),style:P},w)}))}))};var sM=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const cM=(e,t)=>{const n=i.useContext(Jn),{getPrefixCls:r,direction:o,requiredMark:a,colon:l,scrollToFirstError:s,className:c,style:u}=Kn("form"),{prefixCls:d,className:f,rootClassName:m,size:v,disabled:p=n,form:h,colon:g,labelAlign:b,labelWrap:C,labelCol:y,wrapperCol:$,hideRequiredMark:S,layout:E="horizontal",scrollToFirstError:O,requiredMark:w,onFinishFailed:x,name:I,style:P,feedbackIcons:N,variant:M}=e,R=sM(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),_=Dn(v),T=i.useContext(fg),z=i.useMemo(()=>w!==void 0?w:S?!1:a!==void 0?a:!0,[S,w,a]),B=g??l,L=r("form",d),F=Pn(L),[K,W,A]=Xu(L,F),V=k(L,`${L}-${E}`,{[`${L}-hide-required-mark`]:z===!1,[`${L}-rtl`]:o==="rtl",[`${L}-${_}`]:_},A,F,W,c,f,m),[G]=Bh(h),{__INTERNAL__:U}=G;U.name=I;const ne=i.useMemo(()=>({name:I,labelAlign:b,labelCol:y,labelWrap:C,wrapperCol:$,layout:E,colon:B,requiredMark:z,itemRef:U.itemRef,form:G,feedbackIcons:N}),[I,b,y,$,E,B,z,G,N]),J=i.useRef(null);i.useImperativeHandle(t,()=>{var re;return Object.assign(Object.assign({},G),{nativeElement:(re=J.current)===null||re===void 0?void 0:re.nativeElement})});const Q=(re,X)=>{if(re){let oe={block:"nearest"};typeof re=="object"&&(oe=Object.assign(Object.assign({},oe),re)),G.scrollToField(X,oe)}},le=re=>{if(x==null||x(re),re.errorFields.length){const X=re.errorFields[0].name;if(O!==void 0){Q(O,X);return}s!==void 0&&Q(s,X)}};return K(i.createElement(Ip.Provider,{value:M},i.createElement(Cg,{disabled:p},i.createElement(Yr.Provider,{value:_},i.createElement(Ep,{validateMessages:T},i.createElement(xr.Provider,{value:ne},i.createElement(Op,{status:!0},i.createElement(Do,Object.assign({id:I},R,{name:I,onFinishFailed:le,form:G,ref:J,style:Object.assign(Object.assign({},u),P),className:V})))))))))},uM=i.forwardRef(cM);function dM(e){if(typeof e=="function")return e;const t=_n(e);return t.length<=1?t[0]:t}const mb=()=>{const{status:e,errors:t=[],warnings:n=[]}=i.useContext(In);return{status:e,errors:t,warnings:n}};mb.Context=In;function fM(e){const[t,n]=i.useState(e),r=i.useRef(null),o=i.useRef([]),a=i.useRef(!1);i.useEffect(()=>(a.current=!1,()=>{a.current=!0,Et.cancel(r.current),r.current=null}),[]);function l(s){a.current||(r.current===null&&(o.current=[],r.current=Et(()=>{r.current=null,n(c=>{let u=c;return o.current.forEach(d=>{u=d(u)}),u})})),o.current.push(s))}return[t,l]}function mM(){const{itemRef:e}=i.useContext(xr),t=i.useRef({});function n(r,o){const a=o&&typeof o=="object"&&jr(o),l=r.join("_");return(t.current.name!==l||t.current.originRef!==a)&&(t.current.name=l,t.current.originRef=a,t.current.ref=Vn(e(r),a)),t.current.ref}return n}const vM=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},gM=ja(["Form","item-item"],(e,{rootPrefixCls:t})=>{const n=db(e,t);return vM(n)});var pM=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const hM=24,bM=e=>{const{prefixCls:t,status:n,labelCol:r,wrapperCol:o,children:a,errors:l,warnings:s,_internalItemRender:c,extra:u,help:d,fieldId:f,marginBottom:m,onErrorVisibleChanged:v,label:p}=e,h=`${t}-item`,g=i.useContext(xr),b=i.useMemo(()=>{let R=Object.assign({},o||g.wrapperCol||{});return p===null&&!r&&!o&&g.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(T=>{const z=T?[T]:[],B=Tn(g.labelCol,z),L=typeof B=="object"?B:{},F=Tn(R,z),K=typeof F=="object"?F:{};"span"in L&&!("offset"in K)&&L.span<hM&&(R=Qn(R,[].concat(z,["offset"]),L.span))}),R},[o,g.wrapperCol,g.labelCol,p,r]),C=k(`${h}-control`,b.className),y=i.useMemo(()=>{const{labelCol:R,wrapperCol:_}=g;return pM(g,["labelCol","wrapperCol"])},[g]),$=i.useRef(null),[S,E]=i.useState(0);Rt(()=>{u&&$.current?E($.current.clientHeight):E(0)},[u]);const O=i.createElement("div",{className:`${h}-control-input`},i.createElement("div",{className:`${h}-control-input-content`},a)),w=i.useMemo(()=>({prefixCls:t,status:n}),[t,n]),x=m!==null||l.length||s.length?i.createElement(Eu.Provider,{value:w},i.createElement(fb,{fieldId:f,errors:l,warnings:s,help:d,helpStatus:n,className:`${h}-explain-connected`,onVisibleChanged:v})):null,I={};f&&(I.id=`${f}_extra`);const P=u?i.createElement("div",Object.assign({},I,{className:`${h}-extra`,ref:$}),u):null,N=x||P?i.createElement("div",{className:`${h}-additional`,style:m?{minHeight:m+S}:{}},x,P):null,M=c&&c.mark==="pro_table_render"&&c.render?c.render(e,{input:O,errorList:x,extra:P}):i.createElement(i.Fragment,null,O,N);return i.createElement(xr.Provider,{value:y},i.createElement(rb,Object.assign({},b,{className:C}),M),i.createElement(gM,{prefixCls:t}))};var yM={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},CM=function(t,n){return i.createElement(Pt,me({},t,{ref:n,icon:yM}))},SM=i.forwardRef(CM),xM=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const $M=({prefixCls:e,label:t,htmlFor:n,labelCol:r,labelAlign:o,colon:a,required:l,requiredMark:s,tooltip:c,vertical:u})=>{var d;const[f]=jo("Form"),{labelAlign:m,labelCol:v,labelWrap:p,colon:h}=i.useContext(xr);if(!t)return null;const g=r||v||{},b=o||m,C=`${e}-item-label`,y=k(C,b==="left"&&`${C}-left`,g.className,{[`${C}-wrap`]:!!p});let $=t;const S=a===!0||h!==!1&&a!==!1;S&&!u&&typeof t=="string"&&t.trim()&&($=t.replace(/[:|:]\s*$/,""));const O=ZN(c);if(O){const{icon:M=i.createElement(SM,null)}=O,R=xM(O,["icon"]),_=i.createElement(Oa,Object.assign({},R),i.cloneElement(M,{className:`${e}-item-tooltip`,title:"",onClick:T=>{T.preventDefault()},tabIndex:null}));$=i.createElement(i.Fragment,null,$,_)}const w=s==="optional",x=typeof s=="function",I=s===!1;x?$=s($,{required:!!l}):w&&!l&&($=i.createElement(i.Fragment,null,$,i.createElement("span",{className:`${e}-item-optional`,title:""},(f==null?void 0:f.optional)||((d=yr.Form)===null||d===void 0?void 0:d.optional))));let P;I?P="hidden":(w||x)&&(P="optional");const N=k({[`${e}-item-required`]:l,[`${e}-item-required-mark-${P}`]:P,[`${e}-item-no-colon`]:!S});return i.createElement(rb,Object.assign({},g,{className:y}),i.createElement("label",{htmlFor:n,className:N,title:typeof t=="string"?t:""},$))},wM={success:qg,warning:Ug,error:tl,validating:Ba};function vb({children:e,errors:t,warnings:n,hasFeedback:r,validateStatus:o,prefixCls:a,meta:l,noStyle:s,name:c}){const u=`${a}-item`,{feedbackIcons:d}=i.useContext(xr),f=jh(t,n,l,null,!!r,o),{isFormItemInput:m,status:v,hasFeedback:p,feedbackIcon:h,name:g}=i.useContext(In),b=i.useMemo(()=>{var C;let y;if(r){const S=r!==!0&&r.icons||d,E=f&&((C=S==null?void 0:S({status:f,errors:t,warnings:n}))===null||C===void 0?void 0:C[f]),O=f?wM[f]:null;y=E!==!1&&O?i.createElement("span",{className:k(`${u}-feedback-icon`,`${u}-feedback-icon-${f}`)},E||i.createElement(O,null)):null}const $={status:f||"",errors:t,warnings:n,hasFeedback:!!r,feedbackIcon:y,isFormItemInput:!0,name:c};return s&&($.status=(f??v)||"",$.isFormItemInput=m,$.hasFeedback=!!(r??p),$.feedbackIcon=r!==void 0?$.feedbackIcon:h,$.name=c??g),$},[f,r,s,m,v]);return i.createElement(In.Provider,{value:b},e)}var EM=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function OM(e){const{prefixCls:t,className:n,rootClassName:r,style:o,help:a,errors:l,warnings:s,validateStatus:c,meta:u,hasFeedback:d,hidden:f,children:m,fieldId:v,required:p,isRequired:h,onSubItemMetaChange:g,layout:b,name:C}=e,y=EM(e,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout","name"]),$=`${t}-item`,{requiredMark:S,layout:E}=i.useContext(xr),O=b||E,w=O==="vertical",x=i.useRef(null),I=Gi(l),P=Gi(s),N=a!=null,M=!!(N||l.length||s.length),R=!!x.current&&La(x.current),[_,T]=i.useState(null);Rt(()=>{if(M&&x.current){const K=getComputedStyle(x.current);T(Number.parseInt(K.marginBottom,10))}},[M,R]);const z=K=>{K||T(null)},L=((K=!1)=>{const W=K?I:u.errors,A=K?P:u.warnings;return jh(W,A,u,"",!!d,c)})(),F=k($,n,r,{[`${$}-with-help`]:N||I.length||P.length,[`${$}-has-feedback`]:L&&d,[`${$}-has-success`]:L==="success",[`${$}-has-warning`]:L==="warning",[`${$}-has-error`]:L==="error",[`${$}-is-validating`]:L==="validating",[`${$}-hidden`]:f,[`${$}-${O}`]:O});return i.createElement("div",{className:F,style:o,ref:x},i.createElement(hN,Object.assign({className:`${$}-row`},Xt(y,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),i.createElement($M,Object.assign({htmlFor:v},e,{requiredMark:S,required:p??h,prefixCls:t,vertical:w})),i.createElement(bM,Object.assign({},e,u,{errors:I,warnings:P,prefixCls:t,status:L,help:a,marginBottom:_,onErrorVisibleChanged:z}),i.createElement(wp.Provider,{value:g},i.createElement(vb,{prefixCls:t,meta:u,errors:u.errors,warnings:u.warnings,hasFeedback:d,validateStatus:L,name:C},m)))),!!_&&i.createElement("div",{className:`${$}-margin-offset`,style:{marginBottom:-_}}))}const IM="__SPLIT__";function RM(e,t){const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(o=>{const a=e[o],l=t[o];return a===l||typeof a=="function"||typeof l=="function"})}const PM=i.memo(({children:e})=>e,(e,t)=>RM(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((n,r)=>n===t.childProps[r]));function Km(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function NM(e){const{name:t,noStyle:n,className:r,dependencies:o,prefixCls:a,shouldUpdate:l,rules:s,children:c,required:u,label:d,messageVariables:f,trigger:m="onChange",validateTrigger:v,hidden:p,help:h,layout:g}=e,{getPrefixCls:b}=i.useContext(it),{name:C}=i.useContext(xr),y=dM(c),$=typeof y=="function",S=i.useContext(wp),{validateTrigger:E}=i.useContext(eo),O=v!==void 0?v:E,w=t!=null,x=b("form",a),I=Pn(x),[P,N,M]=Xu(x,I);Br();const R=i.useContext($a),_=i.useRef(null),[T,z]=fM({}),[B,L]=No(()=>Km()),F=ne=>{const J=R==null?void 0:R.getKey(ne.name);if(L(ne.destroy?Km():ne,!0),n&&h!==!1&&S){let Q=ne.name;if(ne.destroy)Q=_.current||Q;else if(J!==void 0){const[le,re]=J;Q=[le].concat(ge(re)),_.current=Q}S(ne,Q)}},K=(ne,J)=>{z(Q=>{const le=Object.assign({},Q),X=[].concat(ge(ne.name.slice(0,-1)),ge(J)).join(IM);return ne.destroy?delete le[X]:le[X]=ne,le})},[W,A]=i.useMemo(()=>{const ne=ge(B.errors),J=ge(B.warnings);return Object.values(T).forEach(Q=>{ne.push.apply(ne,ge(Q.errors||[])),J.push.apply(J,ge(Q.warnings||[]))}),[ne,J]},[T,B.errors,B.warnings]),V=mM();function G(ne,J,Q){return n&&!p?i.createElement(vb,{prefixCls:x,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:B,errors:W,warnings:A,noStyle:!0,name:t},ne):i.createElement(OM,Object.assign({key:"row"},e,{className:k(r,M,I,N),prefixCls:x,fieldId:J,isRequired:Q,errors:W,warnings:A,meta:B,onSubItemMetaChange:K,layout:g,name:t}),ne)}if(!w&&!$&&!o)return P(G(y));let U={};return typeof d=="string"?U.label=d:t&&(U.label=String(t)),f&&(U=Object.assign(Object.assign({},U),f)),P(i.createElement($u,Object.assign({},e,{messageVariables:U,trigger:m,validateTrigger:O,onMetaChange:F}),(ne,J,Q)=>{const le=la(t).length&&J?J.name:[],re=zh(le,C),X=u!==void 0?u:!!(s!=null&&s.some(q=>{if(q&&typeof q=="object"&&q.required&&!q.warningOnly)return!0;if(typeof q=="function"){const Y=q(Q);return(Y==null?void 0:Y.required)&&!(Y!=null&&Y.warningOnly)}return!1})),oe=Object.assign({},ne);let Z=null;if(Array.isArray(y)&&w)Z=y;else if(!($&&(!(l||o)||w))){if(!(o&&!$&&!w))if(i.isValidElement(y)){const q=Object.assign(Object.assign({},y.props),oe);if(q.id||(q.id=re),h||W.length>0||A.length>0||e.extra){const ue=[];(h||W.length>0)&&ue.push(`${re}_help`),e.extra&&ue.push(`${re}_extra`),q["aria-describedby"]=ue.join(" ")}W.length>0&&(q["aria-invalid"]="true"),X&&(q["aria-required"]="true"),or(y)&&(q.ref=V(le,y)),new Set([].concat(ge(la(m)),ge(la(O)))).forEach(ue=>{q[ue]=(...he)=>{var be,ae,fe,se,ce;(fe=oe[ue])===null||fe===void 0||(be=fe).call.apply(be,[oe].concat(he)),(ce=(se=y.props)[ue])===null||ce===void 0||(ae=ce).call.apply(ae,[se].concat(he))}});const ie=[q["aria-required"],q["aria-invalid"],q["aria-describedby"]];Z=i.createElement(PM,{control:oe,update:y,childProps:ie},kn(y,q))}else $&&(l||o)&&!w?Z=y(Q):Z=y}return G(Z,re,X)}))}const gb=NM;gb.useStatus=mb;var MM=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const TM=e=>{var{prefixCls:t,children:n}=e,r=MM(e,["prefixCls","children"]);const{getPrefixCls:o}=i.useContext(it),a=o("form",t),l=i.useMemo(()=>({prefixCls:a,status:"error"}),[a]);return i.createElement(Cp,Object.assign({},r),(s,c,u)=>i.createElement(Eu.Provider,{value:l},n(s.map(d=>Object.assign(Object.assign({},d),{fieldKey:d.key})),c,{errors:u.errors,warnings:u.warnings})))};function _M(){const{form:e}=i.useContext(xr);return e}const Lr=uM;Lr.Item=gb;Lr.List=TM;Lr.ErrorList=fb;Lr.useForm=Bh;Lr.useFormInstance=_M;Lr.useWatch=$p;Lr.Provider=Ep;Lr.create=()=>{};var zM={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"},jM=function(t,n){return i.createElement(Pt,me({},t,{ref:n,icon:zM}))},BM=i.forwardRef(jM);function Wm(e,t,n,r){var o=ua.unstable_batchedUpdates?function(l){ua.unstable_batchedUpdates(n,l)}:n;return e!=null&&e.addEventListener&&e.addEventListener(t,o,r),{remove:function(){e!=null&&e.removeEventListener&&e.removeEventListener(t,o,r)}}}const DM=e=>{const{getPrefixCls:t,direction:n}=i.useContext(it),{prefixCls:r,className:o}=e,a=t("input-group",r),l=t("input"),[s,c,u]=Hh(l),d=k(a,u,{[`${a}-lg`]:e.size==="large",[`${a}-sm`]:e.size==="small",[`${a}-compact`]:e.compact,[`${a}-rtl`]:n==="rtl"},c,o),f=i.useContext(In),m=i.useMemo(()=>Object.assign(Object.assign({},f),{isFormItemInput:!1}),[f]);return s(i.createElement("span",{className:d,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},i.createElement(In.Provider,{value:m},e.children)))},LM=e=>{const{componentCls:t,paddingXS:n}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:n,[`${t}-input-wrapper`]:{position:"relative",[`${t}-mask-icon`]:{position:"absolute",zIndex:"1",top:"50%",right:"50%",transform:"translate(50%, -50%)",pointerEvents:"none"},[`${t}-mask-input`]:{color:"transparent",caretColor:e.colorText},[`${t}-mask-input[type=number]::-webkit-inner-spin-button`]:{"-webkit-appearance":"none",margin:0},[`${t}-mask-input[type=number]`]:{"-moz-appearance":"textfield"}},"&-rtl":{direction:"rtl"},[`${t}-input`]:{textAlign:"center",paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}},AM=At(["Input","OTP"],e=>{const t=wt(e,Va(e));return LM(t)},Ka);var FM=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const HM=i.forwardRef((e,t)=>{const{className:n,value:r,onChange:o,onActiveChange:a,index:l,mask:s}=e,c=FM(e,["className","value","onChange","onActiveChange","index","mask"]),{getPrefixCls:u}=i.useContext(it),d=u("otp"),f=typeof s=="string"?s:r,m=i.useRef(null);i.useImperativeHandle(t,()=>m.current);const v=g=>{o(l,g.target.value)},p=()=>{Et(()=>{var g;const b=(g=m.current)===null||g===void 0?void 0:g.input;document.activeElement===b&&b&&b.select()})},h=g=>{const{key:b,ctrlKey:C,metaKey:y}=g;b==="ArrowLeft"?a(l-1):b==="ArrowRight"?a(l+1):b==="z"&&(C||y)?g.preventDefault():b==="Backspace"&&!r&&a(l-1),p()};return i.createElement("span",{className:`${d}-input-wrapper`,role:"presentation"},s&&r!==""&&r!==void 0&&i.createElement("span",{className:`${d}-mask-icon`,"aria-hidden":"true"},f),i.createElement(Ga,Object.assign({"aria-label":`OTP Input ${l+1}`,type:s===!0?"password":"text"},c,{ref:m,value:r,onInput:v,onFocus:p,onKeyDown:h,onMouseDown:p,onMouseUp:p,className:k(n,{[`${d}-mask-input`]:s})})))});var kM=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function di(e){return(e||"").split("")}const VM=e=>{const{index:t,prefixCls:n,separator:r}=e,o=typeof r=="function"?r(t):r;return o?i.createElement("span",{className:`${n}-separator`},o):null},KM=i.forwardRef((e,t)=>{const{prefixCls:n,length:r=6,size:o,defaultValue:a,value:l,onChange:s,formatter:c,separator:u,variant:d,disabled:f,status:m,autoFocus:v,mask:p,type:h,onInput:g,inputMode:b}=e,C=kM(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:y,direction:$}=i.useContext(it),S=y("otp",n),E=zn(C,{aria:!0,data:!0,attr:!0}),[O,w,x]=AM(S),I=Dn(V=>o??V),P=i.useContext(In),N=$l(P.status,m),M=i.useMemo(()=>Object.assign(Object.assign({},P),{status:N,hasFeedback:!1,feedbackIcon:null}),[P,N]),R=i.useRef(null),_=i.useRef({});i.useImperativeHandle(t,()=>({focus:()=>{var V;(V=_.current[0])===null||V===void 0||V.focus()},blur:()=>{var V;for(let G=0;G<r;G+=1)(V=_.current[G])===null||V===void 0||V.blur()},nativeElement:R.current}));const T=V=>c?c(V):V,[z,B]=i.useState(()=>di(T(a||"")));i.useEffect(()=>{l!==void 0&&B(di(l))},[l]);const L=Lt(V=>{B(V),g&&g(V),s&&V.length===r&&V.every(G=>G)&&V.some((G,U)=>z[U]!==G)&&s(V.join(""))}),F=Lt((V,G)=>{let U=ge(z);for(let J=0;J<V;J+=1)U[J]||(U[J]="");G.length<=1?U[V]=G:U=U.slice(0,V).concat(di(G)),U=U.slice(0,r);for(let J=U.length-1;J>=0&&!U[J];J-=1)U.pop();const ne=T(U.map(J=>J||" ").join(""));return U=di(ne).map((J,Q)=>J===" "&&!U[Q]?U[Q]:J),U}),K=(V,G)=>{var U;const ne=F(V,G),J=Math.min(V+G.length,r-1);J!==V&&ne[V]!==void 0&&((U=_.current[J])===null||U===void 0||U.focus()),L(ne)},W=V=>{var G;(G=_.current[V])===null||G===void 0||G.focus()},A={variant:d,disabled:f,status:N,mask:p,type:h,inputMode:b};return O(i.createElement("div",Object.assign({},E,{ref:R,className:k(S,{[`${S}-sm`]:I==="small",[`${S}-lg`]:I==="large",[`${S}-rtl`]:$==="rtl"},x,w),role:"group"}),i.createElement(In.Provider,{value:M},Array.from({length:r}).map((V,G)=>{const U=`otp-${G}`,ne=z[G]||"";return i.createElement(i.Fragment,{key:U},i.createElement(HM,Object.assign({ref:J=>{_.current[G]=J},index:G,size:I,htmlSize:1,className:`${S}-input`,onChange:K,value:ne,onActiveChange:W,autoFocus:G===0&&v},A)),G<r-1&&i.createElement(VM,{separator:u,index:G,prefixCls:S}))}))))});var WM={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"},GM=function(t,n){return i.createElement(Pt,me({},t,{ref:n,icon:WM}))},qM=i.forwardRef(GM),UM=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const XM=e=>e?i.createElement(BM,null):i.createElement(qM,null),YM={click:"onClick",hover:"onMouseOver"},QM=i.forwardRef((e,t)=>{const{disabled:n,action:r="click",visibilityToggle:o=!0,iconRender:a=XM,suffix:l}=e,s=i.useContext(Jn),c=n??s,u=typeof o=="object"&&o.visible!==void 0,[d,f]=i.useState(()=>u?o.visible:!1),m=i.useRef(null);i.useEffect(()=>{u&&f(o.visible)},[u,o]);const v=sb(m),p=()=>{var P;if(c)return;d&&v();const N=!d;f(N),typeof o=="object"&&((P=o.onVisibleChange)===null||P===void 0||P.call(o,N))},h=P=>{const N=YM[r]||"",M=a(d),R={[N]:p,className:`${P}-icon`,key:"passwordIcon",onMouseDown:_=>{_.preventDefault()},onMouseUp:_=>{_.preventDefault()}};return i.cloneElement(i.isValidElement(M)?M:i.createElement("span",null,M),R)},{className:g,prefixCls:b,inputPrefixCls:C,size:y}=e,$=UM(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:S}=i.useContext(it),E=S("input",C),O=S("input-password",b),w=o&&h(O),x=k(O,g,{[`${O}-${y}`]:!!y}),I=Object.assign(Object.assign({},Xt($,["suffix","iconRender","visibilityToggle"])),{type:d?"text":"password",className:x,prefixCls:E,suffix:i.createElement(i.Fragment,null,w,l)});return y&&(I.size=y),i.createElement(Ga,Object.assign({ref:Vn(t,m)},I))});var ZM=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const JM=i.forwardRef((e,t)=>{const{prefixCls:n,inputPrefixCls:r,className:o,size:a,suffix:l,enterButton:s=!1,addonAfter:c,loading:u,disabled:d,onSearch:f,onChange:m,onCompositionStart:v,onCompositionEnd:p,variant:h,onPressEnter:g}=e,b=ZM(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd","variant","onPressEnter"]),{getPrefixCls:C,direction:y}=i.useContext(it),$=i.useRef(!1),S=C("input-search",n),E=C("input",r),{compactSize:O}=oo(S,y),w=Dn(A=>{var V;return(V=a??O)!==null&&V!==void 0?V:A}),x=i.useRef(null),I=A=>{A!=null&&A.target&&A.type==="click"&&f&&f(A.target.value,A,{source:"clear"}),m==null||m(A)},P=A=>{var V;document.activeElement===((V=x.current)===null||V===void 0?void 0:V.input)&&A.preventDefault()},N=A=>{var V,G;f&&f((G=(V=x.current)===null||V===void 0?void 0:V.input)===null||G===void 0?void 0:G.value,A,{source:"input"})},M=A=>{$.current||u||(g==null||g(A),N(A))},R=typeof s=="boolean"?i.createElement(Mu,null):null,_=`${S}-button`;let T;const z=s||{},B=z.type&&z.type.__ANT_BUTTON===!0;B||z.type==="button"?T=kn(z,Object.assign({onMouseDown:P,onClick:A=>{var V,G;(G=(V=z==null?void 0:z.props)===null||V===void 0?void 0:V.onClick)===null||G===void 0||G.call(V,A),N(A)},key:"enterButton"},B?{className:_,size:w}:{})):T=i.createElement(Jr,{className:_,color:s?"primary":"default",size:w,disabled:d,key:"enterButton",onMouseDown:P,onClick:N,loading:u,icon:R,variant:h==="borderless"||h==="filled"||h==="underlined"?"text":s?"solid":void 0},s),c&&(T=[T,kn(c,{key:"addonAfter"})]);const L=k(S,{[`${S}-rtl`]:y==="rtl",[`${S}-${w}`]:!!w,[`${S}-with-button`]:!!s},o),F=A=>{$.current=!0,v==null||v(A)},K=A=>{$.current=!1,p==null||p(A)},W=Object.assign(Object.assign({},b),{className:L,prefixCls:E,type:"search",size:w,variant:h,onPressEnter:M,onCompositionStart:F,onCompositionEnd:K,addonAfter:T,suffix:l,onChange:I,disabled:d,_skipAddonWarning:!0});return i.createElement(Ga,Object.assign({ref:Vn(x,t)},W))});var eT=`
|
|
269
|
+
min-height:0 !important;
|
|
270
|
+
max-height:none !important;
|
|
271
|
+
height:0 !important;
|
|
272
|
+
visibility:hidden !important;
|
|
273
|
+
overflow:hidden !important;
|
|
274
|
+
position:absolute !important;
|
|
275
|
+
z-index:-1000 !important;
|
|
276
|
+
top:0 !important;
|
|
277
|
+
right:0 !important;
|
|
278
|
+
pointer-events: none !important;
|
|
279
|
+
`,tT=["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"],ws={},Fn;function nT(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&ws[n])return ws[n];var r=window.getComputedStyle(e),o=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")),l=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),s=tT.map(function(u){return"".concat(u,":").concat(r.getPropertyValue(u))}).join(";"),c={sizingStyle:s,paddingSize:a,borderSize:l,boxSizing:o};return t&&n&&(ws[n]=c),c}function rT(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;Fn||(Fn=document.createElement("textarea"),Fn.setAttribute("tab-index","-1"),Fn.setAttribute("aria-hidden","true"),Fn.setAttribute("name","hiddenTextarea"),document.body.appendChild(Fn)),e.getAttribute("wrap")?Fn.setAttribute("wrap",e.getAttribute("wrap")):Fn.removeAttribute("wrap");var o=nT(e,t),a=o.paddingSize,l=o.borderSize,s=o.boxSizing,c=o.sizingStyle;Fn.setAttribute("style","".concat(c,";").concat(eT)),Fn.value=e.value||e.placeholder||"";var u=void 0,d=void 0,f,m=Fn.scrollHeight;if(s==="border-box"?m+=l:s==="content-box"&&(m-=a),n!==null||r!==null){Fn.value=" ";var v=Fn.scrollHeight-a;n!==null&&(u=v*n,s==="border-box"&&(u=u+a+l),m=Math.max(u,m)),r!==null&&(d=v*r,s==="border-box"&&(d=d+a+l),f=m>d?"":"hidden",m=Math.min(d,m))}var p={height:m,overflowY:f,resize:"none"};return u&&(p.minHeight=u),d&&(p.maxHeight=d),p}var oT=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Es=0,Os=1,Is=2,aT=i.forwardRef(function(e,t){var n=e,r=n.prefixCls,o=n.defaultValue,a=n.value,l=n.autoSize,s=n.onResize,c=n.className,u=n.style,d=n.disabled,f=n.onChange;n.onInternalAutoSize;var m=at(n,oT),v=ln(o,{value:a,postState:function(A){return A??""}}),p=ee(v,2),h=p[0],g=p[1],b=function(A){g(A.target.value),f==null||f(A)},C=i.useRef();i.useImperativeHandle(t,function(){return{textArea:C.current}});var y=i.useMemo(function(){return l&&Ue(l)==="object"?[l.minRows,l.maxRows]:[]},[l]),$=ee(y,2),S=$[0],E=$[1],O=!!l,w=i.useState(Is),x=ee(w,2),I=x[0],P=x[1],N=i.useState(),M=ee(N,2),R=M[0],_=M[1],T=function(){P(Es)};Rt(function(){O&&T()},[a,S,E,O]),Rt(function(){if(I===Es)P(Os);else if(I===Os){var W=rT(C.current,!1,S,E);P(Is),_(W)}},[I]);var z=i.useRef(),B=function(){Et.cancel(z.current)},L=function(A){I===Is&&(s==null||s(A),l&&(B(),z.current=Et(function(){T()})))};i.useEffect(function(){return B},[]);var F=O?R:null,K=D(D({},u),F);return(I===Es||I===Os)&&(K.overflowY="hidden",K.overflowX="hidden"),i.createElement(Bn,{onResize:L,disabled:!(l||s)},i.createElement("textarea",me({},m,{ref:C,style:K,className:k(r,c,j({},"".concat(r,"-disabled"),d)),disabled:d,value:h,onChange:b})))}),iT=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],lT=te.forwardRef(function(e,t){var n,r=e.defaultValue,o=e.value,a=e.onFocus,l=e.onBlur,s=e.onChange,c=e.allowClear,u=e.maxLength,d=e.onCompositionStart,f=e.onCompositionEnd,m=e.suffix,v=e.prefixCls,p=v===void 0?"rc-textarea":v,h=e.showCount,g=e.count,b=e.className,C=e.style,y=e.disabled,$=e.hidden,S=e.classNames,E=e.styles,O=e.onResize,w=e.onClear,x=e.onPressEnter,I=e.readOnly,P=e.autoSize,N=e.onKeyDown,M=at(e,iT),R=ln(r,{value:o,defaultValue:r}),_=ee(R,2),T=_[0],z=_[1],B=T==null?"":String(T),L=te.useState(!1),F=ee(L,2),K=F[0],W=F[1],A=te.useRef(!1),V=te.useState(null),G=ee(V,2),U=G[0],ne=G[1],J=i.useRef(null),Q=i.useRef(null),le=function(){var Ce;return(Ce=Q.current)===null||Ce===void 0?void 0:Ce.textArea},re=function(){le().focus()};i.useImperativeHandle(t,function(){var xe;return{resizableTextArea:Q.current,focus:re,blur:function(){le().blur()},nativeElement:((xe=J.current)===null||xe===void 0?void 0:xe.nativeElement)||le()}}),i.useEffect(function(){W(function(xe){return!y&&xe})},[y]);var X=te.useState(null),oe=ee(X,2),Z=oe[0],q=oe[1];te.useEffect(function(){if(Z){var xe;(xe=le()).setSelectionRange.apply(xe,ge(Z))}},[Z]);var Y=ib(g,h),ie=(n=Y.max)!==null&&n!==void 0?n:u,ue=Number(ie)>0,he=Y.strategy(B),be=!!ie&&he>ie,ae=function(Ce,Ee){var Me=Ee;!A.current&&Y.exceedFormatter&&Y.max&&Y.strategy(Ee)>Y.max&&(Me=Y.exceedFormatter(Ee,{max:Y.max}),Ee!==Me&&q([le().selectionStart||0,le().selectionEnd||0])),z(Me),Wi(Ce.currentTarget,Ce,s,Me)},fe=function(Ce){A.current=!0,d==null||d(Ce)},se=function(Ce){A.current=!1,ae(Ce,Ce.currentTarget.value),f==null||f(Ce)},ce=function(Ce){ae(Ce,Ce.target.value)},Se=function(Ce){Ce.key==="Enter"&&x&&x(Ce),N==null||N(Ce)},we=function(Ce){W(!0),a==null||a(Ce)},je=function(Ce){W(!1),l==null||l(Ce)},Ne=function(Ce){z(""),re(),Wi(le(),Ce,s)},Oe=m,Te;Y.show&&(Y.showFormatter?Te=Y.showFormatter({value:B,count:he,maxLength:ie}):Te="".concat(he).concat(ue?" / ".concat(ie):""),Oe=te.createElement(te.Fragment,null,Oe,te.createElement("span",{className:k("".concat(p,"-data-count"),S==null?void 0:S.count),style:E==null?void 0:E.count},Te)));var ve=function(Ce){var Ee;O==null||O(Ce),(Ee=le())!==null&&Ee!==void 0&&Ee.style.height&&ne(!0)},de=!P&&!h&&!c;return te.createElement(ab,{ref:J,value:B,allowClear:c,handleReset:Ne,suffix:Oe,prefixCls:p,classNames:D(D({},S),{},{affixWrapper:k(S==null?void 0:S.affixWrapper,j(j({},"".concat(p,"-show-count"),h),"".concat(p,"-textarea-allow-clear"),c))}),disabled:y,focused:K,className:k(b,be&&"".concat(p,"-out-of-range")),style:D(D({},C),U&&!de?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Te=="string"?Te:void 0}},hidden:$,readOnly:I,onClear:w},te.createElement(aT,me({},M,{autoSize:P,maxLength:u,onKeyDown:Se,onChange:ce,onFocus:we,onBlur:je,onCompositionStart:fe,onCompositionEnd:se,className:k(S==null?void 0:S.textarea),style:D(D({},E==null?void 0:E.textarea),{},{resize:C==null?void 0:C.resize}),disabled:y,prefixCls:p,onResize:ve,ref:Q,readOnly:I})))});const sT=e=>{const{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[`textarea${t}`]:{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}`,resize:"vertical",[`&${t}-mouse-active`]:{transition:`all ${e.motionDurationSlow}, height 0s, width 0s`}},[`${t}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[r]:{position:"relative","&-show-count":{[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
|
|
280
|
+
&-allow-clear > ${t},
|
|
281
|
+
&-affix-wrapper${r}-has-feedback ${t}
|
|
282
|
+
`]:{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}}}}}},cT=At(["Input","TextArea"],e=>{const t=wt(e,Va(e));return sT(t)},Ka,{resetFont:!1});var uT=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const dT=i.forwardRef((e,t)=>{var n;const{prefixCls:r,bordered:o=!0,size:a,disabled:l,status:s,allowClear:c,classNames:u,rootClassName:d,className:f,style:m,styles:v,variant:p,showCount:h,onMouseDown:g,onResize:b}=e,C=uT(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:y,direction:$,allowClear:S,autoComplete:E,className:O,style:w,classNames:x,styles:I}=Kn("textArea"),P=i.useContext(Jn),N=l??P,{status:M,hasFeedback:R,feedbackIcon:_}=i.useContext(In),T=$l(M,s),z=i.useRef(null);i.useImperativeHandle(t,()=>{var Y;return{resizableTextArea:(Y=z.current)===null||Y===void 0?void 0:Y.resizableTextArea,focus:ie=>{var ue,he;ob((he=(ue=z.current)===null||ue===void 0?void 0:ue.resizableTextArea)===null||he===void 0?void 0:he.textArea,ie)},blur:()=>{var ie;return(ie=z.current)===null||ie===void 0?void 0:ie.blur()}}});const B=y("input",r),L=Pn(B),[F,K,W]=Fh(B,d),[A]=cT(B,L),{compactSize:V,compactItemClassnames:G}=oo(B,$),U=Dn(Y=>{var ie;return(ie=a??V)!==null&&ie!==void 0?ie:Y}),[ne,J]=wl("textArea",p,o),Q=lb(c??S),[le,re]=i.useState(!1),[X,oe]=i.useState(!1),Z=Y=>{re(!0),g==null||g(Y);const ie=()=>{re(!1),document.removeEventListener("mouseup",ie)};document.addEventListener("mouseup",ie)},q=Y=>{var ie,ue;if(b==null||b(Y),le&&typeof getComputedStyle=="function"){const he=(ue=(ie=z.current)===null||ie===void 0?void 0:ie.nativeElement)===null||ue===void 0?void 0:ue.querySelector("textarea");he&&getComputedStyle(he).resize==="both"&&oe(!0)}};return F(A(i.createElement(lT,Object.assign({autoComplete:E},C,{style:Object.assign(Object.assign({},w),m),styles:Object.assign(Object.assign({},I),v),disabled:N,allowClear:Q,className:k(W,L,f,d,G,O,X&&`${B}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},u),x),{textarea:k({[`${B}-sm`]:U==="small",[`${B}-lg`]:U==="large"},K,u==null?void 0:u.textarea,x.textarea,le&&`${B}-mouse-active`),variant:k({[`${B}-${ne}`]:J},Fi(B,T)),affixWrapper:k(`${B}-textarea-affix-wrapper`,{[`${B}-affix-wrapper-rtl`]:$==="rtl",[`${B}-affix-wrapper-sm`]:U==="small",[`${B}-affix-wrapper-lg`]:U==="large",[`${B}-textarea-show-count`]:h||((n=e.count)===null||n===void 0?void 0:n.show)},K)}),prefixCls:B,suffix:R&&i.createElement("span",{className:`${B}-textarea-suffix`},_),showCount:h,ref:z,onResize:q,onMouseDown:Z}))))}),qa=Ga;qa.Group=DM;qa.Search=JM;qa.TextArea=dT;qa.Password=QM;qa.OTP=KM;function fT(e,t,n){return typeof n=="boolean"?n:e.length?!0:_n(t).some(o=>o.type===wh)}var pb=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function Tl({suffixCls:e,tagName:t,displayName:n}){return r=>i.forwardRef((a,l)=>i.createElement(r,Object.assign({ref:l,suffixCls:e,tagName:t},a)))}const Yu=i.forwardRef((e,t)=>{const{prefixCls:n,suffixCls:r,className:o,tagName:a}=e,l=pb(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:s}=i.useContext(it),c=s("layout",n),[u,d,f]=$h(c),m=r?`${c}-${r}`:c;return u(i.createElement(a,Object.assign({className:k(n||m,o,d,f),ref:t},l)))}),mT=i.forwardRef((e,t)=>{const{direction:n}=i.useContext(it),[r,o]=i.useState([]),{prefixCls:a,className:l,rootClassName:s,children:c,hasSider:u,tagName:d,style:f}=e,m=pb(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),v=Xt(m,["suffixCls"]),{getPrefixCls:p,className:h,style:g}=Kn("layout"),b=p("layout",a),C=fT(r,c,u),[y,$,S]=$h(b),E=k(b,{[`${b}-has-sider`]:C,[`${b}-rtl`]:n==="rtl"},h,l,s,$,S),O=i.useMemo(()=>({siderHook:{addSider:w=>{o(x=>[].concat(ge(x),[w]))},removeSider:w=>{o(x=>x.filter(I=>I!==w))}}}),[]);return y(i.createElement(Ch.Provider,{value:O},i.createElement(d,Object.assign({ref:t,className:E,style:Object.assign(Object.assign({},g),f)},v),c)))}),vT=Tl({tagName:"div",displayName:"Layout"})(mT),gT=Tl({suffixCls:"header",tagName:"header",displayName:"Header"})(Yu),pT=Tl({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(Yu),hT=Tl({suffixCls:"content",tagName:"main",displayName:"Content"})(Yu),Ua=vT;Ua.Header=gT;Ua.Footer=pT;Ua.Content=hT;Ua.Sider=wh;Ua._InternalSiderContext=Rl;var bT={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"},yT=function(t,n){return i.createElement(Pt,me({},t,{ref:n,icon:bT}))},Gm=i.forwardRef(yT),CT={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"},ST=function(t,n){return i.createElement(Pt,me({},t,{ref:n,icon:CT}))},qm=i.forwardRef(ST),xT={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:"页码"},$T=[10,20,50,100],wT=function(t){var n=t.pageSizeOptions,r=n===void 0?$T:n,o=t.locale,a=t.changeSize,l=t.pageSize,s=t.goButton,c=t.quickGo,u=t.rootPrefixCls,d=t.disabled,f=t.buildOptionText,m=t.showSizeChanger,v=t.sizeChangerRender,p=te.useState(""),h=ee(p,2),g=h[0],b=h[1],C=function(){return!g||Number.isNaN(g)?void 0:Number(g)},y=typeof f=="function"?f:function(N){return"".concat(N," ").concat(o.items_per_page)},$=function(M){b(M.target.value)},S=function(M){s||g===""||(b(""),!(M.relatedTarget&&(M.relatedTarget.className.indexOf("".concat(u,"-item-link"))>=0||M.relatedTarget.className.indexOf("".concat(u,"-item"))>=0))&&(c==null||c(C())))},E=function(M){g!==""&&(M.keyCode===Le.ENTER||M.type==="click")&&(b(""),c==null||c(C()))},O=function(){return r.some(function(M){return M.toString()===l.toString()})?r:r.concat([l]).sort(function(M,R){var _=Number.isNaN(Number(M))?0:Number(M),T=Number.isNaN(Number(R))?0:Number(R);return _-T})},w="".concat(u,"-options");if(!m&&!c)return null;var x=null,I=null,P=null;return m&&v&&(x=v({disabled:d,size:l,onSizeChange:function(M){a==null||a(Number(M))},"aria-label":o.page_size,className:"".concat(w,"-size-changer"),options:O().map(function(N){return{label:y(N),value:N}})})),c&&(s&&(P=typeof s=="boolean"?te.createElement("button",{type:"button",onClick:E,onKeyUp:E,disabled:d,className:"".concat(w,"-quick-jumper-button")},o.jump_to_confirm):te.createElement("span",{onClick:E,onKeyUp:E},s)),I=te.createElement("div",{className:"".concat(w,"-quick-jumper")},o.jump_to,te.createElement("input",{disabled:d,type:"text",value:g,onChange:$,onKeyUp:E,onBlur:S,"aria-label":o.page}),o.page,P)),te.createElement("li",{className:w},x,I)},Jo=function(t){var n=t.rootPrefixCls,r=t.page,o=t.active,a=t.className,l=t.showTitle,s=t.onClick,c=t.onKeyPress,u=t.itemRender,d="".concat(n,"-item"),f=k(d,"".concat(d,"-").concat(r),j(j({},"".concat(d,"-active"),o),"".concat(d,"-disabled"),!r),a),m=function(){s(r)},v=function(g){c(g,s,r)},p=u(r,"page",te.createElement("a",{rel:"nofollow"},r));return p?te.createElement("li",{title:l?String(r):null,className:f,onClick:m,onKeyDown:v,tabIndex:0},p):null},ET=function(t,n,r){return r};function Um(){}function Xm(e){var t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function kr(e,t,n){var r=typeof e>"u"?t:e;return Math.floor((n-1)/r)+1}var OT=function(t){var n=t.prefixCls,r=n===void 0?"rc-pagination":n,o=t.selectPrefixCls,a=o===void 0?"rc-select":o,l=t.className,s=t.current,c=t.defaultCurrent,u=c===void 0?1:c,d=t.total,f=d===void 0?0:d,m=t.pageSize,v=t.defaultPageSize,p=v===void 0?10:v,h=t.onChange,g=h===void 0?Um:h,b=t.hideOnSinglePage,C=t.align,y=t.showPrevNextJumpers,$=y===void 0?!0:y,S=t.showQuickJumper,E=t.showLessItems,O=t.showTitle,w=O===void 0?!0:O,x=t.onShowSizeChange,I=x===void 0?Um:x,P=t.locale,N=P===void 0?xT:P,M=t.style,R=t.totalBoundaryShowSizeChanger,_=R===void 0?50:R,T=t.disabled,z=t.simple,B=t.showTotal,L=t.showSizeChanger,F=L===void 0?f>_:L,K=t.sizeChangerRender,W=t.pageSizeOptions,A=t.itemRender,V=A===void 0?ET:A,G=t.jumpPrevIcon,U=t.jumpNextIcon,ne=t.prevIcon,J=t.nextIcon,Q=te.useRef(null),le=ln(10,{value:m,defaultValue:p}),re=ee(le,2),X=re[0],oe=re[1],Z=ln(1,{value:s,defaultValue:u,postState:function(Je){return Math.max(1,Math.min(Je,kr(void 0,X,f)))}}),q=ee(Z,2),Y=q[0],ie=q[1],ue=te.useState(Y),he=ee(ue,2),be=he[0],ae=he[1];i.useEffect(function(){ae(Y)},[Y]);var fe=Math.max(1,Y-(E?3:5)),se=Math.min(kr(void 0,X,f),Y+(E?3:5));function ce(ze,Je){var ut=ze||te.createElement("button",{type:"button","aria-label":Je,className:"".concat(r,"-item-link")});return typeof ze=="function"&&(ut=te.createElement(ze,D({},t))),ut}function Se(ze){var Je=ze.target.value,ut=kr(void 0,X,f),Kt;return Je===""?Kt=Je:Number.isNaN(Number(Je))?Kt=be:Je>=ut?Kt=ut:Kt=Number(Je),Kt}function we(ze){return Xm(ze)&&ze!==Y&&Xm(f)&&f>0}var je=f>X?S:!1;function Ne(ze){(ze.keyCode===Le.UP||ze.keyCode===Le.DOWN)&&ze.preventDefault()}function Oe(ze){var Je=Se(ze);switch(Je!==be&&ae(Je),ze.keyCode){case Le.ENTER:de(Je);break;case Le.UP:de(Je-1);break;case Le.DOWN:de(Je+1);break}}function Te(ze){de(Se(ze))}function ve(ze){var Je=kr(ze,X,f),ut=Y>Je&&Je!==0?Je:Y;oe(ze),ae(ut),I==null||I(Y,ze),ie(ut),g==null||g(ut,ze)}function de(ze){if(we(ze)&&!T){var Je=kr(void 0,X,f),ut=ze;return ze>Je?ut=Je:ze<1&&(ut=1),ut!==be&&ae(ut),ie(ut),g==null||g(ut,X),ut}return Y}var xe=Y>1,Ce=Y<kr(void 0,X,f);function Ee(){xe&&de(Y-1)}function Me(){Ce&&de(Y+1)}function Qe(){de(fe)}function Ve(){de(se)}function Fe(ze,Je){if(ze.key==="Enter"||ze.charCode===Le.ENTER||ze.keyCode===Le.ENTER){for(var ut=arguments.length,Kt=new Array(ut>2?ut-2:0),Qt=2;Qt<ut;Qt++)Kt[Qt-2]=arguments[Qt];Je.apply(void 0,Kt)}}function ft(ze){Fe(ze,Ee)}function mt(ze){Fe(ze,Me)}function ot(ze){Fe(ze,Qe)}function Bt(ze){Fe(ze,Ve)}function bt(ze){var Je=V(ze,"prev",ce(ne,"prev page"));return te.isValidElement(Je)?te.cloneElement(Je,{disabled:!xe}):Je}function ct(ze){var Je=V(ze,"next",ce(J,"next page"));return te.isValidElement(Je)?te.cloneElement(Je,{disabled:!Ce}):Je}function et(ze){(ze.type==="click"||ze.keyCode===Le.ENTER)&&de(be)}var gt=null,dt=zn(t,{aria:!0,data:!0}),_e=B&&te.createElement("li",{className:"".concat(r,"-total-text")},B(f,[f===0?0:(Y-1)*X+1,Y*X>f?f:Y*X])),Ge=null,He=kr(void 0,X,f);if(b&&f<=X)return null;var $e=[],ye={rootPrefixCls:r,onClick:de,onKeyPress:Fe,showTitle:w,itemRender:V,page:-1},pe=Y-1>0?Y-1:0,Ie=Y+1<He?Y+1:He,Ke=S&&S.goButton,We=Ue(z)==="object"?z.readOnly:!z,vt=Ke,Be=null;z&&(Ke&&(typeof Ke=="boolean"?vt=te.createElement("button",{type:"button",onClick:et,onKeyUp:et},N.jump_to_confirm):vt=te.createElement("span",{onClick:et,onKeyUp:et},Ke),vt=te.createElement("li",{title:w?"".concat(N.jump_to).concat(Y,"/").concat(He):null,className:"".concat(r,"-simple-pager")},vt)),Be=te.createElement("li",{title:w?"".concat(Y,"/").concat(He):null,className:"".concat(r,"-simple-pager")},We?be:te.createElement("input",{type:"text","aria-label":N.jump_to,value:be,disabled:T,onKeyDown:Ne,onKeyUp:Oe,onChange:Oe,onBlur:Te,size:3}),te.createElement("span",{className:"".concat(r,"-slash")},"/"),He));var Pe=E?1:2;if(He<=3+Pe*2){He||$e.push(te.createElement(Jo,me({},ye,{key:"noPager",page:1,className:"".concat(r,"-item-disabled")})));for(var Ze=1;Ze<=He;Ze+=1)$e.push(te.createElement(Jo,me({},ye,{key:Ze,page:Ze,active:Y===Ze})))}else{var yt=E?N.prev_3:N.prev_5,St=E?N.next_3:N.next_5,$t=V(fe,"jump-prev",ce(G,"prev page")),_t=V(se,"jump-next",ce(U,"next page"));$&&(gt=$t?te.createElement("li",{title:w?yt:null,key:"prev",onClick:Qe,tabIndex:0,onKeyDown:ot,className:k("".concat(r,"-jump-prev"),j({},"".concat(r,"-jump-prev-custom-icon"),!!G))},$t):null,Ge=_t?te.createElement("li",{title:w?St:null,key:"next",onClick:Ve,tabIndex:0,onKeyDown:Bt,className:k("".concat(r,"-jump-next"),j({},"".concat(r,"-jump-next-custom-icon"),!!U))},_t):null);var ht=Math.max(1,Y-Pe),Ot=Math.min(Y+Pe,He);Y-1<=Pe&&(Ot=1+Pe*2),He-Y<=Pe&&(ht=He-Pe*2);for(var Re=ht;Re<=Ot;Re+=1)$e.push(te.createElement(Jo,me({},ye,{key:Re,page:Re,active:Y===Re})));if(Y-1>=Pe*2&&Y!==3&&($e[0]=te.cloneElement($e[0],{className:k("".concat(r,"-item-after-jump-prev"),$e[0].props.className)}),$e.unshift(gt)),He-Y>=Pe*2&&Y!==He-2){var De=$e[$e.length-1];$e[$e.length-1]=te.cloneElement(De,{className:k("".concat(r,"-item-before-jump-next"),De.props.className)}),$e.push(Ge)}ht!==1&&$e.unshift(te.createElement(Jo,me({},ye,{key:1,page:1}))),Ot!==He&&$e.push(te.createElement(Jo,me({},ye,{key:He,page:He})))}var rt=bt(pe);if(rt){var tt=!xe||!He;rt=te.createElement("li",{title:w?N.prev_page:null,onClick:Ee,tabIndex:tt?null:0,onKeyDown:ft,className:k("".concat(r,"-prev"),j({},"".concat(r,"-disabled"),tt)),"aria-disabled":tt},rt)}var Xe=ct(Ie);if(Xe){var ke,lt;z?(ke=!Ce,lt=xe?0:null):(ke=!Ce||!He,lt=ke?null:0),Xe=te.createElement("li",{title:w?N.next_page:null,onClick:Me,tabIndex:lt,onKeyDown:mt,className:k("".concat(r,"-next"),j({},"".concat(r,"-disabled"),ke)),"aria-disabled":ke},Xe)}var xt=k(r,l,j(j(j(j(j({},"".concat(r,"-start"),C==="start"),"".concat(r,"-center"),C==="center"),"".concat(r,"-end"),C==="end"),"".concat(r,"-simple"),z),"".concat(r,"-disabled"),T));return te.createElement("ul",me({className:xt,style:M,ref:Q},dt),_e,rt,z?Be:$e,Xe,te.createElement(wT,{locale:N,rootPrefixCls:r,disabled:T,selectPrefixCls:a,changeSize:ve,pageSize:X,pageSizeOptions:W,quickGo:je?de:null,goButton:vt,showSizeChanger:F,sizeChangerRender:K}))};const IT=e=>{const{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-item`]:{cursor:"not-allowed",backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}}}},RT=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:H(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:H(e.calc(e.itemSizeSM).sub(2).equal())},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:H(e.itemSizeSM)},[`&${t}-mini:not(${t}-disabled)`]:{[`${t}-prev, ${t}-next`]:{[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}}},[`
|
|
283
|
+
&${t}-mini ${t}-prev ${t}-item-link,
|
|
284
|
+
&${t}-mini ${t}-next ${t}-item-link
|
|
285
|
+
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:H(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:H(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:H(e.itemSizeSM),input:Object.assign(Object.assign({},ku(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},PT=e=>{const{componentCls:t}=e;return{[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{height:e.itemSize,lineHeight:H(e.itemSize),verticalAlign:"top",[`${t}-item-link`]:{height:e.itemSize,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.itemSize,lineHeight:H(e.itemSize)}}},[`${t}-simple-pager`]:{display:"inline-flex",alignItems:"center",height:e.itemSize,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",width:e.quickJumperInputWidth,padding:`0 ${H(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${H(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:`${H(e.inputOutlineOffset)} 0 ${H(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}},[`&${t}-disabled`]:{[`${t}-prev, ${t}-next`]:{[`${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}},[`&${t}-mini`]:{[`${t}-prev, ${t}-next`]:{height:e.itemSizeSM,lineHeight:H(e.itemSizeSM),[`${t}-item-link`]:{height:e.itemSizeSM,"&::after":{height:e.itemSizeSM,lineHeight:H(e.itemSizeSM)}}},[`${t}-simple-pager`]:{height:e.itemSizeSM,input:{width:e.paginationMiniQuickJumperInputWidth}}}}}},NT=e=>{const{componentCls:t}=e;return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[`
|
|
286
|
+
${t}-prev,
|
|
287
|
+
${t}-jump-prev,
|
|
288
|
+
${t}-jump-next
|
|
289
|
+
`]:{marginInlineEnd:e.marginXS},[`
|
|
290
|
+
${t}-prev,
|
|
291
|
+
${t}-next,
|
|
292
|
+
${t}-jump-prev,
|
|
293
|
+
${t}-jump-next
|
|
294
|
+
`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:H(e.itemSize),textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${H(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`all ${e.motionDurationMid}`},[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:H(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},Vu(e)),Hu(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":Object.assign({},Nl(e)),width:e.quickJumperInputWidth,height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},MT=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:H(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:e.itemBg,border:`${H(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${H(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}}}}},TT=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},kt(e)),{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"&-start":{justifyContent:"start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"end"},"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.itemSize,marginInlineEnd:e.marginXS,lineHeight:H(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),MT(e)),NT(e)),PT(e)),RT(e)),IT(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"}}},_T=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},Sr(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},dr(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:dr(e)}}}},hb=e=>Object.assign({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemActiveColor:e.colorPrimary,itemActiveColorHover:e.colorPrimaryHover,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0},Ka(e)),bb=e=>wt(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"},Va(e)),zT=At("Pagination",e=>{const t=bb(e);return[TT(t),_T(t)]},hb),jT=e=>{const{componentCls:t}=e;return{[`${t}${t}-bordered${t}-disabled:not(${t}-mini)`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.itemActiveBgDisabled}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[`${t}${t}-bordered:not(${t}-mini)`]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},[`${t}-item-link`]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.itemBg,border:`${H(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}}}}},BT=ja(["Pagination","bordered"],e=>{const t=bb(e);return jT(t)},hb);function Ym(e){return i.useMemo(()=>typeof e=="boolean"?[e,{}]:e&&typeof e=="object"?[!0,e]:[void 0,void 0],[e])}var DT=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const LT=e=>{const{align:t,prefixCls:n,selectPrefixCls:r,className:o,rootClassName:a,style:l,size:s,locale:c,responsive:u,showSizeChanger:d,selectComponentClass:f,pageSizeOptions:m}=e,v=DT(e,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","responsive","showSizeChanger","selectComponentClass","pageSizeOptions"]),{xs:p}=El(u),[,h]=Rn(),{getPrefixCls:g,direction:b,showSizeChanger:C,className:y,style:$}=Kn("pagination"),S=g("pagination",n),[E,O,w]=zT(S),x=Dn(s),I=x==="small"||!!(p&&!x&&u),[P]=jo("Pagination",mg),N=Object.assign(Object.assign({},P),c),[M,R]=Ym(d),[_,T]=Ym(C),z=M??_,B=R??T,L=f||Fo,F=i.useMemo(()=>m?m.map(U=>Number(U)):void 0,[m]),K=U=>{var ne;const{disabled:J,size:Q,onSizeChange:le,"aria-label":re,className:X,options:oe}=U,{className:Z,onChange:q}=B||{},Y=(ne=oe.find(ie=>String(ie.value)===String(Q)))===null||ne===void 0?void 0:ne.value;return i.createElement(L,Object.assign({disabled:J,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:ie=>ie.parentNode,"aria-label":re,options:oe},B,{value:Y,onChange:(ie,ue)=>{le==null||le(ie),q==null||q(ie,ue)},size:I?"small":"middle",className:k(X,Z)}))},W=i.useMemo(()=>{const U=i.createElement("span",{className:`${S}-item-ellipsis`},"•••"),ne=i.createElement("button",{className:`${S}-item-link`,type:"button",tabIndex:-1},b==="rtl"?i.createElement(xa,null):i.createElement(Ia,null)),J=i.createElement("button",{className:`${S}-item-link`,type:"button",tabIndex:-1},b==="rtl"?i.createElement(Ia,null):i.createElement(xa,null)),Q=i.createElement("a",{className:`${S}-item-link`},i.createElement("div",{className:`${S}-item-container`},b==="rtl"?i.createElement(qm,{className:`${S}-item-link-icon`}):i.createElement(Gm,{className:`${S}-item-link-icon`}),U)),le=i.createElement("a",{className:`${S}-item-link`},i.createElement("div",{className:`${S}-item-container`},b==="rtl"?i.createElement(Gm,{className:`${S}-item-link-icon`}):i.createElement(qm,{className:`${S}-item-link-icon`}),U));return{prevIcon:ne,nextIcon:J,jumpPrevIcon:Q,jumpNextIcon:le}},[b,S]),A=g("select",r),V=k({[`${S}-${t}`]:!!t,[`${S}-mini`]:I,[`${S}-rtl`]:b==="rtl",[`${S}-bordered`]:h.wireframe},y,o,a,O,w),G=Object.assign(Object.assign({},$),l);return E(i.createElement(i.Fragment,null,h.wireframe&&i.createElement(BT,{prefixCls:S}),i.createElement(OT,Object.assign({},W,v,{style:G,prefixCls:S,selectPrefixCls:A,className:V,locale:N,pageSizeOptions:F,showSizeChanger:z,sizeChangerRender:K}))))},qi=100,yb=qi/5,Cb=qi/2-yb/2,Rs=Cb*2*Math.PI,Qm=50,Zm=e=>{const{dotClassName:t,style:n,hasCircleCls:r}=e;return i.createElement("circle",{className:k(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:Cb,cx:Qm,cy:Qm,strokeWidth:yb,style:n})},AT=({percent:e,prefixCls:t})=>{const n=`${t}-dot`,r=`${n}-holder`,o=`${r}-hidden`,[a,l]=i.useState(!1);Rt(()=>{e!==0&&l(!0)},[e!==0]);const s=Math.max(Math.min(e,100),0);if(!a)return null;const c={strokeDashoffset:`${Rs/4}`,strokeDasharray:`${Rs*s/100} ${Rs*(100-s)/100}`};return i.createElement("span",{className:k(r,`${n}-progress`,s<=0&&o)},i.createElement("svg",{viewBox:`0 0 ${qi} ${qi}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":s},i.createElement(Zm,{dotClassName:n,hasCircleCls:!0}),i.createElement(Zm,{dotClassName:n,style:c})))};function FT(e){const{prefixCls:t,percent:n=0}=e,r=`${t}-dot`,o=`${r}-holder`,a=`${o}-hidden`;return i.createElement(i.Fragment,null,i.createElement("span",{className:k(o,n>0&&a)},i.createElement("span",{className:k(r,`${t}-dot-spin`)},[1,2,3,4].map(l=>i.createElement("i",{className:`${t}-dot-item`,key:l})))),i.createElement(AT,{prefixCls:t,percent:n}))}function HT(e){var t;const{prefixCls:n,indicator:r,percent:o}=e,a=`${n}-dot`;return r&&i.isValidElement(r)?kn(r,{className:k((t=r.props)===null||t===void 0?void 0:t.className,a),percent:o}):i.createElement(FT,{prefixCls:n,percent:o})}const kT=new Tt("antSpinMove",{to:{opacity:1}}),VT=new Tt("antRotate",{to:{transform:"rotate(405deg)"}}),KT=e=>{const{componentCls:t,calc:n}=e;return{[t]:Object.assign(Object.assign({},kt(e)),{position:"absolute",display:"none",color:e.colorPrimary,fontSize:0,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"relative",display:"inline-block",opacity:1},[`${t}-text`]:{fontSize:e.fontSize,paddingTop:n(n(e.dotSize).sub(e.fontSize)).div(2).add(2).equal()},"&-fullscreen":{position:"fixed",width:"100vw",height:"100vh",backgroundColor:e.colorBgMask,zIndex:e.zIndexPopupBase,inset:0,display:"flex",alignItems:"center",flexDirection:"column",justifyContent:"center",opacity:0,visibility:"hidden",transition:`all ${e.motionDurationMid}`,"&-show":{opacity:1,visibility:"visible"},[t]:{[`${t}-dot-holder`]:{color:e.colorWhite},[`${t}-text`]:{color:e.colorTextLightSolid}}},"&-nested-loading":{position:"relative",[`> div > ${t}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${t}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:n(e.dotSize).mul(-1).div(2).equal()},[`${t}-text`]:{position:"absolute",top:"50%",width:"100%",textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSize).div(2).mul(-1).sub(10).equal()},"&-sm":{[`${t}-dot`]:{margin:n(e.dotSizeSM).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeSM).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeSM).div(2).mul(-1).sub(10).equal()}},"&-lg":{[`${t}-dot`]:{margin:n(e.dotSizeLG).mul(-1).div(2).equal()},[`${t}-text`]:{paddingTop:n(n(e.dotSizeLG).sub(e.fontSize)).div(2).add(2).equal()},[`&${t}-show-text ${t}-dot`]:{marginTop:n(e.dotSizeLG).div(2).mul(-1).sub(10).equal()}}},[`${t}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${t}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${t}-dot-holder`]:{width:"1em",height:"1em",fontSize:e.dotSize,display:"inline-block",transition:`transform ${e.motionDurationSlow} ease, opacity ${e.motionDurationSlow} ease`,transformOrigin:"50% 50%",lineHeight:1,color:e.colorPrimary,"&-hidden":{transform:"scale(0.3)",opacity:0}},[`${t}-dot-progress`]:{position:"absolute",inset:0},[`${t}-dot`]:{position:"relative",display:"inline-block",fontSize:e.dotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),height:n(e.dotSize).sub(n(e.marginXXS).div(2)).div(2).equal(),background:"currentColor",borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:kT,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0,animationDelay:"0s"},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:VT,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"},"&-circle":{strokeLinecap:"round",transition:["stroke-dashoffset","stroke-dasharray","stroke","stroke-width","opacity"].map(r=>`${r} ${e.motionDurationSlow} ease`).join(","),fillOpacity:0,stroke:"currentcolor"},"&-circle-bg":{stroke:e.colorFillSecondary}},[`&-sm ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeSM}},[`&-sm ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal(),height:n(n(e.dotSizeSM).sub(n(e.marginXXS).div(2))).div(2).equal()}},[`&-lg ${t}-dot`]:{"&, &-holder":{fontSize:e.dotSizeLG}},[`&-lg ${t}-dot-holder`]:{i:{width:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal(),height:n(n(e.dotSizeLG).sub(e.marginXXS)).div(2).equal()}},[`&${t}-show-text ${t}-text`]:{display:"block"}})}},WT=e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:n}},GT=At("Spin",e=>{const t=wt(e,{spinDotDefault:e.colorTextDescription});return KT(t)},WT),qT=200,Jm=[[30,.05],[70,.03],[96,.01]];function UT(e,t){const[n,r]=i.useState(0),o=i.useRef(null),a=t==="auto";return i.useEffect(()=>(a&&e&&(r(0),o.current=setInterval(()=>{r(l=>{const s=100-l;for(let c=0;c<Jm.length;c+=1){const[u,d]=Jm[c];if(l<=u)return l+s*d}return l})},qT)),()=>{o.current&&(clearInterval(o.current),o.current=null)}),[a,e]),a?n:t}var XT=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let Sb;function YT(e,t){return!!e&&!!t&&!Number.isNaN(Number(t))}const xb=e=>{var t;const{prefixCls:n,spinning:r=!0,delay:o=0,className:a,rootClassName:l,size:s="default",tip:c,wrapperClassName:u,style:d,children:f,fullscreen:m=!1,indicator:v,percent:p}=e,h=XT(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen","indicator","percent"]),{getPrefixCls:g,direction:b,className:C,style:y,indicator:$}=Kn("spin"),S=g("spin",n),[E,O,w]=GT(S),[x,I]=i.useState(()=>r&&!YT(r,o)),P=UT(x,p);i.useEffect(()=>{if(r){const B=tN(o,()=>{I(!0)});return B(),()=>{var L;(L=B==null?void 0:B.cancel)===null||L===void 0||L.call(B)}}I(!1)},[o,r]);const N=i.useMemo(()=>typeof f<"u"&&!m,[f,m]),M=k(S,C,{[`${S}-sm`]:s==="small",[`${S}-lg`]:s==="large",[`${S}-spinning`]:x,[`${S}-show-text`]:!!c,[`${S}-rtl`]:b==="rtl"},a,!m&&l,O,w),R=k(`${S}-container`,{[`${S}-blur`]:x}),_=(t=v??$)!==null&&t!==void 0?t:Sb,T=Object.assign(Object.assign({},y),d),z=i.createElement("div",Object.assign({},h,{style:T,className:M,"aria-live":"polite","aria-busy":x}),i.createElement(HT,{prefixCls:S,indicator:_,percent:P}),c&&(N||m)?i.createElement("div",{className:`${S}-text`},c):null);return E(N?i.createElement("div",Object.assign({},h,{className:k(`${S}-nested-loading`,u,O,w)}),x&&i.createElement("div",{key:"loading"},z),i.createElement("div",{className:R,key:"container"},f)):m?i.createElement("div",{className:k(`${S}-fullscreen`,{[`${S}-fullscreen-show`]:x},l,O,w)},z):z)};xb.setDefaultIndicator=e=>{Sb=e};let Yn=null,Ur=e=>e(),Pa=[],Na={};function ev(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:o}=Na,a=(e==null?void 0:e())||document.body;return{getContainer:()=>a,duration:t,rtl:n,maxCount:r,top:o}}const QT=te.forwardRef((e,t)=>{const{messageConfig:n,sync:r}=e,{getPrefixCls:o}=i.useContext(it),a=Na.prefixCls||o("message"),l=i.useContext(yE),[s,c]=rp(Object.assign(Object.assign(Object.assign({},n),{prefixCls:a}),l.message));return te.useImperativeHandle(t,()=>{const u=Object.assign({},s);return Object.keys(u).forEach(d=>{u[d]=(...f)=>(r(),s[d].apply(s,f))}),{instance:u,sync:r}}),c}),ZT=te.forwardRef((e,t)=>{const[n,r]=te.useState(ev),o=()=>{r(ev)};te.useEffect(o,[]);const a=OS(),l=a.getRootPrefixCls(),s=a.getIconPrefixCls(),c=a.getTheme(),u=te.createElement(QT,{ref:t,sync:o,messageConfig:n});return te.createElement(Dr,{prefixCls:l,iconPrefixCls:s,theme:c},a.holderRender?a.holderRender(u):u)}),_l=()=>{if(!Yn){const e=document.createDocumentFragment(),t={fragment:e};Yn=t,Ur(()=>{ip()(te.createElement(ZT,{ref:r=>{const{instance:o,sync:a}=r||{};Promise.resolve().then(()=>{!t.instance&&o&&(t.instance=o,t.sync=a,_l())})}}),e)});return}Yn.instance&&(Pa.forEach(e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":{Ur(()=>{const r=Yn.instance.open(Object.assign(Object.assign({},Na),e.config));r==null||r.then(e.resolve),e.setCloseFn(r)});break}case"destroy":Ur(()=>{Yn==null||Yn.instance.destroy(e.key)});break;default:Ur(()=>{var r;const o=(r=Yn.instance)[t].apply(r,ge(e.args));o==null||o.then(e.resolve),e.setCloseFn(o)})}}),Pa=[])};function JT(e){Na=Object.assign(Object.assign({},Na),e),Ur(()=>{var t;(t=Yn==null?void 0:Yn.sync)===null||t===void 0||t.call(Yn)})}function e_(e){const t=du(n=>{let r;const o={type:"open",config:e,resolve:n,setCloseFn:a=>{r=a}};return Pa.push(o),()=>{r?Ur(()=>{r()}):o.skipped=!0}});return _l(),t}function t_(e,t){const n=du(r=>{let o;const a={type:e,args:t,resolve:r,setCloseFn:l=>{o=l}};return Pa.push(a),()=>{o?Ur(()=>{o()}):a.skipped=!0}});return _l(),n}const n_=e=>{Pa.push({type:"destroy",key:e}),_l()},r_=["success","info","warning","error","loading"],o_={open:e_,destroy:n_,config:JT,useMessage:Ax,_InternalPanelDoNotUseOrYouWillBeFired:Mx},a_=o_;r_.forEach(e=>{a_[e]=(...t)=>t_(e,t)});var Pr={},Xa="rc-table-internal-hook";function Qu(e){var t=i.createContext(void 0),n=function(o){var a=o.value,l=o.children,s=i.useRef(a);s.current=a;var c=i.useState(function(){return{getValue:function(){return s.current},listeners:new Set}}),u=ee(c,1),d=u[0];return Rt(function(){br.unstable_batchedUpdates(function(){d.listeners.forEach(function(f){f(a)})})},[a]),i.createElement(t.Provider,{value:d},l)};return{Context:t,Provider:n,defaultValue:e}}function gn(e,t){var n=Lt(typeof t=="function"?t:function(f){if(t===void 0)return f;if(!Array.isArray(t))return f[t];var m={};return t.forEach(function(v){m[v]=f[v]}),m}),r=i.useContext(e==null?void 0:e.Context),o=r||{},a=o.listeners,l=o.getValue,s=i.useRef();s.current=n(r?l():e==null?void 0:e.defaultValue);var c=i.useState({}),u=ee(c,2),d=u[1];return Rt(function(){if(!r)return;function f(m){var v=n(m);ur(s.current,v,!0)||d({})}return a.add(f),function(){a.delete(f)}},[r]),s.current}function i_(){var e=i.createContext(null);function t(){return i.useContext(e)}function n(o,a){var l=or(o),s=function(u,d){var f=l?{ref:d}:{},m=i.useRef(0),v=i.useRef(u),p=t();return p!==null?i.createElement(o,me({},u,f)):((!a||a(v.current,u))&&(m.current+=1),v.current=u,i.createElement(e.Provider,{value:m.current},i.createElement(o,me({},u,f))))};return l?i.forwardRef(s):s}function r(o,a){var l=or(o),s=function(u,d){var f=l?{ref:d}:{};return t(),i.createElement(o,me({},u,f))};return l?i.memo(i.forwardRef(s),a):i.memo(s,a)}return{makeImmutable:n,responseImmutable:r,useImmutableMark:t}}var Zu=i_(),$b=Zu.makeImmutable,Ko=Zu.responseImmutable,l_=Zu.useImmutableMark,Nn=Qu(),wb=i.createContext({renderWithProps:!1}),s_="RC_TABLE_KEY";function c_(e){return e==null?[]:Array.isArray(e)?e:[e]}function zl(e){var t=[],n={};return e.forEach(function(r){for(var o=r||{},a=o.key,l=o.dataIndex,s=a||c_(l).join("-")||s_;n[s];)s="".concat(s,"_next");n[s]=!0,t.push(s)}),t}function kc(e){return e!=null}function u_(e){return typeof e=="number"&&!Number.isNaN(e)}function d_(e){return e&&Ue(e)==="object"&&!Array.isArray(e)&&!i.isValidElement(e)}function f_(e,t,n,r,o,a){var l=i.useContext(wb),s=l_(),c=no(function(){if(kc(r))return[r];var u=t==null||t===""?[]:Array.isArray(t)?t:[t],d=Tn(e,u),f=d,m=void 0;if(o){var v=o(d,e,n);d_(v)?(f=v.children,m=v.props,l.renderWithProps=!0):f=v}return[f,m]},[s,e,r,t,o,n],function(u,d){if(a){var f=ee(u,2),m=f[1],v=ee(d,2),p=v[1];return a(p,m)}return l.renderWithProps?!0:!ur(u,d,!0)});return c}function m_(e,t,n,r){var o=e+t-1;return e<=r&&o>=n}function v_(e,t){return gn(Nn,function(n){var r=m_(e,t||1,n.hoverStartRow,n.hoverEndRow);return[r,n.onHover]})}var g_=function(t){var n=t.ellipsis,r=t.rowType,o=t.children,a,l=n===!0?{showTitle:!0}:n;return l&&(l.showTitle||r==="header")&&(typeof o=="string"||typeof o=="number"?a=o.toString():i.isValidElement(o)&&typeof o.props.children=="string"&&(a=o.props.children)),a};function p_(e){var t,n,r,o,a,l,s,c,u=e.component,d=e.children,f=e.ellipsis,m=e.scope,v=e.prefixCls,p=e.className,h=e.align,g=e.record,b=e.render,C=e.dataIndex,y=e.renderIndex,$=e.shouldCellUpdate,S=e.index,E=e.rowType,O=e.colSpan,w=e.rowSpan,x=e.fixLeft,I=e.fixRight,P=e.firstFixLeft,N=e.lastFixLeft,M=e.firstFixRight,R=e.lastFixRight,_=e.appendNode,T=e.additionalProps,z=T===void 0?{}:T,B=e.isSticky,L="".concat(v,"-cell"),F=gn(Nn,["supportSticky","allColumnsFixedLeft","rowHoverable"]),K=F.supportSticky,W=F.allColumnsFixedLeft,A=F.rowHoverable,V=f_(g,C,y,d,b,$),G=ee(V,2),U=G[0],ne=G[1],J={},Q=typeof x=="number"&&K,le=typeof I=="number"&&K;Q&&(J.position="sticky",J.left=x),le&&(J.position="sticky",J.right=I);var re=(t=(n=(r=ne==null?void 0:ne.colSpan)!==null&&r!==void 0?r:z.colSpan)!==null&&n!==void 0?n:O)!==null&&t!==void 0?t:1,X=(o=(a=(l=ne==null?void 0:ne.rowSpan)!==null&&l!==void 0?l:z.rowSpan)!==null&&a!==void 0?a:w)!==null&&o!==void 0?o:1,oe=v_(S,X),Z=ee(oe,2),q=Z[0],Y=Z[1],ie=Lt(function(ce){var Se;g&&Y(S,S+X-1),z==null||(Se=z.onMouseEnter)===null||Se===void 0||Se.call(z,ce)}),ue=Lt(function(ce){var Se;g&&Y(-1,-1),z==null||(Se=z.onMouseLeave)===null||Se===void 0||Se.call(z,ce)});if(re===0||X===0)return null;var he=(s=z.title)!==null&&s!==void 0?s:g_({rowType:E,ellipsis:f,children:U}),be=k(L,p,(c={},j(j(j(j(j(j(j(j(j(j(c,"".concat(L,"-fix-left"),Q&&K),"".concat(L,"-fix-left-first"),P&&K),"".concat(L,"-fix-left-last"),N&&K),"".concat(L,"-fix-left-all"),N&&W&&K),"".concat(L,"-fix-right"),le&&K),"".concat(L,"-fix-right-first"),M&&K),"".concat(L,"-fix-right-last"),R&&K),"".concat(L,"-ellipsis"),f),"".concat(L,"-with-append"),_),"".concat(L,"-fix-sticky"),(Q||le)&&B&&K),j(c,"".concat(L,"-row-hover"),!ne&&q)),z.className,ne==null?void 0:ne.className),ae={};h&&(ae.textAlign=h);var fe=D(D(D(D({},ne==null?void 0:ne.style),J),ae),z.style),se=U;return Ue(se)==="object"&&!Array.isArray(se)&&!i.isValidElement(se)&&(se=null),f&&(N||M)&&(se=i.createElement("span",{className:"".concat(L,"-content")},se)),i.createElement(u,me({},ne,z,{className:be,style:fe,title:he,scope:m,onMouseEnter:A?ie:void 0,onMouseLeave:A?ue:void 0,colSpan:re!==1?re:null,rowSpan:X!==1?X:null}),_,se)}const Wo=i.memo(p_);function Ju(e,t,n,r,o){var a=n[e]||{},l=n[t]||{},s,c;a.fixed==="left"?s=r.left[o==="rtl"?t:e]:l.fixed==="right"&&(c=r.right[o==="rtl"?e:t]);var u=!1,d=!1,f=!1,m=!1,v=n[t+1],p=n[e-1],h=v&&!v.fixed||p&&!p.fixed||n.every(function($){return $.fixed==="left"});if(o==="rtl"){if(s!==void 0){var g=p&&p.fixed==="left";m=!g&&h}else if(c!==void 0){var b=v&&v.fixed==="right";f=!b&&h}}else if(s!==void 0){var C=v&&v.fixed==="left";u=!C&&h}else if(c!==void 0){var y=p&&p.fixed==="right";d=!y&&h}return{fixLeft:s,fixRight:c,lastFixLeft:u,firstFixRight:d,lastFixRight:f,firstFixLeft:m,isSticky:r.isSticky}}var Eb=i.createContext({});function h_(e){var t=e.className,n=e.index,r=e.children,o=e.colSpan,a=o===void 0?1:o,l=e.rowSpan,s=e.align,c=gn(Nn,["prefixCls","direction"]),u=c.prefixCls,d=c.direction,f=i.useContext(Eb),m=f.scrollColumnIndex,v=f.stickyOffsets,p=f.flattenColumns,h=n+a-1,g=h+1===m?a+1:a,b=Ju(n,n+g-1,p,v,d);return i.createElement(Wo,me({className:t,index:n,component:"td",prefixCls:u,record:null,dataIndex:null,align:s,colSpan:g,rowSpan:l,render:function(){return r}},b))}var b_=["children"];function y_(e){var t=e.children,n=at(e,b_);return i.createElement("tr",n,t)}function jl(e){var t=e.children;return t}jl.Row=y_;jl.Cell=h_;function C_(e){var t=e.children,n=e.stickyOffsets,r=e.flattenColumns,o=gn(Nn,"prefixCls"),a=r.length-1,l=r[a],s=i.useMemo(function(){return{stickyOffsets:n,flattenColumns:r,scrollColumnIndex:l!=null&&l.scrollbar?a:null}},[l,r,a,n]);return i.createElement(Eb.Provider,{value:s},i.createElement("tfoot",{className:"".concat(o,"-summary")},t))}const fi=Ko(C_);var Ob=jl;function S_(e){return null}function x_(e){return null}function Ib(e,t,n,r,o,a,l){var s=a(t,l);e.push({record:t,indent:n,index:l,rowKey:s});var c=o==null?void 0:o.has(s);if(t&&Array.isArray(t[r])&&c)for(var u=0;u<t[r].length;u+=1)Ib(e,t[r][u],n+1,r,o,a,u)}function Rb(e,t,n,r){var o=i.useMemo(function(){if(n!=null&&n.size){for(var a=[],l=0;l<(e==null?void 0:e.length);l+=1){var s=e[l];Ib(a,s,0,t,n,r,l)}return a}return e==null?void 0:e.map(function(c,u){return{record:c,indent:0,index:u,rowKey:r(c,u)}})},[e,t,n,r]);return o}function Pb(e,t,n,r){var o=gn(Nn,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),a=o.flattenColumns,l=o.expandableType,s=o.expandedKeys,c=o.childrenColumnName,u=o.onTriggerExpand,d=o.rowExpandable,f=o.onRow,m=o.expandRowByClick,v=o.rowClassName,p=l==="nest",h=l==="row"&&(!d||d(e)),g=h||p,b=s&&s.has(t),C=c&&e&&e[c],y=Lt(u),$=f==null?void 0:f(e,n),S=$==null?void 0:$.onClick,E=function(I){m&&g&&u(e,I);for(var P=arguments.length,N=new Array(P>1?P-1:0),M=1;M<P;M++)N[M-1]=arguments[M];S==null||S.apply(void 0,[I].concat(N))},O;typeof v=="string"?O=v:typeof v=="function"&&(O=v(e,n,r));var w=zl(a);return D(D({},o),{},{columnsKey:w,nestExpandable:p,expanded:b,hasNestChildren:C,record:e,onTriggerExpand:y,rowSupportExpand:h,expandable:g,rowProps:D(D({},$),{},{className:k(O,$==null?void 0:$.className),onClick:E})})}function Nb(e){var t=e.prefixCls,n=e.children,r=e.component,o=e.cellComponent,a=e.className,l=e.expanded,s=e.colSpan,c=e.isEmpty,u=e.stickyOffset,d=u===void 0?0:u,f=gn(Nn,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),m=f.scrollbarSize,v=f.fixHeader,p=f.fixColumn,h=f.componentWidth,g=f.horizonScroll,b=n;return(c?g&&h:p)&&(b=i.createElement("div",{style:{width:h-d-(v&&!c?m:0),position:"sticky",left:d,overflow:"hidden"},className:"".concat(t,"-expanded-row-fixed")},b)),i.createElement(r,{className:a,style:{display:l?null:"none"}},i.createElement(Wo,{component:o,prefixCls:t,colSpan:s},b))}function $_(e){var t=e.prefixCls,n=e.record,r=e.onExpand,o=e.expanded,a=e.expandable,l="".concat(t,"-row-expand-icon");if(!a)return i.createElement("span",{className:k(l,"".concat(t,"-row-spaced"))});var s=function(u){r(n,u),u.stopPropagation()};return i.createElement("span",{className:k(l,j(j({},"".concat(t,"-row-expanded"),o),"".concat(t,"-row-collapsed"),!o)),onClick:s})}function w_(e,t,n){var r=[];function o(a){(a||[]).forEach(function(l,s){r.push(t(l,s)),o(l[n])})}return o(e),r}function Mb(e,t,n,r){return typeof e=="string"?e:typeof e=="function"?e(t,n,r):""}function Tb(e,t,n,r,o){var a,l=arguments.length>5&&arguments[5]!==void 0?arguments[5]:[],s=arguments.length>6&&arguments[6]!==void 0?arguments[6]:0,c=e.record,u=e.prefixCls,d=e.columnsKey,f=e.fixedInfoList,m=e.expandIconColumnIndex,v=e.nestExpandable,p=e.indentSize,h=e.expandIcon,g=e.expanded,b=e.hasNestChildren,C=e.onTriggerExpand,y=e.expandable,$=e.expandedKeys,S=d[n],E=f[n],O;n===(m||0)&&v&&(O=i.createElement(i.Fragment,null,i.createElement("span",{style:{paddingLeft:"".concat(p*r,"px")},className:"".concat(u,"-row-indent indent-level-").concat(r)}),h({prefixCls:u,expanded:g,expandable:b,record:c,onExpand:C})));var w=((a=t.onCell)===null||a===void 0?void 0:a.call(t,c,o))||{};if(s){var x=w.rowSpan,I=x===void 0?1:x;if(y&&I&&n<s){for(var P=I,N=o;N<o+I;N+=1){var M=l[N];$.has(M)&&(P+=1)}w.rowSpan=P}}return{key:S,fixedInfo:E,appendCellNode:O,additionalCellProps:w}}function E_(e){var t=e.className,n=e.style,r=e.record,o=e.index,a=e.renderIndex,l=e.rowKey,s=e.rowKeys,c=e.indent,u=c===void 0?0:c,d=e.rowComponent,f=e.cellComponent,m=e.scopeCellComponent,v=e.expandedRowInfo,p=Pb(r,l,o,u),h=p.prefixCls,g=p.flattenColumns,b=p.expandedRowClassName,C=p.expandedRowRender,y=p.rowProps,$=p.expanded,S=p.rowSupportExpand,E=i.useRef(!1);E.current||(E.current=$);var O=Mb(b,r,o,u),w=i.createElement(d,me({},y,{"data-row-key":l,className:k(t,"".concat(h,"-row"),"".concat(h,"-row-level-").concat(u),y==null?void 0:y.className,j({},O,u>=1)),style:D(D({},n),y==null?void 0:y.style)}),g.map(function(P,N){var M=P.render,R=P.dataIndex,_=P.className,T=Tb(p,P,N,u,o,s,v==null?void 0:v.offset),z=T.key,B=T.fixedInfo,L=T.appendCellNode,F=T.additionalCellProps;return i.createElement(Wo,me({className:_,ellipsis:P.ellipsis,align:P.align,scope:P.rowScope,component:P.rowScope?m:f,prefixCls:h,key:z,record:r,index:o,renderIndex:a,dataIndex:R,render:M,shouldCellUpdate:P.shouldCellUpdate},B,{appendNode:L,additionalProps:F}))})),x;if(S&&(E.current||$)){var I=C(r,o,u+1,$);x=i.createElement(Nb,{expanded:$,className:k("".concat(h,"-expanded-row"),"".concat(h,"-expanded-row-level-").concat(u+1),O),prefixCls:h,component:d,cellComponent:f,colSpan:v?v.colSpan:g.length,stickyOffset:v==null?void 0:v.sticky,isEmpty:!1},I)}return i.createElement(i.Fragment,null,w,x)}const O_=Ko(E_);function I_(e){var t=e.columnKey,n=e.onColumnResize,r=e.prefixCls,o=e.title,a=i.useRef();return Rt(function(){a.current&&n(t,a.current.offsetWidth)},[]),i.createElement(Bn,{data:t},i.createElement("th",{ref:a,className:"".concat(r,"-measure-cell")},i.createElement("div",{className:"".concat(r,"-measure-cell-content")},o||" ")))}function R_(e){var t=e.prefixCls,n=e.columnsKey,r=e.onColumnResize,o=e.columns,a=i.useRef(null),l=gn(Nn,["measureRowRender"]),s=l.measureRowRender,c=i.createElement("tr",{"aria-hidden":"true",className:"".concat(t,"-measure-row"),ref:a,tabIndex:-1},i.createElement(Bn.Collection,{onBatchResize:function(d){La(a.current)&&d.forEach(function(f){var m=f.data,v=f.size;r(m,v.offsetWidth)})}},n.map(function(u){var d=o.find(function(v){return v.key===u}),f=d==null?void 0:d.title,m=i.isValidElement(f)?i.cloneElement(f,{ref:null}):f;return i.createElement(I_,{prefixCls:t,key:u,columnKey:u,onColumnResize:r,title:m})})));return s?s(c):c}function P_(e){var t=e.data,n=e.measureColumnWidth,r=gn(Nn,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode","expandedRowOffset","fixedInfoList","colWidths"]),o=r.prefixCls,a=r.getComponent,l=r.onColumnResize,s=r.flattenColumns,c=r.getRowKey,u=r.expandedKeys,d=r.childrenColumnName,f=r.emptyNode,m=r.expandedRowOffset,v=m===void 0?0:m,p=r.colWidths,h=Rb(t,d,u,c),g=i.useMemo(function(){return h.map(function(x){return x.rowKey})},[h]),b=i.useRef({renderWithProps:!1}),C=i.useMemo(function(){for(var x=s.length-v,I=0,P=0;P<v;P+=1)I+=p[P]||0;return{offset:v,colSpan:x,sticky:I}},[s.length,v,p]),y=a(["body","wrapper"],"tbody"),$=a(["body","row"],"tr"),S=a(["body","cell"],"td"),E=a(["body","cell"],"th"),O;t.length?O=h.map(function(x,I){var P=x.record,N=x.indent,M=x.index,R=x.rowKey;return i.createElement(O_,{key:R,rowKey:R,rowKeys:g,record:P,index:I,renderIndex:M,rowComponent:$,cellComponent:S,scopeCellComponent:E,indent:N,expandedRowInfo:C})}):O=i.createElement(Nb,{expanded:!0,className:"".concat(o,"-placeholder"),prefixCls:o,component:$,cellComponent:S,colSpan:s.length,isEmpty:!0},f);var w=zl(s);return i.createElement(wb.Provider,{value:b.current},i.createElement(y,{className:"".concat(o,"-tbody")},n&&i.createElement(R_,{prefixCls:o,columnsKey:w,onColumnResize:l,columns:s}),O))}const N_=Ko(P_);var M_=["expandable"],ca="RC_TABLE_INTERNAL_COL_DEFINE";function T_(e){var t=e.expandable,n=at(e,M_),r;return"expandable"in e?r=D(D({},n),t):r=n,r.showExpandColumn===!1&&(r.expandIconColumnIndex=-1),r}var __=["columnType"];function _b(e){for(var t=e.colWidths,n=e.columns,r=e.columCount,o=gn(Nn,["tableLayout"]),a=o.tableLayout,l=[],s=r||n.length,c=!1,u=s-1;u>=0;u-=1){var d=t[u],f=n&&n[u],m=void 0,v=void 0;if(f&&(m=f[ca],a==="auto"&&(v=f.minWidth)),d||v||m||c){var p=m||{};p.columnType;var h=at(p,__);l.unshift(i.createElement("col",me({key:u,style:{width:d,minWidth:v}},h))),c=!0}}return l.length>0?i.createElement("colgroup",null,l):null}var z_=["className","noData","columns","flattenColumns","colWidths","colGroup","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","scrollX","tableLayout","onScroll","children"];function j_(e,t){return i.useMemo(function(){for(var n=[],r=0;r<t;r+=1){var o=e[r];if(o!==void 0)n[r]=o;else return null}return n},[e.join("_"),t])}var B_=i.forwardRef(function(e,t){var n=e.className,r=e.noData,o=e.columns,a=e.flattenColumns,l=e.colWidths,s=e.colGroup,c=e.columCount,u=e.stickyOffsets,d=e.direction,f=e.fixHeader,m=e.stickyTopOffset,v=e.stickyBottomOffset,p=e.stickyClassName,h=e.scrollX,g=e.tableLayout,b=g===void 0?"fixed":g,C=e.onScroll,y=e.children,$=at(e,z_),S=gn(Nn,["prefixCls","scrollbarSize","isSticky","getComponent"]),E=S.prefixCls,O=S.scrollbarSize,w=S.isSticky,x=S.getComponent,I=x(["header","table"],"table"),P=w&&!f?0:O,N=i.useRef(null),M=i.useCallback(function(K){fa(t,K),fa(N,K)},[]);i.useEffect(function(){function K(A){var V=A,G=V.currentTarget,U=V.deltaX;U&&(C({currentTarget:G,scrollLeft:G.scrollLeft+U}),A.preventDefault())}var W=N.current;return W==null||W.addEventListener("wheel",K,{passive:!1}),function(){W==null||W.removeEventListener("wheel",K)}},[]);var R=a[a.length-1],_={fixed:R?R.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(E,"-cell-scrollbar")}}},T=i.useMemo(function(){return P?[].concat(ge(o),[_]):o},[P,o]),z=i.useMemo(function(){return P?[].concat(ge(a),[_]):a},[P,a]),B=i.useMemo(function(){var K=u.right,W=u.left;return D(D({},u),{},{left:d==="rtl"?[].concat(ge(W.map(function(A){return A+P})),[0]):W,right:d==="rtl"?K:[].concat(ge(K.map(function(A){return A+P})),[0]),isSticky:w})},[P,u,w]),L=j_(l,c),F=i.useMemo(function(){var K=!L||!L.length||L.every(function(W){return!W});return r||K},[r,L]);return i.createElement("div",{style:D({overflow:"hidden"},w?{top:m,bottom:v}:{}),ref:M,className:k(n,j({},p,!!p))},i.createElement(I,{style:{tableLayout:b,minWidth:"100%",width:h}},F?s:i.createElement(_b,{colWidths:[].concat(ge(L),[P]),columCount:c+1,columns:z}),y(D(D({},$),{},{stickyOffsets:B,columns:T,flattenColumns:z}))))});const tv=i.memo(B_);var D_=function(t){var n=t.cells,r=t.stickyOffsets,o=t.flattenColumns,a=t.rowComponent,l=t.cellComponent,s=t.onHeaderRow,c=t.index,u=gn(Nn,["prefixCls","direction"]),d=u.prefixCls,f=u.direction,m;s&&(m=s(n.map(function(p){return p.column}),c));var v=zl(n.map(function(p){return p.column}));return i.createElement(a,m,n.map(function(p,h){var g=p.column,b=Ju(p.colStart,p.colEnd,o,r,f),C;return g&&g.onHeaderCell&&(C=p.column.onHeaderCell(g)),i.createElement(Wo,me({},p,{scope:g.title?p.colSpan>1?"colgroup":"col":null,ellipsis:g.ellipsis,align:g.align,component:l,prefixCls:d,key:v[h]},b,{additionalProps:C,rowType:"header"}))}))};function L_(e){var t=[];function n(l,s){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;t[c]=t[c]||[];var u=s,d=l.filter(Boolean).map(function(f){var m={key:f.key,className:f.className||"",children:f.title,column:f,colStart:u},v=1,p=f.children;return p&&p.length>0&&(v=n(p,u,c+1).reduce(function(h,g){return h+g},0),m.hasSubColumns=!0),"colSpan"in f&&(v=f.colSpan),"rowSpan"in f&&(m.rowSpan=f.rowSpan),m.colSpan=v,m.colEnd=m.colStart+v-1,t[c].push(m),u+=v,v});return d}n(e,0);for(var r=t.length,o=function(s){t[s].forEach(function(c){!("rowSpan"in c)&&!c.hasSubColumns&&(c.rowSpan=r-s)})},a=0;a<r;a+=1)o(a);return t}var A_=function(t){var n=t.stickyOffsets,r=t.columns,o=t.flattenColumns,a=t.onHeaderRow,l=gn(Nn,["prefixCls","getComponent"]),s=l.prefixCls,c=l.getComponent,u=i.useMemo(function(){return L_(r)},[r]),d=c(["header","wrapper"],"thead"),f=c(["header","row"],"tr"),m=c(["header","cell"],"th");return i.createElement(d,{className:"".concat(s,"-thead")},u.map(function(v,p){var h=i.createElement(D_,{key:p,flattenColumns:o,cells:v,stickyOffsets:n,rowComponent:f,cellComponent:m,onHeaderRow:a,index:p});return h}))};const nv=Ko(A_);function rv(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof t=="number"?t:t.endsWith("%")?e*parseFloat(t)/100:null}function F_(e,t,n){return i.useMemo(function(){if(t&&t>0){var r=0,o=0;e.forEach(function(m){var v=rv(t,m.width);v?r+=v:o+=1});var a=Math.max(t,n),l=Math.max(a-r,o),s=o,c=l/o,u=0,d=e.map(function(m){var v=D({},m),p=rv(t,v.width);if(p)v.width=p;else{var h=Math.floor(c);v.width=s===1?l:h,l-=h,s-=1}return u+=v.width,v});if(u<a){var f=a/u;l=a,d.forEach(function(m,v){var p=Math.floor(m.width*f);m.width=v===d.length-1?l:p,l-=p})}return[d,Math.max(u,a)]}return[e,t]},[e,t,n])}var H_=["children"],k_=["fixed"];function ed(e){return _n(e).filter(function(t){return i.isValidElement(t)}).map(function(t){var n=t.key,r=t.props,o=r.children,a=at(r,H_),l=D({key:n},a);return o&&(l.children=ed(o)),l})}function zb(e){return e.filter(function(t){return t&&Ue(t)==="object"&&!t.hidden}).map(function(t){var n=t.children;return n&&n.length>0?D(D({},t),{},{children:zb(n)}):t})}function Vc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return e.filter(function(n){return n&&Ue(n)==="object"}).reduce(function(n,r,o){var a=r.fixed,l=a===!0?"left":a,s="".concat(t,"-").concat(o),c=r.children;return c&&c.length>0?[].concat(ge(n),ge(Vc(c,s).map(function(u){var d;return D(D({},u),{},{fixed:(d=u.fixed)!==null&&d!==void 0?d:l})}))):[].concat(ge(n),[D(D({key:s},r),{},{fixed:l})])},[])}function V_(e){return e.map(function(t){var n=t.fixed,r=at(t,k_),o=n;return n==="left"?o="right":n==="right"&&(o="left"),D({fixed:o},r)})}function K_(e,t){var n=e.prefixCls,r=e.columns,o=e.children,a=e.expandable,l=e.expandedKeys,s=e.columnTitle,c=e.getRowKey,u=e.onTriggerExpand,d=e.expandIcon,f=e.rowExpandable,m=e.expandIconColumnIndex,v=e.expandedRowOffset,p=v===void 0?0:v,h=e.direction,g=e.expandRowByClick,b=e.columnWidth,C=e.fixed,y=e.scrollWidth,$=e.clientWidth,S=i.useMemo(function(){var R=r||ed(o)||[];return zb(R.slice())},[r,o]),E=i.useMemo(function(){if(a){var R=S.slice();if(!R.includes(Pr)){var _=m||0,T=_===0&&C==="right"?S.length:_;T>=0&&R.splice(T,0,Pr)}var z=R.indexOf(Pr);R=R.filter(function(K,W){return K!==Pr||W===z});var B=S[z],L;C?L=C:L=B?B.fixed:null;var F=j(j(j(j(j(j({},ca,{className:"".concat(n,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",s),"fixed",L),"className","".concat(n,"-row-expand-icon-cell")),"width",b),"render",function(W,A,V){var G=c(A,V),U=l.has(G),ne=f?f(A):!0,J=d({prefixCls:n,expanded:U,expandable:ne,record:A,onExpand:u});return g?i.createElement("span",{onClick:function(le){return le.stopPropagation()}},J):J});return R.map(function(K,W){var A=K===Pr?F:K;return W<p?D(D({},A),{},{fixed:A.fixed||"left"}):A})}return S.filter(function(K){return K!==Pr})},[a,S,c,l,d,h,p]),O=i.useMemo(function(){var R=E;return t&&(R=t(R)),R.length||(R=[{render:function(){return null}}]),R},[t,E,h]),w=i.useMemo(function(){return h==="rtl"?V_(Vc(O)):Vc(O)},[O,h,y]),x=i.useMemo(function(){for(var R=-1,_=w.length-1;_>=0;_-=1){var T=w[_].fixed;if(T==="left"||T===!0){R=_;break}}if(R>=0)for(var z=0;z<=R;z+=1){var B=w[z].fixed;if(B!=="left"&&B!==!0)return!0}var L=w.findIndex(function(W){var A=W.fixed;return A==="right"});if(L>=0)for(var F=L;F<w.length;F+=1){var K=w[F].fixed;if(K!=="right")return!0}return!1},[w]),I=F_(w,y,$),P=ee(I,2),N=P[0],M=P[1];return[O,N,M,x]}function W_(e,t,n){var r=T_(e),o=r.expandIcon,a=r.expandedRowKeys,l=r.defaultExpandedRowKeys,s=r.defaultExpandAllRows,c=r.expandedRowRender,u=r.onExpand,d=r.onExpandedRowsChange,f=r.childrenColumnName,m=o||$_,v=f||"children",p=i.useMemo(function(){return c?"row":e.expandable&&e.internalHooks===Xa&&e.expandable.__PARENT_RENDER_ICON__||t.some(function(S){return S&&Ue(S)==="object"&&S[v]})?"nest":!1},[!!c,t]),h=i.useState(function(){return l||(s?w_(t,n,v):[])}),g=ee(h,2),b=g[0],C=g[1],y=i.useMemo(function(){return new Set(a||b||[])},[a,b]),$=i.useCallback(function(S){var E=n(S,t.indexOf(S)),O,w=y.has(E);w?(y.delete(E),O=ge(y)):O=[].concat(ge(y),[E]),C(O),u&&u(!w,S),d&&d(O)},[n,y,t,u,d]);return[r,p,y,m,v,$]}function G_(e,t,n){var r=e.map(function(o,a){return Ju(a,a,e,t,n)});return no(function(){return r},[r],function(o,a){return!ur(o,a)})}function q_(e){var t=i.useRef(e),n=i.useState({}),r=ee(n,2),o=r[1],a=i.useRef(null),l=i.useRef([]);function s(c){l.current.push(c);var u=Promise.resolve();a.current=u,u.then(function(){if(a.current===u){var d=l.current,f=t.current;l.current=[],d.forEach(function(m){t.current=m(t.current)}),a.current=null,f!==t.current&&o({})}})}return i.useEffect(function(){return function(){a.current=null}},[]),[t.current,s]}function U_(e){var t=i.useRef(null),n=i.useRef();function r(){window.clearTimeout(n.current)}function o(l){t.current=l,r(),n.current=window.setTimeout(function(){t.current=null,n.current=void 0},100)}function a(){return t.current}return i.useEffect(function(){return r},[]),[o,a]}function X_(){var e=i.useState(-1),t=ee(e,2),n=t[0],r=t[1],o=i.useState(-1),a=ee(o,2),l=a[0],s=a[1],c=i.useCallback(function(u,d){r(u),s(d)},[]);return[n,l,c]}var ov=En()?window:null;function Y_(e,t){var n=Ue(e)==="object"?e:{},r=n.offsetHeader,o=r===void 0?0:r,a=n.offsetSummary,l=a===void 0?0:a,s=n.offsetScroll,c=s===void 0?0:s,u=n.getContainer,d=u===void 0?function(){return ov}:u,f=d()||ov,m=!!e;return i.useMemo(function(){return{isSticky:m,stickyClassName:m?"".concat(t,"-sticky-holder"):"",offsetHeader:o,offsetSummary:l,offsetScroll:c,container:f}},[m,c,o,l,t,f])}function Q_(e,t,n){var r=i.useMemo(function(){var o=t.length,a=function(u,d,f){for(var m=[],v=0,p=u;p!==d;p+=f)m.push(v),t[p].fixed&&(v+=e[p]||0);return m},l=a(0,o,1),s=a(o-1,-1,-1).reverse();return n==="rtl"?{left:s,right:l}:{left:l,right:s}},[e,t,n]);return r}function av(e){var t=e.className,n=e.children;return i.createElement("div",{className:t},n)}function iv(e){var t=Ta(e),n=t.getBoundingClientRect(),r=document.documentElement;return{left:n.left+(window.pageXOffset||r.scrollLeft)-(r.clientLeft||document.body.clientLeft||0),top:n.top+(window.pageYOffset||r.scrollTop)-(r.clientTop||document.body.clientTop||0)}}var Z_=function(t,n){var r,o,a=t.scrollBodyRef,l=t.onScroll,s=t.offsetScroll,c=t.container,u=t.direction,d=gn(Nn,"prefixCls"),f=((r=a.current)===null||r===void 0?void 0:r.scrollWidth)||0,m=((o=a.current)===null||o===void 0?void 0:o.clientWidth)||0,v=f&&m*(m/f),p=i.useRef(),h=q_({scrollLeft:0,isHiddenScrollBar:!0}),g=ee(h,2),b=g[0],C=g[1],y=i.useRef({delta:0,x:0}),$=i.useState(!1),S=ee($,2),E=S[0],O=S[1],w=i.useRef(null);i.useEffect(function(){return function(){Et.cancel(w.current)}},[]);var x=function(){O(!1)},I=function(_){_.persist(),y.current.delta=_.pageX-b.scrollLeft,y.current.x=0,O(!0),_.preventDefault()},P=function(_){var T,z=_||((T=window)===null||T===void 0?void 0:T.event),B=z.buttons;if(!E||B===0){E&&O(!1);return}var L=y.current.x+_.pageX-y.current.x-y.current.delta,F=u==="rtl";L=Math.max(F?v-m:0,Math.min(F?0:m-v,L));var K=!F||Math.abs(L)+Math.abs(v)<m;K&&(l({scrollLeft:L/m*(f+2)}),y.current.x=_.pageX)},N=function(){Et.cancel(w.current),w.current=Et(function(){if(a.current){var _=iv(a.current).top,T=_+a.current.offsetHeight,z=c===window?document.documentElement.scrollTop+window.innerHeight:iv(c).top+c.clientHeight;C(function(B){return D(D({},B),{},{isHiddenScrollBar:T-Sf()<=z||_>=z-s})})}})},M=function(_){C(function(T){return D(D({},T),{},{scrollLeft:f?_/f*m:0})})};return i.useImperativeHandle(n,function(){return{setScrollLeft:M,checkScrollBarVisible:N}}),i.useEffect(function(){var R=Wm(document.body,"mouseup",x,!1),_=Wm(document.body,"mousemove",P,!1);return N(),function(){R.remove(),_.remove()}},[v,E]),i.useEffect(function(){if(a.current){for(var R=[],_=Ta(a.current);_;)R.push(_),_=_.parentElement;return R.forEach(function(T){return T.addEventListener("scroll",N,!1)}),window.addEventListener("resize",N,!1),window.addEventListener("scroll",N,!1),c.addEventListener("scroll",N,!1),function(){R.forEach(function(T){return T.removeEventListener("scroll",N)}),window.removeEventListener("resize",N),window.removeEventListener("scroll",N),c.removeEventListener("scroll",N)}}},[c]),i.useEffect(function(){b.isHiddenScrollBar||C(function(R){var _=a.current;return _?D(D({},R),{},{scrollLeft:_.scrollLeft/_.scrollWidth*_.clientWidth}):R})},[b.isHiddenScrollBar]),f<=m||!v||b.isHiddenScrollBar?null:i.createElement("div",{style:{height:Sf(),width:m,bottom:s},className:"".concat(d,"-sticky-scroll")},i.createElement("div",{onMouseDown:I,ref:p,className:k("".concat(d,"-sticky-scroll-bar"),j({},"".concat(d,"-sticky-scroll-bar-active"),E)),style:{width:"".concat(v,"px"),transform:"translate3d(".concat(b.scrollLeft,"px, 0, 0)")}}))};const J_=i.forwardRef(Z_);var jb="rc-table",ez=[],tz={};function nz(){return"No Data"}function rz(e,t){var n=D({rowKey:"key",prefixCls:jb,emptyText:nz},e),r=n.prefixCls,o=n.className,a=n.rowClassName,l=n.style,s=n.data,c=n.rowKey,u=n.scroll,d=n.tableLayout,f=n.direction,m=n.title,v=n.footer,p=n.summary,h=n.caption,g=n.id,b=n.showHeader,C=n.components,y=n.emptyText,$=n.onRow,S=n.onHeaderRow,E=n.measureRowRender,O=n.onScroll,w=n.internalHooks,x=n.transformColumns,I=n.internalRefs,P=n.tailor,N=n.getContainerWidth,M=n.sticky,R=n.rowHoverable,_=R===void 0?!0:R,T=s||ez,z=!!T.length,B=w===Xa,L=i.useCallback(function(st,Ct){return Tn(C,st)||Ct},[C]),F=i.useMemo(function(){return typeof c=="function"?c:function(st){var Ct=st&&st[c];return Ct}},[c]),K=L(["body"]),W=X_(),A=ee(W,3),V=A[0],G=A[1],U=A[2],ne=W_(n,T,F),J=ee(ne,6),Q=J[0],le=J[1],re=J[2],X=J[3],oe=J[4],Z=J[5],q=u==null?void 0:u.x,Y=i.useState(0),ie=ee(Y,2),ue=ie[0],he=ie[1],be=K_(D(D(D({},n),Q),{},{expandable:!!Q.expandedRowRender,columnTitle:Q.columnTitle,expandedKeys:re,getRowKey:F,onTriggerExpand:Z,expandIcon:X,expandIconColumnIndex:Q.expandIconColumnIndex,direction:f,scrollWidth:B&&P&&typeof q=="number"?q:null,clientWidth:ue}),B?x:null),ae=ee(be,4),fe=ae[0],se=ae[1],ce=ae[2],Se=ae[3],we=ce??q,je=i.useMemo(function(){return{columns:fe,flattenColumns:se}},[fe,se]),Ne=i.useRef(),Oe=i.useRef(),Te=i.useRef(),ve=i.useRef();i.useImperativeHandle(t,function(){return{nativeElement:Ne.current,scrollTo:function(Ct){var Jt;if(Te.current instanceof HTMLElement){var Wt=Ct.index,Gt=Ct.top,Gn=Ct.key;if(u_(Gt)){var bn;(bn=Te.current)===null||bn===void 0||bn.scrollTo({top:Gt})}else{var xn,er=Gn??F(T[Wt]);(xn=Te.current.querySelector('[data-row-key="'.concat(er,'"]')))===null||xn===void 0||xn.scrollIntoView()}}else(Jt=Te.current)!==null&&Jt!==void 0&&Jt.scrollTo&&Te.current.scrollTo(Ct)}}});var de=i.useRef(),xe=i.useState(!1),Ce=ee(xe,2),Ee=Ce[0],Me=Ce[1],Qe=i.useState(!1),Ve=ee(Qe,2),Fe=Ve[0],ft=Ve[1],mt=i.useState(new Map),ot=ee(mt,2),Bt=ot[0],bt=ot[1],ct=zl(se),et=ct.map(function(st){return Bt.get(st)}),gt=i.useMemo(function(){return et},[et.join("_")]),dt=Q_(gt,se,f),_e=u&&kc(u.y),Ge=u&&kc(we)||!!Q.fixed,He=Ge&&se.some(function(st){var Ct=st.fixed;return Ct}),$e=i.useRef(),ye=Y_(M,r),pe=ye.isSticky,Ie=ye.offsetHeader,Ke=ye.offsetSummary,We=ye.offsetScroll,vt=ye.stickyClassName,Be=ye.container,Pe=i.useMemo(function(){return p==null?void 0:p(T)},[p,T]),Ze=(_e||pe)&&i.isValidElement(Pe)&&Pe.type===jl&&Pe.props.fixed,yt,St,$t;_e&&(St={overflowY:z?"scroll":"auto",maxHeight:u.y}),Ge&&(yt={overflowX:"auto"},_e||(St={overflowY:"hidden"}),$t={width:we===!0?"auto":we,minWidth:"100%"});var _t=i.useCallback(function(st,Ct){bt(function(Jt){if(Jt.get(st)!==Ct){var Wt=new Map(Jt);return Wt.set(st,Ct),Wt}return Jt})},[]),ht=U_(),Ot=ee(ht,2),Re=Ot[0],De=Ot[1];function rt(st,Ct){Ct&&(typeof Ct=="function"?Ct(st):Ct.scrollLeft!==st&&(Ct.scrollLeft=st,Ct.scrollLeft!==st&&setTimeout(function(){Ct.scrollLeft=st},0)))}var tt=Lt(function(st){var Ct=st.currentTarget,Jt=st.scrollLeft,Wt=f==="rtl",Gt=typeof Jt=="number"?Jt:Ct.scrollLeft,Gn=Ct||tz;if(!De()||De()===Gn){var bn;Re(Gn),rt(Gt,Oe.current),rt(Gt,Te.current),rt(Gt,de.current),rt(Gt,(bn=$e.current)===null||bn===void 0?void 0:bn.setScrollLeft)}var xn=Ct||Oe.current;if(xn){var er=B&&P&&typeof we=="number"?we:xn.scrollWidth,wr=xn.clientWidth;if(er===wr){Me(!1),ft(!1);return}Wt?(Me(-Gt<er-wr),ft(-Gt>0)):(Me(Gt>0),ft(Gt<er-wr))}}),Xe=Lt(function(st){tt(st),O==null||O(st)}),ke=function(){if(Ge&&Te.current){var Ct;tt({currentTarget:Ta(Te.current),scrollLeft:(Ct=Te.current)===null||Ct===void 0?void 0:Ct.scrollLeft})}else Me(!1),ft(!1)},lt=function(Ct){var Jt,Wt=Ct.width;(Jt=$e.current)===null||Jt===void 0||Jt.checkScrollBarVisible();var Gt=Ne.current?Ne.current.offsetWidth:Wt;B&&N&&Ne.current&&(Gt=N(Ne.current,Gt)||Gt),Gt!==ue&&(ke(),he(Gt))},xt=i.useRef(!1);i.useEffect(function(){xt.current&&ke()},[Ge,s,fe.length]),i.useEffect(function(){xt.current=!0},[]);var ze=i.useState(0),Je=ee(ze,2),ut=Je[0],Kt=Je[1],Qt=i.useState(!0),pn=ee(Qt,2),hn=pn[0],sn=pn[1];Rt(function(){(!P||!B)&&(Te.current instanceof Element?Kt(bc(Te.current).width):Kt(bc(ve.current).width)),sn(Lw("position","sticky"))},[]),i.useEffect(function(){B&&I&&(I.body.current=Te.current)});var yn=i.useCallback(function(st){return i.createElement(i.Fragment,null,i.createElement(nv,st),Ze==="top"&&i.createElement(fi,st,Pe))},[Ze,Pe]),Cn=i.useCallback(function(st){return i.createElement(fi,st,Pe)},[Pe]),Mn=L(["table"],"table"),Sn=i.useMemo(function(){return d||(He?we==="max-content"?"auto":"fixed":_e||pe||se.some(function(st){var Ct=st.ellipsis;return Ct})?"fixed":"auto")},[_e,He,se,d,pe]),jt,Ye={colWidths:gt,columCount:se.length,stickyOffsets:dt,onHeaderRow:S,fixHeader:_e,scroll:u},qe=i.useMemo(function(){return z?null:typeof y=="function"?y():y},[z,y]),Nt=i.createElement(N_,{data:T,measureColumnWidth:_e||Ge||pe}),It=i.createElement(_b,{colWidths:se.map(function(st){var Ct=st.width;return Ct}),columns:se}),Dt=h!=null?i.createElement("caption",{className:"".concat(r,"-caption")},h):void 0,Vt=zn(n,{data:!0}),dn=zn(n,{aria:!0});if(_e||pe){var Zt;typeof K=="function"?(Zt=K(T,{scrollbarSize:ut,ref:Te,onScroll:tt}),Ye.colWidths=se.map(function(st,Ct){var Jt=st.width,Wt=Ct===se.length-1?Jt-ut:Jt;return typeof Wt=="number"&&!Number.isNaN(Wt)?Wt:0})):Zt=i.createElement("div",{style:D(D({},yt),St),onScroll:Xe,ref:Te,className:k("".concat(r,"-body"))},i.createElement(Mn,me({style:D(D({},$t),{},{tableLayout:Sn})},dn),Dt,It,Nt,!Ze&&Pe&&i.createElement(fi,{stickyOffsets:dt,flattenColumns:se},Pe)));var fn=D(D(D({noData:!T.length},Ye),je),{},{direction:f,stickyClassName:vt,scrollX:we,tableLayout:Sn,onScroll:tt});jt=i.createElement(i.Fragment,null,b!==!1&&i.createElement(tv,me({},fn,{stickyTopOffset:Ie,className:"".concat(r,"-header"),ref:Oe,colGroup:It}),yn),Zt,Ze&&Ze!=="top"&&i.createElement(tv,me({},fn,{stickyBottomOffset:Ke,className:"".concat(r,"-summary"),ref:de,colGroup:It}),Cn),pe&&Te.current&&Te.current instanceof Element&&i.createElement(J_,{ref:$e,offsetScroll:We,scrollBodyRef:Te,onScroll:tt,container:Be,direction:f}))}else jt=i.createElement("div",{style:D(D({},yt),St),className:k("".concat(r,"-content")),onScroll:tt,ref:Te},i.createElement(Mn,me({style:D(D({},$t),{},{tableLayout:Sn})},dn),Dt,It,b!==!1&&i.createElement(nv,me({},Ye,je)),Nt,Pe&&i.createElement(fi,{stickyOffsets:dt,flattenColumns:se},Pe)));var rn=i.createElement("div",me({className:k(r,o,j(j(j(j(j(j(j(j(j(j({},"".concat(r,"-rtl"),f==="rtl"),"".concat(r,"-ping-left"),Ee),"".concat(r,"-ping-right"),Fe),"".concat(r,"-layout-fixed"),d==="fixed"),"".concat(r,"-fixed-header"),_e),"".concat(r,"-fixed-column"),He),"".concat(r,"-fixed-column-gapped"),He&&Se),"".concat(r,"-scroll-horizontal"),Ge),"".concat(r,"-has-fix-left"),se[0]&&se[0].fixed),"".concat(r,"-has-fix-right"),se[se.length-1]&&se[se.length-1].fixed==="right")),style:l,id:g,ref:Ne},Vt),m&&i.createElement(av,{className:"".concat(r,"-title")},m(T)),i.createElement("div",{ref:ve,className:"".concat(r,"-container")},jt),v&&i.createElement(av,{className:"".concat(r,"-footer")},v(T)));Ge&&(rn=i.createElement(Bn,{onResize:lt},rn));var mn=G_(se,dt,f),Wn=i.useMemo(function(){return{scrollX:we,prefixCls:r,getComponent:L,scrollbarSize:ut,direction:f,fixedInfoList:mn,isSticky:pe,supportSticky:hn,componentWidth:ue,fixHeader:_e,fixColumn:He,horizonScroll:Ge,tableLayout:Sn,rowClassName:a,expandedRowClassName:Q.expandedRowClassName,expandIcon:X,expandableType:le,expandRowByClick:Q.expandRowByClick,expandedRowRender:Q.expandedRowRender,expandedRowOffset:Q.expandedRowOffset,onTriggerExpand:Z,expandIconColumnIndex:Q.expandIconColumnIndex,indentSize:Q.indentSize,allColumnsFixedLeft:se.every(function(st){return st.fixed==="left"}),emptyNode:qe,columns:fe,flattenColumns:se,onColumnResize:_t,colWidths:gt,hoverStartRow:V,hoverEndRow:G,onHover:U,rowExpandable:Q.rowExpandable,onRow:$,getRowKey:F,expandedKeys:re,childrenColumnName:oe,rowHoverable:_,measureRowRender:E}},[we,r,L,ut,f,mn,pe,hn,ue,_e,He,Ge,Sn,a,Q.expandedRowClassName,X,le,Q.expandRowByClick,Q.expandedRowRender,Q.expandedRowOffset,Z,Q.expandIconColumnIndex,Q.indentSize,qe,fe,se,_t,gt,V,G,U,Q.rowExpandable,$,F,re,oe,_,E]);return i.createElement(Nn.Provider,{value:Wn},rn)}var oz=i.forwardRef(rz);function Bb(e){return $b(oz,e)}var Go=Bb();Go.EXPAND_COLUMN=Pr;Go.INTERNAL_HOOKS=Xa;Go.Column=S_;Go.ColumnGroup=x_;Go.Summary=Ob;var td=Qu(null),Db=Qu(null);function az(e,t,n){var r=t||1;return n[e+r]-(n[e]||0)}function iz(e){var t=e.rowInfo,n=e.column,r=e.colIndex,o=e.indent,a=e.index,l=e.component,s=e.renderIndex,c=e.record,u=e.style,d=e.className,f=e.inverse,m=e.getHeight,v=n.render,p=n.dataIndex,h=n.className,g=n.width,b=gn(Db,["columnsOffset"]),C=b.columnsOffset,y=Tb(t,n,r,o,a),$=y.key,S=y.fixedInfo,E=y.appendCellNode,O=y.additionalCellProps,w=O.style,x=O.colSpan,I=x===void 0?1:x,P=O.rowSpan,N=P===void 0?1:P,M=r-1,R=az(M,I,C),_=I>1?g-R:0,T=D(D(D({},w),u),{},{flex:"0 0 ".concat(R,"px"),width:"".concat(R,"px"),marginRight:_,pointerEvents:"auto"}),z=i.useMemo(function(){return f?N<=1:I===0||N===0||N>1},[N,I,f]);z?T.visibility="hidden":f&&(T.height=m==null?void 0:m(N));var B=z?function(){return null}:v,L={};return(N===0||I===0)&&(L.rowSpan=1,L.colSpan=1),i.createElement(Wo,me({className:k(h,d),ellipsis:n.ellipsis,align:n.align,scope:n.rowScope,component:l,prefixCls:t.prefixCls,key:$,record:c,index:a,renderIndex:s,dataIndex:p,render:B,shouldCellUpdate:n.shouldCellUpdate},S,{appendNode:E,additionalProps:D(D({},O),{},{style:T},L)}))}var lz=["data","index","className","rowKey","style","extra","getHeight"],sz=i.forwardRef(function(e,t){var n=e.data,r=e.index,o=e.className,a=e.rowKey,l=e.style,s=e.extra,c=e.getHeight,u=at(e,lz),d=n.record,f=n.indent,m=n.index,v=gn(Nn,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),p=v.scrollX,h=v.flattenColumns,g=v.prefixCls,b=v.fixColumn,C=v.componentWidth,y=gn(td,["getComponent"]),$=y.getComponent,S=Pb(d,a,r,f),E=$(["body","row"],"div"),O=$(["body","cell"],"div"),w=S.rowSupportExpand,x=S.expanded,I=S.rowProps,P=S.expandedRowRender,N=S.expandedRowClassName,M;if(w&&x){var R=P(d,r,f+1,x),_=Mb(N,d,r,f),T={};b&&(T={style:j({},"--virtual-width","".concat(C,"px"))});var z="".concat(g,"-expanded-row-cell");M=i.createElement(E,{className:k("".concat(g,"-expanded-row"),"".concat(g,"-expanded-row-level-").concat(f+1),_)},i.createElement(Wo,{component:O,prefixCls:g,className:k(z,j({},"".concat(z,"-fixed"),b)),additionalProps:T},R))}var B=D(D({},l),{},{width:p});s&&(B.position="absolute",B.pointerEvents="none");var L=i.createElement(E,me({},I,u,{"data-row-key":a,ref:w?null:t,className:k(o,"".concat(g,"-row"),I==null?void 0:I.className,j({},"".concat(g,"-row-extra"),s)),style:D(D({},B),I==null?void 0:I.style)}),h.map(function(F,K){return i.createElement(iz,{key:K,component:O,rowInfo:S,column:F,colIndex:K,indent:f,index:r,renderIndex:m,record:d,inverse:s,getHeight:c})}));return w?i.createElement("div",{ref:t},L,M):L}),lv=Ko(sz),cz=i.forwardRef(function(e,t){var n=e.data,r=e.onScroll,o=gn(Nn,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),a=o.flattenColumns,l=o.onColumnResize,s=o.getRowKey,c=o.expandedKeys,u=o.prefixCls,d=o.childrenColumnName,f=o.scrollX,m=o.direction,v=gn(td),p=v.sticky,h=v.scrollY,g=v.listItemHeight,b=v.getComponent,C=v.onScroll,y=i.useRef(),$=Rb(n,d,c,s),S=i.useMemo(function(){var M=0;return a.map(function(R){var _=R.width,T=R.minWidth,z=R.key,B=Math.max(_||0,T||0);return M+=B,[z,B,M]})},[a]),E=i.useMemo(function(){return S.map(function(M){return M[2]})},[S]);i.useEffect(function(){S.forEach(function(M){var R=ee(M,2),_=R[0],T=R[1];l(_,T)})},[S]),i.useImperativeHandle(t,function(){var M,R={scrollTo:function(T){var z;(z=y.current)===null||z===void 0||z.scrollTo(T)},nativeElement:(M=y.current)===null||M===void 0?void 0:M.nativeElement};return Object.defineProperty(R,"scrollLeft",{get:function(){var T;return((T=y.current)===null||T===void 0?void 0:T.getScrollInfo().x)||0},set:function(T){var z;(z=y.current)===null||z===void 0||z.scrollTo({left:T})}}),Object.defineProperty(R,"scrollTop",{get:function(){var T;return((T=y.current)===null||T===void 0?void 0:T.getScrollInfo().y)||0},set:function(T){var z;(z=y.current)===null||z===void 0||z.scrollTo({top:T})}}),R});var O=function(R,_){var T,z=(T=$[_])===null||T===void 0?void 0:T.record,B=R.onCell;if(B){var L,F=B(z,_);return(L=F==null?void 0:F.rowSpan)!==null&&L!==void 0?L:1}return 1},w=function(R){var _=R.start,T=R.end,z=R.getSize,B=R.offsetY;if(T<0)return null;for(var L=a.filter(function(re){return O(re,_)===0}),F=_,K=function(X){if(L=L.filter(function(oe){return O(oe,X)===0}),!L.length)return F=X,1},W=_;W>=0&&!K(W);W-=1);for(var A=a.filter(function(re){return O(re,T)!==1}),V=T,G=function(X){if(A=A.filter(function(oe){return O(oe,X)!==1}),!A.length)return V=Math.max(X-1,T),1},U=T;U<$.length&&!G(U);U+=1);for(var ne=[],J=function(X){var oe=$[X];if(!oe)return 1;a.some(function(Z){return O(Z,X)>1})&&ne.push(X)},Q=F;Q<=V;Q+=1)J(Q);var le=ne.map(function(re){var X=$[re],oe=s(X.record,re),Z=function(ie){var ue=re+ie-1,he=s($[ue].record,ue),be=z(oe,he);return be.bottom-be.top},q=z(oe);return i.createElement(lv,{key:re,data:X,rowKey:oe,index:re,style:{top:-B+q.top},extra:!0,getHeight:Z})});return le},x=i.useMemo(function(){return{columnsOffset:E}},[E]),I="".concat(u,"-tbody"),P=b(["body","wrapper"]),N={};return p&&(N.position="sticky",N.bottom=0,Ue(p)==="object"&&p.offsetScroll&&(N.bottom=p.offsetScroll)),i.createElement(Db.Provider,{value:x},i.createElement(xl,{fullHeight:!1,ref:y,prefixCls:"".concat(I,"-virtual"),styles:{horizontalScrollBar:N},className:I,height:h,itemHeight:g||24,data:$,itemKey:function(R){return s(R.record)},component:P,scrollWidth:f,direction:m,onVirtualScroll:function(R){var _,T=R.x;r({currentTarget:(_=y.current)===null||_===void 0?void 0:_.nativeElement,scrollLeft:T})},onScroll:C,extraRender:w},function(M,R,_){var T=s(M.record,R);return i.createElement(lv,{data:M,rowKey:T,index:R,style:_.style})}))}),uz=Ko(cz),dz=function(t,n){var r=n.ref,o=n.onScroll;return i.createElement(uz,{ref:r,data:t,onScroll:o})};function fz(e,t){var n=e.data,r=e.columns,o=e.scroll,a=e.sticky,l=e.prefixCls,s=l===void 0?jb:l,c=e.className,u=e.listItemHeight,d=e.components,f=e.onScroll,m=o||{},v=m.x,p=m.y;typeof v!="number"&&(v=1),typeof p!="number"&&(p=500);var h=Lt(function(C,y){return Tn(d,C)||y}),g=Lt(f),b=i.useMemo(function(){return{sticky:a,scrollY:p,listItemHeight:u,getComponent:h,onScroll:g}},[a,p,u,h,g]);return i.createElement(td.Provider,{value:b},i.createElement(Go,me({},e,{className:k(c,"".concat(s,"-virtual")),scroll:D(D({},o),{},{x:v}),components:D(D({},d),{},{body:n!=null&&n.length?dz:void 0}),columns:r,internalHooks:Xa,tailor:!0,ref:t})))}var mz=i.forwardRef(fz);function Lb(e){return $b(mz,e)}Lb();const vz=e=>null,gz=e=>null;var nd=i.createContext(null),pz=i.createContext({}),hz=function(t){for(var n=t.prefixCls,r=t.level,o=t.isStart,a=t.isEnd,l="".concat(n,"-indent-unit"),s=[],c=0;c<r;c+=1)s.push(i.createElement("span",{key:c,className:k(l,j(j({},"".concat(l,"-start"),o[c]),"".concat(l,"-end"),a[c]))}));return i.createElement("span",{"aria-hidden":"true",className:"".concat(n,"-indent")},s)};const bz=i.memo(hz);var yz=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],sv="open",cv="close",Cz="---",Ma=function(t){var n,r,o,a=t.eventKey,l=t.className,s=t.style,c=t.dragOver,u=t.dragOverGapTop,d=t.dragOverGapBottom,f=t.isLeaf,m=t.isStart,v=t.isEnd,p=t.expanded,h=t.selected,g=t.checked,b=t.halfChecked,C=t.loading,y=t.domRef,$=t.active,S=t.data,E=t.onMouseMove,O=t.selectable,w=at(t,yz),x=te.useContext(nd),I=te.useContext(pz),P=te.useRef(null),N=te.useState(!1),M=ee(N,2),R=M[0],_=M[1],T=!!(x.disabled||t.disabled||(n=I.nodeDisabled)!==null&&n!==void 0&&n.call(I,S)),z=te.useMemo(function(){return!x.checkable||t.checkable===!1?!1:x.checkable},[x.checkable,t.checkable]),B=function(de){T||x.onNodeSelect(de,on(t))},L=function(de){T||!z||t.disableCheckbox||x.onNodeCheck(de,on(t),!g)},F=te.useMemo(function(){return typeof O=="boolean"?O:x.selectable},[O,x.selectable]),K=function(de){x.onNodeClick(de,on(t)),F?B(de):L(de)},W=function(de){x.onNodeDoubleClick(de,on(t))},A=function(de){x.onNodeMouseEnter(de,on(t))},V=function(de){x.onNodeMouseLeave(de,on(t))},G=function(de){x.onNodeContextMenu(de,on(t))},U=te.useMemo(function(){return!!(x.draggable&&(!x.draggable.nodeDraggable||x.draggable.nodeDraggable(S)))},[x.draggable,S]),ne=function(de){de.stopPropagation(),_(!0),x.onNodeDragStart(de,t);try{de.dataTransfer.setData("text/plain","")}catch{}},J=function(de){de.preventDefault(),de.stopPropagation(),x.onNodeDragEnter(de,t)},Q=function(de){de.preventDefault(),de.stopPropagation(),x.onNodeDragOver(de,t)},le=function(de){de.stopPropagation(),x.onNodeDragLeave(de,t)},re=function(de){de.stopPropagation(),_(!1),x.onNodeDragEnd(de,t)},X=function(de){de.preventDefault(),de.stopPropagation(),_(!1),x.onNodeDrop(de,t)},oe=function(de){C||x.onNodeExpand(de,on(t))},Z=te.useMemo(function(){var ve=jn(x.keyEntities,a)||{},de=ve.children;return!!(de||[]).length},[x.keyEntities,a]),q=te.useMemo(function(){return f===!1?!1:f||!x.loadData&&!Z||x.loadData&&t.loaded&&!Z},[f,x.loadData,Z,t.loaded]);te.useEffect(function(){C||typeof x.loadData=="function"&&p&&!q&&!t.loaded&&x.onNodeLoad(on(t))},[C,x.loadData,x.onNodeLoad,p,q,t]);var Y=te.useMemo(function(){var ve;return(ve=x.draggable)!==null&&ve!==void 0&&ve.icon?te.createElement("span",{className:"".concat(x.prefixCls,"-draggable-icon")},x.draggable.icon):null},[x.draggable]),ie=function(de){var xe=t.switcherIcon||x.switcherIcon;return typeof xe=="function"?xe(D(D({},t),{},{isLeaf:de})):xe},ue=function(){if(q){var de=ie(!0);return de!==!1?te.createElement("span",{className:k("".concat(x.prefixCls,"-switcher"),"".concat(x.prefixCls,"-switcher-noop"))},de):null}var xe=ie(!1);return xe!==!1?te.createElement("span",{onClick:oe,className:k("".concat(x.prefixCls,"-switcher"),"".concat(x.prefixCls,"-switcher_").concat(p?sv:cv))},xe):null},he=te.useMemo(function(){if(!z)return null;var ve=typeof z!="boolean"?z:null;return te.createElement("span",{className:k("".concat(x.prefixCls,"-checkbox"),j(j(j({},"".concat(x.prefixCls,"-checkbox-checked"),g),"".concat(x.prefixCls,"-checkbox-indeterminate"),!g&&b),"".concat(x.prefixCls,"-checkbox-disabled"),T||t.disableCheckbox)),onClick:L,role:"checkbox","aria-checked":b?"mixed":g,"aria-disabled":T||t.disableCheckbox,"aria-label":"Select ".concat(typeof t.title=="string"?t.title:"tree node")},ve)},[z,g,b,T,t.disableCheckbox,t.title]),be=te.useMemo(function(){return q?null:p?sv:cv},[q,p]),ae=te.useMemo(function(){return te.createElement("span",{className:k("".concat(x.prefixCls,"-iconEle"),"".concat(x.prefixCls,"-icon__").concat(be||"docu"),j({},"".concat(x.prefixCls,"-icon_loading"),C))})},[x.prefixCls,be,C]),fe=te.useMemo(function(){var ve=!!x.draggable,de=!t.disabled&&ve&&x.dragOverNodeKey===a;return de?x.dropIndicatorRender({dropPosition:x.dropPosition,dropLevelOffset:x.dropLevelOffset,indent:x.indent,prefixCls:x.prefixCls,direction:x.direction}):null},[x.dropPosition,x.dropLevelOffset,x.indent,x.prefixCls,x.direction,x.draggable,x.dragOverNodeKey,x.dropIndicatorRender]),se=te.useMemo(function(){var ve=t.title,de=ve===void 0?Cz:ve,xe="".concat(x.prefixCls,"-node-content-wrapper"),Ce;if(x.showIcon){var Ee=t.icon||x.icon;Ce=Ee?te.createElement("span",{className:k("".concat(x.prefixCls,"-iconEle"),"".concat(x.prefixCls,"-icon__customize"))},typeof Ee=="function"?Ee(t):Ee):ae}else x.loadData&&C&&(Ce=ae);var Me;return typeof de=="function"?Me=de(S):x.titleRender?Me=x.titleRender(S):Me=de,te.createElement("span",{ref:P,title:typeof de=="string"?de:"",className:k(xe,"".concat(xe,"-").concat(be||"normal"),j({},"".concat(x.prefixCls,"-node-selected"),!T&&(h||R))),onMouseEnter:A,onMouseLeave:V,onContextMenu:G,onClick:K,onDoubleClick:W},Ce,te.createElement("span",{className:"".concat(x.prefixCls,"-title")},Me),fe)},[x.prefixCls,x.showIcon,t,x.icon,ae,x.titleRender,S,be,A,V,G,K,W]),ce=zn(w,{aria:!0,data:!0}),Se=jn(x.keyEntities,a)||{},we=Se.level,je=v[v.length-1],Ne=!T&&U,Oe=x.draggingNodeKey===a,Te=O!==void 0?{"aria-selected":!!O}:void 0;return te.createElement("div",me({ref:y,role:"treeitem","aria-expanded":f?void 0:p,className:k(l,"".concat(x.prefixCls,"-treenode"),(o={},j(j(j(j(j(j(j(j(j(j(o,"".concat(x.prefixCls,"-treenode-disabled"),T),"".concat(x.prefixCls,"-treenode-switcher-").concat(p?"open":"close"),!f),"".concat(x.prefixCls,"-treenode-checkbox-checked"),g),"".concat(x.prefixCls,"-treenode-checkbox-indeterminate"),b),"".concat(x.prefixCls,"-treenode-selected"),h),"".concat(x.prefixCls,"-treenode-loading"),C),"".concat(x.prefixCls,"-treenode-active"),$),"".concat(x.prefixCls,"-treenode-leaf-last"),je),"".concat(x.prefixCls,"-treenode-draggable"),U),"dragging",Oe),j(j(j(j(j(j(j(o,"drop-target",x.dropTargetKey===a),"drop-container",x.dropContainerKey===a),"drag-over",!T&&c),"drag-over-gap-top",!T&&u),"drag-over-gap-bottom",!T&&d),"filter-node",(r=x.filterTreeNode)===null||r===void 0?void 0:r.call(x,on(t))),"".concat(x.prefixCls,"-treenode-leaf"),q))),style:s,draggable:Ne,onDragStart:Ne?ne:void 0,onDragEnter:U?J:void 0,onDragOver:U?Q:void 0,onDragLeave:U?le:void 0,onDrop:U?X:void 0,onDragEnd:U?re:void 0,onMouseMove:E},Te,ce),te.createElement(bz,{prefixCls:x.prefixCls,level:we,isStart:m,isEnd:v}),Y,ue(),he,se)};Ma.isTreeNode=1;function lr(e,t){if(!e)return[];var n=e.slice(),r=n.indexOf(t);return r>=0&&n.splice(r,1),n}function gr(e,t){var n=(e||[]).slice();return n.indexOf(t)===-1&&n.push(t),n}function rd(e){return e.split("-")}function Sz(e,t){var n=[],r=jn(t,e);function o(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];a.forEach(function(l){var s=l.key,c=l.children;n.push(s),o(c)})}return o(r.children),n}function xz(e){if(e.parent){var t=rd(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function $z(e){var t=rd(e.pos);return Number(t[t.length-1])===0}function uv(e,t,n,r,o,a,l,s,c,u){var d,f=e.clientX,m=e.clientY,v=e.target.getBoundingClientRect(),p=v.top,h=v.height,g=(u==="rtl"?-1:1)*(((o==null?void 0:o.x)||0)-f),b=(g-12)/r,C=c.filter(function(T){var z;return(z=s[T])===null||z===void 0||(z=z.children)===null||z===void 0?void 0:z.length}),y=jn(s,n.eventKey);if(m<p+h/2){var $=l.findIndex(function(T){return T.key===y.key}),S=$<=0?0:$-1,E=l[S].key;y=jn(s,E)}var O=y.key,w=y,x=y.key,I=0,P=0;if(!C.includes(O))for(var N=0;N<b&&xz(y);N+=1)y=y.parent,P+=1;var M=t.data,R=y.node,_=!0;return $z(y)&&y.level===0&&m<p+h/2&&a({dragNode:M,dropNode:R,dropPosition:-1})&&y.key===n.eventKey?I=-1:(w.children||[]).length&&C.includes(x)?a({dragNode:M,dropNode:R,dropPosition:0})?I=0:_=!1:P===0?b>-1.5?a({dragNode:M,dropNode:R,dropPosition:1})?I=1:_=!1:a({dragNode:M,dropNode:R,dropPosition:0})?I=0:a({dragNode:M,dropNode:R,dropPosition:1})?I=1:_=!1:a({dragNode:M,dropNode:R,dropPosition:1})?I=1:_=!1,{dropPosition:I,dropLevelOffset:P,dropTargetKey:y.key,dropTargetPos:y.pos,dragOverNodeKey:x,dropContainerKey:I===0?null:((d=y.parent)===null||d===void 0?void 0:d.key)||null,dropAllowed:_}}function dv(e,t){if(e){var n=t.multiple;return n?e.slice():e.length?[e[0]]:e}}function Ps(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else if(Ue(e)==="object")t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0};else return Ut(!1,"`checkedKeys` is not an array or an object"),null;return t}function Kc(e,t){var n=new Set;function r(o){if(!n.has(o)){var a=jn(t,o);if(a){n.add(o);var l=a.parent,s=a.node;s.disabled||l&&r(l.key)}}}return(e||[]).forEach(function(o){r(o)}),ge(n)}const Rr={},Wc="SELECT_ALL",Gc="SELECT_INVERT",qc="SELECT_NONE",fv=[],Ab=(e,t,n=[])=>((t||[]).forEach(r=>{n.push(r),r&&typeof r=="object"&&e in r&&Ab(e,r[e],n)}),n),wz=(e,t)=>{const{preserveSelectedRowKeys:n,selectedRowKeys:r,defaultSelectedRowKeys:o,getCheckboxProps:a,getTitleCheckboxProps:l,onChange:s,onSelect:c,onSelectAll:u,onSelectInvert:d,onSelectNone:f,onSelectMultiple:m,columnWidth:v,type:p,selections:h,fixed:g,renderCell:b,hideSelectAll:C,checkStrictly:y=!0}=t||{},{prefixCls:$,data:S,pageData:E,getRecordByKey:O,getRowKey:w,expandType:x,childrenColumnName:I,locale:P,getPopupContainer:N}=e,M=Br(),[R,_]=yx(X=>X),[T,z]=ln(r||o||fv,{value:r}),B=i.useRef(new Map),L=i.useCallback(X=>{if(n){const oe=new Map;X.forEach(Z=>{let q=O(Z);!q&&B.current.has(Z)&&(q=B.current.get(Z)),oe.set(Z,q)}),B.current=oe}},[O,n]);i.useEffect(()=>{L(T)},[T]);const F=i.useMemo(()=>Ab(I,E),[I,E]),{keyEntities:K}=i.useMemo(()=>{if(y)return{keyEntities:null};let X=S;if(n){const oe=new Set(F.map((q,Y)=>w(q,Y))),Z=Array.from(B.current).reduce((q,[Y,ie])=>oe.has(Y)?q:q.concat(ie),[]);X=[].concat(ge(X),ge(Z))}return Wu(X,{externalGetKey:w,childrenPropName:I})},[S,w,y,I,n,F]),W=i.useMemo(()=>{const X=new Map;return F.forEach((oe,Z)=>{const q=w(oe,Z),Y=(a?a(oe):null)||{};X.set(q,Y)}),X},[F,w,a]),A=i.useCallback(X=>{const oe=w(X);let Z;return W.has(oe)?Z=W.get(w(X)):Z=a?a(X):void 0,!!(Z!=null&&Z.disabled)},[W,w]),[V,G]=i.useMemo(()=>{if(y)return[T||[],[]];const{checkedKeys:X,halfCheckedKeys:oe}=wo(T,!0,K,A);return[X||[],oe]},[T,y,K,A]),U=i.useMemo(()=>{const X=p==="radio"?V.slice(0,1):V;return new Set(X)},[V,p]),ne=i.useMemo(()=>p==="radio"?new Set:new Set(G),[G,p]);i.useEffect(()=>{t||z(fv)},[!!t]);const J=i.useCallback((X,oe)=>{let Z,q;L(X),n?(Z=X,q=X.map(Y=>B.current.get(Y))):(Z=[],q=[],X.forEach(Y=>{const ie=O(Y);ie!==void 0&&(Z.push(Y),q.push(ie))})),z(Z),s==null||s(Z,q,{type:oe})},[z,O,s,n]),Q=i.useCallback((X,oe,Z,q)=>{if(c){const Y=Z.map(ie=>O(ie));c(O(X),oe,Y,q)}J(Z,"single")},[c,O,J]),le=i.useMemo(()=>!h||C?null:(h===!0?[Wc,Gc,qc]:h).map(oe=>oe===Wc?{key:"all",text:P.selectionAll,onSelect(){J(S.map((Z,q)=>w(Z,q)).filter(Z=>{const q=W.get(Z);return!(q!=null&&q.disabled)||U.has(Z)}),"all")}}:oe===Gc?{key:"invert",text:P.selectInvert,onSelect(){const Z=new Set(U);E.forEach((Y,ie)=>{const ue=w(Y,ie),he=W.get(ue);he!=null&&he.disabled||(Z.has(ue)?Z.delete(ue):Z.add(ue))});const q=Array.from(Z);d&&(M.deprecated(!1,"onSelectInvert","onChange"),d(q)),J(q,"invert")}}:oe===qc?{key:"none",text:P.selectNone,onSelect(){f==null||f(),J(Array.from(U).filter(Z=>{const q=W.get(Z);return q==null?void 0:q.disabled}),"none")}}:oe).map(oe=>Object.assign(Object.assign({},oe),{onSelect:(...Z)=>{var q,Y;(Y=oe.onSelect)===null||Y===void 0||(q=Y).call.apply(q,[oe].concat(Z)),_(null)}})),[h,U,E,w,d,J]);return[i.useCallback(X=>{var oe;if(!t)return X.filter(ve=>ve!==Rr);let Z=ge(X);const q=new Set(U),Y=F.map(w).filter(ve=>!W.get(ve).disabled),ie=Y.every(ve=>q.has(ve)),ue=Y.some(ve=>q.has(ve)),he=()=>{const ve=[];ie?Y.forEach(xe=>{q.delete(xe),ve.push(xe)}):Y.forEach(xe=>{q.has(xe)||(q.add(xe),ve.push(xe))});const de=Array.from(q);u==null||u(!ie,de.map(xe=>O(xe)),ve.map(xe=>O(xe))),J(de,"all"),_(null)};let be,ae;if(p!=="radio"){let ve;if(le){const Fe={getPopupContainer:N,items:le.map((ft,mt)=>{const{key:ot,text:Bt,onSelect:bt}=ft;return{key:ot??mt,onClick:()=>{bt==null||bt(Y)},label:Bt}})};ve=i.createElement("div",{className:`${$}-selection-extra`},i.createElement(Uu,{menu:Fe,getPopupContainer:N},i.createElement("span",null,i.createElement(Xp,null))))}const de=F.map((Fe,ft)=>{const mt=w(Fe,ft),ot=W.get(mt)||{};return Object.assign({checked:q.has(mt)},ot)}).filter(({disabled:Fe})=>Fe),xe=!!de.length&&de.length===F.length,Ce=xe&&de.every(({checked:Fe})=>Fe),Ee=xe&&de.some(({checked:Fe})=>Fe),Me=(l==null?void 0:l())||{},{onChange:Qe,disabled:Ve}=Me;ae=i.createElement(_o,Object.assign({"aria-label":ve?"Custom selection":"Select all"},Me,{checked:xe?Ce:!!F.length&&ie,indeterminate:xe?!Ce&&Ee:!ie&&ue,onChange:Fe=>{he(),Qe==null||Qe(Fe)},disabled:Ve??(F.length===0||xe),skipGroup:!0})),be=!C&&i.createElement("div",{className:`${$}-selection`},ae,ve)}let fe;p==="radio"?fe=(ve,de,xe)=>{const Ce=w(de,xe),Ee=q.has(Ce),Me=W.get(Ce);return{node:i.createElement(ka,Object.assign({},Me,{checked:Ee,onClick:Qe=>{var Ve;Qe.stopPropagation(),(Ve=Me==null?void 0:Me.onClick)===null||Ve===void 0||Ve.call(Me,Qe)},onChange:Qe=>{var Ve;q.has(Ce)||Q(Ce,!0,[Ce],Qe.nativeEvent),(Ve=Me==null?void 0:Me.onChange)===null||Ve===void 0||Ve.call(Me,Qe)}})),checked:Ee}}:fe=(ve,de,xe)=>{var Ce;const Ee=w(de,xe),Me=q.has(Ee),Qe=ne.has(Ee),Ve=W.get(Ee);let Fe;return x==="nest"?Fe=Qe:Fe=(Ce=Ve==null?void 0:Ve.indeterminate)!==null&&Ce!==void 0?Ce:Qe,{node:i.createElement(_o,Object.assign({},Ve,{indeterminate:Fe,checked:Me,skipGroup:!0,onClick:ft=>{var mt;ft.stopPropagation(),(mt=Ve==null?void 0:Ve.onClick)===null||mt===void 0||mt.call(Ve,ft)},onChange:ft=>{var mt;const{nativeEvent:ot}=ft,{shiftKey:Bt}=ot,bt=Y.indexOf(Ee),ct=V.some(et=>Y.includes(et));if(Bt&&y&&ct){const et=R(bt,Y,q),gt=Array.from(q);m==null||m(!Me,gt.map(dt=>O(dt)),et.map(dt=>O(dt))),J(gt,"multiple")}else{const et=V;if(y){const gt=Me?lr(et,Ee):gr(et,Ee);Q(Ee,!Me,gt,ot)}else{const gt=wo([].concat(ge(et),[Ee]),!0,K,A),{checkedKeys:dt,halfCheckedKeys:_e}=gt;let Ge=dt;if(Me){const He=new Set(dt);He.delete(Ee),Ge=wo(Array.from(He),{halfCheckedKeys:_e},K,A).checkedKeys}Q(Ee,!Me,Ge,ot)}}_(Me?null:bt),(mt=Ve==null?void 0:Ve.onChange)===null||mt===void 0||mt.call(Ve,ft)}})),checked:Me}};const se=(ve,de,xe)=>{const{node:Ce,checked:Ee}=fe(ve,de,xe);return b?b(Ee,de,xe,Ce):Ce};if(!Z.includes(Rr))if(Z.findIndex(ve=>{var de;return((de=ve[ca])===null||de===void 0?void 0:de.columnType)==="EXPAND_COLUMN"})===0){const[ve,...de]=Z;Z=[ve,Rr].concat(ge(de))}else Z=[Rr].concat(ge(Z));const ce=Z.indexOf(Rr);Z=Z.filter((ve,de)=>ve!==Rr||de===ce);const Se=Z[ce-1],we=Z[ce+1];let je=g;je===void 0&&((we==null?void 0:we.fixed)!==void 0?je=we.fixed:(Se==null?void 0:Se.fixed)!==void 0&&(je=Se.fixed)),je&&Se&&((oe=Se[ca])===null||oe===void 0?void 0:oe.columnType)==="EXPAND_COLUMN"&&Se.fixed===void 0&&(Se.fixed=je);const Ne=k(`${$}-selection-col`,{[`${$}-selection-col-with-dropdown`]:h&&p==="checkbox"}),Oe=()=>t!=null&&t.columnTitle?typeof t.columnTitle=="function"?t.columnTitle(ae):t.columnTitle:be,Te={fixed:je,width:v,className:`${$}-selection-column`,title:Oe(),render:se,onCell:t.onCell,align:t.align,[ca]:{className:Ne}};return Z.map(ve=>ve===Rr?Te:ve)},[w,F,t,V,U,ne,v,le,x,W,m,Q,A]),U]};function Ez(e){return t=>{const{prefixCls:n,onExpand:r,record:o,expanded:a,expandable:l}=t,s=`${n}-row-expand-icon`;return i.createElement("button",{type:"button",onClick:c=>{r(o,c),c.stopPropagation()},className:k(s,{[`${s}-spaced`]:!l,[`${s}-expanded`]:l&&a,[`${s}-collapsed`]:l&&!a}),"aria-label":a?e.collapse:e.expand,"aria-expanded":a})}}function Oz(e){return(n,r)=>{const o=n.querySelector(`.${e}-container`);let a=r;if(o){const l=getComputedStyle(o),s=Number.parseInt(l.borderLeftWidth,10),c=Number.parseInt(l.borderRightWidth,10);a=r-s-c}return a}}const zr=(e,t)=>"key"in e&&e.key!==void 0&&e.key!==null?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex:t;function qo(e,t){return t?`${t}-${e}`:`${e}`}const Bl=(e,t)=>typeof e=="function"?e(t):e,Iz=(e,t)=>{const n=Bl(e,t);return Object.prototype.toString.call(n)==="[object Object]"?"":n};var Rz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"},Pz=function(t,n){return i.createElement(Pt,me({},t,{ref:n,icon:Rz}))},Nz=i.forwardRef(Pz),Mz=function(t){var n=t.dropPosition,r=t.dropLevelOffset,o=t.indent,a={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(n){case-1:a.top=0,a.left=-r*o;break;case 1:a.bottom=0,a.left=-r*o;break;case 0:a.bottom=0,a.left=o;break}return te.createElement("div",{style:a})};function Fb(e){if(e==null)throw new TypeError("Cannot destructure "+e)}function Tz(e,t){var n=i.useState(!1),r=ee(n,2),o=r[0],a=r[1];Rt(function(){if(o)return e(),function(){t()}},[o]),Rt(function(){return a(!0),function(){a(!1)}},[])}var _z=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],zz=i.forwardRef(function(e,t){var n=e.className,r=e.style,o=e.motion,a=e.motionNodes,l=e.motionType,s=e.onMotionStart,c=e.onMotionEnd,u=e.active,d=e.treeNodeRequiredProps,f=at(e,_z),m=i.useState(!0),v=ee(m,2),p=v[0],h=v[1],g=i.useContext(nd),b=g.prefixCls,C=a&&l!=="hide";Rt(function(){a&&C!==p&&h(C)},[a]);var y=function(){a&&s()},$=i.useRef(!1),S=function(){a&&!$.current&&($.current=!0,c())};Tz(y,S);var E=function(w){C===w&&S()};return a?i.createElement(ir,me({ref:t,visible:p},o,{motionAppear:l==="show",onVisibleChanged:E}),function(O,w){var x=O.className,I=O.style;return i.createElement("div",{ref:w,className:k("".concat(b,"-treenode-motion"),x),style:I},a.map(function(P){var N=Object.assign({},(Fb(P.data),P.data)),M=P.title,R=P.key,_=P.isStart,T=P.isEnd;delete N.children;var z=sa(R,d);return i.createElement(Ma,me({},N,z,{title:M,active:u,data:P.data,key:R,isStart:_,isEnd:T}))}))}):i.createElement(Ma,me({domRef:t,className:n,style:r},f,{active:u}))});function jz(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=e.length,r=t.length;if(Math.abs(n-r)!==1)return{add:!1,key:null};function o(a,l){var s=new Map;a.forEach(function(u){s.set(u,!0)});var c=l.filter(function(u){return!s.has(u)});return c.length===1?c[0]:null}return n<r?{add:!0,key:o(e,t)}:{add:!1,key:o(t,e)}}function mv(e,t,n){var r=e.findIndex(function(s){return s.key===n}),o=e[r+1],a=t.findIndex(function(s){return s.key===n});if(o){var l=t.findIndex(function(s){return s.key===o.key});return t.slice(a+1,l)}return t.slice(a+1)}var Bz=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","scrollWidth","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],vv={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Dz=function(){},to="RC_TREE_MOTION_".concat(Math.random()),Uc={key:to},Hb={key:to,level:0,index:0,pos:"0",node:Uc,nodes:[Uc]},gv={parent:null,children:[],pos:Hb.pos,data:Uc,title:null,key:to,isStart:[],isEnd:[]};function pv(e,t,n,r){return t===!1||!n?e:e.slice(0,Math.ceil(n/r)+1)}function hv(e){var t=e.key,n=e.pos;return Wa(t,n)}function Lz(e){for(var t=String(e.data.key),n=e;n.parent;)n=n.parent,t="".concat(n.data.key," > ").concat(t);return t}var Az=i.forwardRef(function(e,t){var n=e.prefixCls,r=e.data;e.selectable,e.checkable;var o=e.expandedKeys,a=e.selectedKeys,l=e.checkedKeys,s=e.loadedKeys,c=e.loadingKeys,u=e.halfCheckedKeys,d=e.keyEntities,f=e.disabled,m=e.dragging,v=e.dragOverNodeKey,p=e.dropPosition,h=e.motion,g=e.height,b=e.itemHeight,C=e.virtual,y=e.scrollWidth,$=e.focusable,S=e.activeItem,E=e.focused,O=e.tabIndex,w=e.onKeyDown,x=e.onFocus,I=e.onBlur,P=e.onActiveChange,N=e.onListChangeStart,M=e.onListChangeEnd,R=at(e,Bz),_=i.useRef(null),T=i.useRef(null);i.useImperativeHandle(t,function(){return{scrollTo:function(fe){_.current.scrollTo(fe)},getIndentWidth:function(){return T.current.offsetWidth}}});var z=i.useState(o),B=ee(z,2),L=B[0],F=B[1],K=i.useState(r),W=ee(K,2),A=W[0],V=W[1],G=i.useState(r),U=ee(G,2),ne=U[0],J=U[1],Q=i.useState([]),le=ee(Q,2),re=le[0],X=le[1],oe=i.useState(null),Z=ee(oe,2),q=Z[0],Y=Z[1],ie=i.useRef(r);ie.current=r;function ue(){var ae=ie.current;V(ae),J(ae),X([]),Y(null),M()}Rt(function(){F(o);var ae=jz(L,o);if(ae.key!==null)if(ae.add){var fe=A.findIndex(function(Ne){var Oe=Ne.key;return Oe===ae.key}),se=pv(mv(A,r,ae.key),C,g,b),ce=A.slice();ce.splice(fe+1,0,gv),J(ce),X(se),Y("show")}else{var Se=r.findIndex(function(Ne){var Oe=Ne.key;return Oe===ae.key}),we=pv(mv(r,A,ae.key),C,g,b),je=r.slice();je.splice(Se+1,0,gv),J(je),X(we),Y("hide")}else A!==r&&(V(r),J(r))},[o,r]),i.useEffect(function(){m||ue()},[m]);var he=h?ne:r,be={expandedKeys:o,selectedKeys:a,loadedKeys:s,loadingKeys:c,checkedKeys:l,halfCheckedKeys:u,dragOverNodeKey:v,dropPosition:p,keyEntities:d};return i.createElement(i.Fragment,null,E&&S&&i.createElement("span",{style:vv,"aria-live":"assertive"},Lz(S)),i.createElement("div",null,i.createElement("input",{style:vv,disabled:$===!1||f,tabIndex:$!==!1?O:null,onKeyDown:w,onFocus:x,onBlur:I,value:"",onChange:Dz,"aria-label":"for screen reader"})),i.createElement("div",{className:"".concat(n,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},i.createElement("div",{className:"".concat(n,"-indent")},i.createElement("div",{ref:T,className:"".concat(n,"-indent-unit")}))),i.createElement(xl,me({},R,{data:he,itemKey:hv,height:g,fullHeight:!1,virtual:C,itemHeight:b,scrollWidth:y,prefixCls:"".concat(n,"-list"),ref:_,role:"tree",onVisibleChange:function(fe){fe.every(function(se){return hv(se)!==to})&&ue()}}),function(ae){var fe=ae.pos,se=Object.assign({},(Fb(ae.data),ae.data)),ce=ae.title,Se=ae.key,we=ae.isStart,je=ae.isEnd,Ne=Wa(Se,fe);delete se.key,delete se.children;var Oe=sa(Ne,be);return i.createElement(zz,me({},se,Oe,{title:ce,active:!!S&&Se===S.key,pos:fe,data:ae.data,isStart:we,isEnd:je,motion:h,motionNodes:Se===to?re:null,motionType:q,onMotionStart:N,onMotionEnd:ue,treeNodeRequiredProps:be,onMouseMove:function(){P(null)}}))}))}),Fz=10,od=(function(e){mr(n,e);var t=vr(n);function n(){var r;tn(this,n);for(var o=arguments.length,a=new Array(o),l=0;l<o;l++)a[l]=arguments[l];return r=t.call.apply(t,[this].concat(a)),j(Ae(r),"destroyed",!1),j(Ae(r),"delayedDragEnterLogic",void 0),j(Ae(r),"loadingRetryTimes",{}),j(Ae(r),"state",{keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:To()}),j(Ae(r),"dragStartMousePosition",null),j(Ae(r),"dragNodeProps",null),j(Ae(r),"currentMouseOverDroppableNodeKey",null),j(Ae(r),"listRef",i.createRef()),j(Ae(r),"onNodeDragStart",function(s,c){var u=r.state,d=u.expandedKeys,f=u.keyEntities,m=r.props.onDragStart,v=c.eventKey;r.dragNodeProps=c,r.dragStartMousePosition={x:s.clientX,y:s.clientY};var p=lr(d,v);r.setState({draggingNodeKey:v,dragChildrenKeys:Sz(v,f),indent:r.listRef.current.getIndentWidth()}),r.setExpandedKeys(p),window.addEventListener("dragend",r.onWindowDragEnd),m==null||m({event:s,node:on(c)})}),j(Ae(r),"onNodeDragEnter",function(s,c){var u=r.state,d=u.expandedKeys,f=u.keyEntities,m=u.dragChildrenKeys,v=u.flattenNodes,p=u.indent,h=r.props,g=h.onDragEnter,b=h.onExpand,C=h.allowDrop,y=h.direction,$=c.pos,S=c.eventKey;if(r.currentMouseOverDroppableNodeKey!==S&&(r.currentMouseOverDroppableNodeKey=S),!r.dragNodeProps){r.resetDragState();return}var E=uv(s,r.dragNodeProps,c,p,r.dragStartMousePosition,C,v,f,d,y),O=E.dropPosition,w=E.dropLevelOffset,x=E.dropTargetKey,I=E.dropContainerKey,P=E.dropTargetPos,N=E.dropAllowed,M=E.dragOverNodeKey;if(m.includes(x)||!N){r.resetDragState();return}if(r.delayedDragEnterLogic||(r.delayedDragEnterLogic={}),Object.keys(r.delayedDragEnterLogic).forEach(function(R){clearTimeout(r.delayedDragEnterLogic[R])}),r.dragNodeProps.eventKey!==c.eventKey&&(s.persist(),r.delayedDragEnterLogic[$]=window.setTimeout(function(){if(r.state.draggingNodeKey!==null){var R=ge(d),_=jn(f,c.eventKey);_&&(_.children||[]).length&&(R=gr(d,c.eventKey)),r.props.hasOwnProperty("expandedKeys")||r.setExpandedKeys(R),b==null||b(R,{node:on(c),expanded:!0,nativeEvent:s.nativeEvent})}},800)),r.dragNodeProps.eventKey===x&&w===0){r.resetDragState();return}r.setState({dragOverNodeKey:M,dropPosition:O,dropLevelOffset:w,dropTargetKey:x,dropContainerKey:I,dropTargetPos:P,dropAllowed:N}),g==null||g({event:s,node:on(c),expandedKeys:d})}),j(Ae(r),"onNodeDragOver",function(s,c){var u=r.state,d=u.dragChildrenKeys,f=u.flattenNodes,m=u.keyEntities,v=u.expandedKeys,p=u.indent,h=r.props,g=h.onDragOver,b=h.allowDrop,C=h.direction;if(r.dragNodeProps){var y=uv(s,r.dragNodeProps,c,p,r.dragStartMousePosition,b,f,m,v,C),$=y.dropPosition,S=y.dropLevelOffset,E=y.dropTargetKey,O=y.dropContainerKey,w=y.dropTargetPos,x=y.dropAllowed,I=y.dragOverNodeKey;d.includes(E)||!x||(r.dragNodeProps.eventKey===E&&S===0?r.state.dropPosition===null&&r.state.dropLevelOffset===null&&r.state.dropTargetKey===null&&r.state.dropContainerKey===null&&r.state.dropTargetPos===null&&r.state.dropAllowed===!1&&r.state.dragOverNodeKey===null||r.resetDragState():$===r.state.dropPosition&&S===r.state.dropLevelOffset&&E===r.state.dropTargetKey&&O===r.state.dropContainerKey&&w===r.state.dropTargetPos&&x===r.state.dropAllowed&&I===r.state.dragOverNodeKey||r.setState({dropPosition:$,dropLevelOffset:S,dropTargetKey:E,dropContainerKey:O,dropTargetPos:w,dropAllowed:x,dragOverNodeKey:I}),g==null||g({event:s,node:on(c)}))}}),j(Ae(r),"onNodeDragLeave",function(s,c){r.currentMouseOverDroppableNodeKey===c.eventKey&&!s.currentTarget.contains(s.relatedTarget)&&(r.resetDragState(),r.currentMouseOverDroppableNodeKey=null);var u=r.props.onDragLeave;u==null||u({event:s,node:on(c)})}),j(Ae(r),"onWindowDragEnd",function(s){r.onNodeDragEnd(s,null,!0),window.removeEventListener("dragend",r.onWindowDragEnd)}),j(Ae(r),"onNodeDragEnd",function(s,c){var u=r.props.onDragEnd;r.setState({dragOverNodeKey:null}),r.cleanDragState(),u==null||u({event:s,node:on(c)}),r.dragNodeProps=null,window.removeEventListener("dragend",r.onWindowDragEnd)}),j(Ae(r),"onNodeDrop",function(s,c){var u,d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,f=r.state,m=f.dragChildrenKeys,v=f.dropPosition,p=f.dropTargetKey,h=f.dropTargetPos,g=f.dropAllowed;if(g){var b=r.props.onDrop;if(r.setState({dragOverNodeKey:null}),r.cleanDragState(),p!==null){var C=D(D({},sa(p,r.getTreeNodeRequiredProps())),{},{active:((u=r.getActiveItem())===null||u===void 0?void 0:u.key)===p,data:jn(r.state.keyEntities,p).node}),y=m.includes(p);Ut(!y,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var $=rd(h),S={event:s,node:on(C),dragNode:r.dragNodeProps?on(r.dragNodeProps):null,dragNodesKeys:[r.dragNodeProps.eventKey].concat(m),dropToGap:v!==0,dropPosition:v+Number($[$.length-1])};d||b==null||b(S),r.dragNodeProps=null}}}),j(Ae(r),"cleanDragState",function(){var s=r.state.draggingNodeKey;s!==null&&r.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),r.dragStartMousePosition=null,r.currentMouseOverDroppableNodeKey=null}),j(Ae(r),"triggerExpandActionExpand",function(s,c){var u=r.state,d=u.expandedKeys,f=u.flattenNodes,m=c.expanded,v=c.key,p=c.isLeaf;if(!(p||s.shiftKey||s.metaKey||s.ctrlKey)){var h=f.filter(function(b){return b.key===v})[0],g=on(D(D({},sa(v,r.getTreeNodeRequiredProps())),{},{data:h.data}));r.setExpandedKeys(m?lr(d,v):gr(d,v)),r.onNodeExpand(s,g)}}),j(Ae(r),"onNodeClick",function(s,c){var u=r.props,d=u.onClick,f=u.expandAction;f==="click"&&r.triggerExpandActionExpand(s,c),d==null||d(s,c)}),j(Ae(r),"onNodeDoubleClick",function(s,c){var u=r.props,d=u.onDoubleClick,f=u.expandAction;f==="doubleClick"&&r.triggerExpandActionExpand(s,c),d==null||d(s,c)}),j(Ae(r),"onNodeSelect",function(s,c){var u=r.state.selectedKeys,d=r.state,f=d.keyEntities,m=d.fieldNames,v=r.props,p=v.onSelect,h=v.multiple,g=c.selected,b=c[m.key],C=!g;C?h?u=gr(u,b):u=[b]:u=lr(u,b);var y=u.map(function($){var S=jn(f,$);return S?S.node:null}).filter(Boolean);r.setUncontrolledState({selectedKeys:u}),p==null||p(u,{event:"select",selected:C,node:c,selectedNodes:y,nativeEvent:s.nativeEvent})}),j(Ae(r),"onNodeCheck",function(s,c,u){var d=r.state,f=d.keyEntities,m=d.checkedKeys,v=d.halfCheckedKeys,p=r.props,h=p.checkStrictly,g=p.onCheck,b=c.key,C,y={event:"check",node:c,checked:u,nativeEvent:s.nativeEvent};if(h){var $=u?gr(m,b):lr(m,b),S=lr(v,b);C={checked:$,halfChecked:S},y.checkedNodes=$.map(function(P){return jn(f,P)}).filter(Boolean).map(function(P){return P.node}),r.setUncontrolledState({checkedKeys:$})}else{var E=wo([].concat(ge(m),[b]),!0,f),O=E.checkedKeys,w=E.halfCheckedKeys;if(!u){var x=new Set(O);x.delete(b);var I=wo(Array.from(x),{halfCheckedKeys:w},f);O=I.checkedKeys,w=I.halfCheckedKeys}C=O,y.checkedNodes=[],y.checkedNodesPositions=[],y.halfCheckedKeys=w,O.forEach(function(P){var N=jn(f,P);if(N){var M=N.node,R=N.pos;y.checkedNodes.push(M),y.checkedNodesPositions.push({node:M,pos:R})}}),r.setUncontrolledState({checkedKeys:O},!1,{halfCheckedKeys:w})}g==null||g(C,y)}),j(Ae(r),"onNodeLoad",function(s){var c,u=s.key,d=r.state.keyEntities,f=jn(d,u);if(!(f!=null&&(c=f.children)!==null&&c!==void 0&&c.length)){var m=new Promise(function(v,p){r.setState(function(h){var g=h.loadedKeys,b=g===void 0?[]:g,C=h.loadingKeys,y=C===void 0?[]:C,$=r.props,S=$.loadData,E=$.onLoad;if(!S||b.includes(u)||y.includes(u))return null;var O=S(s);return O.then(function(){var w=r.state.loadedKeys,x=gr(w,u);E==null||E(x,{event:"load",node:s}),r.setUncontrolledState({loadedKeys:x}),r.setState(function(I){return{loadingKeys:lr(I.loadingKeys,u)}}),v()}).catch(function(w){if(r.setState(function(I){return{loadingKeys:lr(I.loadingKeys,u)}}),r.loadingRetryTimes[u]=(r.loadingRetryTimes[u]||0)+1,r.loadingRetryTimes[u]>=Fz){var x=r.state.loadedKeys;Ut(!1,"Retry for `loadData` many times but still failed. No more retry."),r.setUncontrolledState({loadedKeys:gr(x,u)}),v()}p(w)}),{loadingKeys:gr(y,u)}})});return m.catch(function(){}),m}}),j(Ae(r),"onNodeMouseEnter",function(s,c){var u=r.props.onMouseEnter;u==null||u({event:s,node:c})}),j(Ae(r),"onNodeMouseLeave",function(s,c){var u=r.props.onMouseLeave;u==null||u({event:s,node:c})}),j(Ae(r),"onNodeContextMenu",function(s,c){var u=r.props.onRightClick;u&&(s.preventDefault(),u({event:s,node:c}))}),j(Ae(r),"onFocus",function(){var s=r.props.onFocus;r.setState({focused:!0});for(var c=arguments.length,u=new Array(c),d=0;d<c;d++)u[d]=arguments[d];s==null||s.apply(void 0,u)}),j(Ae(r),"onBlur",function(){var s=r.props.onBlur;r.setState({focused:!1}),r.onActiveChange(null);for(var c=arguments.length,u=new Array(c),d=0;d<c;d++)u[d]=arguments[d];s==null||s.apply(void 0,u)}),j(Ae(r),"getTreeNodeRequiredProps",function(){var s=r.state,c=s.expandedKeys,u=s.selectedKeys,d=s.loadedKeys,f=s.loadingKeys,m=s.checkedKeys,v=s.halfCheckedKeys,p=s.dragOverNodeKey,h=s.dropPosition,g=s.keyEntities;return{expandedKeys:c||[],selectedKeys:u||[],loadedKeys:d||[],loadingKeys:f||[],checkedKeys:m||[],halfCheckedKeys:v||[],dragOverNodeKey:p,dropPosition:h,keyEntities:g}}),j(Ae(r),"setExpandedKeys",function(s){var c=r.state,u=c.treeData,d=c.fieldNames,f=Cs(u,s,d);r.setUncontrolledState({expandedKeys:s,flattenNodes:f},!0)}),j(Ae(r),"onNodeExpand",function(s,c){var u=r.state.expandedKeys,d=r.state,f=d.listChanging,m=d.fieldNames,v=r.props,p=v.onExpand,h=v.loadData,g=c.expanded,b=c[m.key];if(!f){var C=u.includes(b),y=!g;if(Ut(g&&C||!g&&!C,"Expand state not sync with index check"),u=y?gr(u,b):lr(u,b),r.setExpandedKeys(u),p==null||p(u,{node:c,expanded:y,nativeEvent:s.nativeEvent}),y&&h){var $=r.onNodeLoad(c);$&&$.then(function(){var S=Cs(r.state.treeData,u,m);r.setUncontrolledState({flattenNodes:S})}).catch(function(){var S=r.state.expandedKeys,E=lr(S,b);r.setExpandedKeys(E)})}}}),j(Ae(r),"onListChangeStart",function(){r.setUncontrolledState({listChanging:!0})}),j(Ae(r),"onListChangeEnd",function(){setTimeout(function(){r.setUncontrolledState({listChanging:!1})})}),j(Ae(r),"onActiveChange",function(s){var c=r.state.activeKey,u=r.props,d=u.onActiveChange,f=u.itemScrollOffset,m=f===void 0?0:f;c!==s&&(r.setState({activeKey:s}),s!==null&&r.scrollTo({key:s,offset:m}),d==null||d(s))}),j(Ae(r),"getActiveItem",function(){var s=r.state,c=s.activeKey,u=s.flattenNodes;return c===null?null:u.find(function(d){var f=d.key;return f===c})||null}),j(Ae(r),"offsetActiveKey",function(s){var c=r.state,u=c.flattenNodes,d=c.activeKey,f=u.findIndex(function(p){var h=p.key;return h===d});f===-1&&s<0&&(f=u.length),f=(f+s+u.length)%u.length;var m=u[f];if(m){var v=m.key;r.onActiveChange(v)}else r.onActiveChange(null)}),j(Ae(r),"onKeyDown",function(s){var c=r.state,u=c.activeKey,d=c.expandedKeys,f=c.checkedKeys,m=c.fieldNames,v=r.props,p=v.onKeyDown,h=v.checkable,g=v.selectable;switch(s.which){case Le.UP:{r.offsetActiveKey(-1),s.preventDefault();break}case Le.DOWN:{r.offsetActiveKey(1),s.preventDefault();break}}var b=r.getActiveItem();if(b&&b.data){var C=r.getTreeNodeRequiredProps(),y=b.data.isLeaf===!1||!!(b.data[m.children]||[]).length,$=on(D(D({},sa(u,C)),{},{data:b.data,active:!0}));switch(s.which){case Le.LEFT:{y&&d.includes(u)?r.onNodeExpand({},$):b.parent&&r.onActiveChange(b.parent.key),s.preventDefault();break}case Le.RIGHT:{y&&!d.includes(u)?r.onNodeExpand({},$):b.children&&b.children.length&&r.onActiveChange(b.children[0].key),s.preventDefault();break}case Le.ENTER:case Le.SPACE:{h&&!$.disabled&&$.checkable!==!1&&!$.disableCheckbox?r.onNodeCheck({},$,!f.includes(u)):!h&&g&&!$.disabled&&$.selectable!==!1&&r.onNodeSelect({},$);break}}}p==null||p(s)}),j(Ae(r),"setUncontrolledState",function(s){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!r.destroyed){var d=!1,f=!0,m={};Object.keys(s).forEach(function(v){if(r.props.hasOwnProperty(v)){f=!1;return}d=!0,m[v]=s[v]}),d&&(!c||f)&&r.setState(D(D({},m),u))}}),j(Ae(r),"scrollTo",function(s){r.listRef.current.scrollTo(s)}),r}return nn(n,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var o=this.props,a=o.activeKey,l=o.itemScrollOffset,s=l===void 0?0:l;a!==void 0&&a!==this.state.activeKey&&(this.setState({activeKey:a}),a!==null&&this.scrollTo({key:a,offset:s}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var o=this.state,a=o.focused,l=o.flattenNodes,s=o.keyEntities,c=o.draggingNodeKey,u=o.activeKey,d=o.dropLevelOffset,f=o.dropContainerKey,m=o.dropTargetKey,v=o.dropPosition,p=o.dragOverNodeKey,h=o.indent,g=this.props,b=g.prefixCls,C=g.className,y=g.style,$=g.showLine,S=g.focusable,E=g.tabIndex,O=E===void 0?0:E,w=g.selectable,x=g.showIcon,I=g.icon,P=g.switcherIcon,N=g.draggable,M=g.checkable,R=g.checkStrictly,_=g.disabled,T=g.motion,z=g.loadData,B=g.filterTreeNode,L=g.height,F=g.itemHeight,K=g.scrollWidth,W=g.virtual,A=g.titleRender,V=g.dropIndicatorRender,G=g.onContextMenu,U=g.onScroll,ne=g.direction,J=g.rootClassName,Q=g.rootStyle,le=zn(this.props,{aria:!0,data:!0}),re;N&&(Ue(N)==="object"?re=N:typeof N=="function"?re={nodeDraggable:N}:re={});var X={prefixCls:b,selectable:w,showIcon:x,icon:I,switcherIcon:P,draggable:re,draggingNodeKey:c,checkable:M,checkStrictly:R,disabled:_,keyEntities:s,dropLevelOffset:d,dropContainerKey:f,dropTargetKey:m,dropPosition:v,dragOverNodeKey:p,indent:h,direction:ne,dropIndicatorRender:V,loadData:z,filterTreeNode:B,titleRender:A,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop};return i.createElement(nd.Provider,{value:X},i.createElement("div",{className:k(b,C,J,j(j(j({},"".concat(b,"-show-line"),$),"".concat(b,"-focused"),a),"".concat(b,"-active-focused"),u!==null)),style:Q},i.createElement(Az,me({ref:this.listRef,prefixCls:b,style:y,data:l,disabled:_,selectable:w,checkable:!!M,motion:T,dragging:c!==null,height:L,itemHeight:F,virtual:W,focusable:S,focused:a,tabIndex:O,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:G,onScroll:U,scrollWidth:K},this.getTreeNodeRequiredProps(),le))))}}],[{key:"getDerivedStateFromProps",value:function(o,a){var l=a.prevProps,s={prevProps:o};function c(O){return!l&&o.hasOwnProperty(O)||l&&l[O]!==o[O]}var u,d=a.fieldNames;if(c("fieldNames")&&(d=To(o.fieldNames),s.fieldNames=d),c("treeData")?u=o.treeData:c("children")&&(Ut(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),u=Yh(o.children)),u){s.treeData=u;var f=Wu(u,{fieldNames:d});s.keyEntities=D(j({},to,Hb),f.keyEntities)}var m=s.keyEntities||a.keyEntities;if(c("expandedKeys")||l&&c("autoExpandParent"))s.expandedKeys=o.autoExpandParent||!l&&o.defaultExpandParent?Kc(o.expandedKeys,m):o.expandedKeys;else if(!l&&o.defaultExpandAll){var v=D({},m);delete v[to];var p=[];Object.keys(v).forEach(function(O){var w=v[O];w.children&&w.children.length&&p.push(w.key)}),s.expandedKeys=p}else!l&&o.defaultExpandedKeys&&(s.expandedKeys=o.autoExpandParent||o.defaultExpandParent?Kc(o.defaultExpandedKeys,m):o.defaultExpandedKeys);if(s.expandedKeys||delete s.expandedKeys,u||s.expandedKeys){var h=Cs(u||a.treeData,s.expandedKeys||a.expandedKeys,d);s.flattenNodes=h}if(o.selectable&&(c("selectedKeys")?s.selectedKeys=dv(o.selectedKeys,o):!l&&o.defaultSelectedKeys&&(s.selectedKeys=dv(o.defaultSelectedKeys,o))),o.checkable){var g;if(c("checkedKeys")?g=Ps(o.checkedKeys)||{}:!l&&o.defaultCheckedKeys?g=Ps(o.defaultCheckedKeys)||{}:u&&(g=Ps(o.checkedKeys)||{checkedKeys:a.checkedKeys,halfCheckedKeys:a.halfCheckedKeys}),g){var b=g,C=b.checkedKeys,y=C===void 0?[]:C,$=b.halfCheckedKeys,S=$===void 0?[]:$;if(!o.checkStrictly){var E=wo(y,!0,m);y=E.checkedKeys,S=E.halfCheckedKeys}s.checkedKeys=y,s.halfCheckedKeys=S}}return c("loadedKeys")&&(s.loadedKeys=o.loadedKeys),s}}]),n})(i.Component);j(od,"defaultProps",{prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:Mz,allowDrop:function(){return!0},expandAction:!1});j(od,"TreeNode",Ma);var Hz={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"},kz=function(t,n){return i.createElement(Pt,me({},t,{ref:n,icon:Hz}))},kb=i.forwardRef(kz),Vz={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"},Kz=function(t,n){return i.createElement(Pt,me({},t,{ref:n,icon:Vz}))},Wz=i.forwardRef(Kz),Gz={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"},qz=function(t,n){return i.createElement(Pt,me({},t,{ref:n,icon:Gz}))},Uz=i.forwardRef(qz),Xz={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},Yz=function(t,n){return i.createElement(Pt,me({},t,{ref:n,icon:Xz}))},Qz=i.forwardRef(Yz);const Zz=({treeCls:e,treeNodeCls:t,directoryNodeSelectedBg:n,directoryNodeSelectedColor:r,motionDurationMid:o,borderRadius:a,controlItemBgHover:l})=>({[`${e}${e}-directory ${t}`]:{[`${e}-node-content-wrapper`]:{position:"static",[`&:has(${e}-drop-indicator)`]:{position:"relative"},[`> *:not(${e}-drop-indicator)`]:{position:"relative"},"&:hover":{background:"transparent"},"&:before":{position:"absolute",inset:0,transition:`background-color ${o}`,content:'""',borderRadius:a},"&:hover:before":{background:l}},[`${e}-switcher, ${e}-checkbox, ${e}-draggable-icon`]:{zIndex:1},"&-selected":{background:n,borderRadius:a,[`${e}-switcher, ${e}-draggable-icon`]:{color:r},[`${e}-node-content-wrapper`]:{color:r,background:"transparent","&, &:hover":{color:r},"&:before, &:hover:before":{background:n}}}}}),Jz=new Tt("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),ej=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),tj=(e,t)=>({[`.${e}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:t.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${H(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),nj=(e,t)=>{const{treeCls:n,treeNodeCls:r,treeNodePadding:o,titleHeight:a,indentSize:l,nodeSelectedBg:s,nodeHoverBg:c,colorTextQuaternary:u,controlItemBgActiveDisabled:d}=t;return{[n]:Object.assign(Object.assign({},kt(t)),{"--rc-virtual-list-scrollbar-bg":t.colorSplit,background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,"&-rtl":{direction:"rtl"},[`&${n}-rtl ${n}-switcher_close ${n}-switcher-icon svg`]:{transform:"rotate(90deg)"},[`&-focused:not(:hover):not(${n}-active-focused)`]:dr(t),[`${n}-list-holder-inner`]:{alignItems:"flex-start"},[`&${n}-block-node`]:{[`${n}-list-holder-inner`]:{alignItems:"stretch",[`${n}-node-content-wrapper`]:{flex:"auto"},[`${r}.dragging:after`]:{position:"absolute",inset:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:Jz,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:t.borderRadius}}},[r]:{display:"flex",alignItems:"flex-start",marginBottom:o,lineHeight:H(a),position:"relative","&:before":{content:'""',position:"absolute",zIndex:1,insetInlineStart:0,width:"100%",top:"100%",height:o},[`&-disabled ${n}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}},[`${n}-checkbox-disabled + ${n}-node-selected,&${r}-disabled${r}-selected ${n}-node-content-wrapper`]:{backgroundColor:d},[`${n}-checkbox-disabled`]:{pointerEvents:"unset"},[`&:not(${r}-disabled)`]:{[`${n}-node-content-wrapper`]:{"&:hover":{color:t.nodeHoverColor}}},[`&-active ${n}-node-content-wrapper`]:{background:t.controlItemBgHover},[`&:not(${r}-disabled).filter-node ${n}-title`]:{color:t.colorPrimary,fontWeight:t.fontWeightStrong},"&-draggable":{cursor:"grab",[`${n}-draggable-icon`]:{flexShrink:0,width:a,textAlign:"center",visibility:"visible",color:u},[`&${r}-disabled ${n}-draggable-icon`]:{visibility:"hidden"}}},[`${n}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:l}},[`${n}-draggable-icon`]:{visibility:"hidden"},[`${n}-switcher, ${n}-checkbox`]:{marginInlineEnd:t.calc(t.calc(a).sub(t.controlInteractiveSize)).div(2).equal()},[`${n}-switcher`]:Object.assign(Object.assign({},ej(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:a,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${t.motionDurationSlow}`,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:a,height:a,position:"absolute",left:{_skip_check_:!0,value:0},top:0,borderRadius:t.borderRadius,transition:`all ${t.motionDurationSlow}`},[`&:not(${n}-switcher-noop):hover:before`]:{backgroundColor:t.colorBgTextHover},[`&_close ${n}-switcher-icon svg`]:{transform:"rotate(-90deg)"},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(a).div(2).equal(),bottom:t.calc(o).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:t.calc(t.calc(a).div(2).equal()).mul(.8).equal(),height:t.calc(a).div(2).equal(),borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${n}-node-content-wrapper`]:Object.assign(Object.assign({position:"relative",minHeight:a,paddingBlock:0,paddingInline:t.paddingXS,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`},tj(e,t)),{"&:hover":{backgroundColor:c},[`&${n}-node-selected`]:{color:t.nodeSelectedColor,backgroundColor:s},[`${n}-iconEle`]:{display:"inline-block",width:a,height:a,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}}),[`${n}-unselectable ${n}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${r}.drop-container > [draggable]`]:{boxShadow:`0 0 0 2px ${t.colorPrimary}`},"&-show-line":{[`${n}-indent-unit`]:{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(a).div(2).equal(),bottom:t.calc(o).mul(-1).equal(),borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&-end:before":{display:"none"}},[`${n}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${r}-leaf-last ${n}-switcher-leaf-line:before`]:{top:"auto !important",bottom:"auto !important",height:`${H(t.calc(a).div(2).equal())} !important`}})}},rj=(e,t,n=!0)=>{const r=`.${e}`,o=`${r}-treenode`,a=t.calc(t.paddingXS).div(2).equal(),l=wt(t,{treeCls:r,treeNodeCls:o,treeNodePadding:a});return[nj(e,l),n&&Zz(l)].filter(Boolean)},oj=e=>{const{controlHeightSM:t,controlItemBgHover:n,controlItemBgActive:r}=e,o=t;return{titleHeight:o,indentSize:o,nodeHoverBg:n,nodeHoverColor:e.colorText,nodeSelectedBg:r,nodeSelectedColor:e.colorText}},aj=e=>{const{colorTextLightSolid:t,colorPrimary:n}=e;return Object.assign(Object.assign({},oj(e)),{directoryNodeSelectedColor:t,directoryNodeSelectedBg:n})},ij=At("Tree",(e,{prefixCls:t})=>[{[e.componentCls]:Zh(`${t}-checkbox`,e)},rj(t,e),vu(e)],aj),bv=4;function lj(e){const{dropPosition:t,dropLevelOffset:n,prefixCls:r,indent:o,direction:a="ltr"}=e,l=a==="ltr"?"left":"right",s=a==="ltr"?"right":"left",c={[l]:-n*o+bv,[s]:0};switch(t){case-1:c.top=-3;break;case 1:c.bottom=-3;break;default:c.bottom=-3,c[l]=o+bv;break}return te.createElement("div",{style:c,className:`${r}-drop-indicator`})}var sj={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"},cj=function(t,n){return i.createElement(Pt,me({},t,{ref:n,icon:sj}))},uj=i.forwardRef(cj),dj={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"},fj=function(t,n){return i.createElement(Pt,me({},t,{ref:n,icon:dj}))},mj=i.forwardRef(fj),vj={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"},gj=function(t,n){return i.createElement(Pt,me({},t,{ref:n,icon:vj}))},pj=i.forwardRef(gj);const hj=e=>{var t,n;const{prefixCls:r,switcherIcon:o,treeNodeProps:a,showLine:l,switcherLoadingIcon:s}=e,{isLeaf:c,expanded:u,loading:d}=a;if(d)return i.isValidElement(s)?s:i.createElement(Ba,{className:`${r}-switcher-loading-icon`});let f;if(l&&typeof l=="object"&&(f=l.showLeafIcon),c){if(!l)return null;if(typeof f!="boolean"&&f){const p=typeof f=="function"?f(a):f,h=`${r}-switcher-line-custom-icon`;return i.isValidElement(p)?kn(p,{className:k((t=p.props)===null||t===void 0?void 0:t.className,h)}):p}return f?i.createElement(kb,{className:`${r}-switcher-line-icon`}):i.createElement("span",{className:`${r}-switcher-leaf-line`})}const m=`${r}-switcher-icon`,v=typeof o=="function"?o(a):o;return i.isValidElement(v)?kn(v,{className:k((n=v.props)===null||n===void 0?void 0:n.className,m)}):v!==void 0?v:l?u?i.createElement(mj,{className:`${r}-switcher-line-icon`}):i.createElement(pj,{className:`${r}-switcher-line-icon`}):i.createElement(uj,{className:m})},Vb=te.forwardRef((e,t)=>{var n;const{getPrefixCls:r,direction:o,virtual:a,tree:l}=te.useContext(it),{prefixCls:s,className:c,showIcon:u=!1,showLine:d,switcherIcon:f,switcherLoadingIcon:m,blockNode:v=!1,children:p,checkable:h=!1,selectable:g=!0,draggable:b,disabled:C,motion:y,style:$}=e,S=r("tree",s),E=r(),O=te.useContext(Jn),w=C??O,x=y??Object.assign(Object.assign({},Di(E)),{motionAppear:!1}),I=Object.assign(Object.assign({},e),{checkable:h,selectable:g,showIcon:u,motion:x,blockNode:v,disabled:w,showLine:!!d,dropIndicatorRender:lj}),[P,N,M]=ij(S),[,R]=Rn(),_=R.paddingXS/2+(((n=R.Tree)===null||n===void 0?void 0:n.titleHeight)||R.controlHeightSM),T=te.useMemo(()=>{if(!b)return!1;let B={};switch(typeof b){case"function":B.nodeDraggable=b;break;case"object":B=Object.assign({},b);break}return B.icon!==!1&&(B.icon=B.icon||te.createElement(Qz,null)),B},[b]),z=B=>te.createElement(hj,{prefixCls:S,switcherIcon:f,switcherLoadingIcon:m,treeNodeProps:B,showLine:d});return P(te.createElement(od,Object.assign({itemHeight:_,ref:t,virtual:a},I,{style:Object.assign(Object.assign({},l==null?void 0:l.style),$),prefixCls:S,className:k({[`${S}-icon-hide`]:!u,[`${S}-block-node`]:v,[`${S}-unselectable`]:!g,[`${S}-rtl`]:o==="rtl",[`${S}-disabled`]:w},l==null?void 0:l.className,c,N,M),direction:o,checkable:h&&te.createElement("span",{className:`${S}-checkbox-inner`}),selectable:g,switcherIcon:z,draggable:T}),p))}),yv=0,Ns=1,Cv=2;function ad(e,t,n){const{key:r,children:o}=n;function a(l){const s=l[r],c=l[o];t(s,l)!==!1&&ad(c||[],t,n)}e.forEach(a)}function bj({treeData:e,expandedKeys:t,startKey:n,endKey:r,fieldNames:o}){const a=[];let l=yv;if(n&&n===r)return[n];if(!n||!r)return[];function s(c){return c===n||c===r}return ad(e,c=>{if(l===Cv)return!1;if(s(c)){if(a.push(c),l===yv)l=Ns;else if(l===Ns)return l=Cv,!1}else l===Ns&&a.push(c);return t.includes(c)},To(o)),a}function Ms(e,t,n){const r=ge(t),o=[];return ad(e,(a,l)=>{const s=r.indexOf(a);return s!==-1&&(o.push(l),r.splice(s,1)),!!r.length},To(n)),o}var Sv=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function yj(e){const{isLeaf:t,expanded:n}=e;return t?i.createElement(kb,null):n?i.createElement(Wz,null):i.createElement(Uz,null)}function xv({treeData:e,children:t}){return e||Yh(t)}const Cj=(e,t)=>{var{defaultExpandAll:n,defaultExpandParent:r,defaultExpandedKeys:o}=e,a=Sv(e,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const l=i.useRef(null),s=i.useRef(null),c=()=>{const{keyEntities:w}=Wu(xv(a),{fieldNames:a.fieldNames});let x;return n?x=Object.keys(w):r?x=Kc(a.expandedKeys||o||[],w):x=a.expandedKeys||o||[],x},[u,d]=i.useState(a.selectedKeys||a.defaultSelectedKeys||[]),[f,m]=i.useState(()=>c());i.useEffect(()=>{"selectedKeys"in a&&d(a.selectedKeys)},[a.selectedKeys]),i.useEffect(()=>{"expandedKeys"in a&&m(a.expandedKeys)},[a.expandedKeys]);const v=(w,x)=>{var I;return"expandedKeys"in a||m(w),(I=a.onExpand)===null||I===void 0?void 0:I.call(a,w,x)},p=(w,x)=>{var I;const{multiple:P,fieldNames:N}=a,{node:M,nativeEvent:R}=x,{key:_=""}=M,T=xv(a),z=Object.assign(Object.assign({},x),{selected:!0}),B=(R==null?void 0:R.ctrlKey)||(R==null?void 0:R.metaKey),L=R==null?void 0:R.shiftKey;let F;P&&B?(F=w,l.current=_,s.current=F,z.selectedNodes=Ms(T,F,N)):P&&L?(F=Array.from(new Set([].concat(ge(s.current||[]),ge(bj({treeData:T,expandedKeys:f,startKey:_,endKey:l.current,fieldNames:N}))))),z.selectedNodes=Ms(T,F,N)):(F=[_],l.current=_,s.current=F,z.selectedNodes=Ms(T,F,N)),(I=a.onSelect)===null||I===void 0||I.call(a,F,z),"selectedKeys"in a||d(F)},{getPrefixCls:h,direction:g}=i.useContext(it),{prefixCls:b,className:C,showIcon:y=!0,expandAction:$="click"}=a,S=Sv(a,["prefixCls","className","showIcon","expandAction"]),E=h("tree",b),O=k(`${E}-directory`,{[`${E}-directory-rtl`]:g==="rtl"},C);return i.createElement(Vb,Object.assign({icon:yj,ref:t,blockNode:!0},S,{showIcon:y,expandAction:$,prefixCls:E,className:O,expandedKeys:f,selectedKeys:u,onSelect:p,onExpand:v}))},Sj=i.forwardRef(Cj),id=Vb;id.DirectoryTree=Sj;id.TreeNode=Ma;const $v=e=>{const{value:t,filterSearch:n,tablePrefixCls:r,locale:o,onChange:a}=e;return n?i.createElement("div",{className:`${r}-filter-dropdown-search`},i.createElement(Ga,{prefix:i.createElement(Mu,null),placeholder:o.filterSearchPlaceholder,onChange:a,value:t,htmlSize:1,className:`${r}-filter-dropdown-search-input`})):null},xj=e=>{const{keyCode:t}=e;t===Le.ENTER&&e.stopPropagation()},$j=i.forwardRef((e,t)=>i.createElement("div",{className:e.className,onClick:n=>n.stopPropagation(),onKeyDown:xj,ref:t},e.children));function Eo(e){let t=[];return(e||[]).forEach(({value:n,children:r})=>{t.push(n),r&&(t=[].concat(ge(t),ge(Eo(r))))}),t}function wj(e){return e.some(({children:t})=>t)}function Kb(e,t){return typeof t=="string"||typeof t=="number"?t==null?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()):!1}function Wb({filters:e,prefixCls:t,filteredKeys:n,filterMultiple:r,searchValue:o,filterSearch:a}){return e.map((l,s)=>{const c=String(l.value);if(l.children)return{key:c||s,label:l.text,popupClassName:`${t}-dropdown-submenu`,children:Wb({filters:l.children,prefixCls:t,filteredKeys:n,filterMultiple:r,searchValue:o,filterSearch:a})};const u=r?_o:ka,d={key:l.value!==void 0?c:s,label:i.createElement(i.Fragment,null,i.createElement(u,{checked:n.includes(c)}),i.createElement("span",null,l.text))};return o.trim()?typeof a=="function"?a(o,l)?d:null:Kb(o,l.text)?d:null:d})}function Ts(e){return e||[]}const Ej=e=>{var t,n,r,o;const{tablePrefixCls:a,prefixCls:l,column:s,dropdownPrefixCls:c,columnKey:u,filterOnClose:d,filterMultiple:f,filterMode:m="menu",filterSearch:v=!1,filterState:p,triggerFilter:h,locale:g,children:b,getPopupContainer:C,rootClassName:y}=e,{filterResetToDefaultFilteredValue:$,defaultFilteredValue:S,filterDropdownProps:E={},filterDropdownOpen:O,filterDropdownVisible:w,onFilterDropdownVisibleChange:x,onFilterDropdownOpenChange:I}=s,[P,N]=i.useState(!1),M=!!(p&&(!((t=p.filteredKeys)===null||t===void 0)&&t.length||p.forceFiltered)),R=ae=>{var fe;N(ae),(fe=E.onOpenChange)===null||fe===void 0||fe.call(E,ae),I==null||I(ae),x==null||x(ae)},_=(o=(r=(n=E.open)!==null&&n!==void 0?n:O)!==null&&r!==void 0?r:w)!==null&&o!==void 0?o:P,T=p==null?void 0:p.filteredKeys,[z,B]=xx(Ts(T)),L=({selectedKeys:ae})=>{B(ae)},F=(ae,{node:fe,checked:se})=>{L(f?{selectedKeys:ae}:{selectedKeys:se&&fe.key?[fe.key]:[]})};i.useEffect(()=>{P&&L({selectedKeys:Ts(T)})},[T]);const[K,W]=i.useState([]),A=ae=>{W(ae)},[V,G]=i.useState(""),U=ae=>{const{value:fe}=ae.target;G(fe)};i.useEffect(()=>{P||G("")},[P]);const ne=ae=>{const fe=ae!=null&&ae.length?ae:null;if(fe===null&&(!p||!p.filteredKeys)||ur(fe,p==null?void 0:p.filteredKeys,!0))return null;h({column:s,key:u,filteredKeys:fe})},J=()=>{R(!1),ne(z())},Q=({confirm:ae,closeDropdown:fe}={confirm:!1,closeDropdown:!1})=>{ae&&ne([]),fe&&R(!1),G(""),B($?(S||[]).map(se=>String(se)):[])},le=({closeDropdown:ae}={closeDropdown:!0})=>{ae&&R(!1),ne(z())},re=(ae,fe)=>{fe.source==="trigger"&&(ae&&T!==void 0&&B(Ts(T)),R(ae),!ae&&!s.filterDropdown&&d&&J())},X=k({[`${c}-menu-without-submenu`]:!wj(s.filters||[])}),oe=ae=>{if(ae.target.checked){const fe=Eo(s==null?void 0:s.filters).map(se=>String(se));B(fe)}else B([])},Z=({filters:ae})=>(ae||[]).map((fe,se)=>{const ce=String(fe.value),Se={title:fe.text,key:fe.value!==void 0?ce:String(se)};return fe.children&&(Se.children=Z({filters:fe.children})),Se}),q=ae=>{var fe;return Object.assign(Object.assign({},ae),{text:ae.title,value:ae.key,children:((fe=ae.children)===null||fe===void 0?void 0:fe.map(se=>q(se)))||[]})};let Y;const{direction:ie,renderEmpty:ue}=i.useContext(it);if(typeof s.filterDropdown=="function")Y=s.filterDropdown({prefixCls:`${c}-custom`,setSelectedKeys:ae=>L({selectedKeys:ae}),selectedKeys:z(),confirm:le,clearFilters:Q,filters:s.filters,visible:_,close:()=>{R(!1)}});else if(s.filterDropdown)Y=s.filterDropdown;else{const ae=z()||[],fe=()=>{var ce,Se;const we=(ce=ue==null?void 0:ue("Table.filter"))!==null&&ce!==void 0?ce:i.createElement(pr,{image:pr.PRESENTED_IMAGE_SIMPLE,description:g.filterEmptyText,styles:{image:{height:24}},style:{margin:0,padding:"16px 0"}});if((s.filters||[]).length===0)return we;if(m==="tree")return i.createElement(i.Fragment,null,i.createElement($v,{filterSearch:v,value:V,onChange:U,tablePrefixCls:a,locale:g}),i.createElement("div",{className:`${a}-filter-dropdown-tree`},f?i.createElement(_o,{checked:ae.length===Eo(s.filters).length,indeterminate:ae.length>0&&ae.length<Eo(s.filters).length,className:`${a}-filter-dropdown-checkall`,onChange:oe},(Se=g==null?void 0:g.filterCheckall)!==null&&Se!==void 0?Se:g==null?void 0:g.filterCheckAll):null,i.createElement(id,{checkable:!0,selectable:!1,blockNode:!0,multiple:f,checkStrictly:!f,className:`${c}-menu`,onCheck:F,checkedKeys:ae,selectedKeys:ae,showIcon:!1,treeData:Z({filters:s.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:V.trim()?Oe=>typeof v=="function"?v(V,q(Oe)):Kb(V,Oe.title):void 0})));const je=Wb({filters:s.filters||[],filterSearch:v,prefixCls:l,filteredKeys:z(),filterMultiple:f,searchValue:V}),Ne=je.every(Oe=>Oe===null);return i.createElement(i.Fragment,null,i.createElement($v,{filterSearch:v,value:V,onChange:U,tablePrefixCls:a,locale:g}),Ne?we:i.createElement(Vo,{selectable:!0,multiple:f,prefixCls:`${c}-menu`,className:X,onSelect:L,onDeselect:L,selectedKeys:ae,getPopupContainer:C,openKeys:K,onOpenChange:A,items:je}))},se=()=>$?ur((S||[]).map(ce=>String(ce)),ae,!0):ae.length===0;Y=i.createElement(i.Fragment,null,fe(),i.createElement("div",{className:`${l}-dropdown-btns`},i.createElement(Jr,{type:"link",size:"small",disabled:se(),onClick:()=>Q()},g.filterReset),i.createElement(Jr,{type:"primary",size:"small",onClick:J},g.filterConfirm)))}s.filterDropdown&&(Y=i.createElement(Ih,{selectable:void 0},Y)),Y=i.createElement($j,{className:`${l}-dropdown`},Y);const be=zi({trigger:["click"],placement:ie==="rtl"?"bottomLeft":"bottomRight",children:(()=>{let ae;return typeof s.filterIcon=="function"?ae=s.filterIcon(M):s.filterIcon?ae=s.filterIcon:ae=i.createElement(Nz,null),i.createElement("span",{role:"button",tabIndex:-1,className:k(`${l}-trigger`,{active:M}),onClick:fe=>{fe.stopPropagation()}},ae)})(),getPopupContainer:C},Object.assign(Object.assign({},E),{rootClassName:k(y,E.rootClassName),open:_,onOpenChange:re,popupRender:()=>typeof(E==null?void 0:E.dropdownRender)=="function"?E.dropdownRender(Y):Y}));return i.createElement("div",{className:`${l}-column`},i.createElement("span",{className:`${a}-column-title`},b),i.createElement(Uu,Object.assign({},be)))},Xc=(e,t,n)=>{let r=[];return(e||[]).forEach((o,a)=>{var l;const s=qo(a,n),c=o.filterDropdown!==void 0;if(o.filters||c||"onFilter"in o)if("filteredValue"in o){let u=o.filteredValue;c||(u=(l=u==null?void 0:u.map(String))!==null&&l!==void 0?l:u),r.push({column:o,key:zr(o,s),filteredKeys:u,forceFiltered:o.filtered})}else r.push({column:o,key:zr(o,s),filteredKeys:t&&o.defaultFilteredValue?o.defaultFilteredValue:void 0,forceFiltered:o.filtered});"children"in o&&(r=[].concat(ge(r),ge(Xc(o.children,t,s))))}),r};function Gb(e,t,n,r,o,a,l,s,c){return n.map((u,d)=>{const f=qo(d,s),{filterOnClose:m=!0,filterMultiple:v=!0,filterMode:p,filterSearch:h}=u;let g=u;if(g.filters||g.filterDropdown){const b=zr(g,f),C=r.find(({key:y})=>b===y);g=Object.assign(Object.assign({},g),{title:y=>i.createElement(Ej,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:g,columnKey:b,filterState:C,filterOnClose:m,filterMultiple:v,filterMode:p,filterSearch:h,triggerFilter:a,locale:o,getPopupContainer:l,rootClassName:c},Bl(u.title,y))})}return"children"in g&&(g=Object.assign(Object.assign({},g),{children:Gb(e,t,g.children,r,o,a,l,f,c)})),g})}const wv=e=>{const t={};return e.forEach(({key:n,filteredKeys:r,column:o})=>{const a=n,{filters:l,filterDropdown:s}=o;if(s)t[a]=r||null;else if(Array.isArray(r)){const c=Eo(l);t[a]=c.filter(u=>r.includes(String(u)))}else t[a]=null}),t},Yc=(e,t,n)=>t.reduce((o,a)=>{const{column:{onFilter:l,filters:s},filteredKeys:c}=a;return l&&c&&c.length?o.map(u=>Object.assign({},u)).filter(u=>c.some(d=>{const f=Eo(s),m=f.findIndex(p=>String(p)===String(d)),v=m!==-1?f[m]:d;return u[n]&&(u[n]=Yc(u[n],t,n)),l(v,u)})):o},e),qb=e=>e.flatMap(t=>"children"in t?[t].concat(ge(qb(t.children||[]))):[t]),Oj=e=>{const{prefixCls:t,dropdownPrefixCls:n,mergedColumns:r,onFilterChange:o,getPopupContainer:a,locale:l,rootClassName:s}=e;Br();const c=i.useMemo(()=>qb(r||[]),[r]),[u,d]=i.useState(()=>Xc(c,!0)),f=i.useMemo(()=>{const h=Xc(c,!1);if(h.length===0)return h;let g=!0;if(h.forEach(({filteredKeys:b})=>{b!==void 0&&(g=!1)}),g){const b=(c||[]).map((C,y)=>zr(C,qo(y)));return u.filter(({key:C})=>b.includes(C)).map(C=>{const y=c[b.indexOf(C.key)];return Object.assign(Object.assign({},C),{column:Object.assign(Object.assign({},C.column),y),forceFiltered:y.filtered})})}return h},[c,u]),m=i.useMemo(()=>wv(f),[f]),v=h=>{const g=f.filter(({key:b})=>b!==h.key);g.push(h),d(g),o(wv(g),g)};return[h=>Gb(t,n,h,f,l,v,a,void 0,s),f,m]},Ij=(e,t,n)=>{const r=i.useRef({});function o(a){var l;if(!r.current||r.current.data!==e||r.current.childrenColumnName!==t||r.current.getRowKey!==n){let c=function(u){u.forEach((d,f)=>{const m=n(d,f);s.set(m,d),d&&typeof d=="object"&&t in d&&c(d[t]||[])})};const s=new Map;c(e),r.current={data:e,childrenColumnName:t,kvMap:s,getRowKey:n}}return(l=r.current.kvMap)===null||l===void 0?void 0:l.get(a)}return[o]};var Rj=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Ub=10;function Pj(e,t){const n={current:e.current,pageSize:e.pageSize};return Object.keys(t&&typeof t=="object"?t:{}).forEach(o=>{const a=e[o];typeof a!="function"&&(n[o]=a)}),n}function Nj(e,t,n){const r=n&&typeof n=="object"?n:{},{total:o=0}=r,a=Rj(r,["total"]),[l,s]=i.useState(()=>({current:"defaultCurrent"in a?a.defaultCurrent:1,pageSize:"defaultPageSize"in a?a.defaultPageSize:Ub})),c=zi(l,a,{total:o>0?o:e}),u=Math.ceil((o||e)/c.pageSize);c.current>u&&(c.current=u||1);const d=(m,v)=>{s({current:m??1,pageSize:v||c.pageSize})},f=(m,v)=>{var p;n&&((p=n.onChange)===null||p===void 0||p.call(n,m,v)),d(m,v),t(m,v||(c==null?void 0:c.pageSize))};return n===!1?[{},()=>{}]:[Object.assign(Object.assign({},c),{onChange:f}),d]}var Mj={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},Tj=function(t,n){return i.createElement(Pt,me({},t,{ref:n,icon:Mj}))},_j=i.forwardRef(Tj),zj={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},jj=function(t,n){return i.createElement(Pt,me({},t,{ref:n,icon:zj}))},Bj=i.forwardRef(jj);const Ii="ascend",_s="descend",Ui=e=>typeof e.sorter=="object"&&typeof e.sorter.multiple=="number"?e.sorter.multiple:!1,Ev=e=>typeof e=="function"?e:e&&typeof e=="object"&&e.compare?e.compare:!1,Dj=(e,t)=>t?e[e.indexOf(t)+1]:e[0],Qc=(e,t,n)=>{let r=[];const o=(a,l)=>{r.push({column:a,key:zr(a,l),multiplePriority:Ui(a),sortOrder:a.sortOrder})};return(e||[]).forEach((a,l)=>{const s=qo(l,n);a.children?("sortOrder"in a&&o(a,s),r=[].concat(ge(r),ge(Qc(a.children,t,s)))):a.sorter&&("sortOrder"in a?o(a,s):t&&a.defaultSortOrder&&r.push({column:a,key:zr(a,s),multiplePriority:Ui(a),sortOrder:a.defaultSortOrder}))}),r},Xb=(e,t,n,r,o,a,l,s)=>(t||[]).map((u,d)=>{const f=qo(d,s);let m=u;if(m.sorter){const v=m.sortDirections||o,p=m.showSorterTooltip===void 0?l:m.showSorterTooltip,h=zr(m,f),g=n.find(({key:x})=>x===h),b=g?g.sortOrder:null,C=Dj(v,b);let y;if(u.sortIcon)y=u.sortIcon({sortOrder:b});else{const x=v.includes(Ii)&&i.createElement(Bj,{className:k(`${e}-column-sorter-up`,{active:b===Ii})}),I=v.includes(_s)&&i.createElement(_j,{className:k(`${e}-column-sorter-down`,{active:b===_s})});y=i.createElement("span",{className:k(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!!(x&&I)})},i.createElement("span",{className:`${e}-column-sorter-inner`,"aria-hidden":"true"},x,I))}const{cancelSort:$,triggerAsc:S,triggerDesc:E}=a||{};let O=$;C===_s?O=E:C===Ii&&(O=S);const w=typeof p=="object"?Object.assign({title:O},p):{title:O};m=Object.assign(Object.assign({},m),{className:k(m.className,{[`${e}-column-sort`]:b}),title:x=>{const I=`${e}-column-sorters`,P=i.createElement("span",{className:`${e}-column-title`},Bl(u.title,x)),N=i.createElement("div",{className:I},P,y);return p?typeof p!="boolean"&&(p==null?void 0:p.target)==="sorter-icon"?i.createElement("div",{className:k(I,`${I}-tooltip-target-sorter`)},P,i.createElement(Oa,Object.assign({},w),y)):i.createElement(Oa,Object.assign({},w),N):N},onHeaderCell:x=>{var I;const P=((I=u.onHeaderCell)===null||I===void 0?void 0:I.call(u,x))||{},N=P.onClick,M=P.onKeyDown;P.onClick=T=>{r({column:u,key:h,sortOrder:C,multiplePriority:Ui(u)}),N==null||N(T)},P.onKeyDown=T=>{T.keyCode===Le.ENTER&&(r({column:u,key:h,sortOrder:C,multiplePriority:Ui(u)}),M==null||M(T))};const R=Iz(u.title,{}),_=R==null?void 0:R.toString();return b&&(P["aria-sort"]=b==="ascend"?"ascending":"descending"),P["aria-label"]=_||"",P.className=k(P.className,`${e}-column-has-sorters`),P.tabIndex=0,u.ellipsis&&(P.title=(R??"").toString()),P}})}return"children"in m&&(m=Object.assign(Object.assign({},m),{children:Xb(e,m.children,n,r,o,a,l,f)})),m}),Ov=e=>{const{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}},Iv=e=>{const t=e.filter(({sortOrder:n})=>n).map(Ov);if(t.length===0&&e.length){const n=e.length-1;return Object.assign(Object.assign({},Ov(e[n])),{column:void 0,order:void 0,field:void 0,columnKey:void 0})}return t.length<=1?t[0]||{}:t},Zc=(e,t,n)=>{const r=t.slice().sort((l,s)=>s.multiplePriority-l.multiplePriority),o=e.slice(),a=r.filter(({column:{sorter:l},sortOrder:s})=>Ev(l)&&s);return a.length?o.sort((l,s)=>{for(let c=0;c<a.length;c+=1){const u=a[c],{column:{sorter:d},sortOrder:f}=u,m=Ev(d);if(m&&f){const v=m(l,s,f);if(v!==0)return f===Ii?v:-v}}return 0}).map(l=>{const s=l[n];return s?Object.assign(Object.assign({},l),{[n]:Zc(s,t,n)}):l}):o},Lj=e=>{const{prefixCls:t,mergedColumns:n,sortDirections:r,tableLocale:o,showSorterTooltip:a,onSorterChange:l}=e,[s,c]=i.useState(()=>Qc(n,!0)),u=(h,g)=>{const b=[];return h.forEach((C,y)=>{const $=qo(y,g);if(b.push(zr(C,$)),Array.isArray(C.children)){const S=u(C.children,$);b.push.apply(b,ge(S))}}),b},d=i.useMemo(()=>{let h=!0;const g=Qc(n,!1);if(!g.length){const $=u(n);return s.filter(({key:S})=>$.includes(S))}const b=[];function C($){h?b.push($):b.push(Object.assign(Object.assign({},$),{sortOrder:null}))}let y=null;return g.forEach($=>{y===null?(C($),$.sortOrder&&($.multiplePriority===!1?h=!1:y=!0)):(y&&$.multiplePriority!==!1||(h=!1),C($))}),b},[n,s]),f=i.useMemo(()=>{var h,g;const b=d.map(({column:C,sortOrder:y})=>({column:C,order:y}));return{sortColumns:b,sortColumn:(h=b[0])===null||h===void 0?void 0:h.column,sortOrder:(g=b[0])===null||g===void 0?void 0:g.order}},[d]),m=h=>{let g;h.multiplePriority===!1||!d.length||d[0].multiplePriority===!1?g=[h]:g=[].concat(ge(d.filter(({key:b})=>b!==h.key)),[h]),c(g),l(Iv(g),g)};return[h=>Xb(t,h,d,m,r,o,a),d,f,()=>Iv(d)]},Yb=(e,t)=>e.map(r=>{const o=Object.assign({},r);return o.title=Bl(r.title,t),"children"in o&&(o.children=Yb(o.children,t)),o}),Aj=e=>[i.useCallback(n=>Yb(n,e),[e])],Fj=Bb((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),Hj=Lb((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),kj=e=>{const{componentCls:t,lineWidth:n,lineType:r,tableBorderColor:o,tableHeaderBg:a,tablePaddingVertical:l,tablePaddingHorizontal:s,calc:c}=e,u=`${H(n)} ${r} ${o}`,d=(f,m,v)=>({[`&${t}-${f}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${H(c(m).mul(-1).equal())}
|
|
295
|
+
${H(c(c(v).add(n)).mul(-1).equal())}`}}}}}});return{[`${t}-wrapper`]:{[`${t}${t}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${t}-title`]:{border:u,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:u,borderTop:u,[`
|
|
296
|
+
> ${t}-content,
|
|
297
|
+
> ${t}-header,
|
|
298
|
+
> ${t}-body,
|
|
299
|
+
> ${t}-summary
|
|
300
|
+
`]:{"> table":{"\n > thead > tr > th,\n > thead > tr > td,\n > tbody > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ":{borderInlineEnd:u},"> thead":{"> tr:not(:last-child) > th":{borderBottom:u},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${t}-cell-fix-right-first::after`]:{borderInlineEnd:u}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${H(c(l).mul(-1).equal())} ${H(c(c(s).add(n)).mul(-1).equal())}`,"&::after":{position:"absolute",top:0,insetInlineEnd:n,bottom:0,borderInlineEnd:u,content:'""'}}}}}},[`&${t}-scroll-horizontal`]:{[`> ${t}-container > ${t}-body`]:{"> table > tbody":{[`
|
|
301
|
+
> tr${t}-expanded-row,
|
|
302
|
+
> tr${t}-placeholder
|
|
303
|
+
`]:{"> th, > td":{borderInlineEnd:0}}}}}},d("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle)),d("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall)),{[`> ${t}-footer`]:{border:u,borderTop:0}}),[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${H(n)} 0 ${H(n)} ${a}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:u}}}},Vj=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:Object.assign(Object.assign({},Cr),{wordBreak:"keep-all",[`
|
|
304
|
+
&${t}-cell-fix-left-last,
|
|
305
|
+
&${t}-cell-fix-right-first
|
|
306
|
+
`]:{overflow:"visible",[`${t}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${t}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},Kj=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:"center",color:e.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:e.colorBgContainer}}}}},Wj=e=>{const{componentCls:t,antCls:n,motionDurationSlow:r,lineWidth:o,paddingXS:a,lineType:l,tableBorderColor:s,tableExpandIconBg:c,tableExpandColumnWidth:u,borderRadius:d,tablePaddingVertical:f,tablePaddingHorizontal:m,tableExpandedRowBg:v,paddingXXS:p,expandIconMarginTop:h,expandIconSize:g,expandIconHalfInner:b,expandIconScale:C,calc:y}=e,$=`${H(o)} ${l} ${s}`,S=y(p).sub(o).equal();return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:u},[`${t}-row-expand-icon-cell`]:{textAlign:"center",[`${t}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${t}-row-indent`]:{height:1,float:"left"},[`${t}-row-expand-icon`]:Object.assign(Object.assign({},WC(e)),{position:"relative",float:"left",width:g,height:g,color:"inherit",lineHeight:H(g),background:c,border:$,borderRadius:d,transform:`scale(${C})`,"&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${r} ease-out`,content:'""'},"&::before":{top:b,insetInlineEnd:S,insetInlineStart:S,height:o},"&::after":{top:S,bottom:S,insetInlineStart:b,width:o,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${t}-row-indent + ${t}-row-expand-icon`]:{marginTop:h,marginInlineEnd:a},[`tr${t}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:v}},[`${n}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"100%"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`${H(y(f).mul(-1).equal())} ${H(y(m).mul(-1).equal())}`,padding:`${H(f)} ${H(m)}`}}}},Gj=e=>{const{componentCls:t,antCls:n,iconCls:r,tableFilterDropdownWidth:o,tableFilterDropdownSearchWidth:a,paddingXXS:l,paddingXS:s,colorText:c,lineWidth:u,lineType:d,tableBorderColor:f,headerIconColor:m,fontSizeSM:v,tablePaddingHorizontal:p,borderRadius:h,motionDurationSlow:g,colorIcon:b,colorPrimary:C,tableHeaderFilterActiveBg:y,colorTextDisabled:$,tableFilterDropdownBg:S,tableFilterDropdownHeight:E,controlItemBgHover:O,controlItemBgActive:w,boxShadowSecondary:x,filterDropdownMenuBg:I,calc:P}=e,N=`${n}-dropdown`,M=`${t}-filter-dropdown`,R=`${n}-tree`,_=`${H(u)} ${d} ${f}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:P(l).mul(-1).equal(),marginInline:`${H(l)} ${H(P(p).div(2).mul(-1).equal())}`,padding:`0 ${H(l)}`,color:m,fontSize:v,borderRadius:h,cursor:"pointer",transition:`all ${g}`,"&:hover":{color:b,background:y},"&.active":{color:C}}}},{[`${n}-dropdown`]:{[M]:Object.assign(Object.assign({},kt(e)),{minWidth:o,backgroundColor:S,borderRadius:h,boxShadow:x,overflow:"hidden",[`${N}-menu`]:{maxHeight:E,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:I,"&:empty::after":{display:"block",padding:`${H(s)} 0`,color:$,fontSize:v,textAlign:"center",content:'"Not Found"'}},[`${M}-tree`]:{paddingBlock:`${H(s)} 0`,paddingInline:s,[R]:{padding:0},[`${R}-treenode ${R}-node-content-wrapper:hover`]:{backgroundColor:O},[`${R}-treenode-checkbox-checked ${R}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:w}}},[`${M}-search`]:{padding:s,borderBottom:_,"&-input":{input:{minWidth:a},[r]:{color:$}}},[`${M}-checkall`]:{width:"100%",marginBottom:l,marginInlineStart:l},[`${M}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${H(P(s).sub(u).equal())} ${H(s)}`,overflow:"hidden",borderTop:_}})}},{[`${n}-dropdown ${M}, ${M}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:s,color:c},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},qj=e=>{const{componentCls:t,lineWidth:n,colorSplit:r,motionDurationSlow:o,zIndexTableFixed:a,tableBg:l,zIndexTableSticky:s,calc:c}=e,u=r;return{[`${t}-wrapper`]:{[`
|
|
307
|
+
${t}-cell-fix-left,
|
|
308
|
+
${t}-cell-fix-right
|
|
309
|
+
`]:{position:"sticky !important",zIndex:a,background:l},[`
|
|
310
|
+
${t}-cell-fix-left-first::after,
|
|
311
|
+
${t}-cell-fix-left-last::after
|
|
312
|
+
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:c(n).mul(-1).equal(),width:30,transform:"translateX(100%)",transition:`box-shadow ${o}`,content:'""',pointerEvents:"none",willChange:"transform"},[`${t}-cell-fix-left-all::after`]:{display:"none"},[`
|
|
313
|
+
${t}-cell-fix-right-first::after,
|
|
314
|
+
${t}-cell-fix-right-last::after
|
|
315
|
+
`]:{position:"absolute",top:0,bottom:c(n).mul(-1).equal(),left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${o}`,content:'""',pointerEvents:"none"},[`${t}-container`]:{position:"relative","&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:c(s).add(1).equal({unit:!1}),width:30,transition:`box-shadow ${o}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${t}-ping-left`]:{[`&:not(${t}-has-fix-left) ${t}-container::before`]:{boxShadow:`inset 10px 0 8px -8px ${u}`},[`
|
|
316
|
+
${t}-cell-fix-left-first::after,
|
|
317
|
+
${t}-cell-fix-left-last::after
|
|
318
|
+
`]:{boxShadow:`inset 10px 0 8px -8px ${u}`},[`${t}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${t}-ping-right`]:{[`&:not(${t}-has-fix-right) ${t}-container::after`]:{boxShadow:`inset -10px 0 8px -8px ${u}`},[`
|
|
319
|
+
${t}-cell-fix-right-first::after,
|
|
320
|
+
${t}-cell-fix-right-last::after
|
|
321
|
+
`]:{boxShadow:`inset -10px 0 8px -8px ${u}`}},[`${t}-fixed-column-gapped`]:{[`
|
|
322
|
+
${t}-cell-fix-left-first::after,
|
|
323
|
+
${t}-cell-fix-left-last::after,
|
|
324
|
+
${t}-cell-fix-right-first::after,
|
|
325
|
+
${t}-cell-fix-right-last::after
|
|
326
|
+
`]:{boxShadow:"none"}}}}},Uj=e=>{const{componentCls:t,antCls:n,margin:r}=e;return{[`${t}-wrapper ${t}-pagination${n}-pagination`]:{margin:`${H(r)} 0`}}},Xj=e=>{const{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${H(n)} ${H(n)} 0 0`},[`${t}-title + ${t}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${t}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:n,borderStartEndRadius:n,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:n},"> *:last-child":{borderStartEndRadius:n}}},"&-footer":{borderRadius:`0 0 ${H(n)} ${H(n)}`}}}}},Yj=e=>{const{componentCls:t}=e;return{[`${t}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${t}-pagination-left`]:{justifyContent:"flex-end"},[`${t}-pagination-right`]:{justifyContent:"flex-start"},[`${t}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${t}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${t}-row-indent`]:{float:"right"}}}}},Qj=e=>{const{componentCls:t,antCls:n,iconCls:r,fontSizeIcon:o,padding:a,paddingXS:l,headerIconColor:s,headerIconHoverColor:c,tableSelectionColumnWidth:u,tableSelectedRowBg:d,tableSelectedRowHoverBg:f,tableRowHoverBg:m,tablePaddingHorizontal:v,calc:p}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:u,[`&${t}-selection-col-with-dropdown`]:{width:p(u).add(o).add(p(a).div(4)).equal()}},[`${t}-bordered ${t}-selection-col`]:{width:p(u).add(p(l).mul(2)).equal(),[`&${t}-selection-col-with-dropdown`]:{width:p(u).add(o).add(p(a).div(4)).add(p(l).mul(2)).equal()}},[`
|
|
327
|
+
table tr th${t}-selection-column,
|
|
328
|
+
table tr td${t}-selection-column,
|
|
329
|
+
${t}-selection-column
|
|
330
|
+
`]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS,textAlign:"center",[`${n}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${t}-selection-column${t}-cell-fix-left`]:{zIndex:p(e.zIndexTableFixed).add(1).equal({unit:!1})},[`table tr th${t}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${t}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${t}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:H(p(v).div(4).equal()),[r]:{color:s,fontSize:o,verticalAlign:"baseline","&:hover":{color:c}}},[`${t}-tbody`]:{[`${t}-row`]:{[`&${t}-row-selected`]:{[`> ${t}-cell`]:{background:d,"&-row-hover":{background:f}}},[`> ${t}-cell-row-hover`]:{background:m}}}}}},Zj=e=>{const{componentCls:t,tableExpandColumnWidth:n,calc:r}=e,o=(a,l,s,c)=>({[`${t}${t}-${a}`]:{fontSize:c,[`
|
|
331
|
+
${t}-title,
|
|
332
|
+
${t}-footer,
|
|
333
|
+
${t}-cell,
|
|
334
|
+
${t}-thead > tr > th,
|
|
335
|
+
${t}-tbody > tr > th,
|
|
336
|
+
${t}-tbody > tr > td,
|
|
337
|
+
tfoot > tr > th,
|
|
338
|
+
tfoot > tr > td
|
|
339
|
+
`]:{padding:`${H(l)} ${H(s)}`},[`${t}-filter-trigger`]:{marginInlineEnd:H(r(s).div(2).mul(-1).equal())},[`${t}-expanded-row-fixed`]:{margin:`${H(r(l).mul(-1).equal())} ${H(r(s).mul(-1).equal())}`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:H(r(l).mul(-1).equal()),marginInline:`${H(r(n).sub(s).equal())} ${H(r(s).mul(-1).equal())}`}},[`${t}-selection-extra`]:{paddingInlineStart:H(r(s).div(4).equal())}}});return{[`${t}-wrapper`]:Object.assign(Object.assign({},o("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle)),o("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall))}},Jj=e=>{const{componentCls:t,marginXXS:n,fontSizeIcon:r,headerIconColor:o,headerIconHoverColor:a}=e;return{[`${t}-wrapper`]:{[`${t}-thead th${t}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}, left 0s`,"&:hover":{background:e.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:e.colorPrimary},[`
|
|
340
|
+
&${t}-cell-fix-left:hover,
|
|
341
|
+
&${t}-cell-fix-right:hover
|
|
342
|
+
`]:{background:e.tableFixedHeaderSortActiveBg}},[`${t}-thead th${t}-column-sort`]:{background:e.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${t}-column-sort`]:{background:e.tableBodySortBg},[`${t}-column-title`]:{position:"relative",zIndex:1,flex:1,minWidth:0},[`${t}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${t}-column-sorters-tooltip-target-sorter`]:{"&::after":{content:"none"}},[`${t}-column-sorter`]:{marginInlineStart:n,color:o,fontSize:0,transition:`color ${e.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:r,"&.active":{color:e.colorPrimary}},[`${t}-column-sorter-up + ${t}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${t}-column-sorters:hover ${t}-column-sorter`]:{color:a}}}},e4=e=>{const{componentCls:t,opacityLoading:n,tableScrollThumbBg:r,tableScrollThumbBgHover:o,tableScrollThumbSize:a,tableScrollBg:l,zIndexTableSticky:s,stickyScrollBarBorderRadius:c,lineWidth:u,lineType:d,tableBorderColor:f}=e,m=`${H(u)} ${d} ${f}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:s,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${H(a)} !important`,zIndex:s,display:"flex",alignItems:"center",background:l,borderTop:m,opacity:n,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:a,backgroundColor:r,borderRadius:c,transition:`all ${e.motionDurationSlow}, transform 0s`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:o}}}}}}},Rv=e=>{const{componentCls:t,lineWidth:n,tableBorderColor:r,calc:o}=e,a=`${H(n)} ${e.lineType} ${r}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:a}}},[`div${t}-summary`]:{boxShadow:`0 ${H(o(n).mul(-1).equal())} 0 ${r}`}}}},t4=e=>{const{componentCls:t,motionDurationMid:n,lineWidth:r,lineType:o,tableBorderColor:a,calc:l}=e,s=`${H(r)} ${o} ${a}`,c=`${t}-expanded-row-cell`;return{[`${t}-wrapper`]:{[`${t}-tbody-virtual`]:{[`${t}-tbody-virtual-holder-inner`]:{[`
|
|
343
|
+
& > ${t}-row,
|
|
344
|
+
& > div:not(${t}-row) > ${t}-row
|
|
345
|
+
`]:{display:"flex",boxSizing:"border-box",width:"100%"}},[`${t}-cell`]:{borderBottom:s,transition:`background ${n}`},[`${t}-expanded-row`]:{[`${c}${c}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${H(r)})`,borderInlineEnd:"none"}}},[`${t}-bordered`]:{[`${t}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:s,position:"absolute"},[`${t}-cell`]:{borderInlineEnd:s,[`&${t}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:l(r).mul(-1).equal(),borderInlineStart:s}}},[`&${t}-virtual`]:{[`${t}-placeholder ${t}-cell`]:{borderInlineEnd:s,borderBottom:s}}}}}},n4=e=>{const{componentCls:t,fontWeightStrong:n,tablePaddingVertical:r,tablePaddingHorizontal:o,tableExpandColumnWidth:a,lineWidth:l,lineType:s,tableBorderColor:c,tableFontSize:u,tableBg:d,tableRadius:f,tableHeaderTextColor:m,motionDurationMid:v,tableHeaderBg:p,tableHeaderCellSplitColor:h,tableFooterTextColor:g,tableFooterBg:b,calc:C}=e,y=`${H(l)} ${s} ${c}`;return{[`${t}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%","--rc-virtual-list-scrollbar-bg":e.tableScrollBg},Zr()),{[t]:Object.assign(Object.assign({},kt(e)),{fontSize:u,background:d,borderRadius:`${H(f)} ${H(f)} 0 0`,scrollbarColor:`${e.tableScrollThumbBg} ${e.tableScrollBg}`}),table:{width:"100%",textAlign:"start",borderRadius:`${H(f)} ${H(f)} 0 0`,borderCollapse:"separate",borderSpacing:0},[`
|
|
346
|
+
${t}-cell,
|
|
347
|
+
${t}-thead > tr > th,
|
|
348
|
+
${t}-tbody > tr > th,
|
|
349
|
+
${t}-tbody > tr > td,
|
|
350
|
+
tfoot > tr > th,
|
|
351
|
+
tfoot > tr > td
|
|
352
|
+
`]:{position:"relative",padding:`${H(r)} ${H(o)}`,overflowWrap:"break-word"},[`${t}-title`]:{padding:`${H(r)} ${H(o)}`},[`${t}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:m,fontWeight:n,textAlign:"start",background:p,borderBottom:y,transition:`background ${v} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${t}-selection-column):not(${t}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:h,transform:"translateY(-50%)",transition:`background-color ${v}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${t}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${v}, border-color ${v}`,borderBottom:y,[`
|
|
353
|
+
> ${t}-wrapper:only-child,
|
|
354
|
+
> ${t}-expanded-row-fixed > ${t}-wrapper:only-child
|
|
355
|
+
`]:{[t]:{marginBlock:H(C(r).mul(-1).equal()),marginInline:`${H(C(a).sub(o).equal())}
|
|
356
|
+
${H(C(o).mul(-1).equal())}`,[`${t}-tbody > tr:last-child > td`]:{borderBottomWidth:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:m,fontWeight:n,textAlign:"start",background:p,borderBottom:y,transition:`background ${v} ease`},[`& > ${t}-measure-cell`]:{paddingBlock:"0 !important",borderBlock:"0 !important",[`${t}-measure-cell-content`]:{height:0,overflow:"hidden",pointerEvents:"none"}}}},[`${t}-footer`]:{padding:`${H(r)} ${H(o)}`,color:g,background:b}})}},r4=e=>{const{colorFillAlter:t,colorBgContainer:n,colorTextHeading:r,colorFillSecondary:o,colorFillContent:a,controlItemBgActive:l,controlItemBgActiveHover:s,padding:c,paddingSM:u,paddingXS:d,colorBorderSecondary:f,borderRadiusLG:m,controlHeight:v,colorTextPlaceholder:p,fontSize:h,fontSizeSM:g,lineHeight:b,lineWidth:C,colorIcon:y,colorIconHover:$,opacityLoading:S,controlInteractiveSize:E}=e,O=new zt(o).onBackground(n).toHexString(),w=new zt(a).onBackground(n).toHexString(),x=new zt(t).onBackground(n).toHexString(),I=new zt(y),P=new zt($),N=E/2-C,M=N*2+C*3;return{headerBg:x,headerColor:r,headerSortActiveBg:O,headerSortHoverBg:w,bodySortBg:x,rowHoverBg:x,rowSelectedBg:l,rowSelectedHoverBg:s,rowExpandedBg:t,cellPaddingBlock:c,cellPaddingInline:c,cellPaddingBlockMD:u,cellPaddingInlineMD:d,cellPaddingBlockSM:d,cellPaddingInlineSM:d,borderColor:f,headerBorderRadius:m,footerBg:x,footerColor:r,cellFontSize:h,cellFontSizeMD:h,cellFontSizeSM:h,headerSplitColor:f,fixedHeaderSortActiveBg:O,headerFilterHoverBg:a,filterDropdownMenuBg:n,filterDropdownBg:n,expandIconBg:n,selectionColumnWidth:v,stickyScrollBarBg:p,stickyScrollBarBorderRadius:100,expandIconMarginTop:(h*b-C*3)/2-Math.ceil((g*1.4-C*3)/2),headerIconColor:I.clone().setA(I.a*S).toRgbString(),headerIconHoverColor:P.clone().setA(P.a*S).toRgbString(),expandIconHalfInner:N,expandIconSize:M,expandIconScale:E/M}},Pv=2,o4=At("Table",e=>{const{colorTextHeading:t,colorSplit:n,colorBgContainer:r,controlInteractiveSize:o,headerBg:a,headerColor:l,headerSortActiveBg:s,headerSortHoverBg:c,bodySortBg:u,rowHoverBg:d,rowSelectedBg:f,rowSelectedHoverBg:m,rowExpandedBg:v,cellPaddingBlock:p,cellPaddingInline:h,cellPaddingBlockMD:g,cellPaddingInlineMD:b,cellPaddingBlockSM:C,cellPaddingInlineSM:y,borderColor:$,footerBg:S,footerColor:E,headerBorderRadius:O,cellFontSize:w,cellFontSizeMD:x,cellFontSizeSM:I,headerSplitColor:P,fixedHeaderSortActiveBg:N,headerFilterHoverBg:M,filterDropdownBg:R,expandIconBg:_,selectionColumnWidth:T,stickyScrollBarBg:z,calc:B}=e,L=wt(e,{tableFontSize:w,tableBg:r,tableRadius:O,tablePaddingVertical:p,tablePaddingHorizontal:h,tablePaddingVerticalMiddle:g,tablePaddingHorizontalMiddle:b,tablePaddingVerticalSmall:C,tablePaddingHorizontalSmall:y,tableBorderColor:$,tableHeaderTextColor:l,tableHeaderBg:a,tableFooterTextColor:E,tableFooterBg:S,tableHeaderCellSplitColor:P,tableHeaderSortBg:s,tableHeaderSortHoverBg:c,tableBodySortBg:u,tableFixedHeaderSortActiveBg:N,tableHeaderFilterActiveBg:M,tableFilterDropdownBg:R,tableRowHoverBg:d,tableSelectedRowBg:f,tableSelectedRowHoverBg:m,zIndexTableFixed:Pv,zIndexTableSticky:B(Pv).add(1).equal({unit:!1}),tableFontSizeMiddle:x,tableFontSizeSmall:I,tableSelectionColumnWidth:T,tableExpandIconBg:_,tableExpandColumnWidth:B(o).add(B(e.padding).mul(2)).equal(),tableExpandedRowBg:v,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:z,tableScrollThumbBgHover:t,tableScrollBg:n});return[n4(L),Uj(L),Rv(L),Jj(L),Gj(L),kj(L),Xj(L),Wj(L),Rv(L),Kj(L),Qj(L),qj(L),e4(L),Vj(L),Zj(L),Yj(L),t4(L)]},r4,{unitless:{expandIconScale:!0}}),Nv=[],a4=(e,t)=>{var n,r;const{prefixCls:o,className:a,rootClassName:l,style:s,size:c,bordered:u,dropdownPrefixCls:d,dataSource:f,pagination:m,rowSelection:v,rowKey:p="key",rowClassName:h,columns:g,children:b,childrenColumnName:C,onChange:y,getPopupContainer:$,loading:S,expandIcon:E,expandable:O,expandedRowRender:w,expandIconColumnIndex:x,indentSize:I,scroll:P,sortDirections:N,locale:M,showSorterTooltip:R={target:"full-header"},virtual:_}=e;Br();const T=i.useMemo(()=>g||ed(b),[g,b]),z=i.useMemo(()=>T.some(Be=>Be.responsive),[T]),B=El(z),L=i.useMemo(()=>{const Be=new Set(Object.keys(B).filter(Pe=>B[Pe]));return T.filter(Pe=>!Pe.responsive||Pe.responsive.some(Ze=>Be.has(Ze)))},[T,B]),F=Xt(e,["className","style","columns"]),{locale:K=yr,direction:W,table:A,renderEmpty:V,getPrefixCls:G,getPopupContainer:U}=i.useContext(it),ne=Dn(c),J=Object.assign(Object.assign({},K.Table),M),Q=f||Nv,le=G("table",o),re=G("dropdown",d),[,X]=Rn(),oe=Pn(le),[Z,q,Y]=o4(le,oe),ie=Object.assign(Object.assign({childrenColumnName:C,expandIconColumnIndex:x},O),{expandIcon:(n=O==null?void 0:O.expandIcon)!==null&&n!==void 0?n:(r=A==null?void 0:A.expandable)===null||r===void 0?void 0:r.expandIcon}),{childrenColumnName:ue="children"}=ie,he=i.useMemo(()=>Q.some(Be=>Be==null?void 0:Be[ue])?"nest":w||O!=null&&O.expandedRowRender?"row":null,[Q]),be={body:i.useRef(null)},ae=Oz(le),fe=i.useRef(null),se=i.useRef(null);Sx(t,()=>Object.assign(Object.assign({},se.current),{nativeElement:fe.current}));const ce=i.useMemo(()=>typeof p=="function"?p:Be=>Be==null?void 0:Be[p],[p]),[Se]=Ij(Q,ue,ce),we={},je=(Be,Pe,Ze=!1)=>{var yt,St,$t,_t;const ht=Object.assign(Object.assign({},we),Be);Ze&&((yt=we.resetPagination)===null||yt===void 0||yt.call(we),!((St=ht.pagination)===null||St===void 0)&&St.current&&(ht.pagination.current=1),m&&(($t=m.onChange)===null||$t===void 0||$t.call(m,1,(_t=ht.pagination)===null||_t===void 0?void 0:_t.pageSize))),P&&P.scrollToFirstRowOnChange!==!1&&be.body.current&&ax(0,{getContainer:()=>be.body.current}),y==null||y(ht.pagination,ht.filters,ht.sorter,{currentDataSource:Yc(Zc(Q,ht.sorterStates,ue),ht.filterStates,ue),action:Pe})},Ne=(Be,Pe)=>{je({sorter:Be,sorterStates:Pe},"sort",!1)},[Oe,Te,ve,de]=Lj({prefixCls:le,mergedColumns:L,onSorterChange:Ne,sortDirections:N||["ascend","descend"],tableLocale:J,showSorterTooltip:R}),xe=i.useMemo(()=>Zc(Q,Te,ue),[Q,Te]);we.sorter=de(),we.sorterStates=Te;const Ce=(Be,Pe)=>{je({filters:Be,filterStates:Pe},"filter",!0)},[Ee,Me,Qe]=Oj({prefixCls:le,locale:J,dropdownPrefixCls:re,mergedColumns:L,onFilterChange:Ce,getPopupContainer:$||U,rootClassName:k(l,oe)}),Ve=Yc(xe,Me,ue);we.filters=Qe,we.filterStates=Me;const Fe=i.useMemo(()=>{const Be={};return Object.keys(Qe).forEach(Pe=>{Qe[Pe]!==null&&(Be[Pe]=Qe[Pe])}),Object.assign(Object.assign({},ve),{filters:Be})},[ve,Qe]),[ft]=Aj(Fe),mt=(Be,Pe)=>{je({pagination:Object.assign(Object.assign({},we.pagination),{current:Be,pageSize:Pe})},"paginate")},[ot,Bt]=Nj(Ve.length,mt,m);we.pagination=m===!1?{}:Pj(ot,m),we.resetPagination=Bt;const bt=i.useMemo(()=>{if(m===!1||!ot.pageSize)return Ve;const{current:Be=1,total:Pe,pageSize:Ze=Ub}=ot;return Ve.length<Pe?Ve.length>Ze?Ve.slice((Be-1)*Ze,Be*Ze):Ve:Ve.slice((Be-1)*Ze,Be*Ze)},[!!m,Ve,ot==null?void 0:ot.current,ot==null?void 0:ot.pageSize,ot==null?void 0:ot.total]),[ct,et]=wz({prefixCls:le,data:Ve,pageData:bt,getRowKey:ce,getRecordByKey:Se,expandType:he,childrenColumnName:ue,locale:J,getPopupContainer:$||U},v),gt=(Be,Pe,Ze)=>{let yt;return typeof h=="function"?yt=k(h(Be,Pe,Ze)):yt=k(h),k({[`${le}-row-selected`]:et.has(ce(Be,Pe))},yt)};ie.__PARENT_RENDER_ICON__=ie.expandIcon,ie.expandIcon=ie.expandIcon||E||Ez(J),he==="nest"&&ie.expandIconColumnIndex===void 0?ie.expandIconColumnIndex=v?1:0:ie.expandIconColumnIndex>0&&v&&(ie.expandIconColumnIndex-=1),typeof ie.indentSize!="number"&&(ie.indentSize=typeof I=="number"?I:15);const dt=i.useCallback(Be=>ft(ct(Ee(Oe(Be)))),[Oe,Ee,ct]),_e=()=>{if(m===!1||!(ot!=null&&ot.total))return{};const Be=()=>ot.size||(ne==="small"||ne==="middle"?"small":void 0),Pe=tt=>{const Xe=tt==="left"?"start":tt==="right"?"end":tt;return i.createElement(LT,Object.assign({},ot,{align:ot.align||Xe,className:k(`${le}-pagination`,ot.className),size:Be()}))},Ze=W==="rtl"?"left":"right",yt=ot.position;if(yt===null||!Array.isArray(yt))return{bottom:Pe(Ze)};const St=yt.find(tt=>typeof tt=="string"&&tt.toLowerCase().includes("top")),$t=yt.find(tt=>typeof tt=="string"&&tt.toLowerCase().includes("bottom")),_t=yt.every(tt=>`${tt}`=="none"),ht=St?St.toLowerCase().replace("top",""):"",Ot=$t?$t.toLowerCase().replace("bottom",""):"",Re=!St&&!$t&&!_t,De=()=>ht?Pe(ht):void 0,rt=()=>{if(Ot)return Pe(Ot);if(Re)return Pe(Ze)};return{top:De(),bottom:rt()}},Ge=i.useMemo(()=>typeof S=="boolean"?{spinning:S}:typeof S=="object"&&S!==null?Object.assign({spinning:!0},S):void 0,[S]),He=k(Y,oe,`${le}-wrapper`,A==null?void 0:A.className,{[`${le}-wrapper-rtl`]:W==="rtl"},a,l,q),$e=Object.assign(Object.assign({},A==null?void 0:A.style),s),ye=i.useMemo(()=>Ge!=null&&Ge.spinning&&Q===Nv?null:typeof(M==null?void 0:M.emptyText)<"u"?M.emptyText:(V==null?void 0:V("Table"))||i.createElement(Wp,{componentName:"Table"}),[Ge==null?void 0:Ge.spinning,Q,M==null?void 0:M.emptyText,V]),pe=_?Hj:Fj,Ie={},Ke=i.useMemo(()=>{const{fontSize:Be,lineHeight:Pe,lineWidth:Ze,padding:yt,paddingXS:St,paddingSM:$t}=X,_t=Math.floor(Be*Pe);switch(ne){case"middle":return $t*2+_t+Ze;case"small":return St*2+_t+Ze;default:return yt*2+_t+Ze}},[X,ne]);_&&(Ie.listItemHeight=Ke);const{top:We,bottom:vt}=_e();return Z(i.createElement("div",{ref:fe,className:He,style:$e},i.createElement(xb,Object.assign({spinning:!1},Ge),We,i.createElement(pe,Object.assign({},Ie,F,{ref:se,columns:L,direction:W,expandable:ie,prefixCls:le,className:k({[`${le}-middle`]:ne==="middle",[`${le}-small`]:ne==="small",[`${le}-bordered`]:u,[`${le}-empty`]:Q.length===0},Y,oe,q),data:bt,rowKey:ce,rowClassName:gt,emptyText:ye,internalHooks:Xa,internalRefs:be,transformColumns:dt,getContainerWidth:ae,measureRowRender:Be=>i.createElement(Dr,{getPopupContainer:Pe=>Pe},Be)})),vt)))},i4=i.forwardRef(a4),l4=(e,t)=>{const n=i.useRef(0);return n.current+=1,i.createElement(i4,Object.assign({},e,{ref:t,_renderTimes:n.current}))},Ar=i.forwardRef(l4);Ar.SELECTION_COLUMN=Rr;Ar.EXPAND_COLUMN=Pr;Ar.SELECTION_ALL=Wc;Ar.SELECTION_INVERT=Gc;Ar.SELECTION_NONE=qc;Ar.Column=vz;Ar.ColumnGroup=gz;Ar.Summary=Ob;const s4=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:o,calc:a}=e,l=a(r).sub(n).equal(),s=a(t).sub(n).equal();return{[o]:Object.assign(Object.assign({},kt(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:l,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${H(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${o}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${o}-close-icon`]:{marginInlineStart:s,fontSize:e.tagIconSize,color:e.colorIcon,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${o}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${o}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:l}}),[`${o}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},ld=e=>{const{lineWidth:t,fontSizeIcon:n,calc:r}=e,o=e.fontSizeSM;return wt(e,{tagFontSize:o,tagLineHeight:H(r(e.lineHeightSM).mul(o).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},sd=e=>({defaultBg:new zt(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),Qb=At("Tag",e=>{const t=ld(e);return s4(t)},sd);var c4=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const u4=i.forwardRef((e,t)=>{const{prefixCls:n,style:r,className:o,checked:a,children:l,icon:s,onChange:c,onClick:u}=e,d=c4(e,["prefixCls","style","className","checked","children","icon","onChange","onClick"]),{getPrefixCls:f,tag:m}=i.useContext(it),v=y=>{c==null||c(!a),u==null||u(y)},p=f("tag",n),[h,g,b]=Qb(p),C=k(p,`${p}-checkable`,{[`${p}-checkable-checked`]:a},m==null?void 0:m.className,o,g,b);return h(i.createElement("span",Object.assign({},d,{ref:t,style:Object.assign(Object.assign({},r),m==null?void 0:m.style),className:C,onClick:v}),s,i.createElement("span",null,l)))}),d4=e=>Rg(e,(t,{textColor:n,lightBorderColor:r,lightColor:o,darkColor:a})=>({[`${e.componentCls}${e.componentCls}-${t}`]:{color:n,background:o,borderColor:r,"&-inverse":{color:e.colorTextLightSolid,background:a,borderColor:a},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}})),f4=ja(["Tag","preset"],e=>{const t=ld(e);return d4(t)},sd);function m4(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const mi=(e,t,n)=>{const r=m4(n);return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:e[`color${n}`],background:e[`color${r}Bg`],borderColor:e[`color${r}Border`],[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}},v4=ja(["Tag","status"],e=>{const t=ld(e);return[mi(t,"success","Success"),mi(t,"processing","Info"),mi(t,"error","Error"),mi(t,"warning","Warning")]},sd);var g4=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const p4=i.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:o,style:a,children:l,icon:s,color:c,onClose:u,bordered:d=!0,visible:f}=e,m=g4(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:v,direction:p,tag:h}=i.useContext(it),[g,b]=i.useState(!0),C=Xt(m,["closeIcon","closable"]);i.useEffect(()=>{f!==void 0&&b(f)},[f]);const y=ih(c),$=Z2(c),S=y||$,E=Object.assign(Object.assign({backgroundColor:c&&!S?c:void 0},h==null?void 0:h.style),a),O=v("tag",n),[w,x,I]=Qb(O),P=k(O,h==null?void 0:h.className,{[`${O}-${c}`]:S,[`${O}-has-color`]:c&&!S,[`${O}-hidden`]:!g,[`${O}-rtl`]:p==="rtl",[`${O}-borderless`]:!d},r,o,x,I),N=B=>{B.stopPropagation(),u==null||u(B),!B.defaultPrevented&&b(!1)},[,M]=bx(lf(e),lf(h),{closable:!1,closeIconRender:B=>{const L=i.createElement("span",{className:`${O}-close-icon`,onClick:N},B);return Yg(B,L,F=>({onClick:K=>{var W;(W=F==null?void 0:F.onClick)===null||W===void 0||W.call(F,K),N(K)},className:k(F==null?void 0:F.className,`${O}-close-icon`)}))}}),R=typeof m.onClick=="function"||l&&l.type==="a",_=s||null,T=_?i.createElement(i.Fragment,null,_,l&&i.createElement("span",null,l)):l,z=i.createElement("span",Object.assign({},C,{ref:t,className:P,style:E}),T,M,y&&i.createElement(f4,{key:"preset",prefixCls:O}),$&&i.createElement(v4,{key:"status",prefixCls:O}));return w(R?i.createElement(il,{component:"Tag"},z):z)}),h4=p4;h4.CheckableTag=u4;var b4={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"},y4=function(t,n){return i.createElement(Pt,me({},t,{ref:n,icon:b4}))},j4=i.forwardRef(y4),C4={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"},S4=function(t,n){return i.createElement(Pt,me({},t,{ref:n,icon:C4}))},B4=i.forwardRef(S4),x4={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 385.6a446.7 446.7 0 00-96-142.4 446.7 446.7 0 00-142.4-96C631.1 123.8 572.5 112 512 112s-119.1 11.8-174.4 35.2a446.7 446.7 0 00-142.4 96 446.7 446.7 0 00-96 142.4C75.8 440.9 64 499.5 64 560c0 132.7 58.3 257.7 159.9 343.1l1.7 1.4c5.8 4.8 13.1 7.5 20.6 7.5h531.7c7.5 0 14.8-2.7 20.6-7.5l1.7-1.4C901.7 817.7 960 692.7 960 560c0-60.5-11.9-119.1-35.2-174.4zM761.4 836H262.6A371.12 371.12 0 01140 560c0-99.4 38.7-192.8 109-263 70.3-70.3 163.7-109 263-109 99.4 0 192.8 38.7 263 109 70.3 70.3 109 163.7 109 263 0 105.6-44.5 205.5-122.6 276zM623.5 421.5a8.03 8.03 0 00-11.3 0L527.7 506c-18.7-5-39.4-.2-54.1 14.5a55.95 55.95 0 000 79.2 55.95 55.95 0 0079.2 0 55.87 55.87 0 0014.5-54.1l84.5-84.5c3.1-3.1 3.1-8.2 0-11.3l-28.3-28.3zM490 320h44c4.4 0 8-3.6 8-8v-80c0-4.4-3.6-8-8-8h-44c-4.4 0-8 3.6-8 8v80c0 4.4 3.6 8 8 8zm260 218v44c0 4.4 3.6 8 8 8h80c4.4 0 8-3.6 8-8v-44c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8zm12.7-197.2l-31.1-31.1a8.03 8.03 0 00-11.3 0l-56.6 56.6a8.03 8.03 0 000 11.3l31.1 31.1c3.1 3.1 8.2 3.1 11.3 0l56.6-56.6c3.1-3.1 3.1-8.2 0-11.3zm-458.6-31.1a8.03 8.03 0 00-11.3 0l-31.1 31.1a8.03 8.03 0 000 11.3l56.6 56.6c3.1 3.1 8.2 3.1 11.3 0l31.1-31.1c3.1-3.1 3.1-8.2 0-11.3l-56.6-56.6zM262 530h-80c-4.4 0-8 3.6-8 8v44c0 4.4 3.6 8 8 8h80c4.4 0 8-3.6 8-8v-44c0-4.4-3.6-8-8-8z"}}]},name:"dashboard",theme:"outlined"},$4=function(t,n){return i.createElement(Pt,me({},t,{ref:n,icon:x4}))},D4=i.forwardRef($4),w4={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z"}}]},name:"setting",theme:"outlined"},E4=function(t,n){return i.createElement(Pt,me({},t,{ref:n,icon:w4}))},L4=i.forwardRef(E4),O4={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.5 763.6a374 374 0 00-80.6-119.5 375.63 375.63 0 00-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 00-80.6 119.5A371.7 371.7 0 00136 901.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 008-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z"}}]},name:"user",theme:"outlined"},I4=function(t,n){return i.createElement(Pt,me({},t,{ref:n,icon:O4}))},A4=i.forwardRef(I4);class vi extends Error{constructor(n){super(n.error);Fr(this,"code");Fr(this,"status");Fr(this,"details");Fr(this,"timestamp");this.name="ApiRequestError",this.code=n.code,this.status=n.status,this.details=n.details,this.timestamp=n.timestamp}}let Vr=null,Kr=null;function F4(e){Vr=e.loadingStore,Kr=e.messageApi}class R4{constructor(t){Fr(this,"options",{});Fr(this,"requestPromise");this.requestPromise=t}withLoading(t){return this.options.loading=t===void 0?!0:t,this}withRetry(t,n=1e3){return this.options.retry=t,this.options.retryDelay=n,this}silentError(){return this.options.silentError=!0,this}async json(){const{loading:t,retry:n=0,retryDelay:r=1e3,silentError:o}=this.options;if(t!==void 0&&t!==!1&&Vr){const c=typeof t=="string"?t:void 0;Vr.startLoading(c)}let a=null,l=0;for(;l<=n;)try{const c=await this.requestPromise;if(!c.ok){const d=await this.tryParseError(c);throw new vi(d)}const u=await c.json();if(u.success)return t!==void 0&&t!==!1&&Vr&&Vr.stopLoading(),u.data;throw new vi(u)}catch(c){if(a=c,l++,l<=n&&this.shouldRetry(c)){await this.delay(r);continue}break}t!==void 0&&t!==!1&&Vr&&Vr.stopLoading();const s=a;throw o||(s instanceof vi?Kr==null||Kr.error(s.message):Kr==null||Kr.error("请求失败,请稍后重试")),s}async tryParseError(t){try{const n=await t.json();if(n&&typeof n=="object"&&"error"in n)return n}catch{}return{success:!1,error:`HTTP Error: ${t.status} ${t.statusText}`,status:t.status}}shouldRetry(t){if(t instanceof vi){const n=t.status;return!(n===401||n===403||n===404||n===422)}return t instanceof TypeError}delay(t){return new Promise(n=>setTimeout(n,t))}}function H4(e){return new R4(e)}export{Vs as $,AN as A,Jr as B,it as C,Wp as D,O2 as E,Lr as F,_o as G,BM as H,Pt as I,Fo as J,Dr as K,Ua as L,Vo as M,Sl as N,j as O,LT as P,D as Q,hN as R,xb as S,h4 as T,ee as U,Ue as V,Lt as W,ln as X,Et as Y,Ut as Z,ge as _,a_ as a,mr as a$,Rt as a0,La as a1,Bn as a2,zn as a3,at as a4,nn as a5,tn as a6,Xt as a7,cr as a8,c2 as a9,Pd as aA,rl as aB,wa as aC,Fi as aD,$l as aE,Np as aF,ir as aG,Su as aH,Le as aI,ur as aJ,Wm as aK,W1 as aL,mE as aM,N$ as aN,cl as aO,xa as aP,Ia as aQ,nl as aR,mu as aS,En as aT,Ul as aU,Oa as aV,Tt as aW,tl as aX,qg as aY,ro as aZ,On as a_,l2 as aa,zt as ab,Ka as ac,th as ad,AR as ae,KR as af,kR as ag,HR as ah,Va as ai,pl as aj,pu as ak,bu as al,gu as am,hu as an,Cr as ao,K2 as ap,WR as aq,_r as ar,Li as as,M2 as at,oo as au,wl as av,Pn as aw,Jn as ax,In as ay,jo as az,kn as b,z4 as b$,vr as b0,Ae as b1,Zr as b2,Mi as b3,vu as b4,Jg as b5,Di as b6,Ag as b7,Ba as b8,yr as b9,hl as bA,uu as bB,ip as bC,OS as bD,yE as bE,_4 as bF,il as bG,Hs as bH,bg as bI,ba as bJ,Cy as bK,wg as bL,yC as bM,gC as bN,mC as bO,ya as bP,gg as bQ,uC as bR,ic as bS,yg as bT,pr as bU,Gh as bV,id as bW,H4 as bX,No as bY,Cg as bZ,M4 as b_,br as ba,Mu as bb,Ao as bc,Vn as bd,Yg as be,Ug as bf,US as bg,va as bh,F0 as bi,eu as bj,wx as bk,Sr as bl,ja as bm,Qg as bn,Br as bo,Rn as bp,vx as bq,ix as br,Rg as bs,ih as bt,Pl as bu,Xp as bv,_n as bw,$r as bx,bx as by,lf as bz,k as c,hE as c0,bE as c1,CE as c2,k1 as c3,rh as c4,Qr as c5,Tu as c6,eh as c7,Qs as c8,WC as c9,dT as ca,Lw as cb,rb as d,Kn as e,Dn as f,At as g,zi as h,El as i,Mo as j,me as k,D4 as l,wt as m,A4 as n,L4 as o,Uu as p,Uh as q,kt as r,F4 as s,tP as t,H as u,Ar as v,qa as w,qu as x,B4 as y,j4 as z};
|