@scalant/career-hub 1.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/career-hub.es.js +53339 -0
- package/dist/career-hub.umd.js +414 -0
- package/dist/style.css +1 -0
- package/package.json +32 -0
|
@@ -0,0 +1,414 @@
|
|
|
1
|
+
(function(vt,g){typeof exports=="object"&&typeof module!="undefined"?g(exports,require("react"),require("@reduxjs/toolkit"),require("react-redux"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","@reduxjs/toolkit","react-redux","react-dom"],g):(vt=typeof globalThis!="undefined"?globalThis:vt||self,g(vt.CareerHub={},vt.React,vt.ReduxToolkit,vt.ReactRedux,vt.ReactDOM))})(this,function(vt,g,We,$t,nr){"use strict";var NG=Object.defineProperty,IG=Object.defineProperties;var _G=Object.getOwnPropertyDescriptors;var sN=Object.getOwnPropertySymbols;var TG=Object.prototype.hasOwnProperty,PG=Object.prototype.propertyIsEnumerable;var cN=(vt,g,We)=>g in vt?NG(vt,g,{enumerable:!0,configurable:!0,writable:!0,value:We}):vt[g]=We,fr=(vt,g)=>{for(var We in g||(g={}))TG.call(g,We)&&cN(vt,We,g[We]);if(sN)for(var We of sN(g))PG.call(g,We)&&cN(vt,We,g[We]);return vt},ya=(vt,g)=>IG(vt,_G(g));var sr=(vt,g,We)=>new Promise(($t,nr)=>{var Fl=Ur=>{try{$i(We.next(Ur))}catch(Yo){nr(Yo)}},s=Ur=>{try{$i(We.throw(Ur))}catch(Yo){nr(Yo)}},$i=Ur=>Ur.done?$t(Ur.value):Promise.resolve(Ur.value).then(Fl,s);$i((We=We.apply(vt,g)).next())});function Fl(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const s=Fl(g),$i=Fl(nr),Ur=()=>g.createElement("div",{style:{padding:"20px",textAlign:"center"}},g.createElement("h1",null,"Hello World - Career Hub"),g.createElement("p",null,"This is a dummy component."));function Yo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Tu={exports:{}},Hl={exports:{}},Xt={};/** @license React v16.13.1
|
|
2
|
+
* react-is.production.min.js
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
5
|
+
*
|
|
6
|
+
* This source code is licensed under the MIT license found in the
|
|
7
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
|
+
*/var Yv;function uN(){if(Yv)return Xt;Yv=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,b=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function x(S){if(typeof S=="object"&&S!==null){var $=S.$$typeof;switch($){case t:switch(S=S.type,S){case c:case u:case r:case i:case o:case f:return S;default:switch(S=S&&S.$$typeof,S){case l:case d:case h:case p:case a:return S;default:return $}}case n:return $}}}function E(S){return x(S)===u}return Xt.AsyncMode=c,Xt.ConcurrentMode=u,Xt.ContextConsumer=l,Xt.ContextProvider=a,Xt.Element=t,Xt.ForwardRef=d,Xt.Fragment=r,Xt.Lazy=h,Xt.Memo=p,Xt.Portal=n,Xt.Profiler=i,Xt.StrictMode=o,Xt.Suspense=f,Xt.isAsyncMode=function(S){return E(S)||x(S)===c},Xt.isConcurrentMode=E,Xt.isContextConsumer=function(S){return x(S)===l},Xt.isContextProvider=function(S){return x(S)===a},Xt.isElement=function(S){return typeof S=="object"&&S!==null&&S.$$typeof===t},Xt.isForwardRef=function(S){return x(S)===d},Xt.isFragment=function(S){return x(S)===r},Xt.isLazy=function(S){return x(S)===h},Xt.isMemo=function(S){return x(S)===p},Xt.isPortal=function(S){return x(S)===n},Xt.isProfiler=function(S){return x(S)===i},Xt.isStrictMode=function(S){return x(S)===o},Xt.isSuspense=function(S){return x(S)===f},Xt.isValidElementType=function(S){return typeof S=="string"||typeof S=="function"||S===r||S===u||S===i||S===o||S===f||S===m||typeof S=="object"&&S!==null&&(S.$$typeof===h||S.$$typeof===p||S.$$typeof===a||S.$$typeof===l||S.$$typeof===d||S.$$typeof===v||S.$$typeof===y||S.$$typeof===C||S.$$typeof===b)},Xt.typeOf=x,Xt}var Qt={};/** @license React v16.13.1
|
|
9
|
+
* react-is.development.js
|
|
10
|
+
*
|
|
11
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
12
|
+
*
|
|
13
|
+
* This source code is licensed under the MIT license found in the
|
|
14
|
+
* LICENSE file in the root directory of this source tree.
|
|
15
|
+
*/var Jv;function dN(){return Jv||(Jv=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,b=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,y=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function x(F){return typeof F=="string"||typeof F=="function"||F===r||F===u||F===i||F===o||F===f||F===m||typeof F=="object"&&F!==null&&(F.$$typeof===h||F.$$typeof===p||F.$$typeof===a||F.$$typeof===l||F.$$typeof===d||F.$$typeof===v||F.$$typeof===y||F.$$typeof===C||F.$$typeof===b)}function E(F){if(typeof F=="object"&&F!==null){var ee=F.$$typeof;switch(ee){case t:var Z=F.type;switch(Z){case c:case u:case r:case i:case o:case f:return Z;default:var ne=Z&&Z.$$typeof;switch(ne){case l:case d:case h:case p:case a:return ne;default:return ee}}case n:return ee}}}var S=c,$=u,O=l,I=a,w=t,N=d,_=r,P=h,M=p,D=n,T=i,A=o,R=f,L=!1;function j(F){return L||(L=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),z(F)||E(F)===c}function z(F){return E(F)===u}function B(F){return E(F)===l}function K(F){return E(F)===a}function W(F){return typeof F=="object"&&F!==null&&F.$$typeof===t}function k(F){return E(F)===d}function V(F){return E(F)===r}function Q(F){return E(F)===h}function J(F){return E(F)===p}function Y(F){return E(F)===n}function te(F){return E(F)===i}function oe(F){return E(F)===o}function X(F){return E(F)===f}Qt.AsyncMode=S,Qt.ConcurrentMode=$,Qt.ContextConsumer=O,Qt.ContextProvider=I,Qt.Element=w,Qt.ForwardRef=N,Qt.Fragment=_,Qt.Lazy=P,Qt.Memo=M,Qt.Portal=D,Qt.Profiler=T,Qt.StrictMode=A,Qt.Suspense=R,Qt.isAsyncMode=j,Qt.isConcurrentMode=z,Qt.isContextConsumer=B,Qt.isContextProvider=K,Qt.isElement=W,Qt.isForwardRef=k,Qt.isFragment=V,Qt.isLazy=Q,Qt.isMemo=J,Qt.isPortal=Y,Qt.isProfiler=te,Qt.isStrictMode=oe,Qt.isSuspense=X,Qt.isValidElementType=x,Qt.typeOf=E}()),Qt}var Zv;function eg(){return Zv||(Zv=1,process.env.NODE_ENV==="production"?Hl.exports=uN():Hl.exports=dN()),Hl.exports}/*
|
|
16
|
+
object-assign
|
|
17
|
+
(c) Sindre Sorhus
|
|
18
|
+
@license MIT
|
|
19
|
+
*/var Pu,tg;function fN(){if(tg)return Pu;tg=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function o(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var a={},l=0;l<10;l++)a["_"+String.fromCharCode(l)]=l;var c=Object.getOwnPropertyNames(a).map(function(d){return a[d]});if(c.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(d){u[d]=d}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch(d){return!1}}return Pu=o()?Object.assign:function(i,a){for(var l,c=r(i),u,d=1;d<arguments.length;d++){l=Object(arguments[d]);for(var f in l)t.call(l,f)&&(c[f]=l[f]);if(e){u=e(l);for(var m=0;m<u.length;m++)n.call(l,u[m])&&(c[u[m]]=l[u[m]])}}return c},Pu}var Mu,ng;function Du(){if(ng)return Mu;ng=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Mu=e,Mu}var Au,rg;function og(){return rg||(rg=1,Au=Function.call.bind(Object.prototype.hasOwnProperty)),Au}var Ru,ig;function mN(){if(ig)return Ru;ig=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Du(),n={},r=og();e=function(i){var a="Warning: "+i;typeof console!="undefined"&&console.error(a);try{throw new Error(a)}catch(l){}}}function o(i,a,l,c,u){if(process.env.NODE_ENV!=="production"){for(var d in i)if(r(i,d)){var f;try{if(typeof i[d]!="function"){var m=Error((c||"React class")+": "+l+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw m.name="Invariant Violation",m}f=i[d](a,d,c,l,null,t)}catch(h){f=h}if(f&&!(f instanceof Error)&&e((c||"React class")+": type specification of "+l+" `"+d+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof f+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),f instanceof Error&&!(f.message in n)){n[f.message]=!0;var p=u?u():"";e("Failed "+l+" type: "+f.message+(p!=null?p:""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Ru=o,Ru}var ju,ag;function pN(){if(ag)return ju;ag=1;var e=eg(),t=fN(),n=Du(),r=og(),o=mN(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(l){var c="Warning: "+l;typeof console!="undefined"&&console.error(c);try{throw new Error(c)}catch(u){}});function a(){return null}return ju=function(l,c){var u=typeof Symbol=="function"&&Symbol.iterator,d="@@iterator";function f(z){var B=z&&(u&&z[u]||z[d]);if(typeof B=="function")return B}var m="<<anonymous>>",p={array:y("array"),bigint:y("bigint"),bool:y("boolean"),func:y("function"),number:y("number"),object:y("object"),string:y("string"),symbol:y("symbol"),any:C(),arrayOf:x,element:E(),elementType:S(),instanceOf:$,node:N(),objectOf:I,oneOf:O,oneOfType:w,shape:P,exact:M};function h(z,B){return z===B?z!==0||1/z===1/B:z!==z&&B!==B}function b(z,B){this.message=z,this.data=B&&typeof B=="object"?B:{},this.stack=""}b.prototype=Error.prototype;function v(z){if(process.env.NODE_ENV!=="production")var B={},K=0;function W(V,Q,J,Y,te,oe,X){if(Y=Y||m,oe=oe||J,X!==n){if(c){var F=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw F.name="Invariant Violation",F}else if(process.env.NODE_ENV!=="production"&&typeof console!="undefined"){var ee=Y+":"+J;!B[ee]&&K<3&&(i("You are manually calling a React.PropTypes validation function for the `"+oe+"` prop on `"+Y+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),B[ee]=!0,K++)}}return Q[J]==null?V?Q[J]===null?new b("The "+te+" `"+oe+"` is marked as required "+("in `"+Y+"`, but its value is `null`.")):new b("The "+te+" `"+oe+"` is marked as required in "+("`"+Y+"`, but its value is `undefined`.")):null:z(Q,J,Y,te,oe)}var k=W.bind(null,!1);return k.isRequired=W.bind(null,!0),k}function y(z){function B(K,W,k,V,Q,J){var Y=K[W],te=A(Y);if(te!==z){var oe=R(Y);return new b("Invalid "+V+" `"+Q+"` of type "+("`"+oe+"` supplied to `"+k+"`, expected ")+("`"+z+"`."),{expectedType:z})}return null}return v(B)}function C(){return v(a)}function x(z){function B(K,W,k,V,Q){if(typeof z!="function")return new b("Property `"+Q+"` of component `"+k+"` has invalid PropType notation inside arrayOf.");var J=K[W];if(!Array.isArray(J)){var Y=A(J);return new b("Invalid "+V+" `"+Q+"` of type "+("`"+Y+"` supplied to `"+k+"`, expected an array."))}for(var te=0;te<J.length;te++){var oe=z(J,te,k,V,Q+"["+te+"]",n);if(oe instanceof Error)return oe}return null}return v(B)}function E(){function z(B,K,W,k,V){var Q=B[K];if(!l(Q)){var J=A(Q);return new b("Invalid "+k+" `"+V+"` of type "+("`"+J+"` supplied to `"+W+"`, expected a single ReactElement."))}return null}return v(z)}function S(){function z(B,K,W,k,V){var Q=B[K];if(!e.isValidElementType(Q)){var J=A(Q);return new b("Invalid "+k+" `"+V+"` of type "+("`"+J+"` supplied to `"+W+"`, expected a single ReactElement type."))}return null}return v(z)}function $(z){function B(K,W,k,V,Q){if(!(K[W]instanceof z)){var J=z.name||m,Y=j(K[W]);return new b("Invalid "+V+" `"+Q+"` of type "+("`"+Y+"` supplied to `"+k+"`, expected ")+("instance of `"+J+"`."))}return null}return v(B)}function O(z){if(!Array.isArray(z))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),a;function B(K,W,k,V,Q){for(var J=K[W],Y=0;Y<z.length;Y++)if(h(J,z[Y]))return null;var te=JSON.stringify(z,function(X,F){var ee=R(F);return ee==="symbol"?String(F):F});return new b("Invalid "+V+" `"+Q+"` of value `"+String(J)+"` "+("supplied to `"+k+"`, expected one of "+te+"."))}return v(B)}function I(z){function B(K,W,k,V,Q){if(typeof z!="function")return new b("Property `"+Q+"` of component `"+k+"` has invalid PropType notation inside objectOf.");var J=K[W],Y=A(J);if(Y!=="object")return new b("Invalid "+V+" `"+Q+"` of type "+("`"+Y+"` supplied to `"+k+"`, expected an object."));for(var te in J)if(r(J,te)){var oe=z(J,te,k,V,Q+"."+te,n);if(oe instanceof Error)return oe}return null}return v(B)}function w(z){if(!Array.isArray(z))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var B=0;B<z.length;B++){var K=z[B];if(typeof K!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+L(K)+" at index "+B+"."),a}function W(k,V,Q,J,Y){for(var te=[],oe=0;oe<z.length;oe++){var X=z[oe],F=X(k,V,Q,J,Y,n);if(F==null)return null;F.data&&r(F.data,"expectedType")&&te.push(F.data.expectedType)}var ee=te.length>0?", expected one of type ["+te.join(", ")+"]":"";return new b("Invalid "+J+" `"+Y+"` supplied to "+("`"+Q+"`"+ee+"."))}return v(W)}function N(){function z(B,K,W,k,V){return D(B[K])?null:new b("Invalid "+k+" `"+V+"` supplied to "+("`"+W+"`, expected a ReactNode."))}return v(z)}function _(z,B,K,W,k){return new b((z||"React class")+": "+B+" type `"+K+"."+W+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+k+"`.")}function P(z){function B(K,W,k,V,Q){var J=K[W],Y=A(J);if(Y!=="object")return new b("Invalid "+V+" `"+Q+"` of type `"+Y+"` "+("supplied to `"+k+"`, expected `object`."));for(var te in z){var oe=z[te];if(typeof oe!="function")return _(k,V,Q,te,R(oe));var X=oe(J,te,k,V,Q+"."+te,n);if(X)return X}return null}return v(B)}function M(z){function B(K,W,k,V,Q){var J=K[W],Y=A(J);if(Y!=="object")return new b("Invalid "+V+" `"+Q+"` of type `"+Y+"` "+("supplied to `"+k+"`, expected `object`."));var te=t({},K[W],z);for(var oe in te){var X=z[oe];if(r(z,oe)&&typeof X!="function")return _(k,V,Q,oe,R(X));if(!X)return new b("Invalid "+V+" `"+Q+"` key `"+oe+"` supplied to `"+k+"`.\nBad object: "+JSON.stringify(K[W],null," ")+`
|
|
20
|
+
Valid keys: `+JSON.stringify(Object.keys(z),null," "));var F=X(J,oe,k,V,Q+"."+oe,n);if(F)return F}return null}return v(B)}function D(z){switch(typeof z){case"number":case"string":case"undefined":return!0;case"boolean":return!z;case"object":if(Array.isArray(z))return z.every(D);if(z===null||l(z))return!0;var B=f(z);if(B){var K=B.call(z),W;if(B!==z.entries){for(;!(W=K.next()).done;)if(!D(W.value))return!1}else for(;!(W=K.next()).done;){var k=W.value;if(k&&!D(k[1]))return!1}}else return!1;return!0;default:return!1}}function T(z,B){return z==="symbol"?!0:B?B["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&B instanceof Symbol:!1}function A(z){var B=typeof z;return Array.isArray(z)?"array":z instanceof RegExp?"object":T(B,z)?"symbol":B}function R(z){if(typeof z=="undefined"||z===null)return""+z;var B=A(z);if(B==="object"){if(z instanceof Date)return"date";if(z instanceof RegExp)return"regexp"}return B}function L(z){var B=R(z);switch(B){case"array":case"object":return"an "+B;case"boolean":case"date":case"regexp":return"a "+B;default:return B}}function j(z){return!z.constructor||!z.constructor.name?m:z.constructor.name}return p.checkPropTypes=o,p.resetWarningCache=o.resetWarningCache,p.PropTypes=p,p},ju}var Lu,lg;function vN(){if(lg)return Lu;lg=1;var e=Du();function t(){}function n(){}return n.resetWarningCache=t,Lu=function(){function r(a,l,c,u,d,f){if(f!==e){var m=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw m.name="Invariant Violation",m}}r.isRequired=r;function o(){return r}var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i},Lu}if(process.env.NODE_ENV!=="production"){var gN=eg(),hN=!0;Tu.exports=pN()(gN.isElement,hN)}else Tu.exports=vN()();var bN=Tu.exports;const pe=Yo(bN);function hn(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(process.env.NODE_ENV!=="production"){var o=NN[e],i=o?typeof o=="function"?o.apply(null,n):o:"unknown error nr: "+e;throw Error("[Immer] "+i)}throw Error("[Immer] minified error nr: "+e+(n.length?" "+n.map(function(a){return"'"+a+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Jo(e){return!!e&&!!e[mr]}function vo(e){var t;return!!e&&(function(n){if(!n||typeof n!="object")return!1;var r=Object.getPrototypeOf(n);if(r===null)return!0;var o=Object.hasOwnProperty.call(r,"constructor")&&r.constructor;return o===Object||typeof o=="function"&&Function.toString.call(o)===IN}(e)||Array.isArray(e)||!!e[Sa]||!!(!((t=e.constructor)===null||t===void 0)&&t[Sa])||Wl(e)||Kl(e))}function wi(e,t,n){n===void 0&&(n=!1),To(e)===0?(n?Object.keys:Qu)(e).forEach(function(r){n&&typeof r=="symbol"||t(r,e[r],e)}):e.forEach(function(r,o){return t(o,r,e)})}function To(e){var t=e[mr];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:Wl(e)?2:Kl(e)?3:0}function Ca(e,t){return To(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Vl(e,t){return To(e)===2?e.get(t):e[t]}function sg(e,t,n){var r=To(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function yN(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function Wl(e){return wN&&e instanceof Map}function Kl(e){return ON&&e instanceof Set}function Zo(e){return e.o||e.t}function zu(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=_N(e);delete t[mr];for(var n=Qu(t),r=0;r<n.length;r++){var o=n[r],i=t[o];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),t)}function Bu(e,t){return t===void 0&&(t=!1),ku(e)||Jo(e)||!vo(e)||(To(e)>1&&(e.set=e.add=e.clear=e.delete=CN),Object.freeze(e),t&&wi(e,function(n,r){return Bu(r,!0)},!0)),e}function CN(){hn(2)}function ku(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Gr(e){var t=Yu[e];return t||hn(18,e),t}function SN(e,t){Yu[e]||(Yu[e]=t)}function cg(){return process.env.NODE_ENV==="production"||Oi||hn(0),Oi}function Fu(e,t){t&&(Gr("Patches"),e.u=[],e.s=[],e.v=t)}function ql(e){Hu(e),e.p.forEach(xN),e.p=null}function Hu(e){e===Oi&&(Oi=e.l)}function ug(e){return Oi={p:[],l:Oi,h:e,m:!0,_:0}}function xN(e){var t=e[mr];t.i===0||t.i===1?t.j():t.g=!0}function Vu(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.O||Gr("ES5").S(t,e,r),r?(n[mr].P&&(ql(t),hn(4)),vo(e)&&(e=Ul(t,e),t.l||Gl(t,e)),t.u&&Gr("Patches").M(n[mr].t,e,t.u,t.s)):e=Ul(t,n,[]),ql(t),t.u&&t.v(t.u,t.s),e!==Xu?e:void 0}function Ul(e,t,n){if(ku(t))return t;var r=t[mr];if(!r)return wi(t,function(l,c){return dg(e,r,t,l,c,n)},!0),t;if(r.A!==e)return t;if(!r.P)return Gl(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=r.i===4||r.i===5?r.o=zu(r.k):r.o,i=o,a=!1;r.i===3&&(i=new Set(o),o.clear(),a=!0),wi(i,function(l,c){return dg(e,r,o,l,c,n,a)}),Gl(e,o,!1),n&&e.u&&Gr("Patches").N(r,n,e.u,e.s)}return r.o}function dg(e,t,n,r,o,i,a){if(process.env.NODE_ENV!=="production"&&o===n&&hn(5),Jo(o)){var l=Ul(e,o,i&&t&&t.i!==3&&!Ca(t.R,r)?i.concat(r):void 0);if(sg(n,r,l),!Jo(l))return;e.m=!1}else a&&n.add(o);if(vo(o)&&!ku(o)){if(!e.h.D&&e._<1)return;Ul(e,o),t&&t.A.l||Gl(e,o)}}function Gl(e,t,n){n===void 0&&(n=!1),!e.l&&e.h.D&&e.m&&Bu(t,n)}function Wu(e,t){var n=e[mr];return(n?Zo(n):e)[t]}function fg(e,t){if(t in e)for(var n=Object.getPrototypeOf(e);n;){var r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Object.getPrototypeOf(n)}}function Ku(e){e.P||(e.P=!0,e.l&&Ku(e.l))}function qu(e){e.o||(e.o=zu(e.t))}function Uu(e,t,n){var r=Wl(t)?Gr("MapSet").F(t,n):Kl(t)?Gr("MapSet").T(t,n):e.O?function(o,i){var a=Array.isArray(o),l={i:a?1:0,A:i?i.A:cg(),P:!1,I:!1,R:{},l:i,t:o,k:null,o:null,j:null,C:!1},c=l,u=Ju;a&&(c=[l],u=xa);var d=Proxy.revocable(c,u),f=d.revoke,m=d.proxy;return l.k=m,l.j=f,m}(t,n):Gr("ES5").J(t,n);return(n?n.A:cg()).p.push(r),r}function EN(e){return Jo(e)||hn(22,e),function t(n){if(!vo(n))return n;var r,o=n[mr],i=To(n);if(o){if(!o.P&&(o.i<4||!Gr("ES5").K(o)))return o.t;o.I=!0,r=mg(n,i),o.I=!1}else r=mg(n,i);return wi(r,function(a,l){o&&Vl(o.t,a)===l||sg(r,a,t(l))}),i===3?new Set(r):r}(e)}function mg(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return zu(e)}function $N(){function e(r){if(!vo(r))return r;if(Array.isArray(r))return r.map(e);if(Wl(r))return new Map(Array.from(r.entries()).map(function(a){return[a[0],e(a[1])]}));if(Kl(r))return new Set(Array.from(r).map(e));var o=Object.create(Object.getPrototypeOf(r));for(var i in r)o[i]=e(r[i]);return Ca(r,Sa)&&(o[Sa]=r[Sa]),o}function t(r){return Jo(r)?e(r):r}var n="add";SN("Patches",{$:function(r,o){return o.forEach(function(i){for(var a=i.path,l=i.op,c=r,u=0;u<a.length-1;u++){var d=To(c),f=a[u];typeof f!="string"&&typeof f!="number"&&(f=""+f),d!==0&&d!==1||f!=="__proto__"&&f!=="constructor"||hn(24),typeof c=="function"&&f==="prototype"&&hn(24),typeof(c=Vl(c,f))!="object"&&hn(15,a.join("/"))}var m=To(c),p=e(i.value),h=a[a.length-1];switch(l){case"replace":switch(m){case 2:return c.set(h,p);case 3:hn(16);default:return c[h]=p}case n:switch(m){case 1:return h==="-"?c.push(p):c.splice(h,0,p);case 2:return c.set(h,p);case 3:return c.add(p);default:return c[h]=p}case"remove":switch(m){case 1:return c.splice(h,1);case 2:return c.delete(h);case 3:return c.delete(i.value);default:return delete c[h]}default:hn(17,l)}}),r},N:function(r,o,i,a){switch(r.i){case 0:case 4:case 2:return function(l,c,u,d){var f=l.t,m=l.o;wi(l.R,function(p,h){var b=Vl(f,p),v=Vl(m,p),y=h?Ca(f,p)?"replace":n:"remove";if(b!==v||y!=="replace"){var C=c.concat(p);u.push(y==="remove"?{op:y,path:C}:{op:y,path:C,value:v}),d.push(y===n?{op:"remove",path:C}:y==="remove"?{op:n,path:C,value:t(b)}:{op:"replace",path:C,value:t(b)})}})}(r,o,i,a);case 5:case 1:return function(l,c,u,d){var f=l.t,m=l.R,p=l.o;if(p.length<f.length){var h=[p,f];f=h[0],p=h[1];var b=[d,u];u=b[0],d=b[1]}for(var v=0;v<f.length;v++)if(m[v]&&p[v]!==f[v]){var y=c.concat([v]);u.push({op:"replace",path:y,value:t(p[v])}),d.push({op:"replace",path:y,value:t(f[v])})}for(var C=f.length;C<p.length;C++){var x=c.concat([C]);u.push({op:n,path:x,value:t(p[C])})}f.length<p.length&&d.push({op:"replace",path:c.concat(["length"]),value:f.length})}(r,o,i,a);case 3:return function(l,c,u,d){var f=l.t,m=l.o,p=0;f.forEach(function(h){if(!m.has(h)){var b=c.concat([p]);u.push({op:"remove",path:b,value:h}),d.unshift({op:n,path:b,value:h})}p++}),p=0,m.forEach(function(h){if(!f.has(h)){var b=c.concat([p]);u.push({op:n,path:b,value:h}),d.unshift({op:"remove",path:b,value:h})}p++})}(r,o,i,a)}},M:function(r,o,i,a){i.push({op:"replace",path:[],value:o===Xu?void 0:o}),a.push({op:"replace",path:[],value:r})}})}var pg,Oi,Gu=typeof Symbol!="undefined"&&typeof Symbol("x")=="symbol",wN=typeof Map!="undefined",ON=typeof Set!="undefined",vg=typeof Proxy!="undefined"&&Proxy.revocable!==void 0&&typeof Reflect!="undefined",Xu=Gu?Symbol.for("immer-nothing"):((pg={})["immer-nothing"]=!0,pg),Sa=Gu?Symbol.for("immer-draftable"):"__$immer_draftable",mr=Gu?Symbol.for("immer-state"):"__$immer_state",NN={0:"Illegal state",1:"Immer drafts cannot have computed properties",2:"This object has been frozen and should not be mutated",3:function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},4:"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.",5:"Immer forbids circular references",6:"The first or second argument to `produce` must be a function",7:"The third argument to `produce` must be a function or undefined",8:"First argument to `createDraft` must be a plain object, an array, or an immerable object",9:"First argument to `finishDraft` must be a draft returned by `createDraft`",10:"The given draft is already finalized",11:"Object.defineProperty() cannot be used on an Immer draft",12:"Object.setPrototypeOf() cannot be used on an Immer draft",13:"Immer only supports deleting array indices",14:"Immer only supports setting array indices and the 'length' property",15:function(e){return"Cannot apply patch, path doesn't resolve: "+e},16:'Sets cannot have "replace" patches.',17:function(e){return"Unsupported patch operation: "+e},18:function(e){return"The plugin for '"+e+"' has not been loaded into Immer. To enable the plugin, import and call `enable"+e+"()` when initializing your application."},20:"Cannot use proxies if Proxy, Proxy.revocable or Reflect are not available",21:function(e){return"produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '"+e+"'"},22:function(e){return"'current' expects a draft, got: "+e},23:function(e){return"'original' expects a draft, got: "+e},24:"Patching reserved attributes like __proto__, prototype and constructor is not allowed"},IN=""+Object.prototype.constructor,Qu=typeof Reflect!="undefined"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,_N=Object.getOwnPropertyDescriptors||function(e){var t={};return Qu(e).forEach(function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)}),t},Yu={},Ju={get:function(e,t){if(t===mr)return e;var n=Zo(e);if(!Ca(n,t))return function(o,i,a){var l,c=fg(i,a);return c?"value"in c?c.value:(l=c.get)===null||l===void 0?void 0:l.call(o.k):void 0}(e,n,t);var r=n[t];return e.I||!vo(r)?r:r===Wu(e.t,t)?(qu(e),e.o[t]=Uu(e.A.h,r,e)):r},has:function(e,t){return t in Zo(e)},ownKeys:function(e){return Reflect.ownKeys(Zo(e))},set:function(e,t,n){var r=fg(Zo(e),t);if(r!=null&&r.set)return r.set.call(e.k,n),!0;if(!e.P){var o=Wu(Zo(e),t),i=o==null?void 0:o[mr];if(i&&i.t===n)return e.o[t]=n,e.R[t]=!1,!0;if(yN(n,o)&&(n!==void 0||Ca(e.t,t)))return!0;qu(e),Ku(e)}return e.o[t]===n&&(n!==void 0||t in e.o)||Number.isNaN(n)&&Number.isNaN(e.o[t])||(e.o[t]=n,e.R[t]=!0),!0},deleteProperty:function(e,t){return Wu(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,qu(e),Ku(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=Zo(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty:function(){hn(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){hn(12)}},xa={};wi(Ju,function(e,t){xa[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),xa.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&hn(13),xa.set.call(this,e,t,void 0)},xa.set=function(e,t,n){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&hn(14),Ju.set.call(this,e[0],t,n,e[0])};var TN=function(){function e(n){var r=this;this.O=vg,this.D=!0,this.produce=function(o,i,a){if(typeof o=="function"&&typeof i!="function"){var l=i;i=o;var c=r;return function(b){var v=this;b===void 0&&(b=l);for(var y=arguments.length,C=Array(y>1?y-1:0),x=1;x<y;x++)C[x-1]=arguments[x];return c.produce(b,function(E){var S;return(S=i).call.apply(S,[v,E].concat(C))})}}var u;if(typeof i!="function"&&hn(6),a!==void 0&&typeof a!="function"&&hn(7),vo(o)){var d=ug(r),f=Uu(r,o,void 0),m=!0;try{u=i(f),m=!1}finally{m?ql(d):Hu(d)}return typeof Promise!="undefined"&&u instanceof Promise?u.then(function(b){return Fu(d,a),Vu(b,d)},function(b){throw ql(d),b}):(Fu(d,a),Vu(u,d))}if(!o||typeof o!="object"){if((u=i(o))===void 0&&(u=o),u===Xu&&(u=void 0),r.D&&Bu(u,!0),a){var p=[],h=[];Gr("Patches").M(o,u,p,h),a(p,h)}return u}hn(21,o)},this.produceWithPatches=function(o,i){if(typeof o=="function")return function(u){for(var d=arguments.length,f=Array(d>1?d-1:0),m=1;m<d;m++)f[m-1]=arguments[m];return r.produceWithPatches(u,function(p){return o.apply(void 0,[p].concat(f))})};var a,l,c=r.produce(o,i,function(u,d){a=u,l=d});return typeof Promise!="undefined"&&c instanceof Promise?c.then(function(u){return[u,a,l]}):[c,a,l]},typeof(n==null?void 0:n.useProxies)=="boolean"&&this.setUseProxies(n.useProxies),typeof(n==null?void 0:n.autoFreeze)=="boolean"&&this.setAutoFreeze(n.autoFreeze)}var t=e.prototype;return t.createDraft=function(n){vo(n)||hn(8),Jo(n)&&(n=EN(n));var r=ug(this),o=Uu(this,n,void 0);return o[mr].C=!0,Hu(r),o},t.finishDraft=function(n,r){var o=n&&n[mr];process.env.NODE_ENV!=="production"&&(o&&o.C||hn(9),o.I&&hn(10));var i=o.A;return Fu(i,r),Vu(void 0,i)},t.setAutoFreeze=function(n){this.D=n},t.setUseProxies=function(n){n&&!vg&&hn(20),this.O=n},t.applyPatches=function(n,r){var o;for(o=r.length-1;o>=0;o--){var i=r[o];if(i.path.length===0&&i.op==="replace"){n=i.value;break}}o>-1&&(r=r.slice(o+1));var a=Gr("Patches").$;return Jo(n)?a(n,r):this.produce(n,function(l){return a(l,r)})},e}(),pr=new TN;pr.produce;var gg=pr.produceWithPatches.bind(pr);pr.setAutoFreeze.bind(pr),pr.setUseProxies.bind(pr);var hg=pr.applyPatches.bind(pr);pr.createDraft.bind(pr),pr.finishDraft.bind(pr);var Xl="NOT_FOUND";function PN(e){var t;return{get:function(r){return t&&e(t.key,r)?t.value:Xl},put:function(r,o){t={key:r,value:o}},getEntries:function(){return t?[t]:[]},clear:function(){t=void 0}}}function MN(e,t){var n=[];function r(l){var c=n.findIndex(function(d){return t(l,d.key)});if(c>-1){var u=n[c];return c>0&&(n.splice(c,1),n.unshift(u)),u.value}return Xl}function o(l,c){r(l)===Xl&&(n.unshift({key:l,value:c}),n.length>e&&n.pop())}function i(){return n}function a(){n=[]}return{get:r,put:o,getEntries:i,clear:a}}var DN=function(t,n){return t===n};function AN(e){return function(n,r){if(n===null||r===null||n.length!==r.length)return!1;for(var o=n.length,i=0;i<o;i++)if(!e(n[i],r[i]))return!1;return!0}}function bg(e,t){var n=typeof t=="object"?t:{equalityCheck:t},r=n.equalityCheck,o=r===void 0?DN:r,i=n.maxSize,a=i===void 0?1:i,l=n.resultEqualityCheck,c=AN(o),u=a===1?PN(c):MN(a,c);function d(){var f=u.get(arguments);if(f===Xl){if(f=e.apply(null,arguments),l){var m=u.getEntries(),p=m.find(function(h){return l(h.value,f)});p&&(f=p.value)}u.put(arguments,f)}return f}return d.clearCache=function(){return u.clear()},d}var Ql=globalThis&&globalThis.__generator||function(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,a;return a={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function l(u){return function(d){return c([u,d])}}function c(u){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,o&&(i=u[0]&2?o.return:u[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,u[1])).done)return i;switch(o=0,i&&(u=[u[0]&2,i.value]),u[0]){case 0:case 1:i=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,o=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!i||u[1]>i[0]&&u[1]<i[3])){n.label=u[1];break}if(u[0]===6&&n.label<i[1]){n.label=i[1],i=u;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(u);break}i[2]&&n.ops.pop(),n.trys.pop();continue}u=t.call(e,n)}catch(d){u=[6,d],o=0}finally{r=i=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},Yl=globalThis&&globalThis.__spreadArray||function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e},RN=Object.defineProperty,jN=Object.defineProperties,LN=Object.getOwnPropertyDescriptors,Jl=Object.getOwnPropertySymbols,yg=Object.prototype.hasOwnProperty,Cg=Object.prototype.propertyIsEnumerable,Sg=function(e,t,n){return t in e?RN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},wn=function(e,t){for(var n in t||(t={}))yg.call(t,n)&&Sg(e,n,t[n]);if(Jl)for(var r=0,o=Jl(t);r<o.length;r++){var n=o[r];Cg.call(t,n)&&Sg(e,n,t[n])}return e},Xr=function(e,t){return jN(e,LN(t))},xg=function(e,t){var n={};for(var r in e)yg.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Jl)for(var o=0,i=Jl(e);o<i.length;o++){var r=i[o];t.indexOf(r)<0&&Cg.call(e,r)&&(n[r]=e[r])}return n},Zl=function(e,t,n){return new Promise(function(r,o){var i=function(c){try{l(n.next(c))}catch(u){o(u)}},a=function(c){try{l(n.throw(c))}catch(u){o(u)}},l=function(c){return c.done?r(c.value):Promise.resolve(c.value).then(i,a)};l((n=n.apply(e,t)).next())})},un;(function(e){e.uninitialized="uninitialized",e.pending="pending",e.fulfilled="fulfilled",e.rejected="rejected"})(un||(un={}));function zN(e){return{status:e,isUninitialized:e===un.uninitialized,isLoading:e===un.pending,isSuccess:e===un.fulfilled,isError:e===un.rejected}}function BN(e){return new RegExp("(^|:)//").test(e)}var kN=function(e){return e.replace(/\/$/,"")},FN=function(e){return e.replace(/^\//,"")};function HN(e,t){if(!e)return t;if(!t)return e;if(BN(t))return t;var n=e.endsWith("/")||!t.startsWith("?")?"/":"";return e=kN(e),t=FN(t),""+e+n+t}var Eg=function(e){return[].concat.apply([],e)};function VN(){return typeof navigator=="undefined"||navigator.onLine===void 0?!0:navigator.onLine}function WN(){return typeof document=="undefined"?!0:document.visibilityState!=="hidden"}var $g=We.isPlainObject;function wg(e,t){if(e===t||!($g(e)&&$g(t)||Array.isArray(e)&&Array.isArray(t)))return t;for(var n=Object.keys(t),r=Object.keys(e),o=n.length===r.length,i=Array.isArray(t)?[]:{},a=0,l=n;a<l.length;a++){var c=l[a];i[c]=wg(e[c],t[c]),o&&(o=e[c]===i[c])}return o?e:i}var Og=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return fetch.apply(void 0,e)},KN=function(e){return e.status>=200&&e.status<=299},qN=function(e){return/ion\/(vnd\.api\+)?json/.test(e.get("content-type")||"")};function Ng(e){if(!We.isPlainObject(e))return e;for(var t=wn({},e),n=0,r=Object.entries(t);n<r.length;n++){var o=r[n],i=o[0],a=o[1];a===void 0&&delete t[i]}return t}function UN(e){var t=this;e===void 0&&(e={});var n=e,r=n.baseUrl,o=n.prepareHeaders,i=o===void 0?function(C){return C}:o,a=n.fetchFn,l=a===void 0?Og:a,c=n.paramsSerializer,u=n.isJsonContentType,d=u===void 0?qN:u,f=n.jsonContentType,m=f===void 0?"application/json":f,p=n.jsonReplacer,h=n.timeout,b=n.validateStatus,v=xg(n,["baseUrl","prepareHeaders","fetchFn","paramsSerializer","isJsonContentType","jsonContentType","jsonReplacer","timeout","validateStatus"]);return typeof fetch=="undefined"&&l===Og&&console.warn("Warning: `fetch` is not available. Please supply a custom `fetchFn` property to use `fetchBaseQuery` on SSR environments."),function(C,x){return Zl(t,null,function(){var E,S,$,O,I,w,N,_,P,M,D,T,A,R,L,j,z,B,K,W,k,V,Q,J,Y,te,oe,X,F,ee,Z,ne,re,se,le,he;return Ql(this,function(fe){switch(fe.label){case 0:return E=x.signal,S=x.getState,$=x.extra,O=x.endpoint,I=x.forced,w=x.type,_=typeof C=="string"?{url:C}:C,P=_.url,M=_.headers,D=M===void 0?new Headers(v.headers):M,T=_.params,A=T===void 0?void 0:T,R=_.responseHandler,L=R===void 0?"json":R,j=_.validateStatus,z=j===void 0?b!=null?b:KN:j,B=_.timeout,K=B===void 0?h:B,W=xg(_,["url","headers","params","responseHandler","validateStatus","timeout"]),k=wn(Xr(wn({},v),{signal:E}),W),D=new Headers(Ng(D)),V=k,[4,i(D,{getState:S,extra:$,endpoint:O,forced:I,type:w})];case 1:V.headers=fe.sent()||D,Q=function(ie){return typeof ie=="object"&&(We.isPlainObject(ie)||Array.isArray(ie)||typeof ie.toJSON=="function")},!k.headers.has("content-type")&&Q(k.body)&&k.headers.set("content-type",m),Q(k.body)&&d(k.headers)&&(k.body=JSON.stringify(k.body,p)),A&&(J=~P.indexOf("?")?"&":"?",Y=c?c(A):new URLSearchParams(Ng(A)),P+=J+Y),P=HN(r,P),te=new Request(P,k),oe=te.clone(),N={request:oe},F=!1,ee=K&&setTimeout(function(){F=!0,x.abort()},K),fe.label=2;case 2:return fe.trys.push([2,4,5,6]),[4,l(te)];case 3:return X=fe.sent(),[3,6];case 4:return Z=fe.sent(),[2,{error:{status:F?"TIMEOUT_ERROR":"FETCH_ERROR",error:String(Z)},meta:N}];case 5:return ee&&clearTimeout(ee),[7];case 6:ne=X.clone(),N.response=ne,se="",fe.label=7;case 7:return fe.trys.push([7,9,,10]),[4,Promise.all([y(X,L).then(function(ie){return re=ie},function(ie){return le=ie}),ne.text().then(function(ie){return se=ie},function(){})])];case 8:if(fe.sent(),le)throw le;return[3,10];case 9:return he=fe.sent(),[2,{error:{status:"PARSING_ERROR",originalStatus:X.status,data:se,error:String(he)},meta:N}];case 10:return[2,z(X,re)?{data:re,meta:N}:{error:{status:X.status,data:re},meta:N}]}})})};function y(C,x){return Zl(this,null,function(){var E;return Ql(this,function(S){switch(S.label){case 0:return typeof x=="function"?[2,x(C)]:(x==="content-type"&&(x=d(C.headers)?"json":"text"),x!=="json"?[3,2]:[4,C.text()]);case 1:return E=S.sent(),[2,E.length?JSON.parse(E):null];case 2:return[2,C.text()]}})})}}var Ig=function(){function e(t,n){n===void 0&&(n=void 0),this.value=t,this.meta=n}return e}(),Zu=We.createAction("__rtkq/focused"),_g=We.createAction("__rtkq/unfocused"),ed=We.createAction("__rtkq/online"),Tg=We.createAction("__rtkq/offline"),Qr;(function(e){e.query="query",e.mutation="mutation"})(Qr||(Qr={}));function Pg(e){return e.type===Qr.query}function GN(e){return e.type===Qr.mutation}function Mg(e,t,n,r,o,i){return XN(e)?e(t,n,r,o).map(td).map(i):Array.isArray(e)?e.map(td).map(i):[]}function XN(e){return typeof e=="function"}function td(e){return typeof e=="string"?{type:e}:e}function nd(e){return e!=null}var Ea=Symbol("forceQueryFn"),rd=function(e){return typeof e[Ea]=="function"};function QN(e){var t=e.serializeQueryArgs,n=e.queryThunk,r=e.mutationThunk,o=e.api,i=e.context,a=new Map,l=new Map,c=o.internalActions,u=c.unsubscribeQueryResult,d=c.removeMutationResult,f=c.updateSubscriptionOptions;return{buildInitiateQuery:x,buildInitiateMutation:E,getRunningQueryThunk:h,getRunningMutationThunk:b,getRunningQueriesThunk:v,getRunningMutationsThunk:y,getRunningOperationPromises:p,removalWarning:m};function m(){throw new Error(`This method had to be removed due to a conceptual bug in RTK.
|
|
21
|
+
Please see https://github.com/reduxjs/redux-toolkit/pull/2481 for details.
|
|
22
|
+
See https://redux-toolkit.js.org/rtk-query/usage/server-side-rendering for new guidance on SSR.`)}function p(){if(typeof process!="undefined"&&process.env.NODE_ENV==="development")m();else{var S=function($){return Array.from($.values()).flatMap(function(O){return O?Object.values(O):[]})};return Yl(Yl([],S(a)),S(l)).filter(nd)}}function h(S,$){return function(O){var I,w=i.endpointDefinitions[S],N=t({queryArgs:$,endpointDefinition:w,endpointName:S});return(I=a.get(O))==null?void 0:I[N]}}function b(S,$){return function(O){var I;return(I=l.get(O))==null?void 0:I[$]}}function v(){return function(S){return Object.values(a.get(S)||{}).filter(nd)}}function y(){return function(S){return Object.values(l.get(S)||{}).filter(nd)}}function C(S){if(process.env.NODE_ENV!=="production"){if(C.triggered)return;var $=S(o.internalActions.internal_probeSubscription({queryCacheKey:"DOES_NOT_EXIST",requestId:"DUMMY_REQUEST_ID"}));if(C.triggered=!0,typeof $!="boolean")throw new Error('Warning: Middleware for RTK-Query API at reducerPath "'+o.reducerPath+`" has not been added to the store.
|
|
23
|
+
You must add the middleware for RTK-Query to function correctly!`)}}function x(S,$){var O=function(I,w){var N=w===void 0?{}:w,_=N.subscribe,P=_===void 0?!0:_,M=N.forceRefetch,D=N.subscriptionOptions,T=Ea,A=N[T];return function(R,L){var j,z,B=t({queryArgs:I,endpointDefinition:$,endpointName:S}),K=n((j={type:"query",subscribe:P,forceRefetch:M,subscriptionOptions:D,endpointName:S,originalArgs:I,queryCacheKey:B},j[Ea]=A,j)),W=o.endpoints[S].select(I),k=R(K),V=W(L());C(R);var Q=k.requestId,J=k.abort,Y=V.requestId!==Q,te=(z=a.get(R))==null?void 0:z[B],oe=function(){return W(L())},X=Object.assign(A?k.then(oe):Y&&!te?Promise.resolve(V):Promise.all([te,k]).then(oe),{arg:I,requestId:Q,subscriptionOptions:D,queryCacheKey:B,abort:J,unwrap:function(){return Zl(this,null,function(){var ee;return Ql(this,function(Z){switch(Z.label){case 0:return[4,X];case 1:if(ee=Z.sent(),ee.isError)throw ee.error;return[2,ee.data]}})})},refetch:function(){return R(O(I,{subscribe:!1,forceRefetch:!0}))},unsubscribe:function(){P&&R(u({queryCacheKey:B,requestId:Q}))},updateSubscriptionOptions:function(ee){X.subscriptionOptions=ee,R(f({endpointName:S,requestId:Q,queryCacheKey:B,options:ee}))}});if(!te&&!Y&&!A){var F=a.get(R)||{};F[B]=X,a.set(R,F),X.then(function(){delete F[B],Object.keys(F).length||a.delete(R)})}return X}};return O}function E(S){return function($,O){var I=O===void 0?{}:O,w=I.track,N=w===void 0?!0:w,_=I.fixedCacheKey;return function(P,M){var D=r({type:"mutation",endpointName:S,originalArgs:$,track:N,fixedCacheKey:_}),T=P(D);C(P);var A=T.requestId,R=T.abort,L=T.unwrap,j=T.unwrap().then(function(W){return{data:W}}).catch(function(W){return{error:W}}),z=function(){P(d({requestId:A,fixedCacheKey:_}))},B=Object.assign(j,{arg:T.arg,requestId:A,abort:R,unwrap:L,unsubscribe:z,reset:z}),K=l.get(P)||{};return l.set(P,K),K[A]=B,B.then(function(){delete K[A],Object.keys(K).length||l.delete(P)}),_&&(K[_]=B,B.then(function(){K[_]===B&&(delete K[_],Object.keys(K).length||l.delete(P))})),B}}}}function Dg(e){return e}function YN(e){var t=this,n=e.reducerPath,r=e.baseQuery,o=e.context.endpointDefinitions,i=e.serializeQueryArgs,a=e.api,l=function(x,E,S){return function($){var O=o[x];$(a.internalActions.queryResultPatched({queryCacheKey:i({queryArgs:E,endpointDefinition:O,endpointName:x}),patches:S}))}},c=function(x,E,S){return function($,O){var I,w,N=a.endpoints[x].select(E)(O()),_={patches:[],inversePatches:[],undo:function(){return $(a.util.patchQueryData(x,E,_.inversePatches))}};if(N.status===un.uninitialized)return _;if("data"in N)if(vo(N.data)){var P=gg(N.data,S),M=P[1],D=P[2];(I=_.patches).push.apply(I,M),(w=_.inversePatches).push.apply(w,D)}else{var T=S(N.data);_.patches.push({op:"replace",path:[],value:T}),_.inversePatches.push({op:"replace",path:[],value:N.data})}return $(a.util.patchQueryData(x,E,_.patches)),_}},u=function(x,E,S){return function($){var O;return $(a.endpoints[x].initiate(E,(O={subscribe:!1,forceRefetch:!0},O[Ea]=function(){return{data:S}},O)))}},d=function(x,E){return Zl(t,[x,E],function(S,$){var O,I,w,N,_,P,M,D,T,A,R,L,j,z,B,K,W,k,V=$.signal,Q=$.abort,J=$.rejectWithValue,Y=$.fulfillWithValue,te=$.dispatch,oe=$.getState,X=$.extra;return Ql(this,function(F){switch(F.label){case 0:O=o[S.endpointName],F.label=1;case 1:return F.trys.push([1,8,,13]),I=Dg,w=void 0,N={signal:V,abort:Q,dispatch:te,getState:oe,extra:X,endpoint:S.endpointName,type:S.type,forced:S.type==="query"?f(S,oe()):void 0},_=S.type==="query"?S[Ea]:void 0,_?(w=_(),[3,6]):[3,2];case 2:return O.query?[4,r(O.query(S.originalArgs),N,O.extraOptions)]:[3,4];case 3:return w=F.sent(),O.transformResponse&&(I=O.transformResponse),[3,6];case 4:return[4,O.queryFn(S.originalArgs,N,O.extraOptions,function(ee){return r(ee,N,O.extraOptions)})];case 5:w=F.sent(),F.label=6;case 6:if(typeof process!="undefined"&&process.env.NODE_ENV==="development"){if(P=O.query?"`baseQuery`":"`queryFn`",M=void 0,!w)M=P+" did not return anything.";else if(typeof w!="object")M=P+" did not return an object.";else if(w.error&&w.data)M=P+" returned an object containing both `error` and `result`.";else if(w.error===void 0&&w.data===void 0)M=P+" returned an object containing neither a valid `error` and `result`. At least one of them should not be `undefined`";else for(D=0,T=Object.keys(w);D<T.length;D++)if(A=T[D],A!=="error"&&A!=="data"&&A!=="meta"){M="The object returned by "+P+" has the unknown property "+A+".";break}M&&console.error("Error encountered handling the endpoint "+S.endpointName+`.
|
|
24
|
+
`+M+"\n It needs to return an object with either the shape `{ data: <value> }` or `{ error: <value> }` that may contain an optional `meta` property.\n Object returned was:",w)}if(w.error)throw new Ig(w.error,w.meta);return R=Y,[4,I(w.data,w.meta,S.originalArgs)];case 7:return[2,R.apply(void 0,[F.sent(),(W={fulfilledTimeStamp:Date.now(),baseQueryMeta:w.meta},W[We.SHOULD_AUTOBATCH]=!0,W)])];case 8:if(L=F.sent(),j=L,!(j instanceof Ig))return[3,12];z=Dg,O.query&&O.transformErrorResponse&&(z=O.transformErrorResponse),F.label=9;case 9:return F.trys.push([9,11,,12]),B=J,[4,z(j.value,j.meta,S.originalArgs)];case 10:return[2,B.apply(void 0,[F.sent(),(k={baseQueryMeta:j.meta},k[We.SHOULD_AUTOBATCH]=!0,k)])];case 11:return K=F.sent(),j=K,[3,12];case 12:throw typeof process!="undefined"&&process.env.NODE_ENV!=="production"?console.error('An unhandled error occurred processing a request for the endpoint "'+S.endpointName+`".
|
|
25
|
+
In the case of an unhandled error, no tags will be "provided" or "invalidated".`,j):console.error(j),j;case 13:return[2]}})})};function f(x,E){var S,$,O,I,w=($=(S=E[n])==null?void 0:S.queries)==null?void 0:$[x.queryCacheKey],N=(O=E[n])==null?void 0:O.config.refetchOnMountOrArgChange,_=w==null?void 0:w.fulfilledTimeStamp,P=(I=x.forceRefetch)!=null?I:x.subscribe&&N;return P?P===!0||(Number(new Date)-Number(_))/1e3>=P:!1}var m=We.createAsyncThunk(n+"/executeQuery",d,{getPendingMeta:function(){var x;return x={startedTimeStamp:Date.now()},x[We.SHOULD_AUTOBATCH]=!0,x},condition:function(x,E){var S=E.getState,$,O,I,w=S(),N=(O=($=w[n])==null?void 0:$.queries)==null?void 0:O[x.queryCacheKey],_=N==null?void 0:N.fulfilledTimeStamp,P=x.originalArgs,M=N==null?void 0:N.originalArgs,D=o[x.endpointName];return rd(x)?!0:(N==null?void 0:N.status)==="pending"?!1:f(x,w)||Pg(D)&&((I=D==null?void 0:D.forceRefetch)!=null&&I.call(D,{currentArg:P,previousArg:M,endpointState:N,state:w}))?!0:!_},dispatchConditionRejection:!0}),p=We.createAsyncThunk(n+"/executeMutation",d,{getPendingMeta:function(){var x;return x={startedTimeStamp:Date.now()},x[We.SHOULD_AUTOBATCH]=!0,x}}),h=function(x){return"force"in x},b=function(x){return"ifOlderThan"in x},v=function(x,E,S){return function($,O){var I=h(S)&&S.force,w=b(S)&&S.ifOlderThan,N=function(D){return D===void 0&&(D=!0),a.endpoints[x].initiate(E,{forceRefetch:D})},_=a.endpoints[x].select(E)(O());if(I)$(N());else if(w){var P=_==null?void 0:_.fulfilledTimeStamp;if(!P){$(N());return}var M=(Number(new Date)-Number(new Date(P)))/1e3>=w;M&&$(N())}else $(N(!1))}};function y(x){return function(E){var S,$;return(($=(S=E==null?void 0:E.meta)==null?void 0:S.arg)==null?void 0:$.endpointName)===x}}function C(x,E){return{matchPending:We.isAllOf(We.isPending(x),y(E)),matchFulfilled:We.isAllOf(We.isFulfilled(x),y(E)),matchRejected:We.isAllOf(We.isRejected(x),y(E))}}return{queryThunk:m,mutationThunk:p,prefetch:v,updateQueryData:c,upsertQueryData:u,patchQueryData:l,buildMatchThunkActions:C}}function Ag(e,t,n,r){return Mg(n[e.meta.arg.endpointName][t],We.isFulfilled(e)?e.payload:void 0,We.isRejectedWithValue(e)?e.payload:void 0,e.meta.arg.originalArgs,"baseQueryMeta"in e.meta?e.meta.baseQueryMeta:void 0,r)}function es(e,t,n){var r=e[t];r&&n(r)}function $a(e){var t;return(t="arg"in e?e.arg.fixedCacheKey:e.fixedCacheKey)!=null?t:e.requestId}function Rg(e,t,n){var r=e[$a(t)];r&&n(r)}var wa={};function JN(e){var t=e.reducerPath,n=e.queryThunk,r=e.mutationThunk,o=e.context,i=o.endpointDefinitions,a=o.apiUid,l=o.extractRehydrationInfo,c=o.hasRehydrationInfo,u=e.assertTagType,d=e.config,f=We.createAction(t+"/resetApiState"),m=We.createSlice({name:t+"/queries",initialState:wa,reducers:{removeQueryResult:{reducer:function(S,$){var O=$.payload.queryCacheKey;delete S[O]},prepare:We.prepareAutoBatched()},queryResultPatched:function(S,$){var O=$.payload,I=O.queryCacheKey,w=O.patches;es(S,I,function(N){N.data=hg(N.data,w.concat())})}},extraReducers:function(S){S.addCase(n.pending,function($,O){var I=O.meta,w=O.meta.arg,N,_,P=rd(w);(w.subscribe||P)&&((_=$[N=w.queryCacheKey])!=null||($[N]={status:un.uninitialized,endpointName:w.endpointName})),es($,w.queryCacheKey,function(M){M.status=un.pending,M.requestId=P&&M.requestId?M.requestId:I.requestId,w.originalArgs!==void 0&&(M.originalArgs=w.originalArgs),M.startedTimeStamp=I.startedTimeStamp})}).addCase(n.fulfilled,function($,O){var I=O.meta,w=O.payload;es($,I.arg.queryCacheKey,function(N){var _;if(!(N.requestId!==I.requestId&&!rd(I.arg))){var P=i[I.arg.endpointName].merge;if(N.status=un.fulfilled,P)if(N.data!==void 0){var M=I.fulfilledTimeStamp,D=I.arg,T=I.baseQueryMeta,A=I.requestId,R=We.createNextState(N.data,function(L){return P(L,w,{arg:D.originalArgs,baseQueryMeta:T,fulfilledTimeStamp:M,requestId:A})});N.data=R}else N.data=w;else N.data=(_=i[I.arg.endpointName].structuralSharing)==null||_?wg(N.data,w):w;delete N.error,N.fulfilledTimeStamp=I.fulfilledTimeStamp}})}).addCase(n.rejected,function($,O){var I=O.meta,w=I.condition,N=I.arg,_=I.requestId,P=O.error,M=O.payload;es($,N.queryCacheKey,function(D){if(!w){if(D.requestId!==_)return;D.status=un.rejected,D.error=M!=null?M:P}})}).addMatcher(c,function($,O){for(var I=l(O).queries,w=0,N=Object.entries(I);w<N.length;w++){var _=N[w],P=_[0],M=_[1];((M==null?void 0:M.status)===un.fulfilled||(M==null?void 0:M.status)===un.rejected)&&($[P]=M)}})}}),p=We.createSlice({name:t+"/mutations",initialState:wa,reducers:{removeMutationResult:{reducer:function(S,$){var O=$.payload,I=$a(O);I in S&&delete S[I]},prepare:We.prepareAutoBatched()}},extraReducers:function(S){S.addCase(r.pending,function($,O){var I=O.meta,w=O.meta,N=w.requestId,_=w.arg,P=w.startedTimeStamp;_.track&&($[$a(I)]={requestId:N,status:un.pending,endpointName:_.endpointName,startedTimeStamp:P})}).addCase(r.fulfilled,function($,O){var I=O.payload,w=O.meta;w.arg.track&&Rg($,w,function(N){N.requestId===w.requestId&&(N.status=un.fulfilled,N.data=I,N.fulfilledTimeStamp=w.fulfilledTimeStamp)})}).addCase(r.rejected,function($,O){var I=O.payload,w=O.error,N=O.meta;N.arg.track&&Rg($,N,function(_){_.requestId===N.requestId&&(_.status=un.rejected,_.error=I!=null?I:w)})}).addMatcher(c,function($,O){for(var I=l(O).mutations,w=0,N=Object.entries(I);w<N.length;w++){var _=N[w],P=_[0],M=_[1];((M==null?void 0:M.status)===un.fulfilled||(M==null?void 0:M.status)===un.rejected)&&P!==(M==null?void 0:M.requestId)&&($[P]=M)}})}}),h=We.createSlice({name:t+"/invalidation",initialState:wa,reducers:{},extraReducers:function(S){S.addCase(m.actions.removeQueryResult,function($,O){for(var I=O.payload.queryCacheKey,w=0,N=Object.values($);w<N.length;w++)for(var _=N[w],P=0,M=Object.values(_);P<M.length;P++){var D=M[P],T=D.indexOf(I);T!==-1&&D.splice(T,1)}}).addMatcher(c,function($,O){for(var I,w,N,_,P=l(O).provided,M=0,D=Object.entries(P);M<D.length;M++)for(var T=D[M],A=T[0],R=T[1],L=0,j=Object.entries(R);L<j.length;L++)for(var z=j[L],B=z[0],K=z[1],W=(_=(w=(I=$[A])!=null?I:$[A]={})[N=B||"__internal_without_id"])!=null?_:w[N]=[],k=0,V=K;k<V.length;k++){var Q=V[k],J=W.includes(Q);J||W.push(Q)}}).addMatcher(We.isAnyOf(We.isFulfilled(n),We.isRejectedWithValue(n)),function($,O){for(var I,w,N,_,P=Ag(O,"providesTags",i,u),M=O.meta.arg.queryCacheKey,D=0,T=Object.values($);D<T.length;D++)for(var A=T[D],R=0,L=Object.values(A);R<L.length;R++){var j=L[R],z=j.indexOf(M);z!==-1&&j.splice(z,1)}for(var B=0,K=P;B<K.length;B++){var W=K[B],k=W.type,V=W.id,Q=(_=(w=(I=$[k])!=null?I:$[k]={})[N=V||"__internal_without_id"])!=null?_:w[N]=[],J=Q.includes(M);J||Q.push(M)}})}}),b=We.createSlice({name:t+"/subscriptions",initialState:wa,reducers:{updateSubscriptionOptions:function(S,$){},unsubscribeQueryResult:function(S,$){},internal_probeSubscription:function(S,$){}}}),v=We.createSlice({name:t+"/internalSubscriptions",initialState:wa,reducers:{subscriptionsUpdated:function(S,$){return hg(S,$.payload)}}}),y=We.createSlice({name:t+"/config",initialState:wn({online:VN(),focused:WN(),middlewareRegistered:!1},d),reducers:{middlewareRegistered:function(S,$){var O=$.payload;S.middlewareRegistered=S.middlewareRegistered==="conflict"||a!==O?"conflict":!0}},extraReducers:function(S){S.addCase(ed,function($){$.online=!0}).addCase(Tg,function($){$.online=!1}).addCase(Zu,function($){$.focused=!0}).addCase(_g,function($){$.focused=!1}).addMatcher(c,function($){return wn({},$)})}}),C=We.combineReducers({queries:m.reducer,mutations:p.reducer,provided:h.reducer,subscriptions:v.reducer,config:y.reducer}),x=function(S,$){return C(f.match($)?void 0:S,$)},E=Xr(wn(wn(wn(wn(wn({},y.actions),m.actions),b.actions),v.actions),p.actions),{unsubscribeMutationResult:p.actions.removeMutationResult,resetApiState:f});return{reducer:x,actions:E}}var ei=Symbol.for("RTKQ/skipToken"),jg={status:un.uninitialized},Lg=We.createNextState(jg,function(){}),zg=We.createNextState(jg,function(){});function ZN(e){var t=e.serializeQueryArgs,n=e.reducerPath,r=function(d){return Lg},o=function(d){return zg};return{buildQuerySelector:l,buildMutationSelector:c,selectInvalidatedBy:u};function i(d){return wn(wn({},d),zN(d.status))}function a(d){var f=d[n];if(process.env.NODE_ENV!=="production"&&!f){if(a.triggered)return f;a.triggered=!0,console.error("Error: No data found at `state."+n+"`. Did you forget to add the reducer to the store?")}return f}function l(d,f){return function(m){var p=t({queryArgs:m,endpointDefinition:f,endpointName:d}),h=function(v){var y,C,x;return(x=(C=(y=a(v))==null?void 0:y.queries)==null?void 0:C[p])!=null?x:Lg},b=m===ei?r:h;return We.createSelector(b,i)}}function c(){return function(d){var f,m;typeof d=="object"?m=(f=$a(d))!=null?f:ei:m=d;var p=function(b){var v,y,C;return(C=(y=(v=a(b))==null?void 0:v.mutations)==null?void 0:y[m])!=null?C:zg},h=m===ei?o:p;return We.createSelector(h,i)}}function u(d,f){for(var m,p=d[n],h=new Set,b=0,v=f.map(td);b<v.length;b++){var y=v[b],C=p.provided[y.type];if(C)for(var x=(m=y.id!==void 0?C[y.id]:Eg(Object.values(C)))!=null?m:[],E=0,S=x;E<S.length;E++){var $=S[E];h.add($)}}return Eg(Array.from(h.values()).map(function(O){var I=p.queries[O];return I?[{queryCacheKey:O,endpointName:I.endpointName,originalArgs:I.originalArgs}]:[]}))}}var ts=WeakMap?new WeakMap:void 0,Bg=function(e){var t=e.endpointName,n=e.queryArgs,r="",o=ts==null?void 0:ts.get(n);if(typeof o=="string")r=o;else{var i=JSON.stringify(n,function(a,l){return We.isPlainObject(l)?Object.keys(l).sort().reduce(function(c,u){return c[u]=l[u],c},{}):l});We.isPlainObject(n)&&(ts==null||ts.set(n,i)),r=i}return t+"("+r+")"};function eI(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(r){var o=bg(function(d){var f,m;return(m=r.extractRehydrationInfo)==null?void 0:m.call(r,d,{reducerPath:(f=r.reducerPath)!=null?f:"api"})}),i=Xr(wn({reducerPath:"api",keepUnusedDataFor:60,refetchOnMountOrArgChange:!1,refetchOnFocus:!1,refetchOnReconnect:!1},r),{extractRehydrationInfo:o,serializeQueryArgs:function(d){var f=Bg;if("serializeQueryArgs"in d.endpointDefinition){var m=d.endpointDefinition.serializeQueryArgs;f=function(p){var h=m(p);return typeof h=="string"?h:Bg(Xr(wn({},p),{queryArgs:h}))}}else r.serializeQueryArgs&&(f=r.serializeQueryArgs);return f(d)},tagTypes:Yl([],r.tagTypes||[])}),a={endpointDefinitions:{},batch:function(d){d()},apiUid:We.nanoid(),extractRehydrationInfo:o,hasRehydrationInfo:bg(function(d){return o(d)!=null})},l={injectEndpoints:u,enhanceEndpoints:function(d){var f=d.addTagTypes,m=d.endpoints;if(f)for(var p=0,h=f;p<h.length;p++){var b=h[p];i.tagTypes.includes(b)||i.tagTypes.push(b)}if(m)for(var v=0,y=Object.entries(m);v<y.length;v++){var C=y[v],x=C[0],E=C[1];typeof E=="function"?E(a.endpointDefinitions[x]):Object.assign(a.endpointDefinitions[x]||{},E)}return l}},c=e.map(function(d){return d.init(l,i,a)});function u(d){for(var f=d.endpoints({query:function(E){return Xr(wn({},E),{type:Qr.query})},mutation:function(E){return Xr(wn({},E),{type:Qr.mutation})}}),m=0,p=Object.entries(f);m<p.length;m++){var h=p[m],b=h[0],v=h[1];if(!d.overrideExisting&&b in a.endpointDefinitions){typeof process!="undefined"&&process.env.NODE_ENV==="development"&&console.error("called `injectEndpoints` to override already-existing endpointName "+b+" without specifying `overrideExisting: true`");continue}a.endpointDefinitions[b]=v;for(var y=0,C=c;y<C.length;y++){var x=C[y];x.injectEndpoint(b,v)}}return l}return l.injectEndpoints({endpoints:r.endpoints})}}function tI(e){for(var t in e)return!1;return!0}var nI=2147483647/1e3-1,rI=function(e){var t=e.reducerPath,n=e.api,r=e.context,o=e.internalState,i=n.internalActions,a=i.removeQueryResult,l=i.unsubscribeQueryResult;function c(m){var p=o.currentSubscriptions[m];return!!p&&!tI(p)}var u={},d=function(m,p,h){var b;if(l.match(m)){var v=p.getState()[t],y=m.payload.queryCacheKey;f(y,(b=v.queries[y])==null?void 0:b.endpointName,p,v.config)}if(n.util.resetApiState.match(m))for(var C=0,x=Object.entries(u);C<x.length;C++){var E=x[C],S=E[0],$=E[1];$&&clearTimeout($),delete u[S]}if(r.hasRehydrationInfo(m))for(var v=p.getState()[t],O=r.extractRehydrationInfo(m).queries,I=0,w=Object.entries(O);I<w.length;I++){var N=w[I],y=N[0],_=N[1];f(y,_==null?void 0:_.endpointName,p,v.config)}};function f(m,p,h,b){var v,y=r.endpointDefinitions[p],C=(v=y==null?void 0:y.keepUnusedDataFor)!=null?v:b.keepUnusedDataFor;if(C!==1/0){var x=Math.max(0,Math.min(C,nI));if(!c(m)){var E=u[m];E&&clearTimeout(E),u[m]=setTimeout(function(){c(m)||h.dispatch(a({queryCacheKey:m})),delete u[m]},x*1e3)}}}return d},oI=function(e){var t=e.reducerPath,n=e.context,r=e.context.endpointDefinitions,o=e.mutationThunk,i=e.api,a=e.assertTagType,l=e.refetchQuery,c=i.internalActions.removeQueryResult,u=We.isAnyOf(We.isFulfilled(o),We.isRejectedWithValue(o)),d=function(m,p){u(m)&&f(Ag(m,"invalidatesTags",r,a),p),i.util.invalidateTags.match(m)&&f(Mg(m.payload,void 0,void 0,void 0,void 0,a),p)};function f(m,p){var h=p.getState(),b=h[t],v=i.util.selectInvalidatedBy(h,m);n.batch(function(){for(var y,C=Array.from(v.values()),x=0,E=C;x<E.length;x++){var S=E[x].queryCacheKey,$=b.queries[S],O=(y=b.subscriptions[S])!=null?y:{};$&&(Object.keys(O).length===0?p.dispatch(c({queryCacheKey:S})):$.status!==un.uninitialized&&p.dispatch(l($,S)))}})}return d},iI=function(e){var t=e.reducerPath,n=e.queryThunk,r=e.api,o=e.refetchQuery,i=e.internalState,a={},l=function(p,h){(r.internalActions.updateSubscriptionOptions.match(p)||r.internalActions.unsubscribeQueryResult.match(p))&&u(p.payload,h),(n.pending.match(p)||n.rejected.match(p)&&p.meta.condition)&&u(p.meta.arg,h),(n.fulfilled.match(p)||n.rejected.match(p)&&!p.meta.condition)&&c(p.meta.arg,h),r.util.resetApiState.match(p)&&f()};function c(p,h){var b=p.queryCacheKey,v=h.getState()[t],y=v.queries[b],C=i.currentSubscriptions[b];if(!(!y||y.status===un.uninitialized)){var x=m(C);if(Number.isFinite(x)){var E=a[b];E!=null&&E.timeout&&(clearTimeout(E.timeout),E.timeout=void 0);var S=Date.now()+x,$=a[b]={nextPollTimestamp:S,pollingInterval:x,timeout:setTimeout(function(){$.timeout=void 0,h.dispatch(o(y,b))},x)}}}}function u(p,h){var b=p.queryCacheKey,v=h.getState()[t],y=v.queries[b],C=i.currentSubscriptions[b];if(!(!y||y.status===un.uninitialized)){var x=m(C);if(!Number.isFinite(x)){d(b);return}var E=a[b],S=Date.now()+x;(!E||S<E.nextPollTimestamp)&&c({queryCacheKey:b},h)}}function d(p){var h=a[p];h!=null&&h.timeout&&clearTimeout(h.timeout),delete a[p]}function f(){for(var p=0,h=Object.keys(a);p<h.length;p++){var b=h[p];d(b)}}function m(p){p===void 0&&(p={});var h=Number.POSITIVE_INFINITY;for(var b in p)p[b].pollingInterval&&(h=Math.min(p[b].pollingInterval,h));return h}return l},aI=function(e){var t=e.reducerPath,n=e.context,r=e.api,o=e.refetchQuery,i=e.internalState,a=r.internalActions.removeQueryResult,l=function(u,d){Zu.match(u)&&c(d,"refetchOnFocus"),ed.match(u)&&c(d,"refetchOnReconnect")};function c(u,d){var f=u.getState()[t],m=f.queries,p=i.currentSubscriptions;n.batch(function(){for(var h=0,b=Object.keys(p);h<b.length;h++){var v=b[h],y=m[v],C=p[v];if(!(!C||!y)){var x=Object.values(C).some(function(E){return E[d]===!0})||Object.values(C).every(function(E){return E[d]===void 0})&&f.config[d];x&&(Object.keys(C).length===0?u.dispatch(a({queryCacheKey:v})):y.status!==un.uninitialized&&u.dispatch(o(y,v)))}}})}return l},kg=new Error("Promise never resolved before cacheEntryRemoved."),lI=function(e){var t=e.api,n=e.reducerPath,r=e.context,o=e.queryThunk,i=e.mutationThunk;e.internalState;var a=We.isAsyncThunkAction(o),l=We.isAsyncThunkAction(i),c=We.isFulfilled(o,i),u={},d=function(p,h,b){var v=f(p);if(o.pending.match(p)){var y=b[n].queries[v],C=h.getState()[n].queries[v];!y&&C&&m(p.meta.arg.endpointName,p.meta.arg.originalArgs,v,h,p.meta.requestId)}else if(i.pending.match(p)){var C=h.getState()[n].mutations[v];C&&m(p.meta.arg.endpointName,p.meta.arg.originalArgs,v,h,p.meta.requestId)}else if(c(p)){var x=u[v];x!=null&&x.valueResolved&&(x.valueResolved({data:p.payload,meta:p.meta.baseQueryMeta}),delete x.valueResolved)}else if(t.internalActions.removeQueryResult.match(p)||t.internalActions.removeMutationResult.match(p)){var x=u[v];x&&(delete u[v],x.cacheEntryRemoved())}else if(t.util.resetApiState.match(p))for(var E=0,S=Object.entries(u);E<S.length;E++){var $=S[E],O=$[0],x=$[1];delete u[O],x.cacheEntryRemoved()}};function f(p){return a(p)?p.meta.arg.queryCacheKey:l(p)?p.meta.requestId:t.internalActions.removeQueryResult.match(p)?p.payload.queryCacheKey:t.internalActions.removeMutationResult.match(p)?$a(p.payload):""}function m(p,h,b,v,y){var C=r.endpointDefinitions[p],x=C==null?void 0:C.onCacheEntryAdded;if(x){var E={},S=new Promise(function(_){E.cacheEntryRemoved=_}),$=Promise.race([new Promise(function(_){E.valueResolved=_}),S.then(function(){throw kg})]);$.catch(function(){}),u[b]=E;var O=t.endpoints[p].select(C.type===Qr.query?h:b),I=v.dispatch(function(_,P,M){return M}),w=Xr(wn({},v),{getCacheEntry:function(){return O(v.getState())},requestId:y,extra:I,updateCachedData:C.type===Qr.query?function(_){return v.dispatch(t.util.updateQueryData(p,h,_))}:void 0,cacheDataLoaded:$,cacheEntryRemoved:S}),N=x(h,w);Promise.resolve(N).catch(function(_){if(_!==kg)throw _})}}return d},sI=function(e){var t=e.api,n=e.context,r=e.queryThunk,o=e.mutationThunk,i=We.isPending(r,o),a=We.isRejected(r,o),l=We.isFulfilled(r,o),c={},u=function(d,f){var m,p,h;if(i(d)){var b=d.meta,v=b.requestId,y=b.arg,C=y.endpointName,x=y.originalArgs,E=n.endpointDefinitions[C],S=E==null?void 0:E.onQueryStarted;if(S){var $={},O=new Promise(function(T,A){$.resolve=T,$.reject=A});O.catch(function(){}),c[v]=$;var I=t.endpoints[C].select(E.type===Qr.query?x:v),w=f.dispatch(function(T,A,R){return R}),N=Xr(wn({},f),{getCacheEntry:function(){return I(f.getState())},requestId:v,extra:w,updateCachedData:E.type===Qr.query?function(T){return f.dispatch(t.util.updateQueryData(C,x,T))}:void 0,queryFulfilled:O});S(x,N)}}else if(l(d)){var _=d.meta,v=_.requestId,P=_.baseQueryMeta;(m=c[v])==null||m.resolve({data:d.payload,meta:P}),delete c[v]}else if(a(d)){var M=d.meta,v=M.requestId,D=M.rejectedWithValue,P=M.baseQueryMeta;(h=c[v])==null||h.reject({error:(p=d.payload)!=null?p:d.error,isUnhandledError:!D,meta:P}),delete c[v]}};return u},cI=function(e){var t=e.api,n=e.context.apiUid,r=e.reducerPath;return function(o,i){var a,l;t.util.resetApiState.match(o)&&i.dispatch(t.internalActions.middlewareRegistered(n)),typeof process!="undefined"&&process.env.NODE_ENV==="development"&&t.internalActions.middlewareRegistered.match(o)&&o.payload===n&&((l=(a=i.getState()[r])==null?void 0:a.config)==null?void 0:l.middlewareRegistered)==="conflict"&&console.warn('There is a mismatch between slice and middleware for the reducerPath "'+r+`".
|
|
26
|
+
You can only have one api per reducer path, this will lead to crashes in various situations!`+(r==="api"?`
|
|
27
|
+
If you have multiple apis, you *have* to specify the reducerPath option when using createApi!`:""))}},Fg,uI=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window!="undefined"?window:typeof global!="undefined"?global:globalThis):function(e){return(Fg||(Fg=Promise.resolve())).then(e).catch(function(t){return setTimeout(function(){throw t},0)})},dI=function(e){var t=e.api,n=e.queryThunk,r=e.internalState,o=t.reducerPath+"/subscriptions",i=null,a=!1,l=t.internalActions,c=l.updateSubscriptionOptions,u=l.unsubscribeQueryResult,d=function(f,m){var p,h,b,v,y,C,x,E,S;if(c.match(m)){var $=m.payload,O=$.queryCacheKey,I=$.requestId,w=$.options;return(p=f==null?void 0:f[O])!=null&&p[I]&&(f[O][I]=w),!0}if(u.match(m)){var N=m.payload,O=N.queryCacheKey,I=N.requestId;return f[O]&&delete f[O][I],!0}if(t.internalActions.removeQueryResult.match(m))return delete f[m.payload.queryCacheKey],!0;if(n.pending.match(m)){var _=m.meta,P=_.arg,I=_.requestId;if(P.subscribe){var M=(b=f[h=P.queryCacheKey])!=null?b:f[h]={};return M[I]=(y=(v=P.subscriptionOptions)!=null?v:M[I])!=null?y:{},!0}}if(n.rejected.match(m)){var D=m.meta,T=D.condition,P=D.arg,I=D.requestId;if(T&&P.subscribe){var M=(x=f[C=P.queryCacheKey])!=null?x:f[C]={};return M[I]=(S=(E=P.subscriptionOptions)!=null?E:M[I])!=null?S:{},!0}}return!1};return function(f,m){var p,h;if(i||(i=JSON.parse(JSON.stringify(r.currentSubscriptions))),t.internalActions.internal_probeSubscription.match(f)){var b=f.payload,v=b.queryCacheKey,y=b.requestId,C=!!((p=r.currentSubscriptions[v])!=null&&p[y]);return[!1,C]}var x=d(r.currentSubscriptions,f);if(x){a||(uI(function(){var O=JSON.parse(JSON.stringify(r.currentSubscriptions)),I=gg(i,function(){return O}),w=I[1];m.next(t.internalActions.subscriptionsUpdated(w)),i=O,a=!1}),a=!0);var E=!!((h=f.type)!=null&&h.startsWith(o)),S=n.rejected.match(f)&&f.meta.condition&&!!f.meta.arg.subscribe,$=!E&&!S;return[$,!1]}return[!0,!1]}};function fI(e){var t=e.reducerPath,n=e.queryThunk,r=e.api,o=e.context,i=o.apiUid,a={invalidateTags:We.createAction(t+"/invalidateTags")},l=function(f){return!!f&&typeof f.type=="string"&&f.type.startsWith(t+"/")},c=[cI,rI,oI,iI,lI,sI],u=function(f){var m=!1,p={currentSubscriptions:{}},h=Xr(wn({},e),{internalState:p,refetchQuery:d}),b=c.map(function(C){return C(h)}),v=dI(h),y=aI(h);return function(C){return function(x){m||(m=!0,f.dispatch(r.internalActions.middlewareRegistered(i)));var E=Xr(wn({},f),{next:C}),S=f.getState(),$=v(x,E,S),O=$[0],I=$[1],w;if(O?w=C(x):w=I,f.getState()[t]&&(y(x,E,S),l(x)||o.hasRehydrationInfo(x)))for(var N=0,_=b;N<_.length;N++){var P=_[N];P(x,E,S)}return w}}};return{middleware:u,actions:a};function d(f,m,p){return p===void 0&&(p={}),n(wn({type:"query",endpointName:f.endpointName,originalArgs:f.originalArgs,subscribe:!1,forceRefetch:!0,queryCacheKey:m},p))}}function Po(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];Object.assign.apply(Object,Yl([e],t))}var Hg=Symbol(),mI=function(){return{name:Hg,init:function(e,t,n){var r=t.baseQuery,o=t.tagTypes,i=t.reducerPath,a=t.serializeQueryArgs,l=t.keepUnusedDataFor,c=t.refetchOnMountOrArgChange,u=t.refetchOnFocus,d=t.refetchOnReconnect;$N();var f=function(W){return typeof process!="undefined"&&process.env.NODE_ENV==="development"&&(o.includes(W.type)||console.error("Tag type '"+W.type+"' was used, but not specified in `tagTypes`!")),W};Object.assign(e,{reducerPath:i,endpoints:{},internalActions:{onOnline:ed,onOffline:Tg,onFocus:Zu,onFocusLost:_g},util:{}});var m=YN({baseQuery:r,reducerPath:i,context:n,api:e,serializeQueryArgs:a}),p=m.queryThunk,h=m.mutationThunk,b=m.patchQueryData,v=m.updateQueryData,y=m.upsertQueryData,C=m.prefetch,x=m.buildMatchThunkActions,E=JN({context:n,queryThunk:p,mutationThunk:h,reducerPath:i,assertTagType:f,config:{refetchOnFocus:u,refetchOnReconnect:d,refetchOnMountOrArgChange:c,keepUnusedDataFor:l,reducerPath:i}}),S=E.reducer,$=E.actions;Po(e.util,{patchQueryData:b,updateQueryData:v,upsertQueryData:y,prefetch:C,resetApiState:$.resetApiState}),Po(e.internalActions,$);var O=fI({reducerPath:i,context:n,queryThunk:p,mutationThunk:h,api:e,assertTagType:f}),I=O.middleware,w=O.actions;Po(e.util,w),Po(e,{reducer:S,middleware:I});var N=ZN({serializeQueryArgs:a,reducerPath:i}),_=N.buildQuerySelector,P=N.buildMutationSelector,M=N.selectInvalidatedBy;Po(e.util,{selectInvalidatedBy:M});var D=QN({queryThunk:p,mutationThunk:h,api:e,serializeQueryArgs:a,context:n}),T=D.buildInitiateQuery,A=D.buildInitiateMutation,R=D.getRunningMutationThunk,L=D.getRunningMutationsThunk,j=D.getRunningQueriesThunk,z=D.getRunningQueryThunk,B=D.getRunningOperationPromises,K=D.removalWarning;return Po(e.util,{getRunningOperationPromises:B,getRunningOperationPromise:K,getRunningMutationThunk:R,getRunningMutationsThunk:L,getRunningQueryThunk:z,getRunningQueriesThunk:j}),{name:Hg,injectEndpoint:function(W,k){var V,Q,J=e;(Q=(V=J.endpoints)[W])!=null||(V[W]={}),Pg(k)?Po(J.endpoints[W],{name:W,select:_(W,k),initiate:T(W,k)},x(p,W)):GN(k)&&Po(J.endpoints[W],{name:W,select:P(),initiate:A(W)},x(h,W))}}}}},pI=globalThis&&globalThis.__spreadArray||function(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e},vI=Object.defineProperty,gI=Object.defineProperties,hI=Object.getOwnPropertyDescriptors,Vg=Object.getOwnPropertySymbols,bI=Object.prototype.hasOwnProperty,yI=Object.prototype.propertyIsEnumerable,Wg=function(e,t,n){return t in e?vI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},go=function(e,t){for(var n in t||(t={}))bI.call(t,n)&&Wg(e,n,t[n]);if(Vg)for(var r=0,o=Vg(t);r<o.length;r++){var n=o[r];yI.call(t,n)&&Wg(e,n,t[n])}return e},ns=function(e,t){return gI(e,hI(t))};function Kg(e,t,n,r){var o=g.useMemo(function(){return{queryArgs:e,serialized:typeof e=="object"?t({queryArgs:e,endpointDefinition:n,endpointName:r}):e}},[e,t,n,r]),i=g.useRef(o);return g.useEffect(function(){i.current.serialized!==o.serialized&&(i.current=o)},[o]),i.current.serialized===o.serialized?i.current.queryArgs:e}var od=Symbol();function id(e){var t=g.useRef(e);return g.useEffect(function(){$t.shallowEqual(t.current,e)||(t.current=e)},[e]),$t.shallowEqual(t.current,e)?t.current:e}var rs=WeakMap?new WeakMap:void 0,CI=function(e){var t=e.endpointName,n=e.queryArgs,r="",o=rs==null?void 0:rs.get(n);if(typeof o=="string")r=o;else{var i=JSON.stringify(n,function(a,l){return We.isPlainObject(l)?Object.keys(l).sort().reduce(function(c,u){return c[u]=l[u],c},{}):l});We.isPlainObject(n)&&(rs==null||rs.set(n,i)),r=i}return t+"("+r+")"},SI=typeof window!="undefined"&&window.document&&window.document.createElement?g.useLayoutEffect:g.useEffect,xI=function(e){return e},EI=function(e){return e.isUninitialized?ns(go({},e),{isUninitialized:!1,isFetching:!0,isLoading:e.data===void 0,status:un.pending}):e};function $I(e){var t=e.api,n=e.moduleOptions,r=n.batch,o=n.useDispatch,i=n.useSelector,a=n.useStore,l=n.unstable__sideEffectsInRender,c=e.serializeQueryArgs,u=e.context,d=l?function(b){return b()}:g.useEffect;return{buildQueryHooks:p,buildMutationHook:h,usePrefetch:m};function f(b,v,y){if(v!=null&&v.endpointName&&b.isUninitialized){var C=v.endpointName,x=u.endpointDefinitions[C];c({queryArgs:v.originalArgs,endpointDefinition:x,endpointName:C})===c({queryArgs:y,endpointDefinition:x,endpointName:C})&&(v=void 0)}var E=b.isSuccess?b.data:v==null?void 0:v.data;E===void 0&&(E=b.data);var S=E!==void 0,$=b.isLoading,O=!S&&$,I=b.isSuccess||$&&S;return ns(go({},b),{data:E,currentData:b.data,isFetching:$,isLoading:O,isSuccess:I})}function m(b,v){var y=o(),C=id(v);return g.useCallback(function(x,E){return y(t.util.prefetch(b,x,go(go({},C),E)))},[b,y,C])}function p(b){var v=function(x,E){var S=E===void 0?{}:E,$=S.refetchOnReconnect,O=S.refetchOnFocus,I=S.refetchOnMountOrArgChange,w=S.skip,N=w===void 0?!1:w,_=S.pollingInterval,P=_===void 0?0:_,M=t.endpoints[b].initiate,D=o(),T=Kg(N?ei:x,CI,u.endpointDefinitions[b],b),A=id({refetchOnReconnect:$,refetchOnFocus:O,pollingInterval:P}),R=g.useRef(!1),L=g.useRef(),j=L.current||{},z=j.queryCacheKey,B=j.requestId,K=!1;if(z&&B){var W=D(t.internalActions.internal_probeSubscription({queryCacheKey:z,requestId:B}));if(process.env.NODE_ENV!=="production"&&typeof W!="boolean")throw new Error('Warning: Middleware for RTK-Query API at reducerPath "'+t.reducerPath+`" has not been added to the store.
|
|
28
|
+
You must add the middleware for RTK-Query to function correctly!`);K=!!W}var k=!K&&R.current;return d(function(){R.current=K}),d(function(){k&&(L.current=void 0)},[k]),d(function(){var V,Q=L.current;if(typeof process!="undefined"&&process.env.NODE_ENV==="removeMeOnCompilation"&&console.log(k),T===ei){Q==null||Q.unsubscribe(),L.current=void 0;return}var J=(V=L.current)==null?void 0:V.subscriptionOptions;if(!Q||Q.arg!==T){Q==null||Q.unsubscribe();var Y=D(M(T,{subscriptionOptions:A,forceRefetch:I}));L.current=Y}else A!==J&&Q.updateSubscriptionOptions(A)},[D,M,I,T,A,k]),g.useEffect(function(){return function(){var V;(V=L.current)==null||V.unsubscribe(),L.current=void 0}},[]),g.useMemo(function(){return{refetch:function(){var V;if(!L.current)throw new Error("Cannot refetch a query that has not been started yet.");return(V=L.current)==null?void 0:V.refetch()}}},[])},y=function(x){var E=x===void 0?{}:x,S=E.refetchOnReconnect,$=E.refetchOnFocus,O=E.pollingInterval,I=O===void 0?0:O,w=t.endpoints[b].initiate,N=o(),_=g.useState(od),P=_[0],M=_[1],D=g.useRef(),T=id({refetchOnReconnect:S,refetchOnFocus:$,pollingInterval:I});d(function(){var L,j,z=(L=D.current)==null?void 0:L.subscriptionOptions;T!==z&&((j=D.current)==null||j.updateSubscriptionOptions(T))},[T]);var A=g.useRef(T);d(function(){A.current=T},[T]);var R=g.useCallback(function(L,j){j===void 0&&(j=!1);var z;return r(function(){var B;(B=D.current)==null||B.unsubscribe(),D.current=z=N(w(L,{subscriptionOptions:A.current,forceRefetch:!j})),M(L)}),z},[N,w]);return g.useEffect(function(){return function(){var L;(L=D==null?void 0:D.current)==null||L.unsubscribe()}},[]),g.useEffect(function(){P!==od&&!D.current&&R(P,!0)},[P,R]),g.useMemo(function(){return[R,P]},[R,P])},C=function(x,E){var S=E===void 0?{}:E,$=S.skip,O=$===void 0?!1:$,I=S.selectFromResult,w=t.endpoints[b].select,N=Kg(O?ei:x,c,u.endpointDefinitions[b],b),_=g.useRef(),P=g.useMemo(function(){return We.createSelector([w(N),function(R,L){return L},function(R){return N}],f)},[w,N]),M=g.useMemo(function(){return I?We.createSelector([P],I):P},[P,I]),D=i(function(R){return M(R,_.current)},$t.shallowEqual),T=a(),A=P(T.getState(),_.current);return SI(function(){_.current=A},[A]),D};return{useQueryState:C,useQuerySubscription:v,useLazyQuerySubscription:y,useLazyQuery:function(x){var E=y(x),S=E[0],$=E[1],O=C($,ns(go({},x),{skip:$===od})),I=g.useMemo(function(){return{lastArg:$}},[$]);return g.useMemo(function(){return[S,O,I]},[S,O,I])},useQuery:function(x,E){var S=v(x,E),$=C(x,go({selectFromResult:x===ei||E!=null&&E.skip?void 0:EI},E)),O=$.data,I=$.status,w=$.isLoading,N=$.isSuccess,_=$.isError,P=$.error;return g.useDebugValue({data:O,status:I,isLoading:w,isSuccess:N,isError:_,error:P}),g.useMemo(function(){return go(go({},$),S)},[$,S])}}}function h(b){return function(v){var y=v===void 0?{}:v,C=y.selectFromResult,x=C===void 0?xI:C,E=y.fixedCacheKey,S=t.endpoints[b],$=S.select,O=S.initiate,I=o(),w=g.useState(),N=w[0],_=w[1];g.useEffect(function(){return function(){N!=null&&N.arg.fixedCacheKey||N==null||N.reset()}},[N]);var P=g.useCallback(function(Q){var J=I(O(Q,{fixedCacheKey:E}));return _(J),J},[I,O,E]),M=(N||{}).requestId,D=g.useMemo(function(){return We.createSelector([$({fixedCacheKey:E,requestId:N==null?void 0:N.requestId})],x)},[$,N,x,E]),T=i(D,$t.shallowEqual),A=E==null?N==null?void 0:N.arg.originalArgs:void 0,R=g.useCallback(function(){r(function(){N&&_(void 0),E&&I(t.internalActions.removeMutationResult({requestId:M,fixedCacheKey:E}))})},[I,E,N,M]),L=T.endpointName,j=T.data,z=T.status,B=T.isLoading,K=T.isSuccess,W=T.isError,k=T.error;g.useDebugValue({endpointName:L,data:j,status:z,isLoading:B,isSuccess:K,isError:W,error:k});var V=g.useMemo(function(){return ns(go({},T),{originalArgs:A,reset:R})},[T,A,R]);return g.useMemo(function(){return[P,V]},[P,V])}}}var os;(function(e){e.query="query",e.mutation="mutation"})(os||(os={}));function wI(e){return e.type===os.query}function OI(e){return e.type===os.mutation}function ad(e){return e.replace(e[0],e[0].toUpperCase())}function is(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];Object.assign.apply(Object,pI([e],t))}var NI=Symbol(),II=function(e){var t=e===void 0?{}:e,n=t.batch,r=n===void 0?$t.batch:n,o=t.useDispatch,i=o===void 0?$t.useDispatch:o,a=t.useSelector,l=a===void 0?$t.useSelector:a,c=t.useStore,u=c===void 0?$t.useStore:c,d=t.unstable__sideEffectsInRender,f=d===void 0?!1:d;return{name:NI,init:function(m,p,h){var b=p.serializeQueryArgs,v=m,y=$I({api:m,moduleOptions:{batch:r,useDispatch:i,useSelector:l,useStore:u,unstable__sideEffectsInRender:f},serializeQueryArgs:b,context:h}),C=y.buildQueryHooks,x=y.buildMutationHook,E=y.usePrefetch;return is(v,{usePrefetch:E}),is(h,{batch:r}),{injectEndpoint:function(S,$){if(wI($)){var O=C(S),I=O.useQuery,w=O.useLazyQuery,N=O.useLazyQuerySubscription,_=O.useQueryState,P=O.useQuerySubscription;is(v.endpoints[S],{useQuery:I,useLazyQuery:w,useLazyQuerySubscription:N,useQueryState:_,useQuerySubscription:P}),m["use"+ad(S)+"Query"]=I,m["useLazy"+ad(S)+"Query"]=w}else if(OI($)){var M=x(S);is(v.endpoints[S],{useMutation:M}),m["use"+ad(S)+"Mutation"]=M}}}}}},_I=eI(mI(),II());let ld="http://localhost:8000";const Yr=_I({reducerPath:"careerHubApi",baseQuery:(e,t,n)=>sr(this,null,function*(){return UN({baseUrl:ld,prepareHeaders:o=>{if(o.set("Content-Type","application/json"),typeof window!="undefined"){const i=document.querySelector('meta[name="csrf-token"]');i&&o.set("X-CSRF-Token",i.content)}return o}})(e,t,n)}),tagTypes:["CareerHub","Jobs","PipelineJobs","RelevantJobs","FilterOptions","JobPreview","JobAlerts"],endpoints:()=>({})}),TI=e=>{e!==ld&&(ld=e)},PI=Yr.injectEndpoints({endpoints:e=>({createApplication:e.mutation({query:({jobProfileId:t,utmMedium:n,utmSource:r,currentTab:o,utmId:i})=>({url:"/api/v3/careers-hub/applications/",method:"POST",body:{job_profile_id:t,medium:n!=null?n:"ch",origin:r!=null?r:"direct",tab_name:o,action_type:i!=null?i:"apply"}})}),getApplication:e.query({query:({applicationId:t,jobProfileId:n,status:r})=>({url:`/api/v3/careers-hub/applications/${t}`,params:{job_profile_id:n,step_name:r}})})})}),{useCreateApplicationMutation:MI,useGetApplicationQuery:DI}=PI,qg=({jobProfileId:e,utmMedium:t,utmSource:n,currentTab:r,utmId:o})=>{const[i,a]=g.useState(null),[l,c]=g.useState(null),[u,{isLoading:d,isError:f,error:m,isSuccess:p}]=MI(),h=g.useCallback(()=>sr(this,null,function*(){var v,y,C,x;const b=yield u({jobProfileId:e,utmMedium:t,utmSource:n,currentTab:r,utmId:o});a((y=(v=b==null?void 0:b.data)==null?void 0:v.user_company)==null?void 0:y.id),c((x=(C=b==null?void 0:b.data)==null?void 0:C.user_company)==null?void 0:x.status)}),[u,e,t,n,r,o]);return g.useEffect(()=>{h()},[h]),{retry:h,data:{status:l,applicationId:i},isLoading:d,isError:f,error:m,isSuccess:p}},Ug=({jobProfileId:e,applicationId:t,status:n})=>{var u;const{data:r,isLoading:o,isError:i,error:a,isSuccess:l,refetch:c}=DI({applicationId:t,jobProfileId:e,status:n},{skip:!t||!n});return{retry:c,data:(u=r==null?void 0:r.details)==null?void 0:u.data,isLoading:o,isError:i,error:a,isSuccess:l}};function AI(e){return e.map(t=>({label:t,value:t}))}const sd={home:{isExperienceCtcAvailable:!0,isNoticePeriodAvailable:!0,isAppliedDateAvailable:!1,isArchivedStatusAvailable:!1,isApplicationStatusAvailable:!1},all:{isExperienceCtcAvailable:!0,isNoticePeriodAvailable:!0,isAppliedDateAvailable:!1,isArchivedStatusAvailable:!1,isApplicationStatusAvailable:!1},eligible:{isExperienceCtcAvailable:!0,isNoticePeriodAvailable:!0,isAppliedDateAvailable:!1,isArchivedStatusAvailable:!1,isApplicationStatusAvailable:!1},saved:{isExperienceCtcAvailable:!0,isNoticePeriodAvailable:!0,isAppliedDateAvailable:!1,isArchivedStatusAvailable:!1,isApplicationStatusAvailable:!1},applications:{isExperienceCtcAvailable:!1,isNoticePeriodAvailable:!1,isAppliedDateAvailable:!0,isArchivedStatusAvailable:!1,isApplicationStatusAvailable:!0},archived:{isExperienceCtcAvailable:!0,isNoticePeriodAvailable:!0,isAppliedDateAvailable:!1,isArchivedStatusAvailable:!0,isApplicationStatusAvailable:!1}},RI={NOT_APPLIED:"Not Applied",SAVED:"Saved",APPLIED:"Applied",IN_PIPELINE:"In Pipeline",ARCHIVED:"Archived"},jI={ACTIVE:"active",PAUSED:"paused",INACTIVE:"inactive"},LI={HOME:"home",ALL:"all",ELIGIBLE:"eligible",SAVED:"saved",APPLICATIONS:"applications",ARCHIVED:"archived"},Oa=AI(["Got another offer","Company didn't match expectations","Need more prep time","Applied by mistake","Other"]),Gg=({currentTab:e,isActive:t,jobData:n})=>{const r=g.useMemo(()=>sd[e]||sd.all,[e]),o=g.useMemo(()=>!0,[]),i=g.useMemo(()=>n.expiry?new Date(n.expiry)<new Date||n.jobProfileStatus!=="active":!1,[n.expiry,n.jobProfileStatus]);return{cardConfig:r,shouldShowBody:o,isExpired:i}},as=()=>{const e=$t.useSelector(n=>{var r;return((r=n.scalantCareerHub)==null?void 0:r.filter)||{}});return g.useMemo(()=>{const{filters:n,per_page:r,tab:o,page_number:i,sortings:a,skip_expired_jobs:l}=e;return{per_page:r,tab:o,filters:n||{keyword:""},sortings:a,page_number:i,skip_expired_jobs:l}},[e])},Xg={per_page:18,tab:"all",filters:{keyword:""},sortings:[{property:"eligibility",direction:"DESC"}],page_number:1,skip_expired_jobs:!1},Qg=We.createSlice({name:"filter",initialState:Xg,reducers:{setTab:(e,t)=>{e.tab=t.payload,e.page_number=1},setKeyword:(e,t)=>{e.filters.keyword=t.payload,e.page_number=1},setPageNumber:(e,t)=>{e.page_number=t.payload},setPerPage:(e,t)=>{e.per_page=t.payload,e.page_number=1},setSortings:(e,t)=>{e.sortings=t.payload},setSkipExpiredJobs:(e,t)=>{e.skip_expired_jobs=t.payload},resetFilters:e=>ya(fr({},Xg),{tab:e.tab}),updateFiltersFromForm:(e,t)=>{var r;const n=((r=e.filters)==null?void 0:r.keyword)||"";e.filters=fr({keyword:n},t.payload),e.page_number=1}}}),{setTab:zI,setKeyword:BI,setPageNumber:kI,setPerPage:DG,setSortings:FI,setSkipExpiredJobs:AG,resetFilters:RG,updateFiltersFromForm:Yg}=Qg.actions,HI=Qg.reducer,VI=({hasMore:e=!0,isLoading:t=!1,isFetchingMore:n=!1,rootMargin:r="100px",threshold:o=.1}={})=>{const i=$t.useDispatch(),a=$t.useSelector(f=>{var m,p;return((p=(m=f.scalantCareerHub)==null?void 0:m.filter)==null?void 0:p.page_number)||1}),l=g.useRef(null),c=g.useRef(null),u=g.useCallback(()=>{!t&&!n&&e&&i(kI(a+1))},[i,a,t,n,e]);return g.useEffect(()=>{const f=l.current;if(c.current&&(f&&c.current.unobserve(f),c.current=null),!f||!e||t||n)return;const m=new IntersectionObserver(p=>{const[h]=p;h.isIntersecting&&u()},{root:null,rootMargin:r,threshold:o});return m.observe(f),c.current=m,()=>{c.current&&f&&(c.current.unobserve(f),c.current=null)}},[u,e,t,n,r,o]),{sentinelRef:g.useCallback(f=>{if(l.current&&c.current&&(c.current.unobserve(l.current),c.current=null),l.current=f,f&&e&&!t&&!n){const m=new IntersectionObserver(p=>{const[h]=p;h.isIntersecting&&u()},{root:null,rootMargin:r,threshold:o});m.observe(f),c.current=m}},[u,e,t,n,r,o])}};var WI=g.createContext({});const cd=WI;function ce(){return ce=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},ce.apply(null,arguments)}function Jg(e){if(Array.isArray(e))return e}function KI(e,t){var n=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,a,l=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(d){u=!0,o=d}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}function ud(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 dd(e,t){if(e){if(typeof e=="string")return ud(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)?ud(e,t):void 0}}function Zg(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
29
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ae(e,t){return Jg(e)||KI(e,t)||dd(e,t)||Zg()}function He(e){"@babel/helpers - typeof";return He=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},He(e)}function qI(e,t){if(He(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(He(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function eh(e){var t=qI(e,"string");return He(t)=="symbol"?t:t+""}function H(e,t,n){return(t=eh(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function UI(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 tt(e,t){if(e==null)return{};var n,r,o=UI(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var th={exports:{}};/*!
|
|
30
|
+
Copyright (c) 2018 Jed Watson.
|
|
31
|
+
Licensed under the MIT License (MIT), see
|
|
32
|
+
http://jedwatson.github.io/classnames
|
|
33
|
+
*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var i="",a=0;a<arguments.length;a++){var l=arguments[a];l&&(i=o(i,r(l)))}return i}function r(i){if(typeof i=="string"||typeof i=="number")return i;if(typeof i!="object")return"";if(Array.isArray(i))return n.apply(null,i);if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]"))return i.toString();var a="";for(var l in i)t.call(i,l)&&i[l]&&(a=o(a,l));return a}function o(i,a){return a?i?i+" "+a:i+a:i}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(th);var GI=th.exports;const G=Yo(GI),Fn=Math.round;function fd(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 nh=(e,t,n)=>n===0?e:e/100;function Na(e,t){const n=t||255;return e>n?n:e<0?0:e}class kt{constructor(t){H(this,"isValid",!0),H(this,"r",0),H(this,"g",0),H(this,"b",0),H(this,"a",1),H(this,"_h",void 0),H(this,"_s",void 0),H(this,"_l",void 0),H(this,"_v",void 0),H(this,"_max",void 0),H(this,"_min",void 0),H(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(i){return r.startsWith(i)};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 kt)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=Na(t.r),this.g=Na(t.g),this.b=Na(t.b),this.a=typeof t.a=="number"?Na(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(i){const a=i/255;return a<=.03928?a/12.92:Math.pow((a+.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=="undefined"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=Fn(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=="undefined"){const t=this.getMax()-this.getMin();t===0?this._s=0:this._s=t/this.getMax()}return this._s}getLightness(){return typeof this._l=="undefined"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v=="undefined"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness=="undefined"&&(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,i=l=>(r[l]-this[l])*o+this[l],a={r:Fn(i("r")),g:Fn(i("g")),b:Fn(i("b")),a:Fn(i("a")*100)/100};return this._c(a)}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=i=>Fn((this[i]*this.a+n[i]*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 i=Fn(this.a*255).toString(16);t+=i.length===2?i:"0"+i}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),n=Fn(this.getSaturation()*100),r=Fn(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]=Na(n,r),o}_c(t){return new this.constructor(t)}getMax(){return typeof this._max=="undefined"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min=="undefined"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){const n=t.replace("#","");function r(o,i){return parseInt(n[o]+n[i||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=Fn(r*255);this.r=m,this.g=m,this.b=m}let i=0,a=0,l=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?(i=u,a=d):c>=1&&c<2?(i=d,a=u):c>=2&&c<3?(a=u,l=d):c>=3&&c<4?(a=d,l=u):c>=4&&c<5?(i=d,l=u):c>=5&&c<6&&(i=u,l=d);const f=r-u/2;this.r=Fn((i+f)*255),this.g=Fn((a+f)*255),this.b=Fn((l+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 i=Fn(r*255);if(this.r=i,this.g=i,this.b=i,n<=0)return;const a=t/60,l=Math.floor(a),c=a-l,u=Fn(r*(1-n)*255),d=Fn(r*(1-n*c)*255),f=Fn(r*(1-n*(1-c))*255);switch(l){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=fd(t,nh);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=fd(t,nh);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=fd(t,(r,o)=>o.includes("%")?Fn(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}var ls=2,rh=.16,XI=.05,QI=.05,YI=.15,oh=5,ih=4,JI=[{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 ah(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-ls*t:Math.round(e.h)+ls*t:r=n?Math.round(e.h)+ls*t:Math.round(e.h)-ls*t,r<0?r+=360:r>=360&&(r-=360),r}function lh(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-rh*t:t===ih?r=e.s+rh:r=e.s+XI*t,r>1&&(r=1),n&&t===oh&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function sh(e,t,n){var r;return n?r=e.v+QI*t:r=e.v-YI*t,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function Ia(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=new kt(e),o=r.toHsv(),i=oh;i>0;i-=1){var a=new kt({h:ah(o,i,!0),s:lh(o,i,!0),v:sh(o,i,!0)});n.push(a)}n.push(r);for(var l=1;l<=ih;l+=1){var c=new kt({h:ah(o,l),s:lh(o,l),v:sh(o,l)});n.push(c)}return t.theme==="dark"?JI.map(function(u){var d=u.index,f=u.amount;return new kt(t.backgroundColor||"#141414").mix(n[d],f).toHexString()}):n.map(function(u){return u.toHexString()})}var Ni={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"},md=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];md.primary=md[5];var pd=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];pd.primary=pd[5];var vd=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];vd.primary=vd[5];var ss=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];ss.primary=ss[5];var gd=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];gd.primary=gd[5];var hd=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];hd.primary=hd[5];var bd=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];bd.primary=bd[5];var yd=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];yd.primary=yd[5];var cs=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];cs.primary=cs[5];var Cd=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];Cd.primary=Cd[5];var Sd=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];Sd.primary=Sd[5];var xd=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];xd.primary=xd[5];var Ed=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];Ed.primary=Ed[5];var $d={red:md,volcano:pd,orange:vd,gold:ss,yellow:gd,lime:hd,green:bd,cyan:yd,blue:cs,geekblue:Cd,purple:Sd,magenta:xd,grey:Ed};function ch(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 q(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ch(Object(n),!0).forEach(function(r){H(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ch(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function _n(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}function wd(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 uh="data-rc-order",dh="data-rc-priority",ZI="rc-util-key",Od=new Map;function fh(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):ZI}function us(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function e_(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Nd(e){return Array.from((Od.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function mh(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!_n())return null;var n=t.csp,r=t.prepend,o=t.priority,i=o===void 0?0:o,a=e_(r),l=a==="prependQueue",c=document.createElement("style");c.setAttribute(uh,a),l&&i&&c.setAttribute(dh,"".concat(i)),n!=null&&n.nonce&&(c.nonce=n==null?void 0:n.nonce),c.innerHTML=e;var u=us(t),d=u.firstChild;if(r){if(l){var f=(t.styles||Nd(u)).filter(function(m){if(!["prepend","prependQueue"].includes(m.getAttribute(uh)))return!1;var p=Number(m.getAttribute(dh)||0);return i>=p});if(f.length)return u.insertBefore(c,f[f.length-1].nextSibling),c}u.insertBefore(c,d)}else u.appendChild(c);return c}function ph(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=us(t);return(t.styles||Nd(n)).find(function(r){return r.getAttribute(fh(t))===e})}function _a(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=ph(e,t);if(n){var r=us(t);r.removeChild(n)}}function t_(e,t){var n=Od.get(e);if(!n||!wd(document,n)){var r=mh("",t),o=r.parentNode;Od.set(e,o),e.removeChild(r)}}function ho(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=us(n),o=Nd(r),i=q(q({},n),{},{styles:o});t_(r,i);var a=ph(t,i);if(a){var l,c;if((l=i.csp)!==null&&l!==void 0&&l.nonce&&a.nonce!==((c=i.csp)===null||c===void 0?void 0:c.nonce)){var u;a.nonce=(u=i.csp)===null||u===void 0?void 0:u.nonce}return a.innerHTML!==e&&(a.innerHTML=e),a}var d=mh(e,i);return d.setAttribute(fh(i),t),d}function vh(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function n_(e){return vh(e)instanceof ShadowRoot}function ds(e){return n_(e)?vh(e):null}var Id={},_d=[],r_=function(t){_d.push(t)};function bo(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var n=_d.reduce(function(r,o){return o(r!=null?r:"","warning")},t);n&&console.error("Warning: ".concat(n))}}function o_(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var n=_d.reduce(function(r,o){return o(r!=null?r:"","note")},t);n&&console.warn("Note: ".concat(n))}}function gh(){Id={}}function hh(e,t,n){!t&&!Id[n]&&(e(!1,n),Id[n]=!0)}function Ge(e,t){hh(bo,e,t)}function Td(e,t){hh(o_,e,t)}Ge.preMessage=r_,Ge.resetWarned=gh,Ge.noteOnce=Td;function i_(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function a_(e,t){Ge(e,"[@ant-design/icons] ".concat(t))}function bh(e){return He(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(He(e.icon)==="object"||typeof e.icon=="function")}function yh(){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[i_(n)]=r}return t},{})}function Pd(e,t,n){return n?g.createElement(e.tag,q(q({key:t},yh(e.attrs)),n),(e.children||[]).map(function(r,o){return Pd(r,"".concat(t,"-").concat(e.tag,"-").concat(o))})):g.createElement(e.tag,q({key:t},yh(e.attrs)),(e.children||[]).map(function(r,o){return Pd(r,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function Ch(e){return Ia(e)[0]}function Sh(e){return e?Array.isArray(e)?e:[e]:[]}var l_=`
|
|
34
|
+
.anticon {
|
|
35
|
+
display: inline-flex;
|
|
36
|
+
align-items: center;
|
|
37
|
+
color: inherit;
|
|
38
|
+
font-style: normal;
|
|
39
|
+
line-height: 0;
|
|
40
|
+
text-align: center;
|
|
41
|
+
text-transform: none;
|
|
42
|
+
vertical-align: -0.125em;
|
|
43
|
+
text-rendering: optimizeLegibility;
|
|
44
|
+
-webkit-font-smoothing: antialiased;
|
|
45
|
+
-moz-osx-font-smoothing: grayscale;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.anticon > * {
|
|
49
|
+
line-height: 1;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.anticon svg {
|
|
53
|
+
display: inline-block;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.anticon::before {
|
|
57
|
+
display: none;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.anticon .anticon-icon {
|
|
61
|
+
display: block;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.anticon[tabindex] {
|
|
65
|
+
cursor: pointer;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.anticon-spin::before,
|
|
69
|
+
.anticon-spin {
|
|
70
|
+
display: inline-block;
|
|
71
|
+
-webkit-animation: loadingCircle 1s infinite linear;
|
|
72
|
+
animation: loadingCircle 1s infinite linear;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
@-webkit-keyframes loadingCircle {
|
|
76
|
+
100% {
|
|
77
|
+
-webkit-transform: rotate(360deg);
|
|
78
|
+
transform: rotate(360deg);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
@keyframes loadingCircle {
|
|
83
|
+
100% {
|
|
84
|
+
-webkit-transform: rotate(360deg);
|
|
85
|
+
transform: rotate(360deg);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
`,s_=function(t){var n=g.useContext(cd),r=n.csp,o=n.prefixCls,i=n.layer,a=l_;o&&(a=a.replace(/anticon/g,o)),i&&(a="@layer ".concat(i,` {
|
|
89
|
+
`).concat(a,`
|
|
90
|
+
}`)),g.useEffect(function(){var l=t.current,c=ds(l);ho(a,"@ant-design-icons",{prepend:!i,csp:r,attachTo:c})},[])},c_=["icon","className","onClick","style","primaryColor","secondaryColor"],Ta={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function u_(e){var t=e.primaryColor,n=e.secondaryColor;Ta.primaryColor=t,Ta.secondaryColor=n||Ch(t),Ta.calculated=!!n}function d_(){return q({},Ta)}var fs=function(t){var n=t.icon,r=t.className,o=t.onClick,i=t.style,a=t.primaryColor,l=t.secondaryColor,c=tt(t,c_),u=s.useRef(),d=Ta;if(a&&(d={primaryColor:a,secondaryColor:l||Ch(a)}),s_(u),a_(bh(n),"icon should be icon definiton, but got ".concat(n)),!bh(n))return null;var f=n;return f&&typeof f.icon=="function"&&(f=q(q({},f),{},{icon:f.icon(d.primaryColor,d.secondaryColor)})),Pd(f.icon,"svg-".concat(f.name),q(q({className:r,onClick:o,style:i,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},c),{},{ref:u}))};fs.displayName="IconReact",fs.getTwoToneColors=d_,fs.setTwoToneColors=u_;const Md=fs;function xh(e){var t=Sh(e),n=ae(t,2),r=n[0],o=n[1];return Md.setTwoToneColors({primaryColor:r,secondaryColor:o})}function f_(){var e=Md.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var m_=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];xh(cs.primary);var ms=s.forwardRef(function(e,t){var n=e.className,r=e.icon,o=e.spin,i=e.rotate,a=e.tabIndex,l=e.onClick,c=e.twoToneColor,u=tt(e,m_),d=s.useContext(cd),f=d.prefixCls,m=f===void 0?"anticon":f,p=d.rootClassName,h=G(p,m,H(H({},"".concat(m,"-").concat(r.name),!!r.name),"".concat(m,"-spin"),!!o||r.name==="loading"),n),b=a;b===void 0&&l&&(b=-1);var v=i?{msTransform:"rotate(".concat(i,"deg)"),transform:"rotate(".concat(i,"deg)")}:void 0,y=Sh(c),C=ae(y,2),x=C[0],E=C[1];return s.createElement("span",ce({role:"img","aria-label":r.name},u,{ref:t,tabIndex:b,onClick:l,className:h}),s.createElement(Md,{icon:r,primaryColor:x,secondaryColor:E,style:v}))});ms.displayName="AntdIcon",ms.getTwoToneColor=f_,ms.setTwoToneColor=xh;const mt=ms;var p_={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 244c176.18 0 319 142.82 319 319v233a32 32 0 01-32 32H225a32 32 0 01-32-32V563c0-176.18 142.82-319 319-319zM484 68h56a8 8 0 018 8v96a8 8 0 01-8 8h-56a8 8 0 01-8-8V76a8 8 0 018-8zM177.25 191.66a8 8 0 0111.32 0l67.88 67.88a8 8 0 010 11.31l-39.6 39.6a8 8 0 01-11.31 0l-67.88-67.88a8 8 0 010-11.31l39.6-39.6zm669.6 0l39.6 39.6a8 8 0 010 11.3l-67.88 67.9a8 8 0 01-11.32 0l-39.6-39.6a8 8 0 010-11.32l67.89-67.88a8 8 0 0111.31 0zM192 892h640a32 32 0 0132 32v24a8 8 0 01-8 8H168a8 8 0 01-8-8v-24a32 32 0 0132-32zm148-317v253h64V575h-64z"}}]},name:"alert",theme:"filled"};const v_=p_;var g_=function(t,n){return s.createElement(mt,ce({},t,{ref:n,icon:v_}))},Eh=s.forwardRef(g_);process.env.NODE_ENV!=="production"&&(Eh.displayName="AlertFilled");const Dd=Eh;var h_={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"};const b_=h_;var y_=function(t,n){return s.createElement(mt,ce({},t,{ref:n,icon:b_}))},$h=s.forwardRef(y_);process.env.NODE_ENV!=="production"&&($h.displayName="BarsOutlined");const C_=$h;var S_={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M816 768h-24V428c0-141.1-104.3-257.7-240-277.1V112c0-22.1-17.9-40-40-40s-40 17.9-40 40v38.9c-135.7 19.4-240 136-240 277.1v340h-24c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h216c0 61.8 50.2 112 112 112s112-50.2 112-112h216c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM512 888c-26.5 0-48-21.5-48-48h96c0 26.5-21.5 48-48 48zM304 768V428c0-55.6 21.6-107.8 60.9-147.1S456.4 220 512 220c55.6 0 107.8 21.6 147.1 60.9S720 372.4 720 428v340H304z"}}]},name:"bell",theme:"outlined"};const x_=S_;var E_=function(t,n){return s.createElement(mt,ce({},t,{ref:n,icon:x_}))},wh=s.forwardRef(E_);process.env.NODE_ENV!=="production"&&(wh.displayName="BellOutlined");const $_=wh;var w_={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"};const O_=w_;var N_=function(t,n){return s.createElement(mt,ce({},t,{ref:n,icon:O_}))},Oh=s.forwardRef(N_);process.env.NODE_ENV!=="production"&&(Oh.displayName="CaretDownFilled");const I_=Oh;var __={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"};const T_=__;var P_=function(t,n){return s.createElement(mt,ce({},t,{ref:n,icon:T_}))},Nh=s.forwardRef(P_);process.env.NODE_ENV!=="production"&&(Nh.displayName="CaretDownOutlined");const M_=Nh;var D_={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"};const A_=D_;var R_=function(t,n){return s.createElement(mt,ce({},t,{ref:n,icon:A_}))},Ih=s.forwardRef(R_);process.env.NODE_ENV!=="production"&&(Ih.displayName="CaretUpOutlined");const j_=Ih;var L_={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};const z_=L_;var B_=function(t,n){return s.createElement(mt,ce({},t,{ref:n,icon:z_}))},_h=s.forwardRef(B_);process.env.NODE_ENV!=="production"&&(_h.displayName="CheckCircleFilled");const Mo=_h;var k_={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"check-circle",theme:"outlined"};const F_=k_;var H_=function(t,n){return s.createElement(mt,ce({},t,{ref:n,icon:F_}))},Th=s.forwardRef(H_);process.env.NODE_ENV!=="production"&&(Th.displayName="CheckCircleOutlined");const Ph=Th;var V_={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"};const W_=V_;var K_=function(t,n){return s.createElement(mt,ce({},t,{ref:n,icon:W_}))},Mh=s.forwardRef(K_);process.env.NODE_ENV!=="production"&&(Mh.displayName="CheckOutlined");const ps=Mh;var q_={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"};const U_=q_;var G_=function(t,n){return s.createElement(mt,ce({},t,{ref:n,icon:U_}))},Dh=s.forwardRef(G_);process.env.NODE_ENV!=="production"&&(Dh.displayName="ClockCircleOutlined");const Ah=Dh;var X_={icon:function(t,n){return{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",fill:t}},{tag:"path",attrs:{d:"M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm176.5 509.7l-28.6 39a7.99 7.99 0 01-11.2 1.7L483.3 569.8a7.92 7.92 0 01-3.3-6.5V288c0-4.4 3.6-8 8-8h48.1c4.4 0 8 3.6 8 8v247.5l142.6 103.1c3.6 2.5 4.4 7.5 1.8 11.1z",fill:n}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.3c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.9 11.2-1.7l28.6-39c2.6-3.6 1.8-8.6-1.8-11.1z",fill:t}}]}},name:"clock-circle",theme:"twotone"};const Q_=X_;var Y_=function(t,n){return s.createElement(mt,ce({},t,{ref:n,icon:Q_}))},Rh=s.forwardRef(Y_);process.env.NODE_ENV!=="production"&&(Rh.displayName="ClockCircleTwoTone");const J_=Rh;var Z_={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"};const e2=Z_;var t2=function(t,n){return s.createElement(mt,ce({},t,{ref:n,icon:e2}))},jh=s.forwardRef(t2);process.env.NODE_ENV!=="production"&&(jh.displayName="CloseCircleFilled");const Do=jh;var n2={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 64zm0 76c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm128.01 198.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z"}}]},name:"close-circle",theme:"outlined"};const r2=n2;var o2=function(t,n){return s.createElement(mt,ce({},t,{ref:n,icon:r2}))},Lh=s.forwardRef(o2);process.env.NODE_ENV!=="production"&&(Lh.displayName="CloseCircleOutlined");const i2=Lh;var a2={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"};const l2=a2;var s2=function(t,n){return s.createElement(mt,ce({},t,{ref:n,icon:l2}))},zh=s.forwardRef(s2);process.env.NODE_ENV!=="production"&&(zh.displayName="CloseOutlined");const $r=zh;var c2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"};const u2=c2;var d2=function(t,n){return s.createElement(mt,ce({},t,{ref:n,icon:u2}))},Bh=s.forwardRef(d2);process.env.NODE_ENV!=="production"&&(Bh.displayName="CopyOutlined");const f2=Bh;var m2={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"};const p2=m2;var v2=function(t,n){return s.createElement(mt,ce({},t,{ref:n,icon:p2}))},kh=s.forwardRef(v2);process.env.NODE_ENV!=="production"&&(kh.displayName="DeleteOutlined");const Fh=kh;var g2={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"};const h2=g2;var b2=function(t,n){return s.createElement(mt,ce({},t,{ref:n,icon:h2}))},Hh=s.forwardRef(b2);process.env.NODE_ENV!=="production"&&(Hh.displayName="DoubleLeftOutlined");const Vh=Hh;var y2={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"};const C2=y2;var S2=function(t,n){return s.createElement(mt,ce({},t,{ref:n,icon:C2}))},Wh=s.forwardRef(S2);process.env.NODE_ENV!=="production"&&(Wh.displayName="DoubleRightOutlined");const Ad=Wh;var x2={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"};const E2=x2;var $2=function(t,n){return s.createElement(mt,ce({},t,{ref:n,icon:E2}))},Kh=s.forwardRef($2);process.env.NODE_ENV!=="production"&&(Kh.displayName="DownOutlined");const vs=Kh;var w2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"};const O2=w2;var N2=function(t,n){return s.createElement(mt,ce({},t,{ref:n,icon:O2}))},qh=s.forwardRef(N2);process.env.NODE_ENV!=="production"&&(qh.displayName="DownloadOutlined");const I2=qh;var _2={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"};const T2=_2;var P2=function(t,n){return s.createElement(mt,ce({},t,{ref:n,icon:T2}))},Uh=s.forwardRef(P2);process.env.NODE_ENV!=="production"&&(Uh.displayName="EditOutlined");const Rd=Uh;var M2={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M761.1 288.3L687.8 215 325.1 577.6l-15.6 89 88.9-15.7z",fill:n}},{tag:"path",attrs:{d:"M880 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-32zm-622.3-84c2 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-89z",fill:t}}]}},name:"edit",theme:"twotone"};const D2=M2;var A2=function(t,n){return s.createElement(mt,ce({},t,{ref:n,icon:D2}))},Gh=s.forwardRef(A2);process.env.NODE_ENV!=="production"&&(Gh.displayName="EditTwoTone");const R2=Gh;var j2={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"};const L2=j2;var z2=function(t,n){return s.createElement(mt,ce({},t,{ref:n,icon:L2}))},Xh=s.forwardRef(z2);process.env.NODE_ENV!=="production"&&(Xh.displayName="EllipsisOutlined");const jd=Xh;var B2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"};const k2=B2;var F2=function(t,n){return s.createElement(mt,ce({},t,{ref:n,icon:k2}))},Qh=s.forwardRef(F2);process.env.NODE_ENV!=="production"&&(Qh.displayName="EnterOutlined");const H2=Qh;var V2={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"};const W2=V2;var K2=function(t,n){return s.createElement(mt,ce({},t,{ref:n,icon:W2}))},Yh=s.forwardRef(K2);process.env.NODE_ENV!=="production"&&(Yh.displayName="ExclamationCircleFilled");const Pa=Yh;var q2={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"};const U2=q2;var G2=function(t,n){return s.createElement(mt,ce({},t,{ref:n,icon:U2}))},Jh=s.forwardRef(G2);process.env.NODE_ENV!=="production"&&(Jh.displayName="ExclamationCircleOutlined");const X2=Jh;var Q2={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"};const Y2=Q2;var J2=function(t,n){return s.createElement(mt,ce({},t,{ref:n,icon:Y2}))},Zh=s.forwardRef(J2);process.env.NODE_ENV!=="production"&&(Zh.displayName="EyeInvisibleOutlined");const Z2=Zh;var eT={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"};const tT=eT;var nT=function(t,n){return s.createElement(mt,ce({},t,{ref:n,icon:tT}))},eb=s.forwardRef(nT);process.env.NODE_ENV!=="production"&&(eb.displayName="EyeOutlined");const rT=eb;var oT={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"};const iT=oT;var aT=function(t,n){return s.createElement(mt,ce({},t,{ref:n,icon:iT}))},tb=s.forwardRef(aT);process.env.NODE_ENV!=="production"&&(tb.displayName="FileOutlined");const nb=tb;var lT={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42zm-22 322c0 4.4-3.6 8-8 8H320c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h184c4.4 0 8 3.6 8 8v48zm200-184v48c0 4.4-3.6 8-8 8H320c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h384c4.4 0 8 3.6 8 8z",fill:n}},{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.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:t}},{tag:"path",attrs:{d:"M312 490v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8zm192 128H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z",fill:t}}]}},name:"file-text",theme:"twotone"};const sT=lT;var cT=function(t,n){return s.createElement(mt,ce({},t,{ref:n,icon:sT}))},rb=s.forwardRef(cT);process.env.NODE_ENV!=="production"&&(rb.displayName="FileTextTwoTone");const uT=rb;var dT={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"};const fT=dT;var mT=function(t,n){return s.createElement(mt,ce({},t,{ref:n,icon:fT}))},ob=s.forwardRef(mT);process.env.NODE_ENV!=="production"&&(ob.displayName="FilterFilled");const pT=ob;var vT={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880.1 154H143.9c-24.5 0-39.8 26.7-27.5 48L349 597.4V838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V597.4L907.7 202c12.2-21.3-3.1-48-27.6-48zM603.4 798H420.6V642h182.9v156zm9.6-236.6l-9.5 16.6h-183l-9.5-16.6L212.7 226h598.6L613 561.4z"}}]},name:"filter",theme:"outlined"};const gT=vT;var hT=function(t,n){return s.createElement(mt,ce({},t,{ref:n,icon:gT}))},ib=s.forwardRef(hT);process.env.NODE_ENV!=="production"&&(ib.displayName="FilterOutlined");const bT=ib;var yT={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"};const CT=yT;var ST=function(t,n){return s.createElement(mt,ce({},t,{ref:n,icon:CT}))},ab=s.forwardRef(ST);process.env.NODE_ENV!=="production"&&(ab.displayName="FolderOpenOutlined");const xT=ab;var ET={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"};const $T=ET;var wT=function(t,n){return s.createElement(mt,ce({},t,{ref:n,icon:$T}))},lb=s.forwardRef(wT);process.env.NODE_ENV!=="production"&&(lb.displayName="FolderOutlined");const OT=lb;var NT={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"};const IT=NT;var _T=function(t,n){return s.createElement(mt,ce({},t,{ref:n,icon:IT}))},sb=s.forwardRef(_T);process.env.NODE_ENV!=="production"&&(sb.displayName="HolderOutlined");const TT=sb;var PT={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"};const MT=PT;var DT=function(t,n){return s.createElement(mt,ce({},t,{ref:n,icon:MT}))},cb=s.forwardRef(DT);process.env.NODE_ENV!=="production"&&(cb.displayName="InfoCircleFilled");const Ma=cb;var AT={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"};const RT=AT;var jT=function(t,n){return s.createElement(mt,ce({},t,{ref:n,icon:RT}))},ub=s.forwardRef(jT);process.env.NODE_ENV!=="production"&&(ub.displayName="LeftOutlined");const Da=ub;var LT={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M574 665.4a8.03 8.03 0 00-11.3 0L446.5 781.6c-53.8 53.8-144.6 59.5-204 0-59.5-59.5-53.8-150.2 0-204l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3l-39.8-39.8a8.03 8.03 0 00-11.3 0L191.4 526.5c-84.6 84.6-84.6 221.5 0 306s221.5 84.6 306 0l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3L574 665.4zm258.6-474c-84.6-84.6-221.5-84.6-306 0L410.3 307.6a8.03 8.03 0 000 11.3l39.7 39.7c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c53.8-53.8 144.6-59.5 204 0 59.5 59.5 53.8 150.2 0 204L665.3 562.6a8.03 8.03 0 000 11.3l39.8 39.8c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c84.5-84.6 84.5-221.5 0-306.1zM610.1 372.3a8.03 8.03 0 00-11.3 0L372.3 598.7a8.03 8.03 0 000 11.3l39.6 39.6c3.1 3.1 8.2 3.1 11.3 0l226.4-226.4c3.1-3.1 3.1-8.2 0-11.3l-39.5-39.6z"}}]},name:"link",theme:"outlined"};const zT=LT;var BT=function(t,n){return s.createElement(mt,ce({},t,{ref:n,icon:zT}))},db=s.forwardRef(BT);process.env.NODE_ENV!=="production"&&(db.displayName="LinkOutlined");const fb=db;var kT={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"};const FT=kT;var HT=function(t,n){return s.createElement(mt,ce({},t,{ref:n,icon:FT}))},mb=s.forwardRef(HT);process.env.NODE_ENV!=="production"&&(mb.displayName="LoadingOutlined");const ti=mb;var VT={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M477.5 536.3L135.9 270.7l-27.5-21.4 27.6 21.5V792h752V270.8L546.2 536.3a55.99 55.99 0 01-68.7 0z",fill:n}},{tag:"path",attrs:{d:"M876.3 198.8l39.3 50.5-27.6 21.5 27.7-21.5-39.3-50.5z",fill:n}},{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-94.5 72.1L512 482 190.5 232.1h643zm54.5 38.7V792H136V270.8l-27.6-21.5 27.5 21.4 341.6 265.6a55.99 55.99 0 0068.7 0L888 270.8l27.6-21.5-39.3-50.5h.1l39.3 50.5-27.7 21.5z",fill:t}}]}},name:"mail",theme:"twotone"};const WT=VT;var KT=function(t,n){return s.createElement(mt,ce({},t,{ref:n,icon:WT}))},pb=s.forwardRef(KT);process.env.NODE_ENV!=="production"&&(pb.displayName="MailTwoTone");const qT=pb;var UT={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"};const GT=UT;var XT=function(t,n){return s.createElement(mt,ce({},t,{ref:n,icon:GT}))},vb=s.forwardRef(XT);process.env.NODE_ENV!=="production"&&(vb.displayName="MinusSquareOutlined");const QT=vb;var YT={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"};const JT=YT;var ZT=function(t,n){return s.createElement(mt,ce({},t,{ref:n,icon:JT}))},gb=s.forwardRef(ZT);process.env.NODE_ENV!=="production"&&(gb.displayName="PlusOutlined");const hb=gb;var eP={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"};const tP=eP;var nP=function(t,n){return s.createElement(mt,ce({},t,{ref:n,icon:tP}))},bb=s.forwardRef(nP);process.env.NODE_ENV!=="production"&&(bb.displayName="PlusSquareOutlined");const rP=bb;var oP={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"};const iP=oP;var aP=function(t,n){return s.createElement(mt,ce({},t,{ref:n,icon:iP}))},yb=s.forwardRef(aP);process.env.NODE_ENV!=="production"&&(yb.displayName="QuestionCircleOutlined");const lP=yb;var sP={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"};const cP=sP;var uP=function(t,n){return s.createElement(mt,ce({},t,{ref:n,icon:cP}))},Cb=s.forwardRef(uP);process.env.NODE_ENV!=="production"&&(Cb.displayName="RightOutlined");const Aa=Cb;var dP={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M917 211.1l-199.2 24c-6.6.8-9.4 8.9-4.7 13.6l59.3 59.3-226 226-101.8-101.7c-6.3-6.3-16.4-6.2-22.6 0L100.3 754.1a8.03 8.03 0 000 11.3l45 45.2c3.1 3.1 8.2 3.1 11.3 0L433.3 534 535 635.7c6.3 6.2 16.4 6.2 22.6 0L829 364.5l59.3 59.3a8.01 8.01 0 0013.6-4.7l24-199.2c.7-5.1-3.7-9.5-8.9-8.8z"}}]},name:"rise",theme:"outlined"};const fP=dP;var mP=function(t,n){return s.createElement(mt,ce({},t,{ref:n,icon:fP}))},Sb=s.forwardRef(mP);process.env.NODE_ENV!=="production"&&(Sb.displayName="RiseOutlined");const xb=Sb;var pP={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 736c0-111.6-65.4-208-160-252.9V317.3c0-15.1-5.3-29.7-15.1-41.2L536.5 95.4C530.1 87.8 521 84 512 84s-18.1 3.8-24.5 11.4L335.1 276.1a63.97 63.97 0 00-15.1 41.2v165.8C225.4 528 160 624.4 160 736h156.5c-2.3 7.2-3.5 15-3.5 23.8 0 22.1 7.6 43.7 21.4 60.8a97.2 97.2 0 0043.1 30.6c23.1 54 75.6 88.8 134.5 88.8 29.1 0 57.3-8.6 81.4-24.8 23.6-15.8 41.9-37.9 53-64a97 97 0 0043.1-30.5 97.52 97.52 0 0021.4-60.8c0-8.4-1.1-16.4-3.1-23.8H864zM762.3 621.4c9.4 14.6 17 30.3 22.5 46.6H700V558.7a211.6 211.6 0 0162.3 62.7zM388 483.1V318.8l124-147 124 147V668H388V483.1zM239.2 668c5.5-16.3 13.1-32 22.5-46.6 16.3-25.2 37.5-46.5 62.3-62.7V668h-84.8zm388.9 116.2c-5.2 3-11.2 4.2-17.1 3.4l-19.5-2.4-2.8 19.4c-5.4 37.9-38.4 66.5-76.7 66.5-38.3 0-71.3-28.6-76.7-66.5l-2.8-19.5-19.5 2.5a27.7 27.7 0 01-17.1-3.5c-8.7-5-14.1-14.3-14.1-24.4 0-10.6 5.9-19.4 14.6-23.8h231.3c8.8 4.5 14.6 13.3 14.6 23.8-.1 10.2-5.5 19.6-14.2 24.5zM464 400a48 48 0 1096 0 48 48 0 10-96 0z"}}]},name:"rocket",theme:"outlined"};const vP=pP;var gP=function(t,n){return s.createElement(mt,ce({},t,{ref:n,icon:vP}))},Eb=s.forwardRef(gP);process.env.NODE_ENV!=="production"&&(Eb.displayName="RocketOutlined");const hP=Eb;var bP={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M893.3 293.3L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 184h256v104H384V184zm456 656H184V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V840zM512 442c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144zm0 224c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z"}}]},name:"save",theme:"outlined"};const yP=bP;var CP=function(t,n){return s.createElement(mt,ce({},t,{ref:n,icon:yP}))},$b=s.forwardRef(CP);process.env.NODE_ENV!=="production"&&($b.displayName="SaveOutlined");const SP=$b;var xP={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M704 320c0 17.7-14.3 32-32 32H352c-17.7 0-32-14.3-32-32V184H184v656h656V341.8l-136-136V320zM512 730c-79.5 0-144-64.5-144-144s64.5-144 144-144 144 64.5 144 144-64.5 144-144 144z",fill:n}},{tag:"path",attrs:{d:"M512 442c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144zm0 224c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z",fill:t}},{tag:"path",attrs:{d:"M893.3 293.3L730.7 130.7c-.7-.7-1.4-1.3-2.1-2-.1-.1-.3-.2-.4-.3-.7-.7-1.5-1.3-2.2-1.9a64 64 0 00-22-11.7V112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 184h256v104H384V184zm456 656H184V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V840z",fill:t}}]}},name:"save",theme:"twotone"};const EP=xP;var $P=function(t,n){return s.createElement(mt,ce({},t,{ref:n,icon:EP}))},wb=s.forwardRef($P);process.env.NODE_ENV!=="production"&&(wb.displayName="SaveTwoTone");const Ob=wb;var wP={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"};const OP=wP;var NP=function(t,n){return s.createElement(mt,ce({},t,{ref:n,icon:OP}))},Nb=s.forwardRef(NP);process.env.NODE_ENV!=="production"&&(Nb.displayName="SearchOutlined");const Ra=Nb;var IP={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3zM664.8 561.6l36.1 210.3L512 672.7 323.1 772l36.1-210.3-152.8-149L417.6 382 512 190.7 606.4 382l211.2 30.7-152.8 148.9z"}}]},name:"star",theme:"outlined"};const _P=IP;var TP=function(t,n){return s.createElement(mt,ce({},t,{ref:n,icon:_P}))},Ib=s.forwardRef(TP);process.env.NODE_ENV!=="production"&&(Ib.displayName="StarOutlined");const PP=Ib;var MP={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512.5 190.4l-94.4 191.3-211.2 30.7 152.8 149-36.1 210.3 188.9-99.3 188.9 99.2-36.1-210.3 152.8-148.9-211.2-30.7z",fill:n}},{tag:"path",attrs:{d:"M908.6 352.8l-253.9-36.9L541.2 85.8c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L370.3 315.9l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1L239 839.4a31.95 31.95 0 0046.4 33.7l227.1-119.4 227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3zM665.3 561.3l36.1 210.3-188.9-99.2-188.9 99.3 36.1-210.3-152.8-149 211.2-30.7 94.4-191.3 94.4 191.3 211.2 30.7-152.8 148.9z",fill:t}}]}},name:"star",theme:"twotone"};const DP=MP;var AP=function(t,n){return s.createElement(mt,ce({},t,{ref:n,icon:DP}))},_b=s.forwardRef(AP);process.env.NODE_ENV!=="production"&&(_b.displayName="StarTwoTone");const RP=_b;var jP={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 464H332V240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v68c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-68c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zm-40 376H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 10-56 0z"}}]},name:"unlock",theme:"outlined"};const LP=jP;var zP=function(t,n){return s.createElement(mt,ce({},t,{ref:n,icon:LP}))},Tb=s.forwardRef(zP);process.env.NODE_ENV!=="production"&&(Tb.displayName="UnlockOutlined");const BP=Tb;var kP={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"};const FP=kP;var HP=function(t,n){return s.createElement(mt,ce({},t,{ref:n,icon:FP}))},Pb=s.forwardRef(HP);process.env.NODE_ENV!=="production"&&(Pb.displayName="UserOutlined");const VP=Pb;var WP={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zM480 416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416zm32 352a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"warning",theme:"filled"};const KP=WP;var qP=function(t,n){return s.createElement(mt,ce({},t,{ref:n,icon:KP}))},Mb=s.forwardRef(qP);process.env.NODE_ENV!=="production"&&(Mb.displayName="WarningFilled");const UP=Mb;var Ld={exports:{}},Yt={};/**
|
|
91
|
+
* @license React
|
|
92
|
+
* react-is.production.min.js
|
|
93
|
+
*
|
|
94
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
95
|
+
*
|
|
96
|
+
* This source code is licensed under the MIT license found in the
|
|
97
|
+
* LICENSE file in the root directory of this source tree.
|
|
98
|
+
*/var Db;function GP(){if(Db)return Yt;Db=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"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),l=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"),p=Symbol.for("react.offscreen"),h;h=Symbol.for("react.module.reference");function b(v){if(typeof v=="object"&&v!==null){var y=v.$$typeof;switch(y){case e:switch(v=v.type,v){case n:case o:case r:case u:case d:return v;default:switch(v=v&&v.$$typeof,v){case l:case a:case c:case m:case f:case i:return v;default:return y}}case t:return y}}}return Yt.ContextConsumer=a,Yt.ContextProvider=i,Yt.Element=e,Yt.ForwardRef=c,Yt.Fragment=n,Yt.Lazy=m,Yt.Memo=f,Yt.Portal=t,Yt.Profiler=o,Yt.StrictMode=r,Yt.Suspense=u,Yt.SuspenseList=d,Yt.isAsyncMode=function(){return!1},Yt.isConcurrentMode=function(){return!1},Yt.isContextConsumer=function(v){return b(v)===a},Yt.isContextProvider=function(v){return b(v)===i},Yt.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===e},Yt.isForwardRef=function(v){return b(v)===c},Yt.isFragment=function(v){return b(v)===n},Yt.isLazy=function(v){return b(v)===m},Yt.isMemo=function(v){return b(v)===f},Yt.isPortal=function(v){return b(v)===t},Yt.isProfiler=function(v){return b(v)===o},Yt.isStrictMode=function(v){return b(v)===r},Yt.isSuspense=function(v){return b(v)===u},Yt.isSuspenseList=function(v){return b(v)===d},Yt.isValidElementType=function(v){return typeof v=="string"||typeof v=="function"||v===n||v===o||v===r||v===u||v===d||v===p||typeof v=="object"&&v!==null&&(v.$$typeof===m||v.$$typeof===f||v.$$typeof===i||v.$$typeof===a||v.$$typeof===c||v.$$typeof===h||v.getModuleId!==void 0)},Yt.typeOf=b,Yt}var Jt={};/**
|
|
99
|
+
* @license React
|
|
100
|
+
* react-is.development.js
|
|
101
|
+
*
|
|
102
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
103
|
+
*
|
|
104
|
+
* This source code is licensed under the MIT license found in the
|
|
105
|
+
* LICENSE file in the root directory of this source tree.
|
|
106
|
+
*/var Ab;function XP(){return Ab||(Ab=1,process.env.NODE_ENV!=="production"&&function(){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"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),l=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"),p=Symbol.for("react.offscreen"),h=!1,b=!1,v=!1,y=!1,C=!1,x;x=Symbol.for("react.module.reference");function E(Z){return!!(typeof Z=="string"||typeof Z=="function"||Z===n||Z===o||C||Z===r||Z===u||Z===d||y||Z===p||h||b||v||typeof Z=="object"&&Z!==null&&(Z.$$typeof===m||Z.$$typeof===f||Z.$$typeof===i||Z.$$typeof===a||Z.$$typeof===c||Z.$$typeof===x||Z.getModuleId!==void 0))}function S(Z){if(typeof Z=="object"&&Z!==null){var ne=Z.$$typeof;switch(ne){case e:var re=Z.type;switch(re){case n:case o:case r:case u:case d:return re;default:var se=re&&re.$$typeof;switch(se){case l:case a:case c:case m:case f:case i:return se;default:return ne}}case t:return ne}}}var $=a,O=i,I=e,w=c,N=n,_=m,P=f,M=t,D=o,T=r,A=u,R=d,L=!1,j=!1;function z(Z){return L||(L=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function B(Z){return j||(j=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function K(Z){return S(Z)===a}function W(Z){return S(Z)===i}function k(Z){return typeof Z=="object"&&Z!==null&&Z.$$typeof===e}function V(Z){return S(Z)===c}function Q(Z){return S(Z)===n}function J(Z){return S(Z)===m}function Y(Z){return S(Z)===f}function te(Z){return S(Z)===t}function oe(Z){return S(Z)===o}function X(Z){return S(Z)===r}function F(Z){return S(Z)===u}function ee(Z){return S(Z)===d}Jt.ContextConsumer=$,Jt.ContextProvider=O,Jt.Element=I,Jt.ForwardRef=w,Jt.Fragment=N,Jt.Lazy=_,Jt.Memo=P,Jt.Portal=M,Jt.Profiler=D,Jt.StrictMode=T,Jt.Suspense=A,Jt.SuspenseList=R,Jt.isAsyncMode=z,Jt.isConcurrentMode=B,Jt.isContextConsumer=K,Jt.isContextProvider=W,Jt.isElement=k,Jt.isForwardRef=V,Jt.isFragment=Q,Jt.isLazy=J,Jt.isMemo=Y,Jt.isPortal=te,Jt.isProfiler=oe,Jt.isStrictMode=X,Jt.isSuspense=F,Jt.isSuspenseList=ee,Jt.isValidElementType=E,Jt.typeOf=S}()),Jt}process.env.NODE_ENV==="production"?Ld.exports=GP():Ld.exports=XP();var zd=Ld.exports;function ni(e,t,n){var r=s.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}var QP=Symbol.for("react.element"),YP=Symbol.for("react.transitional.element"),JP=Symbol.for("react.fragment");function Rb(e){return e&&He(e)==="object"&&(e.$$typeof===QP||e.$$typeof===YP)&&e.type===JP}var ZP=Number(g.version.split(".")[0]),ja=function(t,n){typeof t=="function"?t(n):He(t)==="object"&&t&&"current"in t&&(t.current=n)},Wn=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(i){n.forEach(function(a){ja(a,i)})}},Jr=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return ni(function(){return Wn.apply(void 0,n)},n,function(o,i){return o.length!==i.length||o.every(function(a,l){return a!==i[l]})})},Rr=function(t){var n,r;if(!t)return!1;if(Bd(t)&&ZP>=19)return!0;var o=zd.isMemo(t)?t.type.type:t.type;return!(typeof o=="function"&&!((n=o.prototype)!==null&&n!==void 0&&n.render)&&o.$$typeof!==zd.ForwardRef||typeof t=="function"&&!((r=t.prototype)!==null&&r!==void 0&&r.render)&&t.$$typeof!==zd.ForwardRef)};function Bd(e){return g.isValidElement(e)&&!Rb(e)}var eM=function(t){return Bd(t)&&Rr(t)},Ao=function(t){if(t&&Bd(t)){var n=t;return n.props.propertyIsEnumerable("ref")?n.props.ref:n.ref}return null};const Ii={APPLICATION_FORM:"application_form",SAVED:"Saved",WITHDRAWN:"Application Withdrawn"},jb={PROFILE_DETAILS:"25%",JOB_DETAILS:"60%"},kd={relevant:{label:"Unlocked Jobs",icon:BP},all:{label:"All Jobs",icon:xb},saved:{label:"Saved",icon:I2},applied:{label:"Applied",icon:Ph}},vn={relevant:"relevant",all:"all",saved:"saved",applied:"applications"},tM={relevant:"relevant",all:"all",saved:"saved",applied:"applications"},gs={eligibility:{label:"Eligibility",value:"eligibility",mapping:{property:"eligibility",direction:"DESC"}},popularity:{label:"Popularity",value:"popularity",mapping:{property:"popularity",direction:"DESC"}},leastApplied:{label:"Least Applied",value:"leastApplied",mapping:{property:"popularity",direction:"ASC"}},mostRecent:{label:"Most Recent",value:"mostRecent",mapping:{property:"date_posted_on",direction:"DESC"}}},ri={ABOUT_ROLE:{key:"about-role",label:"About Role"},REQUIREMENTS:{key:"requirements",label:"Requirements"},APPLICATION_TIMELINE:{key:"application-timeline",label:"Application Timeline"}},dn={REALTIME:0,DAILY:1,ALTERNATE_DAY:2,WEEKLY:7},Lb={[dn.REALTIME]:"Realtime",[dn.DAILY]:"Daily",[dn.ALTERNATE_DAY]:"Every alternate day",[dn.WEEKLY]:"Weekly"},rr={EMAIL:"email",WHATSAPP:"whatsapp",BOTH:"both"},zb={[rr.EMAIL]:"On Email",[rr.WHATSAPP]:"On Whatsapp",[rr.BOTH]:"On Email & Whatsapp"},La={ACTIVE:"active",INACTIVE:"inactive"},Bb={all:0,relevant:0,draft:0,applications:0,saved:0,archived:0},nM=(e=[])=>{if(!e||e.length===0)return"eligibility";const t=e[0];for(const n of Object.values(gs))if(n.mapping.property===t.property&&n.mapping.direction===t.direction)return n.value;return"eligibility"},rM=(e=[],t=[])=>{if(!t||t.length===0)return e;const n=new Set(e.map(o=>o.id)),r=t.filter(o=>!n.has(o.id));return[...e,...r]},oM=(e={},t={})=>fr(fr({},e),t),hs=(e,t=!1,n=!1,r=null)=>{const o=$t.useSelector(v=>{var y,C;return((C=(y=v.scalantCareerHub)==null?void 0:y.filter)==null?void 0:C.page_number)||1}),i=$t.useSelector(v=>{var y,C;return((C=(y=v.scalantCareerHub)==null?void 0:y.dashboard)==null?void 0:C.processCounts)||{}}),[a,l]=g.useState([]),[c,u]=g.useState({}),d=g.useMemo(()=>(e==null?void 0:e.jobs)||(e==null?void 0:e.results)||[],[e==null?void 0:e.jobs,e==null?void 0:e.results]),f=g.useMemo(()=>(e==null?void 0:e.companiesMap)||{},[e==null?void 0:e.companiesMap]),m=g.useMemo(()=>r||null,[r]),p=g.useMemo(()=>m?i[m]||0:null,[m,i]);g.useEffect(()=>{o===1?(l(d),u(f)):d.length>0&&(l(v=>rM(v,d)),u(v=>oM(v,f)))},[d,f,o]);const h=g.useMemo(()=>p===null?d.length>0:a.length<p,[p,a.length,d.length]),b=t&&o>1;return{accumulatedJobs:a,accumulatedCompaniesMap:c,hasMore:h,isFetchingMore:b,isLoading:n&&o===1}},bs=Yr.injectEndpoints({endpoints:e=>({getCompanies:e.query({query:t=>({url:"/job-tracker/filters/",params:{query_type:"companies",q:t}}),transformResponse:t=>(t.data||[]).map(r=>({id:r.id,value:r.attributes.name})),providesTags:["FilterOptions"]}),getTitles:e.query({query:t=>({url:"/job-tracker/filters/",params:{query_type:"title",q:t}}),transformResponse:t=>{const n=(t.data||[]).map(o=>({id:o.id,value:o.attributes.title||o.attributes.name}));let r={};return n.forEach(o=>{r[o.value]=o.value}),Object.keys(r).map(o=>({key:o,value:r[o]}))},providesTags:["FilterOptions"]}),getExperienceSkills:e.query({query:t=>({url:"/user/skills/all",params:{prefix_q:t}}),transformResponse:t=>(t.all_skills||[]).map(r=>({skill_id:r.skill_id,key:r.key,skill_type:r.skill_type})).filter(r=>r.key&&r.skill_id&&r.skill_type).map(r=>({key:r.skill_id,value:r.key,type:r.skill_type})),providesTags:["FilterOptions"]})})}),{useGetCompaniesQuery:iM,useGetTitlesQuery:aM,useGetExperienceSkillsQuery:lM}=bs,Ro=(e,t,n=t)=>!e||!Array.isArray(e)?[]:e.map(r=>({key:r[t],value:r[n]})),kb=new Array(5).fill(1).map((e,t)=>({value:(e+t)*5,label:`>= ${(e+t)*5} Lakhs`})),Fb=[{value:20,label:">= 20K"},{value:30,label:">= 30K"},{value:50,label:">= 50K"},{value:75,label:">= 75K"},{value:100,label:">= 100K"}],Hb=[{value:0,label:"Must to Have"},{value:1,label:"Good to Have"},{value:2,label:"Bar Raiser"},{value:3,label:"Must to Have (Eligibility)"}],sM=[{value:1,label:"Last 24 hours"},{value:3,label:"Last 3 days"},{value:7,label:"Last 7 days"},{value:30,label:"Last 30 days"}],cM=[{value:202948,label:"Fresher"},{value:202949,label:"Entry - Mid"},{value:202950,label:"Mid - Senior"},{value:202951,label:"Senior"}],uM=[{value:1e4,label:">= 10K"},{value:2e4,label:">= 20K"},{value:3e4,label:">= 30K"},{value:4e4,label:">= 40K"},{value:5e4,label:">= 50K"},{value:6e4,label:">= 60K"}],dM=[{value:3,label:">= 3 months"},{value:6,label:">= 6 months"},{value:9,label:">= 9 months"},{value:12,label:">= 12 months"}],fM=[{value:"Full time roles",key:"full_time"},{value:"Internship roles",key:"internship"}],mM=new Array(3).fill(1).map((e,t)=>({value:((e+t+1)*30).toString(),label:`greater than ${e+t+1} Months`})),pM=[{value:"not filled",label:"Not Available"},{value:"0",label:"0 Days"},{value:"15",label:"greater than 15 Days"},{value:"30",label:"greater than 30 Days"},{value:"45",label:"greater than 45 Days"},...mM],oi={minCtcOptions:kb,minCtcUSOptions:Fb,getMinCtcOptions:e=>e?Fb:kb,mockInterviewSkillOptions:Hb,datePostedOnOptions:sM,seniorityLevelOptions:cM,stipendOptions:uM,internshipDurationOptions:dM,jobTypeOptions:fM,NOTICE_PERIOD_OPTIONS:pM,convertToSelectOption:Ro,getProficiencyOptions:e=>e?Object.entries(e).map(([t,n])=>({value:n,label:t})):Hb,getMeritBasedSkillOptions:e=>!e||!Array.isArray(e)?[]:e.map(t=>({value:t.id,label:t.title})),getExperienceSkillOptions:e=>!e||!Array.isArray(e)?[]:e.map(t=>({value:t.subtopic_id,label:t.subtopic,type:t.eligible_class||"SubTopic"}))},vM={companyOptions:[],titleOptions:[],experienceSkillOptions:[]},Vb=We.createSlice({name:"filterOptions",initialState:vM,reducers:{setCompanyOptions:(e,t)=>{e.companyOptions=Ro(t.payload,"id","value")},setTitleOptions:(e,t)=>{e.titleOptions=t.payload},setExperienceSkillOptions:(e,t)=>{e.experienceSkillOptions=t.payload},clearCompanyOptions:e=>{e.companyOptions=[]},clearTitleOptions:e=>{e.titleOptions=[]},clearExperienceSkillOptions:()=>{},clearAllOptions:e=>{e.companyOptions=[],e.titleOptions=[],e.experienceSkillOptions=[]}},extraReducers:e=>{e.addMatcher(bs.endpoints.getCompanies.matchFulfilled,(t,n)=>{t.companyOptions=Ro(n.payload,"id","value")}),e.addMatcher(bs.endpoints.getTitles.matchFulfilled,(t,n)=>{t.titleOptions=n.payload}),e.addMatcher(bs.endpoints.getExperienceSkills.matchFulfilled,(t,n)=>{const r=n.payload||[],o=t.experienceSkillOptions||[],i=new Map(o.map(a=>[a.key,a]));r.forEach(a=>{i.set(a.key,a)}),t.experienceSkillOptions=Array.from(i.values())})}}),{setCompanyOptions:kG,setTitleOptions:FG,setExperienceSkillOptions:HG,clearCompanyOptions:gM,clearTitleOptions:hM,clearExperienceSkillOptions:bM,clearAllOptions:yM}=Vb.actions,CM=Vb.reducer,Fd=(e,t)=>{const n=g.useRef(null);return g.useCallback((...r)=>{n.current&&clearTimeout(n.current),n.current=setTimeout(()=>{e(...r)},t)},[e,t])},SM=()=>{const e=$t.useDispatch(),[t,n]=g.useState(""),[r,o]=g.useState(""),[i,a]=g.useState(""),{isLoading:l,isFetching:c}=iM(t,{skip:!t||t.length<3}),{isLoading:u,isFetching:d}=aM(r,{skip:!r||r.length<3}),{isLoading:f,isFetching:m}=lM(i,{skip:!i||i.length<2});g.useEffect(()=>{(!t||t.length<3)&&e(gM())},[t,e]),g.useEffect(()=>{(!r||r.length<3)&&e(hM())},[r,e]),g.useEffect(()=>{(!i||i.length<2)&&e(bM())},[i,e]);const p=g.useCallback(E=>{n(E)},[]),h=Fd(p,300),b=g.useCallback(E=>{o(E)},[]),v=Fd(b,300),y=g.useCallback(E=>{a(E)},[]),C=Fd(y,300),x=g.useCallback((E,S)=>E.map($=>{const O=S==null?void 0:S.find(I=>I.key===$);return{experience_skill_id:$,skill_type:(O==null?void 0:O.type)||"SubTopic"}}),[]);return{handleCompanySearch:h,handleTitleSearch:v,handleExperienceSkillSearch:C,handleExperienceSkillChange:x,loadingCompanies:l||c,loadingTitles:u||d,loadingExperienceSkills:f||m}},Wb=()=>{const e=$t.useSelector(p=>{var h;return((h=p.scalantCareerHub.metaData)==null?void 0:h.meta)||{}}),t=g.useMemo(()=>oi.jobTypeOptions,[]),n=g.useMemo(()=>Ro(e.jobCategories||[],"value","label"),[e.jobCategories]),r=g.useMemo(()=>Ro(e.seniorityLevels||[],"value","label"),[e.seniorityLevels]),o=g.useMemo(()=>Ro(e.companyCategories||[],"value","label"),[e.companyCategories]),i=g.useMemo(()=>Ro(e.jobLocations||[],"label"),[e.jobLocations]),a=g.useMemo(()=>Ro(e.meritBasedSkills||[],"id","title"),[e.meritBasedSkills]),l=g.useMemo(()=>oi.getMinCtcOptions(!1),[]),c=g.useMemo(()=>oi.stipendOptions,[]),u=g.useMemo(()=>oi.internshipDurationOptions,[]),d=g.useMemo(()=>oi.NOTICE_PERIOD_OPTIONS,[]),f=g.useMemo(()=>oi.datePostedOnOptions,[]),m=g.useMemo(()=>oi.mockInterviewSkillOptions,[]);return{jobTypes:t,functions:n,seniorityLevels:r,companyCategories:o,locations:i,mbeSkills:a,ctcRanges:l,stipendRanges:c,durationRanges:u,noticePeriods:d,datePostedOptions:f,skillRatings:m}};function Hd({applicationData:e}){switch(e.status){case Ii.APPLICATION_FORM:return g.createElement(g.Fragment,null,"Application Form");default:return null}}Hd.propTypes={applicationData:pe.object.isRequired};function Kb({jobProfileId:e,applicationId:t,status:n}){const{data:r,isLoading:o}=Ug({jobProfileId:e,applicationId:t,status:n});return o?g.createElement("div",null,"Loading..."):g.createElement(Hd,{applicationData:r||{status:n}})}Kb.propTypes={jobProfileId:pe.number.isRequired,applicationId:pe.number,status:pe.string};function Tn(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return g.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(Tn(r)):Rb(r)&&r.props?n=n.concat(Tn(r.props.children,t)):n.push(r))}),n}function za(e){return e instanceof HTMLElement||e instanceof SVGElement}function Ba(e){return e&&He(e)==="object"&&za(e.nativeElement)?e.nativeElement:za(e)?e:null}function ys(e){var t=Ba(e);if(t)return t;if(e instanceof g.Component){var n;return(n=nr.findDOMNode)===null||n===void 0?void 0:n.call(nr,e)}return null}var Vd=s.createContext(null);function xM(e){var t=e.children,n=e.onBatchResize,r=s.useRef(0),o=s.useRef([]),i=s.useContext(Vd),a=s.useCallback(function(l,c,u){r.current+=1;var d=r.current;o.current.push({size:l,element:c,data:u}),Promise.resolve().then(function(){d===r.current&&(n==null||n(o.current),o.current=[])}),i==null||i(l,c,u)},[n,i]);return s.createElement(Vd.Provider,{value:a},t)}var qb=function(){if(typeof Map!="undefined")return Map;function e(t,n){var r=-1;return t.some(function(o,i){return o[0]===n?(r=i,!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,i=this.__entries__;o<i.length;o++){var a=i[o];n.call(r,a[1],a[0])}},t}()}(),Wd=typeof window!="undefined"&&typeof document!="undefined"&&window.document===document,Cs=function(){return typeof global!="undefined"&&global.Math===Math?global:typeof self!="undefined"&&self.Math===Math?self:typeof window!="undefined"&&window.Math===Math?window:Function("return this")()}(),EM=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(Cs):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),$M=2;function wM(e,t){var n=!1,r=!1,o=0;function i(){n&&(n=!1,e()),r&&l()}function a(){EM(i)}function l(){var c=Date.now();if(n){if(c-o<$M)return;r=!0}else n=!0,r=!1,setTimeout(a,t);o=c}return l}var OM=20,NM=["top","right","bottom","left","width","height","size","weight"],IM=typeof MutationObserver!="undefined",_M=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=wM(this.refresh.bind(this),OM)}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(){!Wd||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),IM?(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(){!Wd||!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=NM.some(function(i){return!!~r.indexOf(i)});o&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),Ub=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},_i=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||Cs},Gb=xs(0,0,0,0);function Ss(e){return parseFloat(e)||0}function Xb(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(r,o){var i=e["border-"+o+"-width"];return r+Ss(i)},0)}function TM(e){for(var t=["top","right","bottom","left"],n={},r=0,o=t;r<o.length;r++){var i=o[r],a=e["padding-"+i];n[i]=Ss(a)}return n}function PM(e){var t=e.getBBox();return xs(0,0,t.width,t.height)}function MM(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return Gb;var r=_i(e).getComputedStyle(e),o=TM(r),i=o.left+o.right,a=o.top+o.bottom,l=Ss(r.width),c=Ss(r.height);if(r.boxSizing==="border-box"&&(Math.round(l+i)!==t&&(l-=Xb(r,"left","right")+i),Math.round(c+a)!==n&&(c-=Xb(r,"top","bottom")+a)),!AM(e)){var u=Math.round(l+i)-t,d=Math.round(c+a)-n;Math.abs(u)!==1&&(l-=u),Math.abs(d)!==1&&(c-=d)}return xs(o.left,o.top,l,c)}var DM=function(){return typeof SVGGraphicsElement!="undefined"?function(e){return e instanceof _i(e).SVGGraphicsElement}:function(e){return e instanceof _i(e).SVGElement&&typeof e.getBBox=="function"}}();function AM(e){return e===_i(e).document.documentElement}function RM(e){return Wd?DM(e)?PM(e):MM(e):Gb}function jM(e){var t=e.x,n=e.y,r=e.width,o=e.height,i=typeof DOMRectReadOnly!="undefined"?DOMRectReadOnly:Object,a=Object.create(i.prototype);return Ub(a,{x:t,y:n,width:r,height:o,top:n,right:t+r,bottom:o+n,left:t}),a}function xs(e,t,n,r){return{x:e,y:t,width:n,height:r}}var LM=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=xs(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=RM(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}(),zM=function(){function e(t,n){var r=jM(n);Ub(this,{target:t,contentRect:r})}return e}(),BM=function(){function e(t,n,r){if(this.activeObservations_=[],this.observations_=new qb,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=="undefined"||!(Element instanceof Object))){if(!(t instanceof _i(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new LM(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=="undefined"||!(Element instanceof Object))){if(!(t instanceof _i(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 zM(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}(),Qb=typeof WeakMap!="undefined"?new WeakMap:new qb,Yb=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=_M.getInstance(),r=new BM(t,n,this);Qb.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){Yb.prototype[e]=function(){var t;return(t=Qb.get(this))[e].apply(t,arguments)}});var kM=function(){return typeof Cs.ResizeObserver!="undefined"?Cs.ResizeObserver:Yb}(),yo=new Map;function Jb(e){e.forEach(function(t){var n,r=t.target;(n=yo.get(r))===null||n===void 0||n.forEach(function(o){return o(r)})})}var Zb=new kM(Jb);process.env.NODE_ENV,process.env.NODE_ENV;function FM(e,t){yo.has(e)||(yo.set(e,new Set),Zb.observe(e)),yo.get(e).add(t)}function HM(e,t){yo.has(e)&&(yo.get(e).delete(t),yo.get(e).size||(Zb.unobserve(e),yo.delete(e)))}function bn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ey(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,eh(r.key),r)}}function yn(e,t,n){return t&&ey(e.prototype,t),n&&ey(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ka(e,t){return ka=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},ka(e,t)}function jr(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&&ka(e,t)}function ii(e){return ii=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ii(e)}function Es(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(Es=function(){return!!e})()}function qe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ty(e,t){if(t&&(He(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return qe(e)}function Zr(e){var t=Es();return function(){var n,r=ii(e);if(t){var o=ii(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ty(this,n)}}var VM=function(e){jr(n,e);var t=Zr(n);function n(){return bn(this,n),t.apply(this,arguments)}return yn(n,[{key:"render",value:function(){return this.props.children}}]),n}(s.Component);function WM(e,t){var n=e.children,r=e.disabled,o=s.useRef(null),i=s.useRef(null),a=s.useContext(Vd),l=typeof n=="function",c=l?n(o):n,u=s.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),d=!l&&s.isValidElement(c)&&Rr(c),f=d?Ao(c):null,m=Jr(f,o),p=function(){var y;return ys(o.current)||(o.current&&He(o.current)==="object"?ys((y=o.current)===null||y===void 0?void 0:y.nativeElement):null)||ys(i.current)};s.useImperativeHandle(t,function(){return p()});var h=s.useRef(e);h.current=e;var b=s.useCallback(function(v){var y=h.current,C=y.onResize,x=y.data,E=v.getBoundingClientRect(),S=E.width,$=E.height,O=v.offsetWidth,I=v.offsetHeight,w=Math.floor(S),N=Math.floor($);if(u.current.width!==w||u.current.height!==N||u.current.offsetWidth!==O||u.current.offsetHeight!==I){var _={width:w,height:N,offsetWidth:O,offsetHeight:I};u.current=_;var P=O===Math.round(S)?S:O,M=I===Math.round($)?$:I,D=q(q({},_),{},{offsetWidth:P,offsetHeight:M});a==null||a(D,v,x),C&&Promise.resolve().then(function(){C(D,v)})}},[]);return s.useEffect(function(){var v=p();return v&&!r&&FM(v,b),function(){return HM(v,b)}},[o.current,r]),s.createElement(VM,{ref:i},d?s.cloneElement(c,{ref:m}):c)}var ny=s.forwardRef(WM);process.env.NODE_ENV!=="production"&&(ny.displayName="SingleObserver");var KM="rc-observer-key";function qM(e,t){var n=e.children,r=typeof n=="function"?[n]:Tn(n);return process.env.NODE_ENV!=="production"&&(r.length>1?bo(!1,"Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead."):r.length===0&&bo(!1,"`children` of ResizeObserver is empty. Nothing is in observe.")),r.map(function(o,i){var a=(o==null?void 0:o.key)||"".concat(KM,"-").concat(i);return s.createElement(ny,ce({},e,{key:a,ref:i===0?t:void 0}),o)})}var Kn=s.forwardRef(qM);process.env.NODE_ENV!=="production"&&(Kn.displayName="ResizeObserver"),Kn.Collection=xM;function UM(e){if(Array.isArray(e))return ud(e)}function ry(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function GM(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
107
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ge(e){return UM(e)||ry(e)||dd(e)||GM()}var oy=function(t){return+setTimeout(t,16)},iy=function(t){return clearTimeout(t)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(oy=function(t){return window.requestAnimationFrame(t)},iy=function(t){return window.cancelAnimationFrame(t)});var ay=0,$s=new Map;function ly(e){$s.delete(e)}var Rt=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;ay+=1;var r=ay;function o(i){if(i===0)ly(r),t();else{var a=oy(function(){o(i-1)});$s.set(r,a)}}return o(n),r};Rt.cancel=function(e){var t=$s.get(e);return ly(e),iy(t)},process.env.NODE_ENV!=="production"&&(Rt.ids=function(){return $s});function Fa(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 eo(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function o(i,a){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,c=r.has(i);if(Ge(!c,"Warning: There may be circular references"),c)return!1;if(i===a)return!0;if(n&&l>1)return!1;r.add(i);var u=l+1;if(Array.isArray(i)){if(!Array.isArray(a)||i.length!==a.length)return!1;for(var d=0;d<i.length;d++)if(!o(i[d],a[d],u))return!1;return!0}if(i&&a&&He(i)==="object"&&He(a)==="object"){var f=Object.keys(i);return f.length!==Object.keys(a).length?!1:f.every(function(m){return o(i[m],a[m],u)})}return!1}return o(e,t)}var XM="%";function Kd(e){return e.join(XM)}var QM=function(){function e(t){bn(this,e),H(this,"instanceId",void 0),H(this,"cache",new Map),this.instanceId=t}return yn(e,[{key:"get",value:function(n){return this.opGet(Kd(n))}},{key:"opGet",value:function(n){return this.cache.get(n)||null}},{key:"update",value:function(n,r){return this.opUpdate(Kd(n),r)}},{key:"opUpdate",value:function(n,r){var o=this.cache.get(n),i=r(o);i===null?this.cache.delete(n):this.cache.set(n,i)}}]),e}(),Ti="data-token-hash",Lr="data-css-hash",YM="data-cache-path",jo="__cssinjs_instance__";function JM(){var e=Math.random().toString(12).slice(2);if(typeof document!="undefined"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(Lr,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(o){o[jo]=o[jo]||e,o[jo]===e&&document.head.insertBefore(o,n)});var r={};Array.from(document.querySelectorAll("style[".concat(Lr,"]"))).forEach(function(o){var i=o.getAttribute(Lr);if(r[i]){if(o[jo]===e){var a;(a=o.parentNode)===null||a===void 0||a.removeChild(o)}}else r[i]=!0})}return new QM(e)}var Ha=s.createContext({hashPriority:"low",cache:JM(),defaultCache:!0});function ZM(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 qd=function(){function e(){bn(this,e),H(this,"cache",void 0),H(this,"keys",void 0),H(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return yn(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(n){var r,o,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a={map:this.cache};return n.forEach(function(l){if(!a)a=void 0;else{var c;a=(c=a)===null||c===void 0||(c=c.map)===null||c===void 0?void 0:c.get(l)}}),(r=a)!==null&&r!==void 0&&r.value&&i&&(a.value[1]=this.cacheCallTimes++),(o=a)===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 i=this.keys.reduce(function(u,d){var f=ae(u,2),m=f[1];return o.internalGet(d)[1]<m?[d,o.internalGet(d)[1]]:u},[this.keys[0],this.cacheCallTimes]),a=ae(i,1),l=a[0];this.delete(l)}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 i;return o.map?n.set(r[0],{map:o.map}):n.delete(r[0]),(i=o.value)===null||i===void 0?void 0:i[0]}var a=this.deleteByPath(o.map,r.slice(1));return(!o.map||o.map.size===0)&&!o.value&&n.delete(r[0]),a}},{key:"delete",value:function(n){if(this.has(n))return this.keys=this.keys.filter(function(r){return!ZM(r,n)}),this.deleteByPath(this.cache,n)}}]),e}();H(qd,"MAX_CACHE_SIZE",20),H(qd,"MAX_CACHE_OFFSET",5);var sy=0,cy=function(){function e(t){bn(this,e),H(this,"derivatives",void 0),H(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=sy,t.length===0&&bo(t.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),sy+=1}return yn(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,o){return o(n,r)},void 0)}}]),e}(),Ud=new qd;function Gd(e){var t=Array.isArray(e)?e:[e];return Ud.has(t)||Ud.set(t,new cy(t)),Ud.get(t)}var eD=new WeakMap,Xd={};function tD(e,t){for(var n=eD,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(Xd)||n.set(Xd,e()),n.get(Xd)}var uy=new WeakMap;function Va(e){var t=uy.get(e)||"";return t||(Object.keys(e).forEach(function(n){var r=e[n];t+=n,r instanceof cy?t+=r.id:r&&He(r)==="object"?t+=Va(r):t+=r}),t=Fa(t),uy.set(e,t)),t}function dy(e,t){return Fa("".concat(t,"_").concat(Va(e)))}var Qd=_n();function U(e){return typeof e=="number"?"".concat(e,"px"):e}function ws(e,t,n){var r,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(i)return e;var a=q(q({},o),{},(r={},H(r,Ti,t),H(r,Lr,n),r)),l=Object.keys(a).map(function(c){var u=a[c];return u?"".concat(c,'="').concat(u,'"'):null}).filter(function(c){return c}).join(" ");return"<style ".concat(l,">").concat(e,"</style>")}var Os=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()},nD=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 i=ae(o,2),a=i[0],l=i[1];return"".concat(a,":").concat(l,";")}).join(""),"}"):""},fy=function(t,n,r){var o={},i={};return Object.entries(t).forEach(function(a){var l,c,u=ae(a,2),d=u[0],f=u[1];if(r!=null&&(l=r.preserve)!==null&&l!==void 0&&l[d])i[d]=f;else if((typeof f=="string"||typeof f=="number")&&!(r!=null&&(c=r.ignore)!==null&&c!==void 0&&c[d])){var m,p=Os(d,r==null?void 0:r.prefix);o[p]=typeof f=="number"&&!(r!=null&&(m=r.unitless)!==null&&m!==void 0&&m[d])?"".concat(f,"px"):String(f),i[d]="var(".concat(p,")")}}),[i,nD(o,n,{scope:r==null?void 0:r.scope})]},my=process.env.NODE_ENV!=="test"&&_n()?s.useLayoutEffect:s.useEffect,wt=function(t,n){var r=s.useRef(!0);my(function(){return t(r.current)},n),my(function(){return r.current=!1,function(){r.current=!0}},[])},Yd=function(t,n){wt(function(r){if(!r)return t()},n)},rD=q({},s),py=rD.useInsertionEffect,oD=function(t,n,r){s.useMemo(t,r),wt(function(){return n(!0)},r)},iD=py?function(e,t,n){return py(function(){return e(),t()},n)}:oD,aD=q({},s),lD=aD.useInsertionEffect,sD=function(t){var n=[],r=!1;function o(i){if(r){process.env.NODE_ENV!=="production"&&bo(!1,"[Ant Design CSS-in-JS] You are registering a cleanup function after unmount, which will not have any effect.");return}n.push(i)}return s.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(i){return i()})}},t),o},cD=function(){return function(t){t()}},uD=typeof lD!="undefined"?sD:cD;function dD(){return!1}var Jd=!1;function fD(){return Jd}const mD=process.env.NODE_ENV==="production"?dD:fD;if(process.env.NODE_ENV!=="production"&&typeof module!="undefined"&&module&&module.hot&&typeof window!="undefined"){var Ns=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:null;if(Ns&&typeof Ns.webpackHotUpdate=="function"){var pD=Ns.webpackHotUpdate;Ns.webpackHotUpdate=function(){return Jd=!0,setTimeout(function(){Jd=!1},0),pD.apply(void 0,arguments)}}}function Zd(e,t,n,r,o){var i=s.useContext(Ha),a=i.cache,l=[e].concat(ge(t)),c=Kd(l),u=uD([c]),d=mD(),f=function(b){a.opUpdate(c,function(v){var y=v||[void 0,void 0],C=ae(y,2),x=C[0],E=x===void 0?0:x,S=C[1],$=S;process.env.NODE_ENV!=="production"&&S&&d&&(r==null||r($,d),$=null);var O=$||n(),I=[E,O];return b?b(I):I})};s.useMemo(function(){f()},[c]);var m=a.opGet(c);process.env.NODE_ENV!=="production"&&!m&&(f(),m=a.opGet(c));var p=m[1];return iD(function(){o==null||o(p)},function(h){return f(function(b){var v=ae(b,2),y=v[0],C=v[1];return h&&y===0&&(o==null||o(p)),[y+1,C]}),function(){a.opUpdate(c,function(b){var v=b||[],y=ae(v,2),C=y[0],x=C===void 0?0:C,E=y[1],S=x-1;return S===0?(u(function(){(h||!a.opGet(c))&&(r==null||r(E,!1))}),null):[x-1,E]})}},[c]),p}var vD={},gD=process.env.NODE_ENV!=="production"?"css-dev-only-do-not-override":"css",ai=new Map;function hD(e){ai.set(e,(ai.get(e)||0)+1)}function bD(e,t){if(typeof document!="undefined"){var n=document.querySelectorAll("style[".concat(Ti,'="').concat(e,'"]'));n.forEach(function(r){if(r[jo]===t){var o;(o=r.parentNode)===null||o===void 0||o.removeChild(r)}})}}var yD=0;function CD(e,t){ai.set(e,(ai.get(e)||0)-1);var n=Array.from(ai.keys()),r=n.filter(function(o){var i=ai.get(o)||0;return i<=0});n.length-r.length>yD&&r.forEach(function(o){bD(o,t),ai.delete(o)})}var SD=function(t,n,r,o){var i=r.getDerivativeToken(t),a=q(q({},i),n);return o&&(a=o(a)),a},vy="token";function xD(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=g.useContext(Ha),o=r.cache.instanceId,i=r.container,a=n.salt,l=a===void 0?"":a,c=n.override,u=c===void 0?vD:c,d=n.formatToken,f=n.getComputedToken,m=n.cssVar,p=tD(function(){return Object.assign.apply(Object,[{}].concat(ge(t)))},t),h=Va(p),b=Va(u),v=m?Va(m):"",y=Zd(vy,[l,e.id,h,b,v],function(){var C,x=f?f(p,u,e):SD(p,u,e,d),E=q({},x),S="";if(m){var $=fy(x,m.key,{prefix:m.prefix,ignore:m.ignore,unitless:m.unitless,preserve:m.preserve}),O=ae($,2);x=O[0],S=O[1]}var I=dy(x,l);x._tokenKey=I,E._tokenKey=dy(E,l);var w=(C=m==null?void 0:m.key)!==null&&C!==void 0?C:I;x._themeKey=w,hD(w);var N="".concat(gD,"-").concat(Fa(I));return x._hashId=N,[x,N,E,S,(m==null?void 0:m.key)||""]},function(C){CD(C[0]._themeKey,o)},function(C){var x=ae(C,4),E=x[0],S=x[3];if(m&&S){var $=ho(S,Fa("css-variables-".concat(E._themeKey)),{mark:Lr,prepend:"queue",attachTo:i,priority:-999});$[jo]=o,$.setAttribute(Ti,E._themeKey)}});return y}var ED=function(t,n,r){var o=ae(t,5),i=o[2],a=o[3],l=o[4],c=r||{},u=c.plain;if(!a)return null;var d=i._tokenKey,f=-999,m={"data-rc-order":"prependQueue","data-rc-priority":"".concat(f)},p=ws(a,l,d,m,u);return[f,d,p]},$D={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},gy="comm",hy="rule",by="decl",wD="@import",OD="@namespace",ND="@keyframes",ID="@layer",yy=Math.abs,ef=String.fromCharCode;function Cy(e){return e.trim()}function Is(e,t,n){return e.replace(t,n)}function _D(e,t,n){return e.indexOf(t,n)}function Pi(e,t){return e.charCodeAt(t)|0}function Mi(e,t,n){return e.slice(t,n)}function to(e){return e.length}function TD(e){return e.length}function _s(e,t){return t.push(e),e}var Ts=1,Di=1,Sy=0,wr=0,Pn=0,Ai="";function tf(e,t,n,r,o,i,a,l){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Ts,column:Di,length:a,return:"",siblings:l}}function PD(){return Pn}function MD(){return Pn=wr>0?Pi(Ai,--wr):0,Di--,Pn===10&&(Di=1,Ts--),Pn}function zr(){return Pn=wr<Sy?Pi(Ai,wr++):0,Di++,Pn===10&&(Di=1,Ts++),Pn}function Lo(){return Pi(Ai,wr)}function Ps(){return wr}function Ms(e,t){return Mi(Ai,e,t)}function Wa(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 DD(e){return Ts=Di=1,Sy=to(Ai=e),wr=0,[]}function AD(e){return Ai="",e}function nf(e){return Cy(Ms(wr-1,rf(e===91?e+2:e===40?e+1:e)))}function RD(e){for(;(Pn=Lo())&&Pn<33;)zr();return Wa(e)>2||Wa(Pn)>3?"":" "}function jD(e,t){for(;--t&&zr()&&!(Pn<48||Pn>102||Pn>57&&Pn<65||Pn>70&&Pn<97););return Ms(e,Ps()+(t<6&&Lo()==32&&zr()==32))}function rf(e){for(;zr();)switch(Pn){case e:return wr;case 34:case 39:e!==34&&e!==39&&rf(Pn);break;case 40:e===41&&rf(e);break;case 92:zr();break}return wr}function LD(e,t){for(;zr()&&e+Pn!==47+10;)if(e+Pn===42+42&&Lo()===47)break;return"/*"+Ms(t,wr-1)+"*"+ef(e===47?e:zr())}function zD(e){for(;!Wa(Lo());)zr();return Ms(e,wr)}function BD(e){return AD(Ds("",null,null,null,[""],e=DD(e),0,[0],e))}function Ds(e,t,n,r,o,i,a,l,c){for(var u=0,d=0,f=a,m=0,p=0,h=0,b=1,v=1,y=1,C=0,x="",E=o,S=i,$=r,O=x;v;)switch(h=C,C=zr()){case 40:if(h!=108&&Pi(O,f-1)==58){_D(O+=Is(nf(C),"&","&\f"),"&\f",yy(u?l[u-1]:0))!=-1&&(y=-1);break}case 34:case 39:case 91:O+=nf(C);break;case 9:case 10:case 13:case 32:O+=RD(h);break;case 92:O+=jD(Ps()-1,7);continue;case 47:switch(Lo()){case 42:case 47:_s(kD(LD(zr(),Ps()),t,n,c),c),(Wa(h||1)==5||Wa(Lo()||1)==5)&&to(O)&&Mi(O,-1,void 0)!==" "&&(O+=" ");break;default:O+="/"}break;case 123*b:l[u++]=to(O)*y;case 125*b:case 59:case 0:switch(C){case 0:case 125:v=0;case 59+d:y==-1&&(O=Is(O,/\f/g,"")),p>0&&(to(O)-f||b===0&&h===47)&&_s(p>32?Ey(O+";",r,n,f-1,c):Ey(Is(O," ","")+";",r,n,f-2,c),c);break;case 59:O+=";";default:if(_s($=xy(O,t,n,u,d,o,l,x,E=[],S=[],f,i),i),C===123)if(d===0)Ds(O,t,$,$,E,i,f,l,S);else{switch(m){case 99:if(Pi(O,3)===110)break;case 108:if(Pi(O,2)===97)break;default:d=0;case 100:case 109:case 115:}d?Ds(e,$,$,r&&_s(xy(e,$,$,0,0,o,l,x,o,E=[],f,S),S),o,S,f,l,r?E:S):Ds(O,$,$,$,[""],S,0,l,S)}}u=d=p=0,b=y=1,x=O="",f=a;break;case 58:f=1+to(O),p=h;default:if(b<1){if(C==123)--b;else if(C==125&&b++==0&&MD()==125)continue}switch(O+=ef(C),C*b){case 38:y=d>0?1:(O+="\f",-1);break;case 44:l[u++]=(to(O)-1)*y,y=1;break;case 64:Lo()===45&&(O+=nf(zr())),m=Lo(),d=f=to(x=O+=zD(Ps())),C++;break;case 45:h===45&&to(O)==2&&(b=0)}}return i}function xy(e,t,n,r,o,i,a,l,c,u,d,f){for(var m=o-1,p=o===0?i:[""],h=TD(p),b=0,v=0,y=0;b<r;++b)for(var C=0,x=Mi(e,m+1,m=yy(v=a[b])),E=e;C<h;++C)(E=Cy(v>0?p[C]+" "+x:Is(x,/&\f/g,p[C])))&&(c[y++]=E);return tf(e,t,n,o===0?hy:l,c,u,d,f)}function kD(e,t,n,r){return tf(e,t,n,gy,ef(PD()),Mi(e,2,-2),0,r)}function Ey(e,t,n,r,o){return tf(e,t,n,by,Mi(e,0,r),Mi(e,r+1,-1),r,o)}function of(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function FD(e,t,n,r){switch(e.type){case ID:if(e.children.length)break;case wD:case OD:case by:return e.return=e.return||e.value;case gy:return"";case ND:return e.return=e.value+"{"+of(e.children,r)+"}";case hy:if(!to(e.value=e.props.join(",")))return""}return to(n=of(e.children,r))?e.return=e.value+"{"+n+"}":""}function $y(e,t){var n=t.path,r=t.parentSelectors;Ge(!1,"[Ant Design CSS-in-JS] ".concat(n?"Error in ".concat(n,": "):"").concat(e).concat(r.length?" Selector: ".concat(r.join(" | ")):""))}var HD=function(t,n,r){if(t==="content"){var o=/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,i=["normal","none","initial","inherit","unset"];(typeof n!="string"||i.indexOf(n)===-1&&!o.test(n)&&(n.charAt(0)!==n.charAt(n.length-1)||n.charAt(0)!=='"'&&n.charAt(0)!=="'"))&&$y("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(n,"\"'`."),r)}},VD=function(t,n,r){t==="animation"&&r.hashId&&n!=="none"&&$y("You seem to be using hashed animation '".concat(n,"', in which case 'animationName' with Keyframe as value is recommended."),r)},wy="data-ant-cssinjs-cache-path",Oy="_FILE_STYLE__",li,Ny=!0;function WD(){if(!li&&(li={},_n())){var e=document.createElement("div");e.className=wy,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 i=o.split(":"),a=ae(i,2),l=a[0],c=a[1];li[l]=c});var n=document.querySelector("style[".concat(wy,"]"));if(n){var r;Ny=!1,(r=n.parentNode)===null||r===void 0||r.removeChild(n)}document.body.removeChild(e)}}function KD(e){return WD(),!!li[e]}function qD(e){var t=li[e],n=null;if(t&&_n())if(Ny)n=Oy;else{var r=document.querySelector("style[".concat(Lr,'="').concat(li[e],'"]'));r?n=r.innerHTML:delete li[e]}return[n,t]}var Iy="_skip_check_",_y="_multi_value_";function As(e){var t=of(BD(e),FD);return t.replace(/\{%%%\:[^;];}/g,";")}function UD(e){return He(e)==="object"&&e&&(Iy in e||_y in e)}function Ty(e,t,n){if(!t)return e;var r=".".concat(t),o=n==="low"?":where(".concat(r,")"):r,i=e.split(",").map(function(a){var l,c=a.trim().split(/\s+/),u=c[0]||"",d=((l=u.match(/^\w+/))===null||l===void 0?void 0:l[0])||"";return u="".concat(d).concat(o).concat(u.slice(d.length)),[u].concat(ge(c.slice(1))).join(" ")});return i.join(",")}var GD=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,i=r.injectHash,a=r.parentSelectors,l=n.hashId,c=n.layer,u=n.path,d=n.hashPriority,f=n.transformers,m=f===void 0?[]:f,p=n.linters,h=p===void 0?[]:p,b="",v={};function y(E){var S=E.getName(l);if(!v[S]){var $=e(E.style,n,{root:!1,parentSelectors:a}),O=ae($,1),I=O[0];v[S]="@keyframes ".concat(E.getName(l)).concat(I)}}function C(E){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return E.forEach(function($){Array.isArray($)?C($,S):$&&S.push($)}),S}var x=C(Array.isArray(t)?t:[t]);return x.forEach(function(E){var S=typeof E=="string"&&!o?{}:E;if(typeof S=="string")b+="".concat(S,`
|
|
108
|
+
`);else if(S._keyframe)y(S);else{var $=m.reduce(function(O,I){var w;return(I==null||(w=I.visit)===null||w===void 0?void 0:w.call(I,O))||O},S);Object.keys($).forEach(function(O){var I=$[O];if(He(I)==="object"&&I&&(O!=="animationName"||!I._keyframe)&&!UD(I)){var w=!1,N=O.trim(),_=!1;(o||i)&&l?N.startsWith("@")?w=!0:N==="&"?N=Ty("",l,d):N=Ty(O,l,d):o&&!l&&(N==="&"||N==="")&&(N="",_=!0);var P=e(I,n,{root:_,injectHash:w,parentSelectors:[].concat(ge(a),[N])}),M=ae(P,2),D=M[0],T=M[1];v=q(q({},v),T),b+="".concat(N).concat(D)}else{let L=function(j,z){process.env.NODE_ENV!=="production"&&(He(I)!=="object"||!(I!=null&&I[Iy]))&&[HD,VD].concat(ge(h)).forEach(function(W){return W(j,z,{path:u,hashId:l,parentSelectors:a})});var B=j.replace(/[A-Z]/g,function(W){return"-".concat(W.toLowerCase())}),K=z;!$D[j]&&typeof K=="number"&&K!==0&&(K="".concat(K,"px")),j==="animationName"&&z!==null&&z!==void 0&&z._keyframe&&(y(z),K=z.getName(l)),b+="".concat(B,":").concat(K,";")};var A,R=(A=I==null?void 0:I.value)!==null&&A!==void 0?A:I;He(I)==="object"&&I!==null&&I!==void 0&&I[_y]&&Array.isArray(R)?R.forEach(function(j){L(O,j)}):L(O,R)}})}}),o?c&&(b&&(b="@layer ".concat(c.name," {").concat(b,"}")),c.dependencies&&(v["@layer ".concat(c.name)]=c.dependencies.map(function(E){return"@layer ".concat(E,", ").concat(c.name,";")}).join(`
|
|
109
|
+
`))):b="{".concat(b,"}"),[b,v]};function Py(e,t){return Fa("".concat(e.join("%")).concat(t))}function XD(){return null}var My="style";function af(e,t){var n=e.token,r=e.path,o=e.hashId,i=e.layer,a=e.nonce,l=e.clientOnly,c=e.order,u=c===void 0?0:c,d=s.useContext(Ha),f=d.autoClear,m=d.mock,p=d.defaultCache,h=d.hashPriority,b=d.container,v=d.ssrInline,y=d.transformers,C=d.linters,x=d.cache,E=d.layer,S=n._tokenKey,$=[S];E&&$.push("layer"),$.push.apply($,ge(r));var O=Qd;process.env.NODE_ENV!=="production"&&m!==void 0&&(O=m==="client");var I=Zd(My,$,function(){var M=$.join("|");if(KD(M)){var D=qD(M),T=ae(D,2),A=T[0],R=T[1];if(A)return[A,S,R,{},l,u]}var L=t(),j=GD(L,{hashId:o,hashPriority:h,layer:E?i:void 0,path:r.join("-"),transformers:y,linters:C}),z=ae(j,2),B=z[0],K=z[1],W=As(B),k=Py($,W);return[W,S,k,K,l,u]},function(M,D){var T=ae(M,3),A=T[2];(D||f)&&Qd&&_a(A,{mark:Lr})},function(M){var D=ae(M,4),T=D[0];D[1];var A=D[2],R=D[3];if(O&&T!==Oy){var L={mark:Lr,prepend:E?!1:"queue",attachTo:b,priority:u},j=typeof a=="function"?a():a;j&&(L.csp={nonce:j});var z=[],B=[];Object.keys(R).forEach(function(W){W.startsWith("@layer")?z.push(W):B.push(W)}),z.forEach(function(W){ho(As(R[W]),"_layer-".concat(W),q(q({},L),{},{prepend:!0}))});var K=ho(T,A,L);K[jo]=x.instanceId,K.setAttribute(Ti,S),process.env.NODE_ENV!=="production"&&K.setAttribute(YM,$.join("|")),B.forEach(function(W){ho(As(R[W]),"_effect-".concat(W),L)})}}),w=ae(I,3),N=w[0],_=w[1],P=w[2];return function(M){var D;if(!v||O||!p)D=s.createElement(XD,null);else{var T;D=s.createElement("style",ce({},(T={},H(T,Ti,_),H(T,Lr,P),T),{dangerouslySetInnerHTML:{__html:N}}))}return s.createElement(s.Fragment,null,D,M)}}var QD=function(t,n,r){var o=ae(t,6),i=o[0],a=o[1],l=o[2],c=o[3],u=o[4],d=o[5],f=r||{},m=f.plain;if(u)return null;var p=i,h={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)};return p=ws(i,a,l,h,m),c&&Object.keys(c).forEach(function(b){if(!n[b]){n[b]=!0;var v=As(c[b]),y=ws(v,a,"_effect-".concat(b),h,m);b.startsWith("@layer")?p=y+p:p+=y}}),[d,l,p]},Dy="cssVar",YD=function(t,n){var r=t.key,o=t.prefix,i=t.unitless,a=t.ignore,l=t.token,c=t.scope,u=c===void 0?"":c,d=g.useContext(Ha),f=d.cache.instanceId,m=d.container,p=l._tokenKey,h=[].concat(ge(t.path),[r,u,p]),b=Zd(Dy,h,function(){var v=n(),y=fy(v,r,{prefix:o,unitless:i,ignore:a,scope:u}),C=ae(y,2),x=C[0],E=C[1],S=Py(h,E);return[x,E,S,r]},function(v){var y=ae(v,3),C=y[2];Qd&&_a(C,{mark:Lr})},function(v){var y=ae(v,3),C=y[1],x=y[2];if(C){var E=ho(C,x,{mark:Lr,prepend:"queue",attachTo:m,priority:-999});E[jo]=f,E.setAttribute(Ti,r)}});return b},JD=function(t,n,r){var o=ae(t,4),i=o[1],a=o[2],l=o[3],c=r||{},u=c.plain;if(!i)return null;var d=-999,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)},m=ws(i,l,a,f,u);return[d,a,m]},Ka;Ka={},H(Ka,My,QD),H(Ka,vy,ED),H(Ka,Dy,JD);var _t=function(){function e(t,n){bn(this,e),H(this,"name",void 0),H(this,"style",void 0),H(this,"_keyframe",!0),this.name=t,this.style=n}return yn(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 Ri(e){return e.notSplit=!0,e}Ri(["borderTop","borderBottom"]),Ri(["borderTop"]),Ri(["borderBottom"]),Ri(["borderLeft","borderRight"]),Ri(["borderLeft"]),Ri(["borderRight"]);function Ay(e){return Jg(e)||ry(e)||dd(e)||Zg()}function or(e,t){for(var n=e,r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]]}return n}function Ry(e,t,n,r){if(!t.length)return n;var o=Ay(t),i=o[0],a=o.slice(1),l;return!e&&typeof i=="number"?l=[]:Array.isArray(e)?l=ge(e):l=q({},e),r&&n===void 0&&a.length===1?delete l[i][a[0]]:l[i]=Ry(l[i],a,n,r),l}function Or(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!or(e,t.slice(0,-1))?e:Ry(e,t,n,r)}function ZD(e){return He(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function jy(e){return Array.isArray(e)?[]:{}}var e4=typeof Reflect=="undefined"?Object.keys:Reflect.ownKeys;function ji(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=jy(t[0]);return t.forEach(function(o){function i(a,l){var c=new Set(l),u=or(o,a),d=Array.isArray(u);if(d||ZD(u)){if(!c.has(u)){c.add(u);var f=or(r,a);d?r=Or(r,a,[]):(!f||He(f)!=="object")&&(r=Or(r,a,jy(u))),e4(u).forEach(function(m){i([].concat(ge(a),[m]),c)})}}else r=Or(r,a,u)}i([])}),r}function Ly(){}let Co=null;function t4(){Co=null,gh()}let lf=Ly;process.env.NODE_ENV!=="production"&&(lf=(e,t,n)=>{Ge(e,`[antd: ${t}] ${n}`),process.env.NODE_ENV==="test"&&t4()});const zy=s.createContext({}),gt=process.env.NODE_ENV!=="production"?e=>{const{strict:t}=s.useContext(zy),n=(r,o,i)=>{if(!r)if(t===!1&&o==="deprecated"){const a=Co;Co||(Co={}),Co[e]=Co[e]||[],Co[e].includes(i||"")||Co[e].push(i||""),a||console.warn("[antd] There exists deprecated usage in your code:",Co)}else process.env.NODE_ENV!=="production"&&lf(r,e,i)};return n.deprecated=(r,o,i,a)=>{n(r,"deprecated",`\`${o}\` is deprecated. Please use \`${i}\` instead.${a?` ${a}`:""}`)},n}:()=>{const e=()=>{};return e.deprecated=Ly,e},zo=lf,By=g.createContext(void 0);var ky={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"},n4={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},r4=q(q({},n4),{},{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 Fy={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Hy={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"]},r4),timePickerLocale:Object.assign({},Fy)},vr="${label} is not a valid ${type}",no={locale:"en",Pagination:ky,DatePicker:Hy,TimePicker:Fy,Calendar:Hy,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:vr,method:vr,array:vr,object:vr,number:vr,date:vr,boolean:vr,integer:vr,float:vr,regexp:vr,email:vr,url:vr,hex:vr},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 Rs=Object.assign({},no.Modal),js=[];const Vy=()=>js.reduce((e,t)=>Object.assign(Object.assign({},e),t),no.Modal);function o4(e){if(e){const t=Object.assign({},e);return js.push(t),Rs=Vy(),()=>{js=js.filter(n=>n!==t),Rs=Vy()}}Rs=Object.assign({},no.Modal)}function Wy(){return Rs}const sf=g.createContext(void 0),ro=(e,t)=>{const n=s.useContext(sf),r=s.useMemo(()=>{var i;const a=t||no[e],l=(i=n==null?void 0:n[e])!==null&&i!==void 0?i:{};return Object.assign(Object.assign({},typeof a=="function"?a():a),l||{})},[e,t,n]),o=s.useMemo(()=>{const i=n==null?void 0:n.locale;return n!=null&&n.exist&&!i?no.locale:i},[n]);return[r,o]},Ky="internalMark",qy=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;if(process.env.NODE_ENV!=="production"){const i=gt("LocaleProvider");process.env.NODE_ENV!=="production"&&i(r===Ky,"deprecated","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale")}s.useEffect(()=>o4(t==null?void 0:t.Modal),[t]);const o=s.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return s.createElement(sf.Provider,{value:o},n)};process.env.NODE_ENV!=="production"&&(qy.displayName="LocaleProvider");const i4=qy,Uy={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"},qa=Object.assign(Object.assign({},Uy),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
|
110
|
+
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
|
111
|
+
'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0});function a4(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=t;const{colorSuccess:o,colorWarning:i,colorError:a,colorInfo:l,colorPrimary:c,colorBgBase:u,colorTextBase:d}=e,f=n(c),m=n(o),p=n(i),h=n(a),b=n(l),v=r(u,d),y=e.colorLink||e.colorInfo,C=n(y),x=new kt(h[1]).mix(new kt(h[3]),50).toHexString();return Object.assign(Object.assign({},v),{colorPrimaryBg:f[1],colorPrimaryBgHover:f[2],colorPrimaryBorder:f[3],colorPrimaryBorderHover:f[4],colorPrimaryHover:f[5],colorPrimary:f[6],colorPrimaryActive:f[7],colorPrimaryTextHover:f[8],colorPrimaryText:f[9],colorPrimaryTextActive:f[10],colorSuccessBg:m[1],colorSuccessBgHover:m[2],colorSuccessBorder:m[3],colorSuccessBorderHover:m[4],colorSuccessHover:m[4],colorSuccess:m[6],colorSuccessActive:m[7],colorSuccessTextHover:m[8],colorSuccessText:m[9],colorSuccessTextActive:m[10],colorErrorBg:h[1],colorErrorBgHover:h[2],colorErrorBgFilledHover:x,colorErrorBgActive:h[3],colorErrorBorder:h[3],colorErrorBorderHover:h[4],colorErrorHover:h[5],colorError:h[6],colorErrorActive:h[7],colorErrorTextHover:h[8],colorErrorText:h[9],colorErrorTextActive:h[10],colorWarningBg:p[1],colorWarningBgHover:p[2],colorWarningBorder:p[3],colorWarningBorderHover:p[4],colorWarningHover:p[4],colorWarning:p[6],colorWarningActive:p[7],colorWarningTextHover:p[8],colorWarningText:p[9],colorWarningTextActive:p[10],colorInfoBg:b[1],colorInfoBgHover:b[2],colorInfoBorder:b[3],colorInfoBorderHover:b[4],colorInfoHover:b[4],colorInfo:b[6],colorInfoActive:b[7],colorInfoTextHover:b[8],colorInfoText:b[9],colorInfoTextActive:b[10],colorLinkHover:C[4],colorLink:C[6],colorLinkActive:C[7],colorBgMask:new kt("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}const l4=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 s4(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},l4(r))}const c4=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function Ls(e){return(e+8)/e}function u4(e){const t=Array.from({length:10}).map((n,r)=>{const o=r-1,i=e*Math.pow(Math.E,o/5),a=r>1?Math.floor(i):Math.ceil(i);return Math.floor(a/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:Ls(n)}))}const d4=e=>{const t=u4(e),n=t.map(d=>d.size),r=t.map(d=>d.lineHeight),o=n[1],i=n[0],a=n[2],l=r[1],c=r[0],u=r[2];return{fontSizeSM:i,fontSize:o,fontSizeLG:a,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:l,lineHeightLG:u,lineHeightSM:c,fontHeight:Math.round(l*o),fontHeightLG:Math.round(u*a),fontHeightSM:Math.round(c*i),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function f4(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 Nr=(e,t)=>new kt(e).setA(t).toRgbString(),Ua=(e,t)=>new kt(e).darken(t).toHexString(),m4=e=>{const t=Ia(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]}},p4=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:Nr(r,.88),colorTextSecondary:Nr(r,.65),colorTextTertiary:Nr(r,.45),colorTextQuaternary:Nr(r,.25),colorFill:Nr(r,.15),colorFillSecondary:Nr(r,.06),colorFillTertiary:Nr(r,.04),colorFillQuaternary:Nr(r,.02),colorBgSolid:Nr(r,1),colorBgSolidHover:Nr(r,.75),colorBgSolidActive:Nr(r,.95),colorBgLayout:Ua(n,4),colorBgContainer:Ua(n,0),colorBgElevated:Ua(n,0),colorBgSpotlight:Nr(r,.85),colorBgBlur:"transparent",colorBorder:Ua(n,15),colorBorderSecondary:Ua(n,6)}};function v4(e){Ni.pink=Ni.magenta,$d.pink=$d.magenta;const t=Object.keys(Uy).map(n=>{const r=e[n]===Ni[n]?$d[n]:Ia(e[n]);return Array.from({length:10},()=>1).reduce((o,i,a)=>(o[`${n}-${a+1}`]=r[a],o[`${n}${a+1}`]=r[a],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),a4(e,{generateColorPalettes:m4,generateNeutralColorPalettes:p4})),d4(e.fontSize)),f4(e)),c4(e)),s4(e))}const Gy=Gd(v4),cf={token:qa,override:{override:qa},hashed:!0},Xy=g.createContext(cf),Ga="ant",zs="anticon",g4=["outlined","borderless","filled","underlined"],h4=(e,t)=>t||(e?`${Ga}-${e}`:Ga),Xe=s.createContext({getPrefixCls:h4,iconPrefixCls:zs}),Qy={};function An(e){const t=s.useContext(Xe),{getPrefixCls:n,direction:r,getPopupContainer:o}=t,i=t[e];return Object.assign(Object.assign({classNames:Qy,styles:Qy},i),{getPrefixCls:n,direction:r,getPopupContainer:o})}const b4=`-ant-${Date.now()}-${Math.random()}`;function y4(e,t){const n={},r=(a,l)=>{let c=a.clone();return c=(l==null?void 0:l(c))||c,c.toRgbString()},o=(a,l)=>{const c=new kt(a),u=Ia(c.toRgbString());n[`${l}-color`]=r(c),n[`${l}-color-disabled`]=u[1],n[`${l}-color-hover`]=u[4],n[`${l}-color-active`]=u[6],n[`${l}-color-outline`]=c.clone().setA(.2).toRgbString(),n[`${l}-color-deprecated-bg`]=u[0],n[`${l}-color-deprecated-border`]=u[2]};if(t.primaryColor){o(t.primaryColor,"primary");const a=new kt(t.primaryColor),l=Ia(a.toRgbString());l.forEach((u,d)=>{n[`primary-${d+1}`]=u}),n["primary-color-deprecated-l-35"]=r(a,u=>u.lighten(35)),n["primary-color-deprecated-l-20"]=r(a,u=>u.lighten(20)),n["primary-color-deprecated-t-20"]=r(a,u=>u.tint(20)),n["primary-color-deprecated-t-50"]=r(a,u=>u.tint(50)),n["primary-color-deprecated-f-12"]=r(a,u=>u.setA(u.a*.12));const c=new kt(l[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"),`
|
|
112
|
+
:root {
|
|
113
|
+
${Object.keys(n).map(a=>`--${e}-${a}: ${n[a]};`).join(`
|
|
114
|
+
`)}
|
|
115
|
+
}
|
|
116
|
+
`.trim()}function C4(e,t){const n=y4(e,t);_n()?ho(n,`${b4}-dynamic-theme`):process.env.NODE_ENV!=="production"&&zo(!1,"ConfigProvider","SSR do not support dynamic theme with css variables.")}const uf=s.createContext(!1),df=e=>{let{children:t,disabled:n}=e;const r=s.useContext(uf);return s.createElement(uf.Provider,{value:n!=null?n:r},t)},oo=uf,ff=s.createContext(void 0),S4=e=>{let{children:t,size:n}=e;const r=s.useContext(ff);return s.createElement(ff.Provider,{value:n||r},t)},Xa=ff;function x4(){const e=g.useContext(oo),t=g.useContext(Xa);return{componentDisabled:e,componentSize:t}}var Yy=yn(function e(){bn(this,e)}),Jy="CALC_UNIT",E4=new RegExp(Jy,"g");function mf(e){return typeof e=="number"?"".concat(e).concat(Jy):e}var $4=function(e){jr(n,e);var t=Zr(n);function n(r,o){var i;bn(this,n),i=t.call(this),H(qe(i),"result",""),H(qe(i),"unitlessCssVar",void 0),H(qe(i),"lowPriority",void 0);var a=He(r);return i.unitlessCssVar=o,r instanceof n?i.result="(".concat(r.result,")"):a==="number"?i.result=mf(r):a==="string"&&(i.result=r),i}return yn(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(mf(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(mf(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 i=this,a=o||{},l=a.unit,c=!0;return typeof l=="boolean"?c=l:Array.from(this.unitlessCssVar).some(function(u){return i.result.includes(u)})&&(c=!1),this.result=this.result.replace(E4,c?"px":""),typeof this.lowPriority!="undefined"?"calc(".concat(this.result,")"):this.result}}]),n}(Yy),w4=function(e){jr(n,e);var t=Zr(n);function n(r){var o;return bn(this,n),o=t.call(this),H(qe(o),"result",0),r instanceof n?o.result=r.result:typeof r=="number"&&(o.result=r),o}return yn(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}(Yy),O4=function(t,n){var r=t==="css"?$4:w4;return function(o){return new r(o,n)}},Zy=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 qt(e){var t=s.useRef();t.current=e;var n=s.useCallback(function(){for(var r,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(i))},[]);return n}function si(e){var t=s.useRef(!1),n=s.useState(e),r=ae(n,2),o=r[0],i=r[1];s.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function a(l,c){c&&t.current||i(l)}return[o,a]}function pf(e){return e!==void 0}function ln(e,t){var n=t||{},r=n.defaultValue,o=n.value,i=n.onChange,a=n.postState,l=si(function(){return pf(o)?o:pf(r)?typeof r=="function"?r():r:typeof e=="function"?e():e}),c=ae(l,2),u=c[0],d=c[1],f=o!==void 0?o:u,m=a?a(f):f,p=qt(i),h=si([f]),b=ae(h,2),v=b[0],y=b[1];Yd(function(){var x=v[0];u!==x&&p(u,x)},[v]),Yd(function(){pf(o)||d(o)},[o]);var C=qt(function(x,E){d(x,E),y([f],E)});return[m,C]}function e0(e,t,n,r){var o=q({},t[e]);if(r!=null&&r.deprecatedTokens){var i=r.deprecatedTokens;i.forEach(function(l){var c=ae(l,2),u=c[0],d=c[1];if(process.env.NODE_ENV!=="production"&&Ge(!(o!=null&&o[u]),"Component Token `".concat(String(u),"` of ").concat(String(e)," is deprecated. Please use `").concat(String(d),"` instead.")),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 a=q(q({},n),o);return Object.keys(a).forEach(function(l){a[l]===t[l]&&delete a[l]}),a}var t0=process.env.NODE_ENV!=="production"||typeof CSSINJS_STATISTIC!="undefined",vf=!0;function xt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!t0)return Object.assign.apply(Object,[{}].concat(t));vf=!1;var r={};return t.forEach(function(o){if(He(o)==="object"){var i=Object.keys(o);i.forEach(function(a){Object.defineProperty(r,a,{configurable:!0,enumerable:!0,get:function(){return o[a]}})})}}),vf=!0,r}var n0={};function N4(){}var I4=function(t){var n,r=t,o=N4;return t0&&typeof Proxy!="undefined"&&(n=new Set,r=new Proxy(t,{get:function(a,l){if(vf){var c;(c=n)===null||c===void 0||c.add(l)}return a[l]}}),o=function(a,l){var c;n0[a]={global:Array.from(n),component:q(q({},(c=n0[a])===null||c===void 0?void 0:c.component),l)}}),{token:r,keys:n,flush:o}};function r0(e,t,n){if(typeof n=="function"){var r;return n(xt(t,(r=t[e])!==null&&r!==void 0?r:{}))}return n!=null?n:{}}function _4(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(i){return U(i)}).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(i){return U(i)}).join(","),")")}}}var T4=1e3*60*10,P4=function(){function e(){bn(this,e),H(this,"map",new Map),H(this,"objectIDMap",new WeakMap),H(this,"nextID",0),H(this,"lastAccessBeat",new Map),H(this,"accessBeat",0)}return yn(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(i){return i&&He(i)==="object"?"obj_".concat(r.getObjectID(i)):"".concat(He(i),"_").concat(i)});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,i){r-o>T4&&(n.map.delete(i),n.lastAccessBeat.delete(i))}),this.accessBeat=0}}}]),e}(),o0=new P4;function M4(e,t){return g.useMemo(function(){var n=o0.get(t);if(n)return n;var r=e();return o0.set(t,r),r},t)}var D4=function(){return{}};function A4(e){var t=e.useCSP,n=t===void 0?D4:t,r=e.useToken,o=e.usePrefix,i=e.getResetStyles,a=e.getCommonStyle,l=e.getCompUnitless;function c(m,p,h,b){var v=Array.isArray(m)?m[0]:m;function y(I){return"".concat(String(v)).concat(I.slice(0,1).toUpperCase()).concat(I.slice(1))}var C=(b==null?void 0:b.unitless)||{},x=typeof l=="function"?l(m):{},E=q(q({},x),{},H({},y("zIndexPopup"),!0));Object.keys(C).forEach(function(I){E[y(I)]=C[I]});var S=q(q({},b),{},{unitless:E,prefixToken:y}),$=d(m,p,h,S),O=u(v,h,S);return function(I){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:I,N=$(I,w),_=ae(N,2),P=_[1],M=O(w),D=ae(M,2),T=D[0],A=D[1];return[T,P,A]}}function u(m,p,h){var b=h.unitless,v=h.injectStyle,y=v===void 0?!0:v,C=h.prefixToken,x=h.ignore,E=function(O){var I=O.rootCls,w=O.cssVar,N=w===void 0?{}:w,_=r(),P=_.realToken;return YD({path:[m],prefix:N.prefix,key:N.key,unitless:b,ignore:x,token:P,scope:I},function(){var M=r0(m,P,p),D=e0(m,P,M,{deprecatedTokens:h==null?void 0:h.deprecatedTokens});return Object.keys(M).forEach(function(T){D[C(T)]=D[T],delete D[T]}),D}),null},S=function(O){var I=r(),w=I.cssVar;return[function(N){return y&&w?g.createElement(g.Fragment,null,g.createElement(E,{rootCls:O,cssVar:w,component:m}),N):N},w==null?void 0:w.key]};return S}function d(m,p,h){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},v=Array.isArray(m)?m:[m,m],y=ae(v,1),C=y[0],x=v.join("-"),E=e.layer||{name:"antd"};return function(S){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:S,O=r(),I=O.theme,w=O.realToken,N=O.hashId,_=O.token,P=O.cssVar,M=o(),D=M.rootPrefixCls,T=M.iconPrefixCls,A=n(),R=P?"css":"js",L=M4(function(){var k=new Set;return P&&Object.keys(b.unitless||{}).forEach(function(V){k.add(Os(V,P.prefix)),k.add(Os(V,Zy(C,P.prefix)))}),O4(R,k)},[R,C,P==null?void 0:P.prefix]),j=_4(R),z=j.max,B=j.min,K={theme:I,token:_,hashId:N,nonce:function(){return A.nonce},clientOnly:b.clientOnly,layer:E,order:b.order||-999};typeof i=="function"&&af(q(q({},K),{},{clientOnly:!1,path:["Shared",D]}),function(){return i(_,{prefix:{rootPrefixCls:D,iconPrefixCls:T},csp:A})});var W=af(q(q({},K),{},{path:[x,S,T]}),function(){if(b.injectStyle===!1)return[];var k=I4(_),V=k.token,Q=k.flush,J=r0(C,w,h),Y=".".concat(S),te=e0(C,w,J,{deprecatedTokens:b.deprecatedTokens});P&&J&&He(J)==="object"&&Object.keys(J).forEach(function(ee){J[ee]="var(".concat(Os(ee,Zy(C,P.prefix)),")")});var oe=xt(V,{componentCls:Y,prefixCls:S,iconCls:".".concat(T),antCls:".".concat(D),calc:L,max:z,min:B},P?J:te),X=p(oe,{hashId:N,prefixCls:S,rootPrefixCls:D,iconPrefixCls:T});Q(C,te);var F=typeof a=="function"?a(oe,S,$,b.resetFont):null;return[b.resetStyle===!1?null:F,X]});return[W,N]}}function f(m,p,h){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},v=d(m,p,h,q({resetStyle:!1,order:-998},b)),y=function(x){var E=x.prefixCls,S=x.rootCls,$=S===void 0?E:S;return v(E,$),null};return process.env.NODE_ENV!=="production"&&(y.displayName="SubStyle_".concat(String(Array.isArray(m)?m.join("."):m))),y}return{genStyleHooks:c,genSubStyleComponent:f,genComponentStyleHook:d}}const Bo=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],R4="5.25.1";function gf(e){return e>=0&&e<=255}function Qa(e,t){const{r:n,g:r,b:o,a:i}=new kt(e).toRgb();if(i<1)return e;const{r:a,g:l,b:c}=new kt(t).toRgb();for(let u=.01;u<=1;u+=.01){const d=Math.round((n-a*(1-u))/u),f=Math.round((r-l*(1-u))/u),m=Math.round((o-c*(1-u))/u);if(gf(d)&&gf(f)&&gf(m))return new kt({r:d,g:f,b:m,a:Math.round(u*100)/100}).toRgbString()}return new kt({r:n,g:r,b:o,a:1}).toRgbString()}var j4=globalThis&&globalThis.__rest||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 i0(e){const{override:t}=e,n=j4(e,["override"]),r=Object.assign({},t);Object.keys(qa).forEach(m=>{delete r[m]});const o=Object.assign(Object.assign({},n),r),i=480,a=576,l=768,c=992,u=1200,d=1600;if(o.motion===!1){const m="0s";o.motionDurationFast=m,o.motionDurationMid=m,o.motionDurationSlow=m}return Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:Qa(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:Qa(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:Qa(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:Qa(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:`
|
|
117
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
118
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
119
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
120
|
+
`,boxShadowSecondary:`
|
|
121
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
122
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
123
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
124
|
+
`,boxShadowTertiary:`
|
|
125
|
+
0 1px 2px 0 rgba(0, 0, 0, 0.03),
|
|
126
|
+
0 1px 6px -1px rgba(0, 0, 0, 0.02),
|
|
127
|
+
0 2px 4px 0 rgba(0, 0, 0, 0.02)
|
|
128
|
+
`,screenXS:i,screenXSMin:i,screenXSMax:a-1,screenSM:a,screenSMMin:a,screenSMMax:l-1,screenMD:l,screenMDMin:l,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:`
|
|
129
|
+
0 1px 2px -2px ${new kt("rgba(0, 0, 0, 0.16)").toRgbString()},
|
|
130
|
+
0 3px 6px 0 ${new kt("rgba(0, 0, 0, 0.12)").toRgbString()},
|
|
131
|
+
0 5px 12px 4px ${new kt("rgba(0, 0, 0, 0.09)").toRgbString()}
|
|
132
|
+
`,boxShadowDrawerRight:`
|
|
133
|
+
-6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
134
|
+
-3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
135
|
+
-9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
136
|
+
`,boxShadowDrawerLeft:`
|
|
137
|
+
6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
138
|
+
3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
139
|
+
9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
140
|
+
`,boxShadowDrawerUp:`
|
|
141
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
142
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
143
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
144
|
+
`,boxShadowDrawerDown:`
|
|
145
|
+
0 -6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
146
|
+
0 -3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
147
|
+
0 -9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
148
|
+
`,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 a0=globalThis&&globalThis.__rest||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 l0={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},L4={size:!0,sizeSM:!0,sizeLG:!0,sizeMD:!0,sizeXS:!0,sizeXXS:!0,sizeMS:!0,sizeXL:!0,sizeXXL:!0,sizeUnit:!0,sizeStep:!0,motionBase:!0,motionUnit:!0},z4={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},s0=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o}=t,i=a0(t,["override"]);let a=Object.assign(Object.assign({},r),{override:o});return a=i0(a),i&&Object.entries(i).forEach(l=>{let[c,u]=l;const{theme:d}=u,f=a0(u,["theme"]);let m=f;d&&(m=s0(Object.assign(Object.assign({},a),f),{override:f},d)),a[c]=m}),a};function Hn(){const{token:e,hashed:t,theme:n,override:r,cssVar:o}=g.useContext(Xy),i=`${R4}-${t||""}`,a=n||Gy,[l,c,u]=xD(a,[qa,e],{salt:i,override:r,getComputedToken:s0,formatToken:i0,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:l0,ignore:L4,preserve:z4}});return[a,u,t?c:"",l,o]}const So={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Ht=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}},Ya=()=>({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"}}),xo=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),B4=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"}}}),k4=(e,t,n,r)=>{const o=`[class^="${t}"], [class*=" ${t}"]`,i=n?`.${n}`:o,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let l={};return r!==!1&&(l={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[i]:Object.assign(Object.assign(Object.assign({},l),a),{[o]:a})}},Br=(e,t)=>({outline:`${U(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t!=null?t:1,transition:"outline-offset 0s, outline 0s"}),Ir=(e,t)=>({"&:focus-visible":Object.assign({},Br(e,t))}),c0=e=>({[`.${e}`]:Object.assign(Object.assign({},Ya()),{[`.${e} .${e}-icon`]:{display:"block"}})}),hf=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"},Ir(e)),{"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),{genStyleHooks:Dt,genComponentStyleHook:F4,genSubStyleComponent:Li}=A4({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=g.useContext(Xe);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,o]=Hn();return{theme:e,realToken:t,hashId:n,token:r,cssVar:o}},useCSP:()=>{const{csp:e}=g.useContext(Xe);return e!=null?e:{}},getResetStyles:(e,t)=>{var n;const r=B4(e);return[r,{"&":r},c0((n=t==null?void 0:t.prefix.iconPrefixCls)!==null&&n!==void 0?n:zs)]},getCommonStyle:k4,getCompUnitless:()=>l0});function u0(e,t){return Bo.reduce((n,r)=>{const o=e[`${r}1`],i=e[`${r}3`],a=e[`${r}6`],l=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:i,darkColor:a,textColor:l}))},{})}const H4=(e,t)=>{const[n,r]=Hn();return af({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>[c0(e)])},V4=Object.assign({},s),{useId:d0}=V4,W4=typeof d0=="undefined"?()=>"":d0;function K4(e,t,n){var r,o;const i=gt("ConfigProvider"),a=e||{},l=a.inherit===!1||!t?Object.assign(Object.assign({},cf),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:cf.hashed,cssVar:t==null?void 0:t.cssVar}):t,c=W4();if(process.env.NODE_ENV!=="production"){const u=a.cssVar||l.cssVar,d=!!(typeof a.cssVar=="object"&&(!((o=a.cssVar)===null||o===void 0)&&o.key)||c);process.env.NODE_ENV!=="production"&&i(!u||d,"breaking","Missing key in `cssVar` config. Please upgrade to React 18 or set `cssVar.key` manually in each ConfigProvider inside `cssVar` enabled ConfigProvider.")}return ni(()=>{var u,d;if(!e)return t;const f=Object.assign({},l.components);Object.keys(e.components||{}).forEach(h=>{f[h]=Object.assign(Object.assign({},f[h]),e.components[h])});const m=`css-var-${c.replace(/:/g,"")}`,p=((u=a.cssVar)!==null&&u!==void 0?u:l.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:n==null?void 0:n.prefixCls},typeof l.cssVar=="object"?l.cssVar:{}),typeof a.cssVar=="object"?a.cssVar:{}),{key:typeof a.cssVar=="object"&&((d=a.cssVar)===null||d===void 0?void 0:d.key)||m});return Object.assign(Object.assign(Object.assign({},l),a),{token:Object.assign(Object.assign({},l.token),a.token),components:f,cssVar:p})},[a,l],(u,d)=>u.some((f,m)=>{const p=d[m];return!eo(f,p,!0)}))}var q4=["children"],f0=s.createContext({});function U4(e){var t=e.children,n=tt(e,q4);return s.createElement(f0.Provider,{value:n},t)}var G4=function(e){jr(n,e);var t=Zr(n);function n(){return bn(this,n),t.apply(this,arguments)}return yn(n,[{key:"render",value:function(){return this.props.children}}]),n}(s.Component);function X4(e){var t=s.useReducer(function(l){return l+1},0),n=ae(t,2),r=n[1],o=s.useRef(e),i=qt(function(){return o.current}),a=qt(function(l){o.current=typeof l=="function"?l(o.current):l,r()});return[i,a]}var ko="none",Bs="appear",ks="enter",Fs="leave",m0="none",kr="prepare",zi="start",Bi="active",bf="end",p0="prepared";function v0(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 Q4(e,t){var n={animationend:v0("Animation","AnimationEnd"),transitionend:v0("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var Y4=Q4(_n(),typeof window!="undefined"?window:{}),g0={};if(_n()){var J4=document.createElement("div");g0=J4.style}var Hs={};function h0(e){if(Hs[e])return Hs[e];var t=Y4[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var i=n[o];if(Object.prototype.hasOwnProperty.call(t,i)&&i in g0)return Hs[e]=t[i],Hs[e]}return""}var b0=h0("animationend"),y0=h0("transitionend"),C0=!!(b0&&y0),S0=b0||"animationend",x0=y0||"transitionend";function E0(e,t){if(!e)return null;if(He(e)==="object"){var n=t.replace(/-\w/g,function(r){return r[1].toUpperCase()});return e[n]}return"".concat(e,"-").concat(t)}const Z4=function(e){var t=g.useRef();function n(o){o&&(o.removeEventListener(x0,e),o.removeEventListener(S0,e))}function r(o){t.current&&t.current!==o&&n(t.current),o&&o!==t.current&&(o.addEventListener(x0,e),o.addEventListener(S0,e),t.current=o)}return s.useEffect(function(){return function(){n(t.current)}},[]),[r,n]};var $0=_n()?g.useLayoutEffect:g.useEffect;const eA=function(){var e=s.useRef(null);function t(){Rt.cancel(e.current)}function n(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var i=Rt(function(){o<=1?r({isCanceled:function(){return i!==e.current}}):n(r,o-1)});e.current=i}return s.useEffect(function(){return function(){t()}},[]),[n,t]};var tA=[kr,zi,Bi,bf],nA=[kr,p0],w0=!1,rA=!0;function O0(e){return e===Bi||e===bf}const oA=function(e,t,n){var r=si(m0),o=ae(r,2),i=o[0],a=o[1],l=eA(),c=ae(l,2),u=c[0],d=c[1];function f(){a(kr,!0)}var m=t?nA:tA;return $0(function(){if(i!==m0&&i!==bf){var p=m.indexOf(i),h=m[p+1],b=n(i);b===w0?a(h,!0):h&&u(function(v){function y(){v.isCanceled()||a(h,!0)}b===!0?y():Promise.resolve(b).then(y)})}},[e,i]),s.useEffect(function(){return function(){d()}},[]),[f,i]};function iA(e,t,n,r){var o=r.motionEnter,i=o===void 0?!0:o,a=r.motionAppear,l=a===void 0?!0:a,c=r.motionLeave,u=c===void 0?!0:c,d=r.motionDeadline,f=r.motionLeaveImmediately,m=r.onAppearPrepare,p=r.onEnterPrepare,h=r.onLeavePrepare,b=r.onAppearStart,v=r.onEnterStart,y=r.onLeaveStart,C=r.onAppearActive,x=r.onEnterActive,E=r.onLeaveActive,S=r.onAppearEnd,$=r.onEnterEnd,O=r.onLeaveEnd,I=r.onVisibleChanged,w=si(),N=ae(w,2),_=N[0],P=N[1],M=X4(ko),D=ae(M,2),T=D[0],A=D[1],R=si(null),L=ae(R,2),j=L[0],z=L[1],B=T(),K=g.useRef(!1),W=g.useRef(null);function k(){return n()}var V=g.useRef(!1);function Q(){A(ko),z(null,!0)}var J=qt(function(ie){var ue=T();if(ue!==ko){var de=k();if(!(ie&&!ie.deadline&&ie.target!==de)){var me=V.current,Ce;ue===Bs&&me?Ce=S==null?void 0:S(de,ie):ue===ks&&me?Ce=$==null?void 0:$(de,ie):ue===Fs&&me&&(Ce=O==null?void 0:O(de,ie)),me&&Ce!==!1&&Q()}}}),Y=Z4(J),te=ae(Y,1),oe=te[0],X=function(ue){switch(ue){case Bs:return H(H(H({},kr,m),zi,b),Bi,C);case ks:return H(H(H({},kr,p),zi,v),Bi,x);case Fs:return H(H(H({},kr,h),zi,y),Bi,E);default:return{}}},F=s.useMemo(function(){return X(B)},[B]),ee=oA(B,!e,function(ie){if(ie===kr){var ue=F[kr];return ue?ue(k()):w0}if(re in F){var de;z(((de=F[re])===null||de===void 0?void 0:de.call(F,k(),null))||null)}return re===Bi&&B!==ko&&(oe(k()),d>0&&(clearTimeout(W.current),W.current=setTimeout(function(){J({deadline:!0})},d))),re===p0&&Q(),rA}),Z=ae(ee,2),ne=Z[0],re=Z[1],se=O0(re);V.current=se;var le=g.useRef(null);$0(function(){if(!(K.current&&le.current===t)){P(t);var ie=K.current;K.current=!0;var ue;!ie&&t&&l&&(ue=Bs),ie&&t&&i&&(ue=ks),(ie&&!t&&u||!ie&&f&&!t&&u)&&(ue=Fs);var de=X(ue);ue&&(e||de[kr])?(A(ue),ne()):A(ko),le.current=t}},[t]),g.useEffect(function(){(B===Bs&&!l||B===ks&&!i||B===Fs&&!u)&&A(ko)},[l,i,u]),g.useEffect(function(){return function(){K.current=!1,clearTimeout(W.current)}},[]);var he=s.useRef(!1);g.useEffect(function(){_&&(he.current=!0),_!==void 0&&B===ko&&((he.current||_)&&(I==null||I(_)),he.current=!0)},[_,B]);var fe=j;return F[kr]&&re===zi&&(fe=q({transition:"none"},fe)),[B,re,fe,_!=null?_:t]}function aA(e){var t=e;He(e)==="object"&&(t=e.transitionSupport);function n(o,i){return!!(o.motionName&&t&&i!==!1)}var r=s.forwardRef(function(o,i){var a=o.visible,l=a===void 0?!0:a,c=o.removeOnLeave,u=c===void 0?!0:c,d=o.forceRender,f=o.children,m=o.motionName,p=o.leavedClassName,h=o.eventProps,b=s.useContext(f0),v=b.motion,y=n(o,v),C=g.useRef(),x=g.useRef();function E(){try{return C.current instanceof HTMLElement?C.current:ys(x.current)}catch(L){return null}}var S=iA(y,l,E,o),$=ae(S,4),O=$[0],I=$[1],w=$[2],N=$[3],_=s.useRef(N);N&&(_.current=!0);var P=s.useCallback(function(L){C.current=L,ja(i,L)},[i]),M,D=q(q({},h),{},{visible:l});if(!f)M=null;else if(O===ko)N?M=f(q({},D),P):!u&&_.current&&p?M=f(q(q({},D),{},{className:p}),P):d||!u&&!p?M=f(q(q({},D),{},{style:{display:"none"}}),P):M=null;else{var T;I===kr?T="prepare":O0(I)?T="active":I===zi&&(T="start");var A=E0(m,"".concat(O,"-").concat(T));M=f(q(q({},D),{},{className:G(E0(m,O),H(H({},A,A&&T),m,typeof m=="string")),style:w}),P)}if(s.isValidElement(M)&&Rr(M)){var R=Ao(M);R||(M=s.cloneElement(M,{ref:P}))}return s.createElement(G4,{ref:x},M)});return r.displayName="CSSMotion",r}const cr=aA(C0);var yf="add",Cf="keep",Sf="remove",xf="removed";function lA(e){var t;return e&&He(e)==="object"&&"key"in e?t=e:t={key:e},q(q({},t),{},{key:String(t.key)})}function Ef(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(lA)}function sA(){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,i=Ef(e),a=Ef(t);i.forEach(function(u){for(var d=!1,f=r;f<o;f+=1){var m=a[f];if(m.key===u.key){r<f&&(n=n.concat(a.slice(r,f).map(function(p){return q(q({},p),{},{status:yf})})),r=f),n.push(q(q({},m),{},{status:Cf})),r+=1,d=!0;break}}d||n.push(q(q({},u),{},{status:Sf}))}),r<o&&(n=n.concat(a.slice(r).map(function(u){return q(q({},u),{},{status:yf})})));var l={};n.forEach(function(u){var d=u.key;l[d]=(l[d]||0)+1});var c=Object.keys(l).filter(function(u){return l[u]>1});return c.forEach(function(u){n=n.filter(function(d){var f=d.key,m=d.status;return f!==u||m!==Sf}),n.forEach(function(d){d.key===u&&(d.status=Cf)})}),n}var cA=["component","children","onVisibleChanged","onAllRemoved"],uA=["status"],dA=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function fA(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:cr,n=function(r){jr(i,r);var o=Zr(i);function i(){var a;bn(this,i);for(var l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];return a=o.call.apply(o,[this].concat(c)),H(qe(a),"state",{keyEntities:[]}),H(qe(a),"removeKey",function(d){a.setState(function(f){var m=f.keyEntities.map(function(p){return p.key!==d?p:q(q({},p),{},{status:xf})});return{keyEntities:m}},function(){var f=a.state.keyEntities,m=f.filter(function(p){var h=p.status;return h!==xf}).length;m===0&&a.props.onAllRemoved&&a.props.onAllRemoved()})}),a}return yn(i,[{key:"render",value:function(){var l=this,c=this.state.keyEntities,u=this.props,d=u.component,f=u.children,m=u.onVisibleChanged;u.onAllRemoved;var p=tt(u,cA),h=d||s.Fragment,b={};return dA.forEach(function(v){b[v]=p[v],delete p[v]}),delete p.keys,s.createElement(h,p,c.map(function(v,y){var C=v.status,x=tt(v,uA),E=C===yf||C===Cf;return s.createElement(t,ce({},b,{key:x.key,visible:E,eventProps:x,onVisibleChanged:function($){m==null||m($,{key:x.key}),$||l.removeKey(x.key)}}),function(S,$){return f(q(q({},S),{},{index:y}),$)})}))}}],[{key:"getDerivedStateFromProps",value:function(l,c){var u=l.keys,d=c.keyEntities,f=Ef(u),m=sA(d,f);return{keyEntities:m.filter(function(p){var h=d.find(function(b){var v=b.key;return p.key===v});return!(h&&h.status===xf&&p.status===Sf)})}}}]),i}(s.Component);return H(n,"defaultProps",{component:"div"}),n}const N0=fA(C0);function mA(e){const{children:t}=e,[,n]=Hn(),{motion:r}=n,o=s.useRef(!1);return o.current=o.current||r===!1,o.current?s.createElement(U4,{motion:r},t):t}const I0=s.memo(e=>{let{dropdownMatchSelectWidth:t}=e;return gt("ConfigProvider").deprecated(t===void 0,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null});process.env.NODE_ENV!=="production"&&(I0.displayName="PropWarning");const pA=process.env.NODE_ENV!=="production"?I0:()=>null;var vA=globalThis&&globalThis.__rest||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 $f=!1;const _0=process.env.NODE_ENV!=="production"?e=>{process.env.NODE_ENV!=="production"&&zo(!$f,e,"Static function can not consume context like dynamic theme. Please use 'App' component instead.")}:null,gA=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let Vs,T0,P0,M0;function Ws(){return Vs||Ga}function hA(){return T0||zs}function bA(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const yA=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:o}=e;t!==void 0&&(Vs=t),n!==void 0&&(T0=n),"holderRender"in e&&(M0=o),r&&(bA(r)?(process.env.NODE_ENV!=="production"&&zo(!1,"ConfigProvider","`config` of css variable theme is not work in v5. Please use new `theme` config instead."),C4(Ws(),r)):P0=r)},wf=()=>({getPrefixCls:(e,t)=>t||(e?`${Ws()}-${e}`:Ws()),getIconPrefixCls:hA,getRootPrefixCls:()=>Vs||Ws(),getTheme:()=>P0,holderRender:M0}),CA=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:o,anchor:i,form:a,locale:l,componentSize:c,direction:u,space:d,splitter:f,virtual:m,dropdownMatchSelectWidth:p,popupMatchSelectWidth:h,popupOverflow:b,legacyLocale:v,parentContext:y,iconPrefixCls:C,theme:x,componentDisabled:E,segmented:S,statistic:$,spin:O,calendar:I,carousel:w,cascader:N,collapse:_,typography:P,checkbox:M,descriptions:D,divider:T,drawer:A,skeleton:R,steps:L,image:j,layout:z,list:B,mentions:K,modal:W,progress:k,result:V,slider:Q,breadcrumb:J,menu:Y,pagination:te,input:oe,textArea:X,empty:F,badge:ee,radio:Z,rate:ne,switch:re,transfer:se,avatar:le,message:he,tag:fe,table:ie,card:ue,tabs:de,timeline:me,timePicker:Ce,upload:Oe,notification:Te,tree:je,colorPicker:Ne,datePicker:Ie,rangePicker:xe,flex:be,wave:Ee,dropdown:$e,warning:_e,tour:ve,tooltip:Se,popover:Je,popconfirm:it,floatButtonGroup:Nt,variant:Tt,inputNumber:Gt,treeSelect:st}=e,Pt=s.useCallback((Ve,Ze)=>{const{prefixCls:Ot}=e;if(Ze)return Ze;const Ae=Ot||y.getPrefixCls("");return Ve?`${Ae}-${Ve}`:Ae},[y.getPrefixCls,e.prefixCls]),pt=C||y.iconPrefixCls||zs,et=n||y.csp;H4(pt,et);const ke=K4(x,y.theme,{prefixCls:Pt("")});process.env.NODE_ENV!=="production"&&($f=$f||!!ke);const Me={csp:et,autoInsertSpaceInButton:r,alert:o,anchor:i,locale:l||v,direction:u,space:d,splitter:f,virtual:m,popupMatchSelectWidth:h!=null?h:p,popupOverflow:b,getPrefixCls:Pt,iconPrefixCls:pt,theme:ke,segmented:S,statistic:$,spin:O,calendar:I,carousel:w,cascader:N,collapse:_,typography:P,checkbox:M,descriptions:D,divider:T,drawer:A,skeleton:R,steps:L,image:j,input:oe,textArea:X,layout:z,list:B,mentions:K,modal:W,progress:k,result:V,slider:Q,breadcrumb:J,menu:Y,pagination:te,empty:F,badge:ee,radio:Z,rate:ne,switch:re,transfer:se,avatar:le,message:he,tag:fe,table:ie,card:ue,tabs:de,timeline:me,timePicker:Ce,upload:Oe,notification:Te,tree:je,colorPicker:Ne,datePicker:Ie,rangePicker:xe,flex:be,wave:Ee,dropdown:$e,warning:_e,tour:ve,tooltip:Se,popover:Je,popconfirm:it,floatButtonGroup:Nt,variant:Tt,inputNumber:Gt,treeSelect:st};process.env.NODE_ENV!=="production"&>("ConfigProvider")(!("autoInsertSpaceInButton"in e),"deprecated","`autoInsertSpaceInButton` is deprecated. Please use `{ button: { autoInsertSpace: boolean }}` instead.");const Pe=Object.assign({},y);Object.keys(Me).forEach(Ve=>{Me[Ve]!==void 0&&(Pe[Ve]=Me[Ve])}),gA.forEach(Ve=>{const Ze=e[Ve];Ze&&(Pe[Ve]=Ze)}),typeof r!="undefined"&&(Pe.button=Object.assign({autoInsertSpace:r},Pe.button));const at=ni(()=>Pe,Pe,(Ve,Ze)=>{const Ot=Object.keys(Ve),Ae=Object.keys(Ze);return Ot.length!==Ae.length||Ot.some(Qe=>Ve[Qe]!==Ze[Qe])}),{layer:ct}=s.useContext(Ha),Le=s.useMemo(()=>({prefixCls:pt,csp:et,layer:ct?"antd":void 0}),[pt,et,ct]);let we=s.createElement(s.Fragment,null,s.createElement(pA,{dropdownMatchSelectWidth:p}),t);const ze=s.useMemo(()=>{var Ve,Ze,Ot,Ae;return ji(((Ve=no.Form)===null||Ve===void 0?void 0:Ve.defaultValidateMessages)||{},((Ot=(Ze=at.locale)===null||Ze===void 0?void 0:Ze.Form)===null||Ot===void 0?void 0:Ot.defaultValidateMessages)||{},((Ae=at.form)===null||Ae===void 0?void 0:Ae.validateMessages)||{},(a==null?void 0:a.validateMessages)||{})},[at,a==null?void 0:a.validateMessages]);Object.keys(ze).length>0&&(we=s.createElement(By.Provider,{value:ze},we)),l&&(we=s.createElement(i4,{locale:l,_ANT_MARK__:Ky},we)),(pt||et)&&(we=s.createElement(cd.Provider,{value:Le},we)),c&&(we=s.createElement(S4,{size:c},we)),we=s.createElement(mA,null,we);const Fe=s.useMemo(()=>{const Ve=ke||{},{algorithm:Ze,token:Ot,components:Ae,cssVar:Qe}=Ve,nt=vA(Ve,["algorithm","token","components","cssVar"]),ot=Ze&&(!Array.isArray(Ze)||Ze.length>0)?Gd(Ze):Gy,ht={};Object.entries(Ae||{}).forEach(Wt=>{let[Ct,en]=Wt;const De=Object.assign({},en);"algorithm"in De&&(De.algorithm===!0?De.theme=ot:(Array.isArray(De.algorithm)||typeof De.algorithm=="function")&&(De.theme=Gd(De.algorithm)),delete De.algorithm),ht[Ct]=De});const jt=Object.assign(Object.assign({},qa),Ot);return Object.assign(Object.assign({},nt),{theme:ot,token:jt,components:ht,override:Object.assign({override:jt},ht),cssVar:Qe})},[ke]);return x&&(we=s.createElement(Xy.Provider,{value:Fe},we)),at.warning&&(we=s.createElement(zy.Provider,{value:at.warning},we)),E!==void 0&&(we=s.createElement(df,{disabled:E},we)),s.createElement(Xe.Provider,{value:at},we)},io=e=>{const t=s.useContext(Xe),n=s.useContext(sf);return s.createElement(CA,Object.assign({parentContext:t,legacyLocale:n},e))};io.ConfigContext=Xe,io.SizeContext=Xa,io.config=yA,io.useConfig=x4,Object.defineProperty(io,"SizeContext",{get:()=>(process.env.NODE_ENV!=="production"&&zo(!1,"ConfigProvider","ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."),Xa)}),process.env.NODE_ENV!=="production"&&(io.displayName="ConfigProvider");var SA=`accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
149
|
+
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
150
|
+
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
151
|
+
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
152
|
+
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
|
153
|
+
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
|
154
|
+
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
|
155
|
+
mediaGroup method min minLength multiple muted name noValidate nonce open
|
|
156
|
+
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
|
157
|
+
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
|
158
|
+
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
|
159
|
+
summary tabIndex target title type useMap value width wmode wrap`,xA=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
|
160
|
+
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
|
161
|
+
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
|
162
|
+
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
163
|
+
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
|
164
|
+
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
|
165
|
+
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,EA="".concat(SA," ").concat(xA).split(/[\s\n]+/),$A="aria-",wA="data-";function D0(e,t){return e.indexOf(t)===0}function Rn(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=q({},t);var r={};return Object.keys(e).forEach(function(o){(n.aria&&(o==="role"||D0(o,$A))||n.data&&D0(o,wA)||n.attr&&EA.includes(o))&&(r[o]=e[o])}),r}function A0(e){return e&&g.isValidElement(e)&&e.type===g.Fragment}const Of=(e,t,n)=>g.isValidElement(e)?g.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t;function Gn(e,t){return Of(e,e,t)}const Ks=(e,t,n,r,o)=>({background:e,border:`${U(r.lineWidth)} ${r.lineType} ${t}`,[`${o}-icon`]:{color:n}}),OA=e=>{const{componentCls:t,motionDurationSlow:n,marginXS:r,marginSM:o,fontSize:i,fontSizeLG:a,lineHeight:l,borderRadiusLG:c,motionEaseInOutCirc:u,withDescriptionIconSize:d,colorText:f,colorTextHeading:m,withDescriptionPadding:p,defaultPadding:h}=e;return{[t]:Object.assign(Object.assign({},Ht(e)),{position:"relative",display:"flex",alignItems:"center",padding:h,wordWrap:"break-word",borderRadius:c,[`&${t}-rtl`]:{direction:"rtl"},[`${t}-content`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:r,lineHeight:0},"&-description":{display:"none",fontSize:i,lineHeight:l},"&-message":{color:m},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${n} ${u}, opacity ${n} ${u},
|
|
166
|
+
padding-top ${n} ${u}, padding-bottom ${n} ${u},
|
|
167
|
+
margin-bottom ${n} ${u}`},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),[`${t}-with-description`]:{alignItems:"flex-start",padding:p,[`${t}-icon`]:{marginInlineEnd:o,fontSize:d,lineHeight:0},[`${t}-message`]:{display:"block",marginBottom:r,color:m,fontSize:a},[`${t}-description`]:{display:"block",color:f}},[`${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},NA=e=>{const{componentCls:t,colorSuccess:n,colorSuccessBorder:r,colorSuccessBg:o,colorWarning:i,colorWarningBorder:a,colorWarningBg:l,colorError:c,colorErrorBorder:u,colorErrorBg:d,colorInfo:f,colorInfoBorder:m,colorInfoBg:p}=e;return{[t]:{"&-success":Ks(o,r,n,e,t),"&-info":Ks(p,m,f,e,t),"&-warning":Ks(l,a,i,e,t),"&-error":Object.assign(Object.assign({},Ks(d,u,c,e,t)),{[`${t}-description > pre`]:{margin:0,padding:0}})}}},IA=e=>{const{componentCls:t,iconCls:n,motionDurationMid:r,marginXS:o,fontSizeIcon:i,colorIcon:a,colorIconHover:l}=e;return{[t]:{"&-action":{marginInlineStart:o},[`${t}-close-icon`]:{marginInlineStart:o,padding:0,overflow:"hidden",fontSize:i,lineHeight:U(i),backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${n}-close`]:{color:a,transition:`color ${r}`,"&:hover":{color:l}}},"&-close-text":{color:a,transition:`color ${r}`,"&:hover":{color:l}}}}},_A=Dt("Alert",e=>[OA(e),NA(e),IA(e)],e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`}));var R0=globalThis&&globalThis.__rest||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 TA={success:Mo,info:Ma,error:Do,warning:Pa},PA=e=>{const{icon:t,prefixCls:n,type:r}=e,o=TA[r]||null;return t?Of(t,s.createElement("span",{className:`${n}-icon`},t),()=>({className:G(`${n}-icon`,t.props.className)})):s.createElement(o,{className:`${n}-icon`})},MA=e=>{const{isClosable:t,prefixCls:n,closeIcon:r,handleClose:o,ariaProps:i}=e,a=r===!0||r===void 0?s.createElement($r,null):r;return t?s.createElement("button",Object.assign({type:"button",onClick:o,className:`${n}-close-icon`,tabIndex:0},i),a):null},j0=s.forwardRef((e,t)=>{const{description:n,prefixCls:r,message:o,banner:i,className:a,rootClassName:l,style:c,onMouseEnter:u,onMouseLeave:d,onClick:f,afterClose:m,showIcon:p,closable:h,closeText:b,closeIcon:v,action:y,id:C}=e,x=R0(e,["description","prefixCls","message","banner","className","rootClassName","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action","id"]),[E,S]=s.useState(!1);process.env.NODE_ENV!=="production"&>("Alert").deprecated(!b,"closeText","closable.closeIcon");const $=s.useRef(null);s.useImperativeHandle(t,()=>({nativeElement:$.current}));const{getPrefixCls:O,direction:I,closable:w,closeIcon:N,className:_,style:P}=An("alert"),M=O("alert",r),[D,T,A]=_A(M),R=V=>{var Q;S(!0),(Q=e.onClose)===null||Q===void 0||Q.call(e,V)},L=s.useMemo(()=>e.type!==void 0?e.type:i?"warning":"info",[e.type,i]),j=s.useMemo(()=>typeof h=="object"&&h.closeIcon||b?!0:typeof h=="boolean"?h:v!==!1&&v!==null&&v!==void 0?!0:!!w,[b,v,h,w]),z=i&&p===void 0?!0:p,B=G(M,`${M}-${L}`,{[`${M}-with-description`]:!!n,[`${M}-no-icon`]:!z,[`${M}-banner`]:!!i,[`${M}-rtl`]:I==="rtl"},_,a,l,A,T),K=Rn(x,{aria:!0,data:!0}),W=s.useMemo(()=>typeof h=="object"&&h.closeIcon?h.closeIcon:b||(v!==void 0?v:typeof w=="object"&&w.closeIcon?w.closeIcon:N),[v,h,b,N]),k=s.useMemo(()=>{const V=h!=null?h:w;return typeof V=="object"?R0(V,["closeIcon"]):{}},[h,w]);return D(s.createElement(cr,{visible:!E,motionName:`${M}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:V=>({maxHeight:V.offsetHeight}),onLeaveEnd:m},(V,Q)=>{let{className:J,style:Y}=V;return s.createElement("div",Object.assign({id:C,ref:Wn($,Q),"data-show":!E,className:G(B,J),style:Object.assign(Object.assign(Object.assign({},P),c),Y),onMouseEnter:u,onMouseLeave:d,onClick:f,role:"alert"},K),z?s.createElement(PA,{description:n,icon:e.icon,prefixCls:M,type:L}):null,s.createElement("div",{className:`${M}-content`},o?s.createElement("div",{className:`${M}-message`},o):null,n?s.createElement("div",{className:`${M}-description`},n):null),y?s.createElement("div",{className:`${M}-action`},y):null,s.createElement(MA,{isClosable:j,prefixCls:M,closeIcon:W,handleClose:R,ariaProps:k}))}))});process.env.NODE_ENV!=="production"&&(j0.displayName="Alert");const L0=j0;function DA(e,t,n){return t=ii(t),ty(e,Es()?Reflect.construct(t,n||[],ii(e).constructor):t.apply(e,n))}const AA=function(e){function t(){var n;return bn(this,t),n=DA(this,t,arguments),n.state={error:void 0,info:{componentStack:""}},n}return jr(t,e),yn(t,[{key:"componentDidCatch",value:function(r,o){this.setState({error:r,info:o})}},{key:"render",value:function(){const{message:r,description:o,id:i,children:a}=this.props,{error:l,info:c}=this.state,u=(c==null?void 0:c.componentStack)||null,d=typeof r=="undefined"?(l||"").toString():r,f=typeof o=="undefined"?u:o;return l?s.createElement(L0,{id:i,type:"error",message:d,description:s.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},f)}):a}}])}(s.Component),z0=L0;z0.ErrorBoundary=AA;const Nf=z0,B0=e=>typeof e=="object"&&e!=null&&e.nodeType===1,k0=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",qs=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return k0(n.overflowY,t)||k0(n.overflowX,t)||(r=>{const o=(i=>{if(!i.ownerDocument||!i.ownerDocument.defaultView)return null;try{return i.ownerDocument.defaultView.frameElement}catch(a){return null}})(r);return!!o&&(o.clientHeight<r.scrollHeight||o.clientWidth<r.scrollWidth)})(e)}return!1},Us=(e,t,n,r,o,i,a,l)=>i<e&&a>t||i>e&&a<t?0:i<=e&&l<=n||a>=t&&l>=n?i-e-r:a>t&&l<n||i<e&&l>n?a-t+o:0,RA=e=>{const t=e.parentElement;return t==null?e.getRootNode().host||null:t},F0=(e,t)=>{var n,r,o,i;if(typeof document=="undefined")return[];const{scrollMode:a,block:l,inline:c,boundary:u,skipOverflowHiddenElements:d}=t,f=typeof u=="function"?u:A=>A!==u;if(!B0(e))throw new TypeError("Invalid target");const m=document.scrollingElement||document.documentElement,p=[];let h=e;for(;B0(h)&&f(h);){if(h=RA(h),h===m){p.push(h);break}h!=null&&h===document.body&&qs(h)&&!qs(document.documentElement)||h!=null&&qs(h,d)&&p.push(h)}const b=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,v=(i=(o=window.visualViewport)==null?void 0:o.height)!=null?i:innerHeight,{scrollX:y,scrollY:C}=window,{height:x,width:E,top:S,right:$,bottom:O,left:I}=e.getBoundingClientRect(),{top:w,right:N,bottom:_,left:P}=(A=>{const R=window.getComputedStyle(A);return{top:parseFloat(R.scrollMarginTop)||0,right:parseFloat(R.scrollMarginRight)||0,bottom:parseFloat(R.scrollMarginBottom)||0,left:parseFloat(R.scrollMarginLeft)||0}})(e);let M=l==="start"||l==="nearest"?S-w:l==="end"?O+_:S+x/2-w+_,D=c==="center"?I+E/2-P+N:c==="end"?$+N:I-P;const T=[];for(let A=0;A<p.length;A++){const R=p[A],{height:L,width:j,top:z,right:B,bottom:K,left:W}=R.getBoundingClientRect();if(a==="if-needed"&&S>=0&&I>=0&&O<=v&&$<=b&&(R===m&&!qs(R)||S>=z&&O<=K&&I>=W&&$<=B))return T;const k=getComputedStyle(R),V=parseInt(k.borderLeftWidth,10),Q=parseInt(k.borderTopWidth,10),J=parseInt(k.borderRightWidth,10),Y=parseInt(k.borderBottomWidth,10);let te=0,oe=0;const X="offsetWidth"in R?R.offsetWidth-R.clientWidth-V-J:0,F="offsetHeight"in R?R.offsetHeight-R.clientHeight-Q-Y:0,ee="offsetWidth"in R?R.offsetWidth===0?0:j/R.offsetWidth:0,Z="offsetHeight"in R?R.offsetHeight===0?0:L/R.offsetHeight:0;if(m===R)te=l==="start"?M:l==="end"?M-v:l==="nearest"?Us(C,C+v,v,Q,Y,C+M,C+M+x,x):M-v/2,oe=c==="start"?D:c==="center"?D-b/2:c==="end"?D-b:Us(y,y+b,b,V,J,y+D,y+D+E,E),te=Math.max(0,te+C),oe=Math.max(0,oe+y);else{te=l==="start"?M-z-Q:l==="end"?M-K+Y+F:l==="nearest"?Us(z,K,L,Q,Y+F,M,M+x,x):M-(z+L/2)+F/2,oe=c==="start"?D-W-V:c==="center"?D-(W+j/2)+X/2:c==="end"?D-B+J+X:Us(W,B,j,V,J+X,D,D+E,E);const{scrollLeft:ne,scrollTop:re}=R;te=Z===0?0:Math.max(0,Math.min(re+te/Z,R.scrollHeight-L/Z+F)),oe=ee===0?0:Math.max(0,Math.min(ne+oe/ee,R.scrollWidth-j/ee+X)),M+=re-te,D+=ne-oe}T.push({el:R,top:te,left:oe})}return T},jA=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function LA(e,t){if(!e.isConnected||!(o=>{let i=o;for(;i&&i.parentNode;){if(i.parentNode===document)return!0;i=i.parentNode instanceof ShadowRoot?i.parentNode.host:i.parentNode}return!1})(e))return;const n=(o=>{const i=window.getComputedStyle(o);return{top:parseFloat(i.scrollMarginTop)||0,right:parseFloat(i.scrollMarginRight)||0,bottom:parseFloat(i.scrollMarginBottom)||0,left:parseFloat(i.scrollMarginLeft)||0}})(e);if((o=>typeof o=="object"&&typeof o.behavior=="function")(t))return t.behavior(F0(e,t));const r=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:o,top:i,left:a}of F0(e,jA(t))){const l=i-n.top+n.bottom,c=a-n.left+n.right;o.scroll({top:l,left:c,behavior:r})}}function If(e){return e!=null&&e===e.window}const zA=e=>{var t,n;if(typeof window=="undefined")return 0;let r=0;return If(e)?r=e.pageYOffset:e instanceof Document?r=e.documentElement.scrollTop:(e instanceof HTMLElement||e)&&(r=e.scrollTop),e&&!If(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 BA(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 kA(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:n=()=>window,callback:r,duration:o=450}=t,i=n(),a=zA(i),l=Date.now(),c=()=>{const d=Date.now()-l,f=BA(d>o?o:d,a,e,o);If(i)?i.scrollTo(window.pageXOffset,f):i instanceof Document||i.constructor.name==="HTMLDocument"?i.documentElement.scrollTop=f:i.scrollTop=f,d<o?Rt(c):typeof r=="function"&&r()};Rt(c)}const On=e=>{const[,,,,t]=Hn();return t?`${e}-css-var`:""};var ye={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(t){var n=t.keyCode;if(t.altKey&&!t.ctrlKey||t.metaKey||n>=ye.F1&&n<=ye.F12)return!1;switch(n){case ye.ALT:case ye.CAPS_LOCK:case ye.CONTEXT_MENU:case ye.CTRL:case ye.DOWN:case ye.END:case ye.ESC:case ye.HOME:case ye.INSERT:case ye.LEFT:case ye.MAC_FF_META:case ye.META:case ye.NUMLOCK:case ye.NUM_CENTER:case ye.PAGE_DOWN:case ye.PAGE_UP:case ye.PAUSE:case ye.PRINT_SCREEN:case ye.RIGHT:case ye.SHIFT:case ye.UP:case ye.WIN_KEY:case ye.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=ye.ZERO&&t<=ye.NINE||t>=ye.NUM_ZERO&&t<=ye.NUM_MULTIPLY||t>=ye.A&&t<=ye.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case ye.SPACE:case ye.QUESTION_MARK:case ye.NUM_PLUS:case ye.NUM_MINUS:case ye.NUM_PERIOD:case ye.NUM_DIVISION:case ye.SEMICOLON:case ye.DASH:case ye.EQUALS:case ye.COMMA:case ye.PERIOD:case ye.SLASH:case ye.APOSTROPHE:case ye.SINGLE_QUOTE:case ye.OPEN_SQUARE_BRACKET:case ye.BACKSLASH:case ye.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},H0=s.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,o=e.className,i=e.duration,a=i===void 0?4.5:i,l=e.showProgress,c=e.pauseOnHover,u=c===void 0?!0:c,d=e.eventKey,f=e.content,m=e.closable,p=e.closeIcon,h=p===void 0?"x":p,b=e.props,v=e.onClick,y=e.onNoticeClose,C=e.times,x=e.hovering,E=s.useState(!1),S=ae(E,2),$=S[0],O=S[1],I=s.useState(0),w=ae(I,2),N=w[0],_=w[1],P=s.useState(0),M=ae(P,2),D=M[0],T=M[1],A=x||$,R=a>0&&l,L=function(){y(d)},j=function(V){(V.key==="Enter"||V.code==="Enter"||V.keyCode===ye.ENTER)&&L()};s.useEffect(function(){if(!A&&a>0){var k=Date.now()-D,V=setTimeout(function(){L()},a*1e3-D);return function(){u&&clearTimeout(V),T(Date.now()-k)}}},[a,A,C]),s.useEffect(function(){if(!A&&R&&(u||D===0)){var k=performance.now(),V,Q=function J(){cancelAnimationFrame(V),V=requestAnimationFrame(function(Y){var te=Y+D-k,oe=Math.min(te/(a*1e3),1);_(oe*100),oe<1&&J()})};return Q(),function(){u&&cancelAnimationFrame(V)}}},[a,D,A,R,C]);var z=s.useMemo(function(){return He(m)==="object"&&m!==null?m:m?{closeIcon:h}:{}},[m,h]),B=Rn(z,!0),K=100-(!N||N<0?0:N>100?100:N),W="".concat(n,"-notice");return s.createElement("div",ce({},b,{ref:t,className:G(W,o,H({},"".concat(W,"-closable"),m)),style:r,onMouseEnter:function(V){var Q;O(!0),b==null||(Q=b.onMouseEnter)===null||Q===void 0||Q.call(b,V)},onMouseLeave:function(V){var Q;O(!1),b==null||(Q=b.onMouseLeave)===null||Q===void 0||Q.call(b,V)},onClick:v}),s.createElement("div",{className:"".concat(W,"-content")},f),m&&s.createElement("a",ce({tabIndex:0,className:"".concat(W,"-close"),onKeyDown:j,"aria-label":"Close"},B,{onClick:function(V){V.preventDefault(),V.stopPropagation(),L()}}),z.closeIcon),R&&s.createElement("progress",{className:"".concat(W,"-progress"),max:"100",value:K},K+"%"))}),V0=g.createContext({}),W0=function(t){var n=t.children,r=t.classNames;return g.createElement(V0.Provider,{value:{classNames:r}},n)},K0=8,q0=3,U0=16,FA=function(t){var n={offset:K0,threshold:q0,gap:U0};if(t&&He(t)==="object"){var r,o,i;n.offset=(r=t.offset)!==null&&r!==void 0?r:K0,n.threshold=(o=t.threshold)!==null&&o!==void 0?o:q0,n.gap=(i=t.gap)!==null&&i!==void 0?i:U0}return[!!t,n]},HA=["className","style","classNames","styles"],G0=function(t){var n=t.configList,r=t.placement,o=t.prefixCls,i=t.className,a=t.style,l=t.motion,c=t.onAllNoticeRemoved,u=t.onNoticeClose,d=t.stack,f=g.useContext(V0),m=f.classNames,p=g.useRef({}),h=g.useState(null),b=ae(h,2),v=b[0],y=b[1],C=g.useState([]),x=ae(C,2),E=x[0],S=x[1],$=n.map(function(A){return{config:A,key:String(A.key)}}),O=FA(d),I=ae(O,2),w=I[0],N=I[1],_=N.offset,P=N.threshold,M=N.gap,D=w&&(E.length>0||$.length<=P),T=typeof l=="function"?l(r):l;return g.useEffect(function(){w&&E.length>1&&S(function(A){return A.filter(function(R){return $.some(function(L){var j=L.key;return R===j})})})},[E,$,w]),g.useEffect(function(){var A;if(w&&p.current[(A=$[$.length-1])===null||A===void 0?void 0:A.key]){var R;y(p.current[(R=$[$.length-1])===null||R===void 0?void 0:R.key])}},[$,w]),g.createElement(N0,ce({key:r,className:G(o,"".concat(o,"-").concat(r),m==null?void 0:m.list,i,H(H({},"".concat(o,"-stack"),!!w),"".concat(o,"-stack-expanded"),D)),style:a,keys:$,motionAppear:!0},T,{onAllRemoved:function(){c(r)}}),function(A,R){var L=A.config,j=A.className,z=A.style,B=A.index,K=L,W=K.key,k=K.times,V=String(W),Q=L,J=Q.className,Y=Q.style,te=Q.classNames,oe=Q.styles,X=tt(Q,HA),F=$.findIndex(function(me){return me.key===V}),ee={};if(w){var Z=$.length-1-(F>-1?F:B-1),ne=r==="top"||r==="bottom"?"-50%":"0";if(Z>0){var re,se,le;ee.height=D?(re=p.current[V])===null||re===void 0?void 0:re.offsetHeight:v==null?void 0:v.offsetHeight;for(var he=0,fe=0;fe<Z;fe++){var ie;he+=((ie=p.current[$[$.length-1-fe].key])===null||ie===void 0?void 0:ie.offsetHeight)+M}var ue=(D?he:Z*_)*(r.startsWith("top")?1:-1),de=!D&&v!==null&&v!==void 0&&v.offsetWidth&&(se=p.current[V])!==null&&se!==void 0&&se.offsetWidth?((v==null?void 0:v.offsetWidth)-_*2*(Z<3?Z:3))/((le=p.current[V])===null||le===void 0?void 0:le.offsetWidth):1;ee.transform="translate3d(".concat(ne,", ").concat(ue,"px, 0) scaleX(").concat(de,")")}else ee.transform="translate3d(".concat(ne,", 0, 0)")}return g.createElement("div",{ref:R,className:G("".concat(o,"-notice-wrapper"),j,te==null?void 0:te.wrapper),style:q(q(q({},z),ee),oe==null?void 0:oe.wrapper),onMouseEnter:function(){return S(function(Ce){return Ce.includes(V)?Ce:[].concat(ge(Ce),[V])})},onMouseLeave:function(){return S(function(Ce){return Ce.filter(function(Oe){return Oe!==V})})}},g.createElement(H0,ce({},X,{ref:function(Ce){F>-1?p.current[V]=Ce:delete p.current[V]},prefixCls:o,classNames:te,styles:oe,className:G(J,m==null?void 0:m.notice),style:Y,times:k,key:W,eventKey:W,onNoticeClose:u,hovering:w&&E.length>0})))})};process.env.NODE_ENV!=="production"&&(G0.displayName="NoticeList");var X0=s.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-notification":n,o=e.container,i=e.motion,a=e.maxCount,l=e.className,c=e.style,u=e.onAllRemoved,d=e.stack,f=e.renderNotifications,m=s.useState([]),p=ae(m,2),h=p[0],b=p[1],v=function(w){var N,_=h.find(function(P){return P.key===w});_==null||(N=_.onClose)===null||N===void 0||N.call(_),b(function(P){return P.filter(function(M){return M.key!==w})})};s.useImperativeHandle(t,function(){return{open:function(w){b(function(N){var _=ge(N),P=_.findIndex(function(T){return T.key===w.key}),M=q({},w);if(P>=0){var D;M.times=(((D=N[P])===null||D===void 0?void 0:D.times)||0)+1,_[P]=M}else M.times=0,_.push(M);return a>0&&_.length>a&&(_=_.slice(-a)),_})},close:function(w){v(w)},destroy:function(){b([])}}});var y=s.useState({}),C=ae(y,2),x=C[0],E=C[1];s.useEffect(function(){var I={};h.forEach(function(w){var N=w.placement,_=N===void 0?"topRight":N;_&&(I[_]=I[_]||[],I[_].push(w))}),Object.keys(x).forEach(function(w){I[w]=I[w]||[]}),E(I)},[h]);var S=function(w){E(function(N){var _=q({},N),P=_[w]||[];return P.length||delete _[w],_})},$=s.useRef(!1);if(s.useEffect(function(){Object.keys(x).length>0?$.current=!0:$.current&&(u==null||u(),$.current=!1)},[x]),!o)return null;var O=Object.keys(x);return nr.createPortal(s.createElement(s.Fragment,null,O.map(function(I){var w=x[I],N=s.createElement(G0,{key:I,configList:w,placement:I,prefixCls:r,className:l==null?void 0:l(I),style:c==null?void 0:c(I),motion:i,onNoticeClose:v,onAllNoticeRemoved:S,stack:d});return f?f(N,{prefixCls:r,key:I}):N})),o)});process.env.NODE_ENV!=="production"&&(X0.displayName="Notifications");var VA=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],WA=function(){return document.body},Q0=0;function KA(){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(i){var a=o[i];a!==void 0&&(e[i]=a)})}),e}function Y0(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.getContainer,n=t===void 0?WA:t,r=e.motion,o=e.prefixCls,i=e.maxCount,a=e.className,l=e.style,c=e.onAllRemoved,u=e.stack,d=e.renderNotifications,f=tt(e,VA),m=s.useState(),p=ae(m,2),h=p[0],b=p[1],v=s.useRef(),y=s.createElement(X0,{container:h,ref:v,prefixCls:o,motion:r,maxCount:i,className:a,style:l,onAllRemoved:c,stack:u,renderNotifications:d}),C=s.useState([]),x=ae(C,2),E=x[0],S=x[1],$=qt(function(I){var w=KA(f,I);(w.key===null||w.key===void 0)&&(w.key="rc-notification-".concat(Q0),Q0+=1),S(function(N){return[].concat(ge(N),[{type:"open",config:w}])})}),O=s.useMemo(function(){return{open:$,close:function(w){S(function(N){return[].concat(ge(N),[{type:"close",key:w}])})},destroy:function(){S(function(w){return[].concat(ge(w),[{type:"destroy"}])})}}},[]);return s.useEffect(function(){b(n())}),s.useEffect(function(){if(v.current&&E.length){E.forEach(function(N){switch(N.type){case"open":v.current.open(N.config);break;case"close":v.current.close(N.key);break;case"destroy":v.current.destroy();break}});var I,w;S(function(N){return(I!==N||!w)&&(I=N,w=N.filter(function(_){return!E.includes(_)})),w})}},[E]),[O,y]}const J0=g.createContext(void 0);process.env.NODE_ENV!=="production"&&(J0.displayName="zIndexContext");const Ja=J0,Eo=100,Gs=Eo*10,qA=Gs+Eo,Z0={Modal:Eo,Drawer:Eo,Popover:Eo,Popconfirm:Eo,Tooltip:Eo,Tour:Eo,FloatButton:Eo},UA={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function GA(e){return e in Z0}const ki=(e,t)=>{const[,n]=Hn(),r=g.useContext(Ja),o=GA(e);let i;if(t!==void 0)i=[t,t];else{let a=r!=null?r:0;o?a+=(r?0:n.zIndexPopupBase)+Z0[e]:a+=UA[e],i=[r===void 0?t:a,a]}if(process.env.NODE_ENV!=="production"){const a=gt(e),l=n.zIndexPopupBase+qA,c=i[0]||0;process.env.NODE_ENV!=="production"&&a(t!==void 0||c<=l,"usage","`zIndex` is over design token `zIndexPopupBase` too much. It may cause unexpected override.")}return i},XA=e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:o,colorSuccess:i,colorError:a,colorWarning:l,colorInfo:c,fontSizeLG:u,motionEaseInOutCirc:d,motionDurationSlow:f,marginXS:m,paddingXS:p,borderRadiusLG:h,zIndexPopup:b,contentPadding:v,contentBg:y}=e,C=`${t}-notice`,x=new _t("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:p,transform:"translateY(0)",opacity:1}}),E=new _t("MessageMoveOut",{"0%":{maxHeight:e.height,padding:p,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),S={padding:p,textAlign:"center",[`${t}-custom-content`]:{display:"flex",alignItems:"center"},[`${t}-custom-content > ${n}`]:{marginInlineEnd:m,fontSize:u},[`${C}-content`]:{display:"inline-block",padding:v,background:y,borderRadius:h,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:i},[`${t}-error > ${n}`]:{color:a},[`${t}-warning > ${n}`]:{color:l},[`${t}-info > ${n},
|
|
168
|
+
${t}-loading > ${n}`]:{color:c}};return[{[t]:Object.assign(Object.assign({},Ht(e)),{color:o,position:"fixed",top:m,width:"100%",pointerEvents:"none",zIndex:b,[`${t}-move-up`]:{animationFillMode:"forwards"},[`
|
|
169
|
+
${t}-move-up-appear,
|
|
170
|
+
${t}-move-up-enter
|
|
171
|
+
`]:{animationName:x,animationDuration:f,animationPlayState:"paused",animationTimingFunction:d},[`
|
|
172
|
+
${t}-move-up-appear${t}-move-up-appear-active,
|
|
173
|
+
${t}-move-up-enter${t}-move-up-enter-active
|
|
174
|
+
`]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:E,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"})}]},eC=Dt("Message",e=>{const t=xt(e,{height:150});return[XA(t)]},e=>({zIndexPopup:e.zIndexPopupBase+Gs+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}));var QA=globalThis&&globalThis.__rest||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 YA={info:s.createElement(Ma,null),success:s.createElement(Mo,null),error:s.createElement(Do,null),warning:s.createElement(Pa,null),loading:s.createElement(ti,null)},tC=e=>{let{prefixCls:t,type:n,icon:r,children:o}=e;return s.createElement("div",{className:G(`${t}-custom-content`,`${t}-${n}`)},r||YA[n],s.createElement("span",null,o))},JA=e=>{const{prefixCls:t,className:n,type:r,icon:o,content:i}=e,a=QA(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:l}=s.useContext(Xe),c=t||l("message"),u=On(c),[d,f,m]=eC(c,u);return d(s.createElement(H0,Object.assign({},a,{prefixCls:c,className:G(n,f,`${c}-notice-pure-panel`,m,u),eventKey:"pure",duration:null,content:s.createElement(tC,{prefixCls:c,type:r,icon:o},i)})))};function ZA(e,t){return{motionName:t!=null?t:`${e}-move-up`}}function _f(e){let t;const n=new Promise(o=>{t=e(()=>{o(!0)})}),r=()=>{t==null||t()};return r.then=(o,i)=>n.then(o,i),r.promise=n,r}var e3=globalThis&&globalThis.__rest||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 t3=8,n3=3,r3=e=>{let{children:t,prefixCls:n}=e;const r=On(n),[o,i,a]=eC(n,r);return o(s.createElement(W0,{classNames:{list:G(i,a,r)}},t))},o3=(e,t)=>{let{prefixCls:n,key:r}=t;return s.createElement(r3,{prefixCls:n,key:r},e)},i3=s.forwardRef((e,t)=>{const{top:n,prefixCls:r,getContainer:o,maxCount:i,duration:a=n3,rtl:l,transitionName:c,onAllRemoved:u}=e,{getPrefixCls:d,getPopupContainer:f,message:m,direction:p}=s.useContext(Xe),h=r||d("message"),b=()=>({left:"50%",transform:"translateX(-50%)",top:n!=null?n:t3}),v=()=>G({[`${h}-rtl`]:l!=null?l:p==="rtl"}),y=()=>ZA(h,c),C=s.createElement("span",{className:`${h}-close-x`},s.createElement($r,{className:`${h}-close-icon`})),[x,E]=Y0({prefixCls:h,style:b,className:v,motion:y,closable:!1,closeIcon:C,duration:a,getContainer:()=>(o==null?void 0:o())||(f==null?void 0:f())||document.body,maxCount:i,onAllRemoved:u,renderNotifications:o3});return s.useImperativeHandle(t,()=>Object.assign(Object.assign({},x),{prefixCls:h,message:m})),E});let nC=0;function rC(e){const t=s.useRef(null),n=gt("Message");return[s.useMemo(()=>{const o=u=>{var d;(d=t.current)===null||d===void 0||d.close(u)},i=u=>{if(!t.current){process.env.NODE_ENV!=="production"&&n(!1,"usage","You are calling notice in render which will break in React 18 concurrent mode. Please trigger in effect instead.");const O=()=>{};return O.then=()=>{},O}const{open:d,prefixCls:f,message:m}=t.current,p=`${f}-notice`,{content:h,icon:b,type:v,key:y,className:C,style:x,onClose:E}=u,S=e3(u,["content","icon","type","key","className","style","onClose"]);let $=y;return $==null&&(nC+=1,$=`antd-message-${nC}`),_f(O=>(d(Object.assign(Object.assign({},S),{key:$,content:s.createElement(tC,{prefixCls:f,type:v,icon:b},h),placement:"top",className:G(v&&`${p}-${v}`,C,m==null?void 0:m.className),style:Object.assign(Object.assign({},m==null?void 0:m.style),x),onClose:()=>{E==null||E(),O()}})),()=>{o($)}))},l={open:i,destroy:u=>{var d;u!==void 0?o(u):(d=t.current)===null||d===void 0||d.destroy()}};return["info","success","warning","error","loading"].forEach(u=>{const d=(f,m,p)=>{let h;f&&typeof f=="object"&&"content"in f?h=f:h={content:f};let b,v;typeof m=="function"?v=m:(b=m,v=p);const y=Object.assign(Object.assign({onClose:v,duration:b},h),{type:u});return i(y)};l[u]=d}),l},[]),s.createElement(i3,Object.assign({key:"message-holder"},e,{ref:t}))]}function oC(e){return rC(e)}function a3(){const[e,t]=s.useState([]),n=s.useCallback(r=>(t(o=>[].concat(ge(o),[r])),()=>{t(o=>o.filter(i=>i!==r))}),[]);return[e,n]}function ir(){ir=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=typeof Symbol=="function"?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function c(N,_,P,M){return Object.defineProperty(N,_,{value:P,enumerable:!M,configurable:!M,writable:!M})}try{c({},"")}catch(N){c=function(P,M,D){return P[M]=D}}function u(N,_,P,M){var D=_&&_.prototype instanceof m?_:m,T=Object.create(D.prototype);return c(T,"_invoke",function(A,R,L){var j=1;return function(z,B){if(j===3)throw Error("Generator is already running");if(j===4){if(z==="throw")throw B;return{value:e,done:!0}}for(L.method=z,L.arg=B;;){var K=L.delegate;if(K){var W=S(K,L);if(W){if(W===f)continue;return W}}if(L.method==="next")L.sent=L._sent=L.arg;else if(L.method==="throw"){if(j===1)throw j=4,L.arg;L.dispatchException(L.arg)}else L.method==="return"&&L.abrupt("return",L.arg);j=3;var k=d(A,R,L);if(k.type==="normal"){if(j=L.done?4:2,k.arg===f)continue;return{value:k.arg,done:L.done}}k.type==="throw"&&(j=4,L.method="throw",L.arg=k.arg)}}}(N,P,new I(M||[])),!0),T}function d(N,_,P){try{return{type:"normal",arg:N.call(_,P)}}catch(M){return{type:"throw",arg:M}}}t.wrap=u;var f={};function m(){}function p(){}function h(){}var b={};c(b,i,function(){return this});var v=Object.getPrototypeOf,y=v&&v(v(w([])));y&&y!==n&&r.call(y,i)&&(b=y);var C=h.prototype=m.prototype=Object.create(b);function x(N){["next","throw","return"].forEach(function(_){c(N,_,function(P){return this._invoke(_,P)})})}function E(N,_){function P(D,T,A,R){var L=d(N[D],N,T);if(L.type!=="throw"){var j=L.arg,z=j.value;return z&&He(z)=="object"&&r.call(z,"__await")?_.resolve(z.__await).then(function(B){P("next",B,A,R)},function(B){P("throw",B,A,R)}):_.resolve(z).then(function(B){j.value=B,A(j)},function(B){return P("throw",B,A,R)})}R(L.arg)}var M;c(this,"_invoke",function(D,T){function A(){return new _(function(R,L){P(D,T,R,L)})}return M=M?M.then(A,A):A()},!0)}function S(N,_){var P=_.method,M=N.i[P];if(M===e)return _.delegate=null,P==="throw"&&N.i.return&&(_.method="return",_.arg=e,S(N,_),_.method==="throw")||P!=="return"&&(_.method="throw",_.arg=new TypeError("The iterator does not provide a '"+P+"' method")),f;var D=d(M,N.i,_.arg);if(D.type==="throw")return _.method="throw",_.arg=D.arg,_.delegate=null,f;var T=D.arg;return T?T.done?(_[N.r]=T.value,_.next=N.n,_.method!=="return"&&(_.method="next",_.arg=e),_.delegate=null,f):T:(_.method="throw",_.arg=new TypeError("iterator result is not an object"),_.delegate=null,f)}function $(N){this.tryEntries.push(N)}function O(N){var _=N[4]||{};_.type="normal",_.arg=e,N[4]=_}function I(N){this.tryEntries=[[-1]],N.forEach($,this),this.reset(!0)}function w(N){if(N!=null){var _=N[i];if(_)return _.call(N);if(typeof N.next=="function")return N;if(!isNaN(N.length)){var P=-1,M=function D(){for(;++P<N.length;)if(r.call(N,P))return D.value=N[P],D.done=!1,D;return D.value=e,D.done=!0,D};return M.next=M}}throw new TypeError(He(N)+" is not iterable")}return p.prototype=h,c(C,"constructor",h),c(h,"constructor",p),p.displayName=c(h,l,"GeneratorFunction"),t.isGeneratorFunction=function(N){var _=typeof N=="function"&&N.constructor;return!!_&&(_===p||(_.displayName||_.name)==="GeneratorFunction")},t.mark=function(N){return Object.setPrototypeOf?Object.setPrototypeOf(N,h):(N.__proto__=h,c(N,l,"GeneratorFunction")),N.prototype=Object.create(C),N},t.awrap=function(N){return{__await:N}},x(E.prototype),c(E.prototype,a,function(){return this}),t.AsyncIterator=E,t.async=function(N,_,P,M,D){D===void 0&&(D=Promise);var T=new E(u(N,_,P,M),D);return t.isGeneratorFunction(_)?T:T.next().then(function(A){return A.done?A.value:T.next()})},x(C),c(C,l,"Generator"),c(C,i,function(){return this}),c(C,"toString",function(){return"[object Generator]"}),t.keys=function(N){var _=Object(N),P=[];for(var M in _)P.unshift(M);return function D(){for(;P.length;)if((M=P.pop())in _)return D.value=M,D.done=!1,D;return D.done=!0,D}},t.values=w,I.prototype={constructor:I,reset:function(_){if(this.prev=this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(O),!_)for(var P in this)P.charAt(0)==="t"&&r.call(this,P)&&!isNaN(+P.slice(1))&&(this[P]=e)},stop:function(){this.done=!0;var _=this.tryEntries[0][4];if(_.type==="throw")throw _.arg;return this.rval},dispatchException:function(_){if(this.done)throw _;var P=this;function M(z){A.type="throw",A.arg=_,P.next=z}for(var D=P.tryEntries.length-1;D>=0;--D){var T=this.tryEntries[D],A=T[4],R=this.prev,L=T[1],j=T[2];if(T[0]===-1)return M("end"),!1;if(!L&&!j)throw Error("try statement without catch or finally");if(T[0]!=null&&T[0]<=R){if(R<L)return this.method="next",this.arg=e,M(L),!0;if(R<j)return M(j),!1}}},abrupt:function(_,P){for(var M=this.tryEntries.length-1;M>=0;--M){var D=this.tryEntries[M];if(D[0]>-1&&D[0]<=this.prev&&this.prev<D[2]){var T=D;break}}T&&(_==="break"||_==="continue")&&T[0]<=P&&P<=T[2]&&(T=null);var A=T?T[4]:{};return A.type=_,A.arg=P,T?(this.method="next",this.next=T[2],f):this.complete(A)},complete:function(_,P){if(_.type==="throw")throw _.arg;return _.type==="break"||_.type==="continue"?this.next=_.arg:_.type==="return"?(this.rval=this.arg=_.arg,this.method="return",this.next="end"):_.type==="normal"&&P&&(this.next=P),f},finish:function(_){for(var P=this.tryEntries.length-1;P>=0;--P){var M=this.tryEntries[P];if(M[2]===_)return this.complete(M[4],M[3]),O(M),f}},catch:function(_){for(var P=this.tryEntries.length-1;P>=0;--P){var M=this.tryEntries[P];if(M[0]===_){var D=M[4];if(D.type==="throw"){var T=D.arg;O(M)}return T}}throw Error("illegal catch attempt")},delegateYield:function(_,P,M){return this.delegate={i:w(_),r:P,n:M},this.method==="next"&&(this.arg=e),f}},t}function iC(e,t,n,r,o,i,a){try{var l=e[i](a),c=l.value}catch(u){return void n(u)}l.done?t(c):Promise.resolve(c).then(r,o)}function ci(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(c){iC(i,r,o,a,l,"next",c)}function l(c){iC(i,r,o,a,l,"throw",c)}a(void 0)})}}var Za=q({},$i),l3=Za.version,Tf=Za.render,s3=Za.unmountComponentAtNode,Xs;try{var c3=Number((l3||"").split(".")[0]);c3>=18&&(Xs=Za.createRoot)}catch(e){}function aC(e){var t=Za.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&He(t)==="object"&&(t.usingClientEntryPoint=e)}var Qs="__rc_react_root__";function u3(e,t){aC(!0);var n=t[Qs]||Xs(t);aC(!1),n.render(e),t[Qs]=n}function d3(e,t){Tf==null||Tf(e,t)}function f3(e,t){if(Xs){u3(e,t);return}d3(e,t)}function m3(e){return Pf.apply(this,arguments)}function Pf(){return Pf=ci(ir().mark(function e(t){return ir().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var o;(o=t[Qs])===null||o===void 0||o.unmount(),delete t[Qs]}));case 1:case"end":return r.stop()}},e)})),Pf.apply(this,arguments)}function p3(e){s3(e)}function v3(e){return Mf.apply(this,arguments)}function Mf(){return Mf=ci(ir().mark(function e(t){return ir().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(Xs===void 0){r.next=2;break}return r.abrupt("return",m3(t));case 2:p3(t);case 3:case"end":return r.stop()}},e)})),Mf.apply(this,arguments)}let lC=(e,t)=>{if(process.env.NODE_ENV!=="production"){const n=parseInt(s.version.split(".")[0],10),r=Object.keys($i);process.env.NODE_ENV!=="production"&&zo(n<19||r.includes("createRoot"),"compatible","antd v5 support React is 16 ~ 18. see https://u.ant.design/v5-for-19 for compatible.")}return f3(e,t),()=>v3(t)};function Df(e){return e&&(lC=e),lC}const Af=()=>({height:0,opacity:0}),sC=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},g3=e=>({height:e?e.offsetHeight:0}),Rf=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",Ys=function(){return{motionName:`${arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ga}-motion-collapse`,onAppearStart:Af,onEnterStart:Af,onAppearActive:sC,onEnterActive:sC,onLeaveStart:g3,onLeaveActive:Af,onAppearEnd:Rf,onEnterEnd:Rf,onLeaveEnd:Rf,motionDeadline:500}},ao=(e,t,n)=>n!==void 0?n:`${e}-${t}`;function tn(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r]}),n}const el=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(),i=o.width,a=o.height;if(i||a)return!0}}return!1},h3=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(",")}}}}},b3=F4("Wave",e=>[h3(e)]),Js=`${Ga}-wave-target`;function jf(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"}function y3(e){const{borderTopColor:t,borderColor:n,backgroundColor:r}=getComputedStyle(e);return jf(t)?t:jf(n)?n:jf(r)?r:null}function Lf(e){return Number.isNaN(e)?0:e}const C3=e=>{const{className:t,target:n,component:r,registerUnmount:o}=e,i=s.useRef(null),a=s.useRef(null);s.useEffect(()=>{a.current=o()},[]);const[l,c]=s.useState(null),[u,d]=s.useState([]),[f,m]=s.useState(0),[p,h]=s.useState(0),[b,v]=s.useState(0),[y,C]=s.useState(0),[x,E]=s.useState(!1),S={left:f,top:p,width:b,height:y,borderRadius:u.map(I=>`${I}px`).join(" ")};l&&(S["--wave-color"]=l);function $(){const I=getComputedStyle(n);c(y3(n));const w=I.position==="static",{borderLeftWidth:N,borderTopWidth:_}=I;m(w?n.offsetLeft:Lf(-parseFloat(N))),h(w?n.offsetTop:Lf(-parseFloat(_))),v(n.offsetWidth),C(n.offsetHeight);const{borderTopLeftRadius:P,borderTopRightRadius:M,borderBottomLeftRadius:D,borderBottomRightRadius:T}=I;d([P,M,T,D].map(A=>Lf(parseFloat(A))))}if(s.useEffect(()=>{if(n){const I=Rt(()=>{$(),E(!0)});let w;return typeof ResizeObserver!="undefined"&&(w=new ResizeObserver($),w.observe(n)),()=>{Rt.cancel(I),w==null||w.disconnect()}}},[]),!x)return null;const O=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(Js));return s.createElement(cr,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(I,w)=>{var N,_;if(w.deadline||w.propertyName==="opacity"){const P=(N=i.current)===null||N===void 0?void 0:N.parentElement;(_=a.current)===null||_===void 0||_.call(a).then(()=>{P==null||P.remove()})}return!1}},(I,w)=>{let{className:N}=I;return s.createElement("div",{ref:Wn(i,w),className:G(t,N,{"wave-quick":O}),style:S})})},S3=(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 i=Df();let a=null;function l(){return a}a=i(s.createElement(C3,Object.assign({},t,{target:e,registerUnmount:l})),o)},x3=(e,t,n)=>{const{wave:r}=s.useContext(Xe),[,o,i]=Hn(),a=qt(u=>{const d=e.current;if(r!=null&&r.disabled||!d)return;const f=d.querySelector(`.${Js}`)||d,{showEffect:m}=r||{};(m||S3)(f,{className:t,token:o,component:n,event:u,hashId:i})}),l=s.useRef(null);return u=>{Rt.cancel(l.current),l.current=Rt(()=>{a(u)})}},cC=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:o}=g.useContext(Xe),i=g.useRef(null),a=o("wave"),[,l]=b3(a),c=x3(i,G(a,l),r);if(g.useEffect(()=>{const d=i.current;if(!d||d.nodeType!==1||n)return;const f=m=>{!el(m.target)||!d.getAttribute||d.getAttribute("disabled")||d.disabled||d.className.includes("disabled")||d.className.includes("-leave")||c(m)};return d.addEventListener("click",f,!0),()=>{d.removeEventListener("click",f,!0)}},[n]),!g.isValidElement(t))return t!=null?t:null;const u=Rr(t)?Wn(Ao(t),i):i;return Gn(t,{ref:u})};process.env.NODE_ENV!=="production"&&(cC.displayName="Wave");const tl=cC,qn=e=>{const t=g.useContext(Xa);return g.useMemo(()=>e?typeof e=="string"?e!=null?e:t:typeof e=="function"?e(t):t:t,[e,t])},E3=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},$3=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"}}}},w3=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}}}},uC=Dt("Space",e=>{const t=xt(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[$3(t),w3(t),E3(t)]},()=>({}),{resetStyle:!1});var dC=globalThis&&globalThis.__rest||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 Zs=s.createContext(null),Fi=(e,t)=>{const n=s.useContext(Zs),r=s.useMemo(()=>{if(!n)return"";const{compactDirection:o,isFirstItem:i,isLastItem:a}=n,l=o==="vertical"?"-vertical-":"-";return G(`${e}-compact${l}item`,{[`${e}-compact${l}first-item`]:i,[`${e}-compact${l}last-item`]:a,[`${e}-compact${l}item-rtl`]:t==="rtl"})},[e,t,n]);return{compactSize:n==null?void 0:n.compactSize,compactDirection:n==null?void 0:n.compactDirection,compactItemClassnames:r}},O3=e=>{const{children:t}=e;return s.createElement(Zs.Provider,{value:null},t)},N3=e=>{const{children:t}=e,n=dC(e,["children"]);return s.createElement(Zs.Provider,{value:s.useMemo(()=>n,[n])},t)},I3=e=>{const{getPrefixCls:t,direction:n}=s.useContext(Xe),{size:r,direction:o,block:i,prefixCls:a,className:l,rootClassName:c,children:u}=e,d=dC(e,["size","direction","block","prefixCls","className","rootClassName","children"]),f=qn(x=>r!=null?r:x),m=t("space-compact",a),[p,h]=uC(m),b=G(m,h,{[`${m}-rtl`]:n==="rtl",[`${m}-block`]:i,[`${m}-vertical`]:o==="vertical"},l,c),v=s.useContext(Zs),y=Tn(u),C=s.useMemo(()=>y.map((x,E)=>{const S=(x==null?void 0:x.key)||`${m}-item-${E}`;return s.createElement(N3,{key:S,compactSize:f,compactDirection:o,isFirstItem:E===0&&(!v||(v==null?void 0:v.isFirstItem)),isLastItem:E===y.length-1&&(!v||(v==null?void 0:v.isLastItem))},x)}),[r,y,v]);return y.length===0?null:p(s.createElement("div",Object.assign({className:b},d),C))};var _3=globalThis&&globalThis.__rest||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 fC=s.createContext(void 0),T3=e=>{const{getPrefixCls:t,direction:n}=s.useContext(Xe),{prefixCls:r,size:o,className:i}=e,a=_3(e,["prefixCls","size","className"]),l=t("btn-group",r),[,,c]=Hn(),u=s.useMemo(()=>{switch(o){case"large":return"lg";case"small":return"sm";default:return""}},[o]);if(process.env.NODE_ENV!=="production"){const f=gt("Button.Group");f.deprecated(!1,"Button.Group","Space.Compact"),process.env.NODE_ENV!=="production"&&f(!o||["large","small","middle"].includes(o),"usage","Invalid prop `size`.")}const d=G(l,{[`${l}-${u}`]:u,[`${l}-rtl`]:n==="rtl"},i,c);return s.createElement(fC.Provider,{value:o},s.createElement("div",Object.assign({},a,{className:d})))},mC=/^[\u4E00-\u9FA5]{2}$/,zf=mC.test.bind(mC);function pC(e){return e==="danger"?{danger:!0}:{type:e}}function vC(e){return typeof e=="string"}function ec(e){return e==="text"||e==="link"}function P3(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&vC(e.type)&&zf(e.props.children)?Gn(e,{children:e.props.children.split("").join(n)}):vC(e)?zf(e)?g.createElement("span",null,e.split("").join(n)):g.createElement("span",null,e):A0(e)?g.createElement("span",null,e):e}function M3(e,t){let n=!1;const r=[];return g.Children.forEach(e,o=>{const i=typeof o,a=i==="string"||i==="number";if(n&&a){const l=r.length-1,c=r[l];r[l]=`${c}${o}`}else r.push(o);n=a}),g.Children.map(r,o=>P3(o,t))}["default","primary","danger"].concat(ge(Bo));const Bf=g.forwardRef((e,t)=>{const{className:n,style:r,children:o,prefixCls:i}=e,a=G(`${i}-icon`,n);return g.createElement("span",{ref:t,className:a,style:r},o)}),gC=g.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:o,iconClassName:i}=e,a=G(`${n}-loading-icon`,r);return g.createElement(Bf,{prefixCls:n,className:a,style:o,ref:t},g.createElement(ti,{className:i}))}),kf=()=>({width:0,opacity:0,transform:"scale(0)"}),Ff=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),D3=e=>{const{prefixCls:t,loading:n,existIcon:r,className:o,style:i,mount:a}=e,l=!!n;return r?g.createElement(gC,{prefixCls:t,className:o,style:i}):g.createElement(cr,{visible:l,motionName:`${t}-loading-icon-motion`,motionAppear:!a,motionEnter:!a,motionLeave:!a,removeOnLeave:!0,onAppearStart:kf,onAppearActive:Ff,onEnterStart:kf,onEnterActive:Ff,onLeaveStart:Ff,onLeaveActive:kf},(c,u)=>{let{className:d,style:f}=c;const m=Object.assign(Object.assign({},i),f);return g.createElement(gC,{prefixCls:t,className:G(o,d),style:m,ref:u})})},hC=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),A3=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:o,colorErrorHover:i}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(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}},hC(`${t}-primary`,o),hC(`${t}-danger`,i)]}};var R3=["b"],j3=["v"],Hf=function(t){return Math.round(Number(t||0))},L3=function(t){if(t instanceof kt)return t;if(t&&He(t)==="object"&&"h"in t&&"b"in t){var n=t,r=n.b,o=tt(n,R3);return q(q({},o),{},{v:r})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},$o=function(e){jr(n,e);var t=Zr(n);function n(r){return bn(this,n),t.call(this,L3(r))}return yn(n,[{key:"toHsbString",value:function(){var o=this.toHsb(),i=Hf(o.s*100),a=Hf(o.b*100),l=Hf(o.h),c=o.a,u="hsb(".concat(l,", ").concat(i,"%, ").concat(a,"%)"),d="hsba(".concat(l,", ").concat(i,"%, ").concat(a,"%, ").concat(c.toFixed(c===0?0:2),")");return c===1?u:d}},{key:"toHsb",value:function(){var o=this.toHsv(),i=o.v,a=tt(o,j3);return q(q({},a),{},{b:i,a:this.a})}}]),n}(kt),z3="rc-color-picker",Hi=function(t){return t instanceof $o?t:new $o(t)},B3=Hi("#1677ff"),bC=function(t){var n=t.offset,r=t.targetRef,o=t.containerRef,i=t.color,a=t.type,l=o.current.getBoundingClientRect(),c=l.width,u=l.height,d=r.current.getBoundingClientRect(),f=d.width,m=d.height,p=f/2,h=m/2,b=(n.x+p)/c,v=1-(n.y+h)/u,y=i.toHsb(),C=b,x=(n.x+p)/c*360;if(a)switch(a){case"hue":return Hi(q(q({},y),{},{h:x<=0?0:x}));case"alpha":return Hi(q(q({},y),{},{a:C<=0?0:C}))}return Hi({h:y.h,s:b<=0?0:b,b:v>=1?1:v,a:y.a})},yC=function(t,n){var r=t.toHsb();switch(n){case"hue":return{x:r.h/360*100,y:50};case"alpha":return{x:t.a*100,y:50};default:return{x:r.s*100,y:(1-r.b)*100}}},k3=function(t){var n=t.color,r=t.prefixCls,o=t.className,i=t.style,a=t.onClick,l="".concat(r,"-color-block");return g.createElement("div",{className:G(l,o),style:i,onClick:a},g.createElement("div",{className:"".concat(l,"-inner"),style:{background:n}}))};function F3(e){var t="touches"in e?e.touches[0]:e,n=document.documentElement.scrollLeft||document.body.scrollLeft||window.pageXOffset,r=document.documentElement.scrollTop||document.body.scrollTop||window.pageYOffset;return{pageX:t.pageX-n,pageY:t.pageY-r}}function CC(e){var t=e.targetRef,n=e.containerRef,r=e.direction,o=e.onDragChange,i=e.onDragChangeComplete,a=e.calculate,l=e.color,c=e.disabledDrag,u=g.useState({x:0,y:0}),d=ae(u,2),f=d[0],m=d[1],p=g.useRef(null),h=g.useRef(null);g.useEffect(function(){m(a())},[l]),g.useEffect(function(){return function(){document.removeEventListener("mousemove",p.current),document.removeEventListener("mouseup",h.current),document.removeEventListener("touchmove",p.current),document.removeEventListener("touchend",h.current),p.current=null,h.current=null}},[]);var b=function(E){var S=F3(E),$=S.pageX,O=S.pageY,I=n.current.getBoundingClientRect(),w=I.x,N=I.y,_=I.width,P=I.height,M=t.current.getBoundingClientRect(),D=M.width,T=M.height,A=D/2,R=T/2,L=Math.max(0,Math.min($-w,_))-A,j=Math.max(0,Math.min(O-N,P))-R,z={x:L,y:r==="x"?f.y:j};if(D===0&&T===0||D!==T)return!1;o==null||o(z)},v=function(E){E.preventDefault(),b(E)},y=function(E){E.preventDefault(),document.removeEventListener("mousemove",p.current),document.removeEventListener("mouseup",h.current),document.removeEventListener("touchmove",p.current),document.removeEventListener("touchend",h.current),p.current=null,h.current=null,i==null||i()},C=function(E){document.removeEventListener("mousemove",p.current),document.removeEventListener("mouseup",h.current),!c&&(b(E),document.addEventListener("mousemove",v),document.addEventListener("mouseup",y),document.addEventListener("touchmove",v),document.addEventListener("touchend",y),p.current=v,h.current=y)};return[f,C]}var SC=function(t){var n=t.size,r=n===void 0?"default":n,o=t.color,i=t.prefixCls;return g.createElement("div",{className:G("".concat(i,"-handler"),H({},"".concat(i,"-handler-sm"),r==="small")),style:{backgroundColor:o}})},xC=function(t){var n=t.children,r=t.style,o=t.prefixCls;return g.createElement("div",{className:"".concat(o,"-palette"),style:q({position:"relative"},r)},n)},EC=g.forwardRef(function(e,t){var n=e.children,r=e.x,o=e.y;return g.createElement("div",{ref:t,style:{position:"absolute",left:"".concat(r,"%"),top:"".concat(o,"%"),zIndex:1,transform:"translate(-50%, -50%)"}},n)}),H3=function(t){var n=t.color,r=t.onChange,o=t.prefixCls,i=t.onChangeComplete,a=t.disabled,l=g.useRef(),c=g.useRef(),u=g.useRef(n),d=qt(function(b){var v=bC({offset:b,targetRef:c,containerRef:l,color:n});u.current=v,r(v)}),f=CC({color:n,containerRef:l,targetRef:c,calculate:function(){return yC(n)},onDragChange:d,onDragChangeComplete:function(){return i==null?void 0:i(u.current)},disabledDrag:a}),m=ae(f,2),p=m[0],h=m[1];return g.createElement("div",{ref:l,className:"".concat(o,"-select"),onMouseDown:h,onTouchStart:h},g.createElement(xC,{prefixCls:o},g.createElement(EC,{x:p.x,y:p.y,ref:c},g.createElement(SC,{color:n.toRgbString(),prefixCls:o})),g.createElement("div",{className:"".concat(o,"-saturation"),style:{backgroundColor:"hsl(".concat(n.toHsb().h,",100%, 50%)"),backgroundImage:"linear-gradient(0deg, #000, transparent),linear-gradient(90deg, #fff, hsla(0, 0%, 100%, 0))"}})))},V3=function(t,n){var r=ln(t,{value:n}),o=ae(r,2),i=o[0],a=o[1],l=g.useMemo(function(){return Hi(i)},[i]);return[l,a]},W3=function(t){var n=t.colors,r=t.children,o=t.direction,i=o===void 0?"to right":o,a=t.type,l=t.prefixCls,c=g.useMemo(function(){return n.map(function(u,d){var f=Hi(u);return a==="alpha"&&d===n.length-1&&(f=new $o(f.setA(1))),f.toRgbString()}).join(",")},[n,a]);return g.createElement("div",{className:"".concat(l,"-gradient"),style:{position:"absolute",inset:0,background:"linear-gradient(".concat(i,", ").concat(c,")")}},r)},K3=function(t){var n=t.prefixCls,r=t.colors,o=t.disabled,i=t.onChange,a=t.onChangeComplete,l=t.color,c=t.type,u=g.useRef(),d=g.useRef(),f=g.useRef(l),m=function(S){return c==="hue"?S.getHue():S.a*100},p=qt(function(E){var S=bC({offset:E,targetRef:d,containerRef:u,color:l,type:c});f.current=S,i(m(S))}),h=CC({color:l,targetRef:d,containerRef:u,calculate:function(){return yC(l,c)},onDragChange:p,onDragChangeComplete:function(){a(m(f.current))},direction:"x",disabledDrag:o}),b=ae(h,2),v=b[0],y=b[1],C=g.useMemo(function(){if(c==="hue"){var E=l.toHsb();E.s=1,E.b=1,E.a=1;var S=new $o(E);return S}return l},[l,c]),x=g.useMemo(function(){return r.map(function(E){return"".concat(E.color," ").concat(E.percent,"%")})},[r]);return g.createElement("div",{ref:u,className:G("".concat(n,"-slider"),"".concat(n,"-slider-").concat(c)),onMouseDown:y,onTouchStart:y},g.createElement(xC,{prefixCls:n},g.createElement(EC,{x:v.x,y:v.y,ref:d},g.createElement(SC,{size:"small",color:C.toHexString(),prefixCls:n})),g.createElement(W3,{colors:x,type:c,prefixCls:n})))};function q3(e){return s.useMemo(function(){var t=e||{},n=t.slider;return[n||K3]},[e])}var U3=[{color:"rgb(255, 0, 0)",percent:0},{color:"rgb(255, 255, 0)",percent:17},{color:"rgb(0, 255, 0)",percent:33},{color:"rgb(0, 255, 255)",percent:50},{color:"rgb(0, 0, 255)",percent:67},{color:"rgb(255, 0, 255)",percent:83},{color:"rgb(255, 0, 0)",percent:100}],G3=g.forwardRef(function(e,t){var n=e.value,r=e.defaultValue,o=e.prefixCls,i=o===void 0?z3:o,a=e.onChange,l=e.onChangeComplete,c=e.className,u=e.style,d=e.panelRender,f=e.disabledAlpha,m=f===void 0?!1:f,p=e.disabled,h=p===void 0?!1:p,b=e.components,v=q3(b),y=ae(v,1),C=y[0],x=V3(r||B3,n),E=ae(x,2),S=E[0],$=E[1],O=g.useMemo(function(){return S.setA(1).toRgbString()},[S]),I=function(j,z){n||$(j),a==null||a(j,z)},w=function(j){return new $o(S.setHue(j))},N=function(j){return new $o(S.setA(j/100))},_=function(j){I(w(j),{type:"hue",value:j})},P=function(j){I(N(j),{type:"alpha",value:j})},M=function(j){l&&l(w(j))},D=function(j){l&&l(N(j))},T=G("".concat(i,"-panel"),c,H({},"".concat(i,"-panel-disabled"),h)),A={prefixCls:i,disabled:h,color:S},R=g.createElement(g.Fragment,null,g.createElement(H3,ce({onChange:I},A,{onChangeComplete:l})),g.createElement("div",{className:"".concat(i,"-slider-container")},g.createElement("div",{className:G("".concat(i,"-slider-group"),H({},"".concat(i,"-slider-group-disabled-alpha"),m))},g.createElement(C,ce({},A,{type:"hue",colors:U3,min:0,max:359,value:S.getHue(),onChange:_,onChangeComplete:M})),!m&&g.createElement(C,ce({},A,{type:"alpha",colors:[{percent:0,color:"rgba(255, 0, 4, 0)"},{percent:100,color:O}],min:0,max:100,value:S.a*100,onChange:P,onChangeComplete:D}))),g.createElement(k3,{color:S.toRgbString(),prefixCls:i})));return g.createElement("div",{className:T,style:u,ref:t},typeof d=="function"?d(R):R)});process.env.NODE_ENV!=="production"&&(G3.displayName="ColorPicker");const X3=(e,t)=>(e==null?void 0:e.replace(/[^\w/]/g,"").slice(0,t?8:6))||"",Q3=(e,t)=>e?X3(e,t):"";let Y3=function(){function e(t){bn(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(o=>{let{color:i,percent:a}=o;return{color:new e(i),percent:a}}),this.metaColor=new $o(this.colors[0].color.metaColor)):this.metaColor=new $o(r?"":t),(!t||r&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return yn(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return Q3(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 i=n.colors[o];return r.percent===i.percent&&r.color.equals(i.color)}):this.toHexString()===n.toHexString()}}])}();const Vf=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
|
|
175
|
+
opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
|
|
176
|
+
opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),J3=e=>({animationDuration:e,animationFillMode:"both"}),Z3=e=>({animationDuration:e,animationFillMode:"both"}),tc=function(e,t,n,r){const i=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[`
|
|
177
|
+
${i}${e}-enter,
|
|
178
|
+
${i}${e}-appear
|
|
179
|
+
`]:Object.assign(Object.assign({},J3(r)),{animationPlayState:"paused"}),[`${i}${e}-leave`]:Object.assign(Object.assign({},Z3(r)),{animationPlayState:"paused"}),[`
|
|
180
|
+
${i}${e}-enter${e}-enter-active,
|
|
181
|
+
${i}${e}-appear${e}-appear-active
|
|
182
|
+
`]:{animationName:t,animationPlayState:"running"},[`${i}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},eR=new _t("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),tR=new _t("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),nR=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{antCls:n}=e,r=`${n}-fade`,o=t?"&":"";return[tc(r,eR,tR,e.motionDurationMid,t),{[`
|
|
183
|
+
${o}${r}-enter,
|
|
184
|
+
${o}${r}-appear
|
|
185
|
+
`]:{opacity:0,animationTimingFunction:"linear"},[`${o}${r}-leave`]:{animationTimingFunction:"linear"}}]},rR=new _t("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),oR=new _t("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),iR=new _t("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),aR=new _t("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),lR=new _t("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),sR=new _t("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),cR=new _t("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),uR=new _t("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),dR={"move-up":{inKeyframes:cR,outKeyframes:uR},"move-down":{inKeyframes:rR,outKeyframes:oR},"move-left":{inKeyframes:iR,outKeyframes:aR},"move-right":{inKeyframes:lR,outKeyframes:sR}},nc=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=dR[t];return[tc(r,o,i,e.motionDurationMid),{[`
|
|
186
|
+
${r}-enter,
|
|
187
|
+
${r}-appear
|
|
188
|
+
`]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},Wf=new _t("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Kf=new _t("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),qf=new _t("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),Uf=new _t("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),fR=new _t("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),mR=new _t("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),pR=new _t("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),vR=new _t("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),gR={"slide-up":{inKeyframes:Wf,outKeyframes:Kf},"slide-down":{inKeyframes:qf,outKeyframes:Uf},"slide-left":{inKeyframes:fR,outKeyframes:mR},"slide-right":{inKeyframes:pR,outKeyframes:vR}},Fo=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=gR[t];return[tc(r,o,i,e.motionDurationMid),{[`
|
|
189
|
+
${r}-enter,
|
|
190
|
+
${r}-appear
|
|
191
|
+
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},Gf=new _t("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),hR=new _t("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),$C=new _t("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),wC=new _t("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),bR=new _t("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),yR=new _t("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),CR=new _t("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),SR=new _t("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),xR=new _t("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),ER=new _t("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),$R=new _t("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),wR=new _t("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),OR={zoom:{inKeyframes:Gf,outKeyframes:hR},"zoom-big":{inKeyframes:$C,outKeyframes:wC},"zoom-big-fast":{inKeyframes:$C,outKeyframes:wC},"zoom-left":{inKeyframes:CR,outKeyframes:SR},"zoom-right":{inKeyframes:xR,outKeyframes:ER},"zoom-up":{inKeyframes:bR,outKeyframes:yR},"zoom-down":{inKeyframes:$R,outKeyframes:wR}},nl=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=OR[t];return[tc(r,o,i,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[`
|
|
192
|
+
${r}-enter,
|
|
193
|
+
${r}-appear
|
|
194
|
+
`]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},NR=(e,t)=>{const{r:n,g:r,b:o,a:i}=e.toRgb(),a=new $o(e.toRgbString()).onBackground(t).toHsv();return i<=.5?a.v>.5:n*.299+r*.587+o*.114>192},OC=e=>{const{paddingInline:t,onlyIconSize:n}=e;return xt(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n})},NC=e=>{var t,n,r,o,i,a;const l=(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:Ls(l),f=(i=e.contentLineHeightSM)!==null&&i!==void 0?i:Ls(c),m=(a=e.contentLineHeightLG)!==null&&a!==void 0?a:Ls(u),p=NR(new Y3(e.colorBgSolid),"#fff")?"#000":"#fff",h=Bo.reduce((b,v)=>Object.assign(Object.assign({},b),{[`${v}ShadowColor`]:`0 ${U(e.controlOutlineWidth)} 0 ${Qa(e[`${v}1`],e.colorBgContainer)}`}),{});return Object.assign(Object.assign({},h),{fontWeight:400,defaultShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,primaryShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,dangerShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:"inherit",onlyIconSizeSM:"inherit",onlyIconSizeLG:"inherit",groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,solidTextColor:p,contentFontSize:l,contentFontSizeSM:c,contentFontSizeLG:u,contentLineHeight:d,contentLineHeightSM:f,contentLineHeightLG:m,paddingBlock:Math.max((e.controlHeight-l*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)})},IR=e=>{const{componentCls:t,iconCls:n,fontWeight:r,opacityLoading:o,motionDurationSlow:i,motionEaseInOut:a,marginXS:l,calc:c}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:e.marginXS,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${U(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`]:Ya(),"> a":{color:"currentColor"},"&:not(:disabled)":Ir(e),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${n})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${t}-icon-only`]:{paddingInline:0,[`&${t}-compact-item`]:{flex:"none"},[`&${t}-round`]:{width:"auto"}},[`&${t}-loading`]:{opacity:o,cursor:"default"},[`${t}-loading-icon`]:{transition:["width","opacity","margin"].map(u=>`${u} ${i} ${a}`).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:c(l).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:c(l).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:c(l).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:c(l).mul(-1).equal()}}}}}},IC=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),_R=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),TR=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.calc(e.controlHeight).div(2).equal(),paddingInlineEnd:e.calc(e.controlHeight).div(2).equal()}),PR=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),rc=(e,t,n,r,o,i,a,l)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},IC(e,Object.assign({background:t},a),Object.assign({background:t},l))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:i||void 0}})}),MR=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},PR(e))}),DR=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),oc=(e,t,n,r)=>{const i=r&&["link","text"].includes(r)?DR:MR;return Object.assign(Object.assign({},i(e)),IC(e.componentCls,t,n))},ic=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:n},oc(e,r,o))}),ac=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:n},oc(e,r,o))}),lc=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),sc=(e,t,n,r)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},oc(e,n,r))}),lo=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-${n}`]:Object.assign({color:t,boxShadow:"none"},oc(e,r,o,n))}),AR=e=>{const{componentCls:t}=e;return Bo.reduce((n,r)=>{const o=e[`${r}6`],i=e[`${r}1`],a=e[`${r}5`],l=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`]},ic(e,e.colorTextLightSolid,o,{background:a},{background:u})),ac(e,o,e.colorBgContainer,{color:a,borderColor:a,background:e.colorBgContainer},{color:u,borderColor:u,background:e.colorBgContainer})),lc(e)),sc(e,i,{background:l},{background:c})),lo(e,o,"link",{color:a},{color:u})),lo(e,o,"text",{color:a,background:i},{color:u,background:c}))})},{})},RR=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},ic(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive})),lc(e)),sc(e,e.colorFillTertiary,{background:e.colorFillSecondary},{background:e.colorFill})),rc(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),lo(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),jR=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},ac(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),lc(e)),sc(e,e.colorPrimaryBg,{background:e.colorPrimaryBgHover},{background:e.colorPrimaryBorder})),lo(e,e.colorPrimaryText,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),lo(e,e.colorPrimaryText,"link",{color:e.colorPrimaryTextHover,background:e.linkHoverBg},{color:e.colorPrimaryTextActive})),rc(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),LR=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},ic(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),ac(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),lc(e)),sc(e,e.colorErrorBg,{background:e.colorErrorBgFilledHover},{background:e.colorErrorBgActive})),lo(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),lo(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),rc(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),zR=e=>Object.assign(Object.assign({},lo(e,e.colorLink,"link",{color:e.colorLinkHover},{color:e.colorLinkActive})),rc(e.componentCls,e.ghostBg,e.colorInfo,e.colorInfo,e.colorTextDisabled,e.colorBorder,{color:e.colorInfoHover,borderColor:e.colorInfoHover},{color:e.colorInfoActive,borderColor:e.colorInfoActive})),BR=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-color-default`]:RR(e),[`${t}-color-primary`]:jR(e),[`${t}-color-dangerous`]:LR(e),[`${t}-color-link`]:zR(e)},AR(e))},kR=e=>Object.assign(Object.assign(Object.assign(Object.assign({},ac(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),lo(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),ic(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),lo(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),Xf=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:n,controlHeight:r,fontSize:o,borderRadius:i,buttonPaddingHorizontal:a,iconCls:l,buttonPaddingVertical:c,buttonIconOnlyFontSize:u}=e;return[{[t]:{fontSize:o,height:r,padding:`${U(c)} ${U(a)}`,borderRadius:i,[`&${n}-icon-only`]:{width:r,[l]:{fontSize:u}}}},{[`${n}${n}-circle${t}`]:_R(e)},{[`${n}${n}-round${t}`]:TR(e)}]},FR=e=>{const t=xt(e,{fontSize:e.contentFontSize});return Xf(t,e.componentCls)},HR=e=>{const t=xt(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return Xf(t,`${e.componentCls}-sm`)},VR=e=>{const t=xt(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return Xf(t,`${e.componentCls}-lg`)},WR=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},KR=Dt("Button",e=>{const t=OC(e);return[IR(t),FR(t),HR(t),VR(t),WR(t),BR(t),kR(t),A3(t)]},NC,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function qR(e,t,n){const{focusElCls:r,focus:o,borderElCls:i}=n,a=i?"> *":"",l=["hover",o?"focus":null,"active"].filter(Boolean).map(c=>`&:${c} ${a}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[l]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${a}`]:{zIndex:0}})}}function UR(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 Qf(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:n}=e,r=`${n}-compact`;return{[r]:Object.assign(Object.assign({},qR(e,r,t)),UR(n,r,t))}}function GR(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function XR(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 QR(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},GR(e,t)),XR(e.componentCls,t))}}const YR=e=>{const{componentCls:t,colorPrimaryHover:n,lineWidth:r,calc:o}=e,i=o(r).mul(-1).equal(),a=l=>{const c=`${t}-compact${l?"-vertical":""}-item${t}-primary:not([disabled])`;return{[`${c} + ${c}::before`]:{position:"absolute",top:l?i:0,insetInlineStart:l?0:i,backgroundColor:n,content:'""',width:l?"100%":r,height:l?r:"100%"}}};return Object.assign(Object.assign({},a()),a(!0))},JR=Li(["Button","compact"],e=>{const t=OC(e);return[Qf(t),QR(t),YR(t)]},NC);var ZR=globalThis&&globalThis.__rest||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 ej(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 tj={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]},cc=g.forwardRef((e,t)=>{var n,r;const{loading:o=!1,prefixCls:i,color:a,variant:l,type:c,danger:u=!1,shape:d="default",size:f,styles:m,disabled:p,className:h,rootClassName:b,children:v,icon:y,iconPosition:C="start",ghost:x=!1,block:E=!1,htmlType:S="button",classNames:$,style:O={},autoInsertSpace:I,autoFocus:w}=e,N=ZR(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace","autoFocus"]),_=c||"default",{button:P}=g.useContext(Xe),[M,D]=g.useMemo(()=>{if(a&&l)return[a,l];if(c||u){const ve=tj[_]||[];return u?["danger",ve[1]]:ve}return P!=null&&P.color&&(P!=null&&P.variant)?[P.color,P.variant]:["default","outlined"]},[c,a,l,u,P==null?void 0:P.variant,P==null?void 0:P.color]),A=M==="danger"?"dangerous":M,{getPrefixCls:R,direction:L,autoInsertSpace:j,className:z,style:B,classNames:K,styles:W}=An("button"),k=(n=I!=null?I:j)!==null&&n!==void 0?n:!0,V=R("btn",i),[Q,J,Y]=KR(V),te=g.useContext(oo),oe=p!=null?p:te,X=g.useContext(fC),F=g.useMemo(()=>ej(o),[o]),[ee,Z]=g.useState(F.loading),[ne,re]=g.useState(!1),se=g.useRef(null),le=Jr(t,se),he=g.Children.count(v)===1&&!y&&!ec(D),fe=g.useRef(!0);g.useEffect(()=>(fe.current=!1,()=>{fe.current=!0}),[]),g.useEffect(()=>{let ve=null;F.delay>0?ve=setTimeout(()=>{ve=null,Z(!0)},F.delay):Z(F.loading);function Se(){ve&&(clearTimeout(ve),ve=null)}return Se},[F]),g.useEffect(()=>{if(!se.current||!k)return;const ve=se.current.textContent||"";he&&zf(ve)?ne||re(!0):ne&&re(!1)}),g.useEffect(()=>{w&&se.current&&se.current.focus()},[]);const ie=g.useCallback(ve=>{var Se;if(ee||oe){ve.preventDefault();return}(Se=e.onClick)===null||Se===void 0||Se.call(e,("href"in e,ve))},[e.onClick,ee,oe]);if(process.env.NODE_ENV!=="production"){const ve=gt("Button");process.env.NODE_ENV!=="production"&&ve(!(typeof y=="string"&&y.length>2),"breaking",`\`icon\` is using ReactNode instead of string naming in v4. Please check \`${y}\` at https://ant.design/components/icon`),process.env.NODE_ENV!=="production"&&ve(!(x&&ec(D)),"usage","`link` or `text` button can't be a `ghost` button.")}const{compactSize:ue,compactItemClassnames:de}=Fi(V,L),me={large:"lg",small:"sm",middle:void 0},Ce=qn(ve=>{var Se,Je;return(Je=(Se=f!=null?f:ue)!==null&&Se!==void 0?Se:X)!==null&&Je!==void 0?Je:ve}),Oe=Ce&&(r=me[Ce])!==null&&r!==void 0?r:"",Te=ee?"loading":y,je=tn(N,["navigate"]),Ne=G(V,J,Y,{[`${V}-${d}`]:d!=="default"&&d,[`${V}-${_}`]:_,[`${V}-dangerous`]:u,[`${V}-color-${A}`]:A,[`${V}-variant-${D}`]:D,[`${V}-${Oe}`]:Oe,[`${V}-icon-only`]:!v&&v!==0&&!!Te,[`${V}-background-ghost`]:x&&!ec(D),[`${V}-loading`]:ee,[`${V}-two-chinese-chars`]:ne&&k&&!ee,[`${V}-block`]:E,[`${V}-rtl`]:L==="rtl",[`${V}-icon-end`]:C==="end"},de,h,b,z),Ie=Object.assign(Object.assign({},B),O),xe=G($==null?void 0:$.icon,K.icon),be=Object.assign(Object.assign({},(m==null?void 0:m.icon)||{}),W.icon||{}),Ee=y&&!ee?g.createElement(Bf,{prefixCls:V,className:xe,style:be},y):o&&typeof o=="object"&&o.icon?g.createElement(Bf,{prefixCls:V,className:xe,style:be},o.icon):g.createElement(D3,{existIcon:!!y,prefixCls:V,loading:ee,mount:fe.current}),$e=v||v===0?M3(v,he&&k):null;if(je.href!==void 0)return Q(g.createElement("a",Object.assign({},je,{className:G(Ne,{[`${V}-disabled`]:oe}),href:oe?void 0:je.href,style:Ie,onClick:ie,ref:le,tabIndex:oe?-1:0}),Ee,$e));let _e=g.createElement("button",Object.assign({},N,{type:S,className:Ne,style:Ie,onClick:ie,disabled:oe,ref:le}),Ee,$e,de&&g.createElement(JR,{prefixCls:V}));return ec(D)||(_e=g.createElement(tl,{component:"Button",disabled:ee},_e)),Q(_e)});cc.Group=T3,cc.__ANT_BUTTON=!0,process.env.NODE_ENV!=="production"&&(cc.displayName="Button");const on=cc;function Yf(e){return!!(e!=null&&e.then)}const _C=e=>{const{type:t,children:n,prefixCls:r,buttonProps:o,close:i,autoFocus:a,emitEvent:l,isSilent:c,quitOnNullishReturnValue:u,actionFn:d}=e,f=s.useRef(!1),m=s.useRef(null),[p,h]=si(!1),b=function(){i==null||i.apply(void 0,arguments)};s.useEffect(()=>{let C=null;return a&&(C=setTimeout(()=>{var x;(x=m.current)===null||x===void 0||x.focus({preventScroll:!0})})),()=>{C&&clearTimeout(C)}},[]);const v=C=>{Yf(C)&&(h(!0),C.then(function(){h(!1,!0),b.apply(void 0,arguments),f.current=!1},x=>{if(h(!1,!0),f.current=!1,!(c!=null&&c()))return Promise.reject(x)}))},y=C=>{if(f.current)return;if(f.current=!0,!d){b();return}let x;if(l){if(x=d(C),u&&!Yf(x)){f.current=!1,b(C);return}}else if(d.length)x=d(i),f.current=!1;else if(x=d(),!Yf(x)){b();return}v(x)};return s.createElement(on,Object.assign({},pC(t),{onClick:y,loading:p,prefixCls:r},o,{ref:m}),n)},rl=g.createContext({}),{Provider:TC}=rl,PC=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:o,rootPrefixCls:i,close:a,onCancel:l,onConfirm:c}=g.useContext(rl);return o?g.createElement(_C,{isSilent:r,actionFn:l,close:function(){a==null||a.apply(void 0,arguments),c==null||c(!1)},autoFocus:e==="cancel",buttonProps:t,prefixCls:`${i}-btn`},n):null},MC=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:o,okTextLocale:i,okType:a,onConfirm:l,onOk:c}=g.useContext(rl);return g.createElement(_C,{isSilent:n,type:a||"primary",actionFn:c,close:function(){t==null||t.apply(void 0,arguments),l==null||l(!0)},autoFocus:e==="ok",buttonProps:r,prefixCls:`${o}-btn`},i)};var DC=s.createContext(null),AC=[];function nj(e,t){var n=s.useState(function(){if(!_n())return null;var h=document.createElement("div");return process.env.NODE_ENV!=="production"&&t&&h.setAttribute("data-debug",t),h}),r=ae(n,1),o=r[0],i=s.useRef(!1),a=s.useContext(DC),l=s.useState(AC),c=ae(l,2),u=c[0],d=c[1],f=a||(i.current?void 0:function(h){d(function(b){var v=[h].concat(ge(b));return v})});function m(){o.parentElement||document.body.appendChild(o),i.current=!0}function p(){var h;(h=o.parentElement)===null||h===void 0||h.removeChild(o),i.current=!1}return wt(function(){return e?a?a(m):m():p(),p},[e]),wt(function(){u.length&&(u.forEach(function(h){return h()}),d(AC))},[u]),[o,f]}var Jf;function RC(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,i;if(e){var a=getComputedStyle(e);r.scrollbarColor=a.scrollbarColor,r.scrollbarWidth=a.scrollbarWidth;var l=getComputedStyle(e,"::-webkit-scrollbar"),c=parseInt(l.width,10),u=parseInt(l.height,10);try{var d=c?"width: ".concat(l.width,";"):"",f=u?"height: ".concat(l.height,";"):"";ho(`
|
|
195
|
+
#`.concat(t,`::-webkit-scrollbar {
|
|
196
|
+
`).concat(d,`
|
|
197
|
+
`).concat(f,`
|
|
198
|
+
}`),t)}catch(h){console.error(h),o=c,i=u}}document.body.appendChild(n);var m=e&&o&&!isNaN(o)?o:n.offsetWidth-n.clientWidth,p=e&&i&&!isNaN(i)?i:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),_a(t),{width:m,height:p}}function jC(e){return typeof document=="undefined"?0:((e||Jf===void 0)&&(Jf=RC()),Jf.width)}function Zf(e){return typeof document=="undefined"||!e||!(e instanceof Element)?{width:0,height:0}:RC(e)}function rj(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var oj="rc-util-locker-".concat(Date.now()),LC=0;function ij(e){var t=!!e,n=s.useState(function(){return LC+=1,"".concat(oj,"_").concat(LC)}),r=ae(n,1),o=r[0];wt(function(){if(t){var i=Zf(document.body).width,a=rj();ho(`
|
|
199
|
+
html body {
|
|
200
|
+
overflow-y: hidden;
|
|
201
|
+
`.concat(a?"width: calc(100% - ".concat(i,"px);"):"",`
|
|
202
|
+
}`),o)}else _a(o);return function(){_a(o)}},[t,o])}var zC=!1;function aj(e){return typeof e=="boolean"&&(zC=e),zC}var BC=function(t){return t===!1?!1:!_n()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},ol=s.forwardRef(function(e,t){var n=e.open,r=e.autoLock,o=e.getContainer,i=e.debug,a=e.autoDestroy,l=a===void 0?!0:a,c=e.children,u=s.useState(n),d=ae(u,2),f=d[0],m=d[1],p=f||n;process.env.NODE_ENV!=="production"&&Ge(_n()||!n,"Portal only work in client side. Please call 'useEffect' to show Portal instead default render in SSR."),s.useEffect(function(){(l||n)&&m(n)},[n,l]);var h=s.useState(function(){return BC(o)}),b=ae(h,2),v=b[0],y=b[1];s.useEffect(function(){var P=BC(o);y(P!=null?P:null)});var C=nj(p&&!v,i),x=ae(C,2),E=x[0],S=x[1],$=v!=null?v:E;ij(r&&n&&_n()&&($===E||$===document.body));var O=null;if(c&&Rr(c)&&t){var I=c;O=I.ref}var w=Jr(O,t);if(!p||!_n()||v===void 0)return null;var N=$===!1||aj(),_=c;return t&&(_=s.cloneElement(c,{ref:w})),s.createElement(DC.Provider,{value:S},N?_:nr.createPortal(_,$))});process.env.NODE_ENV!=="production"&&(ol.displayName="Portal");var kC=s.createContext({});function lj(){var e=q({},s);return e.useId}var FC=0,HC=lj();const uc=HC?function(t){var n=HC();return t||(process.env.NODE_ENV==="test"?"test-id":n)}:function(t){var n=s.useState("ssr-id"),r=ae(n,2),o=r[0],i=r[1];return s.useEffect(function(){var a=FC;FC+=1,i("rc_unique_".concat(a))},[]),t||(process.env.NODE_ENV==="test"?"test-id":o)};function VC(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function WC(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 sj(e){var t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,o=r.defaultView||r.parentWindow;return n.left+=WC(o),n.top+=WC(o,!0),n}const cj=s.memo(function(e){var t=e.children;return t},function(e,t){var n=t.shouldUpdate;return!n});var uj={width:0,height:0,overflow:"hidden",outline:"none"},dj={outline:"none"},em=g.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,i=e.title,a=e.ariaId,l=e.footer,c=e.closable,u=e.closeIcon,d=e.onClose,f=e.children,m=e.bodyStyle,p=e.bodyProps,h=e.modalRender,b=e.onMouseDown,v=e.onMouseUp,y=e.holderRef,C=e.visible,x=e.forceRender,E=e.width,S=e.height,$=e.classNames,O=e.styles,I=g.useContext(kC),w=I.panel,N=Jr(y,w),_=g.useRef(),P=g.useRef();g.useImperativeHandle(t,function(){return{focus:function(){var K;(K=_.current)===null||K===void 0||K.focus({preventScroll:!0})},changeActive:function(K){var W=document,k=W.activeElement;K&&k===P.current?_.current.focus({preventScroll:!0}):!K&&k===_.current&&P.current.focus({preventScroll:!0})}}});var M={};E!==void 0&&(M.width=E),S!==void 0&&(M.height=S);var D=l?g.createElement("div",{className:G("".concat(n,"-footer"),$==null?void 0:$.footer),style:q({},O==null?void 0:O.footer)},l):null,T=i?g.createElement("div",{className:G("".concat(n,"-header"),$==null?void 0:$.header),style:q({},O==null?void 0:O.header)},g.createElement("div",{className:"".concat(n,"-title"),id:a},i)):null,A=g.useMemo(function(){return He(c)==="object"&&c!==null?c:c?{closeIcon:u!=null?u:g.createElement("span",{className:"".concat(n,"-close-x")})}:{}},[c,u,n]),R=Rn(A,!0),L=He(c)==="object"&&c.disabled,j=c?g.createElement("button",ce({type:"button",onClick:d,"aria-label":"Close"},R,{className:"".concat(n,"-close"),disabled:L}),A.closeIcon):null,z=g.createElement("div",{className:G("".concat(n,"-content"),$==null?void 0:$.content),style:O==null?void 0:O.content},j,T,g.createElement("div",ce({className:G("".concat(n,"-body"),$==null?void 0:$.body),style:q(q({},m),O==null?void 0:O.body)},p),f),D);return g.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":i?a:null,"aria-modal":"true",ref:N,style:q(q({},o),M),className:G(n,r),onMouseDown:b,onMouseUp:v},g.createElement("div",{ref:_,tabIndex:0,style:dj},g.createElement(cj,{shouldUpdate:C||x},h?h(z):z)),g.createElement("div",{tabIndex:0,ref:P,style:uj}))});process.env.NODE_ENV!=="production"&&(em.displayName="Panel");var KC=s.forwardRef(function(e,t){var n=e.prefixCls,r=e.title,o=e.style,i=e.className,a=e.visible,l=e.forceRender,c=e.destroyOnClose,u=e.motionName,d=e.ariaId,f=e.onVisibleChanged,m=e.mousePosition,p=g.useRef(),h=s.useState(),b=ae(h,2),v=b[0],y=b[1],C={};v&&(C.transformOrigin=v);function x(){var E=sj(p.current);y(m&&(m.x||m.y)?"".concat(m.x-E.left,"px ").concat(m.y-E.top,"px"):"")}return s.createElement(cr,{visible:a,onVisibleChanged:f,onAppearPrepare:x,onEnterPrepare:x,forceRender:l,motionName:u,removeOnLeave:c,ref:p},function(E,S){var $=E.className,O=E.style;return s.createElement(em,ce({},e,{ref:t,title:r,ariaId:d,prefixCls:n,holderRef:S,style:q(q(q({},O),o),C),className:G(i,$)}))})});KC.displayName="Content";var fj=function(t){var n=t.prefixCls,r=t.style,o=t.visible,i=t.maskProps,a=t.motionName,l=t.className;return s.createElement(cr,{key:"mask",visible:o,motionName:a,leavedClassName:"".concat(n,"-mask-hidden")},function(c,u){var d=c.className,f=c.style;return s.createElement("div",ce({ref:u,style:q(q({},f),r),className:G("".concat(n,"-mask"),d,l)},i))})},mj=function(t){var n=t.prefixCls,r=n===void 0?"rc-dialog":n,o=t.zIndex,i=t.visible,a=i===void 0?!1:i,l=t.keyboard,c=l===void 0?!0:l,u=t.focusTriggerAfterClose,d=u===void 0?!0:u,f=t.wrapStyle,m=t.wrapClassName,p=t.wrapProps,h=t.onClose,b=t.afterOpenChange,v=t.afterClose,y=t.transitionName,C=t.animation,x=t.closable,E=x===void 0?!0:x,S=t.mask,$=S===void 0?!0:S,O=t.maskTransitionName,I=t.maskAnimation,w=t.maskClosable,N=w===void 0?!0:w,_=t.maskStyle,P=t.maskProps,M=t.rootClassName,D=t.classNames,T=t.styles;process.env.NODE_ENV!=="production"&&(["wrapStyle","bodyStyle","maskStyle"].forEach(function(ne){bo(!(ne in t),"".concat(ne," is deprecated, please use styles instead."))}),"wrapClassName"in t&&bo(!1,"wrapClassName is deprecated, please use classNames instead."));var A=g.useRef(),R=g.useRef(),L=g.useRef(),j=s.useState(a),z=ae(j,2),B=z[0],K=z[1],W=uc();function k(){wd(R.current,document.activeElement)||(A.current=document.activeElement)}function V(){if(!wd(R.current,document.activeElement)){var ne;(ne=L.current)===null||ne===void 0||ne.focus()}}function Q(ne){if(ne)V();else{if(K(!1),$&&A.current&&d){try{A.current.focus({preventScroll:!0})}catch(re){}A.current=null}B&&(v==null||v())}b==null||b(ne)}function J(ne){h==null||h(ne)}var Y=g.useRef(!1),te=g.useRef(),oe=function(){clearTimeout(te.current),Y.current=!0},X=function(){te.current=setTimeout(function(){Y.current=!1})},F=null;N&&(F=function(re){Y.current?Y.current=!1:R.current===re.target&&J(re)});function ee(ne){if(c&&ne.keyCode===ye.ESC){ne.stopPropagation(),J(ne);return}a&&ne.keyCode===ye.TAB&&L.current.changeActive(!ne.shiftKey)}g.useEffect(function(){a&&(K(!0),k())},[a]),g.useEffect(function(){return function(){clearTimeout(te.current)}},[]);var Z=q(q(q({zIndex:o},f),T==null?void 0:T.wrapper),{},{display:B?null:"none"});return s.createElement("div",ce({className:G("".concat(r,"-root"),M)},Rn(t,{data:!0})),s.createElement(fj,{prefixCls:r,visible:$&&a,motionName:VC(r,O,I),style:q(q({zIndex:o},_),T==null?void 0:T.mask),maskProps:P,className:D==null?void 0:D.mask}),s.createElement("div",ce({tabIndex:-1,onKeyDown:ee,className:G("".concat(r,"-wrap"),m,D==null?void 0:D.wrapper),ref:R,onClick:F,style:Z},p),s.createElement(KC,ce({},t,{onMouseDown:oe,onMouseUp:X,ref:L,closable:E,ariaId:W,prefixCls:r,visible:a&&B,onClose:J,onVisibleChanged:Q,motionName:VC(r,y,C)}))))},qC=function(t){var n=t.visible,r=t.getContainer,o=t.forceRender,i=t.destroyOnClose,a=i===void 0?!1:i,l=t.afterClose,c=t.panelRef,u=s.useState(n),d=ae(u,2),f=d[0],m=d[1],p=s.useMemo(function(){return{panel:c}},[c]);return s.useEffect(function(){n&&m(!0)},[n]),!o&&a&&!f?null:s.createElement(kC.Provider,{value:p},s.createElement(ol,{open:n||o||f,autoDestroy:!1,getContainer:r,autoLock:n||f},s.createElement(mj,ce({},t,{destroyOnClose:a,afterClose:function(){l==null||l(),m(!1)}}))))};qC.displayName="Dialog";var ui="RC_FORM_INTERNAL_HOOKS",nn=function(){Ge(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},di=s.createContext({getFieldValue:nn,getFieldsValue:nn,getFieldError:nn,getFieldWarning:nn,getFieldsError:nn,isFieldsTouched:nn,isFieldTouched:nn,isFieldValidating:nn,isFieldsValidating:nn,resetFields:nn,setFields:nn,setFieldValue:nn,setFieldsValue:nn,validateFields:nn,submit:nn,getInternalHooks:function(){return nn(),{dispatch:nn,initEntityValue:nn,registerField:nn,useSubscribe:nn,setInitialValues:nn,destroyForm:nn,setCallbacks:nn,registerWatch:nn,getFields:nn,setValidateMessages:nn,setPreserve:nn,getInitialValue:nn}}}),il=s.createContext(null);function tm(e){return e==null?[]:Array.isArray(e)?e:[e]}function pj(e){return e&&!!e._init}function nm(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var rm=nm();function vj(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch(t){return typeof e=="function"}}function gj(e,t,n){if(Es())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&ka(o,n.prototype),o}function om(e){var t=typeof Map=="function"?new Map:void 0;return om=function(r){if(r===null||!vj(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 gj(r,arguments,ii(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),ka(o,r)},om(e)}var hj=/%[sdj%]/g,UC=function(){};typeof process!="undefined"&&process.env&&process.env.NODE_ENV!=="production"&&typeof window!="undefined"&&typeof document!="undefined"&&(UC=function(t,n){typeof console!="undefined"&&console.warn&&typeof ASYNC_VALIDATOR_NO_WARNING=="undefined"&&n.every(function(r){return typeof r=="string"})&&console.warn(t,n)});function im(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 gr(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,i=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var a=e.replace(hj,function(l){if(l==="%%")return"%";if(o>=i)return l;switch(l){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch(c){return"[Circular]"}break;default:return l}});return a}return e}function bj(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function jn(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||bj(t)&&typeof e=="string"&&!e)}function yj(e,t,n){var r=[],o=0,i=e.length;function a(l){r.push.apply(r,ge(l||[])),o++,o===i&&n(r)}e.forEach(function(l){t(l,a)})}function GC(e,t,n){var r=0,o=e.length;function i(a){if(a&&a.length){n(a);return}var l=r;r=r+1,l<o?t(e[l],i):n([])}i([])}function Cj(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,ge(e[n]||[]))}),t}var XC=function(e){jr(n,e);var t=Zr(n);function n(r,o){var i;return bn(this,n),i=t.call(this,"Async Validation Error"),H(qe(i),"errors",void 0),H(qe(i),"fields",void 0),i.errors=r,i.fields=o,i}return yn(n)}(om(Error));function Sj(e,t,n,r,o){if(t.first){var i=new Promise(function(m,p){var h=function(y){return r(y),y.length?p(new XC(y,im(y))):m(o)},b=Cj(e);GC(b,n,h)});return i.catch(function(m){return m}),i}var a=t.firstFields===!0?Object.keys(e):t.firstFields||[],l=Object.keys(e),c=l.length,u=0,d=[],f=new Promise(function(m,p){var h=function(v){if(d.push.apply(d,v),u++,u===c)return r(d),d.length?p(new XC(d,im(d))):m(o)};l.length||(r(d),m(o)),l.forEach(function(b){var v=e[b];a.indexOf(b)!==-1?GC(v,n,h):yj(v,n,h)})});return f.catch(function(m){return m}),f}function xj(e){return!!(e&&e.message!==void 0)}function Ej(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function QC(e,t){return function(n){var r;return e.fullFields?r=Ej(t,e.fullFields):r=t[n.field||e.fullField],xj(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 YC(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];He(r)==="object"&&He(e[n])==="object"?e[n]=q(q({},e[n]),r):e[n]=r}}return e}var Vi="enum",$j=function(t,n,r,o,i){t[Vi]=Array.isArray(t[Vi])?t[Vi]:[],t[Vi].indexOf(n)===-1&&o.push(gr(i.messages[Vi],t.fullField,t[Vi].join(", ")))},wj=function(t,n,r,o,i){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||o.push(gr(i.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var a=new RegExp(t.pattern);a.test(n)||o.push(gr(i.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},Oj=function(t,n,r,o,i){var a=typeof t.len=="number",l=typeof t.min=="number",c=typeof t.max=="number",u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,d=n,f=null,m=typeof n=="number",p=typeof n=="string",h=Array.isArray(n);if(m?f="number":p?f="string":h&&(f="array"),!f)return!1;h&&(d=n.length),p&&(d=n.replace(u,"_").length),a?d!==t.len&&o.push(gr(i.messages[f].len,t.fullField,t.len)):l&&!c&&d<t.min?o.push(gr(i.messages[f].min,t.fullField,t.min)):c&&!l&&d>t.max?o.push(gr(i.messages[f].max,t.fullField,t.max)):l&&c&&(d<t.min||d>t.max)&&o.push(gr(i.messages[f].range,t.fullField,t.min,t.max))},JC=function(t,n,r,o,i,a){t.required&&(!r.hasOwnProperty(t.field)||jn(n,a||t.type))&&o.push(gr(i.messages.required,t.fullField))},dc;const Nj=function(){if(dc)return dc;var e="[a-fA-F\\d:]",t=function($){return $&&$.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}|:))")],i="(?:%[0-9a-zA-Z]{1,})?",a="(?:".concat(o.join("|"),")").concat(i),l=new RegExp("(?:^".concat(n,"$)|(?:^").concat(a,"$)")),c=new RegExp("^".concat(n,"$")),u=new RegExp("^".concat(a,"$")),d=function($){return $&&$.exact?l:new RegExp("(?:".concat(t($)).concat(n).concat(t($),")|(?:").concat(t($)).concat(a).concat(t($),")"),"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(a).concat(t(S)),"g")};var f="(?:(?:[a-z]+:)?//)",m="(?:\\S+(?::\\S*)?@)?",p=d.v4().source,h=d.v6().source,b="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",v="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",y="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",C="(?::\\d{2,5})?",x='(?:[/?#][^\\s"]*)?',E="(?:".concat(f,"|www\\.)").concat(m,"(?:localhost|").concat(p,"|").concat(h,"|").concat(b).concat(v).concat(y,")").concat(C).concat(x);return dc=new RegExp("(?:^".concat(E,"$)"),"i"),dc};var ZC={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},al={integer:function(t){return al.number(t)&&parseInt(t,10)===t},float:function(t){return al.number(t)&&!al.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch(n){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 He(t)==="object"&&!al.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(ZC.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(Nj())},hex:function(t){return typeof t=="string"&&!!t.match(ZC.hex)}},Ij=function(t,n,r,o,i){if(t.required&&n===void 0){JC(t,n,r,o,i);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],l=t.type;a.indexOf(l)>-1?al[l](n)||o.push(gr(i.messages.types[l],t.fullField,t.type)):l&&He(n)!==t.type&&o.push(gr(i.messages.types[l],t.fullField,t.type))},_j=function(t,n,r,o,i){(/^\s+$/.test(n)||n==="")&&o.push(gr(i.messages.whitespace,t.fullField))};const Ft={required:JC,whitespace:_j,type:Ij,range:Oj,enum:$j,pattern:wj};var Tj=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(jn(n)&&!t.required)return r();Ft.required(t,n,o,a,i)}r(a)},Pj=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(n==null&&!t.required)return r();Ft.required(t,n,o,a,i,"array"),n!=null&&(Ft.type(t,n,o,a,i),Ft.range(t,n,o,a,i))}r(a)},Mj=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(jn(n)&&!t.required)return r();Ft.required(t,n,o,a,i),n!==void 0&&Ft.type(t,n,o,a,i)}r(a)},Dj=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(jn(n,"date")&&!t.required)return r();if(Ft.required(t,n,o,a,i),!jn(n,"date")){var c;n instanceof Date?c=n:c=new Date(n),Ft.type(t,c,o,a,i),c&&Ft.range(t,c.getTime(),o,a,i)}}r(a)},Aj="enum",Rj=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(jn(n)&&!t.required)return r();Ft.required(t,n,o,a,i),n!==void 0&&Ft[Aj](t,n,o,a,i)}r(a)},jj=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(jn(n)&&!t.required)return r();Ft.required(t,n,o,a,i),n!==void 0&&(Ft.type(t,n,o,a,i),Ft.range(t,n,o,a,i))}r(a)},Lj=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(jn(n)&&!t.required)return r();Ft.required(t,n,o,a,i),n!==void 0&&(Ft.type(t,n,o,a,i),Ft.range(t,n,o,a,i))}r(a)},zj=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(jn(n)&&!t.required)return r();Ft.required(t,n,o,a,i),n!==void 0&&Ft.type(t,n,o,a,i)}r(a)},Bj=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(n===""&&(n=void 0),jn(n)&&!t.required)return r();Ft.required(t,n,o,a,i),n!==void 0&&(Ft.type(t,n,o,a,i),Ft.range(t,n,o,a,i))}r(a)},kj=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(jn(n)&&!t.required)return r();Ft.required(t,n,o,a,i),n!==void 0&&Ft.type(t,n,o,a,i)}r(a)},Fj=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(jn(n,"string")&&!t.required)return r();Ft.required(t,n,o,a,i),jn(n,"string")||Ft.pattern(t,n,o,a,i)}r(a)},Hj=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(jn(n)&&!t.required)return r();Ft.required(t,n,o,a,i),jn(n)||Ft.type(t,n,o,a,i)}r(a)},Vj=function(t,n,r,o,i){var a=[],l=Array.isArray(n)?"array":He(n);Ft.required(t,n,o,a,i,l),r(a)},Wj=function(t,n,r,o,i){var a=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(jn(n,"string")&&!t.required)return r();Ft.required(t,n,o,a,i,"string"),jn(n,"string")||(Ft.type(t,n,o,a,i),Ft.range(t,n,o,a,i),Ft.pattern(t,n,o,a,i),t.whitespace===!0&&Ft.whitespace(t,n,o,a,i))}r(a)},am=function(t,n,r,o,i){var a=t.type,l=[],c=t.required||!t.required&&o.hasOwnProperty(t.field);if(c){if(jn(n,a)&&!t.required)return r();Ft.required(t,n,o,l,i,a),jn(n,a)||Ft.type(t,n,o,l,i)}r(l)};const ll={string:Wj,method:zj,number:Bj,boolean:Mj,regexp:Hj,integer:Lj,float:jj,array:Pj,object:kj,enum:Rj,pattern:Fj,date:Dj,url:am,hex:am,email:am,required:Vj,any:Tj};var sl=function(){function e(t){bn(this,e),H(this,"rules",null),H(this,"_messages",rm),this.define(t)}return yn(e,[{key:"define",value:function(n){var r=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(He(n)!=="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(o){var i=n[o];r.rules[o]=Array.isArray(i)?i:[i]})}},{key:"messages",value:function(n){return n&&(this._messages=YC(nm(),n)),this._messages}},{key:"validate",value:function(n){var r=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},a=n,l=o,c=i;if(typeof l=="function"&&(c=l,l={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(null,a),Promise.resolve(a);function u(h){var b=[],v={};function y(x){if(Array.isArray(x)){var E;b=(E=b).concat.apply(E,ge(x))}else b.push(x)}for(var C=0;C<h.length;C++)y(h[C]);b.length?(v=im(b),c(b,v)):c(null,a)}if(l.messages){var d=this.messages();d===rm&&(d=nm()),YC(d,l.messages),l.messages=d}else l.messages=this.messages();var f={},m=l.keys||Object.keys(this.rules);m.forEach(function(h){var b=r.rules[h],v=a[h];b.forEach(function(y){var C=y;typeof C.transform=="function"&&(a===n&&(a=q({},a)),v=a[h]=C.transform(v),v!=null&&(C.type=C.type||(Array.isArray(v)?"array":He(v)))),typeof C=="function"?C={validator:C}:C=q({},C),C.validator=r.getValidationMethod(C),C.validator&&(C.field=h,C.fullField=C.fullField||h,C.type=r.getType(C),f[h]=f[h]||[],f[h].push({rule:C,value:v,source:a,field:h}))})});var p={};return Sj(f,l,function(h,b){var v=h.rule,y=(v.type==="object"||v.type==="array")&&(He(v.fields)==="object"||He(v.defaultField)==="object");y=y&&(v.required||!v.required&&h.value),v.field=h.field;function C(O,I){return q(q({},I),{},{fullField:"".concat(v.fullField,".").concat(O),fullFields:v.fullFields?[].concat(ge(v.fullFields),[O]):[O]})}function x(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],I=Array.isArray(O)?O:[O];!l.suppressWarning&&I.length&&e.warning("async-validator:",I),I.length&&v.message!==void 0&&(I=[].concat(v.message));var w=I.map(QC(v,a));if(l.first&&w.length)return p[v.field]=1,b(w);if(!y)b(w);else{if(v.required&&!h.value)return v.message!==void 0?w=[].concat(v.message).map(QC(v,a)):l.error&&(w=[l.error(v,gr(l.messages.required,v.field))]),b(w);var N={};v.defaultField&&Object.keys(h.value).map(function(M){N[M]=v.defaultField}),N=q(q({},N),h.rule.fields);var _={};Object.keys(N).forEach(function(M){var D=N[M],T=Array.isArray(D)?D:[D];_[M]=T.map(C.bind(null,M))});var P=new e(_);P.messages(l.messages),h.rule.options&&(h.rule.options.messages=l.messages,h.rule.options.error=l.error),P.validate(h.value,h.rule.options||l,function(M){var D=[];w&&w.length&&D.push.apply(D,ge(w)),M&&M.length&&D.push.apply(D,ge(M)),b(D.length?D:null)})}}var E;if(v.asyncValidator)E=v.asyncValidator(v,h.value,x,h.source,l);else if(v.validator){try{E=v.validator(v,h.value,x,h.source,l)}catch(O){var S,$;(S=($=console).error)===null||S===void 0||S.call($,O),l.suppressValidatorError||setTimeout(function(){throw O},0),x(O.message)}E===!0?x():E===!1?x(typeof v.message=="function"?v.message(v.fullField||v.field):v.message||"".concat(v.fullField||v.field," fails")):E instanceof Array?x(E):E instanceof Error&&x(E.message)}E&&E.then&&E.then(function(){return x()},function(O){return x(O)})},function(h){u(h)},a)}},{key:"getType",value:function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!ll.hasOwnProperty(n.type))throw new Error(gr("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"?ll.required:ll[this.getType(n)]||void 0}}]),e}();H(sl,"register",function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");ll[t]=n}),H(sl,"warning",UC),H(sl,"messages",rm),H(sl,"validators",ll);var hr="'${name}' is not a valid ${type}",eS={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:hr,method:hr,array:hr,object:hr,number:hr,date:hr,boolean:hr,integer:hr,float:hr,regexp:hr,email:hr,url:hr,hex:hr},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}"}},tS=sl;function Kj(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 nS="CODE_LOGIC_ERROR";function lm(e,t,n,r,o){return sm.apply(this,arguments)}function sm(){return sm=ci(ir().mark(function e(t,n,r,o,i){var a,l,c,u,d,f,m,p,h;return ir().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return a=q({},r),delete a.ruleIndex,tS.warning=function(){},a.validator&&(l=a.validator,a.validator=function(){try{return l.apply(void 0,arguments)}catch(y){return console.error(y),Promise.reject(nS)}}),c=null,a&&a.type==="array"&&a.defaultField&&(c=a.defaultField,delete a.defaultField),u=new tS(H({},t,[a])),d=ji(eS,o.validateMessages),u.messages(d),f=[],v.prev=10,v.next=13,Promise.resolve(u.validate(H({},t,n),q({},o)));case 13:v.next=18;break;case 15:v.prev=15,v.t0=v.catch(10),v.t0.errors&&(f=v.t0.errors.map(function(y,C){var x=y.message,E=x===nS?d.default:x;return s.isValidElement(E)?s.cloneElement(E,{key:"error_".concat(C)}):E}));case 18:if(!(!f.length&&c)){v.next=23;break}return v.next=21,Promise.all(n.map(function(y,C){return lm("".concat(t,".").concat(C),y,c,o,i)}));case 21:return m=v.sent,v.abrupt("return",m.reduce(function(y,C){return[].concat(ge(y),ge(C))},[]));case 23:return p=q(q({},r),{},{name:t,enum:(r.enum||[]).join(", ")},i),h=f.map(function(y){return typeof y=="string"?Kj(y,p):y}),v.abrupt("return",h);case 26:case"end":return v.stop()}},e,null,[[10,15]])})),sm.apply(this,arguments)}function qj(e,t,n,r,o,i){var a=e.join("."),l=n.map(function(d,f){var m=d.validator,p=q(q({},d),{},{ruleIndex:f});return m&&(p.validator=function(h,b,v){var y=!1,C=function(){for(var S=arguments.length,$=new Array(S),O=0;O<S;O++)$[O]=arguments[O];Promise.resolve().then(function(){Ge(!y,"Your validator function has already return a promise. `callback` will be ignored."),y||v.apply(void 0,$)})},x=m(h,b,C);y=x&&typeof x.then=="function"&&typeof x.catch=="function",Ge(y,"`callback` is deprecated. Please return a promise instead."),y&&x.then(function(){v()}).catch(function(E){v(E||" ")})}),p}).sort(function(d,f){var m=d.warningOnly,p=d.ruleIndex,h=f.warningOnly,b=f.ruleIndex;return!!m==!!h?p-b:m?1:-1}),c;if(o===!0)c=new Promise(function(){var d=ci(ir().mark(function f(m,p){var h,b,v;return ir().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:h=0;case 1:if(!(h<l.length)){C.next=12;break}return b=l[h],C.next=5,lm(a,t,b,r,i);case 5:if(v=C.sent,!v.length){C.next=9;break}return p([{errors:v,rule:b}]),C.abrupt("return");case 9:h+=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=l.map(function(d){return lm(a,t,d,r,i).then(function(f){return{errors:f,rule:d}})});c=(o?Gj(u):Uj(u)).then(function(d){return Promise.reject(d)})}return c.catch(function(d){return d}),c}function Uj(e){return cm.apply(this,arguments)}function cm(){return cm=ci(ir().mark(function e(t){return ir().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.all(t).then(function(o){var i,a=(i=[]).concat.apply(i,ge(o));return a}));case 1:case"end":return r.stop()}},e)})),cm.apply(this,arguments)}function Gj(e){return um.apply(this,arguments)}function um(){return um=ci(ir().mark(function e(t){var n;return ir().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return n=0,o.abrupt("return",new Promise(function(i){t.forEach(function(a){a.then(function(l){l.errors.length&&i([l]),n+=1,n===t.length&&i([])})})}));case 2:case"end":return o.stop()}},e)})),um.apply(this,arguments)}function Nn(e){return tm(e)}function rS(e,t){var n={};return t.forEach(function(r){var o=or(e,r);n=Or(n,r,o)}),n}function Wi(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return oS(t,r,n)})}function oS(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 Xj(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||He(e)!=="object"||He(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),o=new Set([].concat(n,r));return ge(o).every(function(i){var a=e[i],l=t[i];return typeof a=="function"&&typeof l=="function"?!0:a===l})}function Qj(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&He(t.target)==="object"&&e in t.target?t.target[e]:t}function iS(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var o=e[t],i=t-n;return i>0?[].concat(ge(e.slice(0,n)),[o],ge(e.slice(n,t)),ge(e.slice(t+1,r))):i<0?[].concat(ge(e.slice(0,t)),ge(e.slice(t+1,n+1)),[o],ge(e.slice(n+1,r))):e}var Yj=["name"],_r=[];function dm(e,t,n,r,o,i){return typeof e=="function"?e(t,n,"source"in i?{source:i.source}:{}):r!==o}var fm=function(e){jr(n,e);var t=Zr(n);function n(r){var o;if(bn(this,n),o=t.call(this,r),H(qe(o),"state",{resetCount:0}),H(qe(o),"cancelRegisterFunc",null),H(qe(o),"mounted",!1),H(qe(o),"touched",!1),H(qe(o),"dirty",!1),H(qe(o),"validatePromise",void 0),H(qe(o),"prevValidating",void 0),H(qe(o),"errors",_r),H(qe(o),"warnings",_r),H(qe(o),"cancelRegister",function(){var c=o.props,u=c.preserve,d=c.isListField,f=c.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(d,u,Nn(f)),o.cancelRegisterFunc=null}),H(qe(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)):[]}),H(qe(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})}),H(qe(o),"refresh",function(){o.mounted&&o.setState(function(c){var u=c.resetCount;return{resetCount:u+1}})}),H(qe(o),"metaCache",null),H(qe(o),"triggerMetaEvent",function(c){var u=o.props.onMetaChange;if(u){var d=q(q({},o.getMeta()),{},{destroy:c});eo(o.metaCache,d)||u(d),o.metaCache=d}else o.metaCache=null}),H(qe(o),"onStoreChange",function(c,u,d){var f=o.props,m=f.shouldUpdate,p=f.dependencies,h=p===void 0?[]:p,b=f.onReset,v=d.store,y=o.getNamePath(),C=o.getValue(c),x=o.getValue(v),E=u&&Wi(u,y);switch(d.type==="valueUpdate"&&d.source==="external"&&!eo(C,x)&&(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=_r,o.warnings=_r,o.triggerMetaEvent()),d.type){case"reset":if(!u||E){o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=_r,o.warnings=_r,o.triggerMetaEvent(),b==null||b(),o.refresh();return}break;case"remove":{if(m&&dm(m,c,v,C,x,d)){o.reRender();return}break}case"setField":{var S=d.data;if(E){"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||_r),"warnings"in S&&(o.warnings=S.warnings||_r),o.dirty=!0,o.triggerMetaEvent(),o.reRender();return}else if("value"in S&&Wi(u,y,!0)){o.reRender();return}if(m&&!y.length&&dm(m,c,v,C,x,d)){o.reRender();return}break}case"dependenciesUpdate":{var $=h.map(Nn);if($.some(function(O){return Wi(d.relatedFields,O)})){o.reRender();return}break}default:if(E||(!h.length||y.length||m)&&dm(m,c,v,C,x,d)){o.reRender();return}break}m===!0&&o.reRender()}),H(qe(o),"validateRules",function(c){var u=o.getNamePath(),d=o.getValue(),f=c||{},m=f.triggerName,p=f.validateOnly,h=p===void 0?!1:p,b=Promise.resolve().then(ci(ir().mark(function v(){var y,C,x,E,S,$,O;return ir().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:if(o.mounted){w.next=2;break}return w.abrupt("return",[]);case 2:if(y=o.props,C=y.validateFirst,x=C===void 0?!1:C,E=y.messageVariables,S=y.validateDebounce,$=o.getRules(),m&&($=$.filter(function(N){return N}).filter(function(N){var _=N.validateTrigger;if(!_)return!0;var P=tm(_);return P.includes(m)})),!(S&&m)){w.next=10;break}return w.next=8,new Promise(function(N){setTimeout(N,S)});case 8:if(o.validatePromise===b){w.next=10;break}return w.abrupt("return",[]);case 10:return O=qj(u,d,$,c,x,E),O.catch(function(N){return N}).then(function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:_r;if(o.validatePromise===b){var _;o.validatePromise=null;var P=[],M=[];(_=N.forEach)===null||_===void 0||_.call(N,function(D){var T=D.rule.warningOnly,A=D.errors,R=A===void 0?_r:A;T?M.push.apply(M,ge(R)):P.push.apply(P,ge(R))}),o.errors=P,o.warnings=M,o.triggerMetaEvent(),o.reRender()}}),w.abrupt("return",O);case 13:case"end":return w.stop()}},v)})));return h||(o.validatePromise=b,o.dirty=!0,o.errors=_r,o.warnings=_r,o.triggerMetaEvent(),o.reRender()),b}),H(qe(o),"isFieldValidating",function(){return!!o.validatePromise}),H(qe(o),"isFieldTouched",function(){return o.touched}),H(qe(o),"isFieldDirty",function(){if(o.dirty||o.props.initialValue!==void 0)return!0;var c=o.props.fieldContext,u=c.getInternalHooks(ui),d=u.getInitialValue;return d(o.getNamePath())!==void 0}),H(qe(o),"getErrors",function(){return o.errors}),H(qe(o),"getWarnings",function(){return o.warnings}),H(qe(o),"isListField",function(){return o.props.isListField}),H(qe(o),"isList",function(){return o.props.isList}),H(qe(o),"isPreserve",function(){return o.props.preserve}),H(qe(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}),H(qe(o),"getOnlyChild",function(c){if(typeof c=="function"){var u=o.getMeta();return q(q({},o.getOnlyChild(c(o.getControlled(),u,o.props.fieldContext))),{},{isFunction:!0})}var d=Tn(c);return d.length!==1||!s.isValidElement(d[0])?{child:d,isFunction:!1}:{child:d[0],isFunction:!1}}),H(qe(o),"getValue",function(c){var u=o.props.fieldContext.getFieldsValue,d=o.getNamePath();return or(c||u(!0),d)}),H(qe(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,p=u.getValueFromEvent,h=u.normalize,b=u.valuePropName,v=u.getValueProps,y=u.fieldContext,C=m!==void 0?m:y.validateTrigger,x=o.getNamePath(),E=y.getInternalHooks,S=y.getFieldsValue,$=E(ui),O=$.dispatch,I=o.getValue(),w=v||function(D){return H({},b,D)},N=c[f],_=d!==void 0?w(I):{};process.env.NODE_ENV!=="production"&&_&&Object.keys(_).forEach(function(D){Ge(typeof _[D]!="function","It's not recommended to generate dynamic function prop by `getValueProps`. Please pass it to child component directly (prop: ".concat(D,")"))});var P=q(q({},c),_);P[f]=function(){o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var D,T=arguments.length,A=new Array(T),R=0;R<T;R++)A[R]=arguments[R];p?D=p.apply(void 0,A):D=Qj.apply(void 0,[b].concat(A)),h&&(D=h(D,I,S(!0))),D!==I&&O({type:"updateValue",namePath:x,value:D}),N&&N.apply(void 0,A)};var M=tm(C||[]);return M.forEach(function(D){var T=P[D];P[D]=function(){T&&T.apply(void 0,arguments);var A=o.props.rules;A&&A.length&&O({type:"validateField",namePath:x,triggerName:D})}}),P}),r.fieldContext){var i=r.fieldContext.getInternalHooks,a=i(ui),l=a.initEntityValue;l(qe(o))}return o}return yn(n,[{key:"componentDidMount",value:function(){var o=this.props,i=o.shouldUpdate,a=o.fieldContext;if(this.mounted=!0,a){var l=a.getInternalHooks,c=l(ui),u=c.registerField;this.cancelRegisterFunc=u(this)}i===!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,i=this.props.children,a=this.getOnlyChild(i),l=a.child,c=a.isFunction,u;return c?u=l:s.isValidElement(l)?u=s.cloneElement(l,this.getControlled(l.props)):(Ge(!l,"`children` of Field is not validate ReactElement."),u=l),s.createElement(s.Fragment,{key:o},u)}}]),n}(s.Component);H(fm,"contextType",di),H(fm,"defaultProps",{trigger:"onChange",valuePropName:"value"});function mm(e){var t,n=e.name,r=tt(e,Yj),o=s.useContext(di),i=s.useContext(il),a=n!==void 0?Nn(n):void 0,l=(t=r.isListField)!==null&&t!==void 0?t:!!i,c="keep";return l||(c="_".concat((a||[]).join("_"))),process.env.NODE_ENV!=="production"&&r.preserve===!1&&l&&a.length<=1&&Ge(!1,"`preserve` should not apply on Form.List fields."),s.createElement(fm,ce({key:c,name:a,isListField:l},r,{fieldContext:o}))}function aS(e){var t=e.name,n=e.initialValue,r=e.children,o=e.rules,i=e.validateTrigger,a=e.isListField,l=s.useContext(di),c=s.useContext(il),u=s.useRef({keys:[],id:0}),d=u.current,f=s.useMemo(function(){var b=Nn(l.prefixName)||[];return[].concat(ge(b),ge(Nn(t)))},[l.prefixName,t]),m=s.useMemo(function(){return q(q({},l),{},{prefixName:f})},[l,f]),p=s.useMemo(function(){return{getKey:function(v){var y=f.length,C=v[y];return[d.keys[C],v.slice(y+1)]}}},[f]);if(typeof r!="function")return Ge(!1,"Form.List only accepts function as children."),null;var h=function(v,y,C){var x=C.source;return x==="internal"?!1:v!==y};return s.createElement(il.Provider,{value:p},s.createElement(di.Provider,{value:m},s.createElement(mm,{name:[],shouldUpdate:h,rules:o,validateTrigger:i,initialValue:n,isList:!0,isListField:a!=null?a:!!c},function(b,v){var y=b.value,C=y===void 0?[]:y,x=b.onChange,E=l.getFieldValue,S=function(){var w=E(f||[]);return w||[]},$={add:function(w,N){var _=S();N>=0&&N<=_.length?(d.keys=[].concat(ge(d.keys.slice(0,N)),[d.id],ge(d.keys.slice(N))),x([].concat(ge(_.slice(0,N)),[w],ge(_.slice(N))))):(process.env.NODE_ENV!=="production"&&(N<0||N>_.length)&&Ge(!1,"The second parameter of the add function should be a valid positive number."),d.keys=[].concat(ge(d.keys),[d.id]),x([].concat(ge(_),[w]))),d.id+=1},remove:function(w){var N=S(),_=new Set(Array.isArray(w)?w:[w]);_.size<=0||(d.keys=d.keys.filter(function(P,M){return!_.has(M)}),x(N.filter(function(P,M){return!_.has(M)})))},move:function(w,N){if(w!==N){var _=S();w<0||w>=_.length||N<0||N>=_.length||(d.keys=iS(d.keys,w,N),x(iS(_,w,N)))}}},O=C||[];return Array.isArray(O)||(O=[],process.env.NODE_ENV!=="production"&&Ge(!1,"Current value of '".concat(f.join(" > "),"' is not an array type."))),r(O.map(function(I,w){var N=d.keys[w];return N===void 0&&(d.keys[w]=d.id,N=d.keys[w],d.id+=1),{name:w,key:N,isListField:!0}}),$,v)})))}function Jj(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(o,i){e.forEach(function(a,l){a.catch(function(c){return t=!0,c}).then(function(c){n-=1,r[l]=c,!(n>0)&&(t&&i(r),o(r))})})}):Promise.resolve([])}var lS="__@field_split__";function pm(e){return e.map(function(t){return"".concat(He(t),":").concat(t)}).join(lS)}var Ki=function(){function e(){bn(this,e),H(this,"kvs",new Map)}return yn(e,[{key:"set",value:function(n,r){this.kvs.set(pm(n),r)}},{key:"get",value:function(n){return this.kvs.get(pm(n))}},{key:"update",value:function(n,r){var o=this.get(n),i=r(o);i?this.set(n,i):this.delete(n)}},{key:"delete",value:function(n){this.kvs.delete(pm(n))}},{key:"map",value:function(n){return ge(this.kvs.entries()).map(function(r){var o=ae(r,2),i=o[0],a=o[1],l=i.split(lS);return n({key:l.map(function(c){var u=c.match(/^([^:]*):(.*)$/),d=ae(u,3),f=d[1],m=d[2];return f==="number"?Number(m):m}),value:a})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var o=r.key,i=r.value;return n[o.join(".")]=i,null}),n}}]),e}(),Zj=["name"],e6=yn(function e(t){var n=this;bn(this,e),H(this,"formHooked",!1),H(this,"forceRootUpdate",void 0),H(this,"subscribable",!0),H(this,"store",{}),H(this,"fieldEntities",[]),H(this,"initialValues",{}),H(this,"callbacks",{}),H(this,"validateMessages",null),H(this,"preserve",null),H(this,"lastValidatePromise",null),H(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}}),H(this,"getInternalHooks",function(r){return r===ui?(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}):(Ge(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),H(this,"useSubscribe",function(r){n.subscribable=r}),H(this,"prevWithoutPreserves",null),H(this,"setInitialValues",function(r,o){if(n.initialValues=r||{},o){var i,a=ji(r,n.store);(i=n.prevWithoutPreserves)===null||i===void 0||i.map(function(l){var c=l.key;a=Or(a,c,or(r,c))}),n.prevWithoutPreserves=null,n.updateStore(a)}}),H(this,"destroyForm",function(r){if(r)n.updateStore({});else{var o=new Ki;n.getFieldEntities(!0).forEach(function(i){n.isMergedPreserve(i.isPreserve())||o.set(i.getNamePath(),!0)}),n.prevWithoutPreserves=o}}),H(this,"getInitialValue",function(r){var o=or(n.initialValues,r);return r.length?ji(o):o}),H(this,"setCallbacks",function(r){n.callbacks=r}),H(this,"setValidateMessages",function(r){n.validateMessages=r}),H(this,"setPreserve",function(r){n.preserve=r}),H(this,"watchList",[]),H(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(o){return o!==r})}}),H(this,"notifyWatch",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var o=n.getFieldsValue(),i=n.getFieldsValue(!0);n.watchList.forEach(function(a){a(o,i,r)})}}),H(this,"timeoutId",null),H(this,"warningUnhooked",function(){process.env.NODE_ENV!=="production"&&!n.timeoutId&&typeof window!="undefined"&&(n.timeoutId=setTimeout(function(){n.timeoutId=null,n.formHooked||Ge(!1,"Instance created by `useForm` is not connected to any Form element. Forget to pass `form` prop?")}))}),H(this,"updateStore",function(r){n.store=r}),H(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}),H(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,o=new Ki;return n.getFieldEntities(r).forEach(function(i){var a=i.getNamePath();o.set(a,i)}),o}),H(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var o=n.getFieldsMap(!0);return r.map(function(i){var a=Nn(i);return o.get(a)||{INVALIDATE_NAME_PATH:Nn(i)}})}),H(this,"getFieldsValue",function(r,o){n.warningUnhooked();var i,a,l;if(r===!0||Array.isArray(r)?(i=r,a=o):r&&He(r)==="object"&&(l=r.strict,a=r.filter),i===!0&&!a)return n.store;var c=n.getFieldEntitiesForNamePathList(Array.isArray(i)?i:null),u=[];return c.forEach(function(d){var f,m,p="INVALIDATE_NAME_PATH"in d?d.INVALIDATE_NAME_PATH:d.getNamePath();if(l){var h,b;if((h=(b=d).isList)!==null&&h!==void 0&&h.call(b))return}else if(!i&&(f=(m=d).isListField)!==null&&f!==void 0&&f.call(m))return;if(!a)u.push(p);else{var v="getMeta"in d?d.getMeta():null;a(v)&&u.push(p)}}),rS(n.store,u.map(Nn))}),H(this,"getFieldValue",function(r){n.warningUnhooked();var o=Nn(r);return or(n.store,o)}),H(this,"getFieldsError",function(r){n.warningUnhooked();var o=n.getFieldEntitiesForNamePathList(r);return o.map(function(i,a){return i&&!("INVALIDATE_NAME_PATH"in i)?{name:i.getNamePath(),errors:i.getErrors(),warnings:i.getWarnings()}:{name:Nn(r[a]),errors:[],warnings:[]}})}),H(this,"getFieldError",function(r){n.warningUnhooked();var o=Nn(r),i=n.getFieldsError([o])[0];return i.errors}),H(this,"getFieldWarning",function(r){n.warningUnhooked();var o=Nn(r),i=n.getFieldsError([o])[0];return i.warnings}),H(this,"isFieldsTouched",function(){n.warningUnhooked();for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var a=o[0],l=o[1],c,u=!1;o.length===0?c=null:o.length===1?Array.isArray(a)?(c=a.map(Nn),u=!1):(c=null,u=a):(c=a.map(Nn),u=l);var d=n.getFieldEntities(!0),f=function(v){return v.isFieldTouched()};if(!c)return u?d.every(function(b){return f(b)||b.isList()}):d.some(f);var m=new Ki;c.forEach(function(b){m.set(b,[])}),d.forEach(function(b){var v=b.getNamePath();c.forEach(function(y){y.every(function(C,x){return v[x]===C})&&m.update(y,function(C){return[].concat(ge(C),[b])})})});var p=function(v){return v.some(f)},h=m.map(function(b){var v=b.value;return v});return u?h.every(p):h.some(p)}),H(this,"isFieldTouched",function(r){return n.warningUnhooked(),n.isFieldsTouched([r])}),H(this,"isFieldsValidating",function(r){n.warningUnhooked();var o=n.getFieldEntities();if(!r)return o.some(function(a){return a.isFieldValidating()});var i=r.map(Nn);return o.some(function(a){var l=a.getNamePath();return Wi(i,l)&&a.isFieldValidating()})}),H(this,"isFieldValidating",function(r){return n.warningUnhooked(),n.isFieldsValidating([r])}),H(this,"resetWithFieldInitialValue",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=new Ki,i=n.getFieldEntities(!0);i.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 a=function(u){u.forEach(function(d){var f=d.props.initialValue;if(f!==void 0){var m=d.getNamePath(),p=n.getInitialValue(m);if(p!==void 0)Ge(!1,"Form already set 'initialValues' with path '".concat(m.join("."),"'. Field can not overwrite it."));else{var h=o.get(m);if(h&&h.size>1)Ge(!1,"Multiple Field with path '".concat(m.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(h){var b=n.getFieldValue(m),v=d.isListField();!v&&(!r.skipExist||b===void 0)&&n.updateStore(Or(n.store,m,ge(h)[0].value))}}}})},l;r.entities?l=r.entities:r.namePathList?(l=[],r.namePathList.forEach(function(c){var u=o.get(c);if(u){var d;(d=l).push.apply(d,ge(ge(u).map(function(f){return f.entity})))}})):l=i,a(l)}),H(this,"resetFields",function(r){n.warningUnhooked();var o=n.store;if(!r){n.updateStore(ji(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(o,null,{type:"reset"}),n.notifyWatch();return}var i=r.map(Nn);i.forEach(function(a){var l=n.getInitialValue(a);n.updateStore(Or(n.store,a,l))}),n.resetWithFieldInitialValue({namePathList:i}),n.notifyObservers(o,i,{type:"reset"}),n.notifyWatch(i)}),H(this,"setFields",function(r){n.warningUnhooked();var o=n.store,i=[];r.forEach(function(a){var l=a.name,c=tt(a,Zj),u=Nn(l);i.push(u),"value"in c&&n.updateStore(Or(n.store,u,c.value)),n.notifyObservers(o,[u],{type:"setField",data:a})}),n.notifyWatch(i)}),H(this,"getFields",function(){var r=n.getFieldEntities(!0),o=r.map(function(i){var a=i.getNamePath(),l=i.getMeta(),c=q(q({},l),{},{name:a,value:n.getFieldValue(a)});return Object.defineProperty(c,"originRCField",{value:!0}),c});return o}),H(this,"initEntityValue",function(r){var o=r.props.initialValue;if(o!==void 0){var i=r.getNamePath(),a=or(n.store,i);a===void 0&&n.updateStore(Or(n.store,i,o))}}),H(this,"isMergedPreserve",function(r){var o=r!==void 0?r:n.preserve;return o!=null?o:!0}),H(this,"registerField",function(r){n.fieldEntities.push(r);var o=r.getNamePath();if(n.notifyWatch([o]),r.props.initialValue!==void 0){var i=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(i,[r.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(a,l){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(f){return f!==r}),!n.isMergedPreserve(l)&&(!a||c.length>1)){var u=a?void 0:n.getInitialValue(o);if(o.length&&n.getFieldValue(o)!==u&&n.fieldEntities.every(function(f){return!oS(f.getNamePath(),o)})){var d=n.store;n.updateStore(Or(d,o,u,!0)),n.notifyObservers(d,[o],{type:"remove"}),n.triggerDependenciesUpdate(d,o)}}n.notifyWatch([o])}}),H(this,"dispatch",function(r){switch(r.type){case"updateValue":{var o=r.namePath,i=r.value;n.updateValue(o,i);break}case"validateField":{var a=r.namePath,l=r.triggerName;n.validateFields([a],{triggerName:l});break}}}),H(this,"notifyObservers",function(r,o,i){if(n.subscribable){var a=q(q({},i),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(l){var c=l.onStoreChange;c(r,o,a)})}else n.forceRootUpdate()}),H(this,"triggerDependenciesUpdate",function(r,o){var i=n.getDependencyChildrenFields(o);return i.length&&n.validateFields(i),n.notifyObservers(r,i,{type:"dependenciesUpdate",relatedFields:[o].concat(ge(i))}),i}),H(this,"updateValue",function(r,o){var i=Nn(r),a=n.store;n.updateStore(Or(n.store,i,o)),n.notifyObservers(a,[i],{type:"valueUpdate",source:"internal"}),n.notifyWatch([i]);var l=n.triggerDependenciesUpdate(a,i),c=n.callbacks.onValuesChange;if(c){var u=rS(n.store,[i]);c(u,n.getFieldsValue())}n.triggerOnFieldsChange([i].concat(ge(l)))}),H(this,"setFieldsValue",function(r){n.warningUnhooked();var o=n.store;if(r){var i=ji(n.store,r);n.updateStore(i)}n.notifyObservers(o,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),H(this,"setFieldValue",function(r,o){n.setFields([{name:r,value:o,errors:[],warnings:[]}])}),H(this,"getDependencyChildrenFields",function(r){var o=new Set,i=[],a=new Ki;n.getFieldEntities().forEach(function(c){var u=c.props.dependencies;(u||[]).forEach(function(d){var f=Nn(d);a.update(f,function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return m.add(c),m})})});var l=function c(u){var d=a.get(u)||new Set;d.forEach(function(f){if(!o.has(f)){o.add(f);var m=f.getNamePath();f.isFieldDirty()&&m.length&&(i.push(m),c(m))}})};return l(r),i}),H(this,"triggerOnFieldsChange",function(r,o){var i=n.callbacks.onFieldsChange;if(i){var a=n.getFields();if(o){var l=new Ki;o.forEach(function(u){var d=u.name,f=u.errors;l.set(d,f)}),a.forEach(function(u){u.errors=l.get(u.name)||u.errors})}var c=a.filter(function(u){var d=u.name;return Wi(r,d)});c.length&&i(c,a)}}),H(this,"validateFields",function(r,o){n.warningUnhooked();var i,a;Array.isArray(r)||typeof r=="string"||typeof o=="string"?(i=r,a=o):a=r;var l=!!i,c=l?i.map(Nn):[],u=[],d=String(Date.now()),f=new Set,m=a||{},p=m.recursive,h=m.dirty;n.getFieldEntities(!0).forEach(function(C){if(l||c.push(C.getNamePath()),!(!C.props.rules||!C.props.rules.length)&&!(h&&!C.isFieldDirty())){var x=C.getNamePath();if(f.add(x.join(d)),!l||Wi(c,x,p)){var E=C.validateRules(q({validateMessages:q(q({},eS),n.validateMessages)},a));u.push(E.then(function(){return{name:x,errors:[],warnings:[]}}).catch(function(S){var $,O=[],I=[];return($=S.forEach)===null||$===void 0||$.call(S,function(w){var N=w.rule.warningOnly,_=w.errors;N?I.push.apply(I,ge(_)):O.push.apply(O,ge(_))}),O.length?Promise.reject({name:x,errors:O,warnings:I}):{name:x,errors:O,warnings:I}}))}}});var b=Jj(u);n.lastValidatePromise=b,b.catch(function(C){return C}).then(function(C){var x=C.map(function(E){var S=E.name;return S});n.notifyObservers(n.store,x,{type:"validateFinish"}),n.triggerOnFieldsChange(x,C)});var v=b.then(function(){return n.lastValidatePromise===b?Promise.resolve(n.getFieldsValue(c)):Promise.reject([])}).catch(function(C){var x=C.filter(function(E){return E&&E.errors.length});return Promise.reject({values:n.getFieldsValue(c),errorFields:x,outOfDate:n.lastValidatePromise!==b})});v.catch(function(C){return C});var y=c.filter(function(C){return f.has(C.join(d))});return n.triggerOnFieldsChange(y),v}),H(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(r){var o=n.callbacks.onFinish;if(o)try{o(r)}catch(i){console.error(i)}}).catch(function(r){var o=n.callbacks.onFinishFailed;o&&o(r)})}),this.forceRootUpdate=t});function vm(e){var t=s.useRef(),n=s.useState({}),r=ae(n,2),o=r[1];if(!t.current)if(e)t.current=e;else{var i=function(){o({})},a=new e6(i);t.current=a.getForm()}return[t.current]}var gm=s.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),sS=function(t){var n=t.validateMessages,r=t.onFormChange,o=t.onFormFinish,i=t.children,a=s.useContext(gm),l=s.useRef({});return s.createElement(gm.Provider,{value:q(q({},a),{},{validateMessages:q(q({},a.validateMessages),n),triggerFormChange:function(u,d){r&&r(u,{changedFields:d,forms:l.current}),a.triggerFormChange(u,d)},triggerFormFinish:function(u,d){o&&o(u,{values:d,forms:l.current}),a.triggerFormFinish(u,d)},registerForm:function(u,d){u&&(l.current=q(q({},l.current),{},H({},u,d))),a.registerForm(u,d)},unregisterForm:function(u){var d=q({},l.current);delete d[u],l.current=d,a.unregisterForm(u)}})},i)},t6=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],n6=function(t,n){var r=t.name,o=t.initialValues,i=t.fields,a=t.form,l=t.preserve,c=t.children,u=t.component,d=u===void 0?"form":u,f=t.validateMessages,m=t.validateTrigger,p=m===void 0?"onChange":m,h=t.onValuesChange,b=t.onFieldsChange,v=t.onFinish,y=t.onFinishFailed,C=t.clearOnDestroy,x=tt(t,t6),E=s.useRef(null),S=s.useContext(gm),$=vm(a),O=ae($,1),I=O[0],w=I.getInternalHooks(ui),N=w.useSubscribe,_=w.setInitialValues,P=w.setCallbacks,M=w.setValidateMessages,D=w.setPreserve,T=w.destroyForm;s.useImperativeHandle(n,function(){return q(q({},I),{},{nativeElement:E.current})}),s.useEffect(function(){return S.registerForm(r,I),function(){S.unregisterForm(r)}},[S,I,r]),M(q(q({},S.validateMessages),f)),P({onValuesChange:h,onFieldsChange:function(k){if(S.triggerFormChange(r,k),b){for(var V=arguments.length,Q=new Array(V>1?V-1:0),J=1;J<V;J++)Q[J-1]=arguments[J];b.apply(void 0,[k].concat(Q))}},onFinish:function(k){S.triggerFormFinish(r,k),v&&v(k)},onFinishFailed:y}),D(l);var A=s.useRef(null);_(o,!A.current),A.current||(A.current=!0),s.useEffect(function(){return function(){return T(C)}},[]);var R,L=typeof c=="function";if(L){var j=I.getFieldsValue(!0);R=c(j,I)}else R=c;N(!L);var z=s.useRef();s.useEffect(function(){Xj(z.current||[],i||[])||I.setFields(i||[]),z.current=i},[i,I]);var B=s.useMemo(function(){return q(q({},I),{},{validateTrigger:p})},[I,p]),K=s.createElement(il.Provider,{value:null},s.createElement(di.Provider,{value:B},R));return d===!1?K:s.createElement(d,ce({},x,{ref:E,onSubmit:function(k){k.preventDefault(),k.stopPropagation(),I.submit()},onReset:function(k){var V;k.preventDefault(),I.resetFields(),(V=x.onReset)===null||V===void 0||V.call(x,k)}}),K)};function cS(e){try{return JSON.stringify(e)}catch(t){return Math.random()}}var r6=process.env.NODE_ENV!=="production"?function(e){var t=e.join("__RC_FIELD_FORM_SPLIT__"),n=g.useRef(t);Ge(n.current===t,"`useWatch` is not support dynamic `namePath`. Please provide static instead.")}:function(){};function uS(){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],i=o===void 0?{}:o,a=pj(i)?{form:i}:i,l=a.form,c=g.useState(),u=ae(c,2),d=u[0],f=u[1],m=g.useMemo(function(){return cS(d)},[d]),p=g.useRef(m);p.current=m;var h=g.useContext(di),b=l||h,v=b&&b._init;process.env.NODE_ENV!=="production"&&Ge(t.length===2?l?v:!0:v,"useWatch requires a form instance since it can not auto detect from context.");var y=Nn(r),C=g.useRef(y);return C.current=y,r6(y),g.useEffect(function(){if(v){var x=b.getFieldsValue,E=b.getInternalHooks,S=E(ui),$=S.registerWatch,O=function(_,P){var M=a.preserve?P:_;return typeof r=="function"?r(M):or(M,C.current)},I=$(function(N,_){var P=O(N,_),M=cS(P);p.current!==M&&(p.current=M,f(P))}),w=O(x(),x(!0));return d!==w&&f(w),I}},[v]),d}var o6=s.forwardRef(n6),qi=o6;qi.FormProvider=sS,qi.Field=mm,qi.List=aS,qi.useForm=vm,qi.useWatch=uS;const wo=s.createContext({labelAlign:"right",vertical:!1,itemRef:()=>{}}),dS=s.createContext(null),fS=e=>{const t=tn(e,["prefixCls"]);return s.createElement(sS,Object.assign({},t))},hm=s.createContext({prefixCls:""}),Xn=s.createContext({});process.env.NODE_ENV!=="production"&&(Xn.displayName="FormItemInputContext");const i6=e=>{let{children:t,status:n,override:r}=e;const o=s.useContext(Xn),i=s.useMemo(()=>{const a=Object.assign({},o);return r&&delete a.isFormItemInput,n&&(delete a.status,delete a.hasFeedback,delete a.feedbackIcon),a},[n,r,o]);return s.createElement(Xn.Provider,{value:i},t)},mS=s.createContext(void 0),Ui=e=>{const{space:t,form:n,children:r}=e;if(r==null)return null;let o=r;return n&&(o=g.createElement(i6,{override:!0,status:!0},o)),t&&(o=g.createElement(O3,null,o)),o};function fc(){const e={};for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(o=>{o&&Object.keys(o).forEach(i=>{o[i]!==void 0&&(e[i]=o[i])})}),e}function Gi(e){if(e)return{closable:e.closable,closeIcon:e.closeIcon}}function pS(e){const{closable:t,closeIcon:n}=e||{};return g.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 a6={};function bm(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:a6;const r=pS(e),o=pS(t),[i]=ro("global",no.global),a=typeof r!="boolean"?!!(r!=null&&r.disabled):!1,l=g.useMemo(()=>Object.assign({closeIcon:g.createElement($r,null)},n),[n]),c=g.useMemo(()=>r===!1?!1:r?fc(l,o,r):o===!1?!1:o?fc(l,o):l.closable?l:!1,[r,o,l]);return g.useMemo(()=>{if(c===!1)return[!1,null,a,{}];const{closeIconRender:u}=l,{closeIcon:d}=c;let f=d;const m=Rn(c,!0);return f!=null&&(u&&(f=u(d)),f=g.isValidElement(f)?g.cloneElement(f,Object.assign({"aria-label":i.close},m)):g.createElement("span",Object.assign({"aria-label":i.close},m),f)),[!0,f,a,m]},[c,l])}var vS=function(t){if(_n()&&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},l6=function(t,n){if(!vS(t))return!1;var r=document.createElement("div"),o=r.style[t];return r.style[t]=n,r.style[t]!==o};function ym(e,t){return!Array.isArray(e)&&t!==void 0?l6(e,t):vS(e)}const s6=()=>_n()&&window.document.documentElement,mc=e=>{const{prefixCls:t,className:n,style:r,size:o,shape:i}=e,a=G({[`${t}-lg`]:o==="large",[`${t}-sm`]:o==="small"}),l=G({[`${t}-circle`]:i==="circle",[`${t}-square`]:i==="square",[`${t}-round`]:i==="round"}),c=s.useMemo(()=>typeof o=="number"?{width:o,height:o,lineHeight:`${o}px`}:{},[o]);return s.createElement("span",{className:G(t,a,l,n),style:Object.assign(Object.assign({},c),r)})},c6=new _t("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),pc=e=>({height:e,lineHeight:U(e)}),Xi=e=>Object.assign({width:e},pc(e)),u6=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:c6,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),Cm=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},pc(e)),d6=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:o,controlHeightSM:i}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},Xi(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},Xi(o)),[`${t}${t}-sm`]:Object.assign({},Xi(i))}},f6=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:o,controlHeightSM:i,gradientFromColor:a,calc:l}=e;return{[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:n},Cm(t,l)),[`${r}-lg`]:Object.assign({},Cm(o,l)),[`${r}-sm`]:Object.assign({},Cm(i,l))}},gS=e=>Object.assign({width:e},pc(e)),m6=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:o,calc:i}=e;return{[t]:Object.assign(Object.assign({display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:r,borderRadius:o},gS(i(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},gS(n)),{maxWidth:i(n).mul(4).equal(),maxHeight:i(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},Sm=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},xm=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},pc(e)),p6=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:o,controlHeightSM:i,gradientFromColor:a,calc:l}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:t,width:l(r).mul(2).equal(),minWidth:l(r).mul(2).equal()},xm(r,l))},Sm(e,r,n)),{[`${n}-lg`]:Object.assign({},xm(o,l))}),Sm(e,o,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},xm(i,l))}),Sm(e,i,`${n}-sm`))},v6=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:o,skeletonButtonCls:i,skeletonInputCls:a,skeletonImageCls:l,controlHeight:c,controlHeightLG:u,controlHeightSM:d,gradientFromColor:f,padding:m,marginSM:p,borderRadius:h,titleHeight:b,blockRadius:v,paragraphLiHeight:y,controlHeightXS:C,paragraphMarginTop:x}=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},Xi(c)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},Xi(u)),[`${n}-sm`]:Object.assign({},Xi(d))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:b,background:f,borderRadius:v,[`+ ${o}`]:{marginBlockStart:d}},[o]:{padding:0,"> li":{width:"100%",height:y,listStyle:"none",background:f,borderRadius:v,"+ li":{marginBlockStart:C}}},[`${o}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${o} > li`]:{borderRadius:h}}},[`${t}-with-avatar ${t}-content`]:{[r]:{marginBlockStart:p,[`+ ${o}`]:{marginBlockStart:x}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},p6(e)),d6(e)),f6(e)),m6(e)),[`${t}${t}-block`]:{width:"100%",[i]:{width:"100%"},[a]:{width:"100%"}},[`${t}${t}-active`]:{[`
|
|
203
|
+
${r},
|
|
204
|
+
${o} > li,
|
|
205
|
+
${n},
|
|
206
|
+
${i},
|
|
207
|
+
${a},
|
|
208
|
+
${l}
|
|
209
|
+
`]:Object.assign({},u6(e))}}},Qi=Dt("Skeleton",e=>{const{componentCls:t,calc:n}=e,r=xt(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[v6(r)]},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}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),g6=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,shape:i="circle",size:a="default"}=e,{getPrefixCls:l}=s.useContext(Xe),c=l("skeleton",t),[u,d,f]=Qi(c),m=tn(e,["prefixCls","className"]),p=G(c,`${c}-element`,{[`${c}-active`]:o},n,r,d,f);return u(s.createElement("div",{className:p},s.createElement(mc,Object.assign({prefixCls:`${c}-avatar`,shape:i,size:a},m))))},h6=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:i=!1,size:a="default"}=e,{getPrefixCls:l}=s.useContext(Xe),c=l("skeleton",t),[u,d,f]=Qi(c),m=tn(e,["prefixCls"]),p=G(c,`${c}-element`,{[`${c}-active`]:o,[`${c}-block`]:i},n,r,d,f);return u(s.createElement("div",{className:p},s.createElement(mc,Object.assign({prefixCls:`${c}-button`,size:a},m))))},b6="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",y6=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:i}=e,{getPrefixCls:a}=s.useContext(Xe),l=a("skeleton",t),[c,u,d]=Qi(l),f=G(l,`${l}-element`,{[`${l}-active`]:i},n,r,u,d);return c(s.createElement("div",{className:f},s.createElement("div",{className:G(`${l}-image`,n),style:o},s.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${l}-image-svg`},s.createElement("title",null,"Image placeholder"),s.createElement("path",{d:b6,className:`${l}-image-path`})))))},C6=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:i,size:a="default"}=e,{getPrefixCls:l}=s.useContext(Xe),c=l("skeleton",t),[u,d,f]=Qi(c),m=tn(e,["prefixCls"]),p=G(c,`${c}-element`,{[`${c}-active`]:o,[`${c}-block`]:i},n,r,d,f);return u(s.createElement("div",{className:p},s.createElement(mc,Object.assign({prefixCls:`${c}-input`,size:a},m))))},S6=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:i,children:a}=e,{getPrefixCls:l}=s.useContext(Xe),c=l("skeleton",t),[u,d,f]=Qi(c),m=G(c,`${c}-element`,{[`${c}-active`]:i},d,n,r,f);return u(s.createElement("div",{className:m},s.createElement("div",{className:G(`${c}-image`,n),style:o},a)))},x6=(e,t)=>{const{width:n,rows:r=2}=t;if(Array.isArray(n))return n[e];if(r-1===e)return n},E6=e=>{const{prefixCls:t,className:n,style:r,rows:o=0}=e,i=Array.from({length:o}).map((a,l)=>s.createElement("li",{key:l,style:{width:x6(l,e)}}));return s.createElement("ul",{className:G(t,n),style:r},i)},$6=e=>{let{prefixCls:t,className:n,width:r,style:o}=e;return s.createElement("h3",{className:G(t,n),style:Object.assign({width:r},o)})};function Em(e){return e&&typeof e=="object"?e:{}}function w6(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function O6(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function N6(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const fi=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:o,style:i,children:a,avatar:l=!1,title:c=!0,paragraph:u=!0,active:d,round:f}=e,{getPrefixCls:m,direction:p,className:h,style:b}=An("skeleton"),v=m("skeleton",t),[y,C,x]=Qi(v);if(n||!("loading"in e)){const E=!!l,S=!!c,$=!!u;let O;if(E){const N=Object.assign(Object.assign({prefixCls:`${v}-avatar`},w6(S,$)),Em(l));O=s.createElement("div",{className:`${v}-header`},s.createElement(mc,Object.assign({},N)))}let I;if(S||$){let N;if(S){const P=Object.assign(Object.assign({prefixCls:`${v}-title`},O6(E,$)),Em(c));N=s.createElement($6,Object.assign({},P))}let _;if($){const P=Object.assign(Object.assign({prefixCls:`${v}-paragraph`},N6(E,S)),Em(u));_=s.createElement(E6,Object.assign({},P))}I=s.createElement("div",{className:`${v}-content`},N,_)}const w=G(v,{[`${v}-with-avatar`]:E,[`${v}-active`]:d,[`${v}-rtl`]:p==="rtl",[`${v}-round`]:f},h,r,o,C,x);return y(s.createElement("div",{className:w,style:Object.assign(Object.assign({},b),i)},O,I))}return a!=null?a:null};fi.Button=h6,fi.Avatar=g6,fi.Input=C6,fi.Image=y6,fi.Node=S6,process.env.NODE_ENV!=="production"&&(fi.displayName="Skeleton");const $m=fi;function hS(){}const I6=s.createContext({add:hS,remove:hS});function bS(e){const t=s.useContext(I6),n=s.useRef(null);return qt(o=>{if(o){const i=e?o.querySelector(e):o;t.add(i),n.current=i}else t.remove(n.current)})}const yS=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=g.useContext(rl);return g.createElement(on,Object.assign({onClick:n},e),t)},CS=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:o}=g.useContext(rl);return g.createElement(on,Object.assign({},pC(n),{loading:e,onClick:o},t),r)};function SS(e,t){return g.createElement("span",{className:`${e}-close-x`},t||g.createElement($r,{className:`${e}-close-icon`}))}const xS=e=>{const{okText:t,okType:n="primary",cancelText:r,confirmLoading:o,onOk:i,onCancel:a,okButtonProps:l,cancelButtonProps:c,footer:u}=e,[d]=ro("Modal",Wy()),f=t||(d==null?void 0:d.okText),m=r||(d==null?void 0:d.cancelText),p={confirmLoading:o,okButtonProps:l,cancelButtonProps:c,okTextLocale:f,cancelTextLocale:m,okType:n,onOk:i,onCancel:a},h=g.useMemo(()=>p,ge(Object.values(p)));let b;return typeof u=="function"||typeof u=="undefined"?(b=g.createElement(g.Fragment,null,g.createElement(yS,null),g.createElement(CS,null)),typeof u=="function"&&(b=u(b,{OkBtn:CS,CancelBtn:yS})),b=g.createElement(TC,{value:h},b)):b=u,g.createElement(df,{disabled:!1},b)},_6=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"}}}},T6=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},P6=(e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:o}=e,i={};for(let a=o;a>=0;a--)a===0?(i[`${r}${t}-${a}`]={display:"none"},i[`${r}-push-${a}`]={insetInlineStart:"auto"},i[`${r}-pull-${a}`]={insetInlineEnd:"auto"},i[`${r}${t}-push-${a}`]={insetInlineStart:"auto"},i[`${r}${t}-pull-${a}`]={insetInlineEnd:"auto"},i[`${r}${t}-offset-${a}`]={marginInlineStart:0},i[`${r}${t}-order-${a}`]={order:0}):(i[`${r}${t}-${a}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${a/o*100}%`,maxWidth:`${a/o*100}%`}],i[`${r}${t}-push-${a}`]={insetInlineStart:`${a/o*100}%`},i[`${r}${t}-pull-${a}`]={insetInlineEnd:`${a/o*100}%`},i[`${r}${t}-offset-${a}`]={marginInlineStart:`${a/o*100}%`},i[`${r}${t}-order-${a}`]={order:a});return i[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},i},wm=(e,t)=>P6(e,t),M6=(e,t,n)=>({[`@media (min-width: ${U(t)})`]:Object.assign({},wm(e,n))}),D6=()=>({}),A6=()=>({}),R6=Dt("Grid",_6,D6),ES=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin}),j6=Dt("Grid",e=>{const t=xt(e,{gridColumns:24}),n=ES(t);return delete n.xs,[T6(t),wm(t,""),wm(t,"-xs"),Object.keys(n).map(r=>M6(t,n[r],`-${r}`)).reduce((r,o)=>Object.assign(Object.assign({},r),o),{})]},A6);function $S(e){return{position:e,inset:0}}const L6=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({},$S("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},$S("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:nR(e)}]},z6=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:`${U(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},Ht(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${U(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:U(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},Ir(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${U(e.borderRadiusLG)} ${U(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:`${U(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,
|
|
210
|
+
${t}-body,
|
|
211
|
+
${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},B6=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},k6=e=>{const{componentCls:t}=e,n=ES(e);delete n.xs;const r=Object.keys(n).map(o=>({[`@media (min-width: ${U(n[o])})`]:{width:`var(--${t.replace(".","")}-${o}-width)`}}));return{[`${t}-root`]:{[t]:[{width:`var(--${t.replace(".","")}-xs-width)`}].concat(ge(r))}}},wS=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return xt(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()})},OS=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${U(e.paddingMD)} ${U(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${U(e.padding)} ${U(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${U(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${U(e.paddingXS)} ${U(e.padding)}`:0,footerBorderTop:e.wireframe?`${U(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${U(e.borderRadiusLG)} ${U(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${U(e.padding*2)} ${U(e.padding*2)} ${U(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM}),NS=Dt("Modal",e=>{const t=wS(e);return[z6(t),B6(t),L6(t),nl(t,"zoom"),k6(t)]},OS,{unitless:{titleLineHeight:!0}});var F6=globalThis&&globalThis.__rest||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 Om;const H6=e=>{Om={x:e.pageX,y:e.pageY},setTimeout(()=>{Om=null},100)};s6()&&document.documentElement.addEventListener("click",H6,!0);const IS=e=>{const{prefixCls:t,className:n,rootClassName:r,open:o,wrapClassName:i,centered:a,getContainer:l,focusTriggerAfterClose:c=!0,style:u,visible:d,width:f=520,footer:m,classNames:p,styles:h,children:b,loading:v,confirmLoading:y,zIndex:C,mousePosition:x,onOk:E,onCancel:S,destroyOnHidden:$,destroyOnClose:O}=e,I=F6(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","focusTriggerAfterClose","style","visible","width","footer","classNames","styles","children","loading","confirmLoading","zIndex","mousePosition","onOk","onCancel","destroyOnHidden","destroyOnClose"]),{getPopupContainer:w,getPrefixCls:N,direction:_,modal:P}=s.useContext(Xe),M=ee=>{y||S==null||S(ee)},D=ee=>{E==null||E(ee)};if(process.env.NODE_ENV!=="production"){const ee=gt("Modal");[["visible","open"],["bodyStyle","styles.body"],["maskStyle","styles.mask"],["destroyOnClose","destroyOnHidden"]].forEach(Z=>{let[ne,re]=Z;ee.deprecated(!(ne in e),ne,re)})}const T=N("modal",t),A=N(),R=On(T),[L,j,z]=NS(T,R),B=G(i,{[`${T}-centered`]:a!=null?a:P==null?void 0:P.centered,[`${T}-wrap-rtl`]:_==="rtl"}),K=m!==null&&!v?s.createElement(xS,Object.assign({},e,{onOk:D,onCancel:M})):null,[W,k,V,Q]=bm(Gi(e),Gi(P),{closable:!0,closeIcon:s.createElement($r,{className:`${T}-close-icon`}),closeIconRender:ee=>SS(T,ee)}),J=bS(`.${T}-content`),[Y,te]=ki("Modal",C),[oe,X]=s.useMemo(()=>f&&typeof f=="object"?[void 0,f]:[f,void 0],[f]),F=s.useMemo(()=>{const ee={};return X&&Object.keys(X).forEach(Z=>{const ne=X[Z];ne!==void 0&&(ee[`--${T}-${Z}-width`]=typeof ne=="number"?`${ne}px`:ne)}),ee},[X]);return L(s.createElement(Ui,{form:!0,space:!0},s.createElement(Ja.Provider,{value:te},s.createElement(qC,Object.assign({width:oe},I,{zIndex:Y,getContainer:l===void 0?w:l,prefixCls:T,rootClassName:G(j,r,z,R),footer:K,visible:o!=null?o:d,mousePosition:x!=null?x:Om,onClose:M,closable:W&&Object.assign({disabled:V,closeIcon:k},Q),closeIcon:k,focusTriggerAfterClose:c,transitionName:ao(A,"zoom",e.transitionName),maskTransitionName:ao(A,"fade",e.maskTransitionName),className:G(j,n,P==null?void 0:P.className),style:Object.assign(Object.assign(Object.assign({},P==null?void 0:P.style),u),F),classNames:Object.assign(Object.assign(Object.assign({},P==null?void 0:P.classNames),p),{wrapper:G(B,p==null?void 0:p.wrapper)}),styles:Object.assign(Object.assign({},P==null?void 0:P.styles),h),panelRef:J,destroyOnClose:$!=null?$:O}),v?s.createElement($m,{active:!0,title:!1,paragraph:{rows:4},className:`${T}-body-skeleton`}):b))))},V6=e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:o,fontSize:i,lineHeight:a,modalTitleHeight:l,fontHeight:c,confirmBodyPadding:u}=e,d=`${t}-confirm`;return{[d]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${d}-body-wrapper`]:Object.assign({},xo()),[`&${t} ${t}-body`]:{padding:u},[`${d}-body`]:{display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${e.iconCls}`]:{flex:"none",fontSize:o,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(c).sub(o).equal()).div(2).equal()},[`&-has-title > ${e.iconCls}`]:{marginTop:e.calc(e.calc(l).sub(o).equal()).div(2).equal()}},[`${d}-paragraph`]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS,maxWidth:`calc(100% - ${U(e.marginSM)})`},[`${e.iconCls} + ${d}-paragraph`]:{maxWidth:`calc(100% - ${U(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal())})`},[`${d}-title`]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},[`${d}-content`]:{color:e.colorText,fontSize:i,lineHeight:a},[`${d}-btns`]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${d}-error ${d}-body > ${e.iconCls}`]:{color:e.colorError},[`${d}-warning ${d}-body > ${e.iconCls},
|
|
212
|
+
${d}-confirm ${d}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${d}-info ${d}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${d}-success ${d}-body > ${e.iconCls}`]:{color:e.colorSuccess}}},W6=Li(["Modal","confirm"],e=>{const t=wS(e);return[V6(t)]},OS,{order:-1e3});var K6=globalThis&&globalThis.__rest||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 _S(e){const{prefixCls:t,icon:n,okText:r,cancelText:o,confirmPrefixCls:i,type:a,okCancel:l,footer:c,locale:u}=e,d=K6(e,["prefixCls","icon","okText","cancelText","confirmPrefixCls","type","okCancel","footer","locale"]);if(process.env.NODE_ENV!=="production"){const O=gt("Modal");process.env.NODE_ENV!=="production"&&O(!(typeof n=="string"&&n.length>2),"breaking",`\`icon\` is using ReactNode instead of string naming in v4. Please check \`${n}\` at https://ant.design/components/icon`)}let f=n;if(!n&&n!==null)switch(a){case"info":f=s.createElement(Ma,null);break;case"success":f=s.createElement(Mo,null);break;case"error":f=s.createElement(Do,null);break;default:f=s.createElement(Pa,null)}const m=l!=null?l:a==="confirm",p=e.autoFocusButton===null?!1:e.autoFocusButton||"ok",[h]=ro("Modal"),b=u||h,v=r||(m?b==null?void 0:b.okText:b==null?void 0:b.justOkText),y=o||(b==null?void 0:b.cancelText),C=Object.assign({autoFocusButton:p,cancelTextLocale:y,okTextLocale:v,mergedOkCancel:m},d),x=s.useMemo(()=>C,ge(Object.values(C))),E=s.createElement(s.Fragment,null,s.createElement(PC,null),s.createElement(MC,null)),S=e.title!==void 0&&e.title!==null,$=`${i}-body`;return s.createElement("div",{className:`${i}-body-wrapper`},s.createElement("div",{className:G($,{[`${$}-has-title`]:S})},f,s.createElement("div",{className:`${i}-paragraph`},S&&s.createElement("span",{className:`${i}-title`},e.title),s.createElement("div",{className:`${i}-content`},e.content))),c===void 0||typeof c=="function"?s.createElement(TC,{value:x},s.createElement("div",{className:`${i}-btns`},typeof c=="function"?c(E,{OkBtn:MC,CancelBtn:PC}):E)):c,s.createElement(W6,{prefixCls:t}))}const TS=e=>{const{close:t,zIndex:n,maskStyle:r,direction:o,prefixCls:i,wrapClassName:a,rootPrefixCls:l,bodyStyle:c,closable:u=!1,onConfirm:d,styles:f}=e;if(process.env.NODE_ENV!=="production"){const E=gt("Modal");[["visible","open"],["bodyStyle","styles.body"],["maskStyle","styles.mask"]].forEach(S=>{let[$,O]=S;E.deprecated(!($ in e),$,O)})}const m=`${i}-confirm`,p=e.width||416,h=e.style||{},b=e.mask===void 0?!0:e.mask,v=e.maskClosable===void 0?!1:e.maskClosable,y=G(m,`${m}-${e.type}`,{[`${m}-rtl`]:o==="rtl"},e.className),[,C]=Hn(),x=s.useMemo(()=>n!==void 0?n:C.zIndexPopupBase+Gs,[n,C]);return s.createElement(IS,Object.assign({},e,{className:y,wrapClassName:G({[`${m}-centered`]:!!e.centered},a),onCancel:()=>{t==null||t({triggerCancel:!0}),d==null||d(!1)},title:"",footer:null,transitionName:ao(l||"","zoom",e.transitionName),maskTransitionName:ao(l||"","fade",e.maskTransitionName),mask:b,maskClosable:v,style:h,styles:Object.assign({body:c,mask:r},f),width:p,zIndex:x,closable:u}),s.createElement(_S,Object.assign({},e,{confirmPrefixCls:m})))},Nm=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:o}=e;return s.createElement(io,{prefixCls:t,iconPrefixCls:n,direction:r,theme:o},s.createElement(TS,Object.assign({},e)))};process.env.NODE_ENV!=="production"&&(TS.displayName="ConfirmDialog",Nm.displayName="ConfirmDialogWrapper");const mi=[];let PS="";function MS(){return PS}const q6=e=>{var t,n;const{prefixCls:r,getContainer:o,direction:i}=e,a=Wy(),l=g.useContext(Xe),c=MS()||l.getPrefixCls(),u=r||`${c}-modal`;let d=o;return d===!1&&(d=void 0,process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="production"&&zo(!1,"Modal","Static method not support `getContainer` to be `false` since it do not have context env.")),g.createElement(Nm,Object.assign({},e,{rootPrefixCls:c,prefixCls:u,iconPrefixCls:l.iconPrefixCls,theme:l.theme,direction:i!=null?i:l.direction,locale:(n=(t=l.locale)===null||t===void 0?void 0:t.Modal)!==null&&n!==void 0?n:a,getContainer:d}))};function cl(e){const t=wf();process.env.NODE_ENV!=="production"&&!t.holderRender&&_0("Modal");const n=document.createDocumentFragment();let r=Object.assign(Object.assign({},e),{close:c,open:!0}),o,i;function a(){for(var d,f=arguments.length,m=new Array(f),p=0;p<f;p++)m[p]=arguments[p];if(m.some(v=>v==null?void 0:v.triggerCancel)){var b;(d=e.onCancel)===null||d===void 0||(b=d).call.apply(b,[e,()=>{}].concat(ge(m.slice(1))))}for(let v=0;v<mi.length;v++)if(mi[v]===c){mi.splice(v,1);break}i()}function l(d){clearTimeout(o),o=setTimeout(()=>{const f=t.getPrefixCls(void 0,MS()),m=t.getIconPrefixCls(),p=t.getTheme(),h=g.createElement(q6,Object.assign({},d));i=Df()(g.createElement(io,{prefixCls:f,iconPrefixCls:m,theme:p},t.holderRender?t.holderRender(h):h),n)})}function c(){for(var d=arguments.length,f=new Array(d),m=0;m<d;m++)f[m]=arguments[m];r=Object.assign(Object.assign({},r),{open:!1,afterClose:()=>{typeof e.afterClose=="function"&&e.afterClose(),a.apply(this,f)}}),r.visible&&delete r.visible,l(r)}function u(d){typeof d=="function"?r=d(r):r=Object.assign(Object.assign({},r),d),l(r)}return l(r),mi.push(c),{destroy:c,update:u}}function DS(e){return Object.assign(Object.assign({},e),{type:"warning"})}function AS(e){return Object.assign(Object.assign({},e),{type:"info"})}function RS(e){return Object.assign(Object.assign({},e),{type:"success"})}function jS(e){return Object.assign(Object.assign({},e),{type:"error"})}function LS(e){return Object.assign(Object.assign({},e),{type:"confirm"})}function U6(e){let{rootPrefixCls:t}=e;process.env.NODE_ENV!=="production"&&zo(!1,"Modal","Modal.config is deprecated. Please use ConfigProvider.config instead."),PS=t}var G6=globalThis&&globalThis.__rest||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 X6=(e,t)=>{var n,{afterClose:r,config:o}=e,i=G6(e,["afterClose","config"]);const[a,l]=s.useState(!0),[c,u]=s.useState(o),{direction:d,getPrefixCls:f}=s.useContext(Xe),m=f("modal"),p=f(),h=()=>{var C;r(),(C=c.afterClose)===null||C===void 0||C.call(c)},b=function(){var C;l(!1);for(var x=arguments.length,E=new Array(x),S=0;S<x;S++)E[S]=arguments[S];if(E.some(I=>I==null?void 0:I.triggerCancel)){var O;(C=c.onCancel)===null||C===void 0||(O=C).call.apply(O,[c,()=>{}].concat(ge(E.slice(1))))}};s.useImperativeHandle(t,()=>({destroy:b,update:C=>{u(x=>Object.assign(Object.assign({},x),C))}}));const v=(n=c.okCancel)!==null&&n!==void 0?n:c.type==="confirm",[y]=ro("Modal",no.Modal);return s.createElement(Nm,Object.assign({prefixCls:m,rootPrefixCls:p},c,{close:b,open:a,afterClose:h,okText:c.okText||(v?y==null?void 0:y.okText:y==null?void 0:y.justOkText),direction:c.direction||d,cancelText:c.cancelText||(y==null?void 0:y.cancelText)},i))},Q6=s.forwardRef(X6);let zS=0;const Y6=s.memo(s.forwardRef((e,t)=>{const[n,r]=a3();return s.useImperativeHandle(t,()=>({patchElement:r}),[]),s.createElement(s.Fragment,null,n)}));function BS(){const e=s.useRef(null),[t,n]=s.useState([]);s.useEffect(()=>{t.length&&(ge(t).forEach(a=>{a()}),n([]))},[t]);const r=s.useCallback(i=>function(l){var c;zS+=1;const u=s.createRef();let d;const f=new Promise(v=>{d=v});let m=!1,p;const h=s.createElement(Q6,{key:`modal-${zS}`,config:i(l),ref:u,afterClose:()=>{p==null||p()},isSilent:()=>m,onConfirm:v=>{d(v)}});return p=(c=e.current)===null||c===void 0?void 0:c.patchElement(h),p&&mi.push(p),{destroy:()=>{function v(){var y;(y=u.current)===null||y===void 0||y.destroy()}u.current?v():n(y=>[].concat(ge(y),[v]))},update:v=>{function y(){var C;(C=u.current)===null||C===void 0||C.update(v)}u.current?y():n(C=>[].concat(ge(C),[y]))},then:v=>(m=!0,f.then(v))}},[]);return[s.useMemo(()=>({info:r(AS),success:r(RS),error:r(jS),warning:r(DS),confirm:r(LS)}),[]),s.createElement(Y6,{key:"modal-holder",ref:e})]}const J6=e=>{const{componentCls:t,notificationMarginEdge:n,animationMaxHeight:r}=e,o=`${t}-notice`,i=new _t("antNotificationFadeIn",{"0%":{transform:"translate3d(100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}}),a=new _t("antNotificationTopFadeIn",{"0%":{top:-r,opacity:0},"100%":{top:0,opacity:1}}),l=new _t("antNotificationBottomFadeIn",{"0%":{bottom:e.calc(r).mul(-1).equal(),opacity:0},"100%":{bottom:0,opacity:1}}),c=new _t("antNotificationLeftFadeIn",{"0%":{transform:"translate3d(-100%, 0, 0)",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",opacity:1}});return{[t]:{[`&${t}-top, &${t}-bottom`]:{marginInline:0,[o]:{marginInline:"auto auto"}},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:a}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:l}},[`&${t}-topRight, &${t}-bottomRight`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:i}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginRight:{value:0,_skip_check_:!0},marginLeft:{value:n,_skip_check_:!0},[o]:{marginInlineEnd:"auto",marginInlineStart:0},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:c}}}}},Z6=["top","topLeft","topRight","bottom","bottomLeft","bottomRight"],eL={topLeft:"left",topRight:"right",bottomLeft:"left",bottomRight:"right",top:"left",bottom:"left"},tL=(e,t)=>{const{componentCls:n}=e;return{[`${n}-${t}`]:{[`&${n}-stack > ${n}-notice-wrapper`]:{[t.startsWith("top")?"top":"bottom"]:0,[eL[t]]:{value:0,_skip_check_:!0}}}}},nL=e=>{const t={};for(let n=1;n<e.notificationStackLayer;n++)t[`&:nth-last-child(${n+1})`]={overflow:"hidden",[`& > ${e.componentCls}-notice`]:{opacity:0,transition:`opacity ${e.motionDurationMid}`}};return Object.assign({[`&:not(:nth-last-child(-n+${e.notificationStackLayer}))`]:{opacity:0,overflow:"hidden",color:"transparent",pointerEvents:"none"}},t)},rL=e=>{const t={};for(let n=1;n<e.notificationStackLayer;n++)t[`&:nth-last-child(${n+1})`]={background:e.colorBgBlur,backdropFilter:"blur(10px)","-webkit-backdrop-filter":"blur(10px)"};return Object.assign({},t)},oL=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-stack`]:{[`& > ${t}-notice-wrapper`]:Object.assign({transition:`transform ${e.motionDurationSlow}, backdrop-filter 0s`,willChange:"transform, opacity",position:"absolute"},nL(e))},[`${t}-stack:not(${t}-stack-expanded)`]:{[`& > ${t}-notice-wrapper`]:Object.assign({},rL(e))},[`${t}-stack${t}-stack-expanded`]:{[`& > ${t}-notice-wrapper`]:{"&:not(:nth-last-child(-n + 1))":{opacity:1,overflow:"unset",color:"inherit",pointerEvents:"auto",[`& > ${e.componentCls}-notice`]:{opacity:1}},"&:after":{content:'""',position:"absolute",height:e.margin,width:"100%",insetInline:0,bottom:e.calc(e.margin).mul(-1).equal(),background:"transparent",pointerEvents:"auto"}}}},Z6.map(n=>tL(e,n)).reduce((n,r)=>Object.assign(Object.assign({},n),r),{}))},iL=e=>{const{iconCls:t,componentCls:n,boxShadow:r,fontSizeLG:o,notificationMarginBottom:i,borderRadiusLG:a,colorSuccess:l,colorInfo:c,colorWarning:u,colorError:d,colorTextHeading:f,notificationBg:m,notificationPadding:p,notificationMarginEdge:h,notificationProgressBg:b,notificationProgressHeight:v,fontSize:y,lineHeight:C,width:x,notificationIconSize:E,colorText:S}=e,$=`${n}-notice`;return{position:"relative",marginBottom:i,marginInlineStart:"auto",background:m,borderRadius:a,boxShadow:r,[$]:{padding:p,width:x,maxWidth:`calc(100vw - ${U(e.calc(h).mul(2).equal())})`,overflow:"hidden",lineHeight:C,wordWrap:"break-word"},[`${$}-message`]:{marginBottom:e.marginXS,color:f,fontSize:o,lineHeight:e.lineHeightLG},[`${$}-description`]:{fontSize:y,color:S},[`${$}-closable ${$}-message`]:{paddingInlineEnd:e.paddingLG},[`${$}-with-icon ${$}-message`]:{marginBottom:e.marginXS,marginInlineStart:e.calc(e.marginSM).add(E).equal(),fontSize:o},[`${$}-with-icon ${$}-description`]:{marginInlineStart:e.calc(e.marginSM).add(E).equal(),fontSize:y},[`${$}-icon`]:{position:"absolute",fontSize:E,lineHeight:1,[`&-success${t}`]:{color:l},[`&-info${t}`]:{color:c},[`&-warning${t}`]:{color:u},[`&-error${t}`]:{color:d}},[`${$}-close`]:Object.assign({position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center",background:"none",border:"none","&:hover":{color:e.colorIconHover,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},Ir(e)),[`${$}-progress`]:{position:"absolute",display:"block",appearance:"none",inlineSize:`calc(100% - ${U(a)} * 2)`,left:{_skip_check_:!0,value:a},right:{_skip_check_:!0,value:a},bottom:0,blockSize:v,border:0,"&, &::-webkit-progress-bar":{borderRadius:a,backgroundColor:"rgba(0, 0, 0, 0.04)"},"&::-moz-progress-bar":{background:b},"&::-webkit-progress-value":{borderRadius:a,background:b}},[`${$}-actions`]:{float:"right",marginTop:e.marginSM}}},aL=e=>{const{componentCls:t,notificationMarginBottom:n,notificationMarginEdge:r,motionDurationMid:o,motionEaseInOut:i}=e,a=`${t}-notice`,l=new _t("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:n},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[t]:Object.assign(Object.assign({},Ht(e)),{position:"fixed",zIndex:e.zIndexPopup,marginRight:{value:r,_skip_check_:!0},[`${t}-hook-holder`]:{position:"relative"},[`${t}-fade-appear-prepare`]:{opacity:"0 !important"},[`${t}-fade-enter, ${t}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:i,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${t}-fade-leave`]:{animationTimingFunction:i,animationFillMode:"both",animationDuration:o,animationPlayState:"paused"},[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationPlayState:"running"},[`${t}-fade-leave${t}-fade-leave-active`]:{animationName:l,animationPlayState:"running"},"&-rtl":{direction:"rtl",[`${a}-actions`]:{float:"left"}}})},{[t]:{[`${a}-wrapper`]:Object.assign({},iL(e))}}]},lL=e=>({zIndexPopup:e.zIndexPopupBase+Gs+50,width:384}),sL=e=>{const t=e.paddingMD,n=e.paddingLG;return xt(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:n,notificationIconSize:e.calc(e.fontSizeLG).mul(e.lineHeightLG).equal(),notificationCloseButtonSize:e.calc(e.controlHeightLG).mul(.55).equal(),notificationMarginBottom:e.margin,notificationPadding:`${U(e.paddingMD)} ${U(e.paddingContentHorizontalLG)}`,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationStackLayer:3,notificationProgressHeight:2,notificationProgressBg:`linear-gradient(90deg, ${e.colorPrimaryBorderHover}, ${e.colorPrimary})`})},cL=Dt("Notification",e=>{const t=sL(e);return[aL(t),J6(t),oL(t)]},lL);globalThis&&globalThis.__rest;function kS(e,t){return t===null||t===!1?null:t||s.createElement($r,{className:`${e}-close-icon`})}const uL={success:Mo,info:Ma,error:Do,warning:Pa},dL=e=>{const{prefixCls:t,icon:n,type:r,message:o,description:i,actions:a,role:l="alert"}=e;let c=null;return n?c=s.createElement("span",{className:`${t}-icon`},n):r&&(c=s.createElement(uL[r]||null,{className:G(`${t}-icon`,`${t}-icon-${r}`)})),s.createElement("div",{className:G({[`${t}-with-icon`]:c}),role:l},c,s.createElement("div",{className:`${t}-message`},o),s.createElement("div",{className:`${t}-description`},i),a&&s.createElement("div",{className:`${t}-actions`},a))};function fL(e,t,n){let r;switch(e){case"top":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:t,bottom:"auto"};break;case"topLeft":r={left:0,top:t,bottom:"auto"};break;case"topRight":r={right:0,top:t,bottom:"auto"};break;case"bottom":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:n};break;case"bottomLeft":r={left:0,top:"auto",bottom:n};break;default:r={right:0,top:"auto",bottom:n};break}return r}function mL(e){return{motionName:`${e}-fade`}}function pL(e,t,n){return typeof e!="undefined"?e:typeof(t==null?void 0:t.closeIcon)!="undefined"?t.closeIcon:n==null?void 0:n.closeIcon}var vL=globalThis&&globalThis.__rest||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 FS=24,gL=4.5,hL="topRight",bL=e=>{let{children:t,prefixCls:n}=e;const r=On(n),[o,i,a]=cL(n,r);return o(g.createElement(W0,{classNames:{list:G(i,a,r)}},t))},yL=(e,t)=>{let{prefixCls:n,key:r}=t;return g.createElement(bL,{prefixCls:n,key:r},e)},CL=g.forwardRef((e,t)=>{const{top:n,bottom:r,prefixCls:o,getContainer:i,maxCount:a,rtl:l,onAllRemoved:c,stack:u,duration:d,pauseOnHover:f=!0,showProgress:m}=e,{getPrefixCls:p,getPopupContainer:h,notification:b,direction:v}=g.useContext(Xe),[,y]=Hn(),C=o||p("notification"),x=I=>fL(I,n!=null?n:FS,r!=null?r:FS),E=()=>G({[`${C}-rtl`]:l!=null?l:v==="rtl"}),S=()=>mL(C),[$,O]=Y0({prefixCls:C,style:x,className:E,motion:S,closable:!0,closeIcon:kS(C),duration:d!=null?d:gL,getContainer:()=>(i==null?void 0:i())||(h==null?void 0:h())||document.body,maxCount:a,pauseOnHover:f,showProgress:m,onAllRemoved:c,renderNotifications:yL,stack:u===!1?!1:{threshold:typeof u=="object"?u==null?void 0:u.threshold:void 0,offset:8,gap:y.margin}});return g.useImperativeHandle(t,()=>Object.assign(Object.assign({},$),{prefixCls:C,notification:b})),O});function SL(e){const t=g.useRef(null),n=gt("Notification");return[g.useMemo(()=>{const o=c=>{var u;if(!t.current){process.env.NODE_ENV!=="production"&&n(!1,"usage","You are calling notice in render which will break in React 18 concurrent mode. Please trigger in effect instead.");return}const{open:d,prefixCls:f,notification:m}=t.current,p=`${f}-notice`,{message:h,description:b,icon:v,type:y,btn:C,actions:x,className:E,style:S,role:$="alert",closeIcon:O,closable:I}=c,w=vL(c,["message","description","icon","type","btn","actions","className","style","role","closeIcon","closable"]);process.env.NODE_ENV!=="production"&&n.deprecated(!C,"btn","actions");const N=x!=null?x:C,_=kS(p,pL(O,e,m));return d(Object.assign(Object.assign({placement:(u=e==null?void 0:e.placement)!==null&&u!==void 0?u:hL},w),{content:g.createElement(dL,{prefixCls:p,icon:v,type:y,message:h,description:b,actions:N,role:$}),className:G(y&&`${p}-${y}`,E,m==null?void 0:m.className),style:Object.assign(Object.assign({},m==null?void 0:m.style),S),closeIcon:_,closable:I!=null?I:!!_}))},a={open:o,destroy:c=>{var u,d;c!==void 0?(u=t.current)===null||u===void 0||u.close(c):(d=t.current)===null||d===void 0||d.destroy()}};return["success","info","warning","error"].forEach(c=>{a[c]=u=>o(Object.assign(Object.assign({},u),{type:c}))}),a},[]),g.createElement(CL,Object.assign({key:"notification-holder"},e,{ref:t}))]}function xL(e){return SL(e)}const Im=g.createContext({}),HS=g.createContext({message:{},notification:{},modal:{}}),EL=Dt("App",e=>{const{componentCls:t,colorText:n,fontSize:r,lineHeight:o,fontFamily:i}=e;return{[t]:{color:n,fontSize:r,lineHeight:o,fontFamily:i,[`&${t}-rtl`]:{direction:"rtl"}}}},()=>({})),VS=e=>{const{prefixCls:t,children:n,className:r,rootClassName:o,message:i,notification:a,style:l,component:c="div"}=e,{direction:u,getPrefixCls:d}=g.useContext(Xe),f=d("app",t),[m,p,h]=EL(f),b=G(p,f,r,o,h,{[`${f}-rtl`]:u==="rtl"}),v=g.useContext(Im),y=g.useMemo(()=>({message:Object.assign(Object.assign({},v.message),i),notification:Object.assign(Object.assign({},v.notification),a)}),[i,a,v.message,v.notification]),[C,x]=oC(y.message),[E,S]=xL(y.notification),[$,O]=BS(),I=g.useMemo(()=>({message:C,notification:E,modal:$}),[C,E,$]);gt("App")(!(h&&c===!1),"usage","When using cssVar, ensure `component` is assigned a valid React component string.");const w=c===!1?g.Fragment:c,N={className:b,style:l};return m(g.createElement(HS.Provider,{value:I},g.createElement(Im.Provider,{value:y},g.createElement(w,Object.assign({},c===!1?void 0:N),O,x,S,n))))};process.env.NODE_ENV!=="production"&&(VS.displayName="App");const $L=VS,wL=()=>g.useContext(HS),WS=$L;WS.useApp=wL;const KS=WS;function qS(e){return t=>s.createElement(io,{theme:{token:{motion:!1,zIndexPopupBase:0}}},s.createElement(e,Object.assign({},t)))}const US=(e,t,n,r,o)=>qS(a=>{const{prefixCls:l,style:c}=a,u=s.useRef(null),[d,f]=s.useState(0),[m,p]=s.useState(0),[h,b]=ln(!1,{value:a.open}),{getPrefixCls:v}=s.useContext(Xe),y=v(r||"select",l);s.useEffect(()=>{if(b(!0),typeof ResizeObserver!="undefined"){const E=new ResizeObserver($=>{const O=$[0].target;f(O.offsetHeight+8),p(O.offsetWidth)}),S=setInterval(()=>{var $;const O=o?`.${o(y)}`:`.${y}-dropdown`,I=($=u.current)===null||$===void 0?void 0:$.querySelector(O);I&&(clearInterval(S),E.observe(I))},10);return()=>{clearInterval(S),E.disconnect()}}},[]);let C=Object.assign(Object.assign({},a),{style:Object.assign(Object.assign({},c),{margin:0}),open:h,visible:h,getPopupContainer:()=>u.current});n&&(C=n(C)),t&&Object.assign(C,{[t]:{overflow:{adjustX:!1,adjustY:!1}}});const x={paddingBottom:d,position:"relative",minWidth:m};return s.createElement("div",{ref:u,style:x},s.createElement(e,Object.assign({},C)))}),_m=function(){if(typeof navigator=="undefined"||typeof window=="undefined")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 vc=function(t){var n=t.className,r=t.customizeIcon,o=t.customizeIconProps,i=t.children,a=t.onMouseDown,l=t.onClick,c=typeof r=="function"?r(o):r;return s.createElement("span",{className:n,onMouseDown:function(d){d.preventDefault(),a==null||a(d)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:l,"aria-hidden":!0},c!==void 0?c:s.createElement("span",{className:G(n.split(/\s+/).map(function(u){return"".concat(u,"-icon")}))},i))},OL=function(t,n,r,o,i){var a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,l=arguments.length>6?arguments[6]:void 0,c=arguments.length>7?arguments[7]:void 0,u=g.useMemo(function(){if(He(o)==="object")return o.clearIcon;if(i)return i},[o,i]),d=g.useMemo(function(){return!!(!a&&o&&(r.length||l)&&!(c==="combobox"&&l===""))},[o,a,r.length,l,c]);return{allowClear:d,clearIcon:g.createElement(vc,{className:"".concat(t,"-clear"),onMouseDown:n,customizeIcon:u},"×")}},GS=s.createContext(null);function NL(){return s.useContext(GS)}function IL(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=s.useState(!1),n=ae(t,2),r=n[0],o=n[1],i=s.useRef(null),a=function(){window.clearTimeout(i.current)};s.useEffect(function(){return a},[]);var l=function(u,d){a(),i.current=window.setTimeout(function(){o(u),d&&d()},e)};return[r,l,a]}function XS(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=s.useRef(null),n=s.useRef(null);s.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 _L(e,t,n,r){var o=s.useRef(null);o.current={open:t,triggerOpen:n,customizedTrigger:r},s.useEffect(function(){function i(a){var l;if(!((l=o.current)!==null&&l!==void 0&&l.customizedTrigger)){var c=a.target;c.shadowRoot&&a.composed&&(c=a.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",i),function(){return window.removeEventListener("mousedown",i)}},[])}function TL(e){return e&&![ye.ESC,ye.SHIFT,ye.BACKSPACE,ye.TAB,ye.WIN_KEY,ye.ALT,ye.META,ye.WIN_KEY_RIGHT,ye.CTRL,ye.SEMICOLON,ye.EQUALS,ye.CAPS_LOCK,ye.CONTEXT_MENU,ye.F1,ye.F2,ye.F3,ye.F4,ye.F5,ye.F6,ye.F7,ye.F8,ye.F9,ye.F10,ye.F11,ye.F12].includes(e)}var PL=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],Yi=void 0;function ML(e,t){var n=e.prefixCls,r=e.invalidate,o=e.item,i=e.renderItem,a=e.responsive,l=e.responsiveDisabled,c=e.registerSize,u=e.itemKey,d=e.className,f=e.style,m=e.children,p=e.display,h=e.order,b=e.component,v=b===void 0?"div":b,y=tt(e,PL),C=a&&!p;function x(I){c(u,I)}s.useEffect(function(){return function(){x(null)}},[]);var E=i&&o!==Yi?i(o,{index:h}):m,S;r||(S={opacity:C?0:1,height:C?0:Yi,overflowY:C?"hidden":Yi,order:a?h:Yi,pointerEvents:C?"none":Yi,position:C?"absolute":Yi});var $={};C&&($["aria-hidden"]=!0);var O=s.createElement(v,ce({className:G(!r&&n,d),style:q(q({},S),f)},$,y,{ref:t}),E);return a&&(O=s.createElement(Kn,{onResize:function(w){var N=w.offsetWidth;x(N)},disabled:l},O)),O}var ul=s.forwardRef(ML);ul.displayName="Item";function DL(e){if(typeof MessageChannel=="undefined")Rt(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function AL(){var e=s.useRef(null),t=function(r){e.current||(e.current=[],DL(function(){nr.unstable_batchedUpdates(function(){e.current.forEach(function(o){o()}),e.current=null})})),e.current.push(r)};return t}function dl(e,t){var n=s.useState(t),r=ae(n,2),o=r[0],i=r[1],a=qt(function(l){e(function(){i(l)})});return[o,a]}var gc=g.createContext(null),RL=["component"],jL=["className"],LL=["className"],zL=function(t,n){var r=s.useContext(gc);if(!r){var o=t.component,i=o===void 0?"div":o,a=tt(t,RL);return s.createElement(i,ce({},a,{ref:n}))}var l=r.className,c=tt(r,jL),u=t.className,d=tt(t,LL);return s.createElement(gc.Provider,{value:null},s.createElement(ul,ce({ref:n,className:G(l,u)},c,d)))},QS=s.forwardRef(zL);QS.displayName="RawItem";var BL=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],YS="responsive",JS="invalidate";function kL(e){return"+ ".concat(e.length," ...")}function FL(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,o=e.data,i=o===void 0?[]:o,a=e.renderItem,l=e.renderRawItem,c=e.itemKey,u=e.itemWidth,d=u===void 0?10:u,f=e.ssr,m=e.style,p=e.className,h=e.maxCount,b=e.renderRest,v=e.renderRawRest,y=e.suffix,C=e.component,x=C===void 0?"div":C,E=e.itemComponent,S=e.onVisibleChange,$=tt(e,BL),O=f==="full",I=AL(),w=dl(I,null),N=ae(w,2),_=N[0],P=N[1],M=_||0,D=dl(I,new Map),T=ae(D,2),A=T[0],R=T[1],L=dl(I,0),j=ae(L,2),z=j[0],B=j[1],K=dl(I,0),W=ae(K,2),k=W[0],V=W[1],Q=dl(I,0),J=ae(Q,2),Y=J[0],te=J[1],oe=g.useState(null),X=ae(oe,2),F=X[0],ee=X[1],Z=g.useState(null),ne=ae(Z,2),re=ne[0],se=ne[1],le=s.useMemo(function(){return re===null&&O?Number.MAX_SAFE_INTEGER:re||0},[re,_]),he=g.useState(!1),fe=ae(he,2),ie=fe[0],ue=fe[1],de="".concat(r,"-item"),me=Math.max(z,k),Ce=h===YS,Oe=i.length&&Ce,Te=h===JS,je=Oe||typeof h=="number"&&i.length>h,Ne=g.useMemo(function(){var ke=i;return Oe?_===null&&O?ke=i:ke=i.slice(0,Math.min(i.length,M/d)):typeof h=="number"&&(ke=i.slice(0,h)),ke},[i,d,_,h,Oe]),Ie=g.useMemo(function(){return Oe?i.slice(le+1):i.slice(Ne.length)},[i,Ne,Oe,le]),xe=g.useCallback(function(ke,Me){var Pe;return typeof c=="function"?c(ke):(Pe=c&&(ke==null?void 0:ke[c]))!==null&&Pe!==void 0?Pe:Me},[c]),be=g.useCallback(a||function(ke){return ke},[a]);function Ee(ke,Me,Pe){re===ke&&(Me===void 0||Me===F)||(se(ke),Pe||(ue(ke<i.length-1),S==null||S(ke)),Me!==void 0&&ee(Me))}function $e(ke,Me){P(Me.clientWidth)}function _e(ke,Me){R(function(Pe){var at=new Map(Pe);return Me===null?at.delete(ke):at.set(ke,Me),at})}function ve(ke,Me){V(Me),B(k)}function Se(ke,Me){te(Me)}function Je(ke){return A.get(xe(Ne[ke],ke))}wt(function(){if(M&&typeof me=="number"&&Ne){var ke=Y,Me=Ne.length,Pe=Me-1;if(!Me){Ee(0,null);return}for(var at=0;at<Me;at+=1){var ct=Je(at);if(O&&(ct=ct||0),ct===void 0){Ee(at-1,void 0,!0);break}if(ke+=ct,Pe===0&&ke<=M||at===Pe-1&&ke+Je(Pe)<=M){Ee(Pe,null);break}else if(ke+me>M){Ee(at-1,ke-ct-Y+k);break}}y&&Je(0)+Y>M&&ee(null)}},[M,A,k,Y,xe,Ne]);var it=ie&&!!Ie.length,Nt={};F!==null&&Oe&&(Nt={position:"absolute",left:F,top:0});var Tt={prefixCls:de,responsive:Oe,component:E,invalidate:Te},Gt=l?function(ke,Me){var Pe=xe(ke,Me);return s.createElement(gc.Provider,{key:Pe,value:q(q({},Tt),{},{order:Me,item:ke,itemKey:Pe,registerSize:_e,display:Me<=le})},l(ke,Me))}:function(ke,Me){var Pe=xe(ke,Me);return s.createElement(ul,ce({},Tt,{order:Me,key:Pe,item:ke,renderItem:be,itemKey:Pe,registerSize:_e,display:Me<=le}))},st={order:it?le:Number.MAX_SAFE_INTEGER,className:"".concat(de,"-rest"),registerSize:ve,display:it},Pt=b||kL,pt=v?s.createElement(gc.Provider,{value:q(q({},Tt),st)},v(Ie)):s.createElement(ul,ce({},Tt,st),typeof Pt=="function"?Pt(Ie):Pt),et=s.createElement(x,ce({className:G(!Te&&r,p),style:m,ref:t},$),Ne.map(Gt),je?pt:null,y&&s.createElement(ul,ce({},Tt,{responsive:Ce,responsiveDisabled:!Oe,order:le,className:"".concat(de,"-suffix"),registerSize:Se,display:!0,style:Nt}),y));return Ce?s.createElement(Kn,{onResize:$e,disabled:!Oe},et):et}var so=s.forwardRef(FL);so.displayName="Overflow",so.Item=QS,so.RESPONSIVE=YS,so.INVALIDATE=JS;function HL(e,t,n){var r=q(q({},e),n?t:{});return Object.keys(t).forEach(function(o){var i=t[o];typeof i=="function"&&(r[o]=function(){for(var a,l=arguments.length,c=new Array(l),u=0;u<l;u++)c[u]=arguments[u];return i.apply(void 0,c),(a=e[o])===null||a===void 0?void 0:a.call.apply(a,[e].concat(c))})}),r}var VL=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],WL=function(t,n){var r=t.prefixCls,o=t.id,i=t.inputElement,a=t.autoFocus,l=t.autoComplete,c=t.editable,u=t.activeDescendantId,d=t.value,f=t.open,m=t.attrs,p=tt(t,VL),h=i||s.createElement("input",null),b=h,v=b.ref,y=b.props;return bo(!("maxLength"in h.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),h=s.cloneElement(h,q(q(q({type:"search"},HL(p,y,!0)),{},{id:o,ref:Wn(n,v),autoComplete:l||"off",autoFocus:a,className:G("".concat(r,"-selection-search-input"),y==null?void 0:y.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:q(q({},y.style),{},{opacity:c?null:0})})),h},Tm=s.forwardRef(WL);process.env.NODE_ENV!=="production"&&(Tm.displayName="Input");function Pm(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var KL=typeof window!="undefined"&&window.document&&window.document.documentElement,qL=process.env.NODE_ENV!=="test"&&KL;function UL(e){return e!=null}function GL(e){return!e&&e!==0}function ZS(e){return["string","number"].includes(He(e))}function ex(e){var t=void 0;return e&&(ZS(e.title)?t=e.title.toString():ZS(e.label)&&(t=e.label.toString())),t}function XL(e,t){qL?s.useLayoutEffect(e,t):s.useEffect(e,t)}function QL(e){var t;return(t=e.key)!==null&&t!==void 0?t:e.value}var tx=function(t){t.preventDefault(),t.stopPropagation()},YL=function(t){var n=t.id,r=t.prefixCls,o=t.values,i=t.open,a=t.searchValue,l=t.autoClearSearchValue,c=t.inputRef,u=t.placeholder,d=t.disabled,f=t.mode,m=t.showSearch,p=t.autoFocus,h=t.autoComplete,b=t.activeDescendantId,v=t.tabIndex,y=t.removeIcon,C=t.maxTagCount,x=t.maxTagTextLength,E=t.maxTagPlaceholder,S=E===void 0?function(Z){return"+ ".concat(Z.length," ...")}:E,$=t.tagRender,O=t.onToggleOpen,I=t.onRemove,w=t.onInputChange,N=t.onInputPaste,_=t.onInputKeyDown,P=t.onInputMouseDown,M=t.onInputCompositionStart,D=t.onInputCompositionEnd,T=t.onInputBlur,A=s.useRef(null),R=g.useState(0),L=ae(R,2),j=L[0],z=L[1],B=g.useState(!1),K=ae(B,2),W=K[0],k=K[1],V="".concat(r,"-selection"),Q=i||f==="multiple"&&l===!1||f==="tags"?a:"",J=f==="tags"||f==="multiple"&&l===!1||m&&(i||W);XL(function(){z(A.current.scrollWidth)},[Q]);var Y=function(ne,re,se,le,he){return s.createElement("span",{title:ex(ne),className:G("".concat(V,"-item"),H({},"".concat(V,"-item-disabled"),se))},s.createElement("span",{className:"".concat(V,"-item-content")},re),le&&s.createElement(vc,{className:"".concat(V,"-item-remove"),onMouseDown:tx,onClick:he,customizeIcon:y},"×"))},te=function(ne,re,se,le,he,fe){var ie=function(de){tx(de),O(!i)};return s.createElement("span",{onMouseDown:ie},$({label:re,value:ne,disabled:se,closable:le,onClose:he,isMaxTag:!!fe}))},oe=function(ne){var re=ne.disabled,se=ne.label,le=ne.value,he=!d&&!re,fe=se;if(typeof x=="number"&&(typeof se=="string"||typeof se=="number")){var ie=String(fe);ie.length>x&&(fe="".concat(ie.slice(0,x),"..."))}var ue=function(me){me&&me.stopPropagation(),I(ne)};return typeof $=="function"?te(le,fe,re,he,ue):Y(ne,fe,re,he,ue)},X=function(ne){if(!o.length)return null;var re=typeof S=="function"?S(ne):S;return typeof $=="function"?te(void 0,re,!1,!1,void 0,!0):Y({title:re},re,!1)},F=s.createElement("div",{className:"".concat(V,"-search"),style:{width:j},onFocus:function(){k(!0)},onBlur:function(){k(!1)}},s.createElement(Tm,{ref:c,open:i,prefixCls:r,id:n,inputElement:null,disabled:d,autoFocus:p,autoComplete:h,editable:J,activeDescendantId:b,value:Q,onKeyDown:_,onMouseDown:P,onChange:w,onPaste:N,onCompositionStart:M,onCompositionEnd:D,onBlur:T,tabIndex:v,attrs:Rn(t,!0)}),s.createElement("span",{ref:A,className:"".concat(V,"-search-mirror"),"aria-hidden":!0},Q," ")),ee=s.createElement(so,{prefixCls:"".concat(V,"-overflow"),data:o,renderItem:oe,renderRest:X,suffix:F,itemKey:QL,maxCount:C});return s.createElement("span",{className:"".concat(V,"-wrap")},ee,!o.length&&!Q&&s.createElement("span",{className:"".concat(V,"-placeholder")},u))},JL=function(t){var n=t.inputElement,r=t.prefixCls,o=t.id,i=t.inputRef,a=t.disabled,l=t.autoFocus,c=t.autoComplete,u=t.activeDescendantId,d=t.mode,f=t.open,m=t.values,p=t.placeholder,h=t.tabIndex,b=t.showSearch,v=t.searchValue,y=t.activeValue,C=t.maxLength,x=t.onInputKeyDown,E=t.onInputMouseDown,S=t.onInputChange,$=t.onInputPaste,O=t.onInputCompositionStart,I=t.onInputCompositionEnd,w=t.onInputBlur,N=t.title,_=s.useState(!1),P=ae(_,2),M=P[0],D=P[1],T=d==="combobox",A=T||b,R=m[0],L=v||"";T&&y&&!M&&(L=y),s.useEffect(function(){T&&D(!1)},[T,y]);var j=d!=="combobox"&&!f&&!b?!1:!!L,z=N===void 0?ex(R):N,B=s.useMemo(function(){return R?null:s.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:j?{visibility:"hidden"}:void 0},p)},[R,j,p,r]);return s.createElement("span",{className:"".concat(r,"-selection-wrap")},s.createElement("span",{className:"".concat(r,"-selection-search")},s.createElement(Tm,{ref:i,prefixCls:r,id:o,open:f,inputElement:n,disabled:a,autoFocus:l,autoComplete:c,editable:A,activeDescendantId:u,value:L,onKeyDown:x,onMouseDown:E,onChange:function(W){D(!0),S(W)},onPaste:$,onCompositionStart:O,onCompositionEnd:I,onBlur:w,tabIndex:h,attrs:Rn(t,!0),maxLength:T?C:void 0})),!T&&R?s.createElement("span",{className:"".concat(r,"-selection-item"),title:z,style:j?{visibility:"hidden"}:void 0},R.label):null,B)},ZL=function(t,n){var r=g.useRef(null),o=g.useRef(!1),i=t.prefixCls,a=t.open,l=t.mode,c=t.showSearch,u=t.tokenWithEnter,d=t.disabled,f=t.prefix,m=t.autoClearSearchValue,p=t.onSearch,h=t.onSearchSubmit,b=t.onToggleOpen,v=t.onInputKeyDown,y=t.onInputBlur,C=t.domRef;s.useImperativeHandle(n,function(){return{focus:function(z){r.current.focus(z)},blur:function(){r.current.blur()}}});var x=XS(0),E=ae(x,2),S=E[0],$=E[1],O=function(z){var B=z.which,K=r.current instanceof HTMLTextAreaElement;!K&&a&&(B===ye.UP||B===ye.DOWN)&&z.preventDefault(),v&&v(z),B===ye.ENTER&&l==="tags"&&!o.current&&!a&&(h==null||h(z.target.value)),!(K&&!a&&~[ye.UP,ye.DOWN,ye.LEFT,ye.RIGHT].indexOf(B))&&TL(B)&&b(!0)},I=function(){$(!0)},w=g.useRef(null),N=function(z){p(z,!0,o.current)!==!1&&b(!0)},_=function(){o.current=!0},P=function(z){o.current=!1,l!=="combobox"&&N(z.target.value)},M=function(z){var B=z.target.value;if(u&&w.current&&/[\r\n]/.test(w.current)){var K=w.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");B=B.replace(K,w.current)}w.current=null,N(B)},D=function(z){var B=z.clipboardData,K=B==null?void 0:B.getData("text");w.current=K||""},T=function(z){var B=z.target;if(B!==r.current){var K=document.body.style.msTouchAction!==void 0;K?setTimeout(function(){r.current.focus()}):r.current.focus()}},A=function(z){var B=S();z.target!==r.current&&!B&&!(l==="combobox"&&d)&&z.preventDefault(),(l!=="combobox"&&(!c||!B)||!a)&&(a&&m!==!1&&p("",!0,!1),b())},R={inputRef:r,onInputKeyDown:O,onInputMouseDown:I,onInputChange:M,onInputPaste:D,onInputCompositionStart:_,onInputCompositionEnd:P,onInputBlur:y},L=l==="multiple"||l==="tags"?s.createElement(YL,ce({},t,R)):s.createElement(JL,ce({},t,R));return s.createElement("div",{ref:C,className:"".concat(i,"-selector"),onClick:T,onMouseDown:A},f&&s.createElement("div",{className:"".concat(i,"-prefix")},f),L)},nx=s.forwardRef(ZL);process.env.NODE_ENV!=="production"&&(nx.displayName="Selector");function ez(e){var t=e.prefixCls,n=e.align,r=e.arrow,o=e.arrowPos,i=r||{},a=i.className,l=i.content,c=o.x,u=c===void 0?0:c,d=o.y,f=d===void 0?0:d,m=s.useRef();if(!n||!n.points)return null;var p={position:"absolute"};if(n.autoArrow!==!1){var h=n.points[0],b=n.points[1],v=h[0],y=h[1],C=b[0],x=b[1];v===C||!["t","b"].includes(v)?p.top=f:v==="t"?p.top=0:p.bottom=0,y===x||!["l","r"].includes(y)?p.left=u:y==="l"?p.left=0:p.right=0}return s.createElement("div",{ref:m,className:G("".concat(t,"-arrow"),a),style:p},l)}function tz(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,i=e.motion;return o?s.createElement(cr,ce({},i,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(a){var l=a.className;return s.createElement("div",{style:{zIndex:r},className:G("".concat(t,"-mask"),l)})}):null}var rx=s.memo(function(e){var t=e.children;return t},function(e,t){return t.cache});process.env.NODE_ENV!=="production"&&(rx.displayName="PopupContent");var ox=s.forwardRef(function(e,t){var n=e.popup,r=e.className,o=e.prefixCls,i=e.style,a=e.target,l=e.onVisibleChanged,c=e.open,u=e.keepDom,d=e.fresh,f=e.onClick,m=e.mask,p=e.arrow,h=e.arrowPos,b=e.align,v=e.motion,y=e.maskMotion,C=e.forceRender,x=e.getPopupContainer,E=e.autoDestroy,S=e.portal,$=e.zIndex,O=e.onMouseEnter,I=e.onMouseLeave,w=e.onPointerEnter,N=e.onPointerDownCapture,_=e.ready,P=e.offsetX,M=e.offsetY,D=e.offsetR,T=e.offsetB,A=e.onAlign,R=e.onPrepare,L=e.stretch,j=e.targetWidth,z=e.targetHeight,B=typeof n=="function"?n():n,K=c||u,W=(x==null?void 0:x.length)>0,k=s.useState(!x||!W),V=ae(k,2),Q=V[0],J=V[1];if(wt(function(){!Q&&W&&a&&J(!0)},[Q,W,a]),!Q)return null;var Y="auto",te={left:"-1000vw",top:"-1000vh",right:Y,bottom:Y};if(_||!c){var oe,X=b.points,F=b.dynamicInset||((oe=b._experimental)===null||oe===void 0?void 0:oe.dynamicInset),ee=F&&X[0][1]==="r",Z=F&&X[0][0]==="b";ee?(te.right=D,te.left=Y):(te.left=P,te.right=Y),Z?(te.bottom=T,te.top=Y):(te.top=M,te.bottom=Y)}var ne={};return L&&(L.includes("height")&&z?ne.height=z:L.includes("minHeight")&&z&&(ne.minHeight=z),L.includes("width")&&j?ne.width=j:L.includes("minWidth")&&j&&(ne.minWidth=j)),c||(ne.pointerEvents="none"),s.createElement(S,{open:C||K,getContainer:x&&function(){return x(a)},autoDestroy:E},s.createElement(tz,{prefixCls:o,open:c,zIndex:$,mask:m,motion:y}),s.createElement(Kn,{onResize:A,disabled:!c},function(re){return s.createElement(cr,ce({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:C,leavedClassName:"".concat(o,"-hidden")},v,{onAppearPrepare:R,onEnterPrepare:R,visible:c,onVisibleChanged:function(le){var he;v==null||(he=v.onVisibleChanged)===null||he===void 0||he.call(v,le),l(le)}}),function(se,le){var he=se.className,fe=se.style,ie=G(o,he,r);return s.createElement("div",{ref:Wn(re,t,le),className:ie,style:q(q(q(q({"--arrow-x":"".concat(h.x||0,"px"),"--arrow-y":"".concat(h.y||0,"px")},te),ne),fe),{},{boxSizing:"border-box",zIndex:$},i),onMouseEnter:O,onMouseLeave:I,onPointerEnter:w,onClick:f,onPointerDownCapture:N},p&&s.createElement(ez,{prefixCls:o,arrow:p,arrowPos:h,align:b}),s.createElement(rx,{cache:!c&&!d},B))})}))});process.env.NODE_ENV!=="production"&&(ox.displayName="Popup");var ix=s.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=Rr(n),i=s.useCallback(function(l){ja(t,r?r(l):l)},[r]),a=Jr(i,Ao(n));return o?s.cloneElement(n,{ref:a}):n});process.env.NODE_ENV!=="production"&&(ix.displayName="TriggerWrapper");var ax=s.createContext(null);function lx(e){return e?Array.isArray(e)?e:[e]:[]}function nz(e,t,n,r){return s.useMemo(function(){var o=lx(n!=null?n:t),i=lx(r!=null?r:t),a=new Set(o),l=new Set(i);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),l.has("hover")&&(l.delete("hover"),l.add("click"))),[a,l]},[e,t,n,r])}function rz(){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 oz(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a<i.length;a+=1){var l,c=i[a];if(rz((l=e[c])===null||l===void 0?void 0:l.points,o,r))return"".concat(t,"-placement-").concat(c)}return""}function sx(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function fl(e){return e.ownerDocument.defaultView}function Mm(e){for(var t=[],n=e==null?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=fl(n).getComputedStyle(n),i=o.overflowX,a=o.overflowY,l=o.overflow;[i,a,l].some(function(c){return r.includes(c)})&&t.push(n),n=n.parentElement}return t}function ml(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function pl(e){return ml(parseFloat(e),0)}function cx(e,t){var n=q({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var o=fl(r).getComputedStyle(r),i=o.overflow,a=o.overflowClipMargin,l=o.borderTopWidth,c=o.borderBottomWidth,u=o.borderLeftWidth,d=o.borderRightWidth,f=r.getBoundingClientRect(),m=r.offsetHeight,p=r.clientHeight,h=r.offsetWidth,b=r.clientWidth,v=pl(l),y=pl(c),C=pl(u),x=pl(d),E=ml(Math.round(f.width/h*1e3)/1e3),S=ml(Math.round(f.height/m*1e3)/1e3),$=(h-b-C-x)*E,O=(m-p-v-y)*S,I=v*S,w=y*S,N=C*E,_=x*E,P=0,M=0;if(i==="clip"){var D=pl(a);P=D*E,M=D*S}var T=f.x+N-P,A=f.y+I-M,R=T+f.width+2*P-N-_-$,L=A+f.height+2*M-I-w-O;n.left=Math.max(n.left,T),n.top=Math.max(n.top,A),n.right=Math.min(n.right,R),n.bottom=Math.min(n.bottom,L)}}),n}function ux(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 dx(e,t){var n=t||[],r=ae(n,2),o=r[0],i=r[1];return[ux(e.width,o),ux(e.height,i)]}function fx(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function Ji(e,t){var n=t[0],r=t[1],o,i;return n==="t"?i=e.y:n==="b"?i=e.y+e.height:i=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:i}}function Ho(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 iz(e,t,n,r,o,i,a){var l=s.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[r]||{}}),c=ae(l,2),u=c[0],d=c[1],f=s.useRef(0),m=s.useMemo(function(){return t?Mm(t):[]},[t]),p=s.useRef({}),h=function(){p.current={}};e||h();var b=qt(function(){if(t&&n&&e){let cn=function(Er,er){var tr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:me,qr=k.x+Er,Qo=k.y+er,Uv=qr+ee,Gv=Qo+F,Xv=Math.max(qr,tr.left),rt=Math.max(Qo,tr.top),St=Math.min(Uv,tr.right),pn=Math.min(Gv,tr.bottom);return Math.max(0,(St-Xv)*(pn-rt))},En=function(){ot=k.y+Pe,ht=ot+F,jt=k.x+Me,Wt=jt+ee};var C,x,E,S,$=t,O=$.ownerDocument,I=fl($),w=I.getComputedStyle($),N=w.width,_=w.height,P=w.position,M=$.style.left,D=$.style.top,T=$.style.right,A=$.style.bottom,R=$.style.overflow,L=q(q({},o[r]),i),j=O.createElement("div");(C=$.parentElement)===null||C===void 0||C.appendChild(j),j.style.left="".concat($.offsetLeft,"px"),j.style.top="".concat($.offsetTop,"px"),j.style.position=P,j.style.height="".concat($.offsetHeight,"px"),j.style.width="".concat($.offsetWidth,"px"),$.style.left="0",$.style.top="0",$.style.right="auto",$.style.bottom="auto",$.style.overflow="hidden";var z;if(Array.isArray(n))z={x:n[0],y:n[1],width:0,height:0};else{var B,K,W=n.getBoundingClientRect();W.x=(B=W.x)!==null&&B!==void 0?B:W.left,W.y=(K=W.y)!==null&&K!==void 0?K:W.top,z={x:W.x,y:W.y,width:W.width,height:W.height}}var k=$.getBoundingClientRect();k.x=(x=k.x)!==null&&x!==void 0?x:k.left,k.y=(E=k.y)!==null&&E!==void 0?E:k.top;var V=O.documentElement,Q=V.clientWidth,J=V.clientHeight,Y=V.scrollWidth,te=V.scrollHeight,oe=V.scrollTop,X=V.scrollLeft,F=k.height,ee=k.width,Z=z.height,ne=z.width,re={left:0,top:0,right:Q,bottom:J},se={left:-X,top:-oe,right:Y-X,bottom:te-oe},le=L.htmlRegion,he="visible",fe="visibleFirst";le!=="scroll"&&le!==fe&&(le=he);var ie=le===fe,ue=cx(se,m),de=cx(re,m),me=le===he?de:ue,Ce=ie?de:me;$.style.left="auto",$.style.top="auto",$.style.right="0",$.style.bottom="0";var Oe=$.getBoundingClientRect();$.style.left=M,$.style.top=D,$.style.right=T,$.style.bottom=A,$.style.overflow=R,(S=$.parentElement)===null||S===void 0||S.removeChild(j);var Te=ml(Math.round(ee/parseFloat(N)*1e3)/1e3),je=ml(Math.round(F/parseFloat(_)*1e3)/1e3);if(Te===0||je===0||za(n)&&!el(n))return;var Ne=L.offset,Ie=L.targetOffset,xe=dx(k,Ne),be=ae(xe,2),Ee=be[0],$e=be[1],_e=dx(z,Ie),ve=ae(_e,2),Se=ve[0],Je=ve[1];z.x-=Se,z.y-=Je;var it=L.points||[],Nt=ae(it,2),Tt=Nt[0],Gt=Nt[1],st=fx(Gt),Pt=fx(Tt),pt=Ji(z,st),et=Ji(k,Pt),ke=q({},L),Me=pt.x-et.x+Ee,Pe=pt.y-et.y+$e,at=cn(Me,Pe),ct=cn(Me,Pe,de),Le=Ji(z,["t","l"]),we=Ji(k,["t","l"]),ze=Ji(z,["b","r"]),Fe=Ji(k,["b","r"]),Ve=L.overflow||{},Ze=Ve.adjustX,Ot=Ve.adjustY,Ae=Ve.shiftX,Qe=Ve.shiftY,nt=function(er){return typeof er=="boolean"?er:er>=0},ot,ht,jt,Wt;En();var Ct=nt(Ot),en=Pt[0]===st[0];if(Ct&&Pt[0]==="t"&&(ht>Ce.bottom||p.current.bt)){var De=Pe;en?De-=F-Z:De=Le.y-Fe.y-$e;var Ke=cn(Me,De),Be=cn(Me,De,de);Ke>at||Ke===at&&(!ie||Be>=ct)?(p.current.bt=!0,Pe=De,$e=-$e,ke.points=[Ho(Pt,0),Ho(st,0)]):p.current.bt=!1}if(Ct&&Pt[0]==="b"&&(ot<Ce.top||p.current.tb)){var Re=Pe;en?Re+=F-Z:Re=ze.y-we.y-$e;var lt=cn(Me,Re),Mt=cn(Me,Re,de);lt>at||lt===at&&(!ie||Mt>=ct)?(p.current.tb=!0,Pe=Re,$e=-$e,ke.points=[Ho(Pt,0),Ho(st,0)]):p.current.tb=!1}var At=nt(Ze),Kt=Pt[1]===st[1];if(At&&Pt[1]==="l"&&(Wt>Ce.right||p.current.rl)){var an=Me;Kt?an-=ee-ne:an=Le.x-Fe.x-Ee;var Ut=cn(an,Pe),Ye=cn(an,Pe,de);Ut>at||Ut===at&&(!ie||Ye>=ct)?(p.current.rl=!0,Me=an,Ee=-Ee,ke.points=[Ho(Pt,1),Ho(st,1)]):p.current.rl=!1}if(At&&Pt[1]==="r"&&(jt<Ce.left||p.current.lr)){var ft=Me;Kt?ft+=ee-ne:ft=ze.x-we.x-Ee;var Lt=cn(ft,Pe),Sn=cn(ft,Pe,de);Lt>at||Lt===at&&(!ie||Sn>=ct)?(p.current.lr=!0,Me=ft,Ee=-Ee,ke.points=[Ho(Pt,1),Ho(st,1)]):p.current.lr=!1}En();var mn=Ae===!0?0:Ae;typeof mn=="number"&&(jt<de.left&&(Me-=jt-de.left-Ee,z.x+ne<de.left+mn&&(Me+=z.x-de.left+ne-mn)),Wt>de.right&&(Me-=Wt-de.right-Ee,z.x>de.right-mn&&(Me+=z.x-de.right+mn)));var zn=Qe===!0?0:Qe;typeof zn=="number"&&(ot<de.top&&(Pe-=ot-de.top-$e,z.y+Z<de.top+zn&&(Pe+=z.y-de.top+Z-zn)),ht>de.bottom&&(Pe-=ht-de.bottom-$e,z.y>de.bottom-zn&&(Pe+=z.y-de.bottom+zn)));var Sr=k.x+Me,xr=Sr+ee,Bn=k.y+Pe,Ar=Bn+F,dr=z.x,It=dr+ne,Ue=z.y,yt=Ue+Z,Et=Math.max(Sr,dr),zt=Math.min(xr,It),Bt=(Et+zt)/2,xn=Bt-Sr,In=Math.max(Bn,Ue),Vn=Math.min(Ar,yt),Jn=(In+Vn)/2,Zn=Jn-Bn;a==null||a(t,ke);var ut=Oe.right-k.x-(Me+k.width),dt=Oe.bottom-k.y-(Pe+k.height);Te===1&&(Me=Math.round(Me),ut=Math.round(ut)),je===1&&(Pe=Math.round(Pe),dt=Math.round(dt));var gn={ready:!0,offsetX:Me/Te,offsetY:Pe/je,offsetR:ut/Te,offsetB:dt/je,arrowX:xn/Te,arrowY:Zn/je,scaleX:Te,scaleY:je,align:ke};d(gn)}}),v=function(){f.current+=1;var x=f.current;Promise.resolve().then(function(){f.current===x&&b()})},y=function(){d(function(x){return q(q({},x),{},{ready:!1})})};return wt(y,[r]),wt(function(){e||y()},[e]),[u.ready,u.offsetX,u.offsetY,u.offsetR,u.offsetB,u.arrowX,u.arrowY,u.scaleX,u.scaleY,u.align,v]}function az(e,t,n,r,o){wt(function(){if(e&&t&&n){let f=function(){r(),o()};var i=t,a=n,l=Mm(i),c=Mm(a),u=fl(a),d=new Set([u].concat(ge(l),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 lz(e,t,n,r,o,i,a,l){var c=s.useRef(e);c.current=e;var u=s.useRef(!1);s.useEffect(function(){if(t&&r&&(!o||i)){var f=function(){u.current=!1},m=function(E){var S;c.current&&!a(((S=E.composedPath)===null||S===void 0||(S=S.call(E))===null||S===void 0?void 0:S[0])||E.target)&&!u.current&&l(!1)},p=fl(r);p.addEventListener("pointerdown",f,!0),p.addEventListener("mousedown",m,!0),p.addEventListener("contextmenu",m,!0);var h=ds(n);if(h&&(h.addEventListener("mousedown",m,!0),h.addEventListener("contextmenu",m,!0)),process.env.NODE_ENV!=="production"){var b,v,y=n==null||(b=n.getRootNode)===null||b===void 0?void 0:b.call(n),C=(v=r.getRootNode)===null||v===void 0?void 0:v.call(r);bo(y===C,"trigger element and popup element should in same shadow root.")}return function(){p.removeEventListener("pointerdown",f,!0),p.removeEventListener("mousedown",m,!0),p.removeEventListener("contextmenu",m,!0),h&&(h.removeEventListener("mousedown",m,!0),h.removeEventListener("contextmenu",m,!0))}}},[t,n,r,o,i]);function d(){u.current=!0}return d}var sz=["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 cz(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ol,t=s.forwardRef(function(n,r){var o=n.prefixCls,i=o===void 0?"rc-trigger-popup":o,a=n.children,l=n.action,c=l===void 0?"hover":l,u=n.showAction,d=n.hideAction,f=n.popupVisible,m=n.defaultPopupVisible,p=n.onPopupVisibleChange,h=n.afterPopupVisibleChange,b=n.mouseEnterDelay,v=n.mouseLeaveDelay,y=v===void 0?.1:v,C=n.focusDelay,x=n.blurDelay,E=n.mask,S=n.maskClosable,$=S===void 0?!0:S,O=n.getPopupContainer,I=n.forceRender,w=n.autoDestroy,N=n.destroyPopupOnHide,_=n.popup,P=n.popupClassName,M=n.popupStyle,D=n.popupPlacement,T=n.builtinPlacements,A=T===void 0?{}:T,R=n.popupAlign,L=n.zIndex,j=n.stretch,z=n.getPopupClassNameFromAlign,B=n.fresh,K=n.alignPoint,W=n.onPopupClick,k=n.onPopupAlign,V=n.arrow,Q=n.popupMotion,J=n.maskMotion,Y=n.popupTransitionName,te=n.popupAnimation,oe=n.maskTransitionName,X=n.maskAnimation,F=n.className,ee=n.getTriggerDOMNode,Z=tt(n,sz),ne=w||N||!1,re=s.useState(!1),se=ae(re,2),le=se[0],he=se[1];wt(function(){he(_m())},[]);var fe=s.useRef({}),ie=s.useContext(ax),ue=s.useMemo(function(){return{registerSubPopup:function(St,pn){fe.current[St]=pn,ie==null||ie.registerSubPopup(St,pn)}}},[ie]),de=uc(),me=s.useState(null),Ce=ae(me,2),Oe=Ce[0],Te=Ce[1],je=s.useRef(null),Ne=qt(function(rt){je.current=rt,za(rt)&&Oe!==rt&&Te(rt),ie==null||ie.registerSubPopup(de,rt)}),Ie=s.useState(null),xe=ae(Ie,2),be=xe[0],Ee=xe[1],$e=s.useRef(null),_e=qt(function(rt){za(rt)&&be!==rt&&(Ee(rt),$e.current=rt)}),ve=s.Children.only(a),Se=(ve==null?void 0:ve.props)||{},Je={},it=qt(function(rt){var St,pn,kn=be;return(kn==null?void 0:kn.contains(rt))||((St=ds(kn))===null||St===void 0?void 0:St.host)===rt||rt===kn||(Oe==null?void 0:Oe.contains(rt))||((pn=ds(Oe))===null||pn===void 0?void 0:pn.host)===rt||rt===Oe||Object.values(fe.current).some(function($n){return($n==null?void 0:$n.contains(rt))||rt===$n})}),Nt=sx(i,Q,te,Y),Tt=sx(i,J,X,oe),Gt=s.useState(m||!1),st=ae(Gt,2),Pt=st[0],pt=st[1],et=f!=null?f:Pt,ke=qt(function(rt){f===void 0&&pt(rt)});wt(function(){pt(f||!1)},[f]);var Me=s.useRef(et);Me.current=et;var Pe=s.useRef([]);Pe.current=[];var at=qt(function(rt){var St;ke(rt),((St=Pe.current[Pe.current.length-1])!==null&&St!==void 0?St:et)!==rt&&(Pe.current.push(rt),p==null||p(rt))}),ct=s.useRef(),Le=function(){clearTimeout(ct.current)},we=function(St){var pn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Le(),pn===0?at(St):ct.current=setTimeout(function(){at(St)},pn*1e3)};s.useEffect(function(){return Le},[]);var ze=s.useState(!1),Fe=ae(ze,2),Ve=Fe[0],Ze=Fe[1];wt(function(rt){(!rt||et)&&Ze(!0)},[et]);var Ot=s.useState(null),Ae=ae(Ot,2),Qe=Ae[0],nt=Ae[1],ot=s.useState(null),ht=ae(ot,2),jt=ht[0],Wt=ht[1],Ct=function(St){Wt([St.clientX,St.clientY])},en=iz(et,Oe,K&&jt!==null?jt:be,D,A,R,k),De=ae(en,11),Ke=De[0],Be=De[1],Re=De[2],lt=De[3],Mt=De[4],At=De[5],Kt=De[6],an=De[7],Ut=De[8],Ye=De[9],ft=De[10],Lt=nz(le,c,u,d),Sn=ae(Lt,2),mn=Sn[0],zn=Sn[1],Sr=mn.has("click"),xr=zn.has("click")||zn.has("contextMenu"),Bn=qt(function(){Ve||ft()}),Ar=function(){Me.current&&K&&xr&&we(!1)};az(et,be,Oe,Bn,Ar),wt(function(){Bn()},[jt,D]),wt(function(){et&&!(A!=null&&A[D])&&Bn()},[JSON.stringify(R)]);var dr=s.useMemo(function(){var rt=oz(A,i,Ye,K);return G(rt,z==null?void 0:z(Ye))},[Ye,z,A,i,K]);s.useImperativeHandle(r,function(){return{nativeElement:$e.current,popupElement:je.current,forceAlign:Bn}});var It=s.useState(0),Ue=ae(It,2),yt=Ue[0],Et=Ue[1],zt=s.useState(0),Bt=ae(zt,2),xn=Bt[0],In=Bt[1],Vn=function(){if(j&&be){var St=be.getBoundingClientRect();Et(St.width),In(St.height)}},Jn=function(){Vn(),Bn()},Zn=function(St){Ze(!1),ft(),h==null||h(St)},ut=function(){return new Promise(function(St){Vn(),nt(function(){return St})})};wt(function(){Qe&&(ft(),Qe(),nt(null))},[Qe]);function dt(rt,St,pn,kn){Je[rt]=function($n){var Iu;kn==null||kn($n),we(St,pn);for(var Qv=arguments.length,lN=new Array(Qv>1?Qv-1:0),_u=1;_u<Qv;_u++)lN[_u-1]=arguments[_u];(Iu=Se[rt])===null||Iu===void 0||Iu.call.apply(Iu,[Se,$n].concat(lN))}}(Sr||xr)&&(Je.onClick=function(rt){var St;Me.current&&xr?we(!1):!Me.current&&Sr&&(Ct(rt),we(!0));for(var pn=arguments.length,kn=new Array(pn>1?pn-1:0),$n=1;$n<pn;$n++)kn[$n-1]=arguments[$n];(St=Se.onClick)===null||St===void 0||St.call.apply(St,[Se,rt].concat(kn))});var gn=lz(et,xr,be,Oe,E,$,it,we),cn=mn.has("hover"),En=zn.has("hover"),Er,er;cn&&(dt("onMouseEnter",!0,b,function(rt){Ct(rt)}),dt("onPointerEnter",!0,b,function(rt){Ct(rt)}),Er=function(St){(et||Ve)&&Oe!==null&&Oe!==void 0&&Oe.contains(St.target)&&we(!0,b)},K&&(Je.onMouseMove=function(rt){var St;(St=Se.onMouseMove)===null||St===void 0||St.call(Se,rt)})),En&&(dt("onMouseLeave",!1,y),dt("onPointerLeave",!1,y),er=function(){we(!1,y)}),mn.has("focus")&&dt("onFocus",!0,C),zn.has("focus")&&dt("onBlur",!1,x),mn.has("contextMenu")&&(Je.onContextMenu=function(rt){var St;Me.current&&zn.has("contextMenu")?we(!1):(Ct(rt),we(!0)),rt.preventDefault();for(var pn=arguments.length,kn=new Array(pn>1?pn-1:0),$n=1;$n<pn;$n++)kn[$n-1]=arguments[$n];(St=Se.onContextMenu)===null||St===void 0||St.call.apply(St,[Se,rt].concat(kn))}),F&&(Je.className=G(Se.className,F));var tr=q(q({},Se),Je),qr={},Qo=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];Qo.forEach(function(rt){Z[rt]&&(qr[rt]=function(){for(var St,pn=arguments.length,kn=new Array(pn),$n=0;$n<pn;$n++)kn[$n]=arguments[$n];(St=tr[rt])===null||St===void 0||St.call.apply(St,[tr].concat(kn)),Z[rt].apply(Z,kn)})});var Uv=s.cloneElement(ve,q(q({},tr),qr)),Gv={x:At,y:Kt},Xv=V?q({},V!==!0?V:{}):null;return s.createElement(s.Fragment,null,s.createElement(Kn,{disabled:!et,ref:_e,onResize:Jn},s.createElement(ix,{getTriggerDOMNode:ee},Uv)),s.createElement(ax.Provider,{value:ue},s.createElement(ox,{portal:e,ref:Ne,prefixCls:i,popup:_,className:G(P,dr),style:M,target:be,onMouseEnter:Er,onMouseLeave:er,onPointerEnter:Er,zIndex:L,open:et,keepDom:Ve,fresh:B,onClick:W,onPointerDownCapture:gn,mask:E,motion:Nt,maskMotion:Tt,onVisibleChanged:Zn,onPrepare:ut,forceRender:I,autoDestroy:ne,getPopupContainer:O,align:Ye,arrow:Xv,arrowPos:Gv,ready:Ke,offsetX:Be,offsetY:Re,offsetR:lt,offsetB:Mt,onAlign:Bn,stretch:j,targetWidth:yt/an,targetHeight:xn/Ut})))});return process.env.NODE_ENV!=="production"&&(t.displayName="Trigger"),t}const hc=cz(ol);var uz=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],dz=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"}}},fz=function(t,n){var r=t.prefixCls;t.disabled;var o=t.visible,i=t.children,a=t.popupElement,l=t.animation,c=t.transitionName,u=t.dropdownStyle,d=t.dropdownClassName,f=t.direction,m=f===void 0?"ltr":f,p=t.placement,h=t.builtinPlacements,b=t.dropdownMatchSelectWidth,v=t.dropdownRender,y=t.dropdownAlign,C=t.getPopupContainer,x=t.empty,E=t.getTriggerDOMNode,S=t.onPopupVisibleChange,$=t.onPopupMouseEnter,O=tt(t,uz),I="".concat(r,"-dropdown"),w=a;v&&(w=v(a));var N=s.useMemo(function(){return h||dz(b)},[h,b]),_=l?"".concat(I,"-").concat(l):c,P=typeof b=="number",M=s.useMemo(function(){return P?null:b===!1?"minWidth":"width"},[b,P]),D=u;P&&(D=q(q({},D),{},{width:b}));var T=s.useRef(null);return s.useImperativeHandle(n,function(){return{getPopupElement:function(){var R;return(R=T.current)===null||R===void 0?void 0:R.popupElement}}}),s.createElement(hc,ce({},O,{showAction:S?["click"]:[],hideAction:S?["click"]:[],popupPlacement:p||(m==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:N,prefixCls:I,popupTransitionName:_,popup:s.createElement("div",{onMouseEnter:$},w),ref:T,stretch:M,popupAlign:y,popupVisible:o,getPopupContainer:C,popupClassName:G(d,H({},"".concat(I,"-empty"),x)),popupStyle:D,getTriggerDOMNode:E,onPopupVisibleChange:S}),i)},mx=s.forwardRef(fz);process.env.NODE_ENV!=="production"&&(mx.displayName="SelectTrigger");function px(e,t){var n=e.key,r;return"value"in e&&(r=e.value),n!=null?n:r!==void 0?r:"rc-index-key-".concat(t)}function Dm(e){return typeof e!="undefined"&&!Number.isNaN(e)}function vx(e,t){var n=e||{},r=n.label,o=n.value,i=n.options,a=n.groupLabel,l=r||(t?"children":"label");return{label:l,value:o||"value",options:i||"options",groupLabel:a||l}}function mz(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],i=vx(n,!1),a=i.label,l=i.value,c=i.options,u=i.groupLabel;function d(f,m){Array.isArray(f)&&f.forEach(function(p){if(m||!(c in p)){var h=p[l];o.push({key:px(p,o.length),groupOption:m,data:p,label:p[a],value:h})}else{var b=p[u];b===void 0&&r&&(b=p.label),o.push({key:px(p,o.length),group:!0,data:p,label:b}),d(p[c],!0)}})}return d(e,!1),o}function Am(e){var t=q({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return Ge(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var pz=function(t,n,r){if(!n||!n.length)return null;var o=!1,i=function l(c,u){var d=Ay(u),f=d[0],m=d.slice(1);if(!f)return[c];var p=c.split(f);return o=o||p.length>1,p.reduce(function(h,b){return[].concat(ge(h),ge(l(b,m)))},[]).filter(Boolean)},a=i(t,n);return o?typeof r!="undefined"?a.slice(0,r):a:null},Rm=s.createContext(null);function vz(e){var t=e.visible,n=e.values;if(!t)return null;var r=50;return s.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 i=o.label,a=o.value;return["number","string"].includes(He(i))?i:a}).join(", ")),n.length>r?", ...":null)}var gz=["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"],hz=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],bc=function(t){return t==="tags"||t==="multiple"},gx=s.forwardRef(function(e,t){var n,r=e.id,o=e.prefixCls,i=e.className,a=e.showSearch,l=e.tagRender,c=e.direction,u=e.omitDomProps,d=e.displayValues,f=e.onDisplayValuesChange,m=e.emptyOptions,p=e.notFoundContent,h=p===void 0?"Not Found":p,b=e.onClear,v=e.mode,y=e.disabled,C=e.loading,x=e.getInputElement,E=e.getRawInputElement,S=e.open,$=e.defaultOpen,O=e.onDropdownVisibleChange,I=e.activeValue,w=e.onActiveValueChange,N=e.activeDescendantId,_=e.searchValue,P=e.autoClearSearchValue,M=e.onSearch,D=e.onSearchSplit,T=e.tokenSeparators,A=e.allowClear,R=e.prefix,L=e.suffixIcon,j=e.clearIcon,z=e.OptionList,B=e.animation,K=e.transitionName,W=e.dropdownStyle,k=e.dropdownClassName,V=e.dropdownMatchSelectWidth,Q=e.dropdownRender,J=e.dropdownAlign,Y=e.placement,te=e.builtinPlacements,oe=e.getPopupContainer,X=e.showAction,F=X===void 0?[]:X,ee=e.onFocus,Z=e.onBlur,ne=e.onKeyUp,re=e.onKeyDown,se=e.onMouseDown,le=tt(e,gz),he=bc(v),fe=(a!==void 0?a:he)||v==="combobox",ie=q({},le);hz.forEach(function(It){delete ie[It]}),u==null||u.forEach(function(It){delete ie[It]});var ue=s.useState(!1),de=ae(ue,2),me=de[0],Ce=de[1];s.useEffect(function(){Ce(_m())},[]);var Oe=s.useRef(null),Te=s.useRef(null),je=s.useRef(null),Ne=s.useRef(null),Ie=s.useRef(null),xe=s.useRef(!1),be=IL(),Ee=ae(be,3),$e=Ee[0],_e=Ee[1],ve=Ee[2];s.useImperativeHandle(t,function(){var It,Ue;return{focus:(It=Ne.current)===null||It===void 0?void 0:It.focus,blur:(Ue=Ne.current)===null||Ue===void 0?void 0:Ue.blur,scrollTo:function(Et){var zt;return(zt=Ie.current)===null||zt===void 0?void 0:zt.scrollTo(Et)},nativeElement:Oe.current||Te.current}});var Se=s.useMemo(function(){var It;if(v!=="combobox")return _;var Ue=(It=d[0])===null||It===void 0?void 0:It.value;return typeof Ue=="string"||typeof Ue=="number"?String(Ue):""},[_,v,d]),Je=v==="combobox"&&typeof x=="function"&&x()||null,it=typeof E=="function"&&E(),Nt=Jr(Te,it==null||(n=it.props)===null||n===void 0?void 0:n.ref),Tt=s.useState(!1),Gt=ae(Tt,2),st=Gt[0],Pt=Gt[1];wt(function(){Pt(!0)},[]);var pt=ln(!1,{defaultValue:$,value:S}),et=ae(pt,2),ke=et[0],Me=et[1],Pe=st?ke:!1,at=!h&&m;(y||at&&Pe&&v==="combobox")&&(Pe=!1);var ct=at?!1:Pe,Le=s.useCallback(function(It){var Ue=It!==void 0?It:!Pe;y||(Me(Ue),Pe!==Ue&&(O==null||O(Ue)))},[y,Pe,Me,O]),we=s.useMemo(function(){return(T||[]).some(function(It){return[`
|
|
213
|
+
`,`\r
|
|
214
|
+
`].includes(It)})},[T]),ze=s.useContext(Rm)||{},Fe=ze.maxCount,Ve=ze.rawValues,Ze=function(Ue,yt,Et){if(!(he&&Dm(Fe)&&(Ve==null?void 0:Ve.size)>=Fe)){var zt=!0,Bt=Ue;w==null||w(null);var xn=pz(Ue,T,Dm(Fe)?Fe-Ve.size:void 0),In=Et?null:xn;return v!=="combobox"&&In&&(Bt="",D==null||D(In),Le(!1),zt=!1),M&&Se!==Bt&&M(Bt,{source:yt?"typing":"effect"}),zt}},Ot=function(Ue){!Ue||!Ue.trim()||M(Ue,{source:"submit"})};s.useEffect(function(){!Pe&&!he&&v!=="combobox"&&Ze("",!1,!1)},[Pe]),s.useEffect(function(){ke&&y&&Me(!1),y&&!xe.current&&_e(!1)},[y]);var Ae=XS(),Qe=ae(Ae,2),nt=Qe[0],ot=Qe[1],ht=s.useRef(!1),jt=function(Ue){var yt=nt(),Et=Ue.key,zt=Et==="Enter";if(zt&&(v!=="combobox"&&Ue.preventDefault(),Pe||Le(!0)),ot(!!Se),Et==="Backspace"&&!yt&&he&&!Se&&d.length){for(var Bt=ge(d),xn=null,In=Bt.length-1;In>=0;In-=1){var Vn=Bt[In];if(!Vn.disabled){Bt.splice(In,1),xn=Vn;break}}xn&&f(Bt,{type:"remove",values:[xn]})}for(var Jn=arguments.length,Zn=new Array(Jn>1?Jn-1:0),ut=1;ut<Jn;ut++)Zn[ut-1]=arguments[ut];if(Pe&&(!zt||!ht.current)){var dt;zt&&(ht.current=!0),(dt=Ie.current)===null||dt===void 0||dt.onKeyDown.apply(dt,[Ue].concat(Zn))}re==null||re.apply(void 0,[Ue].concat(Zn))},Wt=function(Ue){for(var yt=arguments.length,Et=new Array(yt>1?yt-1:0),zt=1;zt<yt;zt++)Et[zt-1]=arguments[zt];if(Pe){var Bt;(Bt=Ie.current)===null||Bt===void 0||Bt.onKeyUp.apply(Bt,[Ue].concat(Et))}Ue.key==="Enter"&&(ht.current=!1),ne==null||ne.apply(void 0,[Ue].concat(Et))},Ct=function(Ue){var yt=d.filter(function(Et){return Et!==Ue});f(yt,{type:"remove",values:[Ue]})},en=function(){ht.current=!1},De=s.useRef(!1),Ke=function(){_e(!0),y||(ee&&!De.current&&ee.apply(void 0,arguments),F.includes("focus")&&Le(!0)),De.current=!0},Be=function(){xe.current=!0,_e(!1,function(){De.current=!1,xe.current=!1,Le(!1)}),!y&&(Se&&(v==="tags"?M(Se,{source:"submit"}):v==="multiple"&&M("",{source:"blur"})),Z&&Z.apply(void 0,arguments))},Re=[];s.useEffect(function(){return function(){Re.forEach(function(It){return clearTimeout(It)}),Re.splice(0,Re.length)}},[]);var lt=function(Ue){var yt,Et=Ue.target,zt=(yt=je.current)===null||yt===void 0?void 0:yt.getPopupElement();if(zt&&zt.contains(Et)){var Bt=setTimeout(function(){var Jn=Re.indexOf(Bt);if(Jn!==-1&&Re.splice(Jn,1),ve(),!me&&!zt.contains(document.activeElement)){var Zn;(Zn=Ne.current)===null||Zn===void 0||Zn.focus()}});Re.push(Bt)}for(var xn=arguments.length,In=new Array(xn>1?xn-1:0),Vn=1;Vn<xn;Vn++)In[Vn-1]=arguments[Vn];se==null||se.apply(void 0,[Ue].concat(In))},Mt=s.useState({}),At=ae(Mt,2),Kt=At[1];function an(){Kt({})}var Ut;it&&(Ut=function(Ue){Le(Ue)}),_L(function(){var It;return[Oe.current,(It=je.current)===null||It===void 0?void 0:It.getPopupElement()]},ct,Le,!!it);var Ye=s.useMemo(function(){return q(q({},e),{},{notFoundContent:h,open:Pe,triggerOpen:ct,id:r,showSearch:fe,multiple:he,toggleOpen:Le})},[e,h,ct,Pe,r,fe,he,Le]),ft=!!L||C,Lt;ft&&(Lt=s.createElement(vc,{className:G("".concat(o,"-arrow"),H({},"".concat(o,"-arrow-loading"),C)),customizeIcon:L,customizeIconProps:{loading:C,searchValue:Se,open:Pe,focused:$e,showSearch:fe}}));var Sn=function(){var Ue;b==null||b(),(Ue=Ne.current)===null||Ue===void 0||Ue.focus(),f([],{type:"clear",values:d}),Ze("",!1,!1)},mn=OL(o,Sn,d,A,j,y,Se,v),zn=mn.allowClear,Sr=mn.clearIcon,xr=s.createElement(z,{ref:Ie}),Bn=G(o,i,H(H(H(H(H(H(H(H(H(H({},"".concat(o,"-focused"),$e),"".concat(o,"-multiple"),he),"".concat(o,"-single"),!he),"".concat(o,"-allow-clear"),A),"".concat(o,"-show-arrow"),ft),"".concat(o,"-disabled"),y),"".concat(o,"-loading"),C),"".concat(o,"-open"),Pe),"".concat(o,"-customize-input"),Je),"".concat(o,"-show-search"),fe)),Ar=s.createElement(mx,{ref:je,disabled:y,prefixCls:o,visible:ct,popupElement:xr,animation:B,transitionName:K,dropdownStyle:W,dropdownClassName:k,direction:c,dropdownMatchSelectWidth:V,dropdownRender:Q,dropdownAlign:J,placement:Y,builtinPlacements:te,getPopupContainer:oe,empty:m,getTriggerDOMNode:function(Ue){return Te.current||Ue},onPopupVisibleChange:Ut,onPopupMouseEnter:an},it?s.cloneElement(it,{ref:Nt}):s.createElement(nx,ce({},e,{domRef:Te,prefixCls:o,inputElement:Je,ref:Ne,id:r,prefix:R,showSearch:fe,autoClearSearchValue:P,mode:v,activeDescendantId:N,tagRender:l,values:d,open:Pe,onToggleOpen:Le,activeValue:I,searchValue:Se,onSearch:Ze,onSearchSubmit:Ot,onRemove:Ct,tokenWithEnter:we,onInputBlur:en}))),dr;return it?dr=Ar:dr=s.createElement("div",ce({className:Bn},ie,{ref:Oe,onMouseDown:lt,onKeyDown:jt,onKeyUp:Wt,onFocus:Ke,onBlur:Be}),s.createElement(vz,{visible:$e&&!Pe,values:d}),Ar,Lt,zn&&Sr),s.createElement(GS.Provider,{value:Ye},dr)});process.env.NODE_ENV!=="production"&&(gx.displayName="BaseSelect");var jm=function(){return null};jm.isSelectOptGroup=!0;var Lm=function(){return null};Lm.isSelectOption=!0;var hx=s.forwardRef(function(e,t){var n=e.height,r=e.offsetY,o=e.offsetX,i=e.children,a=e.prefixCls,l=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=q(q({},m),{},H(H(H(H(H({transform:"translateY(".concat(r,"px)")},u?"marginRight":"marginLeft",-o),"position","absolute"),"left",0),"right",0),"top",0))),s.createElement("div",{style:f},s.createElement(Kn,{onResize:function(h){var b=h.offsetHeight;b&&l&&l()}},s.createElement("div",ce({style:m,className:G(H({},"".concat(a,"-holder-inner"),a)),ref:t},c),i,d)))});hx.displayName="Filler";function bz(e){var t=e.children,n=e.setRef,r=s.useCallback(function(o){n(o)},[]);return s.cloneElement(t,{ref:r})}function yz(e,t,n,r,o,i,a,l){var c=l.getKey;return e.slice(t,n+1).map(function(u,d){var f=t+d,m=a(u,f,{style:{width:r},offsetX:o}),p=c(u);return s.createElement(bz,{key:p,setRef:function(b){return i(u,b)}},m)})}function Cz(e,t,n){var r=e.length,o=t.length,i,a;if(r===0&&o===0)return null;r<o?(i=e,a=t):(i=t,a=e);var l={__EMPTY_ITEM__:!0};function c(h){return h!==void 0?n(h):l}for(var u=null,d=Math.abs(r-o)!==1,f=0;f<a.length;f+=1){var m=c(i[f]),p=c(a[f]);if(m!==p){u=f,d=d||m!==c(a[f+1]);break}}return u===null?null:{index:u,multiple:d}}function Sz(e,t,n){var r=s.useState(e),o=ae(r,2),i=o[0],a=o[1],l=s.useState(null),c=ae(l,2),u=c[0],d=c[1];return s.useEffect(function(){var f=Cz(i||[],e||[],t);(f==null?void 0:f.index)!==void 0&&(n==null||n(f.index),d(e[f.index])),a(e)},[e]),[u]}var bx=(typeof navigator=="undefined"?"undefined":He(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const yx=function(e,t,n,r){var o=g.useRef(!1),i=g.useRef(null);function a(){clearTimeout(i.current),o.current=!0,i.current=setTimeout(function(){o.current=!1},50)}var l=g.useRef({top:e,bottom:t,left:n,right:r});return l.current.top=e,l.current.bottom=t,l.current.left=n,l.current.right=r,function(c,u){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,f=c?u<0&&l.current.left||u>0&&l.current.right:u<0&&l.current.top||u>0&&l.current.bottom;return d&&f?(clearTimeout(i.current),o.current=!1):(!f||o.current)&&a(),!o.current&&f}};function xz(e,t,n,r,o,i,a){var l=g.useRef(0),c=g.useRef(null),u=g.useRef(null),d=g.useRef(!1),f=yx(t,n,r,o);function m(C,x){if(Rt.cancel(c.current),!f(!1,x)){var E=C;if(!E._virtualHandled)E._virtualHandled=!0;else return;l.current+=x,u.current=x,bx||E.preventDefault(),c.current=Rt(function(){var S=d.current?10:1;a(l.current*S,!1),l.current=0})}}function p(C,x){a(x,!0),bx||C.preventDefault()}var h=g.useRef(null),b=g.useRef(null);function v(C){if(e){Rt.cancel(b.current),b.current=Rt(function(){h.current=null},2);var x=C.deltaX,E=C.deltaY,S=C.shiftKey,$=x,O=E;(h.current==="sx"||!h.current&&S&&E&&!x)&&($=E,O=0,h.current="sx");var I=Math.abs($),w=Math.abs(O);h.current===null&&(h.current=i&&I>w?"x":"y"),h.current==="y"?m(C,O):p(C,$)}}function y(C){e&&(d.current=C.detail===u.current)}return[v,y]}function Ez(e,t,n,r){var o=s.useMemo(function(){return[new Map,[]]},[e,n.id,r]),i=ae(o,2),a=i[0],l=i[1],c=function(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:d,m=a.get(d),p=a.get(f);if(m===void 0||p===void 0)for(var h=e.length,b=l.length;b<h;b+=1){var v,y=e[b],C=t(y);a.set(C,b);var x=(v=n.get(C))!==null&&v!==void 0?v:r;if(l[b]=(l[b-1]||0)+x,C===d&&(m=b),C===f&&(p=b),m!==void 0&&p!==void 0)break}return{top:l[m-1]||0,bottom:l[p]}};return c}var $z=function(){function e(){bn(this,e),H(this,"maps",void 0),H(this,"id",0),H(this,"diffRecords",new Map),this.maps=Object.create(null)}return yn(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 Cx(e){var t=parseFloat(e);return isNaN(t)?0:t}function wz(e,t,n){var r=s.useState(0),o=ae(r,2),i=o[0],a=o[1],l=g.useRef(new Map),c=g.useRef(new $z),u=g.useRef(0);function d(){u.current+=1}function f(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;d();var h=function(){var y=!1;l.current.forEach(function(C,x){if(C&&C.offsetParent){var E=C.offsetHeight,S=getComputedStyle(C),$=S.marginTop,O=S.marginBottom,I=Cx($),w=Cx(O),N=E+I+w;c.current.get(x)!==N&&(c.current.set(x,N),y=!0)}}),y&&a(function(C){return C+1})};if(p)h();else{u.current+=1;var b=u.current;Promise.resolve().then(function(){b===u.current&&h()})}}function m(p,h){var b=e(p),v=l.current.get(b);h?(l.current.set(b,h),f()):l.current.delete(b),!v!=!h&&(h?t==null||t(p):n==null||n(p))}return g.useEffect(function(){return d},[]),[m,f,c.current,i]}var Sx=14/15;function Oz(e,t,n){var r=g.useRef(!1),o=g.useRef(0),i=g.useRef(0),a=g.useRef(null),l=g.useRef(null),c,u=function(p){if(r.current){var h=Math.ceil(p.touches[0].pageX),b=Math.ceil(p.touches[0].pageY),v=o.current-h,y=i.current-b,C=Math.abs(v)>Math.abs(y);C?o.current=h:i.current=b;var x=n(C,C?v:y,!1,p);x&&p.preventDefault(),clearInterval(l.current),x&&(l.current=setInterval(function(){C?v*=Sx:y*=Sx;var E=Math.floor(C?v:y);(!n(C,E,!0)||Math.abs(E)<=.1)&&clearInterval(l.current)},16))}},d=function(){r.current=!1,c()},f=function(p){c(),p.touches.length===1&&!r.current&&(r.current=!0,o.current=Math.ceil(p.touches[0].pageX),i.current=Math.ceil(p.touches[0].pageY),a.current=p.target,a.current.addEventListener("touchmove",u,{passive:!1}),a.current.addEventListener("touchend",d,{passive:!0}))};c=function(){a.current&&(a.current.removeEventListener("touchmove",u),a.current.removeEventListener("touchend",d))},wt(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(l.current)}},[e])}function xx(e){return Math.floor(Math.pow(e,.5))}function zm(e,t){var n="touches"in e?e.touches[0]:e;return n[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}function Nz(e,t,n){s.useEffect(function(){var r=t.current;if(e&&r){var o=!1,i,a,l=function(){Rt.cancel(i)},c=function m(){l(),i=Rt(function(){n(a),m()})},u=function(p){if(!(p.target.draggable||p.button!==0)){var h=p;h._virtualHandled||(h._virtualHandled=!0,o=!0)}},d=function(){o=!1,l()},f=function(p){if(o){var h=zm(p,!1),b=r.getBoundingClientRect(),v=b.top,y=b.bottom;if(h<=v){var C=v-h;a=-xx(C),c()}else if(h>=y){var x=h-y;a=xx(x),c()}else l()}};return r.addEventListener("mousedown",u),r.ownerDocument.addEventListener("mouseup",d),r.ownerDocument.addEventListener("mousemove",f),function(){r.removeEventListener("mousedown",u),r.ownerDocument.removeEventListener("mouseup",d),r.ownerDocument.removeEventListener("mousemove",f),l()}}},[e])}var Ex=10;function Iz(e,t,n,r,o,i,a,l){var c=s.useRef(),u=s.useState(null),d=ae(u,2),f=d[0],m=d[1];return wt(function(){if(f&&f.times<Ex){if(!e.current){m(function(j){return q({},j)});return}i();var p=f.targetAlign,h=f.originAlign,b=f.index,v=f.offset,y=e.current.clientHeight,C=!1,x=p,E=null;if(y){for(var S=p||h,$=0,O=0,I=0,w=Math.min(t.length-1,b),N=0;N<=w;N+=1){var _=o(t[N]);O=$;var P=n.get(_);I=O+(P===void 0?r:P),$=I}for(var M=S==="top"?v:y-v,D=w;D>=0;D-=1){var T=o(t[D]),A=n.get(T);if(A===void 0){C=!0;break}if(M-=A,M<=0)break}switch(S){case"top":E=O-v;break;case"bottom":E=I-y+v;break;default:{var R=e.current.scrollTop,L=R+y;O<R?x="top":I>L&&(x="bottom")}}E!==null&&a(E),E!==f.lastTop&&(C=!0)}C&&m(q(q({},f),{},{times:f.times+1,targetAlign:x,lastTop:E}))}else process.env.NODE_ENV!=="production"&&(f==null?void 0:f.times)===Ex&&Ge(!1,"Seems `scrollTo` with `rc-virtual-list` reach the max limitation. Please fire issue for us. Thanks.")},[f,e.current]),function(p){if(p==null){l();return}if(Rt.cancel(c.current),typeof p=="number")a(p);else if(p&&He(p)==="object"){var h,b=p.align;"index"in p?h=p.index:h=t.findIndex(function(C){return o(C)===p.key});var v=p.offset,y=v===void 0?0:v;m({times:0,index:h,offset:y,originAlign:b})}}}var Bm=s.forwardRef(function(e,t){var n=e.prefixCls,r=e.rtl,o=e.scrollOffset,i=e.scrollRange,a=e.onStartMove,l=e.onStopMove,c=e.onScroll,u=e.horizontal,d=e.spinSize,f=e.containerSize,m=e.style,p=e.thumbStyle,h=e.showScrollBar,b=s.useState(!1),v=ae(b,2),y=v[0],C=v[1],x=s.useState(null),E=ae(x,2),S=E[0],$=E[1],O=s.useState(null),I=ae(O,2),w=I[0],N=I[1],_=!r,P=s.useRef(),M=s.useRef(),D=s.useState(h),T=ae(D,2),A=T[0],R=T[1],L=s.useRef(),j=function(){h===!0||h===!1||(clearTimeout(L.current),R(!0),L.current=setTimeout(function(){R(!1)},3e3))},z=i-f||0,B=f-d||0,K=s.useMemo(function(){if(o===0||z===0)return 0;var X=o/z;return X*B},[o,z,B]),W=function(F){F.stopPropagation(),F.preventDefault()},k=s.useRef({top:K,dragging:y,pageY:S,startTop:w});k.current={top:K,dragging:y,pageY:S,startTop:w};var V=function(F){C(!0),$(zm(F,u)),N(k.current.top),a(),F.stopPropagation(),F.preventDefault()};s.useEffect(function(){var X=function(ne){ne.preventDefault()},F=P.current,ee=M.current;return F.addEventListener("touchstart",X,{passive:!1}),ee.addEventListener("touchstart",V,{passive:!1}),function(){F.removeEventListener("touchstart",X),ee.removeEventListener("touchstart",V)}},[]);var Q=s.useRef();Q.current=z;var J=s.useRef();J.current=B,s.useEffect(function(){if(y){var X,F=function(ne){var re=k.current,se=re.dragging,le=re.pageY,he=re.startTop;Rt.cancel(X);var fe=P.current.getBoundingClientRect(),ie=f/(u?fe.width:fe.height);if(se){var ue=(zm(ne,u)-le)*ie,de=he;!_&&u?de-=ue:de+=ue;var me=Q.current,Ce=J.current,Oe=Ce?de/Ce:0,Te=Math.ceil(Oe*me);Te=Math.max(Te,0),Te=Math.min(Te,me),X=Rt(function(){c(Te,u)})}},ee=function(){C(!1),l()};return window.addEventListener("mousemove",F,{passive:!0}),window.addEventListener("touchmove",F,{passive:!0}),window.addEventListener("mouseup",ee,{passive:!0}),window.addEventListener("touchend",ee,{passive:!0}),function(){window.removeEventListener("mousemove",F),window.removeEventListener("touchmove",F),window.removeEventListener("mouseup",ee),window.removeEventListener("touchend",ee),Rt.cancel(X)}}},[y]),s.useEffect(function(){return j(),function(){clearTimeout(L.current)}},[o]),s.useImperativeHandle(t,function(){return{delayHidden:j}});var Y="".concat(n,"-scrollbar"),te={position:"absolute",visibility:A?null:"hidden"},oe={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return u?(te.height=8,te.left=0,te.right=0,te.bottom=0,oe.height="100%",oe.width=d,_?oe.left=K:oe.right=K):(te.width=8,te.top=0,te.bottom=0,_?te.right=0:te.left=0,oe.width="100%",oe.height=d,oe.top=K),s.createElement("div",{ref:P,className:G(Y,H(H(H({},"".concat(Y,"-horizontal"),u),"".concat(Y,"-vertical"),!u),"".concat(Y,"-visible"),A)),style:q(q({},te),m),onMouseDown:W,onMouseMove:j},s.createElement("div",{ref:M,className:G("".concat(Y,"-thumb"),H({},"".concat(Y,"-thumb-moving"),y)),style:q(q({},oe),p),onMouseDown:V}))});process.env.NODE_ENV!=="production"&&(Bm.displayName="ScrollBar");var _z=20;function $x(){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,_z),Math.floor(n)}var Tz=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],Pz=[],Mz={overflowY:"auto",overflowAnchor:"none"};function Dz(e,t){var n=e.prefixCls,r=n===void 0?"rc-virtual-list":n,o=e.className,i=e.height,a=e.itemHeight,l=e.fullHeight,c=l===void 0?!0:l,u=e.style,d=e.data,f=e.children,m=e.itemKey,p=e.virtual,h=e.direction,b=e.scrollWidth,v=e.component,y=v===void 0?"div":v,C=e.onScroll,x=e.onVirtualScroll,E=e.onVisibleChange,S=e.innerProps,$=e.extraRender,O=e.styles,I=e.showScrollBar,w=I===void 0?"optional":I,N=tt(e,Tz),_=s.useCallback(function(De){return typeof m=="function"?m(De):De==null?void 0:De[m]},[m]),P=wz(_,null,null),M=ae(P,4),D=M[0],T=M[1],A=M[2],R=M[3],L=!!(p!==!1&&i&&a),j=s.useMemo(function(){return Object.values(A.maps).reduce(function(De,Ke){return De+Ke},0)},[A.id,A.maps]),z=L&&d&&(Math.max(a*d.length,j)>i||!!b),B=h==="rtl",K=G(r,H({},"".concat(r,"-rtl"),B),o),W=d||Pz,k=g.useRef(),V=g.useRef(),Q=g.useRef(),J=g.useState(0),Y=ae(J,2),te=Y[0],oe=Y[1],X=g.useState(0),F=ae(X,2),ee=F[0],Z=F[1],ne=g.useState(!1),re=ae(ne,2),se=re[0],le=re[1],he=function(){le(!0)},fe=function(){le(!1)},ie={getKey:_};function ue(De){oe(function(Ke){var Be;typeof De=="function"?Be=De(Ke):Be=De;var Re=Pt(Be);return k.current.scrollTop=Re,Re})}var de=g.useRef({start:0,end:W.length}),me=g.useRef(),Ce=Sz(W,_),Oe=ae(Ce,1),Te=Oe[0];me.current=Te;var je=s.useMemo(function(){if(!L)return{scrollHeight:void 0,start:0,end:W.length-1,offset:void 0};if(!z){var De;return{scrollHeight:((De=V.current)===null||De===void 0?void 0:De.offsetHeight)||0,start:0,end:W.length-1,offset:void 0}}for(var Ke=0,Be,Re,lt,Mt=W.length,At=0;At<Mt;At+=1){var Kt=W[At],an=_(Kt),Ut=A.get(an),Ye=Ke+(Ut===void 0?a:Ut);Ye>=te&&Be===void 0&&(Be=At,Re=Ke),Ye>te+i&<===void 0&&(lt=At),Ke=Ye}return Be===void 0&&(Be=0,Re=0,lt=Math.ceil(i/a)),lt===void 0&&(lt=W.length-1),lt=Math.min(lt+1,W.length-1),{scrollHeight:Ke,start:Be,end:lt,offset:Re}},[z,L,te,W,R,i]),Ne=je.scrollHeight,Ie=je.start,xe=je.end,be=je.offset;de.current.start=Ie,de.current.end=xe,s.useLayoutEffect(function(){var De=A.getRecord();if(De.size===1){var Ke=Array.from(De.keys())[0],Be=De.get(Ke),Re=W[Ie];if(Re&&Be===void 0){var lt=_(Re);if(lt===Ke){var Mt=A.get(Ke),At=Mt-a;ue(function(Kt){return Kt+At})}}}A.resetRecord()},[Ne]);var Ee=s.useState({width:0,height:i}),$e=ae(Ee,2),_e=$e[0],ve=$e[1],Se=function(Ke){ve({width:Ke.offsetWidth,height:Ke.offsetHeight})},Je=g.useRef(),it=g.useRef(),Nt=s.useMemo(function(){return $x(_e.width,b)},[_e.width,b]),Tt=s.useMemo(function(){return $x(_e.height,Ne)},[_e.height,Ne]),Gt=Ne-i,st=g.useRef(Gt);st.current=Gt;function Pt(De){var Ke=De;return Number.isNaN(st.current)||(Ke=Math.min(Ke,st.current)),Ke=Math.max(Ke,0),Ke}var pt=te<=0,et=te>=Gt,ke=ee<=0,Me=ee>=b,Pe=yx(pt,et,ke,Me),at=function(){return{x:B?-ee:ee,y:te}},ct=g.useRef(at()),Le=qt(function(De){if(x){var Ke=q(q({},at()),De);(ct.current.x!==Ke.x||ct.current.y!==Ke.y)&&(x(Ke),ct.current=Ke)}});function we(De,Ke){var Be=De;Ke?(nr.flushSync(function(){Z(Be)}),Le()):ue(Be)}function ze(De){var Ke=De.currentTarget.scrollTop;Ke!==te&&ue(Ke),C==null||C(De),Le()}var Fe=function(Ke){var Be=Ke,Re=b?b-_e.width:0;return Be=Math.max(Be,0),Be=Math.min(Be,Re),Be},Ve=qt(function(De,Ke){Ke?(nr.flushSync(function(){Z(function(Be){var Re=Be+(B?-De:De);return Fe(Re)})}),Le()):ue(function(Be){var Re=Be+De;return Re})}),Ze=xz(L,pt,et,ke,Me,!!b,Ve),Ot=ae(Ze,2),Ae=Ot[0],Qe=Ot[1];Oz(L,k,function(De,Ke,Be,Re){var lt=Re;return Pe(De,Ke,Be)?!1:!lt||!lt._virtualHandled?(lt&&(lt._virtualHandled=!0),Ae({preventDefault:function(){},deltaX:De?Ke:0,deltaY:De?0:Ke}),!0):!1}),Nz(z,k,function(De){ue(function(Ke){return Ke+De})}),wt(function(){function De(Be){var Re=pt&&Be.detail<0,lt=et&&Be.detail>0;L&&!Re&&!lt&&Be.preventDefault()}var Ke=k.current;return Ke.addEventListener("wheel",Ae,{passive:!1}),Ke.addEventListener("DOMMouseScroll",Qe,{passive:!0}),Ke.addEventListener("MozMousePixelScroll",De,{passive:!1}),function(){Ke.removeEventListener("wheel",Ae),Ke.removeEventListener("DOMMouseScroll",Qe),Ke.removeEventListener("MozMousePixelScroll",De)}},[L,pt,et]),wt(function(){if(b){var De=Fe(ee);Z(De),Le({x:De})}},[_e.width,b]);var nt=function(){var Ke,Be;(Ke=Je.current)===null||Ke===void 0||Ke.delayHidden(),(Be=it.current)===null||Be===void 0||Be.delayHidden()},ot=Iz(k,W,A,a,_,function(){return T(!0)},ue,nt);s.useImperativeHandle(t,function(){return{nativeElement:Q.current,getScrollInfo:at,scrollTo:function(Ke){function Be(Re){return Re&&He(Re)==="object"&&("left"in Re||"top"in Re)}Be(Ke)?(Ke.left!==void 0&&Z(Fe(Ke.left)),ot(Ke.top)):ot(Ke)}}}),wt(function(){if(E){var De=W.slice(Ie,xe+1);E(De,W)}},[Ie,xe,W]);var ht=Ez(W,_,A,a),jt=$==null?void 0:$({start:Ie,end:xe,virtual:z,offsetX:ee,offsetY:be,rtl:B,getSize:ht}),Wt=yz(W,Ie,xe,b,ee,D,f,ie),Ct=null;i&&(Ct=q(H({},c?"height":"maxHeight",i),Mz),L&&(Ct.overflowY="hidden",b&&(Ct.overflowX="hidden"),se&&(Ct.pointerEvents="none")));var en={};return B&&(en.dir="rtl"),s.createElement("div",ce({ref:Q,style:q(q({},u),{},{position:"relative"}),className:K},en,N),s.createElement(Kn,{onResize:Se},s.createElement(y,{className:"".concat(r,"-holder"),style:Ct,ref:k,onScroll:ze,onMouseEnter:nt},s.createElement(hx,{prefixCls:r,height:Ne,offsetX:ee,offsetY:be,scrollWidth:b,onInnerResize:T,ref:V,innerProps:S,rtl:B,extra:jt},Wt))),z&&Ne>i&&s.createElement(Bm,{ref:Je,prefixCls:r,scrollOffset:te,scrollRange:Ne,rtl:B,onScroll:we,onStartMove:he,onStopMove:fe,spinSize:Tt,containerSize:_e.height,style:O==null?void 0:O.verticalScrollBar,thumbStyle:O==null?void 0:O.verticalScrollBarThumb,showScrollBar:w}),z&&b>_e.width&&s.createElement(Bm,{ref:it,prefixCls:r,scrollOffset:ee,scrollRange:b,rtl:B,onScroll:we,onStartMove:he,onStopMove:fe,spinSize:Nt,containerSize:_e.width,horizontal:!0,style:O==null?void 0:O.horizontalScrollBar,thumbStyle:O==null?void 0:O.horizontalScrollBarThumb,showScrollBar:w}))}var yc=s.forwardRef(Dz);yc.displayName="List";function Az(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var Rz=["disabled","title","children","style","className"];function wx(e){return typeof e=="string"||typeof e=="number"}var jz=function(t,n){var r=NL(),o=r.prefixCls,i=r.id,a=r.open,l=r.multiple,c=r.mode,u=r.searchValue,d=r.toggleOpen,f=r.notFoundContent,m=r.onPopupScroll,p=s.useContext(Rm),h=p.maxCount,b=p.flattenOptions,v=p.onActiveValue,y=p.defaultActiveFirstOption,C=p.onSelect,x=p.menuItemSelectedIcon,E=p.rawValues,S=p.fieldNames,$=p.virtual,O=p.direction,I=p.listHeight,w=p.listItemHeight,N=p.optionRender,_="".concat(o,"-item"),P=ni(function(){return b},[a,b],function(X,F){return F[0]&&X[1]!==F[1]}),M=s.useRef(null),D=s.useMemo(function(){return l&&Dm(h)&&(E==null?void 0:E.size)>=h},[l,h,E==null?void 0:E.size]),T=function(F){F.preventDefault()},A=function(F){var ee;(ee=M.current)===null||ee===void 0||ee.scrollTo(typeof F=="number"?{index:F}:F)},R=s.useCallback(function(X){return c==="combobox"?!1:E.has(X)},[c,ge(E).toString(),E.size]),L=function(F){for(var ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Z=P.length,ne=0;ne<Z;ne+=1){var re=(F+ne*ee+Z)%Z,se=P[re]||{},le=se.group,he=se.data;if(!le&&!(he!=null&&he.disabled)&&(R(he.value)||!D))return re}return-1},j=s.useState(function(){return L(0)}),z=ae(j,2),B=z[0],K=z[1],W=function(F){var ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;K(F);var Z={source:ee?"keyboard":"mouse"},ne=P[F];if(!ne){v(null,-1,Z);return}v(ne.value,F,Z)};g.useEffect(function(){W(y!==!1?L(0):-1)},[P.length,u]);var k=s.useCallback(function(X){return c==="combobox"?String(X).toLowerCase()===u.toLowerCase():E.has(X)},[c,u,ge(E).toString(),E.size]);g.useEffect(function(){var X=setTimeout(function(){if(!l&&a&&E.size===1){var ee=Array.from(E)[0],Z=P.findIndex(function(ne){var re=ne.data;return u?String(re.value).startsWith(u):re.value===ee});Z!==-1&&(W(Z),A(Z))}});if(a){var F;(F=M.current)===null||F===void 0||F.scrollTo(void 0)}return function(){return clearTimeout(X)}},[a,u]);var V=function(F){F!==void 0&&C(F,{selected:!E.has(F)}),l||d(!1)};if(s.useImperativeHandle(n,function(){return{onKeyDown:function(F){var ee=F.which,Z=F.ctrlKey;switch(ee){case ye.N:case ye.P:case ye.UP:case ye.DOWN:{var ne=0;if(ee===ye.UP?ne=-1:ee===ye.DOWN?ne=1:Az()&&Z&&(ee===ye.N?ne=1:ee===ye.P&&(ne=-1)),ne!==0){var re=L(B+ne,ne);A(re),W(re,!0)}break}case ye.TAB:case ye.ENTER:{var se,le=P[B];le&&!(le!=null&&(se=le.data)!==null&&se!==void 0&&se.disabled)&&!D?V(le.value):V(void 0),a&&F.preventDefault();break}case ye.ESC:d(!1),a&&F.stopPropagation()}},onKeyUp:function(){},scrollTo:function(F){A(F)}}}),P.length===0)return s.createElement("div",{role:"listbox",id:"".concat(i,"_list"),className:"".concat(_,"-empty"),onMouseDown:T},f);var Q=Object.keys(S).map(function(X){return S[X]}),J=function(F){return F.label};function Y(X,F){var ee=X.group;return{role:ee?"presentation":"option",id:"".concat(i,"_list_").concat(F)}}var te=function(F){var ee=P[F];if(!ee)return null;var Z=ee.data||{},ne=Z.value,re=ee.group,se=Rn(Z,!0),le=J(ee);return ee?s.createElement("div",ce({"aria-label":typeof le=="string"&&!re?le:null},se,{key:F},Y(ee,F),{"aria-selected":k(ne)}),ne):null},oe={role:"listbox",id:"".concat(i,"_list")};return s.createElement(s.Fragment,null,$&&s.createElement("div",ce({},oe,{style:{height:0,width:0,overflow:"hidden"}}),te(B-1),te(B),te(B+1)),s.createElement(yc,{itemKey:"key",ref:M,data:P,height:I,itemHeight:w,fullHeight:!1,onMouseDown:T,onScroll:m,virtual:$,direction:O,innerProps:$?null:oe},function(X,F){var ee=X.group,Z=X.groupOption,ne=X.data,re=X.label,se=X.value,le=ne.key;if(ee){var he,fe=(he=ne.title)!==null&&he!==void 0?he:wx(re)?re.toString():void 0;return s.createElement("div",{className:G(_,"".concat(_,"-group"),ne.className),title:fe},re!==void 0?re:le)}var ie=ne.disabled,ue=ne.title;ne.children;var de=ne.style,me=ne.className,Ce=tt(ne,Rz),Oe=tn(Ce,Q),Te=R(se),je=ie||!Te&&D,Ne="".concat(_,"-option"),Ie=G(_,Ne,me,H(H(H(H({},"".concat(Ne,"-grouped"),Z),"".concat(Ne,"-active"),B===F&&!je),"".concat(Ne,"-disabled"),je),"".concat(Ne,"-selected"),Te)),xe=J(X),be=!x||typeof x=="function"||Te,Ee=typeof xe=="number"?xe:xe||se,$e=wx(Ee)?Ee.toString():void 0;return ue!==void 0&&($e=ue),s.createElement("div",ce({},Rn(Oe),$?{}:Y(X,F),{"aria-selected":k(se),className:Ie,title:$e,onMouseMove:function(){B===F||je||W(F)},onClick:function(){je||V(se)},style:de}),s.createElement("div",{className:"".concat(Ne,"-content")},typeof N=="function"?N(X,{index:F}):Ee),s.isValidElement(x)||Te,be&&s.createElement(vc,{className:"".concat(_,"-option-state"),customizeIcon:x,customizeIconProps:{value:se,disabled:je,isSelected:Te}},Te?"✓":null))}))},Ox=s.forwardRef(jz);process.env.NODE_ENV!=="production"&&(Ox.displayName="OptionList");const Lz=function(e,t){var n=s.useRef({values:new Map,options:new Map}),r=s.useMemo(function(){var i=n.current,a=i.values,l=i.options,c=e.map(function(f){if(f.label===void 0){var m;return q(q({},f),{},{label:(m=a.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)||l.get(f.value))}),n.current.values=u,n.current.options=d,c},[e,t]),o=s.useCallback(function(i){return t.get(i)||n.current.options.get(i)},[t]);return[r,o]};function km(e,t){return Pm(e).join("").toUpperCase().includes(t)}const zz=function(e,t,n,r,o){return s.useMemo(function(){if(!n||r===!1)return e;var i=t.options,a=t.label,l=t.value,c=[],u=typeof r=="function",d=n.toUpperCase(),f=u?r:function(p,h){return o?km(h[o],d):h[i]?km(h[a!=="children"?a:"label"],d):km(h[l],d)},m=u?function(p){return Am(p)}:function(p){return p};return e.forEach(function(p){if(p[i]){var h=f(n,m(p));if(h)c.push(p);else{var b=p[i].filter(function(v){return f(n,m(v))});b.length&&c.push(q(q({},p),{},H({},i,b)))}return}f(n,m(p))&&c.push(p)}),c},[e,r,o,n,t])};var Nx=0,Bz=process.env.NODE_ENV!=="test"&&_n();function kz(){var e;return Bz?(e=Nx,Nx+=1):e="TEST_OR_SSR",e}function Fz(e){var t=s.useState(),n=ae(t,2),r=n[0],o=n[1];return s.useEffect(function(){o("rc_select_".concat(kz()))},[]),e||r}var Hz=["children","value"],Vz=["children"];function Wz(e){var t=e,n=t.key,r=t.props,o=r.children,i=r.value,a=tt(r,Hz);return q({key:n,value:i!==void 0?i:n,children:o},a)}function Fm(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Tn(e).map(function(n,r){if(!s.isValidElement(n)||!n.type)return null;var o=n,i=o.type.isSelectOptGroup,a=o.key,l=o.props,c=l.children,u=tt(l,Vz);return t||!i?Wz(n):q(q({key:"__RC_SELECT_GRP__".concat(a===null?r:a,"__"),label:a},u),{},{options:Fm(c)})}).filter(function(n){return n})}var Kz=function(t,n,r,o,i){return s.useMemo(function(){var a=t,l=!t;l&&(a=Fm(n));var c=new Map,u=new Map,d=function(p,h,b){b&&typeof b=="string"&&p.set(h[b],h)},f=function m(p){for(var h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,b=0;b<p.length;b+=1){var v=p[b];!v[r.options]||h?(c.set(v[r.value],v),d(u,v,r.label),d(u,v,o),d(u,v,i)):m(v[r.options],!0)}};return f(a),{options:a,valueOptions:c,labelOptions:u}},[t,n,r,o,i])};function Ix(e){var t=s.useRef();t.current=e;var n=s.useCallback(function(){return t.current.apply(t,arguments)},[]);return n}function qz(e){var t=e.mode,n=e.options,r=e.children,o=e.backfill,i=e.allowClear,a=e.placeholder,l=e.getInputElement,c=e.showSearch,u=e.onSearch,d=e.defaultOpen,f=e.autoFocus,m=e.labelInValue,p=e.value,h=e.inputValue,b=e.optionLabelProp,v=bc(t),y=c!==void 0?c:v||t==="combobox",C=n||Fm(r);if(Ge(t!=="tags"||C.every(function($){return!$.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),t==="tags"||t==="combobox"){var x=C.some(function($){return $.options?$.options.some(function(O){return typeof("value"in O?O.value:O.key)=="number"}):typeof("value"in $?$.value:$.key)=="number"});Ge(!x,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Ge(t!=="combobox"||!b,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Ge(t==="combobox"||!o,"`backfill` only works with `combobox` mode."),Ge(t==="combobox"||!l,"`getInputElement` only work with `combobox` mode."),Td(t!=="combobox"||!l||!i||!a,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),u&&!y&&t!=="combobox"&&t!=="tags"&&Ge(!1,"`onSearch` should work with `showSearch` instead of use alone."),Td(!d||f,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),p!=null){var E=Pm(p);Ge(!m||E.every(function($){return He($)==="object"&&("key"in $||"value"in $)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Ge(!v||Array.isArray(p),"`value` should be array when `mode` is `multiple` or `tags`")}if(r){var S=null;Tn(r).some(function($){if(!s.isValidElement($)||!$.type)return!1;var O=$,I=O.type;if(I.isSelectOption)return!1;if(I.isSelectOptGroup){var w=Tn($.props.children).every(function(N){return!s.isValidElement(N)||!$.type||N.type.isSelectOption?!0:(S=N.type,!1)});return!w}return S=I,!0}),S&&Ge(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(S.displayName||S.name||S,"`.")),Ge(h===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function Uz(e,t){if(e){var n=function r(o){for(var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a=0;a<o.length;a++){var l=o[a];if(l[t==null?void 0:t.value]===null)return Ge(!1,"`value` in Select options should not be `null`."),!0;if(!i&&Array.isArray(l[t==null?void 0:t.options])&&r(l[t==null?void 0:t.options],!0))break}};n(e)}}var Gz=["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"],Xz=["inputValue"];function Qz(e){return!e||He(e)!=="object"}var _x=s.forwardRef(function(e,t){var n=e.id,r=e.mode,o=e.prefixCls,i=o===void 0?"rc-select":o,a=e.backfill,l=e.fieldNames,c=e.inputValue,u=e.searchValue,d=e.onSearch,f=e.autoClearSearchValue,m=f===void 0?!0:f,p=e.onSelect,h=e.onDeselect,b=e.dropdownMatchSelectWidth,v=b===void 0?!0:b,y=e.filterOption,C=e.filterSort,x=e.optionFilterProp,E=e.optionLabelProp,S=e.options,$=e.optionRender,O=e.children,I=e.defaultActiveFirstOption,w=e.menuItemSelectedIcon,N=e.virtual,_=e.direction,P=e.listHeight,M=P===void 0?200:P,D=e.listItemHeight,T=D===void 0?20:D,A=e.labelRender,R=e.value,L=e.defaultValue,j=e.labelInValue,z=e.onChange,B=e.maxCount,K=tt(e,Gz),W=Fz(n),k=bc(r),V=!!(!S&&O),Q=s.useMemo(function(){return y===void 0&&r==="combobox"?!1:y},[y,r]),J=s.useMemo(function(){return vx(l,V)},[JSON.stringify(l),V]),Y=ln("",{value:u!==void 0?u:c,postState:function(we){return we||""}}),te=ae(Y,2),oe=te[0],X=te[1],F=Kz(S,O,J,x,E),ee=F.valueOptions,Z=F.labelOptions,ne=F.options,re=s.useCallback(function(Le){var we=Pm(Le);return we.map(function(ze){var Fe,Ve,Ze,Ot,Ae;if(Qz(ze))Fe=ze;else{var Qe;Ze=ze.key,Ve=ze.label,Fe=(Qe=ze.value)!==null&&Qe!==void 0?Qe:Ze}var nt=ee.get(Fe);if(nt){var ot;if(Ve===void 0&&(Ve=nt==null?void 0:nt[E||J.label]),Ze===void 0&&(Ze=(ot=nt==null?void 0:nt.key)!==null&&ot!==void 0?ot:Fe),Ot=nt==null?void 0:nt.disabled,Ae=nt==null?void 0:nt.title,process.env.NODE_ENV!=="production"&&!E){var ht=nt==null?void 0:nt[J.label];ht!==void 0&&!s.isValidElement(ht)&&!s.isValidElement(Ve)&&ht!==Ve&&Ge(!1,"`label` of `value` is not same as `label` in Select options.")}}return{label:Ve,value:Fe,key:Ze,disabled:Ot,title:Ae}})},[J,E,ee]),se=ln(L,{value:R}),le=ae(se,2),he=le[0],fe=le[1],ie=s.useMemo(function(){var Le,we=k&&he===null?[]:he,ze=re(we);return r==="combobox"&&GL((Le=ze[0])===null||Le===void 0?void 0:Le.value)?[]:ze},[he,re,r,k]),ue=Lz(ie,ee),de=ae(ue,2),me=de[0],Ce=de[1],Oe=s.useMemo(function(){if(!r&&me.length===1){var Le=me[0];if(Le.value===null&&(Le.label===null||Le.label===void 0))return[]}return me.map(function(we){var ze;return q(q({},we),{},{label:(ze=typeof A=="function"?A(we):we.label)!==null&&ze!==void 0?ze:we.value})})},[r,me,A]),Te=s.useMemo(function(){return new Set(me.map(function(Le){return Le.value}))},[me]);s.useEffect(function(){if(r==="combobox"){var Le,we=(Le=me[0])===null||Le===void 0?void 0:Le.value;X(UL(we)?String(we):"")}},[me]);var je=Ix(function(Le,we){var ze=we!=null?we:Le;return H(H({},J.value,Le),J.label,ze)}),Ne=s.useMemo(function(){if(r!=="tags")return ne;var Le=ge(ne),we=function(Fe){return ee.has(Fe)};return ge(me).sort(function(ze,Fe){return ze.value<Fe.value?-1:1}).forEach(function(ze){var Fe=ze.value;we(Fe)||Le.push(je(Fe,ze.label))}),Le},[je,ne,ee,me,r]),Ie=zz(Ne,J,oe,Q,x),xe=s.useMemo(function(){return r!=="tags"||!oe||Ie.some(function(Le){return Le[x||"value"]===oe})||Ie.some(function(Le){return Le[J.value]===oe})?Ie:[je(oe)].concat(ge(Ie))},[je,x,r,Ie,oe,J]),be=function Le(we){var ze=ge(we).sort(function(Fe,Ve){return C(Fe,Ve,{searchValue:oe})});return ze.map(function(Fe){return Array.isArray(Fe.options)?q(q({},Fe),{},{options:Fe.options.length>0?Le(Fe.options):Fe.options}):Fe})},Ee=s.useMemo(function(){return C?be(xe):xe},[xe,C,oe]),$e=s.useMemo(function(){return mz(Ee,{fieldNames:J,childrenAsData:V})},[Ee,J,V]),_e=function(we){var ze=re(we);if(fe(ze),z&&(ze.length!==me.length||ze.some(function(Ze,Ot){var Ae;return((Ae=me[Ot])===null||Ae===void 0?void 0:Ae.value)!==(Ze==null?void 0:Ze.value)}))){var Fe=j?ze:ze.map(function(Ze){return Ze.value}),Ve=ze.map(function(Ze){return Am(Ce(Ze.value))});z(k?Fe:Fe[0],k?Ve:Ve[0])}},ve=s.useState(null),Se=ae(ve,2),Je=Se[0],it=Se[1],Nt=s.useState(0),Tt=ae(Nt,2),Gt=Tt[0],st=Tt[1],Pt=I!==void 0?I:r!=="combobox",pt=s.useCallback(function(Le,we){var ze=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Fe=ze.source,Ve=Fe===void 0?"keyboard":Fe;st(we),a&&r==="combobox"&&Le!==null&&Ve==="keyboard"&&it(String(Le))},[a,r]),et=function(we,ze,Fe){var Ve=function(){var Ct,en=Ce(we);return[j?{label:en==null?void 0:en[J.label],value:we,key:(Ct=en==null?void 0:en.key)!==null&&Ct!==void 0?Ct:we}:we,Am(en)]};if(ze&&p){var Ze=Ve(),Ot=ae(Ze,2),Ae=Ot[0],Qe=Ot[1];p(Ae,Qe)}else if(!ze&&h&&Fe!=="clear"){var nt=Ve(),ot=ae(nt,2),ht=ot[0],jt=ot[1];h(ht,jt)}},ke=Ix(function(Le,we){var ze,Fe=k?we.selected:!0;Fe?ze=k?[].concat(ge(me),[Le]):[Le]:ze=me.filter(function(Ve){return Ve.value!==Le}),_e(ze),et(Le,Fe),r==="combobox"?it(""):(!bc||m)&&(X(""),it(""))}),Me=function(we,ze){_e(we);var Fe=ze.type,Ve=ze.values;(Fe==="remove"||Fe==="clear")&&Ve.forEach(function(Ze){et(Ze.value,!1,Fe)})},Pe=function(we,ze){if(X(we),it(null),ze.source==="submit"){var Fe=(we||"").trim();if(Fe){var Ve=Array.from(new Set([].concat(ge(Te),[Fe])));_e(Ve),et(Fe,!0),X("")}return}ze.source!=="blur"&&(r==="combobox"&&_e(we),d==null||d(we))},at=function(we){var ze=we;r!=="tags"&&(ze=we.map(function(Ve){var Ze=Z.get(Ve);return Ze==null?void 0:Ze.value}).filter(function(Ve){return Ve!==void 0}));var Fe=Array.from(new Set([].concat(ge(Te),ge(ze))));_e(Fe),Fe.forEach(function(Ve){et(Ve,!0)})},ct=s.useMemo(function(){var Le=N!==!1&&v!==!1;return q(q({},F),{},{flattenOptions:$e,onActiveValue:pt,defaultActiveFirstOption:Pt,onSelect:ke,menuItemSelectedIcon:w,rawValues:Te,fieldNames:J,virtual:Le,direction:_,listHeight:M,listItemHeight:T,childrenAsData:V,maxCount:B,optionRender:$})},[B,F,$e,pt,Pt,ke,w,Te,J,N,v,_,M,T,V,$]);return process.env.NODE_ENV!=="production"&&(qz(e),Uz(ne,J)),s.createElement(Rm.Provider,{value:ct},s.createElement(gx,ce({},K,{id:W,prefixCls:i,ref:t,omitDomProps:Xz,mode:r,displayValues:Oe,onDisplayValuesChange:Me,direction:_,searchValue:oe,onSearch:Pe,autoClearSearchValue:m,onSearchSplit:at,dropdownMatchSelectWidth:v,OptionList:Ox,emptyOptions:!$e.length,activeValue:Je,activeDescendantId:"".concat(W,"_list_").concat(Gt)})))});process.env.NODE_ENV!=="production"&&(_x.displayName="Select");var Hm=_x;Hm.Option=Lm,Hm.OptGroup=jm;function Cc(e,t,n){return G({[`${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 Sc=(e,t)=>t||e,Tx=()=>{const[,e]=Hn(),[t]=ro("Empty"),r=new kt(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return s.createElement("svg",{style:r,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},s.createElement("title",null,(t==null?void 0:t.description)||"Empty"),s.createElement("g",{fill:"none",fillRule:"evenodd"},s.createElement("g",{transform:"translate(24 31.67)"},s.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),s.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"}),s.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)"}),s.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"}),s.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"})),s.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"}),s.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},s.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),s.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))};process.env.NODE_ENV!=="production"&&(Tx.displayName="EmptyImage");const Yz=Tx,Px=()=>{const[,e]=Hn(),[t]=ro("Empty"),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:o,colorBgContainer:i}=e,{borderColor:a,shadowColor:l,contentColor:c}=g.useMemo(()=>({borderColor:new kt(n).onBackground(i).toHexString(),shadowColor:new kt(r).onBackground(i).toHexString(),contentColor:new kt(o).onBackground(i).toHexString()}),[n,r,o,i]);return s.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},s.createElement("title",null,(t==null?void 0:t.description)||"Empty"),s.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},s.createElement("ellipse",{fill:l,cx:"32",cy:"33",rx:"32",ry:"7"}),s.createElement("g",{fillRule:"nonzero",stroke:a},s.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"}),s.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}))))};process.env.NODE_ENV!=="production"&&(Px.displayName="SimpleImage");const Jz=Px,Zz=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:o,fontSize:i,lineHeight:a}=e;return{[t]:{marginInline:r,fontSize:i,lineHeight:a,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}}}}},eB=Dt("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,o=xt(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return[Zz(o)]});var tB=globalThis&&globalThis.__rest||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 Mx=s.createElement(Yz,null),Dx=s.createElement(Jz,null),xc=e=>{const{className:t,rootClassName:n,prefixCls:r,image:o=Mx,description:i,children:a,imageStyle:l,style:c,classNames:u,styles:d}=e,f=tB(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:m,direction:p,className:h,style:b,classNames:v,styles:y}=An("empty"),C=m("empty",r),[x,E,S]=eB(C),[$]=ro("Empty"),O=typeof i!="undefined"?i:$==null?void 0:$.description,I=typeof O=="string"?O:"empty";let w=null;if(typeof o=="string"?w=s.createElement("img",{alt:I,src:o}):w=o,process.env.NODE_ENV!=="production"){const N=gt("Empty");[["imageStyle","styles: { image: {} }"]].forEach(_=>{let[P,M]=_;N.deprecated(!(P in e),P,M)})}return x(s.createElement("div",Object.assign({className:G(E,S,C,h,{[`${C}-normal`]:o===Dx,[`${C}-rtl`]:p==="rtl"},t,n,v.root,u==null?void 0:u.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},y.root),b),d==null?void 0:d.root),c)},f),s.createElement("div",{className:G(`${C}-image`,v.image,u==null?void 0:u.image),style:Object.assign(Object.assign(Object.assign({},l),y.image),d==null?void 0:d.image)},w),O&&s.createElement("div",{className:G(`${C}-description`,v.description,u==null?void 0:u.description),style:Object.assign(Object.assign({},y.description),d==null?void 0:d.description)},O),a&&s.createElement("div",{className:G(`${C}-footer`,v.footer,u==null?void 0:u.footer),style:Object.assign(Object.assign({},y.footer),d==null?void 0:d.footer)},a)))};xc.PRESENTED_IMAGE_DEFAULT=Mx,xc.PRESENTED_IMAGE_SIMPLE=Dx,process.env.NODE_ENV!=="production"&&(xc.displayName="Empty");const pi=xc,Ax=e=>{const{componentName:t}=e,{getPrefixCls:n}=g.useContext(Xe),r=n("empty");switch(t){case"Table":case"List":return g.createElement(pi,{image:pi.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return g.createElement(pi,{image:pi.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case"Table.filter":return null;default:return g.createElement(pi,null)}},Ec=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;var r,o;const{variant:i,[e]:a}=s.useContext(Xe),l=s.useContext(mS),c=a==null?void 0:a.variant;let u;typeof t!="undefined"?u=t:n===!1?u="borderless":u=(o=(r=l!=null?l:c)!==null&&r!==void 0?r:i)!==null&&o!==void 0?o:"outlined";const d=g4.includes(u);return[u,d]},nB=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 rB(e,t){return e||nB(t)}const Rx=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"}},oB=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,o=`&${t}-slide-up-enter${t}-slide-up-enter-active`,i=`&${t}-slide-up-appear${t}-slide-up-appear-active`,a=`&${t}-slide-up-leave${t}-slide-up-leave-active`,l=`${n}-dropdown-placement-`,c=`${r}-option-selected`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},Ht(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,[`
|
|
215
|
+
${o}${l}bottomLeft,
|
|
216
|
+
${i}${l}bottomLeft
|
|
217
|
+
`]:{animationName:Wf},[`
|
|
218
|
+
${o}${l}topLeft,
|
|
219
|
+
${i}${l}topLeft,
|
|
220
|
+
${o}${l}topRight,
|
|
221
|
+
${i}${l}topRight
|
|
222
|
+
`]:{animationName:qf},[`${a}${l}bottomLeft`]:{animationName:Kf},[`
|
|
223
|
+
${a}${l}topLeft,
|
|
224
|
+
${a}${l}topRight
|
|
225
|
+
`]:{animationName:Uf},"&-hidden":{display:"none"},[r]:Object.assign(Object.assign({},Rx(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"},So),"&-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({},Rx(e)),{color:e.colorTextDisabled})}),[`${c}:has(+ ${c})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${c}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},Fo(e,"slide-up"),Fo(e,"slide-down"),nc(e,"move-up"),nc(e,"move-down")]},iB=e=>{const{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:o}=e,i=e.max(e.calc(n).sub(r).equal(),0),a=e.max(e.calc(i).sub(o).equal(),0);return{basePadding:i,containerPadding:a,itemHeight:U(t),itemLineHeight:U(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},aB=e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()},lB=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:o,paddingXS:i,multipleItemColorDisabled:a,multipleItemBorderColorDisabled:l,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:"100%",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:i,paddingInlineEnd:e.calc(i).div(2).equal(),[`${t}-disabled&`]:{color:a,borderColor:l,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(i).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},Ya()),{display:"inline-flex",alignItems:"center",color:c,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:u}})}}}},sB=(e,t)=>{const{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:r}=e,o=`${n}-selection-overflow`,i=e.multipleSelectItemHeight,a=aB(e),l=t?`${n}-${t}`:"",c=iB(e);return{[`${n}-multiple${l}`]:Object.assign(Object.assign({},lB(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:`${U(r)} 0`,lineHeight:U(i),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:c.itemHeight,lineHeight:U(c.itemLineHeight)},[`${n}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:U(i),marginBlock:r}},[`${n}-prefix`]:{marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(c.basePadding).equal()},[`${o}-item + ${o}-item,
|
|
226
|
+
${n}-prefix + ${n}-selection-wrap
|
|
227
|
+
`]:{[`${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(a).equal(),"\n &-input,\n &-mirror\n ":{height:i,fontFamily:e.fontFamily,lineHeight:U(i),transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(c.basePadding).equal(),insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}})}};function Vm(e,t){const{componentCls:n}=e,r=t?`${n}-${t}`:"",o={[`${n}-multiple${r}`]:{fontSize:e.fontSize,[`${n}-selector`]:{[`${n}-show-search&`]:{cursor:"text"}},[`
|
|
228
|
+
&${n}-show-arrow ${n}-selector,
|
|
229
|
+
&${n}-allow-clear ${n}-selector
|
|
230
|
+
`]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[sB(e,t),o]}const cB=e=>{const{componentCls:t}=e,n=xt(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=xt(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[Vm(e),Vm(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},Vm(r,"lg")]};function Wm(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:o}=e,i=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),a=t?`${n}-${t}`:"";return{[`${n}-single${a}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},Ht(e,!0)),{display:"flex",borderRadius:o,flex:"1 1 auto",[`${n}-selection-wrap:after`]:{lineHeight:U(i)},[`${n}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[`
|
|
231
|
+
${n}-selection-item,
|
|
232
|
+
${n}-selection-placeholder
|
|
233
|
+
`]:{display:"block",padding:0,lineHeight:U(i),transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:empty:after`,`${n}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
|
|
234
|
+
&${n}-show-arrow ${n}-selection-item,
|
|
235
|
+
&${n}-show-arrow ${n}-selection-search,
|
|
236
|
+
&${n}-show-arrow ${n}-selection-placeholder
|
|
237
|
+
`]:{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 ${U(r)}`,[`${n}-selection-search-input`]:{height:i,fontSize:e.fontSize},"&:after":{lineHeight:U(i)}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${U(r)}`,"&:after":{display:"none"}}}}}}}function uB(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[Wm(e),Wm(xt(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selector`]:{padding:`0 ${U(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},[`
|
|
238
|
+
&${t}-show-arrow ${t}-selection-item,
|
|
239
|
+
&${t}-show-arrow ${t}-selection-placeholder
|
|
240
|
+
`]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},Wm(xt(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const dB=e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:o,controlHeightSM:i,controlHeightLG:a,paddingXXS:l,controlPaddingHorizontal:c,zIndexPopupBase:u,colorText:d,fontWeightStrong:f,controlItemBgActive:m,controlItemBgHover:p,colorBgContainer:h,colorFillSecondary:b,colorBgContainerDisabled:v,colorTextDisabled:y,colorPrimaryHover:C,colorPrimary:x,controlOutline:E}=e,S=l*2,$=r*2,O=Math.min(o-S,o-$),I=Math.min(i-S,i-$),w=Math.min(a-S,a-$);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(l/2),zIndexPopup:u+50,optionSelectedColor:d,optionSelectedFontWeight:f,optionSelectedBg:m,optionActiveBg:p,optionPadding:`${(o-t*n)/2}px ${c}px`,optionFontSize:t,optionLineHeight:n,optionHeight:o,selectorBg:h,clearBg:h,singleItemHeightLG:a,multipleItemBg:b,multipleItemBorderColor:"transparent",multipleItemHeight:O,multipleItemHeightSM:I,multipleItemHeightLG:w,multipleSelectorBgDisabled:v,multipleItemColorDisabled:y,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:C,activeBorderColor:x,activeOutlineColor:E,selectAffixPadding:l}},jx=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:o}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${U(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 ${U(o)} ${t.activeOutlineColor}`,outline:0},[`${n}-prefix`]:{color:t.color}}}},Lx=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},jx(e,t))}),fB=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},jx(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),Lx(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),Lx(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:`${U(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),zx=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${U(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}}}},Bx=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},zx(e,t))}),mB=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},zx(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),Bx(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),Bx(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:`${U(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),pB=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",border:`${U(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:`${U(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}}}}),kx=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{borderWidth:`0 0 ${U(e.lineWidth)} 0`,borderStyle:`none none ${e.lineType} none`,borderColor:t.borderColor,background:e.selectorBg,borderRadius:0},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,outline:0},[`${n}-prefix`]:{color:t.color}}}},Fx=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},kx(e,t))}),vB=e=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},kx(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),Fx(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),Fx(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:`${U(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),gB=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},fB(e)),mB(e)),pB(e)),vB(e))}),hB=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"}}}},bB=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"}}}},yB=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:o}=e,i={[`${n}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}};return{[n]:Object.assign(Object.assign({},Ht(e)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},hB(e)),bB(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},So),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},So),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},Ya()),{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","&:before":{display:"block"},"&:hover":{color:e.colorIcon}},"@media(hover:none)":i,"&:hover":i}),[`${n}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}}}},CB=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},yB(e),uB(e),cB(e),oB(e),{[`${t}-rtl`]:{direction:"rtl"}},Qf(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},SB=Dt("Select",(e,t)=>{let{rootPrefixCls:n}=t;const r=xt(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[CB(r),gB(r)]},dB,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});function xB(e){let{suffixIcon:t,clearIcon:n,menuItemSelectedIcon:r,removeIcon:o,loading:i,multiple:a,hasFeedback:l,prefixCls:c,showSuffixIcon:u,feedbackIcon:d,showArrow:f,componentName:m}=e;process.env.NODE_ENV!=="production"&>(m).deprecated(!n,"clearIcon","allowClear={{ clearIcon: React.ReactNode }}");const p=n!=null?n:s.createElement(Do,null),h=C=>t===null&&!l&&!f?null:s.createElement(s.Fragment,null,u!==!1&&C,l&&d);let b=null;if(t!==void 0)b=h(t);else if(i)b=h(s.createElement(ti,{spin:!0}));else{const C=`${c}-suffix`;b=x=>{let{open:E,showSearch:S}=x;return h(E&&S?s.createElement(Ra,{className:C}):s.createElement(vs,{className:C}))}}let v=null;r!==void 0?v=r:a?v=s.createElement(ps,null):v=null;let y=null;return o!==void 0?y=o:y=s.createElement($r,null),{clearIcon:p,suffixIcon:b,itemIcon:v,removeIcon:y}}function EB(e,t){return t!==void 0?t:e!==null}var $B=globalThis&&globalThis.__rest||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 Hx="SECRET_COMBOBOX_MODE_DO_NOT_USE",Vx=(e,t)=>{var n,r,o,i,a;const{prefixCls:l,bordered:c,className:u,rootClassName:d,getPopupContainer:f,popupClassName:m,dropdownClassName:p,listHeight:h=256,placement:b,listItemHeight:v,size:y,disabled:C,notFoundContent:x,status:E,builtinPlacements:S,dropdownMatchSelectWidth:$,popupMatchSelectWidth:O,direction:I,style:w,allowClear:N,variant:_,dropdownStyle:P,transitionName:M,tagRender:D,maxCount:T,prefix:A,dropdownRender:R,popupRender:L,onDropdownVisibleChange:j,onOpenChange:z,styles:B,classNames:K}=e,W=$B(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:k,getPrefixCls:V,renderEmpty:Q,direction:J,virtual:Y,popupMatchSelectWidth:te,popupOverflow:oe}=s.useContext(Xe),{showSearch:X,style:F,styles:ee,className:Z,classNames:ne}=An("select"),[,re]=Hn(),se=v!=null?v:re==null?void 0:re.controlHeight,le=V("select",l),he=V(),fe=I!=null?I:J,{compactSize:ie,compactItemClassnames:ue}=Fi(le,fe),[de,me]=Ec("select",_,c),Ce=On(le),[Oe,Te,je]=SB(le,Ce),Ne=s.useMemo(()=>{const{mode:Fe}=e;if(Fe!=="combobox")return Fe===Hx?"combobox":Fe},[e.mode]),Ie=Ne==="multiple"||Ne==="tags",xe=EB(e.suffixIcon,e.showArrow),be=(n=O!=null?O:$)!==null&&n!==void 0?n:te,Ee=((r=B==null?void 0:B.popup)===null||r===void 0?void 0:r.root)||((o=ee.popup)===null||o===void 0?void 0:o.root)||P,$e=L||R,_e=z||j,{status:ve,hasFeedback:Se,isFormItemInput:Je,feedbackIcon:it}=s.useContext(Xn),Nt=Sc(ve,E);let Tt;x!==void 0?Tt=x:Ne==="combobox"?Tt=null:Tt=(Q==null?void 0:Q("Select"))||s.createElement(Ax,{componentName:"Select"});const{suffixIcon:Gt,itemIcon:st,removeIcon:Pt,clearIcon:pt}=xB(Object.assign(Object.assign({},W),{multiple:Ie,hasFeedback:Se,feedbackIcon:it,showSuffixIcon:xe,prefixCls:le,componentName:"Select"})),et=N===!0?{clearIcon:pt}:N,ke=tn(W,["suffixIcon","itemIcon"]),Me=G(((i=K==null?void 0:K.popup)===null||i===void 0?void 0:i.root)||((a=ne==null?void 0:ne.popup)===null||a===void 0?void 0:a.root)||m||p,{[`${le}-dropdown-${fe}`]:fe==="rtl"},d,ne.root,K==null?void 0:K.root,je,Ce,Te),Pe=qn(Fe=>{var Ve;return(Ve=y!=null?y:ie)!==null&&Ve!==void 0?Ve:Fe}),at=s.useContext(oo),ct=C!=null?C:at,Le=G({[`${le}-lg`]:Pe==="large",[`${le}-sm`]:Pe==="small",[`${le}-rtl`]:fe==="rtl",[`${le}-${de}`]:me,[`${le}-in-form-item`]:Je},Cc(le,Nt,Se),ue,Z,u,ne.root,K==null?void 0:K.root,d,je,Ce,Te),we=s.useMemo(()=>b!==void 0?b:fe==="rtl"?"bottomRight":"bottomLeft",[b,fe]);if(process.env.NODE_ENV!=="production"){const Fe=gt("Select");Object.entries({dropdownMatchSelectWidth:"popupMatchSelectWidth",dropdownStyle:"styles.popup.root",dropdownClassName:"classNames.popup.root",popupClassName:"classNames.popup.root",dropdownRender:"popupRender",onDropdownVisibleChange:"onOpenChange",bordered:"variant"}).forEach(Ze=>{let[Ot,Ae]=Ze;Fe.deprecated(!(Ot in e),Ot,Ae)}),process.env.NODE_ENV!=="production"&&Fe(!("showArrow"in e),"deprecated","`showArrow` is deprecated which will be removed in next major version. It will be a default behavior, you can hide it by setting `suffixIcon` to null."),process.env.NODE_ENV!=="production"&&Fe(!(typeof T!="undefined"&&!Ie),"usage","`maxCount` only works with mode `multiple` or `tags`")}const[ze]=ki("SelectLike",Ee==null?void 0:Ee.zIndex);return Oe(s.createElement(Hm,Object.assign({ref:t,virtual:Y,showSearch:X},ke,{style:Object.assign(Object.assign(Object.assign(Object.assign({},ee.root),B==null?void 0:B.root),F),w),dropdownMatchSelectWidth:be,transitionName:ao(he,"slide-up",M),builtinPlacements:rB(S,oe),listHeight:h,listItemHeight:se,mode:Ne,prefixCls:le,placement:we,direction:fe,prefix:A,suffixIcon:Gt,menuItemSelectedIcon:st,removeIcon:Pt,allowClear:et,notFoundContent:Tt,className:Le,getPopupContainer:f||k,dropdownClassName:Me,disabled:ct,dropdownStyle:Object.assign(Object.assign({},Ee),{zIndex:ze}),maxCount:Ie?T:void 0,tagRender:Ie?D:void 0,dropdownRender:$e,onDropdownVisibleChange:_e})))};process.env.NODE_ENV!=="production"&&(Vx.displayName="Select");const vi=s.forwardRef(Vx),wB=US(vi,"dropdownAlign");vi.SECRET_COMBOBOX_MODE_DO_NOT_USE=Hx,vi.Option=Lm,vi.OptGroup=jm,vi._InternalPanelDoNotUseOrYouWillBeFired=wB,process.env.NODE_ENV!=="production"&&(vi.displayName="Select");const Cn=vi,Wx=(e,t)=>{typeof(e==null?void 0:e.addEventListener)!="undefined"?e.addEventListener("change",t):typeof(e==null?void 0:e.addListener)!="undefined"&&e.addListener(t)},Kx=(e,t)=>{typeof(e==null?void 0:e.removeEventListener)!="undefined"?e.removeEventListener("change",t):typeof(e==null?void 0:e.removeListener)!="undefined"&&e.removeListener(t)},Zi=["xxl","xl","lg","md","sm","xs"],OB=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)`}),NB=e=>{const t=e,n=[].concat(Zi).reverse();return n.forEach((r,o)=>{const i=r.toUpperCase(),a=`screen${i}Min`,l=`screen${i}`;if(!(t[a]<=t[l]))throw new Error(`${a}<=${l} fails : !(${t[a]}<=${t[l]})`);if(o<n.length-1){const c=`screen${i}Max`;if(!(t[l]<=t[c]))throw new Error(`${l}<=${c} fails : !(${t[l]}<=${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},IB=()=>{const[,e]=Hn(),t=OB(NB(e));return g.useMemo(()=>{const n=new Map;let r=-1,o={};return{responsiveMap:t,matchHandlers:{},dispatch(i){return o=i,n.forEach(a=>a(o)),n.size>=1},subscribe(i){return n.size||this.register(),r+=1,n.set(r,i),i(o),r},unsubscribe(i){n.delete(i),n.size||this.unregister()},register(){Object.entries(t).forEach(i=>{let[a,l]=i;const c=d=>{let{matches:f}=d;this.dispatch(Object.assign(Object.assign({},o),{[a]:f}))},u=window.matchMedia(l);Wx(u,c),this.matchHandlers[l]={mql:u,listener:c},c(u)})},unregister(){Object.values(t).forEach(i=>{const a=this.matchHandlers[i];Kx(a==null?void 0:a.mql,a==null?void 0:a.listener)}),n.clear()}}},[e])};function qx(){const[,e]=s.useReducer(t=>t+1,0);return e}function vl(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=g.useRef(t),r=qx(),o=IB();return wt(()=>{const i=o.subscribe(a=>{n.current=a,e&&r()});return()=>o.unsubscribe(i)},[]),n.current}const Km=s.createContext({}),_B=e=>{const{antCls:t,componentCls:n,iconCls:r,avatarBg:o,avatarColor:i,containerSize:a,containerSizeLG:l,containerSizeSM:c,textFontSize:u,textFontSizeLG:d,textFontSizeSM:f,borderRadius:m,borderRadiusLG:p,borderRadiusSM:h,lineWidth:b,lineType:v}=e,y=(C,x,E)=>({width:C,height:C,borderRadius:"50%",[`&${n}-square`]:{borderRadius:E},[`&${n}-icon`]:{fontSize:x,[`> ${r}`]:{margin:0}}});return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},Ht(e)),{position:"relative",display:"inline-flex",justifyContent:"center",alignItems:"center",overflow:"hidden",color:i,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:o,border:`${U(b)} ${v} transparent`,"&-image":{background:"transparent"},[`${t}-image-img`]:{display:"block"}}),y(a,u,m)),{"&-lg":Object.assign({},y(l,d,p)),"&-sm":Object.assign({},y(c,f,h)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}},TB=e=>{const{componentCls:t,groupBorderColor:n,groupOverlapping:r,groupSpace:o}=e;return{[`${t}-group`]:{display:"inline-flex",[t]:{borderColor:n},"> *:not(:first-child)":{marginInlineStart:r}},[`${t}-group-popover`]:{[`${t} + ${t}`]:{marginInlineStart:o}}}},Ux=Dt("Avatar",e=>{const{colorTextLightSolid:t,colorTextPlaceholder:n}=e,r=xt(e,{avatarBg:n,avatarColor:t});return[_B(r),TB(r)]},e=>{const{controlHeight:t,controlHeightLG:n,controlHeightSM:r,fontSize:o,fontSizeLG:i,fontSizeXL:a,fontSizeHeading3:l,marginXS:c,marginXXS:u,colorBorderBg:d}=e;return{containerSize:t,containerSizeLG:n,containerSizeSM:r,textFontSize:Math.round((i+a)/2),textFontSizeLG:l,textFontSizeSM:o,groupSpace:u,groupOverlapping:-c,groupBorderColor:d}});var PB=globalThis&&globalThis.__rest||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 Gx=s.forwardRef((e,t)=>{const{prefixCls:n,shape:r,size:o,src:i,srcSet:a,icon:l,className:c,rootClassName:u,style:d,alt:f,draggable:m,children:p,crossOrigin:h,gap:b=4,onError:v}=e,y=PB(e,["prefixCls","shape","size","src","srcSet","icon","className","rootClassName","style","alt","draggable","children","crossOrigin","gap","onError"]),[C,x]=s.useState(1),[E,S]=s.useState(!1),[$,O]=s.useState(!0),I=s.useRef(null),w=s.useRef(null),N=Wn(t,I),{getPrefixCls:_,avatar:P}=s.useContext(Xe),M=s.useContext(Km),D=()=>{if(!w.current||!I.current)return;const X=w.current.offsetWidth,F=I.current.offsetWidth;X!==0&&F!==0&&b*2<F&&x(F-b*2<X?(F-b*2)/X:1)};s.useEffect(()=>{S(!0)},[]),s.useEffect(()=>{O(!0),x(1)},[i]),s.useEffect(D,[b]);const T=()=>{(v==null?void 0:v())!==!1&&O(!1)},A=qn(X=>{var F,ee;return(ee=(F=o!=null?o:M==null?void 0:M.size)!==null&&F!==void 0?F:X)!==null&&ee!==void 0?ee:"default"}),R=Object.keys(typeof A=="object"?A||{}:{}).some(X=>["xs","sm","md","lg","xl","xxl"].includes(X)),L=vl(R),j=s.useMemo(()=>{if(typeof A!="object")return{};const X=Zi.find(ee=>L[ee]),F=A[X];return F?{width:F,height:F,fontSize:F&&(l||p)?F/2:18}:{}},[L,A]);if(process.env.NODE_ENV!=="production"){const X=gt("Avatar");process.env.NODE_ENV!=="production"&&X(!(typeof l=="string"&&l.length>2),"breaking",`\`icon\` is using ReactNode instead of string naming in v4. Please check \`${l}\` at https://ant.design/components/icon`)}const z=_("avatar",n),B=On(z),[K,W,k]=Ux(z,B),V=G({[`${z}-lg`]:A==="large",[`${z}-sm`]:A==="small"}),Q=s.isValidElement(i),J=r||(M==null?void 0:M.shape)||"circle",Y=G(z,V,P==null?void 0:P.className,`${z}-${J}`,{[`${z}-image`]:Q||i&&$,[`${z}-icon`]:!!l},k,B,c,u,W),te=typeof A=="number"?{width:A,height:A,fontSize:l?A/2:18}:{};let oe;if(typeof i=="string"&&$)oe=s.createElement("img",{src:i,draggable:m,srcSet:a,onError:T,alt:f,crossOrigin:h});else if(Q)oe=i;else if(l)oe=l;else if(E||C!==1){const X=`scale(${C})`,F={msTransform:X,WebkitTransform:X,transform:X};oe=s.createElement(Kn,{onResize:D},s.createElement("span",{className:`${z}-string`,ref:w,style:Object.assign({},F)},p))}else oe=s.createElement("span",{className:`${z}-string`,style:{opacity:0},ref:w},p);return K(s.createElement("span",Object.assign({},y,{style:Object.assign(Object.assign(Object.assign(Object.assign({},te),j),P==null?void 0:P.style),d),className:Y,ref:N}),oe))});process.env.NODE_ENV!=="production"&&(Gx.displayName="Avatar");const Xx=Gx,$c=e=>e?typeof e=="function"?e():e:null;function qm(e){var t=e.children,n=e.prefixCls,r=e.id,o=e.overlayInnerStyle,i=e.bodyClassName,a=e.className,l=e.style;return s.createElement("div",{className:G("".concat(n,"-content"),a),style:l},s.createElement("div",{className:G("".concat(n,"-inner"),i),id:r,role:"tooltip",style:o},typeof t=="function"?t():t))}var ea={shiftX:64,adjustY:1},ta={adjustX:1,shiftY:!0},Tr=[0,0],MB={left:{points:["cr","cl"],overflow:ta,offset:[-4,0],targetOffset:Tr},right:{points:["cl","cr"],overflow:ta,offset:[4,0],targetOffset:Tr},top:{points:["bc","tc"],overflow:ea,offset:[0,-4],targetOffset:Tr},bottom:{points:["tc","bc"],overflow:ea,offset:[0,4],targetOffset:Tr},topLeft:{points:["bl","tl"],overflow:ea,offset:[0,-4],targetOffset:Tr},leftTop:{points:["tr","tl"],overflow:ta,offset:[-4,0],targetOffset:Tr},topRight:{points:["br","tr"],overflow:ea,offset:[0,-4],targetOffset:Tr},rightTop:{points:["tl","tr"],overflow:ta,offset:[4,0],targetOffset:Tr},bottomRight:{points:["tr","br"],overflow:ea,offset:[0,4],targetOffset:Tr},rightBottom:{points:["bl","br"],overflow:ta,offset:[4,0],targetOffset:Tr},bottomLeft:{points:["tl","bl"],overflow:ea,offset:[0,4],targetOffset:Tr},leftBottom:{points:["br","bl"],overflow:ta,offset:[-4,0],targetOffset:Tr}},DB=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],AB=function(t,n){var r=t.overlayClassName,o=t.trigger,i=o===void 0?["hover"]:o,a=t.mouseEnterDelay,l=a===void 0?0:a,c=t.mouseLeaveDelay,u=c===void 0?.1:c,d=t.overlayStyle,f=t.prefixCls,m=f===void 0?"rc-tooltip":f,p=t.children,h=t.onVisibleChange,b=t.afterVisibleChange,v=t.transitionName,y=t.animation,C=t.motion,x=t.placement,E=x===void 0?"right":x,S=t.align,$=S===void 0?{}:S,O=t.destroyTooltipOnHide,I=O===void 0?!1:O,w=t.defaultVisible,N=t.getTooltipContainer,_=t.overlayInnerStyle;t.arrowContent;var P=t.overlay,M=t.id,D=t.showArrow,T=D===void 0?!0:D,A=t.classNames,R=t.styles,L=tt(t,DB),j=uc(M),z=g.useRef(null);g.useImperativeHandle(n,function(){return z.current});var B=q({},L);"visible"in t&&(B.popupVisible=t.visible);var K=function(){return s.createElement(qm,{key:"content",prefixCls:m,id:j,bodyClassName:A==null?void 0:A.body,overlayInnerStyle:q(q({},_),R==null?void 0:R.body)},P)},W=function(){var V=s.Children.only(p),Q=(V==null?void 0:V.props)||{},J=q(q({},Q),{},{"aria-describedby":P?j:null});return s.cloneElement(p,J)};return s.createElement(hc,ce({popupClassName:G(r,A==null?void 0:A.root),prefixCls:m,popup:K,action:i,builtinPlacements:MB,popupPlacement:E,ref:z,popupAlign:$,getPopupContainer:N,onPopupVisibleChange:h,afterPopupVisibleChange:b,popupTransitionName:v,popupAnimation:y,popupMotion:C,defaultPopupVisible:w,autoDestroy:I,mouseLeaveDelay:u,popupStyle:q(q({},d),R==null?void 0:R.root),mouseEnterDelay:l,arrow:T},B),W())};const RB=g.forwardRef(AB);function Um(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,o=t/2,i=0,a=o,l=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,p=2*o-l,h=c,b=2*o-i,v=a,y=o*Math.sqrt(2)+r*(Math.sqrt(2)-2),C=r*(Math.sqrt(2)-1),x=`polygon(${C}px 100%, 50% ${C}px, ${2*o-C}px 100%, ${C}px 100%)`,E=`path('M ${i} ${a} A ${r} ${r} 0 0 0 ${l} ${c} L ${u} ${d} A ${n} ${n} 0 0 1 ${f} ${m} L ${p} ${h} A ${r} ${r} 0 0 0 ${b} ${v} Z')`;return{arrowShadowWidth:y,arrowPath:E,arrowPolygon:x}}const jB=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:o,arrowPath:i,arrowShadowWidth:a,borderRadiusXS:l,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,i]},content:'""'},"&::after":{content:'""',position:"absolute",width:a,height:a,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${U(l)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},Qx=8;function wc(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?Qx:r}}function Oc(e,t){return e?t:{}}function Gm(e,t,n){const{componentCls:r,boxShadowPopoverArrow:o,arrowOffsetVertical:i,arrowOffsetHorizontal:a}=e,{arrowDistance:l=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"},jB(e,t,o)),{"&:before":{background:t}})]},Oc(!!c.top,{[[`&-placement-top > ${r}-arrow`,`&-placement-topLeft > ${r}-arrow`,`&-placement-topRight > ${r}-arrow`].join(",")]:{bottom:l,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},"&-placement-topLeft":{"--arrow-offset-horizontal":a,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${U(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),Oc(!!c.bottom,{[[`&-placement-bottom > ${r}-arrow`,`&-placement-bottomLeft > ${r}-arrow`,`&-placement-bottomRight > ${r}-arrow`].join(",")]:{top:l,transform:"translateY(-100%)"},[`&-placement-bottom > ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},"&-placement-bottomLeft":{"--arrow-offset-horizontal":a,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${U(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),Oc(!!c.left,{[[`&-placement-left > ${r}-arrow`,`&-placement-leftTop > ${r}-arrow`,`&-placement-leftBottom > ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:l},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop > ${r}-arrow`]:{top:i},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:i}})),Oc(!!c.right,{[[`&-placement-right > ${r}-arrow`,`&-placement-rightTop > ${r}-arrow`,`&-placement-rightBottom > ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:l},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right > ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop > ${r}-arrow`]:{top:i},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:i}}))}}function LB(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const o=r&&typeof r=="object"?r:{},i={};switch(e){case"top":case"bottom":i.shiftX=t.arrowOffsetHorizontal*2+n,i.shiftY=!0,i.adjustY=!0;break;case"left":case"right":i.shiftY=t.arrowOffsetVertical*2+n,i.shiftX=!0,i.adjustX=!0;break}const a=Object.assign(Object.assign({},i),o);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}const Yx={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"]}},zB={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"]}},BB=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function Jx(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:i,visibleFirst:a}=e,l=t/2,c={};return Object.keys(Yx).forEach(u=>{const d=r&&zB[u]||Yx[u],f=Object.assign(Object.assign({},d),{offset:[0,0],dynamicInset:!0});switch(c[u]=f,BB.has(u)&&(f.autoArrow=!1),u){case"top":case"topLeft":case"topRight":f.offset[1]=-l-o;break;case"bottom":case"bottomLeft":case"bottomRight":f.offset[1]=l+o;break;case"left":case"leftTop":case"leftBottom":f.offset[0]=-l-o;break;case"right":case"rightTop":case"rightBottom":f.offset[0]=l+o;break}const m=wc({contentRadius:i,limitVerticalRadius:!0});if(r)switch(u){case"topLeft":case"bottomLeft":f.offset[0]=-m.arrowOffsetHorizontal-l;break;case"topRight":case"bottomRight":f.offset[0]=m.arrowOffsetHorizontal+l;break;case"leftTop":case"rightTop":f.offset[1]=-m.arrowOffsetHorizontal*2+l;break;case"leftBottom":case"rightBottom":f.offset[1]=m.arrowOffsetHorizontal*2-l;break}f.overflow=LB(u,m,t,n),a&&(f.htmlRegion="visibleFirst")}),c}const kB=e=>{const{calc:t,componentCls:n,tooltipMaxWidth:r,tooltipColor:o,tooltipBg:i,tooltipBorderRadius:a,zIndexPopup:l,controlHeight:c,boxShadowSecondary:u,paddingSM:d,paddingXS:f,arrowOffsetHorizontal:m,sizePopupArrow:p}=e,h=t(a).add(p).add(m).equal(),b=t(a).mul(2).add(p).equal();return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},Ht(e)),{position:"absolute",zIndex:l,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":i,[`${n}-inner`]:{minWidth:b,minHeight:c,padding:`${U(e.calc(d).div(2).equal())} ${U(f)}`,color:o,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:i,borderRadius:a,boxShadow:u,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:h},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${n}-inner`]:{borderRadius:e.min(a,Qx)}},[`${n}-content`]:{position:"relative"}}),u0(e,(v,y)=>{let{darkColor:C}=y;return{[`&${n}-${v}`]:{[`${n}-inner`]:{backgroundColor:C},[`${n}-arrow`]:{"--antd-arrow-background-color":C}}}})),{"&-rtl":{direction:"rtl"}})},Gm(e,"var(--antd-arrow-background-color)"),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},FB=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},wc({contentRadius:e.borderRadius,limitVerticalRadius:!0})),Um(xt(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),Zx=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return Dt("Tooltip",r=>{const{borderRadius:o,colorTextLightSolid:i,colorBgSpotlight:a}=r,l=xt(r,{tooltipMaxWidth:250,tooltipColor:i,tooltipBorderRadius:o,tooltipBg:a});return[kB(l),nl(r,"zoom-big-fast")]},FB,{resetStyle:!1,injectStyle:t})(e)},HB=Bo.map(e=>`${e}-inverse`),VB=["success","processing","error","default","warning"];function eE(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[].concat(ge(HB),ge(Bo)).includes(e):Bo.includes(e)}function WB(e){return VB.includes(e)}function tE(e,t){const n=eE(t),r=G({[`${e}-${t}`]:t&&n}),o={},i={};return t&&!n&&(o.background=t,i["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:i}}const KB=e=>{const{prefixCls:t,className:n,placement:r="top",title:o,color:i,overlayInnerStyle:a}=e,{getPrefixCls:l}=s.useContext(Xe),c=l("tooltip",t),[u,d,f]=Zx(c),m=tE(c,i),p=m.arrowStyle,h=Object.assign(Object.assign({},a),m.overlayStyle),b=G(d,f,c,`${c}-pure`,`${c}-placement-${r}`,n,m.className);return u(s.createElement("div",{className:b,style:p},s.createElement("div",{className:`${c}-arrow`}),s.createElement(qm,Object.assign({},e,{className:d,prefixCls:c,overlayInnerStyle:h}),o)))};var qB=globalThis&&globalThis.__rest||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=s.forwardRef((e,t)=>{var n,r;const{prefixCls:o,openClassName:i,getTooltipContainer:a,color:l,overlayInnerStyle:c,children:u,afterOpenChange:d,afterVisibleChange:f,destroyTooltipOnHide:m,destroyOnHidden:p,arrow:h=!0,title:b,overlay:v,builtinPlacements:y,arrowPointAtCenter:C=!1,autoAdjustOverflow:x=!0,motion:E,getPopupContainer:S,placement:$="top",mouseEnterDelay:O=.1,mouseLeaveDelay:I=.1,overlayStyle:w,rootClassName:N,overlayClassName:_,styles:P,classNames:M}=e,D=qB(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"]),T=!!h,[,A]=Hn(),{getPopupContainer:R,getPrefixCls:L,direction:j,className:z,style:B,classNames:K,styles:W}=An("tooltip"),k=gt("Tooltip"),V=s.useRef(null),Q=()=>{var xe;(xe=V.current)===null||xe===void 0||xe.forceAlign()};s.useImperativeHandle(t,()=>{var xe,be;return{forceAlign:Q,forcePopupAlign:()=>{k.deprecated(!1,"forcePopupAlign","forceAlign"),Q()},nativeElement:(xe=V.current)===null||xe===void 0?void 0:xe.nativeElement,popupElement:(be=V.current)===null||be===void 0?void 0:be.popupElement}}),process.env.NODE_ENV!=="production"&&([["visible","open"],["defaultVisible","defaultOpen"],["onVisibleChange","onOpenChange"],["afterVisibleChange","afterOpenChange"],["destroyTooltipOnHide","destroyOnHidden"],["arrowPointAtCenter","arrow={{ pointAtCenter: true }}"],["overlayStyle","styles={{ root: {} }}"],["overlayInnerStyle","styles={{ body: {} }}"],["overlayClassName",'classNames={{ root: "" }}']].forEach(xe=>{let[be,Ee]=xe;k.deprecated(!(be in e),be,Ee)}),process.env.NODE_ENV!=="production"&&k(!m||typeof m=="boolean","usage","`destroyTooltipOnHide` no need config `keepParent` anymore. Please use `boolean` value directly."),process.env.NODE_ENV!=="production"&&k(!h||typeof h=="boolean"||!("arrowPointAtCenter"in h),"deprecated","`arrowPointAtCenter` in `arrow` is deprecated. Please use `pointAtCenter` instead."));const[J,Y]=ln(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),te=!b&&!v&&b!==0,oe=xe=>{var be,Ee;Y(te?!1:xe),te||((be=e.onOpenChange)===null||be===void 0||be.call(e,xe),(Ee=e.onVisibleChange)===null||Ee===void 0||Ee.call(e,xe))},X=s.useMemo(()=>{var xe,be;let Ee=C;return typeof h=="object"&&(Ee=(be=(xe=h.pointAtCenter)!==null&&xe!==void 0?xe:h.arrowPointAtCenter)!==null&&be!==void 0?be:C),y||Jx({arrowPointAtCenter:Ee,autoAdjustOverflow:x,arrowWidth:T?A.sizePopupArrow:0,borderRadius:A.borderRadius,offset:A.marginXXS,visibleFirst:!0})},[C,h,y,A]),F=s.useMemo(()=>b===0?b:v||b||"",[v,b]),ee=s.createElement(Ui,{space:!0},typeof F=="function"?F():F),Z=L("tooltip",o),ne=L(),re=e["data-popover-inject"];let se=J;!("open"in e)&&!("visible"in e)&&te&&(se=!1);const le=s.isValidElement(u)&&!A0(u)?u:s.createElement("span",null,u),he=le.props,fe=!he.className||typeof he.className=="string"?G(he.className,i||`${Z}-open`):he.className,[ie,ue,de]=Zx(Z,!re),me=tE(Z,l),Ce=me.arrowStyle,Oe=G(_,{[`${Z}-rtl`]:j==="rtl"},me.className,N,ue,de,z,K.root,M==null?void 0:M.root),Te=G(K.body,M==null?void 0:M.body),[je,Ne]=ki("Tooltip",D.zIndex),Ie=s.createElement(RB,Object.assign({},D,{zIndex:je,showArrow:T,placement:$,mouseEnterDelay:O,mouseLeaveDelay:I,prefixCls:Z,classNames:{root:Oe,body:Te},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ce),W.root),B),w),P==null?void 0:P.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},W.body),c),P==null?void 0:P.body),me.overlayStyle)},getTooltipContainer:S||a||R,ref:V,builtinPlacements:X,overlay:ee,visible:se,onVisibleChange:oe,afterVisibleChange:d!=null?d:f,arrowContent:s.createElement("span",{className:`${Z}-arrow-content`}),motion:{motionName:ao(ne,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:p!=null?p:!!m}),se?Gn(le,{className:fe}):le);return ie(s.createElement(Ja.Provider,{value:Ne},Ie))});process.env.NODE_ENV!=="production"&&(Xm.displayName="Tooltip"),Xm._InternalPanelDoNotUseOrYouWillBeFired=KB;const co=Xm,UB=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:o,innerPadding:i,boxShadowSecondary:a,colorTextHeading:l,borderRadiusLG:c,zIndexPopup:u,titleMarginBottom:d,colorBgElevated:f,popoverBg:m,titleBorderBottom:p,innerContentPadding:h,titlePadding:b}=e;return[{[t]:Object.assign(Object.assign({},Ht(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:u,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"--antd-arrow-background-color":f,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:m,backgroundClip:"padding-box",borderRadius:c,boxShadow:a,padding:i},[`${t}-title`]:{minWidth:r,marginBottom:d,color:l,fontWeight:o,borderBottom:p,padding:b},[`${t}-inner-content`]:{color:n,padding:h}})},Gm(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},GB=e=>{const{componentCls:t}=e;return{[t]:Bo.map(n=>{const r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},nE=Dt("Popover",e=>{const{colorBgElevated:t,colorText:n}=e,r=xt(e,{popoverBg:t,popoverColor:n});return[UB(r),GB(r),nl(r,"zoom-big")]},e=>{const{lineWidth:t,controlHeight:n,fontHeight:r,padding:o,wireframe:i,zIndexPopupBase:a,borderRadiusLG:l,marginXS:c,lineType:u,colorSplit:d,paddingSM:f}=e,m=n-r,p=m/2,h=m/2-t,b=o;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:a+30},Um(e)),wc({contentRadius:l,limitVerticalRadius:!0})),{innerPadding:i?0:12,titleMarginBottom:i?0:c,titlePadding:i?`${p}px ${b}px ${h}px`:0,titleBorderBottom:i?`${t}px ${u} ${d}`:"none",innerContentPadding:i?`${f}px ${b}px`:0})},{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var XB=globalThis&&globalThis.__rest||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 rE=e=>{let{title:t,content:n,prefixCls:r}=e;return!t&&!n?null:s.createElement(s.Fragment,null,t&&s.createElement("div",{className:`${r}-title`},t),n&&s.createElement("div",{className:`${r}-inner-content`},n))},QB=e=>{const{hashId:t,prefixCls:n,className:r,style:o,placement:i="top",title:a,content:l,children:c}=e,u=$c(a),d=$c(l),f=G(t,n,`${n}-pure`,`${n}-placement-${i}`,r);return s.createElement("div",{className:f,style:o},s.createElement("div",{className:`${n}-arrow`}),s.createElement(qm,Object.assign({},e,{className:t,prefixCls:n}),c||s.createElement(rE,{prefixCls:n,title:u,content:d})))},YB=e=>{const{prefixCls:t,className:n}=e,r=XB(e,["prefixCls","className"]),{getPrefixCls:o}=s.useContext(Xe),i=o("popover",t),[a,l,c]=nE(i);return a(s.createElement(QB,Object.assign({},r,{prefixCls:i,hashId:l,className:G(n,c)})))};var JB=globalThis&&globalThis.__rest||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 Qm=s.forwardRef((e,t)=>{var n,r;const{prefixCls:o,title:i,content:a,overlayClassName:l,placement:c="top",trigger:u="hover",children:d,mouseEnterDelay:f=.1,mouseLeaveDelay:m=.1,onOpenChange:p,overlayStyle:h={},styles:b,classNames:v}=e,y=JB(e,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle","styles","classNames"]),{getPrefixCls:C,className:x,style:E,classNames:S,styles:$}=An("popover"),O=C("popover",o),[I,w,N]=nE(O),_=C(),P=G(l,w,N,x,S.root,v==null?void 0:v.root),M=G(S.body,v==null?void 0:v.body),[D,T]=ln(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),A=(B,K)=>{T(B,!0),p==null||p(B,K)},R=B=>{B.keyCode===ye.ESC&&A(!1,B)},L=B=>{A(B)},j=$c(i),z=$c(a);return I(s.createElement(co,Object.assign({placement:c,trigger:u,mouseEnterDelay:f,mouseLeaveDelay:m},y,{prefixCls:O,classNames:{root:P,body:M},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},$.root),E),h),b==null?void 0:b.root),body:Object.assign(Object.assign({},$.body),b==null?void 0:b.body)},ref:t,open:D,onOpenChange:L,overlay:j||z?s.createElement(rE,{prefixCls:O,title:j,content:z}):null,transitionName:ao(_,"zoom-big",y.transitionName),"data-popover-inject":!0}),Gn(d,{onKeyDown:B=>{var K,W;s.isValidElement(d)&&((W=d==null?void 0:(K=d.props).onKeyDown)===null||W===void 0||W.call(K,B)),R(B)}})))});Qm._InternalPanelDoNotUseOrYouWillBeFired=YB,process.env.NODE_ENV!=="production"&&(Qm.displayName="Popover");const ZB=Qm,oE=e=>{const{size:t,shape:n}=s.useContext(Km),r=s.useMemo(()=>({size:e.size||t,shape:e.shape||n}),[e.size,e.shape,t,n]);return s.createElement(Km.Provider,{value:r},e.children)},e8=e=>{var t,n,r,o;const{getPrefixCls:i,direction:a}=s.useContext(Xe),{prefixCls:l,className:c,rootClassName:u,style:d,maxCount:f,maxStyle:m,size:p,shape:h,maxPopoverPlacement:b,maxPopoverTrigger:v,children:y,max:C}=e;if(process.env.NODE_ENV!=="production"){const M=gt("Avatar.Group");[["maxCount","max={{ count: number }}"],["maxStyle","max={{ style: CSSProperties }}"],["maxPopoverPlacement","max={{ popover: PopoverProps }}"],["maxPopoverTrigger","max={{ popover: PopoverProps }}"]].forEach(D=>{let[T,A]=D;M.deprecated(!(T in e),T,A)})}const x=i("avatar",l),E=`${x}-group`,S=On(x),[$,O,I]=Ux(x,S),w=G(E,{[`${E}-rtl`]:a==="rtl"},I,S,c,u,O),N=Tn(y).map((M,D)=>Gn(M,{key:`avatar-key-${D}`})),_=(C==null?void 0:C.count)||f,P=N.length;if(_&&_<P){const M=N.slice(0,_),D=N.slice(_,P),T=(C==null?void 0:C.style)||m,A=((t=C==null?void 0:C.popover)===null||t===void 0?void 0:t.trigger)||v||"hover",R=((n=C==null?void 0:C.popover)===null||n===void 0?void 0:n.placement)||b||"top",L=Object.assign(Object.assign({content:D},C==null?void 0:C.popover),{classNames:{root:G(`${E}-popover`,(o=(r=C==null?void 0:C.popover)===null||r===void 0?void 0:r.classNames)===null||o===void 0?void 0:o.root)},placement:R,trigger:A});return M.push(s.createElement(ZB,Object.assign({key:"avatar-popover-key",destroyOnHidden:!0},L),s.createElement(Xx,{style:T},`+${P-_}`))),$(s.createElement(oE,{shape:h,size:p},s.createElement("div",{className:w,style:d},M)))}return $(s.createElement(oE,{shape:h,size:p},s.createElement("div",{className:w,style:d},N)))},iE=Xx;iE.Group=e8;const Ym=iE;var t8=ye.ESC,n8=ye.TAB;function r8(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,o=e.autoFocus,i=e.overlayRef,a=s.useRef(!1),l=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=i.current)!==null&&f!==void 0&&f.focus?(i.current.focus(),a.current=!0,!0):!1},u=function(f){switch(f.keyCode){case t8:l();break;case n8:{var m=!1;a.current||(m=c()),m?f.preventDefault():l();break}}};s.useEffect(function(){return t?(window.addEventListener("keydown",u),o&&Rt(c,3),function(){window.removeEventListener("keydown",u),a.current=!1}):function(){a.current=!1}},[t])}var o8=g.forwardRef(function(e,t){var n=e.overlay,r=e.arrow,o=e.prefixCls,i=g.useMemo(function(){var l;return typeof n=="function"?l=n():l=n,l},[n]),a=Wn(t,Ao(i));return g.createElement(g.Fragment,null,r&&g.createElement("div",{className:"".concat(o,"-arrow")}),g.cloneElement(i,{ref:Rr(i)?a:void 0}))}),na={adjustX:1,adjustY:1},ra=[0,0],i8={topLeft:{points:["bl","tl"],overflow:na,offset:[0,-4],targetOffset:ra},top:{points:["bc","tc"],overflow:na,offset:[0,-4],targetOffset:ra},topRight:{points:["br","tr"],overflow:na,offset:[0,-4],targetOffset:ra},bottomLeft:{points:["tl","bl"],overflow:na,offset:[0,4],targetOffset:ra},bottom:{points:["tc","bc"],overflow:na,offset:[0,4],targetOffset:ra},bottomRight:{points:["tr","br"],overflow:na,offset:[0,4],targetOffset:ra}},a8=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function l8(e,t){var n,r=e.arrow,o=r===void 0?!1:r,i=e.prefixCls,a=i===void 0?"rc-dropdown":i,l=e.transitionName,c=e.animation,u=e.align,d=e.placement,f=d===void 0?"bottomLeft":d,m=e.placements,p=m===void 0?i8:m,h=e.getPopupContainer,b=e.showAction,v=e.hideAction,y=e.overlayClassName,C=e.overlayStyle,x=e.visible,E=e.trigger,S=E===void 0?["hover"]:E,$=e.autoFocus,O=e.overlay,I=e.children,w=e.onVisibleChange,N=tt(e,a8),_=g.useState(),P=ae(_,2),M=P[0],D=P[1],T="visible"in e?x:M,A=g.useRef(null),R=g.useRef(null),L=g.useRef(null);g.useImperativeHandle(t,function(){return A.current});var j=function(Y){D(Y),w==null||w(Y)};r8({visible:T,triggerRef:L,onVisibleChange:j,autoFocus:$,overlayRef:R});var z=function(Y){var te=e.onOverlayClick;D(!1),te&&te(Y)},B=function(){return g.createElement(o8,{ref:R,overlay:O,prefixCls:a,arrow:o})},K=function(){return typeof O=="function"?B:B()},W=function(){var Y=e.minOverlayWidthMatchTrigger,te=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?Y:!te},k=function(){var Y=e.openClassName;return Y!==void 0?Y:"".concat(a,"-open")},V=g.cloneElement(I,{className:G((n=I.props)===null||n===void 0?void 0:n.className,T&&k()),ref:Rr(I)?Wn(L,Ao(I)):void 0}),Q=v;return!Q&&S.indexOf("contextMenu")!==-1&&(Q=["click"]),g.createElement(hc,ce({builtinPlacements:p},N,{prefixCls:a,ref:A,popupClassName:G(y,H({},"".concat(a,"-show-arrow"),o)),popupStyle:C,action:S,showAction:b,hideAction:Q,popupPlacement:f,popupAlign:u,popupTransitionName:l,popupAnimation:c,popupVisible:T,stretch:W()?"minWidth":"",popup:K(),onPopupVisibleChange:j,onPopupClick:z,getPopupContainer:h}),V)}const aE=g.forwardRef(l8),s8=e=>typeof e!="object"&&typeof e!="function"||e===null;var lE=s.createContext(null);function sE(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function cE(e){var t=s.useContext(lE);return sE(t,e)}var c8=["children","locked"],Fr=s.createContext(null);function u8(e,t){var n=q({},e);return Object.keys(t).forEach(function(r){var o=t[r];o!==void 0&&(n[r]=o)}),n}function gl(e){var t=e.children,n=e.locked,r=tt(e,c8),o=s.useContext(Fr),i=ni(function(){return u8(o,r)},[o,r],function(a,l){return!n&&(a[0]!==l[0]||!eo(a[1],l[1],!0))});return s.createElement(Fr.Provider,{value:i},t)}var d8=[],uE=s.createContext(null);function Nc(){return s.useContext(uE)}var dE=s.createContext(d8);function oa(e){var t=s.useContext(dE);return s.useMemo(function(){return e!==void 0?[].concat(ge(t),[e]):t},[t,e])}var fE=s.createContext(null),Jm=s.createContext({});function mE(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(el(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),i=Number(o),a=null;return o&&!Number.isNaN(i)?a=i:r&&a===null&&(a=0),r&&e.disabled&&(a=null),a!==null&&(a>=0||t&&a<0)}return!1}function f8(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=ge(e.querySelectorAll("*")).filter(function(r){return mE(r,t)});return mE(e,t)&&n.unshift(e),n}var Zm=ye.LEFT,ep=ye.RIGHT,tp=ye.UP,Ic=ye.DOWN,_c=ye.ENTER,pE=ye.ESC,hl=ye.HOME,bl=ye.END,vE=[tp,Ic,Zm,ep];function m8(e,t,n,r){var o,i="prev",a="next",l="children",c="parent";if(e==="inline"&&r===_c)return{inlineTrigger:!0};var u=H(H({},tp,i),Ic,a),d=H(H(H(H({},Zm,n?a:i),ep,n?i:a),Ic,l),_c,l),f=H(H(H(H(H(H({},tp,i),Ic,a),_c,l),pE,c),Zm,n?l:c),ep,n?c:l),m={inline:u,horizontal:d,vertical:f,inlineSub:u,horizontalSub:f,verticalSub:f},p=(o=m["".concat(e).concat(t?"":"Sub")])===null||o===void 0?void 0:o[r];switch(p){case i:return{offset:-1,sibling:!0};case a:return{offset:1,sibling:!0};case c:return{offset:-1,sibling:!1};case l:return{offset:1,sibling:!1};default:return null}}function p8(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function v8(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}function np(e,t){var n=f8(e,!0);return n.filter(function(r){return t.has(r)})}function gE(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var o=np(e,t),i=o.length,a=o.findIndex(function(l){return n===l});return r<0?a===-1?a=i-1:a-=1:r>0&&(a+=1),a=(a+i)%i,o[a]}var rp=function(t,n){var r=new Set,o=new Map,i=new Map;return t.forEach(function(a){var l=document.querySelector("[data-menu-id='".concat(sE(n,a),"']"));l&&(r.add(l),i.set(l,a),o.set(a,l))}),{elements:r,key2element:o,element2key:i}};function g8(e,t,n,r,o,i,a,l,c,u){var d=s.useRef(),f=s.useRef();f.current=t;var m=function(){Rt.cancel(d.current)};return s.useEffect(function(){return function(){m()}},[]),function(p){var h=p.which;if([].concat(vE,[_c,pE,hl,bl]).includes(h)){var b=i(),v=rp(b,r),y=v,C=y.elements,x=y.key2element,E=y.element2key,S=x.get(t),$=v8(S,C),O=E.get($),I=m8(e,a(O,!0).length===1,n,h);if(!I&&h!==hl&&h!==bl)return;(vE.includes(h)||[hl,bl].includes(h))&&p.preventDefault();var w=function(R){if(R){var L=R,j=R.querySelector("a");j!=null&&j.getAttribute("href")&&(L=j);var z=E.get(R);l(z),m(),d.current=Rt(function(){f.current===z&&L.focus()})}};if([hl,bl].includes(h)||I.sibling||!$){var N;!$||e==="inline"?N=o.current:N=p8($);var _,P=np(N,C);h===hl?_=P[0]:h===bl?_=P[P.length-1]:_=gE(N,C,$,I.offset),w(_)}else if(I.inlineTrigger)c(O);else if(I.offset>0)c(O,!0),m(),d.current=Rt(function(){v=rp(b,r);var A=$.getAttribute("aria-controls"),R=document.getElementById(A),L=gE(R,v.elements);w(L)},5);else if(I.offset<0){var M=a(O,!0),D=M[M.length-2],T=x.get(D);c(D,!1),w(T)}}u==null||u(p)}}function h8(e){Promise.resolve().then(e)}var op="__RC_UTIL_PATH_SPLIT__",hE=function(t){return t.join(op)},b8=function(t){return t.split(op)},ip="rc-menu-more";function y8(){var e=s.useState({}),t=ae(e,2),n=t[1],r=g.useRef(new Map),o=g.useRef(new Map),i=s.useState([]),a=ae(i,2),l=a[0],c=a[1],u=g.useRef(0),d=g.useRef(!1),f=function(){d.current||n({})},m=g.useCallback(function(x,E){process.env.NODE_ENV!=="production"&&Ge(!r.current.has(x),"Duplicated key '".concat(x,"' used in Menu by path [").concat(E.join(" > "),"]"));var S=hE(E);o.current.set(S,x),r.current.set(x,S),u.current+=1;var $=u.current;h8(function(){$===u.current&&f()})},[]),p=g.useCallback(function(x,E){var S=hE(E);o.current.delete(S),r.current.delete(x)},[]),h=g.useCallback(function(x){c(x)},[]),b=g.useCallback(function(x,E){var S=r.current.get(x)||"",$=b8(S);return E&&l.includes($[0])&&$.unshift(ip),$},[l]),v=g.useCallback(function(x,E){return x.filter(function(S){return S!==void 0}).some(function(S){var $=b(S,!0);return $.includes(E)})},[b]),y=function(){var E=ge(r.current.keys());return l.length&&E.push(ip),E},C=g.useCallback(function(x){var E="".concat(r.current.get(x)).concat(op),S=new Set;return ge(o.current.keys()).forEach(function($){$.startsWith(E)&&S.add(o.current.get($))}),S},[]);return s.useEffect(function(){return function(){d.current=!0}},[]),{registerPath:m,unregisterPath:p,refreshOverflowKeys:h,isSubPathKey:v,getKeyPath:b,getKeys:y,getSubPathKeys:C}}function yl(e){var t=s.useRef(e);t.current=e;var n=s.useCallback(function(){for(var r,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(i))},[]);return e?n:void 0}var C8=Math.random().toFixed(5).toString().slice(2),bE=0;function S8(e){var t=ln(e,{value:e}),n=ae(t,2),r=n[0],o=n[1];return s.useEffect(function(){bE+=1;var i=process.env.NODE_ENV==="test"?"test":"".concat(C8,"-").concat(bE);o("rc-menu-uuid-".concat(i))},[]),r}function yE(e,t,n,r){var o=s.useContext(Fr),i=o.activeKey,a=o.onActive,l=o.onInactive,c={active:i===e};return t||(c.onMouseEnter=function(u){n==null||n({key:e,domEvent:u}),a(e)},c.onMouseLeave=function(u){r==null||r({key:e,domEvent:u}),l(e)}),c}function CE(e){var t=s.useContext(Fr),n=t.mode,r=t.rtl,o=t.inlineIndent;if(n!=="inline")return null;var i=e;return r?{paddingRight:i*o}:{paddingLeft:i*o}}function SE(e){var t=e.icon,n=e.props,r=e.children,o;return t===null||t===!1?null:(typeof t=="function"?o=s.createElement(t,q({},n)):typeof t!="boolean"&&(o=t),o||r||null)}var x8=["item"];function Tc(e){var t=e.item,n=tt(e,x8);return Object.defineProperty(n,"item",{get:function(){return Ge(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var E8=["title","attribute","elementRef"],$8=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],w8=["active"],O8=function(e){jr(n,e);var t=Zr(n);function n(){return bn(this,n),t.apply(this,arguments)}return yn(n,[{key:"render",value:function(){var o=this.props,i=o.title,a=o.attribute,l=o.elementRef,c=tt(o,E8),u=tn(c,["eventKey","popupClassName","popupOffset","onTitleClick"]);return Ge(!a,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),s.createElement(so.Item,ce({},a,{title:typeof i=="string"?i:void 0},u,{ref:l}))}}]),n}(s.Component),N8=s.forwardRef(function(e,t){var n=e.style,r=e.className,o=e.eventKey,i=e.warnKey,a=e.disabled,l=e.itemIcon,c=e.children,u=e.role,d=e.onMouseEnter,f=e.onMouseLeave,m=e.onClick,p=e.onKeyDown,h=e.onFocus,b=tt(e,$8),v=cE(o),y=s.useContext(Fr),C=y.prefixCls,x=y.onItemClick,E=y.disabled,S=y.overflowDisabled,$=y.itemIcon,O=y.selectedKeys,I=y.onActive,w=s.useContext(Jm),N=w._internalRenderMenuItem,_="".concat(C,"-item"),P=s.useRef(),M=s.useRef(),D=E||a,T=Jr(t,M),A=oa(o);process.env.NODE_ENV!=="production"&&i&&Ge(!1,"MenuItem should not leave undefined `key`.");var R=function(oe){return{key:o,keyPath:ge(A).reverse(),item:P.current,domEvent:oe}},L=l||$,j=yE(o,D,d,f),z=j.active,B=tt(j,w8),K=O.includes(o),W=CE(A.length),k=function(oe){if(!D){var X=R(oe);m==null||m(Tc(X)),x(X)}},V=function(oe){if(p==null||p(oe),oe.which===ye.ENTER){var X=R(oe);m==null||m(Tc(X)),x(X)}},Q=function(oe){I(o),h==null||h(oe)},J={};e.role==="option"&&(J["aria-selected"]=K);var Y=s.createElement(O8,ce({ref:P,elementRef:T,role:u===null?"none":u||"menuitem",tabIndex:a?null:-1,"data-menu-id":S&&v?null:v},tn(b,["extra"]),B,J,{component:"li","aria-disabled":a,style:q(q({},W),n),className:G(_,H(H(H({},"".concat(_,"-active"),z),"".concat(_,"-selected"),K),"".concat(_,"-disabled"),D),r),onClick:k,onKeyDown:V,onFocus:Q}),c,s.createElement(SE,{props:q(q({},e),{},{isSelected:K}),icon:L}));return N&&(Y=N(Y,e,{selected:K})),Y});function I8(e,t){var n=e.eventKey,r=Nc(),o=oa(n);return s.useEffect(function(){if(r)return r.registerPath(n,o),function(){r.unregisterPath(n,o)}},[o]),r?null:s.createElement(N8,ce({},e,{ref:t}))}const Cl=s.forwardRef(I8);var _8=["className","children"],T8=function(t,n){var r=t.className,o=t.children,i=tt(t,_8),a=s.useContext(Fr),l=a.prefixCls,c=a.mode,u=a.rtl;return s.createElement("ul",ce({className:G(l,u&&"".concat(l,"-rtl"),"".concat(l,"-sub"),"".concat(l,"-").concat(c==="inline"?"inline":"vertical"),r),role:"menu"},i,{"data-menu-list":!0,ref:n}),o)},ap=s.forwardRef(T8);ap.displayName="SubMenuList";function lp(e,t){return Tn(e).map(function(n,r){if(s.isValidElement(n)){var o,i,a=n.key,l=(o=(i=n.props)===null||i===void 0?void 0:i.eventKey)!==null&&o!==void 0?o:a,c=l==null;c&&(l="tmp_key-".concat([].concat(ge(t),[r]).join("-")));var u={key:l,eventKey:l};return process.env.NODE_ENV!=="production"&&c&&(u.warnKey=!0),s.cloneElement(n,u)}return n})}var Qn={adjustX:1,adjustY:1},P8={topLeft:{points:["bl","tl"],overflow:Qn},topRight:{points:["br","tr"],overflow:Qn},bottomLeft:{points:["tl","bl"],overflow:Qn},bottomRight:{points:["tr","br"],overflow:Qn},leftTop:{points:["tr","tl"],overflow:Qn},leftBottom:{points:["br","bl"],overflow:Qn},rightTop:{points:["tl","tr"],overflow:Qn},rightBottom:{points:["bl","br"],overflow:Qn}},M8={topLeft:{points:["bl","tl"],overflow:Qn},topRight:{points:["br","tr"],overflow:Qn},bottomLeft:{points:["tl","bl"],overflow:Qn},bottomRight:{points:["tr","br"],overflow:Qn},rightTop:{points:["tr","tl"],overflow:Qn},rightBottom:{points:["br","bl"],overflow:Qn},leftTop:{points:["tl","tr"],overflow:Qn},leftBottom:{points:["bl","br"],overflow:Qn}};function xE(e,t,n){if(t)return t;if(n)return n[e]||n.other}var D8={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function A8(e){var t=e.prefixCls,n=e.visible,r=e.children,o=e.popup,i=e.popupStyle,a=e.popupClassName,l=e.popupOffset,c=e.disabled,u=e.mode,d=e.onVisibleChange,f=s.useContext(Fr),m=f.getPopupContainer,p=f.rtl,h=f.subMenuOpenDelay,b=f.subMenuCloseDelay,v=f.builtinPlacements,y=f.triggerSubMenuAction,C=f.forceSubMenuRender,x=f.rootClassName,E=f.motion,S=f.defaultMotions,$=s.useState(!1),O=ae($,2),I=O[0],w=O[1],N=q(p?q({},M8):q({},P8),v),_=D8[u],P=xE(u,E,S),M=s.useRef(P);u!=="inline"&&(M.current=P);var D=q(q({},M.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),T=s.useRef();return s.useEffect(function(){return T.current=Rt(function(){w(n)}),function(){Rt.cancel(T.current)}},[n]),s.createElement(hc,{prefixCls:t,popupClassName:G("".concat(t,"-popup"),H({},"".concat(t,"-rtl"),p),a,x),stretch:u==="horizontal"?"minWidth":null,getPopupContainer:m,builtinPlacements:N,popupPlacement:_,popupVisible:I,popup:o,popupStyle:i,popupAlign:l&&{offset:l},action:c?[]:[y],mouseEnterDelay:h,mouseLeaveDelay:b,onPopupVisibleChange:d,forceRender:C,popupMotion:D,fresh:!0},r)}function R8(e){var t=e.id,n=e.open,r=e.keyPath,o=e.children,i="inline",a=s.useContext(Fr),l=a.prefixCls,c=a.forceSubMenuRender,u=a.motion,d=a.defaultMotions,f=a.mode,m=s.useRef(!1);m.current=f===i;var p=s.useState(!m.current),h=ae(p,2),b=h[0],v=h[1],y=m.current?n:!1;s.useEffect(function(){m.current&&v(!1)},[f]);var C=q({},xE(i,u,d));r.length>1&&(C.motionAppear=!1);var x=C.onVisibleChanged;return C.onVisibleChanged=function(E){return!m.current&&!E&&v(!0),x==null?void 0:x(E)},b?null:s.createElement(gl,{mode:i,locked:!m.current},s.createElement(cr,ce({visible:y},C,{forceRender:c,removeOnLeave:!1,leavedClassName:"".concat(l,"-hidden")}),function(E){var S=E.className,$=E.style;return s.createElement(ap,{id:t,className:S,style:$},o)}))}var j8=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],L8=["active"],z8=s.forwardRef(function(e,t){var n=e.style,r=e.className,o=e.title,i=e.eventKey,a=e.warnKey,l=e.disabled,c=e.internalPopupClose,u=e.children,d=e.itemIcon,f=e.expandIcon,m=e.popupClassName,p=e.popupOffset,h=e.popupStyle,b=e.onClick,v=e.onMouseEnter,y=e.onMouseLeave,C=e.onTitleClick,x=e.onTitleMouseEnter,E=e.onTitleMouseLeave,S=tt(e,j8),$=cE(i),O=s.useContext(Fr),I=O.prefixCls,w=O.mode,N=O.openKeys,_=O.disabled,P=O.overflowDisabled,M=O.activeKey,D=O.selectedKeys,T=O.itemIcon,A=O.expandIcon,R=O.onItemClick,L=O.onOpenChange,j=O.onActive,z=s.useContext(Jm),B=z._internalRenderSubMenuItem,K=s.useContext(fE),W=K.isSubPathKey,k=oa(),V="".concat(I,"-submenu"),Q=_||l,J=s.useRef(),Y=s.useRef();process.env.NODE_ENV!=="production"&&a&&Ge(!1,"SubMenu should not leave undefined `key`.");var te=d!=null?d:T,oe=f!=null?f:A,X=N.includes(i),F=!P&&X,ee=W(D,i),Z=yE(i,Q,x,E),ne=Z.active,re=tt(Z,L8),se=s.useState(!1),le=ae(se,2),he=le[0],fe=le[1],ie=function(Se){Q||fe(Se)},ue=function(Se){ie(!0),v==null||v({key:i,domEvent:Se})},de=function(Se){ie(!1),y==null||y({key:i,domEvent:Se})},me=s.useMemo(function(){return ne||(w!=="inline"?he||W([M],i):!1)},[w,ne,M,he,i,W]),Ce=CE(k.length),Oe=function(Se){Q||(C==null||C({key:i,domEvent:Se}),w==="inline"&&L(i,!X))},Te=yl(function(ve){b==null||b(Tc(ve)),R(ve)}),je=function(Se){w!=="inline"&&L(i,Se)},Ne=function(){j(i)},Ie=$&&"".concat($,"-popup"),xe=s.useMemo(function(){return s.createElement(SE,{icon:w!=="horizontal"?oe:void 0,props:q(q({},e),{},{isOpen:F,isSubMenu:!0})},s.createElement("i",{className:"".concat(V,"-arrow")}))},[w,oe,e,F,V]),be=s.createElement("div",ce({role:"menuitem",style:Ce,className:"".concat(V,"-title"),tabIndex:Q?null:-1,ref:J,title:typeof o=="string"?o:null,"data-menu-id":P&&$?null:$,"aria-expanded":F,"aria-haspopup":!0,"aria-controls":Ie,"aria-disabled":Q,onClick:Oe,onFocus:Ne},re),o,xe),Ee=s.useRef(w);if(w!=="inline"&&k.length>1?Ee.current="vertical":Ee.current=w,!P){var $e=Ee.current;be=s.createElement(A8,{mode:$e,prefixCls:V,visible:!c&&F&&w!=="inline",popupClassName:m,popupOffset:p,popupStyle:h,popup:s.createElement(gl,{mode:$e==="horizontal"?"vertical":$e},s.createElement(ap,{id:Ie,ref:Y},u)),disabled:Q,onVisibleChange:je},be)}var _e=s.createElement(so.Item,ce({ref:t,role:"none"},S,{component:"li",style:n,className:G(V,"".concat(V,"-").concat(w),r,H(H(H(H({},"".concat(V,"-open"),F),"".concat(V,"-active"),me),"".concat(V,"-selected"),ee),"".concat(V,"-disabled"),Q)),onMouseEnter:ue,onMouseLeave:de}),be,!P&&s.createElement(R8,{id:Ie,open:F,keyPath:k},u));return B&&(_e=B(_e,e,{selected:ee,active:me,open:F,disabled:Q})),s.createElement(gl,{onItemClick:Te,mode:w==="horizontal"?"vertical":w,itemIcon:te,expandIcon:oe},_e)}),Sl=s.forwardRef(function(e,t){var n=e.eventKey,r=e.children,o=oa(n),i=lp(r,o),a=Nc();s.useEffect(function(){if(a)return a.registerPath(n,o),function(){a.unregisterPath(n,o)}},[o]);var l;return a?l=i:l=s.createElement(z8,ce({ref:t},e),i),s.createElement(dE.Provider,{value:o},l)});process.env.NODE_ENV!=="production"&&(Sl.displayName="SubMenu");function sp(e){var t=e.className,n=e.style,r=s.useContext(Fr),o=r.prefixCls,i=Nc();return i?null:s.createElement("li",{role:"separator",className:G("".concat(o,"-item-divider"),t),style:n})}var B8=["className","title","eventKey","children"],k8=s.forwardRef(function(e,t){var n=e.className,r=e.title;e.eventKey;var o=e.children,i=tt(e,B8),a=s.useContext(Fr),l=a.prefixCls,c="".concat(l,"-item-group");return s.createElement("li",ce({ref:t,role:"presentation"},i,{onClick:function(d){return d.stopPropagation()},className:G(c,n)}),s.createElement("div",{role:"presentation",className:"".concat(c,"-title"),title:typeof r=="string"?r:void 0},r),s.createElement("ul",{role:"group",className:"".concat(c,"-list")},o))}),Pc=s.forwardRef(function(e,t){var n=e.eventKey,r=e.children,o=oa(n),i=lp(r,o),a=Nc();return a?i:s.createElement(k8,ce({ref:t},tn(e,["warnKey"])),i)});process.env.NODE_ENV!=="production"&&(Pc.displayName="MenuItemGroup");var F8=["label","children","key","type","extra"];function cp(e,t,n){var r=t.item,o=t.group,i=t.submenu,a=t.divider;return(e||[]).map(function(l,c){if(l&&He(l)==="object"){var u=l,d=u.label,f=u.children,m=u.key,p=u.type,h=u.extra,b=tt(u,F8),v=m!=null?m:"tmp-".concat(c);return f||p==="group"?p==="group"?s.createElement(o,ce({key:v},b,{title:d}),cp(f,t,n)):s.createElement(i,ce({key:v},b,{title:d}),cp(f,t,n)):p==="divider"?s.createElement(a,ce({key:v},b)):s.createElement(r,ce({key:v},b,{extra:h}),d,(!!h||h===0)&&s.createElement("span",{className:"".concat(n,"-item-extra")},h))}return null}).filter(function(l){return l})}function EE(e,t,n,r,o){var i=e,a=q({divider:sp,item:Cl,group:Pc,submenu:Sl},r);return t&&(i=cp(t,a,o)),lp(i,n)}var H8=["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"],gi=[],V8=s.forwardRef(function(e,t){var n,r=e,o=r.prefixCls,i=o===void 0?"rc-menu":o,a=r.rootClassName,l=r.style,c=r.className,u=r.tabIndex,d=u===void 0?0:u,f=r.items,m=r.children,p=r.direction,h=r.id,b=r.mode,v=b===void 0?"vertical":b,y=r.inlineCollapsed,C=r.disabled,x=r.disabledOverflow,E=r.subMenuOpenDelay,S=E===void 0?.1:E,$=r.subMenuCloseDelay,O=$===void 0?.1:$,I=r.forceSubMenuRender,w=r.defaultOpenKeys,N=r.openKeys,_=r.activeKey,P=r.defaultActiveFirst,M=r.selectable,D=M===void 0?!0:M,T=r.multiple,A=T===void 0?!1:T,R=r.defaultSelectedKeys,L=r.selectedKeys,j=r.onSelect,z=r.onDeselect,B=r.inlineIndent,K=B===void 0?24:B,W=r.motion,k=r.defaultMotions,V=r.triggerSubMenuAction,Q=V===void 0?"hover":V,J=r.builtinPlacements,Y=r.itemIcon,te=r.expandIcon,oe=r.overflowedIndicator,X=oe===void 0?"...":oe,F=r.overflowedIndicatorPopupClassName,ee=r.getPopupContainer,Z=r.onClick,ne=r.onOpenChange,re=r.onKeyDown,se=r.openAnimation,le=r.openTransitionName,he=r._internalRenderMenuItem,fe=r._internalRenderSubMenuItem,ie=r._internalComponents,ue=tt(r,H8),de=s.useMemo(function(){return[EE(m,f,gi,ie,i),EE(m,f,gi,{},i)]},[m,f,ie]),me=ae(de,2),Ce=me[0],Oe=me[1],Te=s.useState(!1),je=ae(Te,2),Ne=je[0],Ie=je[1],xe=s.useRef(),be=S8(h),Ee=p==="rtl";process.env.NODE_ENV!=="production"&&Ge(!se&&!le,"`openAnimation` and `openTransitionName` is removed. Please use `motion` or `defaultMotion` instead.");var $e=ln(w,{value:N,postState:function(yt){return yt||gi}}),_e=ae($e,2),ve=_e[0],Se=_e[1],Je=function(yt){var Et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function zt(){Se(yt),ne==null||ne(yt)}Et?nr.flushSync(zt):zt()},it=s.useState(ve),Nt=ae(it,2),Tt=Nt[0],Gt=Nt[1],st=s.useRef(!1),Pt=s.useMemo(function(){return(v==="inline"||v==="vertical")&&y?["vertical",y]:[v,!1]},[v,y]),pt=ae(Pt,2),et=pt[0],ke=pt[1],Me=et==="inline",Pe=s.useState(et),at=ae(Pe,2),ct=at[0],Le=at[1],we=s.useState(ke),ze=ae(we,2),Fe=ze[0],Ve=ze[1];s.useEffect(function(){Le(et),Ve(ke),st.current&&(Me?Se(Tt):Je(gi))},[et,ke]);var Ze=s.useState(0),Ot=ae(Ze,2),Ae=Ot[0],Qe=Ot[1],nt=Ae>=Ce.length-1||ct!=="horizontal"||x;s.useEffect(function(){Me&&Gt(ve)},[ve]),s.useEffect(function(){return st.current=!0,function(){st.current=!1}},[]);var ot=y8(),ht=ot.registerPath,jt=ot.unregisterPath,Wt=ot.refreshOverflowKeys,Ct=ot.isSubPathKey,en=ot.getKeyPath,De=ot.getKeys,Ke=ot.getSubPathKeys,Be=s.useMemo(function(){return{registerPath:ht,unregisterPath:jt}},[ht,jt]),Re=s.useMemo(function(){return{isSubPathKey:Ct}},[Ct]);s.useEffect(function(){Wt(nt?gi:Ce.slice(Ae+1).map(function(Ue){return Ue.key}))},[Ae,nt]);var lt=ln(_||P&&((n=Ce[0])===null||n===void 0?void 0:n.key),{value:_}),Mt=ae(lt,2),At=Mt[0],Kt=Mt[1],an=yl(function(Ue){Kt(Ue)}),Ut=yl(function(){Kt(void 0)});g.useImperativeHandle(t,function(){return{list:xe.current,focus:function(yt){var Et,zt=De(),Bt=rp(zt,be),xn=Bt.elements,In=Bt.key2element,Vn=Bt.element2key,Jn=np(xe.current,xn),Zn=At!=null?At:Jn[0]?Vn.get(Jn[0]):(Et=Ce.find(function(gn){return!gn.props.disabled}))===null||Et===void 0?void 0:Et.key,ut=In.get(Zn);if(Zn&&ut){var dt;ut==null||(dt=ut.focus)===null||dt===void 0||dt.call(ut,yt)}}}});var Ye=ln(R||[],{value:L,postState:function(yt){return Array.isArray(yt)?yt:yt==null?gi:[yt]}}),ft=ae(Ye,2),Lt=ft[0],Sn=ft[1],mn=function(yt){if(D){var Et=yt.key,zt=Lt.includes(Et),Bt;A?zt?Bt=Lt.filter(function(In){return In!==Et}):Bt=[].concat(ge(Lt),[Et]):Bt=[Et],Sn(Bt);var xn=q(q({},yt),{},{selectedKeys:Bt});zt?z==null||z(xn):j==null||j(xn)}!A&&ve.length&&ct!=="inline"&&Je(gi)},zn=yl(function(Ue){Z==null||Z(Tc(Ue)),mn(Ue)}),Sr=yl(function(Ue,yt){var Et=ve.filter(function(Bt){return Bt!==Ue});if(yt)Et.push(Ue);else if(ct!=="inline"){var zt=Ke(Ue);Et=Et.filter(function(Bt){return!zt.has(Bt)})}eo(ve,Et,!0)||Je(Et,!0)}),xr=function(yt,Et){var zt=Et!=null?Et:!ve.includes(yt);Sr(yt,zt)},Bn=g8(ct,At,Ee,be,xe,De,en,Kt,xr,re);s.useEffect(function(){Ie(!0)},[]);var Ar=s.useMemo(function(){return{_internalRenderMenuItem:he,_internalRenderSubMenuItem:fe}},[he,fe]),dr=ct!=="horizontal"||x?Ce:Ce.map(function(Ue,yt){return s.createElement(gl,{key:Ue.key,overflowDisabled:yt>Ae},Ue)}),It=s.createElement(so,ce({id:h,ref:xe,prefixCls:"".concat(i,"-overflow"),component:"ul",itemComponent:Cl,className:G(i,"".concat(i,"-root"),"".concat(i,"-").concat(ct),c,H(H({},"".concat(i,"-inline-collapsed"),Fe),"".concat(i,"-rtl"),Ee),a),dir:p,style:l,role:"menu",tabIndex:d,data:dr,renderRawItem:function(yt){return yt},renderRawRest:function(yt){var Et=yt.length,zt=Et?Ce.slice(-Et):null;return s.createElement(Sl,{eventKey:ip,title:X,disabled:nt,internalPopupClose:Et===0,popupClassName:F},zt)},maxCount:ct!=="horizontal"||x?so.INVALIDATE:so.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(yt){Qe(yt)},onKeyDown:Bn},ue));return s.createElement(Jm.Provider,{value:Ar},s.createElement(lE.Provider,{value:be},s.createElement(gl,{prefixCls:i,rootClassName:a,mode:ct,openKeys:ve,rtl:Ee,disabled:C,motion:Ne?W:null,defaultMotions:Ne?k:null,activeKey:At,onActive:an,onInactive:Ut,selectedKeys:Lt,inlineIndent:K,subMenuOpenDelay:S,subMenuCloseDelay:O,forceSubMenuRender:I,builtinPlacements:J,triggerSubMenuAction:Q,getPopupContainer:ee,itemIcon:Y,expandIcon:te,onItemClick:zn,onOpenChange:Sr},s.createElement(fE.Provider,{value:Re},It),s.createElement("div",{style:{display:"none"},"aria-hidden":!0},s.createElement(uE.Provider,{value:Be},Oe)))))}),ia=V8;ia.Item=Cl,ia.SubMenu=Sl,ia.ItemGroup=Pc,ia.Divider=sp;const $E=s.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}}),W8=e=>{const{antCls:t,componentCls:n,colorText:r,footerBg:o,headerHeight:i,headerPadding:a,headerColor:l,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:i,padding:a,color:l,lineHeight:U(i),background:f,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:c,color:r,fontSize:u,background:o},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}},wE=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:o,controlHeightSM:i,marginXXS:a,colorTextLightSolid:l,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:`${i}px ${u}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+a*2,triggerBg:"#002140",triggerColor:l,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:c,lightTriggerBg:c,lightTriggerColor:o}},OE=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]],NE=Dt("Layout",e=>[W8(e)],wE,{deprecatedTokens:OE}),K8=e=>{const{componentCls:t,siderBg:n,motionDurationMid:r,motionDurationSlow:o,antCls:i,triggerHeight:a,triggerColor:l,triggerBg:c,headerHeight:u,zeroTriggerWidth:d,zeroTriggerHeight:f,borderRadiusLG:m,lightSiderBg:p,lightTriggerColor:h,lightTriggerBg:b,bodyBg:v}=e;return{[t]:{position:"relative",minWidth:0,background:n,transition:`all ${r}, background 0s`,"&-has-trigger":{paddingBottom:a},"&-right":{order:1},[`${t}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${i}-menu${i}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${t}-children`]:{overflow:"hidden"},[`${t}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:a,color:l,lineHeight:U(a),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:l,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:n,borderRadius:`0 ${U(m)} ${U(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:`${U(m)} 0 0 ${U(m)}`}},"&-light":{background:p,[`${t}-trigger`]:{color:h,background:b},[`${t}-zero-width-trigger`]:{color:h,background:b,border:`1px solid ${v}`,borderInlineStart:0}}}}},q8=Dt(["Layout","Sider"],e=>[K8(e)],wE,{deprecatedTokens:OE});var U8=globalThis&&globalThis.__rest||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 IE={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},G8=e=>!Number.isNaN(Number.parseFloat(e))&&isFinite(e),Mc=s.createContext({}),X8=(()=>{let e=0;return function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e+=1,`${t}${e}`}})(),_E=s.forwardRef((e,t)=>{const{prefixCls:n,className:r,trigger:o,children:i,defaultCollapsed:a=!1,theme:l="dark",style:c={},collapsible:u=!1,reverseArrow:d=!1,width:f=200,collapsedWidth:m=80,zeroWidthTriggerStyle:p,breakpoint:h,onCollapse:b,onBreakpoint:v}=e,y=U8(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:C}=g.useContext($E),[x,E]=g.useState("collapsed"in e?e.collapsed:a),[S,$]=g.useState(!1);g.useEffect(()=>{"collapsed"in e&&E(e.collapsed)},[e.collapsed]);const O=(Y,te)=>{"collapsed"in e||E(Y),b==null||b(Y,te)},{getPrefixCls:I,direction:w}=g.useContext(Xe),N=I("layout-sider",n),[_,P,M]=q8(N),D=g.useRef(null);D.current=Y=>{$(Y.matches),v==null||v(Y.matches),x!==Y.matches&&O(Y.matches,"responsive")},g.useEffect(()=>{function Y(oe){var X;return(X=D.current)===null||X===void 0?void 0:X.call(D,oe)}let te;return typeof(window==null?void 0:window.matchMedia)!="undefined"&&h&&h in IE&&(te=window.matchMedia(`screen and (max-width: ${IE[h]})`),Wx(te,Y),Y(te)),()=>{Kx(te,Y)}},[h]),g.useEffect(()=>{const Y=X8("ant-sider-");return C.addSider(Y),()=>C.removeSider(Y)},[]);const T=()=>{O(!x,"clickTrigger")},A=tn(y,["collapsed"]),R=x?m:f,L=G8(R)?`${R}px`:String(R),j=parseFloat(String(m||0))===0?s.createElement("span",{onClick:T,className:G(`${N}-zero-width-trigger`,`${N}-zero-width-trigger-${d?"right":"left"}`),style:p},o||s.createElement(C_,null)):null,z=w==="rtl"==!d,W={expanded:z?s.createElement(Aa,null):s.createElement(Da,null),collapsed:z?s.createElement(Da,null):s.createElement(Aa,null)}[x?"collapsed":"expanded"],k=o!==null?j||s.createElement("div",{className:`${N}-trigger`,onClick:T,style:{width:L}},o||W):null,V=Object.assign(Object.assign({},c),{flex:`0 0 ${L}`,maxWidth:L,minWidth:L,width:L}),Q=G(N,`${N}-${l}`,{[`${N}-collapsed`]:!!x,[`${N}-has-trigger`]:u&&o!==null&&!j,[`${N}-below`]:!!S,[`${N}-zero-width`]:parseFloat(L)===0},r,P,M),J=s.useMemo(()=>({siderCollapsed:x}),[x]);return _(s.createElement(Mc.Provider,{value:J},s.createElement("aside",Object.assign({className:Q},A,{style:V,ref:t}),s.createElement("div",{className:`${N}-children`},i),u||S&&j?k:null)))});process.env.NODE_ENV!=="production"&&(_E.displayName="Sider");const TE=_E,Dc=g.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var Q8=globalThis&&globalThis.__rest||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 PE=e=>{const{prefixCls:t,className:n,dashed:r}=e,o=Q8(e,["prefixCls","className","dashed"]),{getPrefixCls:i}=s.useContext(Xe),a=i("menu",t),l=G({[`${a}-item-divider-dashed`]:!!r},n);return s.createElement(sp,Object.assign({className:l},o))},ME=e=>{var t;const{className:n,children:r,icon:o,title:i,danger:a,extra:l}=e,{prefixCls:c,firstLevel:u,direction:d,disableMenuItemTitleTooltip:f,inlineCollapsed:m}=s.useContext(Dc),p=x=>{const E=r==null?void 0:r[0],S=s.createElement("span",{className:G(`${c}-title-content`,{[`${c}-title-content-with-extra`]:!!l||l===0})},r);return(!o||s.isValidElement(r)&&r.type==="span")&&r&&x&&u&&typeof E=="string"?s.createElement("div",{className:`${c}-inline-collapsed-noicon`},E.charAt(0)):S},{siderCollapsed:h}=s.useContext(Mc);let b=i;typeof i=="undefined"?b=u?r:"":i===!1&&(b="");const v={title:b};!h&&!m&&(v.title=null,v.open=!1);const y=Tn(r).length;let C=s.createElement(Cl,Object.assign({},tn(e,["title","icon","danger"]),{className:G({[`${c}-item-danger`]:a,[`${c}-item-only-child`]:(o?y+1:y)===1},n),title:typeof i=="string"?i:void 0}),Gn(o,{className:G(s.isValidElement(o)?(t=o.props)===null||t===void 0?void 0:t.className:"",`${c}-item-icon`)}),p(m));return f||(C=s.createElement(co,Object.assign({},v,{placement:d==="rtl"?"left":"right",classNames:{root:`${c}-inline-collapsed-tooltip`}}),C)),C};var Y8=globalThis&&globalThis.__rest||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 Ac=s.createContext(null),DE=s.forwardRef((e,t)=>{const{children:n}=e,r=Y8(e,["children"]),o=s.useContext(Ac),i=s.useMemo(()=>Object.assign(Object.assign({},o),r),[o,r.prefixCls,r.mode,r.selectable,r.rootClassName]),a=eM(n),l=Jr(t,a?Ao(n):null);return s.createElement(Ac.Provider,{value:i},s.createElement(Ui,{space:!0},a?s.cloneElement(n,{ref:l}):n))}),J8=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:o,lineWidth:i,lineType:a,itemPaddingInline:l}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${U(i)} ${a} ${o}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:l},[`> ${t}-item:hover,
|
|
241
|
+
> ${t}-item-active,
|
|
242
|
+
> ${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"}}}},Z8=e=>{let{componentCls:t,menuArrowOffset:n,calc:r}=e;return{[`${t}-rtl`]:{direction:"rtl"},[`${t}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${t}-rtl${t}-vertical,
|
|
243
|
+
${t}-submenu-rtl ${t}-vertical`]:{[`${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${U(r(n).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${U(n)})`}}}}},AE=e=>Object.assign({},Br(e)),RE=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:o,subMenuItemSelectedColor:i,groupTitleColor:a,itemBg:l,subMenuItemBg:c,itemSelectedBg:u,activeBarHeight:d,activeBarWidth:f,activeBarBorderWidth:m,motionDurationSlow:p,motionEaseInOut:h,motionEaseOut:b,itemPaddingInline:v,motionDurationMid:y,itemHoverColor:C,lineType:x,colorSplit:E,itemDisabledColor:S,dangerItemColor:$,dangerItemHoverColor:O,dangerItemSelectedColor:I,dangerItemActiveBg:w,dangerItemSelectedBg:N,popupBg:_,itemHoverBg:P,itemActiveBg:M,menuSubMenuBg:D,horizontalItemSelectedColor:T,horizontalItemSelectedBg:A,horizontalItemBorderRadius:R,horizontalItemHoverBg:L}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:l,[`&${n}-root:focus-visible`]:Object.assign({},AE(e)),[`${n}-item`]:{"&-group-title, &-extra":{color:a}},[`${n}-submenu-selected > ${n}-submenu-title`]:{color:i},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},AE(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:P},"&:active":{backgroundColor:M}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:P},"&:active":{backgroundColor:M}}},[`${n}-item-danger`]:{color:$,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:O}},[`&${n}-item:active`]:{background:w}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:o,[`&${n}-item-danger`]:{color:I},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:u,[`&${n}-item-danger`]:{backgroundColor:N}},[`&${n}-submenu > ${n}`]:{backgroundColor:D},[`&${n}-popup > ${n}`]:{backgroundColor:_},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:_},[`&${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:R,"&::after":{position:"absolute",insetInline:v,bottom:0,borderBottom:`${U(d)} solid transparent`,transition:`border-color ${p} ${h}`,content:'""'},"&:hover, &-active, &-open":{background:L,"&::after":{borderBottomWidth:d,borderBottomColor:T}},"&-selected":{color:T,backgroundColor:A,"&:hover":{backgroundColor:A},"&::after":{borderBottomWidth:d,borderBottomColor:T}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${U(m)} ${x} ${E}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:c},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${U(f)} solid ${o}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${y} ${b}`,`opacity ${y} ${b}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:I}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${y} ${h}`,`opacity ${y} ${h}`].join(",")}}}}}},jE=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:o,menuArrowSize:i,marginXS:a,itemMarginBlock:l,itemWidth:c,itemPaddingInline:u}=e,d=e.calc(i).add(o).add(a).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:U(n),paddingInline:u,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:l,width:c},[`> ${t}-item,
|
|
244
|
+
> ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:U(n)},[`${t}-item-group-list ${t}-submenu-title,
|
|
245
|
+
${t}-submenu-title`]:{paddingInlineEnd:d}}},e5=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:o,dropdownWidth:i,controlHeightLG:a,motionEaseOut:l,paddingXL:c,itemMarginInline:u,fontSizeLG:d,motionDurationFast:f,motionDurationSlow:m,paddingXS:p,boxShadowSecondary:h,collapsedWidth:b,collapsedIconSize:v}=e,y={height:r,lineHeight:U(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},jE(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},jE(e)),{boxShadow:h})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:i,maxHeight:`calc(100vh - ${U(e.calc(a).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${m}`,`background ${m}`,`padding ${f} ${l}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:y,[`& ${t}-item-group-title`]:{paddingInlineStart:c}},[`${t}-item`]:y}},{[`${t}-inline-collapsed`]:{width:b,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:d,textAlign:"center"}}},[`> ${t}-item,
|
|
246
|
+
> ${t}-item-group > ${t}-item-group-list > ${t}-item,
|
|
247
|
+
> ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,
|
|
248
|
+
> ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${U(e.calc(v).div(2).equal())} - ${U(u)})`,textOverflow:"clip",[`
|
|
249
|
+
${t}-submenu-arrow,
|
|
250
|
+
${t}-submenu-expand-icon
|
|
251
|
+
`]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:v,lineHeight:U(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({},So),{paddingInline:p})}}]},LE=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:o,motionEaseOut:i,iconCls:a,iconSize:l,iconMarginInlineEnd:c}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${n}`,`background ${n}`,`padding calc(${n} + 0.1s) ${o}`].join(","),[`${t}-item-icon, ${a}`]:{minWidth:l,fontSize:l,transition:[`font-size ${r} ${i}`,`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({},Ya()),[`&${t}-item-only-child`]:{[`> ${a}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important",cursor:"not-allowed",pointerEvents:"none"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},zE=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:o,menuArrowSize:i,menuArrowOffset:a}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:i,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(i).mul(.6).equal(),height:e.calc(i).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(${U(e.calc(a).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${U(a)})`}}}}},t5=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:o,motionDurationMid:i,motionEaseInOut:a,paddingXS:l,padding:c,colorSplit:u,lineWidth:d,zIndexPopup:f,borderRadiusLG:m,subMenuItemBorderRadius:p,menuArrowSize:h,menuArrowOffset:b,lineType:v,groupTitleLineHeight:y,groupTitleFontSize:C}=e;return[{"":{[n]:Object.assign(Object.assign({},xo()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ht(e)),xo()),{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:`${U(l)} ${U(c)}`,fontSize:C,lineHeight:y,transition:`all ${o}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${o} ${a}`,`background ${o} ${a}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${o} ${a}`,`background ${o} ${a}`,`padding ${i} ${a}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${o} ${a}`,`padding ${o} ${a}`].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:v,borderWidth:0,borderTopWidth:d,marginBlock:d,padding:0,"&-dashed":{borderStyle:"dashed"}}}),LE(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${U(e.calc(r).mul(2).equal())} ${U(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},LE(e)),zE(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:p},[`${n}-submenu-title::after`]:{transition:`transform ${o} ${a}`}})},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS}}}),zE(e)),{[`&-inline-collapsed ${n}-submenu-arrow,
|
|
252
|
+
&-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${U(b)})`},"&::after":{transform:`rotate(45deg) translateX(${U(e.calc(b).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${U(e.calc(h).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${U(e.calc(b).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${U(b)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},n5=e=>{var t,n,r;const{colorPrimary:o,colorError:i,colorTextDisabled:a,colorErrorBg:l,colorText:c,colorTextDescription:u,colorBgContainer:d,colorFillAlter:f,colorFillContent:m,lineWidth:p,lineWidthBold:h,controlItemBgActive:b,colorBgTextHover:v,controlHeightLG:y,lineHeight:C,colorBgElevated:x,marginXXS:E,padding:S,fontSize:$,controlHeightSM:O,fontSizeLG:I,colorTextLightSolid:w,colorErrorHover:N}=e,_=(t=e.activeBarWidth)!==null&&t!==void 0?t:0,P=(n=e.activeBarBorderWidth)!==null&&n!==void 0?n:p,M=(r=e.itemMarginInline)!==null&&r!==void 0?r:e.marginXXS,D=new kt(w).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:v,itemHoverBg:v,colorItemBgActive:m,itemActiveBg:b,colorSubItemBg:f,subMenuItemBg:f,colorItemBgSelected:b,itemSelectedBg:b,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:_,colorActiveBarHeight:h,activeBarHeight:h,colorActiveBarBorderSize:p,activeBarBorderWidth:P,colorItemTextDisabled:a,itemDisabledColor:a,colorDangerItemText:i,dangerItemColor:i,colorDangerItemTextHover:i,dangerItemHoverColor:i,colorDangerItemTextSelected:i,dangerItemSelectedColor:i,colorDangerItemBgActive:l,dangerItemActiveBg:l,colorDangerItemBgSelected:l,dangerItemSelectedBg:l,itemMarginInline:M,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:y,groupTitleLineHeight:C,collapsedWidth:y*2,popupBg:x,itemMarginBlock:E,itemPaddingInline:S,horizontalLineHeight:`${y*1.15}px`,iconSize:$,iconMarginInlineEnd:O-$,collapsedIconSize:I,groupTitleFontSize:$,darkItemDisabledColor:new kt(w).setA(.25).toRgbString(),darkItemColor:D,darkDangerItemColor:i,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:w,darkItemSelectedBg:o,darkDangerItemSelectedBg:i,darkItemHoverBg:"transparent",darkGroupTitleColor:D,darkItemHoverColor:w,darkDangerItemHoverColor:N,darkDangerItemSelectedColor:w,darkDangerItemActiveBg:i,itemWidth:_?`calc(100% + ${P}px)`:`calc(100% - ${M*2}px)`}},r5=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return Dt("Menu",o=>{const{colorBgElevated:i,controlHeightLG:a,fontSize:l,darkItemColor:c,darkDangerItemColor:u,darkItemBg:d,darkSubMenuItemBg:f,darkItemSelectedColor:m,darkItemSelectedBg:p,darkDangerItemSelectedBg:h,darkItemHoverBg:b,darkGroupTitleColor:v,darkItemHoverColor:y,darkItemDisabledColor:C,darkDangerItemHoverColor:x,darkDangerItemSelectedColor:E,darkDangerItemActiveBg:S,popupBg:$,darkPopupBg:O}=o,I=o.calc(l).div(7).mul(5).equal(),w=xt(o,{menuArrowSize:I,menuHorizontalHeight:o.calc(a).mul(1.15).equal(),menuArrowOffset:o.calc(I).mul(.25).equal(),menuSubMenuBg:i,calc:o.calc,popupBg:$}),N=xt(w,{itemColor:c,itemHoverColor:y,groupTitleColor:v,itemSelectedColor:m,subMenuItemSelectedColor:m,itemBg:d,popupBg:O,subMenuItemBg:f,itemActiveBg:"transparent",itemSelectedBg:p,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:b,itemDisabledColor:C,dangerItemColor:u,dangerItemHoverColor:x,dangerItemSelectedColor:E,dangerItemActiveBg:S,dangerItemSelectedBg:h,menuSubMenuBg:f,horizontalItemSelectedColor:m,horizontalItemSelectedBg:p});return[t5(w),J8(w),e5(w),RE(w,"light"),RE(N,"dark"),Z8(w),Vf(w),Fo(w,"slide-up"),Fo(w,"slide-down"),nl(w,"zoom-big")]},n5,{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)},BE=e=>{var t;const{popupClassName:n,icon:r,title:o,theme:i}=e,a=s.useContext(Dc),{prefixCls:l,inlineCollapsed:c,theme:u}=a,d=oa();let f;if(!r)f=c&&!d.length&&o&&typeof o=="string"?s.createElement("div",{className:`${l}-inline-collapsed-noicon`},o.charAt(0)):s.createElement("span",{className:`${l}-title-content`},o);else{const h=s.isValidElement(o)&&o.type==="span";f=s.createElement(s.Fragment,null,Gn(r,{className:G(s.isValidElement(r)?(t=r.props)===null||t===void 0?void 0:t.className:"",`${l}-item-icon`)}),h?o:s.createElement("span",{className:`${l}-title-content`},o))}const m=s.useMemo(()=>Object.assign(Object.assign({},a),{firstLevel:!1}),[a]),[p]=ki("Menu");return s.createElement(Dc.Provider,{value:m},s.createElement(Sl,Object.assign({},tn(e,["icon"]),{title:f,popupClassName:G(l,n,`${l}-${i||u}`),popupStyle:Object.assign({zIndex:p},e.popupStyle)})))};var o5=globalThis&&globalThis.__rest||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 up(e){return e===null||e===!1}const i5={item:ME,submenu:BE,divider:PE},a5=g.forwardRef((e,t)=>{var n;const r=s.useContext(Ac),o=r||{},{getPrefixCls:i,getPopupContainer:a,direction:l,menu:c}=s.useContext(Xe),u=i(),{prefixCls:d,className:f,style:m,theme:p="light",expandIcon:h,_internalDisableMenuItemTitleTooltip:b,inlineCollapsed:v,siderCollapsed:y,rootClassName:C,mode:x,selectable:E,onClick:S,overflowedIndicatorPopupClassName:$}=e,O=o5(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),I=tn(O,["collapsedWidth"]);if(process.env.NODE_ENV!=="production"){const K=gt("Menu");process.env.NODE_ENV!=="production"&&K(!("inlineCollapsed"in e&&x!=="inline"),"usage","`inlineCollapsed` should only be used when `mode` is inline."),K.deprecated("items"in e&&!e.children,"children","items")}(n=o.validator)===null||n===void 0||n.call(o,{mode:x});const w=qt(function(){var K;S==null||S.apply(void 0,arguments),(K=o.onClick)===null||K===void 0||K.call(o)}),N=o.mode||x,_=E!=null?E:o.selectable,P=v!=null?v:y,M={horizontal:{motionName:`${u}-slide-up`},inline:Ys(u),other:{motionName:`${u}-zoom-big`}},D=i("menu",d||o.prefixCls),T=On(D),[A,R,L]=r5(D,T,!r),j=G(`${D}-${p}`,c==null?void 0:c.className,f),z=s.useMemo(()=>{var K,W;if(typeof h=="function"||up(h))return h||null;if(typeof o.expandIcon=="function"||up(o.expandIcon))return o.expandIcon||null;if(typeof(c==null?void 0:c.expandIcon)=="function"||up(c==null?void 0:c.expandIcon))return(c==null?void 0:c.expandIcon)||null;const k=(K=h!=null?h:o==null?void 0:o.expandIcon)!==null&&K!==void 0?K:c==null?void 0:c.expandIcon;return Gn(k,{className:G(`${D}-submenu-expand-icon`,s.isValidElement(k)?(W=k.props)===null||W===void 0?void 0:W.className:void 0)})},[h,o==null?void 0:o.expandIcon,c==null?void 0:c.expandIcon,D]),B=s.useMemo(()=>({prefixCls:D,inlineCollapsed:P||!1,direction:l,firstLevel:!0,theme:p,mode:N,disableMenuItemTitleTooltip:b}),[D,P,l,b,p]);return A(s.createElement(Ac.Provider,{value:null},s.createElement(Dc.Provider,{value:B},s.createElement(ia,Object.assign({getPopupContainer:a,overflowedIndicator:s.createElement(jd,null),overflowedIndicatorPopupClassName:G(D,`${D}-${p}`,$),mode:N,selectable:_,onClick:w},I,{inlineCollapsed:P,style:Object.assign(Object.assign({},c==null?void 0:c.style),m),className:j,prefixCls:D,direction:l,defaultMotions:M,expandIcon:z,ref:t,rootClassName:G(C,R,o.rootClassName,L,T),_internalComponents:i5})))))}),aa=g.forwardRef((e,t)=>{const n=g.useRef(null),r=s.useContext(Mc);return g.useImperativeHandle(t,()=>({menu:n.current,focus:o=>{var i;(i=n.current)===null||i===void 0||i.focus(o)}})),s.createElement(a5,Object.assign({ref:n},e,r))});aa.Item=ME,aa.SubMenu=BE,aa.Divider=PE,aa.ItemGroup=Pc,process.env.NODE_ENV!=="production"&&(aa.displayName="Menu");const kE=aa,l5=e=>{const{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:o}=e,i=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${i}`]:{[`&${i}-danger:not(${i}-disabled)`]:{color:r,"&:hover":{color:o,backgroundColor:r}}}}}},s5=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:o,sizePopupArrow:i,antCls:a,iconCls:l,motionDurationMid:c,paddingBlock:u,fontSize:d,dropdownEdgeChildPadding:f,colorTextDisabled:m,fontSizeIcon:p,controlPaddingHorizontal:h,colorBgElevated:b}=e;return[{[t]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:e.calc(i).div(2).sub(o).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${a}-btn`]:{[`& > ${l}-down, & > ${a}-btn-icon > ${l}-down`]:{fontSize:p}},[`${t}-wrap`]:{position:"relative",[`${a}-btn > ${l}-down`]:{fontSize:p},[`${l}-down::before`]:{transition:`transform ${c}`}},[`${t}-wrap-open`]:{[`${l}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomLeft,
|
|
253
|
+
&${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomLeft,
|
|
254
|
+
&${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottom,
|
|
255
|
+
&${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottom,
|
|
256
|
+
&${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomRight,
|
|
257
|
+
&${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:Wf},[`&${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topLeft,
|
|
258
|
+
&${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topLeft,
|
|
259
|
+
&${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-top,
|
|
260
|
+
&${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-top,
|
|
261
|
+
&${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topRight,
|
|
262
|
+
&${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topRight`]:{animationName:qf},[`&${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomLeft,
|
|
263
|
+
&${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottom,
|
|
264
|
+
&${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:Kf},[`&${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topLeft,
|
|
265
|
+
&${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-top,
|
|
266
|
+
&${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topRight`]:{animationName:Uf}}},Gm(e,b,{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({},Ht(e)),{[n]:Object.assign(Object.assign({padding:f,listStyleType:"none",backgroundColor:b,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},Ir(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${U(u)} ${U(h)}`,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:`${U(u)} ${U(h)}`,color:e.colorText,fontWeight:"normal",fontSize:d,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${c}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},Ir(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:m,cursor:"not-allowed","&:hover":{color:m,backgroundColor:b,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${U(e.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorIcon,fontSize:p,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${U(e.marginXS)}`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(h).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:b,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})})},[Fo(e,"slide-up"),Fo(e,"slide-down"),nc(e,"move-up"),nc(e,"move-down"),nl(e,"zoom-big")]]},c5=Dt("Dropdown",e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:o}=e,i=xt(e,{menuCls:`${o}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[s5(i),l5(i)]},e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},wc({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),Um(e)),{resetStyle:!1}),Rc=e=>{var t;const{menu:n,arrow:r,prefixCls:o,children:i,trigger:a,disabled:l,dropdownRender:c,popupRender:u,getPopupContainer:d,overlayClassName:f,rootClassName:m,overlayStyle:p,open:h,onOpenChange:b,visible:v,onVisibleChange:y,mouseEnterDelay:C=.15,mouseLeaveDelay:x=.1,autoAdjustOverflow:E=!0,placement:S="",overlay:$,transitionName:O,destroyOnHidden:I,destroyPopupOnHide:w}=e,{getPopupContainer:N,getPrefixCls:_,direction:P,dropdown:M}=s.useContext(Xe),D=u||c,T=gt("Dropdown");process.env.NODE_ENV!=="production"&&(Object.entries({visible:"open",onVisibleChange:"onOpenChange",overlay:"menu",dropdownRender:"popupRender",destroyPopupOnHide:"destroyOnHidden"}).forEach(he=>{let[fe,ie]=he;T.deprecated(!(fe in e),fe,ie)}),S.includes("Center")&&T.deprecated(!S.includes("Center"),`placement: ${S}`,`placement: ${S.slice(0,S.indexOf("Center"))}`));const A=s.useMemo(()=>{const le=_();return O!==void 0?O:S.includes("top")?`${le}-slide-down`:`${le}-slide-up`},[_,S,O]),R=s.useMemo(()=>S?S.includes("Center")?S.slice(0,S.indexOf("Center")):S:P==="rtl"?"bottomRight":"bottomLeft",[S,P]),L=_("dropdown",o),j=On(L),[z,B,K]=c5(L,j),[,W]=Hn(),k=s.Children.only(s8(i)?s.createElement("span",null,i):i),V=Gn(k,{className:G(`${L}-trigger`,{[`${L}-rtl`]:P==="rtl"},k.props.className),disabled:(t=k.props.disabled)!==null&&t!==void 0?t:l}),Q=l?[]:a,J=!!(Q!=null&&Q.includes("contextMenu")),[Y,te]=ln(!1,{value:h!=null?h:v}),oe=qt(le=>{b==null||b(le,{source:"trigger"}),y==null||y(le),te(le)}),X=G(f,m,B,K,j,M==null?void 0:M.className,{[`${L}-rtl`]:P==="rtl"}),F=Jx({arrowPointAtCenter:typeof r=="object"&&r.pointAtCenter,autoAdjustOverflow:E,offset:W.marginXXS,arrowWidth:r?W.sizePopupArrow:0,borderRadius:W.borderRadius}),ee=s.useCallback(()=>{n!=null&&n.selectable&&(n!=null&&n.multiple)||(b==null||b(!1,{source:"menu"}),te(!1))},[n==null?void 0:n.selectable,n==null?void 0:n.multiple]),Z=()=>{let le;return n!=null&&n.items?le=s.createElement(kE,Object.assign({},n)):typeof $=="function"?le=$():le=$,D&&(le=D(le)),le=s.Children.only(typeof le=="string"?s.createElement("span",null,le):le),s.createElement(DE,{prefixCls:`${L}-menu`,rootClassName:G(K,j),expandIcon:s.createElement("span",{className:`${L}-menu-submenu-arrow`},P==="rtl"?s.createElement(Da,{className:`${L}-menu-submenu-arrow-icon`}):s.createElement(Aa,{className:`${L}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:ee,validator:he=>{let{mode:fe}=he;process.env.NODE_ENV!=="production"&&T(!fe||fe==="vertical","usage",`mode="${fe}" is not supported for Dropdown's Menu.`)}},le)},[ne,re]=ki("Dropdown",p==null?void 0:p.zIndex);let se=s.createElement(aE,Object.assign({alignPoint:J},tn(e,["rootClassName"]),{mouseEnterDelay:C,mouseLeaveDelay:x,visible:Y,builtinPlacements:F,arrow:!!r,overlayClassName:X,prefixCls:L,getPopupContainer:d||N,transitionName:A,trigger:Q,overlay:Z,placement:R,onVisibleChange:oe,overlayStyle:Object.assign(Object.assign(Object.assign({},M==null?void 0:M.style),p),{zIndex:ne}),autoDestroy:I!=null?I:w}),V);return ne&&(se=s.createElement(Ja.Provider,{value:re},se)),z(se)},u5=US(Rc,"align",void 0,"dropdown",e=>e),d5=e=>s.createElement(u5,Object.assign({},e),s.createElement("span",null));Rc._InternalPanelDoNotUseOrYouWillBeFired=d5,process.env.NODE_ENV!=="production"&&(Rc.displayName="Dropdown");const FE=Rc,HE=s.createContext(null),f5=HE.Provider,VE=s.createContext(null),m5=VE.Provider;var p5=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],WE=g.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-checkbox":n,o=e.className,i=e.style,a=e.checked,l=e.disabled,c=e.defaultChecked,u=c===void 0?!1:c,d=e.type,f=d===void 0?"checkbox":d,m=e.title,p=e.onChange,h=tt(e,p5),b=g.useRef(null),v=g.useRef(null),y=ln(u,{value:a}),C=ae(y,2),x=C[0],E=C[1];g.useImperativeHandle(t,function(){return{focus:function(I){var w;(w=b.current)===null||w===void 0||w.focus(I)},blur:function(){var I;(I=b.current)===null||I===void 0||I.blur()},input:b.current,nativeElement:v.current}});var S=G(r,o,H(H({},"".concat(r,"-checked"),x),"".concat(r,"-disabled"),l)),$=function(I){l||("checked"in e||E(I.target.checked),p==null||p({target:q(q({},e),{},{type:f,checked:I.target.checked}),stopPropagation:function(){I.stopPropagation()},preventDefault:function(){I.preventDefault()},nativeEvent:I.nativeEvent}))};return s.createElement("span",{className:S,title:m,style:i,ref:v},s.createElement("input",ce({},h,{className:"".concat(r,"-input"),ref:b,onChange:$,disabled:l,checked:!!x,type:f})),s.createElement("span",{className:"".concat(r,"-inner")}))});function KE(e){const t=g.useRef(null),n=()=>{Rt.cancel(t.current),t.current=null};return[()=>{n(),t.current=Rt(()=>{t.current=null})},i=>{t.current&&(i.stopPropagation(),n()),e==null||e(i)}]}const v5=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return{[r]:Object.assign(Object.assign({},Ht(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"}})}},g5=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,radioSize:o,motionDurationSlow:i,motionDurationMid:a,motionEaseInOutCirc:l,colorBgContainer:c,colorBorder:u,lineWidth:d,colorBgContainerDisabled:f,colorTextDisabled:m,paddingXS:p,dotColorDisabled:h,lineType:b,radioColor:v,radioBgColor:y,calc:C}=e,x=`${t}-inner`,E=4,S=C(o).sub(C(E).mul(2)),$=C(1).mul(o).equal({unit:!0});return{[`${t}-wrapper`]:Object.assign(Object.assign({},Ht(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:`${U(d)} ${b} ${r}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[t]:Object.assign(Object.assign({},Ht(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &,
|
|
267
|
+
&:hover ${x}`]:{borderColor:r},[`${t}-input:focus-visible + ${x}`]:Object.assign({},Br(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:$,height:$,marginBlockStart:C(1).mul(o).div(-2).equal({unit:!0}),marginInlineStart:C(1).mul(o).div(-2).equal({unit:!0}),backgroundColor:v,borderBlockStart:0,borderInlineStart:0,borderRadius:$,transform:"scale(0)",opacity:0,transition:`all ${i} ${l}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:$,height:$,backgroundColor:c,borderColor:u,borderStyle:"solid",borderWidth:d,borderRadius:"50%",transition:`all ${a}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[x]:{borderColor:r,backgroundColor:y,"&::after":{transform:`scale(${e.calc(e.dotSize).div(o).equal()})`,opacity:1,transition:`all ${i} ${l}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[x]:{backgroundColor:f,borderColor:u,cursor:"not-allowed","&::after":{backgroundColor:h}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:m,cursor:"not-allowed"},[`&${t}-checked`]:{[x]:{"&::after":{transform:`scale(${C(S).div(o).equal()})`}}}},[`span${t} + *`]:{paddingInlineStart:p,paddingInlineEnd:p}})}},h5=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:o,lineType:i,colorBorder:a,motionDurationSlow:l,motionDurationMid:c,buttonPaddingInline:u,fontSize:d,buttonBg:f,fontSizeLG:m,controlHeightLG:p,controlHeightSM:h,paddingXS:b,borderRadius:v,borderRadiusSM:y,borderRadiusLG:C,buttonCheckedBg:x,buttonSolidCheckedColor:E,colorTextDisabled:S,colorBgContainerDisabled:$,buttonCheckedBgDisabled:O,buttonCheckedColorDisabled:I,colorPrimary:w,colorPrimaryHover:N,colorPrimaryActive:_,buttonSolidCheckedBg:P,buttonSolidCheckedHoverBg:M,buttonSolidCheckedActiveBg:D,calc:T}=e;return{[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:u,paddingBlock:0,color:t,fontSize:d,lineHeight:U(T(n).sub(T(o).mul(2)).equal()),background:f,border:`${U(o)} ${i} ${a}`,borderBlockStartWidth:T(o).add(.02).equal(),borderInlineStartWidth:0,borderInlineEndWidth:o,cursor:"pointer",transition:[`color ${c}`,`background ${c}`,`box-shadow ${c}`].join(","),a:{color:t},[`> ${r}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:T(o).mul(-1).equal(),insetInlineStart:T(o).mul(-1).equal(),display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:o,paddingInline:0,backgroundColor:a,transition:`background-color ${l}`,content:'""'}},"&:first-child":{borderInlineStart:`${U(o)} ${i} ${a}`,borderStartStartRadius:v,borderEndStartRadius:v},"&:last-child":{borderStartEndRadius:v,borderEndEndRadius:v},"&:first-child:last-child":{borderRadius:v},[`${r}-group-large &`]:{height:p,fontSize:m,lineHeight:U(T(p).sub(T(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:C,borderEndStartRadius:C},"&:last-child":{borderStartEndRadius:C,borderEndEndRadius:C}},[`${r}-group-small &`]:{height:h,paddingInline:T(b).sub(o).equal(),paddingBlock:0,lineHeight:U(T(h).sub(T(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:y,borderEndStartRadius:y},"&:last-child":{borderStartEndRadius:y,borderEndEndRadius:y}},"&:hover":{position:"relative",color:w},"&:has(:focus-visible)":Object.assign({},Br(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:x,borderColor:w,"&::before":{backgroundColor:w},"&:first-child":{borderColor:w},"&:hover":{color:N,borderColor:N,"&::before":{backgroundColor:N}},"&:active":{color:_,borderColor:_,"&::before":{backgroundColor:_}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:E,background:P,borderColor:P,"&:hover":{color:E,background:M,borderColor:M},"&:active":{color:E,background:D,borderColor:D}},"&-disabled":{color:S,backgroundColor:$,borderColor:a,cursor:"not-allowed","&:first-child, &:hover":{color:S,backgroundColor:$,borderColor:a}},[`&-disabled${r}-button-wrapper-checked`]:{color:I,backgroundColor:O,borderColor:a,boxShadow:"none"},"&-block":{flex:1,textAlign:"center"}}}},qE=Dt("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${U(n)} ${t}`,i=xt(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return[v5(i),g5(i),h5(i)]},e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:o,fontSizeLG:i,colorText:a,colorBgContainer:l,colorTextDisabled:c,controlItemBgActiveDisabled:u,colorTextLightSolid:d,colorPrimary:f,colorPrimaryHover:m,colorPrimaryActive:p,colorWhite:h}=e,b=4,v=i,y=t?v-b*2:v-(b+o)*2;return{radioSize:v,dotSize:y,dotColorDisabled:c,buttonSolidCheckedColor:d,buttonSolidCheckedBg:f,buttonSolidCheckedHoverBg:m,buttonSolidCheckedActiveBg:p,buttonBg:l,buttonCheckedBg:l,buttonColor:a,buttonCheckedBgDisabled:u,buttonCheckedColorDisabled:c,buttonPaddingInline:n-o,wrapperMarginInlineEnd:r,radioColor:t?f:h,radioBgColor:t?l:f}},{unitless:{radioSize:!0,dotSize:!0}});var b5=globalThis&&globalThis.__rest||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 y5=(e,t)=>{var n,r;const o=s.useContext(HE),i=s.useContext(VE),{getPrefixCls:a,direction:l,radio:c}=s.useContext(Xe),u=s.useRef(null),d=Wn(t,u),{isFormItemInput:f}=s.useContext(Xn);if(process.env.NODE_ENV!=="production"){const A=gt("Radio");process.env.NODE_ENV!=="production"&&A(!("optionType"in e),"usage","`optionType` is only support in Radio.Group.")}const m=A=>{var R,L;(R=e.onChange)===null||R===void 0||R.call(e,A),(L=o==null?void 0:o.onChange)===null||L===void 0||L.call(o,A)},{prefixCls:p,className:h,rootClassName:b,children:v,style:y,title:C}=e,x=b5(e,["prefixCls","className","rootClassName","children","style","title"]),E=a("radio",p),S=((o==null?void 0:o.optionType)||i)==="button",$=S?`${E}-button`:E,O=On(E),[I,w,N]=qE(E,O),_=Object.assign({},x),P=s.useContext(oo);o&&(_.name=o.name,_.onChange=m,_.checked=e.value===o.value,_.disabled=(n=_.disabled)!==null&&n!==void 0?n:o.disabled),_.disabled=(r=_.disabled)!==null&&r!==void 0?r:P;const M=G(`${$}-wrapper`,{[`${$}-wrapper-checked`]:_.checked,[`${$}-wrapper-disabled`]:_.disabled,[`${$}-wrapper-rtl`]:l==="rtl",[`${$}-wrapper-in-form-item`]:f,[`${$}-wrapper-block`]:!!(o!=null&&o.block)},c==null?void 0:c.className,h,b,w,N,O),[D,T]=KE(_.onClick);return I(s.createElement(tl,{component:"Radio",disabled:_.disabled},s.createElement("label",{className:M,style:Object.assign(Object.assign({},c==null?void 0:c.style),y),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:C,onClick:D},s.createElement(WE,Object.assign({},_,{className:G(_.className,{[Js]:!S}),type:"radio",prefixCls:$,ref:d,onClick:T})),v!==void 0?s.createElement("span",{className:`${$}-label`},v):null)))},UE=s.forwardRef(y5);process.env.NODE_ENV!=="production"&&(UE.displayName="Radio");const jc=UE,C5=s.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=s.useContext(Xe),o=uc(),{prefixCls:i,className:a,rootClassName:l,options:c,buttonStyle:u="outline",disabled:d,children:f,size:m,style:p,id:h,optionType:b,name:v=o,defaultValue:y,value:C,block:x=!1,onChange:E,onMouseEnter:S,onMouseLeave:$,onFocus:O,onBlur:I}=e,[w,N]=ln(y,{value:C}),_=s.useCallback(K=>{const W=w,k=K.target.value;"value"in e||N(k),k!==W&&(E==null||E(K))},[w,N,E]),P=n("radio",i),M=`${P}-group`,D=On(P),[T,A,R]=qE(P,D);let L=f;c&&c.length>0&&(L=c.map(K=>typeof K=="string"||typeof K=="number"?s.createElement(jc,{key:K.toString(),prefixCls:P,disabled:d,value:K,checked:w===K},K):s.createElement(jc,{key:`radio-group-value-options-${K.value}`,prefixCls:P,disabled:K.disabled||d,value:K.value,checked:w===K.value,title:K.title,style:K.style,className:K.className,id:K.id,required:K.required},K.label)));const j=qn(m),z=G(M,`${M}-${u}`,{[`${M}-${j}`]:j,[`${M}-rtl`]:r==="rtl",[`${M}-block`]:x},a,l,A,R,D),B=s.useMemo(()=>({onChange:_,value:w,disabled:d,name:v,optionType:b,block:x}),[_,w,d,v,b,x]);return T(s.createElement("div",Object.assign({},Rn(e,{aria:!0,data:!0}),{className:z,style:p,onMouseEnter:S,onMouseLeave:$,onFocus:O,onBlur:I,id:h,ref:t}),s.createElement(f5,{value:B},L)))}),S5=s.memo(C5);var x5=globalThis&&globalThis.__rest||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 E5=(e,t)=>{const{getPrefixCls:n}=s.useContext(Xe),{prefixCls:r}=e,o=x5(e,["prefixCls"]),i=n("radio",r);return s.createElement(m5,{value:"button"},s.createElement(jc,Object.assign({prefixCls:i},o,{type:"radio",ref:t})))},$5=s.forwardRef(E5),Lc=jc;Lc.Button=$5,Lc.Group=S5,Lc.__ANT_RADIO=!0;const br=Lc;function xl(e){return xt(e,{inputAffixPadding:e.paddingXXS})}const El=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:i,controlHeightLG:a,fontSizeLG:l,lineHeightLG:c,paddingSM:u,controlPaddingHorizontalSM:d,controlPaddingHorizontal:f,colorFillAlter:m,colorPrimaryHover:p,colorPrimary:h,controlOutlineWidth:b,controlOutline:v,colorErrorOutline:y,colorWarningOutline:C,colorBgContainer:x,inputFontSize:E,inputFontSizeLG:S,inputFontSizeSM:$}=e,O=E||n,I=$||O,w=S||l,N=Math.round((t-O*r)/2*10)/10-o,_=Math.round((i-I*r)/2*10)/10-o,P=Math.ceil((a-w*c)/2*10)/10-o;return{paddingBlock:Math.max(N,0),paddingBlockSM:Math.max(_,0),paddingBlockLG:Math.max(P,0),paddingInline:u-o,paddingInlineSM:d-o,paddingInlineLG:f-o,addonBg:m,activeBorderColor:h,hoverBorderColor:p,activeShadow:`0 0 0 ${b}px ${v}`,errorActiveShadow:`0 0 0 ${b}px ${y}`,warningActiveShadow:`0 0 0 ${b}px ${C}`,hoverBg:x,activeBg:x,inputFontSize:O,inputFontSizeLG:w,inputFontSizeSM:I}},w5=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),zc=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({},w5(xt(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),dp=(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}}),GE=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},dp(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),O5=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},dp(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},zc(e))}),GE(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),GE(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),XE=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),N5=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${U(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},XE(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),XE(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},zc(e))}})}),I5=(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)}},QE=(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}}},YE=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},QE(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),_5=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},QE(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},zc(e))}),YE(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),YE(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),JE=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),T5=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary},[`${e.componentCls}-filled:not(:focus):not(:focus-within)`]:{"&:not(:first-child)":{borderInlineStart:`${U(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&:not(:last-child)":{borderInlineEnd:`${U(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}}}},JE(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),JE(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:`${U(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${U(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${U(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${U(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${U(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${U(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),ZE=(e,t)=>({background:e.colorBgContainer,borderWidth:`${U(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.borderColor} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${t.borderColor} transparent`,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:`transparent transparent ${t.borderColor} transparent`,outline:0,backgroundColor:e.activeBg}}),e1=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},ZE(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`}}),P5=(e,t)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ZE(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"}}),e1(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),e1(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),M5=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),t1=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:o}=e;return{padding:`${U(t)} ${U(o)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},fp=e=>({padding:`${U(e.paddingBlockSM)} ${U(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),mp=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${U(e.paddingBlock)} ${U(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},M5(e.colorTextPlaceholder)),{"&-lg":Object.assign({},t1(e)),"&-sm":Object.assign({},fp(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),D5=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({},t1(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},fp(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 ${U(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${U(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${U(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:`${U(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${n}-cascader-picker`]:{margin:`-9px ${U(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"},xo()),{[`${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},[`
|
|
268
|
+
& > ${t}-affix-wrapper,
|
|
269
|
+
& > ${t}-number-affix-wrapper,
|
|
270
|
+
& > ${n}-picker-range
|
|
271
|
+
`]:{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,
|
|
272
|
+
& > ${n}-select-auto-complete ${t},
|
|
273
|
+
& > ${n}-cascader-picker ${t},
|
|
274
|
+
& > ${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,
|
|
275
|
+
& > ${n}-select:first-child > ${n}-select-selector,
|
|
276
|
+
& > ${n}-select-auto-complete:first-child ${t},
|
|
277
|
+
& > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
|
|
278
|
+
& > ${n}-select:last-child > ${n}-select-selector,
|
|
279
|
+
& > ${n}-cascader-picker:last-child ${t},
|
|
280
|
+
& > ${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}}}})}},A5=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:o}=e,i=16,a=o(n).sub(o(r).mul(2)).sub(i).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ht(e)),mp(e)),O5(e)),_5(e)),I5(e)),P5(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:a,paddingBottom:a}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:"none"}})}},R5=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 ${U(e.inputAffixPadding)}`}}}},j5=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:i,colorIconHover:a,iconCls:l}=e,c=`${t}-affix-wrapper`,u=`${t}-affix-wrapper-disabled`;return{[c]:Object.assign(Object.assign(Object.assign(Object.assign({},mp(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}}}),R5(e)),{[`${l}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:a}}}),[`${t}-underlined`]:{borderRadius:0},[u]:{[`${l}${t}-password-icon`]:{color:i,cursor:"not-allowed","&:hover":{color:i}}}}},L5=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},Ht(e)),D5(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}}},N5(e)),T5(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}}})})}},z5=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[t]:{"&:hover, &:focus":{[`+ ${t}-group-addon ${r}-button:not(${n}-btn-primary)`]:{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-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd: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,
|
|
281
|
+
> ${t},
|
|
282
|
+
${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},B5=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},n1=Dt(["Input","Shared"],e=>{const t=xt(e,xl(e));return[A5(t),j5(t)]},El,{resetFont:!1}),r1=Dt(["Input","Component"],e=>{const t=xt(e,xl(e));return[L5(t),z5(t),B5(t),Qf(t)]},El,{resetFont:!1}),Bc=g.createContext(null);var k5=function(t){var n=t.activeTabOffset,r=t.horizontal,o=t.rtl,i=t.indicator,a=i===void 0?{}:i,l=a.size,c=a.align,u=c===void 0?"center":c,d=g.useState(),f=ae(d,2),m=f[0],p=f[1],h=g.useRef(),b=g.useCallback(function(y){return typeof l=="function"?l(y):typeof l=="number"?l:y},[l]);function v(){Rt.cancel(h.current)}return g.useEffect(function(){var y={};if(n)if(r){y.width=b(n.width);var C=o?"right":"left";u==="start"&&(y[C]=n[C]),u==="center"&&(y[C]=n[C]+n.width/2,y.transform=o?"translateX(50%)":"translateX(-50%)"),u==="end"&&(y[C]=n[C]+n.width,y.transform="translateX(-100%)")}else y.height=b(n.height),u==="start"&&(y.top=n.top),u==="center"&&(y.top=n.top+n.height/2,y.transform="translateY(-50%)"),u==="end"&&(y.top=n.top+n.height,y.transform="translateY(-100%)");return v(),h.current=Rt(function(){var x=m&&y&&Object.keys(y).every(function(E){var S=y[E],$=m[E];return typeof S=="number"&&typeof $=="number"?Math.round(S)===Math.round($):S===$});x||p(y)}),v},[JSON.stringify(n),r,o,u,b]),{style:m}},o1={width:0,height:0,left:0,top:0};function F5(e,t,n){return g.useMemo(function(){for(var r,o=new Map,i=t.get((r=e[0])===null||r===void 0?void 0:r.key)||o1,a=i.left+i.width,l=0;l<e.length;l+=1){var c=e[l].key,u=t.get(c);if(!u){var d;u=t.get((d=e[l-1])===null||d===void 0?void 0:d.key)||o1}var f=o.get(c)||q({},u);f.right=a-f.left-f.width,o.set(c,f)}return o},[e.map(function(r){return r.key}).join("_"),t,n])}function i1(e,t){var n=s.useRef(e),r=s.useState({}),o=ae(r,2),i=o[1];function a(l){var c=typeof l=="function"?l(n.current):l;c!==n.current&&t(c,n.current),n.current=c,i({})}return[n.current,a]}var H5=.1,a1=.01,kc=20,l1=Math.pow(.995,kc);function V5(e,t){var n=g.useState(),r=ae(n,2),o=r[0],i=r[1],a=g.useState(0),l=ae(a,2),c=l[0],u=l[1],d=g.useState(0),f=ae(d,2),m=f[0],p=f[1],h=g.useState(),b=ae(h,2),v=b[0],y=b[1],C=g.useRef();function x(w){var N=w.touches[0],_=N.screenX,P=N.screenY;i({x:_,y:P}),window.clearInterval(C.current)}function E(w){if(o){var N=w.touches[0],_=N.screenX,P=N.screenY;i({x:_,y:P});var M=_-o.x,D=P-o.y;t(M,D);var T=Date.now();u(T),p(T-c),y({x:M,y:D})}}function S(){if(o&&(i(null),y(null),v)){var w=v.x/m,N=v.y/m,_=Math.abs(w),P=Math.abs(N);if(Math.max(_,P)<H5)return;var M=w,D=N;C.current=window.setInterval(function(){if(Math.abs(M)<a1&&Math.abs(D)<a1){window.clearInterval(C.current);return}M*=l1,D*=l1,t(M*kc,D*kc)},kc)}}var $=g.useRef();function O(w){var N=w.deltaX,_=w.deltaY,P=0,M=Math.abs(N),D=Math.abs(_);M===D?P=$.current==="x"?N:_:M>D?(P=N,$.current="x"):(P=_,$.current="y"),t(-P,-P)&&w.preventDefault()}var I=g.useRef(null);I.current={onTouchStart:x,onTouchMove:E,onTouchEnd:S,onWheel:O},s.useEffect(function(){function w(M){I.current.onTouchStart(M)}function N(M){I.current.onTouchMove(M)}function _(M){I.current.onTouchEnd(M)}function P(M){I.current.onWheel(M)}return document.addEventListener("touchmove",N,{passive:!1}),document.addEventListener("touchend",_,{passive:!0}),e.current.addEventListener("touchstart",w,{passive:!0}),e.current.addEventListener("wheel",P,{passive:!1}),function(){document.removeEventListener("touchmove",N),document.removeEventListener("touchend",_)}},[])}function s1(e){var t=g.useState(0),n=ae(t,2),r=n[0],o=n[1],i=g.useRef(0),a=g.useRef();return a.current=e,Yd(function(){var l;(l=a.current)===null||l===void 0||l.call(a)},[r]),function(){i.current===r&&(i.current+=1,o(i.current))}}function W5(e){var t=g.useRef([]),n=g.useState({}),r=ae(n,2),o=r[1],i=g.useRef(typeof e=="function"?e():e),a=s1(function(){var c=i.current;t.current.forEach(function(u){c=u(c)}),t.current=[],i.current=c,o({})});function l(c){t.current.push(c),a()}return[i.current,l]}var c1={width:0,height:0,left:0,top:0,right:0};function K5(e,t,n,r,o,i,a){var l=a.tabs,c=a.tabPosition,u=a.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),g.useMemo(function(){if(!l.length)return[0,0];for(var p=l.length,h=p,b=0;b<p;b+=1){var v=e.get(l[b].key)||c1;if(Math.floor(v[f]+v[d])>Math.floor(m+t)){h=b-1;break}}for(var y=0,C=p-1;C>=0;C-=1){var x=e.get(l[C].key)||c1;if(x[f]<m){y=C+1;break}}return y>=h?[0,0]:[y,h]},[e,t,r,o,i,m,c,l.map(function(p){return p.key}).join("_"),u])}function u1(e){var t;return e instanceof Map?(t={},e.forEach(function(n,r){t[r]=n})):t=e,JSON.stringify(t)}var q5="TABS_DQ";function d1(e){return String(e).replace(/"/g,q5)}function pp(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}var f1=s.forwardRef(function(e,t){var n=e.prefixCls,r=e.editable,o=e.locale,i=e.style;return!r||r.showAdd===!1?null:s.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:i,"aria-label":(o==null?void 0:o.addAriaLabel)||"Add tab",onClick:function(l){r.onEdit("add",{event:l})}},r.addIcon||"+")}),vp=s.forwardRef(function(e,t){var n=e.position,r=e.prefixCls,o=e.extra;if(!o)return null;var i,a={};return He(o)==="object"&&!s.isValidElement(o)?a=o:a.right=o,n==="right"&&(i=a.right),n==="left"&&(i=a.left),i?s.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},i):null});process.env.NODE_ENV!=="production"&&(vp.displayName="ExtraContent");var U5=s.forwardRef(function(e,t){var n=e.prefixCls,r=e.id,o=e.tabs,i=e.locale,a=e.mobile,l=e.more,c=l===void 0?{}:l,u=e.style,d=e.className,f=e.editable,m=e.tabBarGutter,p=e.rtl,h=e.removeAriaLabel,b=e.onTabClick,v=e.getPopupContainer,y=e.popupClassName,C=g.useState(!1),x=ae(C,2),E=x[0],S=x[1],$=g.useState(null),O=ae($,2),I=O[0],w=O[1],N=c.icon,_=N===void 0?"More":N,P="".concat(r,"-more-popup"),M="".concat(n,"-dropdown"),D=I!==null?"".concat(P,"-").concat(I):null,T=i==null?void 0:i.dropdownAriaLabel;function A(W,k){W.preventDefault(),W.stopPropagation(),f.onEdit("remove",{key:k,event:W})}var R=s.createElement(ia,{onClick:function(k){var V=k.key,Q=k.domEvent;b(V,Q),S(!1)},prefixCls:"".concat(M,"-menu"),id:P,tabIndex:-1,role:"listbox","aria-activedescendant":D,selectedKeys:[I],"aria-label":T!==void 0?T:"expanded dropdown"},o.map(function(W){var k=W.closable,V=W.disabled,Q=W.closeIcon,J=W.key,Y=W.label,te=pp(k,Q,f,V);return s.createElement(Cl,{key:J,id:"".concat(P,"-").concat(J),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(J),disabled:V},s.createElement("span",null,Y),te&&s.createElement("button",{type:"button","aria-label":h||"remove",tabIndex:0,className:"".concat(M,"-menu-item-remove"),onClick:function(X){X.stopPropagation(),A(X,J)}},Q||f.removeIcon||"×"))}));function L(W){for(var k=o.filter(function(te){return!te.disabled}),V=k.findIndex(function(te){return te.key===I})||0,Q=k.length,J=0;J<Q;J+=1){V=(V+W+Q)%Q;var Y=k[V];if(!Y.disabled){w(Y.key);return}}}function j(W){var k=W.which;if(!E){[ye.DOWN,ye.SPACE,ye.ENTER].includes(k)&&(S(!0),W.preventDefault());return}switch(k){case ye.UP:L(-1),W.preventDefault();break;case ye.DOWN:L(1),W.preventDefault();break;case ye.ESC:S(!1);break;case ye.SPACE:case ye.ENTER:I!==null&&b(I,W);break}}g.useEffect(function(){var W=document.getElementById(D);W&&W.scrollIntoView&&W.scrollIntoView(!1)},[I]),g.useEffect(function(){E||w(null)},[E]);var z=H({},p?"marginRight":"marginLeft",m);o.length||(z.visibility="hidden",z.order=1);var B=G(H({},"".concat(M,"-rtl"),p)),K=a?null:s.createElement(aE,ce({prefixCls:M,overlay:R,visible:o.length?E:!1,onVisibleChange:S,overlayClassName:G(B,y),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:v},c),s.createElement("button",{type:"button",className:"".concat(n,"-nav-more"),style:z,"aria-haspopup":"listbox","aria-controls":P,id:"".concat(r,"-more"),"aria-expanded":E,onKeyDown:j},_));return s.createElement("div",{className:G("".concat(n,"-nav-operations"),d),style:u,ref:t},K,s.createElement(f1,{prefixCls:n,locale:i,editable:f}))});const G5=s.memo(U5,function(e,t){return t.tabMoving});var X5=function(t){var n=t.prefixCls,r=t.id,o=t.active,i=t.focus,a=t.tab,l=a.key,c=a.label,u=a.disabled,d=a.closeIcon,f=a.icon,m=t.closable,p=t.renderWrapper,h=t.removeAriaLabel,b=t.editable,v=t.onClick,y=t.onFocus,C=t.onBlur,x=t.onKeyDown,E=t.onMouseDown,S=t.onMouseUp,$=t.style,O=t.tabCount,I=t.currentPosition,w="".concat(n,"-tab"),N=pp(m,d,b,u);function _(A){u||v(A)}function P(A){A.preventDefault(),A.stopPropagation(),b.onEdit("remove",{key:l,event:A})}var M=s.useMemo(function(){return f&&typeof c=="string"?s.createElement("span",null,c):c},[c,f]),D=s.useRef(null);s.useEffect(function(){i&&D.current&&D.current.focus()},[i]);var T=s.createElement("div",{key:l,"data-node-key":d1(l),className:G(w,H(H(H(H({},"".concat(w,"-with-remove"),N),"".concat(w,"-active"),o),"".concat(w,"-disabled"),u),"".concat(w,"-focus"),i)),style:$,onClick:_},s.createElement("div",{ref:D,role:"tab","aria-selected":o,id:r&&"".concat(r,"-tab-").concat(l),className:"".concat(w,"-btn"),"aria-controls":r&&"".concat(r,"-panel-").concat(l),"aria-disabled":u,tabIndex:u?null:o?0:-1,onClick:function(R){R.stopPropagation(),_(R)},onKeyDown:x,onMouseDown:E,onMouseUp:S,onFocus:y,onBlur:C},i&&s.createElement("div",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"Tab ".concat(I," of ").concat(O)),f&&s.createElement("span",{className:"".concat(w,"-icon")},f),c&&M),N&&s.createElement("button",{type:"button",role:"tab","aria-label":h||"remove",tabIndex:o?0:-1,className:"".concat(w,"-remove"),onClick:function(R){R.stopPropagation(),P(R)}},d||b.removeIcon||"×"));return p?p(T):T},Q5=function(t,n){var r=t.offsetWidth,o=t.offsetHeight,i=t.offsetTop,a=t.offsetLeft,l=t.getBoundingClientRect(),c=l.width,u=l.height,d=l.left,f=l.top;return Math.abs(c-r)<1?[c,u,d-n.left,f-n.top]:[r,o,a,i]},la=function(t){var n=t.current||{},r=n.offsetWidth,o=r===void 0?0:r,i=n.offsetHeight,a=i===void 0?0:i;if(t.current){var l=t.current.getBoundingClientRect(),c=l.width,u=l.height;if(Math.abs(c-o)<1)return[c,u]}return[o,a]},Fc=function(t,n){return t[n?0:1]},m1=s.forwardRef(function(e,t){var n=e.className,r=e.style,o=e.id,i=e.animated,a=e.activeKey,l=e.rtl,c=e.extra,u=e.editable,d=e.locale,f=e.tabPosition,m=e.tabBarGutter,p=e.children,h=e.onTabClick,b=e.onTabScroll,v=e.indicator,y=s.useContext(Bc),C=y.prefixCls,x=y.tabs,E=g.useRef(null),S=g.useRef(null),$=g.useRef(null),O=g.useRef(null),I=g.useRef(null),w=g.useRef(null),N=g.useRef(null),_=f==="top"||f==="bottom",P=i1(0,function(Be,Re){_&&b&&b({direction:Be>Re?"left":"right"})}),M=ae(P,2),D=M[0],T=M[1],A=i1(0,function(Be,Re){!_&&b&&b({direction:Be>Re?"top":"bottom"})}),R=ae(A,2),L=R[0],j=R[1],z=g.useState([0,0]),B=ae(z,2),K=B[0],W=B[1],k=g.useState([0,0]),V=ae(k,2),Q=V[0],J=V[1],Y=g.useState([0,0]),te=ae(Y,2),oe=te[0],X=te[1],F=g.useState([0,0]),ee=ae(F,2),Z=ee[0],ne=ee[1],re=W5(new Map),se=ae(re,2),le=se[0],he=se[1],fe=F5(x,le,Q[0]),ie=Fc(K,_),ue=Fc(Q,_),de=Fc(oe,_),me=Fc(Z,_),Ce=Math.floor(ie)<Math.floor(ue+de),Oe=Ce?ie-me:ie-de,Te="".concat(C,"-nav-operations-hidden"),je=0,Ne=0;_&&l?(je=0,Ne=Math.max(0,ue-Oe)):(je=Math.min(0,Oe-ue),Ne=0);function Ie(Be){return Be<je?je:Be>Ne?Ne:Be}var xe=g.useRef(null),be=g.useState(),Ee=ae(be,2),$e=Ee[0],_e=Ee[1];function ve(){_e(Date.now())}function Se(){xe.current&&clearTimeout(xe.current)}V5(O,function(Be,Re){function lt(Mt,At){Mt(function(Kt){var an=Ie(Kt+At);return an})}return Ce?(_?lt(T,Be):lt(j,Re),Se(),ve(),!0):!1}),g.useEffect(function(){return Se(),$e&&(xe.current=setTimeout(function(){_e(0)},100)),Se},[$e]);var Je=K5(fe,Oe,_?D:L,ue,de,me,q(q({},e),{},{tabs:x})),it=ae(Je,2),Nt=it[0],Tt=it[1],Gt=qt(function(){var Be=arguments.length>0&&arguments[0]!==void 0?arguments[0]:a,Re=fe.get(Be)||{width:0,height:0,left:0,right:0,top:0};if(_){var lt=D;l?Re.right<D?lt=Re.right:Re.right+Re.width>D+Oe&&(lt=Re.right+Re.width-Oe):Re.left<-D?lt=-Re.left:Re.left+Re.width>-D+Oe&&(lt=-(Re.left+Re.width-Oe)),j(0),T(Ie(lt))}else{var Mt=L;Re.top<-L?Mt=-Re.top:Re.top+Re.height>-L+Oe&&(Mt=-(Re.top+Re.height-Oe)),T(0),j(Ie(Mt))}}),st=g.useState(),Pt=ae(st,2),pt=Pt[0],et=Pt[1],ke=g.useState(!1),Me=ae(ke,2),Pe=Me[0],at=Me[1],ct=x.filter(function(Be){return!Be.disabled}).map(function(Be){return Be.key}),Le=function(Re){var lt=ct.indexOf(pt||a),Mt=ct.length,At=(lt+Re+Mt)%Mt,Kt=ct[At];et(Kt)},we=function(Re){var lt=Re.code,Mt=l&&_,At=ct[0],Kt=ct[ct.length-1];switch(lt){case"ArrowLeft":{_&&Le(Mt?1:-1);break}case"ArrowRight":{_&&Le(Mt?-1:1);break}case"ArrowUp":{Re.preventDefault(),_||Le(-1);break}case"ArrowDown":{Re.preventDefault(),_||Le(1);break}case"Home":{Re.preventDefault(),et(At);break}case"End":{Re.preventDefault(),et(Kt);break}case"Enter":case"Space":{Re.preventDefault(),h(pt!=null?pt:a,Re);break}case"Backspace":case"Delete":{var an=ct.indexOf(pt),Ut=x.find(function(ft){return ft.key===pt}),Ye=pp(Ut==null?void 0:Ut.closable,Ut==null?void 0:Ut.closeIcon,u,Ut==null?void 0:Ut.disabled);Ye&&(Re.preventDefault(),Re.stopPropagation(),u.onEdit("remove",{key:pt,event:Re}),an===ct.length-1?Le(-1):Le(1));break}}},ze={};_?ze[l?"marginRight":"marginLeft"]=m:ze.marginTop=m;var Fe=x.map(function(Be,Re){var lt=Be.key;return s.createElement(X5,{id:o,prefixCls:C,key:lt,tab:Be,style:Re===0?void 0:ze,closable:Be.closable,editable:u,active:lt===a,focus:lt===pt,renderWrapper:p,removeAriaLabel:d==null?void 0:d.removeAriaLabel,tabCount:ct.length,currentPosition:Re+1,onClick:function(At){h(lt,At)},onKeyDown:we,onFocus:function(){Pe||et(lt),Gt(lt),ve(),O.current&&(l||(O.current.scrollLeft=0),O.current.scrollTop=0)},onBlur:function(){et(void 0)},onMouseDown:function(){at(!0)},onMouseUp:function(){at(!1)}})}),Ve=function(){return he(function(){var Re,lt=new Map,Mt=(Re=I.current)===null||Re===void 0?void 0:Re.getBoundingClientRect();return x.forEach(function(At){var Kt,an=At.key,Ut=(Kt=I.current)===null||Kt===void 0?void 0:Kt.querySelector('[data-node-key="'.concat(d1(an),'"]'));if(Ut){var Ye=Q5(Ut,Mt),ft=ae(Ye,4),Lt=ft[0],Sn=ft[1],mn=ft[2],zn=ft[3];lt.set(an,{width:Lt,height:Sn,left:mn,top:zn})}}),lt})};g.useEffect(function(){Ve()},[x.map(function(Be){return Be.key}).join("_")]);var Ze=s1(function(){var Be=la(E),Re=la(S),lt=la($);W([Be[0]-Re[0]-lt[0],Be[1]-Re[1]-lt[1]]);var Mt=la(N);X(Mt);var At=la(w);ne(At);var Kt=la(I);J([Kt[0]-Mt[0],Kt[1]-Mt[1]]),Ve()}),Ot=x.slice(0,Nt),Ae=x.slice(Tt+1),Qe=[].concat(ge(Ot),ge(Ae)),nt=fe.get(a),ot=k5({activeTabOffset:nt,horizontal:_,indicator:v,rtl:l}),ht=ot.style;g.useEffect(function(){Gt()},[a,je,Ne,u1(nt),u1(fe),_]),g.useEffect(function(){Ze()},[l]);var jt=!!Qe.length,Wt="".concat(C,"-nav-wrap"),Ct,en,De,Ke;return _?l?(en=D>0,Ct=D!==Ne):(Ct=D<0,en=D!==je):(De=L<0,Ke=L!==je),s.createElement(Kn,{onResize:Ze},s.createElement("div",{ref:Jr(t,E),role:"tablist","aria-orientation":_?"horizontal":"vertical",className:G("".concat(C,"-nav"),n),style:r,onKeyDown:function(){ve()}},s.createElement(vp,{ref:S,position:"left",extra:c,prefixCls:C}),s.createElement(Kn,{onResize:Ze},s.createElement("div",{className:G(Wt,H(H(H(H({},"".concat(Wt,"-ping-left"),Ct),"".concat(Wt,"-ping-right"),en),"".concat(Wt,"-ping-top"),De),"".concat(Wt,"-ping-bottom"),Ke)),ref:O},s.createElement(Kn,{onResize:Ze},s.createElement("div",{ref:I,className:"".concat(C,"-nav-list"),style:{transform:"translate(".concat(D,"px, ").concat(L,"px)"),transition:$e?"none":void 0}},Fe,s.createElement(f1,{ref:N,prefixCls:C,locale:d,editable:u,style:q(q({},Fe.length===0?void 0:ze),{},{visibility:jt?"hidden":null})}),s.createElement("div",{className:G("".concat(C,"-ink-bar"),H({},"".concat(C,"-ink-bar-animated"),i.inkBar)),style:ht}))))),s.createElement(G5,ce({},e,{removeAriaLabel:d==null?void 0:d.removeAriaLabel,ref:w,prefixCls:C,tabs:Qe,className:!jt&&Te,tabMoving:!!$e})),s.createElement(vp,{ref:$,position:"right",extra:c,prefixCls:C})))}),gp=s.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,i=e.id,a=e.active,l=e.tabKey,c=e.children;return s.createElement("div",{id:i&&"".concat(i,"-panel-").concat(l),role:"tabpanel",tabIndex:a?0:-1,"aria-labelledby":i&&"".concat(i,"-tab-").concat(l),"aria-hidden":!a,style:o,className:G(n,a&&"".concat(n,"-active"),r),ref:t},c)});process.env.NODE_ENV!=="production"&&(gp.displayName="TabPane");var Y5=["renderTabBar"],J5=["label","key"],p1=function(t){var n=t.renderTabBar,r=tt(t,Y5),o=s.useContext(Bc),i=o.tabs;if(n){var a=q(q({},r),{},{panes:i.map(function(l){var c=l.label,u=l.key,d=tt(l,J5);return s.createElement(gp,ce({tab:c,key:u,tabKey:u},d))})});return n(a,m1)}return s.createElement(m1,r)};process.env.NODE_ENV!=="production"&&(p1.displayName="TabNavListWrapper");var Z5=["key","forceRender","style","className","destroyInactiveTabPane"],ek=function(t){var n=t.id,r=t.activeKey,o=t.animated,i=t.tabPosition,a=t.destroyInactiveTabPane,l=s.useContext(Bc),c=l.prefixCls,u=l.tabs,d=o.tabPane,f="".concat(c,"-tabpane");return s.createElement("div",{className:G("".concat(c,"-content-holder"))},s.createElement("div",{className:G("".concat(c,"-content"),"".concat(c,"-content-").concat(i),H({},"".concat(c,"-content-animated"),d))},u.map(function(m){var p=m.key,h=m.forceRender,b=m.style,v=m.className,y=m.destroyInactiveTabPane,C=tt(m,Z5),x=p===r;return s.createElement(cr,ce({key:p,visible:x,forceRender:h,removeOnLeave:!!(a||y),leavedClassName:"".concat(f,"-hidden")},o.tabPaneMotion),function(E,S){var $=E.style,O=E.className;return s.createElement(gp,ce({},C,{prefixCls:f,id:n,tabKey:p,animated:d,active:x,style:q(q({},b),$),className:G(v,O),ref:S}))})})))};function tk(){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=q({inkBar:!0},He(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(process.env.NODE_ENV!=="production"&&Ge(!1,"`animated.tabPane` is true but `animated.tabPaneMotion` is not provided. Motion will not work."),t.tabPane=!1),t}var nk=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],v1=0,g1=s.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,o=r===void 0?"rc-tabs":r,i=e.className,a=e.items,l=e.direction,c=e.activeKey,u=e.defaultActiveKey,d=e.editable,f=e.animated,m=e.tabPosition,p=m===void 0?"top":m,h=e.tabBarGutter,b=e.tabBarStyle,v=e.tabBarExtraContent,y=e.locale,C=e.more,x=e.destroyInactiveTabPane,E=e.renderTabBar,S=e.onChange,$=e.onTabClick,O=e.onTabScroll,I=e.getPopupContainer,w=e.popupClassName,N=e.indicator,_=tt(e,nk),P=s.useMemo(function(){return(a||[]).filter(function(Z){return Z&&He(Z)==="object"&&"key"in Z})},[a]),M=l==="rtl",D=tk(f),T=g.useState(!1),A=ae(T,2),R=A[0],L=A[1];g.useEffect(function(){L(_m())},[]);var j=ln(function(){var Z;return(Z=P[0])===null||Z===void 0?void 0:Z.key},{value:c,defaultValue:u}),z=ae(j,2),B=z[0],K=z[1],W=g.useState(function(){return P.findIndex(function(Z){return Z.key===B})}),k=ae(W,2),V=k[0],Q=k[1];g.useEffect(function(){var Z=P.findIndex(function(re){return re.key===B});if(Z===-1){var ne;Z=Math.max(0,Math.min(V,P.length-1)),K((ne=P[Z])===null||ne===void 0?void 0:ne.key)}Q(Z)},[P.map(function(Z){return Z.key}).join("_"),B,V]);var J=ln(null,{value:n}),Y=ae(J,2),te=Y[0],oe=Y[1];g.useEffect(function(){n||(oe("rc-tabs-".concat(process.env.NODE_ENV==="test"?"test":v1)),v1+=1)},[]);function X(Z,ne){$==null||$(Z,ne);var re=Z!==B;K(Z),re&&(S==null||S(Z))}var F={id:te,activeKey:B,animated:D,tabPosition:p,rtl:M,mobile:R},ee=q(q({},F),{},{editable:d,locale:y,more:C,tabBarGutter:h,onTabClick:X,onTabScroll:O,extra:v,style:b,panes:null,getPopupContainer:I,popupClassName:w,indicator:N});return s.createElement(Bc.Provider,{value:{tabs:P,prefixCls:o}},s.createElement("div",ce({ref:t,id:n,className:G(o,"".concat(o,"-").concat(p),H(H(H({},"".concat(o,"-mobile"),R),"".concat(o,"-editable"),d),"".concat(o,"-rtl"),M),i)},_),s.createElement(p1,ce({},ee,{renderTabBar:E})),s.createElement(ek,ce({destroyInactiveTabPane:x},F,{animated:D}))))});process.env.NODE_ENV!=="production"&&(g1.displayName="Tabs");const rk={motionAppear:!1,motionEnter:!0,motionLeave:!0};function ok(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},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({},rk),{motionName:ao(e,"switch")})),n}var ik=globalThis&&globalThis.__rest||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 ak(e){return e.filter(t=>t)}function lk(e,t){if(process.env.NODE_ENV!=="production"&>("Tabs").deprecated(!t,"Tabs.TabPane","items"),e)return e.map(r=>{var o;const i=(o=r.destroyOnHidden)!==null&&o!==void 0?o:r.destroyInactiveTabPane;return Object.assign(Object.assign({},r),{destroyInactiveTabPane:i})});const n=Tn(t).map(r=>{if(s.isValidElement(r)){const{key:o,props:i}=r,a=i||{},{tab:l}=a,c=ik(a,["tab"]);return Object.assign(Object.assign({key:String(o)},c),{label:l})}return null});return ak(n)}const sk=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}`}}}}},[Fo(e,"slide-up"),Fo(e,"slide-down")]]},ck=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:o,colorBorderSecondary:i,itemSelectedColor:a}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${U(e.lineWidth)} ${e.lineType} ${i}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:a,background:e.colorBgContainer},[`${t}-tab-focus`]:Object.assign({},Br(e,-3)),[`${t}-ink-bar`]:{visibility:"hidden"},[`& ${t}-tab${t}-tab-focus ${t}-tab-btn`]:{outline:"none"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:U(o)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${U(e.borderRadiusLG)} ${U(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${U(e.borderRadiusLG)} ${U(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:U(o)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${U(e.borderRadiusLG)} 0 0 ${U(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 ${U(e.borderRadiusLG)} ${U(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},uk=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},Ht(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:`${U(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({},So),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${U(e.paddingXXS)} ${U(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"}}})}})}},dk=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:o,verticalItemPadding:i,verticalItemMargin:a,calc:l}=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:`${U(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},
|
|
283
|
+
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,
|
|
284
|
+
> div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:l(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:i,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:a},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:U(l(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${U(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:l(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${U(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},fk=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,cardHeightSM:o,cardHeightLG:i,horizontalItemPaddingSM:a,horizontalItemPaddingLG:l}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:a,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:l,fontSize:e.titleFontSizeLG,lineHeight:e.lineHeightLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n},[`${t}-nav-add`]:{minWidth:o,minHeight:o}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${U(e.borderRadius)} ${U(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${U(e.borderRadius)} ${U(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${U(e.borderRadius)} ${U(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${U(e.borderRadius)} 0 0 ${U(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r},[`${t}-nav-add`]:{minWidth:i,minHeight:i}}}}}},mk=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:o,tabsHorizontalItemMargin:i,horizontalItemPadding:a,itemSelectedColor:l,itemColor:c}=e,u=`${t}-tab`;return{[u]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:a,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:c,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:n}},"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${u}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":Object.assign({flex:"none",marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorIcon,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},Ir(e)),"&:hover":{color:r},[`&${u}-active ${u}-btn`]:{color:l,textShadow:e.tabsActiveTextShadow},[`&${u}-focus ${u}-btn`]:Object.assign({},Br(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},[`${o}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${u} + ${u}`]:{margin:{_skip_check_:!0,value:i}}}},pk=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:o,calc:i}=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:U(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:U(e.marginXS)},marginLeft:{_skip_check_:!0,value:U(i(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"}}}}},vk=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:o,itemHoverColor:i,itemActiveColor:a,colorBorderSecondary:l}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Ht(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:`${U(e.lineWidth)} ${e.lineType} ${l}`,borderRadius:`${U(e.borderRadiusLG)} ${U(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:i},"&:active, &:focus:not(:focus-visible)":{color:a}},Ir(e,-3))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),mk(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:Object.assign(Object.assign({},Ir(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"}}}}}},gk=Dt("Tabs",e=>{const t=xt(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${U(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${U(e.horizontalItemGutter)}`});return[fk(t),pk(t),dk(t),uk(t),ck(t),vk(t),sk(t)]},e=>{const{cardHeight:t,cardHeightSM:n,cardHeightLG:r,controlHeight:o,controlHeightLG:i}=e,a=t||i,l=n||o,c=r||i+8;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:a,cardHeightSM:l,cardHeightLG:c,cardPadding:`${(a-e.fontHeight)/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${(l-e.fontHeight)/2-e.lineWidth}px ${e.paddingXS}px`,cardPaddingLG:`${(c-e.fontHeightLG)/2-e.lineWidth}px ${e.padding}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}}),h1=()=>null;process.env.NODE_ENV!=="production"&&(h1.displayName="DeprecatedTabPane");const hk=h1;var bk=globalThis&&globalThis.__rest||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 hp=e=>{var t,n,r,o,i,a,l,c,u,d,f;const{type:m,className:p,rootClassName:h,size:b,onEdit:v,hideAdd:y,centered:C,addIcon:x,removeIcon:E,moreIcon:S,more:$,popupClassName:O,children:I,items:w,animated:N,style:_,indicatorSize:P,indicator:M,destroyInactiveTabPane:D,destroyOnHidden:T}=e,A=bk(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator","destroyInactiveTabPane","destroyOnHidden"]),{prefixCls:R}=A,{direction:L,tabs:j,getPrefixCls:z,getPopupContainer:B}=s.useContext(Xe),K=z("tabs",R),W=On(K),[k,V,Q]=gk(K,W);let J;m==="editable-card"&&(J={onEdit:(Z,ne)=>{let{key:re,event:se}=ne;v==null||v(Z==="add"?se:re,Z)},removeIcon:(t=E!=null?E:j==null?void 0:j.removeIcon)!==null&&t!==void 0?t:s.createElement($r,null),addIcon:(x!=null?x:j==null?void 0:j.addIcon)||s.createElement(hb,null),showAdd:y!==!0});const Y=z();if(process.env.NODE_ENV!=="production"){const Z=gt("Tabs");process.env.NODE_ENV!=="production"&&Z(!("onPrevClick"in e)&&!("onNextClick"in e),"breaking","`onPrevClick` and `onNextClick` has been removed. Please use `onTabScroll` instead."),process.env.NODE_ENV!=="production"&&Z(!(P||j!=null&&j.indicatorSize),"deprecated","`indicatorSize` has been deprecated. Please use `indicator={{ size: ... }}` instead."),Z.deprecated(!("destroyInactiveTabPane"in e||w!=null&&w.some(ne=>"destroyInactiveTabPane"in ne)),"destroyInactiveTabPane","destroyOnHidden")}const te=qn(b),oe=lk(w,I),X=ok(K,N),F=Object.assign(Object.assign({},j==null?void 0:j.style),_),ee={align:(n=M==null?void 0:M.align)!==null&&n!==void 0?n:(r=j==null?void 0:j.indicator)===null||r===void 0?void 0:r.align,size:(l=(i=(o=M==null?void 0:M.size)!==null&&o!==void 0?o:P)!==null&&i!==void 0?i:(a=j==null?void 0:j.indicator)===null||a===void 0?void 0:a.size)!==null&&l!==void 0?l:j==null?void 0:j.indicatorSize};return k(s.createElement(g1,Object.assign({direction:L,getPopupContainer:B},A,{items:oe,className:G({[`${K}-${te}`]:te,[`${K}-card`]:["card","editable-card"].includes(m),[`${K}-editable-card`]:m==="editable-card",[`${K}-centered`]:C},j==null?void 0:j.className,p,h,V,Q,W),popupClassName:G(O,V,Q,W),style:F,editable:J,more:Object.assign({icon:(f=(d=(u=(c=j==null?void 0:j.more)===null||c===void 0?void 0:c.icon)!==null&&u!==void 0?u:j==null?void 0:j.moreIcon)!==null&&d!==void 0?d:S)!==null&&f!==void 0?f:s.createElement(jd,null),transitionName:`${Y}-slide-up`},$),prefixCls:K,animated:X,indicator:ee,destroyInactiveTabPane:T!=null?T:D})))};hp.TabPane=hk,process.env.NODE_ENV!=="production"&&(hp.displayName="Tabs");const bp=hp;var yk=globalThis&&globalThis.__rest||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 b1=e=>{var{prefixCls:t,className:n,hoverable:r=!0}=e,o=yk(e,["prefixCls","className","hoverable"]);const{getPrefixCls:i}=s.useContext(Xe),a=i("card",t),l=G(`${a}-grid`,n,{[`${a}-grid-hoverable`]:r});return s.createElement("div",Object.assign({},o,{className:l}))},Ck=e=>{const{antCls:t,componentCls:n,headerHeight:r,headerPadding:o,tabsMarginBottom:i}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:r,marginBottom:-1,padding:`0 ${U(o)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${U(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${U(e.borderRadiusLG)} ${U(e.borderRadiusLG)} 0 0`},xo()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},So),{[`
|
|
285
|
+
> ${n}-typography,
|
|
286
|
+
> ${n}-typography-edit-content
|
|
287
|
+
`]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:i,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${U(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},Sk=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:o}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:`
|
|
288
|
+
${U(o)} 0 0 0 ${n},
|
|
289
|
+
0 ${U(o)} 0 0 ${n},
|
|
290
|
+
${U(o)} ${U(o)} 0 0 ${n},
|
|
291
|
+
${U(o)} 0 0 0 ${n} inset,
|
|
292
|
+
0 ${U(o)} 0 0 ${n} inset;
|
|
293
|
+
`,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},xk=e=>{const{componentCls:t,iconCls:n,actionsLiMargin:r,cardActionsIconSize:o,colorBorderSecondary:i,actionsBg:a}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:a,borderTop:`${U(e.lineWidth)} ${e.lineType} ${i}`,display:"flex",borderRadius:`0 0 ${U(e.borderRadiusLG)} ${U(e.borderRadiusLG)}`},xo()),{"& > 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:U(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:o,lineHeight:U(e.calc(o).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${U(e.lineWidth)} ${e.lineType} ${i}`}}})},Ek=e=>Object.assign(Object.assign({margin:`${U(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},xo()),{"&-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},So),"&-description":{color:e.colorTextDescription}}),$k=e=>{const{componentCls:t,colorFillAlter:n,headerPadding:r,bodyPadding:o}=e;return{[`${t}-head`]:{padding:`0 ${U(r)}`,background:n,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${U(e.padding)} ${U(o)}`}}},wk=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},Ok=e=>{const{componentCls:t,cardShadow:n,cardHeadPadding:r,colorBorderSecondary:o,boxShadowTertiary:i,bodyPadding:a,extraColor:l}=e;return{[t]:Object.assign(Object.assign({},Ht(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:i},[`${t}-head`]:Ck(e),[`${t}-extra`]:{marginInlineStart:"auto",color:l,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:Object.assign({padding:a,borderRadius:`0 0 ${U(e.borderRadiusLG)} ${U(e.borderRadiusLG)}`},xo()),[`${t}-grid`]:Sk(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${U(e.borderRadiusLG)} ${U(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:xk(e),[`${t}-meta`]:Ek(e)}),[`${t}-bordered`]:{border:`${U(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:`${U(e.borderRadiusLG)} ${U(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`]:$k(e),[`${t}-loading`]:wk(e),[`${t}-rtl`]:{direction:"rtl"}}},Nk=e=>{const{componentCls:t,bodyPaddingSM:n,headerPaddingSM:r,headerHeightSM:o,headerFontSizeSM:i}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:o,padding:`0 ${U(r)}`,fontSize:i,[`> ${t}-head-wrapper`]:{[`> ${t}-extra`]:{fontSize:e.fontSize}}},[`> ${t}-body`]:{padding:n}},[`${t}-small${t}-contain-tabs`]:{[`> ${t}-head`]:{[`${t}-head-title, ${t}-extra`]:{paddingTop:0,display:"flex",alignItems:"center"}}}}},Ik=Dt("Card",e=>{const t=xt(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize});return[Ok(t),Nk(t)]},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}});var y1=globalThis&&globalThis.__rest||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 _k=e=>{const{actionClasses:t,actions:n=[],actionStyle:r}=e;return s.createElement("ul",{className:t,style:r},n.map((o,i)=>{const a=`action-${i}`;return s.createElement("li",{style:{width:`${100/n.length}%`},key:a},s.createElement("span",null,o))}))},Tk=s.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:o,style:i,extra:a,headStyle:l={},bodyStyle:c={},title:u,loading:d,bordered:f,variant:m,size:p,type:h,cover:b,actions:v,tabList:y,children:C,activeTabKey:x,defaultActiveTabKey:E,tabBarExtraContent:S,hoverable:$,tabProps:O={},classNames:I,styles:w}=e,N=y1(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:_,direction:P,card:M}=s.useContext(Xe),[D]=Ec("card",m,f);if(process.env.NODE_ENV!=="production"){const fe=gt("Card");[["headStyle","styles.header"],["bodyStyle","styles.body"],["bordered","variant"]].forEach(ie=>{let[ue,de]=ie;fe.deprecated(!(ue in e),ue,de)})}const T=fe=>{var ie;(ie=e.onTabChange)===null||ie===void 0||ie.call(e,fe)},A=fe=>{var ie;return G((ie=M==null?void 0:M.classNames)===null||ie===void 0?void 0:ie[fe],I==null?void 0:I[fe])},R=fe=>{var ie;return Object.assign(Object.assign({},(ie=M==null?void 0:M.styles)===null||ie===void 0?void 0:ie[fe]),w==null?void 0:w[fe])},L=s.useMemo(()=>{let fe=!1;return s.Children.forEach(C,ie=>{(ie==null?void 0:ie.type)===b1&&(fe=!0)}),fe},[C]),j=_("card",n),[z,B,K]=Ik(j),W=s.createElement($m,{loading:!0,active:!0,paragraph:{rows:4},title:!1},C),k=x!==void 0,V=Object.assign(Object.assign({},O),{[k?"activeKey":"defaultActiveKey"]:k?x:E,tabBarExtraContent:S});let Q;const J=qn(p),Y=!J||J==="default"?"large":J,te=y?s.createElement(bp,Object.assign({size:Y},V,{className:`${j}-head-tabs`,onChange:T,items:y.map(fe=>{var{tab:ie}=fe,ue=y1(fe,["tab"]);return Object.assign({label:ie},ue)})})):null;if(u||a||te){const fe=G(`${j}-head`,A("header")),ie=G(`${j}-head-title`,A("title")),ue=G(`${j}-extra`,A("extra")),de=Object.assign(Object.assign({},l),R("header"));Q=s.createElement("div",{className:fe,style:de},s.createElement("div",{className:`${j}-head-wrapper`},u&&s.createElement("div",{className:ie,style:R("title")},u),a&&s.createElement("div",{className:ue,style:R("extra")},a)),te)}const oe=G(`${j}-cover`,A("cover")),X=b?s.createElement("div",{className:oe,style:R("cover")},b):null,F=G(`${j}-body`,A("body")),ee=Object.assign(Object.assign({},c),R("body")),Z=s.createElement("div",{className:F,style:ee},d?W:C),ne=G(`${j}-actions`,A("actions")),re=v!=null&&v.length?s.createElement(_k,{actionClasses:ne,actionStyle:R("actions"),actions:v}):null,se=tn(N,["onTabChange"]),le=G(j,M==null?void 0:M.className,{[`${j}-loading`]:d,[`${j}-bordered`]:D!=="borderless",[`${j}-hoverable`]:$,[`${j}-contain-grid`]:L,[`${j}-contain-tabs`]:y==null?void 0:y.length,[`${j}-${J}`]:J,[`${j}-type-${h}`]:!!h,[`${j}-rtl`]:P==="rtl"},r,o,B,K),he=Object.assign(Object.assign({},M==null?void 0:M.style),i);return z(s.createElement("div",Object.assign({ref:t},se,{className:le,style:he}),Q,X,Z,re))});var Pk=globalThis&&globalThis.__rest||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 Mk=e=>{const{prefixCls:t,className:n,avatar:r,title:o,description:i}=e,a=Pk(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:l}=s.useContext(Xe),c=l("card",t),u=G(`${c}-meta`,n),d=r?s.createElement("div",{className:`${c}-meta-avatar`},r):null,f=o?s.createElement("div",{className:`${c}-meta-title`},o):null,m=i?s.createElement("div",{className:`${c}-meta-description`},i):null,p=f||m?s.createElement("div",{className:`${c}-meta-detail`},f,m):null;return s.createElement("div",Object.assign({},a,{className:u}),d,p)},Hc=Tk;Hc.Grid=b1,Hc.Meta=Mk,process.env.NODE_ENV!=="production"&&(Hc.displayName="Card");const Vc=Hc;function Dk(e,t,n){var r=n||{},o=r.noTrailing,i=o===void 0?!1:o,a=r.noLeading,l=a===void 0?!1:a,c=r.debounceMode,u=c===void 0?void 0:c,d,f=!1,m=0;function p(){d&&clearTimeout(d)}function h(v){var y=v||{},C=y.upcomingOnly,x=C===void 0?!1:C;p(),f=!x}function b(){for(var v=arguments.length,y=new Array(v),C=0;C<v;C++)y[C]=arguments[C];var x=this,E=Date.now()-m;if(f)return;function S(){m=Date.now(),t.apply(x,y)}function $(){d=void 0}!l&&u&&!d&&S(),p(),u===void 0&&E>e?l?(m=Date.now(),i||(d=setTimeout(u?$:S,e))):S():i!==!0&&(d=setTimeout(u?$:S,u===void 0?e-E:e))}return b.cancel=h,b}function Ak(e,t,n){var r=n||{},o=r.atBegin,i=o===void 0?!1:o;return Dk(e,t,{debounceMode:i!==!1})}function ur(e,t){return e[t]}var Rk=["children"];function C1(e,t){return"".concat(e,"-").concat(t)}function jk(e){return e&&e.type&&e.type.isTreeNode}function $l(e,t){return e!=null?e:t}function sa(e){var t=e||{},n=t.title,r=t._title,o=t.key,i=t.children,a=n||"title";return{title:a,_title:r||[a],key:o||"key",children:i||"children"}}function Lk(e,t){var n=new Map;function r(o){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(o||[]).forEach(function(a){var l=a[t.key],c=a[t.children];Ge(l!=null,"Tree node must have a certain key: [".concat(i).concat(l,"]"));var u=String(l);Ge(!n.has(u)||l===null||l===void 0,"Same 'key' exist in the Tree: ".concat(u)),n.set(u,!0),r(c,"".concat(i).concat(u," > "))})}r(e)}function S1(e){function t(n){var r=Tn(n);return r.map(function(o){if(!jk(o))return Ge(!o,"Tree/TreeNode can only accept TreeNode as children."),null;var i=o.key,a=o.props,l=a.children,c=tt(a,Rk),u=q({key:i},c),d=t(l);return d.length&&(u.children=d),u}).filter(function(o){return o})}return t(e)}function yp(e,t,n){var r=sa(n),o=r._title,i=r.key,a=r.children,l=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,p){for(var h=C1(f?f.pos:"0",p),b=$l(m[i],h),v,y=0;y<o.length;y+=1){var C=o[y];if(m[C]!==void 0){v=m[C];break}}var x=Object.assign(tn(m,[].concat(ge(o),[i,a])),{title:v,key:b,parent:f,pos:h,children:null,data:m,isStart:[].concat(ge(f?f.isStart:[]),[p===0]),isEnd:[].concat(ge(f?f.isEnd:[]),[p===d.length-1])});return c.push(x),t===!0||l.has(b)?x.children=u(m[a]||[],x):x.children=[],x})}return u(e),c}function zk(e,t,n){var r={};He(n)==="object"?r=n:r={externalGetKey:n},r=r||{};var o=r,i=o.childrenPropName,a=o.externalGetKey,l=o.fieldNames,c=sa(l),u=c.key,d=c.children,f=i||d,m;a?typeof a=="string"?m=function(b){return b[a]}:typeof a=="function"&&(m=function(b){return a(b)}):m=function(b,v){return $l(b[u],v)};function p(h,b,v,y){var C=h?h[f]:e,x=h?C1(v.pos,b):"0",E=h?[].concat(ge(y),[h]):[];if(h){var S=m(h,x),$={node:h,index:b,pos:x,key:S,parentPos:v.node?v.pos:null,level:v.level+1,nodes:E};t($)}C&&C.forEach(function(O,I){p(O,I,{node:h,pos:x,level:v?v.level+1:-1},E)})}p(null)}function Cp(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.initWrapper,r=t.processEntity,o=t.onProcessFinished,i=t.externalGetKey,a=t.childrenPropName,l=t.fieldNames,c=arguments.length>2?arguments[2]:void 0,u=i||c,d={},f={},m={posEntities:d,keyEntities:f};return n&&(m=n(m)||m),zk(e,function(p){var h=p.node,b=p.index,v=p.pos,y=p.key,C=p.parentPos,x=p.level,E=p.nodes,S={node:h,nodes:E,index:b,key:y,pos:v,level:x},$=$l(y,v);d[v]=S,f[$]=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:a,fieldNames:l}),o&&o(m),m}function wl(e,t){var n=t.expandedKeys,r=t.selectedKeys,o=t.loadedKeys,i=t.loadingKeys,a=t.checkedKeys,l=t.halfCheckedKeys,c=t.dragOverNodeKey,u=t.dropPosition,d=t.keyEntities,f=ur(d,e),m={eventKey:e,expanded:n.indexOf(e)!==-1,selected:r.indexOf(e)!==-1,loaded:o.indexOf(e)!==-1,loading:i.indexOf(e)!==-1,checked:a.indexOf(e)!==-1,halfChecked:l.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 Mn(e){var t=e.data,n=e.expanded,r=e.selected,o=e.checked,i=e.loaded,a=e.loading,l=e.halfChecked,c=e.dragOver,u=e.dragOverGapTop,d=e.dragOverGapBottom,f=e.pos,m=e.active,p=e.eventKey,h=q(q({},t),{},{expanded:n,selected:r,checked:o,loaded:i,loading:a,halfChecked:l,dragOver:c,dragOverGapTop:u,dragOverGapBottom:d,pos:f,active:m,key:p});return"props"in h||Object.defineProperty(h,"props",{get:function(){return Ge(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),h}function x1(e,t){var n=new Set;return e.forEach(function(r){t.has(r)||n.add(r)}),n}function Bk(e){var t=e||{},n=t.disabled,r=t.disableCheckbox,o=t.checkable;return!!(n||r)||o===!1}function kk(e,t,n,r){for(var o=new Set(e),i=new Set,a=0;a<=n;a+=1){var l=t.get(a)||new Set;l.forEach(function(f){var m=f.key,p=f.node,h=f.children,b=h===void 0?[]:h;o.has(m)&&!r(p)&&b.filter(function(v){return!r(v.node)}).forEach(function(v){o.add(v.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,p=f.node;if(!(r(p)||!f.parent||c.has(f.parent.key))){if(r(f.parent.node)){c.add(m.key);return}var h=!0,b=!1;(m.children||[]).filter(function(v){return!r(v.node)}).forEach(function(v){var y=v.key,C=o.has(y);h&&!C&&(h=!1),!b&&(C||i.has(y))&&(b=!0)}),h&&o.add(m.key),b&&i.add(m.key),c.add(m.key)}})}return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(x1(i,o))}}function Fk(e,t,n,r,o){for(var i=new Set(e),a=new Set(t),l=0;l<=r;l+=1){var c=n.get(l)||new Set;c.forEach(function(m){var p=m.key,h=m.node,b=m.children,v=b===void 0?[]:b;!i.has(p)&&!a.has(p)&&!o(h)&&v.filter(function(y){return!o(y.node)}).forEach(function(y){i.delete(y.key)})})}a=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 p=m.parent,h=m.node;if(!(o(h)||!m.parent||u.has(m.parent.key))){if(o(m.parent.node)){u.add(p.key);return}var b=!0,v=!1;(p.children||[]).filter(function(y){return!o(y.node)}).forEach(function(y){var C=y.key,x=i.has(C);b&&!x&&(b=!1),!v&&(x||a.has(C))&&(v=!0)}),b||i.delete(p.key),v&&a.add(p.key),u.add(p.key)}})}return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from(x1(a,i))}}function ca(e,t,n,r){var o=[],i;r?i=r:i=Bk;var a=new Set(e.filter(function(d){var f=!!ur(n,d);return f||o.push(d),f})),l=new Map,c=0;Object.keys(n).forEach(function(d){var f=n[d],m=f.level,p=l.get(m);p||(p=new Set,l.set(m,p)),p.add(f),c=Math.max(c,m)}),Ge(!o.length,"Tree missing follow keys: ".concat(o.slice(0,100).map(function(d){return"'".concat(d,"'")}).join(", ")));var u;return t===!0?u=kk(a,l,c,i):u=Fk(a,t.halfCheckedKeys,l,c,i),u}const Hk=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},Ht(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},Ht(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({},Ht(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:e.borderRadiusSM,alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:Object.assign({},Br(e))},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${U(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:`${U(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}})},{[`
|
|
294
|
+
${n}:not(${n}-disabled),
|
|
295
|
+
${t}:not(${t}-disabled)
|
|
296
|
+
`]:{[`&: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}`}}},[`
|
|
297
|
+
${n}-checked:not(${n}-disabled),
|
|
298
|
+
${t}-checked:not(${t}-disabled)
|
|
299
|
+
`]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{[`${t}-inner`]:{backgroundColor:`${e.colorBgContainer} !important`,borderColor:`${e.colorBorder} !important`,"&: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} !important`,borderColor:`${e.colorPrimary} !important`}}}},{[`${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 E1(e,t){const n=xt(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[Hk(n)]}const $1=Dt("Checkbox",(e,t)=>{let{prefixCls:n}=t;return[E1(n,e)]}),w1=g.createContext(null);var Vk=globalThis&&globalThis.__rest||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 Wk=(e,t)=>{var n;const{prefixCls:r,className:o,rootClassName:i,children:a,indeterminate:l=!1,style:c,onMouseEnter:u,onMouseLeave:d,skipGroup:f=!1,disabled:m}=e,p=Vk(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:h,direction:b,checkbox:v}=s.useContext(Xe),y=s.useContext(w1),{isFormItemInput:C}=s.useContext(Xn),x=s.useContext(oo),E=(n=(y==null?void 0:y.disabled)||m)!==null&&n!==void 0?n:x,S=s.useRef(p.value),$=s.useRef(null),O=Wn(t,$);if(process.env.NODE_ENV!=="production"){const L=gt("Checkbox");process.env.NODE_ENV!=="production"&&L("checked"in p||!!y||!("value"in p),"usage","`value` is not a valid prop, do you mean `checked`?")}s.useEffect(()=>{y==null||y.registerValue(p.value)},[]),s.useEffect(()=>{if(!f)return p.value!==S.current&&(y==null||y.cancelValue(S.current),y==null||y.registerValue(p.value),S.current=p.value),()=>y==null?void 0:y.cancelValue(p.value)},[p.value]),s.useEffect(()=>{var L;!((L=$.current)===null||L===void 0)&&L.input&&($.current.input.indeterminate=l)},[l]);const I=h("checkbox",r),w=On(I),[N,_,P]=$1(I,w),M=Object.assign({},p);y&&!f&&(M.onChange=function(){p.onChange&&p.onChange.apply(p,arguments),y.toggleOption&&y.toggleOption({label:a,value:p.value})},M.name=y.name,M.checked=y.value.includes(p.value));const D=G(`${I}-wrapper`,{[`${I}-rtl`]:b==="rtl",[`${I}-wrapper-checked`]:M.checked,[`${I}-wrapper-disabled`]:E,[`${I}-wrapper-in-form-item`]:C},v==null?void 0:v.className,o,i,P,w,_),T=G({[`${I}-indeterminate`]:l},Js,_),[A,R]=KE(M.onClick);return N(s.createElement(tl,{component:"Checkbox",disabled:E},s.createElement("label",{className:D,style:Object.assign(Object.assign({},v==null?void 0:v.style),c),onMouseEnter:u,onMouseLeave:d,onClick:A},s.createElement(WE,Object.assign({},M,{onClick:R,prefixCls:I,className:T,disabled:E,ref:O})),a!=null&&s.createElement("span",{className:`${I}-label`},a))))},O1=s.forwardRef(Wk);process.env.NODE_ENV!=="production"&&(O1.displayName="Checkbox");const N1=O1;var Kk=globalThis&&globalThis.__rest||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 qk=s.forwardRef((e,t)=>{const{defaultValue:n,children:r,options:o=[],prefixCls:i,className:a,rootClassName:l,style:c,onChange:u}=e,d=Kk(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:f,direction:m}=s.useContext(Xe),[p,h]=s.useState(d.value||n||[]),[b,v]=s.useState([]);s.useEffect(()=>{"value"in d&&h(d.value||[])},[d.value]);const y=s.useMemo(()=>o.map(T=>typeof T=="string"||typeof T=="number"?{label:T,value:T}:T),[o]),C=T=>{v(A=>A.filter(R=>R!==T))},x=T=>{v(A=>[].concat(ge(A),[T]))},E=T=>{const A=p.indexOf(T.value),R=ge(p);A===-1?R.push(T.value):R.splice(A,1),"value"in d||h(R),u==null||u(R.filter(L=>b.includes(L)).sort((L,j)=>{const z=y.findIndex(K=>K.value===L),B=y.findIndex(K=>K.value===j);return z-B}))},S=f("checkbox",i),$=`${S}-group`,O=On(S),[I,w,N]=$1(S,O),_=tn(d,["value","disabled"]),P=o.length?y.map(T=>s.createElement(N1,{prefixCls:S,key:T.value.toString(),disabled:"disabled"in T?T.disabled:d.disabled,value:T.value,checked:p.includes(T.value),onChange:T.onChange,className:G(`${$}-item`,T.className),style:T.style,title:T.title,id:T.id,required:T.required},T.label)):r,M=s.useMemo(()=>({toggleOption:E,value:p,disabled:d.disabled,name:d.name,registerValue:x,cancelValue:C}),[E,p,d.disabled,d.name,x,C]),D=G($,{[`${$}-rtl`]:m==="rtl"},a,l,N,O,w);return I(s.createElement("div",Object.assign({className:D,style:c},_,{ref:t}),s.createElement(w1.Provider,{value:M},P)))}),Wc=N1;Wc.Group=qk,Wc.__ANT_CHECKBOX=!0,process.env.NODE_ENV!=="production"&&(Wc.displayName="Checkbox");const Kc=Wc,I1=g.createContext({});var Uk=globalThis&&globalThis.__rest||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 _1(e){return typeof e=="number"?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const Gk=["xs","sm","md","lg","xl","xxl"],T1=s.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=s.useContext(Xe),{gutter:o,wrap:i}=s.useContext(I1),{prefixCls:a,span:l,order:c,offset:u,push:d,pull:f,className:m,children:p,flex:h,style:b}=e,v=Uk(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),y=n("col",a),[C,x,E]=j6(y),S={};let $={};Gk.forEach(w=>{let N={};const _=e[w];typeof _=="number"?N.span=_:typeof _=="object"&&(N=_||{}),delete v[w],$=Object.assign(Object.assign({},$),{[`${y}-${w}-${N.span}`]:N.span!==void 0,[`${y}-${w}-order-${N.order}`]:N.order||N.order===0,[`${y}-${w}-offset-${N.offset}`]:N.offset||N.offset===0,[`${y}-${w}-push-${N.push}`]:N.push||N.push===0,[`${y}-${w}-pull-${N.pull}`]:N.pull||N.pull===0,[`${y}-rtl`]:r==="rtl"}),N.flex&&($[`${y}-${w}-flex`]=!0,S[`--${y}-${w}-flex`]=_1(N.flex))});const O=G(y,{[`${y}-${l}`]:l!==void 0,[`${y}-order-${c}`]:c,[`${y}-offset-${u}`]:u,[`${y}-push-${d}`]:d,[`${y}-pull-${f}`]:f},m,$,x,E),I={};if(o&&o[0]>0){const w=o[0]/2;I.paddingLeft=w,I.paddingRight=w}return h&&(I.flex=_1(h),i===!1&&!I.minWidth&&(I.minWidth=0)),C(s.createElement("div",Object.assign({},v,{style:Object.assign(Object.assign(Object.assign({},I),b),S),className:O,ref:t}),p))});process.env.NODE_ENV!=="production"&&(T1.displayName="Col");const Ln=T1;function Xk(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((i,a)=>{if(typeof i=="object"&&i!==null)for(let l=0;l<Zi.length;l++){const c=Zi[l];if(o[c]&&i[c]!==void 0){n[a]=i[c];break}}else n[a]=i}),n}var Qk=globalThis&&globalThis.__rest||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 P1(e,t){const[n,r]=s.useState(typeof e=="string"?e:""),o=()=>{if(typeof e=="string"&&r(e),typeof e=="object")for(let i=0;i<Zi.length;i++){const a=Zi[i];if(!t||!t[a])continue;const l=e[a];if(l!==void 0){r(l);return}}};return s.useEffect(()=>{o()},[JSON.stringify(e),t]),n}const M1=s.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:o,className:i,style:a,children:l,gutter:c=0,wrap:u}=e,d=Qk(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:f,direction:m}=s.useContext(Xe),p=vl(!0,null),h=P1(o,p),b=P1(r,p),v=f("row",n),[y,C,x]=R6(v),E=Xk(c,p),S=G(v,{[`${v}-no-wrap`]:u===!1,[`${v}-${b}`]:b,[`${v}-${h}`]:h,[`${v}-rtl`]:m==="rtl"},i,C,x),$={},O=E[0]!=null&&E[0]>0?E[0]/-2:void 0;O&&($.marginLeft=O,$.marginRight=O);const[I,w]=E;$.rowGap=w;const N=s.useMemo(()=>({gutter:[I,w],wrap:u}),[I,w,u]);return y(s.createElement(I1.Provider,{value:N},s.createElement("div",Object.assign({},d,{className:S,style:Object.assign(Object.assign({},$),a),ref:t}),l)))});process.env.NODE_ENV!=="production"&&(M1.displayName="Row");const Oo=M1,Yk=e=>{const{componentCls:t}=e;return{[t]:{"&-horizontal":{[`&${t}`]:{"&-sm":{marginBlock:e.marginXS},"&-md":{marginBlock:e.margin}}}}}},Jk=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:o,textPaddingInline:i,orientationMargin:a,verticalMarginInline:l}=e;return{[t]:Object.assign(Object.assign({},Ht(e)),{borderBlockStart:`${U(o)} solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:l,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${U(o)} solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${U(e.marginLG)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${U(e.dividerHorizontalWithTextGutterMargin)} 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${U(o)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-start`]:{"&::before":{width:`calc(${a} * 100%)`},"&::after":{width:`calc(100% - ${a} * 100%)`}},[`&-horizontal${t}-with-text-end`]:{"&::before":{width:`calc(100% - ${a} * 100%)`},"&::after":{width:`calc(${a} * 100%)`}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:i},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${U(o)} 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:r,borderStyle:"dotted",borderWidth:`${U(o)} 0 0`},[`&-horizontal${t}-with-text${t}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${t}-dotted`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-start${t}-no-default-orientation-margin-start`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-end${t}-no-default-orientation-margin-end`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}},Zk=Dt("Divider",e=>{const t=xt(e,{dividerHorizontalWithTextGutterMargin:e.margin,sizePaddingEdgeHorizontal:0});return[Jk(t),Yk(t)]},e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}),{unitless:{orientationMargin:!0}});var eF=globalThis&&globalThis.__rest||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 tF={small:"sm",middle:"md"},D1=e=>{const{getPrefixCls:t,direction:n,className:r,style:o}=An("divider"),{prefixCls:i,type:a="horizontal",orientation:l="center",orientationMargin:c,className:u,rootClassName:d,children:f,dashed:m,variant:p="solid",plain:h,style:b,size:v}=e,y=eF(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style","size"]),C=t("divider",i),[x,E,S]=Zk(C),$=qn(v),O=tF[$],I=!!f,w=s.useMemo(()=>l==="left"?n==="rtl"?"end":"start":l==="right"?n==="rtl"?"start":"end":l,[n,l]),N=w==="start"&&c!=null,_=w==="end"&&c!=null,P=G(C,r,E,S,`${C}-${a}`,{[`${C}-with-text`]:I,[`${C}-with-text-${w}`]:I,[`${C}-dashed`]:!!m,[`${C}-${p}`]:p!=="solid",[`${C}-plain`]:!!h,[`${C}-rtl`]:n==="rtl",[`${C}-no-default-orientation-margin-start`]:N,[`${C}-no-default-orientation-margin-end`]:_,[`${C}-${O}`]:!!O},u,d),M=s.useMemo(()=>typeof c=="number"?c:/^\d+$/.test(c)?Number(c):c,[c]),D={marginInlineStart:N?M:void 0,marginInlineEnd:_?M:void 0};if(process.env.NODE_ENV!=="production"){const T=gt("Divider");process.env.NODE_ENV!=="production"&&T(!f||a!=="vertical","usage","`children` not working in `vertical` mode.")}return x(s.createElement("div",Object.assign({className:P,style:Object.assign(Object.assign({},o),b)},y,{role:"separator"}),f&&a!=="vertical"&&s.createElement("span",{className:`${C}-inner-text`,style:D},f)))};process.env.NODE_ENV!=="production"&&(D1.displayName="Divider");const Sp=D1;function nF(e){return!!(e.addonBefore||e.addonAfter)}function rF(e){return!!(e.prefix||e.suffix||e.allowClear)}function A1(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 qc(e,t,n,r){if(n){var o=t;if(t.type==="click"){o=A1(t,e,""),n(o);return}if(e.type!=="file"&&r!==void 0){o=A1(t,e,r),n(o);return}n(o)}}function R1(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 j1=g.forwardRef(function(e,t){var n,r,o,i=e.inputElement,a=e.children,l=e.prefixCls,c=e.prefix,u=e.suffix,d=e.addonBefore,f=e.addonAfter,m=e.className,p=e.style,h=e.disabled,b=e.readOnly,v=e.focused,y=e.triggerFocus,C=e.allowClear,x=e.value,E=e.handleReset,S=e.hidden,$=e.classes,O=e.classNames,I=e.dataAttrs,w=e.styles,N=e.components,_=e.onClear,P=a!=null?a:i,M=(N==null?void 0:N.affixWrapper)||"span",D=(N==null?void 0:N.groupWrapper)||"span",T=(N==null?void 0:N.wrapper)||"span",A=(N==null?void 0:N.groupAddon)||"span",R=g.useRef(null),L=function(ne){var re;(re=R.current)!==null&&re!==void 0&&re.contains(ne.target)&&(y==null||y())},j=rF(e),z=g.cloneElement(P,{value:x,className:G((n=P.props)===null||n===void 0?void 0:n.className,!j&&(O==null?void 0:O.variant))||null}),B=g.useRef(null);if(g.useImperativeHandle(t,function(){return{nativeElement:B.current||R.current}}),j){var K=null;if(C){var W=!h&&!b&&x,k="".concat(l,"-clear-icon"),V=He(C)==="object"&&C!==null&&C!==void 0&&C.clearIcon?C.clearIcon:"✖";K=g.createElement("button",{type:"button",tabIndex:-1,onClick:function(ne){E==null||E(ne),_==null||_()},onMouseDown:function(ne){return ne.preventDefault()},className:G(k,H(H({},"".concat(k,"-hidden"),!W),"".concat(k,"-has-suffix"),!!u))},V)}var Q="".concat(l,"-affix-wrapper"),J=G(Q,H(H(H(H(H({},"".concat(l,"-disabled"),h),"".concat(Q,"-disabled"),h),"".concat(Q,"-focused"),v),"".concat(Q,"-readonly"),b),"".concat(Q,"-input-with-clear-btn"),u&&C&&x),$==null?void 0:$.affixWrapper,O==null?void 0:O.affixWrapper,O==null?void 0:O.variant),Y=(u||C)&&g.createElement("span",{className:G("".concat(l,"-suffix"),O==null?void 0:O.suffix),style:w==null?void 0:w.suffix},K,u);z=g.createElement(M,ce({className:J,style:w==null?void 0:w.affixWrapper,onClick:L},I==null?void 0:I.affixWrapper,{ref:R}),c&&g.createElement("span",{className:G("".concat(l,"-prefix"),O==null?void 0:O.prefix),style:w==null?void 0:w.prefix},c),z,Y)}if(nF(e)){var te="".concat(l,"-group"),oe="".concat(te,"-addon"),X="".concat(te,"-wrapper"),F=G("".concat(l,"-wrapper"),te,$==null?void 0:$.wrapper,O==null?void 0:O.wrapper),ee=G(X,H({},"".concat(X,"-disabled"),h),$==null?void 0:$.group,O==null?void 0:O.groupWrapper);z=g.createElement(D,{className:ee,ref:B},g.createElement(T,{className:F},d&&g.createElement(A,{className:oe},d),z,f&&g.createElement(A,{className:oe},f)))}return g.cloneElement(z,{className:G((r=z.props)===null||r===void 0?void 0:r.className,m)||null,style:q(q({},(o=z.props)===null||o===void 0?void 0:o.style),p),hidden:S})}),oF=["show"];function L1(e,t){return s.useMemo(function(){var n={};t&&(n.show=He(t)==="object"&&t.formatter?t.formatter:!!t),n=q(q({},n),e);var r=n,o=r.show,i=tt(r,oF);return q(q({},i),{},{show:!!o,showFormatter:typeof o=="function"?o:void 0,strategy:i.strategy||function(a){return a.length}})},[e,t])}var iF=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],aF=g.forwardRef(function(e,t){var n=e.autoComplete,r=e.onChange,o=e.onFocus,i=e.onBlur,a=e.onPressEnter,l=e.onKeyDown,c=e.onKeyUp,u=e.prefixCls,d=u===void 0?"rc-input":u,f=e.disabled,m=e.htmlSize,p=e.className,h=e.maxLength,b=e.suffix,v=e.showCount,y=e.count,C=e.type,x=C===void 0?"text":C,E=e.classes,S=e.classNames,$=e.styles,O=e.onCompositionStart,I=e.onCompositionEnd,w=tt(e,iF),N=g.useState(!1),_=ae(N,2),P=_[0],M=_[1],D=g.useRef(!1),T=g.useRef(!1),A=g.useRef(null),R=g.useRef(null),L=function(me){A.current&&R1(A.current,me)},j=ln(e.defaultValue,{value:e.value}),z=ae(j,2),B=z[0],K=z[1],W=B==null?"":String(B),k=g.useState(null),V=ae(k,2),Q=V[0],J=V[1],Y=L1(y,v),te=Y.max||h,oe=Y.strategy(W),X=!!te&&oe>te;g.useImperativeHandle(t,function(){var de;return{focus:L,blur:function(){var Ce;(Ce=A.current)===null||Ce===void 0||Ce.blur()},setSelectionRange:function(Ce,Oe,Te){var je;(je=A.current)===null||je===void 0||je.setSelectionRange(Ce,Oe,Te)},select:function(){var Ce;(Ce=A.current)===null||Ce===void 0||Ce.select()},input:A.current,nativeElement:((de=R.current)===null||de===void 0?void 0:de.nativeElement)||A.current}}),g.useEffect(function(){T.current&&(T.current=!1),M(function(de){return de&&f?!1:de})},[f]);var F=function(me,Ce,Oe){var Te=Ce;if(!D.current&&Y.exceedFormatter&&Y.max&&Y.strategy(Ce)>Y.max){if(Te=Y.exceedFormatter(Ce,{max:Y.max}),Ce!==Te){var je,Ne;J([((je=A.current)===null||je===void 0?void 0:je.selectionStart)||0,((Ne=A.current)===null||Ne===void 0?void 0:Ne.selectionEnd)||0])}}else if(Oe.source==="compositionEnd")return;K(Te),A.current&&qc(A.current,me,r,Te)};g.useEffect(function(){if(Q){var de;(de=A.current)===null||de===void 0||de.setSelectionRange.apply(de,ge(Q))}},[Q]);var ee=function(me){F(me,me.target.value,{source:"change"})},Z=function(me){D.current=!1,F(me,me.currentTarget.value,{source:"compositionEnd"}),I==null||I(me)},ne=function(me){a&&me.key==="Enter"&&!T.current&&(T.current=!0,a(me)),l==null||l(me)},re=function(me){me.key==="Enter"&&(T.current=!1),c==null||c(me)},se=function(me){M(!0),o==null||o(me)},le=function(me){T.current&&(T.current=!1),M(!1),i==null||i(me)},he=function(me){K(""),L(),A.current&&qc(A.current,me,r)},fe=X&&"".concat(d,"-out-of-range"),ie=function(){var me=tn(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return g.createElement("input",ce({autoComplete:n},me,{onChange:ee,onFocus:se,onBlur:le,onKeyDown:ne,onKeyUp:re,className:G(d,H({},"".concat(d,"-disabled"),f),S==null?void 0:S.input),style:$==null?void 0:$.input,ref:A,size:m,type:x,onCompositionStart:function(Oe){D.current=!0,O==null||O(Oe)},onCompositionEnd:Z}))},ue=function(){var me=Number(te)>0;if(b||Y.show){var Ce=Y.showFormatter?Y.showFormatter({value:W,count:oe,maxLength:te}):"".concat(oe).concat(me?" / ".concat(te):"");return g.createElement(g.Fragment,null,Y.show&&g.createElement("span",{className:G("".concat(d,"-show-count-suffix"),H({},"".concat(d,"-show-count-has-suffix"),!!b),S==null?void 0:S.count),style:q({},$==null?void 0:$.count)},Ce),b)}return null};return g.createElement(j1,ce({},w,{prefixCls:d,className:G(p,fe),handleReset:he,value:W,focused:P,triggerFocus:L,suffix:ue(),disabled:f,classes:E,classNames:S,styles:$,ref:R}),ie())});const z1=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:g.createElement(Do,null)}),t};function B1(e,t){const n=g.useRef([]),r=()=>{n.current.push(setTimeout(()=>{var o,i,a,l;!((o=e.current)===null||o===void 0)&&o.input&&((i=e.current)===null||i===void 0?void 0:i.input.getAttribute("type"))==="password"&&(!((a=e.current)===null||a===void 0)&&a.input.hasAttribute("value"))&&((l=e.current)===null||l===void 0||l.input.removeAttribute("value"))}))};return g.useEffect(()=>(t&&r(),()=>n.current.forEach(o=>{o&&clearTimeout(o)})),[]),r}function lF(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var sF=globalThis&&globalThis.__rest||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 k1=g.forwardRef((e,t)=>{const{prefixCls:n,bordered:r=!0,status:o,size:i,disabled:a,onBlur:l,onFocus:c,suffix:u,allowClear:d,addonAfter:f,addonBefore:m,className:p,style:h,styles:b,rootClassName:v,onChange:y,classNames:C,variant:x}=e,E=sF(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]);if(process.env.NODE_ENV!=="production"){const{deprecated:he}=gt("Input");he(!("bordered"in e),"bordered","variant")}const{getPrefixCls:S,direction:$,allowClear:O,autoComplete:I,className:w,style:N,classNames:_,styles:P}=An("input"),M=S("input",n),D=g.useRef(null),T=On(M),[A,R,L]=n1(M,v),[j]=r1(M,T),{compactSize:z,compactItemClassnames:B}=Fi(M,$),K=qn(he=>{var fe;return(fe=i!=null?i:z)!==null&&fe!==void 0?fe:he}),W=g.useContext(oo),k=a!=null?a:W,{status:V,hasFeedback:Q,feedbackIcon:J}=g.useContext(Xn),Y=Sc(V,o),te=lF(e)||!!Q,oe=g.useRef(te);if(process.env.NODE_ENV!=="production"){const he=gt("Input");g.useEffect(()=>{var fe;te&&!oe.current&&process.env.NODE_ENV!=="production"&&he(document.activeElement===((fe=D.current)===null||fe===void 0?void 0:fe.input),"usage","When Input is focused, dynamic add or remove prefix / suffix will make it lose focus caused by dom structure change. Read more: https://ant.design/components/input/#FAQ"),oe.current=te},[te])}const X=B1(D,!0),F=he=>{X(),l==null||l(he)},ee=he=>{X(),c==null||c(he)},Z=he=>{X(),y==null||y(he)},ne=(Q||u)&&g.createElement(g.Fragment,null,u,Q&&J),re=z1(d!=null?d:O),[se,le]=Ec("input",x,r);return A(j(g.createElement(aF,Object.assign({ref:Wn(t,D),prefixCls:M,autoComplete:I},E,{disabled:k,onBlur:F,onFocus:ee,style:Object.assign(Object.assign({},N),h),styles:Object.assign(Object.assign({},P),b),suffix:ne,allowClear:re,className:G(p,v,L,T,B,w),onChange:Z,addonBefore:m&&g.createElement(Ui,{form:!0,space:!0},m),addonAfter:f&&g.createElement(Ui,{form:!0,space:!0},f),classNames:Object.assign(Object.assign(Object.assign({},C),_),{input:G({[`${M}-sm`]:K==="small",[`${M}-lg`]:K==="large",[`${M}-rtl`]:$==="rtl"},C==null?void 0:C.input,_.input,R),variant:G({[`${M}-${se}`]:le},Cc(M,Y)),affixWrapper:G({[`${M}-affix-wrapper-sm`]:K==="small",[`${M}-affix-wrapper-lg`]:K==="large",[`${M}-affix-wrapper-rtl`]:$==="rtl"},R),wrapper:G({[`${M}-group-rtl`]:$==="rtl"},R),groupWrapper:G({[`${M}-group-wrapper-sm`]:K==="small",[`${M}-group-wrapper-lg`]:K==="large",[`${M}-group-wrapper-rtl`]:$==="rtl",[`${M}-group-wrapper-${se}`]:le},Cc(`${M}-group-wrapper`,Y,Q),R)})}))))});process.env.NODE_ENV!=="production"&&(k1.displayName="Input");const Ol=k1;var F1=s.createContext(null),H1=s.createContext({}),cF=["prefixCls","className","containerRef"],V1=function(t){var n=t.prefixCls,r=t.className,o=t.containerRef,i=tt(t,cF),a=s.useContext(H1),l=a.panel,c=Jr(l,o);return s.createElement("div",ce({className:G("".concat(n,"-content"),r),role:"dialog",ref:c},Rn(t,{aria:!0}),{"aria-modal":"true"},i))};process.env.NODE_ENV!=="production"&&(V1.displayName="DrawerPanel");function W1(e){return typeof e=="string"&&String(Number(e))===e?(Ge(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(e)):e}function uF(e){Ge(!("wrapperClassName"in e),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),Ge(_n()||!e.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var K1={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function dF(e,t){var n,r,o,i=e.prefixCls,a=e.open,l=e.placement,c=e.inline,u=e.push,d=e.forceRender,f=e.autoFocus,m=e.keyboard,p=e.classNames,h=e.rootClassName,b=e.rootStyle,v=e.zIndex,y=e.className,C=e.id,x=e.style,E=e.motion,S=e.width,$=e.height,O=e.children,I=e.mask,w=e.maskClosable,N=e.maskMotion,_=e.maskClassName,P=e.maskStyle,M=e.afterOpenChange,D=e.onClose,T=e.onMouseEnter,A=e.onMouseOver,R=e.onMouseLeave,L=e.onClick,j=e.onKeyDown,z=e.onKeyUp,B=e.styles,K=e.drawerRender,W=s.useRef(),k=s.useRef(),V=s.useRef();s.useImperativeHandle(t,function(){return W.current});var Q=function(ue){var de=ue.keyCode,me=ue.shiftKey;switch(de){case ye.TAB:{if(de===ye.TAB){if(!me&&document.activeElement===V.current){var Ce;(Ce=k.current)===null||Ce===void 0||Ce.focus({preventScroll:!0})}else if(me&&document.activeElement===k.current){var Oe;(Oe=V.current)===null||Oe===void 0||Oe.focus({preventScroll:!0})}}break}case ye.ESC:{D&&m&&(ue.stopPropagation(),D(ue));break}}};s.useEffect(function(){if(a&&f){var ie;(ie=W.current)===null||ie===void 0||ie.focus({preventScroll:!0})}},[a]);var J=s.useState(!1),Y=ae(J,2),te=Y[0],oe=Y[1],X=s.useContext(F1),F;typeof u=="boolean"?F=u?{}:{distance:0}:F=u||{};var ee=(n=(r=(o=F)===null||o===void 0?void 0:o.distance)!==null&&r!==void 0?r:X==null?void 0:X.pushDistance)!==null&&n!==void 0?n:180,Z=s.useMemo(function(){return{pushDistance:ee,push:function(){oe(!0)},pull:function(){oe(!1)}}},[ee]);s.useEffect(function(){if(a){var ie;X==null||(ie=X.push)===null||ie===void 0||ie.call(X)}else{var ue;X==null||(ue=X.pull)===null||ue===void 0||ue.call(X)}},[a]),s.useEffect(function(){return function(){var ie;X==null||(ie=X.pull)===null||ie===void 0||ie.call(X)}},[]);var ne=I&&s.createElement(cr,ce({key:"mask"},N,{visible:a}),function(ie,ue){var de=ie.className,me=ie.style;return s.createElement("div",{className:G("".concat(i,"-mask"),de,p==null?void 0:p.mask,_),style:q(q(q({},me),P),B==null?void 0:B.mask),onClick:w&&a?D:void 0,ref:ue})}),re=typeof E=="function"?E(l):E,se={};if(te&&ee)switch(l){case"top":se.transform="translateY(".concat(ee,"px)");break;case"bottom":se.transform="translateY(".concat(-ee,"px)");break;case"left":se.transform="translateX(".concat(ee,"px)");break;default:se.transform="translateX(".concat(-ee,"px)");break}l==="left"||l==="right"?se.width=W1(S):se.height=W1($);var le={onMouseEnter:T,onMouseOver:A,onMouseLeave:R,onClick:L,onKeyDown:j,onKeyUp:z},he=s.createElement(cr,ce({key:"panel"},re,{visible:a,forceRender:d,onVisibleChanged:function(ue){M==null||M(ue)},removeOnLeave:!1,leavedClassName:"".concat(i,"-content-wrapper-hidden")}),function(ie,ue){var de=ie.className,me=ie.style,Ce=s.createElement(V1,ce({id:C,containerRef:ue,prefixCls:i,className:G(y,p==null?void 0:p.content),style:q(q({},x),B==null?void 0:B.content)},Rn(e,{aria:!0}),le),O);return s.createElement("div",ce({className:G("".concat(i,"-content-wrapper"),p==null?void 0:p.wrapper,de),style:q(q(q({},se),me),B==null?void 0:B.wrapper)},Rn(e,{data:!0})),K?K(Ce):Ce)}),fe=q({},b);return v&&(fe.zIndex=v),s.createElement(F1.Provider,{value:Z},s.createElement("div",{className:G(i,"".concat(i,"-").concat(l),h,H(H({},"".concat(i,"-open"),a),"".concat(i,"-inline"),c)),style:fe,tabIndex:-1,ref:W,onKeyDown:Q},ne,s.createElement("div",{tabIndex:0,ref:k,style:K1,"aria-hidden":"true","data-sentinel":"start"}),he,s.createElement("div",{tabIndex:0,ref:V,style:K1,"aria-hidden":"true","data-sentinel":"end"})))}var q1=s.forwardRef(dF);process.env.NODE_ENV!=="production"&&(q1.displayName="DrawerPopup");var U1=function(t){var n=t.open,r=n===void 0?!1:n,o=t.prefixCls,i=o===void 0?"rc-drawer":o,a=t.placement,l=a===void 0?"right":a,c=t.autoFocus,u=c===void 0?!0:c,d=t.keyboard,f=d===void 0?!0:d,m=t.width,p=m===void 0?378:m,h=t.mask,b=h===void 0?!0:h,v=t.maskClosable,y=v===void 0?!0:v,C=t.getContainer,x=t.forceRender,E=t.afterOpenChange,S=t.destroyOnClose,$=t.onMouseEnter,O=t.onMouseOver,I=t.onMouseLeave,w=t.onClick,N=t.onKeyDown,_=t.onKeyUp,P=t.panelRef,M=s.useState(!1),D=ae(M,2),T=D[0],A=D[1];process.env.NODE_ENV!=="production"&&uF(t);var R=s.useState(!1),L=ae(R,2),j=L[0],z=L[1];wt(function(){z(!0)},[]);var B=j?r:!1,K=s.useRef(),W=s.useRef();wt(function(){B&&(W.current=document.activeElement)},[B]);var k=function(te){var oe;if(A(te),E==null||E(te),!te&&W.current&&!((oe=K.current)!==null&&oe!==void 0&&oe.contains(W.current))){var X;(X=W.current)===null||X===void 0||X.focus({preventScroll:!0})}},V=s.useMemo(function(){return{panel:P}},[P]);if(!x&&!T&&!B&&S)return null;var Q={onMouseEnter:$,onMouseOver:O,onMouseLeave:I,onClick:w,onKeyDown:N,onKeyUp:_},J=q(q({},t),{},{open:B,prefixCls:i,placement:l,autoFocus:u,keyboard:f,width:p,mask:b,maskClosable:y,inline:C===!1,afterOpenChange:k,ref:K},Q);return s.createElement(H1.Provider,{value:V},s.createElement(ol,{open:B||x||T,autoDestroy:!1,getContainer:C,autoLock:b&&(B||T)},s.createElement(q1,J)))};process.env.NODE_ENV!=="production"&&(U1.displayName="Drawer");const G1=e=>{var t,n;const{prefixCls:r,title:o,footer:i,extra:a,loading:l,onClose:c,headerStyle:u,bodyStyle:d,footerStyle:f,children:m,classNames:p,styles:h}=e,b=An("drawer"),v=s.useCallback(S=>s.createElement("button",{type:"button",onClick:c,className:`${r}-close`},S),[c]),[y,C]=bm(Gi(e),Gi(b),{closable:!0,closeIconRender:v}),x=s.useMemo(()=>{var S,$;return!o&&!y?null:s.createElement("div",{style:Object.assign(Object.assign(Object.assign({},(S=b.styles)===null||S===void 0?void 0:S.header),u),h==null?void 0:h.header),className:G(`${r}-header`,{[`${r}-header-close-only`]:y&&!o&&!a},($=b.classNames)===null||$===void 0?void 0:$.header,p==null?void 0:p.header)},s.createElement("div",{className:`${r}-header-title`},C,o&&s.createElement("div",{className:`${r}-title`},o)),a&&s.createElement("div",{className:`${r}-extra`},a))},[y,C,a,u,r,o]),E=s.useMemo(()=>{var S,$;if(!i)return null;const O=`${r}-footer`;return s.createElement("div",{className:G(O,(S=b.classNames)===null||S===void 0?void 0:S.footer,p==null?void 0:p.footer),style:Object.assign(Object.assign(Object.assign({},($=b.styles)===null||$===void 0?void 0:$.footer),f),h==null?void 0:h.footer)},i)},[i,f,r]);return s.createElement(s.Fragment,null,x,s.createElement("div",{className:G(`${r}-body`,p==null?void 0:p.body,(t=b.classNames)===null||t===void 0?void 0:t.body),style:Object.assign(Object.assign(Object.assign({},(n=b.styles)===null||n===void 0?void 0:n.body),d),h==null?void 0:h.body)},l?s.createElement($m,{active:!0,title:!1,paragraph:{rows:5},className:`${r}-body-skeleton`}):m),E)},fF=e=>{const t="100%";return{left:`translateX(-${t})`,right:`translateX(${t})`,top:`translateY(-${t})`,bottom:`translateY(${t})`}[e]},X1=(e,t)=>({"&-enter, &-appear":Object.assign(Object.assign({},e),{"&-active":t}),"&-leave":Object.assign(Object.assign({},t),{"&-active":e})}),Q1=(e,t)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${t}`}}},X1({opacity:e},{opacity:1})),mF=(e,t)=>[Q1(.7,t),X1({transform:fF(e)},{transform:"none"})],pF=e=>{const{componentCls:t,motionDurationSlow:n}=e;return{[t]:{[`${t}-mask-motion`]:Q1(0,n),[`${t}-panel-motion`]:["left","right","top","bottom"].reduce((r,o)=>Object.assign(Object.assign({},r),{[`&-${o}`]:mF(o,n)}),{})}}},vF=e=>{const{borderRadiusSM:t,componentCls:n,zIndexPopup:r,colorBgMask:o,colorBgElevated:i,motionDurationSlow:a,motionDurationMid:l,paddingXS:c,padding:u,paddingLG:d,fontSizeLG:f,lineHeightLG:m,lineWidth:p,lineType:h,colorSplit:b,marginXS:v,colorIcon:y,colorIconHover:C,colorBgTextHover:x,colorBgTextActive:E,colorText:S,fontWeightStrong:$,footerPaddingBlock:O,footerPaddingInline:I,calc:w}=e,N=`${n}-content-wrapper`;return{[n]:{position:"fixed",inset:0,zIndex:r,pointerEvents:"none",color:S,"&-pure":{position:"relative",background:i,display:"flex",flexDirection:"column",[`&${n}-left`]:{boxShadow:e.boxShadowDrawerLeft},[`&${n}-right`]:{boxShadow:e.boxShadowDrawerRight},[`&${n}-top`]:{boxShadow:e.boxShadowDrawerUp},[`&${n}-bottom`]:{boxShadow:e.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${n}-mask`]:{position:"absolute",inset:0,zIndex:r,background:o,pointerEvents:"auto"},[N]:{position:"absolute",zIndex:r,maxWidth:"100vw",transition:`all ${a}`,"&-hidden":{display:"none"}},[`&-left > ${N}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${N}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${N}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${N}`]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},[`${n}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:i,pointerEvents:"auto"},[`${n}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${U(u)} ${U(d)}`,fontSize:f,lineHeight:m,borderBottom:`${U(p)} ${h} ${b}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${n}-extra`]:{flex:"none"},[`${n}-close`]:Object.assign({display:"inline-flex",width:w(f).add(c).equal(),height:w(f).add(c).equal(),borderRadius:t,justifyContent:"center",alignItems:"center",marginInlineEnd:v,color:y,fontWeight:$,fontSize:f,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${l}`,textRendering:"auto","&:hover":{color:C,backgroundColor:x,textDecoration:"none"},"&:active":{backgroundColor:E}},Ir(e)),[`${n}-title`]:{flex:1,margin:0,fontWeight:e.fontWeightStrong,fontSize:f,lineHeight:m},[`${n}-body`]:{flex:1,minWidth:0,minHeight:0,padding:d,overflow:"auto",[`${n}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[`${n}-footer`]:{flexShrink:0,padding:`${U(O)} ${U(I)}`,borderTop:`${U(p)} ${h} ${b}`},"&-rtl":{direction:"rtl"}}}},Y1=Dt("Drawer",e=>{const t=xt(e,{});return[vF(t),pF(t)]},e=>({zIndexPopup:e.zIndexPopupBase,footerPaddingBlock:e.paddingXS,footerPaddingInline:e.padding}));var J1=globalThis&&globalThis.__rest||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 gF={distance:180},xp=e=>{var t;const{rootClassName:n,width:r,height:o,size:i="default",mask:a=!0,push:l=gF,open:c,afterOpenChange:u,onClose:d,prefixCls:f,getContainer:m,style:p,className:h,visible:b,afterVisibleChange:v,maskStyle:y,drawerStyle:C,contentWrapperStyle:x,destroyOnClose:E,destroyOnHidden:S}=e,$=J1(e,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle","destroyOnClose","destroyOnHidden"]),{getPopupContainer:O,getPrefixCls:I,direction:w,className:N,style:_,classNames:P,styles:M}=An("drawer"),D=I("drawer",f),[T,A,R]=Y1(D),L=m===void 0&&O?()=>O(document.body):m,j=G({"no-mask":!a,[`${D}-rtl`]:w==="rtl"},n,A,R);if(process.env.NODE_ENV!=="production"){const te=gt("Drawer");[["visible","open"],["afterVisibleChange","afterOpenChange"],["headerStyle","styles.header"],["bodyStyle","styles.body"],["footerStyle","styles.footer"],["contentWrapperStyle","styles.wrapper"],["maskStyle","styles.mask"],["drawerStyle","styles.content"],["destroyInactivePanel","destroyOnHidden"]].forEach(oe=>{let[X,F]=oe;te.deprecated(!(X in e),X,F)}),L!==void 0&&((t=e.style)===null||t===void 0?void 0:t.position)==="absolute"&&process.env.NODE_ENV!=="production"&&te(!1,"breaking","`style` is replaced by `rootStyle` in v5. Please check that `position: absolute` is necessary.")}const z=s.useMemo(()=>r!=null?r:i==="large"?736:378,[r,i]),B=s.useMemo(()=>o!=null?o:i==="large"?736:378,[o,i]),K={motionName:ao(D,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},W=te=>({motionName:ao(D,`panel-motion-${te}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),k=bS(),[V,Q]=ki("Drawer",$.zIndex),{classNames:J={},styles:Y={}}=$;return T(s.createElement(Ui,{form:!0,space:!0},s.createElement(Ja.Provider,{value:Q},s.createElement(U1,Object.assign({prefixCls:D,onClose:d,maskMotion:K,motion:W},$,{classNames:{mask:G(J.mask,P.mask),content:G(J.content,P.content),wrapper:G(J.wrapper,P.wrapper)},styles:{mask:Object.assign(Object.assign(Object.assign({},Y.mask),y),M.mask),content:Object.assign(Object.assign(Object.assign({},Y.content),C),M.content),wrapper:Object.assign(Object.assign(Object.assign({},Y.wrapper),x),M.wrapper)},open:c!=null?c:b,mask:a,push:l,width:z,height:B,style:Object.assign(Object.assign({},_),p),className:G(N,h),rootClassName:j,getContainer:L,afterOpenChange:u!=null?u:v,panelRef:k,zIndex:V,destroyOnClose:S!=null?S:E}),s.createElement(G1,Object.assign({prefixCls:D},$,{onClose:d}))))))},hF=e=>{const{prefixCls:t,style:n,className:r,placement:o="right"}=e,i=J1(e,["prefixCls","style","className","placement"]),{getPrefixCls:a}=s.useContext(Xe),l=a("drawer",t),[c,u,d]=Y1(l),f=G(l,`${l}-pure`,`${l}-${o}`,u,d,r);return c(s.createElement("div",{className:f,style:n},s.createElement(G1,Object.assign({prefixCls:l},i))))};xp._InternalPanelDoNotUseOrYouWillBeFired=hF,process.env.NODE_ENV!=="production"&&(xp.displayName="Drawer");const Z1=xp;function Uc(e){return["small","middle","large"].includes(e)}function e$(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const t$=g.createContext({latestIndex:0}),bF=t$.Provider,yF=e=>{let{className:t,index:n,children:r,split:o,style:i}=e;const{latestIndex:a}=s.useContext(t$);return r==null?null:s.createElement(s.Fragment,null,s.createElement("div",{className:t,style:i},r),n<a&&o&&s.createElement("span",{className:`${t}-split`},o))};var CF=globalThis&&globalThis.__rest||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 Ep=s.forwardRef((e,t)=>{var n;const{getPrefixCls:r,direction:o,size:i,className:a,style:l,classNames:c,styles:u}=An("space"),{size:d=i!=null?i:"small",align:f,className:m,rootClassName:p,children:h,direction:b="horizontal",prefixCls:v,split:y,style:C,wrap:x=!1,classNames:E,styles:S}=e,$=CF(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[O,I]=Array.isArray(d)?d:[d,d],w=Uc(I),N=Uc(O),_=e$(I),P=e$(O),M=Tn(h,{keepEmpty:!0}),D=f===void 0&&b==="horizontal"?"center":f,T=r("space",v),[A,R,L]=uC(T),j=G(T,a,R,`${T}-${b}`,{[`${T}-rtl`]:o==="rtl",[`${T}-align-${D}`]:D,[`${T}-gap-row-${I}`]:w,[`${T}-gap-col-${O}`]:N},m,p,L),z=G(`${T}-item`,(n=E==null?void 0:E.item)!==null&&n!==void 0?n:c.item);let B=0;const K=M.map((V,Q)=>{var J;V!=null&&(B=Q);const Y=(V==null?void 0:V.key)||`${z}-${Q}`;return s.createElement(yF,{className:z,key:Y,index:Q,split:y,style:(J=S==null?void 0:S.item)!==null&&J!==void 0?J:u.item},V)}),W=s.useMemo(()=>({latestIndex:B}),[B]);if(M.length===0)return null;const k={};return x&&(k.flexWrap="wrap"),!N&&P&&(k.columnGap=O),!w&&_&&(k.rowGap=I),A(s.createElement("div",Object.assign({ref:t,className:j,style:Object.assign(Object.assign(Object.assign({},k),l),C)},$),s.createElement(bF,{value:W},K)))});Ep.Compact=I3,process.env.NODE_ENV!=="production"&&(Ep.displayName="Space");const Zt=Ep;var SF=globalThis&&globalThis.__rest||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 n$=e=>{const{getPopupContainer:t,getPrefixCls:n,direction:r}=s.useContext(Xe),{prefixCls:o,type:i="default",danger:a,disabled:l,loading:c,onClick:u,htmlType:d,children:f,className:m,menu:p,arrow:h,autoFocus:b,overlay:v,trigger:y,align:C,open:x,onOpenChange:E,placement:S,getPopupContainer:$,href:O,icon:I=s.createElement(jd,null),title:w,buttonsRender:N=X=>X,mouseEnterDelay:_,mouseLeaveDelay:P,overlayClassName:M,overlayStyle:D,destroyOnHidden:T,destroyPopupOnHide:A,dropdownRender:R,popupRender:L}=e,j=SF(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"]),z=n("dropdown",o),B=`${z}-button`,W={menu:p,arrow:h,autoFocus:b,align:C,disabled:l,trigger:l?[]:y,onOpenChange:E,getPopupContainer:$||t,mouseEnterDelay:_,mouseLeaveDelay:P,overlayClassName:M,overlayStyle:D,destroyOnHidden:T,popupRender:L||R},{compactSize:k,compactItemClassnames:V}=Fi(z,r),Q=G(B,V,m);"destroyPopupOnHide"in e&&(W.destroyPopupOnHide=A),"overlay"in e&&(W.overlay=v),"open"in e&&(W.open=x),"placement"in e?W.placement=S:W.placement=r==="rtl"?"bottomLeft":"bottomRight";const J=s.createElement(on,{type:i,danger:a,disabled:l,loading:c,onClick:u,htmlType:d,href:O,title:w},f),Y=s.createElement(on,{type:i,danger:a,icon:I}),[te,oe]=N([J,Y]);return s.createElement(Zt.Compact,Object.assign({className:Q,size:k,block:!0},j),te,s.createElement(FE,Object.assign({},W),oe))};n$.__ANT_BUTTON=!0;const xF=n$,r$=FE;r$.Button=xF;const o$=r$,i$=["wrap","nowrap","wrap-reverse"],a$=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],l$=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],EF=(e,t)=>{const n=t.wrap===!0?"wrap":t.wrap;return{[`${e}-wrap-${n}`]:n&&i$.includes(n)}},$F=(e,t)=>{const n={};return l$.forEach(r=>{n[`${e}-align-${r}`]=t.align===r}),n[`${e}-align-stretch`]=!t.align&&!!t.vertical,n},wF=(e,t)=>{const n={};return a$.forEach(r=>{n[`${e}-justify-${r}`]=t.justify===r}),n};function OF(e,t){return G(Object.assign(Object.assign(Object.assign({},EF(e,t)),$F(e,t)),wF(e,t)))}const NF=e=>{const{componentCls:t}=e;return{[t]:{display:"flex",margin:0,padding:0,"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},IF=e=>{const{componentCls:t}=e;return{[t]:{"&-gap-small":{gap:e.flexGapSM},"&-gap-middle":{gap:e.flexGap},"&-gap-large":{gap:e.flexGapLG}}}},_F=e=>{const{componentCls:t}=e,n={};return i$.forEach(r=>{n[`${t}-wrap-${r}`]={flexWrap:r}}),n},TF=e=>{const{componentCls:t}=e,n={};return l$.forEach(r=>{n[`${t}-align-${r}`]={alignItems:r}}),n},PF=e=>{const{componentCls:t}=e,n={};return a$.forEach(r=>{n[`${t}-justify-${r}`]={justifyContent:r}}),n},MF=Dt("Flex",e=>{const{paddingXS:t,padding:n,paddingLG:r}=e,o=xt(e,{flexGapSM:t,flexGap:n,flexGapLG:r});return[NF(o),IF(o),_F(o),TF(o),PF(o)]},()=>({}),{resetStyle:!1});var DF=globalThis&&globalThis.__rest||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 s$=g.forwardRef((e,t)=>{const{prefixCls:n,rootClassName:r,className:o,style:i,flex:a,gap:l,children:c,vertical:u=!1,component:d="div"}=e,f=DF(e,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:m,direction:p,getPrefixCls:h}=g.useContext(Xe),b=h("flex",n),[v,y,C]=MF(b),x=u!=null?u:m==null?void 0:m.vertical,E=G(o,r,m==null?void 0:m.className,b,y,C,OF(b,e),{[`${b}-rtl`]:p==="rtl",[`${b}-gap-${l}`]:Uc(l),[`${b}-vertical`]:x}),S=Object.assign(Object.assign({},m==null?void 0:m.style),i);return a&&(S.flex=a),l&&!Uc(l)&&(S.gap=l),v(g.createElement(d,Object.assign({ref:t,className:E,style:S},tn(f,["justify","wrap","align"])),c))});process.env.NODE_ENV!=="production"&&(s$.displayName="Flex");const rn=s$;function AF(e){return e==null?null:typeof e=="object"&&!g.isValidElement(e)?e:{title:e}}function Gc(e){const[t,n]=s.useState(e);return s.useEffect(()=>{const r=setTimeout(()=>{n(e)},e.length?0:10);return()=>{clearTimeout(r)}},[e]),t}const RF=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},
|
|
300
|
+
opacity ${e.motionDurationFast} ${e.motionEaseInOut},
|
|
301
|
+
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)"}}}}},jF=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${U(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 ${U(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),c$=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},LF=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},Ht(e)),jF(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},c$(e,e.controlHeightSM)),"&-large":Object.assign({},c$(e,e.controlHeightLG))})}},zF=e=>{const{formItemCls:t,iconCls:n,rootPrefixCls:r,antCls:o,labelRequiredMarkColor:i,labelColor:a,labelFontSize:l,labelHeight:c,labelColonMarginInlineStart:u,labelColonMarginInlineEnd:d,itemMarginBottom:f}=e;return{[t]:Object.assign(Object.assign({},Ht(e)),{marginBottom:f,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
|
|
302
|
+
&-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:a,fontSize:l,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:e.marginXXS,color:i,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"'},[`&${t}-required-mark-hidden, &${t}-required-mark-optional`]:{"&::before":{display:"none"}}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`&${t}-required-mark-hidden`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart: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%"}}},[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:Gf,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},u$=(e,t)=>{const{formItemCls:n}=e;return{[`${t}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:"1 1 0",minWidth:0},[`${n}-label[class$='-24'], ${n}-label[class*='-24 ']`]:{[`& + ${n}-control`]:{minWidth:"unset"}}}}},BF=e=>{const{componentCls:t,formItemCls:n,inlineItemMarginBottom:r}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[n]:{flex:"none",marginInlineEnd:e.margin,marginBottom:r,"&-row":{flexWrap:"nowrap"},[`> ${n}-label,
|
|
303
|
+
> ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},Hr=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),d$=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:Hr(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},kF=e=>{const{componentCls:t,formItemCls:n,antCls:r}=e;return{[`${t}-vertical`]:{[`${n}:not(${n}-horizontal)`]:{[`${n}-row`]:{flexDirection:"column"},[`${n}-label > label`]:{height:"auto"},[`${n}-control`]:{width:"100%"},[`${n}-label,
|
|
304
|
+
${r}-col-24${n}-label,
|
|
305
|
+
${r}-col-xl-24${n}-label`]:Hr(e)}},[`@media (max-width: ${U(e.screenXSMax)})`]:[d$(e),{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-xs-24${n}-label`]:Hr(e)}}}],[`@media (max-width: ${U(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-sm-24${n}-label`]:Hr(e)}}},[`@media (max-width: ${U(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-md-24${n}-label`]:Hr(e)}}},[`@media (max-width: ${U(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-lg-24${n}-label`]:Hr(e)}}}}},FF=e=>{const{formItemCls:t,antCls:n}=e;return{[`${t}-vertical`]:{[`${t}-row`]:{flexDirection:"column"},[`${t}-label > label`]:{height:"auto"},[`${t}-control`]:{width:"100%"}},[`${t}-vertical ${t}-label,
|
|
306
|
+
${n}-col-24${t}-label,
|
|
307
|
+
${n}-col-xl-24${t}-label`]:Hr(e),[`@media (max-width: ${U(e.screenXSMax)})`]:[d$(e),{[t]:{[`${n}-col-xs-24${t}-label`]:Hr(e)}}],[`@media (max-width: ${U(e.screenSMMax)})`]:{[t]:{[`${n}-col-sm-24${t}-label`]:Hr(e)}},[`@media (max-width: ${U(e.screenMDMax)})`]:{[t]:{[`${n}-col-md-24${t}-label`]:Hr(e)}},[`@media (max-width: ${U(e.screenLGMax)})`]:{[t]:{[`${n}-col-lg-24${t}-label`]:Hr(e)}}}},HF=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}),f$=(e,t)=>xt(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),$p=Dt("Form",(e,t)=>{let{rootPrefixCls:n}=t;const r=f$(e,n);return[LF(r),zF(r),RF(r),u$(r,r.componentCls),u$(r,r.formItemCls),BF(r),kF(r),FF(r),Vf(r),Gf]},HF,{order:-1e3}),m$=[];function wp(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof e=="string"?e:`${t}-${r}`,error:e,errorStatus:n}}const p$=e=>{let{help:t,helpStatus:n,errors:r=m$,warnings:o=m$,className:i,fieldId:a,onVisibleChanged:l}=e;const{prefixCls:c}=s.useContext(hm),u=`${c}-item-explain`,d=On(c),[f,m,p]=$p(c,d),h=s.useMemo(()=>Ys(c),[c]),b=Gc(r),v=Gc(o),y=s.useMemo(()=>t!=null?[wp(t,"help",n)]:[].concat(ge(b.map((E,S)=>wp(E,"error","error",S))),ge(v.map((E,S)=>wp(E,"warning","warning",S)))),[t,n,b,v]),C=s.useMemo(()=>{const E={};return y.forEach(S=>{let{key:$}=S;E[$]=(E[$]||0)+1}),y.map((S,$)=>Object.assign(Object.assign({},S),{key:E[S.key]>1?`${S.key}-fallback-${$}`:S.key}))},[y]),x={};return a&&(x.id=`${a}_help`),f(s.createElement(cr,{motionDeadline:h.motionDeadline,motionName:`${c}-show-help`,visible:!!C.length,onVisibleChanged:l},E=>{const{className:S,style:$}=E;return s.createElement("div",Object.assign({},x,{className:G(u,S,p,d,i,m),style:$}),s.createElement(N0,Object.assign({keys:C},Ys(c),{motionName:`${c}-show-help-item`,component:!1}),O=>{const{key:I,error:w,errorStatus:N,className:_,style:P}=O;return s.createElement("div",{key:I,className:G(_,{[`${u}-${N}`]:N}),style:P},w)}))}))},VF=["parentNode"],WF="form_item";function Nl(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function v$(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:VF.includes(n)?`${WF}_${n}`:n}function g$(e,t,n,r,o,i){let a=r;return i!==void 0?a=i:n.validating?a="validating":e.length?a="error":t.length?a="warning":(n.touched||o&&n.validated)&&(a="success"),a}var KF=globalThis&&globalThis.__rest||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 h$(e){return Nl(e).join("_")}function b$(e,t){const n=t.getFieldInstance(e),r=Ba(n);if(r)return r;const o=v$(Nl(e),t.__INTERNAL__.name);if(o)return document.getElementById(o)}function y$(e){const[t]=vm(),n=s.useRef({}),r=s.useMemo(()=>e!=null?e:Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:o=>i=>{const a=h$(o);i?n.current[a]=i:delete n.current[a]}},scrollToField:function(o){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{focus:a}=i,l=KF(i,["focus"]),c=b$(o,r);c&&(LA(c,Object.assign({scrollMode:"if-needed",block:"nearest"},l)),a&&r.focusField(o))},focusField:o=>{var i,a;const l=r.getFieldInstance(o);typeof(l==null?void 0:l.focus)=="function"?l.focus():(a=(i=b$(o,r))===null||i===void 0?void 0:i.focus)===null||a===void 0||a.call(i)},getFieldInstance:o=>{const i=h$(o);return n.current[i]}}),[e,t]);return[r]}const Xc={};function qF(e){let{name:t}=e;const n=gt("Form");s.useEffect(()=>{if(t)return Xc[t]=(Xc[t]||0)+1,process.env.NODE_ENV!=="production"&&n(Xc[t]<=1,"usage","There exist multiple Form with same `name`."),()=>{Xc[t]-=1}},[t])}var UF=globalThis&&globalThis.__rest||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 GF=(e,t)=>{const n=s.useContext(oo),{getPrefixCls:r,direction:o,requiredMark:i,colon:a,scrollToFirstError:l,className:c,style:u}=An("form"),{prefixCls:d,className:f,rootClassName:m,size:p,disabled:h=n,form:b,colon:v,labelAlign:y,labelWrap:C,labelCol:x,wrapperCol:E,hideRequiredMark:S,layout:$="horizontal",scrollToFirstError:O,requiredMark:I,onFinishFailed:w,name:N,style:_,feedbackIcons:P,variant:M}=e,D=UF(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),T=qn(p),A=s.useContext(By);process.env.NODE_ENV!=="production"&&qF(e);const R=s.useMemo(()=>I!==void 0?I:S?!1:i!==void 0?i:!0,[S,I,i]),L=v!=null?v:a,j=r("form",d),z=On(j),[B,K,W]=$p(j,z),k=G(j,`${j}-${$}`,{[`${j}-hide-required-mark`]:R===!1,[`${j}-rtl`]:o==="rtl",[`${j}-${T}`]:T},W,z,K,c,f,m),[V]=y$(b),{__INTERNAL__:Q}=V;Q.name=N;const J=s.useMemo(()=>({name:N,labelAlign:y,labelCol:x,labelWrap:C,wrapperCol:E,vertical:$==="vertical",colon:L,requiredMark:R,itemRef:Q.itemRef,form:V,feedbackIcons:P}),[N,y,x,E,$,L,R,V,P]),Y=s.useRef(null);s.useImperativeHandle(t,()=>{var X;return Object.assign(Object.assign({},V),{nativeElement:(X=Y.current)===null||X===void 0?void 0:X.nativeElement})});const te=(X,F)=>{if(X){let ee={block:"nearest"};typeof X=="object"&&(ee=Object.assign(Object.assign({},ee),X)),V.scrollToField(F,ee)}},oe=X=>{if(w==null||w(X),X.errorFields.length){const F=X.errorFields[0].name;if(O!==void 0){te(O,F);return}l!==void 0&&te(l,F)}};return B(s.createElement(mS.Provider,{value:M},s.createElement(df,{disabled:h},s.createElement(Xa.Provider,{value:T},s.createElement(fS,{validateMessages:A},s.createElement(wo.Provider,{value:J},s.createElement(qi,Object.assign({id:N},D,{name:N,onFinishFailed:oe,form:V,ref:Y,style:Object.assign(Object.assign({},u),_),className:k}))))))))},C$=s.forwardRef(GF);process.env.NODE_ENV!=="production"&&(C$.displayName="Form");const XF=C$;function QF(e){if(typeof e=="function")return e;const t=Tn(e);return t.length<=1?t[0]:t}const S$=()=>{const{status:e,errors:t=[],warnings:n=[]}=s.useContext(Xn);if(process.env.NODE_ENV!=="production"){const r=gt("Form.Item");process.env.NODE_ENV!=="production"&&r(e!==void 0,"usage","Form.Item.useStatus should be used under Form.Item component. For more information: https://u.ant.design/form-item-usestatus")}return{status:e,errors:t,warnings:n}};S$.Context=Xn;const YF=S$;function JF(e){const[t,n]=s.useState(e),r=s.useRef(null),o=s.useRef([]),i=s.useRef(!1);s.useEffect(()=>(i.current=!1,()=>{i.current=!0,Rt.cancel(r.current),r.current=null}),[]);function a(l){i.current||(r.current===null&&(o.current=[],r.current=Rt(()=>{r.current=null,n(c=>{let u=c;return o.current.forEach(d=>{u=d(u)}),u})})),o.current.push(l))}return[t,a]}function ZF(){const{itemRef:e}=s.useContext(wo),t=s.useRef({});function n(r,o){const i=o&&typeof o=="object"&&Ao(o),a=r.join("_");return(t.current.name!==a||t.current.originRef!==i)&&(t.current.name=a,t.current.originRef=i,t.current.ref=Wn(e(r),i)),t.current.ref}return n}const eH=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},tH=Li(["Form","item-item"],(e,t)=>{let{rootPrefixCls:n}=t;const r=f$(e,n);return[eH(r)]});var nH=globalThis&&globalThis.__rest||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 rH=24,oH=e=>{const{prefixCls:t,status:n,labelCol:r,wrapperCol:o,children:i,errors:a,warnings:l,_internalItemRender:c,extra:u,help:d,fieldId:f,marginBottom:m,onErrorVisibleChanged:p,label:h}=e,b=`${t}-item`,v=s.useContext(wo),y=s.useMemo(()=>{let D=Object.assign({},o||v.wrapperCol||{});return h===null&&!r&&!o&&v.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(A=>{const R=A?[A]:[],L=or(v.labelCol,R),j=typeof L=="object"?L:{},z=or(D,R),B=typeof z=="object"?z:{};"span"in j&&!("offset"in B)&&j.span<rH&&(D=Or(D,[].concat(R,["offset"]),j.span))}),D},[o,v]),C=G(`${b}-control`,y.className),x=s.useMemo(()=>nH(v,["labelCol","wrapperCol"]),[v]),E=s.useRef(null),[S,$]=s.useState(0);wt(()=>{u&&E.current?$(E.current.clientHeight):$(0)},[u]);const O=s.createElement("div",{className:`${b}-control-input`},s.createElement("div",{className:`${b}-control-input-content`},i)),I=s.useMemo(()=>({prefixCls:t,status:n}),[t,n]),w=m!==null||a.length||l.length?s.createElement(hm.Provider,{value:I},s.createElement(p$,{fieldId:f,errors:a,warnings:l,help:d,helpStatus:n,className:`${b}-explain-connected`,onVisibleChanged:p})):null,N={};f&&(N.id=`${f}_extra`);const _=u?s.createElement("div",Object.assign({},N,{className:`${b}-extra`,ref:E}),u):null,P=w||_?s.createElement("div",{className:`${b}-additional`,style:m?{minHeight:m+S}:{}},w,_):null,M=c&&c.mark==="pro_table_render"&&c.render?c.render(e,{input:O,errorList:w,extra:_}):s.createElement(s.Fragment,null,O,P);return s.createElement(wo.Provider,{value:x},s.createElement(Ln,Object.assign({},y,{className:C}),M),s.createElement(tH,{prefixCls:t}))};var iH=globalThis&&globalThis.__rest||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 aH=e=>{let{prefixCls:t,label:n,htmlFor:r,labelCol:o,labelAlign:i,colon:a,required:l,requiredMark:c,tooltip:u,vertical:d}=e;var f;const[m]=ro("Form"),{labelAlign:p,labelCol:h,labelWrap:b,colon:v}=s.useContext(wo);if(!n)return null;const y=o||h||{},C=i||p,x=`${t}-item-label`,E=G(x,C==="left"&&`${x}-left`,y.className,{[`${x}-wrap`]:!!b});let S=n;const $=a===!0||v!==!1&&a!==!1;$&&!d&&typeof n=="string"&&n.trim()&&(S=n.replace(/[:|:]\s*$/,""));const I=AF(u);if(I){const{icon:D=s.createElement(lP,null)}=I,T=iH(I,["icon"]),A=s.createElement(co,Object.assign({},T),s.cloneElement(D,{className:`${t}-item-tooltip`,title:"",onClick:R=>{R.preventDefault()},tabIndex:null}));S=s.createElement(s.Fragment,null,S,A)}const w=c==="optional",N=typeof c=="function",_=c===!1;N?S=c(S,{required:!!l}):w&&!l&&(S=s.createElement(s.Fragment,null,S,s.createElement("span",{className:`${t}-item-optional`,title:""},(m==null?void 0:m.optional)||((f=no.Form)===null||f===void 0?void 0:f.optional))));let P;_?P="hidden":(w||N)&&(P="optional");const M=G({[`${t}-item-required`]:l,[`${t}-item-required-mark-${P}`]:P,[`${t}-item-no-colon`]:!$});return s.createElement(Ln,Object.assign({},y,{className:E}),s.createElement("label",{htmlFor:r,className:M,title:typeof n=="string"?n:""},S))},lH={success:Mo,warning:Pa,error:Do,validating:ti};function x$(e){let{children:t,errors:n,warnings:r,hasFeedback:o,validateStatus:i,prefixCls:a,meta:l,noStyle:c}=e;const u=`${a}-item`,{feedbackIcons:d}=s.useContext(wo),f=g$(n,r,l,null,!!o,i),{isFormItemInput:m,status:p,hasFeedback:h,feedbackIcon:b}=s.useContext(Xn),v=s.useMemo(()=>{var y;let C;if(o){const E=o!==!0&&o.icons||d,S=f&&((y=E==null?void 0:E({status:f,errors:n,warnings:r}))===null||y===void 0?void 0:y[f]),$=f&&lH[f];C=S!==!1&&$?s.createElement("span",{className:G(`${u}-feedback-icon`,`${u}-feedback-icon-${f}`)},S||s.createElement($,null)):null}const x={status:f||"",errors:n,warnings:r,hasFeedback:!!o,feedbackIcon:C,isFormItemInput:!0};return c&&(x.status=(f!=null?f:p)||"",x.isFormItemInput=m,x.hasFeedback=!!(o!=null?o:h),x.feedbackIcon=o!==void 0?x.feedbackIcon:b),x},[f,o,c,m,p]);return s.createElement(Xn.Provider,{value:v},t)}var sH=globalThis&&globalThis.__rest||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 cH(e){const{prefixCls:t,className:n,rootClassName:r,style:o,help:i,errors:a,warnings:l,validateStatus:c,meta:u,hasFeedback:d,hidden:f,children:m,fieldId:p,required:h,isRequired:b,onSubItemMetaChange:v,layout:y}=e,C=sH(e,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout"]),x=`${t}-item`,{requiredMark:E,vertical:S}=s.useContext(wo),$=S||y==="vertical",O=s.useRef(null),I=Gc(a),w=Gc(l),N=i!=null,_=!!(N||a.length||l.length),P=!!O.current&&el(O.current),[M,D]=s.useState(null);wt(()=>{if(_&&O.current){const j=getComputedStyle(O.current);D(parseInt(j.marginBottom,10))}},[_,P]);const T=j=>{j||D(null)},R=function(){let j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const z=j?I:u.errors,B=j?w:u.warnings;return g$(z,B,u,"",!!d,c)}(),L=G(x,n,r,{[`${x}-with-help`]:N||I.length||w.length,[`${x}-has-feedback`]:R&&d,[`${x}-has-success`]:R==="success",[`${x}-has-warning`]:R==="warning",[`${x}-has-error`]:R==="error",[`${x}-is-validating`]:R==="validating",[`${x}-hidden`]:f,[`${x}-${y}`]:y});return s.createElement("div",{className:L,style:o,ref:O},s.createElement(Oo,Object.assign({className:`${x}-row`},tn(C,["_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"])),s.createElement(aH,Object.assign({htmlFor:p},e,{requiredMark:E,required:h!=null?h:b,prefixCls:t,vertical:$})),s.createElement(oH,Object.assign({},e,u,{errors:I,warnings:w,prefixCls:t,status:R,help:i,marginBottom:M,onErrorVisibleChanged:T}),s.createElement(dS.Provider,{value:v},s.createElement(x$,{prefixCls:t,meta:u,errors:u.errors,warnings:u.warnings,hasFeedback:d,validateStatus:R},m)))),!!M&&s.createElement("div",{className:`${x}-margin-offset`,style:{marginBottom:-M}}))}const uH="__SPLIT__";function dH(e,t){const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(o=>{const i=e[o],a=t[o];return i===a||typeof i=="function"||typeof a=="function"})}const fH=s.memo(e=>{let{children:t}=e;return t},(e,t)=>dH(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((n,r)=>n===t.childProps[r]));function E$(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function mH(e){const{name:t,noStyle:n,className:r,dependencies:o,prefixCls:i,shouldUpdate:a,rules:l,children:c,required:u,label:d,messageVariables:f,trigger:m="onChange",validateTrigger:p,hidden:h,help:b,layout:v}=e,{getPrefixCls:y}=s.useContext(Xe),{name:C}=s.useContext(wo),x=QF(c),E=typeof x=="function",S=s.useContext(dS),{validateTrigger:$}=s.useContext(di),O=p!==void 0?p:$,I=t!=null,w=y("form",i),N=On(w),[_,P,M]=$p(w,N),D=gt("Form.Item");process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="production"&&D(t!==null,"usage","`null` is passed as `name` property");const T=s.useContext(il),A=s.useRef(null),[R,L]=JF({}),[j,z]=si(()=>E$()),B=Y=>{const te=T==null?void 0:T.getKey(Y.name);if(z(Y.destroy?E$():Y,!0),n&&b!==!1&&S){let oe=Y.name;if(Y.destroy)oe=A.current||oe;else if(te!==void 0){const[X,F]=te;oe=[X].concat(ge(F)),A.current=oe}S(Y,oe)}},K=(Y,te)=>{L(oe=>{const X=Object.assign({},oe),ee=[].concat(ge(Y.name.slice(0,-1)),ge(te)).join(uH);return Y.destroy?delete X[ee]:X[ee]=Y,X})},[W,k]=s.useMemo(()=>{const Y=ge(j.errors),te=ge(j.warnings);return Object.values(R).forEach(oe=>{Y.push.apply(Y,ge(oe.errors||[])),te.push.apply(te,ge(oe.warnings||[]))}),[Y,te]},[R,j.errors,j.warnings]),V=ZF();function Q(Y,te,oe){return n&&!h?s.createElement(x$,{prefixCls:w,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:j,errors:W,warnings:k,noStyle:!0},Y):s.createElement(cH,Object.assign({key:"row"},e,{className:G(r,M,N,P),prefixCls:w,fieldId:te,isRequired:oe,errors:W,warnings:k,meta:j,onSubItemMetaChange:K,layout:v}),Y)}if(!I&&!E&&!o)return _(Q(x));let J={};return typeof d=="string"?J.label=d:t&&(J.label=String(t)),f&&(J=Object.assign(Object.assign({},J),f)),_(s.createElement(mm,Object.assign({},e,{messageVariables:J,trigger:m,validateTrigger:O,onMetaChange:B}),(Y,te,oe)=>{const X=Nl(t).length&&te?te.name:[],F=v$(X,C),ee=u!==void 0?u:!!(l!=null&&l.some(re=>{if(re&&typeof re=="object"&&re.required&&!re.warningOnly)return!0;if(typeof re=="function"){const se=re(oe);return(se==null?void 0:se.required)&&!(se!=null&&se.warningOnly)}return!1})),Z=Object.assign({},Y);let ne=null;if(process.env.NODE_ENV!=="production"&&D(!(a&&o),"usage","`shouldUpdate` and `dependencies` shouldn't be used together. See https://u.ant.design/form-deps."),Array.isArray(x)&&I)process.env.NODE_ENV!=="production"&&D(!1,"usage","A `Form.Item` with a `name` prop must have a single child element. For information on how to render more complex form items, see https://u.ant.design/complex-form-item."),ne=x;else if(E&&(!(a||o)||I))process.env.NODE_ENV!=="production"&&D(!!(a||o),"usage","A `Form.Item` with a render function must have either `shouldUpdate` or `dependencies`."),process.env.NODE_ENV!=="production"&&D(!I,"usage","A `Form.Item` with a render function cannot be a field, and thus cannot have a `name` prop.");else if(o&&!E&&!I)process.env.NODE_ENV!=="production"&&D(!1,"usage","Must set `name` or use a render function when `dependencies` is set.");else if(s.isValidElement(x)){process.env.NODE_ENV!=="production"&&D(x.props.defaultValue===void 0,"usage","`defaultValue` will not work on controlled Field. You should use `initialValues` of Form instead.");const re=Object.assign(Object.assign({},x.props),Z);if(re.id||(re.id=F),b||W.length>0||k.length>0||e.extra){const he=[];(b||W.length>0)&&he.push(`${F}_help`),e.extra&&he.push(`${F}_extra`),re["aria-describedby"]=he.join(" ")}W.length>0&&(re["aria-invalid"]="true"),ee&&(re["aria-required"]="true"),Rr(x)&&(re.ref=V(X,x)),new Set([].concat(ge(Nl(m)),ge(Nl(O)))).forEach(he=>{re[he]=function(){for(var fe,ie,ue,de,me,Ce=arguments.length,Oe=new Array(Ce),Te=0;Te<Ce;Te++)Oe[Te]=arguments[Te];(ue=Z[he])===null||ue===void 0||(fe=ue).call.apply(fe,[Z].concat(Oe)),(me=(de=x.props)[he])===null||me===void 0||(ie=me).call.apply(ie,[de].concat(Oe))}});const le=[re["aria-required"],re["aria-invalid"],re["aria-describedby"]];ne=s.createElement(fH,{control:Z,update:x,childProps:le},Gn(x,re))}else E&&(a||o)&&!I?ne=x(oe):(process.env.NODE_ENV!=="production"&&D(!X.length||!!n,"usage","`name` is only used for validate React element. If you are using Form.Item as layout display, please remove `name` instead."),ne=x);return Q(ne,F,ee)}))}const $$=mH;$$.useStatus=YF;const pH=$$;var vH=globalThis&&globalThis.__rest||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 gH=e=>{var{prefixCls:t,children:n}=e,r=vH(e,["prefixCls","children"]);if(process.env.NODE_ENV!=="production"){const l=gt("Form.List");process.env.NODE_ENV!=="production"&&l(typeof r.name=="number"||(Array.isArray(r.name)?!!r.name.length:!!r.name),"usage","Miss `name` prop.")}const{getPrefixCls:o}=s.useContext(Xe),i=o("form",t),a=s.useMemo(()=>({prefixCls:i,status:"error"}),[i]);return s.createElement(aS,Object.assign({},r),(l,c,u)=>s.createElement(hm.Provider,{value:a},n(l.map(d=>Object.assign(Object.assign({},d),{fieldKey:d.key})),c,{errors:u.errors,warnings:u.warnings})))};function hH(){const{form:e}=s.useContext(wo);return e}const No=XF;No.Item=pH,No.List=gH,No.ErrorList=p$,No.useForm=y$,No.useFormInstance=hH,No.useWatch=uS,No.Provider=fS,No.create=()=>{process.env.NODE_ENV!=="production"&&zo(!1,"Form","antd v4 removed `Form.create`. Please remove or use `@ant-design/compatible` instead.")};const Vt=No;function w$(e,t,n,r){var o=nr.unstable_batchedUpdates?function(a){nr.unstable_batchedUpdates(n,a)}:n;return e!=null&&e.addEventListener&&e.addEventListener(t,o,r),{remove:function(){e!=null&&e.removeEventListener&&e.removeEventListener(t,o,r)}}}const bH=e=>{const{getPrefixCls:t,direction:n}=g.useContext(Xe),{prefixCls:r,className:o}=e,i=t("input-group",r),a=t("input"),[l,c,u]=r1(a),d=G(i,u,{[`${i}-lg`]:e.size==="large",[`${i}-sm`]:e.size==="small",[`${i}-compact`]:e.compact,[`${i}-rtl`]:n==="rtl"},c,o),f=g.useContext(Xn),m=g.useMemo(()=>Object.assign(Object.assign({},f),{isFormItemInput:!1}),[f]);return process.env.NODE_ENV!=="production"&>("Input.Group").deprecated(!1,"Input.Group","Space.Compact"),l(s.createElement("span",{className:d,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},s.createElement(Xn.Provider,{value:m},e.children)))},yH=e=>{const{componentCls:t,paddingXS:n}=e;return{[t]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:n,[`${t}-input-wrapper`]:{position:"relative",[`${t}-mask-icon`]:{position:"absolute",zIndex:"1",top:"50%",right:"50%",transform:"translate(50%, -50%)",pointerEvents:"none"},[`${t}-mask-input`]:{color:"transparent",caretColor:"var(--ant-color-text)"},[`${t}-mask-input[type=number]::-webkit-inner-spin-button`]:{"-webkit-appearance":"none",margin:0},[`${t}-mask-input[type=number]`]:{"-moz-appearance":"textfield"}},"&-rtl":{direction:"rtl"},[`${t}-input`]:{textAlign:"center",paddingInline:e.paddingXXS},[`&${t}-sm ${t}-input`]:{paddingInline:e.calc(e.paddingXXS).div(2).equal()},[`&${t}-lg ${t}-input`]:{paddingInline:e.paddingXS}}}},CH=Dt(["Input","OTP"],e=>{const t=xt(e,xl(e));return[yH(t)]},El);var SH=globalThis&&globalThis.__rest||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 xH=s.forwardRef((e,t)=>{const{className:n,value:r,onChange:o,onActiveChange:i,index:a,mask:l}=e,c=SH(e,["className","value","onChange","onActiveChange","index","mask"]),{getPrefixCls:u}=s.useContext(Xe),d=u("otp"),f=typeof l=="string"?l:r,m=s.useRef(null);s.useImperativeHandle(t,()=>m.current);const p=y=>{o(a,y.target.value)},h=()=>{Rt(()=>{var y;const C=(y=m.current)===null||y===void 0?void 0:y.input;document.activeElement===C&&C&&C.select()})},b=y=>{const{key:C,ctrlKey:x,metaKey:E}=y;C==="ArrowLeft"?i(a-1):C==="ArrowRight"?i(a+1):C==="z"&&(x||E)&&y.preventDefault(),h()},v=y=>{y.key==="Backspace"&&!r&&i(a-1),h()};return s.createElement("span",{className:`${d}-input-wrapper`,role:"presentation"},l&&r!==""&&r!==void 0&&s.createElement("span",{className:`${d}-mask-icon`,"aria-hidden":"true"},f),s.createElement(Ol,Object.assign({"aria-label":`OTP Input ${a+1}`,type:l===!0?"password":"text"},c,{ref:m,value:r,onInput:p,onFocus:h,onKeyDown:b,onKeyUp:v,onMouseDown:h,onMouseUp:h,className:G(n,{[`${d}-mask-input`]:l})})))});var EH=globalThis&&globalThis.__rest||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 Qc(e){return(e||"").split("")}const $H=e=>{const{index:t,prefixCls:n,separator:r}=e,o=typeof r=="function"?r(t):r;return o?s.createElement("span",{className:`${n}-separator`},o):null},wH=s.forwardRef((e,t)=>{const{prefixCls:n,length:r=6,size:o,defaultValue:i,value:a,onChange:l,formatter:c,separator:u,variant:d,disabled:f,status:m,autoFocus:p,mask:h,type:b,onInput:v,inputMode:y}=e,C=EH(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]);if(process.env.NODE_ENV!=="production"){const k=gt("Input.OTP");process.env.NODE_ENV!=="production"&&k(!(typeof h=="string"&&h.length>1),"usage","`mask` prop should be a single character.")}const{getPrefixCls:x,direction:E}=s.useContext(Xe),S=x("otp",n),$=Rn(C,{aria:!0,data:!0,attr:!0}),[O,I,w]=CH(S),N=qn(k=>o!=null?o:k),_=s.useContext(Xn),P=Sc(_.status,m),M=s.useMemo(()=>Object.assign(Object.assign({},_),{status:P,hasFeedback:!1,feedbackIcon:null}),[_,P]),D=s.useRef(null),T=s.useRef({});s.useImperativeHandle(t,()=>({focus:()=>{var k;(k=T.current[0])===null||k===void 0||k.focus()},blur:()=>{var k;for(let V=0;V<r;V+=1)(k=T.current[V])===null||k===void 0||k.blur()},nativeElement:D.current}));const A=k=>c?c(k):k,[R,L]=s.useState(()=>Qc(A(i||"")));s.useEffect(()=>{a!==void 0&&L(Qc(a))},[a]);const j=qt(k=>{L(k),v&&v(k),l&&k.length===r&&k.every(V=>V)&&k.some((V,Q)=>R[Q]!==V)&&l(k.join(""))}),z=qt((k,V)=>{let Q=ge(R);for(let Y=0;Y<k;Y+=1)Q[Y]||(Q[Y]="");V.length<=1?Q[k]=V:Q=Q.slice(0,k).concat(Qc(V)),Q=Q.slice(0,r);for(let Y=Q.length-1;Y>=0&&!Q[Y];Y-=1)Q.pop();const J=A(Q.map(Y=>Y||" ").join(""));return Q=Qc(J).map((Y,te)=>Y===" "&&!Q[te]?Q[te]:Y),Q}),B=(k,V)=>{var Q;const J=z(k,V),Y=Math.min(k+V.length,r-1);Y!==k&&J[k]!==void 0&&((Q=T.current[Y])===null||Q===void 0||Q.focus()),j(J)},K=k=>{var V;(V=T.current[k])===null||V===void 0||V.focus()},W={variant:d,disabled:f,status:P,mask:h,type:b,inputMode:y};return O(s.createElement("div",Object.assign({},$,{ref:D,className:G(S,{[`${S}-sm`]:N==="small",[`${S}-lg`]:N==="large",[`${S}-rtl`]:E==="rtl"},w,I),role:"group"}),s.createElement(Xn.Provider,{value:M},Array.from({length:r}).map((k,V)=>{const Q=`otp-${V}`,J=R[V]||"";return s.createElement(s.Fragment,{key:Q},s.createElement(xH,Object.assign({ref:Y=>{T.current[V]=Y},index:V,size:N,htmlSize:1,className:`${S}-input`,onChange:B,value:J,onActiveChange:K,autoFocus:V===0&&p},W)),V<r-1&&s.createElement($H,{separator:u,index:V,prefixCls:S}))}))))});var OH=globalThis&&globalThis.__rest||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 NH=e=>e?s.createElement(rT,null):s.createElement(Z2,null),IH={click:"onClick",hover:"onMouseOver"},O$=s.forwardRef((e,t)=>{const{disabled:n,action:r="click",visibilityToggle:o=!0,iconRender:i=NH}=e,a=s.useContext(oo),l=n!=null?n:a,c=typeof o=="object"&&o.visible!==void 0,[u,d]=g.useState(()=>c?o.visible:!1),f=g.useRef(null);s.useEffect(()=>{c&&d(o.visible)},[c,o]);const m=B1(f),p=()=>{var N;if(l)return;u&&m();const _=!u;d(_),typeof o=="object"&&((N=o.onVisibleChange)===null||N===void 0||N.call(o,_))},h=N=>{const _=IH[r]||"",P=i(u),M={[_]:p,className:`${N}-icon`,key:"passwordIcon",onMouseDown:D=>{D.preventDefault()},onMouseUp:D=>{D.preventDefault()}};return s.cloneElement(s.isValidElement(P)?P:s.createElement("span",null,P),M)},{className:b,prefixCls:v,inputPrefixCls:y,size:C}=e,x=OH(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:E}=s.useContext(Xe),S=E("input",y),$=E("input-password",v),O=o&&h($),I=G($,b,{[`${$}-${C}`]:!!C}),w=Object.assign(Object.assign({},tn(x,["suffix","iconRender","visibilityToggle"])),{type:u?"text":"password",className:I,prefixCls:S,suffix:O});return C&&(w.size=C),s.createElement(Ol,Object.assign({ref:Wn(t,f)},w))});process.env.NODE_ENV!=="production"&&(O$.displayName="Input.Password");const _H=O$;var TH=globalThis&&globalThis.__rest||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 N$=s.forwardRef((e,t)=>{const{prefixCls:n,inputPrefixCls:r,className:o,size:i,suffix:a,enterButton:l=!1,addonAfter:c,loading:u,disabled:d,onSearch:f,onChange:m,onCompositionStart:p,onCompositionEnd:h}=e,b=TH(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:v,direction:y}=s.useContext(Xe),C=s.useRef(!1),x=v("input-search",n),E=v("input",r),{compactSize:S}=Fi(x,y),$=qn(B=>{var K;return(K=i!=null?i:S)!==null&&K!==void 0?K:B}),O=s.useRef(null),I=B=>{B!=null&&B.target&&B.type==="click"&&f&&f(B.target.value,B,{source:"clear"}),m==null||m(B)},w=B=>{var K;document.activeElement===((K=O.current)===null||K===void 0?void 0:K.input)&&B.preventDefault()},N=B=>{var K,W;f&&f((W=(K=O.current)===null||K===void 0?void 0:K.input)===null||W===void 0?void 0:W.value,B,{source:"input"})},_=B=>{C.current||u||N(B)},P=typeof l=="boolean"?s.createElement(Ra,null):null,M=`${x}-button`;let D;const T=l||{},A=T.type&&T.type.__ANT_BUTTON===!0;A||T.type==="button"?D=Gn(T,Object.assign({onMouseDown:w,onClick:B=>{var K,W;(W=(K=T==null?void 0:T.props)===null||K===void 0?void 0:K.onClick)===null||W===void 0||W.call(K,B),N(B)},key:"enterButton"},A?{className:M,size:$}:{})):D=s.createElement(on,{className:M,type:l?"primary":void 0,size:$,disabled:d,key:"enterButton",onMouseDown:w,onClick:N,loading:u,icon:P},l),c&&(D=[D,Gn(c,{key:"addonAfter"})]);const R=G(x,{[`${x}-rtl`]:y==="rtl",[`${x}-${$}`]:!!$,[`${x}-with-button`]:!!l},o),L=Object.assign(Object.assign({},b),{className:R,prefixCls:E,type:"search"}),j=B=>{C.current=!0,p==null||p(B)},z=B=>{C.current=!1,h==null||h(B)};return s.createElement(Ol,Object.assign({ref:Wn(O,t),onPressEnter:_},L,{size:$,onCompositionStart:j,onCompositionEnd:z,addonAfter:D,suffix:a,onChange:I,disabled:d}))});process.env.NODE_ENV!=="production"&&(N$.displayName="Search");const PH=N$;var MH=`
|
|
308
|
+
min-height:0 !important;
|
|
309
|
+
max-height:none !important;
|
|
310
|
+
height:0 !important;
|
|
311
|
+
visibility:hidden !important;
|
|
312
|
+
overflow:hidden !important;
|
|
313
|
+
position:absolute !important;
|
|
314
|
+
z-index:-1000 !important;
|
|
315
|
+
top:0 !important;
|
|
316
|
+
right:0 !important;
|
|
317
|
+
pointer-events: none !important;
|
|
318
|
+
`,DH=["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"],Op={},yr;function AH(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&&Op[n])return Op[n];var r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),i=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),a=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),l=DH.map(function(u){return"".concat(u,":").concat(r.getPropertyValue(u))}).join(";"),c={sizingStyle:l,paddingSize:i,borderSize:a,boxSizing:o};return t&&n&&(Op[n]=c),c}function RH(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;yr||(yr=document.createElement("textarea"),yr.setAttribute("tab-index","-1"),yr.setAttribute("aria-hidden","true"),yr.setAttribute("name","hiddenTextarea"),document.body.appendChild(yr)),e.getAttribute("wrap")?yr.setAttribute("wrap",e.getAttribute("wrap")):yr.removeAttribute("wrap");var o=AH(e,t),i=o.paddingSize,a=o.borderSize,l=o.boxSizing,c=o.sizingStyle;yr.setAttribute("style","".concat(c,";").concat(MH)),yr.value=e.value||e.placeholder||"";var u=void 0,d=void 0,f,m=yr.scrollHeight;if(l==="border-box"?m+=a:l==="content-box"&&(m-=i),n!==null||r!==null){yr.value=" ";var p=yr.scrollHeight-i;n!==null&&(u=p*n,l==="border-box"&&(u=u+i+a),m=Math.max(u,m)),r!==null&&(d=p*r,l==="border-box"&&(d=d+i+a),f=m>d?"":"hidden",m=Math.min(d,m))}var h={height:m,overflowY:f,resize:"none"};return u&&(h.minHeight=u),d&&(h.maxHeight=d),h}var jH=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Np=0,Ip=1,_p=2,LH=s.forwardRef(function(e,t){var n=e,r=n.prefixCls,o=n.defaultValue,i=n.value,a=n.autoSize,l=n.onResize,c=n.className,u=n.style,d=n.disabled,f=n.onChange,m=n.onInternalAutoSize,p=tt(n,jH),h=ln(o,{value:i,postState:function(V){return V!=null?V:""}}),b=ae(h,2),v=b[0],y=b[1],C=function(V){y(V.target.value),f==null||f(V)},x=s.useRef();s.useImperativeHandle(t,function(){return{textArea:x.current}});var E=s.useMemo(function(){return a&&He(a)==="object"?[a.minRows,a.maxRows]:[]},[a]),S=ae(E,2),$=S[0],O=S[1],I=!!a,w=function(){try{if(document.activeElement===x.current){var V=x.current,Q=V.selectionStart,J=V.selectionEnd,Y=V.scrollTop;x.current.setSelectionRange(Q,J),x.current.scrollTop=Y}}catch(te){}},N=s.useState(_p),_=ae(N,2),P=_[0],M=_[1],D=s.useState(),T=ae(D,2),A=T[0],R=T[1],L=function(){M(Np),process.env.NODE_ENV==="test"&&(m==null||m())};wt(function(){I&&L()},[i,$,O,I]),wt(function(){if(P===Np)M(Ip);else if(P===Ip){var k=RH(x.current,!1,$,O);M(_p),R(k)}else w()},[P]);var j=s.useRef(),z=function(){Rt.cancel(j.current)},B=function(V){P===_p&&(l==null||l(V),a&&(z(),j.current=Rt(function(){L()})))};s.useEffect(function(){return z},[]);var K=I?A:null,W=q(q({},u),K);return(P===Np||P===Ip)&&(W.overflowY="hidden",W.overflowX="hidden"),s.createElement(Kn,{onResize:B,disabled:!(a||l)},s.createElement("textarea",ce({},p,{ref:x,style:W,className:G(r,c,H({},"".concat(r,"-disabled"),d)),disabled:d,value:v,onChange:C})))}),zH=["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"],BH=g.forwardRef(function(e,t){var n,r=e.defaultValue,o=e.value,i=e.onFocus,a=e.onBlur,l=e.onChange,c=e.allowClear,u=e.maxLength,d=e.onCompositionStart,f=e.onCompositionEnd,m=e.suffix,p=e.prefixCls,h=p===void 0?"rc-textarea":p,b=e.showCount,v=e.count,y=e.className,C=e.style,x=e.disabled,E=e.hidden,S=e.classNames,$=e.styles,O=e.onResize,I=e.onClear,w=e.onPressEnter,N=e.readOnly,_=e.autoSize,P=e.onKeyDown,M=tt(e,zH),D=ln(r,{value:o,defaultValue:r}),T=ae(D,2),A=T[0],R=T[1],L=A==null?"":String(A),j=g.useState(!1),z=ae(j,2),B=z[0],K=z[1],W=g.useRef(!1),k=g.useState(null),V=ae(k,2),Q=V[0],J=V[1],Y=g.useRef(null),te=g.useRef(null),oe=function(){var $e;return($e=te.current)===null||$e===void 0?void 0:$e.textArea},X=function(){oe().focus()};g.useImperativeHandle(t,function(){var Ee;return{resizableTextArea:te.current,focus:X,blur:function(){oe().blur()},nativeElement:((Ee=Y.current)===null||Ee===void 0?void 0:Ee.nativeElement)||oe()}}),g.useEffect(function(){K(function(Ee){return!x&&Ee})},[x]);var F=g.useState(null),ee=ae(F,2),Z=ee[0],ne=ee[1];g.useEffect(function(){if(Z){var Ee;(Ee=oe()).setSelectionRange.apply(Ee,ge(Z))}},[Z]);var re=L1(v,b),se=(n=re.max)!==null&&n!==void 0?n:u,le=Number(se)>0,he=re.strategy(L),fe=!!se&&he>se,ie=function($e,_e){var ve=_e;!W.current&&re.exceedFormatter&&re.max&&re.strategy(_e)>re.max&&(ve=re.exceedFormatter(_e,{max:re.max}),_e!==ve&&ne([oe().selectionStart||0,oe().selectionEnd||0])),R(ve),qc($e.currentTarget,$e,l,ve)},ue=function($e){W.current=!0,d==null||d($e)},de=function($e){W.current=!1,ie($e,$e.currentTarget.value),f==null||f($e)},me=function($e){ie($e,$e.target.value)},Ce=function($e){$e.key==="Enter"&&w&&w($e),P==null||P($e)},Oe=function($e){K(!0),i==null||i($e)},Te=function($e){K(!1),a==null||a($e)},je=function($e){R(""),X(),qc(oe(),$e,l)},Ne=m,Ie;re.show&&(re.showFormatter?Ie=re.showFormatter({value:L,count:he,maxLength:se}):Ie="".concat(he).concat(le?" / ".concat(se):""),Ne=g.createElement(g.Fragment,null,Ne,g.createElement("span",{className:G("".concat(h,"-data-count"),S==null?void 0:S.count),style:$==null?void 0:$.count},Ie)));var xe=function($e){var _e;O==null||O($e),(_e=oe())!==null&&_e!==void 0&&_e.style.height&&J(!0)},be=!_&&!b&&!c;return g.createElement(j1,{ref:Y,value:L,allowClear:c,handleReset:je,suffix:Ne,prefixCls:h,classNames:q(q({},S),{},{affixWrapper:G(S==null?void 0:S.affixWrapper,H(H({},"".concat(h,"-show-count"),b),"".concat(h,"-textarea-allow-clear"),c))}),disabled:x,focused:B,className:G(y,fe&&"".concat(h,"-out-of-range")),style:q(q({},C),Q&&!be?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Ie=="string"?Ie:void 0}},hidden:E,readOnly:N,onClear:I},g.createElement(LH,ce({},M,{autoSize:_,maxLength:u,onKeyDown:Ce,onChange:me,onFocus:Oe,onBlur:Te,onCompositionStart:ue,onCompositionEnd:de,className:G(S==null?void 0:S.textarea),style:q(q({},$==null?void 0:$.textarea),{},{resize:C==null?void 0:C.resize}),disabled:x,prefixCls:h,onResize:xe,ref:te,readOnly:N})))});const kH=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"}},[`
|
|
319
|
+
&-allow-clear > ${t},
|
|
320
|
+
&-affix-wrapper${r}-has-feedback ${t}
|
|
321
|
+
`]:{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}}}}}},FH=Dt(["Input","TextArea"],e=>{const t=xt(e,xl(e));return[kH(t)]},El,{resetFont:!1});var HH=globalThis&&globalThis.__rest||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 I$=g.forwardRef((e,t)=>{var n;const{prefixCls:r,bordered:o=!0,size:i,disabled:a,status:l,allowClear:c,classNames:u,rootClassName:d,className:f,style:m,styles:p,variant:h,showCount:b,onMouseDown:v,onResize:y}=e,C=HH(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]);if(process.env.NODE_ENV!=="production"){const{deprecated:re}=gt("TextArea");re(!("bordered"in e),"bordered","variant")}const{getPrefixCls:x,direction:E,allowClear:S,autoComplete:$,className:O,style:I,classNames:w,styles:N}=An("textArea"),_=s.useContext(oo),P=a!=null?a:_,{status:M,hasFeedback:D,feedbackIcon:T}=s.useContext(Xn),A=Sc(M,l),R=s.useRef(null);s.useImperativeHandle(t,()=>{var re;return{resizableTextArea:(re=R.current)===null||re===void 0?void 0:re.resizableTextArea,focus:se=>{var le,he;R1((he=(le=R.current)===null||le===void 0?void 0:le.resizableTextArea)===null||he===void 0?void 0:he.textArea,se)},blur:()=>{var se;return(se=R.current)===null||se===void 0?void 0:se.blur()}}});const L=x("input",r),j=On(L),[z,B,K]=n1(L,d),[W]=FH(L,j),{compactSize:k,compactItemClassnames:V}=Fi(L,E),Q=qn(re=>{var se;return(se=i!=null?i:k)!==null&&se!==void 0?se:re}),[J,Y]=Ec("textArea",h,o),te=z1(c!=null?c:S),[oe,X]=s.useState(!1),[F,ee]=s.useState(!1),Z=re=>{X(!0),v==null||v(re);const se=()=>{X(!1),document.removeEventListener("mouseup",se)};document.addEventListener("mouseup",se)},ne=re=>{var se,le;if(y==null||y(re),oe&&typeof getComputedStyle=="function"){const he=(le=(se=R.current)===null||se===void 0?void 0:se.nativeElement)===null||le===void 0?void 0:le.querySelector("textarea");he&&getComputedStyle(he).resize==="both"&&ee(!0)}};return z(W(s.createElement(BH,Object.assign({autoComplete:$},C,{style:Object.assign(Object.assign({},I),m),styles:Object.assign(Object.assign({},N),p),disabled:P,allowClear:te,className:G(K,j,f,d,V,O,F&&`${L}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},u),w),{textarea:G({[`${L}-sm`]:Q==="small",[`${L}-lg`]:Q==="large"},B,u==null?void 0:u.textarea,w.textarea,oe&&`${L}-mouse-active`),variant:G({[`${L}-${J}`]:Y},Cc(L,A)),affixWrapper:G(`${L}-textarea-affix-wrapper`,{[`${L}-affix-wrapper-rtl`]:E==="rtl",[`${L}-affix-wrapper-sm`]:Q==="small",[`${L}-affix-wrapper-lg`]:Q==="large",[`${L}-textarea-show-count`]:b||((n=e.count)===null||n===void 0?void 0:n.show)},B)}),prefixCls:L,suffix:D&&s.createElement("span",{className:`${L}-textarea-suffix`},T),showCount:b,ref:R,onResize:ne,onMouseDown:Z}))))}),ua=Ol;ua.Group=bH,ua.Search=PH,ua.TextArea=I$,ua.Password=_H,ua.OTP=wH;const hi=ua;function VH(e,t,n){return typeof n=="boolean"?n:e.length?!0:Tn(t).some(o=>o.type===TE)}var _$=globalThis&&globalThis.__rest||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 Yc(e){let{suffixCls:t,tagName:n,displayName:r}=e;return o=>{const i=s.forwardRef((a,l)=>s.createElement(o,Object.assign({ref:l,suffixCls:t,tagName:n},a)));return process.env.NODE_ENV!=="production"&&(i.displayName=r),i}}const Tp=s.forwardRef((e,t)=>{const{prefixCls:n,suffixCls:r,className:o,tagName:i}=e,a=_$(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:l}=s.useContext(Xe),c=l("layout",n),[u,d,f]=NE(c),m=r?`${c}-${r}`:c;return u(s.createElement(i,Object.assign({className:G(n||m,o,d,f),ref:t},a)))}),WH=s.forwardRef((e,t)=>{const{direction:n}=s.useContext(Xe),[r,o]=s.useState([]),{prefixCls:i,className:a,rootClassName:l,children:c,hasSider:u,tagName:d,style:f}=e,m=_$(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),p=tn(m,["suffixCls"]),{getPrefixCls:h,className:b,style:v}=An("layout"),y=h("layout",i),C=VH(r,c,u),[x,E,S]=NE(y),$=G(y,{[`${y}-has-sider`]:C,[`${y}-rtl`]:n==="rtl"},b,a,l,E,S),O=s.useMemo(()=>({siderHook:{addSider:I=>{o(w=>[].concat(ge(w),[I]))},removeSider:I=>{o(w=>w.filter(N=>N!==I))}}}),[]);return x(s.createElement($E.Provider,{value:O},s.createElement(d,Object.assign({ref:t,className:$,style:Object.assign(Object.assign({},v),f)},p),c)))}),KH=Yc({tagName:"div",displayName:"Layout"})(WH),qH=Yc({suffixCls:"header",tagName:"header",displayName:"Header"})(Tp),UH=Yc({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(Tp),GH=Yc({suffixCls:"content",tagName:"main",displayName:"Content"})(Tp),da=KH;da.Header=qH,da.Footer=UH,da.Content=GH,da.Sider=TE,da._InternalSiderContext=Mc;const Pp=da;var XH={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:"页码"},QH=[10,20,50,100],T$=function(t){var n=t.pageSizeOptions,r=n===void 0?QH:n,o=t.locale,i=t.changeSize,a=t.pageSize,l=t.goButton,c=t.quickGo,u=t.rootPrefixCls,d=t.disabled,f=t.buildOptionText,m=t.showSizeChanger,p=t.sizeChangerRender,h=g.useState(""),b=ae(h,2),v=b[0],y=b[1],C=function(){return!v||Number.isNaN(v)?void 0:Number(v)},x=typeof f=="function"?f:function(P){return"".concat(P," ").concat(o.items_per_page)},E=function(M){y(M.target.value)},S=function(M){l||v===""||(y(""),!(M.relatedTarget&&(M.relatedTarget.className.indexOf("".concat(u,"-item-link"))>=0||M.relatedTarget.className.indexOf("".concat(u,"-item"))>=0))&&(c==null||c(C())))},$=function(M){v!==""&&(M.keyCode===ye.ENTER||M.type==="click")&&(y(""),c==null||c(C()))},O=function(){return r.some(function(M){return M.toString()===a.toString()})?r:r.concat([a]).sort(function(M,D){var T=Number.isNaN(Number(M))?0:Number(M),A=Number.isNaN(Number(D))?0:Number(D);return T-A})},I="".concat(u,"-options");if(!m&&!c)return null;var w=null,N=null,_=null;return m&&p&&(w=p({disabled:d,size:a,onSizeChange:function(M){i==null||i(Number(M))},"aria-label":o.page_size,className:"".concat(I,"-size-changer"),options:O().map(function(P){return{label:x(P),value:P}})})),c&&(l&&(_=typeof l=="boolean"?g.createElement("button",{type:"button",onClick:$,onKeyUp:$,disabled:d,className:"".concat(I,"-quick-jumper-button")},o.jump_to_confirm):g.createElement("span",{onClick:$,onKeyUp:$},l)),N=g.createElement("div",{className:"".concat(I,"-quick-jumper")},o.jump_to,g.createElement("input",{disabled:d,type:"text",value:v,onChange:E,onKeyUp:$,onBlur:S,"aria-label":o.page}),o.page,_)),g.createElement("li",{className:I},w,N)};process.env.NODE_ENV!=="production"&&(T$.displayName="Options");var fa=function(t){var n=t.rootPrefixCls,r=t.page,o=t.active,i=t.className,a=t.showTitle,l=t.onClick,c=t.onKeyPress,u=t.itemRender,d="".concat(n,"-item"),f=G(d,"".concat(d,"-").concat(r),H(H({},"".concat(d,"-active"),o),"".concat(d,"-disabled"),!r),i),m=function(){l(r)},p=function(v){c(v,l,r)},h=u(r,"page",g.createElement("a",{rel:"nofollow"},r));return h?g.createElement("li",{title:a?String(r):null,className:f,onClick:m,onKeyDown:p,tabIndex:0},h):null};process.env.NODE_ENV!=="production"&&(fa.displayName="Pager");var YH=function(t,n,r){return r};function Mp(){}function P$(e){var t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function bi(e,t,n){var r=typeof e=="undefined"?t:e;return Math.floor((n-1)/r)+1}var M$=function(t){var n=t.prefixCls,r=n===void 0?"rc-pagination":n,o=t.selectPrefixCls,i=o===void 0?"rc-select":o,a=t.className,l=t.current,c=t.defaultCurrent,u=c===void 0?1:c,d=t.total,f=d===void 0?0:d,m=t.pageSize,p=t.defaultPageSize,h=p===void 0?10:p,b=t.onChange,v=b===void 0?Mp:b,y=t.hideOnSinglePage,C=t.align,x=t.showPrevNextJumpers,E=x===void 0?!0:x,S=t.showQuickJumper,$=t.showLessItems,O=t.showTitle,I=O===void 0?!0:O,w=t.onShowSizeChange,N=w===void 0?Mp:w,_=t.locale,P=_===void 0?XH:_,M=t.style,D=t.totalBoundaryShowSizeChanger,T=D===void 0?50:D,A=t.disabled,R=t.simple,L=t.showTotal,j=t.showSizeChanger,z=j===void 0?f>T:j,B=t.sizeChangerRender,K=t.pageSizeOptions,W=t.itemRender,k=W===void 0?YH:W,V=t.jumpPrevIcon,Q=t.jumpNextIcon,J=t.prevIcon,Y=t.nextIcon,te=g.useRef(null),oe=ln(10,{value:m,defaultValue:h}),X=ae(oe,2),F=X[0],ee=X[1],Z=ln(1,{value:l,defaultValue:u,postState:function(ft){return Math.max(1,Math.min(ft,bi(void 0,F,f)))}}),ne=ae(Z,2),re=ne[0],se=ne[1],le=g.useState(re),he=ae(le,2),fe=he[0],ie=he[1];g.useEffect(function(){ie(re)},[re]);var ue=v!==Mp,de="current"in t;process.env.NODE_ENV!=="production"&&Ge(de?ue:!0,"You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var me=Math.max(1,re-($?3:5)),Ce=Math.min(bi(void 0,F,f),re+($?3:5));function Oe(Ye,ft){var Lt=Ye||g.createElement("button",{type:"button","aria-label":ft,className:"".concat(r,"-item-link")});return typeof Ye=="function"&&(Lt=g.createElement(Ye,q({},t))),Lt}function Te(Ye){var ft=Ye.target.value,Lt=bi(void 0,F,f),Sn;return ft===""?Sn=ft:Number.isNaN(Number(ft))?Sn=fe:ft>=Lt?Sn=Lt:Sn=Number(ft),Sn}function je(Ye){return P$(Ye)&&Ye!==re&&P$(f)&&f>0}var Ne=f>F?S:!1;function Ie(Ye){(Ye.keyCode===ye.UP||Ye.keyCode===ye.DOWN)&&Ye.preventDefault()}function xe(Ye){var ft=Te(Ye);switch(ft!==fe&&ie(ft),Ye.keyCode){case ye.ENTER:$e(ft);break;case ye.UP:$e(ft-1);break;case ye.DOWN:$e(ft+1);break}}function be(Ye){$e(Te(Ye))}function Ee(Ye){var ft=bi(Ye,F,f),Lt=re>ft&&ft!==0?ft:re;ee(Ye),ie(Lt),N==null||N(re,Ye),se(Lt),v==null||v(Lt,Ye)}function $e(Ye){if(je(Ye)&&!A){var ft=bi(void 0,F,f),Lt=Ye;return Ye>ft?Lt=ft:Ye<1&&(Lt=1),Lt!==fe&&ie(Lt),se(Lt),v==null||v(Lt,F),Lt}return re}var _e=re>1,ve=re<bi(void 0,F,f);function Se(){_e&&$e(re-1)}function Je(){ve&&$e(re+1)}function it(){$e(me)}function Nt(){$e(Ce)}function Tt(Ye,ft){if(Ye.key==="Enter"||Ye.charCode===ye.ENTER||Ye.keyCode===ye.ENTER){for(var Lt=arguments.length,Sn=new Array(Lt>2?Lt-2:0),mn=2;mn<Lt;mn++)Sn[mn-2]=arguments[mn];ft.apply(void 0,Sn)}}function Gt(Ye){Tt(Ye,Se)}function st(Ye){Tt(Ye,Je)}function Pt(Ye){Tt(Ye,it)}function pt(Ye){Tt(Ye,Nt)}function et(Ye){var ft=k(Ye,"prev",Oe(J,"prev page"));return g.isValidElement(ft)?g.cloneElement(ft,{disabled:!_e}):ft}function ke(Ye){var ft=k(Ye,"next",Oe(Y,"next page"));return g.isValidElement(ft)?g.cloneElement(ft,{disabled:!ve}):ft}function Me(Ye){(Ye.type==="click"||Ye.keyCode===ye.ENTER)&&$e(fe)}var Pe=null,at=Rn(t,{aria:!0,data:!0}),ct=L&&g.createElement("li",{className:"".concat(r,"-total-text")},L(f,[f===0?0:(re-1)*F+1,re*F>f?f:re*F])),Le=null,we=bi(void 0,F,f);if(y&&f<=F)return null;var ze=[],Fe={rootPrefixCls:r,onClick:$e,onKeyPress:Tt,showTitle:I,itemRender:k,page:-1},Ve=re-1>0?re-1:0,Ze=re+1<we?re+1:we,Ot=S&&S.goButton,Ae=He(R)==="object"?R.readOnly:!R,Qe=Ot,nt=null;R&&(Ot&&(typeof Ot=="boolean"?Qe=g.createElement("button",{type:"button",onClick:Me,onKeyUp:Me},P.jump_to_confirm):Qe=g.createElement("span",{onClick:Me,onKeyUp:Me},Ot),Qe=g.createElement("li",{title:I?"".concat(P.jump_to).concat(re,"/").concat(we):null,className:"".concat(r,"-simple-pager")},Qe)),nt=g.createElement("li",{title:I?"".concat(re,"/").concat(we):null,className:"".concat(r,"-simple-pager")},Ae?fe:g.createElement("input",{type:"text","aria-label":P.jump_to,value:fe,disabled:A,onKeyDown:Ie,onKeyUp:xe,onChange:xe,onBlur:be,size:3}),g.createElement("span",{className:"".concat(r,"-slash")},"/"),we));var ot=$?1:2;if(we<=3+ot*2){we||ze.push(g.createElement(fa,ce({},Fe,{key:"noPager",page:1,className:"".concat(r,"-item-disabled")})));for(var ht=1;ht<=we;ht+=1)ze.push(g.createElement(fa,ce({},Fe,{key:ht,page:ht,active:re===ht})))}else{var jt=$?P.prev_3:P.prev_5,Wt=$?P.next_3:P.next_5,Ct=k(me,"jump-prev",Oe(V,"prev page")),en=k(Ce,"jump-next",Oe(Q,"next page"));E&&(Pe=Ct?g.createElement("li",{title:I?jt:null,key:"prev",onClick:it,tabIndex:0,onKeyDown:Pt,className:G("".concat(r,"-jump-prev"),H({},"".concat(r,"-jump-prev-custom-icon"),!!V))},Ct):null,Le=en?g.createElement("li",{title:I?Wt:null,key:"next",onClick:Nt,tabIndex:0,onKeyDown:pt,className:G("".concat(r,"-jump-next"),H({},"".concat(r,"-jump-next-custom-icon"),!!Q))},en):null);var De=Math.max(1,re-ot),Ke=Math.min(re+ot,we);re-1<=ot&&(Ke=1+ot*2),we-re<=ot&&(De=we-ot*2);for(var Be=De;Be<=Ke;Be+=1)ze.push(g.createElement(fa,ce({},Fe,{key:Be,page:Be,active:re===Be})));if(re-1>=ot*2&&re!==1+2&&(ze[0]=g.cloneElement(ze[0],{className:G("".concat(r,"-item-after-jump-prev"),ze[0].props.className)}),ze.unshift(Pe)),we-re>=ot*2&&re!==we-2){var Re=ze[ze.length-1];ze[ze.length-1]=g.cloneElement(Re,{className:G("".concat(r,"-item-before-jump-next"),Re.props.className)}),ze.push(Le)}De!==1&&ze.unshift(g.createElement(fa,ce({},Fe,{key:1,page:1}))),Ke!==we&&ze.push(g.createElement(fa,ce({},Fe,{key:we,page:we})))}var lt=et(Ve);if(lt){var Mt=!_e||!we;lt=g.createElement("li",{title:I?P.prev_page:null,onClick:Se,tabIndex:Mt?null:0,onKeyDown:Gt,className:G("".concat(r,"-prev"),H({},"".concat(r,"-disabled"),Mt)),"aria-disabled":Mt},lt)}var At=ke(Ze);if(At){var Kt,an;R?(Kt=!ve,an=_e?0:null):(Kt=!ve||!we,an=Kt?null:0),At=g.createElement("li",{title:I?P.next_page:null,onClick:Je,tabIndex:an,onKeyDown:st,className:G("".concat(r,"-next"),H({},"".concat(r,"-disabled"),Kt)),"aria-disabled":Kt},At)}var Ut=G(r,a,H(H(H(H(H({},"".concat(r,"-start"),C==="start"),"".concat(r,"-center"),C==="center"),"".concat(r,"-end"),C==="end"),"".concat(r,"-simple"),R),"".concat(r,"-disabled"),A));return g.createElement("ul",ce({className:Ut,style:M,ref:te},at),ct,lt,R?nt:ze,At,g.createElement(T$,{locale:P,rootPrefixCls:r,disabled:A,selectPrefixCls:i,changeSize:Ee,pageSize:F,pageSizeOptions:K,quickGo:Ne?$e:null,goButton:Qe,showSizeChanger:z,sizeChangerRender:B}))};process.env.NODE_ENV!=="production"&&(M$.displayName="Pagination");const JH=e=>{const{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`${t}-item`]:{cursor:"not-allowed",backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}},[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{[`&${t}-disabled ${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},ZH=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:U(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:U(e.calc(e.itemSizeSM).sub(2).equal())},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:U(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"}}},[`
|
|
322
|
+
&${t}-mini ${t}-prev ${t}-item-link,
|
|
323
|
+
&${t}-mini ${t}-next ${t}-item-link
|
|
324
|
+
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:U(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:U(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:U(e.itemSizeSM),input:Object.assign(Object.assign({},fp(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},e7=e=>{const{componentCls:t}=e;return{[`
|
|
325
|
+
&${t}-simple ${t}-prev,
|
|
326
|
+
&${t}-simple ${t}-next
|
|
327
|
+
`]:{height:e.itemSizeSM,lineHeight:U(e.itemSizeSM),verticalAlign:"top",[`${t}-item-link`]:{height:e.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.itemSizeSM,lineHeight:U(e.itemSizeSM)}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.itemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",padding:`0 ${U(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${U(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:`${U(e.inputOutlineOffset)} 0 ${U(e.controlOutlineWidth)} ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},t7=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}}},[`
|
|
328
|
+
${t}-prev,
|
|
329
|
+
${t}-jump-prev,
|
|
330
|
+
${t}-jump-next
|
|
331
|
+
`]:{marginInlineEnd:e.marginXS},[`
|
|
332
|
+
${t}-prev,
|
|
333
|
+
${t}-next,
|
|
334
|
+
${t}-jump-prev,
|
|
335
|
+
${t}-jump-next
|
|
336
|
+
`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:U(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:`${U(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:U(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},mp(e)),dp(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":Object.assign({},zc(e)),width:e.calc(e.controlHeightLG).mul(1.25).equal(),height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},n7=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:U(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:e.itemBg,border:`${U(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${U(e.paginationItemPaddingInline)}`,color:e.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}}}},r7=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ht(e)),{display:"flex","&-start":{justifyContent:"start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"end"},"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.itemSize,marginInlineEnd:e.marginXS,lineHeight:U(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),n7(e)),t7(e)),e7(e)),ZH(e)),JH(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"}}},o7=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},Ir(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},Br(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:Object.assign({},Br(e))}}}},D$=e=>Object.assign({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0},El(e)),A$=e=>xt(e,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:e.calc(e.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:e.calc(e.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:e.calc(e.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:e.marginSM,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},xl(e)),i7=Dt("Pagination",e=>{const t=A$(e);return[r7(t),o7(t)]},D$),a7=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:`${U(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}}}}},l7=Li(["Pagination","bordered"],e=>{const t=A$(e);return[a7(t)]},D$);function R$(e){return g.useMemo(()=>typeof e=="boolean"?[e,{}]:e&&typeof e=="object"?[!0,e]:[void 0,void 0],[e])}var s7=globalThis&&globalThis.__rest||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 j$=e=>{const{align:t,prefixCls:n,selectPrefixCls:r,className:o,rootClassName:i,style:a,size:l,locale:c,responsive:u,showSizeChanger:d,selectComponentClass:f,pageSizeOptions:m}=e,p=s7(e,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","responsive","showSizeChanger","selectComponentClass","pageSizeOptions"]),{xs:h}=vl(u),[,b]=Hn(),{getPrefixCls:v,direction:y,showSizeChanger:C,className:x,style:E}=An("pagination"),S=v("pagination",n),[$,O,I]=i7(S),w=qn(l),N=w==="small"||!!(h&&!w&&u),[_]=ro("Pagination",ky),P=Object.assign(Object.assign({},_),c),[M,D]=R$(d),[T,A]=R$(C),R=M!=null?M:T,L=D!=null?D:A,j=f||Cn,z=s.useMemo(()=>m?m.map(Q=>Number(Q)):void 0,[m]),B=Q=>{var J;const{disabled:Y,size:te,onSizeChange:oe,"aria-label":X,className:F,options:ee}=Q,{className:Z,onChange:ne}=L||{},re=(J=ee.find(se=>String(se.value)===String(te)))===null||J===void 0?void 0:J.value;return s.createElement(j,Object.assign({disabled:Y,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:se=>se.parentNode,"aria-label":X,options:ee},L,{value:re,onChange:(se,le)=>{oe==null||oe(se),ne==null||ne(se,le)},size:N?"small":"middle",className:G(F,Z)}))};if(process.env.NODE_ENV!=="production"){const Q=gt("Pagination");process.env.NODE_ENV!=="production"&&Q(!f,"usage","`selectComponentClass` is not official api which will be removed.")}const K=s.useMemo(()=>{const Q=s.createElement("span",{className:`${S}-item-ellipsis`},"•••"),J=s.createElement("button",{className:`${S}-item-link`,type:"button",tabIndex:-1},y==="rtl"?s.createElement(Aa,null):s.createElement(Da,null)),Y=s.createElement("button",{className:`${S}-item-link`,type:"button",tabIndex:-1},y==="rtl"?s.createElement(Da,null):s.createElement(Aa,null)),te=s.createElement("a",{className:`${S}-item-link`},s.createElement("div",{className:`${S}-item-container`},y==="rtl"?s.createElement(Ad,{className:`${S}-item-link-icon`}):s.createElement(Vh,{className:`${S}-item-link-icon`}),Q)),oe=s.createElement("a",{className:`${S}-item-link`},s.createElement("div",{className:`${S}-item-container`},y==="rtl"?s.createElement(Vh,{className:`${S}-item-link-icon`}):s.createElement(Ad,{className:`${S}-item-link-icon`}),Q));return{prevIcon:J,nextIcon:Y,jumpPrevIcon:te,jumpNextIcon:oe}},[y,S]),W=v("select",r),k=G({[`${S}-${t}`]:!!t,[`${S}-mini`]:N,[`${S}-rtl`]:y==="rtl",[`${S}-bordered`]:b.wireframe},x,o,i,O,I),V=Object.assign(Object.assign({},E),a);return $(s.createElement(s.Fragment,null,b.wireframe&&s.createElement(l7,{prefixCls:S}),s.createElement(M$,Object.assign({},K,p,{style:V,prefixCls:S,selectPrefixCls:W,className:k,locale:P,pageSizeOptions:z,showSizeChanger:R,sizeChangerRender:B}))))};process.env.NODE_ENV!=="production"&&(j$.displayName="Pagination");const c7=j$,Jc=100,L$=Jc/5,z$=Jc/2-L$/2,Dp=z$*2*Math.PI,B$=50,k$=e=>{const{dotClassName:t,style:n,hasCircleCls:r}=e;return s.createElement("circle",{className:G(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:z$,cx:B$,cy:B$,strokeWidth:L$,style:n})},u7=e=>{let{percent:t,prefixCls:n}=e;const r=`${n}-dot`,o=`${r}-holder`,i=`${o}-hidden`,[a,l]=s.useState(!1);wt(()=>{t!==0&&l(!0)},[t!==0]);const c=Math.max(Math.min(t,100),0);if(!a)return null;const u={strokeDashoffset:`${Dp/4}`,strokeDasharray:`${Dp*c/100} ${Dp*(100-c)/100}`};return s.createElement("span",{className:G(o,`${r}-progress`,c<=0&&i)},s.createElement("svg",{viewBox:`0 0 ${Jc} ${Jc}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":c},s.createElement(k$,{dotClassName:r,hasCircleCls:!0}),s.createElement(k$,{dotClassName:r,style:u})))};function d7(e){const{prefixCls:t,percent:n=0}=e,r=`${t}-dot`,o=`${r}-holder`,i=`${o}-hidden`;return s.createElement(s.Fragment,null,s.createElement("span",{className:G(o,n>0&&i)},s.createElement("span",{className:G(r,`${t}-dot-spin`)},[1,2,3,4].map(a=>s.createElement("i",{className:`${t}-dot-item`,key:a})))),s.createElement(u7,{prefixCls:t,percent:n}))}function f7(e){const{prefixCls:t,indicator:n,percent:r}=e,o=`${t}-dot`;return n&&s.isValidElement(n)?Gn(n,{className:G(n.props.className,o),percent:r}):s.createElement(d7,{prefixCls:t,percent:r})}const m7=new _t("antSpinMove",{to:{opacity:1}}),p7=new _t("antRotate",{to:{transform:"rotate(405deg)"}}),v7=e=>{const{componentCls:t,calc:n}=e;return{[t]:Object.assign(Object.assign({},Ht(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:m7,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:p7,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"}})}},g7=Dt("Spin",e=>{const t=xt(e,{spinDotDefault:e.colorTextDescription});return[v7(t)]},e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:n}}),h7=200,F$=[[30,.05],[70,.03],[96,.01]];function b7(e,t){const[n,r]=s.useState(0),o=s.useRef(null),i=t==="auto";return s.useEffect(()=>(i&&e&&(r(0),o.current=setInterval(()=>{r(a=>{const l=100-a;for(let c=0;c<F$.length;c+=1){const[u,d]=F$[c];if(a<=u)return a+l*d}return a})},h7)),()=>{clearInterval(o.current)}),[i,e]),i?n:t}var y7=globalThis&&globalThis.__rest||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 H$;function C7(e,t){return!!e&&!!t&&!Number.isNaN(Number(t))}const Ap=e=>{var t;const{prefixCls:n,spinning:r=!0,delay:o=0,className:i,rootClassName:a,size:l="default",tip:c,wrapperClassName:u,style:d,children:f,fullscreen:m=!1,indicator:p,percent:h}=e,b=y7(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen","indicator","percent"]),{getPrefixCls:v,direction:y,className:C,style:x,indicator:E}=An("spin"),S=v("spin",n),[$,O,I]=g7(S),[w,N]=s.useState(()=>r&&!C7(r,o)),_=b7(w,h);s.useEffect(()=>{if(r){const L=Ak(o,()=>{N(!0)});return L(),()=>{var j;(j=L==null?void 0:L.cancel)===null||j===void 0||j.call(L)}}N(!1)},[o,r]);const P=s.useMemo(()=>typeof f!="undefined"&&!m,[f,m]);if(process.env.NODE_ENV!=="production"){const L=gt("Spin");process.env.NODE_ENV!=="production"&&L(!c||P||m,"usage","`tip` only work in nest or fullscreen pattern.")}const M=G(S,C,{[`${S}-sm`]:l==="small",[`${S}-lg`]:l==="large",[`${S}-spinning`]:w,[`${S}-show-text`]:!!c,[`${S}-rtl`]:y==="rtl"},i,!m&&a,O,I),D=G(`${S}-container`,{[`${S}-blur`]:w}),T=(t=p!=null?p:E)!==null&&t!==void 0?t:H$,A=Object.assign(Object.assign({},x),d),R=s.createElement("div",Object.assign({},b,{style:A,className:M,"aria-live":"polite","aria-busy":w}),s.createElement(f7,{prefixCls:S,indicator:T,percent:_}),c&&(P||m)?s.createElement("div",{className:`${S}-text`},c):null);return $(P?s.createElement("div",Object.assign({},b,{className:G(`${S}-nested-loading`,u,O,I)}),w&&s.createElement("div",{key:"loading"},R),s.createElement("div",{className:D,key:"container"},f)):m?s.createElement("div",{className:G(`${S}-fullscreen`,{[`${S}-fullscreen-show`]:w},a,O,I)},R):R)};Ap.setDefaultIndicator=e=>{H$=e},process.env.NODE_ENV!=="production"&&(Ap.displayName="Spin");const Zc=Ap,S7=function(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1)&&e==null?[]:Array.isArray(e)?e:[e]};let Pr=null,yi=e=>e(),Il=[],_l={};function V$(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:o}=_l,i=(e==null?void 0:e())||document.body;return{getContainer:()=>i,duration:t,rtl:n,maxCount:r,top:o}}const x7=g.forwardRef((e,t)=>{const{messageConfig:n,sync:r}=e,{getPrefixCls:o}=g.useContext(Xe),i=_l.prefixCls||o("message"),a=g.useContext(Im),[l,c]=rC(Object.assign(Object.assign(Object.assign({},n),{prefixCls:i}),a.message));return g.useImperativeHandle(t,()=>{const u=Object.assign({},l);return Object.keys(u).forEach(d=>{u[d]=function(){return r(),l[d].apply(l,arguments)}}),{instance:u,sync:r}}),c}),E7=g.forwardRef((e,t)=>{const[n,r]=g.useState(V$),o=()=>{r(V$)};g.useEffect(o,[]);const i=wf(),a=i.getRootPrefixCls(),l=i.getIconPrefixCls(),c=i.getTheme(),u=g.createElement(x7,{ref:t,sync:o,messageConfig:n});return g.createElement(io,{prefixCls:a,iconPrefixCls:l,theme:c},i.holderRender?i.holderRender(u):u)});function eu(){if(!Pr){const e=document.createDocumentFragment(),t={fragment:e};Pr=t,yi(()=>{Df()(g.createElement(E7,{ref:r=>{const{instance:o,sync:i}=r||{};Promise.resolve().then(()=>{!t.instance&&o&&(t.instance=o,t.sync=i,eu())})}}),e)});return}Pr.instance&&(Il.forEach(e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":{yi(()=>{const r=Pr.instance.open(Object.assign(Object.assign({},_l),e.config));r==null||r.then(e.resolve),e.setCloseFn(r)});break}case"destroy":yi(()=>{Pr==null||Pr.instance.destroy(e.key)});break;default:yi(()=>{var r;const o=(r=Pr.instance)[t].apply(r,ge(e.args));o==null||o.then(e.resolve),e.setCloseFn(o)})}}),Il=[])}function $7(e){_l=Object.assign(Object.assign({},_l),e),yi(()=>{var t;(t=Pr==null?void 0:Pr.sync)===null||t===void 0||t.call(Pr)})}function w7(e){const t=_f(n=>{let r;const o={type:"open",config:e,resolve:n,setCloseFn:i=>{r=i}};return Il.push(o),()=>{r?yi(()=>{r()}):o.skipped=!0}});return eu(),t}function O7(e,t){const n=wf();process.env.NODE_ENV!=="production"&&!n.holderRender&&_0("message");const r=_f(o=>{let i;const a={type:e,args:t,resolve:o,setCloseFn:l=>{i=l}};return Il.push(a),()=>{i?yi(()=>{i()}):a.skipped=!0}});return eu(),r}const N7=e=>{Il.push({type:"destroy",key:e}),eu()},I7=["success","info","warning","error","loading"],W$={open:w7,destroy:N7,config:$7,useMessage:oC,_InternalPanelDoNotUseOrYouWillBeFired:JA};I7.forEach(e=>{W$[e]=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return O7(e,n)}}),process.env.NODE_ENV,process.env.NODE_ENV;const Vr=W$;var _7=globalThis&&globalThis.__rest||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 T7=qS(e=>{const{prefixCls:t,className:n,closeIcon:r,closable:o,type:i,title:a,children:l,footer:c}=e,u=_7(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:d}=s.useContext(Xe),f=d(),m=t||d("modal"),p=On(f),[h,b,v]=NS(m,p),y=`${m}-confirm`;let C={};return i?C={closable:o!=null?o:!1,title:"",footer:"",children:s.createElement(_S,Object.assign({},e,{prefixCls:m,confirmPrefixCls:y,rootPrefixCls:f,content:l}))}:C={closable:o!=null?o:!0,title:a,footer:c!==null&&s.createElement(xS,Object.assign({},e)),children:l},h(s.createElement(em,Object.assign({prefixCls:m,className:G(b,`${m}-pure-panel`,i&&y,i&&`${y}-${i}`,n,v,p)},u,{closeIcon:SS(m,r),closable:o},C)))});function K$(e){return cl(DS(e))}const Mr=IS;Mr.useModal=BS,Mr.info=function(t){return cl(AS(t))},Mr.success=function(t){return cl(RS(t))},Mr.error=function(t){return cl(jS(t))},Mr.warning=K$,Mr.warn=K$,Mr.confirm=function(t){return cl(LS(t))},Mr.destroyAll=function(){for(;mi.length;){const t=mi.pop();t&&t()}},Mr.config=U6,Mr._InternalPanelDoNotUseOrYouWillBeFired=T7,process.env.NODE_ENV!=="production"&&(Mr.displayName="Modal");const q$=Mr;var P7={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},M7=function(){var t=g.useRef([]),n=g.useRef(null);return g.useEffect(function(){var r=Date.now(),o=!1;t.current.forEach(function(i){if(i){o=!0;var a=i.style;a.transitionDuration=".3s, .3s, .3s, .06s",n.current&&r-n.current<100&&(a.transitionDuration="0s, 0s")}}),o&&(n.current=Date.now())}),t.current};process.env.NODE_ENV;var U$=0,D7=process.env.NODE_ENV!=="test"&&_n();function A7(){var e;return D7?(e=U$,U$+=1):e="TEST_OR_SSR",e}const R7=function(e){var t=s.useState(),n=ae(t,2),r=n[0],o=n[1];return s.useEffect(function(){o("rc_progress_".concat(A7()))},[]),e||r};var G$=function(t){var n=t.bg,r=t.children;return s.createElement("div",{style:{width:"100%",height:"100%",background:n}},r)};function X$(e,t){return Object.keys(e).map(function(n){var r=parseFloat(n),o="".concat(Math.floor(r*t),"%");return"".concat(e[n]," ").concat(o)})}var Q$=s.forwardRef(function(e,t){var n=e.prefixCls,r=e.color,o=e.gradientId,i=e.radius,a=e.style,l=e.ptg,c=e.strokeLinecap,u=e.strokeWidth,d=e.size,f=e.gapDegree,m=r&&He(r)==="object",p=m?"#FFF":void 0,h=d/2,b=s.createElement("circle",{className:"".concat(n,"-circle-path"),r:i,cx:h,cy:h,stroke:p,strokeLinecap:c,strokeWidth:u,opacity:l===0?0:1,style:a,ref:t});if(!m)return b;var v="".concat(o,"-conic"),y=f?"".concat(180+f/2,"deg"):"0deg",C=X$(r,(360-f)/360),x=X$(r,1),E="conic-gradient(from ".concat(y,", ").concat(C.join(", "),")"),S="linear-gradient(to ".concat(f?"bottom":"top",", ").concat(x.join(", "),")");return s.createElement(s.Fragment,null,s.createElement("mask",{id:v},b),s.createElement("foreignObject",{x:0,y:0,width:d,height:d,mask:"url(#".concat(v,")")},s.createElement(G$,{bg:S},s.createElement(G$,{bg:E}))))});process.env.NODE_ENV!=="production"&&(Q$.displayName="PtgCircle");var Tl=100,Rp=function(t,n,r,o,i,a,l,c,u,d){var f=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,m=r/100*360*((360-a)/360),p=a===0?0:{bottom:0,top:180,left:90,right:-90}[l],h=(100-o)/100*n;u==="round"&&o!==100&&(h+=d/2,h>=n&&(h=n-.01));var b=Tl/2;return{stroke:typeof c=="string"?c:void 0,strokeDasharray:"".concat(n,"px ").concat(t),strokeDashoffset:h+f,transform:"rotate(".concat(i+m+p,"deg)"),transformOrigin:"".concat(b,"px ").concat(b,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},j7=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function Y$(e){var t=e!=null?e:[];return Array.isArray(t)?t:[t]}var J$=function(t){var n=q(q({},P7),t),r=n.id,o=n.prefixCls,i=n.steps,a=n.strokeWidth,l=n.trailWidth,c=n.gapDegree,u=c===void 0?0:c,d=n.gapPosition,f=n.trailColor,m=n.strokeLinecap,p=n.style,h=n.className,b=n.strokeColor,v=n.percent,y=tt(n,j7),C=Tl/2,x=R7(r),E="".concat(x,"-gradient"),S=C-a/2,$=Math.PI*2*S,O=u>0?90+u/2:-90,I=$*((360-u)/360),w=He(i)==="object"?i:{count:i,gap:2},N=w.count,_=w.gap,P=Y$(v),M=Y$(b),D=M.find(function(B){return B&&He(B)==="object"}),T=D&&He(D)==="object",A=T?"butt":m,R=Rp($,I,0,100,O,u,d,f,A,a),L=M7(),j=function(){var K=0;return P.map(function(W,k){var V=M[k]||M[M.length-1],Q=Rp($,I,K,W,O,u,d,V,A,a);return K+=W,s.createElement(Q$,{key:k,color:V,ptg:W,radius:S,prefixCls:o,gradientId:E,style:Q,strokeLinecap:A,strokeWidth:a,gapDegree:u,ref:function(Y){L[k]=Y},size:Tl})}).reverse()},z=function(){var K=Math.round(N*(P[0]/100)),W=100/N,k=0;return new Array(N).fill(null).map(function(V,Q){var J=Q<=K-1?M[0]:f,Y=J&&He(J)==="object"?"url(#".concat(E,")"):void 0,te=Rp($,I,k,W,O,u,d,J,"butt",a,_);return k+=(I-te.strokeDashoffset+_)*100/I,s.createElement("circle",{key:Q,className:"".concat(o,"-circle-path"),r:S,cx:C,cy:C,stroke:Y,strokeWidth:a,opacity:1,style:te,ref:function(X){L[Q]=X}})})};return s.createElement("svg",ce({className:G("".concat(o,"-circle"),h),viewBox:"0 0 ".concat(Tl," ").concat(Tl),style:p,id:r,role:"presentation"},y),!N&&s.createElement("circle",{className:"".concat(o,"-circle-trail"),r:S,cx:C,cy:C,stroke:f,strokeLinecap:A,strokeWidth:l||a,style:R}),N?z():j())};process.env.NODE_ENV!=="production"&&(J$.displayName="Circle");function Vo(e){return!e||e<0?0:e>100?100:e}function tu(e){let{success:t,successPercent:n}=e,r=n;return t&&"progress"in t&&(r=t.progress),t&&"percent"in t&&(r=t.percent),r}const L7=e=>{let{percent:t,success:n,successPercent:r}=e;const o=Vo(tu({success:n,successPercent:r}));return[o,Vo(Vo(t)-o)]},z7=e=>{let{success:t={},strokeColor:n}=e;const{strokeColor:r}=t;return[r||Ni.green,n||null]},nu=(e,t,n)=>{var r,o,i,a;let l=-1,c=-1;if(t==="step"){const u=n.steps,d=n.strokeWidth;typeof e=="string"||typeof e=="undefined"?(l=e==="small"?2:14,c=d!=null?d:8):typeof e=="number"?[l,c]=[e,e]:[l=14,c=8]=Array.isArray(e)?e:[e.width,e.height],l*=u}else if(t==="line"){const u=n==null?void 0:n.strokeWidth;typeof e=="string"||typeof e=="undefined"?c=u||(e==="small"?6:8):typeof e=="number"?[l,c]=[e,e]:[l=-1,c=8]=Array.isArray(e)?e:[e.width,e.height]}else(t==="circle"||t==="dashboard")&&(typeof e=="string"||typeof e=="undefined"?[l,c]=e==="small"?[60,60]:[120,120]:typeof e=="number"?[l,c]=[e,e]:Array.isArray(e)&&(l=(o=(r=e[0])!==null&&r!==void 0?r:e[1])!==null&&o!==void 0?o:120,c=(a=(i=e[0])!==null&&i!==void 0?i:e[1])!==null&&a!==void 0?a:120));return[l,c]},B7=3,k7=e=>B7/e*100,F7=e=>{const{prefixCls:t,trailColor:n=null,strokeLinecap:r="round",gapPosition:o,gapDegree:i,width:a=120,type:l,children:c,success:u,size:d=a,steps:f}=e,[m,p]=nu(d,"circle");let{strokeWidth:h}=e;h===void 0&&(h=Math.max(k7(m),6));const b={width:m,height:p,fontSize:m*.15+6},v=s.useMemo(()=>{if(i||i===0)return i;if(l==="dashboard")return 75},[i,l]),y=L7(e),C=o||l==="dashboard"&&"bottom"||void 0,x=Object.prototype.toString.call(e.strokeColor)==="[object Object]",E=z7({success:u,strokeColor:e.strokeColor}),S=G(`${t}-inner`,{[`${t}-circle-gradient`]:x}),$=s.createElement(J$,{steps:f,percent:f?y[1]:y,strokeWidth:h,trailWidth:h,strokeColor:f?E[1]:E,strokeLinecap:r,trailColor:n,prefixCls:t,gapDegree:v,gapPosition:C}),O=m<=20,I=s.createElement("div",{className:S,style:b},$,!O&&c);return O?s.createElement(co,{title:c},I):I},ru="--progress-line-stroke-color",Z$="--progress-percent",ew=e=>{const t=e?"100%":"-100%";return new _t(`antProgress${e?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${t}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${t}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},H7=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:Object.assign(Object.assign({},Ht(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize},[`${t}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${t}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:e.remainingColor,borderRadius:e.lineBorderRadius},[`${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.defaultColor}},[`${t}-success-bg, ${t}-bg`]:{position:"relative",background:e.defaultColor,borderRadius:e.lineBorderRadius,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`},[`${t}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${t}-text`]:{width:"max-content",marginInlineStart:0,marginTop:e.marginXXS}},[`${t}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${ru})`]},height:"100%",width:`calc(1 / var(${Z$}) * 100%)`,display:"block"},[`&${t}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${t}-text-inner`]:{color:e.colorWhite,[`&${t}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${t}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${t}-text`]:{display:"inline-block",marginInlineStart:e.marginXS,color:e.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[n]:{fontSize:e.fontSize},[`&${t}-text-outer`]:{width:"max-content"},[`&${t}-text-outer${t}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:e.marginXS}},[`${t}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${U(e.paddingXXS)}`,[`&${t}-text-start`]:{justifyContent:"start"},[`&${t}-text-end`]:{justifyContent:"end"}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.lineBorderRadius,opacity:0,animationName:ew(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:ew(!0)}},[`&${t}-status-exception`]:{[`${t}-bg`]:{backgroundColor:e.colorError},[`${t}-text`]:{color:e.colorError}},[`&${t}-status-exception ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}},[`&${t}-status-success`]:{[`${t}-bg`]:{backgroundColor:e.colorSuccess},[`${t}-text`]:{color:e.colorSuccess}},[`&${t}-status-success ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}})}},V7=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-circle-trail`]:{stroke:e.remainingColor},[`&${t}-circle ${t}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${t}-circle ${t}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.circleTextColor,fontSize:e.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[n]:{fontSize:e.circleIconFontSize}},[`${t}-circle&-status-exception`]:{[`${t}-text`]:{color:e.colorError}},[`${t}-circle&-status-success`]:{[`${t}-text`]:{color:e.colorSuccess}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},W7=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,marginInlineEnd:e.progressStepMarginInlineEnd,backgroundColor:e.remainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.defaultColor}}}}}},K7=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${n}`]:{fontSize:e.fontSizeSM}}}},q7=Dt("Progress",e=>{const t=e.calc(e.marginXXS).div(2).equal(),n=xt(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[H7(n),V7(n),W7(n),K7(n)]},e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`}));var U7=globalThis&&globalThis.__rest||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 G7=e=>{let t=[];return Object.keys(e).forEach(n=>{const r=parseFloat(n.replace(/%/g,""));Number.isNaN(r)||t.push({key:r,value:e[n]})}),t=t.sort((n,r)=>n.key-r.key),t.map(n=>{let{key:r,value:o}=n;return`${o} ${r}%`}).join(", ")},X7=(e,t)=>{const{from:n=Ni.blue,to:r=Ni.blue,direction:o=t==="rtl"?"to left":"to right"}=e,i=U7(e,["from","to","direction"]);if(Object.keys(i).length!==0){const l=G7(i),c=`linear-gradient(${o}, ${l})`;return{background:c,[ru]:c}}const a=`linear-gradient(${o}, ${n}, ${r})`;return{background:a,[ru]:a}},Q7=e=>{const{prefixCls:t,direction:n,percent:r,size:o,strokeWidth:i,strokeColor:a,strokeLinecap:l="round",children:c,trailColor:u=null,percentPosition:d,success:f}=e,{align:m,type:p}=d,h=a&&typeof a!="string"?X7(a,n):{[ru]:a,background:a},b=l==="square"||l==="butt"?0:void 0,v=o!=null?o:[-1,i||(o==="small"?6:8)],[y,C]=nu(v,"line",{strokeWidth:i});process.env.NODE_ENV!=="production"&>("Progress").deprecated(!("strokeWidth"in e),"strokeWidth","size");const x={backgroundColor:u||void 0,borderRadius:b},E=Object.assign(Object.assign({width:`${Vo(r)}%`,height:C,borderRadius:b},h),{[Z$]:Vo(r)/100}),S=tu(e),$={width:`${Vo(S)}%`,height:C,borderRadius:b,backgroundColor:f==null?void 0:f.strokeColor},O={width:y<0?"100%":y},I=s.createElement("div",{className:`${t}-inner`,style:x},s.createElement("div",{className:G(`${t}-bg`,`${t}-bg-${p}`),style:E},p==="inner"&&c),S!==void 0&&s.createElement("div",{className:`${t}-success-bg`,style:$})),w=p==="outer"&&m==="start",N=p==="outer"&&m==="end";return p==="outer"&&m==="center"?s.createElement("div",{className:`${t}-layout-bottom`},I,c):s.createElement("div",{className:`${t}-outer`,style:O},w&&c,I,N&&c)},Y7=e=>{const{size:t,steps:n,rounding:r=Math.round,percent:o=0,strokeWidth:i=8,strokeColor:a,trailColor:l=null,prefixCls:c,children:u}=e,d=r(n*(o/100)),f=t==="small"?2:14,m=t!=null?t:[f,i],[p,h]=nu(m,"step",{steps:n,strokeWidth:i}),b=p/n,v=Array.from({length:n});for(let y=0;y<n;y++){const C=Array.isArray(a)?a[y]:a;v[y]=s.createElement("div",{key:y,className:G(`${c}-steps-item`,{[`${c}-steps-item-active`]:y<=d-1}),style:{backgroundColor:y<=d-1?C:l,width:b,height:h}})}return s.createElement("div",{className:`${c}-steps-outer`},v,u)};var J7=globalThis&&globalThis.__rest||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 Z7=["normal","exception","active","success"],tw=s.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:o,steps:i,strokeColor:a,percent:l=0,size:c="default",showInfo:u=!0,type:d="line",status:f,format:m,style:p,percentPosition:h={}}=e,b=J7(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:v="end",type:y="outer"}=h,C=Array.isArray(a)?a[0]:a,x=typeof a=="string"||Array.isArray(a)?a:void 0,E=s.useMemo(()=>{if(C){const j=typeof C=="string"?C:Object.values(C)[0];return new kt(j).isLight()}return!1},[a]),S=s.useMemo(()=>{var j,z;const B=tu(e);return parseInt(B!==void 0?(j=B!=null?B:0)===null||j===void 0?void 0:j.toString():(z=l!=null?l:0)===null||z===void 0?void 0:z.toString(),10)},[l,e.success,e.successPercent]),$=s.useMemo(()=>!Z7.includes(f)&&S>=100?"success":f||"normal",[f,S]),{getPrefixCls:O,direction:I,progress:w}=s.useContext(Xe),N=O("progress",n),[_,P,M]=q7(N),D=d==="line",T=D&&!i,A=s.useMemo(()=>{if(!u)return null;const j=tu(e);let z;const B=m||(W=>`${W}%`),K=D&&E&&y==="inner";return y==="inner"||m||$!=="exception"&&$!=="success"?z=B(Vo(l),Vo(j)):$==="exception"?z=D?s.createElement(Do,null):s.createElement($r,null):$==="success"&&(z=D?s.createElement(Mo,null):s.createElement(ps,null)),s.createElement("span",{className:G(`${N}-text`,{[`${N}-text-bright`]:K,[`${N}-text-${v}`]:T,[`${N}-text-${y}`]:T}),title:typeof z=="string"?z:void 0},z)},[u,l,S,$,d,N,m]);if(process.env.NODE_ENV!=="production"){const j=gt("Progress");j.deprecated(!("successPercent"in e),"successPercent","success.percent"),j.deprecated(!("width"in e),"width","size"),(d==="circle"||d==="dashboard")&&(Array.isArray(c)?process.env.NODE_ENV!=="production"&&j(!1,"usage",'Type "circle" and "dashboard" do not accept array as `size`, please use number or preset size instead.'):typeof c=="object"&&process.env.NODE_ENV!=="production"&&j(!1,"usage",'Type "circle" and "dashboard" do not accept object as `size`, please use number or preset size instead.')),e.success&&"progress"in e.success&&j.deprecated(!1,"success.progress","success.percent")}let R;d==="line"?R=i?s.createElement(Y7,Object.assign({},e,{strokeColor:x,prefixCls:N,steps:typeof i=="object"?i.count:i}),A):s.createElement(Q7,Object.assign({},e,{strokeColor:C,prefixCls:N,direction:I,percentPosition:{align:v,type:y}}),A):(d==="circle"||d==="dashboard")&&(R=s.createElement(F7,Object.assign({},e,{strokeColor:C,prefixCls:N,progressStatus:$}),A));const L=G(N,`${N}-status-${$}`,{[`${N}-${d==="dashboard"&&"circle"||d}`]:d!=="line",[`${N}-inline-circle`]:d==="circle"&&nu(c,"circle")[0]<=20,[`${N}-line`]:T,[`${N}-line-align-${v}`]:T,[`${N}-line-position-${y}`]:T,[`${N}-steps`]:i,[`${N}-show-info`]:u,[`${N}-${c}`]:typeof c=="string",[`${N}-rtl`]:I==="rtl"},w==null?void 0:w.className,r,o,P,M);return _(s.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},w==null?void 0:w.style),p),className:L,role:"progressbar","aria-valuenow":S,"aria-valuemin":0,"aria-valuemax":100},tn(b,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),R))});process.env.NODE_ENV!=="production"&&(tw.displayName="Progress");const eV=tw;var tV=["className","prefixCls","style","active","status","iconPrefix","icon","wrapperStyle","stepNumber","disabled","description","title","subTitle","progressDot","stepIcon","tailContent","icons","stepIndex","onStepClick","onClick","render"];function nw(e){return typeof e=="string"}function rw(e){var t,n=e.className,r=e.prefixCls,o=e.style,i=e.active,a=e.status,l=e.iconPrefix,c=e.icon;e.wrapperStyle;var u=e.stepNumber,d=e.disabled,f=e.description,m=e.title,p=e.subTitle,h=e.progressDot,b=e.stepIcon,v=e.tailContent,y=e.icons,C=e.stepIndex,x=e.onStepClick,E=e.onClick,S=e.render,$=tt(e,tV),O=!!x&&!d,I={};O&&(I.role="button",I.tabIndex=0,I.onClick=function(D){E==null||E(D),x(C)},I.onKeyDown=function(D){var T=D.which;(T===ye.ENTER||T===ye.SPACE)&&x(C)});var w=function(){var T,A,R=G("".concat(r,"-icon"),"".concat(l,"icon"),(T={},H(T,"".concat(l,"icon-").concat(c),c&&nw(c)),H(T,"".concat(l,"icon-check"),!c&&a==="finish"&&(y&&!y.finish||!y)),H(T,"".concat(l,"icon-cross"),!c&&a==="error"&&(y&&!y.error||!y)),T)),L=s.createElement("span",{className:"".concat(r,"-icon-dot")});return h?typeof h=="function"?A=s.createElement("span",{className:"".concat(r,"-icon")},h(L,{index:u-1,status:a,title:m,description:f})):A=s.createElement("span",{className:"".concat(r,"-icon")},L):c&&!nw(c)?A=s.createElement("span",{className:"".concat(r,"-icon")},c):y&&y.finish&&a==="finish"?A=s.createElement("span",{className:"".concat(r,"-icon")},y.finish):y&&y.error&&a==="error"?A=s.createElement("span",{className:"".concat(r,"-icon")},y.error):c||a==="finish"||a==="error"?A=s.createElement("span",{className:R}):A=s.createElement("span",{className:"".concat(r,"-icon")},u),b&&(A=b({index:u-1,status:a,title:m,description:f,node:A})),A},N=a||"wait",_=G("".concat(r,"-item"),"".concat(r,"-item-").concat(N),n,(t={},H(t,"".concat(r,"-item-custom"),c),H(t,"".concat(r,"-item-active"),i),H(t,"".concat(r,"-item-disabled"),d===!0),t)),P=q({},o),M=s.createElement("div",ce({},$,{className:_,style:P}),s.createElement("div",ce({onClick:E},I,{className:"".concat(r,"-item-container")}),s.createElement("div",{className:"".concat(r,"-item-tail")},v),s.createElement("div",{className:"".concat(r,"-item-icon")},w()),s.createElement("div",{className:"".concat(r,"-item-content")},s.createElement("div",{className:"".concat(r,"-item-title")},m,p&&s.createElement("div",{title:typeof p=="string"?p:void 0,className:"".concat(r,"-item-subtitle")},p)),f&&s.createElement("div",{className:"".concat(r,"-item-description")},f))));return S&&(M=S(M)||null),M}var nV=["prefixCls","style","className","children","direction","type","labelPlacement","iconPrefix","status","size","current","progressDot","stepIcon","initial","icons","onChange","itemRender","items"];function jp(e){var t,n=e.prefixCls,r=n===void 0?"rc-steps":n,o=e.style,i=o===void 0?{}:o,a=e.className;e.children;var l=e.direction,c=l===void 0?"horizontal":l,u=e.type,d=u===void 0?"default":u,f=e.labelPlacement,m=f===void 0?"horizontal":f,p=e.iconPrefix,h=p===void 0?"rc":p,b=e.status,v=b===void 0?"process":b,y=e.size,C=e.current,x=C===void 0?0:C,E=e.progressDot,S=E===void 0?!1:E,$=e.stepIcon,O=e.initial,I=O===void 0?0:O,w=e.icons,N=e.onChange,_=e.itemRender,P=e.items,M=P===void 0?[]:P,D=tt(e,nV),T=d==="navigation",A=d==="inline",R=A||S,L=A?"horizontal":c,j=A?void 0:y,z=R?"vertical":m,B=G(r,"".concat(r,"-").concat(L),a,(t={},H(t,"".concat(r,"-").concat(j),j),H(t,"".concat(r,"-label-").concat(z),L==="horizontal"),H(t,"".concat(r,"-dot"),!!R),H(t,"".concat(r,"-navigation"),T),H(t,"".concat(r,"-inline"),A),t)),K=function(V){N&&x!==V&&N(V)},W=function(V,Q){var J=q({},V),Y=I+Q;return v==="error"&&Q===x-1&&(J.className="".concat(r,"-next-error")),J.status||(Y===x?J.status=v:Y<x?J.status="finish":J.status="wait"),A&&(J.icon=void 0,J.subTitle=void 0),!J.render&&_&&(J.render=function(te){return _(J,te)}),g.createElement(rw,ce({},J,{active:Y===x,stepNumber:Y+1,stepIndex:Y,key:Y,prefixCls:r,iconPrefix:h,wrapperStyle:i,progressDot:R,stepIcon:$,icons:w,onStepClick:N&&K}))};return g.createElement("div",ce({className:B,style:i},D),M.filter(function(k){return k}).map(W))}jp.Step=rw;const rV=e=>{const{componentCls:t,customIconTop:n,customIconSize:r,customIconFontSize:o}=e;return{[`${t}-item-custom`]:{[`> ${t}-item-container > ${t}-item-icon`]:{height:"auto",background:"none",border:0,[`> ${t}-icon`]:{top:n,width:r,height:r,fontSize:o,lineHeight:U(r)}}},[`&:not(${t}-vertical)`]:{[`${t}-item-custom`]:{[`${t}-item-icon`]:{width:"auto",background:"none"}}}}},oV=e=>{const{componentCls:t}=e,n=`${t}-item`;return{[`${t}-horizontal`]:{[`${n}-tail`]:{transform:"translateY(-50%)"}}}},iV=e=>{const{componentCls:t,inlineDotSize:n,inlineTitleColor:r,inlineTailColor:o}=e,i=e.calc(e.paddingXS).add(e.lineWidth).equal(),a={[`${t}-item-container ${t}-item-content ${t}-item-title`]:{color:r}};return{[`&${t}-inline`]:{width:"auto",display:"inline-flex",[`${t}-item`]:{flex:"none","&-container":{padding:`${U(i)} ${U(e.paddingXXS)} 0`,margin:`0 ${U(e.calc(e.marginXXS).div(2).equal())}`,borderRadius:e.borderRadiusSM,cursor:"pointer",transition:`background-color ${e.motionDurationMid}`,"&:hover":{background:e.controlItemBgHover},"&[role='button']:hover":{opacity:1}},"&-icon":{width:n,height:n,marginInlineStart:`calc(50% - ${U(e.calc(n).div(2).equal())})`,[`> ${t}-icon`]:{top:0},[`${t}-icon-dot`]:{borderRadius:e.calc(e.fontSizeSM).div(4).equal(),"&::after":{display:"none"}}},"&-content":{width:"auto",marginTop:e.calc(e.marginXS).sub(e.lineWidth).equal()},"&-title":{color:r,fontSize:e.fontSizeSM,lineHeight:e.lineHeightSM,fontWeight:"normal",marginBottom:e.calc(e.marginXXS).div(2).equal()},"&-description":{display:"none"},"&-tail":{marginInlineStart:0,top:e.calc(n).div(2).add(i).equal(),transform:"translateY(-50%)","&:after":{width:"100%",height:e.lineWidth,borderRadius:0,marginInlineStart:0,background:o}},[`&:first-child ${t}-item-tail`]:{width:"50%",marginInlineStart:"50%"},[`&:last-child ${t}-item-tail`]:{display:"block",width:"50%"},"&-wait":Object.assign({[`${t}-item-icon ${t}-icon ${t}-icon-dot`]:{backgroundColor:e.colorBorderBg,border:`${U(e.lineWidth)} ${e.lineType} ${o}`}},a),"&-finish":Object.assign({[`${t}-item-tail::after`]:{backgroundColor:o},[`${t}-item-icon ${t}-icon ${t}-icon-dot`]:{backgroundColor:o,border:`${U(e.lineWidth)} ${e.lineType} ${o}`}},a),"&-error":a,"&-active, &-process":Object.assign({[`${t}-item-icon`]:{width:n,height:n,marginInlineStart:`calc(50% - ${U(e.calc(n).div(2).equal())})`,top:0}},a),[`&:not(${t}-item-active) > ${t}-item-container[role='button']:hover`]:{[`${t}-item-title`]:{color:r}}}}}},aV=e=>{const{componentCls:t,iconSize:n,lineHeight:r,iconSizeSM:o}=e;return{[`&${t}-label-vertical`]:{[`${t}-item`]:{overflow:"visible","&-tail":{marginInlineStart:e.calc(n).div(2).add(e.controlHeightLG).equal(),padding:`0 ${U(e.paddingLG)}`},"&-content":{display:"block",width:e.calc(n).div(2).add(e.controlHeightLG).mul(2).equal(),marginTop:e.marginSM,textAlign:"center"},"&-icon":{display:"inline-block",marginInlineStart:e.controlHeightLG},"&-title":{paddingInlineEnd:0,paddingInlineStart:0,"&::after":{display:"none"}},"&-subtitle":{display:"block",marginBottom:e.marginXXS,marginInlineStart:0,lineHeight:r}},[`&${t}-small:not(${t}-dot)`]:{[`${t}-item`]:{"&-icon":{marginInlineStart:e.calc(n).sub(o).div(2).add(e.controlHeightLG).equal()}}}}}},lV=e=>{const{componentCls:t,navContentMaxWidth:n,navArrowColor:r,stepsNavActiveColor:o,motionDurationSlow:i}=e;return{[`&${t}-navigation`]:{paddingTop:e.paddingSM,[`&${t}-small`]:{[`${t}-item`]:{"&-container":{marginInlineStart:e.calc(e.marginSM).mul(-1).equal()}}},[`${t}-item`]:{overflow:"visible",textAlign:"center","&-container":{display:"inline-block",height:"100%",marginInlineStart:e.calc(e.margin).mul(-1).equal(),paddingBottom:e.paddingSM,textAlign:"start",transition:`opacity ${i}`,[`${t}-item-content`]:{maxWidth:n},[`${t}-item-title`]:Object.assign(Object.assign({maxWidth:"100%",paddingInlineEnd:0},So),{"&::after":{display:"none"}})},[`&:not(${t}-item-active)`]:{[`${t}-item-container[role='button']`]:{cursor:"pointer","&:hover":{opacity:.85}}},"&:last-child":{flex:1,"&::after":{display:"none"}},"&::after":{position:"absolute",top:`calc(50% - ${U(e.calc(e.paddingSM).div(2).equal())})`,insetInlineStart:"100%",display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,borderTop:`${U(e.lineWidth)} ${e.lineType} ${r}`,borderBottom:"none",borderInlineStart:"none",borderInlineEnd:`${U(e.lineWidth)} ${e.lineType} ${r}`,transform:"translateY(-50%) translateX(-50%) rotate(45deg)",content:'""'},"&::before":{position:"absolute",bottom:0,insetInlineStart:"50%",display:"inline-block",width:0,height:e.lineWidthBold,backgroundColor:o,transition:`width ${i}, inset-inline-start ${i}`,transitionTimingFunction:"ease-out",content:'""'}},[`${t}-item${t}-item-active::before`]:{insetInlineStart:0,width:"100%"}},[`&${t}-navigation${t}-vertical`]:{[`> ${t}-item`]:{marginInlineEnd:0,"&::before":{display:"none"},[`&${t}-item-active::before`]:{top:0,insetInlineEnd:0,insetInlineStart:"unset",display:"block",width:e.calc(e.lineWidth).mul(3).equal(),height:`calc(100% - ${U(e.marginLG)})`},"&::after":{position:"relative",insetInlineStart:"50%",display:"block",width:e.calc(e.controlHeight).mul(.25).equal(),height:e.calc(e.controlHeight).mul(.25).equal(),marginBottom:e.marginXS,textAlign:"center",transform:"translateY(-50%) translateX(-50%) rotate(135deg)"},"&:last-child":{"&::after":{display:"none"}},[`> ${t}-item-container > ${t}-item-tail`]:{visibility:"hidden"}}},[`&${t}-navigation${t}-horizontal`]:{[`> ${t}-item > ${t}-item-container > ${t}-item-tail`]:{visibility:"hidden"}}}},sV=e=>{const{antCls:t,componentCls:n,iconSize:r,iconSizeSM:o,processIconColor:i,marginXXS:a,lineWidthBold:l,lineWidth:c,paddingXXS:u}=e,d=e.calc(r).add(e.calc(l).mul(4).equal()).equal(),f=e.calc(o).add(e.calc(e.lineWidth).mul(4).equal()).equal();return{[`&${n}-with-progress`]:{[`${n}-item`]:{paddingTop:u,[`&-process ${n}-item-container ${n}-item-icon ${n}-icon`]:{color:i}},[`&${n}-vertical > ${n}-item `]:{paddingInlineStart:u,[`> ${n}-item-container > ${n}-item-tail`]:{top:a,insetInlineStart:e.calc(r).div(2).sub(c).add(u).equal()}},[`&, &${n}-small`]:{[`&${n}-horizontal ${n}-item:first-child`]:{paddingBottom:u,paddingInlineStart:u}},[`&${n}-small${n}-vertical > ${n}-item > ${n}-item-container > ${n}-item-tail`]:{insetInlineStart:e.calc(o).div(2).sub(c).add(u).equal()},[`&${n}-label-vertical ${n}-item ${n}-item-tail`]:{top:e.calc(r).div(2).add(u).equal()},[`${n}-item-icon`]:{position:"relative",[`${t}-progress`]:{position:"absolute",insetInlineStart:"50%",top:"50%",transform:"translate(-50%, -50%)","&-inner":{width:`${U(d)} !important`,height:`${U(d)} !important`}}},[`&${n}-small`]:{[`&${n}-label-vertical ${n}-item ${n}-item-tail`]:{top:e.calc(o).div(2).add(u).equal()},[`${n}-item-icon ${t}-progress-inner`]:{width:`${U(f)} !important`,height:`${U(f)} !important`}}}}},cV=e=>{const{componentCls:t,descriptionMaxWidth:n,lineHeight:r,dotCurrentSize:o,dotSize:i,motionDurationSlow:a}=e;return{[`&${t}-dot, &${t}-dot${t}-small`]:{[`${t}-item`]:{"&-title":{lineHeight:r},"&-tail":{top:e.calc(e.dotSize).sub(e.calc(e.lineWidth).mul(3).equal()).div(2).equal(),width:"100%",marginTop:0,marginBottom:0,marginInline:`${U(e.calc(n).div(2).equal())} 0`,padding:0,"&::after":{width:`calc(100% - ${U(e.calc(e.marginSM).mul(2).equal())})`,height:e.calc(e.lineWidth).mul(3).equal(),marginInlineStart:e.marginSM}},"&-icon":{width:i,height:i,marginInlineStart:e.calc(e.descriptionMaxWidth).sub(i).div(2).equal(),paddingInlineEnd:0,lineHeight:U(i),background:"transparent",border:0,[`${t}-icon-dot`]:{position:"relative",float:"left",width:"100%",height:"100%",borderRadius:100,transition:`all ${a}`,"&::after":{position:"absolute",top:e.calc(e.marginSM).mul(-1).equal(),insetInlineStart:e.calc(i).sub(e.calc(e.controlHeightLG).mul(1.5).equal()).div(2).equal(),width:e.calc(e.controlHeightLG).mul(1.5).equal(),height:e.controlHeight,background:"transparent",content:'""'}}},"&-content":{width:n},[`&-process ${t}-item-icon`]:{position:"relative",top:e.calc(i).sub(o).div(2).equal(),width:o,height:o,lineHeight:U(o),background:"none",marginInlineStart:e.calc(e.descriptionMaxWidth).sub(o).div(2).equal()},[`&-process ${t}-icon`]:{[`&:first-child ${t}-icon-dot`]:{insetInlineStart:0}}}},[`&${t}-vertical${t}-dot`]:{[`${t}-item-icon`]:{marginTop:e.calc(e.controlHeight).sub(i).div(2).equal(),marginInlineStart:0,background:"none"},[`${t}-item-process ${t}-item-icon`]:{marginTop:e.calc(e.controlHeight).sub(o).div(2).equal(),top:0,insetInlineStart:e.calc(i).sub(o).div(2).equal(),marginInlineStart:0},[`${t}-item > ${t}-item-container > ${t}-item-tail`]:{top:e.calc(e.controlHeight).sub(i).div(2).equal(),insetInlineStart:0,margin:0,padding:`${U(e.calc(i).add(e.paddingXS).equal())} 0 ${U(e.paddingXS)}`,"&::after":{marginInlineStart:e.calc(i).sub(e.lineWidth).div(2).equal()}},[`&${t}-small`]:{[`${t}-item-icon`]:{marginTop:e.calc(e.controlHeightSM).sub(i).div(2).equal()},[`${t}-item-process ${t}-item-icon`]:{marginTop:e.calc(e.controlHeightSM).sub(o).div(2).equal()},[`${t}-item > ${t}-item-container > ${t}-item-tail`]:{top:e.calc(e.controlHeightSM).sub(i).div(2).equal()}},[`${t}-item:first-child ${t}-icon-dot`]:{insetInlineStart:0},[`${t}-item-content`]:{width:"inherit"}}}},uV=e=>{const{componentCls:t}=e;return{[`&${t}-rtl`]:{direction:"rtl",[`${t}-item`]:{"&-subtitle":{float:"left"}},[`&${t}-navigation`]:{[`${t}-item::after`]:{transform:"rotate(-45deg)"}},[`&${t}-vertical`]:{[`> ${t}-item`]:{"&::after":{transform:"rotate(225deg)"},[`${t}-item-icon`]:{float:"right"}}},[`&${t}-dot`]:{[`${t}-item-icon ${t}-icon-dot, &${t}-small ${t}-item-icon ${t}-icon-dot`]:{float:"right"}}}}},dV=e=>{const{componentCls:t,iconSizeSM:n,fontSizeSM:r,fontSize:o,colorTextDescription:i}=e;return{[`&${t}-small`]:{[`&${t}-horizontal:not(${t}-label-vertical) ${t}-item`]:{paddingInlineStart:e.paddingSM,"&:first-child":{paddingInlineStart:0}},[`${t}-item-icon`]:{width:n,height:n,marginTop:0,marginBottom:0,marginInline:`0 ${U(e.marginXS)}`,fontSize:r,lineHeight:U(n),textAlign:"center",borderRadius:n},[`${t}-item-title`]:{paddingInlineEnd:e.paddingSM,fontSize:o,lineHeight:U(n),"&::after":{top:e.calc(n).div(2).equal()}},[`${t}-item-description`]:{color:i,fontSize:o},[`${t}-item-tail`]:{top:e.calc(n).div(2).sub(e.paddingXXS).equal()},[`${t}-item-custom ${t}-item-icon`]:{width:"inherit",height:"inherit",lineHeight:"inherit",background:"none",border:0,borderRadius:0,[`> ${t}-icon`]:{fontSize:n,lineHeight:U(n),transform:"none"}}}}},fV=e=>{const{componentCls:t,iconSizeSM:n,iconSize:r}=e;return{[`&${t}-vertical`]:{display:"flex",flexDirection:"column",[`> ${t}-item`]:{display:"block",flex:"1 0 auto",paddingInlineStart:0,overflow:"visible",[`${t}-item-icon`]:{float:"left",marginInlineEnd:e.margin},[`${t}-item-content`]:{display:"block",minHeight:e.calc(e.controlHeight).mul(1.5).equal(),overflow:"hidden"},[`${t}-item-title`]:{lineHeight:U(r)},[`${t}-item-description`]:{paddingBottom:e.paddingSM}},[`> ${t}-item > ${t}-item-container > ${t}-item-tail`]:{position:"absolute",top:0,insetInlineStart:e.calc(r).div(2).sub(e.lineWidth).equal(),width:e.lineWidth,height:"100%",padding:`${U(e.calc(e.marginXXS).mul(1.5).add(r).equal())} 0 ${U(e.calc(e.marginXXS).mul(1.5).equal())}`,"&::after":{width:e.lineWidth,height:"100%"}},[`> ${t}-item:not(:last-child) > ${t}-item-container > ${t}-item-tail`]:{display:"block"},[` > ${t}-item > ${t}-item-container > ${t}-item-content > ${t}-item-title`]:{"&::after":{display:"none"}},[`&${t}-small ${t}-item-container`]:{[`${t}-item-tail`]:{position:"absolute",top:0,insetInlineStart:e.calc(n).div(2).sub(e.lineWidth).equal(),padding:`${U(e.calc(e.marginXXS).mul(1.5).add(n).equal())} 0 ${U(e.calc(e.marginXXS).mul(1.5).equal())}`},[`${t}-item-title`]:{lineHeight:U(n)}}}}},mV="wait",pV="process",vV="finish",gV="error",ou=(e,t)=>{const n=`${t.componentCls}-item`,r=`${e}IconColor`,o=`${e}TitleColor`,i=`${e}DescriptionColor`,a=`${e}TailColor`,l=`${e}IconBgColor`,c=`${e}IconBorderColor`,u=`${e}DotColor`;return{[`${n}-${e} ${n}-icon`]:{backgroundColor:t[l],borderColor:t[c],[`> ${t.componentCls}-icon`]:{color:t[r],[`${t.componentCls}-icon-dot`]:{background:t[u]}}},[`${n}-${e}${n}-custom ${n}-icon`]:{[`> ${t.componentCls}-icon`]:{color:t[u]}},[`${n}-${e} > ${n}-container > ${n}-content > ${n}-title`]:{color:t[o],"&::after":{backgroundColor:t[a]}},[`${n}-${e} > ${n}-container > ${n}-content > ${n}-description`]:{color:t[i]},[`${n}-${e} > ${n}-container > ${n}-tail::after`]:{backgroundColor:t[a]}}},hV=e=>{const{componentCls:t,motionDurationSlow:n}=e,r=`${t}-item`,o=`${r}-icon`;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[r]:{position:"relative",display:"inline-block",flex:1,overflow:"hidden",verticalAlign:"top","&:last-child":{flex:"none",[`> ${r}-container > ${r}-tail, > ${r}-container > ${r}-content > ${r}-title::after`]:{display:"none"}}},[`${r}-container`]:{outline:"none","&:focus-visible":{[o]:Object.assign({},Br(e))}},[`${o}, ${r}-content`]:{display:"inline-block",verticalAlign:"top"},[o]:{width:e.iconSize,height:e.iconSize,marginTop:0,marginBottom:0,marginInlineStart:0,marginInlineEnd:e.marginXS,fontSize:e.iconFontSize,fontFamily:e.fontFamily,lineHeight:U(e.iconSize),textAlign:"center",borderRadius:e.iconSize,border:`${U(e.lineWidth)} ${e.lineType} transparent`,transition:`background-color ${n}, border-color ${n}`,[`${t}-icon`]:{position:"relative",top:e.iconTop,color:e.colorPrimary,lineHeight:1}},[`${r}-tail`]:{position:"absolute",top:e.calc(e.iconSize).div(2).equal(),insetInlineStart:0,width:"100%","&::after":{display:"inline-block",width:"100%",height:e.lineWidth,background:e.colorSplit,borderRadius:e.lineWidth,transition:`background ${n}`,content:'""'}},[`${r}-title`]:{position:"relative",display:"inline-block",paddingInlineEnd:e.padding,color:e.colorText,fontSize:e.fontSizeLG,lineHeight:U(e.titleLineHeight),"&::after":{position:"absolute",top:e.calc(e.titleLineHeight).div(2).equal(),insetInlineStart:"100%",display:"block",width:9999,height:e.lineWidth,background:e.processTailColor,content:'""'}},[`${r}-subtitle`]:{display:"inline",marginInlineStart:e.marginXS,color:e.colorTextDescription,fontWeight:"normal",fontSize:e.fontSize},[`${r}-description`]:{color:e.colorTextDescription,fontSize:e.fontSize}},ou(mV,e)),ou(pV,e)),{[`${r}-process > ${r}-container > ${r}-title`]:{fontWeight:e.fontWeightStrong}}),ou(vV,e)),ou(gV,e)),{[`${r}${t}-next-error > ${t}-item-title::after`]:{background:e.colorError},[`${r}-disabled`]:{cursor:"not-allowed"}})},bV=e=>{const{componentCls:t,motionDurationSlow:n}=e;return{[`& ${t}-item`]:{[`&:not(${t}-item-active)`]:{[`& > ${t}-item-container[role='button']`]:{cursor:"pointer",[`${t}-item`]:{[`&-title, &-subtitle, &-description, &-icon ${t}-icon`]:{transition:`color ${n}`}},"&:hover":{[`${t}-item`]:{"&-title, &-subtitle, &-description":{color:e.colorPrimary}}}},[`&:not(${t}-item-process)`]:{[`& > ${t}-item-container[role='button']:hover`]:{[`${t}-item`]:{"&-icon":{borderColor:e.colorPrimary,[`${t}-icon`]:{color:e.colorPrimary}}}}}}},[`&${t}-horizontal:not(${t}-label-vertical)`]:{[`${t}-item`]:{paddingInlineStart:e.padding,whiteSpace:"nowrap","&:first-child":{paddingInlineStart:0},[`&:last-child ${t}-item-title`]:{paddingInlineEnd:0},"&-tail":{display:"none"},"&-description":{maxWidth:e.descriptionMaxWidth,whiteSpace:"normal"}}}}},yV=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ht(e)),{display:"flex",width:"100%",fontSize:0,textAlign:"initial"}),hV(e)),bV(e)),rV(e)),dV(e)),fV(e)),oV(e)),aV(e)),cV(e)),lV(e)),uV(e)),sV(e)),iV(e))}},CV=Dt("Steps",e=>{const{colorTextDisabled:t,controlHeightLG:n,colorTextLightSolid:r,colorText:o,colorPrimary:i,colorTextDescription:a,colorTextQuaternary:l,colorError:c,colorBorderSecondary:u,colorSplit:d}=e,f=xt(e,{processIconColor:r,processTitleColor:o,processDescriptionColor:o,processIconBgColor:i,processIconBorderColor:i,processDotColor:i,processTailColor:d,waitTitleColor:a,waitDescriptionColor:a,waitTailColor:d,waitDotColor:t,finishIconColor:i,finishTitleColor:o,finishDescriptionColor:a,finishTailColor:i,finishDotColor:i,errorIconColor:r,errorTitleColor:c,errorDescriptionColor:c,errorTailColor:d,errorIconBgColor:c,errorIconBorderColor:c,errorDotColor:c,stepsNavActiveColor:i,stepsProgressSize:n,inlineDotSize:6,inlineTitleColor:l,inlineTailColor:u});return[yV(f)]},e=>({titleLineHeight:e.controlHeight,customIconSize:e.controlHeight,customIconTop:0,customIconFontSize:e.controlHeightSM,iconSize:e.controlHeight,iconTop:-.5,iconFontSize:e.fontSize,iconSizeSM:e.fontSizeHeading3,dotSize:e.controlHeight/4,dotCurrentSize:e.controlHeightLG/4,navArrowColor:e.colorTextDisabled,navContentMaxWidth:"unset",descriptionMaxWidth:140,waitIconColor:e.wireframe?e.colorTextDisabled:e.colorTextLabel,waitIconBgColor:e.wireframe?e.colorBgContainer:e.colorFillContent,waitIconBorderColor:e.wireframe?e.colorTextDisabled:"transparent",finishIconBgColor:e.wireframe?e.colorBgContainer:e.controlItemBgActive,finishIconBorderColor:e.wireframe?e.colorPrimary:e.controlItemBgActive}));function SV(e){return e.filter(t=>t)}function xV(e,t){if(process.env.NODE_ENV==="test"&>("Menu").deprecated(!t,"Step","items"),e)return e;const n=Tn(t).map(r=>{if(s.isValidElement(r)){const{props:o}=r;return Object.assign({},o)}return null});return SV(n)}var EV=globalThis&&globalThis.__rest||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=e=>{const{percent:t,size:n,className:r,rootClassName:o,direction:i,items:a,responsive:l=!0,current:c=0,children:u,style:d}=e,f=EV(e,["percent","size","className","rootClassName","direction","items","responsive","current","children","style"]),{xs:m}=vl(l),{getPrefixCls:p,direction:h,className:b,style:v}=An("steps"),y=s.useMemo(()=>l&&m?"vertical":i,[m,i]),C=qn(n),x=p("steps",e.prefixCls),[E,S,$]=CV(x),O=e.type==="inline",I=p("",e.iconPrefix),w=xV(a,u),N=O?void 0:t,_=Object.assign(Object.assign({},v),d),P=G(b,{[`${x}-rtl`]:h==="rtl",[`${x}-with-progress`]:N!==void 0},r,o,S,$),M={finish:s.createElement(ps,{className:`${x}-finish-icon`}),error:s.createElement($r,{className:`${x}-error-icon`})},D=A=>{let{node:R,status:L}=A;if(L==="process"&&N!==void 0){const j=C==="small"?32:40;return s.createElement("div",{className:`${x}-progress-icon`},s.createElement(eV,{type:"circle",percent:N,size:j,strokeWidth:4,format:()=>null}),R)}return R},T=(A,R)=>A.description?s.createElement(co,{title:A.description},R):R;return E(s.createElement(jp,Object.assign({icons:M},f,{style:_,current:c,size:C,items:w,itemRender:O?T:void 0,stepIcon:D,direction:y,prefixCls:x,iconPrefix:I,className:P})))};Lp.Step=jp.Step,process.env.NODE_ENV!=="production"&&(Lp.displayName="Steps");const ow=Lp;var $V=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],iw=s.forwardRef(function(e,t){var n,r=e.prefixCls,o=r===void 0?"rc-switch":r,i=e.className,a=e.checked,l=e.defaultChecked,c=e.disabled,u=e.loadingIcon,d=e.checkedChildren,f=e.unCheckedChildren,m=e.onClick,p=e.onChange,h=e.onKeyDown,b=tt(e,$V),v=ln(!1,{value:a,defaultValue:l}),y=ae(v,2),C=y[0],x=y[1];function E(I,w){var N=C;return c||(N=I,x(N),p==null||p(N,w)),N}function S(I){I.which===ye.LEFT?E(!1,I):I.which===ye.RIGHT&&E(!0,I),h==null||h(I)}function $(I){var w=E(!C,I);m==null||m(w,I)}var O=G(o,i,(n={},H(n,"".concat(o,"-checked"),C),H(n,"".concat(o,"-disabled"),c),n));return s.createElement("button",ce({},b,{type:"button",role:"switch","aria-checked":C,disabled:c,className:O,ref:t,onKeyDown:S,onClick:$}),u,s.createElement("span",{className:"".concat(o,"-inner")},s.createElement("span",{className:"".concat(o,"-inner-checked")},d),s.createElement("span",{className:"".concat(o,"-inner-unchecked")},f)))});iw.displayName="Switch";const wV=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:o,innerMinMarginSM:i,innerMaxMarginSM:a,handleSizeSM:l,calc:c}=e,u=`${t}-inner`,d=U(c(l).add(c(r).mul(2)).equal()),f=U(c(a).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:o,height:n,lineHeight:U(n),[`${t}-inner`]:{paddingInlineStart:a,paddingInlineEnd:i,[`${u}-checked, ${u}-unchecked`]:{minHeight:n},[`${u}-checked`]:{marginInlineStart:`calc(-100% + ${d} - ${f})`,marginInlineEnd:`calc(100% - ${d} + ${f})`},[`${u}-unchecked`]:{marginTop:c(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:l,height:l},[`${t}-loading-icon`]:{top:c(c(l).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:i,paddingInlineEnd:a,[`${u}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${u}-unchecked`]:{marginInlineStart:`calc(100% - ${d} + ${f})`,marginInlineEnd:`calc(-100% + ${d} - ${f})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${U(c(l).add(r).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${u}`]:{[`${u}-unchecked`]:{marginInlineStart:c(e.marginXXS).div(2).equal(),marginInlineEnd:c(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${u}`]:{[`${u}-checked`]:{marginInlineStart:c(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:c(e.marginXXS).div(2).equal()}}}}}}},OV=e=>{const{componentCls:t,handleSize:n,calc:r}=e;return{[t]:{[`${t}-loading-icon${e.iconCls}`]:{position:"relative",top:r(r(n).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${t}-checked ${t}-loading-icon`]:{color:e.switchColor}}}},NV=e=>{const{componentCls:t,trackPadding:n,handleBg:r,handleShadow:o,handleSize:i,calc:a}=e,l=`${t}-handle`;return{[t]:{[l]:{position:"absolute",top:n,insetInlineStart:n,width:i,height:i,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:r,borderRadius:a(i).div(2).equal(),boxShadow:o,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${l}`]:{insetInlineStart:`calc(100% - ${U(a(i).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${l}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${l}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},IV=e=>{const{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:o,innerMaxMargin:i,handleSize:a,calc:l}=e,c=`${t}-inner`,u=U(l(a).add(l(r).mul(2)).equal()),d=U(l(i).mul(2).equal());return{[t]:{[c]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:i,paddingInlineEnd:o,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${c}-checked, ${c}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:n},[`${c}-checked`]:{marginInlineStart:`calc(-100% + ${u} - ${d})`,marginInlineEnd:`calc(100% - ${u} + ${d})`},[`${c}-unchecked`]:{marginTop:l(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${c}`]:{paddingInlineStart:o,paddingInlineEnd:i,[`${c}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${c}-unchecked`]:{marginInlineStart:`calc(100% - ${u} + ${d})`,marginInlineEnd:`calc(-100% + ${u} - ${d})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${c}`]:{[`${c}-unchecked`]:{marginInlineStart:l(r).mul(2).equal(),marginInlineEnd:l(r).mul(-1).mul(2).equal()}},[`&${t}-checked ${c}`]:{[`${c}-checked`]:{marginInlineStart:l(r).mul(-1).mul(2).equal(),marginInlineEnd:l(r).mul(2).equal()}}}}}},_V=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Ht(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:n,lineHeight:U(n),verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${t}-disabled)`]:{background:e.colorTextTertiary}}),Ir(e)),{[`&${t}-checked`]:{background:e.switchColor,[`&:hover:not(${t}-disabled)`]:{background:e.colorPrimaryHover}},[`&${t}-loading, &${t}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${t}-rtl`]:{direction:"rtl"}})}},TV=Dt("Switch",e=>{const t=xt(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[_V(t),IV(t),NV(t),OV(t),wV(t)]},e=>{const{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:o}=e,i=t*n,a=r/2,l=2,c=i-l*2,u=a-l*2;return{trackHeight:i,trackHeightSM:a,trackMinWidth:c*2+l*4,trackMinWidthSM:u*2+l*2,trackPadding:l,handleBg:o,handleSize:c,handleSizeSM:u,handleShadow:`0 2px 4px 0 ${new kt("#00230b").setA(.2).toRgbString()}`,innerMinMargin:c/2,innerMaxMargin:c+l+l*2,innerMinMarginSM:u/2,innerMaxMarginSM:u+l+l*2}});var PV=globalThis&&globalThis.__rest||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 zp=s.forwardRef((e,t)=>{const{prefixCls:n,size:r,disabled:o,loading:i,className:a,rootClassName:l,style:c,checked:u,value:d,defaultChecked:f,defaultValue:m,onChange:p}=e,h=PV(e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[b,v]=ln(!1,{value:u!=null?u:d,defaultValue:f!=null?f:m}),{getPrefixCls:y,direction:C,switch:x}=s.useContext(Xe),E=s.useContext(oo),S=(o!=null?o:E)||i,$=y("switch",n),O=s.createElement("div",{className:`${$}-handle`},i&&s.createElement(ti,{className:`${$}-loading-icon`})),[I,w,N]=TV($),_=qn(r),P=G(x==null?void 0:x.className,{[`${$}-small`]:_==="small",[`${$}-loading`]:i,[`${$}-rtl`]:C==="rtl"},a,l,w,N),M=Object.assign(Object.assign({},x==null?void 0:x.style),c),D=function(){v(arguments.length<=0?void 0:arguments[0]),p==null||p.apply(void 0,arguments)};return I(s.createElement(tl,{component:"Switch"},s.createElement(iw,Object.assign({},h,{checked:b,onChange:D,prefixCls:$,className:P,style:M,disabled:S,ref:t,loadingIcon:O}))))});zp.__ANT_SWITCH=!0,process.env.NODE_ENV!=="production"&&(zp.displayName="Switch");const MV=zp;var Wr={},Pl="rc-table-internal-hook";function Bp(e){var t=s.createContext(void 0),n=function(o){var i=o.value,a=o.children,l=s.useRef(i);l.current=i;var c=s.useState(function(){return{getValue:function(){return l.current},listeners:new Set}}),u=ae(c,1),d=u[0];return wt(function(){nr.unstable_batchedUpdates(function(){d.listeners.forEach(function(f){f(i)})})},[i]),s.createElement(t.Provider,{value:d},a)};return{Context:t,Provider:n,defaultValue:e}}function Un(e,t){var n=qt(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(p){m[p]=f[p]}),m}),r=s.useContext(e==null?void 0:e.Context),o=r||{},i=o.listeners,a=o.getValue,l=s.useRef();l.current=n(r?a():e==null?void 0:e.defaultValue);var c=s.useState({}),u=ae(c,2),d=u[1];return wt(function(){if(!r)return;function f(m){var p=n(m);eo(l.current,p,!0)||d({})}return i.add(f),function(){i.delete(f)}},[r]),l.current}function DV(){var e=s.createContext(null);function t(){return s.useContext(e)}function n(o,i){var a=Rr(o),l=function(u,d){var f=a?{ref:d}:{},m=s.useRef(0),p=s.useRef(u),h=t();return h!==null?s.createElement(o,ce({},u,f)):((!i||i(p.current,u))&&(m.current+=1),p.current=u,s.createElement(e.Provider,{value:m.current},s.createElement(o,ce({},u,f))))};return process.env.NODE_ENV!=="production"&&(l.displayName="ImmutableRoot(".concat(o.displayName||o.name,")")),a?s.forwardRef(l):l}function r(o,i){var a=Rr(o),l=function(u,d){var f=a?{ref:d}:{};return t(),s.createElement(o,ce({},u,f))};return process.env.NODE_ENV!=="production"&&(l.displayName="ImmutableResponse(".concat(o.displayName||o.name,")")),a?s.memo(s.forwardRef(l),i):s.memo(l,i)}return{makeImmutable:n,responseImmutable:r,useImmutableMark:t}}var kp=DV(),aw=kp.makeImmutable,ma=kp.responseImmutable,AV=kp.useImmutableMark,ar=Bp();function lw(e,t){var n=s.useRef(0);n.current+=1;var r=s.useRef(e),o=[];Object.keys(e||{}).map(function(a){var l;(e==null?void 0:e[a])!==((l=r.current)===null||l===void 0?void 0:l[a])&&o.push(a)}),r.current=e;var i=s.useRef([]);return o.length&&(i.current=o),s.useDebugValue(n.current),s.useDebugValue(i.current.join(", ")),t&&console.log("".concat(t,":"),n.current,i.current),n.current}const Wo=process.env.NODE_ENV!=="production"?lw:function(){};var RV=s.memo(function(){var e=lw();return s.createElement("h1",null,"Render Times: ",e)});process.env.NODE_ENV!=="production"&&(RV.displayName="RenderBlock");var sw=s.createContext({renderWithProps:!1}),jV="RC_TABLE_KEY";function LV(e){return e==null?[]:Array.isArray(e)?e:[e]}function iu(e){var t=[],n={};return e.forEach(function(r){for(var o=r||{},i=o.key,a=o.dataIndex,l=i||LV(a).join("-")||jV;n[l];)l="".concat(l,"_next");n[l]=!0,t.push(l)}),t}function Fp(e){return e!=null}function zV(e){return typeof e=="number"&&!Number.isNaN(e)}function BV(e){return e&&He(e)==="object"&&!Array.isArray(e)&&!s.isValidElement(e)}function kV(e,t,n,r,o,i){var a=s.useContext(sw),l=AV(),c=ni(function(){if(Fp(r))return[r];var u=t==null||t===""?[]:Array.isArray(t)?t:[t],d=or(e,u),f=d,m=void 0;if(o){var p=o(d,e,n);BV(p)?(process.env.NODE_ENV!=="production"&&Ge(!1,"`columns.render` return cell props is deprecated with perf issue, please use `onCell` instead."),f=p.children,m=p.props,a.renderWithProps=!0):f=p}return[f,m]},[l,e,r,t,o,n],function(u,d){if(i){var f=ae(u,2),m=f[1],p=ae(d,2),h=p[1];return i(h,m)}return a.renderWithProps?!0:!eo(u,d,!0)});return c}function FV(e,t,n,r){var o=e+t-1;return e<=r&&o>=n}function HV(e,t){return Un(ar,function(n){var r=FV(e,t||1,n.hoverStartRow,n.hoverEndRow);return[r,n.onHover]})}var VV=function(t){var n=t.ellipsis,r=t.rowType,o=t.children,i,a=n===!0?{showTitle:!0}:n;return a&&(a.showTitle||r==="header")&&(typeof o=="string"||typeof o=="number"?i=o.toString():s.isValidElement(o)&&typeof o.props.children=="string"&&(i=o.props.children)),i};function WV(e){var t,n,r,o,i,a,l,c;process.env.NODE_ENV!=="production"&&Wo(e);var u=e.component,d=e.children,f=e.ellipsis,m=e.scope,p=e.prefixCls,h=e.className,b=e.align,v=e.record,y=e.render,C=e.dataIndex,x=e.renderIndex,E=e.shouldCellUpdate,S=e.index,$=e.rowType,O=e.colSpan,I=e.rowSpan,w=e.fixLeft,N=e.fixRight,_=e.firstFixLeft,P=e.lastFixLeft,M=e.firstFixRight,D=e.lastFixRight,T=e.appendNode,A=e.additionalProps,R=A===void 0?{}:A,L=e.isSticky,j="".concat(p,"-cell"),z=Un(ar,["supportSticky","allColumnsFixedLeft","rowHoverable"]),B=z.supportSticky,K=z.allColumnsFixedLeft,W=z.rowHoverable,k=kV(v,C,x,d,y,E),V=ae(k,2),Q=V[0],J=V[1],Y={},te=typeof w=="number"&&B,oe=typeof N=="number"&&B;te&&(Y.position="sticky",Y.left=w),oe&&(Y.position="sticky",Y.right=N);var X=(t=(n=(r=J==null?void 0:J.colSpan)!==null&&r!==void 0?r:R.colSpan)!==null&&n!==void 0?n:O)!==null&&t!==void 0?t:1,F=(o=(i=(a=J==null?void 0:J.rowSpan)!==null&&a!==void 0?a:R.rowSpan)!==null&&i!==void 0?i:I)!==null&&o!==void 0?o:1,ee=HV(S,F),Z=ae(ee,2),ne=Z[0],re=Z[1],se=qt(function(me){var Ce;v&&re(S,S+F-1),R==null||(Ce=R.onMouseEnter)===null||Ce===void 0||Ce.call(R,me)}),le=qt(function(me){var Ce;v&&re(-1,-1),R==null||(Ce=R.onMouseLeave)===null||Ce===void 0||Ce.call(R,me)});if(X===0||F===0)return null;var he=(l=R.title)!==null&&l!==void 0?l:VV({rowType:$,ellipsis:f,children:Q}),fe=G(j,h,(c={},H(H(H(H(H(H(H(H(H(H(c,"".concat(j,"-fix-left"),te&&B),"".concat(j,"-fix-left-first"),_&&B),"".concat(j,"-fix-left-last"),P&&B),"".concat(j,"-fix-left-all"),P&&K&&B),"".concat(j,"-fix-right"),oe&&B),"".concat(j,"-fix-right-first"),M&&B),"".concat(j,"-fix-right-last"),D&&B),"".concat(j,"-ellipsis"),f),"".concat(j,"-with-append"),T),"".concat(j,"-fix-sticky"),(te||oe)&&L&&B),H(c,"".concat(j,"-row-hover"),!J&&ne)),R.className,J==null?void 0:J.className),ie={};b&&(ie.textAlign=b);var ue=q(q(q(q({},J==null?void 0:J.style),Y),ie),R.style),de=Q;return He(de)==="object"&&!Array.isArray(de)&&!s.isValidElement(de)&&(de=null),f&&(P||M)&&(de=s.createElement("span",{className:"".concat(j,"-content")},de)),s.createElement(u,ce({},J,R,{className:fe,style:ue,title:he,scope:m,onMouseEnter:W?se:void 0,onMouseLeave:W?le:void 0,colSpan:X!==1?X:null,rowSpan:F!==1?F:null}),T,de)}const pa=s.memo(WV);function Hp(e,t,n,r,o){var i=n[e]||{},a=n[t]||{},l,c;i.fixed==="left"?l=r.left[o==="rtl"?t:e]:a.fixed==="right"&&(c=r.right[o==="rtl"?e:t]);var u=!1,d=!1,f=!1,m=!1,p=n[t+1],h=n[e-1],b=p&&!p.fixed||h&&!h.fixed||n.every(function(E){return E.fixed==="left"});if(o==="rtl"){if(l!==void 0){var v=h&&h.fixed==="left";m=!v&&b}else if(c!==void 0){var y=p&&p.fixed==="right";f=!y&&b}}else if(l!==void 0){var C=p&&p.fixed==="left";u=!C&&b}else if(c!==void 0){var x=h&&h.fixed==="right";d=!x&&b}return{fixLeft:l,fixRight:c,lastFixLeft:u,firstFixRight:d,lastFixRight:f,firstFixLeft:m,isSticky:r.isSticky}}var cw=s.createContext({});function KV(e){var t=e.className,n=e.index,r=e.children,o=e.colSpan,i=o===void 0?1:o,a=e.rowSpan,l=e.align,c=Un(ar,["prefixCls","direction"]),u=c.prefixCls,d=c.direction,f=s.useContext(cw),m=f.scrollColumnIndex,p=f.stickyOffsets,h=f.flattenColumns,b=n+i-1,v=b+1===m?i+1:i,y=Hp(n,n+v-1,h,p,d);return s.createElement(pa,ce({className:t,index:n,component:"td",prefixCls:u,record:null,dataIndex:null,align:l,colSpan:v,rowSpan:a,render:function(){return r}},y))}var qV=["children"];function UV(e){var t=e.children,n=tt(e,qV);return s.createElement("tr",n,t)}function au(e){var t=e.children;return t}au.Row=UV,au.Cell=KV;function GV(e){process.env.NODE_ENV!=="production"&&Wo(e);var t=e.children,n=e.stickyOffsets,r=e.flattenColumns,o=Un(ar,"prefixCls"),i=r.length-1,a=r[i],l=s.useMemo(function(){return{stickyOffsets:n,flattenColumns:r,scrollColumnIndex:a!=null&&a.scrollbar?i:null}},[a,r,i,n]);return s.createElement(cw.Provider,{value:l},s.createElement("tfoot",{className:"".concat(o,"-summary")},t))}const lu=ma(GV);var uw=au;function XV(e){return null}function QV(e){return null}function dw(e,t,n,r,o,i,a){e.push({record:t,indent:n,index:a});var l=i(t),c=o==null?void 0:o.has(l);if(t&&Array.isArray(t[r])&&c)for(var u=0;u<t[r].length;u+=1)dw(e,t[r][u],n+1,r,o,i,u)}function fw(e,t,n,r){var o=s.useMemo(function(){if(n!=null&&n.size){for(var i=[],a=0;a<(e==null?void 0:e.length);a+=1){var l=e[a];dw(i,l,0,t,n,r,a)}return i}return e==null?void 0:e.map(function(c,u){return{record:c,indent:0,index:u}})},[e,t,n,r]);return o}function mw(e,t,n,r){var o=Un(ar,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),i=o.flattenColumns,a=o.expandableType,l=o.expandedKeys,c=o.childrenColumnName,u=o.onTriggerExpand,d=o.rowExpandable,f=o.onRow,m=o.expandRowByClick,p=o.rowClassName,h=a==="nest",b=a==="row"&&(!d||d(e)),v=b||h,y=l&&l.has(t),C=c&&e&&e[c],x=qt(u),E=f==null?void 0:f(e,n),S=E==null?void 0:E.onClick,$=function(N){m&&v&&u(e,N);for(var _=arguments.length,P=new Array(_>1?_-1:0),M=1;M<_;M++)P[M-1]=arguments[M];S==null||S.apply(void 0,[N].concat(P))},O;typeof p=="string"?O=p:typeof p=="function"&&(O=p(e,n,r));var I=iu(i);return q(q({},o),{},{columnsKey:I,nestExpandable:h,expanded:y,hasNestChildren:C,record:e,onTriggerExpand:x,rowSupportExpand:b,expandable:v,rowProps:q(q({},E),{},{className:G(O,E==null?void 0:E.className),onClick:$})})}function pw(e){process.env.NODE_ENV!=="production"&&Wo(e);var t=e.prefixCls,n=e.children,r=e.component,o=e.cellComponent,i=e.className,a=e.expanded,l=e.colSpan,c=e.isEmpty,u=Un(ar,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),d=u.scrollbarSize,f=u.fixHeader,m=u.fixColumn,p=u.componentWidth,h=u.horizonScroll,b=n;return(c?h&&p:m)&&(b=s.createElement("div",{style:{width:p-(f&&!c?d:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(t,"-expanded-row-fixed")},b)),s.createElement(r,{className:i,style:{display:a?null:"none"}},s.createElement(pa,{component:o,prefixCls:t,colSpan:l},b))}function YV(e){var t=e.prefixCls,n=e.record,r=e.onExpand,o=e.expanded,i=e.expandable,a="".concat(t,"-row-expand-icon");if(!i)return s.createElement("span",{className:G(a,"".concat(t,"-row-spaced"))});var l=function(u){r(n,u),u.stopPropagation()};return s.createElement("span",{className:G(a,H(H({},"".concat(t,"-row-expanded"),o),"".concat(t,"-row-collapsed"),!o)),onClick:l})}function JV(e,t,n){var r=[];function o(i){(i||[]).forEach(function(a,l){r.push(t(a,l)),o(a[n])})}return o(e),r}function vw(e,t,n,r){return typeof e=="string"?e:typeof e=="function"?e(t,n,r):""}function gw(e,t,n,r,o){var i=e.record,a=e.prefixCls,l=e.columnsKey,c=e.fixedInfoList,u=e.expandIconColumnIndex,d=e.nestExpandable,f=e.indentSize,m=e.expandIcon,p=e.expanded,h=e.hasNestChildren,b=e.onTriggerExpand,v=l[n],y=c[n],C;n===(u||0)&&d&&(C=s.createElement(s.Fragment,null,s.createElement("span",{style:{paddingLeft:"".concat(f*r,"px")},className:"".concat(a,"-row-indent indent-level-").concat(r)}),m({prefixCls:a,expanded:p,expandable:h,record:i,onExpand:b})));var x;return t.onCell&&(x=t.onCell(i,o)),{key:v,fixedInfo:y,appendCellNode:C,additionalCellProps:x||{}}}function hw(e){process.env.NODE_ENV!=="production"&&Wo(e);var t=e.className,n=e.style,r=e.record,o=e.index,i=e.renderIndex,a=e.rowKey,l=e.indent,c=l===void 0?0:l,u=e.rowComponent,d=e.cellComponent,f=e.scopeCellComponent,m=mw(r,a,o,c),p=m.prefixCls,h=m.flattenColumns,b=m.expandedRowClassName,v=m.expandedRowRender,y=m.rowProps,C=m.expanded,x=m.rowSupportExpand,E=s.useRef(!1);E.current||(E.current=C),process.env.NODE_ENV!=="production"&&Wo(e);var S=vw(b,r,o,c),$=s.createElement(u,ce({},y,{"data-row-key":a,className:G(t,"".concat(p,"-row"),"".concat(p,"-row-level-").concat(c),y==null?void 0:y.className,H({},S,c>=1)),style:q(q({},n),y==null?void 0:y.style)}),h.map(function(w,N){var _=w.render,P=w.dataIndex,M=w.className,D=gw(m,w,N,c,o),T=D.key,A=D.fixedInfo,R=D.appendCellNode,L=D.additionalCellProps;return s.createElement(pa,ce({className:M,ellipsis:w.ellipsis,align:w.align,scope:w.rowScope,component:w.rowScope?f:d,prefixCls:p,key:T,record:r,index:o,renderIndex:i,dataIndex:P,render:_,shouldCellUpdate:w.shouldCellUpdate},A,{appendNode:R,additionalProps:L}))})),O;if(x&&(E.current||C)){var I=v(r,o,c+1,C);O=s.createElement(pw,{expanded:C,className:G("".concat(p,"-expanded-row"),"".concat(p,"-expanded-row-level-").concat(c+1),S),prefixCls:p,component:u,cellComponent:d,colSpan:h.length,isEmpty:!1},I)}return s.createElement(s.Fragment,null,$,O)}process.env.NODE_ENV!=="production"&&(hw.displayName="BodyRow");const ZV=ma(hw);function e9(e){var t=e.columnKey,n=e.onColumnResize,r=s.useRef();return wt(function(){r.current&&n(t,r.current.offsetWidth)},[]),s.createElement(Kn,{data:t},s.createElement("td",{ref:r,style:{padding:0,border:0,height:0}},s.createElement("div",{style:{height:0,overflow:"hidden"}}," ")))}function t9(e){var t=e.prefixCls,n=e.columnsKey,r=e.onColumnResize,o=s.useRef(null);return s.createElement("tr",{"aria-hidden":"true",className:"".concat(t,"-measure-row"),style:{height:0,fontSize:0},ref:o},s.createElement(Kn.Collection,{onBatchResize:function(a){el(o.current)&&a.forEach(function(l){var c=l.data,u=l.size;r(c,u.offsetWidth)})}},n.map(function(i){return s.createElement(e9,{key:i,columnKey:i,onColumnResize:r})})))}function bw(e){process.env.NODE_ENV!=="production"&&Wo(e);var t=e.data,n=e.measureColumnWidth,r=Un(ar,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),o=r.prefixCls,i=r.getComponent,a=r.onColumnResize,l=r.flattenColumns,c=r.getRowKey,u=r.expandedKeys,d=r.childrenColumnName,f=r.emptyNode,m=fw(t,d,u,c),p=s.useRef({renderWithProps:!1}),h=i(["body","wrapper"],"tbody"),b=i(["body","row"],"tr"),v=i(["body","cell"],"td"),y=i(["body","cell"],"th"),C;t.length?C=m.map(function(E,S){var $=E.record,O=E.indent,I=E.index,w=c($,S);return s.createElement(ZV,{key:w,rowKey:w,record:$,index:S,renderIndex:I,rowComponent:b,cellComponent:v,scopeCellComponent:y,indent:O})}):C=s.createElement(pw,{expanded:!0,className:"".concat(o,"-placeholder"),prefixCls:o,component:b,cellComponent:v,colSpan:l.length,isEmpty:!0},f);var x=iu(l);return s.createElement(sw.Provider,{value:p.current},s.createElement(h,{className:"".concat(o,"-tbody")},n&&s.createElement(t9,{prefixCls:o,columnsKey:x,onColumnResize:a}),C))}process.env.NODE_ENV!=="production"&&(bw.displayName="Body");const n9=ma(bw);var r9=["expandable"],Ml="RC_TABLE_INTERNAL_COL_DEFINE";function o9(e){var t=e.expandable,n=tt(e,r9),r;return"expandable"in e?r=q(q({},n),t):(process.env.NODE_ENV!=="production"&&["indentSize","expandedRowKeys","defaultExpandedRowKeys","defaultExpandAllRows","expandedRowRender","expandRowByClick","expandIcon","onExpand","onExpandedRowsChange","expandedRowClassName","expandIconColumnIndex","showExpandColumn","title"].some(function(o){return o in e})&&Ge(!1,"expanded related props have been moved into `expandable`."),r=n),r.showExpandColumn===!1&&(r.expandIconColumnIndex=-1),r}var i9=["columnType"];function yw(e){for(var t=e.colWidths,n=e.columns,r=e.columCount,o=Un(ar,["tableLayout"]),i=o.tableLayout,a=[],l=r||n.length,c=!1,u=l-1;u>=0;u-=1){var d=t[u],f=n&&n[u],m=void 0,p=void 0;if(f&&(m=f[Ml],i==="auto"&&(p=f.minWidth)),d||p||m||c){var h=m||{};h.columnType;var b=tt(h,i9);a.unshift(s.createElement("col",ce({key:u,style:{width:d,minWidth:p}},b))),c=!0}}return s.createElement("colgroup",null,a)}var a9=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function l9(e,t){return g.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 Cw=s.forwardRef(function(e,t){process.env.NODE_ENV!=="production"&&Wo(e);var n=e.className,r=e.noData,o=e.columns,i=e.flattenColumns,a=e.colWidths,l=e.columCount,c=e.stickyOffsets,u=e.direction,d=e.fixHeader,f=e.stickyTopOffset,m=e.stickyBottomOffset,p=e.stickyClassName,h=e.onScroll,b=e.maxContentScroll,v=e.children,y=tt(e,a9),C=Un(ar,["prefixCls","scrollbarSize","isSticky","getComponent"]),x=C.prefixCls,E=C.scrollbarSize,S=C.isSticky,$=C.getComponent,O=$(["header","table"],"table"),I=S&&!d?0:E,w=s.useRef(null),N=s.useCallback(function(L){ja(t,L),ja(w,L)},[]);s.useEffect(function(){var L;function j(z){var B=z,K=B.currentTarget,W=B.deltaX;W&&(h({currentTarget:K,scrollLeft:K.scrollLeft+W}),z.preventDefault())}return(L=w.current)===null||L===void 0||L.addEventListener("wheel",j,{passive:!1}),function(){var z;(z=w.current)===null||z===void 0||z.removeEventListener("wheel",j)}},[]);var _=s.useMemo(function(){return i.every(function(L){return L.width})},[i]),P=i[i.length-1],M={fixed:P?P.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(x,"-cell-scrollbar")}}},D=g.useMemo(function(){return I?[].concat(ge(o),[M]):o},[I,o]),T=g.useMemo(function(){return I?[].concat(ge(i),[M]):i},[I,i]),A=g.useMemo(function(){var L=c.right,j=c.left;return q(q({},c),{},{left:u==="rtl"?[].concat(ge(j.map(function(z){return z+I})),[0]):j,right:u==="rtl"?L:[].concat(ge(L.map(function(z){return z+I})),[0]),isSticky:S})},[I,c,S]),R=l9(a,l);return s.createElement("div",{style:q({overflow:"hidden"},S?{top:f,bottom:m}:{}),ref:N,className:G(n,H({},p,!!p))},s.createElement(O,{style:{tableLayout:"fixed",visibility:r||R?null:"hidden"}},(!r||!b||_)&&s.createElement(yw,{colWidths:R?[].concat(ge(R),[I]):[],columCount:l+1,columns:T}),v(q(q({},y),{},{stickyOffsets:A,columns:D,flattenColumns:T}))))});process.env.NODE_ENV!=="production"&&(Cw.displayName="FixedHolder");const Sw=s.memo(Cw);var xw=function(t){var n=t.cells,r=t.stickyOffsets,o=t.flattenColumns,i=t.rowComponent,a=t.cellComponent,l=t.onHeaderRow,c=t.index,u=Un(ar,["prefixCls","direction"]),d=u.prefixCls,f=u.direction,m;l&&(m=l(n.map(function(h){return h.column}),c));var p=iu(n.map(function(h){return h.column}));return s.createElement(i,m,n.map(function(h,b){var v=h.column,y=Hp(h.colStart,h.colEnd,o,r,f),C;return v&&v.onHeaderCell&&(C=h.column.onHeaderCell(v)),s.createElement(pa,ce({},h,{scope:v.title?h.colSpan>1?"colgroup":"col":null,ellipsis:v.ellipsis,align:v.align,component:a,prefixCls:d,key:p[b]},y,{additionalProps:C,rowType:"header"}))}))};process.env.NODE_ENV!=="production"&&(xw.displayName="HeaderRow");function s9(e){var t=[];function n(a,l){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;t[c]=t[c]||[];var u=l,d=a.filter(Boolean).map(function(f){var m={key:f.key,className:f.className||"",children:f.title,column:f,colStart:u},p=1,h=f.children;return h&&h.length>0&&(p=n(h,u,c+1).reduce(function(b,v){return b+v},0),m.hasSubColumns=!0),"colSpan"in f&&(p=f.colSpan),"rowSpan"in f&&(m.rowSpan=f.rowSpan),m.colSpan=p,m.colEnd=m.colStart+p-1,t[c].push(m),u+=p,p});return d}n(e,0);for(var r=t.length,o=function(l){t[l].forEach(function(c){!("rowSpan"in c)&&!c.hasSubColumns&&(c.rowSpan=r-l)})},i=0;i<r;i+=1)o(i);return t}var c9=function(t){process.env.NODE_ENV!=="production"&&Wo(t);var n=t.stickyOffsets,r=t.columns,o=t.flattenColumns,i=t.onHeaderRow,a=Un(ar,["prefixCls","getComponent"]),l=a.prefixCls,c=a.getComponent,u=s.useMemo(function(){return s9(r)},[r]),d=c(["header","wrapper"],"thead"),f=c(["header","row"],"tr"),m=c(["header","cell"],"th");return s.createElement(d,{className:"".concat(l,"-thead")},u.map(function(p,h){var b=s.createElement(xw,{key:h,flattenColumns:o,cells:p,stickyOffsets:n,rowComponent:f,cellComponent:m,onHeaderRow:i,index:h});return b}))};const Ew=ma(c9);function $w(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 u9(e,t,n){return s.useMemo(function(){if(t&&t>0){var r=0,o=0;e.forEach(function(m){var p=$w(t,m.width);p?r+=p:o+=1});var i=Math.max(t,n),a=Math.max(i-r,o),l=o,c=a/o,u=0,d=e.map(function(m){var p=q({},m),h=$w(t,p.width);if(h)p.width=h;else{var b=Math.floor(c);p.width=l===1?a:b,a-=b,l-=1}return u+=p.width,p});if(u<i){var f=i/u;a=i,d.forEach(function(m,p){var h=Math.floor(m.width*f);m.width=p===d.length-1?a:h,a-=h})}return[d,Math.max(u,i)]}return[e,t]},[e,t,n])}var d9=["children"],f9=["fixed"];function Vp(e){return Tn(e).filter(function(t){return s.isValidElement(t)}).map(function(t){var n=t.key,r=t.props,o=r.children,i=tt(r,d9),a=q({key:n},i);return o&&(a.children=Vp(o)),a})}function ww(e){return e.filter(function(t){return t&&He(t)==="object"&&!t.hidden}).map(function(t){var n=t.children;return n&&n.length>0?q(q({},t),{},{children:ww(n)}):t})}function Wp(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return e.filter(function(n){return n&&He(n)==="object"}).reduce(function(n,r,o){var i=r.fixed,a=i===!0?"left":i,l="".concat(t,"-").concat(o),c=r.children;return c&&c.length>0?[].concat(ge(n),ge(Wp(c,l).map(function(u){return q({fixed:a},u)}))):[].concat(ge(n),[q(q({key:l},r),{},{fixed:a})])},[])}function m9(e){return e.map(function(t){var n=t.fixed,r=tt(t,f9),o=n;return n==="left"?o="right":n==="right"&&(o="left"),q({fixed:o},r)})}function p9(e,t){var n=e.prefixCls,r=e.columns,o=e.children,i=e.expandable,a=e.expandedKeys,l=e.columnTitle,c=e.getRowKey,u=e.onTriggerExpand,d=e.expandIcon,f=e.rowExpandable,m=e.expandIconColumnIndex,p=e.direction,h=e.expandRowByClick,b=e.columnWidth,v=e.fixed,y=e.scrollWidth,C=e.clientWidth,x=s.useMemo(function(){var P=r||Vp(o)||[];return ww(P.slice())},[r,o]),E=s.useMemo(function(){if(i){var P=x.slice();if(process.env.NODE_ENV!=="production"&&m>=0&&Ge(!1,"`expandIconColumnIndex` is deprecated. Please use `Table.EXPAND_COLUMN` in `columns` instead."),!P.includes(Wr)){var M=m||0;M>=0&&(M||v==="left"||!v)&&P.splice(M,0,Wr),v==="right"&&P.splice(x.length,0,Wr)}process.env.NODE_ENV!=="production"&&P.filter(function(L){return L===Wr}).length>1&&Ge(!1,"There exist more than one `EXPAND_COLUMN` in `columns`.");var D=P.indexOf(Wr);P=P.filter(function(L,j){return L!==Wr||j===D});var T=x[D],A;v?A=v:A=T?T.fixed:null;var R=H(H(H(H(H(H({},Ml,{className:"".concat(n,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",l),"fixed",A),"className","".concat(n,"-row-expand-icon-cell")),"width",b),"render",function(j,z,B){var K=c(z,B),W=a.has(K),k=f?f(z):!0,V=d({prefixCls:n,expanded:W,expandable:k,record:z,onExpand:u});return h?s.createElement("span",{onClick:function(J){return J.stopPropagation()}},V):V});return P.map(function(L){return L===Wr?R:L})}return process.env.NODE_ENV!=="production"&&x.includes(Wr)&&Ge(!1,"`expandable` is not config but there exist `EXPAND_COLUMN` in `columns`."),x.filter(function(L){return L!==Wr})},[i,x,c,a,d,p]),S=s.useMemo(function(){var P=E;return t&&(P=t(P)),P.length||(P=[{render:function(){return null}}]),P},[t,E,p]),$=s.useMemo(function(){return p==="rtl"?m9(Wp(S)):Wp(S)},[S,p,y]),O=s.useMemo(function(){for(var P=-1,M=$.length-1;M>=0;M-=1){var D=$[M].fixed;if(D==="left"||D===!0){P=M;break}}if(P>=0)for(var T=0;T<=P;T+=1){var A=$[T].fixed;if(A!=="left"&&A!==!0)return!0}var R=$.findIndex(function(z){var B=z.fixed;return B==="right"});if(R>=0)for(var L=R;L<$.length;L+=1){var j=$[L].fixed;if(j!=="right")return!0}return!1},[$]),I=u9($,y,C),w=ae(I,2),N=w[0],_=w[1];return[S,N,_,O]}function v9(e,t,n){var r=o9(e),o=r.expandIcon,i=r.expandedRowKeys,a=r.defaultExpandedRowKeys,l=r.defaultExpandAllRows,c=r.expandedRowRender,u=r.onExpand,d=r.onExpandedRowsChange,f=r.childrenColumnName,m=o||YV,p=f||"children",h=s.useMemo(function(){return c?"row":e.expandable&&e.internalHooks===Pl&&e.expandable.__PARENT_RENDER_ICON__||t.some(function(S){return S&&He(S)==="object"&&S[p]})?"nest":!1},[!!c,t]),b=s.useState(function(){return a||(l?JV(t,n,p):[])}),v=ae(b,2),y=v[0],C=v[1],x=s.useMemo(function(){return new Set(i||y||[])},[i,y]),E=s.useCallback(function(S){var $=n(S,t.indexOf(S)),O,I=x.has($);I?(x.delete($),O=ge(x)):O=[].concat(ge(x),[$]),C(O),u&&u(!I,S),d&&d(O)},[n,x,t,u,d]);return process.env.NODE_ENV!=="production"&&c&&t.some(function(S){return Array.isArray(S==null?void 0:S[p])})&&Ge(!1,"`expandedRowRender` should not use with nested Table"),[r,h,x,m,p,E]}function g9(e,t,n){var r=e.map(function(o,i){return Hp(i,i,e,t,n)});return ni(function(){return r},[r],function(o,i){return!eo(o,i)})}function h9(e){var t=g.useRef(e),n=g.useState({}),r=ae(n,2),o=r[1],i=g.useRef(null),a=g.useRef([]);function l(c){a.current.push(c);var u=Promise.resolve();i.current=u,u.then(function(){if(i.current===u){var d=a.current,f=t.current;a.current=[],d.forEach(function(m){t.current=m(t.current)}),i.current=null,f!==t.current&&o({})}})}return g.useEffect(function(){return function(){i.current=null}},[]),[t.current,l]}function b9(e){var t=g.useRef(e||null),n=g.useRef();function r(){window.clearTimeout(n.current)}function o(a){t.current=a,r(),n.current=window.setTimeout(function(){t.current=null,n.current=void 0},100)}function i(){return t.current}return g.useEffect(function(){return r},[]),[o,i]}function y9(){var e=s.useState(-1),t=ae(e,2),n=t[0],r=t[1],o=s.useState(-1),i=ae(o,2),a=i[0],l=i[1],c=s.useCallback(function(u,d){r(u),l(d)},[]);return[n,a,c]}var Ow=_n()?window:null;function C9(e,t){var n=He(e)==="object"?e:{},r=n.offsetHeader,o=r===void 0?0:r,i=n.offsetSummary,a=i===void 0?0:i,l=n.offsetScroll,c=l===void 0?0:l,u=n.getContainer,d=u===void 0?function(){return Ow}:u,f=d()||Ow,m=!!e;return s.useMemo(function(){return{isSticky:m,stickyClassName:m?"".concat(t,"-sticky-holder"):"",offsetHeader:o,offsetSummary:a,offsetScroll:c,container:f}},[m,c,o,a,t,f])}function S9(e,t,n){var r=g.useMemo(function(){var o=t.length,i=function(u,d,f){for(var m=[],p=0,h=u;h!==d;h+=f)m.push(p),t[h].fixed&&(p+=e[h]||0);return m},a=i(0,o,1),l=i(o-1,-1,-1).reverse();return n==="rtl"?{left:l,right:a}:{left:a,right:l}},[e,t,n]);return r}function Nw(e){var t=e.className,n=e.children;return s.createElement("div",{className:t},n)}function Iw(e){var t=Ba(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 x9=function(t,n){var r,o,i=t.scrollBodyRef,a=t.onScroll,l=t.offsetScroll,c=t.container,u=t.direction,d=Un(ar,"prefixCls"),f=((r=i.current)===null||r===void 0?void 0:r.scrollWidth)||0,m=((o=i.current)===null||o===void 0?void 0:o.clientWidth)||0,p=f&&m*(m/f),h=s.useRef(),b=h9({scrollLeft:0,isHiddenScrollBar:!0}),v=ae(b,2),y=v[0],C=v[1],x=s.useRef({delta:0,x:0}),E=s.useState(!1),S=ae(E,2),$=S[0],O=S[1],I=s.useRef(null);s.useEffect(function(){return function(){Rt.cancel(I.current)}},[]);var w=function(){O(!1)},N=function(T){T.persist(),x.current.delta=T.pageX-y.scrollLeft,x.current.x=0,O(!0),T.preventDefault()},_=function(T){var A,R=T||((A=window)===null||A===void 0?void 0:A.event),L=R.buttons;if(!$||L===0){$&&O(!1);return}var j=x.current.x+T.pageX-x.current.x-x.current.delta,z=u==="rtl";j=Math.max(z?p-m:0,Math.min(z?0:m-p,j));var B=!z||Math.abs(j)+Math.abs(p)<m;B&&(a({scrollLeft:j/m*(f+2)}),x.current.x=T.pageX)},P=function(){Rt.cancel(I.current),I.current=Rt(function(){if(i.current){var T=Iw(i.current).top,A=T+i.current.offsetHeight,R=c===window?document.documentElement.scrollTop+window.innerHeight:Iw(c).top+c.clientHeight;A-jC()<=R||T>=R-l?C(function(L){return q(q({},L),{},{isHiddenScrollBar:!0})}):C(function(L){return q(q({},L),{},{isHiddenScrollBar:!1})})}})},M=function(T){C(function(A){return q(q({},A),{},{scrollLeft:T/f*m||0})})};return s.useImperativeHandle(n,function(){return{setScrollLeft:M,checkScrollBarVisible:P}}),s.useEffect(function(){var D=w$(document.body,"mouseup",w,!1),T=w$(document.body,"mousemove",_,!1);return P(),function(){D.remove(),T.remove()}},[p,$]),s.useEffect(function(){if(i.current){for(var D=[],T=Ba(i.current);T;)D.push(T),T=T.parentElement;return D.forEach(function(A){return A.addEventListener("scroll",P,!1)}),window.addEventListener("resize",P,!1),window.addEventListener("scroll",P,!1),c.addEventListener("scroll",P,!1),function(){D.forEach(function(A){return A.removeEventListener("scroll",P)}),window.removeEventListener("resize",P),window.removeEventListener("scroll",P),c.removeEventListener("scroll",P)}}},[c]),s.useEffect(function(){y.isHiddenScrollBar||C(function(D){var T=i.current;return T?q(q({},D),{},{scrollLeft:T.scrollLeft/T.scrollWidth*T.clientWidth}):D})},[y.isHiddenScrollBar]),f<=m||!p||y.isHiddenScrollBar?null:s.createElement("div",{style:{height:jC(),width:m,bottom:l},className:"".concat(d,"-sticky-scroll")},s.createElement("div",{onMouseDown:N,ref:h,className:G("".concat(d,"-sticky-scroll-bar"),H({},"".concat(d,"-sticky-scroll-bar-active"),$)),style:{width:"".concat(p,"px"),transform:"translate3d(".concat(y.scrollLeft,"px, 0, 0)")}}))};const E9=s.forwardRef(x9);var _w="rc-table",$9=[],w9={};function O9(){return"No Data"}function N9(e,t){var n=q({rowKey:"key",prefixCls:_w,emptyText:O9},e),r=n.prefixCls,o=n.className,i=n.rowClassName,a=n.style,l=n.data,c=n.rowKey,u=n.scroll,d=n.tableLayout,f=n.direction,m=n.title,p=n.footer,h=n.summary,b=n.caption,v=n.id,y=n.showHeader,C=n.components,x=n.emptyText,E=n.onRow,S=n.onHeaderRow,$=n.onScroll,O=n.internalHooks,I=n.transformColumns,w=n.internalRefs,N=n.tailor,_=n.getContainerWidth,P=n.sticky,M=n.rowHoverable,D=M===void 0?!0:M,T=l||$9,A=!!T.length,R=O===Pl;process.env.NODE_ENV!=="production"&&(["onRowClick","onRowDoubleClick","onRowContextMenu","onRowMouseEnter","onRowMouseLeave"].forEach(function(ut){Ge(n[ut]===void 0,"`".concat(ut,"` is removed, please use `onRow` instead."))}),Ge(!("getBodyWrapper"in n),"`getBodyWrapper` is deprecated, please use custom `components` instead."));var L=s.useCallback(function(ut,dt){return or(C,ut)||dt},[C]),j=s.useMemo(function(){return typeof c=="function"?c:function(ut){var dt=ut&&ut[c];return process.env.NODE_ENV!=="production"&&Ge(dt!==void 0,"Each record in table should have a unique `key` prop, or set `rowKey` to an unique primary key."),dt}},[c]),z=L(["body"]),B=y9(),K=ae(B,3),W=K[0],k=K[1],V=K[2],Q=v9(n,T,j),J=ae(Q,6),Y=J[0],te=J[1],oe=J[2],X=J[3],F=J[4],ee=J[5],Z=u==null?void 0:u.x,ne=s.useState(0),re=ae(ne,2),se=re[0],le=re[1],he=p9(q(q(q({},n),Y),{},{expandable:!!Y.expandedRowRender,columnTitle:Y.columnTitle,expandedKeys:oe,getRowKey:j,onTriggerExpand:ee,expandIcon:X,expandIconColumnIndex:Y.expandIconColumnIndex,direction:f,scrollWidth:R&&N&&typeof Z=="number"?Z:null,clientWidth:se}),R?I:null),fe=ae(he,4),ie=fe[0],ue=fe[1],de=fe[2],me=fe[3],Ce=de!=null?de:Z,Oe=s.useMemo(function(){return{columns:ie,flattenColumns:ue}},[ie,ue]),Te=s.useRef(),je=s.useRef(),Ne=s.useRef(),Ie=s.useRef();s.useImperativeHandle(t,function(){return{nativeElement:Te.current,scrollTo:function(dt){var gn;if(Ne.current instanceof HTMLElement){var cn=dt.index,En=dt.top,Er=dt.key;if(zV(En)){var er;(er=Ne.current)===null||er===void 0||er.scrollTo({top:En})}else{var tr,qr=Er!=null?Er:j(T[cn]);(tr=Ne.current.querySelector('[data-row-key="'.concat(qr,'"]')))===null||tr===void 0||tr.scrollIntoView()}}else(gn=Ne.current)!==null&&gn!==void 0&&gn.scrollTo&&Ne.current.scrollTo(dt)}}});var xe=s.useRef(),be=s.useState(!1),Ee=ae(be,2),$e=Ee[0],_e=Ee[1],ve=s.useState(!1),Se=ae(ve,2),Je=Se[0],it=Se[1],Nt=s.useState(new Map),Tt=ae(Nt,2),Gt=Tt[0],st=Tt[1],Pt=iu(ue),pt=Pt.map(function(ut){return Gt.get(ut)}),et=s.useMemo(function(){return pt},[pt.join("_")]),ke=S9(et,ue,f),Me=u&&Fp(u.y),Pe=u&&Fp(Ce)||!!Y.fixed,at=Pe&&ue.some(function(ut){var dt=ut.fixed;return dt}),ct=s.useRef(),Le=C9(P,r),we=Le.isSticky,ze=Le.offsetHeader,Fe=Le.offsetSummary,Ve=Le.offsetScroll,Ze=Le.stickyClassName,Ot=Le.container,Ae=s.useMemo(function(){return h==null?void 0:h(T)},[h,T]),Qe=(Me||we)&&s.isValidElement(Ae)&&Ae.type===au&&Ae.props.fixed,nt,ot,ht;Me&&(ot={overflowY:A?"scroll":"auto",maxHeight:u.y}),Pe&&(nt={overflowX:"auto"},Me||(ot={overflowY:"hidden"}),ht={width:Ce===!0?"auto":Ce,minWidth:"100%"});var jt=s.useCallback(function(ut,dt){st(function(gn){if(gn.get(ut)!==dt){var cn=new Map(gn);return cn.set(ut,dt),cn}return gn})},[]),Wt=b9(null),Ct=ae(Wt,2),en=Ct[0],De=Ct[1];function Ke(ut,dt){dt&&(typeof dt=="function"?dt(ut):dt.scrollLeft!==ut&&(dt.scrollLeft=ut,dt.scrollLeft!==ut&&setTimeout(function(){dt.scrollLeft=ut},0)))}var Be=qt(function(ut){var dt=ut.currentTarget,gn=ut.scrollLeft,cn=f==="rtl",En=typeof gn=="number"?gn:dt.scrollLeft,Er=dt||w9;if(!De()||De()===Er){var er;en(Er),Ke(En,je.current),Ke(En,Ne.current),Ke(En,xe.current),Ke(En,(er=ct.current)===null||er===void 0?void 0:er.setScrollLeft)}var tr=dt||je.current;if(tr){var qr=R&&N&&typeof Ce=="number"?Ce:tr.scrollWidth,Qo=tr.clientWidth;if(qr===Qo){_e(!1),it(!1);return}cn?(_e(-En<qr-Qo),it(-En>0)):(_e(En>0),it(En<qr-Qo))}}),Re=qt(function(ut){Be(ut),$==null||$(ut)}),lt=function(){if(Pe&&Ne.current){var dt;Be({currentTarget:Ba(Ne.current),scrollLeft:(dt=Ne.current)===null||dt===void 0?void 0:dt.scrollLeft})}else _e(!1),it(!1)},Mt=function(dt){var gn,cn=dt.width;(gn=ct.current)===null||gn===void 0||gn.checkScrollBarVisible();var En=Te.current?Te.current.offsetWidth:cn;R&&_&&Te.current&&(En=_(Te.current,En)||En),En!==se&&(lt(),le(En))},At=s.useRef(!1);s.useEffect(function(){At.current&<()},[Pe,l,ie.length]),s.useEffect(function(){At.current=!0},[]);var Kt=s.useState(0),an=ae(Kt,2),Ut=an[0],Ye=an[1],ft=s.useState(!0),Lt=ae(ft,2),Sn=Lt[0],mn=Lt[1];wt(function(){(!N||!R)&&(Ne.current instanceof Element?Ye(Zf(Ne.current).width):Ye(Zf(Ie.current).width)),mn(ym("position","sticky"))},[]),s.useEffect(function(){R&&w&&(w.body.current=Ne.current)});var zn=s.useCallback(function(ut){return s.createElement(s.Fragment,null,s.createElement(Ew,ut),Qe==="top"&&s.createElement(lu,ut,Ae))},[Qe,Ae]),Sr=s.useCallback(function(ut){return s.createElement(lu,ut,Ae)},[Ae]),xr=L(["table"],"table"),Bn=s.useMemo(function(){return d||(at?Ce==="max-content"?"auto":"fixed":Me||we||ue.some(function(ut){var dt=ut.ellipsis;return dt})?"fixed":"auto")},[Me,at,ue,d,we]),Ar,dr={colWidths:et,columCount:ue.length,stickyOffsets:ke,onHeaderRow:S,fixHeader:Me,scroll:u},It=s.useMemo(function(){return A?null:typeof x=="function"?x():x},[A,x]),Ue=s.createElement(n9,{data:T,measureColumnWidth:Me||Pe||we}),yt=s.createElement(yw,{colWidths:ue.map(function(ut){var dt=ut.width;return dt}),columns:ue}),Et=b!=null?s.createElement("caption",{className:"".concat(r,"-caption")},b):void 0,zt=Rn(n,{data:!0}),Bt=Rn(n,{aria:!0});if(Me||we){var xn;typeof z=="function"?(xn=z(T,{scrollbarSize:Ut,ref:Ne,onScroll:Be}),dr.colWidths=ue.map(function(ut,dt){var gn=ut.width,cn=dt===ue.length-1?gn-Ut:gn;return typeof cn=="number"&&!Number.isNaN(cn)?cn:(process.env.NODE_ENV!=="production"&&Ge(n.columns.length===0,"When use `components.body` with render props. Each column should have a fixed `width` value."),0)})):xn=s.createElement("div",{style:q(q({},nt),ot),onScroll:Re,ref:Ne,className:G("".concat(r,"-body"))},s.createElement(xr,ce({style:q(q({},ht),{},{tableLayout:Bn})},Bt),Et,yt,Ue,!Qe&&Ae&&s.createElement(lu,{stickyOffsets:ke,flattenColumns:ue},Ae)));var In=q(q(q({noData:!T.length,maxContentScroll:Pe&&Ce==="max-content"},dr),Oe),{},{direction:f,stickyClassName:Ze,onScroll:Be});Ar=s.createElement(s.Fragment,null,y!==!1&&s.createElement(Sw,ce({},In,{stickyTopOffset:ze,className:"".concat(r,"-header"),ref:je}),zn),xn,Qe&&Qe!=="top"&&s.createElement(Sw,ce({},In,{stickyBottomOffset:Fe,className:"".concat(r,"-summary"),ref:xe}),Sr),we&&Ne.current&&Ne.current instanceof Element&&s.createElement(E9,{ref:ct,offsetScroll:Ve,scrollBodyRef:Ne,onScroll:Be,container:Ot,direction:f}))}else Ar=s.createElement("div",{style:q(q({},nt),ot),className:G("".concat(r,"-content")),onScroll:Be,ref:Ne},s.createElement(xr,ce({style:q(q({},ht),{},{tableLayout:Bn})},Bt),Et,yt,y!==!1&&s.createElement(Ew,ce({},dr,Oe)),Ue,Ae&&s.createElement(lu,{stickyOffsets:ke,flattenColumns:ue},Ae)));var Vn=s.createElement("div",ce({className:G(r,o,H(H(H(H(H(H(H(H(H(H({},"".concat(r,"-rtl"),f==="rtl"),"".concat(r,"-ping-left"),$e),"".concat(r,"-ping-right"),Je),"".concat(r,"-layout-fixed"),d==="fixed"),"".concat(r,"-fixed-header"),Me),"".concat(r,"-fixed-column"),at),"".concat(r,"-fixed-column-gapped"),at&&me),"".concat(r,"-scroll-horizontal"),Pe),"".concat(r,"-has-fix-left"),ue[0]&&ue[0].fixed),"".concat(r,"-has-fix-right"),ue[ue.length-1]&&ue[ue.length-1].fixed==="right")),style:a,id:v,ref:Te},zt),m&&s.createElement(Nw,{className:"".concat(r,"-title")},m(T)),s.createElement("div",{ref:Ie,className:"".concat(r,"-container")},Ar),p&&s.createElement(Nw,{className:"".concat(r,"-footer")},p(T)));Pe&&(Vn=s.createElement(Kn,{onResize:Mt},Vn));var Jn=g9(ue,ke,f),Zn=s.useMemo(function(){return{scrollX:Ce,prefixCls:r,getComponent:L,scrollbarSize:Ut,direction:f,fixedInfoList:Jn,isSticky:we,supportSticky:Sn,componentWidth:se,fixHeader:Me,fixColumn:at,horizonScroll:Pe,tableLayout:Bn,rowClassName:i,expandedRowClassName:Y.expandedRowClassName,expandIcon:X,expandableType:te,expandRowByClick:Y.expandRowByClick,expandedRowRender:Y.expandedRowRender,onTriggerExpand:ee,expandIconColumnIndex:Y.expandIconColumnIndex,indentSize:Y.indentSize,allColumnsFixedLeft:ue.every(function(ut){return ut.fixed==="left"}),emptyNode:It,columns:ie,flattenColumns:ue,onColumnResize:jt,hoverStartRow:W,hoverEndRow:k,onHover:V,rowExpandable:Y.rowExpandable,onRow:E,getRowKey:j,expandedKeys:oe,childrenColumnName:F,rowHoverable:D}},[Ce,r,L,Ut,f,Jn,we,Sn,se,Me,at,Pe,Bn,i,Y.expandedRowClassName,X,te,Y.expandRowByClick,Y.expandedRowRender,ee,Y.expandIconColumnIndex,Y.indentSize,It,ie,ue,jt,W,k,V,Y.rowExpandable,E,j,oe,F,D]);return s.createElement(ar.Provider,{value:Zn},Vn)}var Tw=s.forwardRef(N9);process.env.NODE_ENV!=="production"&&(Tw.displayName="Table");function Pw(e){return aw(Tw,e)}var va=Pw();va.EXPAND_COLUMN=Wr,va.INTERNAL_HOOKS=Pl,va.Column=XV,va.ColumnGroup=QV,va.Summary=uw;var Kp=Bp(null),Mw=Bp(null);function I9(e,t,n){var r=t||1;return n[e+r]-(n[e]||0)}function _9(e){var t=e.rowInfo,n=e.column,r=e.colIndex,o=e.indent,i=e.index,a=e.component,l=e.renderIndex,c=e.record,u=e.style,d=e.className,f=e.inverse,m=e.getHeight,p=n.render,h=n.dataIndex,b=n.className,v=n.width,y=Un(Mw,["columnsOffset"]),C=y.columnsOffset,x=gw(t,n,r,o,i),E=x.key,S=x.fixedInfo,$=x.appendCellNode,O=x.additionalCellProps,I=O.style,w=O.colSpan,N=w===void 0?1:w,_=O.rowSpan,P=_===void 0?1:_,M=r-1,D=I9(M,N,C),T=N>1?v-D:0,A=q(q(q({},I),u),{},{flex:"0 0 ".concat(D,"px"),width:"".concat(D,"px"),marginRight:T,pointerEvents:"auto"}),R=s.useMemo(function(){return f?P<=1:N===0||P===0||P>1},[P,N,f]);R?A.visibility="hidden":f&&(A.height=m==null?void 0:m(P));var L=R?function(){return null}:p,j={};return(P===0||N===0)&&(j.rowSpan=1,j.colSpan=1),s.createElement(pa,ce({className:G(b,d),ellipsis:n.ellipsis,align:n.align,scope:n.rowScope,component:a,prefixCls:t.prefixCls,key:E,record:c,index:i,renderIndex:l,dataIndex:h,render:L,shouldCellUpdate:n.shouldCellUpdate},S,{appendNode:$,additionalProps:q(q({},O),{},{style:A},j)}))}var T9=["data","index","className","rowKey","style","extra","getHeight"],P9=s.forwardRef(function(e,t){var n=e.data,r=e.index,o=e.className,i=e.rowKey,a=e.style,l=e.extra,c=e.getHeight,u=tt(e,T9),d=n.record,f=n.indent,m=n.index,p=Un(ar,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),h=p.scrollX,b=p.flattenColumns,v=p.prefixCls,y=p.fixColumn,C=p.componentWidth,x=Un(Kp,["getComponent"]),E=x.getComponent,S=mw(d,i,r,f),$=E(["body","row"],"div"),O=E(["body","cell"],"div"),I=S.rowSupportExpand,w=S.expanded,N=S.rowProps,_=S.expandedRowRender,P=S.expandedRowClassName,M;if(I&&w){var D=_(d,r,f+1,w),T=vw(P,d,r,f),A={};y&&(A={style:H({},"--virtual-width","".concat(C,"px"))});var R="".concat(v,"-expanded-row-cell");M=s.createElement($,{className:G("".concat(v,"-expanded-row"),"".concat(v,"-expanded-row-level-").concat(f+1),T)},s.createElement(pa,{component:O,prefixCls:v,className:G(R,H({},"".concat(R,"-fixed"),y)),additionalProps:A},D))}var L=q(q({},a),{},{width:h});l&&(L.position="absolute",L.pointerEvents="none");var j=s.createElement($,ce({},N,u,{"data-row-key":i,ref:I?null:t,className:G(o,"".concat(v,"-row"),N==null?void 0:N.className,H({},"".concat(v,"-row-extra"),l)),style:q(q({},L),N==null?void 0:N.style)}),b.map(function(z,B){return s.createElement(_9,{key:B,component:O,rowInfo:S,column:z,colIndex:B,indent:f,index:r,renderIndex:m,record:d,inverse:l,getHeight:c})}));return I?s.createElement("div",{ref:t},j,M):j}),qp=ma(P9);process.env.NODE_ENV!=="production"&&(qp.displayName="BodyLine");var M9=s.forwardRef(function(e,t){var n=e.data,r=e.onScroll,o=Un(ar,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),i=o.flattenColumns,a=o.onColumnResize,l=o.getRowKey,c=o.expandedKeys,u=o.prefixCls,d=o.childrenColumnName,f=o.scrollX,m=o.direction,p=Un(Kp),h=p.sticky,b=p.scrollY,v=p.listItemHeight,y=p.getComponent,C=p.onScroll,x=s.useRef(),E=fw(n,d,c,l),S=s.useMemo(function(){var M=0;return i.map(function(D){var T=D.width,A=D.key;return M+=T,[A,T,M]})},[i]),$=s.useMemo(function(){return S.map(function(M){return M[2]})},[S]);s.useEffect(function(){S.forEach(function(M){var D=ae(M,2),T=D[0],A=D[1];a(T,A)})},[S]),s.useImperativeHandle(t,function(){var M,D={scrollTo:function(A){var R;(R=x.current)===null||R===void 0||R.scrollTo(A)},nativeElement:(M=x.current)===null||M===void 0?void 0:M.nativeElement};return Object.defineProperty(D,"scrollLeft",{get:function(){var A;return((A=x.current)===null||A===void 0?void 0:A.getScrollInfo().x)||0},set:function(A){var R;(R=x.current)===null||R===void 0||R.scrollTo({left:A})}}),D});var O=function(D,T){var A,R=(A=E[T])===null||A===void 0?void 0:A.record,L=D.onCell;if(L){var j,z=L(R,T);return(j=z==null?void 0:z.rowSpan)!==null&&j!==void 0?j:1}return 1},I=function(D){var T=D.start,A=D.end,R=D.getSize,L=D.offsetY;if(A<0)return null;for(var j=i.filter(function(X){return O(X,T)===0}),z=T,B=function(F){if(j=j.filter(function(ee){return O(ee,F)===0}),!j.length)return z=F,1},K=T;K>=0&&!B(K);K-=1);for(var W=i.filter(function(X){return O(X,A)!==1}),k=A,V=function(F){if(W=W.filter(function(ee){return O(ee,F)!==1}),!W.length)return k=Math.max(F-1,A),1},Q=A;Q<E.length&&!V(Q);Q+=1);for(var J=[],Y=function(F){var ee=E[F];if(!ee)return 1;i.some(function(Z){return O(Z,F)>1})&&J.push(F)},te=z;te<=k;te+=1)Y(te);var oe=J.map(function(X){var F=E[X],ee=l(F.record,X),Z=function(se){var le=X+se-1,he=l(E[le].record,le),fe=R(ee,he);return fe.bottom-fe.top},ne=R(ee);return s.createElement(qp,{key:X,data:F,rowKey:ee,index:X,style:{top:-L+ne.top},extra:!0,getHeight:Z})});return oe},w=s.useMemo(function(){return{columnsOffset:$}},[$]),N="".concat(u,"-tbody"),_=y(["body","wrapper"]),P={};return h&&(P.position="sticky",P.bottom=0,He(h)==="object"&&h.offsetScroll&&(P.bottom=h.offsetScroll)),s.createElement(Mw.Provider,{value:w},s.createElement(yc,{fullHeight:!1,ref:x,prefixCls:"".concat(N,"-virtual"),styles:{horizontalScrollBar:P},className:N,height:b,itemHeight:v||24,data:E,itemKey:function(D){return l(D.record)},component:_,scrollWidth:f,direction:m,onVirtualScroll:function(D){var T,A=D.x;r({currentTarget:(T=x.current)===null||T===void 0?void 0:T.nativeElement,scrollLeft:A})},onScroll:C,extraRender:I},function(M,D,T){var A=l(M.record,D);return s.createElement(qp,{data:M,rowKey:A,index:D,style:T.style})}))}),Dw=ma(M9);process.env.NODE_ENV!=="production"&&(Dw.displayName="ResponseGrid");var D9=function(t,n){var r=n.ref,o=n.onScroll;return s.createElement(Dw,{ref:r,data:t,onScroll:o})};function A9(e,t){var n=e.data,r=e.columns,o=e.scroll,i=e.sticky,a=e.prefixCls,l=a===void 0?_w:a,c=e.className,u=e.listItemHeight,d=e.components,f=e.onScroll,m=o||{},p=m.x,h=m.y;typeof p!="number"&&(process.env.NODE_ENV!=="production"&&Ge(!p,"`scroll.x` in virtual table must be number."),p=1),typeof h!="number"&&(h=500,process.env.NODE_ENV!=="production"&&Ge(!1,"`scroll.y` in virtual table must be number."));var b=qt(function(C,x){return or(d,C)||x}),v=qt(f),y=s.useMemo(function(){return{sticky:i,scrollY:h,listItemHeight:u,getComponent:b,onScroll:v}},[i,h,u,b,v]);return s.createElement(Kp.Provider,{value:y},s.createElement(va,ce({},e,{className:G(c,"".concat(l,"-virtual")),scroll:q(q({},o),{},{x:p}),components:q(q({},d),{},{body:n!=null&&n.length?D9:void 0}),columns:r,internalHooks:Pl,tailor:!0,ref:t})))}var Aw=s.forwardRef(A9);process.env.NODE_ENV!=="production"&&(Aw.displayName="VirtualTable");function Rw(e){return aw(Aw,e)}Rw();const R9=e=>null,j9=e=>null;var Up=s.createContext(null),L9=s.createContext({}),z9=function(t){for(var n=t.prefixCls,r=t.level,o=t.isStart,i=t.isEnd,a="".concat(n,"-indent-unit"),l=[],c=0;c<r;c+=1)l.push(s.createElement("span",{key:c,className:G(a,H(H({},"".concat(a,"-start"),o[c]),"".concat(a,"-end"),i[c]))}));return s.createElement("span",{"aria-hidden":"true",className:"".concat(n,"-indent")},l)};const B9=s.memo(z9);var k9=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],jw="open",Lw="close",F9="---",ga=function(t){var n,r,o,i=t.eventKey,a=t.className,l=t.style,c=t.dragOver,u=t.dragOverGapTop,d=t.dragOverGapBottom,f=t.isLeaf,m=t.isStart,p=t.isEnd,h=t.expanded,b=t.selected,v=t.checked,y=t.halfChecked,C=t.loading,x=t.domRef,E=t.active,S=t.data,$=t.onMouseMove,O=t.selectable,I=tt(t,k9),w=g.useContext(Up),N=g.useContext(L9),_=g.useRef(null),P=g.useState(!1),M=ae(P,2),D=M[0],T=M[1],A=!!(w.disabled||t.disabled||(n=N.nodeDisabled)!==null&&n!==void 0&&n.call(N,S)),R=g.useMemo(function(){return!w.checkable||t.checkable===!1?!1:w.checkable},[w.checkable,t.checkable]),L=function(be){A||w.onNodeSelect(be,Mn(t))},j=function(be){A||!R||t.disableCheckbox||w.onNodeCheck(be,Mn(t),!v)},z=g.useMemo(function(){return typeof O=="boolean"?O:w.selectable},[O,w.selectable]),B=function(be){w.onNodeClick(be,Mn(t)),z?L(be):j(be)},K=function(be){w.onNodeDoubleClick(be,Mn(t))},W=function(be){w.onNodeMouseEnter(be,Mn(t))},k=function(be){w.onNodeMouseLeave(be,Mn(t))},V=function(be){w.onNodeContextMenu(be,Mn(t))},Q=g.useMemo(function(){return!!(w.draggable&&(!w.draggable.nodeDraggable||w.draggable.nodeDraggable(S)))},[w.draggable,S]),J=function(be){be.stopPropagation(),T(!0),w.onNodeDragStart(be,t);try{be.dataTransfer.setData("text/plain","")}catch(Ee){}},Y=function(be){be.preventDefault(),be.stopPropagation(),w.onNodeDragEnter(be,t)},te=function(be){be.preventDefault(),be.stopPropagation(),w.onNodeDragOver(be,t)},oe=function(be){be.stopPropagation(),w.onNodeDragLeave(be,t)},X=function(be){be.stopPropagation(),T(!1),w.onNodeDragEnd(be,t)},F=function(be){be.preventDefault(),be.stopPropagation(),T(!1),w.onNodeDrop(be,t)},ee=function(be){C||w.onNodeExpand(be,Mn(t))},Z=g.useMemo(function(){var xe=ur(w.keyEntities,i)||{},be=xe.children;return!!(be||[]).length},[w.keyEntities,i]),ne=g.useMemo(function(){return f===!1?!1:f||!w.loadData&&!Z||w.loadData&&t.loaded&&!Z},[f,w.loadData,Z,t.loaded]);g.useEffect(function(){C||typeof w.loadData=="function"&&h&&!ne&&!t.loaded&&w.onNodeLoad(Mn(t))},[C,w.loadData,w.onNodeLoad,h,ne,t]);var re=g.useMemo(function(){var xe;return(xe=w.draggable)!==null&&xe!==void 0&&xe.icon?g.createElement("span",{className:"".concat(w.prefixCls,"-draggable-icon")},w.draggable.icon):null},[w.draggable]),se=function(be){var Ee=t.switcherIcon||w.switcherIcon;return typeof Ee=="function"?Ee(q(q({},t),{},{isLeaf:be})):Ee},le=function(){if(ne){var be=se(!0);return be!==!1?g.createElement("span",{className:G("".concat(w.prefixCls,"-switcher"),"".concat(w.prefixCls,"-switcher-noop"))},be):null}var Ee=se(!1);return Ee!==!1?g.createElement("span",{onClick:ee,className:G("".concat(w.prefixCls,"-switcher"),"".concat(w.prefixCls,"-switcher_").concat(h?jw:Lw))},Ee):null},he=g.useMemo(function(){if(!R)return null;var xe=typeof R!="boolean"?R:null;return g.createElement("span",{className:G("".concat(w.prefixCls,"-checkbox"),H(H(H({},"".concat(w.prefixCls,"-checkbox-checked"),v),"".concat(w.prefixCls,"-checkbox-indeterminate"),!v&&y),"".concat(w.prefixCls,"-checkbox-disabled"),A||t.disableCheckbox)),onClick:j,role:"checkbox","aria-checked":y?"mixed":v,"aria-disabled":A||t.disableCheckbox,"aria-label":"Select ".concat(typeof t.title=="string"?t.title:"tree node")},xe)},[R,v,y,A,t.disableCheckbox,t.title]),fe=g.useMemo(function(){return ne?null:h?jw:Lw},[ne,h]),ie=g.useMemo(function(){return g.createElement("span",{className:G("".concat(w.prefixCls,"-iconEle"),"".concat(w.prefixCls,"-icon__").concat(fe||"docu"),H({},"".concat(w.prefixCls,"-icon_loading"),C))})},[w.prefixCls,fe,C]),ue=g.useMemo(function(){var xe=!!w.draggable,be=!t.disabled&&xe&&w.dragOverNodeKey===i;return be?w.dropIndicatorRender({dropPosition:w.dropPosition,dropLevelOffset:w.dropLevelOffset,indent:w.indent,prefixCls:w.prefixCls,direction:w.direction}):null},[w.dropPosition,w.dropLevelOffset,w.indent,w.prefixCls,w.direction,w.draggable,w.dragOverNodeKey,w.dropIndicatorRender]),de=g.useMemo(function(){var xe=t.title,be=xe===void 0?F9:xe,Ee="".concat(w.prefixCls,"-node-content-wrapper"),$e;if(w.showIcon){var _e=t.icon||w.icon;$e=_e?g.createElement("span",{className:G("".concat(w.prefixCls,"-iconEle"),"".concat(w.prefixCls,"-icon__customize"))},typeof _e=="function"?_e(t):_e):ie}else w.loadData&&C&&($e=ie);var ve;return typeof be=="function"?ve=be(S):w.titleRender?ve=w.titleRender(S):ve=be,g.createElement("span",{ref:_,title:typeof be=="string"?be:"",className:G(Ee,"".concat(Ee,"-").concat(fe||"normal"),H({},"".concat(w.prefixCls,"-node-selected"),!A&&(b||D))),onMouseEnter:W,onMouseLeave:k,onContextMenu:V,onClick:B,onDoubleClick:K},$e,g.createElement("span",{className:"".concat(w.prefixCls,"-title")},ve),ue)},[w.prefixCls,w.showIcon,t,w.icon,ie,w.titleRender,S,fe,W,k,V,B,K]),me=Rn(I,{aria:!0,data:!0}),Ce=ur(w.keyEntities,i)||{},Oe=Ce.level,Te=p[p.length-1],je=!A&&Q,Ne=w.draggingNodeKey===i,Ie=O!==void 0?{"aria-selected":!!O}:void 0;return g.createElement("div",ce({ref:x,role:"treeitem","aria-expanded":f?void 0:h,className:G(a,"".concat(w.prefixCls,"-treenode"),(o={},H(H(H(H(H(H(H(H(H(H(o,"".concat(w.prefixCls,"-treenode-disabled"),A),"".concat(w.prefixCls,"-treenode-switcher-").concat(h?"open":"close"),!f),"".concat(w.prefixCls,"-treenode-checkbox-checked"),v),"".concat(w.prefixCls,"-treenode-checkbox-indeterminate"),y),"".concat(w.prefixCls,"-treenode-selected"),b),"".concat(w.prefixCls,"-treenode-loading"),C),"".concat(w.prefixCls,"-treenode-active"),E),"".concat(w.prefixCls,"-treenode-leaf-last"),Te),"".concat(w.prefixCls,"-treenode-draggable"),Q),"dragging",Ne),H(H(H(H(H(H(H(o,"drop-target",w.dropTargetKey===i),"drop-container",w.dropContainerKey===i),"drag-over",!A&&c),"drag-over-gap-top",!A&&u),"drag-over-gap-bottom",!A&&d),"filter-node",(r=w.filterTreeNode)===null||r===void 0?void 0:r.call(w,Mn(t))),"".concat(w.prefixCls,"-treenode-leaf"),ne))),style:l,draggable:je,onDragStart:je?J:void 0,onDragEnter:Q?Y:void 0,onDragOver:Q?te:void 0,onDragLeave:Q?oe:void 0,onDrop:Q?F:void 0,onDragEnd:Q?X:void 0,onMouseMove:$},Ie,me),g.createElement(B9,{prefixCls:w.prefixCls,level:Oe,isStart:m,isEnd:p}),re,le(),he,de)};ga.isTreeNode=1,process.env.NODE_ENV!=="production"&&(ga.displayName="TreeNode");function uo(e,t){if(!e)return[];var n=e.slice(),r=n.indexOf(t);return r>=0&&n.splice(r,1),n}function Io(e,t){var n=(e||[]).slice();return n.indexOf(t)===-1&&n.push(t),n}function Gp(e){return e.split("-")}function H9(e,t){var n=[],r=ur(t,e);function o(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];i.forEach(function(a){var l=a.key,c=a.children;n.push(l),o(c)})}return o(r.children),n}function V9(e){if(e.parent){var t=Gp(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function W9(e){var t=Gp(e.pos);return Number(t[t.length-1])===0}function zw(e,t,n,r,o,i,a,l,c,u){var d,f=e.clientX,m=e.clientY,p=e.target.getBoundingClientRect(),h=p.top,b=p.height,v=(u==="rtl"?-1:1)*(((o==null?void 0:o.x)||0)-f),y=(v-12)/r,C=c.filter(function(A){var R;return(R=l[A])===null||R===void 0||(R=R.children)===null||R===void 0?void 0:R.length}),x=ur(l,n.eventKey);if(m<h+b/2){var E=a.findIndex(function(A){return A.key===x.key}),S=E<=0?0:E-1,$=a[S].key;x=ur(l,$)}var O=x.key,I=x,w=x.key,N=0,_=0;if(!C.includes(O))for(var P=0;P<y&&V9(x);P+=1)x=x.parent,_+=1;var M=t.data,D=x.node,T=!0;return W9(x)&&x.level===0&&m<h+b/2&&i({dragNode:M,dropNode:D,dropPosition:-1})&&x.key===n.eventKey?N=-1:(I.children||[]).length&&C.includes(w)?i({dragNode:M,dropNode:D,dropPosition:0})?N=0:T=!1:_===0?y>-1.5?i({dragNode:M,dropNode:D,dropPosition:1})?N=1:T=!1:i({dragNode:M,dropNode:D,dropPosition:0})?N=0:i({dragNode:M,dropNode:D,dropPosition:1})?N=1:T=!1:i({dragNode:M,dropNode:D,dropPosition:1})?N=1:T=!1,{dropPosition:N,dropLevelOffset:_,dropTargetKey:x.key,dropTargetPos:x.pos,dragOverNodeKey:w,dropContainerKey:N===0?null:((d=x.parent)===null||d===void 0?void 0:d.key)||null,dropAllowed:T}}function Bw(e,t){if(e){var n=t.multiple;return n?e.slice():e.length?[e[0]]:e}}function Xp(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else if(He(e)==="object")t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0};else return Ge(!1,"`checkedKeys` is not an array or an object"),null;return t}function Qp(e,t){var n=new Set;function r(o){if(!n.has(o)){var i=ur(t,o);if(i){n.add(o);var a=i.parent,l=i.node;l.disabled||a&&r(a.key)}}}return(e||[]).forEach(function(o){r(o)}),ge(n)}function K9(e){const[t,n]=g.useState(null);return[g.useCallback((i,a,l)=>{const c=t!=null?t:i,u=Math.min(c||0,i),d=Math.max(c||0,i),f=a.slice(u,d+1).map(h=>e(h)),m=f.some(h=>!l.has(h)),p=[];return f.forEach(h=>{m?(l.has(h)||p.push(h),l.add(h)):(l.delete(h),p.push(h))}),n(m?d:null),p},[t]),i=>{n(i)}]}const fo={},Yp="SELECT_ALL",Jp="SELECT_INVERT",Zp="SELECT_NONE",kw=[],Fw=(e,t)=>{let n=[];return(t||[]).forEach(r=>{n.push(r),r&&typeof r=="object"&&e in r&&(n=[].concat(ge(n),ge(Fw(e,r[e]))))}),n},q9=(e,t)=>{const{preserveSelectedRowKeys:n,selectedRowKeys:r,defaultSelectedRowKeys:o,getCheckboxProps:i,onChange:a,onSelect:l,onSelectAll:c,onSelectInvert:u,onSelectNone:d,onSelectMultiple:f,columnWidth:m,type:p,selections:h,fixed:b,renderCell:v,hideSelectAll:y,checkStrictly:C=!0}=t||{},{prefixCls:x,data:E,pageData:S,getRecordByKey:$,getRowKey:O,expandType:I,childrenColumnName:w,locale:N,getPopupContainer:_}=e,P=gt("Table"),[M,D]=K9(X=>X),[T,A]=ln(r||o||kw,{value:r}),R=s.useRef(new Map),L=g.useCallback(X=>{if(n){const F=new Map;X.forEach(ee=>{let Z=$(ee);!Z&&R.current.has(ee)&&(Z=R.current.get(ee)),F.set(ee,Z)}),R.current=F}},[$,n]);s.useEffect(()=>{L(T)},[T]);const j=g.useMemo(()=>Fw(w,S),[w,S]),{keyEntities:z}=g.useMemo(()=>{if(C)return{keyEntities:null};let X=E;if(n){const F=new Set(j.map((Z,ne)=>O(Z,ne))),ee=Array.from(R.current).reduce((Z,ne)=>{let[re,se]=ne;return F.has(re)?Z:Z.concat(se)},[]);X=[].concat(ge(X),ge(ee))}return Cp(X,{externalGetKey:O,childrenPropName:w})},[E,O,C,w,n,j]),B=g.useMemo(()=>{const X=new Map;return j.forEach((F,ee)=>{const Z=O(F,ee),ne=(i?i(F):null)||{};X.set(Z,ne),process.env.NODE_ENV!=="production"&&P(!("checked"in ne||"defaultChecked"in ne),"usage","Do not set `checked` or `defaultChecked` in `getCheckboxProps`. Please use `selectedRowKeys` instead.")}),X},[j,O,i]),K=g.useCallback(X=>{const F=O(X);let ee;return B.has(F)?ee=B.get(O(X)):ee=i?i(X):void 0,!!(ee!=null&&ee.disabled)},[B,O]),[W,k]=g.useMemo(()=>{if(C)return[T||[],[]];const{checkedKeys:X,halfCheckedKeys:F}=ca(T,!0,z,K);return[X||[],F]},[T,C,z,K]),V=g.useMemo(()=>{const X=p==="radio"?W.slice(0,1):W;return new Set(X)},[W,p]),Q=g.useMemo(()=>p==="radio"?new Set:new Set(k),[k,p]);s.useEffect(()=>{t||A(kw)},[!!t]);const J=g.useCallback((X,F)=>{let ee,Z;L(X),n?(ee=X,Z=X.map(ne=>R.current.get(ne))):(ee=[],Z=[],X.forEach(ne=>{const re=$(ne);re!==void 0&&(ee.push(ne),Z.push(re))})),A(ee),a==null||a(ee,Z,{type:F})},[A,$,a,n]),Y=g.useCallback((X,F,ee,Z)=>{if(l){const ne=ee.map(re=>$(re));l($(X),F,ne,Z)}J(ee,"single")},[l,$,J]),te=g.useMemo(()=>!h||y?null:(h===!0?[Yp,Jp,Zp]:h).map(F=>F===Yp?{key:"all",text:N.selectionAll,onSelect(){J(E.map((ee,Z)=>O(ee,Z)).filter(ee=>{const Z=B.get(ee);return!(Z!=null&&Z.disabled)||V.has(ee)}),"all")}}:F===Jp?{key:"invert",text:N.selectInvert,onSelect(){const ee=new Set(V);S.forEach((ne,re)=>{const se=O(ne,re),le=B.get(se);le!=null&&le.disabled||(ee.has(se)?ee.delete(se):ee.add(se))});const Z=Array.from(ee);u&&(P.deprecated(!1,"onSelectInvert","onChange"),u(Z)),J(Z,"invert")}}:F===Zp?{key:"none",text:N.selectNone,onSelect(){d==null||d(),J(Array.from(V).filter(ee=>{const Z=B.get(ee);return Z==null?void 0:Z.disabled}),"none")}}:F).map(F=>Object.assign(Object.assign({},F),{onSelect:function(){for(var ee,Z,ne=arguments.length,re=new Array(ne),se=0;se<ne;se++)re[se]=arguments[se];(Z=F.onSelect)===null||Z===void 0||(ee=Z).call.apply(ee,[F].concat(re)),D(null)}})),[h,V,S,O,u,J]);return[g.useCallback(X=>{var F;if(!t)return process.env.NODE_ENV!=="production"&&P(!X.includes(fo),"usage","`rowSelection` is not config but `SELECTION_COLUMN` exists in the `columns`."),X.filter(Ie=>Ie!==fo);let ee=ge(X);const Z=new Set(V),ne=j.map(O).filter(Ie=>!B.get(Ie).disabled),re=ne.every(Ie=>Z.has(Ie)),se=ne.some(Ie=>Z.has(Ie)),le=()=>{const Ie=[];re?ne.forEach(be=>{Z.delete(be),Ie.push(be)}):ne.forEach(be=>{Z.has(be)||(Z.add(be),Ie.push(be))});const xe=Array.from(Z);c==null||c(!re,xe.map(be=>$(be)),Ie.map(be=>$(be))),J(xe,"all"),D(null)};let he,fe;if(p!=="radio"){let Ie;if(te){const _e={getPopupContainer:_,items:te.map((ve,Se)=>{const{key:Je,text:it,onSelect:Nt}=ve;return{key:Je!=null?Je:Se,onClick:()=>{Nt==null||Nt(ne)},label:it}})};Ie=s.createElement("div",{className:`${x}-selection-extra`},s.createElement(o$,{menu:_e,getPopupContainer:_},s.createElement("span",null,s.createElement(vs,null))))}const xe=j.map((_e,ve)=>{const Se=O(_e,ve),Je=B.get(Se)||{};return Object.assign({checked:Z.has(Se)},Je)}).filter(_e=>{let{disabled:ve}=_e;return ve}),be=!!xe.length&&xe.length===j.length,Ee=be&&xe.every(_e=>{let{checked:ve}=_e;return ve}),$e=be&&xe.some(_e=>{let{checked:ve}=_e;return ve});fe=s.createElement(Kc,{checked:be?Ee:!!j.length&&re,indeterminate:be?!Ee&&$e:!re&&se,onChange:le,disabled:j.length===0||be,"aria-label":Ie?"Custom selection":"Select all",skipGroup:!0}),he=!y&&s.createElement("div",{className:`${x}-selection`},fe,Ie)}let ie;p==="radio"?ie=(Ie,xe,be)=>{const Ee=O(xe,be),$e=Z.has(Ee),_e=B.get(Ee);return{node:s.createElement(br,Object.assign({},_e,{checked:$e,onClick:ve=>{var Se;ve.stopPropagation(),(Se=_e==null?void 0:_e.onClick)===null||Se===void 0||Se.call(_e,ve)},onChange:ve=>{var Se;Z.has(Ee)||Y(Ee,!0,[Ee],ve.nativeEvent),(Se=_e==null?void 0:_e.onChange)===null||Se===void 0||Se.call(_e,ve)}})),checked:$e}}:ie=(Ie,xe,be)=>{var Ee;const $e=O(xe,be),_e=Z.has($e),ve=Q.has($e),Se=B.get($e);let Je;return I==="nest"?(Je=ve,process.env.NODE_ENV!=="production"&&P(typeof(Se==null?void 0:Se.indeterminate)!="boolean","usage","set `indeterminate` using `rowSelection.getCheckboxProps` is not allowed with tree structured dataSource.")):Je=(Ee=Se==null?void 0:Se.indeterminate)!==null&&Ee!==void 0?Ee:ve,{node:s.createElement(Kc,Object.assign({},Se,{indeterminate:Je,checked:_e,skipGroup:!0,onClick:it=>{var Nt;it.stopPropagation(),(Nt=Se==null?void 0:Se.onClick)===null||Nt===void 0||Nt.call(Se,it)},onChange:it=>{var Nt;const{nativeEvent:Tt}=it,{shiftKey:Gt}=Tt,st=ne.findIndex(pt=>pt===$e),Pt=W.some(pt=>ne.includes(pt));if(Gt&&C&&Pt){const pt=M(st,ne,Z),et=Array.from(Z);f==null||f(!_e,et.map(ke=>$(ke)),pt.map(ke=>$(ke))),J(et,"multiple")}else{const pt=W;if(C){const et=_e?uo(pt,$e):Io(pt,$e);Y($e,!_e,et,Tt)}else{const et=ca([].concat(ge(pt),[$e]),!0,z,K),{checkedKeys:ke,halfCheckedKeys:Me}=et;let Pe=ke;if(_e){const at=new Set(ke);at.delete($e),Pe=ca(Array.from(at),{checked:!1,halfCheckedKeys:Me},z,K).checkedKeys}Y($e,!_e,Pe,Tt)}}D(_e?null:st),(Nt=Se==null?void 0:Se.onChange)===null||Nt===void 0||Nt.call(Se,it)}})),checked:_e}};const ue=(Ie,xe,be)=>{const{node:Ee,checked:$e}=ie(Ie,xe,be);return v?v($e,xe,be,Ee):Ee};if(!ee.includes(fo))if(ee.findIndex(Ie=>{var xe;return((xe=Ie[Ml])===null||xe===void 0?void 0:xe.columnType)==="EXPAND_COLUMN"})===0){const[Ie,...xe]=ee;ee=[Ie,fo].concat(ge(xe))}else ee=[fo].concat(ge(ee));const de=ee.indexOf(fo);process.env.NODE_ENV!=="production"&&P(ee.filter(Ie=>Ie===fo).length<=1,"usage","Multiple `SELECTION_COLUMN` exist in `columns`."),ee=ee.filter((Ie,xe)=>Ie!==fo||xe===de);const me=ee[de-1],Ce=ee[de+1];let Oe=b;Oe===void 0&&((Ce==null?void 0:Ce.fixed)!==void 0?Oe=Ce.fixed:(me==null?void 0:me.fixed)!==void 0&&(Oe=me.fixed)),Oe&&me&&((F=me[Ml])===null||F===void 0?void 0:F.columnType)==="EXPAND_COLUMN"&&me.fixed===void 0&&(me.fixed=Oe);const Te=G(`${x}-selection-col`,{[`${x}-selection-col-with-dropdown`]:h&&p==="checkbox"}),je=()=>t!=null&&t.columnTitle?typeof t.columnTitle=="function"?t.columnTitle(fe):t.columnTitle:he,Ne={fixed:Oe,width:m,className:`${x}-selection-column`,title:je(),render:ue,onCell:t.onCell,align:t.align,[Ml]:{className:Te}};return ee.map(Ie=>Ie===fo?Ne:Ie)},[O,j,t,W,V,Q,m,te,I,B,f,Y,K]),V]};function U9(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}function G9(e,t){return g.useImperativeHandle(e,()=>{const n=t(),{nativeElement:r}=n;return typeof Proxy!="undefined"?new Proxy(r,{get(o,i){return n[i]?n[i]:Reflect.get(o,i)}}):U9(r,n)})}function X9(e){return t=>{const{prefixCls:n,onExpand:r,record:o,expanded:i,expandable:a}=t,l=`${n}-row-expand-icon`;return s.createElement("button",{type:"button",onClick:c=>{r(o,c),c.stopPropagation()},className:G(l,{[`${l}-spaced`]:!a,[`${l}-expanded`]:a&&i,[`${l}-collapsed`]:a&&!i}),"aria-label":i?e.collapse:e.expand,"aria-expanded":i})}}function Q9(e){return(n,r)=>{const o=n.querySelector(`.${e}-container`);let i=r;if(o){const a=getComputedStyle(o),l=parseInt(a.borderLeftWidth,10),c=parseInt(a.borderRightWidth,10);i=r-l-c}return i}}const Ko=(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 ha(e,t){return t?`${t}-${e}`:`${e}`}const su=(e,t)=>typeof e=="function"?e(t):e,Y9=(e,t)=>{const n=su(e,t);return Object.prototype.toString.call(n)==="[object Object]"?"":n};function J9(e){const t=s.useRef(e),n=qx();return[()=>t.current,r=>{t.current=r,n()}]}var Hw=function(t){var n=t.dropPosition,r=t.dropLevelOffset,o=t.indent,i={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(n){case-1:i.top=0,i.left=-r*o;break;case 1:i.bottom=0,i.left=-r*o;break;case 0:i.bottom=0,i.left=o;break}return g.createElement("div",{style:i})};process.env.NODE_ENV!=="production"&&(Hw.displayName="DropIndicator");function Vw(e){if(e==null)throw new TypeError("Cannot destructure "+e)}function Z9(e,t){var n=s.useState(!1),r=ae(n,2),o=r[0],i=r[1];wt(function(){if(o)return e(),function(){t()}},[o]),wt(function(){return i(!0),function(){i(!1)}},[])}var eW=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],Ww=s.forwardRef(function(e,t){var n=e.className,r=e.style,o=e.motion,i=e.motionNodes,a=e.motionType,l=e.onMotionStart,c=e.onMotionEnd,u=e.active,d=e.treeNodeRequiredProps,f=tt(e,eW),m=s.useState(!0),p=ae(m,2),h=p[0],b=p[1],v=s.useContext(Up),y=v.prefixCls,C=i&&a!=="hide";wt(function(){i&&C!==h&&b(C)},[i]);var x=function(){i&&l()},E=s.useRef(!1),S=function(){i&&!E.current&&(E.current=!0,c())};Z9(x,S);var $=function(I){C===I&&S()};return i?s.createElement(cr,ce({ref:t,visible:h},o,{motionAppear:a==="show",onVisibleChanged:$}),function(O,I){var w=O.className,N=O.style;return s.createElement("div",{ref:I,className:G("".concat(y,"-treenode-motion"),w),style:N},i.map(function(_){var P=Object.assign({},(Vw(_.data),_.data)),M=_.title,D=_.key,T=_.isStart,A=_.isEnd;delete P.children;var R=wl(D,d);return s.createElement(ga,ce({},P,R,{title:M,active:u,data:_.data,key:D,isStart:T,isEnd:A}))}))}):s.createElement(ga,ce({domRef:t,className:n,style:r},f,{active:u}))});process.env.NODE_ENV!=="production"&&(Ww.displayName="MotionTreeNode");function tW(){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(i,a){var l=new Map;i.forEach(function(u){l.set(u,!0)});var c=a.filter(function(u){return!l.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 Kw(e,t,n){var r=e.findIndex(function(l){return l.key===n}),o=e[r+1],i=t.findIndex(function(l){return l.key===n});if(o){var a=t.findIndex(function(l){return l.key===o.key});return t.slice(i+1,a)}return t.slice(i+1)}var nW=["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"],qw={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},rW=function(){},Ci="RC_TREE_MOTION_".concat(Math.random()),ev={key:Ci},Uw={key:Ci,level:0,index:0,pos:"0",node:ev,nodes:[ev]},Gw={parent:null,children:[],pos:Uw.pos,data:ev,title:null,key:Ci,isStart:[],isEnd:[]};function Xw(e,t,n,r){return t===!1||!n?e:e.slice(0,Math.ceil(n/r)+1)}function Qw(e){var t=e.key,n=e.pos;return $l(t,n)}function oW(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 Yw=s.forwardRef(function(e,t){var n=e.prefixCls,r=e.data;e.selectable,e.checkable;var o=e.expandedKeys,i=e.selectedKeys,a=e.checkedKeys,l=e.loadedKeys,c=e.loadingKeys,u=e.halfCheckedKeys,d=e.keyEntities,f=e.disabled,m=e.dragging,p=e.dragOverNodeKey,h=e.dropPosition,b=e.motion,v=e.height,y=e.itemHeight,C=e.virtual,x=e.scrollWidth,E=e.focusable,S=e.activeItem,$=e.focused,O=e.tabIndex,I=e.onKeyDown,w=e.onFocus,N=e.onBlur,_=e.onActiveChange,P=e.onListChangeStart,M=e.onListChangeEnd,D=tt(e,nW),T=s.useRef(null),A=s.useRef(null);s.useImperativeHandle(t,function(){return{scrollTo:function(ue){T.current.scrollTo(ue)},getIndentWidth:function(){return A.current.offsetWidth}}});var R=s.useState(o),L=ae(R,2),j=L[0],z=L[1],B=s.useState(r),K=ae(B,2),W=K[0],k=K[1],V=s.useState(r),Q=ae(V,2),J=Q[0],Y=Q[1],te=s.useState([]),oe=ae(te,2),X=oe[0],F=oe[1],ee=s.useState(null),Z=ae(ee,2),ne=Z[0],re=Z[1],se=s.useRef(r);se.current=r;function le(){var ie=se.current;k(ie),Y(ie),F([]),re(null),M()}wt(function(){z(o);var ie=tW(j,o);if(ie.key!==null)if(ie.add){var ue=W.findIndex(function(je){var Ne=je.key;return Ne===ie.key}),de=Xw(Kw(W,r,ie.key),C,v,y),me=W.slice();me.splice(ue+1,0,Gw),Y(me),F(de),re("show")}else{var Ce=r.findIndex(function(je){var Ne=je.key;return Ne===ie.key}),Oe=Xw(Kw(r,W,ie.key),C,v,y),Te=r.slice();Te.splice(Ce+1,0,Gw),Y(Te),F(Oe),re("hide")}else W!==r&&(k(r),Y(r))},[o,r]),s.useEffect(function(){m||le()},[m]);var he=b?J:r,fe={expandedKeys:o,selectedKeys:i,loadedKeys:l,loadingKeys:c,checkedKeys:a,halfCheckedKeys:u,dragOverNodeKey:p,dropPosition:h,keyEntities:d};return s.createElement(s.Fragment,null,$&&S&&s.createElement("span",{style:qw,"aria-live":"assertive"},oW(S)),s.createElement("div",null,s.createElement("input",{style:qw,disabled:E===!1||f,tabIndex:E!==!1?O:null,onKeyDown:I,onFocus:w,onBlur:N,value:"",onChange:rW,"aria-label":"for screen reader"})),s.createElement("div",{className:"".concat(n,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},s.createElement("div",{className:"".concat(n,"-indent")},s.createElement("div",{ref:A,className:"".concat(n,"-indent-unit")}))),s.createElement(yc,ce({},D,{data:he,itemKey:Qw,height:v,fullHeight:!1,virtual:C,itemHeight:y,scrollWidth:x,prefixCls:"".concat(n,"-list"),ref:T,role:"tree",onVisibleChange:function(ue){ue.every(function(de){return Qw(de)!==Ci})&&le()}}),function(ie){var ue=ie.pos,de=Object.assign({},(Vw(ie.data),ie.data)),me=ie.title,Ce=ie.key,Oe=ie.isStart,Te=ie.isEnd,je=$l(Ce,ue);delete de.key,delete de.children;var Ne=wl(je,fe);return s.createElement(Ww,ce({},de,Ne,{title:me,active:!!S&&Ce===S.key,pos:ue,data:ie.data,isStart:Oe,isEnd:Te,motion:b,motionNodes:Ce===Ci?X:null,motionType:ne,onMotionStart:P,onMotionEnd:le,treeNodeRequiredProps:fe,onMouseMove:function(){_(null)}}))}))});process.env.NODE_ENV!=="production"&&(Yw.displayName="NodeList");var iW=10,tv=function(e){jr(n,e);var t=Zr(n);function n(){var r;bn(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=t.call.apply(t,[this].concat(i)),H(qe(r),"destroyed",!1),H(qe(r),"delayedDragEnterLogic",void 0),H(qe(r),"loadingRetryTimes",{}),H(qe(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:sa()}),H(qe(r),"dragStartMousePosition",null),H(qe(r),"dragNodeProps",null),H(qe(r),"currentMouseOverDroppableNodeKey",null),H(qe(r),"listRef",s.createRef()),H(qe(r),"onNodeDragStart",function(l,c){var u=r.state,d=u.expandedKeys,f=u.keyEntities,m=r.props.onDragStart,p=c.eventKey;r.dragNodeProps=c,r.dragStartMousePosition={x:l.clientX,y:l.clientY};var h=uo(d,p);r.setState({draggingNodeKey:p,dragChildrenKeys:H9(p,f),indent:r.listRef.current.getIndentWidth()}),r.setExpandedKeys(h),window.addEventListener("dragend",r.onWindowDragEnd),m==null||m({event:l,node:Mn(c)})}),H(qe(r),"onNodeDragEnter",function(l,c){var u=r.state,d=u.expandedKeys,f=u.keyEntities,m=u.dragChildrenKeys,p=u.flattenNodes,h=u.indent,b=r.props,v=b.onDragEnter,y=b.onExpand,C=b.allowDrop,x=b.direction,E=c.pos,S=c.eventKey;if(r.currentMouseOverDroppableNodeKey!==S&&(r.currentMouseOverDroppableNodeKey=S),!r.dragNodeProps){r.resetDragState();return}var $=zw(l,r.dragNodeProps,c,h,r.dragStartMousePosition,C,p,f,d,x),O=$.dropPosition,I=$.dropLevelOffset,w=$.dropTargetKey,N=$.dropContainerKey,_=$.dropTargetPos,P=$.dropAllowed,M=$.dragOverNodeKey;if(m.includes(w)||!P){r.resetDragState();return}if(r.delayedDragEnterLogic||(r.delayedDragEnterLogic={}),Object.keys(r.delayedDragEnterLogic).forEach(function(D){clearTimeout(r.delayedDragEnterLogic[D])}),r.dragNodeProps.eventKey!==c.eventKey&&(l.persist(),r.delayedDragEnterLogic[E]=window.setTimeout(function(){if(r.state.draggingNodeKey!==null){var D=ge(d),T=ur(f,c.eventKey);T&&(T.children||[]).length&&(D=Io(d,c.eventKey)),r.props.hasOwnProperty("expandedKeys")||r.setExpandedKeys(D),y==null||y(D,{node:Mn(c),expanded:!0,nativeEvent:l.nativeEvent})}},800)),r.dragNodeProps.eventKey===w&&I===0){r.resetDragState();return}r.setState({dragOverNodeKey:M,dropPosition:O,dropLevelOffset:I,dropTargetKey:w,dropContainerKey:N,dropTargetPos:_,dropAllowed:P}),v==null||v({event:l,node:Mn(c),expandedKeys:d})}),H(qe(r),"onNodeDragOver",function(l,c){var u=r.state,d=u.dragChildrenKeys,f=u.flattenNodes,m=u.keyEntities,p=u.expandedKeys,h=u.indent,b=r.props,v=b.onDragOver,y=b.allowDrop,C=b.direction;if(r.dragNodeProps){var x=zw(l,r.dragNodeProps,c,h,r.dragStartMousePosition,y,f,m,p,C),E=x.dropPosition,S=x.dropLevelOffset,$=x.dropTargetKey,O=x.dropContainerKey,I=x.dropTargetPos,w=x.dropAllowed,N=x.dragOverNodeKey;d.includes($)||!w||(r.dragNodeProps.eventKey===$&&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():E===r.state.dropPosition&&S===r.state.dropLevelOffset&&$===r.state.dropTargetKey&&O===r.state.dropContainerKey&&I===r.state.dropTargetPos&&w===r.state.dropAllowed&&N===r.state.dragOverNodeKey||r.setState({dropPosition:E,dropLevelOffset:S,dropTargetKey:$,dropContainerKey:O,dropTargetPos:I,dropAllowed:w,dragOverNodeKey:N}),v==null||v({event:l,node:Mn(c)}))}}),H(qe(r),"onNodeDragLeave",function(l,c){r.currentMouseOverDroppableNodeKey===c.eventKey&&!l.currentTarget.contains(l.relatedTarget)&&(r.resetDragState(),r.currentMouseOverDroppableNodeKey=null);var u=r.props.onDragLeave;u==null||u({event:l,node:Mn(c)})}),H(qe(r),"onWindowDragEnd",function(l){r.onNodeDragEnd(l,null,!0),window.removeEventListener("dragend",r.onWindowDragEnd)}),H(qe(r),"onNodeDragEnd",function(l,c){var u=r.props.onDragEnd;r.setState({dragOverNodeKey:null}),r.cleanDragState(),u==null||u({event:l,node:Mn(c)}),r.dragNodeProps=null,window.removeEventListener("dragend",r.onWindowDragEnd)}),H(qe(r),"onNodeDrop",function(l,c){var u,d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,f=r.state,m=f.dragChildrenKeys,p=f.dropPosition,h=f.dropTargetKey,b=f.dropTargetPos,v=f.dropAllowed;if(v){var y=r.props.onDrop;if(r.setState({dragOverNodeKey:null}),r.cleanDragState(),h!==null){var C=q(q({},wl(h,r.getTreeNodeRequiredProps())),{},{active:((u=r.getActiveItem())===null||u===void 0?void 0:u.key)===h,data:ur(r.state.keyEntities,h).node}),x=m.includes(h);Ge(!x,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var E=Gp(b),S={event:l,node:Mn(C),dragNode:r.dragNodeProps?Mn(r.dragNodeProps):null,dragNodesKeys:[r.dragNodeProps.eventKey].concat(m),dropToGap:p!==0,dropPosition:p+Number(E[E.length-1])};d||y==null||y(S),r.dragNodeProps=null}}}),H(qe(r),"cleanDragState",function(){var l=r.state.draggingNodeKey;l!==null&&r.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),r.dragStartMousePosition=null,r.currentMouseOverDroppableNodeKey=null}),H(qe(r),"triggerExpandActionExpand",function(l,c){var u=r.state,d=u.expandedKeys,f=u.flattenNodes,m=c.expanded,p=c.key,h=c.isLeaf;if(!(h||l.shiftKey||l.metaKey||l.ctrlKey)){var b=f.filter(function(y){return y.key===p})[0],v=Mn(q(q({},wl(p,r.getTreeNodeRequiredProps())),{},{data:b.data}));r.setExpandedKeys(m?uo(d,p):Io(d,p)),r.onNodeExpand(l,v)}}),H(qe(r),"onNodeClick",function(l,c){var u=r.props,d=u.onClick,f=u.expandAction;f==="click"&&r.triggerExpandActionExpand(l,c),d==null||d(l,c)}),H(qe(r),"onNodeDoubleClick",function(l,c){var u=r.props,d=u.onDoubleClick,f=u.expandAction;f==="doubleClick"&&r.triggerExpandActionExpand(l,c),d==null||d(l,c)}),H(qe(r),"onNodeSelect",function(l,c){var u=r.state.selectedKeys,d=r.state,f=d.keyEntities,m=d.fieldNames,p=r.props,h=p.onSelect,b=p.multiple,v=c.selected,y=c[m.key],C=!v;C?b?u=Io(u,y):u=[y]:u=uo(u,y);var x=u.map(function(E){var S=ur(f,E);return S?S.node:null}).filter(Boolean);r.setUncontrolledState({selectedKeys:u}),h==null||h(u,{event:"select",selected:C,node:c,selectedNodes:x,nativeEvent:l.nativeEvent})}),H(qe(r),"onNodeCheck",function(l,c,u){var d=r.state,f=d.keyEntities,m=d.checkedKeys,p=d.halfCheckedKeys,h=r.props,b=h.checkStrictly,v=h.onCheck,y=c.key,C,x={event:"check",node:c,checked:u,nativeEvent:l.nativeEvent};if(b){var E=u?Io(m,y):uo(m,y),S=uo(p,y);C={checked:E,halfChecked:S},x.checkedNodes=E.map(function(_){return ur(f,_)}).filter(Boolean).map(function(_){return _.node}),r.setUncontrolledState({checkedKeys:E})}else{var $=ca([].concat(ge(m),[y]),!0,f),O=$.checkedKeys,I=$.halfCheckedKeys;if(!u){var w=new Set(O);w.delete(y);var N=ca(Array.from(w),{checked:!1,halfCheckedKeys:I},f);O=N.checkedKeys,I=N.halfCheckedKeys}C=O,x.checkedNodes=[],x.checkedNodesPositions=[],x.halfCheckedKeys=I,O.forEach(function(_){var P=ur(f,_);if(P){var M=P.node,D=P.pos;x.checkedNodes.push(M),x.checkedNodesPositions.push({node:M,pos:D})}}),r.setUncontrolledState({checkedKeys:O},!1,{halfCheckedKeys:I})}v==null||v(C,x)}),H(qe(r),"onNodeLoad",function(l){var c,u=l.key,d=r.state.keyEntities,f=ur(d,u);if(!(f!=null&&(c=f.children)!==null&&c!==void 0&&c.length)){var m=new Promise(function(p,h){r.setState(function(b){var v=b.loadedKeys,y=v===void 0?[]:v,C=b.loadingKeys,x=C===void 0?[]:C,E=r.props,S=E.loadData,$=E.onLoad;if(!S||y.includes(u)||x.includes(u))return null;var O=S(l);return O.then(function(){var I=r.state.loadedKeys,w=Io(I,u);$==null||$(w,{event:"load",node:l}),r.setUncontrolledState({loadedKeys:w}),r.setState(function(N){return{loadingKeys:uo(N.loadingKeys,u)}}),p()}).catch(function(I){if(r.setState(function(N){return{loadingKeys:uo(N.loadingKeys,u)}}),r.loadingRetryTimes[u]=(r.loadingRetryTimes[u]||0)+1,r.loadingRetryTimes[u]>=iW){var w=r.state.loadedKeys;Ge(!1,"Retry for `loadData` many times but still failed. No more retry."),r.setUncontrolledState({loadedKeys:Io(w,u)}),p()}h(I)}),{loadingKeys:Io(x,u)}})});return m.catch(function(){}),m}}),H(qe(r),"onNodeMouseEnter",function(l,c){var u=r.props.onMouseEnter;u==null||u({event:l,node:c})}),H(qe(r),"onNodeMouseLeave",function(l,c){var u=r.props.onMouseLeave;u==null||u({event:l,node:c})}),H(qe(r),"onNodeContextMenu",function(l,c){var u=r.props.onRightClick;u&&(l.preventDefault(),u({event:l,node:c}))}),H(qe(r),"onFocus",function(){var l=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];l==null||l.apply(void 0,u)}),H(qe(r),"onBlur",function(){var l=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];l==null||l.apply(void 0,u)}),H(qe(r),"getTreeNodeRequiredProps",function(){var l=r.state,c=l.expandedKeys,u=l.selectedKeys,d=l.loadedKeys,f=l.loadingKeys,m=l.checkedKeys,p=l.halfCheckedKeys,h=l.dragOverNodeKey,b=l.dropPosition,v=l.keyEntities;return{expandedKeys:c||[],selectedKeys:u||[],loadedKeys:d||[],loadingKeys:f||[],checkedKeys:m||[],halfCheckedKeys:p||[],dragOverNodeKey:h,dropPosition:b,keyEntities:v}}),H(qe(r),"setExpandedKeys",function(l){var c=r.state,u=c.treeData,d=c.fieldNames,f=yp(u,l,d);r.setUncontrolledState({expandedKeys:l,flattenNodes:f},!0)}),H(qe(r),"onNodeExpand",function(l,c){var u=r.state.expandedKeys,d=r.state,f=d.listChanging,m=d.fieldNames,p=r.props,h=p.onExpand,b=p.loadData,v=c.expanded,y=c[m.key];if(!f){var C=u.includes(y),x=!v;if(Ge(v&&C||!v&&!C,"Expand state not sync with index check"),u=x?Io(u,y):uo(u,y),r.setExpandedKeys(u),h==null||h(u,{node:c,expanded:x,nativeEvent:l.nativeEvent}),x&&b){var E=r.onNodeLoad(c);E&&E.then(function(){var S=yp(r.state.treeData,u,m);r.setUncontrolledState({flattenNodes:S})}).catch(function(){var S=r.state.expandedKeys,$=uo(S,y);r.setExpandedKeys($)})}}}),H(qe(r),"onListChangeStart",function(){r.setUncontrolledState({listChanging:!0})}),H(qe(r),"onListChangeEnd",function(){setTimeout(function(){r.setUncontrolledState({listChanging:!1})})}),H(qe(r),"onActiveChange",function(l){var c=r.state.activeKey,u=r.props,d=u.onActiveChange,f=u.itemScrollOffset,m=f===void 0?0:f;c!==l&&(r.setState({activeKey:l}),l!==null&&r.scrollTo({key:l,offset:m}),d==null||d(l))}),H(qe(r),"getActiveItem",function(){var l=r.state,c=l.activeKey,u=l.flattenNodes;return c===null?null:u.find(function(d){var f=d.key;return f===c})||null}),H(qe(r),"offsetActiveKey",function(l){var c=r.state,u=c.flattenNodes,d=c.activeKey,f=u.findIndex(function(h){var b=h.key;return b===d});f===-1&&l<0&&(f=u.length),f=(f+l+u.length)%u.length;var m=u[f];if(m){var p=m.key;r.onActiveChange(p)}else r.onActiveChange(null)}),H(qe(r),"onKeyDown",function(l){var c=r.state,u=c.activeKey,d=c.expandedKeys,f=c.checkedKeys,m=c.fieldNames,p=r.props,h=p.onKeyDown,b=p.checkable,v=p.selectable;switch(l.which){case ye.UP:{r.offsetActiveKey(-1),l.preventDefault();break}case ye.DOWN:{r.offsetActiveKey(1),l.preventDefault();break}}var y=r.getActiveItem();if(y&&y.data){var C=r.getTreeNodeRequiredProps(),x=y.data.isLeaf===!1||!!(y.data[m.children]||[]).length,E=Mn(q(q({},wl(u,C)),{},{data:y.data,active:!0}));switch(l.which){case ye.LEFT:{x&&d.includes(u)?r.onNodeExpand({},E):y.parent&&r.onActiveChange(y.parent.key),l.preventDefault();break}case ye.RIGHT:{x&&!d.includes(u)?r.onNodeExpand({},E):y.children&&y.children.length&&r.onActiveChange(y.children[0].key),l.preventDefault();break}case ye.ENTER:case ye.SPACE:{b&&!E.disabled&&E.checkable!==!1&&!E.disableCheckbox?r.onNodeCheck({},E,!f.includes(u)):!b&&v&&!E.disabled&&E.selectable!==!1&&r.onNodeSelect({},E);break}}}h==null||h(l)}),H(qe(r),"setUncontrolledState",function(l){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(l).forEach(function(p){if(r.props.hasOwnProperty(p)){f=!1;return}d=!0,m[p]=l[p]}),d&&(!c||f)&&r.setState(q(q({},m),u))}}),H(qe(r),"scrollTo",function(l){r.listRef.current.scrollTo(l)}),r}return yn(n,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var o=this.props,i=o.activeKey,a=o.itemScrollOffset,l=a===void 0?0:a;i!==void 0&&i!==this.state.activeKey&&(this.setState({activeKey:i}),i!==null&&this.scrollTo({key:i,offset:l}))}},{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,i=o.focused,a=o.flattenNodes,l=o.keyEntities,c=o.draggingNodeKey,u=o.activeKey,d=o.dropLevelOffset,f=o.dropContainerKey,m=o.dropTargetKey,p=o.dropPosition,h=o.dragOverNodeKey,b=o.indent,v=this.props,y=v.prefixCls,C=v.className,x=v.style,E=v.showLine,S=v.focusable,$=v.tabIndex,O=$===void 0?0:$,I=v.selectable,w=v.showIcon,N=v.icon,_=v.switcherIcon,P=v.draggable,M=v.checkable,D=v.checkStrictly,T=v.disabled,A=v.motion,R=v.loadData,L=v.filterTreeNode,j=v.height,z=v.itemHeight,B=v.scrollWidth,K=v.virtual,W=v.titleRender,k=v.dropIndicatorRender,V=v.onContextMenu,Q=v.onScroll,J=v.direction,Y=v.rootClassName,te=v.rootStyle,oe=Rn(this.props,{aria:!0,data:!0}),X;P&&(He(P)==="object"?X=P:typeof P=="function"?X={nodeDraggable:P}:X={});var F={prefixCls:y,selectable:I,showIcon:w,icon:N,switcherIcon:_,draggable:X,draggingNodeKey:c,checkable:M,checkStrictly:D,disabled:T,keyEntities:l,dropLevelOffset:d,dropContainerKey:f,dropTargetKey:m,dropPosition:p,dragOverNodeKey:h,indent:b,direction:J,dropIndicatorRender:k,loadData:R,filterTreeNode:L,titleRender:W,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 s.createElement(Up.Provider,{value:F},s.createElement("div",{className:G(y,C,Y,H(H(H({},"".concat(y,"-show-line"),E),"".concat(y,"-focused"),i),"".concat(y,"-active-focused"),u!==null)),style:te},s.createElement(Yw,ce({ref:this.listRef,prefixCls:y,style:x,data:a,disabled:T,selectable:I,checkable:!!M,motion:A,dragging:c!==null,height:j,itemHeight:z,virtual:K,focusable:S,focused:i,tabIndex:O,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:V,onScroll:Q,scrollWidth:B},this.getTreeNodeRequiredProps(),oe))))}}],[{key:"getDerivedStateFromProps",value:function(o,i){var a=i.prevProps,l={prevProps:o};function c(O){return!a&&o.hasOwnProperty(O)||a&&a[O]!==o[O]}var u,d=i.fieldNames;if(c("fieldNames")&&(d=sa(o.fieldNames),l.fieldNames=d),c("treeData")?u=o.treeData:c("children")&&(Ge(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),u=S1(o.children)),u){l.treeData=u;var f=Cp(u,{fieldNames:d});l.keyEntities=q(H({},Ci,Uw),f.keyEntities),process.env.NODE_ENV!=="production"&&Lk(u,d)}var m=l.keyEntities||i.keyEntities;if(c("expandedKeys")||a&&c("autoExpandParent"))l.expandedKeys=o.autoExpandParent||!a&&o.defaultExpandParent?Qp(o.expandedKeys,m):o.expandedKeys;else if(!a&&o.defaultExpandAll){var p=q({},m);delete p[Ci];var h=[];Object.keys(p).forEach(function(O){var I=p[O];I.children&&I.children.length&&h.push(I.key)}),l.expandedKeys=h}else!a&&o.defaultExpandedKeys&&(l.expandedKeys=o.autoExpandParent||o.defaultExpandParent?Qp(o.defaultExpandedKeys,m):o.defaultExpandedKeys);if(l.expandedKeys||delete l.expandedKeys,u||l.expandedKeys){var b=yp(u||i.treeData,l.expandedKeys||i.expandedKeys,d);l.flattenNodes=b}if(o.selectable&&(c("selectedKeys")?l.selectedKeys=Bw(o.selectedKeys,o):!a&&o.defaultSelectedKeys&&(l.selectedKeys=Bw(o.defaultSelectedKeys,o))),o.checkable){var v;if(c("checkedKeys")?v=Xp(o.checkedKeys)||{}:!a&&o.defaultCheckedKeys?v=Xp(o.defaultCheckedKeys)||{}:u&&(v=Xp(o.checkedKeys)||{checkedKeys:i.checkedKeys,halfCheckedKeys:i.halfCheckedKeys}),v){var y=v,C=y.checkedKeys,x=C===void 0?[]:C,E=y.halfCheckedKeys,S=E===void 0?[]:E;if(!o.checkStrictly){var $=ca(x,!0,m);x=$.checkedKeys,S=$.halfCheckedKeys}l.checkedKeys=x,l.halfCheckedKeys=S}}return c("loadedKeys")&&(l.loadedKeys=o.loadedKeys),l}}]),n}(s.Component);H(tv,"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:Hw,allowDrop:function(){return!0},expandAction:!1}),H(tv,"TreeNode",ga);const aW=e=>{let{treeCls:t,treeNodeCls:n,directoryNodeSelectedBg:r,directoryNodeSelectedColor:o,motionDurationMid:i,borderRadius:a,controlItemBgHover:l}=e;return{[`${t}${t}-directory ${n}`]:{[`${t}-node-content-wrapper`]:{position:"static",[`> *:not(${t}-drop-indicator)`]:{position:"relative"},"&:hover":{background:"transparent"},"&:before":{position:"absolute",inset:0,transition:`background-color ${i}`,content:'""',borderRadius:a},"&:hover:before":{background:l}},[`${t}-switcher, ${t}-checkbox, ${t}-draggable-icon`]:{zIndex:1},"&-selected":{[`${t}-switcher, ${t}-draggable-icon`]:{color:o},[`${t}-node-content-wrapper`]:{color:o,background:"transparent","&:before, &:hover:before":{background:r}}}}}},lW=new _t("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),sW=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),cW=(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:`${U(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),uW=(e,t)=>{const{treeCls:n,treeNodeCls:r,treeNodePadding:o,titleHeight:i,indentSize:a,nodeSelectedBg:l,nodeHoverBg:c,colorTextQuaternary:u,controlItemBgActiveDisabled:d}=t;return{[n]:Object.assign(Object.assign({},Ht(t)),{background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,"&-rtl":{direction:"rtl"},[`&${n}-rtl ${n}-switcher_close ${n}-switcher-icon svg`]:{transform:"rotate(90deg)"},[`&-focused:not(:hover):not(${n}-active-focused)`]:Object.assign({},Br(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:lW,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:t.borderRadius}}},[r]:{display:"flex",alignItems:"flex-start",marginBottom:o,lineHeight:U(i),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:500},"&-draggable":{cursor:"grab",[`${n}-draggable-icon`]:{flexShrink:0,width:i,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:a}},[`${n}-draggable-icon`]:{visibility:"hidden"},[`${n}-switcher, ${n}-checkbox`]:{marginInlineEnd:t.calc(t.calc(i).sub(t.controlInteractiveSize)).div(2).equal()},[`${n}-switcher`]:Object.assign(Object.assign({},sW(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:i,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${t.motionDurationSlow}`,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:i,height:i,position:"absolute",left:{_skip_check_:!0,value:0},top:0,borderRadius:t.borderRadius,transition:`all ${t.motionDurationSlow}`},[`&:not(${n}-switcher-noop):hover:before`]:{backgroundColor:t.colorBgTextHover},[`&_close ${n}-switcher-icon svg`]:{transform:"rotate(-90deg)"},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(i).div(2).equal(),bottom:t.calc(o).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:t.calc(t.calc(i).div(2).equal()).mul(.8).equal(),height:t.calc(i).div(2).equal(),borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${n}-node-content-wrapper`]:Object.assign(Object.assign({position:"relative",minHeight:i,paddingBlock:0,paddingInline:t.paddingXS,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`},cW(e,t)),{"&:hover":{backgroundColor:c},[`&${n}-node-selected`]:{color:t.nodeSelectedColor,backgroundColor:l},[`${n}-iconEle`]:{display:"inline-block",width:i,height:i,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}}),[`${n}-unselectable ${n}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${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(i).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:`${U(t.calc(i).div(2).equal())} !important`}})}},dW=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const r=`.${e}`,o=`${r}-treenode`,i=t.calc(t.paddingXS).div(2).equal(),a=xt(t,{treeCls:r,treeNodeCls:o,treeNodePadding:i});return[uW(e,a),n&&aW(a)].filter(Boolean)},fW=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}},mW=Dt("Tree",(e,t)=>{let{prefixCls:n}=t;return[{[e.componentCls]:E1(`${n}-checkbox`,e)},dW(n,e),Vf(e)]},e=>{const{colorTextLightSolid:t,colorPrimary:n}=e;return Object.assign(Object.assign({},fW(e)),{directoryNodeSelectedColor:t,directoryNodeSelectedBg:n})}),Jw=4;function pW(e){const{dropPosition:t,dropLevelOffset:n,prefixCls:r,indent:o,direction:i="ltr"}=e,a=i==="ltr"?"left":"right",l=i==="ltr"?"right":"left",c={[a]:-n*o+Jw,[l]:0};switch(t){case-1:c.top=-3;break;case 1:c.bottom=-3;break;default:c.bottom=-3,c[a]=o+Jw;break}return g.createElement("div",{style:c,className:`${r}-drop-indicator`})}const vW=e=>{const{prefixCls:t,switcherIcon:n,treeNodeProps:r,showLine:o,switcherLoadingIcon:i}=e,{isLeaf:a,expanded:l,loading:c}=r;if(c)return s.isValidElement(i)?i:s.createElement(ti,{className:`${t}-switcher-loading-icon`});let u;if(o&&typeof o=="object"&&(u=o.showLeafIcon),a){if(!o)return null;if(typeof u!="boolean"&&u){const m=typeof u=="function"?u(r):u,p=`${t}-switcher-line-custom-icon`;return s.isValidElement(m)?Gn(m,{className:G(m.props.className||"",p)}):m}return u?s.createElement(nb,{className:`${t}-switcher-line-icon`}):s.createElement("span",{className:`${t}-switcher-leaf-line`})}const d=`${t}-switcher-icon`,f=typeof n=="function"?n(r):n;return s.isValidElement(f)?Gn(f,{className:G(f.props.className||"",d)}):f!==void 0?f:o?l?s.createElement(QT,{className:`${t}-switcher-line-icon`}):s.createElement(rP,{className:`${t}-switcher-line-icon`}):s.createElement(I_,{className:d})},Zw=g.forwardRef((e,t)=>{var n;const{getPrefixCls:r,direction:o,virtual:i,tree:a}=g.useContext(Xe),{prefixCls:l,className:c,showIcon:u=!1,showLine:d,switcherIcon:f,switcherLoadingIcon:m,blockNode:p=!1,children:h,checkable:b=!1,selectable:v=!0,draggable:y,motion:C,style:x}=e,E=r("tree",l),S=r(),$=C!=null?C:Object.assign(Object.assign({},Ys(S)),{motionAppear:!1}),O=Object.assign(Object.assign({},e),{checkable:b,selectable:v,showIcon:u,motion:$,blockNode:p,showLine:!!d,dropIndicatorRender:pW}),[I,w,N]=mW(E),[,_]=Hn(),P=_.paddingXS/2+(((n=_.Tree)===null||n===void 0?void 0:n.titleHeight)||_.controlHeightSM),M=g.useMemo(()=>{if(!y)return!1;let T={};switch(typeof y){case"function":T.nodeDraggable=y;break;case"object":T=Object.assign({},y);break}return T.icon!==!1&&(T.icon=T.icon||g.createElement(TT,null)),T},[y]),D=T=>g.createElement(vW,{prefixCls:E,switcherIcon:f,switcherLoadingIcon:m,treeNodeProps:T,showLine:d});return I(g.createElement(tv,Object.assign({itemHeight:P,ref:t,virtual:i},O,{style:Object.assign(Object.assign({},a==null?void 0:a.style),x),prefixCls:E,className:G({[`${E}-icon-hide`]:!u,[`${E}-block-node`]:p,[`${E}-unselectable`]:!v,[`${E}-rtl`]:o==="rtl"},a==null?void 0:a.className,c,w,N),direction:o,checkable:b&&g.createElement("span",{className:`${E}-checkbox-inner`}),selectable:v,switcherIcon:D,draggable:M}),h))});process.env.NODE_ENV!=="production"&&(Zw.displayName="Tree");const eO=Zw,tO=0,nv=1,nO=2;function rv(e,t,n){const{key:r,children:o}=n;function i(a){const l=a[r],c=a[o];t(l,a)!==!1&&rv(c||[],t,n)}e.forEach(i)}function gW(e){let{treeData:t,expandedKeys:n,startKey:r,endKey:o,fieldNames:i}=e;const a=[];let l=tO;if(r&&r===o)return[r];if(!r||!o)return[];function c(u){return u===r||u===o}return rv(t,u=>{if(l===nO)return!1;if(c(u)){if(a.push(u),l===tO)l=nv;else if(l===nv)return l=nO,!1}else l===nv&&a.push(u);return n.includes(u)},sa(i)),a}function ov(e,t,n){const r=ge(t),o=[];return rv(e,(i,a)=>{const l=r.indexOf(i);return l!==-1&&(o.push(a),r.splice(l,1)),!!r.length},sa(n)),o}var rO=globalThis&&globalThis.__rest||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 hW(e){const{isLeaf:t,expanded:n}=e;return t?s.createElement(nb,null):n?s.createElement(xT,null):s.createElement(OT,null)}function oO(e){let{treeData:t,children:n}=e;return t||S1(n)}const bW=(e,t)=>{var{defaultExpandAll:n,defaultExpandParent:r,defaultExpandedKeys:o}=e,i=rO(e,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const a=s.useRef(null),l=s.useRef(null),c=()=>{const{keyEntities:I}=Cp(oO(i));let w;return n?w=Object.keys(I):r?w=Qp(i.expandedKeys||o||[],I):w=i.expandedKeys||o||[],w},[u,d]=s.useState(i.selectedKeys||i.defaultSelectedKeys||[]),[f,m]=s.useState(()=>c());s.useEffect(()=>{"selectedKeys"in i&&d(i.selectedKeys)},[i.selectedKeys]),s.useEffect(()=>{"expandedKeys"in i&&m(i.expandedKeys)},[i.expandedKeys]);const p=(I,w)=>{var N;return"expandedKeys"in i||m(I),(N=i.onExpand)===null||N===void 0?void 0:N.call(i,I,w)},h=(I,w)=>{var N;const{multiple:_,fieldNames:P}=i,{node:M,nativeEvent:D}=w,{key:T=""}=M,A=oO(i),R=Object.assign(Object.assign({},w),{selected:!0}),L=(D==null?void 0:D.ctrlKey)||(D==null?void 0:D.metaKey),j=D==null?void 0:D.shiftKey;let z;_&&L?(z=I,a.current=T,l.current=z,R.selectedNodes=ov(A,z,P)):_&&j?(z=Array.from(new Set([].concat(ge(l.current||[]),ge(gW({treeData:A,expandedKeys:f,startKey:T,endKey:a.current,fieldNames:P}))))),R.selectedNodes=ov(A,z,P)):(z=[T],a.current=T,l.current=z,R.selectedNodes=ov(A,z,P)),(N=i.onSelect)===null||N===void 0||N.call(i,z,R),"selectedKeys"in i||d(z)},{getPrefixCls:b,direction:v}=s.useContext(Xe),{prefixCls:y,className:C,showIcon:x=!0,expandAction:E="click"}=i,S=rO(i,["prefixCls","className","showIcon","expandAction"]),$=b("tree",y),O=G(`${$}-directory`,{[`${$}-directory-rtl`]:v==="rtl"},C);return s.createElement(eO,Object.assign({icon:hW,ref:t,blockNode:!0},S,{showIcon:x,expandAction:E,prefixCls:$,className:O,expandedKeys:f,selectedKeys:u,onSelect:h,onExpand:p}))},iO=s.forwardRef(bW);process.env.NODE_ENV!=="production"&&(iO.displayName="DirectoryTree");const yW=iO,iv=eO;iv.DirectoryTree=yW,iv.TreeNode=ga;const CW=iv,aO=e=>{const{value:t,filterSearch:n,tablePrefixCls:r,locale:o,onChange:i}=e;return n?s.createElement("div",{className:`${r}-filter-dropdown-search`},s.createElement(Ol,{prefix:s.createElement(Ra,null),placeholder:o.filterSearchPlaceholder,onChange:i,value:t,htmlSize:1,className:`${r}-filter-dropdown-search-input`})):null},SW=e=>{const{keyCode:t}=e;t===ye.ENTER&&e.stopPropagation()},lO=s.forwardRef((e,t)=>s.createElement("div",{className:e.className,onClick:n=>n.stopPropagation(),onKeyDown:SW,ref:t},e.children));process.env.NODE_ENV!=="production"&&(lO.displayName="FilterDropdownMenuWrapper");const xW=lO;function ba(e){let t=[];return(e||[]).forEach(n=>{let{value:r,children:o}=n;t.push(r),o&&(t=[].concat(ge(t),ge(ba(o))))}),t}function EW(e){return e.some(t=>{let{children:n}=t;return n})}function sO(e,t){return typeof t=="string"||typeof t=="number"?t==null?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()):!1}function cO(e){let{filters:t,prefixCls:n,filteredKeys:r,filterMultiple:o,searchValue:i,filterSearch:a}=e;return t.map((l,c)=>{const u=String(l.value);if(l.children)return{key:u||c,label:l.text,popupClassName:`${n}-dropdown-submenu`,children:cO({filters:l.children,prefixCls:n,filteredKeys:r,filterMultiple:o,searchValue:i,filterSearch:a})};const d=o?Kc:br,f={key:l.value!==void 0?u:c,label:s.createElement(s.Fragment,null,s.createElement(d,{checked:r.includes(u)}),s.createElement("span",null,l.text))};return i.trim()?typeof a=="function"?a(i,l)?f:null:sO(i,l.text)?f:null:f})}function av(e){return e||[]}const $W=e=>{var t,n,r,o;const{tablePrefixCls:i,prefixCls:a,column:l,dropdownPrefixCls:c,columnKey:u,filterOnClose:d,filterMultiple:f,filterMode:m="menu",filterSearch:p=!1,filterState:h,triggerFilter:b,locale:v,children:y,getPopupContainer:C,rootClassName:x}=e,{filterResetToDefaultFilteredValue:E,defaultFilteredValue:S,filterDropdownProps:$={},filterDropdownOpen:O,filterDropdownVisible:I,onFilterDropdownVisibleChange:w,onFilterDropdownOpenChange:N}=l,[_,P]=s.useState(!1),M=!!(h&&(!((t=h.filteredKeys)===null||t===void 0)&&t.length||h.forceFiltered)),D=ie=>{var ue;P(ie),(ue=$.onOpenChange)===null||ue===void 0||ue.call($,ie),N==null||N(ie),w==null||w(ie)};if(process.env.NODE_ENV!=="production"){const ie=gt("Table");[["filterDropdownOpen","filterDropdownProps.open"],["filterDropdownVisible","filterDropdownProps.open"],["onFilterDropdownOpenChange","filterDropdownProps.onOpenChange"],["onFilterDropdownVisibleChange","filterDropdownProps.onOpenChange"]].forEach(de=>{let[me,Ce]=de;ie.deprecated(!(me in l),me,Ce)}),ie.deprecated(!("filterCheckall"in v),"filterCheckall","locale.filterCheckAll")}const T=(o=(r=(n=$.open)!==null&&n!==void 0?n:O)!==null&&r!==void 0?r:I)!==null&&o!==void 0?o:_,A=h==null?void 0:h.filteredKeys,[R,L]=J9(av(A)),j=ie=>{let{selectedKeys:ue}=ie;L(ue)},z=(ie,ue)=>{let{node:de,checked:me}=ue;j(f?{selectedKeys:ie}:{selectedKeys:me&&de.key?[de.key]:[]})};s.useEffect(()=>{_&&j({selectedKeys:av(A)})},[A]);const[B,K]=s.useState([]),W=ie=>{K(ie)},[k,V]=s.useState(""),Q=ie=>{const{value:ue}=ie.target;V(ue)};s.useEffect(()=>{_||V("")},[_]);const J=ie=>{const ue=ie!=null&&ie.length?ie:null;if(ue===null&&(!h||!h.filteredKeys)||eo(ue,h==null?void 0:h.filteredKeys,!0))return null;b({column:l,key:u,filteredKeys:ue})},Y=()=>{D(!1),J(R())},te=function(){let{confirm:ie,closeDropdown:ue}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};ie&&J([]),ue&&D(!1),V(""),L(E?(S||[]).map(de=>String(de)):[])},oe=function(){let{closeDropdown:ie}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};ie&&D(!1),J(R())},X=(ie,ue)=>{ue.source==="trigger"&&(ie&&A!==void 0&&L(av(A)),D(ie),!ie&&!l.filterDropdown&&d&&Y())},F=G({[`${c}-menu-without-submenu`]:!EW(l.filters||[])}),ee=ie=>{if(ie.target.checked){const ue=ba(l==null?void 0:l.filters).map(de=>String(de));L(ue)}else L([])},Z=ie=>{let{filters:ue}=ie;return(ue||[]).map((de,me)=>{const Ce=String(de.value),Oe={title:de.text,key:de.value!==void 0?Ce:String(me)};return de.children&&(Oe.children=Z({filters:de.children})),Oe})},ne=ie=>{var ue;return Object.assign(Object.assign({},ie),{text:ie.title,value:ie.key,children:((ue=ie.children)===null||ue===void 0?void 0:ue.map(de=>ne(de)))||[]})};let re;const{direction:se,renderEmpty:le}=s.useContext(Xe);if(typeof l.filterDropdown=="function")re=l.filterDropdown({prefixCls:`${c}-custom`,setSelectedKeys:ie=>j({selectedKeys:ie}),selectedKeys:R(),confirm:oe,clearFilters:te,filters:l.filters,visible:T,close:()=>{D(!1)}});else if(l.filterDropdown)re=l.filterDropdown;else{const ie=R()||[],ue=()=>{var me,Ce;const Oe=(me=le==null?void 0:le("Table.filter"))!==null&&me!==void 0?me:s.createElement(pi,{image:pi.PRESENTED_IMAGE_SIMPLE,description:v.filterEmptyText,styles:{image:{height:24}},style:{margin:0,padding:"16px 0"}});if((l.filters||[]).length===0)return Oe;if(m==="tree")return s.createElement(s.Fragment,null,s.createElement(aO,{filterSearch:p,value:k,onChange:Q,tablePrefixCls:i,locale:v}),s.createElement("div",{className:`${i}-filter-dropdown-tree`},f?s.createElement(Kc,{checked:ie.length===ba(l.filters).length,indeterminate:ie.length>0&&ie.length<ba(l.filters).length,className:`${i}-filter-dropdown-checkall`,onChange:ee},(Ce=v==null?void 0:v.filterCheckall)!==null&&Ce!==void 0?Ce:v==null?void 0:v.filterCheckAll):null,s.createElement(CW,{checkable:!0,selectable:!1,blockNode:!0,multiple:f,checkStrictly:!f,className:`${c}-menu`,onCheck:z,checkedKeys:ie,selectedKeys:ie,showIcon:!1,treeData:Z({filters:l.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:k.trim()?Ne=>typeof p=="function"?p(k,ne(Ne)):sO(k,Ne.title):void 0})));const Te=cO({filters:l.filters||[],filterSearch:p,prefixCls:a,filteredKeys:R(),filterMultiple:f,searchValue:k}),je=Te.every(Ne=>Ne===null);return s.createElement(s.Fragment,null,s.createElement(aO,{filterSearch:p,value:k,onChange:Q,tablePrefixCls:i,locale:v}),je?Oe:s.createElement(kE,{selectable:!0,multiple:f,prefixCls:`${c}-menu`,className:F,onSelect:j,onDeselect:j,selectedKeys:ie,getPopupContainer:C,openKeys:B,onOpenChange:W,items:Te}))},de=()=>E?eo((S||[]).map(me=>String(me)),ie,!0):ie.length===0;re=s.createElement(s.Fragment,null,ue(),s.createElement("div",{className:`${a}-dropdown-btns`},s.createElement(on,{type:"link",size:"small",disabled:de(),onClick:()=>te()},v.filterReset),s.createElement(on,{type:"primary",size:"small",onClick:Y},v.filterConfirm)))}l.filterDropdown&&(re=s.createElement(DE,{selectable:void 0},re)),re=s.createElement(xW,{className:`${a}-dropdown`},re);const fe=fc({trigger:["click"],placement:se==="rtl"?"bottomLeft":"bottomRight",children:(()=>{let ie;return typeof l.filterIcon=="function"?ie=l.filterIcon(M):l.filterIcon?ie=l.filterIcon:ie=s.createElement(pT,null),s.createElement("span",{role:"button",tabIndex:-1,className:G(`${a}-trigger`,{active:M}),onClick:ue=>{ue.stopPropagation()}},ie)})(),getPopupContainer:C},Object.assign(Object.assign({},$),{rootClassName:G(x,$.rootClassName),open:T,onOpenChange:X,popupRender:()=>typeof($==null?void 0:$.dropdownRender)=="function"?$.dropdownRender(re):re}));return s.createElement("div",{className:`${a}-column`},s.createElement("span",{className:`${i}-column-title`},y),s.createElement(o$,Object.assign({},fe)))},lv=(e,t,n)=>{let r=[];return(e||[]).forEach((o,i)=>{var a;const l=ha(i,n),c=o.filterDropdown!==void 0;if(o.filters||c||"onFilter"in o)if("filteredValue"in o){let u=o.filteredValue;c||(u=(a=u==null?void 0:u.map(String))!==null&&a!==void 0?a:u),r.push({column:o,key:Ko(o,l),filteredKeys:u,forceFiltered:o.filtered})}else r.push({column:o,key:Ko(o,l),filteredKeys:t&&o.defaultFilteredValue?o.defaultFilteredValue:void 0,forceFiltered:o.filtered});"children"in o&&(r=[].concat(ge(r),ge(lv(o.children,t,l))))}),r};function uO(e,t,n,r,o,i,a,l,c){return n.map((u,d)=>{const f=ha(d,l),{filterOnClose:m=!0,filterMultiple:p=!0,filterMode:h,filterSearch:b}=u;let v=u;if(v.filters||v.filterDropdown){const y=Ko(v,f),C=r.find(x=>{let{key:E}=x;return y===E});v=Object.assign(Object.assign({},v),{title:x=>s.createElement($W,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:v,columnKey:y,filterState:C,filterOnClose:m,filterMultiple:p,filterMode:h,filterSearch:b,triggerFilter:i,locale:o,getPopupContainer:a,rootClassName:c},su(u.title,x))})}return"children"in v&&(v=Object.assign(Object.assign({},v),{children:uO(e,t,v.children,r,o,i,a,f,c)})),v})}const dO=e=>{const t={};return e.forEach(n=>{let{key:r,filteredKeys:o,column:i}=n;const a=r,{filters:l,filterDropdown:c}=i;if(c)t[a]=o||null;else if(Array.isArray(o)){const u=ba(l);t[a]=u.filter(d=>o.includes(String(d)))}else t[a]=null}),t},sv=(e,t,n)=>t.reduce((o,i)=>{const{column:{onFilter:a,filters:l},filteredKeys:c}=i;return a&&c&&c.length?o.map(u=>Object.assign({},u)).filter(u=>c.some(d=>{const f=ba(l),m=f.findIndex(h=>String(h)===String(d)),p=m!==-1?f[m]:d;return u[n]&&(u[n]=sv(u[n],t,n)),a(p,u)})):o},e),fO=e=>e.flatMap(t=>"children"in t?[t].concat(ge(fO(t.children||[]))):[t]),wW=e=>{const{prefixCls:t,dropdownPrefixCls:n,mergedColumns:r,onFilterChange:o,getPopupContainer:i,locale:a,rootClassName:l}=e,c=gt("Table"),u=s.useMemo(()=>fO(r||[]),[r]),[d,f]=s.useState(()=>lv(u,!0)),m=s.useMemo(()=>{const v=lv(u,!1);if(v.length===0)return v;let y=!0,C=!0;if(v.forEach(x=>{let{filteredKeys:E}=x;E!==void 0?y=!1:C=!1}),y){const x=(u||[]).map((E,S)=>Ko(E,ha(S)));return d.filter(E=>{let{key:S}=E;return x.includes(S)}).map(E=>{const S=u[x.findIndex($=>$===E.key)];return Object.assign(Object.assign({},E),{column:Object.assign(Object.assign({},E.column),S),forceFiltered:S.filtered})})}return process.env.NODE_ENV!=="production"&&c(C,"usage","Columns should all contain `filteredValue` or not contain `filteredValue`."),v},[u,d]),p=s.useMemo(()=>dO(m),[m]),h=v=>{const y=m.filter(C=>{let{key:x}=C;return x!==v.key});y.push(v),f(y),o(dO(y),y)};return[v=>uO(t,n,v,m,a,h,i,void 0,l),m,p]},OW=(e,t,n)=>{const r=s.useRef({});function o(i){var a;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);l.set(m,d),d&&typeof d=="object"&&t in d&&c(d[t]||[])})};const l=new Map;c(e),r.current={data:e,childrenColumnName:t,kvMap:l,getRowKey:n}}return(a=r.current.kvMap)===null||a===void 0?void 0:a.get(i)}return[o]};var NW=globalThis&&globalThis.__rest||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 mO=10;function IW(e,t){const n={current:e.current,pageSize:e.pageSize};return Object.keys(t&&typeof t=="object"?t:{}).forEach(o=>{const i=e[o];typeof i!="function"&&(n[o]=i)}),n}function _W(e,t,n){const r=n&&typeof n=="object"?n:{},{total:o=0}=r,i=NW(r,["total"]),[a,l]=g.useState(()=>({current:"defaultCurrent"in i?i.defaultCurrent:1,pageSize:"defaultPageSize"in i?i.defaultPageSize:mO})),c=fc(a,i,{total:o>0?o:e}),u=Math.ceil((o||e)/c.pageSize);c.current>u&&(c.current=u||1);const d=(m,p)=>{l({current:m!=null?m:1,pageSize:p||c.pageSize})},f=(m,p)=>{var h;n&&((h=n.onChange)===null||h===void 0||h.call(n,m,p)),d(m,p),t(m,p||(c==null?void 0:c.pageSize))};return n===!1?[{},()=>{}]:[Object.assign(Object.assign({},c),{onChange:f}),d]}const cu="ascend",cv="descend",uu=e=>typeof e.sorter=="object"&&typeof e.sorter.multiple=="number"?e.sorter.multiple:!1,pO=e=>typeof e=="function"?e:e&&typeof e=="object"&&e.compare?e.compare:!1,TW=(e,t)=>t?e[e.indexOf(t)+1]:e[0],uv=(e,t,n)=>{let r=[];const o=(i,a)=>{r.push({column:i,key:Ko(i,a),multiplePriority:uu(i),sortOrder:i.sortOrder})};return(e||[]).forEach((i,a)=>{const l=ha(a,n);i.children?("sortOrder"in i&&o(i,l),r=[].concat(ge(r),ge(uv(i.children,t,l)))):i.sorter&&("sortOrder"in i?o(i,l):t&&i.defaultSortOrder&&r.push({column:i,key:Ko(i,l),multiplePriority:uu(i),sortOrder:i.defaultSortOrder}))}),r},vO=(e,t,n,r,o,i,a,l)=>(t||[]).map((u,d)=>{const f=ha(d,l);let m=u;if(m.sorter){const p=m.sortDirections||o,h=m.showSorterTooltip===void 0?a:m.showSorterTooltip,b=Ko(m,f),v=n.find(w=>{let{key:N}=w;return N===b}),y=v?v.sortOrder:null,C=TW(p,y);let x;if(u.sortIcon)x=u.sortIcon({sortOrder:y});else{const w=p.includes(cu)&&s.createElement(j_,{className:G(`${e}-column-sorter-up`,{active:y===cu})}),N=p.includes(cv)&&s.createElement(M_,{className:G(`${e}-column-sorter-down`,{active:y===cv})});x=s.createElement("span",{className:G(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!!(w&&N)})},s.createElement("span",{className:`${e}-column-sorter-inner`,"aria-hidden":"true"},w,N))}const{cancelSort:E,triggerAsc:S,triggerDesc:$}=i||{};let O=E;C===cv?O=$:C===cu&&(O=S);const I=typeof h=="object"?Object.assign({title:O},h):{title:O};m=Object.assign(Object.assign({},m),{className:G(m.className,{[`${e}-column-sort`]:y}),title:w=>{const N=`${e}-column-sorters`,_=s.createElement("span",{className:`${e}-column-title`},su(u.title,w)),P=s.createElement("div",{className:N},_,x);return h?typeof h!="boolean"&&(h==null?void 0:h.target)==="sorter-icon"?s.createElement("div",{className:`${N} ${e}-column-sorters-tooltip-target-sorter`},_,s.createElement(co,Object.assign({},I),x)):s.createElement(co,Object.assign({},I),P):P},onHeaderCell:w=>{var N;const _=((N=u.onHeaderCell)===null||N===void 0?void 0:N.call(u,w))||{},P=_.onClick,M=_.onKeyDown;_.onClick=A=>{r({column:u,key:b,sortOrder:C,multiplePriority:uu(u)}),P==null||P(A)},_.onKeyDown=A=>{A.keyCode===ye.ENTER&&(r({column:u,key:b,sortOrder:C,multiplePriority:uu(u)}),M==null||M(A))};const D=Y9(u.title,{}),T=D==null?void 0:D.toString();return y&&(_["aria-sort"]=y==="ascend"?"ascending":"descending"),_["aria-label"]=T||"",_.className=G(_.className,`${e}-column-has-sorters`),_.tabIndex=0,u.ellipsis&&(_.title=(D!=null?D:"").toString()),_}})}return"children"in m&&(m=Object.assign(Object.assign({},m),{children:vO(e,m.children,n,r,o,i,a,f)})),m}),gO=e=>{const{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}},hO=e=>{const t=e.filter(n=>{let{sortOrder:r}=n;return r}).map(gO);if(t.length===0&&e.length){const n=e.length-1;return Object.assign(Object.assign({},gO(e[n])),{column:void 0,order:void 0,field:void 0,columnKey:void 0})}return t.length<=1?t[0]||{}:t},dv=(e,t,n)=>{const r=t.slice().sort((a,l)=>l.multiplePriority-a.multiplePriority),o=e.slice(),i=r.filter(a=>{let{column:{sorter:l},sortOrder:c}=a;return pO(l)&&c});return i.length?o.sort((a,l)=>{for(let c=0;c<i.length;c+=1){const u=i[c],{column:{sorter:d},sortOrder:f}=u,m=pO(d);if(m&&f){const p=m(a,l,f);if(p!==0)return f===cu?p:-p}}return 0}).map(a=>{const l=a[n];return l?Object.assign(Object.assign({},a),{[n]:dv(l,t,n)}):a}):o},PW=e=>{const{prefixCls:t,mergedColumns:n,sortDirections:r,tableLocale:o,showSorterTooltip:i,onSorterChange:a}=e,[l,c]=s.useState(()=>uv(n,!0)),u=(b,v)=>{const y=[];return b.forEach((C,x)=>{const E=ha(x,v);if(y.push(Ko(C,E)),Array.isArray(C.children)){const S=u(C.children,E);y.push.apply(y,ge(S))}}),y},d=s.useMemo(()=>{let b=!0;const v=uv(n,!1);if(!v.length){const E=u(n);return l.filter(S=>{let{key:$}=S;return E.includes($)})}const y=[];function C(E){b?y.push(E):y.push(Object.assign(Object.assign({},E),{sortOrder:null}))}let x=null;return v.forEach(E=>{x===null?(C(E),E.sortOrder&&(E.multiplePriority===!1?b=!1:x=!0)):(x&&E.multiplePriority!==!1||(b=!1),C(E))}),y},[n,l]),f=s.useMemo(()=>{var b,v;const y=d.map(C=>{let{column:x,sortOrder:E}=C;return{column:x,order:E}});return{sortColumns:y,sortColumn:(b=y[0])===null||b===void 0?void 0:b.column,sortOrder:(v=y[0])===null||v===void 0?void 0:v.order}},[d]),m=b=>{let v;b.multiplePriority===!1||!d.length||d[0].multiplePriority===!1?v=[b]:v=[].concat(ge(d.filter(y=>{let{key:C}=y;return C!==b.key})),[b]),c(v),a(hO(v),v)};return[b=>vO(t,b,d,m,r,o,i),d,f,()=>hO(d)]},bO=(e,t)=>e.map(r=>{const o=Object.assign({},r);return o.title=su(r.title,t),"children"in o&&(o.children=bO(o.children,t)),o}),MW=e=>[s.useCallback(n=>bO(n,e),[e])],DW=Pw((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),AW=Rw((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),RW=e=>{const{componentCls:t,lineWidth:n,lineType:r,tableBorderColor:o,tableHeaderBg:i,tablePaddingVertical:a,tablePaddingHorizontal:l,calc:c}=e,u=`${U(n)} ${r} ${o}`,d=(f,m,p)=>({[`&${t}-${f}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${t}-expanded-row-fixed`]:{margin:`${U(c(m).mul(-1).equal())}
|
|
337
|
+
${U(c(c(p).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,[`
|
|
338
|
+
> ${t}-content,
|
|
339
|
+
> ${t}-header,
|
|
340
|
+
> ${t}-body,
|
|
341
|
+
> ${t}-summary
|
|
342
|
+
`]:{"> 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:`${U(c(a).mul(-1).equal())} ${U(c(c(l).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":{[`
|
|
343
|
+
> tr${t}-expanded-row,
|
|
344
|
+
> tr${t}-placeholder
|
|
345
|
+
`]:{"> 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 ${U(n)} 0 ${U(n)} ${i}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:u}}}},jW=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:Object.assign(Object.assign({},So),{wordBreak:"keep-all",[`
|
|
346
|
+
&${t}-cell-fix-left-last,
|
|
347
|
+
&${t}-cell-fix-right-first
|
|
348
|
+
`]:{overflow:"visible",[`${t}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${t}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},LW=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}}}}},zW=e=>{const{componentCls:t,antCls:n,motionDurationSlow:r,lineWidth:o,paddingXS:i,lineType:a,tableBorderColor:l,tableExpandIconBg:c,tableExpandColumnWidth:u,borderRadius:d,tablePaddingVertical:f,tablePaddingHorizontal:m,tableExpandedRowBg:p,paddingXXS:h,expandIconMarginTop:b,expandIconSize:v,expandIconHalfInner:y,expandIconScale:C,calc:x}=e,E=`${U(o)} ${a} ${l}`,S=x(h).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({},hf(e)),{position:"relative",float:"left",width:v,height:v,color:"inherit",lineHeight:U(v),background:c,border:E,borderRadius:d,transform:`scale(${C})`,"&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${r} ease-out`,content:'""'},"&::before":{top:y,insetInlineEnd:S,insetInlineStart:S,height:o},"&::after":{top:S,bottom:S,insetInlineStart:y,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:b,marginInlineEnd:i},[`tr${t}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:p}},[`${n}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"100%"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`${U(x(f).mul(-1).equal())} ${U(x(m).mul(-1).equal())}`,padding:`${U(f)} ${U(m)}`}}}},BW=e=>{const{componentCls:t,antCls:n,iconCls:r,tableFilterDropdownWidth:o,tableFilterDropdownSearchWidth:i,paddingXXS:a,paddingXS:l,colorText:c,lineWidth:u,lineType:d,tableBorderColor:f,headerIconColor:m,fontSizeSM:p,tablePaddingHorizontal:h,borderRadius:b,motionDurationSlow:v,colorIcon:y,colorPrimary:C,tableHeaderFilterActiveBg:x,colorTextDisabled:E,tableFilterDropdownBg:S,tableFilterDropdownHeight:$,controlItemBgHover:O,controlItemBgActive:I,boxShadowSecondary:w,filterDropdownMenuBg:N,calc:_}=e,P=`${n}-dropdown`,M=`${t}-filter-dropdown`,D=`${n}-tree`,T=`${U(u)} ${d} ${f}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:_(a).mul(-1).equal(),marginInline:`${U(a)} ${U(_(h).div(2).mul(-1).equal())}`,padding:`0 ${U(a)}`,color:m,fontSize:p,borderRadius:b,cursor:"pointer",transition:`all ${v}`,"&:hover":{color:y,background:x},"&.active":{color:C}}}},{[`${n}-dropdown`]:{[M]:Object.assign(Object.assign({},Ht(e)),{minWidth:o,backgroundColor:S,borderRadius:b,boxShadow:w,overflow:"hidden",[`${P}-menu`]:{maxHeight:$,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:N,"&:empty::after":{display:"block",padding:`${U(l)} 0`,color:E,fontSize:p,textAlign:"center",content:'"Not Found"'}},[`${M}-tree`]:{paddingBlock:`${U(l)} 0`,paddingInline:l,[D]:{padding:0},[`${D}-treenode ${D}-node-content-wrapper:hover`]:{backgroundColor:O},[`${D}-treenode-checkbox-checked ${D}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:I}}},[`${M}-search`]:{padding:l,borderBottom:T,"&-input":{input:{minWidth:i},[r]:{color:E}}},[`${M}-checkall`]:{width:"100%",marginBottom:a,marginInlineStart:a},[`${M}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${U(_(l).sub(u).equal())} ${U(l)}`,overflow:"hidden",borderTop:T}})}},{[`${n}-dropdown ${M}, ${M}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:l,color:c},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},kW=e=>{const{componentCls:t,lineWidth:n,colorSplit:r,motionDurationSlow:o,zIndexTableFixed:i,tableBg:a,zIndexTableSticky:l,calc:c}=e,u=r;return{[`${t}-wrapper`]:{[`
|
|
349
|
+
${t}-cell-fix-left,
|
|
350
|
+
${t}-cell-fix-right
|
|
351
|
+
`]:{position:"sticky !important",zIndex:i,background:a},[`
|
|
352
|
+
${t}-cell-fix-left-first::after,
|
|
353
|
+
${t}-cell-fix-left-last::after
|
|
354
|
+
`]:{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"},[`${t}-cell-fix-left-all::after`]:{display:"none"},[`
|
|
355
|
+
${t}-cell-fix-right-first::after,
|
|
356
|
+
${t}-cell-fix-right-last::after
|
|
357
|
+
`]:{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(l).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}`},[`
|
|
358
|
+
${t}-cell-fix-left-first::after,
|
|
359
|
+
${t}-cell-fix-left-last::after
|
|
360
|
+
`]:{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}`},[`
|
|
361
|
+
${t}-cell-fix-right-first::after,
|
|
362
|
+
${t}-cell-fix-right-last::after
|
|
363
|
+
`]:{boxShadow:`inset -10px 0 8px -8px ${u}`}},[`${t}-fixed-column-gapped`]:{[`
|
|
364
|
+
${t}-cell-fix-left-first::after,
|
|
365
|
+
${t}-cell-fix-left-last::after,
|
|
366
|
+
${t}-cell-fix-right-first::after,
|
|
367
|
+
${t}-cell-fix-right-last::after
|
|
368
|
+
`]:{boxShadow:"none"}}}}},FW=e=>{const{componentCls:t,antCls:n,margin:r}=e;return{[`${t}-wrapper`]:{[`${t}-pagination${n}-pagination`]:{margin:`${U(r)} 0`},[`${t}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},HW=e=>{const{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${U(n)} ${U(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 ${U(n)} ${U(n)}`}}}}},VW=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"}}}}},WW=e=>{const{componentCls:t,antCls:n,iconCls:r,fontSizeIcon:o,padding:i,paddingXS:a,headerIconColor:l,headerIconHoverColor:c,tableSelectionColumnWidth:u,tableSelectedRowBg:d,tableSelectedRowHoverBg:f,tableRowHoverBg:m,tablePaddingHorizontal:p,calc:h}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:u,[`&${t}-selection-col-with-dropdown`]:{width:h(u).add(o).add(h(i).div(4)).equal()}},[`${t}-bordered ${t}-selection-col`]:{width:h(u).add(h(a).mul(2)).equal(),[`&${t}-selection-col-with-dropdown`]:{width:h(u).add(o).add(h(i).div(4)).add(h(a).mul(2)).equal()}},[`
|
|
369
|
+
table tr th${t}-selection-column,
|
|
370
|
+
table tr td${t}-selection-column,
|
|
371
|
+
${t}-selection-column
|
|
372
|
+
`]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS,textAlign:"center",[`${n}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${t}-selection-column${t}-cell-fix-left`]:{zIndex:h(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:U(h(p).div(4).equal()),[r]:{color:l,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}}}}}},KW=e=>{const{componentCls:t,tableExpandColumnWidth:n,calc:r}=e,o=(i,a,l,c)=>({[`${t}${t}-${i}`]:{fontSize:c,[`
|
|
373
|
+
${t}-title,
|
|
374
|
+
${t}-footer,
|
|
375
|
+
${t}-cell,
|
|
376
|
+
${t}-thead > tr > th,
|
|
377
|
+
${t}-tbody > tr > th,
|
|
378
|
+
${t}-tbody > tr > td,
|
|
379
|
+
tfoot > tr > th,
|
|
380
|
+
tfoot > tr > td
|
|
381
|
+
`]:{padding:`${U(a)} ${U(l)}`},[`${t}-filter-trigger`]:{marginInlineEnd:U(r(l).div(2).mul(-1).equal())},[`${t}-expanded-row-fixed`]:{margin:`${U(r(a).mul(-1).equal())} ${U(r(l).mul(-1).equal())}`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:U(r(a).mul(-1).equal()),marginInline:`${U(r(n).sub(l).equal())} ${U(r(l).mul(-1).equal())}`}},[`${t}-selection-extra`]:{paddingInlineStart:U(r(l).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))}},qW=e=>{const{componentCls:t,marginXXS:n,fontSizeIcon:r,headerIconColor:o,headerIconHoverColor:i}=e;return{[`${t}-wrapper`]:{[`${t}-thead th${t}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}, left 0s`,"&:hover":{background:e.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:e.colorPrimary},[`
|
|
382
|
+
&${t}-cell-fix-left:hover,
|
|
383
|
+
&${t}-cell-fix-right:hover
|
|
384
|
+
`]:{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:i}}}},UW=e=>{const{componentCls:t,opacityLoading:n,tableScrollThumbBg:r,tableScrollThumbBgHover:o,tableScrollThumbSize:i,tableScrollBg:a,zIndexTableSticky:l,stickyScrollBarBorderRadius:c,lineWidth:u,lineType:d,tableBorderColor:f}=e,m=`${U(u)} ${d} ${f}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:l,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${U(i)} !important`,zIndex:l,display:"flex",alignItems:"center",background:a,borderTop:m,opacity:n,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:i,backgroundColor:r,borderRadius:c,transition:`all ${e.motionDurationSlow}, transform 0s`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:o}}}}}}},yO=e=>{const{componentCls:t,lineWidth:n,tableBorderColor:r,calc:o}=e,i=`${U(n)} ${e.lineType} ${r}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:i}}},[`div${t}-summary`]:{boxShadow:`0 ${U(o(n).mul(-1).equal())} 0 ${r}`}}}},GW=e=>{const{componentCls:t,motionDurationMid:n,lineWidth:r,lineType:o,tableBorderColor:i,calc:a}=e,l=`${U(r)} ${o} ${i}`,c=`${t}-expanded-row-cell`;return{[`${t}-wrapper`]:{[`${t}-tbody-virtual`]:{[`${t}-tbody-virtual-holder-inner`]:{[`
|
|
385
|
+
& > ${t}-row,
|
|
386
|
+
& > div:not(${t}-row) > ${t}-row
|
|
387
|
+
`]:{display:"flex",boxSizing:"border-box",width:"100%"}},[`${t}-cell`]:{borderBottom:l,transition:`background ${n}`},[`${t}-expanded-row`]:{[`${c}${c}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${U(r)})`,borderInlineEnd:"none"}}},[`${t}-bordered`]:{[`${t}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:l,position:"absolute"},[`${t}-cell`]:{borderInlineEnd:l,[`&${t}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:a(r).mul(-1).equal(),borderInlineStart:l}}},[`&${t}-virtual`]:{[`${t}-placeholder ${t}-cell`]:{borderInlineEnd:l,borderBottom:l}}}}}},XW=e=>{const{componentCls:t,fontWeightStrong:n,tablePaddingVertical:r,tablePaddingHorizontal:o,tableExpandColumnWidth:i,lineWidth:a,lineType:l,tableBorderColor:c,tableFontSize:u,tableBg:d,tableRadius:f,tableHeaderTextColor:m,motionDurationMid:p,tableHeaderBg:h,tableHeaderCellSplitColor:b,tableFooterTextColor:v,tableFooterBg:y,calc:C}=e,x=`${U(a)} ${l} ${c}`;return{[`${t}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},xo()),{[t]:Object.assign(Object.assign({},Ht(e)),{fontSize:u,background:d,borderRadius:`${U(f)} ${U(f)} 0 0`,scrollbarColor:`${e.tableScrollThumbBg} ${e.tableScrollBg}`}),table:{width:"100%",textAlign:"start",borderRadius:`${U(f)} ${U(f)} 0 0`,borderCollapse:"separate",borderSpacing:0},[`
|
|
388
|
+
${t}-cell,
|
|
389
|
+
${t}-thead > tr > th,
|
|
390
|
+
${t}-tbody > tr > th,
|
|
391
|
+
${t}-tbody > tr > td,
|
|
392
|
+
tfoot > tr > th,
|
|
393
|
+
tfoot > tr > td
|
|
394
|
+
`]:{position:"relative",padding:`${U(r)} ${U(o)}`,overflowWrap:"break-word"},[`${t}-title`]:{padding:`${U(r)} ${U(o)}`},[`${t}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:m,fontWeight:n,textAlign:"start",background:h,borderBottom:x,transition:`background ${p} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${t}-selection-column):not(${t}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:b,transform:"translateY(-50%)",transition:`background-color ${p}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${t}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${p}, border-color ${p}`,borderBottom:x,[`
|
|
395
|
+
> ${t}-wrapper:only-child,
|
|
396
|
+
> ${t}-expanded-row-fixed > ${t}-wrapper:only-child
|
|
397
|
+
`]:{[t]:{marginBlock:U(C(r).mul(-1).equal()),marginInline:`${U(C(i).sub(o).equal())}
|
|
398
|
+
${U(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:h,borderBottom:x,transition:`background ${p} ease`}}},[`${t}-footer`]:{padding:`${U(r)} ${U(o)}`,color:v,background:y}})}},QW=e=>{const{colorFillAlter:t,colorBgContainer:n,colorTextHeading:r,colorFillSecondary:o,colorFillContent:i,controlItemBgActive:a,controlItemBgActiveHover:l,padding:c,paddingSM:u,paddingXS:d,colorBorderSecondary:f,borderRadiusLG:m,controlHeight:p,colorTextPlaceholder:h,fontSize:b,fontSizeSM:v,lineHeight:y,lineWidth:C,colorIcon:x,colorIconHover:E,opacityLoading:S,controlInteractiveSize:$}=e,O=new kt(o).onBackground(n).toHexString(),I=new kt(i).onBackground(n).toHexString(),w=new kt(t).onBackground(n).toHexString(),N=new kt(x),_=new kt(E),P=$/2-C,M=P*2+C*3;return{headerBg:w,headerColor:r,headerSortActiveBg:O,headerSortHoverBg:I,bodySortBg:w,rowHoverBg:w,rowSelectedBg:a,rowSelectedHoverBg:l,rowExpandedBg:t,cellPaddingBlock:c,cellPaddingInline:c,cellPaddingBlockMD:u,cellPaddingInlineMD:d,cellPaddingBlockSM:d,cellPaddingInlineSM:d,borderColor:f,headerBorderRadius:m,footerBg:w,footerColor:r,cellFontSize:b,cellFontSizeMD:b,cellFontSizeSM:b,headerSplitColor:f,fixedHeaderSortActiveBg:O,headerFilterHoverBg:i,filterDropdownMenuBg:n,filterDropdownBg:n,expandIconBg:n,selectionColumnWidth:p,stickyScrollBarBg:h,stickyScrollBarBorderRadius:100,expandIconMarginTop:(b*y-C*3)/2-Math.ceil((v*1.4-C*3)/2),headerIconColor:N.clone().setA(N.a*S).toRgbString(),headerIconHoverColor:_.clone().setA(_.a*S).toRgbString(),expandIconHalfInner:P,expandIconSize:M,expandIconScale:$/M}},CO=2,YW=Dt("Table",e=>{const{colorTextHeading:t,colorSplit:n,colorBgContainer:r,controlInteractiveSize:o,headerBg:i,headerColor:a,headerSortActiveBg:l,headerSortHoverBg:c,bodySortBg:u,rowHoverBg:d,rowSelectedBg:f,rowSelectedHoverBg:m,rowExpandedBg:p,cellPaddingBlock:h,cellPaddingInline:b,cellPaddingBlockMD:v,cellPaddingInlineMD:y,cellPaddingBlockSM:C,cellPaddingInlineSM:x,borderColor:E,footerBg:S,footerColor:$,headerBorderRadius:O,cellFontSize:I,cellFontSizeMD:w,cellFontSizeSM:N,headerSplitColor:_,fixedHeaderSortActiveBg:P,headerFilterHoverBg:M,filterDropdownBg:D,expandIconBg:T,selectionColumnWidth:A,stickyScrollBarBg:R,calc:L}=e,j=xt(e,{tableFontSize:I,tableBg:r,tableRadius:O,tablePaddingVertical:h,tablePaddingHorizontal:b,tablePaddingVerticalMiddle:v,tablePaddingHorizontalMiddle:y,tablePaddingVerticalSmall:C,tablePaddingHorizontalSmall:x,tableBorderColor:E,tableHeaderTextColor:a,tableHeaderBg:i,tableFooterTextColor:$,tableFooterBg:S,tableHeaderCellSplitColor:_,tableHeaderSortBg:l,tableHeaderSortHoverBg:c,tableBodySortBg:u,tableFixedHeaderSortActiveBg:P,tableHeaderFilterActiveBg:M,tableFilterDropdownBg:D,tableRowHoverBg:d,tableSelectedRowBg:f,tableSelectedRowHoverBg:m,zIndexTableFixed:CO,zIndexTableSticky:L(CO).add(1).equal({unit:!1}),tableFontSizeMiddle:w,tableFontSizeSmall:N,tableSelectionColumnWidth:A,tableExpandIconBg:T,tableExpandColumnWidth:L(o).add(L(e.padding).mul(2)).equal(),tableExpandedRowBg:p,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:R,tableScrollThumbBgHover:t,tableScrollBg:n});return[XW(j),FW(j),yO(j),qW(j),BW(j),RW(j),HW(j),zW(j),yO(j),LW(j),WW(j),kW(j),UW(j),jW(j),KW(j),VW(j),GW(j)]},QW,{unitless:{expandIconScale:!0}}),JW=[],ZW=(e,t)=>{var n,r;const{prefixCls:o,className:i,rootClassName:a,style:l,size:c,bordered:u,dropdownPrefixCls:d,dataSource:f,pagination:m,rowSelection:p,rowKey:h="key",rowClassName:b,columns:v,children:y,childrenColumnName:C,onChange:x,getPopupContainer:E,loading:S,expandIcon:$,expandable:O,expandedRowRender:I,expandIconColumnIndex:w,indentSize:N,scroll:_,sortDirections:P,locale:M,showSorterTooltip:D={target:"full-header"},virtual:T}=e,A=gt("Table");process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="production"&&A(!(typeof h=="function"&&h.length>1),"usage","`index` parameter of `rowKey` function is deprecated. There is no guarantee that it will work as expected.");const R=s.useMemo(()=>v||Vp(y),[v,y]),L=s.useMemo(()=>R.some(Ae=>Ae.responsive),[R]),j=vl(L),z=s.useMemo(()=>{const Ae=new Set(Object.keys(j).filter(Qe=>j[Qe]));return R.filter(Qe=>!Qe.responsive||Qe.responsive.some(nt=>Ae.has(nt)))},[R,j]),B=tn(e,["className","style","columns"]),{locale:K=no,direction:W,table:k,renderEmpty:V,getPrefixCls:Q,getPopupContainer:J}=s.useContext(Xe),Y=qn(c),te=Object.assign(Object.assign({},K.Table),M),oe=f||JW,X=Q("table",o),F=Q("dropdown",d),[,ee]=Hn(),Z=On(X),[ne,re,se]=YW(X,Z),le=Object.assign(Object.assign({childrenColumnName:C,expandIconColumnIndex:w},O),{expandIcon:(n=O==null?void 0:O.expandIcon)!==null&&n!==void 0?n:(r=k==null?void 0:k.expandable)===null||r===void 0?void 0:r.expandIcon}),{childrenColumnName:he="children"}=le,fe=s.useMemo(()=>oe.some(Ae=>Ae==null?void 0:Ae[he])?"nest":I||O!=null&&O.expandedRowRender?"row":null,[oe]),ie={body:s.useRef(null)},ue=Q9(X),de=s.useRef(null),me=s.useRef(null);G9(t,()=>Object.assign(Object.assign({},me.current),{nativeElement:de.current}));const Ce=s.useMemo(()=>typeof h=="function"?h:Ae=>Ae==null?void 0:Ae[h],[h]),[Oe]=OW(oe,he,Ce),Te={},je=function(Ae,Qe){let nt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var ot,ht,jt,Wt;const Ct=Object.assign(Object.assign({},Te),Ae);nt&&((ot=Te.resetPagination)===null||ot===void 0||ot.call(Te),!((ht=Ct.pagination)===null||ht===void 0)&&ht.current&&(Ct.pagination.current=1),m&&((jt=m.onChange)===null||jt===void 0||jt.call(m,1,(Wt=Ct.pagination)===null||Wt===void 0?void 0:Wt.pageSize))),_&&_.scrollToFirstRowOnChange!==!1&&ie.body.current&&kA(0,{getContainer:()=>ie.body.current}),x==null||x(Ct.pagination,Ct.filters,Ct.sorter,{currentDataSource:sv(dv(oe,Ct.sorterStates,he),Ct.filterStates,he),action:Qe})},Ne=(Ae,Qe)=>{je({sorter:Ae,sorterStates:Qe},"sort",!1)},[Ie,xe,be,Ee]=PW({prefixCls:X,mergedColumns:z,onSorterChange:Ne,sortDirections:P||["ascend","descend"],tableLocale:te,showSorterTooltip:D}),$e=s.useMemo(()=>dv(oe,xe,he),[oe,xe]);Te.sorter=Ee(),Te.sorterStates=xe;const _e=(Ae,Qe)=>{je({filters:Ae,filterStates:Qe},"filter",!0)},[ve,Se,Je]=wW({prefixCls:X,locale:te,dropdownPrefixCls:F,mergedColumns:z,onFilterChange:_e,getPopupContainer:E||J,rootClassName:G(a,Z)}),it=sv($e,Se,he);Te.filters=Je,Te.filterStates=Se;const Nt=s.useMemo(()=>{const Ae={};return Object.keys(Je).forEach(Qe=>{Je[Qe]!==null&&(Ae[Qe]=Je[Qe])}),Object.assign(Object.assign({},be),{filters:Ae})},[be,Je]),[Tt]=MW(Nt),Gt=(Ae,Qe)=>{je({pagination:Object.assign(Object.assign({},Te.pagination),{current:Ae,pageSize:Qe})},"paginate")},[st,Pt]=_W(it.length,Gt,m);Te.pagination=m===!1?{}:IW(st,m),Te.resetPagination=Pt;const pt=s.useMemo(()=>{if(m===!1||!st.pageSize)return it;const{current:Ae=1,total:Qe,pageSize:nt=mO}=st;return process.env.NODE_ENV!=="production"&&A(Ae>0,"usage","`current` should be positive number."),it.length<Qe?it.length>nt?(process.env.NODE_ENV!=="production"&&A(!1,"usage","`dataSource` length is less than `pagination.total` but large than `pagination.pageSize`. Please make sure your config correct data with async mode."),it.slice((Ae-1)*nt,Ae*nt)):it:it.slice((Ae-1)*nt,Ae*nt)},[!!m,it,st==null?void 0:st.current,st==null?void 0:st.pageSize,st==null?void 0:st.total]),[et,ke]=q9({prefixCls:X,data:it,pageData:pt,getRowKey:Ce,getRecordByKey:Oe,expandType:fe,childrenColumnName:he,locale:te,getPopupContainer:E||J},p),Me=(Ae,Qe,nt)=>{let ot;return typeof b=="function"?ot=G(b(Ae,Qe,nt)):ot=G(b),G({[`${X}-row-selected`]:ke.has(Ce(Ae,Qe))},ot)};le.__PARENT_RENDER_ICON__=le.expandIcon,le.expandIcon=le.expandIcon||$||X9(te),fe==="nest"&&le.expandIconColumnIndex===void 0?le.expandIconColumnIndex=p?1:0:le.expandIconColumnIndex>0&&p&&(le.expandIconColumnIndex-=1),typeof le.indentSize!="number"&&(le.indentSize=typeof N=="number"?N:15);const Pe=s.useCallback(Ae=>Tt(et(ve(Ie(Ae)))),[Ie,ve,et]);let at,ct;if(m!==!1&&(st!=null&&st.total)){let Ae;st.size?Ae=st.size:Ae=Y==="small"||Y==="middle"?"small":void 0;const Qe=ht=>s.createElement(c7,Object.assign({},st,{className:G(`${X}-pagination ${X}-pagination-${ht}`,st.className),size:Ae})),nt=W==="rtl"?"left":"right",{position:ot}=st;if(ot!==null&&Array.isArray(ot)){const ht=ot.find(Ct=>Ct.includes("top")),jt=ot.find(Ct=>Ct.includes("bottom")),Wt=ot.every(Ct=>`${Ct}`=="none");!ht&&!jt&&!Wt&&(ct=Qe(nt)),ht&&(at=Qe(ht.toLowerCase().replace("top",""))),jt&&(ct=Qe(jt.toLowerCase().replace("bottom","")))}else ct=Qe(nt)}let Le;typeof S=="boolean"?Le={spinning:S}:typeof S=="object"&&(Le=Object.assign({spinning:!0},S));const we=G(se,Z,`${X}-wrapper`,k==null?void 0:k.className,{[`${X}-wrapper-rtl`]:W==="rtl"},i,a,re),ze=Object.assign(Object.assign({},k==null?void 0:k.style),l),Fe=typeof(M==null?void 0:M.emptyText)!="undefined"?M.emptyText:(V==null?void 0:V("Table"))||s.createElement(Ax,{componentName:"Table"}),Ve=T?AW:DW,Ze={},Ot=s.useMemo(()=>{const{fontSize:Ae,lineHeight:Qe,lineWidth:nt,padding:ot,paddingXS:ht,paddingSM:jt}=ee,Wt=Math.floor(Ae*Qe);switch(Y){case"middle":return jt*2+Wt+nt;case"small":return ht*2+Wt+nt;default:return ot*2+Wt+nt}},[ee,Y]);return T&&(Ze.listItemHeight=Ot),ne(s.createElement("div",{ref:de,className:we,style:ze},s.createElement(Zc,Object.assign({spinning:!1},Le),at,s.createElement(Ve,Object.assign({},Ze,B,{ref:me,columns:z,direction:W,expandable:le,prefixCls:X,className:G({[`${X}-middle`]:Y==="middle",[`${X}-small`]:Y==="small",[`${X}-bordered`]:u,[`${X}-empty`]:oe.length===0},se,Z,re),data:pt,rowKey:Ce,rowClassName:Me,emptyText:Fe,internalHooks:Pl,internalRefs:ie,transformColumns:Pe,getContainerWidth:ue})),ct)))},eK=s.forwardRef(ZW),tK=(e,t)=>{const n=s.useRef(0);return n.current+=1,s.createElement(eK,Object.assign({},e,{ref:t,_renderTimes:n.current}))},mo=s.forwardRef(tK);mo.SELECTION_COLUMN=fo,mo.EXPAND_COLUMN=Wr,mo.SELECTION_ALL=Yp,mo.SELECTION_INVERT=Jp,mo.SELECTION_NONE=Zp,mo.Column=R9,mo.ColumnGroup=j9,mo.Summary=uw,process.env.NODE_ENV!=="production"&&(mo.displayName="Table");const fv=mo,nK=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:o,calc:i}=e,a=i(r).sub(n).equal(),l=i(t).sub(n).equal();return{[o]:Object.assign(Object.assign({},Ht(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:a,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${U(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:l,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:a}}),[`${o}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},mv=e=>{const{lineWidth:t,fontSizeIcon:n,calc:r}=e,o=e.fontSizeSM;return xt(e,{tagFontSize:o,tagLineHeight:U(r(e.lineHeightSM).mul(o).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},pv=e=>({defaultBg:new kt(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),SO=Dt("Tag",e=>{const t=mv(e);return nK(t)},pv);var rK=globalThis&&globalThis.__rest||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 oK=s.forwardRef((e,t)=>{const{prefixCls:n,style:r,className:o,checked:i,onChange:a,onClick:l}=e,c=rK(e,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:u,tag:d}=s.useContext(Xe),f=y=>{a==null||a(!i),l==null||l(y)},m=u("tag",n),[p,h,b]=SO(m),v=G(m,`${m}-checkable`,{[`${m}-checkable-checked`]:i},d==null?void 0:d.className,o,h,b);return p(s.createElement("span",Object.assign({},c,{ref:t,style:Object.assign(Object.assign({},r),d==null?void 0:d.style),className:v,onClick:f})))}),iK=e=>u0(e,(t,n)=>{let{textColor:r,lightBorderColor:o,lightColor:i,darkColor:a}=n;return{[`${e.componentCls}${e.componentCls}-${t}`]:{color:r,background:i,borderColor:o,"&-inverse":{color:e.colorTextLightSolid,background:a,borderColor:a},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}}}),aK=Li(["Tag","preset"],e=>{const t=mv(e);return iK(t)},pv);function lK(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const du=(e,t,n)=>{const r=lK(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"}}}},sK=Li(["Tag","status"],e=>{const t=mv(e);return[du(t,"success","Success"),du(t,"processing","Info"),du(t,"error","Error"),du(t,"warning","Warning")]},pv);var cK=globalThis&&globalThis.__rest||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 vv=s.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:o,style:i,children:a,icon:l,color:c,onClose:u,bordered:d=!0,visible:f}=e,m=cK(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:p,direction:h,tag:b}=s.useContext(Xe),[v,y]=s.useState(!0),C=tn(m,["closeIcon","closable"]);process.env.NODE_ENV!=="production"&>("Tag").deprecated(!("visible"in e),"visible","visible && <Tag />"),s.useEffect(()=>{f!==void 0&&y(f)},[f]);const x=eE(c),E=WB(c),S=x||E,$=Object.assign(Object.assign({backgroundColor:c&&!S?c:void 0},b==null?void 0:b.style),i),O=p("tag",n),[I,w,N]=SO(O),_=G(O,b==null?void 0:b.className,{[`${O}-${c}`]:S,[`${O}-has-color`]:c&&!S,[`${O}-hidden`]:!v,[`${O}-rtl`]:h==="rtl",[`${O}-borderless`]:!d},r,o,w,N),P=L=>{L.stopPropagation(),u==null||u(L),!L.defaultPrevented&&y(!1)},[,M]=bm(Gi(e),Gi(b),{closable:!1,closeIconRender:L=>{const j=s.createElement("span",{className:`${O}-close-icon`,onClick:P},L);return Of(L,j,z=>({onClick:B=>{var K;(K=z==null?void 0:z.onClick)===null||K===void 0||K.call(z,B),P(B)},className:G(z==null?void 0:z.className,`${O}-close-icon`)}))}}),D=typeof m.onClick=="function"||a&&a.type==="a",T=l||null,A=T?s.createElement(s.Fragment,null,T,a&&s.createElement("span",null,a)):a,R=s.createElement("span",Object.assign({},C,{ref:t,className:_,style:$}),A,M,x&&s.createElement(aK,{key:"preset",prefixCls:O}),E&&s.createElement(sK,{key:"status",prefixCls:O}));return I(D?s.createElement(tl,{component:"Tag"},R):R)});process.env.NODE_ENV!=="production"&&(vv.displayName="Tag"),vv.CheckableTag=oK;const qo=vv,uK=(e,t,n,r)=>{const{titleMarginBottom:o,fontWeightStrong:i}=r;return{marginBottom:o,color:n,fontWeight:i,fontSize:e,lineHeight:t}},dK=e=>{const t=[1,2,3,4,5],n={};return t.forEach(r=>{n[`
|
|
399
|
+
h${r}&,
|
|
400
|
+
div&-h${r},
|
|
401
|
+
div&-h${r} > textarea,
|
|
402
|
+
h${r}
|
|
403
|
+
`]=uK(e[`fontSizeHeading${r}`],e[`lineHeightHeading${r}`],e.colorTextHeading,e)}),n},fK=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},hf(e)),{userSelect:"text",[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},mK=e=>({code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:ss[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:600},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,fontFamily:e.fontFamilyCode,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}}),pK=e=>{const{componentCls:t,paddingSM:n}=e,r=n;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),marginTop:e.calc(r).mul(-1).equal(),marginBottom:`calc(1em - ${U(r)})`},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorIcon,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}},vK=e=>({[`${e.componentCls}-copy-success`]:{"\n &,\n &:hover,\n &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),gK=()=>({"\n a&-ellipsis,\n span&-ellipsis\n ":{display:"inline-block",maxWidth:"100%"},"&-ellipsis-single-line":{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"},"> code":{paddingBlock:0,maxWidth:"calc(100% - 1.2em)",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"bottom",boxSizing:"content-box"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}}),hK=e=>{const{componentCls:t,titleMarginTop:n}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${t}-secondary`]:{color:e.colorTextDescription},[`&${t}-success`]:{color:e.colorSuccessText},[`&${t}-warning`]:{color:e.colorWarningText},[`&${t}-danger`]:{color:e.colorErrorText,"a&:active, a&:focus":{color:e.colorErrorTextActive},"a&:hover":{color:e.colorErrorTextHover}},[`&${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},"\n div&,\n p\n ":{marginBottom:"1em"}},dK(e)),{[`
|
|
404
|
+
& + h1${t},
|
|
405
|
+
& + h2${t},
|
|
406
|
+
& + h3${t},
|
|
407
|
+
& + h4${t},
|
|
408
|
+
& + h5${t}
|
|
409
|
+
`]:{marginTop:n},"\n div,\n ul,\n li,\n p,\n h1,\n h2,\n h3,\n h4,\n h5":{"\n + h1,\n + h2,\n + h3,\n + h4,\n + h5\n ":{marginTop:n}}}),mK(e)),fK(e)),{[`
|
|
410
|
+
${t}-expand,
|
|
411
|
+
${t}-collapse,
|
|
412
|
+
${t}-edit,
|
|
413
|
+
${t}-copy
|
|
414
|
+
`]:Object.assign(Object.assign({},hf(e)),{marginInlineStart:e.marginXXS})}),pK(e)),vK(e)),gK()),{"&-rtl":{direction:"rtl"}})}},xO=Dt("Typography",e=>[hK(e)],()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"})),bK=e=>{const{prefixCls:t,"aria-label":n,className:r,style:o,direction:i,maxLength:a,autoSize:l=!0,value:c,onSave:u,onCancel:d,onEnd:f,component:m,enterIcon:p=s.createElement(H2,null)}=e,h=s.useRef(null),b=s.useRef(!1),v=s.useRef(null),[y,C]=s.useState(c);s.useEffect(()=>{C(c)},[c]),s.useEffect(()=>{var D;if(!((D=h.current)===null||D===void 0)&&D.resizableTextArea){const{textArea:T}=h.current.resizableTextArea;T.focus();const{length:A}=T.value;T.setSelectionRange(A,A)}},[]);const x=D=>{let{target:T}=D;C(T.value.replace(/[\n\r]/g,""))},E=()=>{b.current=!0},S=()=>{b.current=!1},$=D=>{let{keyCode:T}=D;b.current||(v.current=T)},O=()=>{u(y.trim())},I=D=>{let{keyCode:T,ctrlKey:A,altKey:R,metaKey:L,shiftKey:j}=D;v.current!==T||b.current||A||R||L||j||(T===ye.ENTER?(O(),f==null||f()):T===ye.ESC&&d())},w=()=>{O()},[N,_,P]=xO(t),M=G(t,`${t}-edit-content`,{[`${t}-rtl`]:i==="rtl",[`${t}-${m}`]:!!m},r,_,P);return N(s.createElement("div",{className:M,style:o},s.createElement(I$,{ref:h,maxLength:a,value:y,onChange:x,onKeyDown:$,onKeyUp:I,onCompositionStart:E,onCompositionEnd:S,onBlur:w,"aria-label":n,rows:1,autoSize:l}),p!==null?Gn(p,{className:`${t}-edit-content-confirm`}):null))};var yK=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||n.forEach(function(o){e.addRange(o)}),t&&t.focus()}},CK=yK,EO={"text/plain":"Text","text/html":"Url",default:"Text"},SK="Copy to clipboard: #{key}, Enter";function xK(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function EK(e,t){var n,r,o,i,a,l,c=!1;t||(t={}),n=t.debug||!1;try{o=CK(),i=document.createRange(),a=document.getSelection(),l=document.createElement("span"),l.textContent=e,l.ariaHidden="true",l.style.all="unset",l.style.position="fixed",l.style.top=0,l.style.clip="rect(0, 0, 0, 0)",l.style.whiteSpace="pre",l.style.webkitUserSelect="text",l.style.MozUserSelect="text",l.style.msUserSelect="text",l.style.userSelect="text",l.addEventListener("copy",function(d){if(d.stopPropagation(),t.format)if(d.preventDefault(),typeof d.clipboardData=="undefined"){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var f=EO[t.format]||EO.default;window.clipboardData.setData(f,e)}else d.clipboardData.clearData(),d.clipboardData.setData(t.format,e);t.onCopy&&(d.preventDefault(),t.onCopy(d.clipboardData))}),document.body.appendChild(l),i.selectNodeContents(l),a.addRange(i);var u=document.execCommand("copy");if(!u)throw new Error("copy command was unsuccessful");c=!0}catch(d){n&&console.error("unable to copy using execCommand: ",d),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),c=!0}catch(f){n&&console.error("unable to copy using clipboardData: ",f),n&&console.error("falling back to prompt"),r=xK("message"in t?t.message:SK),window.prompt(r,e)}}finally{a&&(typeof a.removeRange=="function"?a.removeRange(i):a.removeAllRanges()),l&&document.body.removeChild(l),o()}return c}var $K=EK;const wK=Yo($K);var OK=globalThis&&globalThis.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function l(d){try{u(r.next(d))}catch(f){a(f)}}function c(d){try{u(r.throw(d))}catch(f){a(f)}}function u(d){d.done?i(d.value):o(d.value).then(l,c)}u((r=r.apply(e,t||[])).next())})};const NK=e=>{let{copyConfig:t,children:n}=e;const[r,o]=s.useState(!1),[i,a]=s.useState(!1),l=s.useRef(null),c=()=>{l.current&&clearTimeout(l.current)},u={};t.format&&(u.format=t.format),s.useEffect(()=>c,[]);const d=qt(f=>OK(void 0,void 0,void 0,function*(){var m;f==null||f.preventDefault(),f==null||f.stopPropagation(),a(!0);try{const p=typeof t.text=="function"?yield t.text():t.text;wK(p||S7(n,!0).join("")||"",u),a(!1),o(!0),c(),l.current=setTimeout(()=>{o(!1)},3e3),(m=t.onCopy)===null||m===void 0||m.call(t,f)}catch(p){throw a(!1),p}}));return{copied:r,copyLoading:i,onClick:d}};function gv(e,t){return s.useMemo(()=>{const n=!!e;return[n,Object.assign(Object.assign({},t),n&&typeof e=="object"?e:null)]},[e])}const IK=e=>{const t=g.useRef(void 0);return g.useEffect(()=>{t.current=e}),t.current},_K=(e,t,n)=>g.useMemo(()=>e===!0?{title:t!=null?t:n}:g.isValidElement(e)?{title:e}:typeof e=="object"?Object.assign({title:t!=null?t:n},e):{title:e},[e,t,n]);var TK=globalThis&&globalThis.__rest||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 $O=s.forwardRef((e,t)=>{const{prefixCls:n,component:r="article",className:o,rootClassName:i,setContentRef:a,children:l,direction:c,style:u}=e,d=TK(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:f,direction:m,className:p,style:h}=An("typography"),b=c!=null?c:m,v=a?Wn(t,a):t,y=f("typography",n);process.env.NODE_ENV!=="production"&>("Typography").deprecated(!a,"setContentRef","ref");const[C,x,E]=xO(y),S=G(y,p,{[`${y}-rtl`]:b==="rtl"},o,i,x,E),$=Object.assign(Object.assign({},h),u);return C(s.createElement(r,Object.assign({className:S,style:$,ref:v},d),l))});process.env.NODE_ENV!=="production"&&($O.displayName="Typography");const wO=$O;function OO(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function hv(e,t,n){return e===!0||e===void 0?t:e||n&&t}function PK(e){const t=document.createElement("em");e.appendChild(t),process.env.NODE_ENV!=="production"&&(t.className="ant-typography-css-ellipsis-content-measure");const n=e.getBoundingClientRect(),r=t.getBoundingClientRect();return e.removeChild(t),n.left>r.left||r.right>n.right||n.top>r.top||r.bottom>n.bottom}const bv=e=>["string","number"].includes(typeof e),MK=e=>{let{prefixCls:t,copied:n,locale:r,iconOnly:o,tooltips:i,icon:a,tabIndex:l,onCopy:c,loading:u}=e;const d=OO(i),f=OO(a),{copied:m,copy:p}=r!=null?r:{},h=n?m:p,b=hv(d[n?1:0],h),v=typeof b=="string"?b:h;return s.createElement(co,{title:b},s.createElement("button",{type:"button",className:G(`${t}-copy`,{[`${t}-copy-success`]:n,[`${t}-copy-icon-only`]:o}),onClick:c,"aria-label":v,tabIndex:l},n?hv(f[1],s.createElement(ps,null),!0):hv(f[0],u?s.createElement(ti,null):s.createElement(f2,null),!0)))},fu=s.forwardRef((e,t)=>{let{style:n,children:r}=e;const o=s.useRef(null);return s.useImperativeHandle(t,()=>({isExceed:()=>{const i=o.current;return i.scrollHeight>i.clientHeight},getHeight:()=>o.current.clientHeight})),s.createElement("span",{"aria-hidden":!0,ref:o,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},n)},r)}),DK=e=>e.reduce((t,n)=>t+(bv(n)?String(n).length:1),0);function NO(e,t){let n=0;const r=[];for(let o=0;o<e.length;o+=1){if(n===t)return r;const i=e[o],l=bv(i)?String(i).length:1,c=n+l;if(c>t){const u=t-n;return r.push(String(i).slice(0,u)),r}r.push(i),n=c}return e}const yv=0,Cv=1,Sv=2,xv=3,IO=4,mu={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function AK(e){const{enableMeasure:t,width:n,text:r,children:o,rows:i,expanded:a,miscDeps:l,onEllipsis:c}=e,u=s.useMemo(()=>Tn(r),[r]),d=s.useMemo(()=>DK(u),[r]),f=s.useMemo(()=>o(u,!1),[r]),[m,p]=s.useState(null),h=s.useRef(null),b=s.useRef(null),v=s.useRef(null),y=s.useRef(null),C=s.useRef(null),[x,E]=s.useState(!1),[S,$]=s.useState(yv),[O,I]=s.useState(0),[w,N]=s.useState(null);wt(()=>{$(t&&n&&d?Cv:yv)},[n,r,i,t,u]),wt(()=>{var D,T,A,R;if(S===Cv){$(Sv);const L=b.current&&getComputedStyle(b.current).whiteSpace;N(L)}else if(S===Sv){const L=!!(!((D=v.current)===null||D===void 0)&&D.isExceed());$(L?xv:IO),p(L?[0,d]:null),E(L);const j=((T=v.current)===null||T===void 0?void 0:T.getHeight())||0,z=i===1?0:((A=y.current)===null||A===void 0?void 0:A.getHeight())||0,B=((R=C.current)===null||R===void 0?void 0:R.getHeight())||0,K=Math.max(j,z+B);I(K+1),c(L)}},[S]);const _=m?Math.ceil((m[0]+m[1])/2):0;wt(()=>{var D;const[T,A]=m||[0,0];if(T!==A){const L=(((D=h.current)===null||D===void 0?void 0:D.getHeight())||0)>O;let j=_;A-T===1&&(j=L?T:A),p(L?[T,j]:[j,A])}},[m,_]);const P=s.useMemo(()=>{if(!t)return o(u,!1);if(S!==xv||!m||m[0]!==m[1]){const D=o(u,!1);return[IO,yv].includes(S)?D:s.createElement("span",{style:Object.assign(Object.assign({},mu),{WebkitLineClamp:i})},D)}return o(a?u:NO(u,m[0]),x)},[a,S,m,u].concat(ge(l))),M={width:n,margin:0,padding:0,whiteSpace:w==="nowrap"?"normal":"inherit"};return s.createElement(s.Fragment,null,P,S===Sv&&s.createElement(s.Fragment,null,s.createElement(fu,{style:Object.assign(Object.assign(Object.assign({},M),mu),{WebkitLineClamp:i}),ref:v},f),s.createElement(fu,{style:Object.assign(Object.assign(Object.assign({},M),mu),{WebkitLineClamp:i-1}),ref:y},f),s.createElement(fu,{style:Object.assign(Object.assign(Object.assign({},M),mu),{WebkitLineClamp:1}),ref:C},o([],!0))),S===xv&&m&&m[0]!==m[1]&&s.createElement(fu,{style:Object.assign(Object.assign({},M),{top:400}),ref:h},o(NO(u,_),!0)),S===Cv&&s.createElement("span",{style:{whiteSpace:"inherit"},ref:b}))}const _O=e=>{let{enableEllipsis:t,isEllipsis:n,children:r,tooltipProps:o}=e;return!(o!=null&&o.title)||!t?r:s.createElement(co,Object.assign({open:n?void 0:!1},o),r)};process.env.NODE_ENV!=="production"&&(_O.displayName="EllipsisTooltip");const RK=_O;var jK=globalThis&&globalThis.__rest||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 LK(e,t){let{mark:n,code:r,underline:o,delete:i,strong:a,keyboard:l,italic:c}=e,u=t;function d(f,m){m&&(u=s.createElement(f,{},u))}return d("strong",a),d("u",o),d("del",i),d("code",r),d("mark",n),d("kbd",l),d("i",c),u}const zK="...",pu=s.forwardRef((e,t)=>{var n;const{prefixCls:r,className:o,style:i,type:a,disabled:l,children:c,ellipsis:u,editable:d,copyable:f,component:m,title:p}=e,h=jK(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:b,direction:v}=s.useContext(Xe),[y]=ro("Text"),C=s.useRef(null),x=s.useRef(null),E=b("typography",r),S=tn(h,["mark","code","delete","underline","strong","keyboard","italic"]),[$,O]=gv(d),[I,w]=ln(!1,{value:O.editing}),{triggerType:N=["icon"]}=O,_=ve=>{var Se;ve&&((Se=O.onStart)===null||Se===void 0||Se.call(O)),w(ve)},P=IK(I);wt(()=>{var ve;!I&&P&&((ve=x.current)===null||ve===void 0||ve.focus())},[I]);const M=ve=>{ve==null||ve.preventDefault(),_(!0)},D=ve=>{var Se;(Se=O.onChange)===null||Se===void 0||Se.call(O,ve),_(!1)},T=()=>{var ve;(ve=O.onCancel)===null||ve===void 0||ve.call(O),_(!1)},[A,R]=gv(f),{copied:L,copyLoading:j,onClick:z}=NK({copyConfig:R,children:c}),[B,K]=s.useState(!1),[W,k]=s.useState(!1),[V,Q]=s.useState(!1),[J,Y]=s.useState(!1),[te,oe]=s.useState(!0),[X,F]=gv(u,{expandable:!1,symbol:ve=>ve?y==null?void 0:y.collapse:y==null?void 0:y.expand}),[ee,Z]=ln(F.defaultExpanded||!1,{value:F.expanded}),ne=X&&(!ee||F.expandable==="collapsible"),{rows:re=1}=F,se=s.useMemo(()=>ne&&(F.suffix!==void 0||F.onEllipsis||F.expandable||$||A),[ne,F,$,A]);wt(()=>{X&&!se&&(K(ym("webkitLineClamp")),k(ym("textOverflow")))},[se,X]);const[le,he]=s.useState(ne),fe=s.useMemo(()=>se?!1:re===1?W:B,[se,W,B]);wt(()=>{he(fe&&ne)},[fe,ne]);const ie=ne&&(le?J:V),ue=ne&&re===1&&le,de=ne&&re>1&&le,me=(ve,Se)=>{var Je;Z(Se.expanded),(Je=F.onExpand)===null||Je===void 0||Je.call(F,ve,Se)},[Ce,Oe]=s.useState(0),Te=ve=>{let{offsetWidth:Se}=ve;Oe(Se)},je=ve=>{var Se;Q(ve),V!==ve&&((Se=F.onEllipsis)===null||Se===void 0||Se.call(F,ve))};s.useEffect(()=>{const ve=C.current;if(X&&le&&ve){const Se=PK(ve);J!==Se&&Y(Se)}},[X,le,c,de,te,Ce]),s.useEffect(()=>{const ve=C.current;if(typeof IntersectionObserver=="undefined"||!ve||!le||!ne)return;const Se=new IntersectionObserver(()=>{oe(!!ve.offsetParent)});return Se.observe(ve),()=>{Se.disconnect()}},[le,ne]);const Ne=_K(F.tooltip,O.text,c),Ie=s.useMemo(()=>{if(!(!X||le))return[O.text,c,p,Ne.title].find(bv)},[X,le,p,Ne.title,ie]);if(I)return s.createElement(bK,{value:(n=O.text)!==null&&n!==void 0?n:typeof c=="string"?c:"",onSave:D,onCancel:T,onEnd:O.onEnd,prefixCls:E,className:o,style:i,direction:v,component:m,maxLength:O.maxLength,autoSize:O.autoSize,enterIcon:O.enterIcon});const xe=()=>{const{expandable:ve,symbol:Se}=F;return ve?s.createElement("button",{type:"button",key:"expand",className:`${E}-${ee?"collapse":"expand"}`,onClick:Je=>me(Je,{expanded:!ee}),"aria-label":ee?y.collapse:y==null?void 0:y.expand},typeof Se=="function"?Se(ee):Se):null},be=()=>{if(!$)return;const{icon:ve,tooltip:Se,tabIndex:Je}=O,it=Tn(Se)[0]||(y==null?void 0:y.edit),Nt=typeof it=="string"?it:"";return N.includes("icon")?s.createElement(co,{key:"edit",title:Se===!1?"":it},s.createElement("button",{type:"button",ref:x,className:`${E}-edit`,onClick:M,"aria-label":Nt,tabIndex:Je},ve||s.createElement(Rd,{role:"button"}))):null},Ee=()=>A?s.createElement(MK,Object.assign({key:"copy"},R,{prefixCls:E,copied:L,locale:y,onCopy:z,loading:j,iconOnly:c==null})):null,$e=ve=>[ve&&xe(),be(),Ee()],_e=ve=>[ve&&!ee&&s.createElement("span",{"aria-hidden":!0,key:"ellipsis"},zK),F.suffix,$e(ve)];return s.createElement(Kn,{onResize:Te,disabled:!ne},ve=>s.createElement(RK,{tooltipProps:Ne,enableEllipsis:ne,isEllipsis:ie},s.createElement(wO,Object.assign({className:G({[`${E}-${a}`]:a,[`${E}-disabled`]:l,[`${E}-ellipsis`]:X,[`${E}-ellipsis-single-line`]:ue,[`${E}-ellipsis-multiple-line`]:de},o),prefixCls:r,style:Object.assign(Object.assign({},i),{WebkitLineClamp:de?re:void 0}),component:m,ref:Wn(ve,C,t),direction:v,onClick:N.includes("text")?M:void 0,"aria-label":Ie==null?void 0:Ie.toString(),title:p},S),s.createElement(AK,{enableMeasure:ne&&!le,text:c,rows:re,width:Ce,onEllipsis:je,expanded:ee,miscDeps:[L,ee,j,$,A,y]},(Se,Je)=>LK(e,s.createElement(s.Fragment,null,Se.length>0&&Je&&!ee&&Ie?s.createElement("span",{key:"show-content","aria-hidden":!0},Se):Se,_e(Je)))))))});var BK=globalThis&&globalThis.__rest||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 kK=s.forwardRef((e,t)=>{var{ellipsis:n,rel:r}=e,o=BK(e,["ellipsis","rel"]);if(process.env.NODE_ENV!=="production"){const a=gt("Typography.Link");process.env.NODE_ENV!=="production"&&a(typeof n!="object","usage","`ellipsis` only supports boolean value.")}const i=Object.assign(Object.assign({},o),{rel:r===void 0&&o.target==="_blank"?"noopener noreferrer":r});return delete i.navigate,s.createElement(pu,Object.assign({},i,{ref:t,ellipsis:!!n,component:"a"}))}),FK=s.forwardRef((e,t)=>s.createElement(pu,Object.assign({ref:t},e,{component:"div"})));var HK=globalThis&&globalThis.__rest||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 VK=(e,t)=>{var{ellipsis:n}=e,r=HK(e,["ellipsis"]);const o=s.useMemo(()=>n&&typeof n=="object"?tn(n,["expandable","rows"]):n,[n]);if(process.env.NODE_ENV!=="production"){const i=gt("Typography.Text");process.env.NODE_ENV!=="production"&&i(typeof n!="object"||!n||!("expandable"in n)&&!("rows"in n),"usage","`ellipsis` do not support `expandable` or `rows` props.")}return s.createElement(pu,Object.assign({ref:t},r,{ellipsis:o,component:"span"}))},WK=s.forwardRef(VK);var KK=globalThis&&globalThis.__rest||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 TO=[1,2,3,4,5],qK=s.forwardRef((e,t)=>{const{level:n=1}=e,r=KK(e,["level"]);if(process.env.NODE_ENV!=="production"){const i=gt("Typography.Title");process.env.NODE_ENV!=="production"&&i(TO.includes(n),"usage","Title only accept `1 | 2 | 3 | 4 | 5` as `level` value. And `5` need 4.6.0+ version.")}const o=TO.includes(n)?`h${n}`:"h1";return s.createElement(pu,Object.assign({ref:t},r,{component:o}))}),Dl=wO;Dl.Text=WK,Dl.Link=kK,Dl.Title=qK,Dl.Paragraph=FK;const bt=Dl,Al={stepText:"_stepText_14qm3_1",titleContainer:"_titleContainer_14qm3_5",titleIcon:"_titleIcon_14qm3_9",titleText:"_titleText_14qm3_14"},{Text:PO}=bt;function Ev({currentStep:e,icon:t,title:n,totalSteps:r}){return g.createElement(Zt,{className:Al.container,direction:"vertical"},g.createElement(PO,{className:Al.stepText},"Step ",e,"/",r),g.createElement(Zt,{className:Al.titleContainer},g.createElement(t,{className:Al.titleIcon}),g.createElement(PO,{className:Al.titleText},n)))}Ev.propTypes={currentStep:pe.number.isRequired,icon:pe.elementType.isRequired,title:pe.string.isRequired,totalSteps:pe.number.isRequired};function UK({applicationData:e}){switch(e.status){case Ii.APPLICATION_FORM:return g.createElement(g.Fragment,null,"Application Form");default:return null}}function MO({currentTab:e,jobProfileId:t,utmId:n,utmMedium:r,utmSource:o}){const[i,a]=g.useState(!0),{data:l,isLoading:c}=qg({jobProfileId:t,utmMedium:r,utmSource:o,currentTab:e,utmId:n}),u=()=>{a(!1)};return g.createElement(Z1,{closable:{placement:"end"},loading:c,onClose:u,open:i,placement:"bottom",title:g.createElement(Ev,{currentStep:1,icon:Ma,title:"Required Details",totalSteps:2})},g.createElement(UK,{applicationData:l}))}MO.propTypes={currentTab:pe.string.isRequired,jobProfileId:pe.number.isRequired,utmId:pe.string,utmMedium:pe.string,utmSource:pe.string};const DO="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAACqElEQVR4Xu2bMUpEQRBEXQwNFLyKuYE38KDewMDcqyx8A0NRlAWFDbqKGYuezzP9tdMz7/X0Lrt42Lbt84K/NgQOCGnj4mcjCOnlAyHNfCAEId0INNsP7yEIaUag2XYiN+T48jR87Nv7x6E1OuxBOQBCFEqnzGhTKKUQolBCyDml0e5kZP1h2gFGhz0ol5GRpVBiZDGyjD7xox3GRYc9KOQYWQolRhYjy+gTP9phXHTYg0KOkaVQYmQxsow+8aMdxkWHPSjkGFkKJUYWI8voEz/aYVx02INCbpmRpRzmvzOj3zgr+0OIQon3EINSMMoNCcJWSiFEoRTMICQIWymFEIVSMIOQIGylFEIUSsEMQoKwlVIIUSgFMwgJwlZKIUShFMwgJAhbKYUQhVIwg5AgbKUUQhRKwUwLITN+aZvBbBTGKucof6Ba5SCV9FXOgZDK5OTn1U1HyGTg1XIIORFiZFWtYj6vOqtaDiEVIfM5Qha76pVfbkhFyHzODeGGmC2jxavG4mOvxnFaCiGL3XRuyLTe1xbihnBDtE5xU1VnVevxsbciZD5HyMSrfnl1beI/j9/cPQytsb0+D73++8Uf72/Da1SNFXlTrzYxfMrQAjPGXsUCIYZMhBiwElGEJCgbNRBiwEpEEZKgbNRAiAErEUVIgrJRAyEGrEQUIQnKRg2EGLASUYQkKBs1EGLASkQRkqBs1ECIASsRRUiCslFjN0KMM+8+2uL3kN1TNg6IEANWIoqQBGWjBkIMWIkoQhKUjRoIMWAloghJUDZqIMSAlYgiJEHZqIEQA1YiipAEZaMGQgxYiShCEpSNGggxYCWiCElQNmogxICViA4LSWySGr8Eyn/YAVaWAEKyvMtqCCkRZQMIyfIuqyGkRJQNICTLu6yGkBJRNvAFGmsSbsnlaLoAAAAASUVORK5CYII=",vu=({logo:e,company:t,companiesList:n,companyName:r,size:o=48})=>{const[i,a]=g.useState(()=>{var c;return e||(t&&t[0]&&((c=n[t[0]])!=null&&c.logo)?n[t[0]].logo:DO)}),l=()=>{a(DO)};return g.createElement(Ym,{size:o,src:i,alt:r,onError:l,shape:"square"})};vu.propTypes={logo:pe.string,company:pe.arrayOf(pe.number),companiesList:pe.object,companyName:pe.string,size:pe.number},vu.defaultProps={logo:null,company:[],companiesList:{},companyName:""};const Si={header:"_header_akxwc_1",jobTitle:"_jobTitle_akxwc_6",titleContainer:"_titleContainer_akxwc_14",titleContainerExpanded:"_titleContainerExpanded_akxwc_19",titleContainerCollapsed:"_titleContainerCollapsed_akxwc_23",companyName:"_companyName_akxwc_27",actions:"_actions_akxwc_32"},{Title:GK,Text:XK}=bt,$v=({title:e,companyName:t,isExpanded:n})=>g.createElement(Zt,{direction:"vertical",size:4,className:G(Si.titleContainer,{[Si.titleContainerExpanded]:n,[Si.titleContainerCollapsed]:!n})},g.createElement(GK,{level:5,className:Si.jobTitle,ellipsis:{rows:1}},e),g.createElement(XK,{type:"secondary",ellipsis:!0,className:Si.companyName},t));$v.propTypes={title:pe.string.isRequired,companyName:pe.string.isRequired,isExpanded:pe.bool},$v.defaultProps={isExpanded:!1};const AO=(e,t)=>{let n=0;return e!=null&&e.data&&Object.values(e.data).forEach(r=>{r.contests&&r.contests.cleared===!1&&(n+=1),r.skills&&r.skills.cleared===!1&&(n+=1)}),t!=null&&t.data&&Object.values(t.data).forEach(r=>{r.data&&r.data.cleared===!1&&(n+=1)}),n},wv=(e,t)=>["experience","notice_period"].every(r=>{if(r===t)return!0;const o=e[r];return!o||o.isEligible}),Ov={quick_apply:"quick_apply",eligible:"eligible",ineligible:"ineligible",steps_to_apply:"steps_to_apply",notice_period_mismatch:"notice_period_mismatch",expired:"expired"},QK=["Rejected","Offer Withdrawn","To Be Offered","Offer Accepted","Offer Declined","Joined","Offer Received"],Nv=(e,t)=>{const{isRelevant:n,expiry:r,jobProfileStatus:o}=e,{isEligible:i,reasons:a=[]}=t||{};if(r&&(new Date(r)<new Date||o!=="active"))return{tag:"expired",text:"Job Expired",icon:"ClockCircleOutlined",color:"#5a2780",antdColor:"default"};const c=a.reduce((h,b)=>(h[b.label]=b,h),{}),u=c.experience,d=c.notice_period,f=c.skills,m=c.tech_stacks;if(i&&n)return{tag:"quick_apply",text:"Quick Apply",icon:"CheckCircleOutlined",color:"#20a164",antdColor:"success"};if(i)return{tag:"eligible",text:"Eligible",icon:"CheckCircleOutlined",color:"#20a164",antdColor:"success"};if(u&&!u.isEligible)return{tag:"ineligible",text:"Ineligible",icon:"CloseCircleOutlined",color:"#a42137",antdColor:"error"};if(d&&!d.isEligible&&wv(c,"notice_period"))return{tag:"notice_period_mismatch",text:"Notice Period Mismatch",icon:"CloseCircleOutlined",color:"#a42137",antdColor:"error"};const p=AO(f,m);return p>0&&wv(c,"skills")?{tag:"steps_to_apply",text:`${p} ${p===1?"step":"steps"} pending`,icon:"RocketOutlined",color:"#20a164",antdColor:"success",count:p}:{tag:Ov.ineligible,text:"Ineligible",icon:"CloseCircleOutlined",color:"#a42137",antdColor:"error"}},YK={tag:"_tag_ueyiz_1"},JK={CheckCircleOutlined:Ph,CloseCircleOutlined:i2,ClockCircleOutlined:Ah,RocketOutlined:hP},gu=({jobData:e,currentTab:t})=>{const n=Nv(e,e.eligibilityCriteria);if(!n)return null;const r=JK[n.icon];return g.createElement(qo,{icon:r&&g.createElement(r,null),color:n.antdColor,className:YK.tag,style:n.tag==="expired"?{color:n.color,borderColor:n.color}:{}},n.text)};gu.propTypes={jobData:pe.shape({isRelevant:pe.bool,expiry:pe.string,jobProfileStatus:pe.string,eligibilityCriteria:pe.shape({isEligible:pe.bool,reasons:pe.arrayOf(pe.shape({label:pe.string,isEligible:pe.bool,data:pe.object}))})}).isRequired,currentTab:pe.string},gu.defaultProps={currentTab:"all"};const Iv=({jobData:e,currentTab:t})=>g.createElement("div",{className:Si.actions},g.createElement(gu,{jobData:e,currentTab:t}));Iv.propTypes={jobData:pe.object.isRequired,currentTab:pe.string},Iv.defaultProps={currentTab:"all"};const _v=({jobData:e,companiesList:t,currentTab:n,isExpanded:r})=>g.createElement(Oo,{gutter:[12,8],className:Si.header},g.createElement(Ln,{flex:"auto"},g.createElement(Oo,{gutter:12,align:"top",wrap:!1},g.createElement(Ln,null,g.createElement(vu,{logo:e.logo,company:e.company,companiesList:t,companyName:e.name})),g.createElement(Ln,{flex:"auto"},g.createElement($v,{title:e.title,companyName:e.name,isExpanded:r})))),g.createElement(Ln,null,g.createElement(Iv,{jobData:e,currentTab:n})));_v.propTypes={jobData:pe.object.isRequired,companiesList:pe.object,currentTab:pe.string,isExpanded:pe.bool},_v.defaultProps={companiesList:{},currentTab:"all",isExpanded:!1};const Tv=(e,t)=>{if(e===0&&t===0)return"Fresher";const n=Math.floor(e/12),r=Math.floor(t/12);return n===r?`${n}y Experience`:r===0?"Fresher":n===0?`${r}y Experience`:`${n}y - ${r}y Experience`},Pv=({minCtc:e,maxCtc:t,openForDiscussionCtc:n,isInternship:r,stipend:o,userCountry:i="IN"})=>{if(r)return o?`₹${o}/month`:"Unpaid Internship";const a=i==="US"?"$":"₹",l=i==="US"?"K":"L";return e===null||t===null||e===void 0||t===void 0?`${a} (Flexible)`:n?`${a}${e}${l}+ (Negotiable)`:e===t?`${a}${e}${l} CTC`:`${a}${e}${l} - ${a}${t}${l} CTC`},Mv=e=>!e||e===0?"Immediate":`${e} days Notice Period`,RO=e=>{if(!e)return"";const t=new Date(e),n=String(t.getDate()).padStart(2,"0"),r=String(t.getMonth()+1).padStart(2,"0"),o=t.getFullYear();return`${n}/${r}/${o}`},Dv=e=>{if(!e)return null;const t=e.split(",").map(n=>n.trim()).filter(Boolean);return t.length===0?null:t.length===1?t[0]:`${t[0]} +${t.length-1} more`},jO={saveButton:"_saveButton_15f6f_1",savedButton:"_savedButton_15f6f_2"},hu=({jobProfileId:e,applicationStatus:t,applicationLastUpdatedAt:n,onSave:r,disabled:o=!1})=>{const[i,a]=g.useState(!1),l=t==="Saved",c=u=>sr(this,null,function*(){u.stopPropagation(),a(!0);try{yield r(e,l?"unsave":"save")}catch(d){console.error("Save action failed:",d)}finally{a(!1)}});return l&&n?g.createElement(on,{type:"text",icon:g.createElement(Ob,{twoToneColor:"#8c8c8c"}),onClick:c,disabled:o||i,loading:i,className:jO.savedButton,style:{color:"#8c8c8c"},size:"small"},"Saved on ",RO(n)):g.createElement(on,{type:"text",icon:g.createElement(SP,null),onClick:c,disabled:o||i,loading:i,className:jO.saveButton,size:"small"},l?"Saved":"Save")};hu.propTypes={jobProfileId:pe.number.isRequired,applicationStatus:pe.string,applicationLastUpdatedAt:pe.string,onSave:pe.func.isRequired,disabled:pe.bool},hu.defaultProps={applicationStatus:"Not Applied",applicationLastUpdatedAt:null,disabled:!1};const Rl={body:"_body_1tlme_1",detailsRowContainer:"_detailsRowContainer_1tlme_7",detailsRow:"_detailsRow_1tlme_7",detailText:"_detailText_1tlme_23",saveButtonWrapper:"_saveButtonWrapper_1tlme_29"},{Text:ZK}=bt,LO=({text:e})=>e?g.createElement(ZK,{className:Rl.detailText},e):null;LO.propTypes={text:pe.string};const Av=({jobData:e,cardConfig:t,userCountry:n,onSave:r,selectedJobId:o})=>{const{preferredCities:i,minExperience:a,maxExperience:l,minCtc:c,maxCtc:u,openForDiscussionCtc:d,isInternship:f,stipend:m,preferredNoticePeriod:p}=e,h=Dv(i),b=o===null&&t.isExperienceCtcAvailable?Tv(a,l):null,v=t.isExperienceCtcAvailable?Pv({minCtc:c,maxCtc:u,openForDiscussionCtc:d,isInternship:f,stipend:m,userCountry:n}):null,y=o===null&&t.isNoticePeriodAvailable?Mv(p):null,C=[h&&{text:h},b&&{text:b},v&&{text:v},y&&{text:y}].filter(Boolean);return g.createElement("div",{className:Rl.detailsRowContainer},C.length>0&&g.createElement(Zt,{split:g.createElement(Sp,{type:"vertical"}),className:Rl.detailsRow},C.map((x,E)=>g.createElement(LO,{key:E,text:x.text}))),g.createElement("div",{className:Rl.saveButtonWrapper},g.createElement(hu,{jobProfileId:e.id,applicationStatus:e.applicationStatus,applicationLastUpdatedAt:e.applicationLastUpdatedAt,onSave:r})))};Av.propTypes={jobData:pe.shape({id:pe.number.isRequired,preferredCities:pe.string,minExperience:pe.number,maxExperience:pe.number,minCtc:pe.number,maxCtc:pe.number,openForDiscussionCtc:pe.bool,isInternship:pe.bool,stipend:pe.string,preferredNoticePeriod:pe.number,applicationStatus:pe.string,applicationLastUpdatedAt:pe.string}).isRequired,cardConfig:pe.shape({isExperienceCtcAvailable:pe.bool,isNoticePeriodAvailable:pe.bool}).isRequired,userCountry:pe.oneOf(["IN","US"]),onSave:pe.func.isRequired,selectedJobId:pe.number},Av.defaultProps={userCountry:"IN",selectedJobId:null};const Rv=({jobData:e,cardConfig:t,userCountry:n,onSave:r,selectedJobId:o})=>g.createElement("div",{className:Rl.body},g.createElement(Av,{jobData:e,cardConfig:t,userCountry:n,onSave:r,selectedJobId:o}));Rv.propTypes={jobData:pe.object.isRequired,cardConfig:pe.object.isRequired,userCountry:pe.oneOf(["IN","US"]),onSave:pe.func.isRequired,selectedJobId:pe.number},Rv.defaultProps={userCountry:"IN",selectedJobId:null};const bu={jobCard:"_jobCard_1orgi_1",expired:"_expired_1orgi_11",active:"_active_1orgi_14",archived:"_archived_1orgi_28",cardContent:"_cardContent_1orgi_37"},yu=({jobData:e,isActive:t,currentTab:n,onClick:r,onSave:o,companiesList:i,userCountry:a,className:l,selectedJobId:c})=>{const{cardConfig:u,shouldShowBody:d}=Gg({currentTab:n,isActive:t,jobData:e}),f=()=>{r&&r(e.id)};return g.createElement(Vc,{className:G(bu.jobCard,{[bu.active]:t,[bu.archived]:e.applicationStatus==="Archived"},l),onClick:f},g.createElement("div",{className:bu.cardContent},g.createElement(_v,{jobData:e,companiesList:i,currentTab:n,isExpanded:!c}),d&&g.createElement(Rv,{jobData:e,cardConfig:u,userCountry:a,onSave:o,selectedJobId:c})))};yu.propTypes={jobData:pe.shape({id:pe.number.isRequired,title:pe.string.isRequired,name:pe.string.isRequired,company:pe.arrayOf(pe.number),logo:pe.string,preferredCities:pe.string,expiry:pe.string,jobProfileStatus:pe.string,isRelevant:pe.bool,applicationStatus:pe.string,applicationLastUpdatedAt:pe.string,minExperience:pe.number,maxExperience:pe.number,minCtc:pe.number,maxCtc:pe.number,preferredNoticePeriod:pe.number,openForDiscussionCtc:pe.bool,isInternship:pe.bool,stipend:pe.string,eligibilityCriteria:pe.shape({isEligible:pe.bool,reasons:pe.arrayOf(pe.object)})}).isRequired,isActive:pe.bool,currentTab:pe.string,onClick:pe.func,onSave:pe.func.isRequired,companiesList:pe.object,userCountry:pe.oneOf(["IN","US"]),className:pe.string,selectedJobId:pe.number},yu.defaultProps={isActive:!1,currentTab:"all",onClick:null,companiesList:{},userCountry:"IN",className:""};const jv=e=>e&&e.replace(/_([a-z])/g,t=>t[1].toUpperCase()),jl=e=>!e||typeof e!="string"?e:e.toLowerCase().split(/[\s_]+/).map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(" "),eq=(e,t)=>{if(!t||typeof t!="string")return t;switch(e){case"camelCase":return jv(t);case"titleCase":return jl(t);default:return t}},Cu=e=>{if(e==null)return e;if(Array.isArray(e))return e.map(Cu);if(typeof e=="object"){const t={};return Object.keys(e).forEach(n=>{const r=jv(n);t[r]=Cu(e[n])}),t}return e},tq=Yr.injectEndpoints({endpoints:e=>({getJobPreview:e.query({query:t=>`/job-tracker/job_profile/${t}/`,providesTags:(t,n,r)=>[{type:"JobPreview",id:r},{type:"JobPreview",id:"LIST"}],transformResponse:t=>{var a,l,c;const n=Cu(t),r=((a=n==null?void 0:n.data)==null?void 0:a.attributes)||{},o=((c=(l=n==null?void 0:n.included)==null?void 0:l.find(u=>u.type==="company"))==null?void 0:c.attributes)||{},i=r.contestSkills||[];return{jobData:ya(fr({},r),{contestSkills:i,name:r.name||(o==null?void 0:o.name)||"Company"}),companyData:o,highlights:r.highlights,eligibilityCriteria:r.eligibilityCriteria}}})}),overrideExisting:!0}),{useGetJobPreviewQuery:zO}=tq,BO=g.createContext(null),nq=({country:e="IN",jobId:t,openMockInterviewModal:n=(a,l)=>{console.log("Method not implemented. We should get it from MIT"),console.log(a,l)},openResume:r=()=>{console.log("Method not implemented. We should get it from MIT")},skip:o=!1,children:i})=>{const{data:a,isLoading:l,error:c,refetch:u}=zO(t,{skip:!t||o}),[d,f]=g.useState(),m={activeTab:d,setActiveTab:f,country:e,jobId:t,data:a,isLoading:l,error:c,refetch:u,openMockInterviewModal:n,openResume:r,jobData:a==null?void 0:a.jobData,companyData:a==null?void 0:a.companyData,highlights:a==null?void 0:a.highlights,eligibilityCriteria:a==null?void 0:a.eligibilityCriteria};return g.createElement(BO.Provider,{value:m},i)},sn=()=>{const e=g.useContext(BO);if(!e)throw new Error("useJobPreview must be used within a JobPreviewProvider");return e},xi={descriptionContainer:"_descriptionContainer_sd7fu_1",container:"_container_sd7fu_6",recruiterAvatar:"_recruiterAvatar_sd7fu_10",recruiterCardContent:"_recruiterCardContent_sd7fu_14",recruiterName:"_recruiterName_sd7fu_18",recruiterEmail:"_recruiterEmail_sd7fu_24"},rq=({recruiter:e})=>{const{name:t,avatar:n,email:r}=e||{};return g.createElement(Vc,{size:"small"},g.createElement(Zt,{direction:"horizontal"},g.createElement(Ym,{size:48,src:n,className:xi.recruiterAvatar}),g.createElement(Zt,{direction:"vertical",className:xi.recruiterCardContent},g.createElement(bt.Text,{className:xi.recruiterName},t),g.createElement(bt.Link,{className:xi.recruiterEmail,href:`mailto:${r}`},g.createElement(qT,null),"Send Email To Recruiter"))))},oq=()=>{const{jobData:e}=sn(),{recruiters:t}=e||{};return g.createElement(Zt,null,t.map((n,r)=>g.createElement(rq,{key:r,recruiter:n})))},iq=()=>{const{jobData:e}=sn(),{applicationTimeline:t}=e||{},{timeline:n}=t||{},r=n.map(i=>({title:i.stageName,description:i.stageComments})),o=n.findIndex(i=>i.stageStatus==="ongoing");return g.createElement(ow,{current:o,items:r,direction:"vertical"})},aq=()=>g.createElement(Zt,{direction:"vertical",size:"large",className:xi.descriptionContainer},g.createElement(bt.Title,{level:4},"Your Application Status"),g.createElement(iq,null)),lq=()=>{const{jobData:e}=sn(),{recruiters:t}=e||{};return!t||t.length===0?null:g.createElement(Zt,{direction:"vertical",size:"large",className:xi.descriptionContainer},g.createElement(bt.Title,{level:4},"Recruiter Details"),g.createElement(oq,null))},sq=()=>g.createElement(Zt,{direction:"vertical",size:"large",className:xi.container},g.createElement(aq,null),g.createElement(lq,null)),Lv={bookmark:"https://d2beiqkhq929f0.cloudfront.net/public_assets/assets/000/170/276/original/BookmarkSimple.svg?1765444708",exit:"https://d2beiqkhq929f0.cloudfront.net/public_assets/assets/000/170/344/original/ExportOutlined.svg?1765460782",airplay:"https://d2beiqkhq929f0.cloudfront.net/public_assets/assets/000/170/451/original/Vector.svg?1765523747",monitor:"https://d2beiqkhq929f0.cloudfront.net/public_assets/assets/000/170/455/original/Vector_%281%29.svg?1765526679"},Ll={actionBanner:"_actionBanner_13z26_1",actionBannerIcon:"_actionBannerIcon_13z26_12",actionBannerContent:"_actionBannerContent_13z26_17",actionBannerTitle:"_actionBannerTitle_13z26_23",actionBannerDescription:"_actionBannerDescription_13z26_29",actionBannerButton:"_actionBannerButton_13z26_33"},kO=({icon:e,title:t,description:n,buttonText:r,buttonIcon:o,className:i,onClick:a,isLoading:l})=>g.createElement("div",{className:G(Ll.actionBanner,i)},e,g.createElement("div",{className:Ll.actionBannerContent},g.createElement("span",{className:Ll.actionBannerTitle},t),g.createElement("span",{className:Ll.actionBannerDescription},n)),g.createElement(on,{icon:o,type:"primary",className:Ll.actionBannerButton,onClick:a,loading:l},r)),FO={monitorBanner:"_monitorBanner_gxbq6_1",monitorIcon:"_monitorIcon_gxbq6_7"},cq="https://companion.scaler.com/interview-experiences",HO=()=>{const{jobData:e,companyData:t}=sn(),{appliedOn:n,title:r,applicationStatus:o}=e||{},i=o===Ii.WITHDRAWN,{name:a}=t||{},l=g.useCallback(()=>{globalThis.open(`${cq}?company=${encodeURIComponent(a)}&role=${encodeURIComponent(r)}`,"_blank")},[a,r]);return!n||i?null:g.createElement(kO,{icon:g.createElement("img",{src:Lv.monitor,className:FO.monitorIcon}),title:"We've got the resources you need for this role",description:"Explore Interview Experiences from Scaler learners who have attempted this before",buttonText:"Explore",buttonIcon:g.createElement(Ad,null),className:FO.monitorBanner,onClick:l})},fn={jobDescriptionTab:"_jobDescriptionTab_kg97i_1",contentContainer:"_contentContainer_kg97i_5",descriptionTitle:"_descriptionTitle_kg97i_10",descriptionText:"_descriptionText_kg97i_18",descriptionLink:"_descriptionLink_kg97i_32",list:"_list_kg97i_36",steps:"_steps_kg97i_40",descriptionContainer:"_descriptionContainer_kg97i_44",container:"_container_kg97i_49"},uq=()=>{const{companyData:e}=sn(),{name:t,employeeCount:n,companyVision:r,location:o,category:i,companyWebsite:a}=e||{};return g.createElement(Zt,{className:fn.contentContainer,direction:"vertical",size:"large"},g.createElement(bt.Text,{className:fn.descriptionTitle},"About ",t,a&&g.createElement(bt.Link,{className:fn.descriptionLink,href:a,target:"_blank"},g.createElement(Zt,null,g.createElement(fb,null),"Company Website"))),r&&g.createElement(bt.Paragraph,{className:fn.descriptionText},g.createElement("div",{dangerouslySetInnerHTML:{__html:r}})),o&&g.createElement(Zt,null,g.createElement(bt.Text,{className:fn.descriptionTitle},"Office Location:"),g.createElement(bt.Text,{className:fn.descriptionText},o)),i&&g.createElement(Zt,null,g.createElement(bt.Text,{className:fn.descriptionTitle},"Company Category:"),g.createElement(bt.Text,{className:fn.descriptionText},jl(i))),n&&g.createElement(Zt,null,g.createElement(bt.Text,{className:fn.descriptionTitle},"No. of Employees:"),g.createElement(bt.Text,{className:fn.descriptionText},n)))},zv={collapsableContainer:"_collapsableContainer_1bjjt_1",collapsed:"_collapsed_1bjjt_5",viewMore:"_viewMore_1bjjt_21"},dq=({html:e,contentClassName:t})=>{const[n,r]=g.useState(!1);return g.createElement("div",{className:zv.collapsableContainer},g.createElement("div",{className:G(t,{[zv.collapsed]:!n}),dangerouslySetInnerHTML:{__html:e}}),g.createElement(bt.Link,{className:zv.viewMore,onClick:()=>r(!n)},n?"View Less":"View More"))},fq=()=>{const{jobData:e}=sn(),{jobDescText:t,jobDesc:n}=e||{};return g.createElement(Zt,{className:fn.contentContainer,direction:"vertical",size:"large"},g.createElement(bt.Text,{className:fn.descriptionTitle},"About the Role",n&&g.createElement(bt.Link,{className:fn.descriptionLink,href:n,target:"_blank"},g.createElement(Zt,null,g.createElement(fb,null),"Know More"))),t&&g.createElement(dq,{html:t,contentClassName:fn.descriptionText}))},Bv={collapsableContainer:"_collapsableContainer_1bjjt_1",collapsed:"_collapsed_1bjjt_5",viewMore:"_viewMore_1bjjt_21"},mq=({children:e,contentClassName:t})=>{const[n,r]=g.useState(!1);return g.createElement("div",{className:Bv.collapsableContainer},g.createElement("div",{className:G(t,{[Bv.collapsed]:!n})},e),g.createElement(bt.Link,{className:Bv.viewMore,onClick:()=>r(!n)},n?"View Less":"View More"))},pq=()=>{const{jobData:e,country:t}=sn(),{benefits:n,visaSponsorship:r}=e||{},o=r==="yes";return!n&&!o||t!=="US"?null:g.createElement(Zt,{className:fn.contentContainer,direction:"vertical",size:"large"},g.createElement(bt.Text,{className:fn.descriptionTitle},"Benefits"),g.createElement(mq,{contentClassName:fn.descriptionText},g.createElement("ul",{className:fn.list},n==null?void 0:n.map(i=>g.createElement("li",{key:i},i)),o&&g.createElement("li",null,"Visa sponsorship available"))))},vq=()=>{const{jobData:e}=sn(),{hiringSteps:t}=e||{};if(!t)return null;const n=t==null?void 0:t.map(r=>({title:g.createElement("span",{className:fn.descriptionTitle},r.stepName),description:g.createElement("span",{className:fn.descriptionText},r.interviewType)}));return g.createElement(ow,{className:fn.steps,current:-1,progressDot:!0,items:n})},gq=()=>g.createElement(Zt,{direction:"vertical",size:"large",className:fn.descriptionContainer},g.createElement(bt.Title,{level:4},"Job Description"),g.createElement(uq,null),g.createElement(fq,null),g.createElement(pq,null)),hq=()=>g.createElement(Zt,{direction:"vertical",size:"large",className:fn.descriptionContainer},g.createElement(bt.Title,{level:4},"Post Application Process"),g.createElement(vq,null)),bq=()=>g.createElement(Zt,{direction:"vertical",size:"large",className:fn.container},g.createElement(gq,null),g.createElement(hq,null),g.createElement(HO,null)),Uo={container:"_container_1froy_1",dot:"_dot_1froy_5",successDot:"_successDot_1froy_11",errorDot:"_errorDot_1froy_15"},Dr={completed:"Completed",pending:"Pending",notRequired:"Not Required"},yq=[{title:"Skill Type",dataIndex:"skillType"},{title:"Status",dataIndex:"status"},{title:"Contests",dataIndex:"contests"},{title:"Mock Interview",dataIndex:"mockInterview"}],Cq=({status:e})=>g.createElement(qo,{color:e===Dr.completed?"success":"warning"},e),Sq=({contestDetails:e})=>{if(!e)return Dr.notRequired;const{cleared:t,joinLink:n}=e;return t?g.createElement(Zt,null,g.createElement("div",{className:G(Uo.dot,Uo.successDot)}),g.createElement(bt.Text,null,"Success")):g.createElement(bt.Link,{href:n,underline:!0},"Attempt Contest")},xq=({mockInterviewDetails:e,skillId:t,skillName:n})=>{const{openMockInterviewModal:r}=sn();if(!e)return Dr.notRequired;const{cleared:o}=e;return o?g.createElement(Zt,null,g.createElement("div",{className:G(Uo.dot,Uo.successDot)}),g.createElement(bt.Text,null,"Success")):g.createElement(bt.Link,{onClick:()=>r(t,n),underline:!0},"Schedule Interview")},Eq=()=>{const{jobData:e}=sn(),{eligibilityCriteria:t}=e||{},{reasons:n}=t||{},r=n==null?void 0:n.find(i=>i.label==="skills");if(!r)return null;const o=Object.entries(r.data).map(([i,a])=>{const l=a.contests,c=l?a.contests.cleared?Dr.completed:Dr.pending:Dr.notRequired,u=a.skills,d=u?a.skills.cleared?Dr.completed:Dr.pending:Dr.notRequired,f=[c,d].every(m=>m!==Dr.pending)?Dr.completed:Dr.pending;return{skillType:i,status:g.createElement(Cq,{status:f}),contests:g.createElement(Sq,{contestDetails:l}),mockInterview:g.createElement(xq,{mockInterviewDetails:u,skillId:a.skillId,skillName:a.skillName})}});return g.createElement(fv,{title:()=>g.createElement(bt.Text,{strong:!0},"Scaler certifications you need to apply"),columns:yq,dataSource:o,pagination:!1})},zl={added:"Added",missing:"Missing"},$q=[{title:"Stack Type",dataIndex:"stackType"},{title:"Experience (Yrs)",dataIndex:"experience"},{title:"Status",dataIndex:"status"},{title:"",dataIndex:"action"}],wq=({status:e})=>g.createElement(Zt,null,g.createElement("div",{className:G(Uo.dot,{[Uo.successDot]:e===zl.added,[Uo.errorDot]:e===zl.missing})}),g.createElement(bt.Text,null,e)),Oq=({status:e})=>{const{openResume:t}=sn();return e===zl.added?null:g.createElement(bt.Link,{onClick:t,underline:!0},"Add Skill")},Nq=()=>{const{jobData:e}=sn(),{eligibilityCriteria:t}=e||{},{reasons:n}=t||{},r=n==null?void 0:n.find(i=>i.label==="tech_stacks");if(!r)return null;const o=Object.entries(r.data).map(([i,a])=>{var c;const l=(c=a.data)!=null&&c.cleared?zl.added:zl.missing;return{stackType:i,experience:`${Math.floor(a.proficiencyPeriod/12)}+`,status:g.createElement(wq,{status:l}),action:g.createElement(Oq,{status:l})}});return g.createElement(fv,{title:()=>g.createElement(bt.Text,{strong:!0},"Skills and Toolsets in your Resume"),columns:$q,dataSource:o,pagination:!1})},Iq=(e,t)=>{const n=`${Math.floor(e/12)}y`,r=e%12===0?"":` ${e%12}m`,o=`${n}${r}`;if(!t)return`${o}+ Experience`;const i=`${Math.floor(t/12)}y`,a=t%12===0?"":`${t%12}m`;return`${o} - ${i} ${a} Experience`},_q=e=>e===0?"Immediate":e==null?"NA":`${e} days`,Tq={placed_mentee:()=>"CTC greater than 1.6x of current offer",diversity:()=>"Female Candidates Only",experience:({minExperience:e,maxExperience:t})=>Iq(e,t),notice_period:({preferredNoticePeriod:e})=>`${_q(e)} Notice Period`},kv={eligible:"Eligible",ineligible:"Ineligible"},Pq=[{title:"Requirement",dataIndex:"requirement"},{title:"Details",dataIndex:"details"},{title:"Status",dataIndex:"status"}],Mq=({status:e})=>e===kv.eligible?g.createElement(qo,{color:"success"},"Eligible"):g.createElement(qo,{color:"error"},"Ineligible"),Dq=()=>{const{jobData:e}=sn(),{eligibilityCriteria:t}=e||{},{reasons:n}=t||{},r=n==null?void 0:n.filter(i=>i.label!=="skills"&&i.showText);if(!r)return null;const o=r.map(i=>{const a=i.isEligible?kv.eligible:kv.ineligible;return{requirement:jl(i.label),details:Tq[i.label](e),status:g.createElement(Mq,{status:a})}});return g.createElement(fv,{title:()=>g.createElement(bt.Text,{strong:!0},"Skills and Toolsets in your Resume"),columns:Pq,dataSource:o,pagination:!1})},Aq=()=>{const{jobData:e}=sn(),{eligibilityCriteria:t}=e||{};return t?g.createElement(Zt,{direction:"vertical",size:"large",className:Uo.container},g.createElement(bt.Title,{level:4},"Job Check-list"),g.createElement(Eq,null),g.createElement(Nq,null),g.createElement(Dq,null)):null},VO={bodyContainer:"_bodyContainer_1nalq_1",tabs:"_tabs_1nalq_5"},Rq=()=>{var a;const{activeTab:e,setActiveTab:t,jobData:n}=sn(),{applicationTimeline:r}=n||{},i=[((a=r==null?void 0:r.timeline)==null?void 0:a.length)>0&&{key:ri.APPLICATION_TIMELINE.key,label:ri.APPLICATION_TIMELINE.label,children:g.createElement(sq,null)},{key:ri.ABOUT_ROLE.key,label:ri.ABOUT_ROLE.label,children:g.createElement(bq,null)},{key:ri.REQUIREMENTS.key,label:ri.REQUIREMENTS.label,children:g.createElement(Aq,null)}].filter(Boolean);return g.createElement("div",{className:VO.bodyContainer},g.createElement(bp,{activeKey:e,className:VO.tabs,items:i,onChange:t}))},jq=Yr.injectEndpoints({endpoints:e=>({updateApplicationStatus:e.mutation({query:t=>({url:"/job-tracker/update-application/",method:"PATCH",body:t}),invalidatesTags:(t,n,{job_profile_id:r})=>[{type:"JobPreview",id:r}]})})}),{useUpdateApplicationStatusMutation:WO}=jq,Go={appliedButton:"_appliedButton_1f028_1",saveButton:"_saveButton_1f028_9",savedButton:"_savedButton_1f028_9",jobActions:"_jobActions_1f028_30",withdrawalReasonForm:"_withdrawalReasonForm_1f028_36",warningIcon:"_warningIcon_1f028_41",withdrawalReasonRadioGroup:"_withdrawalReasonRadioGroup_1f028_45",withdrawnText:"_withdrawnText_1f028_52"},Lq=({withdrawalReason:e,setWithdrawalReason:t,withdrawalMessage:n,setWithdrawalMessage:r})=>{const o=a=>{const l=a.target.value;t(l),l!=="Other"&&r("")},i=a=>{r(a.target.value)};return g.createElement(g.Fragment,null,g.createElement(bt.Text,null,"Please note that once withdrawn you will not be allowed to apply for this job again"),g.createElement(Vt,{className:Go.withdrawalReasonForm},g.createElement(Vt.Item,{layout:"vertical",label:"Select reason"},g.createElement(br.Group,{className:Go.withdrawalReasonRadioGroup,onChange:o,value:e},Oa.map(a=>g.createElement(br,{key:a.value,value:a.value},a.label))),e==="Other"&&g.createElement(Vt.Item,null,g.createElement(hi.TextArea,{value:n,onChange:i,placeholder:"Please specify your reason"})))))},zq=()=>{var v;const{jobId:e,jobData:t,refetch:n}=sn(),{applicationStatus:r,appliedOn:o}=t||{},[i,a]=g.useState(!1),[l,c]=g.useState((v=Oa[0])==null?void 0:v.value),[u,d]=g.useState(""),[f]=WO(),{message:m}=KS.useApp(),p=()=>sr(this,null,function*(){var C,x;const y=yield f({job_profile_id:e,update_action:"withdraw",message:u||l});(C=y==null?void 0:y.data)!=null&&C.success?(m.success("Application withdrawn successfully"),a(!1),c((x=Oa[0])==null?void 0:x.value),d(""),n()):m.error("Failed to withdraw application")}),h=()=>{var y;a(!1),c((y=Oa[0])==null?void 0:y.value),d("")},b=()=>{var y;c((y=Oa[0])==null?void 0:y.value),d(""),a(!0)};return r===Ii.WITHDRAWN?g.createElement("div",{className:Go.withdrawnText},g.createElement(Mo,null),"Your Application has been Withdrawn"):o&&!QK.includes(r)?g.createElement(g.Fragment,null,g.createElement(on,{icon:g.createElement("img",{src:Lv.exit,alt:"exit"}),onClick:b,className:Go.withdrawButton,ghost:!0,type:"primary",size:"large"},"Withdraw Application"),g.createElement(q$,{title:g.createElement(Zt,null,g.createElement(UP,{className:Go.warningIcon}),g.createElement(bt.Text,null,"Withdraw My Application")),open:i,onOk:p,onCancel:h},g.createElement(Lq,{withdrawalReason:l,setWithdrawalReason:c,withdrawalMessage:u,setWithdrawalMessage:d}))):null},Bq=()=>{const{jobId:e,jobData:t,refetch:n}=sn(),[r,{isLoading:o}]=WO(),{applicationStatus:i,appliedOn:a}=t||{},l=i===Ii.SAVED,c=()=>sr(this,null,function*(){var d;const u=yield r({job_profile_id:e,update_action:"save"});(d=u==null?void 0:u.data)!=null&&d.success?(Vr.success("Application saved successfully"),n()):Vr.error("Failed to save application")});return a?null:l?g.createElement(on,{icon:g.createElement("img",{src:Lv.bookmark,alt:"bookmark"}),type:"text",size:"large",disabled:!0},"Saved"):g.createElement(on,{icon:g.createElement(Ob,null),type:"primary",ghost:!0,size:"large",onClick:c,loading:o},"Save")},kq=()=>{const{jobData:e,eligibilityCriteria:t}=sn(),{appliedOn:n,applicationStatus:r}=e||{},{isEligible:o}=t||{},i=r===Ii.WITHDRAWN,a=()=>{};return i?null:n?g.createElement(on,{icon:g.createElement(Mo,null),className:Go.appliedButton,type:"text",size:"large"},"Applied"):g.createElement(on,{icon:g.createElement(xb,null),onClick:a,className:Go.applyButton,type:"primary",size:"large",disabled:!o},"Apply Now")},Fq=()=>g.createElement("div",{className:Go.jobActions},g.createElement(kq,null),g.createElement(Bq,null),g.createElement(zq,null)),_o={basicInfo:"_basicInfo_2vzae_1",companyInfo:"_companyInfo_2vzae_12",companyName:"_companyName_2vzae_18",container:"_container_2vzae_25",extraDetails:"_extraDetails_2vzae_33",extraDetailsDivider:"_extraDetailsDivider_2vzae_44",jobTitle:"_jobTitle_2vzae_51",jobLocation:"_jobLocation_2vzae_58"},Hq=()=>{const{companyData:e}=sn(),{logo:t,name:n}=e||{};return g.createElement("div",{className:_o.companyInfo},g.createElement(vu,{logo:t,companyName:n,size:50}),g.createElement("div",{className:_o.companyName},n))},Vq=()=>{const{jobData:e}=sn(),{title:t}=e||{};return g.createElement(bt.Text,{ellipsis:!0,className:_o.jobTitle},t)},Wq=()=>{const{jobData:e}=sn(),{preferredCities:t}=e||{},n=Dv(t);return g.createElement("div",{className:_o.jobLocation},n)},Kq=()=>g.createElement("div",{className:_o.basicInfo},g.createElement(Hq,null),g.createElement(Vq,null),g.createElement(Wq,null)),qq=()=>{const{jobData:e}=sn(),{minCtc:t,maxCtc:n,openForDiscussionCtc:r,isInternship:o,stipend:i,preferredNoticePeriod:a,minExperience:l,maxExperience:c}=e||{},u=Pv({minCtc:t,maxCtc:n,openForDiscussionCtc:r,isInternship:o,stipend:i}),d=Tv(l,c),f=Mv(a);return g.createElement("div",{className:_o.extraDetails},[u,d,f].filter(Boolean).map((m,p)=>g.createElement(g.Fragment,{key:p},g.createElement("div",{className:_o.detail},m),g.createElement(Sp,{size:"large",type:"vertical",className:_o.extraDetailsDivider}))))},Uq=()=>g.createElement("div",{className:_o.container},g.createElement(Kq,null),g.createElement(qq,null),g.createElement(Fq,null)),Dn={container:"_container_kgogb_1",actionAlert:"_actionAlert_kgogb_14",ineligible:"_ineligible_kgogb_24",stepsToApply:"_stepsToApply_kgogb_29",actionAlertIcon:"_actionAlertIcon_kgogb_35",actionAlertTitle:"_actionAlertTitle_kgogb_46",eligible:"_eligible_kgogb_52",title:"_title_kgogb_57",highlightsList:"_highlightsList_kgogb_64",keywordsList:"_keywordsList_kgogb_72",keyword:"_keyword_kgogb_72",exceptions:"_exceptions_kgogb_101",exceptionsIconContainer:"_exceptionsIconContainer_kgogb_107",exceptionsIcon:"_exceptionsIcon_kgogb_107",exceptionsTitle:"_exceptionsTitle_kgogb_116",exception:"_exception_kgogb_101",exceptionItem:"_exceptionItem_kgogb_124",exceptionsList:"_exceptionsList_kgogb_131"},Gq=({eligibilityStatus:e,metric:t,onScrollToEnd:n})=>{const{setActiveTab:r}=sn(),o=()=>{r(ri.REQUIREMENTS.key),n()};return e===Ov.ineligible?g.createElement("div",{className:G(Dn.actionAlert,Dn.ineligible)},g.createElement(X2,null),g.createElement("span",{className:Dn.actionAlertTitle},"Unfortunately! Your profile does not have the relevant years of experience for this role")):e===Ov.steps_to_apply?g.createElement(kO,{icon:g.createElement(J_,{className:Dn.actionAlertIcon}),title:`Eligible to apply in ${t} more steps!`,description:"Complete these three test to become eligible to apply!",buttonText:"Complete Tasks",buttonIcon:g.createElement(Rd,null),className:Dn.stepsToApply,onClick:o}):null},Xq=({highlights:e})=>g.createElement(g.Fragment,null,g.createElement("div",{className:Dn.title},"Top Reasons to Apply"),g.createElement("ul",{className:Dn.highlightsList},e==null?void 0:e.map(t=>g.createElement("li",{key:t,className:Dn.highlight},g.createElement("span",{className:Dn.highlightText},t))))),Qq=({keywords:e,eligibilityStatus:t})=>g.createElement("div",{className:Dn.keywordsList},e==null?void 0:e.map((n,r)=>g.createElement("div",{key:r,className:G(Dn.keyword,Dn[jv(t)])},n))),Yq=({exceptionalJob:e})=>{if(!e)return null;const t=["Considering your current profile and preferences, you seem to be a right fit","Which means that you get to apply to this job irrespective of the requirements mentioned below","So in case this matches what you are looking for, please apply"];return g.createElement("div",{className:Dn.exceptions},g.createElement("div",{className:Dn.exceptionsIconContainer},g.createElement(RP,{size:20,twoToneColor:"#FAAD14",className:Dn.exceptionsIcon})),g.createElement("div",null,g.createElement("div",{className:Dn.exceptionsTitle},"We've made an exception for you!"),g.createElement("ul",{className:Dn.exceptionsList},t.map((n,r)=>g.createElement("li",{className:[Dn.exception],key:r},n)))))},Jq=()=>{const{jobData:e,highlights:t,eligibilityCriteria:n}=sn(),r=g.useRef(null),{highlights:o,keywords:i}=t||(e==null?void 0:e.highlights)||{},{tag:a,count:l}=Nv(e,n||{}),c=()=>{if(r.current&&typeof window!="undefined"){const d=r.current.getBoundingClientRect(),f=d.top+window.pageYOffset,m=d.height,p=window.innerHeight,h=f+m-p/2;window.scrollTo({top:h,behavior:"smooth"})}};return e!=null&&e.appliedOn||!(o!=null&&o.length)?null:g.createElement("div",{ref:r,className:G(Dn.container,Dn[a])},g.createElement(Gq,{eligibilityStatus:a,metric:l,onScrollToEnd:c}),g.createElement(Xq,{highlights:o}),g.createElement(Qq,{keywords:i,eligibilityStatus:a}),g.createElement(Yq,{exceptionalJob:e==null?void 0:e.exceptionalJob}))},Zq=Yr.injectEndpoints({endpoints:e=>({issueScreeningCall:e.mutation({query:()=>({url:"/api/v3/careers-hub/screening-call/",method:"POST"})})})}),{useIssueScreeningCallMutation:eU}=Zq,LZ={screeningCallBanner:"_screeningCallBanner_1ltmt_1",screeningCallIcon:"_screeningCallIcon_1ltmt_7",screeningCallButtonIcon:"_screeningCallButtonIcon_1ltmt_12"},tU=()=>{sn();const[e,{isLoading:t}]=eU();return g.useCallback(()=>sr(this,null,function*(){var r;const n=yield e();(r=n==null?void 0:n.data)!=null&&r.url?globalThis.open(n.data.url,"_blank"):Vr.error("Failed to initiate screening call. Please try again.")}),[e]),null},Su={expandedJobView:"_expandedJobView_1lt4c_2",loadingCard:"_loadingCard_1lt4c_18"},nU=()=>g.createElement("div",{className:Su.expandedJobView},g.createElement(Uq,null),g.createElement(Jq,null),g.createElement(tU,null),g.createElement(HO,null),g.createElement(Rq,null)),rU=({country:e,openMockInterviewModal:t,openResume:n,jobId:r,isActive:o,currentTab:i})=>{var u;const{data:a,isLoading:l,error:c}=zO(r,{skip:!r||!o});return!o||!r?null:l?g.createElement(Vc,{className:`${Su.expandedJobView} ${Su.loadingCard}`},g.createElement(Zc,{size:"large"})):c?g.createElement(Vc,{className:Su.expandedJobView},g.createElement(Nf,{type:"error",message:"Failed to load job details",description:((u=c==null?void 0:c.data)==null?void 0:u.message)||(c==null?void 0:c.message)||"Please try again later",showIcon:!0})):a?g.createElement(KS,null,g.createElement(nq,{country:e,openMockInterviewModal:t,openResume:n,jobId:r,skip:!o},g.createElement(nU,{currentTab:i}))):null},xu={content:"_content_uv7qi_1",header:"_header_uv7qi_9",sider:"_sider_uv7qi_17",layout:"_layout_uv7qi_21"},{Header:oU,Sider:iU,Content:aU}=Pp;function Eu({header:e,children:t,className:n,sider:r,siderWidth:o}){return g.createElement(Pp,{className:n},g.createElement(oU,{className:xu.header},e||"Header"),g.createElement(Pp,{className:xu.layout},g.createElement(aU,{className:xu.content},t),r&&g.createElement(iU,{className:xu.sider,width:o||"25%"},r)))}Eu.propTypes={children:pe.node.isRequired,className:pe.string,sider:pe.node,siderWidth:pe.oneOfType([pe.string,pe.number])},Eu.defaultProps={className:"",sider:null,siderWidth:"25%"};const Bl={tagsSection:"_tagsSection_gf6im_1",tag:"_tag_gf6im_1",activeTag:"_activeTag_gf6im_22",icon:"_icon_gf6im_29"};function lU(){const e=$t.useDispatch(),t=$t.useSelector(a=>{var l,c;return((c=(l=a.scalantCareerHub)==null?void 0:l.filter)==null?void 0:c.tab)||"all"}),n=$t.useSelector(a=>{var l,c;return((c=(l=a.scalantCareerHub)==null?void 0:l.dashboard)==null?void 0:c.processCounts)||{}}),r=a=>{const l=vn[a];l&&e(zI(l))},o=a=>{const l=vn[a];return t===l},i=a=>{const l=tM[a];return n[l]||0};return g.createElement("div",{className:Bl.tagsSection},Object.keys(kd).map(a=>g.createElement(qo,{className:G(Bl.tag,{[Bl.activeTag]:o(a)}),key:a,onClick:()=>r(a)},g.createElement(kd[a].icon,{className:Bl.icon}),kd[a].label," ",g.createElement("span",{className:Bl.count},"(",i(a),")"))))}const sU={processCounts:Bb,userProfileData:null,filterModalOpen:!1,jobAlertModalOpen:!1},KO=We.createSlice({name:"dashboard",initialState:sU,reducers:{setProcessCounts:(e,t)=>{e.processCounts=t.payload},setUserProfileData:(e,t)=>{e.userProfileData=t.payload},openFilterModal:e=>{e.filterModalOpen=!0},closeFilterModal:e=>{e.filterModalOpen=!1},openJobAlertModal:e=>{e.jobAlertModalOpen=!0},closeJobAlertModal:e=>{e.jobAlertModalOpen=!1}}}),{setProcessCounts:cU,setUserProfileData:uU,openFilterModal:dU,closeFilterModal:fU,openJobAlertModal:mU,closeJobAlertModal:pU}=KO.actions,vU=KO.reducer,qO={jobAlert:"_jobAlert_sfx7a_1"};function gU(){const e=$t.useDispatch(),t=()=>{e(mU())};return g.createElement("div",{className:qO.jobAlert,onClick:t},g.createElement(Dd,{className:qO.icon}),"Job Alerts")}const hU={};function bU(){const e=$t.useDispatch(),t=$t.useSelector(a=>{var l,c;return((c=(l=a.scalantCareerHub)==null?void 0:l.filter)==null?void 0:c.sortings)||[]}),n=g.useMemo(()=>nM(t),[t]),r=a=>{const l=gs[a];l&&e(FI([l.mapping]))},o=Object.values(gs).map(a=>({value:a.value,label:a.value===n?`Sorted By: ${a.label}`:a.label})),i=a=>{const l=gs[a.value];return l?l.label:a.label};return g.createElement(Cn,{className:hU.sorting,value:n,onChange:r,suffixIcon:g.createElement(vs,null),options:o,optionRender:i})}const yU={};function CU(){const e=$t.useDispatch(),t=()=>{e(dU())};return g.createElement(on,{type:"primary",className:yU.filter,onClick:t},"Filters ",g.createElement(vs,null))}const Fv={search:"_search_hhvxj_1",iconContainer:"_iconContainer_hhvxj_7",input:"_input_hhvxj_20",slideIn:"_slideIn_hhvxj_1"};function SU(){const e=$t.useDispatch(),t=$t.useSelector(f=>{var m,p,h;return((h=(p=(m=f.scalantCareerHub)==null?void 0:m.filter)==null?void 0:p.filters)==null?void 0:h.keyword)||""}),[n,r]=g.useState(!1),[o,i]=g.useState(t),a=g.useRef(null),l=g.useRef(null);g.useEffect(()=>{i(t)},[t]),g.useEffect(()=>{n&&a.current&&a.current.focus()},[n]);const c=()=>{r(!0)},u=f=>{const m=f.target.value;i(m),l.current&&clearTimeout(l.current),l.current=setTimeout(()=>{e(BI(m))},300)},d=()=>{o.trim()||r(!1)};return g.useEffect(()=>()=>{l.current&&clearTimeout(l.current)},[]),g.createElement("div",{className:Fv.search},n||o?g.createElement(hi,{ref:a,className:Fv.input,placeholder:"Search for job or Company Name",value:o,onChange:u,onBlur:d,suffix:g.createElement(Ra,null)}):g.createElement("div",{className:Fv.iconContainer,onClick:c},g.createElement(Ra,null)))}const xU={actions:"_actions_nxp1u_1"};function EU(){return g.createElement("div",{className:xU.actions},g.createElement(gU,null),g.createElement(bU,null),g.createElement(CU,null),g.createElement(SU,null))}const $U={jobsHeaderContainer:"_jobsHeaderContainer_1un8f_1"};function $u({className:e}){return g.createElement("div",{className:G(e,$U.jobsHeaderContainer)},g.createElement(lU,null),g.createElement(EU,null))}$u.propTypes={className:pe.string},$u.defaultProps={className:""};const wU=e=>!e||typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1).toLowerCase(),OU=(e,t)=>{const n=e!=null?e:0,r=t!=null?t:0,o=[];return n>0&&o.push(`${n} ${n===1?"yr":"yrs"}`),o.push(`${r} ${r===1?"month":"months"}`),`${o.join(" ")} Experience`},NU=e=>!e||typeof e!="string"?[]:e.toLowerCase()==="anywhere_in_india"?["Anywhere In India"]:e.split("/").map(t=>t.trim()).filter(t=>t.length>0).map(t=>jl(t)),IU=e=>!e||typeof e!="string"?[]:e.split("/").map(t=>t.trim()).filter(t=>t.length>0),lr={profileName:"_profileName_rwpnv_1",profileDetails:"_profileDetails_rwpnv_5",profileDetailsItems:"_profileDetailsItems_rwpnv_12",preferencesTitle:"_preferencesTitle_rwpnv_17",preferencesDivider:"_preferencesDivider_rwpnv_21",preferencesContent:"_preferencesContent_rwpnv_26",preferenceLabel:"_preferenceLabel_rwpnv_30",preferenceValue:"_preferenceValue_rwpnv_36",preferenceTag:"_preferenceTag_rwpnv_41"};function wu({className:e,onViewResume:t,onEditPreferences:n}){var a,l,c,u,d,f,m,p;const r=$t.useSelector(h=>h.scalantCareerHub.dashboard.userProfileData),o=()=>{t==null||t()},i=()=>{n==null||n()};return g.createElement("div",{className:G(lr.profileDetails,e)},g.createElement(rn,{align:"center",gap:8},g.createElement(Ym,{shape:"square",size:48,src:r==null?void 0:r.avatar}),g.createElement(rn,{justify:"center",vertical:!0,gap:4},g.createElement(bt.Title,{level:5,className:lr.profileName},r==null?void 0:r.name),g.createElement(bt.Text,{type:"secondary"},jl((a=r==null?void 0:r.mentee)==null?void 0:a.careersHubProduct)))),g.createElement(rn,{vertical:!0,gap:8,className:lr.profileDetailsItems},g.createElement(rn,{align:"center",gap:10},g.createElement(VP,null),g.createElement(bt.Text,null,r==null?void 0:r.jobTitle)),g.createElement(rn,{align:"center",gap:10},g.createElement(PP,null),g.createElement(bt.Text,null,OU((l=r==null?void 0:r.experienceYears)!=null?l:r==null?void 0:r.experienceInYears,(c=r==null?void 0:r.experienceMonths)!=null?c:r==null?void 0:r.experienceInMonths))),g.createElement(rn,{align:"center",gap:10},g.createElement(uT,null),g.createElement(bt.Link,{onClick:o},"View Resume"))),g.createElement(rn,{vertical:!0},g.createElement(rn,{justify:"space-between"},g.createElement(bt.Title,{level:5,className:lr.preferencesTitle},"Your Preferences"),g.createElement(R2,{onClick:i})),g.createElement(Sp,{className:lr.preferencesDivider}),g.createElement(rn,{vertical:!0,gap:8,className:lr.preferencesContent},g.createElement(rn,{vertical:!0,gap:.4},g.createElement(bt.Text,{className:lr.preferenceLabel},"Location"),g.createElement(rn,{gap:.4,wrap:!0},NU((u=r==null?void 0:r.userCompanyProfile)==null?void 0:u.preferredLocation).map((h,b)=>g.createElement(qo,{key:b,bordered:!1,className:lr.preferenceTag},h)))),g.createElement(rn,{vertical:!0,gap:.4},g.createElement(bt.Text,{className:lr.preferenceLabel},"Job roles"),g.createElement(rn,{gap:.4,wrap:!0},IU((d=r==null?void 0:r.userCompanyProfile)==null?void 0:d.preferredRole).map((h,b)=>g.createElement(qo,{key:b,bordered:!1,className:lr.preferenceTag},h)))),g.createElement(rn,{align:"center"},g.createElement(bt.Text,{className:lr.preferenceLabel},"Expected CTC (LPA):"),g.createElement(bt.Text,{className:lr.preferenceValue},(f=r==null?void 0:r.userCompanyProfile)==null?void 0:f.expectedCtc)),g.createElement(rn,{align:"center"},g.createElement(bt.Text,{className:lr.preferenceLabel},"Notice period (In days):"),g.createElement(bt.Text,{className:lr.preferenceValue},(m=r==null?void 0:r.userCompanyProfile)==null?void 0:m.noticePeriod)),g.createElement(rn,{align:"center"},((p=r==null?void 0:r.userCompanyProfile)==null?void 0:p.buyoutNotice)&&g.createElement(bt.Text,{className:lr.preferenceLabel},"*Buyout available:")))))}wu.propTypes={className:pe.string},wu.defaultProps={className:""};const _U={jobDetails:"_jobDetails_1gavc_1"};function Ou({country:e,openMockInterviewModal:t,openResume:n,jobId:r,className:o}){return r?g.createElement("div",{className:G(_U.jobDetails,o)},g.createElement(rU,{country:e,openMockInterviewModal:t,openResume:n,jobId:r,isActive:!!r,currentTab:"all"})):null}Ou.propTypes={country:pe.string,openMockInterviewModal:pe.func,openResume:pe.func,jobId:pe.oneOfType([pe.string,pe.number]),className:pe.string},Ou.defaultProps={jobId:null,className:""};const Hv=e=>{if(!e||!e.data||!Array.isArray(e.data))return[];const t={};return e.included&&Array.isArray(e.included)&&e.included.forEach(n=>{n.type==="company"&&n.attributes&&(t[n.id]=n.attributes)}),e.data.map(n=>{if(n.type!=="job_profile"||!n.attributes)return null;const r=n.attributes,o=n.relationships||{};let i=null;if(o.company&&o.company.data){const l=o.company.data.id;i=t[l]||null}return{id:parseInt(n.id,10),title:r.title||"",name:r.title||"",slug:r.slug||"",jobDesc:r.job_desc||"",jobDescText:r.job_desc_text||"",minExperience:r.min_experience?parseFloat(r.min_experience):null,maxExperience:r.max_experience?parseFloat(r.max_experience):null,minCtc:r.min_ctc?parseFloat(r.min_ctc):null,maxCtc:r.max_ctc?parseFloat(r.max_ctc):null,validTill:r.valid_till||null,createdAt:r.created_at||null,jobType:r.job_type||null,preferredCities:r.preferred_cities||"",preferredNoticePeriod:r.preferred_notice_period||null,meritBasedSkills:r.merit_based_skills||[],contestSkills:r.contest_skills||[],applicationStatus:r.application_status||null,expiry:r.expiry||r.valid_till||null,applicationId:r.application_id||null,userCompanyStatus:r.user_company_status||null,applicationLastUpdatedAt:r.application_last_upated_at||null,jobSource:r.job_source||null,jobProfileId:r.job_profile_id||null,jobProfileStatus:r.job_profile_status||"active",datePostedOn:r.date_posted_on||null,openForDiscussionCtc:r.open_for_discussion_ctc||!1,appliedOn:r.applied_on||null,seniorityLevel:r.seniority_level||null,roleType:r.role_type||"full_time",duration:r.duration||null,stipend:r.stipend||null,eligibilityCriteria:r.eligibility_criteria||{is_eligible:!1,reasons:[]},exceptionalJob:r.exceptional_job||!1,isRelevant:r.is_relevant||!1,isInternship:r.role_type==="internship",company:i?[parseInt(o.company.data.id,10)]:[],logo:(i==null?void 0:i.logo)||null,companyName:(i==null?void 0:i.name)||null,companySlug:(i==null?void 0:i.slug)||null,companyLocation:(i==null?void 0:i.location)||null,companyWebsite:(i==null?void 0:i.company_website)||null,companyVision:(i==null?void 0:i.company_vision)||null,companyTagline:(i==null?void 0:i.tagline)||null,companyCategory:(i==null?void 0:i.category)||null,companyEmployeeCount:(i==null?void 0:i.employee_count)||null}}).filter(Boolean)},Vv=e=>{const t={};return e!=null&&e.included&&Array.isArray(e.included)&&e.included.forEach(n=>{n.type==="company"&&n.attributes&&(t[n.id]=fr({id:n.id},n.attributes))}),t},TU=Yr.injectEndpoints({endpoints:e=>({fetchAllJobs:e.query({query:(t={})=>({url:"/job-tracker/fetch-all-jobs/",method:"POST",body:t}),transformResponse:t=>{const n=Hv(t),r=Vv(t);return{jobs:n,companiesMap:r,results:n}},providesTags:["Jobs"]}),fetchPipelineJobs:e.query({query:(t={})=>({url:"/job-tracker/fetch-pipeline-jobs/",method:"POST",body:t}),transformResponse:t=>{const n=Hv(t),r=Vv(t);return{jobs:n,companiesMap:r,results:n}},providesTags:["PipelineJobs"]}),fetchRelevantJobs:e.query({query:(t={})=>({url:"/job-tracker/relevancy/",method:"POST",body:t}),transformResponse:t=>{const n=Hv(t),r=Vv(t);return{jobs:n,companiesMap:r,results:n}},providesTags:["RelevantJobs"]})})}),{useFetchAllJobsQuery:PU,useFetchPipelineJobsQuery:UO,useFetchRelevantJobsQuery:MU}=TU,DU={selectedJobId:null},GO=We.createSlice({name:"layout",initialState:DU,reducers:{setSelectedJobId:(e,t)=>{e.selectedJobId=t.payload},clearSelectedJobId:e=>{e.selectedJobId=null}}}),{setSelectedJobId:AU,clearSelectedJobId:RU}=GO.actions,jU=GO.reducer,Kr={heading:"_heading_1f9yg_1",spinner:"_spinner_1f9yg_8",alert:"_alert_1f9yg_14",header:"_header_1f9yg_18",sentinel:"_sentinel_1f9yg_23",loadingMore:"_loadingMore_1f9yg_30",jobsList:"_jobsList_1f9yg_39"},{Title:Nu,Text:LU}=bt,XO={[vn.relevant]:"Unlocked Jobs",[vn.all]:"All Jobs",[vn.saved]:"Saved Jobs",[vn.applied]:"Applied Jobs"};function Ei({className:e,currentTab:t,jobs:n=[],companiesMap:r={},isLoading:o=!1,error:i=null,isFetchingMore:a=!1,hasMore:l=!0}){var y;const c=$t.useDispatch(),u=$t.useSelector(C=>C.scalantCareerHub.layout.selectedJobId),d=$t.useSelector(C=>{var x,E;return((E=(x=C.scalantCareerHub)==null?void 0:x.dashboard)==null?void 0:E.processCounts)||{}}),f=l!==void 0?l:!0,{sentinelRef:m}=VI({hasMore:f,isLoading:o,isFetchingMore:a}),p=C=>{c(u===C?RU():AU(C))},h=()=>sr(this,null,function*(){return Promise.resolve()}),b=XO[t]||XO[vn.all],v=()=>d[t]||0;return o?g.createElement("div",{className:e},g.createElement(Nu,{level:2,className:Kr.heading},b),g.createElement(Zc,{size:"large",className:Kr.spinner})):i?g.createElement("div",{className:e},g.createElement(Nu,{level:2,className:Kr.heading},b),g.createElement(Nf,{message:"Error loading jobs",description:((y=i==null?void 0:i.data)==null?void 0:y.message)||(i==null?void 0:i.message)||"Failed to fetch jobs. Please try again later.",type:"error",showIcon:!0,className:Kr.alert})):!n||n.length===0?g.createElement("div",{className:e},g.createElement(Nu,{level:2,className:Kr.heading},b),g.createElement(Nf,{message:"No jobs found",description:"There are no jobs available at the moment.",type:"info",showIcon:!0,className:Kr.alert})):g.createElement("div",{className:e},g.createElement(Zt,{direction:"vertical",className:Kr.header},g.createElement(Nu,{level:4,className:Kr.heading},b," ",g.createElement(qo,{color:"green"},v()," Found")),g.createElement(LU,null,"Based on your profile, preferences, and activity like applies, searches, and saves")),g.createElement("div",{className:Kr.jobsList},n.map(C=>g.createElement(yu,{key:C.id,jobData:C,isActive:u===C.id,currentTab:t,onClick:p,onSave:h,companiesList:r,userCountry:"IN",selectedJobId:u})),f&&g.createElement("div",{ref:m,className:Kr.sentinel},a&&g.createElement("div",{className:Kr.loadingMore},g.createElement(Zc,{size:"small"}),g.createElement("span",null,"Loading more jobs...")))))}Ei.propTypes={className:pe.string,currentTab:pe.string,jobs:pe.arrayOf(pe.object),companiesMap:pe.object,isLoading:pe.bool,error:pe.object,isFetchingMore:pe.bool,hasMore:pe.bool},Ei.defaultProps={className:"",currentTab:vn.all,jobs:[],companiesMap:{},isLoading:!1,error:null,isFetchingMore:!1,hasMore:!0};const zU={relevantJobsPage:"_relevantJobsPage_19xbf_1"};function BU(){const e=as(),{data:t,isLoading:n,error:r,isFetching:o}=MU(e),{accumulatedJobs:i,accumulatedCompaniesMap:a,hasMore:l,isFetchingMore:c,isLoading:u}=hs(t,o,n,vn.relevant);return g.createElement("div",{className:zU.relevantJobsPage},g.createElement(Ei,{currentTab:vn.relevant,jobs:i,companiesMap:a,isLoading:u,error:r,isFetchingMore:c,hasMore:l}))}const kU={allJobsPage:"_allJobsPage_10f3p_1"};function FU(){const e=as(),{data:t,isLoading:n,error:r,isFetching:o}=PU(e),{accumulatedJobs:i,accumulatedCompaniesMap:a,hasMore:l,isFetchingMore:c,isLoading:u}=hs(t,o,n,vn.all);return g.createElement("div",{className:kU.allJobsPage},g.createElement(Ei,{currentTab:vn.all,jobs:i,companiesMap:a,isLoading:u,error:r,isFetchingMore:c,hasMore:l}))}const HU={savedJobsPage:"_savedJobsPage_km19z_1"};function VU(){const e=as(),{data:t,isLoading:n,error:r,isFetching:o}=UO(fr({type:vn.saved},e)),{accumulatedJobs:i,accumulatedCompaniesMap:a,hasMore:l,isFetchingMore:c,isLoading:u}=hs(t,o,n,vn.saved);return g.createElement("div",{className:HU.savedJobsPage},g.createElement(Ei,{currentTab:vn.saved,jobs:i,companiesMap:a,isLoading:u,error:r,isFetchingMore:c,hasMore:l}))}const WU={appliedJobsPage:"_appliedJobsPage_lw2yt_1"};function KU(){const e=as(),{data:t,isLoading:n,error:r,isFetching:o}=UO(fr({type:vn.applied},e)),{accumulatedJobs:i,accumulatedCompaniesMap:a,hasMore:l,isFetchingMore:c,isLoading:u}=hs(t,o,n,vn.applied);return g.createElement("div",{className:WU.appliedJobsPage},g.createElement(Ei,{currentTab:vn.applied,jobs:i,companiesMap:a,isLoading:u,error:r,isFetchingMore:c,hasMore:l}))}const QO={role_type:void 0,company_ids:[],job_title:[],job_category:[],seniority_level:[],company_categories:[],location:[],min_ctc:void 0,min_stipend:void 0,min_duration:void 0,notice_period:void 0,date_posted_on:void 0,mbe_skill_ids:{},experience_skill_ids:[],min_experience:void 0,max_experience:void 0},YO=We.createSlice({name:"filterForm",initialState:QO,reducers:{updateFormField:(e,t)=>{const{field:n,value:r}=t.payload;e[n]=r},resetForm:()=>QO,setFormData:(e,t)=>fr(fr({},e),t.payload),addRatingFilterInput:e=>{(!e.mbe_skill_ids||typeof e.mbe_skill_ids!="object")&&(e.mbe_skill_ids={});const t=`mbe_skill_${Date.now()}_${Math.random().toString(36).substr(2,9)}`;e.mbe_skill_ids[t]={subject:null,rating:null}},deleteRatingFilterInput:(e,t)=>{const{inputFieldKey:n}=t.payload;e.mbe_skill_ids&&e.mbe_skill_ids[n]&&delete e.mbe_skill_ids[n]},updateRatingFilterInput:(e,t)=>{const{inputFilterSubKey:n,value:r}=t.payload;(!e.mbe_skill_ids||typeof e.mbe_skill_ids!="object")&&(e.mbe_skill_ids={});const o=n.split("_").slice(-1)[0],i=n.replace(`_${o}`,"");e.mbe_skill_ids[i]||(e.mbe_skill_ids[i]={subject:null,rating:null}),o==="subject"?e.mbe_skill_ids[i].subject=r:o==="rating"&&(e.mbe_skill_ids[i].rating=r)}}}),{updateFormField:qU,resetForm:UU,setFormData:xee,addRatingFilterInput:JO,deleteRatingFilterInput:GU,updateRatingFilterInput:ZO}=YO.actions,XU=YO.reducer,eN=({fieldName:e,subjectOptions:t,ratingOptions:n})=>{const r=$t.useDispatch(),i=$t.useSelector(b=>b.scalantCareerHub.filterForm)[e],a=g.useMemo(()=>i||{},[i]),l=g.useMemo(()=>typeof a=="object"&&!Array.isArray(a)?a:{},[a]);g.useEffect(()=>{(!a||Object.keys(l).length===0)&&r(JO())},[a,l,r]);const c=g.useMemo(()=>Object.values(l).map(b=>{var v;return((v=b==null?void 0:b.subject)==null?void 0:v.key)||(b==null?void 0:b.subject)}).filter(Boolean),[l]),u=g.useMemo(()=>t.filter(b=>!c.includes(b.key)),[t,c]),d=g.useCallback(()=>{r(JO())},[r]),f=g.useCallback(b=>{r(GU({inputFieldKey:b}))},[r]),m=g.useCallback((b,v)=>{const y=t.find(C=>C.key===v);r(ZO({inputFilterSubKey:`${b}_subject`,value:y||v}))},[t,r]),p=g.useCallback((b,v)=>{r(ZO({inputFilterSubKey:`${b}_rating`,value:v}))},[r]),h=Object.keys(l);return g.createElement(Zt,{direction:"vertical",style:{width:"100%"},size:"middle"},h.map(b=>{var E;const v=l[b],y=((E=v==null?void 0:v.subject)==null?void 0:E.key)||(v==null?void 0:v.subject),C=v==null?void 0:v.rating,x=[...t.filter(S=>S.key===y),...u];return g.createElement(Oo,{key:b,gutter:16,align:"middle"},g.createElement(Ln,{span:10},g.createElement(Cn,{placeholder:"Select skill",value:y,onChange:S=>m(b,S),showSearch:!0,filterOption:(S,$)=>{var O;return((O=$==null?void 0:$.label)!=null?O:"").toLowerCase().includes(S.toLowerCase())},options:x.map(S=>({label:S.value,value:S.key}))})),g.createElement(Ln,{span:10},g.createElement(Cn,{placeholder:"Select rating",value:C,onChange:S=>p(b,S),options:n.map(S=>({label:S.label,value:S.value}))})),g.createElement(Ln,{span:4},g.createElement(Zt,null,g.createElement(on,{type:"text",icon:g.createElement(hb,null),onClick:d,style:{color:"#1890ff"}}),h.length>1&&g.createElement(on,{type:"text",icon:g.createElement(Fh,null),onClick:()=>f(b),danger:!0}))))}))};eN.propTypes={fieldName:pe.string.isRequired,subjectOptions:pe.arrayOf(pe.shape({key:pe.oneOfType([pe.string,pe.number]),value:pe.string})).isRequired,ratingOptions:pe.arrayOf(pe.shape({value:pe.oneOfType([pe.string,pe.number]),label:pe.string})).isRequired};const Xo={drawerContent:"_drawerContent_fqkgw_1",filterForm:"_filterForm_fqkgw_5",drawerHeaderSubtitle:"_drawerHeaderSubtitle_fqkgw_9",filterIcon:"_filterIcon_fqkgw_14",buttonContainer:"_buttonContainer_fqkgw_18",drawer:"_drawer_fqkgw_1"},{Option:Cr}=Cn;function QU(){var _,P,M,D;const e=$t.useDispatch(),t=$t.useSelector(T=>T.scalantCareerHub.filterForm),n=$t.useSelector(T=>T.scalantCareerHub.filterOptions||{}),[r]=Vt.useForm();g.useEffect(()=>{r.setFieldsValue(t)},[r,t]);const{handleCompanySearch:o,handleTitleSearch:i,handleExperienceSkillSearch:a,handleExperienceSkillChange:l,loadingCompanies:c,loadingTitles:u,loadingExperienceSkills:d}=SM(),{jobTypes:f,functions:m,seniorityLevels:p,companyCategories:h,locations:b,mbeSkills:v,ctcRanges:y,stipendRanges:C,durationRanges:x,noticePeriods:E,datePostedOptions:S,skillRatings:$}=Wb(),O=(T,A)=>{e(qU({field:T,value:A}))},I=t.role_type,w=I==="full_time",N=I==="internship";return g.createElement(Vt,{layout:"vertical",className:Xo.filterForm,form:r,initialValues:t},g.createElement(Vt.Item,{label:"Job Types",name:"role_type"},g.createElement(Cn,{placeholder:"Select job profile",value:t.role_type,onChange:T=>O("role_type",T)},f.map(T=>g.createElement(Cr,{key:T.key,value:T.key},T.value)))),g.createElement(Vt.Item,{label:"Company Name",name:"company_ids"},g.createElement(Cn,{mode:"multiple",showSearch:!0,placeholder:"Search company",filterOption:!1,onSearch:o,loading:c,value:t.company_ids,onChange:T=>O("company_ids",T),notFoundContent:c?"Loading...":"Type at least 3 characters to search"},(_=n.companyOptions)==null?void 0:_.map(T=>g.createElement(Cr,{key:T.key,value:T.key},T.value)))),g.createElement(Vt.Item,{label:"Title",name:"job_title"},g.createElement(Cn,{mode:"multiple",showSearch:!0,placeholder:"Search job title",filterOption:!1,onSearch:i,loading:u,value:t.job_title,onChange:T=>O("job_title",T),notFoundContent:u?"Loading...":"Type at least 3 characters to search"},(P=n.titleOptions)==null?void 0:P.map(T=>g.createElement(Cr,{key:T.key,value:T.value},T.value)))),g.createElement(Vt.Item,{label:"Function",name:"job_category"},g.createElement(Cn,{mode:"multiple",placeholder:"Select function",value:t.job_category,onChange:T=>O("job_category",T)},m.map(T=>g.createElement(Cr,{key:T.key,value:T.key},T.value)))),g.createElement(Oo,{gutter:16},g.createElement(Ln,{span:12},g.createElement(Vt.Item,{label:"Role seniority level",name:"seniority_level"},g.createElement(Cn,{mode:"multiple",placeholder:"Select level",value:t.seniority_level,onChange:T=>O("seniority_level",T)},p.map(T=>g.createElement(Cr,{key:T.key,value:T.key},T.value))))),g.createElement(Ln,{span:12},g.createElement(Vt.Item,{label:"Company category",name:"company_categories"},g.createElement(Cn,{mode:"multiple",placeholder:"Select category",value:t.company_categories,onChange:T=>O("company_categories",T)},h.map(T=>g.createElement(Cr,{key:T.key,value:T.key},T.value)))))),g.createElement(Vt.Item,{label:"Location",name:"location"},g.createElement(Cn,{mode:"multiple",placeholder:"Select location",value:t.location,onChange:T=>O("location",T)},b.map(T=>g.createElement(Cr,{key:T.key,value:T.value},T.value)))),!N&&g.createElement(Vt.Item,{label:"Minimum CTC (in Lakhs)?",name:"min_ctc"},g.createElement(Cn,{placeholder:"Select range",value:t.min_ctc,onChange:T=>O("min_ctc",T)},y.map(T=>g.createElement(Cr,{key:T.value,value:T.value},T.label)))),!w&&g.createElement(Oo,{gutter:16},g.createElement(Ln,{span:12},g.createElement(Vt.Item,{label:"Stipend (INR per month)",name:"min_stipend"},g.createElement(Cn,{placeholder:"Select range",value:t.min_stipend,onChange:T=>O("min_stipend",T)},C.map(T=>g.createElement(Cr,{key:T.value,value:T.value},T.label))))),g.createElement(Ln,{span:12},g.createElement(Vt.Item,{label:"Internship duration (in months)",name:"min_duration"},g.createElement(Cn,{placeholder:"Select range",value:t.min_duration,onChange:T=>O("min_duration",T)},x.map(T=>g.createElement(Cr,{key:T.value,value:T.value},T.label)))))),g.createElement(Oo,{gutter:16},g.createElement(Ln,{span:12},g.createElement(Vt.Item,{label:"Notice period requirement",name:"notice_period"},g.createElement(Cn,{placeholder:"Choose period",value:t.notice_period,onChange:T=>O("notice_period",T)},E.map(T=>g.createElement(Cr,{key:T.value,value:T.value},T.label))))),g.createElement(Ln,{span:12},g.createElement(Vt.Item,{label:"Job posted date",name:"date_posted_on"},g.createElement(Cn,{placeholder:"Pick date",value:t.date_posted_on,onChange:T=>O("date_posted_on",T)},S.map(T=>g.createElement(Cr,{key:T.value,value:T.value},T.label)))))),g.createElement(Vt.Item,{label:"Expert Mock Interview Skills Required"},g.createElement(eN,{fieldName:"mbe_skill_ids",subjectOptions:v,ratingOptions:$})),g.createElement(Vt.Item,{label:"Experienced based skills",name:"experience_skill_ids"},g.createElement(Cn,{mode:"multiple",showSearch:!0,placeholder:"Search skills",filterOption:!1,onSearch:a,loading:d,value:((M=t.experience_skill_ids)==null?void 0:M.map(T=>typeof T=="object"?T.experience_skill_id:T))||[],onChange:T=>{const A=l(T,n.experienceSkillOptions);O("experience_skill_ids",A)},notFoundContent:d?"Loading...":"Type at least 2 characters to search"},(D=n.experienceSkillOptions)==null?void 0:D.map(T=>g.createElement(Cr,{key:T.key,value:T.key},T.value)))),g.createElement(Vt.Item,{label:"Experience (Years)? *"},g.createElement(Oo,{gutter:16},g.createElement(Ln,{span:12},g.createElement(Vt.Item,{name:"min_experience",noStyle:!0},g.createElement(hi,{placeholder:"Minimum",type:"number",value:t.min_experience,onChange:T=>O("min_experience",T.target.value)}))),g.createElement(Ln,{span:12},g.createElement(Vt.Item,{name:"max_experience",noStyle:!0},g.createElement(hi,{placeholder:"Maximum",type:"number",value:t.max_experience,onChange:T=>O("max_experience",T.target.value)}))))))}function YU({onClose:e}){return g.createElement(rn,{vertical:!0},g.createElement(rn,{justify:"space-between"},g.createElement(rn,{align:"center",gap:5},g.createElement(bT,{className:Xo.filterIcon}),"Filters"),g.createElement($r,{onClick:e})),g.createElement("div",{className:Xo.drawerHeaderSubtitle},"Choose the kind of jobs you'd like to see displayed on this page"))}function JU(){const e=$t.useDispatch(),t=$t.useSelector(a=>a.scalantCareerHub.dashboard.filterModalOpen),n=$t.useSelector(a=>a.scalantCareerHub.filterForm),r=()=>{e(fU())},o=()=>{var c,u,d,f,m,p,h;let a;n.mbe_skill_ids&&typeof n.mbe_skill_ids=="object"&&!Array.isArray(n.mbe_skill_ids)&&Object.keys(n.mbe_skill_ids).length>0&&(a=Object.values(n.mbe_skill_ids).filter(b=>!b||b.rating===void 0||b.rating===null?!1:b.subject?typeof b.subject=="object"?b.subject.key!==void 0&&b.subject.key!==null:b.subject!==void 0&&b.subject!==null:!1).map(b=>{var y;let v;return typeof b.subject=="object"&&((y=b.subject)==null?void 0:y.key)!==void 0?v=b.subject.key:v=b.subject,{mbe_skill_id:v,rating:b.rating}}),a.length===0&&(a=void 0));const l={role_type:n.role_type||void 0,company_ids:(c=n.company_ids)!=null&&c.length?n.company_ids:void 0,job_title:(u=n.job_title)!=null&&u.length?n.job_title:void 0,job_category:(d=n.job_category)!=null&&d.length?n.job_category:void 0,seniority_level:(f=n.seniority_level)!=null&&f.length?n.seniority_level:void 0,location:(m=n.location)!=null&&m.length?n.location:void 0,min_ctc:n.min_ctc||void 0,min_stipend:n.min_stipend||void 0,min_duration:n.min_duration||void 0,notice_period:n.notice_period||void 0,date_posted_on:n.date_posted_on||void 0,mbe_skill_ids:a,experience_skill_ids:(p=n.experience_skill_ids)!=null&&p.length?n.experience_skill_ids:void 0,min_experience:n.min_experience||void 0,max_experience:n.max_experience||void 0,company_categories:(h=n.company_categories)!=null&&h.length?n.company_categories:void 0};Object.keys(l).forEach(b=>{l[b]===void 0&&delete l[b]}),e(Yg(l)),r()},i=()=>{e(UU()),e(yM()),e(Yg({}))};return g.createElement(Z1,{title:g.createElement(YU,{onClose:r}),placement:"right",onClose:r,open:t,closable:!1,width:550,className:Xo.drawer},g.createElement("div",{className:Xo.drawerContent},g.createElement(QU,null),g.createElement("div",{className:Xo.buttonContainer},g.createElement(on,{className:Xo.resetButton,onClick:i},"Reset Filters"),g.createElement(on,{type:"primary",className:Xo.applyButton,onClick:o},"Apply"))))}const ZU=Yr.injectEndpoints({endpoints:e=>({fetchAlerts:e.query({query:()=>({url:"/job-tracker/v1/alerts/list",method:"GET"}),transformResponse:t=>t.data||[],providesTags:["JobAlerts"]}),createAlert:e.mutation({query:t=>({url:"/job-tracker/v1/alerts/",method:"POST",body:t}),transformResponse:t=>t,invalidatesTags:["JobAlerts"]}),updateAlertStatus:e.mutation({query:t=>({url:"/job-tracker/v1/alerts/update-status",method:"PATCH",body:t}),transformResponse:t=>t,invalidatesTags:["JobAlerts"]}),deleteAlert:e.mutation({query:t=>({url:`/job-tracker/v1/alerts/${t}`,method:"DELETE"}),transformResponse:t=>t,invalidatesTags:["JobAlerts"]}),updateAlert:e.mutation({query:({id:t,payload:n})=>({url:`/job-tracker/v1/alerts/${t}`,method:"PUT",body:n}),transformResponse:t=>t,invalidatesTags:["JobAlerts"]})})}),{useFetchAlertsQuery:eG,useCreateAlertMutation:tG,useUpdateAlertStatusMutation:nG,useDeleteAlertMutation:rG,useUpdateAlertMutation:oG}=ZU,iG={alerts:[],loading:!1,error:null},tN=We.createSlice({name:"alerts",initialState:iG,reducers:{setAlerts:(e,t)=>{e.alerts=t.payload},addAlert:(e,t)=>{e.alerts.push(t.payload)},setLoading:(e,t)=>{e.loading=t.payload},setError:(e,t)=>{e.error=t.payload}}}),{setAlerts:aG,addAlert:_ee,setLoading:Tee,setError:Pee}=tN.actions,lG=tN.reducer,po={modalTitle:"_modalTitle_gu1gu_1",modalTitleHeader:"_modalTitleHeader_gu1gu_6",modalTitleContent:"_modalTitleContent_gu1gu_12",modalCloseIcon:"_modalCloseIcon_gu1gu_18",modalDescription:"_modalDescription_gu1gu_22",modalFooter:"_modalFooter_gu1gu_28",createAlertContent:"_createAlertContent_gu1gu_34",formField:"_formField_gu1gu_52",formLabel:"_formLabel_gu1gu_57",requiredAsterisk:"_requiredAsterisk_gu1gu_63",formInput:"_formInput_gu1gu_67",experienceInputs:"_experienceInputs_gu1gu_71",modal:"_modal_gu1gu_1",radioGroup:"_radioGroup_gu1gu_88",drawerHeaderSubtitle:"_drawerHeaderSubtitle_gu1gu_94",filterIcon:"_filterIcon_gu1gu_99"},{Option:Wv}=Cn;function nN({form:e,initialValues:t,onSubmit:n,isSubmitting:r}){const{functions:o,locations:i,ctcRanges:a}=Wb(),[l,c]=g.useState("realtime");g.useEffect(()=>{var f,m;if(t&&e){const h={[dn.REALTIME]:"realtime",[dn.DAILY]:"daily",[dn.ALTERNATE_DAY]:"alternate",[dn.WEEKLY]:"weekly"}[t.frequency]||"realtime",b={name:t.name,job_functions:t.job_functions||[],min_ctc:t.min_ctc,locations:t.locations||[],min_experience:((f=t.min_experience)==null?void 0:f.toString())||"",max_experience:((m=t.max_experience)==null?void 0:m.toString())||"",frequency:h,notification_type:t.notification_type||rr.EMAIL};e.setFieldsValue(b),c(h)}},[t,e]);const u=()=>sr(this,null,function*(){try{const f=yield e.validateFields(),m={realtime:dn.REALTIME,daily:dn.DAILY,alternate:dn.ALTERNATE_DAY,weekly:dn.WEEKLY},p=f.frequency==="realtime",h={alert:{name:f.name,job_functions:f.job_functions||[],min_ctc:f.min_ctc,locations:f.locations||[],min_experience:f.min_experience?parseInt(f.min_experience,10):0,max_experience:f.max_experience?parseInt(f.max_experience,10):null,frequency:m[f.frequency]||dn.REALTIME,notification_type:p&&f.notification_type||rr.EMAIL}};n&&(yield n(h))}catch(f){console.error("Error submitting form:",f)}});g.useEffect(()=>{e&&n&&(e.submit=u)},[e,n]);const d=Vt.useWatch("frequency",e)||"realtime";return g.useEffect(()=>{c(d)},[d]),g.createElement(Vt,{form:e,layout:"vertical",className:po.createAlertContent,initialValues:{frequency:"realtime"}},g.createElement(Vt.Item,{label:"Alert Name",name:"name",rules:[{required:!0,message:"Please enter alert name"}]},g.createElement(hi,{placeholder:"Give your job alert a name"})),g.createElement(Vt.Item,{label:"Job Function",name:"job_functions",rules:[{required:!0,message:"Please select at least one job function"}]},g.createElement(Cn,{mode:"multiple",placeholder:"Select job function",className:po.formInput},o.map(f=>g.createElement(Wv,{key:f.key,value:f.key},f.value)))),g.createElement(Vt.Item,{label:"Minimum CTC (in Lakhs)?",name:"min_ctc",rules:[{required:!0,message:"Please select minimum CTC"}]},g.createElement(Cn,{placeholder:"Select range",className:po.formInput},a.map(f=>g.createElement(Wv,{key:f.value,value:f.value},f.label)))),g.createElement(Vt.Item,{label:"Locations?",name:"locations",rules:[{required:!0,message:"Please select at least one location"}]},g.createElement(Cn,{mode:"multiple",placeholder:"Select locations",className:po.formInput},i.map(f=>g.createElement(Wv,{key:f.key,value:f.value},f.value)))),g.createElement(Vt.Item,{label:"Experience (Years)?"},g.createElement(Oo,{gutter:16},g.createElement(Ln,{span:12},g.createElement(Vt.Item,{name:"min_experience",rules:[{required:!0,message:"Please enter minimum experience"}],noStyle:!0},g.createElement(hi,{placeholder:"Minimum",type:"number"}))),g.createElement(Ln,{span:12},g.createElement(Vt.Item,{name:"max_experience",rules:[{required:!0,message:"Please enter maximum experience"}],noStyle:!0},g.createElement(hi,{placeholder:"Maximum",type:"number"}))))),g.createElement(Vt.Item,{label:"Alert Frequency",name:"frequency",rules:[{required:!0,message:"Please select alert frequency"}]},g.createElement(br.Group,{className:po.radioGroup,onChange:f=>{c(f.target.value),f.target.value!=="realtime"&&e.setFieldsValue({notification_type:rr.EMAIL})}},g.createElement(br,{value:"realtime"},"Realtime"),g.createElement(br,{value:"daily"},"Daily"),g.createElement(br,{value:"alternate"},"Every alternate day"),g.createElement(br,{value:"weekly"},"Weekly"))),l==="realtime"&&g.createElement(Vt.Item,{label:"Alert mode",name:"notification_type",rules:[{required:!0,message:"Please select notification type"}]},g.createElement(br.Group,{className:po.radioGroup},g.createElement(br,{value:rr.EMAIL},"Email"),g.createElement(br,{value:rr.WHATSAPP},"Whatsapp"),g.createElement(br,{value:rr.BOTH},"Both"))))}const Yn={alertCard:"_alertCard_1k2nv_1",alertHeader:"_alertHeader_1k2nv_14",alertIcon:"_alertIcon_1k2nv_20",inactiveIcon:"_inactiveIcon_1k2nv_25",alertActions:"_alertActions_1k2nv_29",editFormCard:"_editFormCard_1k2nv_35"};function sG(){const e=$t.useDispatch(),{data:t=[],isLoading:n,error:r}=eG(),[o]=nG(),[i]=rG(),[a,{isLoading:l}]=oG(),[c,u]=g.useState(null),[d]=Vt.useForm();g.useEffect(()=>{t&&e(aG(t))},[t,e]);const f=x=>Lb[x]||Lb[dn.REALTIME],m=x=>zb[x]||zb[rr.EMAIL],p=x=>x===La.ACTIVE,h=(x,E)=>sr(this,null,function*(){try{const S=E===La.ACTIVE?La.INACTIVE:La.ACTIVE;yield o({id:x,status:S}).unwrap(),Vr.success(`Alert ${S===La.ACTIVE?"activated":"deactivated"} successfully`)}catch(S){Vr.error("Failed to update alert status"),console.error("Error updating alert status:",S)}}),b=x=>{u(x)},v=()=>{u(null),d.resetFields()},y=x=>sr(this,null,function*(){try{yield a({id:c,payload:x}).unwrap(),Vr.success("Alert updated successfully"),u(null),d.resetFields()}catch(E){throw Vr.error("Failed to update alert"),console.error("Error updating alert:",E),E}}),C=x=>sr(this,null,function*(){try{yield i(x).unwrap(),Vr.success("Alert deleted successfully")}catch(E){Vr.error("Failed to delete alert"),console.error("Error deleting alert:",E)}});return n?g.createElement("div",{className:Yn.existingAlertContent},g.createElement("div",{className:Yn.loadingText},"Loading alerts...")):r?g.createElement("div",{className:Yn.existingAlertContent},g.createElement("div",{className:Yn.errorText},"Error loading alerts")):!t||t.length===0?g.createElement("div",{className:Yn.existingAlertContent},g.createElement("div",{className:Yn.emptyText},"No alerts found")):g.createElement("div",{className:Yn.existingAlertContent},t.map(x=>{const E=x.attributes||x,S=x.id||E.id,$=p(E.status),O=f(E.frequency),I=m(E.notification_type),w=c===S;return g.createElement("div",{key:S,className:Yn.alertCard},g.createElement(rn,{align:"center",className:Yn.alertHeader},g.createElement(Dd,{className:G(Yn.alertIcon,{[Yn.inactiveIcon]:!$})}),g.createElement("div",null,E.name)),g.createElement("div",{className:Yn.alertSettings},g.createElement(rn,{align:"center",gap:16,wrap:!0},g.createElement(rn,{align:"center",gap:8},g.createElement(MV,{checked:$,onChange:()=>h(S,E.status),size:"small",disabled:w}),g.createElement("span",null,"Active")),g.createElement(rn,{align:"center",gap:8},g.createElement(Ah,null),g.createElement("span",null,O)),g.createElement(rn,{align:"center",gap:8},g.createElement(Dd,null),g.createElement("span",null,I)))),!w&&g.createElement("div",{className:Yn.alertActions},g.createElement(on,{type:"text",danger:!0,icon:g.createElement(Fh,null),onClick:()=>C(S),className:Yn.deleteButton},"Delete"),g.createElement(on,{type:"primary",icon:g.createElement(Rd,null),onClick:()=>b(S),className:Yn.editButton},"Edit")),w&&g.createElement("div",{className:Yn.editFormCard},g.createElement(nN,{form:d,initialValues:E,onSubmit:y,isSubmitting:l}),g.createElement(rn,{gap:8,justify:"flex-end",style:{marginTop:"1.6rem"}},g.createElement(on,{onClick:v,disabled:l},"Cancel"),g.createElement(on,{type:"primary",onClick:()=>sr(this,null,function*(){try{const N=yield d.validateFields(),_={realtime:dn.REALTIME,daily:dn.DAILY,alternate:dn.ALTERNATE_DAY,weekly:dn.WEEKLY},P=N.frequency==="realtime",M={alert:{name:N.name,job_functions:N.job_functions||[],min_ctc:N.min_ctc,locations:N.locations||[],min_experience:N.min_experience?parseInt(N.min_experience,10):0,max_experience:N.max_experience?parseInt(N.max_experience,10):null,frequency:_[N.frequency]||dn.REALTIME,notification_type:P&&N.notification_type||rr.EMAIL}};yield y(M)}catch(N){}}),loading:l},"Update Alert"))))}))}function cG(){const e=$t.useDispatch(),t=$t.useSelector(b=>b.scalantCareerHub.dashboard.jobAlertModalOpen),[n,r]=g.useState("create"),[o]=Vt.useForm(),[i,{isLoading:a}]=tG();g.useEffect(()=>{t||(o.resetFields(),r("create"))},[t,o]);const l=()=>{e(pU())},c=()=>{l()},u=()=>sr(this,null,function*(){try{const b=yield o.validateFields(),v={realtime:dn.REALTIME,daily:dn.DAILY,alternate:dn.ALTERNATE_DAY,weekly:dn.WEEKLY},y=b.frequency==="realtime",C={alert:{name:b.name,job_functions:b.job_functions||[],min_ctc:b.min_ctc,locations:b.locations||[],min_experience:b.min_experience?parseInt(b.min_experience,10):0,max_experience:b.max_experience?parseInt(b.max_experience,10):null,frequency:v[b.frequency]||dn.REALTIME,notification_type:y&&b.notification_type||rr.EMAIL},resume_alert:!1},x=yield i(C).unwrap();x.success&&x.alert&&(o.resetFields(),r("existing"),Vr.success("Alert created successfully"))}catch(b){Vr.error("Failed to create alert"),console.error("Error creating alert:",b)}}),d=b=>sr(this,null,function*(){const v=ya(fr({},b),{resume_alert:!1});return yield i(v).unwrap()}),f=g.createElement(rn,{vertical:!0},g.createElement(rn,{justify:"space-between"},g.createElement(rn,{align:"center",gap:8},g.createElement($_,{className:po.filterIcon}),"Curate your Job Alert"),g.createElement($r,{onClick:l})),g.createElement("div",{className:po.drawerHeaderSubtitle},"By creating a job alert, you will be notified when a job posting matches your preferred criteria")),m=g.createElement("div",{className:po.modalFooter},g.createElement(on,{onClick:c},"Cancel"),g.createElement(on,{type:"primary",onClick:u,loading:a},"Create Alert")),p=g.createElement(nN,{form:o,onSubmit:d,isSubmitting:a}),h=g.createElement(sG,null);return g.createElement(q$,{title:f,open:t,onCancel:l,footer:m,width:600,closable:!1,className:po.modal},g.createElement(bp,{activeKey:n,onChange:r,items:[{key:"create",label:"Create alert",children:p},{key:"existing",label:"Existing alerts",children:h}]}))}const uG={jobsPageContent:"_jobsPageContent_pk7y3_1"};function rN({country:e,openMockInterviewModal:t,openResume:n,processCounts:r=Bb,userProfileData:o}){const i=$t.useDispatch(),a=$t.useSelector(m=>m.scalantCareerHub.layout.selectedJobId),l=$t.useSelector(m=>{var p,h;return((h=(p=m.scalantCareerHub)==null?void 0:p.filter)==null?void 0:h.tab)||vn.all});g.useEffect(()=>{i(cU(r))},[r,i]),g.useEffect(()=>{o&&i(uU(o))},[o,i]);const c=g.createElement($u,null),u=a?g.createElement(Ou,{country:e,openMockInterviewModal:t,openResume:n,jobId:a}):g.createElement(wu,null),d=a?jb.JOB_DETAILS:jb.PROFILE_DETAILS,f=()=>{switch(l){case vn.relevant:return g.createElement(BU,null);case vn.saved:return g.createElement(VU,null);case vn.applied:return g.createElement(KU,null);case vn.all:default:return g.createElement(FU,null)}};return g.createElement(g.Fragment,null,g.createElement(Eu,{header:c,sider:u,siderWidth:d,className:uG.jobsPage},f()),g.createElement(JU,null),g.createElement(cG,null))}rN.propTypes={processCounts:pe.shape({all:pe.number,relevant:pe.number,draft:pe.number,applications:pe.number,saved:pe.number,archived:pe.number}),userProfileData:pe.object};function Kv(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var qv=function(){return Math.random().toString(36).substring(7).split("").join(".")},kl={INIT:"@@redux/INIT"+qv(),REPLACE:"@@redux/REPLACE"+qv(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+qv()}};function dG(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function fG(e){if(e===void 0)return"undefined";if(e===null)return"null";var t=typeof e;switch(t){case"boolean":case"string":case"number":case"symbol":case"function":return t}if(Array.isArray(e))return"array";if(vG(e))return"date";if(pG(e))return"error";var n=mG(e);switch(n){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return n}return t.slice(8,-1).toLowerCase().replace(/\s/g,"")}function mG(e){return typeof e.constructor=="function"?e.constructor.name:null}function pG(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function vG(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function gG(e){var t=typeof e;return process.env.NODE_ENV!=="production"&&(t=fG(e)),t}function oN(e){typeof console!="undefined"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch(t){}}function hG(e,t,n,r){var o=Object.keys(t),i=n&&n.type===kl.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(o.length===0)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!dG(e))return"The "+i+' has unexpected type of "'+gG(e)+'". Expected argument to be an object with the following '+('keys: "'+o.join('", "')+'"');var a=Object.keys(e).filter(function(l){return!t.hasOwnProperty(l)&&!r[l]});if(a.forEach(function(l){r[l]=!0}),!(n&&n.type===kl.REPLACE)&&a.length>0)return"Unexpected "+(a.length>1?"keys":"key")+" "+('"'+a.join('", "')+'" found in '+i+". ")+"Expected to find one of the known reducer keys instead: "+('"'+o.join('", "')+'". Unexpected keys will be ignored.')}function bG(e){Object.keys(e).forEach(function(t){var n=e[t],r=n(void 0,{type:kl.INIT});if(typeof r=="undefined")throw new Error(process.env.NODE_ENV==="production"?Kv(12):'The slice reducer for key "'+t+`" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);if(typeof n(void 0,{type:kl.PROBE_UNKNOWN_ACTION()})=="undefined")throw new Error(process.env.NODE_ENV==="production"?Kv(13):'The slice reducer for key "'+t+'" returned undefined when probed with a random type. '+("Don't try to handle '"+kl.INIT+`' or other actions in "redux/*" `)+"namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.")})}function yG(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var o=t[r];process.env.NODE_ENV!=="production"&&typeof e[o]=="undefined"&&oN('No reducer provided for key "'+o+'"'),typeof e[o]=="function"&&(n[o]=e[o])}var i=Object.keys(n),a;process.env.NODE_ENV!=="production"&&(a={});var l;try{bG(n)}catch(c){l=c}return function(u,d){if(u===void 0&&(u={}),l)throw l;if(process.env.NODE_ENV!=="production"){var f=hG(u,n,d,a);f&&oN(f)}for(var m=!1,p={},h=0;h<i.length;h++){var b=i[h],v=n[b],y=u[b],C=v(y,d);if(typeof C=="undefined"){var x=d&&d.type;throw new Error(process.env.NODE_ENV==="production"?Kv(14):"When called with an action of type "+(x?'"'+String(x)+'"':"(unknown type)")+', the slice reducer for key "'+b+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.')}p[b]=C,m=m||C!==y}return m=m||i.length!==Object.keys(u).length,m?p:u}}const CG={company_categories:[{value:5,label:"large_enterprise"},{value:6,label:"large_startups"},{value:7,label:"early_startups"}],job_categories:[{value:56529,label:"Backend Engineer"},{value:56530,label:"FullStack Engineer"},{value:56531,label:"Frontend Engineer"},{value:56569,label:"Android Engineer"},{value:56570,label:"iOS Engineer"},{value:179985,label:"Testing Engineer"},{value:189726,label:"Data Scientist"},{value:189727,label:"Data Analyst"},{value:189728,label:"Business Analyst"},{value:202365,label:"Data Engineer"},{value:221192,label:"DevOps Engineer"}],job_locations:[{value:"Bangalore",label:"Bangalore"},{value:"Pune",label:"Pune"},{value:"Hyderabad",label:"Hyderabad"},{value:"Gurgaon",label:"Gurgaon"},{value:"Noida",label:"Noida"},{value:"Chennai",label:"Chennai"},{value:"Delhi",label:"Delhi"},{value:"Chandigarh",label:"Chandigarh"},{value:"Kolkata",label:"Kolkata"},{value:"Mumbai",label:"Mumbai"},{value:"Jaipur",label:"Jaipur"},{value:"Vadodara",label:"Vadodara"},{value:"Nagpur",label:"Nagpur"},{value:"Ahmedabad",label:"Ahmedabad"},{value:"Kochi",label:"Kochi"},{value:"Mysore",label:"Mysore"},{value:"Coimbatore",label:"Coimbatore"},{value:"Bangkok",label:"Bangkok"},{value:"Mauritius",label:"Mauritius"},{value:"Udaipur",label:"Udaipur"},{value:"Cochin",label:"Cochin"},{value:"Remote",label:"Remote"},{value:"Hubballi",label:"Hubballi"},{value:"Goa",label:"Goa"},{value:"Trivandrum",label:"Trivandrum"},{value:"Indore",label:"Indore"},{value:"London",label:"London"},{value:"Bhubaneswar",label:"Bhubaneswar"},{value:"Menlo Park",label:"Menlo Park"},{value:"Dehradun",label:"Dehradun"},{value:"Hosur",label:"Hosur"},{value:"Delaware",label:"Delaware"},{value:"Amsterdam",label:"Amsterdam"},{value:"California",label:"California"},{value:"Mohali",label:"Mohali"},{value:"New Jersey",label:"New Jersey"},{value:"Arizona",label:"Arizona"},{value:"North Carolina",label:"North Carolina"},{value:"Agra",label:"Agra"},{value:"Saudi Arabia",label:"Saudi Arabia"},{value:"Pondicherry",label:"Pondicherry"},{value:"Vizag",label:"Vizag"}],role_types:[{value:198018,label:"internship"},{value:198019,label:"full_time"}],seniority_levels:[{value:202948,label:"Fresher"},{value:202949,label:"Entry - Mid"},{value:202950,label:"Mid - Senior"},{value:202951,label:"Senior"}],proficiency_mapping:{"Must to Have":0,"Good to Have":1,"Bar Raiser":2,"Must to Have (Eligibility)":3},onboarding_modal_clicked:!0,pipeline_stages:[{value:"draft",label:"Draft"},{value:"in_review",label:"In Review"},{value:"resume_sent",label:"Resume Sent"},{value:"resume_shortlisted",label:"Resume Shortlisted"},{value:"interviewing",label:"Interviewing"},{value:"to_be_offered",label:"To Be Offered"},{value:"rejected",label:"Rejected"},{value:"offer_received",label:"Offer Received"},{value:"offer_withdrawn",label:"Offer Withdrawn"},{value:"offer_accepted",label:"Offer Accepted"},{value:"offer_declined",label:"Offer Declined"},{value:"on_hold",label:"On Hold"},{value:"joined",label:"Joined"},{value:"saved",label:"Saved"},{value:"not_interested",label:"Not Interested"},{value:"application_withdrawn",label:"Application Withdrawn"},{value:"application_archived",label:"Application Archived"}],merit_based_skills:[{id:37223,title:"Databases and SQL",mentee_module_id:null},{id:37183,title:"Data Structures & Algorithms",mentee_module_id:null},{id:37184,title:"Python",mentee_module_id:null},{id:37185,title:"Java",mentee_module_id:null},{id:37186,title:"Javascript",mentee_module_id:null},{id:37187,title:"Low Level Design",mentee_module_id:3053255},{id:37188,title:"High Level Design",mentee_module_id:3053256},{id:37189,title:"Frontend (React)",mentee_module_id:3053258},{id:37190,title:"Backend (Java Spring/Springboot)",mentee_module_id:3053258},{id:37216,title:"Django",mentee_module_id:3053258},{id:37244,title:"Angular",mentee_module_id:3053258},{id:37191,title:"Python Libraries",mentee_module_id:null},{id:37192,title:"SQL",mentee_module_id:null},{id:37193,title:"Data Analytics - Tools",mentee_module_id:null},{id:37194,title:"EDA Fundamentals",mentee_module_id:null},{id:37195,title:"Supervised Learning",mentee_module_id:null},{id:37196,title:"Unsupervised Learning",mentee_module_id:null},{id:37197,title:"Computer Vision",mentee_module_id:7522793},{id:37198,title:"Natural Language Processing",mentee_module_id:7522794},{id:37194,title:"EDA Fundamentals",mentee_module_id:null},{id:37195,title:"Supervised Learning",mentee_module_id:null},{id:37196,title:"Unsupervised Learning",mentee_module_id:null},{id:37201,title:"DA tools",mentee_module_id:null},{id:37202,title:"Intermediate DSA",mentee_module_id:null},{id:37245,title:"DevOps - Data Structures & Algorithms",mentee_module_id:null},{id:37245,title:"DevOps - Data Structures & Algorithms",mentee_module_id:null},{id:37183,title:"Data Structures & Algorithms",mentee_module_id:null},{id:37223,title:"Databases and SQL",mentee_module_id:null},{id:37185,title:"Java",mentee_module_id:7532826},{id:37186,title:"Javascript",mentee_module_id:7532826},{id:37187,title:"Low Level Design",mentee_module_id:7532828},{id:37189,title:"Frontend (React)",mentee_module_id:7532828},{id:37244,title:"Angular",mentee_module_id:7532828},{id:37188,title:"High Level Design",mentee_module_id:null},{id:37192,title:"SQL",mentee_module_id:null},{id:37191,title:"Python Libraries",mentee_module_id:null},{id:37194,title:"EDA Fundamentals",mentee_module_id:null},{id:37195,title:"Supervised Learning",mentee_module_id:null},{id:37196,title:"Unsupervised Learning",mentee_module_id:7522864},{id:37184,title:"Python",mentee_module_id:5696347},{id:37185,title:"Java",mentee_module_id:5696347},{id:37186,title:"Javascript",mentee_module_id:5696347},{id:37184,title:"Python",mentee_module_id:null},{id:37185,title:"Java",mentee_module_id:null},{id:37186,title:"Javascript",mentee_module_id:null},{id:37187,title:"Low Level Design",mentee_module_id:null},{id:37186,title:"Javascript",mentee_module_id:5910715},{id:37189,title:"Frontend (React)",mentee_module_id:null},{id:37244,title:"Angular",mentee_module_id:null},{id:37224,title:"MERN",mentee_module_id:null},{id:37190,title:"Backend (Java Spring/Springboot)",mentee_module_id:null},{id:37216,title:"Django",mentee_module_id:null},{id:37224,title:"MERN",mentee_module_id:null},{id:37190,title:"Backend (Java Spring/Springboot)",mentee_module_id:null},{id:37216,title:"Django",mentee_module_id:null},{id:37224,title:"MERN",mentee_module_id:null},{id:37190,title:"Backend (Java Spring/Springboot)",mentee_module_id:null},{id:37216,title:"Django",mentee_module_id:null},{id:37224,title:"MERN",mentee_module_id:null},{id:37226,title:"Data Structures & Algorithms Advanced",mentee_module_id:7522524},{id:37190,title:"Backend (Java Spring/Springboot)",mentee_module_id:null},{id:37216,title:"Django",mentee_module_id:null},{id:37224,title:"MERN",mentee_module_id:null},{id:37184,title:"Python",mentee_module_id:null},{id:37185,title:"Java",mentee_module_id:null},{id:37186,title:"Javascript",mentee_module_id:null},{id:37187,title:"Low Level Design",mentee_module_id:null},{id:37188,title:"High Level Design",mentee_module_id:null},{id:37247,title:"Shell Scripting and CS Fundamentals",mentee_module_id:7522518},{id:37194,title:"EDA Fundamentals",mentee_module_id:null}],v1_onboarding_enabled:!0,v0_onboarding_completed:!0,initial_user_application_stage:4,is_discussion_hub_enabled:!1,resume_issues:{total_issues:2},default_resume_details:{id:17407,user_id:674153,name:"AswanthDefaultResume",default:!0,status:"active",meta:{social_profiles:{codechef:"",codeforces:"",geeksforgeeks:"",github:"",hackerearth:"",hackerrank:"",leetcode:"",portfolio:""},job_title:"Fullstack developer 1",interactions:{relevancy_alert_modal_displayed:!0}},modified_at:"2025-05-11T15:27:35.000Z",created_at:"2024-02-13T19:39:17.000Z",updated_at:"2025-05-11T15:27:35.000Z"},resume_builder_skills:{language:[1167,1150,1148,1136,1128,1276,1270,1218,1217,1215,1213,1211,1210,1209],framework:[1206,1203,1200,1198,1197,1196,1195,1158,1157,1156,1145,1133],tools:[2431,2430,2435,1234,1231,1229,1228,1176,1175,2432,46262,58475]},skill_data:[{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:1128,subtopic:"Javascript",eligible_topic_id:7591,eligible_class:"Topic"},{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:1133,subtopic:"Angular",eligible_topic_id:7580,eligible_class:"Topic"},{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:1136,subtopic:"CSS",eligible_topic_id:7586,eligible_class:"Topic"},{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:1145,subtopic:"Flutter",eligible_topic_id:8760,eligible_class:"Topic"},{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:1148,subtopic:"HTML",eligible_topic_id:7589,eligible_class:"Topic"},{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:1150,subtopic:"JavaScript",eligible_topic_id:7591,eligible_class:"Topic"},{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:1156,subtopic:"React",eligible_topic_id:7597,eligible_class:"Topic"},{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:1157,subtopic:"React Native",eligible_topic_id:8763,eligible_class:"Topic"},{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:1158,subtopic:"Redux",eligible_topic_id:8764,eligible_class:"Topic"},{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:1167,subtopic:"TypeScript",eligible_topic_id:8768,eligible_class:"Topic"},{id:null,topic:"Mobile Development",topic_id:401,subtopic_id:1175,subtopic:"Android Development",eligible_topic_id:8753,eligible_class:"Topic"},{id:null,topic:"Mobile Development",topic_id:401,subtopic_id:1176,subtopic:"iOS Development",eligible_topic_id:8770,eligible_class:"Topic"},{id:null,topic:"Backend Development",topic_id:403,subtopic_id:1195,subtopic:".NET",eligible_topic_id:7579,eligible_class:"Topic"},{id:null,topic:"Backend Development",topic_id:403,subtopic_id:1196,subtopic:"Django",eligible_topic_id:7587,eligible_class:"Topic"},{id:null,topic:"Backend Development",topic_id:403,subtopic_id:1197,subtopic:"Express.js",eligible_topic_id:8758,eligible_class:"Topic"},{id:null,topic:"Backend Development",topic_id:403,subtopic_id:1198,subtopic:"Flask",eligible_topic_id:8759,eligible_class:"Topic"},{id:null,topic:"Backend Development",topic_id:403,subtopic_id:1200,subtopic:"Node.js",eligible_topic_id:7594,eligible_class:"Topic"},{id:null,topic:"Backend Development",topic_id:403,subtopic_id:1203,subtopic:"Ruby on Rails",eligible_topic_id:null,eligible_class:"Topic"},{id:null,topic:"Backend Development",topic_id:403,subtopic_id:1206,subtopic:"Spring Boot",eligible_topic_id:7600,eligible_class:"Topic"},{id:null,topic:"Programming",topic_id:404,subtopic_id:1209,subtopic:"C",eligible_topic_id:8755,eligible_class:"Topic"},{id:null,topic:"Programming",topic_id:404,subtopic_id:1210,subtopic:"Go",eligible_topic_id:8761,eligible_class:"Topic"},{id:null,topic:"Programming",topic_id:404,subtopic_id:1211,subtopic:"Java",eligible_topic_id:7590,eligible_class:"Topic"},{id:null,topic:"Programming",topic_id:404,subtopic_id:1213,subtopic:"Python",eligible_topic_id:7596,eligible_class:"Topic"},{id:null,topic:"Programming",topic_id:404,subtopic_id:1215,subtopic:"Ruby",eligible_topic_id:null,eligible_class:"Topic"},{id:null,topic:"Programming",topic_id:404,subtopic_id:1217,subtopic:"Scala",eligible_topic_id:8765,eligible_class:"Topic"},{id:null,topic:"Programming",topic_id:404,subtopic_id:1218,subtopic:"Swift",eligible_topic_id:8766,eligible_class:"Topic"},{id:null,topic:"DBMS",topic_id:406,subtopic_id:1228,subtopic:"MongoDB",eligible_topic_id:8769,eligible_class:"Topic"},{id:null,topic:"DBMS",topic_id:406,subtopic_id:1229,subtopic:"MySQL",eligible_topic_id:7601,eligible_class:"Topic"},{id:null,topic:"DBMS",topic_id:406,subtopic_id:1231,subtopic:"PostgreSQL",eligible_topic_id:7601,eligible_class:"Topic"},{id:null,topic:"DBMS",topic_id:406,subtopic_id:1234,subtopic:"SQL Server",eligible_topic_id:7601,eligible_class:"Topic"},{id:null,topic:"Programming",topic_id:404,subtopic_id:1270,subtopic:"C#",eligible_topic_id:7584,eligible_class:"Topic"},{id:null,topic:"Programming",topic_id:404,subtopic_id:1276,subtopic:"C++",eligible_topic_id:7585,eligible_class:"Topic"},{id:null,topic:"Cloud Computing",topic_id:564,subtopic_id:2430,subtopic:"AWS",eligible_topic_id:7581,eligible_class:"Topic"},{id:null,topic:"CloudComputing",topic_id:564,subtopic_id:2431,subtopic:"Azure",eligible_topic_id:8754,eligible_class:"Topic"},{id:null,topic:"System Design",topic_id:563,subtopic_id:2432,subtopic:"Microservices",eligible_topic_id:7593,eligible_class:"Topic"},{id:null,topic:"DBMS",topic_id:406,subtopic_id:2435,subtopic:"SQL",eligible_topic_id:7601,eligible_class:"Topic"},{id:null,topic:"Machine Learning",topic_id:405,subtopic_id:46262,subtopic:"Tableau",eligible_topic_id:7604,eligible_class:"Topic"},{id:null,topic:"Frontend Development",topic_id:400,subtopic_id:58475,subtopic:"Power BI",eligible_topic_id:null,eligible_class:"Topic"}]},SG=e=>!e||!Array.isArray(e)?e:e.map(t=>ya(fr({},t),{label:wU(t.label||"").replace(/_/g," ")})),xG=e=>!e||!Array.isArray(e)?e:e.map(t=>ya(fr({},t),{label:eq("titleCase",t.label||"")})),iN=e=>{if(!e||typeof e!="object")return e;const t=Cu(e);return t.companyCategories&&(t.companyCategories=SG(t.companyCategories)),t.roleTypes&&(t.roleTypes=xG(t.roleTypes)),t},EG=window.__CAREERS_HUB__||CG,$G={meta:iN(EG)},aN=We.createSlice({name:"metaData",initialState:$G,reducers:{setMetaData:(e,t)=>{e.meta=iN(t.payload)}}});aN.actions;const wG=aN.reducer,OG=yG({[Yr.reducerPath]:Yr.reducer,layout:jU,filter:HI,dashboard:vU,filterForm:XU,metaData:wG,filterOptions:CM,alerts:lG});vt.APPLICATION_STATUS=RI,vt.ApplicationForm=Kb,vt.EligibilityTag=gu,vt.FormContainer=MO,vt.FormContent=Hd,vt.FormHeader=Ev,vt.HelloWorld=Ur,vt.JOB_CARD_CONFIG=sd,vt.JOB_PROFILE_STATUS=jI,vt.JobCard=yu,vt.JobDetails=Ou,vt.JobsHeader=$u,vt.JobsLayout=Eu,vt.JobsList=Ei,vt.JobsPage=rN,vt.ProfileDetails=wu,vt.SaveButton=hu,vt.TABS=LI,vt.careerHubApi=Yr,vt.checkAllOtherRequirementsMet=wv,vt.countPendingSteps=AO,vt.default=Ur,vt.determineJobTag=Nv,vt.formatCtc=Pv,vt.formatDate=RO,vt.formatExperience=Tv,vt.formatLocation=Dv,vt.formatNoticePeriod=Mv,vt.setBaseUrl=TI,vt.store=OG,vt.useApplicationForm=Ug,vt.useCreateApplication=qg,vt.useJobCardState=Gg,Object.defineProperties(vt,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|