@akinon/ui-button 0.0.1
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/index.cjs +119 -0
- package/dist/index.d.ts +33 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +5854 -0
- package/package.json +43 -0
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(".ant-btn-secondary{color:var(--color-neutral-50);background-color:var(--color-green-500);box-shadow:0 2px #0591ff1a}")),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
|
|
2
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ma=require("react/jsx-runtime"),A=require("react"),yo=require("react-dom");function So(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const v=So(A),ba=So(yo);function ya(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Co={exports:{}};/*!
|
|
3
|
+
Copyright (c) 2018 Jed Watson.
|
|
4
|
+
Licensed under the MIT License (MIT), see
|
|
5
|
+
http://jedwatson.github.io/classnames
|
|
6
|
+
*/(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var n=[],o=0;o<arguments.length;o++){var i=arguments[o];if(i){var a=typeof i;if(a==="string"||a==="number")n.push(i);else if(Array.isArray(i)){if(i.length){var c=r.apply(null,i);c&&n.push(c)}}else if(a==="object"){if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]")){n.push(i.toString());continue}for(var l in i)t.call(i,l)&&i[l]&&n.push(l)}}}return n.join(" ")}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(Co);var Sa=Co.exports;const me=ya(Sa);function Ht(){return Ht=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ht.apply(this,arguments)}var wr={exports:{}},U={};/**
|
|
7
|
+
* @license React
|
|
8
|
+
* react-is.production.min.js
|
|
9
|
+
*
|
|
10
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
11
|
+
*
|
|
12
|
+
* This source code is licensed under the MIT license found in the
|
|
13
|
+
* LICENSE file in the root directory of this source tree.
|
|
14
|
+
*/var Tn;function Ca(){if(Tn)return U;Tn=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),c=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),S=Symbol.for("react.offscreen"),x;x=Symbol.for("react.module.reference");function m(d){if(typeof d=="object"&&d!==null){var $=d.$$typeof;switch($){case e:switch(d=d.type,d){case r:case o:case n:case s:case u:return d;default:switch(d=d&&d.$$typeof,d){case c:case a:case l:case g:case f:case i:return d;default:return $}}case t:return $}}}return U.ContextConsumer=a,U.ContextProvider=i,U.Element=e,U.ForwardRef=l,U.Fragment=r,U.Lazy=g,U.Memo=f,U.Portal=t,U.Profiler=o,U.StrictMode=n,U.Suspense=s,U.SuspenseList=u,U.isAsyncMode=function(){return!1},U.isConcurrentMode=function(){return!1},U.isContextConsumer=function(d){return m(d)===a},U.isContextProvider=function(d){return m(d)===i},U.isElement=function(d){return typeof d=="object"&&d!==null&&d.$$typeof===e},U.isForwardRef=function(d){return m(d)===l},U.isFragment=function(d){return m(d)===r},U.isLazy=function(d){return m(d)===g},U.isMemo=function(d){return m(d)===f},U.isPortal=function(d){return m(d)===t},U.isProfiler=function(d){return m(d)===o},U.isStrictMode=function(d){return m(d)===n},U.isSuspense=function(d){return m(d)===s},U.isSuspenseList=function(d){return m(d)===u},U.isValidElementType=function(d){return typeof d=="string"||typeof d=="function"||d===r||d===o||d===n||d===s||d===u||d===S||typeof d=="object"&&d!==null&&(d.$$typeof===g||d.$$typeof===f||d.$$typeof===i||d.$$typeof===a||d.$$typeof===l||d.$$typeof===x||d.getModuleId!==void 0)},U.typeOf=m,U}var X={};/**
|
|
15
|
+
* @license React
|
|
16
|
+
* react-is.development.js
|
|
17
|
+
*
|
|
18
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
19
|
+
*
|
|
20
|
+
* This source code is licensed under the MIT license found in the
|
|
21
|
+
* LICENSE file in the root directory of this source tree.
|
|
22
|
+
*/var Pn;function Ea(){return Pn||(Pn=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),a=Symbol.for("react.context"),c=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),S=Symbol.for("react.offscreen"),x=!1,m=!1,d=!1,$=!1,C=!1,j;j=Symbol.for("react.module.reference");function M(R){return!!(typeof R=="string"||typeof R=="function"||R===r||R===o||C||R===n||R===s||R===u||$||R===S||x||m||d||typeof R=="object"&&R!==null&&(R.$$typeof===g||R.$$typeof===f||R.$$typeof===i||R.$$typeof===a||R.$$typeof===l||R.$$typeof===j||R.getModuleId!==void 0))}function _(R){if(typeof R=="object"&&R!==null){var se=R.$$typeof;switch(se){case e:var ye=R.type;switch(ye){case r:case o:case n:case s:case u:return ye;default:var ge=ye&&ye.$$typeof;switch(ge){case c:case a:case l:case g:case f:case i:return ge;default:return se}}case t:return se}}}var P=a,y=i,L=e,I=l,w=r,H=g,D=f,k=t,z=o,B=n,b=s,p=u,h=!1,E=!1;function O(R){return h||(h=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function T(R){return E||(E=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function N(R){return _(R)===a}function G(R){return _(R)===i}function V(R){return typeof R=="object"&&R!==null&&R.$$typeof===e}function J(R){return _(R)===l}function re(R){return _(R)===r}function ae(R){return _(R)===g}function De(R){return _(R)===f}function _e(R){return _(R)===t}function xe(R){return _(R)===o}function pe(R){return _(R)===n}function je(R){return _(R)===s}function we(R){return _(R)===u}X.ContextConsumer=P,X.ContextProvider=y,X.Element=L,X.ForwardRef=I,X.Fragment=w,X.Lazy=H,X.Memo=D,X.Portal=k,X.Profiler=z,X.StrictMode=B,X.Suspense=b,X.SuspenseList=p,X.isAsyncMode=O,X.isConcurrentMode=T,X.isContextConsumer=N,X.isContextProvider=G,X.isElement=V,X.isForwardRef=J,X.isFragment=re,X.isLazy=ae,X.isMemo=De,X.isPortal=_e,X.isProfiler=xe,X.isStrictMode=pe,X.isSuspense=je,X.isSuspenseList=we,X.isValidElementType=M,X.typeOf=_}()),X}process.env.NODE_ENV==="production"?wr.exports=Ca():wr.exports=Ea();var xa=wr.exports,Or={},nn=[],wa=function(t){nn.push(t)};function on(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var r=nn.reduce(function(n,o){return o(n??"","warning")},t);r&&console.error("Warning: ".concat(r))}}function Oa(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var r=nn.reduce(function(n,o){return o(n??"","note")},t);r&&console.warn("Note: ".concat(r))}}function Eo(){Or={}}function xo(e,t,r){!t&&!Or[r]&&(e(!1,r),Or[r]=!0)}function qe(e,t){xo(on,e,t)}function Ta(e,t){xo(Oa,e,t)}qe.preMessage=wa;qe.resetWarned=Eo;qe.noteOnce=Ta;function Q(e){"@babel/helpers - typeof";return Q=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},Q(e)}function Pa(e,t){if(Q(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Q(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function wo(e){var t=Pa(e,"string");return Q(t)==="symbol"?t:String(t)}function q(e,t,r){return t=wo(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function An(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function W(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?An(Object(r),!0).forEach(function(n){q(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):An(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Aa(e){return e instanceof HTMLElement||e instanceof SVGElement}function $a(e){return Aa(e)?e:e instanceof A.Component?yo.findDOMNode(e):null}function Oo(e,t,r){var n=v.useRef({});return(!("value"in n.current)||r(n.current.condition,t))&&(n.current.value=e(),n.current.condition=t),n.current.value}function To(e,t){typeof e=="function"?e(t):Q(e)==="object"&&e&&"current"in e&&(e.current=t)}function Po(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t.filter(function(o){return o});return n.length<=1?n[0]:function(o){t.forEach(function(i){To(i,o)})}}function Ao(e){var t,r,n=xa.isMemo(e)?e.type.type:e.type;return!(typeof n=="function"&&!((t=n.prototype)!==null&&t!==void 0&&t.render)||typeof e=="function"&&!((r=e.prototype)!==null&&r!==void 0&&r.render))}function ht(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,wo(n.key),n)}}function mt(e,t,r){return t&&$n(e.prototype,t),r&&$n(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Tr(e,t){return Tr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},Tr(e,t)}function $o(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&&Tr(e,t)}function zt(e){return zt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},zt(e)}function Ra(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Pr(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _a(e,t){if(t&&(Q(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Pr(e)}function Ro(e){var t=Ra();return function(){var n=zt(e),o;if(t){var i=zt(this).constructor;o=Reflect.construct(n,arguments,i)}else o=n.apply(this,arguments);return _a(this,o)}}function ja(e,t){var r=W({},e);return Array.isArray(t)&&t.forEach(function(n){delete r[n]}),r}function Ar(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Ma(e){if(Array.isArray(e))return Ar(e)}function _o(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function an(e,t){if(e){if(typeof e=="string")return Ar(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ar(e,t)}}function Ia(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
23
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Le(e){return Ma(e)||_o(e)||an(e)||Ia()}var jo=function(t){return+setTimeout(t,16)},Mo=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(jo=function(t){return window.requestAnimationFrame(t)},Mo=function(t){return window.cancelAnimationFrame(t)});var Rn=0,cn=new Map;function Io(e){cn.delete(e)}var Ue=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;Rn+=1;var n=Rn;function o(i){if(i===0)Io(n),t();else{var a=jo(function(){o(i-1)});cn.set(n,a)}}return o(r),n};Ue.cancel=function(e){var t=cn.get(e);return Io(t),Mo(t)};function sn(e){for(var t=0,r,n=0,o=e.length;o>=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&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 Na(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,i;for(i=0;i<n.length;i++)o=n[i],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}function $r(e,t){if(e==null)return{};var r=Na(e,t),n,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function La(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=new Set;function o(i,a){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=n.has(i);if(qe(!l,"Warning: There may be circular references"),l)return!1;if(i===a)return!0;if(r&&c>1)return!1;n.add(i);var s=c+1;if(Array.isArray(i)){if(!Array.isArray(a)||i.length!==a.length)return!1;for(var u=0;u<i.length;u++)if(!o(i[u],a[u],s))return!1;return!0}if(i&&a&&Q(i)==="object"&&Q(a)==="object"){var f=Object.keys(i);return f.length!==Object.keys(a).length?!1:f.every(function(g){return o(i[g],a[g],s)})}return!1}return o(e,t)}var _n="%",ka=function(){function e(t){ht(this,e),q(this,"instanceId",void 0),q(this,"cache",new Map),this.instanceId=t}return mt(e,[{key:"get",value:function(r){return this.cache.get(r.join(_n))||null}},{key:"update",value:function(r,n){var o=r.join(_n),i=this.cache.get(o),a=n(i);a===null?this.cache.delete(o):this.cache.set(o,a)}}]),e}(),Rr="data-token-hash",We="data-css-hash",Da="data-cache-path",Ze="__cssinjs_instance__";function Ba(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(We,"]"))||[],r=document.head.firstChild;Array.from(t).forEach(function(o){o[Ze]=o[Ze]||e,o[Ze]===e&&document.head.insertBefore(o,r)});var n={};Array.from(document.querySelectorAll("style[".concat(We,"]"))).forEach(function(o){var i=o.getAttribute(We);if(n[i]){if(o[Ze]===e){var a;(a=o.parentNode)===null||a===void 0||a.removeChild(o)}}else n[i]=!0})}return new ka(e)}var Ha=v.createContext({hashPriority:"low",cache:Ba(),defaultCache:!0});const ln=Ha;function Ee(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function za(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var r=t;r;){if(r===e)return!0;r=r.parentNode}return!1}var jn="data-rc-order",Mn="data-rc-priority",Fa="rc-util-key",_r=new Map;function No(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):Fa}function Xt(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function Wa(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Lo(e){return Array.from((_r.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function ko(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Ee())return null;var r=t.csp,n=t.prepend,o=t.priority,i=o===void 0?0:o,a=Wa(n),c=a==="prependQueue",l=document.createElement("style");l.setAttribute(jn,a),c&&i&&l.setAttribute(Mn,"".concat(i)),r!=null&&r.nonce&&(l.nonce=r==null?void 0:r.nonce),l.innerHTML=e;var s=Xt(t),u=s.firstChild;if(n){if(c){var f=Lo(s).filter(function(g){if(!["prepend","prependQueue"].includes(g.getAttribute(jn)))return!1;var S=Number(g.getAttribute(Mn)||0);return i>=S});if(f.length)return s.insertBefore(l,f[f.length-1].nextSibling),l}s.insertBefore(l,u)}else s.appendChild(l);return l}function Do(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=Xt(t);return Lo(r).find(function(n){return n.getAttribute(No(t))===e})}function Bo(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=Do(e,t);if(r){var n=Xt(t);n.removeChild(r)}}function Ga(e,t){var r=_r.get(e);if(!r||!za(document,r)){var n=ko("",t),o=n.parentNode;_r.set(e,o),e.removeChild(n)}}function Ft(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=Xt(r);Ga(n,r);var o=Do(t,r);if(o){var i,a;if((i=r.csp)!==null&&i!==void 0&&i.nonce&&o.nonce!==((a=r.csp)===null||a===void 0?void 0:a.nonce)){var c;o.nonce=(c=r.csp)===null||c===void 0?void 0:c.nonce}return o.innerHTML!==e&&(o.innerHTML=e),o}var l=ko(e,r);return l.setAttribute(No(r),t),l}function Ho(e){if(Array.isArray(e))return e}function Va(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,o,i,a,c=[],l=!0,s=!1;try{if(i=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(u){s=!0,o=u}finally{try{if(!l&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}function zo(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
24
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function K(e,t){return Ho(e)||Va(e,t)||an(e,t)||zo()}function Ua(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}var un=function(){function e(){ht(this,e),q(this,"cache",void 0),q(this,"keys",void 0),q(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return mt(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(r){var n,o,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a={map:this.cache};return r.forEach(function(c){if(!a)a=void 0;else{var l,s;a=(l=a)===null||l===void 0||(s=l.map)===null||s===void 0?void 0:s.get(c)}}),(n=a)!==null&&n!==void 0&&n.value&&i&&(a.value[1]=this.cacheCallTimes++),(o=a)===null||o===void 0?void 0:o.value}},{key:"get",value:function(r){var n;return(n=this.internalGet(r,!0))===null||n===void 0?void 0:n[0]}},{key:"has",value:function(r){return!!this.internalGet(r)}},{key:"set",value:function(r,n){var o=this;if(!this.has(r)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var i=this.keys.reduce(function(s,u){var f=K(s,2),g=f[1];return o.internalGet(u)[1]<g?[u,o.internalGet(u)[1]]:s},[this.keys[0],this.cacheCallTimes]),a=K(i,1),c=a[0];this.delete(c)}this.keys.push(r)}var l=this.cache;r.forEach(function(s,u){if(u===r.length-1)l.set(s,{value:[n,o.cacheCallTimes++]});else{var f=l.get(s);f?f.map||(f.map=new Map):l.set(s,{map:new Map}),l=l.get(s).map}})}},{key:"deleteByPath",value:function(r,n){var o=r.get(n[0]);if(n.length===1){var i;return o.map?r.set(n[0],{map:o.map}):r.delete(n[0]),(i=o.value)===null||i===void 0?void 0:i[0]}var a=this.deleteByPath(o.map,n.slice(1));return(!o.map||o.map.size===0)&&!o.value&&r.delete(n[0]),a}},{key:"delete",value:function(r){if(this.has(r))return this.keys=this.keys.filter(function(n){return!Ua(n,r)}),this.deleteByPath(this.cache,r)}}]),e}();q(un,"MAX_CACHE_SIZE",20);q(un,"MAX_CACHE_OFFSET",5);var In=0,Fo=function(){function e(t){ht(this,e),q(this,"derivatives",void 0),q(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=In,t.length===0&&on(t.length>0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),In+=1}return mt(e,[{key:"getDerivativeToken",value:function(r){return this.derivatives.reduce(function(n,o){return o(r,n)},void 0)}}]),e}(),cr=new un;function jr(e){var t=Array.isArray(e)?e:[e];return cr.has(t)||cr.set(t,new Fo(t)),cr.get(t)}var Xa=new WeakMap,sr={};function Ya(e,t){for(var r=Xa,n=0;n<t.length;n+=1){var o=t[n];r.has(o)||r.set(o,new WeakMap),r=r.get(o)}return r.has(sr)||r.set(sr,e()),r.get(sr)}var Nn=new WeakMap;function Wt(e){var t=Nn.get(e)||"";return t||(Object.keys(e).forEach(function(r){var n=e[r];t+=r,n instanceof Fo?t+=n.id:n&&Q(n)==="object"?t+=Wt(n):t+=n}),Nn.set(e,t)),t}function qa(e,t){return sn("".concat(t,"_").concat(Wt(e)))}var lt="random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,""),Wo="_bAmBoO_";function Ka(e,t,r){if(Ee()){var n,o;Ft(e,lt);var i=document.createElement("div");i.style.position="fixed",i.style.left="0",i.style.top="0",t==null||t(i),document.body.appendChild(i),process.env.NODE_ENV!=="production"&&(i.innerHTML="Test",i.style.zIndex="9999999");var a=r?r(i):(n=getComputedStyle(i).content)===null||n===void 0?void 0:n.includes(Wo);return(o=i.parentNode)===null||o===void 0||o.removeChild(i),Bo(lt),a}return!1}var lr=void 0;function Qa(){return lr===void 0&&(lr=Ka("@layer ".concat(lt," { .").concat(lt,' { content: "').concat(Wo,'"!important; } }'),function(e){e.className=lt})),lr}var Ln=process.env.NODE_ENV!=="test"&&Ee()?v.useLayoutEffect:v.useEffect,Ja=function(t,r){var n=v.useRef(!0);Ln(function(){return t(n.current)},r),Ln(function(){return n.current=!1,function(){n.current=!0}},[])},Za=W({},v),kn=Za.useInsertionEffect,ec=function(t,r,n){v.useMemo(t,n),Ja(function(){return r(!0)},n)},tc=kn?function(e,t,r){return kn(function(){return e(),t()},r)}:ec;const rc=tc;var nc=W({},v),oc=nc.useInsertionEffect,ic=function(t){var r=[],n=!1;function o(i){if(n){process.env.NODE_ENV!=="production"&&on(!1,"[Ant Design CSS-in-JS] You are registering a cleanup function after unmount, which will not have any effect.");return}r.push(i)}return v.useEffect(function(){return n=!1,function(){n=!0,r.length&&r.forEach(function(i){return i()})}},t),o},ac=function(){return function(t){t()}},cc=typeof oc<"u"?ic:ac;const sc=cc;function lc(){return!1}var Mr=!1;function uc(){return Mr}const fc=process.env.NODE_ENV==="production"?lc:uc;if(process.env.NODE_ENV!=="production"&&typeof module<"u"&&module&&module.hot&&typeof window<"u"){var ur=window;if(typeof ur.webpackHotUpdate=="function"){var dc=ur.webpackHotUpdate;ur.webpackHotUpdate=function(){return Mr=!0,setTimeout(function(){Mr=!1},0),dc.apply(void 0,arguments)}}}function Go(e,t,r,n,o){var i=v.useContext(ln),a=i.cache,c=[e].concat(Le(t)),l=c.join("_"),s=sc([l]),u=fc(),f=function(m){a.update(c,function(d){var $=d||[],C=K($,2),j=C[0],M=j===void 0?0:j,_=C[1],P=_;process.env.NODE_ENV!=="production"&&_&&u&&(n==null||n(P,u),P=null);var y=P||r(),L=[M,y];return m?m(L):L})};v.useMemo(function(){f()},[l]);var g=a.get(c);process.env.NODE_ENV!=="production"&&!g&&(f(),g=a.get(c));var S=g[1];return rc(function(){o==null||o(S)},function(x){return f(function(m){var d=K(m,2),$=d[0],C=d[1];return x&&$===0&&(o==null||o(S)),[$+1,C]}),function(){a.update(c,function(m){var d=m||[],$=K(d,2),C=$[0],j=C===void 0?0:C,M=$[1],_=j-1;return _===0?(s(function(){return n==null?void 0:n(M,!1)}),null):[j-1,M]})}},[l]),S}var pc={},gc=process.env.NODE_ENV!=="production"?"css-dev-only-do-not-override":"css",ze=new Map;function vc(e){ze.set(e,(ze.get(e)||0)+1)}function hc(e,t){if(typeof document<"u"){var r=document.querySelectorAll("style[".concat(Rr,'="').concat(e,'"]'));r.forEach(function(n){if(n[Ze]===t){var o;(o=n.parentNode)===null||o===void 0||o.removeChild(n)}})}}var mc=0;function bc(e,t){ze.set(e,(ze.get(e)||0)-1);var r=Array.from(ze.keys()),n=r.filter(function(o){var i=ze.get(o)||0;return i<=0});r.length-n.length>mc&&n.forEach(function(o){hc(o,t),ze.delete(o)})}var yc=function(t,r,n,o){var i=n.getDerivativeToken(t),a=W(W({},i),r);return o&&(a=o(a)),a};function Sc(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=A.useContext(ln),o=n.cache.instanceId,i=r.salt,a=i===void 0?"":i,c=r.override,l=c===void 0?pc:c,s=r.formatToken,u=r.getComputedToken,f=Ya(function(){return Object.assign.apply(Object,[{}].concat(Le(t)))},t),g=Wt(f),S=Wt(l),x=Go("token",[a,e.id,g,S],function(){var m=u?u(f,l,e):yc(f,l,e,s),d=qa(m,a);m._tokenKey=d,vc(d);var $="".concat(gc,"-").concat(sn(d));return m._hashId=$,[m,$]},function(m){bc(m[0]._tokenKey,o)});return x}var Cc={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},Vo="comm",Uo="rule",Xo="decl",Ec="@import",xc="@keyframes",wc="@layer",Oc=Math.abs,fn=String.fromCharCode;function Yo(e){return e.trim()}function It(e,t,r){return e.replace(t,r)}function Tc(e,t){return e.indexOf(t)}function ft(e,t){return e.charCodeAt(t)|0}function dt(e,t,r){return e.slice(t,r)}function $e(e){return e.length}function Pc(e){return e.length}function xt(e,t){return t.push(e),e}var Yt=1,rt=1,qo=0,de=0,ee=0,ot="";function dn(e,t,r,n,o,i,a,c){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:Yt,column:rt,length:a,return:"",siblings:c}}function Ac(){return ee}function $c(){return ee=de>0?ft(ot,--de):0,rt--,ee===10&&(rt=1,Yt--),ee}function be(){return ee=de<qo?ft(ot,de++):0,rt++,ee===10&&(rt=1,Yt++),ee}function Ge(){return ft(ot,de)}function Nt(){return de}function qt(e,t){return dt(ot,e,t)}function Ir(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 Rc(e){return Yt=rt=1,qo=$e(ot=e),de=0,[]}function _c(e){return ot="",e}function fr(e){return Yo(qt(de-1,Nr(e===91?e+2:e===40?e+1:e)))}function jc(e){for(;(ee=Ge())&&ee<33;)be();return Ir(e)>2||Ir(ee)>3?"":" "}function Mc(e,t){for(;--t&&be()&&!(ee<48||ee>102||ee>57&&ee<65||ee>70&&ee<97););return qt(e,Nt()+(t<6&&Ge()==32&&be()==32))}function Nr(e){for(;be();)switch(ee){case e:return de;case 34:case 39:e!==34&&e!==39&&Nr(ee);break;case 40:e===41&&Nr(e);break;case 92:be();break}return de}function Ic(e,t){for(;be()&&e+ee!==47+10;)if(e+ee===42+42&&Ge()===47)break;return"/*"+qt(t,de-1)+"*"+fn(e===47?e:be())}function Nc(e){for(;!Ir(Ge());)be();return qt(e,de)}function Lc(e){return _c(Lt("",null,null,null,[""],e=Rc(e),0,[0],e))}function Lt(e,t,r,n,o,i,a,c,l){for(var s=0,u=0,f=a,g=0,S=0,x=0,m=1,d=1,$=1,C=0,j="",M=o,_=i,P=n,y=j;d;)switch(x=C,C=be()){case 40:if(x!=108&&ft(y,f-1)==58){Tc(y+=It(fr(C),"&","&\f"),"&\f")!=-1&&($=-1);break}case 34:case 39:case 91:y+=fr(C);break;case 9:case 10:case 13:case 32:y+=jc(x);break;case 92:y+=Mc(Nt()-1,7);continue;case 47:switch(Ge()){case 42:case 47:xt(kc(Ic(be(),Nt()),t,r,l),l);break;default:y+="/"}break;case 123*m:c[s++]=$e(y)*$;case 125*m:case 59:case 0:switch(C){case 0:case 125:d=0;case 59+u:$==-1&&(y=It(y,/\f/g,"")),S>0&&$e(y)-f&&xt(S>32?Bn(y+";",n,r,f-1,l):Bn(It(y," ","")+";",n,r,f-2,l),l);break;case 59:y+=";";default:if(xt(P=Dn(y,t,r,s,u,o,c,j,M=[],_=[],f,i),i),C===123)if(u===0)Lt(y,t,P,P,M,i,f,c,_);else switch(g===99&&ft(y,3)===110?100:g){case 100:case 108:case 109:case 115:Lt(e,P,P,n&&xt(Dn(e,P,P,0,0,o,c,j,o,M=[],f,_),_),o,_,f,c,n?M:_);break;default:Lt(y,P,P,P,[""],_,0,c,_)}}s=u=S=0,m=$=1,j=y="",f=a;break;case 58:f=1+$e(y),S=x;default:if(m<1){if(C==123)--m;else if(C==125&&m++==0&&$c()==125)continue}switch(y+=fn(C),C*m){case 38:$=u>0?1:(y+="\f",-1);break;case 44:c[s++]=($e(y)-1)*$,$=1;break;case 64:Ge()===45&&(y+=fr(be())),g=Ge(),u=f=$e(j=y+=Nc(Nt())),C++;break;case 45:x===45&&$e(y)==2&&(m=0)}}return i}function Dn(e,t,r,n,o,i,a,c,l,s,u,f){for(var g=o-1,S=o===0?i:[""],x=Pc(S),m=0,d=0,$=0;m<n;++m)for(var C=0,j=dt(e,g+1,g=Oc(d=a[m])),M=e;C<x;++C)(M=Yo(d>0?S[C]+" "+j:It(j,/&\f/g,S[C])))&&(l[$++]=M);return dn(e,t,r,o===0?Uo:c,l,s,u,f)}function kc(e,t,r,n){return dn(e,t,r,Vo,fn(Ac()),dt(e,2,-2),0,n)}function Bn(e,t,r,n,o){return dn(e,t,r,Xo,dt(e,0,n),dt(e,n+1,-1),n,o)}function Lr(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function Dc(e,t,r,n){switch(e.type){case wc:if(e.children.length)break;case Ec:case Xo:return e.return=e.return||e.value;case Vo:return"";case xc:return e.return=e.value+"{"+Lr(e.children,n)+"}";case Uo:if(!$e(e.value=e.props.join(",")))return""}return $e(r=Lr(e.children,n))?e.return=e.value+"{"+r+"}":""}function Ko(e,t){var r=t.path,n=t.parentSelectors;qe(!1,"[Ant Design CSS-in-JS] ".concat(r?"Error in ".concat(r,": "):"").concat(e).concat(n.length?" Selector: ".concat(n.join(" | ")):""))}var Bc=function(t,r,n){if(t==="content"){var o=/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,i=["normal","none","initial","inherit","unset"];(typeof r!="string"||i.indexOf(r)===-1&&!o.test(r)&&(r.charAt(0)!==r.charAt(r.length-1)||r.charAt(0)!=='"'&&r.charAt(0)!=="'"))&&Ko("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(r,"\"'`."),n)}},Hc=function(t,r,n){t==="animation"&&n.hashId&&r!=="none"&&Ko("You seem to be using hashed animation '".concat(r,"', in which case 'animationName' with Keyframe as value is recommended."),n)},Hn="data-ant-cssinjs-cache-path",Qo="_FILE_STYLE__",Ve,Jo=!0;function zc(){if(!Ve&&(Ve={},Ee())){var e=document.createElement("div");e.className=Hn,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=K(i,2),c=a[0],l=a[1];Ve[c]=l});var r=document.querySelector("style[".concat(Hn,"]"));if(r){var n;Jo=!1,(n=r.parentNode)===null||n===void 0||n.removeChild(r)}document.body.removeChild(e)}}function Fc(e){return zc(),!!Ve[e]}function Wc(e){var t=Ve[e],r=null;if(t&&Ee())if(Jo)r=Qo;else{var n=document.querySelector("style[".concat(We,'="').concat(Ve[e],'"]'));n?r=n.innerHTML:delete Ve[e]}return[r,t]}var zn=Ee(),Zo="_skip_check_",ei="_multi_value_";function Fn(e){var t=Lr(Lc(e),Dc);return t.replace(/\{%%%\:[^;];}/g,";")}function Gc(e){return Q(e)==="object"&&e&&(Zo in e||ei in e)}function Vc(e,t,r){if(!t)return e;var n=".".concat(t),o=r==="low"?":where(".concat(n,")"):n,i=e.split(",").map(function(a){var c,l=a.trim().split(/\s+/),s=l[0]||"",u=((c=s.match(/^\w+/))===null||c===void 0?void 0:c[0])||"";return s="".concat(u).concat(o).concat(s.slice(u.length)),[s].concat(Le(l.slice(1))).join(" ")});return i.join(",")}var Uc=function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},o=n.root,i=n.injectHash,a=n.parentSelectors,c=r.hashId,l=r.layer,s=r.path,u=r.hashPriority,f=r.transformers,g=f===void 0?[]:f,S=r.linters,x=S===void 0?[]:S,m="",d={};function $(P){var y=P.getName(c);if(!d[y]){var L=e(P.style,r,{root:!1,parentSelectors:a}),I=K(L,1),w=I[0];d[y]="@keyframes ".concat(P.getName(c)).concat(w)}}function C(P){var y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return P.forEach(function(L){Array.isArray(L)?C(L,y):L&&y.push(L)}),y}var j=C(Array.isArray(t)?t:[t]);if(j.forEach(function(P){var y=typeof P=="string"&&!o?{}:P;if(typeof y=="string")m+="".concat(y,`
|
|
25
|
+
`);else if(y._keyframe)$(y);else{var L=g.reduce(function(I,w){var H;return(w==null||(H=w.visit)===null||H===void 0?void 0:H.call(w,I))||I},y);Object.keys(L).forEach(function(I){var w=L[I];if(Q(w)==="object"&&w&&(I!=="animationName"||!w._keyframe)&&!Gc(w)){var H=!1,D=I.trim(),k=!1;(o||i)&&c?D.startsWith("@")?H=!0:D=Vc(I,c,u):o&&!c&&(D==="&"||D==="")&&(D="",k=!0);var z=e(w,r,{root:k,injectHash:H,parentSelectors:[].concat(Le(a),[D])}),B=K(z,2),b=B[0],p=B[1];d=W(W({},d),p),m+="".concat(D).concat(b)}else{let O=function(T,N){process.env.NODE_ENV!=="production"&&(Q(w)!=="object"||!(w!=null&&w[Zo]))&&[Bc,Hc].concat(Le(x)).forEach(function(J){return J(T,N,{path:s,hashId:c,parentSelectors:a})});var G=T.replace(/[A-Z]/g,function(J){return"-".concat(J.toLowerCase())}),V=N;!Cc[T]&&typeof V=="number"&&V!==0&&(V="".concat(V,"px")),T==="animationName"&&N!==null&&N!==void 0&&N._keyframe&&($(N),V=N.getName(c)),m+="".concat(G,":").concat(V,";")};var h,E=(h=w==null?void 0:w.value)!==null&&h!==void 0?h:w;Q(w)==="object"&&w!==null&&w!==void 0&&w[ei]&&Array.isArray(E)?E.forEach(function(T){O(I,T)}):O(I,E)}})}}),!o)m="{".concat(m,"}");else if(l&&Qa()){var M=l.split(","),_=M[M.length-1].trim();m="@layer ".concat(_," {").concat(m,"}"),M.length>1&&(m="@layer ".concat(l,"{%%%:%}").concat(m))}return[m,d]};function Xc(e,t){return sn("".concat(e.join("%")).concat(t))}function Yc(){return null}function kr(e,t){var r=e.token,n=e.path,o=e.hashId,i=e.layer,a=e.nonce,c=e.clientOnly,l=e.order,s=l===void 0?0:l,u=v.useContext(ln),f=u.autoClear,g=u.mock,S=u.defaultCache,x=u.hashPriority,m=u.container,d=u.ssrInline,$=u.transformers,C=u.linters,j=u.cache,M=r._tokenKey,_=[M].concat(Le(n)),P=zn;process.env.NODE_ENV!=="production"&&g!==void 0&&(P=g==="client");var y=Go("style",_,function(){var D=_.join("|");if(Fc(D)){var k=Wc(D),z=K(k,2),B=z[0],b=z[1];if(B)return[B,M,b,{},c,s]}var p=t(),h=Uc(p,{hashId:o,hashPriority:x,layer:i,path:n.join("-"),transformers:$,linters:C}),E=K(h,2),O=E[0],T=E[1],N=Fn(O),G=Xc(_,N);return[N,M,G,T,c,s]},function(D,k){var z=K(D,3),B=z[2];(k||f)&&zn&&Bo(B,{mark:We})},function(D){var k=K(D,4),z=k[0];k[1];var B=k[2],b=k[3];if(P&&z!==Qo){var p={mark:We,prepend:"queue",attachTo:m,priority:s},h=typeof a=="function"?a():a;h&&(p.csp={nonce:h});var E=Ft(z,B,p);E[Ze]=j.instanceId,E.setAttribute(Rr,M),process.env.NODE_ENV!=="production"&&E.setAttribute(Da,_.join("|")),Object.keys(b).forEach(function(O){Ft(Fn(b[O]),"_effect-".concat(O),p)})}}),L=K(y,3),I=L[0],w=L[1],H=L[2];return function(D){var k;if(!d||P||!S)k=v.createElement(Yc,null);else{var z;k=v.createElement("style",Ht({},(z={},q(z,Rr,w),q(z,We,H),z),{dangerouslySetInnerHTML:{__html:I}}))}return v.createElement(v.Fragment,null,k,D)}}function Qe(e){return e.notSplit=!0,e}Qe(["borderTop","borderBottom"]),Qe(["borderTop"]),Qe(["borderBottom"]),Qe(["borderLeft","borderRight"]),Qe(["borderLeft"]),Qe(["borderRight"]);var qc=A.createContext({});const pn=qc;function Kc(e){return Ho(e)||_o(e)||an(e)||zo()}function Dr(e,t){for(var r=e,n=0;n<t.length;n+=1){if(r==null)return;r=r[t[n]]}return r}function ti(e,t,r,n){if(!t.length)return r;var o=Kc(t),i=o[0],a=o.slice(1),c;return!e&&typeof i=="number"?c=[]:Array.isArray(e)?c=Le(e):c=W({},e),n&&r===void 0&&a.length===1?delete c[i][a[0]]:c[i]=ti(c[i],a,r,n),c}function dr(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&n&&r===void 0&&!Dr(e,t.slice(0,-1))?e:ti(e,t,r,n)}function Qc(e){return Q(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function Wn(e){return Array.isArray(e)?[]:{}}var Jc=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function Zc(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=Wn(t[0]);return t.forEach(function(o){function i(a,c){var l=new Set(c),s=Dr(o,a),u=Array.isArray(s);if(u||Qc(s)){if(!l.has(s)){l.add(s);var f=Dr(n,a);u?n=dr(n,a,[]):(!f||Q(f)!=="object")&&(n=dr(n,a,Wn(s))),Jc(s).forEach(function(g){i([].concat(Le(a),[g]),l)})}}else n=dr(n,a,s)}i([])}),n}function ri(){}let Ae=null;function es(){Ae=null,Eo()}let gn=ri;process.env.NODE_ENV!=="production"&&(gn=(e,t,r)=>{qe(e,`[antd: ${t}] ${r}`),process.env.NODE_ENV==="test"&&es()});const ni=v.createContext({}),Kt=process.env.NODE_ENV!=="production"?e=>{const{strict:t}=v.useContext(ni),r=(n,o,i)=>{if(!n)if(t===!1&&o==="deprecated"){const a=Ae;Ae||(Ae={}),Ae[e]=Ae[e]||[],Ae[e].includes(i||"")||Ae[e].push(i||""),a||console.warn("[antd] There exists deprecated usage in your code:",Ae)}else process.env.NODE_ENV!=="production"&&gn(n,e,i)};return r.deprecated=(n,o,i,a)=>{r(n,"deprecated",`\`${o}\` is deprecated. Please use \`${i}\` instead.${a?` ${a}`:""}`)},r}:()=>{const e=()=>{};return e.deprecated=ri,e},Qt=gn,ts=A.createContext(void 0),rs={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"};var ns={locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",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",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,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 os={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},oi=os,is={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"]},ns),timePickerLocale:Object.assign({},oi)},Gn=is,le="${label} is not a valid ${type}",as={locale:"en",Pagination:rs,DatePicker:Gn,TimePicker:oi,Calendar:Gn,global:{placeholder:"Please select"},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",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"},PageHeader:{back:"Back"},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:le,method:le,array:le,object:le,number:le,date:le,boolean:le,integer:le,float:le,regexp:le,email:le,url:le,hex:le},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"},ColorPicker:{presetEmpty:"Empty"}},Jt=as;Object.assign({},Jt.Modal);let kt=[];const Vn=()=>kt.reduce((e,t)=>Object.assign(Object.assign({},e),t),Jt.Modal);function cs(e){if(e){const t=Object.assign({},e);return kt.push(t),Vn(),()=>{kt=kt.filter(r=>r!==t),Vn()}}Object.assign({},Jt.Modal)}const ss=A.createContext(void 0),ii=ss,ai="internalMark",ci=e=>{const{locale:t={},children:r,_ANT_MARK__:n}=e;if(process.env.NODE_ENV!=="production"){const i=Kt("LocaleProvider");process.env.NODE_ENV!=="production"&&i(n===ai,"deprecated","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead: http://u.ant.design/locale")}v.useEffect(()=>cs(t&&t.Modal),[t]);const o=v.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return v.createElement(ii.Provider,{value:o},r)};process.env.NODE_ENV!=="production"&&(ci.displayName="LocaleProvider");const ls=ci;function ie(e,t){us(e)&&(e="100%");var r=fs(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),r&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function wt(e){return Math.min(1,Math.max(0,e))}function us(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function fs(e){return typeof e=="string"&&e.indexOf("%")!==-1}function si(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Ot(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Fe(e){return e.length===1?"0"+e:String(e)}function ds(e,t,r){return{r:ie(e,255)*255,g:ie(t,255)*255,b:ie(r,255)*255}}function Un(e,t,r){e=ie(e,255),t=ie(t,255),r=ie(r,255);var n=Math.max(e,t,r),o=Math.min(e,t,r),i=0,a=0,c=(n+o)/2;if(n===o)a=0,i=0;else{var l=n-o;switch(a=c>.5?l/(2-n-o):l/(n+o),n){case e:i=(t-r)/l+(t<r?6:0);break;case t:i=(r-e)/l+2;break;case r:i=(e-t)/l+4;break}i/=6}return{h:i,s:a,l:c}}function pr(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*(6*r):r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function ps(e,t,r){var n,o,i;if(e=ie(e,360),t=ie(t,100),r=ie(r,100),t===0)o=r,i=r,n=r;else{var a=r<.5?r*(1+t):r+t-r*t,c=2*r-a;n=pr(c,a,e+1/3),o=pr(c,a,e),i=pr(c,a,e-1/3)}return{r:n*255,g:o*255,b:i*255}}function Br(e,t,r){e=ie(e,255),t=ie(t,255),r=ie(r,255);var n=Math.max(e,t,r),o=Math.min(e,t,r),i=0,a=n,c=n-o,l=n===0?0:c/n;if(n===o)i=0;else{switch(n){case e:i=(t-r)/c+(t<r?6:0);break;case t:i=(r-e)/c+2;break;case r:i=(e-t)/c+4;break}i/=6}return{h:i,s:l,v:a}}function gs(e,t,r){e=ie(e,360)*6,t=ie(t,100),r=ie(r,100);var n=Math.floor(e),o=e-n,i=r*(1-t),a=r*(1-o*t),c=r*(1-(1-o)*t),l=n%6,s=[r,a,i,i,c,r][l],u=[c,r,r,a,i,i][l],f=[i,i,c,r,r,a][l];return{r:s*255,g:u*255,b:f*255}}function Hr(e,t,r,n){var o=[Fe(Math.round(e).toString(16)),Fe(Math.round(t).toString(16)),Fe(Math.round(r).toString(16))];return n&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function vs(e,t,r,n,o){var i=[Fe(Math.round(e).toString(16)),Fe(Math.round(t).toString(16)),Fe(Math.round(r).toString(16)),Fe(hs(n))];return o&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))&&i[3].startsWith(i[3].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}function hs(e){return Math.round(parseFloat(e)*255).toString(16)}function Xn(e){return ue(e)/255}function ue(e){return parseInt(e,16)}function ms(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var zr={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function Je(e){var t={r:0,g:0,b:0},r=1,n=null,o=null,i=null,a=!1,c=!1;return typeof e=="string"&&(e=Ss(e)),typeof e=="object"&&(Te(e.r)&&Te(e.g)&&Te(e.b)?(t=ds(e.r,e.g,e.b),a=!0,c=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Te(e.h)&&Te(e.s)&&Te(e.v)?(n=Ot(e.s),o=Ot(e.v),t=gs(e.h,n,o),a=!0,c="hsv"):Te(e.h)&&Te(e.s)&&Te(e.l)&&(n=Ot(e.s),i=Ot(e.l),t=ps(e.h,n,i),a=!0,c="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(r=e.a)),r=si(r),{ok:a,format:e.format||c,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:r}}var bs="[-\\+]?\\d+%?",ys="[-\\+]?\\d*\\.\\d+%?",Ie="(?:".concat(ys,")|(?:").concat(bs,")"),gr="[\\s|\\(]+(".concat(Ie,")[,|\\s]+(").concat(Ie,")[,|\\s]+(").concat(Ie,")\\s*\\)?"),vr="[\\s|\\(]+(".concat(Ie,")[,|\\s]+(").concat(Ie,")[,|\\s]+(").concat(Ie,")[,|\\s]+(").concat(Ie,")\\s*\\)?"),ve={CSS_UNIT:new RegExp(Ie),rgb:new RegExp("rgb"+gr),rgba:new RegExp("rgba"+vr),hsl:new RegExp("hsl"+gr),hsla:new RegExp("hsla"+vr),hsv:new RegExp("hsv"+gr),hsva:new RegExp("hsva"+vr),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function Ss(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(zr[e])e=zr[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r=ve.rgb.exec(e);return r?{r:r[1],g:r[2],b:r[3]}:(r=ve.rgba.exec(e),r?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=ve.hsl.exec(e),r?{h:r[1],s:r[2],l:r[3]}:(r=ve.hsla.exec(e),r?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=ve.hsv.exec(e),r?{h:r[1],s:r[2],v:r[3]}:(r=ve.hsva.exec(e),r?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=ve.hex8.exec(e),r?{r:ue(r[1]),g:ue(r[2]),b:ue(r[3]),a:Xn(r[4]),format:t?"name":"hex8"}:(r=ve.hex6.exec(e),r?{r:ue(r[1]),g:ue(r[2]),b:ue(r[3]),format:t?"name":"hex"}:(r=ve.hex4.exec(e),r?{r:ue(r[1]+r[1]),g:ue(r[2]+r[2]),b:ue(r[3]+r[3]),a:Xn(r[4]+r[4]),format:t?"name":"hex8"}:(r=ve.hex3.exec(e),r?{r:ue(r[1]+r[1]),g:ue(r[2]+r[2]),b:ue(r[3]+r[3]),format:t?"name":"hex"}:!1)))))))))}function Te(e){return!!ve.CSS_UNIT.exec(String(e))}var fe=function(){function e(t,r){t===void 0&&(t=""),r===void 0&&(r={});var n;if(t instanceof e)return t;typeof t=="number"&&(t=ms(t)),this.originalInput=t;var o=Je(t);this.originalInput=t,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=(n=r.format)!==null&&n!==void 0?n:o.format,this.gradientType=r.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=o.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),r,n,o,i=t.r/255,a=t.g/255,c=t.b/255;return i<=.03928?r=i/12.92:r=Math.pow((i+.055)/1.055,2.4),a<=.03928?n=a/12.92:n=Math.pow((a+.055)/1.055,2.4),c<=.03928?o=c/12.92:o=Math.pow((c+.055)/1.055,2.4),.2126*r+.7152*n+.0722*o},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=si(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=Br(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=Br(this.r,this.g,this.b),r=Math.round(t.h*360),n=Math.round(t.s*100),o=Math.round(t.v*100);return this.a===1?"hsv(".concat(r,", ").concat(n,"%, ").concat(o,"%)"):"hsva(".concat(r,", ").concat(n,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=Un(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=Un(this.r,this.g,this.b),r=Math.round(t.h*360),n=Math.round(t.s*100),o=Math.round(t.l*100);return this.a===1?"hsl(".concat(r,", ").concat(n,"%, ").concat(o,"%)"):"hsla(".concat(r,", ").concat(n,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),Hr(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),vs(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),r=Math.round(this.g),n=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(r,", ").concat(n,")"):"rgba(".concat(t,", ").concat(r,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(r){return"".concat(Math.round(ie(r,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(r){return Math.round(ie(r,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+Hr(this.r,this.g,this.b,!1),r=0,n=Object.entries(zr);r<n.length;r++){var o=n[r],i=o[0],a=o[1];if(t===a)return i}return!1},e.prototype.toString=function(t){var r=!!t;t=t??this.format;var n=!1,o=this.a<1&&this.a>=0,i=!r&&o&&(t.startsWith("hex")||t==="name");return i?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(n=this.toRgbString()),t==="prgb"&&(n=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(n=this.toHexString()),t==="hex3"&&(n=this.toHexString(!0)),t==="hex4"&&(n=this.toHex8String(!0)),t==="hex8"&&(n=this.toHex8String()),t==="name"&&(n=this.toName()),t==="hsl"&&(n=this.toHslString()),t==="hsv"&&(n=this.toHsvString()),n||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.l+=t/100,r.l=wt(r.l),new e(r)},e.prototype.brighten=function(t){t===void 0&&(t=10);var r=this.toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(255*-(t/100)))),r.g=Math.max(0,Math.min(255,r.g-Math.round(255*-(t/100)))),r.b=Math.max(0,Math.min(255,r.b-Math.round(255*-(t/100)))),new e(r)},e.prototype.darken=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.l-=t/100,r.l=wt(r.l),new e(r)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.s-=t/100,r.s=wt(r.s),new e(r)},e.prototype.saturate=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.s+=t/100,r.s=wt(r.s),new e(r)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var r=this.toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,new e(r)},e.prototype.mix=function(t,r){r===void 0&&(r=50);var n=this.toRgb(),o=new e(t).toRgb(),i=r/100,a={r:(o.r-n.r)*i+n.r,g:(o.g-n.g)*i+n.g,b:(o.b-n.b)*i+n.b,a:(o.a-n.a)*i+n.a};return new e(a)},e.prototype.analogous=function(t,r){t===void 0&&(t=6),r===void 0&&(r=30);var n=this.toHsl(),o=360/r,i=[this];for(n.h=(n.h-(o*t>>1)+720)%360;--t;)n.h=(n.h+o)%360,i.push(new e(n));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var r=this.toHsv(),n=r.h,o=r.s,i=r.v,a=[],c=1/t;t--;)a.push(new e({h:n,s:o,v:i})),i=(i+c)%1;return a},e.prototype.splitcomplement=function(){var t=this.toHsl(),r=t.h;return[this,new e({h:(r+72)%360,s:t.s,l:t.l}),new e({h:(r+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var r=this.toRgb(),n=new e(t).toRgb(),o=r.a+n.a*(1-r.a);return new e({r:(r.r*r.a+n.r*n.a*(1-r.a))/o,g:(r.g*r.a+n.g*n.a*(1-r.a))/o,b:(r.b*r.a+n.b*n.a*(1-r.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var r=this.toHsl(),n=r.h,o=[this],i=360/t,a=1;a<t;a++)o.push(new e({h:(n+a*i)%360,s:r.s,l:r.l}));return o},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}(),Tt=2,Yn=.16,Cs=.05,Es=.05,xs=.15,li=5,ui=4,ws=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function qn(e){var t=e.r,r=e.g,n=e.b,o=Br(t,r,n);return{h:o.h*360,s:o.s,v:o.v}}function Pt(e){var t=e.r,r=e.g,n=e.b;return"#".concat(Hr(t,r,n,!1))}function Os(e,t,r){var n=r/100,o={r:(t.r-e.r)*n+e.r,g:(t.g-e.g)*n+e.g,b:(t.b-e.b)*n+e.b};return o}function Kn(e,t,r){var n;return Math.round(e.h)>=60&&Math.round(e.h)<=240?n=r?Math.round(e.h)-Tt*t:Math.round(e.h)+Tt*t:n=r?Math.round(e.h)+Tt*t:Math.round(e.h)-Tt*t,n<0?n+=360:n>=360&&(n-=360),n}function Qn(e,t,r){if(e.h===0&&e.s===0)return e.s;var n;return r?n=e.s-Yn*t:t===ui?n=e.s+Yn:n=e.s+Cs*t,n>1&&(n=1),r&&t===li&&n>.1&&(n=.1),n<.06&&(n=.06),Number(n.toFixed(2))}function Jn(e,t,r){var n;return r?n=e.v+Es*t:n=e.v-xs*t,n>1&&(n=1),Number(n.toFixed(2))}function Xe(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[],n=Je(e),o=li;o>0;o-=1){var i=qn(n),a=Pt(Je({h:Kn(i,o,!0),s:Qn(i,o,!0),v:Jn(i,o,!0)}));r.push(a)}r.push(Pt(n));for(var c=1;c<=ui;c+=1){var l=qn(n),s=Pt(Je({h:Kn(l,c),s:Qn(l,c),v:Jn(l,c)}));r.push(s)}return t.theme==="dark"?ws.map(function(u){var f=u.index,g=u.opacity,S=Pt(Os(Je(t.backgroundColor||"#141414"),Je(r[f]),g*100));return S}):r}var hr={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"},Dt={},mr={};Object.keys(hr).forEach(function(e){Dt[e]=Xe(hr[e]),Dt[e].primary=Dt[e][5],mr[e]=Xe(hr[e],{theme:"dark",backgroundColor:"#141414"}),mr[e].primary=mr[e][5]});var Ts=Dt.blue;const Ps=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}},As=Ps;function $s(e){const{sizeUnit:t,sizeStep:r}=e;return{sizeXXL:t*(r+8),sizeXL:t*(r+4),sizeLG:t*(r+2),sizeMD:t*(r+1),sizeMS:t*r,size:t*r,sizeSM:t*(r-1),sizeXS:t*(r-2),sizeXXS:t*(r-3)}}const fi={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"},Rs=Object.assign(Object.assign({},fi),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
|
|
26
|
+
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
|
|
27
|
+
'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}),pt=Rs;function _s(e,t){let{generateColorPalettes:r,generateNeutralColorPalettes:n}=t;const{colorSuccess:o,colorWarning:i,colorError:a,colorInfo:c,colorPrimary:l,colorBgBase:s,colorTextBase:u}=e,f=r(l),g=r(o),S=r(i),x=r(a),m=r(c),d=n(s,u),$=e.colorLink||e.colorInfo,C=r($);return Object.assign(Object.assign({},d),{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:g[1],colorSuccessBgHover:g[2],colorSuccessBorder:g[3],colorSuccessBorderHover:g[4],colorSuccessHover:g[4],colorSuccess:g[6],colorSuccessActive:g[7],colorSuccessTextHover:g[8],colorSuccessText:g[9],colorSuccessTextActive:g[10],colorErrorBg:x[1],colorErrorBgHover:x[2],colorErrorBorder:x[3],colorErrorBorderHover:x[4],colorErrorHover:x[5],colorError:x[6],colorErrorActive:x[7],colorErrorTextHover:x[8],colorErrorText:x[9],colorErrorTextActive:x[10],colorWarningBg:S[1],colorWarningBgHover:S[2],colorWarningBorder:S[3],colorWarningBorderHover:S[4],colorWarningHover:S[4],colorWarning:S[6],colorWarningActive:S[7],colorWarningTextHover:S[8],colorWarningText:S[9],colorWarningTextActive:S[10],colorInfoBg:m[1],colorInfoBgHover:m[2],colorInfoBorder:m[3],colorInfoBorderHover:m[4],colorInfoHover:m[4],colorInfo:m[6],colorInfoActive:m[7],colorInfoTextHover:m[8],colorInfoText:m[9],colorInfoTextActive:m[10],colorLinkHover:C[4],colorLink:C[6],colorLinkActive:C[7],colorBgMask:new fe("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const js=e=>{let t=e,r=e,n=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?r=4:e<8&&e>=7?r=5:e<14&&e>=8?r=6:e<16&&e>=14?r=7:e>=16&&(r=8),e<6&&e>=2?n=1:e>=6&&(n=2),e>4&&e<8?o=4:e>=8&&(o=6),{borderRadius:e,borderRadiusXS:n,borderRadiusSM:r,borderRadiusLG:t,borderRadiusOuter:o}},Ms=js;function Is(e){const{motionUnit:t,motionBase:r,borderRadius:n,lineWidth:o}=e;return Object.assign({motionDurationFast:`${(r+t).toFixed(1)}s`,motionDurationMid:`${(r+t*2).toFixed(1)}s`,motionDurationSlow:`${(r+t*3).toFixed(1)}s`,lineWidthBold:o+1},Ms(n))}const Pe=(e,t)=>new fe(e).setAlpha(t).toRgbString(),st=(e,t)=>new fe(e).darken(t).toHexString(),Ns=e=>{const t=Xe(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]}},Ls=(e,t)=>{const r=e||"#fff",n=t||"#000";return{colorBgBase:r,colorTextBase:n,colorText:Pe(n,.88),colorTextSecondary:Pe(n,.65),colorTextTertiary:Pe(n,.45),colorTextQuaternary:Pe(n,.25),colorFill:Pe(n,.15),colorFillSecondary:Pe(n,.06),colorFillTertiary:Pe(n,.04),colorFillQuaternary:Pe(n,.02),colorBgLayout:st(r,4),colorBgContainer:st(r,0),colorBgElevated:st(r,0),colorBgSpotlight:Pe(n,.85),colorBgBlur:"transparent",colorBorder:st(r,15),colorBorderSecondary:st(r,6)}};function ks(e){const t=new Array(10).fill(null).map((r,n)=>{const o=n-1,i=e*Math.pow(2.71828,o/5),a=n>1?Math.floor(i):Math.ceil(i);return Math.floor(a/2)*2});return t[1]=e,t.map(r=>{const n=r+8;return{size:r,lineHeight:n/r}})}const Ds=e=>{const t=ks(e),r=t.map(o=>o.size),n=t.map(o=>o.lineHeight);return{fontSizeSM:r[0],fontSize:r[1],fontSizeLG:r[2],fontSizeXL:r[3],fontSizeHeading1:r[6],fontSizeHeading2:r[5],fontSizeHeading3:r[4],fontSizeHeading4:r[3],fontSizeHeading5:r[2],lineHeight:n[1],lineHeightLG:n[2],lineHeightSM:n[0],lineHeightHeading1:n[6],lineHeightHeading2:n[5],lineHeightHeading3:n[4],lineHeightHeading4:n[3],lineHeightHeading5:n[2]}},Bs=Ds;function Hs(e){const t=Object.keys(fi).map(r=>{const n=Xe(e[r]);return new Array(10).fill(1).reduce((o,i,a)=>(o[`${r}-${a+1}`]=n[a],o[`${r}${a+1}`]=n[a],o),{})}).reduce((r,n)=>(r=Object.assign(Object.assign({},r),n),r),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),_s(e,{generateColorPalettes:Ns,generateNeutralColorPalettes:Ls})),Bs(e.fontSize)),$s(e)),As(e)),Is(e))}const di=jr(Hs),pi={token:pt,override:{override:pt},hashed:!0},gi=A.createContext(pi),vi="anticon",zs=(e,t)=>t||(e?`ant-${e}`:"ant"),ke=v.createContext({getPrefixCls:zs,iconPrefixCls:vi}),Fs=`-ant-${Date.now()}-${Math.random()}`;function Ws(e,t){const r={},n=(a,c)=>{let l=a.clone();return l=(c==null?void 0:c(l))||l,l.toRgbString()},o=(a,c)=>{const l=new fe(a),s=Xe(l.toRgbString());r[`${c}-color`]=n(l),r[`${c}-color-disabled`]=s[1],r[`${c}-color-hover`]=s[4],r[`${c}-color-active`]=s[6],r[`${c}-color-outline`]=l.clone().setAlpha(.2).toRgbString(),r[`${c}-color-deprecated-bg`]=s[0],r[`${c}-color-deprecated-border`]=s[2]};if(t.primaryColor){o(t.primaryColor,"primary");const a=new fe(t.primaryColor),c=Xe(a.toRgbString());c.forEach((s,u)=>{r[`primary-${u+1}`]=s}),r["primary-color-deprecated-l-35"]=n(a,s=>s.lighten(35)),r["primary-color-deprecated-l-20"]=n(a,s=>s.lighten(20)),r["primary-color-deprecated-t-20"]=n(a,s=>s.tint(20)),r["primary-color-deprecated-t-50"]=n(a,s=>s.tint(50)),r["primary-color-deprecated-f-12"]=n(a,s=>s.setAlpha(s.getAlpha()*.12));const l=new fe(c[0]);r["primary-color-active-deprecated-f-30"]=n(l,s=>s.setAlpha(s.getAlpha()*.3)),r["primary-color-active-deprecated-d-02"]=n(l,s=>s.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"),`
|
|
28
|
+
:root {
|
|
29
|
+
${Object.keys(r).map(a=>`--${e}-${a}: ${r[a]};`).join(`
|
|
30
|
+
`)}
|
|
31
|
+
}
|
|
32
|
+
`.trim()}function Gs(e,t){const r=Ws(e,t);Ee()?Ft(r,`${Fs}-dynamic-theme`):process.env.NODE_ENV!=="production"&&Qt(!1,"ConfigProvider","SSR do not support dynamic theme with css variables.")}const Fr=v.createContext(!1),Vs=e=>{let{children:t,disabled:r}=e;const n=v.useContext(Fr);return v.createElement(Fr.Provider,{value:r??n},t)},hi=Fr,Wr=v.createContext(void 0),Us=e=>{let{children:t,size:r}=e;const n=v.useContext(Wr);return v.createElement(Wr.Provider,{value:r||n},t)},Zt=Wr;function Xs(){const e=A.useContext(hi),t=A.useContext(Zt);return{componentDisabled:e,componentSize:t}}const Ys="5.11.0";function br(e){return e>=0&&e<=255}function At(e,t){const{r,g:n,b:o,a:i}=new fe(e).toRgb();if(i<1)return e;const{r:a,g:c,b:l}=new fe(t).toRgb();for(let s=.01;s<=1;s+=.01){const u=Math.round((r-a*(1-s))/s),f=Math.round((n-c*(1-s))/s),g=Math.round((o-l*(1-s))/s);if(br(u)&&br(f)&&br(g))return new fe({r:u,g:f,b:g,a:Math.round(s*100)/100}).toRgbString()}return new fe({r,g:n,b:o,a:1}).toRgbString()}var qs=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};function mi(e){const{override:t}=e,r=qs(e,["override"]),n=Object.assign({},t);Object.keys(pt).forEach(g=>{delete n[g]});const o=Object.assign(Object.assign({},r),n),i=480,a=576,c=768,l=992,s=1200,u=1600;if(o.motion===!1){const g="0s";o.motionDurationFast=g,o.motionDurationMid=g,o.motionDurationSlow=g}return Object.assign(Object.assign(Object.assign({},o),{colorFillContent:o.colorFillSecondary,colorFillContentHover:o.colorFill,colorFillAlter:o.colorFillQuaternary,colorBgContainerDisabled:o.colorFillTertiary,colorBorderBg:o.colorBgContainer,colorSplit:At(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:At(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:At(o.colorWarningBg,o.colorBgContainer),fontSizeIcon:o.fontSizeSM,lineWidthFocus:o.lineWidth*4,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:At(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:`
|
|
33
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
34
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
35
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
36
|
+
`,boxShadowSecondary:`
|
|
37
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
38
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
39
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
40
|
+
`,boxShadowTertiary:`
|
|
41
|
+
0 1px 2px 0 rgba(0, 0, 0, 0.03),
|
|
42
|
+
0 1px 6px -1px rgba(0, 0, 0, 0.02),
|
|
43
|
+
0 2px 4px 0 rgba(0, 0, 0, 0.02)
|
|
44
|
+
`,screenXS:i,screenXSMin:i,screenXSMax:a-1,screenSM:a,screenSMMin:a,screenSMMax:c-1,screenMD:c,screenMDMin:c,screenMDMax:l-1,screenLG:l,screenLGMin:l,screenLGMax:s-1,screenXL:s,screenXLMin:s,screenXLMax:u-1,screenXXL:u,screenXXLMin:u,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:`
|
|
45
|
+
0 1px 2px -2px ${new fe("rgba(0, 0, 0, 0.16)").toRgbString()},
|
|
46
|
+
0 3px 6px 0 ${new fe("rgba(0, 0, 0, 0.12)").toRgbString()},
|
|
47
|
+
0 5px 12px 4px ${new fe("rgba(0, 0, 0, 0.09)").toRgbString()}
|
|
48
|
+
`,boxShadowDrawerRight:`
|
|
49
|
+
-6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
50
|
+
-3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
51
|
+
-9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
52
|
+
`,boxShadowDrawerLeft:`
|
|
53
|
+
6px 0 16px 0 rgba(0, 0, 0, 0.08),
|
|
54
|
+
3px 0 6px -4px rgba(0, 0, 0, 0.12),
|
|
55
|
+
9px 0 28px 8px rgba(0, 0, 0, 0.05)
|
|
56
|
+
`,boxShadowDrawerUp:`
|
|
57
|
+
0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
58
|
+
0 3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
59
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
60
|
+
`,boxShadowDrawerDown:`
|
|
61
|
+
0 -6px 16px 0 rgba(0, 0, 0, 0.08),
|
|
62
|
+
0 -3px 6px -4px rgba(0, 0, 0, 0.12),
|
|
63
|
+
0 -9px 28px 8px rgba(0, 0, 0, 0.05)
|
|
64
|
+
`,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)"}),n)}var Zn=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};const bi=(e,t,r)=>{const n=r.getDerivativeToken(e),{override:o}=t,i=Zn(t,["override"]);let a=Object.assign(Object.assign({},n),{override:o});return a=mi(a),i&&Object.entries(i).forEach(c=>{let[l,s]=c;const{theme:u}=s,f=Zn(s,["theme"]);let g=f;u&&(g=bi(Object.assign(Object.assign({},a),f),{override:f},u)),a[l]=g}),a};function bt(){const{token:e,hashed:t,theme:r,override:n}=A.useContext(gi),o=`${Ys}-${t||""}`,i=r||di,[a,c]=Sc(i,[pt,e],{salt:o,override:n,getComputedToken:bi,formatToken:mi});return[i,a,t?c:""]}function Ks(e){var t=v.useRef();t.current=e;var r=v.useCallback(function(){for(var n,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return(n=t.current)===null||n===void 0?void 0:n.call.apply(n,[t].concat(i))},[]);return r}function Bt(e){var t=v.useRef(!1),r=v.useState(e),n=K(r,2),o=n[0],i=n[1];v.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function a(c,l){l&&t.current||i(c)}return[o,a]}const Qs=()=>({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"}}),Js=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,\n &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),Zs=(e,t)=>{const{fontFamily:r,fontSize:n}=e,o=`[class^="${t}"], [class*=" ${t}"]`;return{[o]:{fontFamily:r,fontSize:n,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[o]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}},el=e=>({outline:`${e.lineWidthFocus}px solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),tl=e=>({"&:focus-visible":Object.assign({},el(e))}),yi=process.env.NODE_ENV!=="production"||typeof CSSINJS_STATISTIC<"u";let Gr=!0;function nt(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(!yi)return Object.assign.apply(Object,[{}].concat(t));Gr=!1;const n={};return t.forEach(o=>{Object.keys(o).forEach(a=>{Object.defineProperty(n,a,{configurable:!0,enumerable:!0,get:()=>o[a]})})}),Gr=!0,n}const eo={};function rl(){}function nl(e){let t,r=e,n=rl;return yi&&typeof Proxy<"u"&&(t=new Set,r=new Proxy(e,{get(o,i){return Gr&&t.add(i),o[i]}}),n=(o,i)=>{var a;eo[o]={global:Array.from(t),component:Object.assign(Object.assign({},(a=eo[o])===null||a===void 0?void 0:a.component),i)}}),{token:r,keys:t,flush:n}}const ol=(e,t)=>{const[r,n]=bt();return kr({theme:r,token:n,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce},()=>[{[`.${e}`]:Object.assign(Object.assign({},Qs()),{[`.${e} .${e}-icon`]:{display:"block"}})}])},Si=ol;function vn(e,t,r){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const o=Array.isArray(e)?e:[e,e],[i]=o,a=o.join("-");return c=>{const[l,s,u]=bt(),{getPrefixCls:f,iconPrefixCls:g,csp:S}=A.useContext(ke),x=f(),m={theme:l,token:s,hashId:u,nonce:()=>S==null?void 0:S.nonce,clientOnly:n.clientOnly,order:n.order||-999};return kr(Object.assign(Object.assign({},m),{clientOnly:!1,path:["Shared",x]}),()=>[{"&":Js(s)}]),Si(g,S),[kr(Object.assign(Object.assign({},m),{path:[a,c,g]}),()=>{const{token:d,flush:$}=nl(s),C=Object.assign({},s[i]);if(n.deprecatedTokens){const{deprecatedTokens:L}=n;L.forEach(I=>{let[w,H]=I;var D;process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="production"&&qe(!(C!=null&&C[w]),`The token '${String(w)}' of ${i} had deprecated, use '${String(H)}' instead.`),(C!=null&&C[w]||C!=null&&C[H])&&((D=C[H])!==null&&D!==void 0||(C[H]=C==null?void 0:C[w]))})}const j=typeof r=="function"?r(nt(d,C??{})):r,M=Object.assign(Object.assign({},j),C),_=`.${c}`,P=nt(d,{componentCls:_,prefixCls:c,iconCls:`.${g}`,antCls:`.${x}`},M),y=t(P,{hashId:u,prefixCls:c,rootPrefixCls:x,iconPrefixCls:g,overrideComponentToken:C});return $(i,M),[n.resetStyle===!1?null:Zs(s,c),y]}),u]}}const il=(e,t,r,n)=>{const o=vn(e,t,r,Object.assign({resetStyle:!1,order:-998},n)),i=a=>{let{prefixCls:c}=a;return o(c),null};return process.env.NODE_ENV!=="production"&&(i.displayName=`SubStyle_${Array.isArray(e)?e.join("."):e}`),i};function al(e,t){const r=e||{},n=r.inherit===!1||!t?pi:t;return Oo(()=>{if(!e)return t;const o=Object.assign({},n.components);return Object.keys(e.components||{}).forEach(i=>{o[i]=Object.assign(Object.assign({},o[i]),e.components[i])}),Object.assign(Object.assign(Object.assign({},n),r),{token:Object.assign(Object.assign({},n.token),r.token),components:o})},[r,n],(o,i)=>o.some((a,c)=>{const l=i[c];return!La(a,l,!0)}))}var cl=["children"],Ci=v.createContext({});function sl(e){var t=e.children,r=$r(e,cl);return v.createElement(Ci.Provider,{value:r},t)}var ll=function(e){$o(r,e);var t=Ro(r);function r(){return ht(this,r),t.apply(this,arguments)}return mt(r,[{key:"render",value:function(){return this.props.children}}]),r}(v.Component),He="none",$t="appear",Rt="enter",_t="leave",to="none",he="prepare",et="start",tt="active",hn="end",Ei="prepared";function ro(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit".concat(e)]="webkit".concat(t),r["Moz".concat(e)]="moz".concat(t),r["ms".concat(e)]="MS".concat(t),r["O".concat(e)]="o".concat(t.toLowerCase()),r}function ul(e,t){var r={animationend:ro("Animation","AnimationEnd"),transitionend:ro("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete r.animationend.animation,"TransitionEvent"in t||delete r.transitionend.transition),r}var fl=ul(Ee(),typeof window<"u"?window:{}),xi={};if(Ee()){var dl=document.createElement("div");xi=dl.style}var jt={};function wi(e){if(jt[e])return jt[e];var t=fl[e];if(t)for(var r=Object.keys(t),n=r.length,o=0;o<n;o+=1){var i=r[o];if(Object.prototype.hasOwnProperty.call(t,i)&&i in xi)return jt[e]=t[i],jt[e]}return""}var Oi=wi("animationend"),Ti=wi("transitionend"),Pi=!!(Oi&&Ti),no=Oi||"animationend",oo=Ti||"transitionend";function io(e,t){if(!e)return null;if(Q(e)==="object"){var r=t.replace(/-\w/g,function(n){return n[1].toUpperCase()});return e[r]}return"".concat(e,"-").concat(t)}const pl=function(e){var t=A.useRef(),r=A.useRef(e);r.current=e;var n=v.useCallback(function(a){r.current(a)},[]);function o(a){a&&(a.removeEventListener(oo,n),a.removeEventListener(no,n))}function i(a){t.current&&t.current!==a&&o(t.current),a&&a!==t.current&&(a.addEventListener(oo,n),a.addEventListener(no,n),t.current=a)}return v.useEffect(function(){return function(){o(t.current)}},[]),[i,o]};var Ai=Ee()?A.useLayoutEffect:A.useEffect;const gl=function(){var e=v.useRef(null);function t(){Ue.cancel(e.current)}function r(n){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var i=Ue(function(){o<=1?n({isCanceled:function(){return i!==e.current}}):r(n,o-1)});e.current=i}return v.useEffect(function(){return function(){t()}},[]),[r,t]};var vl=[he,et,tt,hn],hl=[he,Ei],$i=!1,ml=!0;function Ri(e){return e===tt||e===hn}const bl=function(e,t,r){var n=Bt(to),o=K(n,2),i=o[0],a=o[1],c=gl(),l=K(c,2),s=l[0],u=l[1];function f(){a(he,!0)}var g=t?hl:vl;return Ai(function(){if(i!==to&&i!==hn){var S=g.indexOf(i),x=g[S+1],m=r(i);m===$i?a(x,!0):x&&s(function(d){function $(){d.isCanceled()||a(x,!0)}m===!0?$():Promise.resolve(m).then($)})}},[e,i]),v.useEffect(function(){return function(){u()}},[]),[f,i]};function yl(e,t,r,n){var o=n.motionEnter,i=o===void 0?!0:o,a=n.motionAppear,c=a===void 0?!0:a,l=n.motionLeave,s=l===void 0?!0:l,u=n.motionDeadline,f=n.motionLeaveImmediately,g=n.onAppearPrepare,S=n.onEnterPrepare,x=n.onLeavePrepare,m=n.onAppearStart,d=n.onEnterStart,$=n.onLeaveStart,C=n.onAppearActive,j=n.onEnterActive,M=n.onLeaveActive,_=n.onAppearEnd,P=n.onEnterEnd,y=n.onLeaveEnd,L=n.onVisibleChanged,I=Bt(),w=K(I,2),H=w[0],D=w[1],k=Bt(He),z=K(k,2),B=z[0],b=z[1],p=Bt(null),h=K(p,2),E=h[0],O=h[1],T=A.useRef(!1),N=A.useRef(null);function G(){return r()}var V=A.useRef(!1);function J(){b(He,!0),O(null,!0)}function re(Z){var F=G();if(!(Z&&!Z.deadline&&Z.target!==F)){var Y=V.current,ce;B===$t&&Y?ce=_==null?void 0:_(F,Z):B===Rt&&Y?ce=P==null?void 0:P(F,Z):B===_t&&Y&&(ce=y==null?void 0:y(F,Z)),B!==He&&Y&&ce!==!1&&J()}}var ae=pl(re),De=K(ae,1),_e=De[0],xe=function(F){var Y,ce,Be;switch(F){case $t:return Y={},q(Y,he,g),q(Y,et,m),q(Y,tt,C),Y;case Rt:return ce={},q(ce,he,S),q(ce,et,d),q(ce,tt,j),ce;case _t:return Be={},q(Be,he,x),q(Be,et,$),q(Be,tt,M),Be;default:return{}}},pe=v.useMemo(function(){return xe(B)},[B]),je=bl(B,!e,function(Z){if(Z===he){var F=pe[he];return F?F(G()):$i}if(se in pe){var Y;O(((Y=pe[se])===null||Y===void 0?void 0:Y.call(pe,G(),null))||null)}return se===tt&&(_e(G()),u>0&&(clearTimeout(N.current),N.current=setTimeout(function(){re({deadline:!0})},u))),se===Ei&&J(),ml}),we=K(je,2),R=we[0],se=we[1],ye=Ri(se);V.current=ye,Ai(function(){D(t);var Z=T.current;T.current=!0;var F;!Z&&t&&c&&(F=$t),Z&&t&&i&&(F=Rt),(Z&&!t&&s||!Z&&f&&!t&&s)&&(F=_t);var Y=xe(F);F&&(e||Y[he])?(b(F),R()):b(He)},[t]),A.useEffect(function(){(B===$t&&!c||B===Rt&&!i||B===_t&&!s)&&b(He)},[c,i,s]),A.useEffect(function(){return function(){T.current=!1,clearTimeout(N.current)}},[]);var ge=v.useRef(!1);A.useEffect(function(){H&&(ge.current=!0),H!==void 0&&B===He&&((ge.current||H)&&(L==null||L(H)),ge.current=!0)},[H,B]);var Me=E;return pe[he]&&se===et&&(Me=W({transition:"none"},Me)),[B,se,Me,H??t]}function Sl(e){var t=e;Q(e)==="object"&&(t=e.transitionSupport);function r(o,i){return!!(o.motionName&&t&&i!==!1)}var n=v.forwardRef(function(o,i){var a=o.visible,c=a===void 0?!0:a,l=o.removeOnLeave,s=l===void 0?!0:l,u=o.forceRender,f=o.children,g=o.motionName,S=o.leavedClassName,x=o.eventProps,m=v.useContext(Ci),d=m.motion,$=r(o,d),C=A.useRef(),j=A.useRef();function M(){try{return C.current instanceof HTMLElement?C.current:$a(j.current)}catch{return null}}var _=yl($,c,M,o),P=K(_,4),y=P[0],L=P[1],I=P[2],w=P[3],H=v.useRef(w);w&&(H.current=!0);var D=v.useCallback(function(O){C.current=O,To(i,O)},[i]),k,z=W(W({},x),{},{visible:c});if(!f)k=null;else if(y===He)w?k=f(W({},z),D):!s&&H.current&&S?k=f(W(W({},z),{},{className:S}),D):u||!s&&!S?k=f(W(W({},z),{},{style:{display:"none"}}),D):k=null;else{var B,b;L===he?b="prepare":Ri(L)?b="active":L===et&&(b="start");var p=io(g,"".concat(y,"-").concat(b));k=f(W(W({},z),{},{className:me(io(g,y),(B={},q(B,p,p&&b),q(B,g,typeof g=="string"),B)),style:I}),D)}if(v.isValidElement(k)&&Ao(k)){var h=k,E=h.ref;E||(k=v.cloneElement(k,{ref:D}))}return v.createElement(ll,{ref:j},k)});return n.displayName="CSSMotion",n}const mn=Sl(Pi);var Vr="add",Ur="keep",Xr="remove",yr="removed";function Cl(e){var t;return e&&Q(e)==="object"&&"key"in e?t=e:t={key:e},W(W({},t),{},{key:String(t.key)})}function Yr(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(Cl)}function El(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=[],n=0,o=t.length,i=Yr(e),a=Yr(t);i.forEach(function(s){for(var u=!1,f=n;f<o;f+=1){var g=a[f];if(g.key===s.key){n<f&&(r=r.concat(a.slice(n,f).map(function(S){return W(W({},S),{},{status:Vr})})),n=f),r.push(W(W({},g),{},{status:Ur})),n+=1,u=!0;break}}u||r.push(W(W({},s),{},{status:Xr}))}),n<o&&(r=r.concat(a.slice(n).map(function(s){return W(W({},s),{},{status:Vr})})));var c={};r.forEach(function(s){var u=s.key;c[u]=(c[u]||0)+1});var l=Object.keys(c).filter(function(s){return c[s]>1});return l.forEach(function(s){r=r.filter(function(u){var f=u.key,g=u.status;return f!==s||g!==Xr}),r.forEach(function(u){u.key===s&&(u.status=Ur)})}),r}var xl=["component","children","onVisibleChanged","onAllRemoved"],wl=["status"],Ol=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function Tl(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:mn,r=function(n){$o(i,n);var o=Ro(i);function i(){var a;ht(this,i);for(var c=arguments.length,l=new Array(c),s=0;s<c;s++)l[s]=arguments[s];return a=o.call.apply(o,[this].concat(l)),q(Pr(a),"state",{keyEntities:[]}),q(Pr(a),"removeKey",function(u){var f=a.state.keyEntities,g=f.map(function(S){return S.key!==u?S:W(W({},S),{},{status:yr})});return a.setState({keyEntities:g}),g.filter(function(S){var x=S.status;return x!==yr}).length}),a}return mt(i,[{key:"render",value:function(){var c=this,l=this.state.keyEntities,s=this.props,u=s.component,f=s.children,g=s.onVisibleChanged,S=s.onAllRemoved,x=$r(s,xl),m=u||v.Fragment,d={};return Ol.forEach(function($){d[$]=x[$],delete x[$]}),delete x.keys,v.createElement(m,x,l.map(function($,C){var j=$.status,M=$r($,wl),_=j===Vr||j===Ur;return v.createElement(t,Ht({},d,{key:M.key,visible:_,eventProps:M,onVisibleChanged:function(y){if(g==null||g(y,{key:M.key}),!y){var L=c.removeKey(M.key);L===0&&S&&S()}}}),function(P,y){return f(W(W({},P),{},{index:C}),y)})}))}}],[{key:"getDerivedStateFromProps",value:function(c,l){var s=c.keys,u=l.keyEntities,f=Yr(s),g=El(u,f);return{keyEntities:g.filter(function(S){var x=u.find(function(m){var d=m.key;return S.key===d});return!(x&&x.status===yr&&S.status===Xr)})}}}]),i}(v.Component);return q(r,"defaultProps",{component:"div"}),r}Tl(Pi);function Pl(e){const{children:t}=e,[,r]=bt(),{motion:n}=r,o=v.useRef(!1);return o.current=o.current||n===!1,o.current?v.createElement(sl,{motion:n},t):t}const _i=v.memo(e=>{let{dropdownMatchSelectWidth:t}=e;return Kt("ConfigProvider").deprecated(t===void 0,"dropdownMatchSelectWidth","popupMatchSelectWidth"),null});process.env.NODE_ENV!=="production"&&(_i.displayName="PropWarning");const Al=process.env.NODE_ENV!=="production"?_i:()=>null;var $l=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};let qr=!1;process.env.NODE_ENV;const Rl=["getTargetContainer","getPopupContainer","renderEmpty","pageHeader","input","pagination","form","select","button"],_l="ant";let ji;function jl(){return ji||_l}function Ml(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const Il=e=>{let{prefixCls:t,iconPrefixCls:r,theme:n}=e;t!==void 0&&(ji=t),n&&Ml(n)&&(process.env.NODE_ENV!=="production"&&Qt(!1,"ConfigProvider","`config` of css variable theme is not work in v5. Please use new `theme` config instead."),Gs(jl(),n))},Nl=e=>{const{children:t,csp:r,autoInsertSpaceInButton:n,alert:o,anchor:i,form:a,locale:c,componentSize:l,direction:s,space:u,virtual:f,dropdownMatchSelectWidth:g,popupMatchSelectWidth:S,popupOverflow:x,legacyLocale:m,parentContext:d,iconPrefixCls:$,theme:C,componentDisabled:j,segmented:M,statistic:_,spin:P,calendar:y,carousel:L,cascader:I,collapse:w,typography:H,checkbox:D,descriptions:k,divider:z,drawer:B,skeleton:b,steps:p,image:h,layout:E,list:O,mentions:T,modal:N,progress:G,result:V,slider:J,breadcrumb:re,menu:ae,pagination:De,input:_e,empty:xe,badge:pe,radio:je,rate:we,switch:R,transfer:se,avatar:ye,message:ge,tag:Me,table:Z,card:F,tabs:Y,timeline:ce,timePicker:Be,upload:ta,notification:ra,tree:na,colorPicker:oa,datePicker:ia,rangePicker:aa,flex:ca,wave:sa,dropdown:la,warning:ua}=e,fa=v.useCallback((te,oe)=>{const{prefixCls:Se}=e;if(oe)return oe;const Ce=Se||d.getPrefixCls("");return te?`${Ce}-${te}`:Ce},[d.getPrefixCls,e.prefixCls]),at=$||d.iconPrefixCls||vi,ct=r||d.csp;Si(at,ct);const St=al(C,d.theme);process.env.NODE_ENV!=="production"&&(qr=qr||!!St);const ir={csp:ct,autoInsertSpaceInButton:n,alert:o,anchor:i,locale:c||m,direction:s,space:u,virtual:f,popupMatchSelectWidth:S??g,popupOverflow:x,getPrefixCls:fa,iconPrefixCls:at,theme:St,segmented:M,statistic:_,spin:P,calendar:y,carousel:L,cascader:I,collapse:w,typography:H,checkbox:D,descriptions:k,divider:z,drawer:B,skeleton:b,steps:p,image:h,input:_e,layout:E,list:O,mentions:T,modal:N,progress:G,result:V,slider:J,breadcrumb:re,menu:ae,pagination:De,empty:xe,badge:pe,radio:je,rate:we,switch:R,transfer:se,avatar:ye,message:ge,tag:Me,table:Z,card:F,tabs:Y,timeline:ce,timePicker:Be,upload:ta,notification:ra,tree:na,colorPicker:oa,datePicker:ia,rangePicker:aa,flex:ca,wave:sa,dropdown:la,warning:ua},Ct=Object.assign({},d);Object.keys(ir).forEach(te=>{ir[te]!==void 0&&(Ct[te]=ir[te])}),Rl.forEach(te=>{const oe=e[te];oe&&(Ct[te]=oe)});const Ke=Oo(()=>Ct,Ct,(te,oe)=>{const Se=Object.keys(te),Ce=Object.keys(oe);return Se.length!==Ce.length||Se.some(Et=>te[Et]!==oe[Et])}),da=v.useMemo(()=>({prefixCls:at,csp:ct}),[at,ct]);let ne=v.createElement(v.Fragment,null,v.createElement(Al,{dropdownMatchSelectWidth:g}),t);const xn=v.useMemo(()=>{var te,oe,Se,Ce;return Zc(((te=Jt.Form)===null||te===void 0?void 0:te.defaultValidateMessages)||{},((Se=(oe=Ke.locale)===null||oe===void 0?void 0:oe.Form)===null||Se===void 0?void 0:Se.defaultValidateMessages)||{},((Ce=Ke.form)===null||Ce===void 0?void 0:Ce.validateMessages)||{},(a==null?void 0:a.validateMessages)||{})},[Ke,a==null?void 0:a.validateMessages]);Object.keys(xn).length>0&&(ne=v.createElement(ts.Provider,{value:xn},ne)),c&&(ne=v.createElement(ls,{locale:c,_ANT_MARK__:ai},ne)),(at||ct)&&(ne=v.createElement(pn.Provider,{value:da},ne)),l&&(ne=v.createElement(Us,{size:l},ne)),ne=v.createElement(Pl,null,ne);const pa=v.useMemo(()=>{const te=St||{},{algorithm:oe,token:Se,components:Ce}=te,Et=$l(te,["algorithm","token","components"]),wn=oe&&(!Array.isArray(oe)||oe.length>0)?jr(oe):di,ar={};Object.entries(Ce||{}).forEach(ga=>{let[va,ha]=ga;const Oe=Object.assign({},ha);"algorithm"in Oe&&(Oe.algorithm===!0?Oe.theme=wn:(Array.isArray(Oe.algorithm)||typeof Oe.algorithm=="function")&&(Oe.theme=jr(Oe.algorithm)),delete Oe.algorithm),ar[va]=Oe});const On=Object.assign(Object.assign({},pt),Se);return Object.assign(Object.assign({},Et),{theme:wn,token:On,components:ar,override:Object.assign({override:On},ar)})},[St]);return C&&(ne=v.createElement(gi.Provider,{value:pa},ne)),Ke.warning&&(ne=v.createElement(ni.Provider,{value:Ke.warning},ne)),j!==void 0&&(ne=v.createElement(Vs,{disabled:j},ne)),v.createElement(ke.Provider,{value:Ke},ne)},it=e=>{const t=v.useContext(ke),r=v.useContext(ii);return v.createElement(Nl,Object.assign({parentContext:t,legacyLocale:r},e))};it.ConfigContext=ke;it.SizeContext=Zt;it.config=Il;it.useConfig=Xs;Object.defineProperty(it,"SizeContext",{get:()=>(process.env.NODE_ENV!=="production"&&Qt(!1,"ConfigProvider","ConfigProvider.SizeContext is deprecated. Please use `ConfigProvider.useConfig().componentSize` instead."),Zt)});process.env.NODE_ENV!=="production"&&(it.displayName="ConfigProvider");function Gt(){return Gt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Gt.apply(this,arguments)}function Ll(e){if(Array.isArray(e))return e}function kl(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,o,i,a,c=[],l=!0,s=!1;try{if(i=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(u){s=!0,o=u}finally{try{if(!l&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return c}}function ao(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Dl(e,t){if(e){if(typeof e=="string")return ao(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ao(e,t)}}function Bl(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
65
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Mi(e,t){return Ll(e)||kl(e,t)||Dl(e,t)||Bl()}function Ye(e){"@babel/helpers - typeof";return Ye=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},Ye(e)}function Hl(e,t){if(Ye(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Ye(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function zl(e){var t=Hl(e,"string");return Ye(t)==="symbol"?t:String(t)}function Kr(e,t,r){return t=zl(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Fl(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,i;for(i=0;i<n.length;i++)o=n[i],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}function Ii(e,t){if(e==null)return{};var r=Fl(e,t),n,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function co(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Ne(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?co(Object(r),!0).forEach(function(n){Kr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):co(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Wl(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Gl(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var r=t;r;){if(r===e)return!0;r=r.parentNode}return!1}var so="data-rc-order",lo="data-rc-priority",Vl="rc-util-key",Qr=new Map;function Ni(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):Vl}function bn(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function Ul(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Li(e){return Array.from((Qr.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function ki(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Wl())return null;var r=t.csp,n=t.prepend,o=t.priority,i=o===void 0?0:o,a=Ul(n),c=a==="prependQueue",l=document.createElement("style");l.setAttribute(so,a),c&&i&&l.setAttribute(lo,"".concat(i)),r!=null&&r.nonce&&(l.nonce=r==null?void 0:r.nonce),l.innerHTML=e;var s=bn(t),u=s.firstChild;if(n){if(c){var f=Li(s).filter(function(g){if(!["prepend","prependQueue"].includes(g.getAttribute(so)))return!1;var S=Number(g.getAttribute(lo)||0);return i>=S});if(f.length)return s.insertBefore(l,f[f.length-1].nextSibling),l}s.insertBefore(l,u)}else s.appendChild(l);return l}function Xl(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=bn(t);return Li(r).find(function(n){return n.getAttribute(Ni(t))===e})}function Yl(e,t){var r=Qr.get(e);if(!r||!Gl(document,r)){var n=ki("",t),o=n.parentNode;Qr.set(e,o),e.removeChild(n)}}function ql(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=bn(r);Yl(n,r);var o=Xl(t,r);if(o){var i,a;if((i=r.csp)!==null&&i!==void 0&&i.nonce&&o.nonce!==((a=r.csp)===null||a===void 0?void 0:a.nonce)){var c;o.nonce=(c=r.csp)===null||c===void 0?void 0:c.nonce}return o.innerHTML!==e&&(o.innerHTML=e),o}var l=ki(e,r);return l.setAttribute(Ni(r),t),l}function Di(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function Kl(e){return Di(e)instanceof ShadowRoot}function Ql(e){return Kl(e)?Di(e):null}var Jr={},yn=[],Jl=function(t){yn.push(t)};function Zl(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var r=yn.reduce(function(n,o){return o(n??"","warning")},t);r&&console.error("Warning: ".concat(r))}}function eu(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var r=yn.reduce(function(n,o){return o(n??"","note")},t);r&&console.warn("Note: ".concat(r))}}function tu(){Jr={}}function Bi(e,t,r){!t&&!Jr[r]&&(e(!1,r),Jr[r]=!0)}function er(e,t){Bi(Zl,e,t)}function ru(e,t){Bi(eu,e,t)}er.preMessage=Jl;er.resetWarned=tu;er.noteOnce=ru;function nu(e){return e.replace(/-(.)/g,function(t,r){return r.toUpperCase()})}function ou(e,t){er(e,"[@ant-design/icons] ".concat(t))}function uo(e){return Ye(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(Ye(e.icon)==="object"||typeof e.icon=="function")}function fo(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,r){var n=e[r];switch(r){case"class":t.className=n,delete t.class;break;default:delete t[r],t[nu(r)]=n}return t},{})}function Zr(e,t,r){return r?A.createElement(e.tag,Ne(Ne({key:t},fo(e.attrs)),r),(e.children||[]).map(function(n,o){return Zr(n,"".concat(t,"-").concat(e.tag,"-").concat(o))})):A.createElement(e.tag,Ne({key:t},fo(e.attrs)),(e.children||[]).map(function(n,o){return Zr(n,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function Hi(e){return Xe(e)[0]}function zi(e){return e?Array.isArray(e)?e:[e]:[]}var iu=`
|
|
66
|
+
.anticon {
|
|
67
|
+
display: inline-block;
|
|
68
|
+
color: inherit;
|
|
69
|
+
font-style: normal;
|
|
70
|
+
line-height: 0;
|
|
71
|
+
text-align: center;
|
|
72
|
+
text-transform: none;
|
|
73
|
+
vertical-align: -0.125em;
|
|
74
|
+
text-rendering: optimizeLegibility;
|
|
75
|
+
-webkit-font-smoothing: antialiased;
|
|
76
|
+
-moz-osx-font-smoothing: grayscale;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.anticon > * {
|
|
80
|
+
line-height: 1;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.anticon svg {
|
|
84
|
+
display: inline-block;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.anticon::before {
|
|
88
|
+
display: none;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.anticon .anticon-icon {
|
|
92
|
+
display: block;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.anticon[tabindex] {
|
|
96
|
+
cursor: pointer;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.anticon-spin::before,
|
|
100
|
+
.anticon-spin {
|
|
101
|
+
display: inline-block;
|
|
102
|
+
-webkit-animation: loadingCircle 1s infinite linear;
|
|
103
|
+
animation: loadingCircle 1s infinite linear;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
@-webkit-keyframes loadingCircle {
|
|
107
|
+
100% {
|
|
108
|
+
-webkit-transform: rotate(360deg);
|
|
109
|
+
transform: rotate(360deg);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
@keyframes loadingCircle {
|
|
114
|
+
100% {
|
|
115
|
+
-webkit-transform: rotate(360deg);
|
|
116
|
+
transform: rotate(360deg);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
`,au=function(t){var r=A.useContext(pn),n=r.csp,o=r.prefixCls,i=iu;o&&(i=i.replace(/anticon/g,o)),A.useEffect(function(){var a=t.current,c=Ql(a);ql(i,"@ant-design-icons",{prepend:!0,csp:n,attachTo:c})},[])},cu=["icon","className","onClick","style","primaryColor","secondaryColor"],ut={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function su(e){var t=e.primaryColor,r=e.secondaryColor;ut.primaryColor=t,ut.secondaryColor=r||Hi(t),ut.calculated=!!r}function lu(){return Ne({},ut)}var tr=function(t){var r=t.icon,n=t.className,o=t.onClick,i=t.style,a=t.primaryColor,c=t.secondaryColor,l=Ii(t,cu),s=v.useRef(),u=ut;if(a&&(u={primaryColor:a,secondaryColor:c||Hi(a)}),au(s),ou(uo(r),"icon should be icon definiton, but got ".concat(r)),!uo(r))return null;var f=r;return f&&typeof f.icon=="function"&&(f=Ne(Ne({},f),{},{icon:f.icon(u.primaryColor,u.secondaryColor)})),Zr(f.icon,"svg-".concat(f.name),Ne(Ne({className:n,onClick:o,style:i,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l),{},{ref:s}))};tr.displayName="IconReact";tr.getTwoToneColors=lu;tr.setTwoToneColors=su;const Sn=tr;function Fi(e){var t=zi(e),r=Mi(t,2),n=r[0],o=r[1];return Sn.setTwoToneColors({primaryColor:n,secondaryColor:o})}function uu(){var e=Sn.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var fu=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Fi(Ts.primary);var rr=v.forwardRef(function(e,t){var r,n=e.className,o=e.icon,i=e.spin,a=e.rotate,c=e.tabIndex,l=e.onClick,s=e.twoToneColor,u=Ii(e,fu),f=v.useContext(pn),g=f.prefixCls,S=g===void 0?"anticon":g,x=f.rootClassName,m=me(x,S,(r={},Kr(r,"".concat(S,"-").concat(o.name),!!o.name),Kr(r,"".concat(S,"-spin"),!!i||o.name==="loading"),r),n),d=c;d===void 0&&l&&(d=-1);var $=a?{msTransform:"rotate(".concat(a,"deg)"),transform:"rotate(".concat(a,"deg)")}:void 0,C=zi(s),j=Mi(C,2),M=j[0],_=j[1];return v.createElement("span",Gt({role:"img","aria-label":o.name},u,{ref:t,tabIndex:d,onClick:l,className:m}),v.createElement(Sn,{icon:o,primaryColor:M,secondaryColor:_,style:$}))});rr.displayName="AntdIcon";rr.getTwoToneColor=uu;rr.setTwoToneColor=Fi;const du=rr,{isValidElement:Wi}=v;function pu(e){return e&&Wi(e)&&e.type===v.Fragment}function gu(e,t,r){return Wi(e)?v.cloneElement(e,typeof r=="function"?r(e.props||{}):r):t}function Gi(e,t){return gu(e,e,t)}var vu={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 hu=vu;var Vi=function(t,r){return v.createElement(du,Gt({},t,{ref:r,icon:hu}))};process.env.NODE_ENV!=="production"&&(Vi.displayName="LoadingOutlined");const mu=v.forwardRef(Vi);function gt(){gt=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(b,p,h){b[p]=h.value},i=typeof Symbol=="function"?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function s(b,p,h){return Object.defineProperty(b,p,{value:h,enumerable:!0,configurable:!0,writable:!0}),b[p]}try{s({},"")}catch{s=function(h,E,O){return h[E]=O}}function u(b,p,h,E){var O=p&&p.prototype instanceof $?p:$,T=Object.create(O.prototype),N=new z(E||[]);return o(T,"_invoke",{value:w(b,h,N)}),T}function f(b,p,h){try{return{type:"normal",arg:b.call(p,h)}}catch(E){return{type:"throw",arg:E}}}t.wrap=u;var g="suspendedStart",S="suspendedYield",x="executing",m="completed",d={};function $(){}function C(){}function j(){}var M={};s(M,a,function(){return this});var _=Object.getPrototypeOf,P=_&&_(_(B([])));P&&P!==r&&n.call(P,a)&&(M=P);var y=j.prototype=$.prototype=Object.create(M);function L(b){["next","throw","return"].forEach(function(p){s(b,p,function(h){return this._invoke(p,h)})})}function I(b,p){function h(O,T,N,G){var V=f(b[O],b,T);if(V.type!=="throw"){var J=V.arg,re=J.value;return re&&Q(re)=="object"&&n.call(re,"__await")?p.resolve(re.__await).then(function(ae){h("next",ae,N,G)},function(ae){h("throw",ae,N,G)}):p.resolve(re).then(function(ae){J.value=ae,N(J)},function(ae){return h("throw",ae,N,G)})}G(V.arg)}var E;o(this,"_invoke",{value:function(T,N){function G(){return new p(function(V,J){h(T,N,V,J)})}return E=E?E.then(G,G):G()}})}function w(b,p,h){var E=g;return function(O,T){if(E===x)throw new Error("Generator is already running");if(E===m){if(O==="throw")throw T;return{value:e,done:!0}}for(h.method=O,h.arg=T;;){var N=h.delegate;if(N){var G=H(N,h);if(G){if(G===d)continue;return G}}if(h.method==="next")h.sent=h._sent=h.arg;else if(h.method==="throw"){if(E===g)throw E=m,h.arg;h.dispatchException(h.arg)}else h.method==="return"&&h.abrupt("return",h.arg);E=x;var V=f(b,p,h);if(V.type==="normal"){if(E=h.done?m:S,V.arg===d)continue;return{value:V.arg,done:h.done}}V.type==="throw"&&(E=m,h.method="throw",h.arg=V.arg)}}}function H(b,p){var h=p.method,E=b.iterator[h];if(E===e)return p.delegate=null,h==="throw"&&b.iterator.return&&(p.method="return",p.arg=e,H(b,p),p.method==="throw")||h!=="return"&&(p.method="throw",p.arg=new TypeError("The iterator does not provide a '"+h+"' method")),d;var O=f(E,b.iterator,p.arg);if(O.type==="throw")return p.method="throw",p.arg=O.arg,p.delegate=null,d;var T=O.arg;return T?T.done?(p[b.resultName]=T.value,p.next=b.nextLoc,p.method!=="return"&&(p.method="next",p.arg=e),p.delegate=null,d):T:(p.method="throw",p.arg=new TypeError("iterator result is not an object"),p.delegate=null,d)}function D(b){var p={tryLoc:b[0]};1 in b&&(p.catchLoc=b[1]),2 in b&&(p.finallyLoc=b[2],p.afterLoc=b[3]),this.tryEntries.push(p)}function k(b){var p=b.completion||{};p.type="normal",delete p.arg,b.completion=p}function z(b){this.tryEntries=[{tryLoc:"root"}],b.forEach(D,this),this.reset(!0)}function B(b){if(b||b===""){var p=b[a];if(p)return p.call(b);if(typeof b.next=="function")return b;if(!isNaN(b.length)){var h=-1,E=function O(){for(;++h<b.length;)if(n.call(b,h))return O.value=b[h],O.done=!1,O;return O.value=e,O.done=!0,O};return E.next=E}}throw new TypeError(Q(b)+" is not iterable")}return C.prototype=j,o(y,"constructor",{value:j,configurable:!0}),o(j,"constructor",{value:C,configurable:!0}),C.displayName=s(j,l,"GeneratorFunction"),t.isGeneratorFunction=function(b){var p=typeof b=="function"&&b.constructor;return!!p&&(p===C||(p.displayName||p.name)==="GeneratorFunction")},t.mark=function(b){return Object.setPrototypeOf?Object.setPrototypeOf(b,j):(b.__proto__=j,s(b,l,"GeneratorFunction")),b.prototype=Object.create(y),b},t.awrap=function(b){return{__await:b}},L(I.prototype),s(I.prototype,c,function(){return this}),t.AsyncIterator=I,t.async=function(b,p,h,E,O){O===void 0&&(O=Promise);var T=new I(u(b,p,h,E),O);return t.isGeneratorFunction(p)?T:T.next().then(function(N){return N.done?N.value:T.next()})},L(y),s(y,l,"Generator"),s(y,a,function(){return this}),s(y,"toString",function(){return"[object Generator]"}),t.keys=function(b){var p=Object(b),h=[];for(var E in p)h.push(E);return h.reverse(),function O(){for(;h.length;){var T=h.pop();if(T in p)return O.value=T,O.done=!1,O}return O.done=!0,O}},t.values=B,z.prototype={constructor:z,reset:function(p){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(k),!p)for(var h in this)h.charAt(0)==="t"&&n.call(this,h)&&!isNaN(+h.slice(1))&&(this[h]=e)},stop:function(){this.done=!0;var p=this.tryEntries[0].completion;if(p.type==="throw")throw p.arg;return this.rval},dispatchException:function(p){if(this.done)throw p;var h=this;function E(J,re){return N.type="throw",N.arg=p,h.next=J,re&&(h.method="next",h.arg=e),!!re}for(var O=this.tryEntries.length-1;O>=0;--O){var T=this.tryEntries[O],N=T.completion;if(T.tryLoc==="root")return E("end");if(T.tryLoc<=this.prev){var G=n.call(T,"catchLoc"),V=n.call(T,"finallyLoc");if(G&&V){if(this.prev<T.catchLoc)return E(T.catchLoc,!0);if(this.prev<T.finallyLoc)return E(T.finallyLoc)}else if(G){if(this.prev<T.catchLoc)return E(T.catchLoc,!0)}else{if(!V)throw new Error("try statement without catch or finally");if(this.prev<T.finallyLoc)return E(T.finallyLoc)}}}},abrupt:function(p,h){for(var E=this.tryEntries.length-1;E>=0;--E){var O=this.tryEntries[E];if(O.tryLoc<=this.prev&&n.call(O,"finallyLoc")&&this.prev<O.finallyLoc){var T=O;break}}T&&(p==="break"||p==="continue")&&T.tryLoc<=h&&h<=T.finallyLoc&&(T=null);var N=T?T.completion:{};return N.type=p,N.arg=h,T?(this.method="next",this.next=T.finallyLoc,d):this.complete(N)},complete:function(p,h){if(p.type==="throw")throw p.arg;return p.type==="break"||p.type==="continue"?this.next=p.arg:p.type==="return"?(this.rval=this.arg=p.arg,this.method="return",this.next="end"):p.type==="normal"&&h&&(this.next=h),d},finish:function(p){for(var h=this.tryEntries.length-1;h>=0;--h){var E=this.tryEntries[h];if(E.finallyLoc===p)return this.complete(E.completion,E.afterLoc),k(E),d}},catch:function(p){for(var h=this.tryEntries.length-1;h>=0;--h){var E=this.tryEntries[h];if(E.tryLoc===p){var O=E.completion;if(O.type==="throw"){var T=O.arg;k(E)}return T}}throw new Error("illegal catch attempt")},delegateYield:function(p,h,E){return this.delegate={iterator:B(p),resultName:h,nextLoc:E},this.method==="next"&&(this.arg=e),d}},t}function po(e,t,r,n,o,i,a){try{var c=e[i](a),l=c.value}catch(s){r(s);return}c.done?t(l):Promise.resolve(l).then(n,o)}function Ui(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(l){po(i,n,o,a,c,"next",l)}function c(l){po(i,n,o,a,c,"throw",l)}a(void 0)})}}var yt=W({},ba),bu=yt.version,yu=yt.render,Su=yt.unmountComponentAtNode,nr;try{var Cu=Number((bu||"").split(".")[0]);Cu>=18&&(nr=yt.createRoot)}catch{}function go(e){var t=yt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&Q(t)==="object"&&(t.usingClientEntryPoint=e)}var Vt="__rc_react_root__";function Eu(e,t){go(!0);var r=t[Vt]||nr(t);go(!1),r.render(e),t[Vt]=r}function xu(e,t){yu(e,t)}function wu(e,t){if(nr){Eu(e,t);return}xu(e,t)}function Ou(e){return en.apply(this,arguments)}function en(){return en=Ui(gt().mark(function e(t){return gt().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",Promise.resolve().then(function(){var o;(o=t[Vt])===null||o===void 0||o.unmount(),delete t[Vt]}));case 1:case"end":return n.stop()}},e)})),en.apply(this,arguments)}function Tu(e){Su(e)}function Pu(e){return tn.apply(this,arguments)}function tn(){return tn=Ui(gt().mark(function e(t){return gt().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(nr===void 0){n.next=2;break}return n.abrupt("return",Ou(t));case 2:Tu(t);case 3:case"end":return n.stop()}},e)})),tn.apply(this,arguments)}const Au=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),r=t.width,n=t.height;if(r||n)return!0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),i=o.width,a=o.height;if(i||a)return!0}}return!1},$u=e=>{const{componentCls:t,colorPrimary:r}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${r})`,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 0.3s ${e.motionEaseInOut}`,`opacity 0.35s ${e.motionEaseInOut}`].join(",")}}}}},Ru=vn("Wave",e=>[$u(e)]);function _u(e){const t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return t&&t[1]&&t[2]&&t[3]?!(t[1]===t[2]&&t[2]===t[3]):!0}function Sr(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&_u(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function ju(e){const{borderTopColor:t,borderColor:r,backgroundColor:n}=getComputedStyle(e);return Sr(t)?t:Sr(r)?r:Sr(n)?n:null}const Xi="ant-wave-target";function Cr(e){return Number.isNaN(e)?0:e}const Mu=e=>{const{className:t,target:r,component:n}=e,o=v.useRef(null),[i,a]=v.useState(null),[c,l]=v.useState([]),[s,u]=v.useState(0),[f,g]=v.useState(0),[S,x]=v.useState(0),[m,d]=v.useState(0),[$,C]=v.useState(!1),j={left:s,top:f,width:S,height:m,borderRadius:c.map(P=>`${P}px`).join(" ")};i&&(j["--wave-color"]=i);function M(){const P=getComputedStyle(r);a(ju(r));const y=P.position==="static",{borderLeftWidth:L,borderTopWidth:I}=P;u(y?r.offsetLeft:Cr(-parseFloat(L))),g(y?r.offsetTop:Cr(-parseFloat(I))),x(r.offsetWidth),d(r.offsetHeight);const{borderTopLeftRadius:w,borderTopRightRadius:H,borderBottomLeftRadius:D,borderBottomRightRadius:k}=P;l([w,H,k,D].map(z=>Cr(parseFloat(z))))}if(v.useEffect(()=>{if(r){const P=Ue(()=>{M(),C(!0)});let y;return typeof ResizeObserver<"u"&&(y=new ResizeObserver(M),y.observe(r)),()=>{Ue.cancel(P),y==null||y.disconnect()}}},[]),!$)return null;const _=(n==="Checkbox"||n==="Radio")&&(r==null?void 0:r.classList.contains(Xi));return v.createElement(mn,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(P,y)=>{var L;if(y.deadline||y.propertyName==="opacity"){const I=(L=o.current)===null||L===void 0?void 0:L.parentElement;Pu(I).then(()=>{I==null||I.remove()})}return!1}},P=>{let{className:y}=P;return v.createElement("div",{ref:o,className:me(t,{"wave-quick":_},y),style:j})})},Iu=(e,t)=>{var r;const{component:n}=t;if(n==="Checkbox"&&!(!((r=e.querySelector("input"))===null||r===void 0)&&r.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),wu(v.createElement(Mu,Object.assign({},t,{target:e})),o)},Nu=Iu;function Lu(e,t,r){const{wave:n}=v.useContext(ke),[,o,i]=bt(),a=Ks(s=>{const u=e.current;if(n!=null&&n.disabled||!u)return;const f=u.querySelector(`.${Xi}`)||u,{showEffect:g}=n||{};(g||Nu)(f,{className:t,token:o,component:r,event:s,hashId:i})}),c=v.useRef();return s=>{Ue.cancel(c.current),c.current=Ue(()=>{a(s)})}}const Yi=e=>{const{children:t,disabled:r,component:n}=e,{getPrefixCls:o}=A.useContext(ke),i=A.useRef(null),a=o("wave"),[,c]=Ru(a),l=Lu(i,me(a,c),n);if(A.useEffect(()=>{const u=i.current;if(!u||u.nodeType!==1||r)return;const f=g=>{!Au(g.target)||!u.getAttribute||u.getAttribute("disabled")||u.disabled||u.className.includes("disabled")||u.className.includes("-leave")||l(g)};return u.addEventListener("click",f,!0),()=>{u.removeEventListener("click",f,!0)}},[r]),!A.isValidElement(t))return t??null;const s=Ao(t)?Po(t.ref,i):i;return Gi(t,{ref:s})};process.env.NODE_ENV!=="production"&&(Yi.displayName="Wave");const ku=Yi,Du=e=>{const t=A.useContext(Zt);return A.useMemo(()=>e?typeof e=="string"?e??t:e instanceof Function?e(t):t:t,[e,t])},Bu=Du;globalThis&&globalThis.__rest;const Hu=v.createContext(null),zu=(e,t)=>{const r=v.useContext(Hu),n=v.useMemo(()=>{if(!r)return"";const{compactDirection:o,isFirstItem:i,isLastItem:a}=r,c=o==="vertical"?"-vertical-":"-";return me(`${e}-compact${c}item`,{[`${e}-compact${c}first-item`]:i,[`${e}-compact${c}last-item`]:a,[`${e}-compact${c}item-rtl`]:t==="rtl"})},[e,t,r]);return{compactSize:r==null?void 0:r.compactSize,compactDirection:r==null?void 0:r.compactDirection,compactItemClassnames:n}};var Fu=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};const qi=v.createContext(void 0),Wu=e=>{const{getPrefixCls:t,direction:r}=v.useContext(ke),{prefixCls:n,size:o,className:i}=e,a=Fu(e,["prefixCls","size","className"]),c=t("btn-group",n),[,,l]=bt();let s="";switch(o){case"large":s="lg";break;case"small":s="sm";break}if(process.env.NODE_ENV!=="production"){const f=Kt("Button.Group");process.env.NODE_ENV!=="production"&&f(!o||["large","small","middle"].includes(o),"usage","Invalid prop `size`.")}const u=me(c,{[`${c}-${s}`]:s,[`${c}-rtl`]:r==="rtl"},i,l);return v.createElement(qi.Provider,{value:o},v.createElement("div",Object.assign({},a,{className:u})))},Gu=Wu,vo=/^[\u4e00-\u9fa5]{2}$/,rn=vo.test.bind(vo);function ho(e){return typeof e=="string"}function Mt(e){return e==="text"||e==="link"}function Vu(e,t){if(e==null)return;const r=t?" ":"";return typeof e!="string"&&typeof e!="number"&&ho(e.type)&&rn(e.props.children)?Gi(e,{children:e.props.children.split("").join(r)}):ho(e)?rn(e)?A.createElement("span",null,e.split("").join(r)):A.createElement("span",null,e):pu(e)?A.createElement("span",null,e):e}function Uu(e,t){let r=!1;const n=[];return A.Children.forEach(e,o=>{const i=typeof o,a=i==="string"||i==="number";if(r&&a){const c=n.length-1,l=n[c];n[c]=`${l}${o}`}else n.push(o);r=a}),A.Children.map(n,o=>Vu(o,t))}const Xu=A.forwardRef((e,t)=>{const{className:r,style:n,children:o,prefixCls:i}=e,a=me(`${i}-icon`,r);return A.createElement("span",{ref:t,className:a,style:n},o)}),Ki=Xu,mo=A.forwardRef((e,t)=>{let{prefixCls:r,className:n,style:o,iconClassName:i}=e;const a=me(`${r}-loading-icon`,n);return A.createElement(Ki,{prefixCls:r,className:a,style:o,ref:t},A.createElement(mu,{className:i}))}),Er=()=>({width:0,opacity:0,transform:"scale(0)"}),xr=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),Yu=e=>{const{prefixCls:t,loading:r,existIcon:n,className:o,style:i}=e,a=!!r;return n?A.createElement(mo,{prefixCls:t,className:o,style:i}):A.createElement(mn,{visible:a,motionName:`${t}-loading-icon-motion`,motionLeave:a,removeOnLeave:!0,onAppearStart:Er,onAppearActive:xr,onEnterStart:Er,onEnterActive:xr,onLeaveStart:xr,onLeaveActive:Er},(c,l)=>{let{className:s,style:u}=c;return A.createElement(mo,{prefixCls:t,className:o,style:Object.assign(Object.assign({},i),u),ref:l,iconClassName:s})})},qu=Yu,bo=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),Ku=e=>{const{componentCls:t,fontSize:r,lineWidth:n,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:-n,[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover,\n &:focus,\n &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:r}},bo(`${t}-primary`,o),bo(`${t}-danger`,i)]}},Qu=Ku,Ju=e=>{const{componentCls:t,iconCls:r,fontWeight:n}=e;return{[t]:{outline:"none",position:"relative",display:"inline-block",fontWeight:n,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",lineHeight:e.lineHeight,color:e.colorText,"&:disabled > *":{pointerEvents:"none"},"> span":{display:"inline-block"},[`${t}-icon`]:{lineHeight:0},[`> ${r} + span, > span + ${r}`]:{marginInlineStart:e.marginXS},[`&:not(${t}-icon-only) > ${t}-icon`]:{[`&${t}-loading-icon, &:not(:last-child)`]:{marginInlineEnd:e.marginXS}},"> a":{color:"currentColor"},"&:not(:disabled)":Object.assign({},tl(e)),[`&${t}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${t}-two-chinese-chars > *:not(${r})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&-icon-only${t}-compact-item`]:{flex:"none"},[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-e.lineWidth,insetInlineStart:-e.lineWidth,display:"inline-block",width:e.lineWidth,height:`calc(100% + ${e.lineWidth*2}px)`,backgroundColor:e.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-vertical-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-e.lineWidth,insetInlineStart:-e.lineWidth,display:"inline-block",width:`calc(100% + ${e.lineWidth*2}px)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},Re=(e,t,r)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":r}}),Zu=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),ef=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.controlHeight/2,paddingInlineEnd:e.controlHeight/2}),tf=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,boxShadow:"none"}),vt=(e,t,r,n,o,i,a,c)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:r||void 0,backgroundColor:t,borderColor:n||void 0,boxShadow:"none"},Re(e,Object.assign({backgroundColor:t},a),Object.assign({backgroundColor:t},c))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:i||void 0}})}),Cn=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},tf(e))}),Qi=e=>Object.assign({},Cn(e)),Ut=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),Ji=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Qi(e)),{backgroundColor:e.defaultBg,borderColor:e.defaultBorderColor,color:e.defaultColor,boxShadow:e.defaultShadow}),Re(e.componentCls,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),vt(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({color:e.colorError,borderColor:e.colorError},Re(e.componentCls,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),vt(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),Cn(e))}),rf=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Qi(e)),{color:e.primaryColor,backgroundColor:e.colorPrimary,boxShadow:e.primaryShadow}),Re(e.componentCls,{color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryHover},{color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryActive})),vt(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign(Object.assign({backgroundColor:e.colorError,boxShadow:e.dangerShadow,color:e.dangerColor},Re(e.componentCls,{backgroundColor:e.colorErrorHover},{backgroundColor:e.colorErrorActive})),vt(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),Cn(e))}),nf=e=>Object.assign(Object.assign({},Ji(e)),{borderStyle:"dashed"}),of=e=>Object.assign(Object.assign(Object.assign({color:e.colorLink},Re(e.componentCls,{color:e.colorLinkHover,backgroundColor:e.linkHoverBg},{color:e.colorLinkActive})),Ut(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},Re(e.componentCls,{color:e.colorErrorHover},{color:e.colorErrorActive})),Ut(e))}),af=e=>Object.assign(Object.assign(Object.assign({},Re(e.componentCls,{color:e.colorText,backgroundColor:e.textHoverBg},{color:e.colorText,backgroundColor:e.colorBgTextActive})),Ut(e)),{[`&${e.componentCls}-dangerous`]:Object.assign(Object.assign({color:e.colorError},Ut(e)),Re(e.componentCls,{color:e.colorErrorHover,backgroundColor:e.colorErrorBg},{color:e.colorErrorHover,backgroundColor:e.colorErrorBg}))}),cf=e=>{const{componentCls:t}=e;return{[`${t}-default`]:Ji(e),[`${t}-primary`]:rf(e),[`${t}-dashed`]:nf(e),[`${t}-link`]:of(e),[`${t}-text`]:af(e),[`${t}-ghost`]:vt(e.componentCls,e.ghostBg,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)}},En=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:r,controlHeight:n,fontSize:o,lineHeight:i,lineWidth:a,borderRadius:c,buttonPaddingHorizontal:l,iconCls:s}=e,u=Math.max(0,(n-o*i)/2-a),f=`${r}-icon-only`;return[{[`${r}${t}`]:{fontSize:o,height:n,padding:`${u}px ${l}px`,borderRadius:c,[`&${f}`]:{width:n,paddingInlineStart:0,paddingInlineEnd:0,[`&${r}-round`]:{width:"auto"},[s]:{fontSize:e.buttonIconOnlyFontSize}},[`&${r}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${r}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`}}},{[`${r}${r}-circle${t}`]:Zu(e)},{[`${r}${r}-round${t}`]:ef(e)}]},sf=e=>En(nt(e,{fontSize:e.contentFontSize})),lf=e=>{const t=nt(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return En(t,`${e.componentCls}-sm`)},uf=e=>{const t=nt(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return En(t,`${e.componentCls}-lg`)},ff=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},Zi=e=>{const{paddingInline:t,onlyIconSize:r}=e;return nt(e,{buttonPaddingHorizontal:t,buttonIconOnlyFontSize:r})},ea=e=>({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:e.fontSizeLG,onlyIconSizeSM:e.fontSizeLG-2,onlyIconSizeLG:e.fontSizeLG+2,groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textHoverBg:e.colorBgTextHover,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,contentFontSize:e.fontSize,contentFontSizeSM:e.fontSize,contentFontSizeLG:e.fontSizeLG}),df=vn("Button",e=>{const t=Zi(e);return[Ju(t),lf(t),sf(t),uf(t),ff(t),cf(t),Qu(t)]},ea);function pf(e,t,r){const{focusElCls:n,focus:o,borderElCls:i}=r,a=i?"> *":"",c=["hover",o?"focus":null,"active"].filter(Boolean).map(l=>`&:${l} ${a}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:-e.lineWidth},"&-item":Object.assign(Object.assign({[c]:{zIndex:2}},n?{[`&${n}`]:{zIndex:2}}:{}),{[`&[disabled] ${a}`]:{zIndex:0}})}}function gf(e,t,r){const{borderElCls:n}=r,o=n?`> ${n}`:"";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 vf(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:r}=e,n=`${r}-compact`;return{[n]:Object.assign(Object.assign({},pf(e,n,t)),gf(r,n,t))}}function hf(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:-e.lineWidth},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function mf(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 bf(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},hf(e,t)),mf(e.componentCls,t))}}const yf=il(["Button","compact"],e=>{const t=Zi(e);return[vf(t),bf(t)]},ea);var Sf=globalThis&&globalThis.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};function Cf(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 Ef=(e,t)=>{var r,n;const{loading:o=!1,prefixCls:i,type:a="default",danger:c,shape:l="default",size:s,styles:u,disabled:f,className:g,rootClassName:S,children:x,icon:m,ghost:d=!1,block:$=!1,htmlType:C="button",classNames:j,style:M={}}=e,_=Sf(e,["loading","prefixCls","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","ghost","block","htmlType","classNames","style"]),{getPrefixCls:P,autoInsertSpaceInButton:y,direction:L,button:I}=A.useContext(ke),w=P("btn",i),[H,D]=df(w),k=A.useContext(hi),z=f??k,B=A.useContext(qi),b=A.useMemo(()=>Cf(o),[o]),[p,h]=A.useState(b.loading),[E,O]=A.useState(!1),N=Po(t,A.createRef()),G=A.Children.count(x)===1&&!m&&!Mt(a);A.useEffect(()=>{let F=null;b.delay>0?F=setTimeout(()=>{F=null,h(!0)},b.delay):h(b.loading);function Y(){F&&(clearTimeout(F),F=null)}return Y},[b]),A.useEffect(()=>{if(!N||!N.current||y===!1)return;const F=N.current.textContent;G&&rn(F)?E||O(!0):E&&O(!1)},[N]);const V=F=>{const{onClick:Y}=e;if(p||z){F.preventDefault();return}Y==null||Y(F)};if(process.env.NODE_ENV!=="production"){const F=Kt("Button");process.env.NODE_ENV!=="production"&&F(!(typeof m=="string"&&m.length>2),"breaking",`\`icon\` is using ReactNode instead of string naming in v4. Please check \`${m}\` at https://ant.design/components/icon`),process.env.NODE_ENV!=="production"&&F(!(d&&Mt(a)),"usage","`link` or `text` button can't be a `ghost` button.")}const J=y!==!1,{compactSize:re,compactItemClassnames:ae}=zu(w,L),De={large:"lg",small:"sm",middle:void 0},_e=Bu(F=>{var Y,ce;return(ce=(Y=s??re)!==null&&Y!==void 0?Y:B)!==null&&ce!==void 0?ce:F}),xe=_e&&De[_e]||"",pe=p?"loading":m,je=ja(_,["navigate"]),we=me(w,D,{[`${w}-${l}`]:l!=="default"&&l,[`${w}-${a}`]:a,[`${w}-${xe}`]:xe,[`${w}-icon-only`]:!x&&x!==0&&!!pe,[`${w}-background-ghost`]:d&&!Mt(a),[`${w}-loading`]:p,[`${w}-two-chinese-chars`]:E&&J&&!p,[`${w}-block`]:$,[`${w}-dangerous`]:!!c,[`${w}-rtl`]:L==="rtl"},ae,g,S,I==null?void 0:I.className),R=Object.assign(Object.assign({},I==null?void 0:I.style),M),se=me(j==null?void 0:j.icon,(r=I==null?void 0:I.classNames)===null||r===void 0?void 0:r.icon),ye=Object.assign(Object.assign({},(u==null?void 0:u.icon)||{}),((n=I==null?void 0:I.styles)===null||n===void 0?void 0:n.icon)||{}),ge=m&&!p?A.createElement(Ki,{prefixCls:w,className:se,style:ye},m):A.createElement(qu,{existIcon:!!m,prefixCls:w,loading:!!p}),Me=x||x===0?Uu(x,G&&J):null;if(je.href!==void 0)return H(A.createElement("a",Object.assign({},je,{className:me(we,{[`${w}-disabled`]:z}),style:R,onClick:V,ref:N}),ge,Me));let Z=A.createElement("button",Object.assign({},_,{type:C,className:we,style:R,onClick:V,disabled:z,ref:N}),ge,Me,ae&&A.createElement(yf,{key:"compact",prefixCls:w}));return Mt(a)||(Z=A.createElement(ku,{component:"Button",disabled:!!p},Z)),H(Z)},or=A.forwardRef(Ef);process.env.NODE_ENV!=="production"&&(or.displayName="Button");or.Group=Gu;or.__ANT_BUTTON=!0;const xf=or,wf=({children:e,...t})=>ma.jsx(xf,{...t,children:e});exports.Button=wf;
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { BaseButtonProps } from 'antd/lib/button/button';
|
|
2
|
+
import type { ButtonHTMLType, ButtonType as AntButtonType } from 'antd/lib/button/buttonHelpers';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
type ButtonType = Exclude<AntButtonType, 'dashed'> | 'secondary';
|
|
5
|
+
/**
|
|
6
|
+
* The props of the Button component.
|
|
7
|
+
*/
|
|
8
|
+
export type ButtonProps = Omit<BaseButtonProps, 'type' | 'classNames' | 'rootClassName' | 'styles' | 'prefixCls' | 'shape' | 'htmlType'> & {
|
|
9
|
+
/**
|
|
10
|
+
* The type of the button. Note that this is different from the html type.
|
|
11
|
+
*/
|
|
12
|
+
type?: ButtonType;
|
|
13
|
+
/**
|
|
14
|
+
* The href of the button. If provided, the button will be rendered as an anchor tag.
|
|
15
|
+
*/
|
|
16
|
+
href?: string;
|
|
17
|
+
/**
|
|
18
|
+
* The html type of the button. Note that this is different from the type.
|
|
19
|
+
*/
|
|
20
|
+
htmlType?: ButtonHTMLType;
|
|
21
|
+
/**
|
|
22
|
+
* onClick handler.
|
|
23
|
+
* @param event
|
|
24
|
+
* @returns
|
|
25
|
+
*/
|
|
26
|
+
onClick?: (event: React.MouseEvent) => void;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Button component.
|
|
30
|
+
*/
|
|
31
|
+
export declare const Button: ({ children, ...buttonProps }: ButtonProps) => React.JSX.Element;
|
|
32
|
+
export {};
|
|
33
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAGtB,OAAO,KAAK,EACV,eAAe,EAEhB,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,EACV,cAAc,EACd,UAAU,IAAI,aAAa,EAC5B,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,KAAK,UAAU,GAAG,OAAO,CAAC,aAAa,EAAE,QAAQ,CAAC,GAAG,WAAW,CAAC;AAEjE;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,IAAI,CAC5B,eAAe,EACb,MAAM,GAEN,YAAY,GACZ,eAAe,GACf,QAAQ,GACR,WAAW,GACX,OAAO,GACP,UAAU,CACb,GAAG;IACF;;OAEG;IACH,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,QAAQ,CAAC,EAAE,cAAc,CAAC;IAC1B;;;;OAIG;IACH,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,KAAK,IAAI,CAAC;CAC7C,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,MAAM,iCAAkC,WAAW,sBAE/D,CAAC"}
|